Fix typos.
[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 LTLIBOBJS'
742 ac_subst_files=''
743 ac_precious_vars='build_alias
744 host_alias
745 target_alias
746 CC
747 CFLAGS
748 LDFLAGS
749 LIBS
750 CPPFLAGS
751 CPP
752 XMKMF'
753
754
755 # Initialize some variables set by options.
756 ac_init_help=
757 ac_init_version=false
758 # The variables have the same names as the options, with
759 # dashes changed to underlines.
760 cache_file=/dev/null
761 exec_prefix=NONE
762 no_create=
763 no_recursion=
764 prefix=NONE
765 program_prefix=NONE
766 program_suffix=NONE
767 program_transform_name=s,x,x,
768 silent=
769 site=
770 srcdir=
771 verbose=
772 x_includes=NONE
773 x_libraries=NONE
774
775 # Installation directory options.
776 # These are left unexpanded so users can "make install exec_prefix=/foo"
777 # and all the variables that are supposed to be based on exec_prefix
778 # by default will actually change.
779 # Use braces instead of parens because sh, perl, etc. also accept them.
780 # (The list follows the same order as the GNU Coding Standards.)
781 bindir='${exec_prefix}/bin'
782 sbindir='${exec_prefix}/sbin'
783 libexecdir='${exec_prefix}/libexec'
784 datarootdir='${prefix}/share'
785 datadir='${datarootdir}'
786 sysconfdir='${prefix}/etc'
787 sharedstatedir='${prefix}/com'
788 localstatedir='${prefix}/var'
789 includedir='${prefix}/include'
790 oldincludedir='/usr/include'
791 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
792 infodir='${datarootdir}/info'
793 htmldir='${docdir}'
794 dvidir='${docdir}'
795 pdfdir='${docdir}'
796 psdir='${docdir}'
797 libdir='${exec_prefix}/lib'
798 localedir='${datarootdir}/locale'
799 mandir='${datarootdir}/man'
800
801 ac_prev=
802 ac_dashdash=
803 for ac_option
804 do
805 # If the previous option needs an argument, assign it.
806 if test -n "$ac_prev"; then
807 eval $ac_prev=\$ac_option
808 ac_prev=
809 continue
810 fi
811
812 case $ac_option in
813 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
814 *) ac_optarg=yes ;;
815 esac
816
817 # Accept the important Cygnus configure options, so we can diagnose typos.
818
819 case $ac_dashdash$ac_option in
820 --)
821 ac_dashdash=yes ;;
822
823 -bindir | --bindir | --bindi | --bind | --bin | --bi)
824 ac_prev=bindir ;;
825 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
826 bindir=$ac_optarg ;;
827
828 -build | --build | --buil | --bui | --bu)
829 ac_prev=build_alias ;;
830 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
831 build_alias=$ac_optarg ;;
832
833 -cache-file | --cache-file | --cache-fil | --cache-fi \
834 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
835 ac_prev=cache_file ;;
836 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
837 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
838 cache_file=$ac_optarg ;;
839
840 --config-cache | -C)
841 cache_file=config.cache ;;
842
843 -datadir | --datadir | --datadi | --datad)
844 ac_prev=datadir ;;
845 -datadir=* | --datadir=* | --datadi=* | --datad=*)
846 datadir=$ac_optarg ;;
847
848 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
849 | --dataroo | --dataro | --datar)
850 ac_prev=datarootdir ;;
851 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
852 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
853 datarootdir=$ac_optarg ;;
854
855 -disable-* | --disable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
862 eval enable_$ac_feature=no ;;
863
864 -docdir | --docdir | --docdi | --doc | --do)
865 ac_prev=docdir ;;
866 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
867 docdir=$ac_optarg ;;
868
869 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
870 ac_prev=dvidir ;;
871 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
872 dvidir=$ac_optarg ;;
873
874 -enable-* | --enable-*)
875 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
876 # Reject names that are not valid shell variable names.
877 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
878 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
879 { (exit 1); exit 1; }; }
880 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
881 eval enable_$ac_feature=\$ac_optarg ;;
882
883 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
884 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
885 | --exec | --exe | --ex)
886 ac_prev=exec_prefix ;;
887 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
888 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
889 | --exec=* | --exe=* | --ex=*)
890 exec_prefix=$ac_optarg ;;
891
892 -gas | --gas | --ga | --g)
893 # Obsolete; use --with-gas.
894 with_gas=yes ;;
895
896 -help | --help | --hel | --he | -h)
897 ac_init_help=long ;;
898 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
899 ac_init_help=recursive ;;
900 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
901 ac_init_help=short ;;
902
903 -host | --host | --hos | --ho)
904 ac_prev=host_alias ;;
905 -host=* | --host=* | --hos=* | --ho=*)
906 host_alias=$ac_optarg ;;
907
908 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
909 ac_prev=htmldir ;;
910 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
911 | --ht=*)
912 htmldir=$ac_optarg ;;
913
914 -includedir | --includedir | --includedi | --included | --include \
915 | --includ | --inclu | --incl | --inc)
916 ac_prev=includedir ;;
917 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
918 | --includ=* | --inclu=* | --incl=* | --inc=*)
919 includedir=$ac_optarg ;;
920
921 -infodir | --infodir | --infodi | --infod | --info | --inf)
922 ac_prev=infodir ;;
923 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
924 infodir=$ac_optarg ;;
925
926 -libdir | --libdir | --libdi | --libd)
927 ac_prev=libdir ;;
928 -libdir=* | --libdir=* | --libdi=* | --libd=*)
929 libdir=$ac_optarg ;;
930
931 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
932 | --libexe | --libex | --libe)
933 ac_prev=libexecdir ;;
934 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
935 | --libexe=* | --libex=* | --libe=*)
936 libexecdir=$ac_optarg ;;
937
938 -localedir | --localedir | --localedi | --localed | --locale)
939 ac_prev=localedir ;;
940 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
941 localedir=$ac_optarg ;;
942
943 -localstatedir | --localstatedir | --localstatedi | --localstated \
944 | --localstate | --localstat | --localsta | --localst | --locals)
945 ac_prev=localstatedir ;;
946 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
947 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
948 localstatedir=$ac_optarg ;;
949
950 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
951 ac_prev=mandir ;;
952 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
953 mandir=$ac_optarg ;;
954
955 -nfp | --nfp | --nf)
956 # Obsolete; use --without-fp.
957 with_fp=no ;;
958
959 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
960 | --no-cr | --no-c | -n)
961 no_create=yes ;;
962
963 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
964 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
965 no_recursion=yes ;;
966
967 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
968 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
969 | --oldin | --oldi | --old | --ol | --o)
970 ac_prev=oldincludedir ;;
971 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
972 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
973 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
974 oldincludedir=$ac_optarg ;;
975
976 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
977 ac_prev=prefix ;;
978 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
979 prefix=$ac_optarg ;;
980
981 -program-prefix | --program-prefix | --program-prefi | --program-pref \
982 | --program-pre | --program-pr | --program-p)
983 ac_prev=program_prefix ;;
984 -program-prefix=* | --program-prefix=* | --program-prefi=* \
985 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
986 program_prefix=$ac_optarg ;;
987
988 -program-suffix | --program-suffix | --program-suffi | --program-suff \
989 | --program-suf | --program-su | --program-s)
990 ac_prev=program_suffix ;;
991 -program-suffix=* | --program-suffix=* | --program-suffi=* \
992 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
993 program_suffix=$ac_optarg ;;
994
995 -program-transform-name | --program-transform-name \
996 | --program-transform-nam | --program-transform-na \
997 | --program-transform-n | --program-transform- \
998 | --program-transform | --program-transfor \
999 | --program-transfo | --program-transf \
1000 | --program-trans | --program-tran \
1001 | --progr-tra | --program-tr | --program-t)
1002 ac_prev=program_transform_name ;;
1003 -program-transform-name=* | --program-transform-name=* \
1004 | --program-transform-nam=* | --program-transform-na=* \
1005 | --program-transform-n=* | --program-transform-=* \
1006 | --program-transform=* | --program-transfor=* \
1007 | --program-transfo=* | --program-transf=* \
1008 | --program-trans=* | --program-tran=* \
1009 | --progr-tra=* | --program-tr=* | --program-t=*)
1010 program_transform_name=$ac_optarg ;;
1011
1012 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1013 ac_prev=pdfdir ;;
1014 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1015 pdfdir=$ac_optarg ;;
1016
1017 -psdir | --psdir | --psdi | --psd | --ps)
1018 ac_prev=psdir ;;
1019 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1020 psdir=$ac_optarg ;;
1021
1022 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1023 | -silent | --silent | --silen | --sile | --sil)
1024 silent=yes ;;
1025
1026 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1027 ac_prev=sbindir ;;
1028 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1029 | --sbi=* | --sb=*)
1030 sbindir=$ac_optarg ;;
1031
1032 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1033 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1034 | --sharedst | --shareds | --shared | --share | --shar \
1035 | --sha | --sh)
1036 ac_prev=sharedstatedir ;;
1037 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1038 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1039 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1040 | --sha=* | --sh=*)
1041 sharedstatedir=$ac_optarg ;;
1042
1043 -site | --site | --sit)
1044 ac_prev=site ;;
1045 -site=* | --site=* | --sit=*)
1046 site=$ac_optarg ;;
1047
1048 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1049 ac_prev=srcdir ;;
1050 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1051 srcdir=$ac_optarg ;;
1052
1053 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1054 | --syscon | --sysco | --sysc | --sys | --sy)
1055 ac_prev=sysconfdir ;;
1056 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1057 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1058 sysconfdir=$ac_optarg ;;
1059
1060 -target | --target | --targe | --targ | --tar | --ta | --t)
1061 ac_prev=target_alias ;;
1062 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1063 target_alias=$ac_optarg ;;
1064
1065 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1066 verbose=yes ;;
1067
1068 -version | --version | --versio | --versi | --vers | -V)
1069 ac_init_version=: ;;
1070
1071 -with-* | --with-*)
1072 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1073 # Reject names that are not valid shell variable names.
1074 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1075 { echo "$as_me: error: invalid package name: $ac_package" >&2
1076 { (exit 1); exit 1; }; }
1077 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1078 eval with_$ac_package=\$ac_optarg ;;
1079
1080 -without-* | --without-*)
1081 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1082 # Reject names that are not valid shell variable names.
1083 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1084 { echo "$as_me: error: invalid package name: $ac_package" >&2
1085 { (exit 1); exit 1; }; }
1086 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1087 eval with_$ac_package=no ;;
1088
1089 --x)
1090 # Obsolete; use --with-x.
1091 with_x=yes ;;
1092
1093 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1094 | --x-incl | --x-inc | --x-in | --x-i)
1095 ac_prev=x_includes ;;
1096 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1097 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1098 x_includes=$ac_optarg ;;
1099
1100 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1101 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1102 ac_prev=x_libraries ;;
1103 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1104 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1105 x_libraries=$ac_optarg ;;
1106
1107 -*) { echo "$as_me: error: unrecognized option: $ac_option
1108 Try \`$0 --help' for more information." >&2
1109 { (exit 1); exit 1; }; }
1110 ;;
1111
1112 *=*)
1113 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1114 # Reject names that are not valid shell variable names.
1115 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1116 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1117 { (exit 1); exit 1; }; }
1118 eval $ac_envvar=\$ac_optarg
1119 export $ac_envvar ;;
1120
1121 *)
1122 # FIXME: should be removed in autoconf 3.0.
1123 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1124 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1125 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1126 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1127 ;;
1128
1129 esac
1130 done
1131
1132 if test -n "$ac_prev"; then
1133 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1134 { echo "$as_me: error: missing argument to $ac_option" >&2
1135 { (exit 1); exit 1; }; }
1136 fi
1137
1138 # Be sure to have absolute directory names.
1139 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1140 datadir sysconfdir sharedstatedir localstatedir includedir \
1141 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1142 libdir localedir mandir
1143 do
1144 eval ac_val=\$$ac_var
1145 case $ac_val in
1146 [\\/$]* | ?:[\\/]* ) continue;;
1147 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1148 esac
1149 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1150 { (exit 1); exit 1; }; }
1151 done
1152
1153 # There might be people who depend on the old broken behavior: `$host'
1154 # used to hold the argument of --host etc.
1155 # FIXME: To remove some day.
1156 build=$build_alias
1157 host=$host_alias
1158 target=$target_alias
1159
1160 # FIXME: To remove some day.
1161 if test "x$host_alias" != x; then
1162 if test "x$build_alias" = x; then
1163 cross_compiling=maybe
1164 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1165 If a cross compiler is detected then cross compile mode will be used." >&2
1166 elif test "x$build_alias" != "x$host_alias"; then
1167 cross_compiling=yes
1168 fi
1169 fi
1170
1171 ac_tool_prefix=
1172 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1173
1174 test "$silent" = yes && exec 6>/dev/null
1175
1176
1177 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1178 ac_ls_di=`ls -di .` &&
1179 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1180 { echo "$as_me: error: Working directory cannot be determined" >&2
1181 { (exit 1); exit 1; }; }
1182 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1183 { echo "$as_me: error: pwd does not report name of working directory" >&2
1184 { (exit 1); exit 1; }; }
1185
1186
1187 # Find the source files, if location was not specified.
1188 if test -z "$srcdir"; then
1189 ac_srcdir_defaulted=yes
1190 # Try the directory containing this script, then the parent directory.
1191 ac_confdir=`$as_dirname -- "$0" ||
1192 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1193 X"$0" : 'X\(//\)[^/]' \| \
1194 X"$0" : 'X\(//\)$' \| \
1195 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1196 echo X"$0" |
1197 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1198 s//\1/
1199 q
1200 }
1201 /^X\(\/\/\)[^/].*/{
1202 s//\1/
1203 q
1204 }
1205 /^X\(\/\/\)$/{
1206 s//\1/
1207 q
1208 }
1209 /^X\(\/\).*/{
1210 s//\1/
1211 q
1212 }
1213 s/.*/./; q'`
1214 srcdir=$ac_confdir
1215 if test ! -r "$srcdir/$ac_unique_file"; then
1216 srcdir=..
1217 fi
1218 else
1219 ac_srcdir_defaulted=no
1220 fi
1221 if test ! -r "$srcdir/$ac_unique_file"; then
1222 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1223 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1224 { (exit 1); exit 1; }; }
1225 fi
1226 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1227 ac_abs_confdir=`(
1228 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1229 { (exit 1); exit 1; }; }
1230 pwd)`
1231 # When building in place, set srcdir=.
1232 if test "$ac_abs_confdir" = "$ac_pwd"; then
1233 srcdir=.
1234 fi
1235 # Remove unnecessary trailing slashes from srcdir.
1236 # Double slashes in file names in object file debugging info
1237 # mess up M-x gdb in Emacs.
1238 case $srcdir in
1239 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1240 esac
1241 for ac_var in $ac_precious_vars; do
1242 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1243 eval ac_env_${ac_var}_value=\$${ac_var}
1244 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1245 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1246 done
1247
1248 #
1249 # Report the --help message.
1250 #
1251 if test "$ac_init_help" = "long"; then
1252 # Omit some internal or obsolete options to make the list less imposing.
1253 # This message is too long to be a string in the A/UX 3.1 sh.
1254 cat <<_ACEOF
1255 \`configure' configures emacs 23.0.60 to adapt to many kinds of systems.
1256
1257 Usage: $0 [OPTION]... [VAR=VALUE]...
1258
1259 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1260 VAR=VALUE. See below for descriptions of some of the useful variables.
1261
1262 Defaults for the options are specified in brackets.
1263
1264 Configuration:
1265 -h, --help display this help and exit
1266 --help=short display options specific to this package
1267 --help=recursive display the short help of all the included packages
1268 -V, --version display version information and exit
1269 -q, --quiet, --silent do not print \`checking...' messages
1270 --cache-file=FILE cache test results in FILE [disabled]
1271 -C, --config-cache alias for \`--cache-file=config.cache'
1272 -n, --no-create do not create output files
1273 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1274
1275 Installation directories:
1276 --prefix=PREFIX install architecture-independent files in PREFIX
1277 [$ac_default_prefix]
1278 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1279 [PREFIX]
1280
1281 By default, \`make install' will install all the files in
1282 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1283 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1284 for instance \`--prefix=\$HOME'.
1285
1286 For better control, use the options below.
1287
1288 Fine tuning of the installation directories:
1289 --bindir=DIR user executables [EPREFIX/bin]
1290 --sbindir=DIR system admin executables [EPREFIX/sbin]
1291 --libexecdir=DIR program executables [EPREFIX/libexec]
1292 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1293 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1294 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1295 --libdir=DIR object code libraries [EPREFIX/lib]
1296 --includedir=DIR C header files [PREFIX/include]
1297 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1298 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1299 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1300 --infodir=DIR info documentation [DATAROOTDIR/info]
1301 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1302 --mandir=DIR man documentation [DATAROOTDIR/man]
1303 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1304 --htmldir=DIR html documentation [DOCDIR]
1305 --dvidir=DIR dvi documentation [DOCDIR]
1306 --pdfdir=DIR pdf documentation [DOCDIR]
1307 --psdir=DIR ps documentation [DOCDIR]
1308 _ACEOF
1309
1310 cat <<\_ACEOF
1311
1312 Program names:
1313 --program-prefix=PREFIX prepend PREFIX to installed program names
1314 --program-suffix=SUFFIX append SUFFIX to installed program names
1315 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1316
1317 X features:
1318 --x-includes=DIR X include files are in DIR
1319 --x-libraries=DIR X library files are in DIR
1320
1321 System types:
1322 --build=BUILD configure for building on BUILD [guessed]
1323 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1324 _ACEOF
1325 fi
1326
1327 if test -n "$ac_init_help"; then
1328 case $ac_init_help in
1329 short | recursive ) echo "Configuration of emacs 23.0.60:";;
1330 esac
1331 cat <<\_ACEOF
1332
1333 Optional Features:
1334 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1335 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1336 --enable-cocoa-experimental-ctrl-g enable experimental improved ctrl-g recognition
1337 --disable-ns-self-contained disable self contained build under NS
1338 --enable-asserts compile code with asserts enabled
1339 --enable-maintainer-mode
1340 enable make rules and dependencies not useful (and
1341 sometimes confusing) to the casual installer
1342 --enable-locallisppath=PATH
1343 directories Emacs should search for lisp files
1344 specific to this site
1345 --disable-largefile omit support for large files
1346
1347 Optional Packages:
1348 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1349 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1350 --without-pop don't support POP mail retrieval with movemail
1351 --with-kerberos support Kerberos-authenticated POP
1352 --with-kerberos5 support Kerberos version 5 authenticated POP
1353 --with-hesiod support Hesiod to get the POP server host
1354 --without-sound don't compile with sound support
1355 --without-sync-input Process async input synchronously
1356 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1357 motif, gtk, no)
1358 --without-xpm don't compile with XPM image support
1359 --without-jpeg don't compile with JPEG image support
1360 --without-tiff don't compile with TIFF image support
1361 --without-gif don't compile with GIF image support
1362 --without-png don't compile with PNG image support
1363 --without-rsvg don't compile with SVG image support
1364 --without-freetype don't use Freetype for local font support
1365 --without-xft don't use XFT for anti aliased fonts
1366 --without-libotf don't use libotf for OpenType font support
1367 --without-m17n-flt don't use m17n-flt for text shaping
1368 --without-toolkit-scroll-bars
1369 don't use Motif or Xaw3d scroll bars
1370 --without-xaw3d don't use Xaw3d
1371 --without-xim don't use X11 XIM
1372 --with-ns use nextstep (Cocoa or GNUstep) windowing system
1373 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1374 console
1375 --without-dbus don't compile with D-Bus support
1376 --without-makeinfo don't require makeinfo for building manuals
1377
1378 --with-pkg-config-prog=PATH
1379 Path to pkg-config for finding GTK and librsvg
1380 --with-x use the X Window System
1381
1382 Some influential environment variables:
1383 CC C compiler command
1384 CFLAGS C compiler flags
1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1386 nonstandard directory <lib dir>
1387 LIBS libraries to pass to the linker, e.g. -l<library>
1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1389 you have headers in a nonstandard directory <include dir>
1390 CPP C preprocessor
1391 XMKMF Path to xmkmf, Makefile generator for X Window System
1392
1393 Use these variables to override the choices made by `configure' or to help
1394 it to find libraries and programs with nonstandard names/locations.
1395
1396 _ACEOF
1397 ac_status=$?
1398 fi
1399
1400 if test "$ac_init_help" = "recursive"; then
1401 # If there are subdirs, report their specific --help.
1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1403 test -d "$ac_dir" || continue
1404 ac_builddir=.
1405
1406 case "$ac_dir" in
1407 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1408 *)
1409 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1410 # A ".." for each directory in $ac_dir_suffix.
1411 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1412 case $ac_top_builddir_sub in
1413 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1414 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1415 esac ;;
1416 esac
1417 ac_abs_top_builddir=$ac_pwd
1418 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1419 # for backward compatibility:
1420 ac_top_builddir=$ac_top_build_prefix
1421
1422 case $srcdir in
1423 .) # We are building in place.
1424 ac_srcdir=.
1425 ac_top_srcdir=$ac_top_builddir_sub
1426 ac_abs_top_srcdir=$ac_pwd ;;
1427 [\\/]* | ?:[\\/]* ) # Absolute name.
1428 ac_srcdir=$srcdir$ac_dir_suffix;
1429 ac_top_srcdir=$srcdir
1430 ac_abs_top_srcdir=$srcdir ;;
1431 *) # Relative name.
1432 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1433 ac_top_srcdir=$ac_top_build_prefix$srcdir
1434 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1435 esac
1436 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1437
1438 cd "$ac_dir" || { ac_status=$?; continue; }
1439 # Check for guested configure.
1440 if test -f "$ac_srcdir/configure.gnu"; then
1441 echo &&
1442 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1443 elif test -f "$ac_srcdir/configure"; then
1444 echo &&
1445 $SHELL "$ac_srcdir/configure" --help=recursive
1446 else
1447 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1448 fi || ac_status=$?
1449 cd "$ac_pwd" || { ac_status=$?; break; }
1450 done
1451 fi
1452
1453 test -n "$ac_init_help" && exit $ac_status
1454 if $ac_init_version; then
1455 cat <<\_ACEOF
1456 emacs configure 23.0.60
1457 generated by GNU Autoconf 2.61
1458
1459 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1460 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1461 This configure script is free software; the Free Software Foundation
1462 gives unlimited permission to copy, distribute and modify it.
1463 _ACEOF
1464 exit
1465 fi
1466 cat >config.log <<_ACEOF
1467 This file contains any messages produced by compilers while
1468 running configure, to aid debugging if configure makes a mistake.
1469
1470 It was created by emacs $as_me 23.0.60, which was
1471 generated by GNU Autoconf 2.61. Invocation command line was
1472
1473 $ $0 $@
1474
1475 _ACEOF
1476 exec 5>>config.log
1477 {
1478 cat <<_ASUNAME
1479 ## --------- ##
1480 ## Platform. ##
1481 ## --------- ##
1482
1483 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1484 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1485 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1486 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1487 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1488
1489 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1490 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1491
1492 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1493 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1494 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1495 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1496 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1497 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1498 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1499
1500 _ASUNAME
1501
1502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1503 for as_dir in $PATH
1504 do
1505 IFS=$as_save_IFS
1506 test -z "$as_dir" && as_dir=.
1507 echo "PATH: $as_dir"
1508 done
1509 IFS=$as_save_IFS
1510
1511 } >&5
1512
1513 cat >&5 <<_ACEOF
1514
1515
1516 ## ----------- ##
1517 ## Core tests. ##
1518 ## ----------- ##
1519
1520 _ACEOF
1521
1522
1523 # Keep a trace of the command line.
1524 # Strip out --no-create and --no-recursion so they do not pile up.
1525 # Strip out --silent because we don't want to record it for future runs.
1526 # Also quote any args containing shell meta-characters.
1527 # Make two passes to allow for proper duplicate-argument suppression.
1528 ac_configure_args=
1529 ac_configure_args0=
1530 ac_configure_args1=
1531 ac_must_keep_next=false
1532 for ac_pass in 1 2
1533 do
1534 for ac_arg
1535 do
1536 case $ac_arg in
1537 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1538 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1539 | -silent | --silent | --silen | --sile | --sil)
1540 continue ;;
1541 *\'*)
1542 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1543 esac
1544 case $ac_pass in
1545 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1546 2)
1547 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1548 if test $ac_must_keep_next = true; then
1549 ac_must_keep_next=false # Got value, back to normal.
1550 else
1551 case $ac_arg in
1552 *=* | --config-cache | -C | -disable-* | --disable-* \
1553 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1554 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1555 | -with-* | --with-* | -without-* | --without-* | --x)
1556 case "$ac_configure_args0 " in
1557 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1558 esac
1559 ;;
1560 -* ) ac_must_keep_next=true ;;
1561 esac
1562 fi
1563 ac_configure_args="$ac_configure_args '$ac_arg'"
1564 ;;
1565 esac
1566 done
1567 done
1568 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1569 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1570
1571 # When interrupted or exit'd, cleanup temporary files, and complete
1572 # config.log. We remove comments because anyway the quotes in there
1573 # would cause problems or look ugly.
1574 # WARNING: Use '\'' to represent an apostrophe within the trap.
1575 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1576 trap 'exit_status=$?
1577 # Save into config.log some information that might help in debugging.
1578 {
1579 echo
1580
1581 cat <<\_ASBOX
1582 ## ---------------- ##
1583 ## Cache variables. ##
1584 ## ---------------- ##
1585 _ASBOX
1586 echo
1587 # The following way of writing the cache mishandles newlines in values,
1588 (
1589 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in #(
1592 *${as_nl}*)
1593 case $ac_var in #(
1594 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1595 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1596 esac
1597 case $ac_var in #(
1598 _ | IFS | as_nl) ;; #(
1599 *) $as_unset $ac_var ;;
1600 esac ;;
1601 esac
1602 done
1603 (set) 2>&1 |
1604 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1605 *${as_nl}ac_space=\ *)
1606 sed -n \
1607 "s/'\''/'\''\\\\'\'''\''/g;
1608 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1609 ;; #(
1610 *)
1611 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1612 ;;
1613 esac |
1614 sort
1615 )
1616 echo
1617
1618 cat <<\_ASBOX
1619 ## ----------------- ##
1620 ## Output variables. ##
1621 ## ----------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_vars
1625 do
1626 eval ac_val=\$$ac_var
1627 case $ac_val in
1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 esac
1630 echo "$ac_var='\''$ac_val'\''"
1631 done | sort
1632 echo
1633
1634 if test -n "$ac_subst_files"; then
1635 cat <<\_ASBOX
1636 ## ------------------- ##
1637 ## File substitutions. ##
1638 ## ------------------- ##
1639 _ASBOX
1640 echo
1641 for ac_var in $ac_subst_files
1642 do
1643 eval ac_val=\$$ac_var
1644 case $ac_val in
1645 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1646 esac
1647 echo "$ac_var='\''$ac_val'\''"
1648 done | sort
1649 echo
1650 fi
1651
1652 if test -s confdefs.h; then
1653 cat <<\_ASBOX
1654 ## ----------- ##
1655 ## confdefs.h. ##
1656 ## ----------- ##
1657 _ASBOX
1658 echo
1659 cat confdefs.h
1660 echo
1661 fi
1662 test "$ac_signal" != 0 &&
1663 echo "$as_me: caught signal $ac_signal"
1664 echo "$as_me: exit $exit_status"
1665 } >&5
1666 rm -f core *.core core.conftest.* &&
1667 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1668 exit $exit_status
1669 ' 0
1670 for ac_signal in 1 2 13 15; do
1671 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1672 done
1673 ac_signal=0
1674
1675 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1676 rm -f -r conftest* confdefs.h
1677
1678 # Predefined preprocessor variables.
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_NAME "$PACKAGE_NAME"
1682 _ACEOF
1683
1684
1685 cat >>confdefs.h <<_ACEOF
1686 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1687 _ACEOF
1688
1689
1690 cat >>confdefs.h <<_ACEOF
1691 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1692 _ACEOF
1693
1694
1695 cat >>confdefs.h <<_ACEOF
1696 #define PACKAGE_STRING "$PACKAGE_STRING"
1697 _ACEOF
1698
1699
1700 cat >>confdefs.h <<_ACEOF
1701 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1702 _ACEOF
1703
1704
1705 # Let the site file select an alternate cache file if it wants to.
1706 # Prefer explicitly selected file to automatically selected ones.
1707 if test -n "$CONFIG_SITE"; then
1708 set x "$CONFIG_SITE"
1709 elif test "x$prefix" != xNONE; then
1710 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1711 else
1712 set x "$ac_default_prefix/share/config.site" \
1713 "$ac_default_prefix/etc/config.site"
1714 fi
1715 shift
1716 for ac_site_file
1717 do
1718 if test -r "$ac_site_file"; then
1719 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1720 echo "$as_me: loading site script $ac_site_file" >&6;}
1721 sed 's/^/| /' "$ac_site_file" >&5
1722 . "$ac_site_file"
1723 fi
1724 done
1725
1726 if test -r "$cache_file"; then
1727 # Some versions of bash will fail to source /dev/null (special
1728 # files actually), so we avoid doing that.
1729 if test -f "$cache_file"; then
1730 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1731 echo "$as_me: loading cache $cache_file" >&6;}
1732 case $cache_file in
1733 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1734 *) . "./$cache_file";;
1735 esac
1736 fi
1737 else
1738 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1739 echo "$as_me: creating cache $cache_file" >&6;}
1740 >$cache_file
1741 fi
1742
1743 ac_header_list="$ac_header_list sys/time.h"
1744 ac_header_list="$ac_header_list unistd.h"
1745 ac_func_list="$ac_func_list alarm"
1746 # Check that the precious variables saved in the cache have kept the same
1747 # value.
1748 ac_cache_corrupted=false
1749 for ac_var in $ac_precious_vars; do
1750 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1751 eval ac_new_set=\$ac_env_${ac_var}_set
1752 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1753 eval ac_new_val=\$ac_env_${ac_var}_value
1754 case $ac_old_set,$ac_new_set in
1755 set,)
1756 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1757 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1758 ac_cache_corrupted=: ;;
1759 ,set)
1760 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1761 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1762 ac_cache_corrupted=: ;;
1763 ,);;
1764 *)
1765 if test "x$ac_old_val" != "x$ac_new_val"; then
1766 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1767 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1768 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1769 echo "$as_me: former value: $ac_old_val" >&2;}
1770 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1771 echo "$as_me: current value: $ac_new_val" >&2;}
1772 ac_cache_corrupted=:
1773 fi;;
1774 esac
1775 # Pass precious variables to config.status.
1776 if test "$ac_new_set" = set; then
1777 case $ac_new_val in
1778 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1779 *) ac_arg=$ac_var=$ac_new_val ;;
1780 esac
1781 case " $ac_configure_args " in
1782 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1783 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1784 esac
1785 fi
1786 done
1787 if $ac_cache_corrupted; then
1788 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1789 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1790 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1791 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1792 { (exit 1); exit 1; }; }
1793 fi
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803
1804
1805
1806
1807
1808
1809
1810
1811
1812
1813
1814
1815
1816
1817
1818
1819 ac_ext=c
1820 ac_cpp='$CPP $CPPFLAGS'
1821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1824
1825
1826 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1827
1828
1829
1830 test "$program_prefix" != NONE &&
1831 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1832 # Use a double $ so make ignores it.
1833 test "$program_suffix" != NONE &&
1834 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1835 # Double any \ or $. echo might interpret backslashes.
1836 # By default was `s,x,x', remove it if useless.
1837 cat <<\_ACEOF >conftest.sed
1838 s/[\\$]/&&/g;s/;s,x,x,$//
1839 _ACEOF
1840 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1841 rm -f conftest.sed
1842
1843
1844 lispdir='${datadir}/emacs/${version}/lisp'
1845 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1846 '${datadir}/emacs/site-lisp'
1847 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1848 etcdir='${datadir}/emacs/${version}/etc'
1849 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1850 docdir='${datadir}/emacs/${version}/etc'
1851 gamedir='${localstatedir}/games/emacs'
1852
1853 gameuser=games
1854
1855
1856
1857
1858 # Check whether --with-pop was given.
1859 if test "${with_pop+set}" = set; then
1860 withval=$with_pop;
1861 else
1862 with_pop=yes
1863 fi
1864
1865 if test "$with_pop" = yes; then
1866 cat >>confdefs.h <<\_ACEOF
1867 #define MAIL_USE_POP 1
1868 _ACEOF
1869
1870 fi
1871
1872
1873
1874 # Check whether --with-kerberos was given.
1875 if test "${with_kerberos+set}" = set; then
1876 withval=$with_kerberos;
1877 else
1878 with_kerberos=no
1879 fi
1880
1881 if test "$with_kerberos" != no; then
1882 cat >>confdefs.h <<\_ACEOF
1883 #define KERBEROS 1
1884 _ACEOF
1885
1886 fi
1887
1888
1889
1890 # Check whether --with-kerberos5 was given.
1891 if test "${with_kerberos5+set}" = set; then
1892 withval=$with_kerberos5;
1893 else
1894 with_kerberos5=no
1895 fi
1896
1897 if test "${with_kerberos5}" != no; then
1898 if test "${with_kerberos}" = no; then
1899 with_kerberos=yes
1900 cat >>confdefs.h <<\_ACEOF
1901 #define KERBEROS 1
1902 _ACEOF
1903
1904 fi
1905
1906 cat >>confdefs.h <<\_ACEOF
1907 #define KERBEROS5 1
1908 _ACEOF
1909
1910 fi
1911
1912
1913 # Check whether --with-hesiod was given.
1914 if test "${with_hesiod+set}" = set; then
1915 withval=$with_hesiod;
1916 else
1917 with_hesiod=no
1918 fi
1919
1920 if test "$with_hesiod" != no; then
1921
1922 cat >>confdefs.h <<\_ACEOF
1923 #define HESIOD 1
1924 _ACEOF
1925
1926 fi
1927
1928
1929 # Check whether --with-sound was given.
1930 if test "${with_sound+set}" = set; then
1931 withval=$with_sound;
1932 else
1933 with_sound=yes
1934 fi
1935
1936
1937
1938 # Check whether --with-sync-input was given.
1939 if test "${with_sync_input+set}" = set; then
1940 withval=$with_sync_input;
1941 else
1942 with_sync_input=yes
1943 fi
1944
1945 if test "$with_sync_input" = yes; then
1946
1947 cat >>confdefs.h <<\_ACEOF
1948 #define SYNC_INPUT 1
1949 _ACEOF
1950
1951 fi
1952
1953
1954 # Check whether --with-x-toolkit was given.
1955 if test "${with_x_toolkit+set}" = set; then
1956 withval=$with_x_toolkit; case "${withval}" in
1957 y | ye | yes ) val=gtk ;;
1958 n | no ) val=no ;;
1959 l | lu | luc | luci | lucid ) val=lucid ;;
1960 a | at | ath | athe | athen | athena ) val=athena ;;
1961 m | mo | mot | moti | motif ) val=motif ;;
1962 g | gt | gtk ) val=gtk ;;
1963 * )
1964 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1965 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1966 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1967 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1968 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1969 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1970 { (exit 1); exit 1; }; }
1971 ;;
1972 esac
1973 with_x_toolkit=$val
1974
1975 fi
1976
1977
1978
1979 # Check whether --with-xpm was given.
1980 if test "${with_xpm+set}" = set; then
1981 withval=$with_xpm;
1982 else
1983 with_xpm=yes
1984 fi
1985
1986
1987 # Check whether --with-jpeg was given.
1988 if test "${with_jpeg+set}" = set; then
1989 withval=$with_jpeg;
1990 else
1991 with_jpeg=yes
1992 fi
1993
1994
1995 # Check whether --with-tiff was given.
1996 if test "${with_tiff+set}" = set; then
1997 withval=$with_tiff;
1998 else
1999 with_tiff=yes
2000 fi
2001
2002
2003 # Check whether --with-gif was given.
2004 if test "${with_gif+set}" = set; then
2005 withval=$with_gif;
2006 else
2007 with_gif=yes
2008 fi
2009
2010
2011 # Check whether --with-png was given.
2012 if test "${with_png+set}" = set; then
2013 withval=$with_png;
2014 else
2015 with_png=yes
2016 fi
2017
2018
2019 # Check whether --with-rsvg was given.
2020 if test "${with_rsvg+set}" = set; then
2021 withval=$with_rsvg;
2022 else
2023 with_rsvg=yes
2024 fi
2025
2026
2027
2028 # Check whether --with-freetype was given.
2029 if test "${with_freetype+set}" = set; then
2030 withval=$with_freetype;
2031 else
2032 with_freetype=yes
2033 fi
2034
2035
2036 # Check whether --with-xft was given.
2037 if test "${with_xft+set}" = set; then
2038 withval=$with_xft;
2039 else
2040 with_xft=yes
2041 fi
2042
2043
2044 # Check whether --with-libotf was given.
2045 if test "${with_libotf+set}" = set; then
2046 withval=$with_libotf;
2047 else
2048 with_libotf=yes
2049 fi
2050
2051
2052 # Check whether --with-m17n-flt was given.
2053 if test "${with_m17n_flt+set}" = set; then
2054 withval=$with_m17n_flt;
2055 else
2056 with_m17n_flt=yes
2057 fi
2058
2059
2060
2061 # Check whether --with-toolkit-scroll-bars was given.
2062 if test "${with_toolkit_scroll_bars+set}" = set; then
2063 withval=$with_toolkit_scroll_bars;
2064 else
2065 with_toolkit_scroll_bars=yes
2066 fi
2067
2068
2069 # Check whether --with-xaw3d was given.
2070 if test "${with_xaw3d+set}" = set; then
2071 withval=$with_xaw3d;
2072 else
2073 with_xaw3d=yes
2074 fi
2075
2076
2077 # Check whether --with-xim was given.
2078 if test "${with_xim+set}" = set; then
2079 withval=$with_xim;
2080 else
2081 with_xim=yes
2082 fi
2083
2084
2085 # Check whether --with-ns was given.
2086 if test "${with_ns+set}" = set; then
2087 withval=$with_ns;
2088 else
2089 with_ns=no
2090 fi
2091
2092
2093
2094 # Check whether --with-gpm was given.
2095 if test "${with_gpm+set}" = set; then
2096 withval=$with_gpm;
2097 else
2098 with_gpm=yes
2099 fi
2100
2101
2102 # Check whether --with-dbus was given.
2103 if test "${with_dbus+set}" = set; then
2104 withval=$with_dbus;
2105 else
2106 with_dbus=yes
2107 fi
2108
2109
2110 ## For the times when you want to build Emacs but don't have
2111 ## a suitable makeinfo, and can live without the manuals.
2112
2113 # Check whether --with-makeinfo was given.
2114 if test "${with_makeinfo+set}" = set; then
2115 withval=$with_makeinfo;
2116 else
2117 with_makeinfo=yes
2118 fi
2119
2120
2121
2122 # Check whether --with-gtk was given.
2123 if test "${with_gtk+set}" = set; then
2124 withval=$with_gtk; { { echo "$as_me:$LINENO: error: --with-gtk has been removed. Use --with-x-toolkit to
2125 specify a toolkit." >&5
2126 echo "$as_me: error: --with-gtk has been removed. Use --with-x-toolkit to
2127 specify a toolkit." >&2;}
2128 { (exit 1); exit 1; }; }
2129 fi
2130
2131
2132
2133 # Check whether --with-gcc was given.
2134 if test "${with_gcc+set}" = set; then
2135 withval=$with_gcc; { { echo "$as_me:$LINENO: error: --with-gcc has been removed. Set the \`CC' environment
2136 variable to specify a compiler." >&5
2137 echo "$as_me: error: --with-gcc has been removed. Set the \`CC' environment
2138 variable to specify a compiler." >&2;}
2139 { (exit 1); exit 1; }; }
2140 fi
2141
2142
2143
2144 # Check whether --with-pkg-config-prog was given.
2145 if test "${with_pkg_config_prog+set}" = set; then
2146 withval=$with_pkg_config_prog;
2147 fi
2148
2149 if test "X${with_pkg_config_prog}" != X; then
2150 if test "${with_pkg_config_prog}" != yes; then
2151 PKG_CONFIG="${with_pkg_config_prog}"
2152 fi
2153 fi
2154
2155 # Check whether --enable-cocoa-experimental-ctrl-g was given.
2156 if test "${enable_cocoa_experimental_ctrl_g+set}" = set; then
2157 enableval=$enable_cocoa_experimental_ctrl_g; EN_COCOA_EXPERIMENTAL_CTRL_G=yes
2158 else
2159 EN_COCOA_EXPERIMENTAL_CTRL_G=no
2160 fi
2161
2162
2163 # Check whether --enable-ns-self-contained was given.
2164 if test "${enable_ns_self_contained+set}" = set; then
2165 enableval=$enable_ns_self_contained; EN_NS_SELF_CONTAINED=no
2166 else
2167 EN_NS_SELF_CONTAINED=yes
2168 fi
2169
2170
2171 # Check whether --enable-asserts was given.
2172 if test "${enable_asserts+set}" = set; then
2173 enableval=$enable_asserts; USE_XASSERTS=$enableval
2174 else
2175 USE_XASSERTS=no
2176 fi
2177
2178
2179 # Check whether --enable-maintainer-mode was given.
2180 if test "${enable_maintainer_mode+set}" = set; then
2181 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2182 else
2183 USE_MAINTAINER_MODE=no
2184 fi
2185
2186 if test $USE_MAINTAINER_MODE = yes; then
2187 MAINT=
2188 else
2189 MAINT=#
2190 fi
2191
2192
2193 # Check whether --enable-locallisppath was given.
2194 if test "${enable_locallisppath+set}" = set; then
2195 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2196 locallisppath=
2197 elif test "${enableval}" != "yes"; then
2198 locallisppath=${enableval}
2199 fi
2200 fi
2201
2202
2203 #### Make srcdir absolute, if it isn't already. It's important to
2204 #### avoid running the path through pwd unnecessarily, since pwd can
2205 #### give you automounter prefixes, which can go away. We do all this
2206 #### so Emacs can find its files when run uninstalled.
2207 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2208 unset CDPATH
2209 case "${srcdir}" in
2210 /* ) ;;
2211 . )
2212 ## We may be able to use the $PWD environment variable to make this
2213 ## absolute. But sometimes PWD is inaccurate.
2214 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2215 ## but that tested only for a well-formed and valid PWD,
2216 ## it did not object when PWD was well-formed and valid but just wrong.
2217 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2218 then
2219 srcdir="$PWD"
2220 else
2221 srcdir="`(cd ${srcdir}; pwd)`"
2222 fi
2223 ;;
2224 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2225 esac
2226
2227 #### Check if the source directory already has a configured system in it.
2228 if test `pwd` != `(cd ${srcdir} && pwd)` \
2229 && test -f "${srcdir}/src/config.h" ; then
2230 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2231 as a build directory right now; it has been configured in its own
2232 right. To configure in another directory as well, you MUST
2233 use GNU make. If you do not have GNU make, then you must
2234 now do \`make distclean' in ${srcdir},
2235 and then run $0 again." >&5
2236 echo "$as_me: 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." >&2;}
2242 fi
2243
2244 #### Given the configuration name, set machfile and opsysfile to the
2245 #### names of the m/*.h and s/*.h files we should use.
2246
2247 ### Canonicalize the configuration name.
2248
2249 ac_aux_dir=
2250 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2251 if test -f "$ac_dir/install-sh"; then
2252 ac_aux_dir=$ac_dir
2253 ac_install_sh="$ac_aux_dir/install-sh -c"
2254 break
2255 elif test -f "$ac_dir/install.sh"; then
2256 ac_aux_dir=$ac_dir
2257 ac_install_sh="$ac_aux_dir/install.sh -c"
2258 break
2259 elif test -f "$ac_dir/shtool"; then
2260 ac_aux_dir=$ac_dir
2261 ac_install_sh="$ac_aux_dir/shtool install -c"
2262 break
2263 fi
2264 done
2265 if test -z "$ac_aux_dir"; then
2266 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2267 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2268 { (exit 1); exit 1; }; }
2269 fi
2270
2271 # These three variables are undocumented and unsupported,
2272 # and are intended to be withdrawn in a future Autoconf release.
2273 # They can cause serious problems if a builder's source tree is in a directory
2274 # whose full name contains unusual characters.
2275 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2276 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2277 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2278
2279
2280 # Make sure we can run config.sub.
2281 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2282 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2283 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2284 { (exit 1); exit 1; }; }
2285
2286 { echo "$as_me:$LINENO: checking build system type" >&5
2287 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2288 if test "${ac_cv_build+set}" = set; then
2289 echo $ECHO_N "(cached) $ECHO_C" >&6
2290 else
2291 ac_build_alias=$build_alias
2292 test "x$ac_build_alias" = x &&
2293 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2294 test "x$ac_build_alias" = x &&
2295 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2296 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2297 { (exit 1); exit 1; }; }
2298 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2299 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2300 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2301 { (exit 1); exit 1; }; }
2302
2303 fi
2304 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2305 echo "${ECHO_T}$ac_cv_build" >&6; }
2306 case $ac_cv_build in
2307 *-*-*) ;;
2308 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2309 echo "$as_me: error: invalid value of canonical build" >&2;}
2310 { (exit 1); exit 1; }; };;
2311 esac
2312 build=$ac_cv_build
2313 ac_save_IFS=$IFS; IFS='-'
2314 set x $ac_cv_build
2315 shift
2316 build_cpu=$1
2317 build_vendor=$2
2318 shift; shift
2319 # Remember, the first character of IFS is used to create $*,
2320 # except with old shells:
2321 build_os=$*
2322 IFS=$ac_save_IFS
2323 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2324
2325
2326 { echo "$as_me:$LINENO: checking host system type" >&5
2327 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2328 if test "${ac_cv_host+set}" = set; then
2329 echo $ECHO_N "(cached) $ECHO_C" >&6
2330 else
2331 if test "x$host_alias" = x; then
2332 ac_cv_host=$ac_cv_build
2333 else
2334 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2335 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2336 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2337 { (exit 1); exit 1; }; }
2338 fi
2339
2340 fi
2341 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2342 echo "${ECHO_T}$ac_cv_host" >&6; }
2343 case $ac_cv_host in
2344 *-*-*) ;;
2345 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2346 echo "$as_me: error: invalid value of canonical host" >&2;}
2347 { (exit 1); exit 1; }; };;
2348 esac
2349 host=$ac_cv_host
2350 ac_save_IFS=$IFS; IFS='-'
2351 set x $ac_cv_host
2352 shift
2353 host_cpu=$1
2354 host_vendor=$2
2355 shift; shift
2356 # Remember, the first character of IFS is used to create $*,
2357 # except with old shells:
2358 host_os=$*
2359 IFS=$ac_save_IFS
2360 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2361
2362
2363 canonical=$host
2364 configuration=${host_alias-${build_alias-$host}}
2365
2366
2367
2368 ### If you add support for a new configuration, add code to this
2369 ### switch statement to recognize your configuration name and select
2370 ### the appropriate operating system and machine description files.
2371
2372 ### You would hope that you could choose an m/*.h file pretty much
2373 ### based on the machine portion of the configuration name, and an s-
2374 ### file based on the operating system portion. However, it turns out
2375 ### that each m/*.h file is pretty manufacturer-specific - for
2376 ### example mips.h is MIPS
2377 ### So we basically have to have a special case for each
2378 ### configuration name.
2379 ###
2380 ### As far as handling version numbers on operating systems is
2381 ### concerned, make sure things will fail in a fixable way. If
2382 ### /etc/MACHINES doesn't say anything about version numbers, be
2383 ### prepared to handle anything reasonably. If version numbers
2384 ### matter, be sure /etc/MACHINES says something about it.
2385 ###
2386 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2387 ### "System V Release 4"; he writes, "The old convention encouraged
2388 ### confusion between `system' and `release' levels'."
2389
2390 machine='' opsys='' unported=no
2391 case "${canonical}" in
2392
2393 ## FreeBSD ports
2394 *-*-freebsd* )
2395 opsys=freebsd
2396 case "${canonical}" in
2397 alpha*-*-freebsd*) machine=alpha ;;
2398 arm*-*-freebsd*) machine=arm ;;
2399 ia64-*-freebsd*) machine=ia64 ;;
2400 sparc-*-freebsd*) machine=sparc ;;
2401 sparc64-*-freebsd*) machine=sparc ;;
2402 powerpc-*-freebsd*) machine=macppc ;;
2403 i[3456]86-*-freebsd*) machine=intel386 ;;
2404 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2405 esac
2406 ;;
2407
2408 ## FreeBSD kernel + glibc based userland
2409 *-*-kfreebsd*gnu* )
2410 opsys=gnu-kfreebsd
2411 case "${canonical}" in
2412 alpha*-*-kfreebsd*) machine=alpha ;;
2413 ia64-*-kfreebsd*) machine=ia64 ;;
2414 sparc-*-kfreebsd*) machine=sparc ;;
2415 sparc64-*-kfreebsd*) machine=sparc ;;
2416 powerpc-*-kfreebsd*) machine=macppc ;;
2417 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2418 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2419 esac
2420 ;;
2421
2422 ## NetBSD ports
2423 *-*-netbsd* )
2424 opsys=netbsd
2425 if test -f /usr/lib/crti.o; then
2426
2427 cat >>confdefs.h <<\_ACEOF
2428 #define HAVE_CRTIN
2429 _ACEOF
2430
2431 fi
2432
2433 case "${canonical}" in
2434 alpha*-*-netbsd*) machine=alpha ;;
2435 i[3456]86-*-netbsd*) machine=intel386 ;;
2436 powerpc-*-netbsd*) machine=macppc ;;
2437 sparc*-*-netbsd*) machine=sparc ;;
2438 vax-*-netbsd*) machine=vax ;;
2439 arm-*-netbsd*) machine=arm ;;
2440 x86_64-*-netbsd*) machine=amdx86-64 ;;
2441 hppa-*-netbsd*) machine=hp800 ;;
2442 esac
2443 ;;
2444
2445 ## OpenBSD ports
2446 *-*-openbsd* )
2447 opsys=openbsd
2448 case "${canonical}" in
2449 alpha*-*-openbsd*) machine=alpha ;;
2450 arm-*-openbsd*) machine=arm ;;
2451 i386-*-openbsd*) machine=intel386 ;;
2452 powerpc-*-openbsd*) machine=macppc ;;
2453 sparc*-*-openbsd*) machine=sparc ;;
2454 vax-*-openbsd*) machine=vax ;;
2455 x86_64-*-openbsd*) machine=amdx86-64 ;;
2456 esac
2457 ;;
2458
2459 ## LynxOS ports
2460 *-*-lynxos* )
2461 opsys=lynxos
2462 case "${canonical}" in
2463 i[3456]86-*-lynxos*) machine=intel386 ;;
2464 powerpc-*-lynxos*) machine=powerpc ;;
2465 esac
2466 ;;
2467
2468 alpha*-*-linux-gnu* )
2469 machine=alpha opsys=gnu-linux
2470 ;;
2471
2472 arm*-*-linux-gnu* )
2473 machine=arm opsys=gnu-linux
2474 ;;
2475
2476 ## Apple Darwin / Mac OS X
2477 *-apple-darwin* )
2478 case "${canonical}" in
2479 i[3456]86-* ) machine=intel386 ;;
2480 powerpc-* ) machine=macppc ;;
2481 * ) unported=yes ;;
2482 esac
2483 opsys=darwin
2484 # Define CPP as follows to make autoconf work correctly.
2485 CPP="${CC-cc} -E -no-cpp-precomp"
2486 # Use fink packages if available.
2487 if test -d /sw/include && test -d /sw/lib; then
2488 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2489 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2490 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2491 fi
2492 ;;
2493
2494 ## HP 9000 series 700 and 800, running HP/UX
2495 hppa*-hp-hpux10.2* )
2496 machine=hp800 opsys=hpux10-20
2497 ;;
2498 hppa*-hp-hpux1[1-9]* )
2499 machine=hp800 opsys=hpux11
2500 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2501 ;;
2502
2503 hppa*-*-linux-gnu* )
2504 machine=hp800 opsys=gnu-linux
2505 ;;
2506
2507 ## IBM machines
2508 s390-*-linux-gnu* )
2509 machine=ibms390 opsys=gnu-linux
2510 ;;
2511 s390x-*-linux-gnu* )
2512 machine=ibms390x opsys=gnu-linux
2513 ;;
2514 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2515 machine=ibmrs6000 opsys=aix4-2
2516 ;;
2517 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2518 machine=ibmrs6000 opsys=aix4-2
2519 ;;
2520 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2521 machine=ibmrs6000 opsys=aix4-2
2522 ;;
2523 rs6000-ibm-aix5* | powerpc-ibm-aix6* )
2524 machine=ibmrs6000 opsys=aix4-2
2525 ;;
2526
2527 ## Macintosh PowerPC
2528 powerpc*-*-linux-gnu* )
2529 machine=macppc opsys=gnu-linux
2530 ;;
2531
2532 ## Silicon Graphics machines
2533 ## Iris 4D
2534 mips-sgi-irix6.5 )
2535 machine=iris4d opsys=irix6-5
2536 # Without defining _LANGUAGE_C, things get masked out in the headers
2537 # so that, for instance, grepping for `free' in stdlib.h fails and
2538 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2539 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2540 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2541 ;;
2542
2543 ## Suns
2544 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2545 machine=sparc opsys=gnu-linux
2546 ;;
2547
2548 *-sun-solaris* \
2549 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2550 | rs6000-*-solaris2*)
2551 case "${canonical}" in
2552 i[3456]86-*-* ) machine=intel386 ;;
2553 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2554 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2555 sparc* ) machine=sparc ;;
2556 * ) unported=yes ;;
2557 esac
2558 case "${canonical}" in
2559 *-sunos5.3* | *-solaris2.3* )
2560 opsys=sol2-3
2561 NON_GNU_CPP=/usr/ccs/lib/cpp
2562 ;;
2563 *-sunos5.4* | *-solaris2.4* )
2564 opsys=sol2-4
2565 NON_GNU_CPP=/usr/ccs/lib/cpp
2566 RANLIB="ar -ts"
2567 ;;
2568 *-sunos5.5* | *-solaris2.5* )
2569 opsys=sol2-5
2570 NON_GNU_CPP=/usr/ccs/lib/cpp
2571 RANLIB="ar -ts"
2572 ;;
2573 *-sunos5.6* | *-solaris2.6* )
2574 opsys=sol2-6
2575 NON_GNU_CPP=/usr/ccs/lib/cpp
2576 RANLIB="ar -ts"
2577 ;;
2578 *-sunos5* | *-solaris* )
2579 opsys=sol2-6
2580 emacs_check_sunpro_c=yes
2581 NON_GNU_CPP=/usr/ccs/lib/cpp
2582 ;;
2583 esac
2584 ## Watch out for a compiler that we know will not work.
2585 case "${canonical}" in
2586 *-solaris* | *-sunos5* )
2587 if [ "x$CC" = x/usr/ucb/cc ]; then
2588 ## /usr/ucb/cc doesn't work;
2589 ## we should find some other compiler that does work.
2590 unset CC
2591 fi
2592 ;;
2593 *) ;;
2594 esac
2595 ;;
2596
2597 ## Vaxen.
2598 vax-dec-* )
2599 machine=vax
2600 case "${canonical}" in
2601 *-vms* ) opsys=vms ;;
2602 * ) unported=yes
2603 esac
2604 ;;
2605
2606 ## IA-64
2607 ia64*-*-linux* )
2608 machine=ia64 opsys=gnu-linux
2609 ;;
2610
2611 ## Intel 386 machines where we don't care about the manufacturer
2612 i[3456]86-*-* )
2613 machine=intel386
2614 case "${canonical}" in
2615 *-cygwin ) opsys=cygwin ;;
2616 *-darwin* ) opsys=darwin
2617 CPP="${CC-cc} -E -no-cpp-precomp"
2618 ;;
2619 *-linux-gnu* ) opsys=gnu-linux ;;
2620 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2621 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2622 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2623 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2624 esac
2625 ;;
2626
2627 ## m68k Linux-based GNU system
2628 m68k-*-linux-gnu* )
2629 machine=m68k opsys=gnu-linux
2630 ;;
2631
2632 ## Mips Linux-based GNU system
2633 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2634 machine=mips opsys=gnu-linux
2635 ;;
2636
2637 ## AMD x86-64 Linux-based GNU system
2638 x86_64-*-linux-gnu* )
2639 machine=amdx86-64 opsys=gnu-linux
2640 ;;
2641
2642 ## Tensilica Xtensa Linux-based GNU system
2643 xtensa*-*-linux-gnu* )
2644 machine=xtensa opsys=gnu-linux
2645 ;;
2646
2647 * )
2648 unported=yes
2649 ;;
2650 esac
2651
2652 ### If the code above didn't choose an operating system, just choose
2653 ### an operating system based on the configuration name. You really
2654 ### only want to use this when you have no idea what the right
2655 ### operating system is; if you know what operating systems a machine
2656 ### runs, it's cleaner to make it explicit in the case statement
2657 ### above.
2658 if test x"${opsys}" = x; then
2659 case "${canonical}" in
2660 *-gnu* ) opsys=gnu ;;
2661 *-sysv4.2uw* ) opsys=unixware ;;
2662 *-sysv5uw* ) opsys=unixware ;;
2663 *-sysv5OpenUNIX* ) opsys=unixware ;;
2664 *-sysv4.1* | *-sysvr4.1* )
2665 NON_GNU_CPP=/usr/lib/cpp
2666 opsys=usg5-4 ;;
2667 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2668 if [ x$NON_GNU_CPP = x ]; then
2669 if [ -f /usr/ccs/lib/cpp ]; then
2670 NON_GNU_CPP=/usr/ccs/lib/cpp
2671 else
2672 NON_GNU_CPP=/lib/cpp
2673 fi
2674 fi
2675 opsys=usg5-4-2 ;;
2676 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2677 * )
2678 unported=yes
2679 ;;
2680 esac
2681 fi
2682
2683
2684
2685 if test $unported = yes; then
2686 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2687 Check \`etc/MACHINES' for recognized configuration names." >&5
2688 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2689 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2690 { (exit 1); exit 1; }; }
2691 fi
2692
2693 machfile="m/${machine}.h"
2694 opsysfile="s/${opsys}.h"
2695
2696
2697 #### Choose a compiler.
2698 test -n "$CC" && cc_specified=yes
2699
2700 # Save the value of CFLAGS that the user specified.
2701 SPECIFIED_CFLAGS="$CFLAGS"
2702
2703 ac_ext=c
2704 ac_cpp='$CPP $CPPFLAGS'
2705 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2706 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2707 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2708 if test -n "$ac_tool_prefix"; then
2709 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2710 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2711 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2712 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2713 if test "${ac_cv_prog_CC+set}" = set; then
2714 echo $ECHO_N "(cached) $ECHO_C" >&6
2715 else
2716 if test -n "$CC"; then
2717 ac_cv_prog_CC="$CC" # Let the user override the test.
2718 else
2719 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2720 for as_dir in $PATH
2721 do
2722 IFS=$as_save_IFS
2723 test -z "$as_dir" && as_dir=.
2724 for ac_exec_ext in '' $ac_executable_extensions; do
2725 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2726 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2727 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2728 break 2
2729 fi
2730 done
2731 done
2732 IFS=$as_save_IFS
2733
2734 fi
2735 fi
2736 CC=$ac_cv_prog_CC
2737 if test -n "$CC"; then
2738 { echo "$as_me:$LINENO: result: $CC" >&5
2739 echo "${ECHO_T}$CC" >&6; }
2740 else
2741 { echo "$as_me:$LINENO: result: no" >&5
2742 echo "${ECHO_T}no" >&6; }
2743 fi
2744
2745
2746 fi
2747 if test -z "$ac_cv_prog_CC"; then
2748 ac_ct_CC=$CC
2749 # Extract the first word of "gcc", so it can be a program name with args.
2750 set dummy gcc; ac_word=$2
2751 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2752 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2753 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2754 echo $ECHO_N "(cached) $ECHO_C" >&6
2755 else
2756 if test -n "$ac_ct_CC"; then
2757 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2758 else
2759 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2760 for as_dir in $PATH
2761 do
2762 IFS=$as_save_IFS
2763 test -z "$as_dir" && as_dir=.
2764 for ac_exec_ext in '' $ac_executable_extensions; do
2765 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2766 ac_cv_prog_ac_ct_CC="gcc"
2767 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2768 break 2
2769 fi
2770 done
2771 done
2772 IFS=$as_save_IFS
2773
2774 fi
2775 fi
2776 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2777 if test -n "$ac_ct_CC"; then
2778 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2779 echo "${ECHO_T}$ac_ct_CC" >&6; }
2780 else
2781 { echo "$as_me:$LINENO: result: no" >&5
2782 echo "${ECHO_T}no" >&6; }
2783 fi
2784
2785 if test "x$ac_ct_CC" = x; then
2786 CC=""
2787 else
2788 case $cross_compiling:$ac_tool_warned in
2789 yes:)
2790 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2791 whose name does not start with the host triplet. If you think this
2792 configuration is useful to you, please write to autoconf@gnu.org." >&5
2793 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2794 whose name does not start with the host triplet. If you think this
2795 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2796 ac_tool_warned=yes ;;
2797 esac
2798 CC=$ac_ct_CC
2799 fi
2800 else
2801 CC="$ac_cv_prog_CC"
2802 fi
2803
2804 if test -z "$CC"; then
2805 if test -n "$ac_tool_prefix"; then
2806 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2807 set dummy ${ac_tool_prefix}cc; ac_word=$2
2808 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2809 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2810 if test "${ac_cv_prog_CC+set}" = set; then
2811 echo $ECHO_N "(cached) $ECHO_C" >&6
2812 else
2813 if test -n "$CC"; then
2814 ac_cv_prog_CC="$CC" # Let the user override the test.
2815 else
2816 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2817 for as_dir in $PATH
2818 do
2819 IFS=$as_save_IFS
2820 test -z "$as_dir" && as_dir=.
2821 for ac_exec_ext in '' $ac_executable_extensions; do
2822 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2823 ac_cv_prog_CC="${ac_tool_prefix}cc"
2824 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2825 break 2
2826 fi
2827 done
2828 done
2829 IFS=$as_save_IFS
2830
2831 fi
2832 fi
2833 CC=$ac_cv_prog_CC
2834 if test -n "$CC"; then
2835 { echo "$as_me:$LINENO: result: $CC" >&5
2836 echo "${ECHO_T}$CC" >&6; }
2837 else
2838 { echo "$as_me:$LINENO: result: no" >&5
2839 echo "${ECHO_T}no" >&6; }
2840 fi
2841
2842
2843 fi
2844 fi
2845 if test -z "$CC"; then
2846 # Extract the first word of "cc", so it can be a program name with args.
2847 set dummy cc; ac_word=$2
2848 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2849 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2850 if test "${ac_cv_prog_CC+set}" = set; then
2851 echo $ECHO_N "(cached) $ECHO_C" >&6
2852 else
2853 if test -n "$CC"; then
2854 ac_cv_prog_CC="$CC" # Let the user override the test.
2855 else
2856 ac_prog_rejected=no
2857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2858 for as_dir in $PATH
2859 do
2860 IFS=$as_save_IFS
2861 test -z "$as_dir" && as_dir=.
2862 for ac_exec_ext in '' $ac_executable_extensions; do
2863 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2864 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2865 ac_prog_rejected=yes
2866 continue
2867 fi
2868 ac_cv_prog_CC="cc"
2869 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2870 break 2
2871 fi
2872 done
2873 done
2874 IFS=$as_save_IFS
2875
2876 if test $ac_prog_rejected = yes; then
2877 # We found a bogon in the path, so make sure we never use it.
2878 set dummy $ac_cv_prog_CC
2879 shift
2880 if test $# != 0; then
2881 # We chose a different compiler from the bogus one.
2882 # However, it has the same basename, so the bogon will be chosen
2883 # first if we set CC to just the basename; use the full file name.
2884 shift
2885 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2886 fi
2887 fi
2888 fi
2889 fi
2890 CC=$ac_cv_prog_CC
2891 if test -n "$CC"; then
2892 { echo "$as_me:$LINENO: result: $CC" >&5
2893 echo "${ECHO_T}$CC" >&6; }
2894 else
2895 { echo "$as_me:$LINENO: result: no" >&5
2896 echo "${ECHO_T}no" >&6; }
2897 fi
2898
2899
2900 fi
2901 if test -z "$CC"; then
2902 if test -n "$ac_tool_prefix"; then
2903 for ac_prog in cl.exe
2904 do
2905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2907 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2908 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2909 if test "${ac_cv_prog_CC+set}" = set; then
2910 echo $ECHO_N "(cached) $ECHO_C" >&6
2911 else
2912 if test -n "$CC"; then
2913 ac_cv_prog_CC="$CC" # Let the user override the test.
2914 else
2915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2916 for as_dir in $PATH
2917 do
2918 IFS=$as_save_IFS
2919 test -z "$as_dir" && as_dir=.
2920 for ac_exec_ext in '' $ac_executable_extensions; do
2921 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2922 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2923 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2924 break 2
2925 fi
2926 done
2927 done
2928 IFS=$as_save_IFS
2929
2930 fi
2931 fi
2932 CC=$ac_cv_prog_CC
2933 if test -n "$CC"; then
2934 { echo "$as_me:$LINENO: result: $CC" >&5
2935 echo "${ECHO_T}$CC" >&6; }
2936 else
2937 { echo "$as_me:$LINENO: result: no" >&5
2938 echo "${ECHO_T}no" >&6; }
2939 fi
2940
2941
2942 test -n "$CC" && break
2943 done
2944 fi
2945 if test -z "$CC"; then
2946 ac_ct_CC=$CC
2947 for ac_prog in cl.exe
2948 do
2949 # Extract the first word of "$ac_prog", so it can be a program name with args.
2950 set dummy $ac_prog; ac_word=$2
2951 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2952 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2953 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2954 echo $ECHO_N "(cached) $ECHO_C" >&6
2955 else
2956 if test -n "$ac_ct_CC"; then
2957 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2958 else
2959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2960 for as_dir in $PATH
2961 do
2962 IFS=$as_save_IFS
2963 test -z "$as_dir" && as_dir=.
2964 for ac_exec_ext in '' $ac_executable_extensions; do
2965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2966 ac_cv_prog_ac_ct_CC="$ac_prog"
2967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 break 2
2969 fi
2970 done
2971 done
2972 IFS=$as_save_IFS
2973
2974 fi
2975 fi
2976 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2977 if test -n "$ac_ct_CC"; then
2978 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2979 echo "${ECHO_T}$ac_ct_CC" >&6; }
2980 else
2981 { echo "$as_me:$LINENO: result: no" >&5
2982 echo "${ECHO_T}no" >&6; }
2983 fi
2984
2985
2986 test -n "$ac_ct_CC" && break
2987 done
2988
2989 if test "x$ac_ct_CC" = x; then
2990 CC=""
2991 else
2992 case $cross_compiling:$ac_tool_warned in
2993 yes:)
2994 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2995 whose name does not start with the host triplet. If you think this
2996 configuration is useful to you, please write to autoconf@gnu.org." >&5
2997 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2998 whose name does not start with the host triplet. If you think this
2999 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3000 ac_tool_warned=yes ;;
3001 esac
3002 CC=$ac_ct_CC
3003 fi
3004 fi
3005
3006 fi
3007
3008
3009 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3010 See \`config.log' for more details." >&5
3011 echo "$as_me: error: no acceptable C compiler found in \$PATH
3012 See \`config.log' for more details." >&2;}
3013 { (exit 1); exit 1; }; }
3014
3015 # Provide some information about the compiler.
3016 echo "$as_me:$LINENO: checking for C compiler version" >&5
3017 ac_compiler=`set X $ac_compile; echo $2`
3018 { (ac_try="$ac_compiler --version >&5"
3019 case "(($ac_try" in
3020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021 *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024 (eval "$ac_compiler --version >&5") 2>&5
3025 ac_status=$?
3026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027 (exit $ac_status); }
3028 { (ac_try="$ac_compiler -v >&5"
3029 case "(($ac_try" in
3030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3031 *) ac_try_echo=$ac_try;;
3032 esac
3033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3034 (eval "$ac_compiler -v >&5") 2>&5
3035 ac_status=$?
3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3037 (exit $ac_status); }
3038 { (ac_try="$ac_compiler -V >&5"
3039 case "(($ac_try" in
3040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3041 *) ac_try_echo=$ac_try;;
3042 esac
3043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3044 (eval "$ac_compiler -V >&5") 2>&5
3045 ac_status=$?
3046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3047 (exit $ac_status); }
3048
3049 cat >conftest.$ac_ext <<_ACEOF
3050 /* confdefs.h. */
3051 _ACEOF
3052 cat confdefs.h >>conftest.$ac_ext
3053 cat >>conftest.$ac_ext <<_ACEOF
3054 /* end confdefs.h. */
3055
3056 int
3057 main ()
3058 {
3059
3060 ;
3061 return 0;
3062 }
3063 _ACEOF
3064 ac_clean_files_save=$ac_clean_files
3065 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3066 # Try to create an executable without -o first, disregard a.out.
3067 # It will help us diagnose broken compilers, and finding out an intuition
3068 # of exeext.
3069 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3070 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3071 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3072 #
3073 # List of possible output files, starting from the most likely.
3074 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3075 # only as a last resort. b.out is created by i960 compilers.
3076 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3077 #
3078 # The IRIX 6 linker writes into existing files which may not be
3079 # executable, retaining their permissions. Remove them first so a
3080 # subsequent execution test works.
3081 ac_rmfiles=
3082 for ac_file in $ac_files
3083 do
3084 case $ac_file in
3085 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3086 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3087 esac
3088 done
3089 rm -f $ac_rmfiles
3090
3091 if { (ac_try="$ac_link_default"
3092 case "(($ac_try" in
3093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3094 *) ac_try_echo=$ac_try;;
3095 esac
3096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3097 (eval "$ac_link_default") 2>&5
3098 ac_status=$?
3099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3100 (exit $ac_status); }; then
3101 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3102 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3103 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3104 # so that the user can short-circuit this test for compilers unknown to
3105 # Autoconf.
3106 for ac_file in $ac_files ''
3107 do
3108 test -f "$ac_file" || continue
3109 case $ac_file in
3110 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3111 ;;
3112 [ab].out )
3113 # We found the default executable, but exeext='' is most
3114 # certainly right.
3115 break;;
3116 *.* )
3117 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3118 then :; else
3119 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3120 fi
3121 # We set ac_cv_exeext here because the later test for it is not
3122 # safe: cross compilers may not add the suffix if given an `-o'
3123 # argument, so we may need to know it at that point already.
3124 # Even if this section looks crufty: it has the advantage of
3125 # actually working.
3126 break;;
3127 * )
3128 break;;
3129 esac
3130 done
3131 test "$ac_cv_exeext" = no && ac_cv_exeext=
3132
3133 else
3134 ac_file=''
3135 fi
3136
3137 { echo "$as_me:$LINENO: result: $ac_file" >&5
3138 echo "${ECHO_T}$ac_file" >&6; }
3139 if test -z "$ac_file"; then
3140 echo "$as_me: failed program was:" >&5
3141 sed 's/^/| /' conftest.$ac_ext >&5
3142
3143 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3144 See \`config.log' for more details." >&5
3145 echo "$as_me: error: C compiler cannot create executables
3146 See \`config.log' for more details." >&2;}
3147 { (exit 77); exit 77; }; }
3148 fi
3149
3150 ac_exeext=$ac_cv_exeext
3151
3152 # Check that the compiler produces executables we can run. If not, either
3153 # the compiler is broken, or we cross compile.
3154 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3155 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3156 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3157 # If not cross compiling, check that we can run a simple program.
3158 if test "$cross_compiling" != yes; then
3159 if { ac_try='./$ac_file'
3160 { (case "(($ac_try" in
3161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3162 *) ac_try_echo=$ac_try;;
3163 esac
3164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3165 (eval "$ac_try") 2>&5
3166 ac_status=$?
3167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3168 (exit $ac_status); }; }; then
3169 cross_compiling=no
3170 else
3171 if test "$cross_compiling" = maybe; then
3172 cross_compiling=yes
3173 else
3174 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3175 If you meant to cross compile, use \`--host'.
3176 See \`config.log' for more details." >&5
3177 echo "$as_me: error: cannot run C compiled programs.
3178 If you meant to cross compile, use \`--host'.
3179 See \`config.log' for more details." >&2;}
3180 { (exit 1); exit 1; }; }
3181 fi
3182 fi
3183 fi
3184 { echo "$as_me:$LINENO: result: yes" >&5
3185 echo "${ECHO_T}yes" >&6; }
3186
3187 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3188 ac_clean_files=$ac_clean_files_save
3189 # Check that the compiler produces executables we can run. If not, either
3190 # the compiler is broken, or we cross compile.
3191 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3192 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3193 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3194 echo "${ECHO_T}$cross_compiling" >&6; }
3195
3196 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3197 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3198 if { (ac_try="$ac_link"
3199 case "(($ac_try" in
3200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3201 *) ac_try_echo=$ac_try;;
3202 esac
3203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3204 (eval "$ac_link") 2>&5
3205 ac_status=$?
3206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3207 (exit $ac_status); }; then
3208 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3209 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3210 # work properly (i.e., refer to `conftest.exe'), while it won't with
3211 # `rm'.
3212 for ac_file in conftest.exe conftest conftest.*; do
3213 test -f "$ac_file" || continue
3214 case $ac_file in
3215 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3216 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3217 break;;
3218 * ) break;;
3219 esac
3220 done
3221 else
3222 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3223 See \`config.log' for more details." >&5
3224 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3225 See \`config.log' for more details." >&2;}
3226 { (exit 1); exit 1; }; }
3227 fi
3228
3229 rm -f conftest$ac_cv_exeext
3230 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3231 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3232
3233 rm -f conftest.$ac_ext
3234 EXEEXT=$ac_cv_exeext
3235 ac_exeext=$EXEEXT
3236 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3237 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3238 if test "${ac_cv_objext+set}" = set; then
3239 echo $ECHO_N "(cached) $ECHO_C" >&6
3240 else
3241 cat >conftest.$ac_ext <<_ACEOF
3242 /* confdefs.h. */
3243 _ACEOF
3244 cat confdefs.h >>conftest.$ac_ext
3245 cat >>conftest.$ac_ext <<_ACEOF
3246 /* end confdefs.h. */
3247
3248 int
3249 main ()
3250 {
3251
3252 ;
3253 return 0;
3254 }
3255 _ACEOF
3256 rm -f conftest.o conftest.obj
3257 if { (ac_try="$ac_compile"
3258 case "(($ac_try" in
3259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3260 *) ac_try_echo=$ac_try;;
3261 esac
3262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3263 (eval "$ac_compile") 2>&5
3264 ac_status=$?
3265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3266 (exit $ac_status); }; then
3267 for ac_file in conftest.o conftest.obj conftest.*; do
3268 test -f "$ac_file" || continue;
3269 case $ac_file in
3270 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3271 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3272 break;;
3273 esac
3274 done
3275 else
3276 echo "$as_me: failed program was:" >&5
3277 sed 's/^/| /' conftest.$ac_ext >&5
3278
3279 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3280 See \`config.log' for more details." >&5
3281 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3282 See \`config.log' for more details." >&2;}
3283 { (exit 1); exit 1; }; }
3284 fi
3285
3286 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3287 fi
3288 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3289 echo "${ECHO_T}$ac_cv_objext" >&6; }
3290 OBJEXT=$ac_cv_objext
3291 ac_objext=$OBJEXT
3292 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3293 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3294 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 cat >conftest.$ac_ext <<_ACEOF
3298 /* confdefs.h. */
3299 _ACEOF
3300 cat confdefs.h >>conftest.$ac_ext
3301 cat >>conftest.$ac_ext <<_ACEOF
3302 /* end confdefs.h. */
3303
3304 int
3305 main ()
3306 {
3307 #ifndef __GNUC__
3308 choke me
3309 #endif
3310
3311 ;
3312 return 0;
3313 }
3314 _ACEOF
3315 rm -f conftest.$ac_objext
3316 if { (ac_try="$ac_compile"
3317 case "(($ac_try" in
3318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3319 *) ac_try_echo=$ac_try;;
3320 esac
3321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3322 (eval "$ac_compile") 2>conftest.er1
3323 ac_status=$?
3324 grep -v '^ *+' conftest.er1 >conftest.err
3325 rm -f conftest.er1
3326 cat conftest.err >&5
3327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3328 (exit $ac_status); } && {
3329 test -z "$ac_c_werror_flag" ||
3330 test ! -s conftest.err
3331 } && test -s conftest.$ac_objext; then
3332 ac_compiler_gnu=yes
3333 else
3334 echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 ac_compiler_gnu=no
3338 fi
3339
3340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3341 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3342
3343 fi
3344 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3345 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3346 GCC=`test $ac_compiler_gnu = yes && echo yes`
3347 ac_test_CFLAGS=${CFLAGS+set}
3348 ac_save_CFLAGS=$CFLAGS
3349 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3350 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_cc_g+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 ac_save_c_werror_flag=$ac_c_werror_flag
3355 ac_c_werror_flag=yes
3356 ac_cv_prog_cc_g=no
3357 CFLAGS="-g"
3358 cat >conftest.$ac_ext <<_ACEOF
3359 /* confdefs.h. */
3360 _ACEOF
3361 cat confdefs.h >>conftest.$ac_ext
3362 cat >>conftest.$ac_ext <<_ACEOF
3363 /* end confdefs.h. */
3364
3365 int
3366 main ()
3367 {
3368
3369 ;
3370 return 0;
3371 }
3372 _ACEOF
3373 rm -f conftest.$ac_objext
3374 if { (ac_try="$ac_compile"
3375 case "(($ac_try" in
3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3377 *) ac_try_echo=$ac_try;;
3378 esac
3379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3380 (eval "$ac_compile") 2>conftest.er1
3381 ac_status=$?
3382 grep -v '^ *+' conftest.er1 >conftest.err
3383 rm -f conftest.er1
3384 cat conftest.err >&5
3385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3386 (exit $ac_status); } && {
3387 test -z "$ac_c_werror_flag" ||
3388 test ! -s conftest.err
3389 } && test -s conftest.$ac_objext; then
3390 ac_cv_prog_cc_g=yes
3391 else
3392 echo "$as_me: failed program was:" >&5
3393 sed 's/^/| /' conftest.$ac_ext >&5
3394
3395 CFLAGS=""
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.$ac_objext
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>conftest.er1
3419 ac_status=$?
3420 grep -v '^ *+' conftest.er1 >conftest.err
3421 rm -f conftest.er1
3422 cat conftest.err >&5
3423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3424 (exit $ac_status); } && {
3425 test -z "$ac_c_werror_flag" ||
3426 test ! -s conftest.err
3427 } && test -s conftest.$ac_objext; then
3428 :
3429 else
3430 echo "$as_me: failed program was:" >&5
3431 sed 's/^/| /' conftest.$ac_ext >&5
3432
3433 ac_c_werror_flag=$ac_save_c_werror_flag
3434 CFLAGS="-g"
3435 cat >conftest.$ac_ext <<_ACEOF
3436 /* confdefs.h. */
3437 _ACEOF
3438 cat confdefs.h >>conftest.$ac_ext
3439 cat >>conftest.$ac_ext <<_ACEOF
3440 /* end confdefs.h. */
3441
3442 int
3443 main ()
3444 {
3445
3446 ;
3447 return 0;
3448 }
3449 _ACEOF
3450 rm -f conftest.$ac_objext
3451 if { (ac_try="$ac_compile"
3452 case "(($ac_try" in
3453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3454 *) ac_try_echo=$ac_try;;
3455 esac
3456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3457 (eval "$ac_compile") 2>conftest.er1
3458 ac_status=$?
3459 grep -v '^ *+' conftest.er1 >conftest.err
3460 rm -f conftest.er1
3461 cat conftest.err >&5
3462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3463 (exit $ac_status); } && {
3464 test -z "$ac_c_werror_flag" ||
3465 test ! -s conftest.err
3466 } && test -s conftest.$ac_objext; then
3467 ac_cv_prog_cc_g=yes
3468 else
3469 echo "$as_me: failed program was:" >&5
3470 sed 's/^/| /' conftest.$ac_ext >&5
3471
3472
3473 fi
3474
3475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3476 fi
3477
3478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3479 fi
3480
3481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3482 ac_c_werror_flag=$ac_save_c_werror_flag
3483 fi
3484 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3485 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3486 if test "$ac_test_CFLAGS" = set; then
3487 CFLAGS=$ac_save_CFLAGS
3488 elif test $ac_cv_prog_cc_g = yes; then
3489 if test "$GCC" = yes; then
3490 CFLAGS="-g -O2"
3491 else
3492 CFLAGS="-g"
3493 fi
3494 else
3495 if test "$GCC" = yes; then
3496 CFLAGS="-O2"
3497 else
3498 CFLAGS=
3499 fi
3500 fi
3501 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3502 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3503 if test "${ac_cv_prog_cc_c89+set}" = set; then
3504 echo $ECHO_N "(cached) $ECHO_C" >&6
3505 else
3506 ac_cv_prog_cc_c89=no
3507 ac_save_CC=$CC
3508 cat >conftest.$ac_ext <<_ACEOF
3509 /* confdefs.h. */
3510 _ACEOF
3511 cat confdefs.h >>conftest.$ac_ext
3512 cat >>conftest.$ac_ext <<_ACEOF
3513 /* end confdefs.h. */
3514 #include <stdarg.h>
3515 #include <stdio.h>
3516 #include <sys/types.h>
3517 #include <sys/stat.h>
3518 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3519 struct buf { int x; };
3520 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3521 static char *e (p, i)
3522 char **p;
3523 int i;
3524 {
3525 return p[i];
3526 }
3527 static char *f (char * (*g) (char **, int), char **p, ...)
3528 {
3529 char *s;
3530 va_list v;
3531 va_start (v,p);
3532 s = g (p, va_arg (v,int));
3533 va_end (v);
3534 return s;
3535 }
3536
3537 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3538 function prototypes and stuff, but not '\xHH' hex character constants.
3539 These don't provoke an error unfortunately, instead are silently treated
3540 as 'x'. The following induces an error, until -std is added to get
3541 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3542 array size at least. It's necessary to write '\x00'==0 to get something
3543 that's true only with -std. */
3544 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3545
3546 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3547 inside strings and character constants. */
3548 #define FOO(x) 'x'
3549 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3550
3551 int test (int i, double x);
3552 struct s1 {int (*f) (int a);};
3553 struct s2 {int (*f) (double a);};
3554 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3555 int argc;
3556 char **argv;
3557 int
3558 main ()
3559 {
3560 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3561 ;
3562 return 0;
3563 }
3564 _ACEOF
3565 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3566 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3567 do
3568 CC="$ac_save_CC $ac_arg"
3569 rm -f conftest.$ac_objext
3570 if { (ac_try="$ac_compile"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_compile") 2>conftest.er1
3577 ac_status=$?
3578 grep -v '^ *+' conftest.er1 >conftest.err
3579 rm -f conftest.er1
3580 cat conftest.err >&5
3581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3582 (exit $ac_status); } && {
3583 test -z "$ac_c_werror_flag" ||
3584 test ! -s conftest.err
3585 } && test -s conftest.$ac_objext; then
3586 ac_cv_prog_cc_c89=$ac_arg
3587 else
3588 echo "$as_me: failed program was:" >&5
3589 sed 's/^/| /' conftest.$ac_ext >&5
3590
3591
3592 fi
3593
3594 rm -f core conftest.err conftest.$ac_objext
3595 test "x$ac_cv_prog_cc_c89" != "xno" && break
3596 done
3597 rm -f conftest.$ac_ext
3598 CC=$ac_save_CC
3599
3600 fi
3601 # AC_CACHE_VAL
3602 case "x$ac_cv_prog_cc_c89" in
3603 x)
3604 { echo "$as_me:$LINENO: result: none needed" >&5
3605 echo "${ECHO_T}none needed" >&6; } ;;
3606 xno)
3607 { echo "$as_me:$LINENO: result: unsupported" >&5
3608 echo "${ECHO_T}unsupported" >&6; } ;;
3609 *)
3610 CC="$CC $ac_cv_prog_cc_c89"
3611 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3612 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3613 esac
3614
3615
3616 ac_ext=c
3617 ac_cpp='$CPP $CPPFLAGS'
3618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3621
3622
3623 # On Suns, sometimes $CPP names a directory.
3624 if test -n "$CPP" && test -d "$CPP"; then
3625 CPP=
3626 fi
3627
3628 ## If not using gcc, and on Solaris, and no CPP specified, see if
3629 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3630 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3631 test x"$CPP" = x; then
3632 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3633 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3634
3635 if test "${emacs_cv_sunpro_c+set}" = set; then
3636 echo $ECHO_N "(cached) $ECHO_C" >&6
3637 else
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648 #ifndef __SUNPRO_C
3649 fail;
3650 #endif
3651
3652 ;
3653 return 0;
3654 }
3655 _ACEOF
3656 rm -f conftest.$ac_objext conftest$ac_exeext
3657 if { (ac_try="$ac_link"
3658 case "(($ac_try" in
3659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3660 *) ac_try_echo=$ac_try;;
3661 esac
3662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3663 (eval "$ac_link") 2>conftest.er1
3664 ac_status=$?
3665 grep -v '^ *+' conftest.er1 >conftest.err
3666 rm -f conftest.er1
3667 cat conftest.err >&5
3668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3669 (exit $ac_status); } && {
3670 test -z "$ac_c_werror_flag" ||
3671 test ! -s conftest.err
3672 } && test -s conftest$ac_exeext &&
3673 $as_test_x conftest$ac_exeext; then
3674 emacs_cv_sunpro_c=yes
3675 else
3676 echo "$as_me: failed program was:" >&5
3677 sed 's/^/| /' conftest.$ac_ext >&5
3678
3679 emacs_cv_sunpro_c=no
3680 fi
3681
3682 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3683 conftest$ac_exeext conftest.$ac_ext
3684 fi
3685
3686 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3687 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3688
3689 if test x"$emacs_cv_sunpro_c" = xyes; then
3690 NON_GNU_CPP="$CC -E -Xs"
3691 fi
3692 fi
3693
3694 #### Some systems specify a CPP to use unless we are using GCC.
3695 #### Now that we know whether we are using GCC, we can decide whether
3696 #### to use that one.
3697 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3698 then
3699 CPP="$NON_GNU_CPP"
3700 fi
3701
3702 #### Some systems specify a CC to use unless we are using GCC.
3703 #### Now that we know whether we are using GCC, we can decide whether
3704 #### to use that one.
3705 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3706 test x$cc_specified != xyes
3707 then
3708 CC="$NON_GNU_CC"
3709 fi
3710
3711 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3712 then
3713 CC="$CC $GCC_TEST_OPTIONS"
3714 fi
3715
3716 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3717 then
3718 CC="$CC $NON_GCC_TEST_OPTIONS"
3719 fi
3720
3721
3722 cat >>confdefs.h <<\_ACEOF
3723 #define _GNU_SOURCE 1
3724 _ACEOF
3725
3726
3727 ac_ext=c
3728 ac_cpp='$CPP $CPPFLAGS'
3729 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3730 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3731 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3732 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3733 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3734 # On Suns, sometimes $CPP names a directory.
3735 if test -n "$CPP" && test -d "$CPP"; then
3736 CPP=
3737 fi
3738 if test -z "$CPP"; then
3739 if test "${ac_cv_prog_CPP+set}" = set; then
3740 echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742 # Double quotes because CPP needs to be expanded
3743 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3744 do
3745 ac_preproc_ok=false
3746 for ac_c_preproc_warn_flag in '' yes
3747 do
3748 # Use a header file that comes with gcc, so configuring glibc
3749 # with a fresh cross-compiler works.
3750 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3751 # <limits.h> exists even on freestanding compilers.
3752 # On the NeXT, cc -E runs the code through the compiler's parser,
3753 # not just through cpp. "Syntax error" is here to catch this case.
3754 cat >conftest.$ac_ext <<_ACEOF
3755 /* confdefs.h. */
3756 _ACEOF
3757 cat confdefs.h >>conftest.$ac_ext
3758 cat >>conftest.$ac_ext <<_ACEOF
3759 /* end confdefs.h. */
3760 #ifdef __STDC__
3761 # include <limits.h>
3762 #else
3763 # include <assert.h>
3764 #endif
3765 Syntax error
3766 _ACEOF
3767 if { (ac_try="$ac_cpp conftest.$ac_ext"
3768 case "(($ac_try" in
3769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3770 *) ac_try_echo=$ac_try;;
3771 esac
3772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3773 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3774 ac_status=$?
3775 grep -v '^ *+' conftest.er1 >conftest.err
3776 rm -f conftest.er1
3777 cat conftest.err >&5
3778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3779 (exit $ac_status); } >/dev/null && {
3780 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3781 test ! -s conftest.err
3782 }; then
3783 :
3784 else
3785 echo "$as_me: failed program was:" >&5
3786 sed 's/^/| /' conftest.$ac_ext >&5
3787
3788 # Broken: fails on valid input.
3789 continue
3790 fi
3791
3792 rm -f conftest.err conftest.$ac_ext
3793
3794 # OK, works on sane cases. Now check whether nonexistent headers
3795 # can be detected and how.
3796 cat >conftest.$ac_ext <<_ACEOF
3797 /* confdefs.h. */
3798 _ACEOF
3799 cat confdefs.h >>conftest.$ac_ext
3800 cat >>conftest.$ac_ext <<_ACEOF
3801 /* end confdefs.h. */
3802 #include <ac_nonexistent.h>
3803 _ACEOF
3804 if { (ac_try="$ac_cpp conftest.$ac_ext"
3805 case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3811 ac_status=$?
3812 grep -v '^ *+' conftest.er1 >conftest.err
3813 rm -f conftest.er1
3814 cat conftest.err >&5
3815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3816 (exit $ac_status); } >/dev/null && {
3817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3818 test ! -s conftest.err
3819 }; then
3820 # Broken: success on invalid input.
3821 continue
3822 else
3823 echo "$as_me: failed program was:" >&5
3824 sed 's/^/| /' conftest.$ac_ext >&5
3825
3826 # Passes both tests.
3827 ac_preproc_ok=:
3828 break
3829 fi
3830
3831 rm -f conftest.err conftest.$ac_ext
3832
3833 done
3834 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3835 rm -f conftest.err conftest.$ac_ext
3836 if $ac_preproc_ok; then
3837 break
3838 fi
3839
3840 done
3841 ac_cv_prog_CPP=$CPP
3842
3843 fi
3844 CPP=$ac_cv_prog_CPP
3845 else
3846 ac_cv_prog_CPP=$CPP
3847 fi
3848 { echo "$as_me:$LINENO: result: $CPP" >&5
3849 echo "${ECHO_T}$CPP" >&6; }
3850 ac_preproc_ok=false
3851 for ac_c_preproc_warn_flag in '' yes
3852 do
3853 # Use a header file that comes with gcc, so configuring glibc
3854 # with a fresh cross-compiler works.
3855 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3856 # <limits.h> exists even on freestanding compilers.
3857 # On the NeXT, cc -E runs the code through the compiler's parser,
3858 # not just through cpp. "Syntax error" is here to catch this case.
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865 #ifdef __STDC__
3866 # include <limits.h>
3867 #else
3868 # include <assert.h>
3869 #endif
3870 Syntax error
3871 _ACEOF
3872 if { (ac_try="$ac_cpp conftest.$ac_ext"
3873 case "(($ac_try" in
3874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3875 *) ac_try_echo=$ac_try;;
3876 esac
3877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3878 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3879 ac_status=$?
3880 grep -v '^ *+' conftest.er1 >conftest.err
3881 rm -f conftest.er1
3882 cat conftest.err >&5
3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3884 (exit $ac_status); } >/dev/null && {
3885 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3886 test ! -s conftest.err
3887 }; then
3888 :
3889 else
3890 echo "$as_me: failed program was:" >&5
3891 sed 's/^/| /' conftest.$ac_ext >&5
3892
3893 # Broken: fails on valid input.
3894 continue
3895 fi
3896
3897 rm -f conftest.err conftest.$ac_ext
3898
3899 # OK, works on sane cases. Now check whether nonexistent headers
3900 # can be detected and how.
3901 cat >conftest.$ac_ext <<_ACEOF
3902 /* confdefs.h. */
3903 _ACEOF
3904 cat confdefs.h >>conftest.$ac_ext
3905 cat >>conftest.$ac_ext <<_ACEOF
3906 /* end confdefs.h. */
3907 #include <ac_nonexistent.h>
3908 _ACEOF
3909 if { (ac_try="$ac_cpp conftest.$ac_ext"
3910 case "(($ac_try" in
3911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3912 *) ac_try_echo=$ac_try;;
3913 esac
3914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3915 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3916 ac_status=$?
3917 grep -v '^ *+' conftest.er1 >conftest.err
3918 rm -f conftest.er1
3919 cat conftest.err >&5
3920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3921 (exit $ac_status); } >/dev/null && {
3922 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3923 test ! -s conftest.err
3924 }; then
3925 # Broken: success on invalid input.
3926 continue
3927 else
3928 echo "$as_me: failed program was:" >&5
3929 sed 's/^/| /' conftest.$ac_ext >&5
3930
3931 # Passes both tests.
3932 ac_preproc_ok=:
3933 break
3934 fi
3935
3936 rm -f conftest.err conftest.$ac_ext
3937
3938 done
3939 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3940 rm -f conftest.err conftest.$ac_ext
3941 if $ac_preproc_ok; then
3942 :
3943 else
3944 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3945 See \`config.log' for more details." >&5
3946 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3947 See \`config.log' for more details." >&2;}
3948 { (exit 1); exit 1; }; }
3949 fi
3950
3951 ac_ext=c
3952 ac_cpp='$CPP $CPPFLAGS'
3953 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3954 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3955 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3956
3957
3958 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3959 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3960 if test "${ac_cv_path_GREP+set}" = set; then
3961 echo $ECHO_N "(cached) $ECHO_C" >&6
3962 else
3963 # Extract the first word of "grep ggrep" to use in msg output
3964 if test -z "$GREP"; then
3965 set dummy grep ggrep; ac_prog_name=$2
3966 if test "${ac_cv_path_GREP+set}" = set; then
3967 echo $ECHO_N "(cached) $ECHO_C" >&6
3968 else
3969 ac_path_GREP_found=false
3970 # Loop through the user's path and test for each of PROGNAME-LIST
3971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3973 do
3974 IFS=$as_save_IFS
3975 test -z "$as_dir" && as_dir=.
3976 for ac_prog in grep ggrep; do
3977 for ac_exec_ext in '' $ac_executable_extensions; do
3978 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3979 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3980 # Check for GNU ac_path_GREP and select it if it is found.
3981 # Check for GNU $ac_path_GREP
3982 case `"$ac_path_GREP" --version 2>&1` in
3983 *GNU*)
3984 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3985 *)
3986 ac_count=0
3987 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3988 while :
3989 do
3990 cat "conftest.in" "conftest.in" >"conftest.tmp"
3991 mv "conftest.tmp" "conftest.in"
3992 cp "conftest.in" "conftest.nl"
3993 echo 'GREP' >> "conftest.nl"
3994 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3996 ac_count=`expr $ac_count + 1`
3997 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3998 # Best one so far, save it but keep looking for a better one
3999 ac_cv_path_GREP="$ac_path_GREP"
4000 ac_path_GREP_max=$ac_count
4001 fi
4002 # 10*(2^10) chars as input seems more than enough
4003 test $ac_count -gt 10 && break
4004 done
4005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4006 esac
4007
4008
4009 $ac_path_GREP_found && break 3
4010 done
4011 done
4012
4013 done
4014 IFS=$as_save_IFS
4015
4016
4017 fi
4018
4019 GREP="$ac_cv_path_GREP"
4020 if test -z "$GREP"; then
4021 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4022 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4023 { (exit 1); exit 1; }; }
4024 fi
4025
4026 else
4027 ac_cv_path_GREP=$GREP
4028 fi
4029
4030
4031 fi
4032 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4033 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4034 GREP="$ac_cv_path_GREP"
4035
4036
4037 { echo "$as_me:$LINENO: checking for egrep" >&5
4038 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4039 if test "${ac_cv_path_EGREP+set}" = set; then
4040 echo $ECHO_N "(cached) $ECHO_C" >&6
4041 else
4042 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4043 then ac_cv_path_EGREP="$GREP -E"
4044 else
4045 # Extract the first word of "egrep" to use in msg output
4046 if test -z "$EGREP"; then
4047 set dummy egrep; ac_prog_name=$2
4048 if test "${ac_cv_path_EGREP+set}" = set; then
4049 echo $ECHO_N "(cached) $ECHO_C" >&6
4050 else
4051 ac_path_EGREP_found=false
4052 # Loop through the user's path and test for each of PROGNAME-LIST
4053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4054 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4055 do
4056 IFS=$as_save_IFS
4057 test -z "$as_dir" && as_dir=.
4058 for ac_prog in egrep; do
4059 for ac_exec_ext in '' $ac_executable_extensions; do
4060 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4061 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4062 # Check for GNU ac_path_EGREP and select it if it is found.
4063 # Check for GNU $ac_path_EGREP
4064 case `"$ac_path_EGREP" --version 2>&1` in
4065 *GNU*)
4066 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4067 *)
4068 ac_count=0
4069 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4070 while :
4071 do
4072 cat "conftest.in" "conftest.in" >"conftest.tmp"
4073 mv "conftest.tmp" "conftest.in"
4074 cp "conftest.in" "conftest.nl"
4075 echo 'EGREP' >> "conftest.nl"
4076 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4078 ac_count=`expr $ac_count + 1`
4079 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4080 # Best one so far, save it but keep looking for a better one
4081 ac_cv_path_EGREP="$ac_path_EGREP"
4082 ac_path_EGREP_max=$ac_count
4083 fi
4084 # 10*(2^10) chars as input seems more than enough
4085 test $ac_count -gt 10 && break
4086 done
4087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4088 esac
4089
4090
4091 $ac_path_EGREP_found && break 3
4092 done
4093 done
4094
4095 done
4096 IFS=$as_save_IFS
4097
4098
4099 fi
4100
4101 EGREP="$ac_cv_path_EGREP"
4102 if test -z "$EGREP"; then
4103 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4104 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4105 { (exit 1); exit 1; }; }
4106 fi
4107
4108 else
4109 ac_cv_path_EGREP=$EGREP
4110 fi
4111
4112
4113 fi
4114 fi
4115 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4116 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4117 EGREP="$ac_cv_path_EGREP"
4118
4119
4120
4121 { echo "$as_me:$LINENO: checking for AIX" >&5
4122 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4123 cat >conftest.$ac_ext <<_ACEOF
4124 /* confdefs.h. */
4125 _ACEOF
4126 cat confdefs.h >>conftest.$ac_ext
4127 cat >>conftest.$ac_ext <<_ACEOF
4128 /* end confdefs.h. */
4129 #ifdef _AIX
4130 yes
4131 #endif
4132
4133 _ACEOF
4134 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4135 $EGREP "yes" >/dev/null 2>&1; then
4136 { echo "$as_me:$LINENO: result: yes" >&5
4137 echo "${ECHO_T}yes" >&6; }
4138 cat >>confdefs.h <<\_ACEOF
4139 #define _ALL_SOURCE 1
4140 _ACEOF
4141
4142 else
4143 { echo "$as_me:$LINENO: result: no" >&5
4144 echo "${ECHO_T}no" >&6; }
4145 fi
4146 rm -f conftest*
4147
4148
4149 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4150 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4151 if test "${ac_cv_header_stdc+set}" = set; then
4152 echo $ECHO_N "(cached) $ECHO_C" >&6
4153 else
4154 cat >conftest.$ac_ext <<_ACEOF
4155 /* confdefs.h. */
4156 _ACEOF
4157 cat confdefs.h >>conftest.$ac_ext
4158 cat >>conftest.$ac_ext <<_ACEOF
4159 /* end confdefs.h. */
4160 #include <stdlib.h>
4161 #include <stdarg.h>
4162 #include <string.h>
4163 #include <float.h>
4164
4165 int
4166 main ()
4167 {
4168
4169 ;
4170 return 0;
4171 }
4172 _ACEOF
4173 rm -f conftest.$ac_objext
4174 if { (ac_try="$ac_compile"
4175 case "(($ac_try" in
4176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4177 *) ac_try_echo=$ac_try;;
4178 esac
4179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4180 (eval "$ac_compile") 2>conftest.er1
4181 ac_status=$?
4182 grep -v '^ *+' conftest.er1 >conftest.err
4183 rm -f conftest.er1
4184 cat conftest.err >&5
4185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4186 (exit $ac_status); } && {
4187 test -z "$ac_c_werror_flag" ||
4188 test ! -s conftest.err
4189 } && test -s conftest.$ac_objext; then
4190 ac_cv_header_stdc=yes
4191 else
4192 echo "$as_me: failed program was:" >&5
4193 sed 's/^/| /' conftest.$ac_ext >&5
4194
4195 ac_cv_header_stdc=no
4196 fi
4197
4198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4199
4200 if test $ac_cv_header_stdc = yes; then
4201 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4202 cat >conftest.$ac_ext <<_ACEOF
4203 /* confdefs.h. */
4204 _ACEOF
4205 cat confdefs.h >>conftest.$ac_ext
4206 cat >>conftest.$ac_ext <<_ACEOF
4207 /* end confdefs.h. */
4208 #include <string.h>
4209
4210 _ACEOF
4211 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4212 $EGREP "memchr" >/dev/null 2>&1; then
4213 :
4214 else
4215 ac_cv_header_stdc=no
4216 fi
4217 rm -f conftest*
4218
4219 fi
4220
4221 if test $ac_cv_header_stdc = yes; then
4222 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4223 cat >conftest.$ac_ext <<_ACEOF
4224 /* confdefs.h. */
4225 _ACEOF
4226 cat confdefs.h >>conftest.$ac_ext
4227 cat >>conftest.$ac_ext <<_ACEOF
4228 /* end confdefs.h. */
4229 #include <stdlib.h>
4230
4231 _ACEOF
4232 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4233 $EGREP "free" >/dev/null 2>&1; then
4234 :
4235 else
4236 ac_cv_header_stdc=no
4237 fi
4238 rm -f conftest*
4239
4240 fi
4241
4242 if test $ac_cv_header_stdc = yes; then
4243 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4244 if test "$cross_compiling" = yes; then
4245 :
4246 else
4247 cat >conftest.$ac_ext <<_ACEOF
4248 /* confdefs.h. */
4249 _ACEOF
4250 cat confdefs.h >>conftest.$ac_ext
4251 cat >>conftest.$ac_ext <<_ACEOF
4252 /* end confdefs.h. */
4253 #include <ctype.h>
4254 #include <stdlib.h>
4255 #if ((' ' & 0x0FF) == 0x020)
4256 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4257 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4258 #else
4259 # define ISLOWER(c) \
4260 (('a' <= (c) && (c) <= 'i') \
4261 || ('j' <= (c) && (c) <= 'r') \
4262 || ('s' <= (c) && (c) <= 'z'))
4263 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4264 #endif
4265
4266 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4267 int
4268 main ()
4269 {
4270 int i;
4271 for (i = 0; i < 256; i++)
4272 if (XOR (islower (i), ISLOWER (i))
4273 || toupper (i) != TOUPPER (i))
4274 return 2;
4275 return 0;
4276 }
4277 _ACEOF
4278 rm -f conftest$ac_exeext
4279 if { (ac_try="$ac_link"
4280 case "(($ac_try" in
4281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4282 *) ac_try_echo=$ac_try;;
4283 esac
4284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4285 (eval "$ac_link") 2>&5
4286 ac_status=$?
4287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4288 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4289 { (case "(($ac_try" in
4290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4291 *) ac_try_echo=$ac_try;;
4292 esac
4293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4294 (eval "$ac_try") 2>&5
4295 ac_status=$?
4296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4297 (exit $ac_status); }; }; then
4298 :
4299 else
4300 echo "$as_me: program exited with status $ac_status" >&5
4301 echo "$as_me: failed program was:" >&5
4302 sed 's/^/| /' conftest.$ac_ext >&5
4303
4304 ( exit $ac_status )
4305 ac_cv_header_stdc=no
4306 fi
4307 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4308 fi
4309
4310
4311 fi
4312 fi
4313 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
4314 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
4315 if test $ac_cv_header_stdc = yes; then
4316
4317 cat >>confdefs.h <<\_ACEOF
4318 #define STDC_HEADERS 1
4319 _ACEOF
4320
4321 fi
4322
4323 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4324
4325
4326
4327
4328
4329
4330
4331
4332
4333 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4334 inttypes.h stdint.h unistd.h
4335 do
4336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4340 echo $ECHO_N "(cached) $ECHO_C" >&6
4341 else
4342 cat >conftest.$ac_ext <<_ACEOF
4343 /* confdefs.h. */
4344 _ACEOF
4345 cat confdefs.h >>conftest.$ac_ext
4346 cat >>conftest.$ac_ext <<_ACEOF
4347 /* end confdefs.h. */
4348 $ac_includes_default
4349
4350 #include <$ac_header>
4351 _ACEOF
4352 rm -f conftest.$ac_objext
4353 if { (ac_try="$ac_compile"
4354 case "(($ac_try" in
4355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4356 *) ac_try_echo=$ac_try;;
4357 esac
4358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4359 (eval "$ac_compile") 2>conftest.er1
4360 ac_status=$?
4361 grep -v '^ *+' conftest.er1 >conftest.err
4362 rm -f conftest.er1
4363 cat conftest.err >&5
4364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4365 (exit $ac_status); } && {
4366 test -z "$ac_c_werror_flag" ||
4367 test ! -s conftest.err
4368 } && test -s conftest.$ac_objext; then
4369 eval "$as_ac_Header=yes"
4370 else
4371 echo "$as_me: failed program was:" >&5
4372 sed 's/^/| /' conftest.$ac_ext >&5
4373
4374 eval "$as_ac_Header=no"
4375 fi
4376
4377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4378 fi
4379 ac_res=`eval echo '${'$as_ac_Header'}'`
4380 { echo "$as_me:$LINENO: result: $ac_res" >&5
4381 echo "${ECHO_T}$ac_res" >&6; }
4382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4383 cat >>confdefs.h <<_ACEOF
4384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4385 _ACEOF
4386
4387 fi
4388
4389 done
4390
4391
4392 if test "${ac_cv_header_minix_config_h+set}" = set; then
4393 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4394 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4395 if test "${ac_cv_header_minix_config_h+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 fi
4398 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4399 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4400 else
4401 # Is the header compilable?
4402 { echo "$as_me:$LINENO: checking minix/config.h usability" >&5
4403 echo $ECHO_N "checking minix/config.h usability... $ECHO_C" >&6; }
4404 cat >conftest.$ac_ext <<_ACEOF
4405 /* confdefs.h. */
4406 _ACEOF
4407 cat confdefs.h >>conftest.$ac_ext
4408 cat >>conftest.$ac_ext <<_ACEOF
4409 /* end confdefs.h. */
4410 $ac_includes_default
4411 #include <minix/config.h>
4412 _ACEOF
4413 rm -f conftest.$ac_objext
4414 if { (ac_try="$ac_compile"
4415 case "(($ac_try" in
4416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4417 *) ac_try_echo=$ac_try;;
4418 esac
4419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4420 (eval "$ac_compile") 2>conftest.er1
4421 ac_status=$?
4422 grep -v '^ *+' conftest.er1 >conftest.err
4423 rm -f conftest.er1
4424 cat conftest.err >&5
4425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4426 (exit $ac_status); } && {
4427 test -z "$ac_c_werror_flag" ||
4428 test ! -s conftest.err
4429 } && test -s conftest.$ac_objext; then
4430 ac_header_compiler=yes
4431 else
4432 echo "$as_me: failed program was:" >&5
4433 sed 's/^/| /' conftest.$ac_ext >&5
4434
4435 ac_header_compiler=no
4436 fi
4437
4438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4440 echo "${ECHO_T}$ac_header_compiler" >&6; }
4441
4442 # Is the header present?
4443 { echo "$as_me:$LINENO: checking minix/config.h presence" >&5
4444 echo $ECHO_N "checking minix/config.h presence... $ECHO_C" >&6; }
4445 cat >conftest.$ac_ext <<_ACEOF
4446 /* confdefs.h. */
4447 _ACEOF
4448 cat confdefs.h >>conftest.$ac_ext
4449 cat >>conftest.$ac_ext <<_ACEOF
4450 /* end confdefs.h. */
4451 #include <minix/config.h>
4452 _ACEOF
4453 if { (ac_try="$ac_cpp conftest.$ac_ext"
4454 case "(($ac_try" in
4455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4456 *) ac_try_echo=$ac_try;;
4457 esac
4458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4460 ac_status=$?
4461 grep -v '^ *+' conftest.er1 >conftest.err
4462 rm -f conftest.er1
4463 cat conftest.err >&5
4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4465 (exit $ac_status); } >/dev/null && {
4466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4467 test ! -s conftest.err
4468 }; then
4469 ac_header_preproc=yes
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 ac_header_preproc=no
4475 fi
4476
4477 rm -f conftest.err conftest.$ac_ext
4478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4479 echo "${ECHO_T}$ac_header_preproc" >&6; }
4480
4481 # So? What about this header?
4482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4483 yes:no: )
4484 { echo "$as_me:$LINENO: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&5
4485 echo "$as_me: WARNING: minix/config.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4486 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the compiler's result" >&5
4487 echo "$as_me: WARNING: minix/config.h: proceeding with the compiler's result" >&2;}
4488 ac_header_preproc=yes
4489 ;;
4490 no:yes:* )
4491 { echo "$as_me:$LINENO: WARNING: minix/config.h: present but cannot be compiled" >&5
4492 echo "$as_me: WARNING: minix/config.h: present but cannot be compiled" >&2;}
4493 { echo "$as_me:$LINENO: WARNING: minix/config.h: check for missing prerequisite headers?" >&5
4494 echo "$as_me: WARNING: minix/config.h: check for missing prerequisite headers?" >&2;}
4495 { echo "$as_me:$LINENO: WARNING: minix/config.h: see the Autoconf documentation" >&5
4496 echo "$as_me: WARNING: minix/config.h: see the Autoconf documentation" >&2;}
4497 { echo "$as_me:$LINENO: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&5
4498 echo "$as_me: WARNING: minix/config.h: section \"Present But Cannot Be Compiled\"" >&2;}
4499 { echo "$as_me:$LINENO: WARNING: minix/config.h: proceeding with the preprocessor's result" >&5
4500 echo "$as_me: WARNING: minix/config.h: proceeding with the preprocessor's result" >&2;}
4501 { echo "$as_me:$LINENO: WARNING: minix/config.h: in the future, the compiler will take precedence" >&5
4502 echo "$as_me: WARNING: minix/config.h: in the future, the compiler will take precedence" >&2;}
4503
4504 ;;
4505 esac
4506 { echo "$as_me:$LINENO: checking for minix/config.h" >&5
4507 echo $ECHO_N "checking for minix/config.h... $ECHO_C" >&6; }
4508 if test "${ac_cv_header_minix_config_h+set}" = set; then
4509 echo $ECHO_N "(cached) $ECHO_C" >&6
4510 else
4511 ac_cv_header_minix_config_h=$ac_header_preproc
4512 fi
4513 { echo "$as_me:$LINENO: result: $ac_cv_header_minix_config_h" >&5
4514 echo "${ECHO_T}$ac_cv_header_minix_config_h" >&6; }
4515
4516 fi
4517 if test $ac_cv_header_minix_config_h = yes; then
4518 MINIX=yes
4519 else
4520 MINIX=
4521 fi
4522
4523
4524 if test "$MINIX" = yes; then
4525
4526 cat >>confdefs.h <<\_ACEOF
4527 #define _POSIX_SOURCE 1
4528 _ACEOF
4529
4530
4531 cat >>confdefs.h <<\_ACEOF
4532 #define _POSIX_1_SOURCE 2
4533 _ACEOF
4534
4535
4536 cat >>confdefs.h <<\_ACEOF
4537 #define _MINIX 1
4538 _ACEOF
4539
4540 fi
4541
4542
4543
4544
4545
4546
4547
4548
4549
4550
4551
4552 { echo "$as_me:$LINENO: checking whether it is safe to define __EXTENSIONS__" >&5
4553 echo $ECHO_N "checking whether it is safe to define __EXTENSIONS__... $ECHO_C" >&6; }
4554 if test "${ac_cv_safe_to_define___extensions__+set}" = set; then
4555 echo $ECHO_N "(cached) $ECHO_C" >&6
4556 else
4557 cat >conftest.$ac_ext <<_ACEOF
4558 /* confdefs.h. */
4559 _ACEOF
4560 cat confdefs.h >>conftest.$ac_ext
4561 cat >>conftest.$ac_ext <<_ACEOF
4562 /* end confdefs.h. */
4563
4564 # define __EXTENSIONS__ 1
4565 $ac_includes_default
4566 int
4567 main ()
4568 {
4569
4570 ;
4571 return 0;
4572 }
4573 _ACEOF
4574 rm -f conftest.$ac_objext
4575 if { (ac_try="$ac_compile"
4576 case "(($ac_try" in
4577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4578 *) ac_try_echo=$ac_try;;
4579 esac
4580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4581 (eval "$ac_compile") 2>conftest.er1
4582 ac_status=$?
4583 grep -v '^ *+' conftest.er1 >conftest.err
4584 rm -f conftest.er1
4585 cat conftest.err >&5
4586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4587 (exit $ac_status); } && {
4588 test -z "$ac_c_werror_flag" ||
4589 test ! -s conftest.err
4590 } && test -s conftest.$ac_objext; then
4591 ac_cv_safe_to_define___extensions__=yes
4592 else
4593 echo "$as_me: failed program was:" >&5
4594 sed 's/^/| /' conftest.$ac_ext >&5
4595
4596 ac_cv_safe_to_define___extensions__=no
4597 fi
4598
4599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4600 fi
4601 { echo "$as_me:$LINENO: result: $ac_cv_safe_to_define___extensions__" >&5
4602 echo "${ECHO_T}$ac_cv_safe_to_define___extensions__" >&6; }
4603 test $ac_cv_safe_to_define___extensions__ = yes &&
4604 cat >>confdefs.h <<\_ACEOF
4605 #define __EXTENSIONS__ 1
4606 _ACEOF
4607
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _POSIX_PTHREAD_SEMANTICS 1
4610 _ACEOF
4611
4612 cat >>confdefs.h <<\_ACEOF
4613 #define _TANDEM_SOURCE 1
4614 _ACEOF
4615
4616
4617
4618 ### Use -Wno-pointer-sign if the compiler supports it
4619 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4620 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4621 SAVE_CFLAGS="$CFLAGS"
4622 CFLAGS="$CFLAGS -Wno-pointer-sign"
4623 cat >conftest.$ac_ext <<_ACEOF
4624 /* confdefs.h. */
4625 _ACEOF
4626 cat confdefs.h >>conftest.$ac_ext
4627 cat >>conftest.$ac_ext <<_ACEOF
4628 /* end confdefs.h. */
4629
4630 int
4631 main ()
4632 {
4633
4634 ;
4635 return 0;
4636 }
4637 _ACEOF
4638 rm -f conftest.$ac_objext
4639 if { (ac_try="$ac_compile"
4640 case "(($ac_try" in
4641 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4642 *) ac_try_echo=$ac_try;;
4643 esac
4644 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4645 (eval "$ac_compile") 2>conftest.er1
4646 ac_status=$?
4647 grep -v '^ *+' conftest.er1 >conftest.err
4648 rm -f conftest.er1
4649 cat conftest.err >&5
4650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4651 (exit $ac_status); } && {
4652 test -z "$ac_c_werror_flag" ||
4653 test ! -s conftest.err
4654 } && test -s conftest.$ac_objext; then
4655 has_option=yes
4656 else
4657 echo "$as_me: failed program was:" >&5
4658 sed 's/^/| /' conftest.$ac_ext >&5
4659
4660 has_option=no
4661 fi
4662
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 if test $has_option = yes; then
4665 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4666 fi
4667 { echo "$as_me:$LINENO: result: $has_option" >&5
4668 echo "${ECHO_T}$has_option" >&6; }
4669 CFLAGS="$SAVE_CFLAGS"
4670 unset has_option
4671 unset SAVE_CFLAGS
4672
4673 #### Some other nice autoconf tests.
4674
4675 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4676 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4677 LN_S=$as_ln_s
4678 if test "$LN_S" = "ln -s"; then
4679 { echo "$as_me:$LINENO: result: yes" >&5
4680 echo "${ECHO_T}yes" >&6; }
4681 else
4682 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4683 echo "${ECHO_T}no, using $LN_S" >&6; }
4684 fi
4685
4686 ac_ext=c
4687 ac_cpp='$CPP $CPPFLAGS'
4688 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4689 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4690 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4691 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4692 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4693 # On Suns, sometimes $CPP names a directory.
4694 if test -n "$CPP" && test -d "$CPP"; then
4695 CPP=
4696 fi
4697 if test -z "$CPP"; then
4698 if test "${ac_cv_prog_CPP+set}" = set; then
4699 echo $ECHO_N "(cached) $ECHO_C" >&6
4700 else
4701 # Double quotes because CPP needs to be expanded
4702 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4703 do
4704 ac_preproc_ok=false
4705 for ac_c_preproc_warn_flag in '' yes
4706 do
4707 # Use a header file that comes with gcc, so configuring glibc
4708 # with a fresh cross-compiler works.
4709 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4710 # <limits.h> exists even on freestanding compilers.
4711 # On the NeXT, cc -E runs the code through the compiler's parser,
4712 # not just through cpp. "Syntax error" is here to catch this case.
4713 cat >conftest.$ac_ext <<_ACEOF
4714 /* confdefs.h. */
4715 _ACEOF
4716 cat confdefs.h >>conftest.$ac_ext
4717 cat >>conftest.$ac_ext <<_ACEOF
4718 /* end confdefs.h. */
4719 #ifdef __STDC__
4720 # include <limits.h>
4721 #else
4722 # include <assert.h>
4723 #endif
4724 Syntax error
4725 _ACEOF
4726 if { (ac_try="$ac_cpp conftest.$ac_ext"
4727 case "(($ac_try" in
4728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4729 *) ac_try_echo=$ac_try;;
4730 esac
4731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4732 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4733 ac_status=$?
4734 grep -v '^ *+' conftest.er1 >conftest.err
4735 rm -f conftest.er1
4736 cat conftest.err >&5
4737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4738 (exit $ac_status); } >/dev/null && {
4739 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4740 test ! -s conftest.err
4741 }; then
4742 :
4743 else
4744 echo "$as_me: failed program was:" >&5
4745 sed 's/^/| /' conftest.$ac_ext >&5
4746
4747 # Broken: fails on valid input.
4748 continue
4749 fi
4750
4751 rm -f conftest.err conftest.$ac_ext
4752
4753 # OK, works on sane cases. Now check whether nonexistent headers
4754 # can be detected and how.
4755 cat >conftest.$ac_ext <<_ACEOF
4756 /* confdefs.h. */
4757 _ACEOF
4758 cat confdefs.h >>conftest.$ac_ext
4759 cat >>conftest.$ac_ext <<_ACEOF
4760 /* end confdefs.h. */
4761 #include <ac_nonexistent.h>
4762 _ACEOF
4763 if { (ac_try="$ac_cpp conftest.$ac_ext"
4764 case "(($ac_try" in
4765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4766 *) ac_try_echo=$ac_try;;
4767 esac
4768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4770 ac_status=$?
4771 grep -v '^ *+' conftest.er1 >conftest.err
4772 rm -f conftest.er1
4773 cat conftest.err >&5
4774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4775 (exit $ac_status); } >/dev/null && {
4776 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4777 test ! -s conftest.err
4778 }; then
4779 # Broken: success on invalid input.
4780 continue
4781 else
4782 echo "$as_me: failed program was:" >&5
4783 sed 's/^/| /' conftest.$ac_ext >&5
4784
4785 # Passes both tests.
4786 ac_preproc_ok=:
4787 break
4788 fi
4789
4790 rm -f conftest.err conftest.$ac_ext
4791
4792 done
4793 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4794 rm -f conftest.err conftest.$ac_ext
4795 if $ac_preproc_ok; then
4796 break
4797 fi
4798
4799 done
4800 ac_cv_prog_CPP=$CPP
4801
4802 fi
4803 CPP=$ac_cv_prog_CPP
4804 else
4805 ac_cv_prog_CPP=$CPP
4806 fi
4807 { echo "$as_me:$LINENO: result: $CPP" >&5
4808 echo "${ECHO_T}$CPP" >&6; }
4809 ac_preproc_ok=false
4810 for ac_c_preproc_warn_flag in '' yes
4811 do
4812 # Use a header file that comes with gcc, so configuring glibc
4813 # with a fresh cross-compiler works.
4814 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4815 # <limits.h> exists even on freestanding compilers.
4816 # On the NeXT, cc -E runs the code through the compiler's parser,
4817 # not just through cpp. "Syntax error" is here to catch this case.
4818 cat >conftest.$ac_ext <<_ACEOF
4819 /* confdefs.h. */
4820 _ACEOF
4821 cat confdefs.h >>conftest.$ac_ext
4822 cat >>conftest.$ac_ext <<_ACEOF
4823 /* end confdefs.h. */
4824 #ifdef __STDC__
4825 # include <limits.h>
4826 #else
4827 # include <assert.h>
4828 #endif
4829 Syntax error
4830 _ACEOF
4831 if { (ac_try="$ac_cpp conftest.$ac_ext"
4832 case "(($ac_try" in
4833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4834 *) ac_try_echo=$ac_try;;
4835 esac
4836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4837 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4838 ac_status=$?
4839 grep -v '^ *+' conftest.er1 >conftest.err
4840 rm -f conftest.er1
4841 cat conftest.err >&5
4842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4843 (exit $ac_status); } >/dev/null && {
4844 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4845 test ! -s conftest.err
4846 }; then
4847 :
4848 else
4849 echo "$as_me: failed program was:" >&5
4850 sed 's/^/| /' conftest.$ac_ext >&5
4851
4852 # Broken: fails on valid input.
4853 continue
4854 fi
4855
4856 rm -f conftest.err conftest.$ac_ext
4857
4858 # OK, works on sane cases. Now check whether nonexistent headers
4859 # can be detected and how.
4860 cat >conftest.$ac_ext <<_ACEOF
4861 /* confdefs.h. */
4862 _ACEOF
4863 cat confdefs.h >>conftest.$ac_ext
4864 cat >>conftest.$ac_ext <<_ACEOF
4865 /* end confdefs.h. */
4866 #include <ac_nonexistent.h>
4867 _ACEOF
4868 if { (ac_try="$ac_cpp conftest.$ac_ext"
4869 case "(($ac_try" in
4870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4871 *) ac_try_echo=$ac_try;;
4872 esac
4873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4875 ac_status=$?
4876 grep -v '^ *+' conftest.er1 >conftest.err
4877 rm -f conftest.er1
4878 cat conftest.err >&5
4879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4880 (exit $ac_status); } >/dev/null && {
4881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4882 test ! -s conftest.err
4883 }; then
4884 # Broken: success on invalid input.
4885 continue
4886 else
4887 echo "$as_me: failed program was:" >&5
4888 sed 's/^/| /' conftest.$ac_ext >&5
4889
4890 # Passes both tests.
4891 ac_preproc_ok=:
4892 break
4893 fi
4894
4895 rm -f conftest.err conftest.$ac_ext
4896
4897 done
4898 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4899 rm -f conftest.err conftest.$ac_ext
4900 if $ac_preproc_ok; then
4901 :
4902 else
4903 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4904 See \`config.log' for more details." >&5
4905 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4906 See \`config.log' for more details." >&2;}
4907 { (exit 1); exit 1; }; }
4908 fi
4909
4910 ac_ext=c
4911 ac_cpp='$CPP $CPPFLAGS'
4912 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4913 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4914 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4915
4916 # Find a good install program. We prefer a C program (faster),
4917 # so one script is as good as another. But avoid the broken or
4918 # incompatible versions:
4919 # SysV /etc/install, /usr/sbin/install
4920 # SunOS /usr/etc/install
4921 # IRIX /sbin/install
4922 # AIX /bin/install
4923 # AmigaOS /C/install, which installs bootblocks on floppy discs
4924 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4925 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4926 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4927 # OS/2's system install, which has a completely different semantic
4928 # ./install, which can be erroneously created by make from ./install.sh.
4929 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4930 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4931 if test -z "$INSTALL"; then
4932 if test "${ac_cv_path_install+set}" = set; then
4933 echo $ECHO_N "(cached) $ECHO_C" >&6
4934 else
4935 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4936 for as_dir in $PATH
4937 do
4938 IFS=$as_save_IFS
4939 test -z "$as_dir" && as_dir=.
4940 # Account for people who put trailing slashes in PATH elements.
4941 case $as_dir/ in
4942 ./ | .// | /cC/* | \
4943 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4944 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4945 /usr/ucb/* ) ;;
4946 *)
4947 # OSF1 and SCO ODT 3.0 have their own names for install.
4948 # Don't use installbsd from OSF since it installs stuff as root
4949 # by default.
4950 for ac_prog in ginstall scoinst install; do
4951 for ac_exec_ext in '' $ac_executable_extensions; do
4952 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4953 if test $ac_prog = install &&
4954 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4955 # AIX install. It has an incompatible calling convention.
4956 :
4957 elif test $ac_prog = install &&
4958 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4959 # program-specific install script used by HP pwplus--don't use.
4960 :
4961 else
4962 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4963 break 3
4964 fi
4965 fi
4966 done
4967 done
4968 ;;
4969 esac
4970 done
4971 IFS=$as_save_IFS
4972
4973
4974 fi
4975 if test "${ac_cv_path_install+set}" = set; then
4976 INSTALL=$ac_cv_path_install
4977 else
4978 # As a last resort, use the slow shell script. Don't cache a
4979 # value for INSTALL within a source directory, because that will
4980 # break other packages using the cache if that directory is
4981 # removed, or if the value is a relative name.
4982 INSTALL=$ac_install_sh
4983 fi
4984 fi
4985 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4986 echo "${ECHO_T}$INSTALL" >&6; }
4987
4988 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4989 # It thinks the first close brace ends the variable substitution.
4990 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4991
4992 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4993
4994 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4995
4996 if test "x$RANLIB" = x; then
4997 if test -n "$ac_tool_prefix"; then
4998 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4999 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5000 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5001 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5002 if test "${ac_cv_prog_RANLIB+set}" = set; then
5003 echo $ECHO_N "(cached) $ECHO_C" >&6
5004 else
5005 if test -n "$RANLIB"; then
5006 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5007 else
5008 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5009 for as_dir in $PATH
5010 do
5011 IFS=$as_save_IFS
5012 test -z "$as_dir" && as_dir=.
5013 for ac_exec_ext in '' $ac_executable_extensions; do
5014 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5015 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5016 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5017 break 2
5018 fi
5019 done
5020 done
5021 IFS=$as_save_IFS
5022
5023 fi
5024 fi
5025 RANLIB=$ac_cv_prog_RANLIB
5026 if test -n "$RANLIB"; then
5027 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5028 echo "${ECHO_T}$RANLIB" >&6; }
5029 else
5030 { echo "$as_me:$LINENO: result: no" >&5
5031 echo "${ECHO_T}no" >&6; }
5032 fi
5033
5034
5035 fi
5036 if test -z "$ac_cv_prog_RANLIB"; then
5037 ac_ct_RANLIB=$RANLIB
5038 # Extract the first word of "ranlib", so it can be a program name with args.
5039 set dummy ranlib; ac_word=$2
5040 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5041 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5042 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5043 echo $ECHO_N "(cached) $ECHO_C" >&6
5044 else
5045 if test -n "$ac_ct_RANLIB"; then
5046 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5047 else
5048 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5049 for as_dir in $PATH
5050 do
5051 IFS=$as_save_IFS
5052 test -z "$as_dir" && as_dir=.
5053 for ac_exec_ext in '' $ac_executable_extensions; do
5054 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5055 ac_cv_prog_ac_ct_RANLIB="ranlib"
5056 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5057 break 2
5058 fi
5059 done
5060 done
5061 IFS=$as_save_IFS
5062
5063 fi
5064 fi
5065 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5066 if test -n "$ac_ct_RANLIB"; then
5067 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5068 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5069 else
5070 { echo "$as_me:$LINENO: result: no" >&5
5071 echo "${ECHO_T}no" >&6; }
5072 fi
5073
5074 if test "x$ac_ct_RANLIB" = x; then
5075 RANLIB=":"
5076 else
5077 case $cross_compiling:$ac_tool_warned in
5078 yes:)
5079 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5080 whose name does not start with the host triplet. If you think this
5081 configuration is useful to you, please write to autoconf@gnu.org." >&5
5082 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5083 whose name does not start with the host triplet. If you think this
5084 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5085 ac_tool_warned=yes ;;
5086 esac
5087 RANLIB=$ac_ct_RANLIB
5088 fi
5089 else
5090 RANLIB="$ac_cv_prog_RANLIB"
5091 fi
5092
5093 fi
5094 # Extract the first word of "install-info", so it can be a program name with args.
5095 set dummy install-info; ac_word=$2
5096 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5097 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5098 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5099 echo $ECHO_N "(cached) $ECHO_C" >&6
5100 else
5101 case $INSTALL_INFO in
5102 [\\/]* | ?:[\\/]*)
5103 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5104 ;;
5105 *)
5106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5107 for as_dir in $PATH
5108 do
5109 IFS=$as_save_IFS
5110 test -z "$as_dir" && as_dir=.
5111 for ac_exec_ext in '' $ac_executable_extensions; do
5112 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5113 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5114 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5115 break 2
5116 fi
5117 done
5118 done
5119 IFS=$as_save_IFS
5120
5121 ;;
5122 esac
5123 fi
5124 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5125 if test -n "$INSTALL_INFO"; then
5126 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5127 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5128 else
5129 { echo "$as_me:$LINENO: result: no" >&5
5130 echo "${ECHO_T}no" >&6; }
5131 fi
5132
5133
5134 # Extract the first word of "install-info", so it can be a program name with args.
5135 set dummy install-info; ac_word=$2
5136 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5137 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5138 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5139 echo $ECHO_N "(cached) $ECHO_C" >&6
5140 else
5141 case $INSTALL_INFO in
5142 [\\/]* | ?:[\\/]*)
5143 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5144 ;;
5145 *)
5146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5147 for as_dir in /usr/sbin
5148 do
5149 IFS=$as_save_IFS
5150 test -z "$as_dir" && as_dir=.
5151 for ac_exec_ext in '' $ac_executable_extensions; do
5152 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5153 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5154 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5155 break 2
5156 fi
5157 done
5158 done
5159 IFS=$as_save_IFS
5160
5161 ;;
5162 esac
5163 fi
5164 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5165 if test -n "$INSTALL_INFO"; then
5166 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5167 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5168 else
5169 { echo "$as_me:$LINENO: result: no" >&5
5170 echo "${ECHO_T}no" >&6; }
5171 fi
5172
5173
5174 # Extract the first word of "install-info", so it can be a program name with args.
5175 set dummy install-info; ac_word=$2
5176 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5177 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5178 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5179 echo $ECHO_N "(cached) $ECHO_C" >&6
5180 else
5181 case $INSTALL_INFO in
5182 [\\/]* | ?:[\\/]*)
5183 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5184 ;;
5185 *)
5186 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5187 for as_dir in /sbin
5188 do
5189 IFS=$as_save_IFS
5190 test -z "$as_dir" && as_dir=.
5191 for ac_exec_ext in '' $ac_executable_extensions; do
5192 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5193 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5194 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5195 break 2
5196 fi
5197 done
5198 done
5199 IFS=$as_save_IFS
5200
5201 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5202 ;;
5203 esac
5204 fi
5205 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5206 if test -n "$INSTALL_INFO"; then
5207 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5208 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5209 else
5210 { echo "$as_me:$LINENO: result: no" >&5
5211 echo "${ECHO_T}no" >&6; }
5212 fi
5213
5214
5215 # Extract the first word of "gzip", so it can be a program name with args.
5216 set dummy gzip; ac_word=$2
5217 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5218 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5219 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5220 echo $ECHO_N "(cached) $ECHO_C" >&6
5221 else
5222 case $GZIP_PROG in
5223 [\\/]* | ?:[\\/]*)
5224 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5225 ;;
5226 *)
5227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5228 for as_dir in $PATH
5229 do
5230 IFS=$as_save_IFS
5231 test -z "$as_dir" && as_dir=.
5232 for ac_exec_ext in '' $ac_executable_extensions; do
5233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5234 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5236 break 2
5237 fi
5238 done
5239 done
5240 IFS=$as_save_IFS
5241
5242 ;;
5243 esac
5244 fi
5245 GZIP_PROG=$ac_cv_path_GZIP_PROG
5246 if test -n "$GZIP_PROG"; then
5247 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5248 echo "${ECHO_T}$GZIP_PROG" >&6; }
5249 else
5250 { echo "$as_me:$LINENO: result: no" >&5
5251 echo "${ECHO_T}no" >&6; }
5252 fi
5253
5254
5255
5256
5257 ## Need makeinfo >= 4.6 (?) to build the manuals.
5258 # Extract the first word of "makeinfo", so it can be a program name with args.
5259 set dummy makeinfo; ac_word=$2
5260 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5261 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5262 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5263 echo $ECHO_N "(cached) $ECHO_C" >&6
5264 else
5265 case $MAKEINFO in
5266 [\\/]* | ?:[\\/]*)
5267 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5268 ;;
5269 *)
5270 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5271 for as_dir in $PATH
5272 do
5273 IFS=$as_save_IFS
5274 test -z "$as_dir" && as_dir=.
5275 for ac_exec_ext in '' $ac_executable_extensions; do
5276 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5277 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5278 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5279 break 2
5280 fi
5281 done
5282 done
5283 IFS=$as_save_IFS
5284
5285 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5286 ;;
5287 esac
5288 fi
5289 MAKEINFO=$ac_cv_path_MAKEINFO
5290 if test -n "$MAKEINFO"; then
5291 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5292 echo "${ECHO_T}$MAKEINFO" >&6; }
5293 else
5294 { echo "$as_me:$LINENO: result: no" >&5
5295 echo "${ECHO_T}no" >&6; }
5296 fi
5297
5298
5299 if test "$MAKEINFO" != "no" && \
5300 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
5301 MAKEINFO=no
5302 fi
5303
5304 ## Makeinfo is unusual. For a released Emacs, the manuals are
5305 ## pre-built, and not deleted by the normal clean rules. makeinfo is
5306 ## therefore in the category of "special tools" not normally required, which
5307 ## configure does not have to check for (eg autoconf itself).
5308 ## In a CVS checkout on the other hand, the manuals are not included.
5309 ## So makeinfo is a requirement to build from CVS, and configure
5310 ## should test for it as it does for any other build requirement.
5311 ## We use the presence of $srcdir/info/emacs to distinguish a release,
5312 ## with pre-built manuals, from a CVS checkout.
5313 if test "$MAKEINFO" = "no"; then
5314 if test "x${with_makeinfo}" = "xno"; then
5315 MAKEINFO=off
5316 elif ! test -e $srcdir/info/emacs; then
5317 { { echo "$as_me:$LINENO: error: You do not seem to have makeinfo >= 4.6, and your
5318 source tree does not seem to have pre-built manuals in the \`info' directory.
5319 Either install a suitable version of makeinfo, or re-run configure
5320 with the \`--without-makeinfo' option to build without the manuals. " >&5
5321 echo "$as_me: error: You do not seem to have makeinfo >= 4.6, and your
5322 source tree does not seem to have pre-built manuals in the \`info' directory.
5323 Either install a suitable version of makeinfo, or re-run configure
5324 with the \`--without-makeinfo' option to build without the manuals. " >&2;}
5325 { (exit 1); exit 1; }; }
5326 fi
5327 fi
5328
5329
5330 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5331 then
5332 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5333 fi
5334
5335 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5336 then
5337 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5338 fi
5339
5340
5341 late_LDFLAGS=$LDFLAGS
5342 if test "$GCC" = yes; then
5343 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5344 else
5345 LDFLAGS="$LDFLAGS -znocombreloc"
5346 fi
5347
5348 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5349 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5350 cat >conftest.$ac_ext <<_ACEOF
5351 main(){return 0;}
5352 _ACEOF
5353 rm -f conftest.$ac_objext conftest$ac_exeext
5354 if { (ac_try="$ac_link"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_link") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } && {
5367 test -z "$ac_c_werror_flag" ||
5368 test ! -s conftest.err
5369 } && test -s conftest$ac_exeext &&
5370 $as_test_x conftest$ac_exeext; then
5371 { echo "$as_me:$LINENO: result: yes" >&5
5372 echo "${ECHO_T}yes" >&6; }
5373 else
5374 echo "$as_me: failed program was:" >&5
5375 sed 's/^/| /' conftest.$ac_ext >&5
5376
5377 LDFLAGS=$late_LDFLAGS
5378 { echo "$as_me:$LINENO: result: no" >&5
5379 echo "${ECHO_T}no" >&6; }
5380 fi
5381
5382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5383 conftest$ac_exeext conftest.$ac_ext
5384
5385 #### Extract some information from the operating system and machine files.
5386
5387 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5388 - which libraries the lib-src programs will want, and
5389 - whether the GNU malloc routines are usable..." >&5
5390 echo "$as_me: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&6;}
5393
5394 ### First figure out CFLAGS (which we use for running the compiler here)
5395 ### and REAL_CFLAGS (which we use for real compilation).
5396 ### The two are the same except on a few systems, where they are made
5397 ### different to work around various lossages. For example,
5398 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5399 ### as implying static linking.
5400
5401 ### If the CFLAGS env var is specified, we use that value
5402 ### instead of the default.
5403
5404 ### It's not important that this name contain the PID; you can't run
5405 ### two configures in the same directory and have anything work
5406 ### anyway.
5407 tempcname="conftest.c"
5408
5409 echo '
5410 #include "'${srcdir}'/src/'${opsysfile}'"
5411 #include "'${srcdir}'/src/'${machfile}'"
5412 #ifndef LIBS_MACHINE
5413 #define LIBS_MACHINE
5414 #endif
5415 #ifndef LIBS_SYSTEM
5416 #define LIBS_SYSTEM
5417 #endif
5418 #ifndef C_SWITCH_SYSTEM
5419 #define C_SWITCH_SYSTEM
5420 #endif
5421 #ifndef C_SWITCH_MACHINE
5422 #define C_SWITCH_MACHINE
5423 #endif
5424 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5425 configure___ c_switch_system=C_SWITCH_SYSTEM
5426 configure___ c_switch_machine=C_SWITCH_MACHINE
5427
5428 #ifndef LIB_X11_LIB
5429 #define LIB_X11_LIB -lX11
5430 #endif
5431
5432 #ifndef LIBX11_SYSTEM
5433 #define LIBX11_SYSTEM
5434 #endif
5435 configure___ LIBX=LIB_X11_LIB LIBX11_SYSTEM
5436
5437 #ifdef UNEXEC
5438 configure___ unexec=UNEXEC
5439 #else
5440 configure___ unexec=unexec.o
5441 #endif
5442
5443 #ifdef SYSTEM_MALLOC
5444 configure___ system_malloc=yes
5445 #else
5446 configure___ system_malloc=no
5447 #endif
5448
5449 #ifdef USE_MMAP_FOR_BUFFERS
5450 configure___ use_mmap_for_buffers=yes
5451 #else
5452 configure___ use_mmap_for_buffers=no
5453 #endif
5454
5455 #ifndef C_DEBUG_SWITCH
5456 #define C_DEBUG_SWITCH -g
5457 #endif
5458
5459 #ifndef C_OPTIMIZE_SWITCH
5460 #ifdef __GNUC__
5461 #define C_OPTIMIZE_SWITCH -O2
5462 #else
5463 #define C_OPTIMIZE_SWITCH -O
5464 #endif
5465 #endif
5466
5467 #ifndef C_WARNINGS_SWITCH
5468 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5469 #endif
5470
5471 #ifndef LD_SWITCH_MACHINE
5472 #define LD_SWITCH_MACHINE
5473 #endif
5474
5475 #ifndef LD_SWITCH_SYSTEM
5476 #define LD_SWITCH_SYSTEM
5477 #endif
5478
5479 #ifndef LD_SWITCH_X_SITE_AUX
5480 #define LD_SWITCH_X_SITE_AUX
5481 #endif
5482
5483 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5484 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5485
5486 #ifdef THIS_IS_CONFIGURE
5487
5488 /* Get the CFLAGS for tests in configure. */
5489 #ifdef __GNUC__
5490 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5491 #else
5492 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5493 #endif
5494
5495 #else /* not THIS_IS_CONFIGURE */
5496
5497 /* Get the CFLAGS for real compilation. */
5498 #ifdef __GNUC__
5499 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5500 #else
5501 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5502 #endif
5503
5504 #endif /* not THIS_IS_CONFIGURE */
5505 ' > ${tempcname}
5506
5507 # The value of CPP is a quoted variable reference, so we need to do this
5508 # to get its actual value...
5509 CPP=`eval "echo $CPP"`
5510 eval `${CPP} -Isrc ${tempcname} \
5511 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5512 if test "x$SPECIFIED_CFLAGS" = x; then
5513 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5514 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5515 else
5516 REAL_CFLAGS="$CFLAGS"
5517 fi
5518 rm ${tempcname}
5519
5520 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5521
5522 ### Make sure subsequent tests use flags consistent with the build flags.
5523
5524 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5525 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5526 else
5527 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5528 fi
5529
5530
5531
5532 # Check whether --enable-largefile was given.
5533 if test "${enable_largefile+set}" = set; then
5534 enableval=$enable_largefile;
5535 fi
5536
5537 if test "$enable_largefile" != no; then
5538
5539 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5540 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5541 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5542 echo $ECHO_N "(cached) $ECHO_C" >&6
5543 else
5544 ac_cv_sys_largefile_CC=no
5545 if test "$GCC" != yes; then
5546 ac_save_CC=$CC
5547 while :; do
5548 # IRIX 6.2 and later do not support large files by default,
5549 # so use the C compiler's -n32 option if that helps.
5550 cat >conftest.$ac_ext <<_ACEOF
5551 /* confdefs.h. */
5552 _ACEOF
5553 cat confdefs.h >>conftest.$ac_ext
5554 cat >>conftest.$ac_ext <<_ACEOF
5555 /* end confdefs.h. */
5556 #include <sys/types.h>
5557 /* Check that off_t can represent 2**63 - 1 correctly.
5558 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5559 since some C++ compilers masquerading as C compilers
5560 incorrectly reject 9223372036854775807. */
5561 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5562 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5563 && LARGE_OFF_T % 2147483647 == 1)
5564 ? 1 : -1];
5565 int
5566 main ()
5567 {
5568
5569 ;
5570 return 0;
5571 }
5572 _ACEOF
5573 rm -f conftest.$ac_objext
5574 if { (ac_try="$ac_compile"
5575 case "(($ac_try" in
5576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5577 *) ac_try_echo=$ac_try;;
5578 esac
5579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5580 (eval "$ac_compile") 2>conftest.er1
5581 ac_status=$?
5582 grep -v '^ *+' conftest.er1 >conftest.err
5583 rm -f conftest.er1
5584 cat conftest.err >&5
5585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5586 (exit $ac_status); } && {
5587 test -z "$ac_c_werror_flag" ||
5588 test ! -s conftest.err
5589 } && test -s conftest.$ac_objext; then
5590 break
5591 else
5592 echo "$as_me: failed program was:" >&5
5593 sed 's/^/| /' conftest.$ac_ext >&5
5594
5595
5596 fi
5597
5598 rm -f core conftest.err conftest.$ac_objext
5599 CC="$CC -n32"
5600 rm -f conftest.$ac_objext
5601 if { (ac_try="$ac_compile"
5602 case "(($ac_try" in
5603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5604 *) ac_try_echo=$ac_try;;
5605 esac
5606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5607 (eval "$ac_compile") 2>conftest.er1
5608 ac_status=$?
5609 grep -v '^ *+' conftest.er1 >conftest.err
5610 rm -f conftest.er1
5611 cat conftest.err >&5
5612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5613 (exit $ac_status); } && {
5614 test -z "$ac_c_werror_flag" ||
5615 test ! -s conftest.err
5616 } && test -s conftest.$ac_objext; then
5617 ac_cv_sys_largefile_CC=' -n32'; break
5618 else
5619 echo "$as_me: failed program was:" >&5
5620 sed 's/^/| /' conftest.$ac_ext >&5
5621
5622
5623 fi
5624
5625 rm -f core conftest.err conftest.$ac_objext
5626 break
5627 done
5628 CC=$ac_save_CC
5629 rm -f conftest.$ac_ext
5630 fi
5631 fi
5632 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5633 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5634 if test "$ac_cv_sys_largefile_CC" != no; then
5635 CC=$CC$ac_cv_sys_largefile_CC
5636 fi
5637
5638 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5639 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5640 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5641 echo $ECHO_N "(cached) $ECHO_C" >&6
5642 else
5643 while :; do
5644 cat >conftest.$ac_ext <<_ACEOF
5645 /* confdefs.h. */
5646 _ACEOF
5647 cat confdefs.h >>conftest.$ac_ext
5648 cat >>conftest.$ac_ext <<_ACEOF
5649 /* end confdefs.h. */
5650 #include <sys/types.h>
5651 /* Check that off_t can represent 2**63 - 1 correctly.
5652 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5653 since some C++ compilers masquerading as C compilers
5654 incorrectly reject 9223372036854775807. */
5655 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5656 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5657 && LARGE_OFF_T % 2147483647 == 1)
5658 ? 1 : -1];
5659 int
5660 main ()
5661 {
5662
5663 ;
5664 return 0;
5665 }
5666 _ACEOF
5667 rm -f conftest.$ac_objext
5668 if { (ac_try="$ac_compile"
5669 case "(($ac_try" in
5670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5671 *) ac_try_echo=$ac_try;;
5672 esac
5673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5674 (eval "$ac_compile") 2>conftest.er1
5675 ac_status=$?
5676 grep -v '^ *+' conftest.er1 >conftest.err
5677 rm -f conftest.er1
5678 cat conftest.err >&5
5679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5680 (exit $ac_status); } && {
5681 test -z "$ac_c_werror_flag" ||
5682 test ! -s conftest.err
5683 } && test -s conftest.$ac_objext; then
5684 ac_cv_sys_file_offset_bits=no; break
5685 else
5686 echo "$as_me: failed program was:" >&5
5687 sed 's/^/| /' conftest.$ac_ext >&5
5688
5689
5690 fi
5691
5692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5693 cat >conftest.$ac_ext <<_ACEOF
5694 /* confdefs.h. */
5695 _ACEOF
5696 cat confdefs.h >>conftest.$ac_ext
5697 cat >>conftest.$ac_ext <<_ACEOF
5698 /* end confdefs.h. */
5699 #define _FILE_OFFSET_BITS 64
5700 #include <sys/types.h>
5701 /* Check that off_t can represent 2**63 - 1 correctly.
5702 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5703 since some C++ compilers masquerading as C compilers
5704 incorrectly reject 9223372036854775807. */
5705 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5706 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5707 && LARGE_OFF_T % 2147483647 == 1)
5708 ? 1 : -1];
5709 int
5710 main ()
5711 {
5712
5713 ;
5714 return 0;
5715 }
5716 _ACEOF
5717 rm -f conftest.$ac_objext
5718 if { (ac_try="$ac_compile"
5719 case "(($ac_try" in
5720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5721 *) ac_try_echo=$ac_try;;
5722 esac
5723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5724 (eval "$ac_compile") 2>conftest.er1
5725 ac_status=$?
5726 grep -v '^ *+' conftest.er1 >conftest.err
5727 rm -f conftest.er1
5728 cat conftest.err >&5
5729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5730 (exit $ac_status); } && {
5731 test -z "$ac_c_werror_flag" ||
5732 test ! -s conftest.err
5733 } && test -s conftest.$ac_objext; then
5734 ac_cv_sys_file_offset_bits=64; break
5735 else
5736 echo "$as_me: failed program was:" >&5
5737 sed 's/^/| /' conftest.$ac_ext >&5
5738
5739
5740 fi
5741
5742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5743 ac_cv_sys_file_offset_bits=unknown
5744 break
5745 done
5746 fi
5747 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5748 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5749 case $ac_cv_sys_file_offset_bits in #(
5750 no | unknown) ;;
5751 *)
5752 cat >>confdefs.h <<_ACEOF
5753 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5754 _ACEOF
5755 ;;
5756 esac
5757 rm -f conftest*
5758 if test $ac_cv_sys_file_offset_bits = unknown; then
5759 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5760 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5761 if test "${ac_cv_sys_large_files+set}" = set; then
5762 echo $ECHO_N "(cached) $ECHO_C" >&6
5763 else
5764 while :; do
5765 cat >conftest.$ac_ext <<_ACEOF
5766 /* confdefs.h. */
5767 _ACEOF
5768 cat confdefs.h >>conftest.$ac_ext
5769 cat >>conftest.$ac_ext <<_ACEOF
5770 /* end confdefs.h. */
5771 #include <sys/types.h>
5772 /* Check that off_t can represent 2**63 - 1 correctly.
5773 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5774 since some C++ compilers masquerading as C compilers
5775 incorrectly reject 9223372036854775807. */
5776 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5777 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5778 && LARGE_OFF_T % 2147483647 == 1)
5779 ? 1 : -1];
5780 int
5781 main ()
5782 {
5783
5784 ;
5785 return 0;
5786 }
5787 _ACEOF
5788 rm -f conftest.$ac_objext
5789 if { (ac_try="$ac_compile"
5790 case "(($ac_try" in
5791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792 *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795 (eval "$ac_compile") 2>conftest.er1
5796 ac_status=$?
5797 grep -v '^ *+' conftest.er1 >conftest.err
5798 rm -f conftest.er1
5799 cat conftest.err >&5
5800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5801 (exit $ac_status); } && {
5802 test -z "$ac_c_werror_flag" ||
5803 test ! -s conftest.err
5804 } && test -s conftest.$ac_objext; then
5805 ac_cv_sys_large_files=no; break
5806 else
5807 echo "$as_me: failed program was:" >&5
5808 sed 's/^/| /' conftest.$ac_ext >&5
5809
5810
5811 fi
5812
5813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5814 cat >conftest.$ac_ext <<_ACEOF
5815 /* confdefs.h. */
5816 _ACEOF
5817 cat confdefs.h >>conftest.$ac_ext
5818 cat >>conftest.$ac_ext <<_ACEOF
5819 /* end confdefs.h. */
5820 #define _LARGE_FILES 1
5821 #include <sys/types.h>
5822 /* Check that off_t can represent 2**63 - 1 correctly.
5823 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5824 since some C++ compilers masquerading as C compilers
5825 incorrectly reject 9223372036854775807. */
5826 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5827 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5828 && LARGE_OFF_T % 2147483647 == 1)
5829 ? 1 : -1];
5830 int
5831 main ()
5832 {
5833
5834 ;
5835 return 0;
5836 }
5837 _ACEOF
5838 rm -f conftest.$ac_objext
5839 if { (ac_try="$ac_compile"
5840 case "(($ac_try" in
5841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5842 *) ac_try_echo=$ac_try;;
5843 esac
5844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5845 (eval "$ac_compile") 2>conftest.er1
5846 ac_status=$?
5847 grep -v '^ *+' conftest.er1 >conftest.err
5848 rm -f conftest.er1
5849 cat conftest.err >&5
5850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5851 (exit $ac_status); } && {
5852 test -z "$ac_c_werror_flag" ||
5853 test ! -s conftest.err
5854 } && test -s conftest.$ac_objext; then
5855 ac_cv_sys_large_files=1; break
5856 else
5857 echo "$as_me: failed program was:" >&5
5858 sed 's/^/| /' conftest.$ac_ext >&5
5859
5860
5861 fi
5862
5863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5864 ac_cv_sys_large_files=unknown
5865 break
5866 done
5867 fi
5868 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5869 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5870 case $ac_cv_sys_large_files in #(
5871 no | unknown) ;;
5872 *)
5873 cat >>confdefs.h <<_ACEOF
5874 #define _LARGE_FILES $ac_cv_sys_large_files
5875 _ACEOF
5876 ;;
5877 esac
5878 rm -f conftest*
5879 fi
5880 fi
5881
5882
5883
5884 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5885 ### be located in either /usr/lib64 or /usr/lib.
5886 case "${canonical}" in
5887 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5888 if test -d /usr/lib64; then
5889
5890 cat >>confdefs.h <<\_ACEOF
5891 #define HAVE_LIB64_DIR 1
5892 _ACEOF
5893
5894 fi
5895 esac
5896
5897
5898
5899
5900 if test "${with_sound}" != "no"; then
5901 # Sound support for GNU/Linux and the free BSDs.
5902
5903
5904
5905 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5906 do
5907 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 fi
5914 ac_res=`eval echo '${'$as_ac_Header'}'`
5915 { echo "$as_me:$LINENO: result: $ac_res" >&5
5916 echo "${ECHO_T}$ac_res" >&6; }
5917 else
5918 # Is the header compilable?
5919 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5920 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5921 cat >conftest.$ac_ext <<_ACEOF
5922 /* confdefs.h. */
5923 _ACEOF
5924 cat confdefs.h >>conftest.$ac_ext
5925 cat >>conftest.$ac_ext <<_ACEOF
5926 /* end confdefs.h. */
5927 $ac_includes_default
5928 #include <$ac_header>
5929 _ACEOF
5930 rm -f conftest.$ac_objext
5931 if { (ac_try="$ac_compile"
5932 case "(($ac_try" in
5933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5934 *) ac_try_echo=$ac_try;;
5935 esac
5936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5937 (eval "$ac_compile") 2>conftest.er1
5938 ac_status=$?
5939 grep -v '^ *+' conftest.er1 >conftest.err
5940 rm -f conftest.er1
5941 cat conftest.err >&5
5942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5943 (exit $ac_status); } && {
5944 test -z "$ac_c_werror_flag" ||
5945 test ! -s conftest.err
5946 } && test -s conftest.$ac_objext; then
5947 ac_header_compiler=yes
5948 else
5949 echo "$as_me: failed program was:" >&5
5950 sed 's/^/| /' conftest.$ac_ext >&5
5951
5952 ac_header_compiler=no
5953 fi
5954
5955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5956 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5957 echo "${ECHO_T}$ac_header_compiler" >&6; }
5958
5959 # Is the header present?
5960 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5961 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <$ac_header>
5969 _ACEOF
5970 if { (ac_try="$ac_cpp conftest.$ac_ext"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } >/dev/null && {
5983 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5984 test ! -s conftest.err
5985 }; then
5986 ac_header_preproc=yes
5987 else
5988 echo "$as_me: failed program was:" >&5
5989 sed 's/^/| /' conftest.$ac_ext >&5
5990
5991 ac_header_preproc=no
5992 fi
5993
5994 rm -f conftest.err conftest.$ac_ext
5995 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5996 echo "${ECHO_T}$ac_header_preproc" >&6; }
5997
5998 # So? What about this header?
5999 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6000 yes:no: )
6001 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6002 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6003 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6004 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6005 ac_header_preproc=yes
6006 ;;
6007 no:yes:* )
6008 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6009 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6010 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6011 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6012 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6013 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6014 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6015 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6016 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6017 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6018 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6019 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6020
6021 ;;
6022 esac
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 else
6028 eval "$as_ac_Header=\$ac_header_preproc"
6029 fi
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6033
6034 fi
6035 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6036 cat >>confdefs.h <<_ACEOF
6037 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6038 _ACEOF
6039
6040 fi
6041
6042 done
6043
6044 # Emulation library used on NetBSD.
6045 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6046 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6047 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6048 echo $ECHO_N "(cached) $ECHO_C" >&6
6049 else
6050 ac_check_lib_save_LIBS=$LIBS
6051 LIBS="-lossaudio $LIBS"
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058
6059 /* Override any GCC internal prototype to avoid an error.
6060 Use char because int might match the return type of a GCC
6061 builtin and then its argument prototype would still apply. */
6062 #ifdef __cplusplus
6063 extern "C"
6064 #endif
6065 char _oss_ioctl ();
6066 int
6067 main ()
6068 {
6069 return _oss_ioctl ();
6070 ;
6071 return 0;
6072 }
6073 _ACEOF
6074 rm -f conftest.$ac_objext conftest$ac_exeext
6075 if { (ac_try="$ac_link"
6076 case "(($ac_try" in
6077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6078 *) ac_try_echo=$ac_try;;
6079 esac
6080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6081 (eval "$ac_link") 2>conftest.er1
6082 ac_status=$?
6083 grep -v '^ *+' conftest.er1 >conftest.err
6084 rm -f conftest.er1
6085 cat conftest.err >&5
6086 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6087 (exit $ac_status); } && {
6088 test -z "$ac_c_werror_flag" ||
6089 test ! -s conftest.err
6090 } && test -s conftest$ac_exeext &&
6091 $as_test_x conftest$ac_exeext; then
6092 ac_cv_lib_ossaudio__oss_ioctl=yes
6093 else
6094 echo "$as_me: failed program was:" >&5
6095 sed 's/^/| /' conftest.$ac_ext >&5
6096
6097 ac_cv_lib_ossaudio__oss_ioctl=no
6098 fi
6099
6100 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6101 conftest$ac_exeext conftest.$ac_ext
6102 LIBS=$ac_check_lib_save_LIBS
6103 fi
6104 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6105 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6106 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6107 LIBSOUND=-lossaudio
6108 else
6109 LIBSOUND=
6110 fi
6111
6112
6113
6114 ALSA_REQUIRED=1.0.0
6115 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6116
6117 succeeded=no
6118
6119 # Extract the first word of "pkg-config", so it can be a program name with args.
6120 set dummy pkg-config; ac_word=$2
6121 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6122 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6123 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6124 echo $ECHO_N "(cached) $ECHO_C" >&6
6125 else
6126 case $PKG_CONFIG in
6127 [\\/]* | ?:[\\/]*)
6128 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6129 ;;
6130 *)
6131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6132 for as_dir in $PATH
6133 do
6134 IFS=$as_save_IFS
6135 test -z "$as_dir" && as_dir=.
6136 for ac_exec_ext in '' $ac_executable_extensions; do
6137 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6138 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6139 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6140 break 2
6141 fi
6142 done
6143 done
6144 IFS=$as_save_IFS
6145
6146 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6147 ;;
6148 esac
6149 fi
6150 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6151 if test -n "$PKG_CONFIG"; then
6152 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6153 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6154 else
6155 { echo "$as_me:$LINENO: result: no" >&5
6156 echo "${ECHO_T}no" >&6; }
6157 fi
6158
6159
6160
6161 if test "$PKG_CONFIG" = "no" ; then
6162 HAVE_ALSA=no
6163 else
6164 PKG_CONFIG_MIN_VERSION=0.9.0
6165 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6166 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6167 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6168
6169 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6170 { echo "$as_me:$LINENO: result: yes" >&5
6171 echo "${ECHO_T}yes" >&6; }
6172 succeeded=yes
6173
6174 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6175 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6176 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6177 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6178 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6179
6180 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6181 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6182 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6183 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6184 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6185 else
6186 { echo "$as_me:$LINENO: result: no" >&5
6187 echo "${ECHO_T}no" >&6; }
6188 ALSA_CFLAGS=""
6189 ALSA_LIBS=""
6190 ## If we have a custom action on failure, don't print errors, but
6191 ## do set a variable so people can do so.
6192 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6193
6194 fi
6195
6196
6197
6198 else
6199 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6200 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6201 fi
6202 fi
6203
6204 if test $succeeded = yes; then
6205 HAVE_ALSA=yes
6206 else
6207 HAVE_ALSA=no
6208 fi
6209
6210 if test $HAVE_ALSA = yes; then
6211 SAVE_CFLAGS="$CFLAGS"
6212 SAVE_LDFLAGS="$LDFLAGS"
6213 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6214 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6215 cat >conftest.$ac_ext <<_ACEOF
6216 /* confdefs.h. */
6217 _ACEOF
6218 cat confdefs.h >>conftest.$ac_ext
6219 cat >>conftest.$ac_ext <<_ACEOF
6220 /* end confdefs.h. */
6221 #include <asoundlib.h>
6222 int
6223 main ()
6224 {
6225 snd_lib_error_set_handler (0);
6226 ;
6227 return 0;
6228 }
6229 _ACEOF
6230 rm -f conftest.$ac_objext
6231 if { (ac_try="$ac_compile"
6232 case "(($ac_try" in
6233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6234 *) ac_try_echo=$ac_try;;
6235 esac
6236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6237 (eval "$ac_compile") 2>conftest.er1
6238 ac_status=$?
6239 grep -v '^ *+' conftest.er1 >conftest.err
6240 rm -f conftest.er1
6241 cat conftest.err >&5
6242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6243 (exit $ac_status); } && {
6244 test -z "$ac_c_werror_flag" ||
6245 test ! -s conftest.err
6246 } && test -s conftest.$ac_objext; then
6247 emacs_alsa_normal=yes
6248 else
6249 echo "$as_me: failed program was:" >&5
6250 sed 's/^/| /' conftest.$ac_ext >&5
6251
6252 emacs_alsa_normal=no
6253 fi
6254
6255 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6256 if test "$emacs_alsa_normal" != yes; then
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 #include <alsa/asoundlib.h>
6264 int
6265 main ()
6266 {
6267 snd_lib_error_set_handler (0);
6268 ;
6269 return 0;
6270 }
6271 _ACEOF
6272 rm -f conftest.$ac_objext
6273 if { (ac_try="$ac_compile"
6274 case "(($ac_try" in
6275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6276 *) ac_try_echo=$ac_try;;
6277 esac
6278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6279 (eval "$ac_compile") 2>conftest.er1
6280 ac_status=$?
6281 grep -v '^ *+' conftest.er1 >conftest.err
6282 rm -f conftest.er1
6283 cat conftest.err >&5
6284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6285 (exit $ac_status); } && {
6286 test -z "$ac_c_werror_flag" ||
6287 test ! -s conftest.err
6288 } && test -s conftest.$ac_objext; then
6289 emacs_alsa_subdir=yes
6290 else
6291 echo "$as_me: failed program was:" >&5
6292 sed 's/^/| /' conftest.$ac_ext >&5
6293
6294 emacs_alsa_subdir=no
6295 fi
6296
6297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6298 if test "$emacs_alsa_subdir" != yes; then
6299 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6300 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6301 { (exit 1); exit 1; }; }
6302 fi
6303 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6304 fi
6305
6306 CFLAGS="$SAVE_CFLAGS"
6307 LDFLAGS="$SAVE_LDFLAGS"
6308 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6309 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6310
6311 cat >>confdefs.h <<\_ACEOF
6312 #define HAVE_ALSA 1
6313 _ACEOF
6314
6315 fi
6316
6317 fi
6318
6319
6320
6321
6322
6323
6324
6325
6326
6327
6328
6329
6330
6331
6332
6333
6334
6335
6336
6337
6338
6339
6340
6341
6342
6343
6344 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6345 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6346 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6347 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6348 sys/utsname.h pwd.h
6349 do
6350 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6352 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6353 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6354 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6355 echo $ECHO_N "(cached) $ECHO_C" >&6
6356 fi
6357 ac_res=`eval echo '${'$as_ac_Header'}'`
6358 { echo "$as_me:$LINENO: result: $ac_res" >&5
6359 echo "${ECHO_T}$ac_res" >&6; }
6360 else
6361 # Is the header compilable?
6362 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6363 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6364 cat >conftest.$ac_ext <<_ACEOF
6365 /* confdefs.h. */
6366 _ACEOF
6367 cat confdefs.h >>conftest.$ac_ext
6368 cat >>conftest.$ac_ext <<_ACEOF
6369 /* end confdefs.h. */
6370 $ac_includes_default
6371 #include <$ac_header>
6372 _ACEOF
6373 rm -f conftest.$ac_objext
6374 if { (ac_try="$ac_compile"
6375 case "(($ac_try" in
6376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6377 *) ac_try_echo=$ac_try;;
6378 esac
6379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6380 (eval "$ac_compile") 2>conftest.er1
6381 ac_status=$?
6382 grep -v '^ *+' conftest.er1 >conftest.err
6383 rm -f conftest.er1
6384 cat conftest.err >&5
6385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6386 (exit $ac_status); } && {
6387 test -z "$ac_c_werror_flag" ||
6388 test ! -s conftest.err
6389 } && test -s conftest.$ac_objext; then
6390 ac_header_compiler=yes
6391 else
6392 echo "$as_me: failed program was:" >&5
6393 sed 's/^/| /' conftest.$ac_ext >&5
6394
6395 ac_header_compiler=no
6396 fi
6397
6398 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6399 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6400 echo "${ECHO_T}$ac_header_compiler" >&6; }
6401
6402 # Is the header present?
6403 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6404 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6405 cat >conftest.$ac_ext <<_ACEOF
6406 /* confdefs.h. */
6407 _ACEOF
6408 cat confdefs.h >>conftest.$ac_ext
6409 cat >>conftest.$ac_ext <<_ACEOF
6410 /* end confdefs.h. */
6411 #include <$ac_header>
6412 _ACEOF
6413 if { (ac_try="$ac_cpp conftest.$ac_ext"
6414 case "(($ac_try" in
6415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6416 *) ac_try_echo=$ac_try;;
6417 esac
6418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6420 ac_status=$?
6421 grep -v '^ *+' conftest.er1 >conftest.err
6422 rm -f conftest.er1
6423 cat conftest.err >&5
6424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6425 (exit $ac_status); } >/dev/null && {
6426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6427 test ! -s conftest.err
6428 }; then
6429 ac_header_preproc=yes
6430 else
6431 echo "$as_me: failed program was:" >&5
6432 sed 's/^/| /' conftest.$ac_ext >&5
6433
6434 ac_header_preproc=no
6435 fi
6436
6437 rm -f conftest.err conftest.$ac_ext
6438 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6439 echo "${ECHO_T}$ac_header_preproc" >&6; }
6440
6441 # So? What about this header?
6442 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6443 yes:no: )
6444 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6445 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6446 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6447 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6448 ac_header_preproc=yes
6449 ;;
6450 no:yes:* )
6451 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6452 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6453 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6454 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6455 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6456 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6457 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6458 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6459 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6460 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6461 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6462 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6463
6464 ;;
6465 esac
6466 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6467 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6469 echo $ECHO_N "(cached) $ECHO_C" >&6
6470 else
6471 eval "$as_ac_Header=\$ac_header_preproc"
6472 fi
6473 ac_res=`eval echo '${'$as_ac_Header'}'`
6474 { echo "$as_me:$LINENO: result: $ac_res" >&5
6475 echo "${ECHO_T}$ac_res" >&6; }
6476
6477 fi
6478 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6479 cat >>confdefs.h <<_ACEOF
6480 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6481 _ACEOF
6482
6483 fi
6484
6485 done
6486
6487
6488 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6489 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6490 cat >conftest.$ac_ext <<_ACEOF
6491 /* confdefs.h. */
6492 _ACEOF
6493 cat confdefs.h >>conftest.$ac_ext
6494 cat >>conftest.$ac_ext <<_ACEOF
6495 /* end confdefs.h. */
6496 #include <sys/personality.h>
6497 int
6498 main ()
6499 {
6500 personality (PER_LINUX32)
6501 ;
6502 return 0;
6503 }
6504 _ACEOF
6505 rm -f conftest.$ac_objext
6506 if { (ac_try="$ac_compile"
6507 case "(($ac_try" in
6508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6509 *) ac_try_echo=$ac_try;;
6510 esac
6511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6512 (eval "$ac_compile") 2>conftest.er1
6513 ac_status=$?
6514 grep -v '^ *+' conftest.er1 >conftest.err
6515 rm -f conftest.er1
6516 cat conftest.err >&5
6517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6518 (exit $ac_status); } && {
6519 test -z "$ac_c_werror_flag" ||
6520 test ! -s conftest.err
6521 } && test -s conftest.$ac_objext; then
6522 emacs_cv_personality_linux32=yes
6523 else
6524 echo "$as_me: failed program was:" >&5
6525 sed 's/^/| /' conftest.$ac_ext >&5
6526
6527 emacs_cv_personality_linux32=no
6528 fi
6529
6530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6531 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6532 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6533
6534 if test $emacs_cv_personality_linux32 = yes; then
6535
6536 cat >>confdefs.h <<\_ACEOF
6537 #define HAVE_PERSONALITY_LINUX32 1
6538 _ACEOF
6539
6540 fi
6541
6542
6543 for ac_header in term.h
6544 do
6545 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6546 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6547 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6548 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6549 echo $ECHO_N "(cached) $ECHO_C" >&6
6550 else
6551 cat >conftest.$ac_ext <<_ACEOF
6552 /* confdefs.h. */
6553 _ACEOF
6554 cat confdefs.h >>conftest.$ac_ext
6555 cat >>conftest.$ac_ext <<_ACEOF
6556 /* end confdefs.h. */
6557 #include <$ac_header>
6558 _ACEOF
6559 if { (ac_try="$ac_cpp conftest.$ac_ext"
6560 case "(($ac_try" in
6561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6562 *) ac_try_echo=$ac_try;;
6563 esac
6564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6565 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6566 ac_status=$?
6567 grep -v '^ *+' conftest.er1 >conftest.err
6568 rm -f conftest.er1
6569 cat conftest.err >&5
6570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6571 (exit $ac_status); } >/dev/null && {
6572 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6573 test ! -s conftest.err
6574 }; then
6575 eval "$as_ac_Header=yes"
6576 else
6577 echo "$as_me: failed program was:" >&5
6578 sed 's/^/| /' conftest.$ac_ext >&5
6579
6580 eval "$as_ac_Header=no"
6581 fi
6582
6583 rm -f conftest.err conftest.$ac_ext
6584 fi
6585 ac_res=`eval echo '${'$as_ac_Header'}'`
6586 { echo "$as_me:$LINENO: result: $ac_res" >&5
6587 echo "${ECHO_T}$ac_res" >&6; }
6588 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6589 cat >>confdefs.h <<_ACEOF
6590 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6591 _ACEOF
6592
6593 fi
6594
6595 done
6596
6597 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6598 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6599 if test "${ac_cv_header_stdc+set}" = set; then
6600 echo $ECHO_N "(cached) $ECHO_C" >&6
6601 else
6602 cat >conftest.$ac_ext <<_ACEOF
6603 /* confdefs.h. */
6604 _ACEOF
6605 cat confdefs.h >>conftest.$ac_ext
6606 cat >>conftest.$ac_ext <<_ACEOF
6607 /* end confdefs.h. */
6608 #include <stdlib.h>
6609 #include <stdarg.h>
6610 #include <string.h>
6611 #include <float.h>
6612
6613 int
6614 main ()
6615 {
6616
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
6623 case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_compile") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 ac_cv_header_stdc=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_cv_header_stdc=no
6644 fi
6645
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647
6648 if test $ac_cv_header_stdc = yes; then
6649 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6650 cat >conftest.$ac_ext <<_ACEOF
6651 /* confdefs.h. */
6652 _ACEOF
6653 cat confdefs.h >>conftest.$ac_ext
6654 cat >>conftest.$ac_ext <<_ACEOF
6655 /* end confdefs.h. */
6656 #include <string.h>
6657
6658 _ACEOF
6659 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6660 $EGREP "memchr" >/dev/null 2>&1; then
6661 :
6662 else
6663 ac_cv_header_stdc=no
6664 fi
6665 rm -f conftest*
6666
6667 fi
6668
6669 if test $ac_cv_header_stdc = yes; then
6670 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <stdlib.h>
6678
6679 _ACEOF
6680 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6681 $EGREP "free" >/dev/null 2>&1; then
6682 :
6683 else
6684 ac_cv_header_stdc=no
6685 fi
6686 rm -f conftest*
6687
6688 fi
6689
6690 if test $ac_cv_header_stdc = yes; then
6691 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6692 if test "$cross_compiling" = yes; then
6693 :
6694 else
6695 cat >conftest.$ac_ext <<_ACEOF
6696 /* confdefs.h. */
6697 _ACEOF
6698 cat confdefs.h >>conftest.$ac_ext
6699 cat >>conftest.$ac_ext <<_ACEOF
6700 /* end confdefs.h. */
6701 #include <ctype.h>
6702 #include <stdlib.h>
6703 #if ((' ' & 0x0FF) == 0x020)
6704 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6705 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6706 #else
6707 # define ISLOWER(c) \
6708 (('a' <= (c) && (c) <= 'i') \
6709 || ('j' <= (c) && (c) <= 'r') \
6710 || ('s' <= (c) && (c) <= 'z'))
6711 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6712 #endif
6713
6714 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6715 int
6716 main ()
6717 {
6718 int i;
6719 for (i = 0; i < 256; i++)
6720 if (XOR (islower (i), ISLOWER (i))
6721 || toupper (i) != TOUPPER (i))
6722 return 2;
6723 return 0;
6724 }
6725 _ACEOF
6726 rm -f conftest$ac_exeext
6727 if { (ac_try="$ac_link"
6728 case "(($ac_try" in
6729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6730 *) ac_try_echo=$ac_try;;
6731 esac
6732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6733 (eval "$ac_link") 2>&5
6734 ac_status=$?
6735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6736 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6737 { (case "(($ac_try" in
6738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6739 *) ac_try_echo=$ac_try;;
6740 esac
6741 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6742 (eval "$ac_try") 2>&5
6743 ac_status=$?
6744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6745 (exit $ac_status); }; }; then
6746 :
6747 else
6748 echo "$as_me: program exited with status $ac_status" >&5
6749 echo "$as_me: failed program was:" >&5
6750 sed 's/^/| /' conftest.$ac_ext >&5
6751
6752 ( exit $ac_status )
6753 ac_cv_header_stdc=no
6754 fi
6755 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6756 fi
6757
6758
6759 fi
6760 fi
6761 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6762 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6763 if test $ac_cv_header_stdc = yes; then
6764
6765 cat >>confdefs.h <<\_ACEOF
6766 #define STDC_HEADERS 1
6767 _ACEOF
6768
6769 fi
6770
6771 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6772 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6773 if test "${ac_cv_header_time+set}" = set; then
6774 echo $ECHO_N "(cached) $ECHO_C" >&6
6775 else
6776 cat >conftest.$ac_ext <<_ACEOF
6777 /* confdefs.h. */
6778 _ACEOF
6779 cat confdefs.h >>conftest.$ac_ext
6780 cat >>conftest.$ac_ext <<_ACEOF
6781 /* end confdefs.h. */
6782 #include <sys/types.h>
6783 #include <sys/time.h>
6784 #include <time.h>
6785
6786 int
6787 main ()
6788 {
6789 if ((struct tm *) 0)
6790 return 0;
6791 ;
6792 return 0;
6793 }
6794 _ACEOF
6795 rm -f conftest.$ac_objext
6796 if { (ac_try="$ac_compile"
6797 case "(($ac_try" in
6798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6799 *) ac_try_echo=$ac_try;;
6800 esac
6801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6802 (eval "$ac_compile") 2>conftest.er1
6803 ac_status=$?
6804 grep -v '^ *+' conftest.er1 >conftest.err
6805 rm -f conftest.er1
6806 cat conftest.err >&5
6807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6808 (exit $ac_status); } && {
6809 test -z "$ac_c_werror_flag" ||
6810 test ! -s conftest.err
6811 } && test -s conftest.$ac_objext; then
6812 ac_cv_header_time=yes
6813 else
6814 echo "$as_me: failed program was:" >&5
6815 sed 's/^/| /' conftest.$ac_ext >&5
6816
6817 ac_cv_header_time=no
6818 fi
6819
6820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6821 fi
6822 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6823 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6824 if test $ac_cv_header_time = yes; then
6825
6826 cat >>confdefs.h <<\_ACEOF
6827 #define TIME_WITH_SYS_TIME 1
6828 _ACEOF
6829
6830 fi
6831
6832 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6833 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6834 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6835 echo $ECHO_N "(cached) $ECHO_C" >&6
6836 else
6837 cat >conftest.$ac_ext <<_ACEOF
6838 /* confdefs.h. */
6839 _ACEOF
6840 cat confdefs.h >>conftest.$ac_ext
6841 cat >>conftest.$ac_ext <<_ACEOF
6842 /* end confdefs.h. */
6843 $ac_includes_default
6844 int
6845 main ()
6846 {
6847 #ifndef sys_siglist
6848 (void) sys_siglist;
6849 #endif
6850
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 rm -f conftest.$ac_objext
6856 if { (ac_try="$ac_compile"
6857 case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_compile") 2>conftest.er1
6863 ac_status=$?
6864 grep -v '^ *+' conftest.er1 >conftest.err
6865 rm -f conftest.er1
6866 cat conftest.err >&5
6867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6868 (exit $ac_status); } && {
6869 test -z "$ac_c_werror_flag" ||
6870 test ! -s conftest.err
6871 } && test -s conftest.$ac_objext; then
6872 ac_cv_have_decl_sys_siglist=yes
6873 else
6874 echo "$as_me: failed program was:" >&5
6875 sed 's/^/| /' conftest.$ac_ext >&5
6876
6877 ac_cv_have_decl_sys_siglist=no
6878 fi
6879
6880 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6881 fi
6882 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6883 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6884 if test $ac_cv_have_decl_sys_siglist = yes; then
6885
6886 cat >>confdefs.h <<_ACEOF
6887 #define HAVE_DECL_SYS_SIGLIST 1
6888 _ACEOF
6889
6890
6891 else
6892 cat >>confdefs.h <<_ACEOF
6893 #define HAVE_DECL_SYS_SIGLIST 0
6894 _ACEOF
6895
6896
6897 fi
6898
6899
6900 if test $ac_cv_have_decl_sys_siglist != yes; then
6901 # For Tru64, at least:
6902 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6903 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6904 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6905 echo $ECHO_N "(cached) $ECHO_C" >&6
6906 else
6907 cat >conftest.$ac_ext <<_ACEOF
6908 /* confdefs.h. */
6909 _ACEOF
6910 cat confdefs.h >>conftest.$ac_ext
6911 cat >>conftest.$ac_ext <<_ACEOF
6912 /* end confdefs.h. */
6913 $ac_includes_default
6914 int
6915 main ()
6916 {
6917 #ifndef __sys_siglist
6918 (void) __sys_siglist;
6919 #endif
6920
6921 ;
6922 return 0;
6923 }
6924 _ACEOF
6925 rm -f conftest.$ac_objext
6926 if { (ac_try="$ac_compile"
6927 case "(($ac_try" in
6928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6929 *) ac_try_echo=$ac_try;;
6930 esac
6931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6932 (eval "$ac_compile") 2>conftest.er1
6933 ac_status=$?
6934 grep -v '^ *+' conftest.er1 >conftest.err
6935 rm -f conftest.er1
6936 cat conftest.err >&5
6937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6938 (exit $ac_status); } && {
6939 test -z "$ac_c_werror_flag" ||
6940 test ! -s conftest.err
6941 } && test -s conftest.$ac_objext; then
6942 ac_cv_have_decl___sys_siglist=yes
6943 else
6944 echo "$as_me: failed program was:" >&5
6945 sed 's/^/| /' conftest.$ac_ext >&5
6946
6947 ac_cv_have_decl___sys_siglist=no
6948 fi
6949
6950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6951 fi
6952 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6953 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6954 if test $ac_cv_have_decl___sys_siglist = yes; then
6955
6956 cat >>confdefs.h <<_ACEOF
6957 #define HAVE_DECL___SYS_SIGLIST 1
6958 _ACEOF
6959
6960
6961 else
6962 cat >>confdefs.h <<_ACEOF
6963 #define HAVE_DECL___SYS_SIGLIST 0
6964 _ACEOF
6965
6966
6967 fi
6968
6969
6970 if test $ac_cv_have_decl___sys_siglist = yes; then
6971
6972 cat >>confdefs.h <<\_ACEOF
6973 #define sys_siglist __sys_siglist
6974 _ACEOF
6975
6976 fi
6977 fi
6978 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6979 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6980 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6981 echo $ECHO_N "(cached) $ECHO_C" >&6
6982 else
6983 cat >conftest.$ac_ext <<_ACEOF
6984 /* confdefs.h. */
6985 _ACEOF
6986 cat confdefs.h >>conftest.$ac_ext
6987 cat >>conftest.$ac_ext <<_ACEOF
6988 /* end confdefs.h. */
6989 #include <sys/types.h>
6990 #include <sys/wait.h>
6991 #ifndef WEXITSTATUS
6992 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6993 #endif
6994 #ifndef WIFEXITED
6995 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6996 #endif
6997
6998 int
6999 main ()
7000 {
7001 int s;
7002 wait (&s);
7003 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7004 ;
7005 return 0;
7006 }
7007 _ACEOF
7008 rm -f conftest.$ac_objext
7009 if { (ac_try="$ac_compile"
7010 case "(($ac_try" in
7011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7012 *) ac_try_echo=$ac_try;;
7013 esac
7014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7015 (eval "$ac_compile") 2>conftest.er1
7016 ac_status=$?
7017 grep -v '^ *+' conftest.er1 >conftest.err
7018 rm -f conftest.er1
7019 cat conftest.err >&5
7020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7021 (exit $ac_status); } && {
7022 test -z "$ac_c_werror_flag" ||
7023 test ! -s conftest.err
7024 } && test -s conftest.$ac_objext; then
7025 ac_cv_header_sys_wait_h=yes
7026 else
7027 echo "$as_me: failed program was:" >&5
7028 sed 's/^/| /' conftest.$ac_ext >&5
7029
7030 ac_cv_header_sys_wait_h=no
7031 fi
7032
7033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7034 fi
7035 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7036 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7037 if test $ac_cv_header_sys_wait_h = yes; then
7038
7039 cat >>confdefs.h <<\_ACEOF
7040 #define HAVE_SYS_WAIT_H 1
7041 _ACEOF
7042
7043 fi
7044
7045
7046 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7047 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7048 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7049 echo $ECHO_N "(cached) $ECHO_C" >&6
7050 else
7051 cat >conftest.$ac_ext <<_ACEOF
7052 /* confdefs.h. */
7053 _ACEOF
7054 cat confdefs.h >>conftest.$ac_ext
7055 cat >>conftest.$ac_ext <<_ACEOF
7056 /* end confdefs.h. */
7057 #ifdef TIME_WITH_SYS_TIME
7058 #include <sys/time.h>
7059 #include <time.h>
7060 #else
7061 #ifdef HAVE_SYS_TIME_H
7062 #include <sys/time.h>
7063 #else
7064 #include <time.h>
7065 #endif
7066 #endif
7067 #ifdef HAVE_UTIME_H
7068 #include <utime.h>
7069 #endif
7070 int
7071 main ()
7072 {
7073 static struct utimbuf x; x.actime = x.modtime;
7074 ;
7075 return 0;
7076 }
7077 _ACEOF
7078 rm -f conftest.$ac_objext
7079 if { (ac_try="$ac_compile"
7080 case "(($ac_try" in
7081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7082 *) ac_try_echo=$ac_try;;
7083 esac
7084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7085 (eval "$ac_compile") 2>conftest.er1
7086 ac_status=$?
7087 grep -v '^ *+' conftest.er1 >conftest.err
7088 rm -f conftest.er1
7089 cat conftest.err >&5
7090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7091 (exit $ac_status); } && {
7092 test -z "$ac_c_werror_flag" ||
7093 test ! -s conftest.err
7094 } && test -s conftest.$ac_objext; then
7095 emacs_cv_struct_utimbuf=yes
7096 else
7097 echo "$as_me: failed program was:" >&5
7098 sed 's/^/| /' conftest.$ac_ext >&5
7099
7100 emacs_cv_struct_utimbuf=no
7101 fi
7102
7103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7104 fi
7105 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7106 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7107 if test $emacs_cv_struct_utimbuf = yes; then
7108
7109 cat >>confdefs.h <<\_ACEOF
7110 #define HAVE_STRUCT_UTIMBUF 1
7111 _ACEOF
7112
7113 fi
7114
7115 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7116 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7117 if test "${ac_cv_type_signal+set}" = set; then
7118 echo $ECHO_N "(cached) $ECHO_C" >&6
7119 else
7120 cat >conftest.$ac_ext <<_ACEOF
7121 /* confdefs.h. */
7122 _ACEOF
7123 cat confdefs.h >>conftest.$ac_ext
7124 cat >>conftest.$ac_ext <<_ACEOF
7125 /* end confdefs.h. */
7126 #include <sys/types.h>
7127 #include <signal.h>
7128
7129 int
7130 main ()
7131 {
7132 return *(signal (0, 0)) (0) == 1;
7133 ;
7134 return 0;
7135 }
7136 _ACEOF
7137 rm -f conftest.$ac_objext
7138 if { (ac_try="$ac_compile"
7139 case "(($ac_try" in
7140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7141 *) ac_try_echo=$ac_try;;
7142 esac
7143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7144 (eval "$ac_compile") 2>conftest.er1
7145 ac_status=$?
7146 grep -v '^ *+' conftest.er1 >conftest.err
7147 rm -f conftest.er1
7148 cat conftest.err >&5
7149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7150 (exit $ac_status); } && {
7151 test -z "$ac_c_werror_flag" ||
7152 test ! -s conftest.err
7153 } && test -s conftest.$ac_objext; then
7154 ac_cv_type_signal=int
7155 else
7156 echo "$as_me: failed program was:" >&5
7157 sed 's/^/| /' conftest.$ac_ext >&5
7158
7159 ac_cv_type_signal=void
7160 fi
7161
7162 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7163 fi
7164 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7165 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7166
7167 cat >>confdefs.h <<_ACEOF
7168 #define RETSIGTYPE $ac_cv_type_signal
7169 _ACEOF
7170
7171
7172
7173 { echo "$as_me:$LINENO: checking for speed_t" >&5
7174 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7175 if test "${emacs_cv_speed_t+set}" = set; then
7176 echo $ECHO_N "(cached) $ECHO_C" >&6
7177 else
7178 cat >conftest.$ac_ext <<_ACEOF
7179 /* confdefs.h. */
7180 _ACEOF
7181 cat confdefs.h >>conftest.$ac_ext
7182 cat >>conftest.$ac_ext <<_ACEOF
7183 /* end confdefs.h. */
7184 #include <termios.h>
7185 int
7186 main ()
7187 {
7188 speed_t x = 1;
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 emacs_cv_speed_t=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 emacs_cv_speed_t=no
7216 fi
7217
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7221 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7222 if test $emacs_cv_speed_t = yes; then
7223
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_SPEED_T 1
7226 _ACEOF
7227
7228 fi
7229
7230 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7231 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7232 if test "${emacs_cv_struct_timeval+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #ifdef TIME_WITH_SYS_TIME
7242 #include <sys/time.h>
7243 #include <time.h>
7244 #else
7245 #ifdef HAVE_SYS_TIME_H
7246 #include <sys/time.h>
7247 #else
7248 #include <time.h>
7249 #endif
7250 #endif
7251 int
7252 main ()
7253 {
7254 static struct timeval x; x.tv_sec = x.tv_usec;
7255 ;
7256 return 0;
7257 }
7258 _ACEOF
7259 rm -f conftest.$ac_objext
7260 if { (ac_try="$ac_compile"
7261 case "(($ac_try" in
7262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7263 *) ac_try_echo=$ac_try;;
7264 esac
7265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7266 (eval "$ac_compile") 2>conftest.er1
7267 ac_status=$?
7268 grep -v '^ *+' conftest.er1 >conftest.err
7269 rm -f conftest.er1
7270 cat conftest.err >&5
7271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7272 (exit $ac_status); } && {
7273 test -z "$ac_c_werror_flag" ||
7274 test ! -s conftest.err
7275 } && test -s conftest.$ac_objext; then
7276 emacs_cv_struct_timeval=yes
7277 else
7278 echo "$as_me: failed program was:" >&5
7279 sed 's/^/| /' conftest.$ac_ext >&5
7280
7281 emacs_cv_struct_timeval=no
7282 fi
7283
7284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7285 fi
7286 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7287 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7288 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7289 if test $emacs_cv_struct_timeval = yes; then
7290
7291 cat >>confdefs.h <<\_ACEOF
7292 #define HAVE_TIMEVAL 1
7293 _ACEOF
7294
7295 fi
7296
7297 { echo "$as_me:$LINENO: checking for struct exception" >&5
7298 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7299 if test "${emacs_cv_struct_exception+set}" = set; then
7300 echo $ECHO_N "(cached) $ECHO_C" >&6
7301 else
7302 cat >conftest.$ac_ext <<_ACEOF
7303 /* confdefs.h. */
7304 _ACEOF
7305 cat confdefs.h >>conftest.$ac_ext
7306 cat >>conftest.$ac_ext <<_ACEOF
7307 /* end confdefs.h. */
7308 #include <math.h>
7309 int
7310 main ()
7311 {
7312 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7313 ;
7314 return 0;
7315 }
7316 _ACEOF
7317 rm -f conftest.$ac_objext
7318 if { (ac_try="$ac_compile"
7319 case "(($ac_try" in
7320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7321 *) ac_try_echo=$ac_try;;
7322 esac
7323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7324 (eval "$ac_compile") 2>conftest.er1
7325 ac_status=$?
7326 grep -v '^ *+' conftest.er1 >conftest.err
7327 rm -f conftest.er1
7328 cat conftest.err >&5
7329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7330 (exit $ac_status); } && {
7331 test -z "$ac_c_werror_flag" ||
7332 test ! -s conftest.err
7333 } && test -s conftest.$ac_objext; then
7334 emacs_cv_struct_exception=yes
7335 else
7336 echo "$as_me: failed program was:" >&5
7337 sed 's/^/| /' conftest.$ac_ext >&5
7338
7339 emacs_cv_struct_exception=no
7340 fi
7341
7342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7343 fi
7344 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7345 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7346 HAVE_EXCEPTION=$emacs_cv_struct_exception
7347 if test $emacs_cv_struct_exception != yes; then
7348
7349 cat >>confdefs.h <<\_ACEOF
7350 #define NO_MATHERR 1
7351 _ACEOF
7352
7353 fi
7354
7355
7356 for ac_header in sys/socket.h
7357 do
7358 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7359 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7360 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7361 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7363 echo $ECHO_N "(cached) $ECHO_C" >&6
7364 fi
7365 ac_res=`eval echo '${'$as_ac_Header'}'`
7366 { echo "$as_me:$LINENO: result: $ac_res" >&5
7367 echo "${ECHO_T}$ac_res" >&6; }
7368 else
7369 # Is the header compilable?
7370 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7371 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7372 cat >conftest.$ac_ext <<_ACEOF
7373 /* confdefs.h. */
7374 _ACEOF
7375 cat confdefs.h >>conftest.$ac_ext
7376 cat >>conftest.$ac_ext <<_ACEOF
7377 /* end confdefs.h. */
7378 $ac_includes_default
7379 #include <$ac_header>
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 ac_header_compiler=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403 ac_header_compiler=no
7404 fi
7405
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7408 echo "${ECHO_T}$ac_header_compiler" >&6; }
7409
7410 # Is the header present?
7411 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7412 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7413 cat >conftest.$ac_ext <<_ACEOF
7414 /* confdefs.h. */
7415 _ACEOF
7416 cat confdefs.h >>conftest.$ac_ext
7417 cat >>conftest.$ac_ext <<_ACEOF
7418 /* end confdefs.h. */
7419 #include <$ac_header>
7420 _ACEOF
7421 if { (ac_try="$ac_cpp conftest.$ac_ext"
7422 case "(($ac_try" in
7423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7424 *) ac_try_echo=$ac_try;;
7425 esac
7426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7427 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7428 ac_status=$?
7429 grep -v '^ *+' conftest.er1 >conftest.err
7430 rm -f conftest.er1
7431 cat conftest.err >&5
7432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7433 (exit $ac_status); } >/dev/null && {
7434 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7435 test ! -s conftest.err
7436 }; then
7437 ac_header_preproc=yes
7438 else
7439 echo "$as_me: failed program was:" >&5
7440 sed 's/^/| /' conftest.$ac_ext >&5
7441
7442 ac_header_preproc=no
7443 fi
7444
7445 rm -f conftest.err conftest.$ac_ext
7446 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7447 echo "${ECHO_T}$ac_header_preproc" >&6; }
7448
7449 # So? What about this header?
7450 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7451 yes:no: )
7452 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7453 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7454 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7455 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7456 ac_header_preproc=yes
7457 ;;
7458 no:yes:* )
7459 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7460 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7461 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7462 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7463 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7464 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7465 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7466 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7467 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7468 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7469 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7470 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7471
7472 ;;
7473 esac
7474 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7475 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7476 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7477 echo $ECHO_N "(cached) $ECHO_C" >&6
7478 else
7479 eval "$as_ac_Header=\$ac_header_preproc"
7480 fi
7481 ac_res=`eval echo '${'$as_ac_Header'}'`
7482 { echo "$as_me:$LINENO: result: $ac_res" >&5
7483 echo "${ECHO_T}$ac_res" >&6; }
7484
7485 fi
7486 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7487 cat >>confdefs.h <<_ACEOF
7488 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7489 _ACEOF
7490
7491 fi
7492
7493 done
7494
7495
7496 for ac_header in net/if.h
7497 do
7498 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7499 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7502 echo $ECHO_N "(cached) $ECHO_C" >&6
7503 else
7504 cat >conftest.$ac_ext <<_ACEOF
7505 /* confdefs.h. */
7506 _ACEOF
7507 cat confdefs.h >>conftest.$ac_ext
7508 cat >>conftest.$ac_ext <<_ACEOF
7509 /* end confdefs.h. */
7510 $ac_includes_default
7511 #if HAVE_SYS_SOCKET_H
7512 #include <sys/socket.h>
7513 #endif
7514
7515 #include <$ac_header>
7516 _ACEOF
7517 rm -f conftest.$ac_objext
7518 if { (ac_try="$ac_compile"
7519 case "(($ac_try" in
7520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7521 *) ac_try_echo=$ac_try;;
7522 esac
7523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7524 (eval "$ac_compile") 2>conftest.er1
7525 ac_status=$?
7526 grep -v '^ *+' conftest.er1 >conftest.err
7527 rm -f conftest.er1
7528 cat conftest.err >&5
7529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7530 (exit $ac_status); } && {
7531 test -z "$ac_c_werror_flag" ||
7532 test ! -s conftest.err
7533 } && test -s conftest.$ac_objext; then
7534 eval "$as_ac_Header=yes"
7535 else
7536 echo "$as_me: failed program was:" >&5
7537 sed 's/^/| /' conftest.$ac_ext >&5
7538
7539 eval "$as_ac_Header=no"
7540 fi
7541
7542 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7543 fi
7544 ac_res=`eval echo '${'$as_ac_Header'}'`
7545 { echo "$as_me:$LINENO: result: $ac_res" >&5
7546 echo "${ECHO_T}$ac_res" >&6; }
7547 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7548 cat >>confdefs.h <<_ACEOF
7549 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7550 _ACEOF
7551
7552 fi
7553
7554 done
7555
7556
7557 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7558 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7559 if test "${ac_cv_struct_tm+set}" = set; then
7560 echo $ECHO_N "(cached) $ECHO_C" >&6
7561 else
7562 cat >conftest.$ac_ext <<_ACEOF
7563 /* confdefs.h. */
7564 _ACEOF
7565 cat confdefs.h >>conftest.$ac_ext
7566 cat >>conftest.$ac_ext <<_ACEOF
7567 /* end confdefs.h. */
7568 #include <sys/types.h>
7569 #include <time.h>
7570
7571 int
7572 main ()
7573 {
7574 struct tm tm;
7575 int *p = &tm.tm_sec;
7576 return !p;
7577 ;
7578 return 0;
7579 }
7580 _ACEOF
7581 rm -f conftest.$ac_objext
7582 if { (ac_try="$ac_compile"
7583 case "(($ac_try" in
7584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7585 *) ac_try_echo=$ac_try;;
7586 esac
7587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7588 (eval "$ac_compile") 2>conftest.er1
7589 ac_status=$?
7590 grep -v '^ *+' conftest.er1 >conftest.err
7591 rm -f conftest.er1
7592 cat conftest.err >&5
7593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7594 (exit $ac_status); } && {
7595 test -z "$ac_c_werror_flag" ||
7596 test ! -s conftest.err
7597 } && test -s conftest.$ac_objext; then
7598 ac_cv_struct_tm=time.h
7599 else
7600 echo "$as_me: failed program was:" >&5
7601 sed 's/^/| /' conftest.$ac_ext >&5
7602
7603 ac_cv_struct_tm=sys/time.h
7604 fi
7605
7606 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7607 fi
7608 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7609 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7610 if test $ac_cv_struct_tm = sys/time.h; then
7611
7612 cat >>confdefs.h <<\_ACEOF
7613 #define TM_IN_SYS_TIME 1
7614 _ACEOF
7615
7616 fi
7617
7618 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7619 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7620 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7621 echo $ECHO_N "(cached) $ECHO_C" >&6
7622 else
7623 cat >conftest.$ac_ext <<_ACEOF
7624 /* confdefs.h. */
7625 _ACEOF
7626 cat confdefs.h >>conftest.$ac_ext
7627 cat >>conftest.$ac_ext <<_ACEOF
7628 /* end confdefs.h. */
7629 #include <sys/types.h>
7630 #include <$ac_cv_struct_tm>
7631
7632
7633 int
7634 main ()
7635 {
7636 static struct tm ac_aggr;
7637 if (ac_aggr.tm_zone)
7638 return 0;
7639 ;
7640 return 0;
7641 }
7642 _ACEOF
7643 rm -f conftest.$ac_objext
7644 if { (ac_try="$ac_compile"
7645 case "(($ac_try" in
7646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7647 *) ac_try_echo=$ac_try;;
7648 esac
7649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7650 (eval "$ac_compile") 2>conftest.er1
7651 ac_status=$?
7652 grep -v '^ *+' conftest.er1 >conftest.err
7653 rm -f conftest.er1
7654 cat conftest.err >&5
7655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7656 (exit $ac_status); } && {
7657 test -z "$ac_c_werror_flag" ||
7658 test ! -s conftest.err
7659 } && test -s conftest.$ac_objext; then
7660 ac_cv_member_struct_tm_tm_zone=yes
7661 else
7662 echo "$as_me: failed program was:" >&5
7663 sed 's/^/| /' conftest.$ac_ext >&5
7664
7665 cat >conftest.$ac_ext <<_ACEOF
7666 /* confdefs.h. */
7667 _ACEOF
7668 cat confdefs.h >>conftest.$ac_ext
7669 cat >>conftest.$ac_ext <<_ACEOF
7670 /* end confdefs.h. */
7671 #include <sys/types.h>
7672 #include <$ac_cv_struct_tm>
7673
7674
7675 int
7676 main ()
7677 {
7678 static struct tm ac_aggr;
7679 if (sizeof ac_aggr.tm_zone)
7680 return 0;
7681 ;
7682 return 0;
7683 }
7684 _ACEOF
7685 rm -f conftest.$ac_objext
7686 if { (ac_try="$ac_compile"
7687 case "(($ac_try" in
7688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7689 *) ac_try_echo=$ac_try;;
7690 esac
7691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7692 (eval "$ac_compile") 2>conftest.er1
7693 ac_status=$?
7694 grep -v '^ *+' conftest.er1 >conftest.err
7695 rm -f conftest.er1
7696 cat conftest.err >&5
7697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7698 (exit $ac_status); } && {
7699 test -z "$ac_c_werror_flag" ||
7700 test ! -s conftest.err
7701 } && test -s conftest.$ac_objext; then
7702 ac_cv_member_struct_tm_tm_zone=yes
7703 else
7704 echo "$as_me: failed program was:" >&5
7705 sed 's/^/| /' conftest.$ac_ext >&5
7706
7707 ac_cv_member_struct_tm_tm_zone=no
7708 fi
7709
7710 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7711 fi
7712
7713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7714 fi
7715 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7716 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7717 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7718
7719 cat >>confdefs.h <<_ACEOF
7720 #define HAVE_STRUCT_TM_TM_ZONE 1
7721 _ACEOF
7722
7723
7724 fi
7725
7726 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7727
7728 cat >>confdefs.h <<\_ACEOF
7729 #define HAVE_TM_ZONE 1
7730 _ACEOF
7731
7732 else
7733 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7734 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7735 if test "${ac_cv_have_decl_tzname+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <time.h>
7745
7746 int
7747 main ()
7748 {
7749 #ifndef tzname
7750 (void) tzname;
7751 #endif
7752
7753 ;
7754 return 0;
7755 }
7756 _ACEOF
7757 rm -f conftest.$ac_objext
7758 if { (ac_try="$ac_compile"
7759 case "(($ac_try" in
7760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7761 *) ac_try_echo=$ac_try;;
7762 esac
7763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7764 (eval "$ac_compile") 2>conftest.er1
7765 ac_status=$?
7766 grep -v '^ *+' conftest.er1 >conftest.err
7767 rm -f conftest.er1
7768 cat conftest.err >&5
7769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7770 (exit $ac_status); } && {
7771 test -z "$ac_c_werror_flag" ||
7772 test ! -s conftest.err
7773 } && test -s conftest.$ac_objext; then
7774 ac_cv_have_decl_tzname=yes
7775 else
7776 echo "$as_me: failed program was:" >&5
7777 sed 's/^/| /' conftest.$ac_ext >&5
7778
7779 ac_cv_have_decl_tzname=no
7780 fi
7781
7782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7783 fi
7784 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7785 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7786 if test $ac_cv_have_decl_tzname = yes; then
7787
7788 cat >>confdefs.h <<_ACEOF
7789 #define HAVE_DECL_TZNAME 1
7790 _ACEOF
7791
7792
7793 else
7794 cat >>confdefs.h <<_ACEOF
7795 #define HAVE_DECL_TZNAME 0
7796 _ACEOF
7797
7798
7799 fi
7800
7801
7802 { echo "$as_me:$LINENO: checking for tzname" >&5
7803 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7804 if test "${ac_cv_var_tzname+set}" = set; then
7805 echo $ECHO_N "(cached) $ECHO_C" >&6
7806 else
7807 cat >conftest.$ac_ext <<_ACEOF
7808 /* confdefs.h. */
7809 _ACEOF
7810 cat confdefs.h >>conftest.$ac_ext
7811 cat >>conftest.$ac_ext <<_ACEOF
7812 /* end confdefs.h. */
7813 #include <time.h>
7814 #if !HAVE_DECL_TZNAME
7815 extern char *tzname[];
7816 #endif
7817
7818 int
7819 main ()
7820 {
7821 return tzname[0][0];
7822 ;
7823 return 0;
7824 }
7825 _ACEOF
7826 rm -f conftest.$ac_objext conftest$ac_exeext
7827 if { (ac_try="$ac_link"
7828 case "(($ac_try" in
7829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7830 *) ac_try_echo=$ac_try;;
7831 esac
7832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7833 (eval "$ac_link") 2>conftest.er1
7834 ac_status=$?
7835 grep -v '^ *+' conftest.er1 >conftest.err
7836 rm -f conftest.er1
7837 cat conftest.err >&5
7838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7839 (exit $ac_status); } && {
7840 test -z "$ac_c_werror_flag" ||
7841 test ! -s conftest.err
7842 } && test -s conftest$ac_exeext &&
7843 $as_test_x conftest$ac_exeext; then
7844 ac_cv_var_tzname=yes
7845 else
7846 echo "$as_me: failed program was:" >&5
7847 sed 's/^/| /' conftest.$ac_ext >&5
7848
7849 ac_cv_var_tzname=no
7850 fi
7851
7852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7853 conftest$ac_exeext conftest.$ac_ext
7854 fi
7855 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7856 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7857 if test $ac_cv_var_tzname = yes; then
7858
7859 cat >>confdefs.h <<\_ACEOF
7860 #define HAVE_TZNAME 1
7861 _ACEOF
7862
7863 fi
7864 fi
7865
7866 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7867 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7868 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7869 echo $ECHO_N "(cached) $ECHO_C" >&6
7870 else
7871 cat >conftest.$ac_ext <<_ACEOF
7872 /* confdefs.h. */
7873 _ACEOF
7874 cat confdefs.h >>conftest.$ac_ext
7875 cat >>conftest.$ac_ext <<_ACEOF
7876 /* end confdefs.h. */
7877 #include <time.h>
7878
7879 int
7880 main ()
7881 {
7882 static struct tm ac_aggr;
7883 if (ac_aggr.tm_gmtoff)
7884 return 0;
7885 ;
7886 return 0;
7887 }
7888 _ACEOF
7889 rm -f conftest.$ac_objext
7890 if { (ac_try="$ac_compile"
7891 case "(($ac_try" in
7892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7893 *) ac_try_echo=$ac_try;;
7894 esac
7895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7896 (eval "$ac_compile") 2>conftest.er1
7897 ac_status=$?
7898 grep -v '^ *+' conftest.er1 >conftest.err
7899 rm -f conftest.er1
7900 cat conftest.err >&5
7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7902 (exit $ac_status); } && {
7903 test -z "$ac_c_werror_flag" ||
7904 test ! -s conftest.err
7905 } && test -s conftest.$ac_objext; then
7906 ac_cv_member_struct_tm_tm_gmtoff=yes
7907 else
7908 echo "$as_me: failed program was:" >&5
7909 sed 's/^/| /' conftest.$ac_ext >&5
7910
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <time.h>
7918
7919 int
7920 main ()
7921 {
7922 static struct tm ac_aggr;
7923 if (sizeof ac_aggr.tm_gmtoff)
7924 return 0;
7925 ;
7926 return 0;
7927 }
7928 _ACEOF
7929 rm -f conftest.$ac_objext
7930 if { (ac_try="$ac_compile"
7931 case "(($ac_try" in
7932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7933 *) ac_try_echo=$ac_try;;
7934 esac
7935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7936 (eval "$ac_compile") 2>conftest.er1
7937 ac_status=$?
7938 grep -v '^ *+' conftest.er1 >conftest.err
7939 rm -f conftest.er1
7940 cat conftest.err >&5
7941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7942 (exit $ac_status); } && {
7943 test -z "$ac_c_werror_flag" ||
7944 test ! -s conftest.err
7945 } && test -s conftest.$ac_objext; then
7946 ac_cv_member_struct_tm_tm_gmtoff=yes
7947 else
7948 echo "$as_me: failed program was:" >&5
7949 sed 's/^/| /' conftest.$ac_ext >&5
7950
7951 ac_cv_member_struct_tm_tm_gmtoff=no
7952 fi
7953
7954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7955 fi
7956
7957 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7958 fi
7959 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7960 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7961 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7962
7963 cat >>confdefs.h <<\_ACEOF
7964 #define HAVE_TM_GMTOFF 1
7965 _ACEOF
7966
7967 fi
7968
7969 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7970 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7971 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7972 echo $ECHO_N "(cached) $ECHO_C" >&6
7973 else
7974 cat >conftest.$ac_ext <<_ACEOF
7975 /* confdefs.h. */
7976 _ACEOF
7977 cat confdefs.h >>conftest.$ac_ext
7978 cat >>conftest.$ac_ext <<_ACEOF
7979 /* end confdefs.h. */
7980 $ac_includes_default
7981 #if HAVE_SYS_SOCKET_H
7982 #include <sys/socket.h>
7983 #endif
7984 #if HAVE_NET_IF_H
7985 #include <net/if.h>
7986 #endif
7987
7988 int
7989 main ()
7990 {
7991 static struct ifreq ac_aggr;
7992 if (ac_aggr.ifr_flags)
7993 return 0;
7994 ;
7995 return 0;
7996 }
7997 _ACEOF
7998 rm -f conftest.$ac_objext
7999 if { (ac_try="$ac_compile"
8000 case "(($ac_try" in
8001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8002 *) ac_try_echo=$ac_try;;
8003 esac
8004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8005 (eval "$ac_compile") 2>conftest.er1
8006 ac_status=$?
8007 grep -v '^ *+' conftest.er1 >conftest.err
8008 rm -f conftest.er1
8009 cat conftest.err >&5
8010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8011 (exit $ac_status); } && {
8012 test -z "$ac_c_werror_flag" ||
8013 test ! -s conftest.err
8014 } && test -s conftest.$ac_objext; then
8015 ac_cv_member_struct_ifreq_ifr_flags=yes
8016 else
8017 echo "$as_me: failed program was:" >&5
8018 sed 's/^/| /' conftest.$ac_ext >&5
8019
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 $ac_includes_default
8027 #if HAVE_SYS_SOCKET_H
8028 #include <sys/socket.h>
8029 #endif
8030 #if HAVE_NET_IF_H
8031 #include <net/if.h>
8032 #endif
8033
8034 int
8035 main ()
8036 {
8037 static struct ifreq ac_aggr;
8038 if (sizeof ac_aggr.ifr_flags)
8039 return 0;
8040 ;
8041 return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_ifreq_ifr_flags=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_member_struct_ifreq_ifr_flags=no
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 fi
8071
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8076 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8077
8078 cat >>confdefs.h <<_ACEOF
8079 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8080 _ACEOF
8081
8082
8083 fi
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8098 #endif
8099 #if HAVE_NET_IF_H
8100 #include <net/if.h>
8101 #endif
8102
8103 int
8104 main ()
8105 {
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_hwaddr)
8108 return 0;
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8148
8149 int
8150 main ()
8151 {
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_hwaddr)
8154 return 0;
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8182 fi
8183
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 fi
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8195 _ACEOF
8196
8197
8198 fi
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8213 #endif
8214 #if HAVE_NET_IF_H
8215 #include <net/if.h>
8216 #endif
8217
8218 int
8219 main ()
8220 {
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_netmask)
8223 return 0;
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_netmask=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8263
8264 int
8265 main ()
8266 {
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_netmask)
8269 return 0;
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_netmask=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 ac_cv_member_struct_ifreq_ifr_netmask=no
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 fi
8301
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 fi
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8310 _ACEOF
8311
8312
8313 fi
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8328 #endif
8329 #if HAVE_NET_IF_H
8330 #include <net/if.h>
8331 #endif
8332
8333 int
8334 main ()
8335 {
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_broadaddr)
8338 return 0;
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_broadaddr)
8384 return 0;
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8422
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8425 _ACEOF
8426
8427
8428 fi
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8447
8448 int
8449 main ()
8450 {
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_addr)
8453 return 0;
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_addr=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8489 #endif
8490 #if HAVE_NET_IF_H
8491 #include <net/if.h>
8492 #endif
8493
8494 int
8495 main ()
8496 {
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_addr)
8499 return 0;
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_addr=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526 ac_cv_member_struct_ifreq_ifr_addr=no
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8540 _ACEOF
8541
8542
8543 fi
8544
8545
8546
8547 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8548 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8549 if test "$ac_cv_prog_cc_c89" != no; then
8550 { echo "$as_me:$LINENO: result: yes" >&5
8551 echo "${ECHO_T}yes" >&6; }
8552
8553 cat >>confdefs.h <<\_ACEOF
8554 #define PROTOTYPES 1
8555 _ACEOF
8556
8557
8558 cat >>confdefs.h <<\_ACEOF
8559 #define __PROTOTYPES 1
8560 _ACEOF
8561
8562 else
8563 { echo "$as_me:$LINENO: result: no" >&5
8564 echo "${ECHO_T}no" >&6; }
8565 fi
8566
8567 { echo "$as_me:$LINENO: checking for working volatile" >&5
8568 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8569 if test "${ac_cv_c_volatile+set}" = set; then
8570 echo $ECHO_N "(cached) $ECHO_C" >&6
8571 else
8572 cat >conftest.$ac_ext <<_ACEOF
8573 /* confdefs.h. */
8574 _ACEOF
8575 cat confdefs.h >>conftest.$ac_ext
8576 cat >>conftest.$ac_ext <<_ACEOF
8577 /* end confdefs.h. */
8578
8579 int
8580 main ()
8581 {
8582
8583 volatile int x;
8584 int * volatile y = (int *) 0;
8585 return !x && !y;
8586 ;
8587 return 0;
8588 }
8589 _ACEOF
8590 rm -f conftest.$ac_objext
8591 if { (ac_try="$ac_compile"
8592 case "(($ac_try" in
8593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8594 *) ac_try_echo=$ac_try;;
8595 esac
8596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8597 (eval "$ac_compile") 2>conftest.er1
8598 ac_status=$?
8599 grep -v '^ *+' conftest.er1 >conftest.err
8600 rm -f conftest.er1
8601 cat conftest.err >&5
8602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8603 (exit $ac_status); } && {
8604 test -z "$ac_c_werror_flag" ||
8605 test ! -s conftest.err
8606 } && test -s conftest.$ac_objext; then
8607 ac_cv_c_volatile=yes
8608 else
8609 echo "$as_me: failed program was:" >&5
8610 sed 's/^/| /' conftest.$ac_ext >&5
8611
8612 ac_cv_c_volatile=no
8613 fi
8614
8615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8616 fi
8617 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8618 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8619 if test $ac_cv_c_volatile = no; then
8620
8621 cat >>confdefs.h <<\_ACEOF
8622 #define volatile
8623 _ACEOF
8624
8625 fi
8626
8627 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8628 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8629 if test "${ac_cv_c_const+set}" = set; then
8630 echo $ECHO_N "(cached) $ECHO_C" >&6
8631 else
8632 cat >conftest.$ac_ext <<_ACEOF
8633 /* confdefs.h. */
8634 _ACEOF
8635 cat confdefs.h >>conftest.$ac_ext
8636 cat >>conftest.$ac_ext <<_ACEOF
8637 /* end confdefs.h. */
8638
8639 int
8640 main ()
8641 {
8642 /* FIXME: Include the comments suggested by Paul. */
8643 #ifndef __cplusplus
8644 /* Ultrix mips cc rejects this. */
8645 typedef int charset[2];
8646 const charset cs;
8647 /* SunOS 4.1.1 cc rejects this. */
8648 char const *const *pcpcc;
8649 char **ppc;
8650 /* NEC SVR4.0.2 mips cc rejects this. */
8651 struct point {int x, y;};
8652 static struct point const zero = {0,0};
8653 /* AIX XL C 1.02.0.0 rejects this.
8654 It does not let you subtract one const X* pointer from another in
8655 an arm of an if-expression whose if-part is not a constant
8656 expression */
8657 const char *g = "string";
8658 pcpcc = &g + (g ? g-g : 0);
8659 /* HPUX 7.0 cc rejects these. */
8660 ++pcpcc;
8661 ppc = (char**) pcpcc;
8662 pcpcc = (char const *const *) ppc;
8663 { /* SCO 3.2v4 cc rejects this. */
8664 char *t;
8665 char const *s = 0 ? (char *) 0 : (char const *) 0;
8666
8667 *t++ = 0;
8668 if (s) return 0;
8669 }
8670 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8671 int x[] = {25, 17};
8672 const int *foo = &x[0];
8673 ++foo;
8674 }
8675 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8676 typedef const int *iptr;
8677 iptr p = 0;
8678 ++p;
8679 }
8680 { /* AIX XL C 1.02.0.0 rejects this saying
8681 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8682 struct s { int j; const int *ap[3]; };
8683 struct s *b; b->j = 5;
8684 }
8685 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8686 const int foo = 10;
8687 if (!foo) return 0;
8688 }
8689 return !cs[0] && !zero.x;
8690 #endif
8691
8692 ;
8693 return 0;
8694 }
8695 _ACEOF
8696 rm -f conftest.$ac_objext
8697 if { (ac_try="$ac_compile"
8698 case "(($ac_try" in
8699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8700 *) ac_try_echo=$ac_try;;
8701 esac
8702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8703 (eval "$ac_compile") 2>conftest.er1
8704 ac_status=$?
8705 grep -v '^ *+' conftest.er1 >conftest.err
8706 rm -f conftest.er1
8707 cat conftest.err >&5
8708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8709 (exit $ac_status); } && {
8710 test -z "$ac_c_werror_flag" ||
8711 test ! -s conftest.err
8712 } && test -s conftest.$ac_objext; then
8713 ac_cv_c_const=yes
8714 else
8715 echo "$as_me: failed program was:" >&5
8716 sed 's/^/| /' conftest.$ac_ext >&5
8717
8718 ac_cv_c_const=no
8719 fi
8720
8721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8722 fi
8723 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8724 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8725 if test $ac_cv_c_const = no; then
8726
8727 cat >>confdefs.h <<\_ACEOF
8728 #define const
8729 _ACEOF
8730
8731 fi
8732
8733 { echo "$as_me:$LINENO: checking for void * support" >&5
8734 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8735 if test "${emacs_cv_void_star+set}" = set; then
8736 echo $ECHO_N "(cached) $ECHO_C" >&6
8737 else
8738 cat >conftest.$ac_ext <<_ACEOF
8739 /* confdefs.h. */
8740 _ACEOF
8741 cat confdefs.h >>conftest.$ac_ext
8742 cat >>conftest.$ac_ext <<_ACEOF
8743 /* end confdefs.h. */
8744
8745 int
8746 main ()
8747 {
8748 void * foo;
8749 ;
8750 return 0;
8751 }
8752 _ACEOF
8753 rm -f conftest.$ac_objext
8754 if { (ac_try="$ac_compile"
8755 case "(($ac_try" in
8756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8757 *) ac_try_echo=$ac_try;;
8758 esac
8759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8760 (eval "$ac_compile") 2>conftest.er1
8761 ac_status=$?
8762 grep -v '^ *+' conftest.er1 >conftest.err
8763 rm -f conftest.er1
8764 cat conftest.err >&5
8765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8766 (exit $ac_status); } && {
8767 test -z "$ac_c_werror_flag" ||
8768 test ! -s conftest.err
8769 } && test -s conftest.$ac_objext; then
8770 emacs_cv_void_star=yes
8771 else
8772 echo "$as_me: failed program was:" >&5
8773 sed 's/^/| /' conftest.$ac_ext >&5
8774
8775 emacs_cv_void_star=no
8776 fi
8777
8778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8779 fi
8780 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8781 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8782 if test $emacs_cv_void_star = yes; then
8783 cat >>confdefs.h <<\_ACEOF
8784 #define POINTER_TYPE void
8785 _ACEOF
8786
8787 else
8788 cat >>confdefs.h <<\_ACEOF
8789 #define POINTER_TYPE char
8790 _ACEOF
8791
8792 fi
8793
8794
8795
8796
8797
8798 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8799 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8800 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8801 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8802 echo $ECHO_N "(cached) $ECHO_C" >&6
8803 else
8804 cat >conftest.make <<\_ACEOF
8805 SHELL = /bin/sh
8806 all:
8807 @echo '@@@%%%=$(MAKE)=@@@%%%'
8808 _ACEOF
8809 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8810 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8811 *@@@%%%=?*=@@@%%%*)
8812 eval ac_cv_prog_make_${ac_make}_set=yes;;
8813 *)
8814 eval ac_cv_prog_make_${ac_make}_set=no;;
8815 esac
8816 rm -f conftest.make
8817 fi
8818 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8819 { echo "$as_me:$LINENO: result: yes" >&5
8820 echo "${ECHO_T}yes" >&6; }
8821 SET_MAKE=
8822 else
8823 { echo "$as_me:$LINENO: result: no" >&5
8824 echo "${ECHO_T}no" >&6; }
8825 SET_MAKE="MAKE=${MAKE-make}"
8826 fi
8827
8828
8829 { echo "$as_me:$LINENO: checking for long file names" >&5
8830 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8831 if test "${ac_cv_sys_long_file_names+set}" = set; then
8832 echo $ECHO_N "(cached) $ECHO_C" >&6
8833 else
8834 ac_cv_sys_long_file_names=yes
8835 # Test for long file names in all the places we know might matter:
8836 # . the current directory, where building will happen
8837 # $prefix/lib where we will be installing things
8838 # $exec_prefix/lib likewise
8839 # $TMPDIR if set, where it might want to write temporary files
8840 # /tmp where it might want to write temporary files
8841 # /var/tmp likewise
8842 # /usr/tmp likewise
8843 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8844 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8845 # in the usual case where exec_prefix is '${prefix}'.
8846 case $ac_dir in #(
8847 . | /* | ?:[\\/]*) ;; #(
8848 *) continue;;
8849 esac
8850 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8851 ac_xdir=$ac_dir/cf$$
8852 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8853 ac_tf1=$ac_xdir/conftest9012345
8854 ac_tf2=$ac_xdir/conftest9012346
8855 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8856 ac_cv_sys_long_file_names=no
8857 rm -f -r "$ac_xdir" 2>/dev/null
8858 test $ac_cv_sys_long_file_names = no && break
8859 done
8860 fi
8861 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8862 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8863 if test $ac_cv_sys_long_file_names = yes; then
8864
8865 cat >>confdefs.h <<\_ACEOF
8866 #define HAVE_LONG_FILE_NAMES 1
8867 _ACEOF
8868
8869 fi
8870
8871
8872 #### Choose a window system.
8873
8874 { echo "$as_me:$LINENO: checking for X" >&5
8875 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8876
8877
8878 # Check whether --with-x was given.
8879 if test "${with_x+set}" = set; then
8880 withval=$with_x;
8881 fi
8882
8883 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8884 if test "x$with_x" = xno; then
8885 # The user explicitly disabled X.
8886 have_x=disabled
8887 else
8888 case $x_includes,$x_libraries in #(
8889 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8890 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8891 { (exit 1); exit 1; }; };; #(
8892 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8893 echo $ECHO_N "(cached) $ECHO_C" >&6
8894 else
8895 # One or both of the vars are not set, and there is no cached value.
8896 ac_x_includes=no ac_x_libraries=no
8897 rm -f -r conftest.dir
8898 if mkdir conftest.dir; then
8899 cd conftest.dir
8900 cat >Imakefile <<'_ACEOF'
8901 incroot:
8902 @echo incroot='${INCROOT}'
8903 usrlibdir:
8904 @echo usrlibdir='${USRLIBDIR}'
8905 libdir:
8906 @echo libdir='${LIBDIR}'
8907 _ACEOF
8908 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8909 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8910 for ac_var in incroot usrlibdir libdir; do
8911 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8912 done
8913 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8914 for ac_extension in a so sl; do
8915 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8916 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8917 ac_im_usrlibdir=$ac_im_libdir; break
8918 fi
8919 done
8920 # Screen out bogus values from the imake configuration. They are
8921 # bogus both because they are the default anyway, and because
8922 # using them would break gcc on systems where it needs fixed includes.
8923 case $ac_im_incroot in
8924 /usr/include) ac_x_includes= ;;
8925 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8926 esac
8927 case $ac_im_usrlibdir in
8928 /usr/lib | /lib) ;;
8929 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8930 esac
8931 fi
8932 cd ..
8933 rm -f -r conftest.dir
8934 fi
8935
8936 # Standard set of common directories for X headers.
8937 # Check X11 before X11Rn because it is often a symlink to the current release.
8938 ac_x_header_dirs='
8939 /usr/X11/include
8940 /usr/X11R6/include
8941 /usr/X11R5/include
8942 /usr/X11R4/include
8943
8944 /usr/include/X11
8945 /usr/include/X11R6
8946 /usr/include/X11R5
8947 /usr/include/X11R4
8948
8949 /usr/local/X11/include
8950 /usr/local/X11R6/include
8951 /usr/local/X11R5/include
8952 /usr/local/X11R4/include
8953
8954 /usr/local/include/X11
8955 /usr/local/include/X11R6
8956 /usr/local/include/X11R5
8957 /usr/local/include/X11R4
8958
8959 /usr/X386/include
8960 /usr/x386/include
8961 /usr/XFree86/include/X11
8962
8963 /usr/include
8964 /usr/local/include
8965 /usr/unsupported/include
8966 /usr/athena/include
8967 /usr/local/x11r5/include
8968 /usr/lpp/Xamples/include
8969
8970 /usr/openwin/include
8971 /usr/openwin/share/include'
8972
8973 if test "$ac_x_includes" = no; then
8974 # Guess where to find include files, by looking for Xlib.h.
8975 # First, try using that file with no special directory specified.
8976 cat >conftest.$ac_ext <<_ACEOF
8977 /* confdefs.h. */
8978 _ACEOF
8979 cat confdefs.h >>conftest.$ac_ext
8980 cat >>conftest.$ac_ext <<_ACEOF
8981 /* end confdefs.h. */
8982 #include <X11/Xlib.h>
8983 _ACEOF
8984 if { (ac_try="$ac_cpp conftest.$ac_ext"
8985 case "(($ac_try" in
8986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8987 *) ac_try_echo=$ac_try;;
8988 esac
8989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8990 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8991 ac_status=$?
8992 grep -v '^ *+' conftest.er1 >conftest.err
8993 rm -f conftest.er1
8994 cat conftest.err >&5
8995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8996 (exit $ac_status); } >/dev/null && {
8997 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8998 test ! -s conftest.err
8999 }; then
9000 # We can compile using X headers with no special include directory.
9001 ac_x_includes=
9002 else
9003 echo "$as_me: failed program was:" >&5
9004 sed 's/^/| /' conftest.$ac_ext >&5
9005
9006 for ac_dir in $ac_x_header_dirs; do
9007 if test -r "$ac_dir/X11/Xlib.h"; then
9008 ac_x_includes=$ac_dir
9009 break
9010 fi
9011 done
9012 fi
9013
9014 rm -f conftest.err conftest.$ac_ext
9015 fi # $ac_x_includes = no
9016
9017 if test "$ac_x_libraries" = no; then
9018 # Check for the libraries.
9019 # See if we find them without any special options.
9020 # Don't add to $LIBS permanently.
9021 ac_save_LIBS=$LIBS
9022 LIBS="-lX11 $LIBS"
9023 cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h. */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h. */
9029 #include <X11/Xlib.h>
9030 int
9031 main ()
9032 {
9033 XrmInitialize ()
9034 ;
9035 return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042 *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045 (eval "$ac_link") 2>conftest.er1
9046 ac_status=$?
9047 grep -v '^ *+' conftest.er1 >conftest.err
9048 rm -f conftest.er1
9049 cat conftest.err >&5
9050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051 (exit $ac_status); } && {
9052 test -z "$ac_c_werror_flag" ||
9053 test ! -s conftest.err
9054 } && test -s conftest$ac_exeext &&
9055 $as_test_x conftest$ac_exeext; then
9056 LIBS=$ac_save_LIBS
9057 # We can link X programs with no special library path.
9058 ac_x_libraries=
9059 else
9060 echo "$as_me: failed program was:" >&5
9061 sed 's/^/| /' conftest.$ac_ext >&5
9062
9063 LIBS=$ac_save_LIBS
9064 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9065 do
9066 # Don't even attempt the hair of trying to link an X program!
9067 for ac_extension in a so sl; do
9068 if test -r "$ac_dir/libX11.$ac_extension"; then
9069 ac_x_libraries=$ac_dir
9070 break 2
9071 fi
9072 done
9073 done
9074 fi
9075
9076 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9077 conftest$ac_exeext conftest.$ac_ext
9078 fi # $ac_x_libraries = no
9079
9080 case $ac_x_includes,$ac_x_libraries in #(
9081 no,* | *,no | *\'*)
9082 # Didn't find X, or a directory has "'" in its name.
9083 ac_cv_have_x="have_x=no";; #(
9084 *)
9085 # Record where we found X for the cache.
9086 ac_cv_have_x="have_x=yes\
9087 ac_x_includes='$ac_x_includes'\
9088 ac_x_libraries='$ac_x_libraries'"
9089 esac
9090 fi
9091 ;; #(
9092 *) have_x=yes;;
9093 esac
9094 eval "$ac_cv_have_x"
9095 fi # $with_x != no
9096
9097 if test "$have_x" != yes; then
9098 { echo "$as_me:$LINENO: result: $have_x" >&5
9099 echo "${ECHO_T}$have_x" >&6; }
9100 no_x=yes
9101 else
9102 # If each of the values was on the command line, it overrides each guess.
9103 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9104 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9105 # Update the cache value to reflect the command line values.
9106 ac_cv_have_x="have_x=yes\
9107 ac_x_includes='$x_includes'\
9108 ac_x_libraries='$x_libraries'"
9109 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9110 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9111 fi
9112
9113 if test "$no_x" = yes; then
9114 window_system=none
9115 else
9116 window_system=x11
9117 fi
9118
9119 ## Workaround for bug in autoconf <= 2.62.
9120 ## http://lists.gnu.org/archive/html/emacs-devel/2008-04/msg01551.html
9121 ## No need to do anything special for these standard directories.
9122 ## This is an experiment, take it out if it causes problems.
9123 if test -n "${x_libraries}" && test x"${x_libraries}" != xNONE; then
9124
9125 x_libraries=`echo :${x_libraries}: | sed -e 's|:/usr/lib64:|:|g' -e 's|:/lib64:|:|g' -e 's|^:||' -e 's|:$||'`
9126
9127 fi
9128
9129 if test "${x_libraries}" != NONE; then
9130 if test -n "${x_libraries}"; then
9131 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9132 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9133 fi
9134 x_default_search_path=""
9135 x_search_path=${x_libraries}
9136 if test -z "${x_search_path}"; then
9137 x_search_path=/usr/lib
9138 fi
9139 for x_library in `echo ${x_search_path}: | \
9140 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9141 x_search_path="\
9142 ${x_library}/X11/%L/%T/%N%C%S:\
9143 ${x_library}/X11/%l/%T/%N%C%S:\
9144 ${x_library}/X11/%T/%N%C%S:\
9145 ${x_library}/X11/%L/%T/%N%S:\
9146 ${x_library}/X11/%l/%T/%N%S:\
9147 ${x_library}/X11/%T/%N%S"
9148 if test x"${x_default_search_path}" = x; then
9149 x_default_search_path=${x_search_path}
9150 else
9151 x_default_search_path="${x_search_path}:${x_default_search_path}"
9152 fi
9153 done
9154 fi
9155 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9156 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9157 fi
9158
9159 if test x"${x_includes}" = x; then
9160 bitmapdir=/usr/include/X11/bitmaps
9161 else
9162 # accumulate include directories that have X11 bitmap subdirectories
9163 bmd_acc="dummyval"
9164 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9165 if test -d "${bmd}/X11/bitmaps"; then
9166 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9167 fi
9168 if test -d "${bmd}/bitmaps"; then
9169 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9170 fi
9171 done
9172 if test ${bmd_acc} != "dummyval"; then
9173 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9174 fi
9175 fi
9176
9177 HAVE_NS=no
9178 NS_IMPL_COCOA=no
9179 NS_IMPL_GNUSTEP=no
9180 tmp_CPPFLAGS="$CPPFLAGS"
9181 tmp_CFLAGS="$CFLAGS"
9182 CPPFLAGS="$CPPFLAGS -x objective-c"
9183 CFLAGS="$CFLAGS -x objective-c"
9184 if test "${with_ns}" != no; then
9185 if test "${opsys}" = darwin; then
9186 NS_IMPL_COCOA=yes
9187 ns_appdir=`pwd`/nextstep/Emacs.app
9188 ns_appbindir=`pwd`/nextstep/Emacs.app/Contents/MacOS
9189 ns_appresdir=`pwd`/nextstep/Emacs.app/Contents/Resources
9190 ns_appsrc=${srcdir}/nextstep/Cocoa/Emacs.base
9191 elif test -f /etc/GNUstep/GNUstep.conf; then
9192 NS_IMPL_GNUSTEP=yes
9193 ns_appdir=`pwd`/nextstep/Emacs.app
9194 ns_appbindir=`pwd`/nextstep/Emacs.app
9195 ns_appresdir=`pwd`/nextstep/Emacs.app/Resources
9196 ns_appsrc=${srcdir}/nextstep/GNUstep/Emacs.base
9197 GNUSTEP_MAKEFILES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_MAKEFILES)"
9198 GNUSTEP_SYSTEM_HEADERS="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_HEADERS)"
9199 GNUSTEP_SYSTEM_LIBRARIES="$(source /etc/GNUstep/GNUstep.conf; echo $GNUSTEP_SYSTEM_LIBRARIES)"
9200 CPPFLAGS="$CPPFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9201 CFLAGS="$CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9202 REAL_CFLAGS="$REAL_CFLAGS -I${GNUSTEP_SYSTEM_HEADERS}"
9203 LDFLAGS="$LDFLAGS -L${GNUSTEP_SYSTEM_LIBRARIES}"
9204 fi
9205 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9206 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9207 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9208 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9209 echo $ECHO_N "(cached) $ECHO_C" >&6
9210 fi
9211 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9212 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9213 else
9214 # Is the header compilable?
9215 { echo "$as_me:$LINENO: checking AppKit/AppKit.h usability" >&5
9216 echo $ECHO_N "checking AppKit/AppKit.h usability... $ECHO_C" >&6; }
9217 cat >conftest.$ac_ext <<_ACEOF
9218 /* confdefs.h. */
9219 _ACEOF
9220 cat confdefs.h >>conftest.$ac_ext
9221 cat >>conftest.$ac_ext <<_ACEOF
9222 /* end confdefs.h. */
9223 $ac_includes_default
9224 #include <AppKit/AppKit.h>
9225 _ACEOF
9226 rm -f conftest.$ac_objext
9227 if { (ac_try="$ac_compile"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_compile") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest.$ac_objext; then
9243 ac_header_compiler=yes
9244 else
9245 echo "$as_me: failed program was:" >&5
9246 sed 's/^/| /' conftest.$ac_ext >&5
9247
9248 ac_header_compiler=no
9249 fi
9250
9251 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9252 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9253 echo "${ECHO_T}$ac_header_compiler" >&6; }
9254
9255 # Is the header present?
9256 { echo "$as_me:$LINENO: checking AppKit/AppKit.h presence" >&5
9257 echo $ECHO_N "checking AppKit/AppKit.h presence... $ECHO_C" >&6; }
9258 cat >conftest.$ac_ext <<_ACEOF
9259 /* confdefs.h. */
9260 _ACEOF
9261 cat confdefs.h >>conftest.$ac_ext
9262 cat >>conftest.$ac_ext <<_ACEOF
9263 /* end confdefs.h. */
9264 #include <AppKit/AppKit.h>
9265 _ACEOF
9266 if { (ac_try="$ac_cpp conftest.$ac_ext"
9267 case "(($ac_try" in
9268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9269 *) ac_try_echo=$ac_try;;
9270 esac
9271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9272 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9273 ac_status=$?
9274 grep -v '^ *+' conftest.er1 >conftest.err
9275 rm -f conftest.er1
9276 cat conftest.err >&5
9277 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9278 (exit $ac_status); } >/dev/null && {
9279 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9280 test ! -s conftest.err
9281 }; then
9282 ac_header_preproc=yes
9283 else
9284 echo "$as_me: failed program was:" >&5
9285 sed 's/^/| /' conftest.$ac_ext >&5
9286
9287 ac_header_preproc=no
9288 fi
9289
9290 rm -f conftest.err conftest.$ac_ext
9291 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9292 echo "${ECHO_T}$ac_header_preproc" >&6; }
9293
9294 # So? What about this header?
9295 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9296 yes:no: )
9297 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&5
9298 echo "$as_me: WARNING: AppKit/AppKit.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9299 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&5
9300 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the compiler's result" >&2;}
9301 ac_header_preproc=yes
9302 ;;
9303 no:yes:* )
9304 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&5
9305 echo "$as_me: WARNING: AppKit/AppKit.h: present but cannot be compiled" >&2;}
9306 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&5
9307 echo "$as_me: WARNING: AppKit/AppKit.h: check for missing prerequisite headers?" >&2;}
9308 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&5
9309 echo "$as_me: WARNING: AppKit/AppKit.h: see the Autoconf documentation" >&2;}
9310 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&5
9311 echo "$as_me: WARNING: AppKit/AppKit.h: section \"Present But Cannot Be Compiled\"" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&5
9313 echo "$as_me: WARNING: AppKit/AppKit.h: proceeding with the preprocessor's result" >&2;}
9314 { echo "$as_me:$LINENO: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&5
9315 echo "$as_me: WARNING: AppKit/AppKit.h: in the future, the compiler will take precedence" >&2;}
9316
9317 ;;
9318 esac
9319 { echo "$as_me:$LINENO: checking for AppKit/AppKit.h" >&5
9320 echo $ECHO_N "checking for AppKit/AppKit.h... $ECHO_C" >&6; }
9321 if test "${ac_cv_header_AppKit_AppKit_h+set}" = set; then
9322 echo $ECHO_N "(cached) $ECHO_C" >&6
9323 else
9324 ac_cv_header_AppKit_AppKit_h=$ac_header_preproc
9325 fi
9326 { echo "$as_me:$LINENO: result: $ac_cv_header_AppKit_AppKit_h" >&5
9327 echo "${ECHO_T}$ac_cv_header_AppKit_AppKit_h" >&6; }
9328
9329 fi
9330 if test $ac_cv_header_AppKit_AppKit_h = yes; then
9331 HAVE_NS=yes
9332 fi
9333
9334
9335 NS_HAVE_INTEGER=yes
9336 cat >conftest.$ac_ext <<_ACEOF
9337 /* confdefs.h. */
9338 _ACEOF
9339 cat confdefs.h >>conftest.$ac_ext
9340 cat >>conftest.$ac_ext <<_ACEOF
9341 /* end confdefs.h. */
9342 #include <Foundation/NSObjCRuntime.h>
9343 int
9344 main ()
9345 {
9346 NSInteger i;
9347 ;
9348 return 0;
9349 }
9350 _ACEOF
9351 rm -f conftest.$ac_objext
9352 if { (ac_try="$ac_compile"
9353 case "(($ac_try" in
9354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9355 *) ac_try_echo=$ac_try;;
9356 esac
9357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9358 (eval "$ac_compile") 2>conftest.er1
9359 ac_status=$?
9360 grep -v '^ *+' conftest.er1 >conftest.err
9361 rm -f conftest.er1
9362 cat conftest.err >&5
9363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9364 (exit $ac_status); } && {
9365 test -z "$ac_c_werror_flag" ||
9366 test ! -s conftest.err
9367 } && test -s conftest.$ac_objext; then
9368 ns_have_integer=yes
9369 else
9370 echo "$as_me: failed program was:" >&5
9371 sed 's/^/| /' conftest.$ac_ext >&5
9372
9373 ns_have_integer=no
9374 fi
9375
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9377 if test $ns_have_integer = no; then
9378 NS_HAVE_INTEGER=no
9379 fi
9380 fi
9381 if test "${HAVE_NS}" = yes; then
9382 window_system=nextstep
9383 with_xft=no
9384 with_freetype=no
9385 # set up packaging dirs
9386 exec_prefix=${ns_appbindir}
9387 libexecdir=${ns_appbindir}/libexec
9388 if test "${EN_NS_SELF_CONTAINED}" = yes; then
9389 prefix=${ns_appresdir}
9390 fi
9391 fi
9392 CFLAGS="$tmp_CFLAGS"
9393 CPPFLAGS="$tmp_CPPFLAGS"
9394
9395 case "${window_system}" in
9396 x11 )
9397 HAVE_X_WINDOWS=yes
9398 HAVE_X11=yes
9399 case "${with_x_toolkit}" in
9400 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9401 motif ) USE_X_TOOLKIT=MOTIF ;;
9402 gtk ) with_gtk=yes
9403 USE_X_TOOLKIT=none ;;
9404 no ) USE_X_TOOLKIT=none ;;
9405 * ) USE_X_TOOLKIT=maybe ;;
9406 esac
9407 ;;
9408 nextstep | none )
9409 HAVE_X_WINDOWS=no
9410 HAVE_X11=no
9411 USE_X_TOOLKIT=none
9412 ;;
9413 esac
9414
9415 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9416 # Extract the first word of "X", so it can be a program name with args.
9417 set dummy X; ac_word=$2
9418 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9420 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9421 echo $ECHO_N "(cached) $ECHO_C" >&6
9422 else
9423 if test -n "$HAVE_XSERVER"; then
9424 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9425 else
9426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9427 for as_dir in $PATH
9428 do
9429 IFS=$as_save_IFS
9430 test -z "$as_dir" && as_dir=.
9431 for ac_exec_ext in '' $ac_executable_extensions; do
9432 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9433 ac_cv_prog_HAVE_XSERVER="true"
9434 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9435 break 2
9436 fi
9437 done
9438 done
9439 IFS=$as_save_IFS
9440
9441 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9442 fi
9443 fi
9444 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9445 if test -n "$HAVE_XSERVER"; then
9446 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9447 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9448 else
9449 { echo "$as_me:$LINENO: result: no" >&5
9450 echo "${ECHO_T}no" >&6; }
9451 fi
9452
9453
9454 if test "$HAVE_XSERVER" = true ||
9455 test -n "$DISPLAY" ||
9456 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9457 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9458 were found. You should install the relevant development files for X
9459 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9460 sure you have development files for image handling, i.e.
9461 tiff, gif, jpeg, png and xpm.
9462 If you are sure you want Emacs compiled without X window support, pass
9463 --without-x
9464 to configure." >&5
9465 echo "$as_me: error: You seem to be running X, but no X development libraries
9466 were found. You should install the relevant development files for X
9467 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9468 sure you have development files for image handling, i.e.
9469 tiff, gif, jpeg, png and xpm.
9470 If you are sure you want Emacs compiled without X window support, pass
9471 --without-x
9472 to configure." >&2;}
9473 { (exit 1); exit 1; }; }
9474 fi
9475 fi
9476
9477 ### If we're using X11, we should use the X menu package.
9478 HAVE_MENUS=no
9479 case ${HAVE_X11} in
9480 yes ) HAVE_MENUS=yes ;;
9481 esac
9482
9483 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9484 # Assume not, until told otherwise.
9485 GNU_MALLOC=yes
9486 doug_lea_malloc=yes
9487 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9488 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9489 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9490 echo $ECHO_N "(cached) $ECHO_C" >&6
9491 else
9492 cat >conftest.$ac_ext <<_ACEOF
9493 /* confdefs.h. */
9494 _ACEOF
9495 cat confdefs.h >>conftest.$ac_ext
9496 cat >>conftest.$ac_ext <<_ACEOF
9497 /* end confdefs.h. */
9498 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9499 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9500 #define malloc_get_state innocuous_malloc_get_state
9501
9502 /* System header to define __stub macros and hopefully few prototypes,
9503 which can conflict with char malloc_get_state (); below.
9504 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9505 <limits.h> exists even on freestanding compilers. */
9506
9507 #ifdef __STDC__
9508 # include <limits.h>
9509 #else
9510 # include <assert.h>
9511 #endif
9512
9513 #undef malloc_get_state
9514
9515 /* Override any GCC internal prototype to avoid an error.
9516 Use char because int might match the return type of a GCC
9517 builtin and then its argument prototype would still apply. */
9518 #ifdef __cplusplus
9519 extern "C"
9520 #endif
9521 char malloc_get_state ();
9522 /* The GNU C library defines this for functions which it implements
9523 to always fail with ENOSYS. Some functions are actually named
9524 something starting with __ and the normal name is an alias. */
9525 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9526 choke me
9527 #endif
9528
9529 int
9530 main ()
9531 {
9532 return malloc_get_state ();
9533 ;
9534 return 0;
9535 }
9536 _ACEOF
9537 rm -f conftest.$ac_objext conftest$ac_exeext
9538 if { (ac_try="$ac_link"
9539 case "(($ac_try" in
9540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9541 *) ac_try_echo=$ac_try;;
9542 esac
9543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9544 (eval "$ac_link") 2>conftest.er1
9545 ac_status=$?
9546 grep -v '^ *+' conftest.er1 >conftest.err
9547 rm -f conftest.er1
9548 cat conftest.err >&5
9549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9550 (exit $ac_status); } && {
9551 test -z "$ac_c_werror_flag" ||
9552 test ! -s conftest.err
9553 } && test -s conftest$ac_exeext &&
9554 $as_test_x conftest$ac_exeext; then
9555 ac_cv_func_malloc_get_state=yes
9556 else
9557 echo "$as_me: failed program was:" >&5
9558 sed 's/^/| /' conftest.$ac_ext >&5
9559
9560 ac_cv_func_malloc_get_state=no
9561 fi
9562
9563 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9564 conftest$ac_exeext conftest.$ac_ext
9565 fi
9566 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9567 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9568 if test $ac_cv_func_malloc_get_state = yes; then
9569 :
9570 else
9571 doug_lea_malloc=no
9572 fi
9573
9574 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9575 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9576 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define malloc_set_state innocuous_malloc_set_state
9588
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char malloc_set_state (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9593
9594 #ifdef __STDC__
9595 # include <limits.h>
9596 #else
9597 # include <assert.h>
9598 #endif
9599
9600 #undef malloc_set_state
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 char malloc_set_state ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9613 choke me
9614 #endif
9615
9616 int
9617 main ()
9618 {
9619 return malloc_set_state ();
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_func_malloc_set_state=yes
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_func_malloc_set_state=no
9648 fi
9649
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 conftest$ac_exeext conftest.$ac_ext
9652 fi
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9654 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9655 if test $ac_cv_func_malloc_set_state = yes; then
9656 :
9657 else
9658 doug_lea_malloc=no
9659 fi
9660
9661 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9662 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9663 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 extern void (* __after_morecore_hook)();
9673 int
9674 main ()
9675 {
9676 __after_morecore_hook = 0
9677 ;
9678 return 0;
9679 }
9680 _ACEOF
9681 rm -f conftest.$ac_objext conftest$ac_exeext
9682 if { (ac_try="$ac_link"
9683 case "(($ac_try" in
9684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9685 *) ac_try_echo=$ac_try;;
9686 esac
9687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9688 (eval "$ac_link") 2>conftest.er1
9689 ac_status=$?
9690 grep -v '^ *+' conftest.er1 >conftest.err
9691 rm -f conftest.er1
9692 cat conftest.err >&5
9693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9694 (exit $ac_status); } && {
9695 test -z "$ac_c_werror_flag" ||
9696 test ! -s conftest.err
9697 } && test -s conftest$ac_exeext &&
9698 $as_test_x conftest$ac_exeext; then
9699 emacs_cv_var___after_morecore_hook=yes
9700 else
9701 echo "$as_me: failed program was:" >&5
9702 sed 's/^/| /' conftest.$ac_ext >&5
9703
9704 emacs_cv_var___after_morecore_hook=no
9705 fi
9706
9707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9708 conftest$ac_exeext conftest.$ac_ext
9709 fi
9710 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9711 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9712 if test $emacs_cv_var___after_morecore_hook = no; then
9713 doug_lea_malloc=no
9714 fi
9715 if test "${system_malloc}" = "yes"; then
9716 GNU_MALLOC=no
9717 GNU_MALLOC_reason="
9718 (The GNU allocators don't work with this system configuration.)"
9719 fi
9720 if test "$doug_lea_malloc" = "yes" ; then
9721 if test "$GNU_MALLOC" = yes ; then
9722 GNU_MALLOC_reason="
9723 (Using Doug Lea's new malloc from the GNU C Library.)"
9724 fi
9725
9726 cat >>confdefs.h <<\_ACEOF
9727 #define DOUG_LEA_MALLOC 1
9728 _ACEOF
9729
9730 fi
9731
9732 if test x"${REL_ALLOC}" = x; then
9733 REL_ALLOC=${GNU_MALLOC}
9734 fi
9735
9736
9737
9738
9739 for ac_header in stdlib.h unistd.h
9740 do
9741 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9742 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9746 echo $ECHO_N "(cached) $ECHO_C" >&6
9747 fi
9748 ac_res=`eval echo '${'$as_ac_Header'}'`
9749 { echo "$as_me:$LINENO: result: $ac_res" >&5
9750 echo "${ECHO_T}$ac_res" >&6; }
9751 else
9752 # Is the header compilable?
9753 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9754 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9755 cat >conftest.$ac_ext <<_ACEOF
9756 /* confdefs.h. */
9757 _ACEOF
9758 cat confdefs.h >>conftest.$ac_ext
9759 cat >>conftest.$ac_ext <<_ACEOF
9760 /* end confdefs.h. */
9761 $ac_includes_default
9762 #include <$ac_header>
9763 _ACEOF
9764 rm -f conftest.$ac_objext
9765 if { (ac_try="$ac_compile"
9766 case "(($ac_try" in
9767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9768 *) ac_try_echo=$ac_try;;
9769 esac
9770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9771 (eval "$ac_compile") 2>conftest.er1
9772 ac_status=$?
9773 grep -v '^ *+' conftest.er1 >conftest.err
9774 rm -f conftest.er1
9775 cat conftest.err >&5
9776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9777 (exit $ac_status); } && {
9778 test -z "$ac_c_werror_flag" ||
9779 test ! -s conftest.err
9780 } && test -s conftest.$ac_objext; then
9781 ac_header_compiler=yes
9782 else
9783 echo "$as_me: failed program was:" >&5
9784 sed 's/^/| /' conftest.$ac_ext >&5
9785
9786 ac_header_compiler=no
9787 fi
9788
9789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9790 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9791 echo "${ECHO_T}$ac_header_compiler" >&6; }
9792
9793 # Is the header present?
9794 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9795 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9796 cat >conftest.$ac_ext <<_ACEOF
9797 /* confdefs.h. */
9798 _ACEOF
9799 cat confdefs.h >>conftest.$ac_ext
9800 cat >>conftest.$ac_ext <<_ACEOF
9801 /* end confdefs.h. */
9802 #include <$ac_header>
9803 _ACEOF
9804 if { (ac_try="$ac_cpp conftest.$ac_ext"
9805 case "(($ac_try" in
9806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9807 *) ac_try_echo=$ac_try;;
9808 esac
9809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9810 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9811 ac_status=$?
9812 grep -v '^ *+' conftest.er1 >conftest.err
9813 rm -f conftest.er1
9814 cat conftest.err >&5
9815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9816 (exit $ac_status); } >/dev/null && {
9817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9818 test ! -s conftest.err
9819 }; then
9820 ac_header_preproc=yes
9821 else
9822 echo "$as_me: failed program was:" >&5
9823 sed 's/^/| /' conftest.$ac_ext >&5
9824
9825 ac_header_preproc=no
9826 fi
9827
9828 rm -f conftest.err conftest.$ac_ext
9829 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9830 echo "${ECHO_T}$ac_header_preproc" >&6; }
9831
9832 # So? What about this header?
9833 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9834 yes:no: )
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9836 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9838 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9839 ac_header_preproc=yes
9840 ;;
9841 no:yes:* )
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9843 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9845 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9847 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9849 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9851 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9852 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9853 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9854
9855 ;;
9856 esac
9857 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9858 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9859 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9860 echo $ECHO_N "(cached) $ECHO_C" >&6
9861 else
9862 eval "$as_ac_Header=\$ac_header_preproc"
9863 fi
9864 ac_res=`eval echo '${'$as_ac_Header'}'`
9865 { echo "$as_me:$LINENO: result: $ac_res" >&5
9866 echo "${ECHO_T}$ac_res" >&6; }
9867
9868 fi
9869 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9870 cat >>confdefs.h <<_ACEOF
9871 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9872 _ACEOF
9873
9874 fi
9875
9876 done
9877
9878
9879 for ac_func in getpagesize
9880 do
9881 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9882 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9883 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9884 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9885 echo $ECHO_N "(cached) $ECHO_C" >&6
9886 else
9887 cat >conftest.$ac_ext <<_ACEOF
9888 /* confdefs.h. */
9889 _ACEOF
9890 cat confdefs.h >>conftest.$ac_ext
9891 cat >>conftest.$ac_ext <<_ACEOF
9892 /* end confdefs.h. */
9893 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9894 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9895 #define $ac_func innocuous_$ac_func
9896
9897 /* System header to define __stub macros and hopefully few prototypes,
9898 which can conflict with char $ac_func (); below.
9899 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9900 <limits.h> exists even on freestanding compilers. */
9901
9902 #ifdef __STDC__
9903 # include <limits.h>
9904 #else
9905 # include <assert.h>
9906 #endif
9907
9908 #undef $ac_func
9909
9910 /* Override any GCC internal prototype to avoid an error.
9911 Use char because int might match the return type of a GCC
9912 builtin and then its argument prototype would still apply. */
9913 #ifdef __cplusplus
9914 extern "C"
9915 #endif
9916 char $ac_func ();
9917 /* The GNU C library defines this for functions which it implements
9918 to always fail with ENOSYS. Some functions are actually named
9919 something starting with __ and the normal name is an alias. */
9920 #if defined __stub_$ac_func || defined __stub___$ac_func
9921 choke me
9922 #endif
9923
9924 int
9925 main ()
9926 {
9927 return $ac_func ();
9928 ;
9929 return 0;
9930 }
9931 _ACEOF
9932 rm -f conftest.$ac_objext conftest$ac_exeext
9933 if { (ac_try="$ac_link"
9934 case "(($ac_try" in
9935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9936 *) ac_try_echo=$ac_try;;
9937 esac
9938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9939 (eval "$ac_link") 2>conftest.er1
9940 ac_status=$?
9941 grep -v '^ *+' conftest.er1 >conftest.err
9942 rm -f conftest.er1
9943 cat conftest.err >&5
9944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9945 (exit $ac_status); } && {
9946 test -z "$ac_c_werror_flag" ||
9947 test ! -s conftest.err
9948 } && test -s conftest$ac_exeext &&
9949 $as_test_x conftest$ac_exeext; then
9950 eval "$as_ac_var=yes"
9951 else
9952 echo "$as_me: failed program was:" >&5
9953 sed 's/^/| /' conftest.$ac_ext >&5
9954
9955 eval "$as_ac_var=no"
9956 fi
9957
9958 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9959 conftest$ac_exeext conftest.$ac_ext
9960 fi
9961 ac_res=`eval echo '${'$as_ac_var'}'`
9962 { echo "$as_me:$LINENO: result: $ac_res" >&5
9963 echo "${ECHO_T}$ac_res" >&6; }
9964 if test `eval echo '${'$as_ac_var'}'` = yes; then
9965 cat >>confdefs.h <<_ACEOF
9966 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9967 _ACEOF
9968
9969 fi
9970 done
9971
9972 { echo "$as_me:$LINENO: checking for working mmap" >&5
9973 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9974 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9975 echo $ECHO_N "(cached) $ECHO_C" >&6
9976 else
9977 if test "$cross_compiling" = yes; then
9978 ac_cv_func_mmap_fixed_mapped=no
9979 else
9980 cat >conftest.$ac_ext <<_ACEOF
9981 /* confdefs.h. */
9982 _ACEOF
9983 cat confdefs.h >>conftest.$ac_ext
9984 cat >>conftest.$ac_ext <<_ACEOF
9985 /* end confdefs.h. */
9986 $ac_includes_default
9987 /* malloc might have been renamed as rpl_malloc. */
9988 #undef malloc
9989
9990 /* Thanks to Mike Haertel and Jim Avera for this test.
9991 Here is a matrix of mmap possibilities:
9992 mmap private not fixed
9993 mmap private fixed at somewhere currently unmapped
9994 mmap private fixed at somewhere already mapped
9995 mmap shared not fixed
9996 mmap shared fixed at somewhere currently unmapped
9997 mmap shared fixed at somewhere already mapped
9998 For private mappings, we should verify that changes cannot be read()
9999 back from the file, nor mmap's back from the file at a different
10000 address. (There have been systems where private was not correctly
10001 implemented like the infamous i386 svr4.0, and systems where the
10002 VM page cache was not coherent with the file system buffer cache
10003 like early versions of FreeBSD and possibly contemporary NetBSD.)
10004 For shared mappings, we should conversely verify that changes get
10005 propagated back to all the places they're supposed to be.
10006
10007 Grep wants private fixed already mapped.
10008 The main things grep needs to know about mmap are:
10009 * does it exist and is it safe to write into the mmap'd area
10010 * how to use it (BSD variants) */
10011
10012 #include <fcntl.h>
10013 #include <sys/mman.h>
10014
10015 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10016 char *malloc ();
10017 #endif
10018
10019 /* This mess was copied from the GNU getpagesize.h. */
10020 #ifndef HAVE_GETPAGESIZE
10021 /* Assume that all systems that can run configure have sys/param.h. */
10022 # ifndef HAVE_SYS_PARAM_H
10023 # define HAVE_SYS_PARAM_H 1
10024 # endif
10025
10026 # ifdef _SC_PAGESIZE
10027 # define getpagesize() sysconf(_SC_PAGESIZE)
10028 # else /* no _SC_PAGESIZE */
10029 # ifdef HAVE_SYS_PARAM_H
10030 # include <sys/param.h>
10031 # ifdef EXEC_PAGESIZE
10032 # define getpagesize() EXEC_PAGESIZE
10033 # else /* no EXEC_PAGESIZE */
10034 # ifdef NBPG
10035 # define getpagesize() NBPG * CLSIZE
10036 # ifndef CLSIZE
10037 # define CLSIZE 1
10038 # endif /* no CLSIZE */
10039 # else /* no NBPG */
10040 # ifdef NBPC
10041 # define getpagesize() NBPC
10042 # else /* no NBPC */
10043 # ifdef PAGESIZE
10044 # define getpagesize() PAGESIZE
10045 # endif /* PAGESIZE */
10046 # endif /* no NBPC */
10047 # endif /* no NBPG */
10048 # endif /* no EXEC_PAGESIZE */
10049 # else /* no HAVE_SYS_PARAM_H */
10050 # define getpagesize() 8192 /* punt totally */
10051 # endif /* no HAVE_SYS_PARAM_H */
10052 # endif /* no _SC_PAGESIZE */
10053
10054 #endif /* no HAVE_GETPAGESIZE */
10055
10056 int
10057 main ()
10058 {
10059 char *data, *data2, *data3;
10060 int i, pagesize;
10061 int fd;
10062
10063 pagesize = getpagesize ();
10064
10065 /* First, make a file with some known garbage in it. */
10066 data = (char *) malloc (pagesize);
10067 if (!data)
10068 return 1;
10069 for (i = 0; i < pagesize; ++i)
10070 *(data + i) = rand ();
10071 umask (0);
10072 fd = creat ("conftest.mmap", 0600);
10073 if (fd < 0)
10074 return 1;
10075 if (write (fd, data, pagesize) != pagesize)
10076 return 1;
10077 close (fd);
10078
10079 /* Next, try to mmap the file at a fixed address which already has
10080 something else allocated at it. If we can, also make sure that
10081 we see the same garbage. */
10082 fd = open ("conftest.mmap", O_RDWR);
10083 if (fd < 0)
10084 return 1;
10085 data2 = (char *) malloc (2 * pagesize);
10086 if (!data2)
10087 return 1;
10088 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10089 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10090 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10091 return 1;
10092 for (i = 0; i < pagesize; ++i)
10093 if (*(data + i) != *(data2 + i))
10094 return 1;
10095
10096 /* Finally, make sure that changes to the mapped area do not
10097 percolate back to the file as seen by read(). (This is a bug on
10098 some variants of i386 svr4.0.) */
10099 for (i = 0; i < pagesize; ++i)
10100 *(data2 + i) = *(data2 + i) + 1;
10101 data3 = (char *) malloc (pagesize);
10102 if (!data3)
10103 return 1;
10104 if (read (fd, data3, pagesize) != pagesize)
10105 return 1;
10106 for (i = 0; i < pagesize; ++i)
10107 if (*(data + i) != *(data3 + i))
10108 return 1;
10109 close (fd);
10110 return 0;
10111 }
10112 _ACEOF
10113 rm -f conftest$ac_exeext
10114 if { (ac_try="$ac_link"
10115 case "(($ac_try" in
10116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10117 *) ac_try_echo=$ac_try;;
10118 esac
10119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10120 (eval "$ac_link") 2>&5
10121 ac_status=$?
10122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10123 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10124 { (case "(($ac_try" in
10125 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10126 *) ac_try_echo=$ac_try;;
10127 esac
10128 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10129 (eval "$ac_try") 2>&5
10130 ac_status=$?
10131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10132 (exit $ac_status); }; }; then
10133 ac_cv_func_mmap_fixed_mapped=yes
10134 else
10135 echo "$as_me: program exited with status $ac_status" >&5
10136 echo "$as_me: failed program was:" >&5
10137 sed 's/^/| /' conftest.$ac_ext >&5
10138
10139 ( exit $ac_status )
10140 ac_cv_func_mmap_fixed_mapped=no
10141 fi
10142 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10143 fi
10144
10145
10146 fi
10147 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10148 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10149 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10150
10151 cat >>confdefs.h <<\_ACEOF
10152 #define HAVE_MMAP 1
10153 _ACEOF
10154
10155 fi
10156 rm -f conftest.mmap
10157
10158 if test $use_mmap_for_buffers = yes; then
10159 REL_ALLOC=no
10160 fi
10161
10162 LIBS="$libsrc_libs $LIBS"
10163
10164
10165 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10166 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10167 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10168 echo $ECHO_N "(cached) $ECHO_C" >&6
10169 else
10170 ac_check_lib_save_LIBS=$LIBS
10171 LIBS="-ldnet $LIBS"
10172 cat >conftest.$ac_ext <<_ACEOF
10173 /* confdefs.h. */
10174 _ACEOF
10175 cat confdefs.h >>conftest.$ac_ext
10176 cat >>conftest.$ac_ext <<_ACEOF
10177 /* end confdefs.h. */
10178
10179 /* Override any GCC internal prototype to avoid an error.
10180 Use char because int might match the return type of a GCC
10181 builtin and then its argument prototype would still apply. */
10182 #ifdef __cplusplus
10183 extern "C"
10184 #endif
10185 char dnet_ntoa ();
10186 int
10187 main ()
10188 {
10189 return dnet_ntoa ();
10190 ;
10191 return 0;
10192 }
10193 _ACEOF
10194 rm -f conftest.$ac_objext conftest$ac_exeext
10195 if { (ac_try="$ac_link"
10196 case "(($ac_try" in
10197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10198 *) ac_try_echo=$ac_try;;
10199 esac
10200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10201 (eval "$ac_link") 2>conftest.er1
10202 ac_status=$?
10203 grep -v '^ *+' conftest.er1 >conftest.err
10204 rm -f conftest.er1
10205 cat conftest.err >&5
10206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10207 (exit $ac_status); } && {
10208 test -z "$ac_c_werror_flag" ||
10209 test ! -s conftest.err
10210 } && test -s conftest$ac_exeext &&
10211 $as_test_x conftest$ac_exeext; then
10212 ac_cv_lib_dnet_dnet_ntoa=yes
10213 else
10214 echo "$as_me: failed program was:" >&5
10215 sed 's/^/| /' conftest.$ac_ext >&5
10216
10217 ac_cv_lib_dnet_dnet_ntoa=no
10218 fi
10219
10220 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10221 conftest$ac_exeext conftest.$ac_ext
10222 LIBS=$ac_check_lib_save_LIBS
10223 fi
10224 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10225 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10226 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10227 cat >>confdefs.h <<_ACEOF
10228 #define HAVE_LIBDNET 1
10229 _ACEOF
10230
10231 LIBS="-ldnet $LIBS"
10232
10233 fi
10234
10235
10236 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10237 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10238 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10239 echo $ECHO_N "(cached) $ECHO_C" >&6
10240 else
10241 ac_check_lib_save_LIBS=$LIBS
10242 LIBS="-lXbsd $LIBS"
10243 cat >conftest.$ac_ext <<_ACEOF
10244 /* confdefs.h. */
10245 _ACEOF
10246 cat confdefs.h >>conftest.$ac_ext
10247 cat >>conftest.$ac_ext <<_ACEOF
10248 /* end confdefs.h. */
10249
10250
10251 int
10252 main ()
10253 {
10254 return main ();
10255 ;
10256 return 0;
10257 }
10258 _ACEOF
10259 rm -f conftest.$ac_objext conftest$ac_exeext
10260 if { (ac_try="$ac_link"
10261 case "(($ac_try" in
10262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10263 *) ac_try_echo=$ac_try;;
10264 esac
10265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10266 (eval "$ac_link") 2>conftest.er1
10267 ac_status=$?
10268 grep -v '^ *+' conftest.er1 >conftest.err
10269 rm -f conftest.er1
10270 cat conftest.err >&5
10271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10272 (exit $ac_status); } && {
10273 test -z "$ac_c_werror_flag" ||
10274 test ! -s conftest.err
10275 } && test -s conftest$ac_exeext &&
10276 $as_test_x conftest$ac_exeext; then
10277 ac_cv_lib_Xbsd_main=yes
10278 else
10279 echo "$as_me: failed program was:" >&5
10280 sed 's/^/| /' conftest.$ac_ext >&5
10281
10282 ac_cv_lib_Xbsd_main=no
10283 fi
10284
10285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10286 conftest$ac_exeext conftest.$ac_ext
10287 LIBS=$ac_check_lib_save_LIBS
10288 fi
10289 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10290 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10291 if test $ac_cv_lib_Xbsd_main = yes; then
10292 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10293 fi
10294
10295
10296
10297 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10298 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10299 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10300 echo $ECHO_N "(cached) $ECHO_C" >&6
10301 else
10302 ac_check_lib_save_LIBS=$LIBS
10303 LIBS="-lpthreads $LIBS"
10304 cat >conftest.$ac_ext <<_ACEOF
10305 /* confdefs.h. */
10306 _ACEOF
10307 cat confdefs.h >>conftest.$ac_ext
10308 cat >>conftest.$ac_ext <<_ACEOF
10309 /* end confdefs.h. */
10310
10311 /* Override any GCC internal prototype to avoid an error.
10312 Use char because int might match the return type of a GCC
10313 builtin and then its argument prototype would still apply. */
10314 #ifdef __cplusplus
10315 extern "C"
10316 #endif
10317 char cma_open ();
10318 int
10319 main ()
10320 {
10321 return cma_open ();
10322 ;
10323 return 0;
10324 }
10325 _ACEOF
10326 rm -f conftest.$ac_objext conftest$ac_exeext
10327 if { (ac_try="$ac_link"
10328 case "(($ac_try" in
10329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10330 *) ac_try_echo=$ac_try;;
10331 esac
10332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10333 (eval "$ac_link") 2>conftest.er1
10334 ac_status=$?
10335 grep -v '^ *+' conftest.er1 >conftest.err
10336 rm -f conftest.er1
10337 cat conftest.err >&5
10338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10339 (exit $ac_status); } && {
10340 test -z "$ac_c_werror_flag" ||
10341 test ! -s conftest.err
10342 } && test -s conftest$ac_exeext &&
10343 $as_test_x conftest$ac_exeext; then
10344 ac_cv_lib_pthreads_cma_open=yes
10345 else
10346 echo "$as_me: failed program was:" >&5
10347 sed 's/^/| /' conftest.$ac_ext >&5
10348
10349 ac_cv_lib_pthreads_cma_open=no
10350 fi
10351
10352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10353 conftest$ac_exeext conftest.$ac_ext
10354 LIBS=$ac_check_lib_save_LIBS
10355 fi
10356 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10357 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10358 if test $ac_cv_lib_pthreads_cma_open = yes; then
10359 cat >>confdefs.h <<_ACEOF
10360 #define HAVE_LIBPTHREADS 1
10361 _ACEOF
10362
10363 LIBS="-lpthreads $LIBS"
10364
10365 fi
10366
10367
10368
10369 case ${host_os} in
10370 aix*)
10371 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10372 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10373 if test "${gdb_cv_bigtoc+set}" = set; then
10374 echo $ECHO_N "(cached) $ECHO_C" >&6
10375 else
10376
10377 case $GCC in
10378 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10379 *) gdb_cv_bigtoc=-bbigtoc ;;
10380 esac
10381
10382 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10383 cat >conftest.$ac_ext <<_ACEOF
10384 /* confdefs.h. */
10385 _ACEOF
10386 cat confdefs.h >>conftest.$ac_ext
10387 cat >>conftest.$ac_ext <<_ACEOF
10388 /* end confdefs.h. */
10389
10390 int
10391 main ()
10392 {
10393 int i;
10394 ;
10395 return 0;
10396 }
10397 _ACEOF
10398 rm -f conftest.$ac_objext conftest$ac_exeext
10399 if { (ac_try="$ac_link"
10400 case "(($ac_try" in
10401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10402 *) ac_try_echo=$ac_try;;
10403 esac
10404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10405 (eval "$ac_link") 2>conftest.er1
10406 ac_status=$?
10407 grep -v '^ *+' conftest.er1 >conftest.err
10408 rm -f conftest.er1
10409 cat conftest.err >&5
10410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10411 (exit $ac_status); } && {
10412 test -z "$ac_c_werror_flag" ||
10413 test ! -s conftest.err
10414 } && test -s conftest$ac_exeext &&
10415 $as_test_x conftest$ac_exeext; then
10416 :
10417 else
10418 echo "$as_me: failed program was:" >&5
10419 sed 's/^/| /' conftest.$ac_ext >&5
10420
10421 gdb_cv_bigtoc=
10422 fi
10423
10424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10425 conftest$ac_exeext conftest.$ac_ext
10426
10427 fi
10428 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10429 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10430 ;;
10431 esac
10432
10433 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10434 # used for the tests that follow. We set them back to REAL_CFLAGS and
10435 # REAL_CPPFLAGS later on.
10436
10437 REAL_CPPFLAGS="$CPPFLAGS"
10438
10439 if test "${HAVE_X11}" = "yes"; then
10440 DEFS="$C_SWITCH_X_SITE $DEFS"
10441 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10442 LIBS="$LIBX $LIBS"
10443 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10444 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10445
10446 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10447 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10448 # but it's more convenient here to set LD_RUN_PATH
10449 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10450 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10451 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10452 export LD_RUN_PATH
10453 fi
10454
10455 if test "${opsys}" = "gnu-linux"; then
10456 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10457 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10458 cat >conftest.$ac_ext <<_ACEOF
10459 /* confdefs.h. */
10460 _ACEOF
10461 cat confdefs.h >>conftest.$ac_ext
10462 cat >>conftest.$ac_ext <<_ACEOF
10463 /* end confdefs.h. */
10464
10465 int
10466 main ()
10467 {
10468 XOpenDisplay ("foo");
10469 ;
10470 return 0;
10471 }
10472 _ACEOF
10473 rm -f conftest.$ac_objext conftest$ac_exeext
10474 if { (ac_try="$ac_link"
10475 case "(($ac_try" in
10476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10477 *) ac_try_echo=$ac_try;;
10478 esac
10479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10480 (eval "$ac_link") 2>conftest.er1
10481 ac_status=$?
10482 grep -v '^ *+' conftest.er1 >conftest.err
10483 rm -f conftest.er1
10484 cat conftest.err >&5
10485 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10486 (exit $ac_status); } && {
10487 test -z "$ac_c_werror_flag" ||
10488 test ! -s conftest.err
10489 } && test -s conftest$ac_exeext &&
10490 $as_test_x conftest$ac_exeext; then
10491 xlinux_first_failure=no
10492 else
10493 echo "$as_me: failed program was:" >&5
10494 sed 's/^/| /' conftest.$ac_ext >&5
10495
10496 xlinux_first_failure=yes
10497 fi
10498
10499 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10500 conftest$ac_exeext conftest.$ac_ext
10501 if test "${xlinux_first_failure}" = "yes"; then
10502 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10503 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10504 OLD_CPPFLAGS="$CPPFLAGS"
10505 OLD_LIBS="$LIBS"
10506 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10507 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10508 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10509 LIBS="$LIBS -b i486-linuxaout"
10510 cat >conftest.$ac_ext <<_ACEOF
10511 /* confdefs.h. */
10512 _ACEOF
10513 cat confdefs.h >>conftest.$ac_ext
10514 cat >>conftest.$ac_ext <<_ACEOF
10515 /* end confdefs.h. */
10516
10517 int
10518 main ()
10519 {
10520 XOpenDisplay ("foo");
10521 ;
10522 return 0;
10523 }
10524 _ACEOF
10525 rm -f conftest.$ac_objext conftest$ac_exeext
10526 if { (ac_try="$ac_link"
10527 case "(($ac_try" in
10528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10529 *) ac_try_echo=$ac_try;;
10530 esac
10531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10532 (eval "$ac_link") 2>conftest.er1
10533 ac_status=$?
10534 grep -v '^ *+' conftest.er1 >conftest.err
10535 rm -f conftest.er1
10536 cat conftest.err >&5
10537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10538 (exit $ac_status); } && {
10539 test -z "$ac_c_werror_flag" ||
10540 test ! -s conftest.err
10541 } && test -s conftest$ac_exeext &&
10542 $as_test_x conftest$ac_exeext; then
10543 xlinux_second_failure=no
10544 else
10545 echo "$as_me: failed program was:" >&5
10546 sed 's/^/| /' conftest.$ac_ext >&5
10547
10548 xlinux_second_failure=yes
10549 fi
10550
10551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10552 conftest$ac_exeext conftest.$ac_ext
10553 if test "${xlinux_second_failure}" = "yes"; then
10554 # If we get the same failure with -b, there is no use adding -b.
10555 # So take it out. This plays safe.
10556 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10557 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10558 CPPFLAGS="$OLD_CPPFLAGS"
10559 LIBS="$OLD_LIBS"
10560 { echo "$as_me:$LINENO: result: no" >&5
10561 echo "${ECHO_T}no" >&6; }
10562 else
10563 { echo "$as_me:$LINENO: result: yes" >&5
10564 echo "${ECHO_T}yes" >&6; }
10565 fi
10566 else
10567 { echo "$as_me:$LINENO: result: no" >&5
10568 echo "${ECHO_T}no" >&6; }
10569 fi
10570 fi
10571
10572 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10573 # header files included from there.
10574 { echo "$as_me:$LINENO: checking for Xkb" >&5
10575 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10576 cat >conftest.$ac_ext <<_ACEOF
10577 /* confdefs.h. */
10578 _ACEOF
10579 cat confdefs.h >>conftest.$ac_ext
10580 cat >>conftest.$ac_ext <<_ACEOF
10581 /* end confdefs.h. */
10582 #include <X11/Xlib.h>
10583 #include <X11/XKBlib.h>
10584 int
10585 main ()
10586 {
10587 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10588 ;
10589 return 0;
10590 }
10591 _ACEOF
10592 rm -f conftest.$ac_objext conftest$ac_exeext
10593 if { (ac_try="$ac_link"
10594 case "(($ac_try" in
10595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10596 *) ac_try_echo=$ac_try;;
10597 esac
10598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10599 (eval "$ac_link") 2>conftest.er1
10600 ac_status=$?
10601 grep -v '^ *+' conftest.er1 >conftest.err
10602 rm -f conftest.er1
10603 cat conftest.err >&5
10604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10605 (exit $ac_status); } && {
10606 test -z "$ac_c_werror_flag" ||
10607 test ! -s conftest.err
10608 } && test -s conftest$ac_exeext &&
10609 $as_test_x conftest$ac_exeext; then
10610 emacs_xkb=yes
10611 else
10612 echo "$as_me: failed program was:" >&5
10613 sed 's/^/| /' conftest.$ac_ext >&5
10614
10615 emacs_xkb=no
10616 fi
10617
10618 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10619 conftest$ac_exeext conftest.$ac_ext
10620 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10621 echo "${ECHO_T}$emacs_xkb" >&6; }
10622 if test $emacs_xkb = yes; then
10623
10624 cat >>confdefs.h <<\_ACEOF
10625 #define HAVE_XKBGETKEYBOARD 1
10626 _ACEOF
10627
10628 fi
10629
10630
10631
10632
10633
10634 for ac_func in XrmSetDatabase XScreenResourceString \
10635 XScreenNumberOfScreen XSetWMProtocols
10636 do
10637 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10638 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10639 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10640 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10641 echo $ECHO_N "(cached) $ECHO_C" >&6
10642 else
10643 cat >conftest.$ac_ext <<_ACEOF
10644 /* confdefs.h. */
10645 _ACEOF
10646 cat confdefs.h >>conftest.$ac_ext
10647 cat >>conftest.$ac_ext <<_ACEOF
10648 /* end confdefs.h. */
10649 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10650 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10651 #define $ac_func innocuous_$ac_func
10652
10653 /* System header to define __stub macros and hopefully few prototypes,
10654 which can conflict with char $ac_func (); below.
10655 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10656 <limits.h> exists even on freestanding compilers. */
10657
10658 #ifdef __STDC__
10659 # include <limits.h>
10660 #else
10661 # include <assert.h>
10662 #endif
10663
10664 #undef $ac_func
10665
10666 /* Override any GCC internal prototype to avoid an error.
10667 Use char because int might match the return type of a GCC
10668 builtin and then its argument prototype would still apply. */
10669 #ifdef __cplusplus
10670 extern "C"
10671 #endif
10672 char $ac_func ();
10673 /* The GNU C library defines this for functions which it implements
10674 to always fail with ENOSYS. Some functions are actually named
10675 something starting with __ and the normal name is an alias. */
10676 #if defined __stub_$ac_func || defined __stub___$ac_func
10677 choke me
10678 #endif
10679
10680 int
10681 main ()
10682 {
10683 return $ac_func ();
10684 ;
10685 return 0;
10686 }
10687 _ACEOF
10688 rm -f conftest.$ac_objext conftest$ac_exeext
10689 if { (ac_try="$ac_link"
10690 case "(($ac_try" in
10691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10692 *) ac_try_echo=$ac_try;;
10693 esac
10694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10695 (eval "$ac_link") 2>conftest.er1
10696 ac_status=$?
10697 grep -v '^ *+' conftest.er1 >conftest.err
10698 rm -f conftest.er1
10699 cat conftest.err >&5
10700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10701 (exit $ac_status); } && {
10702 test -z "$ac_c_werror_flag" ||
10703 test ! -s conftest.err
10704 } && test -s conftest$ac_exeext &&
10705 $as_test_x conftest$ac_exeext; then
10706 eval "$as_ac_var=yes"
10707 else
10708 echo "$as_me: failed program was:" >&5
10709 sed 's/^/| /' conftest.$ac_ext >&5
10710
10711 eval "$as_ac_var=no"
10712 fi
10713
10714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10715 conftest$ac_exeext conftest.$ac_ext
10716 fi
10717 ac_res=`eval echo '${'$as_ac_var'}'`
10718 { echo "$as_me:$LINENO: result: $ac_res" >&5
10719 echo "${ECHO_T}$ac_res" >&6; }
10720 if test `eval echo '${'$as_ac_var'}'` = yes; then
10721 cat >>confdefs.h <<_ACEOF
10722 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10723 _ACEOF
10724
10725 fi
10726 done
10727
10728 fi
10729
10730 if test "${window_system}" = "x11"; then
10731 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10732 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10733 if test "${emacs_cv_x11_version_6+set}" = set; then
10734 echo $ECHO_N "(cached) $ECHO_C" >&6
10735 else
10736 cat >conftest.$ac_ext <<_ACEOF
10737 /* confdefs.h. */
10738 _ACEOF
10739 cat confdefs.h >>conftest.$ac_ext
10740 cat >>conftest.$ac_ext <<_ACEOF
10741 /* end confdefs.h. */
10742 #include <X11/Xlib.h>
10743 int
10744 main ()
10745 {
10746 #if XlibSpecificationRelease < 6
10747 fail;
10748 #endif
10749
10750 ;
10751 return 0;
10752 }
10753 _ACEOF
10754 rm -f conftest.$ac_objext conftest$ac_exeext
10755 if { (ac_try="$ac_link"
10756 case "(($ac_try" in
10757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10758 *) ac_try_echo=$ac_try;;
10759 esac
10760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10761 (eval "$ac_link") 2>conftest.er1
10762 ac_status=$?
10763 grep -v '^ *+' conftest.er1 >conftest.err
10764 rm -f conftest.er1
10765 cat conftest.err >&5
10766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10767 (exit $ac_status); } && {
10768 test -z "$ac_c_werror_flag" ||
10769 test ! -s conftest.err
10770 } && test -s conftest$ac_exeext &&
10771 $as_test_x conftest$ac_exeext; then
10772 emacs_cv_x11_version_6=yes
10773 else
10774 echo "$as_me: failed program was:" >&5
10775 sed 's/^/| /' conftest.$ac_ext >&5
10776
10777 emacs_cv_x11_version_6=no
10778 fi
10779
10780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10781 conftest$ac_exeext conftest.$ac_ext
10782 fi
10783
10784 if test $emacs_cv_x11_version_6 = yes; then
10785 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10786 echo "${ECHO_T}6 or newer" >&6; }
10787
10788 cat >>confdefs.h <<\_ACEOF
10789 #define HAVE_X11R6 1
10790 _ACEOF
10791
10792 else
10793 { echo "$as_me:$LINENO: result: before 6" >&5
10794 echo "${ECHO_T}before 6" >&6; }
10795 fi
10796 fi
10797
10798
10799 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10800 HAVE_RSVG=no
10801 if test "${HAVE_X11}" = "yes"; then
10802 if test "${with_rsvg}" != "no"; then
10803 RSVG_REQUIRED=2.0.0
10804 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10805
10806
10807 succeeded=no
10808
10809 # Extract the first word of "pkg-config", so it can be a program name with args.
10810 set dummy pkg-config; ac_word=$2
10811 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10812 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10813 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10814 echo $ECHO_N "(cached) $ECHO_C" >&6
10815 else
10816 case $PKG_CONFIG in
10817 [\\/]* | ?:[\\/]*)
10818 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10819 ;;
10820 *)
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 for as_dir in $PATH
10823 do
10824 IFS=$as_save_IFS
10825 test -z "$as_dir" && as_dir=.
10826 for ac_exec_ext in '' $ac_executable_extensions; do
10827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10828 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10829 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10830 break 2
10831 fi
10832 done
10833 done
10834 IFS=$as_save_IFS
10835
10836 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10837 ;;
10838 esac
10839 fi
10840 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10841 if test -n "$PKG_CONFIG"; then
10842 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10843 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10844 else
10845 { echo "$as_me:$LINENO: result: no" >&5
10846 echo "${ECHO_T}no" >&6; }
10847 fi
10848
10849
10850
10851 if test "$PKG_CONFIG" = "no" ; then
10852 :
10853 else
10854 PKG_CONFIG_MIN_VERSION=0.9.0
10855 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10856 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10857 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10858
10859 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10860 { echo "$as_me:$LINENO: result: yes" >&5
10861 echo "${ECHO_T}yes" >&6; }
10862 succeeded=yes
10863
10864 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10865 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10866 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10867 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10868 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10869
10870 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10871 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10872 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10873 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10874 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10875 else
10876 { echo "$as_me:$LINENO: result: no" >&5
10877 echo "${ECHO_T}no" >&6; }
10878 RSVG_CFLAGS=""
10879 RSVG_LIBS=""
10880 ## If we have a custom action on failure, don't print errors, but
10881 ## do set a variable so people can do so.
10882 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10883
10884 fi
10885
10886
10887
10888 else
10889 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10890 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10891 fi
10892 fi
10893
10894 if test $succeeded = yes; then
10895 :
10896 else
10897 :
10898 fi
10899
10900
10901
10902
10903 if test ".${RSVG_CFLAGS}" != "."; then
10904 HAVE_RSVG=yes
10905
10906 cat >>confdefs.h <<\_ACEOF
10907 #define HAVE_RSVG 1
10908 _ACEOF
10909
10910 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10911 LIBS="$RSVG_LIBS $LIBS"
10912 fi
10913 fi
10914 fi
10915
10916
10917 HAVE_GTK=no
10918 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "maybe"; then
10919 GLIB_REQUIRED=2.6
10920 GTK_REQUIRED=2.6
10921 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10922
10923
10924 succeeded=no
10925
10926 # Extract the first word of "pkg-config", so it can be a program name with args.
10927 set dummy pkg-config; ac_word=$2
10928 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10929 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10930 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10931 echo $ECHO_N "(cached) $ECHO_C" >&6
10932 else
10933 case $PKG_CONFIG in
10934 [\\/]* | ?:[\\/]*)
10935 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10936 ;;
10937 *)
10938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10939 for as_dir in $PATH
10940 do
10941 IFS=$as_save_IFS
10942 test -z "$as_dir" && as_dir=.
10943 for ac_exec_ext in '' $ac_executable_extensions; do
10944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10945 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10946 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10947 break 2
10948 fi
10949 done
10950 done
10951 IFS=$as_save_IFS
10952
10953 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10954 ;;
10955 esac
10956 fi
10957 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10958 if test -n "$PKG_CONFIG"; then
10959 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10960 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10961 else
10962 { echo "$as_me:$LINENO: result: no" >&5
10963 echo "${ECHO_T}no" >&6; }
10964 fi
10965
10966
10967
10968 if test "$PKG_CONFIG" = "no" ; then
10969 pkg_check_gtk=no
10970 else
10971 PKG_CONFIG_MIN_VERSION=0.9.0
10972 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10973 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10974 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10975
10976 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10977 { echo "$as_me:$LINENO: result: yes" >&5
10978 echo "${ECHO_T}yes" >&6; }
10979 succeeded=yes
10980
10981 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10982 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10983 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10984 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10985 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10986
10987 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10988 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10989 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10990 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10991 echo "${ECHO_T}$GTK_LIBS" >&6; }
10992 else
10993 { echo "$as_me:$LINENO: result: no" >&5
10994 echo "${ECHO_T}no" >&6; }
10995 GTK_CFLAGS=""
10996 GTK_LIBS=""
10997 ## If we have a custom action on failure, don't print errors, but
10998 ## do set a variable so people can do so.
10999 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11000
11001 fi
11002
11003
11004
11005 else
11006 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11007 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11008 fi
11009 fi
11010
11011 if test $succeeded = yes; then
11012 pkg_check_gtk=yes
11013 else
11014 pkg_check_gtk=no
11015 fi
11016
11017 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11018 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11019 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11020 { (exit 1); exit 1; }; }
11021 fi
11022 fi
11023
11024
11025 if test x"$pkg_check_gtk" = xyes; then
11026
11027
11028
11029 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11030 CFLAGS="$CFLAGS $GTK_CFLAGS"
11031 LIBS="$GTK_LIBS $LIBS"
11032 GTK_COMPILES=no
11033
11034 for ac_func in gtk_main
11035 do
11036 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11037 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11038 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11039 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11049 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11050 #define $ac_func innocuous_$ac_func
11051
11052 /* System header to define __stub macros and hopefully few prototypes,
11053 which can conflict with char $ac_func (); below.
11054 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11055 <limits.h> exists even on freestanding compilers. */
11056
11057 #ifdef __STDC__
11058 # include <limits.h>
11059 #else
11060 # include <assert.h>
11061 #endif
11062
11063 #undef $ac_func
11064
11065 /* Override any GCC internal prototype to avoid an error.
11066 Use char because int might match the return type of a GCC
11067 builtin and then its argument prototype would still apply. */
11068 #ifdef __cplusplus
11069 extern "C"
11070 #endif
11071 char $ac_func ();
11072 /* The GNU C library defines this for functions which it implements
11073 to always fail with ENOSYS. Some functions are actually named
11074 something starting with __ and the normal name is an alias. */
11075 #if defined __stub_$ac_func || defined __stub___$ac_func
11076 choke me
11077 #endif
11078
11079 int
11080 main ()
11081 {
11082 return $ac_func ();
11083 ;
11084 return 0;
11085 }
11086 _ACEOF
11087 rm -f conftest.$ac_objext conftest$ac_exeext
11088 if { (ac_try="$ac_link"
11089 case "(($ac_try" in
11090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11091 *) ac_try_echo=$ac_try;;
11092 esac
11093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11094 (eval "$ac_link") 2>conftest.er1
11095 ac_status=$?
11096 grep -v '^ *+' conftest.er1 >conftest.err
11097 rm -f conftest.er1
11098 cat conftest.err >&5
11099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11100 (exit $ac_status); } && {
11101 test -z "$ac_c_werror_flag" ||
11102 test ! -s conftest.err
11103 } && test -s conftest$ac_exeext &&
11104 $as_test_x conftest$ac_exeext; then
11105 eval "$as_ac_var=yes"
11106 else
11107 echo "$as_me: failed program was:" >&5
11108 sed 's/^/| /' conftest.$ac_ext >&5
11109
11110 eval "$as_ac_var=no"
11111 fi
11112
11113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11114 conftest$ac_exeext conftest.$ac_ext
11115 fi
11116 ac_res=`eval echo '${'$as_ac_var'}'`
11117 { echo "$as_me:$LINENO: result: $ac_res" >&5
11118 echo "${ECHO_T}$ac_res" >&6; }
11119 if test `eval echo '${'$as_ac_var'}'` = yes; then
11120 cat >>confdefs.h <<_ACEOF
11121 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11122 _ACEOF
11123 GTK_COMPILES=yes
11124 fi
11125 done
11126
11127 if test "${GTK_COMPILES}" != "yes"; then
11128 if test "$USE_X_TOOLKIT" != "maybe"; then
11129 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11130 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11131 { (exit 1); exit 1; }; };
11132 fi
11133 else
11134 HAVE_GTK=yes
11135
11136 cat >>confdefs.h <<\_ACEOF
11137 #define USE_GTK 1
11138 _ACEOF
11139
11140 USE_X_TOOLKIT=none
11141 if $PKG_CONFIG --atleast-version=2.10 gtk+-2.0; then
11142 :
11143 else
11144 { echo "$as_me:$LINENO: WARNING: Your version of Gtk+ will have problems with
11145 closing open displays. This is no problem if you just use
11146 one display, but if you use more than one and close one of them
11147 Emacs may crash." >&5
11148 echo "$as_me: WARNING: Your version of Gtk+ will have problems with
11149 closing open displays. This is no problem if you just use
11150 one display, but if you use more than one and close one of them
11151 Emacs may crash." >&2;}
11152 sleep 3
11153 fi
11154 fi
11155
11156 fi
11157
11158
11159 if test "${HAVE_GTK}" = "yes"; then
11160
11161 if test "$with_toolkit_scroll_bars" != no; then
11162 with_toolkit_scroll_bars=yes
11163 fi
11164
11165 HAVE_GTK_MULTIDISPLAY=no
11166
11167 for ac_func in gdk_display_open
11168 do
11169 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11170 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11171 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11172 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11173 echo $ECHO_N "(cached) $ECHO_C" >&6
11174 else
11175 cat >conftest.$ac_ext <<_ACEOF
11176 /* confdefs.h. */
11177 _ACEOF
11178 cat confdefs.h >>conftest.$ac_ext
11179 cat >>conftest.$ac_ext <<_ACEOF
11180 /* end confdefs.h. */
11181 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11182 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11183 #define $ac_func innocuous_$ac_func
11184
11185 /* System header to define __stub macros and hopefully few prototypes,
11186 which can conflict with char $ac_func (); below.
11187 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11188 <limits.h> exists even on freestanding compilers. */
11189
11190 #ifdef __STDC__
11191 # include <limits.h>
11192 #else
11193 # include <assert.h>
11194 #endif
11195
11196 #undef $ac_func
11197
11198 /* Override any GCC internal prototype to avoid an error.
11199 Use char because int might match the return type of a GCC
11200 builtin and then its argument prototype would still apply. */
11201 #ifdef __cplusplus
11202 extern "C"
11203 #endif
11204 char $ac_func ();
11205 /* The GNU C library defines this for functions which it implements
11206 to always fail with ENOSYS. Some functions are actually named
11207 something starting with __ and the normal name is an alias. */
11208 #if defined __stub_$ac_func || defined __stub___$ac_func
11209 choke me
11210 #endif
11211
11212 int
11213 main ()
11214 {
11215 return $ac_func ();
11216 ;
11217 return 0;
11218 }
11219 _ACEOF
11220 rm -f conftest.$ac_objext conftest$ac_exeext
11221 if { (ac_try="$ac_link"
11222 case "(($ac_try" in
11223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224 *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227 (eval "$ac_link") 2>conftest.er1
11228 ac_status=$?
11229 grep -v '^ *+' conftest.er1 >conftest.err
11230 rm -f conftest.er1
11231 cat conftest.err >&5
11232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11233 (exit $ac_status); } && {
11234 test -z "$ac_c_werror_flag" ||
11235 test ! -s conftest.err
11236 } && test -s conftest$ac_exeext &&
11237 $as_test_x conftest$ac_exeext; then
11238 eval "$as_ac_var=yes"
11239 else
11240 echo "$as_me: failed program was:" >&5
11241 sed 's/^/| /' conftest.$ac_ext >&5
11242
11243 eval "$as_ac_var=no"
11244 fi
11245
11246 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11247 conftest$ac_exeext conftest.$ac_ext
11248 fi
11249 ac_res=`eval echo '${'$as_ac_var'}'`
11250 { echo "$as_me:$LINENO: result: $ac_res" >&5
11251 echo "${ECHO_T}$ac_res" >&6; }
11252 if test `eval echo '${'$as_ac_var'}'` = yes; then
11253 cat >>confdefs.h <<_ACEOF
11254 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11255 _ACEOF
11256 HAVE_GTK_MULTIDISPLAY=yes
11257 fi
11258 done
11259
11260 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11261
11262 cat >>confdefs.h <<\_ACEOF
11263 #define HAVE_GTK_MULTIDISPLAY 1
11264 _ACEOF
11265
11266 fi
11267
11268 HAVE_GTK_FILE_SELECTION=no
11269
11270 for ac_func in gtk_file_selection_new
11271 do
11272 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11273 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11274 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11275 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11276 echo $ECHO_N "(cached) $ECHO_C" >&6
11277 else
11278 cat >conftest.$ac_ext <<_ACEOF
11279 /* confdefs.h. */
11280 _ACEOF
11281 cat confdefs.h >>conftest.$ac_ext
11282 cat >>conftest.$ac_ext <<_ACEOF
11283 /* end confdefs.h. */
11284 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11285 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11286 #define $ac_func innocuous_$ac_func
11287
11288 /* System header to define __stub macros and hopefully few prototypes,
11289 which can conflict with char $ac_func (); below.
11290 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11291 <limits.h> exists even on freestanding compilers. */
11292
11293 #ifdef __STDC__
11294 # include <limits.h>
11295 #else
11296 # include <assert.h>
11297 #endif
11298
11299 #undef $ac_func
11300
11301 /* Override any GCC internal prototype to avoid an error.
11302 Use char because int might match the return type of a GCC
11303 builtin and then its argument prototype would still apply. */
11304 #ifdef __cplusplus
11305 extern "C"
11306 #endif
11307 char $ac_func ();
11308 /* The GNU C library defines this for functions which it implements
11309 to always fail with ENOSYS. Some functions are actually named
11310 something starting with __ and the normal name is an alias. */
11311 #if defined __stub_$ac_func || defined __stub___$ac_func
11312 choke me
11313 #endif
11314
11315 int
11316 main ()
11317 {
11318 return $ac_func ();
11319 ;
11320 return 0;
11321 }
11322 _ACEOF
11323 rm -f conftest.$ac_objext conftest$ac_exeext
11324 if { (ac_try="$ac_link"
11325 case "(($ac_try" in
11326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11327 *) ac_try_echo=$ac_try;;
11328 esac
11329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11330 (eval "$ac_link") 2>conftest.er1
11331 ac_status=$?
11332 grep -v '^ *+' conftest.er1 >conftest.err
11333 rm -f conftest.er1
11334 cat conftest.err >&5
11335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11336 (exit $ac_status); } && {
11337 test -z "$ac_c_werror_flag" ||
11338 test ! -s conftest.err
11339 } && test -s conftest$ac_exeext &&
11340 $as_test_x conftest$ac_exeext; then
11341 eval "$as_ac_var=yes"
11342 else
11343 echo "$as_me: failed program was:" >&5
11344 sed 's/^/| /' conftest.$ac_ext >&5
11345
11346 eval "$as_ac_var=no"
11347 fi
11348
11349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11350 conftest$ac_exeext conftest.$ac_ext
11351 fi
11352 ac_res=`eval echo '${'$as_ac_var'}'`
11353 { echo "$as_me:$LINENO: result: $ac_res" >&5
11354 echo "${ECHO_T}$ac_res" >&6; }
11355 if test `eval echo '${'$as_ac_var'}'` = yes; then
11356 cat >>confdefs.h <<_ACEOF
11357 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11358 _ACEOF
11359 HAVE_GTK_FILE_SELECTION=yes
11360 fi
11361 done
11362
11363
11364 HAVE_GTK_FILE_CHOOSER=no
11365
11366 for ac_func in gtk_file_chooser_dialog_new
11367 do
11368 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11369 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11370 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11371 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11372 echo $ECHO_N "(cached) $ECHO_C" >&6
11373 else
11374 cat >conftest.$ac_ext <<_ACEOF
11375 /* confdefs.h. */
11376 _ACEOF
11377 cat confdefs.h >>conftest.$ac_ext
11378 cat >>conftest.$ac_ext <<_ACEOF
11379 /* end confdefs.h. */
11380 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11381 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11382 #define $ac_func innocuous_$ac_func
11383
11384 /* System header to define __stub macros and hopefully few prototypes,
11385 which can conflict with char $ac_func (); below.
11386 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11387 <limits.h> exists even on freestanding compilers. */
11388
11389 #ifdef __STDC__
11390 # include <limits.h>
11391 #else
11392 # include <assert.h>
11393 #endif
11394
11395 #undef $ac_func
11396
11397 /* Override any GCC internal prototype to avoid an error.
11398 Use char because int might match the return type of a GCC
11399 builtin and then its argument prototype would still apply. */
11400 #ifdef __cplusplus
11401 extern "C"
11402 #endif
11403 char $ac_func ();
11404 /* The GNU C library defines this for functions which it implements
11405 to always fail with ENOSYS. Some functions are actually named
11406 something starting with __ and the normal name is an alias. */
11407 #if defined __stub_$ac_func || defined __stub___$ac_func
11408 choke me
11409 #endif
11410
11411 int
11412 main ()
11413 {
11414 return $ac_func ();
11415 ;
11416 return 0;
11417 }
11418 _ACEOF
11419 rm -f conftest.$ac_objext conftest$ac_exeext
11420 if { (ac_try="$ac_link"
11421 case "(($ac_try" in
11422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11423 *) ac_try_echo=$ac_try;;
11424 esac
11425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11426 (eval "$ac_link") 2>conftest.er1
11427 ac_status=$?
11428 grep -v '^ *+' conftest.er1 >conftest.err
11429 rm -f conftest.er1
11430 cat conftest.err >&5
11431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11432 (exit $ac_status); } && {
11433 test -z "$ac_c_werror_flag" ||
11434 test ! -s conftest.err
11435 } && test -s conftest$ac_exeext &&
11436 $as_test_x conftest$ac_exeext; then
11437 eval "$as_ac_var=yes"
11438 else
11439 echo "$as_me: failed program was:" >&5
11440 sed 's/^/| /' conftest.$ac_ext >&5
11441
11442 eval "$as_ac_var=no"
11443 fi
11444
11445 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11446 conftest$ac_exeext conftest.$ac_ext
11447 fi
11448 ac_res=`eval echo '${'$as_ac_var'}'`
11449 { echo "$as_me:$LINENO: result: $ac_res" >&5
11450 echo "${ECHO_T}$ac_res" >&6; }
11451 if test `eval echo '${'$as_ac_var'}'` = yes; then
11452 cat >>confdefs.h <<_ACEOF
11453 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11454 _ACEOF
11455 HAVE_GTK_FILE_CHOOSER=yes
11456 fi
11457 done
11458
11459
11460 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11461 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11462
11463 cat >>confdefs.h <<\_ACEOF
11464 #define HAVE_GTK_FILE_BOTH 1
11465 _ACEOF
11466
11467 fi
11468
11469 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11470 HAVE_GTK_AND_PTHREAD=no
11471
11472 for ac_header in pthread.h
11473 do
11474 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11479 echo $ECHO_N "(cached) $ECHO_C" >&6
11480 fi
11481 ac_res=`eval echo '${'$as_ac_Header'}'`
11482 { echo "$as_me:$LINENO: result: $ac_res" >&5
11483 echo "${ECHO_T}$ac_res" >&6; }
11484 else
11485 # Is the header compilable?
11486 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11487 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 $ac_includes_default
11495 #include <$ac_header>
11496 _ACEOF
11497 rm -f conftest.$ac_objext
11498 if { (ac_try="$ac_compile"
11499 case "(($ac_try" in
11500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11501 *) ac_try_echo=$ac_try;;
11502 esac
11503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11504 (eval "$ac_compile") 2>conftest.er1
11505 ac_status=$?
11506 grep -v '^ *+' conftest.er1 >conftest.err
11507 rm -f conftest.er1
11508 cat conftest.err >&5
11509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11510 (exit $ac_status); } && {
11511 test -z "$ac_c_werror_flag" ||
11512 test ! -s conftest.err
11513 } && test -s conftest.$ac_objext; then
11514 ac_header_compiler=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_header_compiler=no
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11523 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11524 echo "${ECHO_T}$ac_header_compiler" >&6; }
11525
11526 # Is the header present?
11527 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11528 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11529 cat >conftest.$ac_ext <<_ACEOF
11530 /* confdefs.h. */
11531 _ACEOF
11532 cat confdefs.h >>conftest.$ac_ext
11533 cat >>conftest.$ac_ext <<_ACEOF
11534 /* end confdefs.h. */
11535 #include <$ac_header>
11536 _ACEOF
11537 if { (ac_try="$ac_cpp conftest.$ac_ext"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } >/dev/null && {
11550 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 }; then
11553 ac_header_preproc=yes
11554 else
11555 echo "$as_me: failed program was:" >&5
11556 sed 's/^/| /' conftest.$ac_ext >&5
11557
11558 ac_header_preproc=no
11559 fi
11560
11561 rm -f conftest.err conftest.$ac_ext
11562 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11563 echo "${ECHO_T}$ac_header_preproc" >&6; }
11564
11565 # So? What about this header?
11566 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11567 yes:no: )
11568 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11569 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11570 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11571 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11572 ac_header_preproc=yes
11573 ;;
11574 no:yes:* )
11575 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11576 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11577 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11578 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11579 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11580 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11581 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11582 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11583 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11584 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11585 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11586 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11587
11588 ;;
11589 esac
11590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11593 echo $ECHO_N "(cached) $ECHO_C" >&6
11594 else
11595 eval "$as_ac_Header=\$ac_header_preproc"
11596 fi
11597 ac_res=`eval echo '${'$as_ac_Header'}'`
11598 { echo "$as_me:$LINENO: result: $ac_res" >&5
11599 echo "${ECHO_T}$ac_res" >&6; }
11600
11601 fi
11602 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11603 cat >>confdefs.h <<_ACEOF
11604 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11605 _ACEOF
11606
11607 fi
11608
11609 done
11610
11611 if test "$ac_cv_header_pthread_h"; then
11612 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11613 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11614 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11615 echo $ECHO_N "(cached) $ECHO_C" >&6
11616 else
11617 ac_check_lib_save_LIBS=$LIBS
11618 LIBS="-lpthread $LIBS"
11619 cat >conftest.$ac_ext <<_ACEOF
11620 /* confdefs.h. */
11621 _ACEOF
11622 cat confdefs.h >>conftest.$ac_ext
11623 cat >>conftest.$ac_ext <<_ACEOF
11624 /* end confdefs.h. */
11625
11626 /* Override any GCC internal prototype to avoid an error.
11627 Use char because int might match the return type of a GCC
11628 builtin and then its argument prototype would still apply. */
11629 #ifdef __cplusplus
11630 extern "C"
11631 #endif
11632 char pthread_self ();
11633 int
11634 main ()
11635 {
11636 return pthread_self ();
11637 ;
11638 return 0;
11639 }
11640 _ACEOF
11641 rm -f conftest.$ac_objext conftest$ac_exeext
11642 if { (ac_try="$ac_link"
11643 case "(($ac_try" in
11644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11645 *) ac_try_echo=$ac_try;;
11646 esac
11647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11648 (eval "$ac_link") 2>conftest.er1
11649 ac_status=$?
11650 grep -v '^ *+' conftest.er1 >conftest.err
11651 rm -f conftest.er1
11652 cat conftest.err >&5
11653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11654 (exit $ac_status); } && {
11655 test -z "$ac_c_werror_flag" ||
11656 test ! -s conftest.err
11657 } && test -s conftest$ac_exeext &&
11658 $as_test_x conftest$ac_exeext; then
11659 ac_cv_lib_pthread_pthread_self=yes
11660 else
11661 echo "$as_me: failed program was:" >&5
11662 sed 's/^/| /' conftest.$ac_ext >&5
11663
11664 ac_cv_lib_pthread_pthread_self=no
11665 fi
11666
11667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11668 conftest$ac_exeext conftest.$ac_ext
11669 LIBS=$ac_check_lib_save_LIBS
11670 fi
11671 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11672 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11673 if test $ac_cv_lib_pthread_pthread_self = yes; then
11674 HAVE_GTK_AND_PTHREAD=yes
11675 fi
11676
11677 fi
11678 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11679 case "${canonical}" in
11680 *-hpux*) ;;
11681 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11682 esac
11683
11684 cat >>confdefs.h <<\_ACEOF
11685 #define HAVE_GTK_AND_PTHREAD 1
11686 _ACEOF
11687
11688 fi
11689 fi
11690 fi
11691
11692 HAVE_DBUS=no
11693 if test "${with_dbus}" = "yes"; then
11694
11695 succeeded=no
11696
11697 # Extract the first word of "pkg-config", so it can be a program name with args.
11698 set dummy pkg-config; ac_word=$2
11699 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11700 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11701 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11702 echo $ECHO_N "(cached) $ECHO_C" >&6
11703 else
11704 case $PKG_CONFIG in
11705 [\\/]* | ?:[\\/]*)
11706 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11707 ;;
11708 *)
11709 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11710 for as_dir in $PATH
11711 do
11712 IFS=$as_save_IFS
11713 test -z "$as_dir" && as_dir=.
11714 for ac_exec_ext in '' $ac_executable_extensions; do
11715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11716 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11717 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11718 break 2
11719 fi
11720 done
11721 done
11722 IFS=$as_save_IFS
11723
11724 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11725 ;;
11726 esac
11727 fi
11728 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11729 if test -n "$PKG_CONFIG"; then
11730 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11731 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11732 else
11733 { echo "$as_me:$LINENO: result: no" >&5
11734 echo "${ECHO_T}no" >&6; }
11735 fi
11736
11737
11738
11739 if test "$PKG_CONFIG" = "no" ; then
11740 HAVE_DBUS=no
11741 else
11742 PKG_CONFIG_MIN_VERSION=0.9.0
11743 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11744 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11745 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11746
11747 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11748 { echo "$as_me:$LINENO: result: yes" >&5
11749 echo "${ECHO_T}yes" >&6; }
11750 succeeded=yes
11751
11752 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11753 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11754 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11755 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11756 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11757
11758 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11759 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11760 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11761 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11762 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11763 else
11764 { echo "$as_me:$LINENO: result: no" >&5
11765 echo "${ECHO_T}no" >&6; }
11766 DBUS_CFLAGS=""
11767 DBUS_LIBS=""
11768 ## If we have a custom action on failure, don't print errors, but
11769 ## do set a variable so people can do so.
11770 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11771
11772 fi
11773
11774
11775
11776 else
11777 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11778 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11779 fi
11780 fi
11781
11782 if test $succeeded = yes; then
11783 HAVE_DBUS=yes
11784 else
11785 HAVE_DBUS=no
11786 fi
11787
11788 if test "$HAVE_DBUS" = yes; then
11789
11790 cat >>confdefs.h <<\_ACEOF
11791 #define HAVE_DBUS 1
11792 _ACEOF
11793
11794 fi
11795 fi
11796
11797 HAVE_XAW3D=no
11798 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11799 if test "$with_xaw3d" != no; then
11800 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11801 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11802 if test "${emacs_cv_xaw3d+set}" = set; then
11803 echo $ECHO_N "(cached) $ECHO_C" >&6
11804 else
11805 cat >conftest.$ac_ext <<_ACEOF
11806 /* confdefs.h. */
11807 _ACEOF
11808 cat confdefs.h >>conftest.$ac_ext
11809 cat >>conftest.$ac_ext <<_ACEOF
11810 /* end confdefs.h. */
11811
11812 #include <X11/Intrinsic.h>
11813 #include <X11/Xaw3d/Simple.h>
11814 int
11815 main ()
11816 {
11817
11818 ;
11819 return 0;
11820 }
11821 _ACEOF
11822 rm -f conftest.$ac_objext conftest$ac_exeext
11823 if { (ac_try="$ac_link"
11824 case "(($ac_try" in
11825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11826 *) ac_try_echo=$ac_try;;
11827 esac
11828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11829 (eval "$ac_link") 2>conftest.er1
11830 ac_status=$?
11831 grep -v '^ *+' conftest.er1 >conftest.err
11832 rm -f conftest.er1
11833 cat conftest.err >&5
11834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11835 (exit $ac_status); } && {
11836 test -z "$ac_c_werror_flag" ||
11837 test ! -s conftest.err
11838 } && test -s conftest$ac_exeext &&
11839 $as_test_x conftest$ac_exeext; then
11840 emacs_cv_xaw3d=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 emacs_cv_xaw3d=no
11846 fi
11847
11848 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11849 conftest$ac_exeext conftest.$ac_ext
11850 fi
11851
11852 else
11853 emacs_cv_xaw3d=no
11854 fi
11855 if test $emacs_cv_xaw3d = yes; then
11856 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11857 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11858 USE_X_TOOLKIT=LUCID
11859 HAVE_XAW3D=yes
11860
11861 cat >>confdefs.h <<\_ACEOF
11862 #define HAVE_XAW3D 1
11863 _ACEOF
11864
11865 else
11866 { echo "$as_me:$LINENO: result: no" >&5
11867 echo "${ECHO_T}no" >&6; }
11868 { echo "$as_me:$LINENO: checking for libXaw" >&5
11869 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
11870 if test "${emacs_cv_xaw+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 cat >conftest.$ac_ext <<_ACEOF
11874 /* confdefs.h. */
11875 _ACEOF
11876 cat confdefs.h >>conftest.$ac_ext
11877 cat >>conftest.$ac_ext <<_ACEOF
11878 /* end confdefs.h. */
11879
11880 #include <X11/Intrinsic.h>
11881 #include <X11/Xaw/Simple.h>
11882 int
11883 main ()
11884 {
11885
11886 ;
11887 return 0;
11888 }
11889 _ACEOF
11890 rm -f conftest.$ac_objext conftest$ac_exeext
11891 if { (ac_try="$ac_link"
11892 case "(($ac_try" in
11893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11894 *) ac_try_echo=$ac_try;;
11895 esac
11896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11897 (eval "$ac_link") 2>conftest.er1
11898 ac_status=$?
11899 grep -v '^ *+' conftest.er1 >conftest.err
11900 rm -f conftest.er1
11901 cat conftest.err >&5
11902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11903 (exit $ac_status); } && {
11904 test -z "$ac_c_werror_flag" ||
11905 test ! -s conftest.err
11906 } && test -s conftest$ac_exeext &&
11907 $as_test_x conftest$ac_exeext; then
11908 emacs_cv_xaw=yes
11909 else
11910 echo "$as_me: failed program was:" >&5
11911 sed 's/^/| /' conftest.$ac_ext >&5
11912
11913 emacs_cv_xaw=no
11914 fi
11915
11916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11917 conftest$ac_exeext conftest.$ac_ext
11918 fi
11919
11920 if test $emacs_cv_xaw = yes; then
11921 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
11922 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
11923 USE_X_TOOLKIT=LUCID
11924 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
11925 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
11926 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
11927 { (exit 1); exit 1; }; }
11928 else
11929 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
11930 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
11931 USE_X_TOOLKIT=none
11932 fi
11933 fi
11934 fi
11935
11936 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11937
11938 if test "${USE_X_TOOLKIT}" != "none"; then
11939 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11940 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11941 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11942 echo $ECHO_N "(cached) $ECHO_C" >&6
11943 else
11944 cat >conftest.$ac_ext <<_ACEOF
11945 /* confdefs.h. */
11946 _ACEOF
11947 cat confdefs.h >>conftest.$ac_ext
11948 cat >>conftest.$ac_ext <<_ACEOF
11949 /* end confdefs.h. */
11950 #include <X11/Intrinsic.h>
11951 int
11952 main ()
11953 {
11954 #if XtSpecificationRelease < 6
11955 fail;
11956 #endif
11957
11958 ;
11959 return 0;
11960 }
11961 _ACEOF
11962 rm -f conftest.$ac_objext conftest$ac_exeext
11963 if { (ac_try="$ac_link"
11964 case "(($ac_try" in
11965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11966 *) ac_try_echo=$ac_try;;
11967 esac
11968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11969 (eval "$ac_link") 2>conftest.er1
11970 ac_status=$?
11971 grep -v '^ *+' conftest.er1 >conftest.err
11972 rm -f conftest.er1
11973 cat conftest.err >&5
11974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11975 (exit $ac_status); } && {
11976 test -z "$ac_c_werror_flag" ||
11977 test ! -s conftest.err
11978 } && test -s conftest$ac_exeext &&
11979 $as_test_x conftest$ac_exeext; then
11980 emacs_cv_x11_toolkit_version_6=yes
11981 else
11982 echo "$as_me: failed program was:" >&5
11983 sed 's/^/| /' conftest.$ac_ext >&5
11984
11985 emacs_cv_x11_toolkit_version_6=no
11986 fi
11987
11988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11989 conftest$ac_exeext conftest.$ac_ext
11990 fi
11991
11992 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11993 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11994 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11995 echo "${ECHO_T}6 or newer" >&6; }
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_X11XTR6 1
11999 _ACEOF
12000
12001 else
12002 { echo "$as_me:$LINENO: result: before 6" >&5
12003 echo "${ECHO_T}before 6" >&6; }
12004 fi
12005
12006 OLDLIBS="$LIBS"
12007 if test x$HAVE_X11XTR6 = xyes; then
12008 LIBS="-lXt -lSM -lICE $LIBS"
12009 else
12010 LIBS="-lXt $LIBS"
12011 fi
12012
12013 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12014 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12015 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 ac_check_lib_save_LIBS=$LIBS
12019 LIBS="-lXmu $LIBS"
12020 cat >conftest.$ac_ext <<_ACEOF
12021 /* confdefs.h. */
12022 _ACEOF
12023 cat confdefs.h >>conftest.$ac_ext
12024 cat >>conftest.$ac_ext <<_ACEOF
12025 /* end confdefs.h. */
12026
12027 /* Override any GCC internal prototype to avoid an error.
12028 Use char because int might match the return type of a GCC
12029 builtin and then its argument prototype would still apply. */
12030 #ifdef __cplusplus
12031 extern "C"
12032 #endif
12033 char XmuConvertStandardSelection ();
12034 int
12035 main ()
12036 {
12037 return XmuConvertStandardSelection ();
12038 ;
12039 return 0;
12040 }
12041 _ACEOF
12042 rm -f conftest.$ac_objext conftest$ac_exeext
12043 if { (ac_try="$ac_link"
12044 case "(($ac_try" in
12045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12046 *) ac_try_echo=$ac_try;;
12047 esac
12048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12049 (eval "$ac_link") 2>conftest.er1
12050 ac_status=$?
12051 grep -v '^ *+' conftest.er1 >conftest.err
12052 rm -f conftest.er1
12053 cat conftest.err >&5
12054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12055 (exit $ac_status); } && {
12056 test -z "$ac_c_werror_flag" ||
12057 test ! -s conftest.err
12058 } && test -s conftest$ac_exeext &&
12059 $as_test_x conftest$ac_exeext; then
12060 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12069 conftest$ac_exeext conftest.$ac_ext
12070 LIBS=$ac_check_lib_save_LIBS
12071 fi
12072 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12073 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12074 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12075 cat >>confdefs.h <<_ACEOF
12076 #define HAVE_LIBXMU 1
12077 _ACEOF
12078
12079 LIBS="-lXmu $LIBS"
12080
12081 fi
12082
12083 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12084 fi
12085
12086 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12087 if test "${HAVE_X11}" = "yes"; then
12088 if test "${USE_X_TOOLKIT}" != "none"; then
12089
12090 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12091 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12092 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12093 echo $ECHO_N "(cached) $ECHO_C" >&6
12094 else
12095 ac_check_lib_save_LIBS=$LIBS
12096 LIBS="-lXext $LIBS"
12097 cat >conftest.$ac_ext <<_ACEOF
12098 /* confdefs.h. */
12099 _ACEOF
12100 cat confdefs.h >>conftest.$ac_ext
12101 cat >>conftest.$ac_ext <<_ACEOF
12102 /* end confdefs.h. */
12103
12104 /* Override any GCC internal prototype to avoid an error.
12105 Use char because int might match the return type of a GCC
12106 builtin and then its argument prototype would still apply. */
12107 #ifdef __cplusplus
12108 extern "C"
12109 #endif
12110 char XShapeQueryExtension ();
12111 int
12112 main ()
12113 {
12114 return XShapeQueryExtension ();
12115 ;
12116 return 0;
12117 }
12118 _ACEOF
12119 rm -f conftest.$ac_objext conftest$ac_exeext
12120 if { (ac_try="$ac_link"
12121 case "(($ac_try" in
12122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12123 *) ac_try_echo=$ac_try;;
12124 esac
12125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12126 (eval "$ac_link") 2>conftest.er1
12127 ac_status=$?
12128 grep -v '^ *+' conftest.er1 >conftest.err
12129 rm -f conftest.er1
12130 cat conftest.err >&5
12131 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12132 (exit $ac_status); } && {
12133 test -z "$ac_c_werror_flag" ||
12134 test ! -s conftest.err
12135 } && test -s conftest$ac_exeext &&
12136 $as_test_x conftest$ac_exeext; then
12137 ac_cv_lib_Xext_XShapeQueryExtension=yes
12138 else
12139 echo "$as_me: failed program was:" >&5
12140 sed 's/^/| /' conftest.$ac_ext >&5
12141
12142 ac_cv_lib_Xext_XShapeQueryExtension=no
12143 fi
12144
12145 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12146 conftest$ac_exeext conftest.$ac_ext
12147 LIBS=$ac_check_lib_save_LIBS
12148 fi
12149 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12150 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12151 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12152 cat >>confdefs.h <<_ACEOF
12153 #define HAVE_LIBXEXT 1
12154 _ACEOF
12155
12156 LIBS="-lXext $LIBS"
12157
12158 fi
12159
12160 fi
12161 fi
12162
12163 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12164 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12165 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12166 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12167 echo $ECHO_N "(cached) $ECHO_C" >&6
12168 else
12169 cat >conftest.$ac_ext <<_ACEOF
12170 /* confdefs.h. */
12171 _ACEOF
12172 cat confdefs.h >>conftest.$ac_ext
12173 cat >>conftest.$ac_ext <<_ACEOF
12174 /* end confdefs.h. */
12175 #include <Xm/Xm.h>
12176 int
12177 main ()
12178 {
12179 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12180 int x = 5;
12181 #else
12182 Motif version prior to 2.1.
12183 #endif
12184 ;
12185 return 0;
12186 }
12187 _ACEOF
12188 rm -f conftest.$ac_objext
12189 if { (ac_try="$ac_compile"
12190 case "(($ac_try" in
12191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12192 *) ac_try_echo=$ac_try;;
12193 esac
12194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12195 (eval "$ac_compile") 2>conftest.er1
12196 ac_status=$?
12197 grep -v '^ *+' conftest.er1 >conftest.err
12198 rm -f conftest.er1
12199 cat conftest.err >&5
12200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12201 (exit $ac_status); } && {
12202 test -z "$ac_c_werror_flag" ||
12203 test ! -s conftest.err
12204 } && test -s conftest.$ac_objext; then
12205 emacs_cv_motif_version_2_1=yes
12206 else
12207 echo "$as_me: failed program was:" >&5
12208 sed 's/^/| /' conftest.$ac_ext >&5
12209
12210 emacs_cv_motif_version_2_1=no
12211 fi
12212
12213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12214 fi
12215 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12216 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12217 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12218 if test $emacs_cv_motif_version_2_1 = yes; then
12219 HAVE_LIBXP=no
12220
12221 cat >>confdefs.h <<\_ACEOF
12222 #define HAVE_MOTIF_2_1 1
12223 _ACEOF
12224
12225 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12226 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12227 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12228 echo $ECHO_N "(cached) $ECHO_C" >&6
12229 else
12230 ac_check_lib_save_LIBS=$LIBS
12231 LIBS="-lXp $LIBS"
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h. */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h. */
12238
12239 /* Override any GCC internal prototype to avoid an error.
12240 Use char because int might match the return type of a GCC
12241 builtin and then its argument prototype would still apply. */
12242 #ifdef __cplusplus
12243 extern "C"
12244 #endif
12245 char XpCreateContext ();
12246 int
12247 main ()
12248 {
12249 return XpCreateContext ();
12250 ;
12251 return 0;
12252 }
12253 _ACEOF
12254 rm -f conftest.$ac_objext conftest$ac_exeext
12255 if { (ac_try="$ac_link"
12256 case "(($ac_try" in
12257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258 *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261 (eval "$ac_link") 2>conftest.er1
12262 ac_status=$?
12263 grep -v '^ *+' conftest.er1 >conftest.err
12264 rm -f conftest.er1
12265 cat conftest.err >&5
12266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12267 (exit $ac_status); } && {
12268 test -z "$ac_c_werror_flag" ||
12269 test ! -s conftest.err
12270 } && test -s conftest$ac_exeext &&
12271 $as_test_x conftest$ac_exeext; then
12272 ac_cv_lib_Xp_XpCreateContext=yes
12273 else
12274 echo "$as_me: failed program was:" >&5
12275 sed 's/^/| /' conftest.$ac_ext >&5
12276
12277 ac_cv_lib_Xp_XpCreateContext=no
12278 fi
12279
12280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12281 conftest$ac_exeext conftest.$ac_ext
12282 LIBS=$ac_check_lib_save_LIBS
12283 fi
12284 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12285 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12286 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12287 HAVE_LIBXP=yes
12288 fi
12289
12290 if test ${HAVE_LIBXP} = yes; then
12291
12292 cat >>confdefs.h <<\_ACEOF
12293 #define HAVE_LIBXP 1
12294 _ACEOF
12295
12296 fi
12297 else
12298 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12299 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12300 if test "${emacs_cv_lesstif+set}" = set; then
12301 echo $ECHO_N "(cached) $ECHO_C" >&6
12302 else
12303 # We put this in CFLAGS temporarily to precede other -I options
12304 # that might be in CFLAGS temporarily.
12305 # We put this in CPPFLAGS where it precedes the other -I options.
12306 OLD_CPPFLAGS=$CPPFLAGS
12307 OLD_CFLAGS=$CFLAGS
12308 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12309 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12310 cat >conftest.$ac_ext <<_ACEOF
12311 /* confdefs.h. */
12312 _ACEOF
12313 cat confdefs.h >>conftest.$ac_ext
12314 cat >>conftest.$ac_ext <<_ACEOF
12315 /* end confdefs.h. */
12316 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12317 int
12318 main ()
12319 {
12320 int x = 5;
12321 ;
12322 return 0;
12323 }
12324 _ACEOF
12325 rm -f conftest.$ac_objext
12326 if { (ac_try="$ac_compile"
12327 case "(($ac_try" in
12328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12329 *) ac_try_echo=$ac_try;;
12330 esac
12331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12332 (eval "$ac_compile") 2>conftest.er1
12333 ac_status=$?
12334 grep -v '^ *+' conftest.er1 >conftest.err
12335 rm -f conftest.er1
12336 cat conftest.err >&5
12337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12338 (exit $ac_status); } && {
12339 test -z "$ac_c_werror_flag" ||
12340 test ! -s conftest.err
12341 } && test -s conftest.$ac_objext; then
12342 emacs_cv_lesstif=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 emacs_cv_lesstif=no
12348 fi
12349
12350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12351 fi
12352 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12353 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12354 if test $emacs_cv_lesstif = yes; then
12355 # Make sure this -I option remains in CPPFLAGS after it is set
12356 # back to REAL_CPPFLAGS.
12357 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12358 # have those other -I options anyway. Ultimately, having this
12359 # directory ultimately in CPPFLAGS will be enough.
12360 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12361 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12362 else
12363 CFLAGS=$OLD_CFLAGS
12364 CPPFLAGS=$OLD_CPPFLAGS
12365 fi
12366 fi
12367 fi
12368
12369
12370
12371 USE_TOOLKIT_SCROLL_BARS=no
12372 if test "${with_toolkit_scroll_bars}" != "no"; then
12373 if test "${USE_X_TOOLKIT}" != "none"; then
12374 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12375 cat >>confdefs.h <<\_ACEOF
12376 #define USE_TOOLKIT_SCROLL_BARS 1
12377 _ACEOF
12378
12379 HAVE_XAW3D=no
12380 USE_TOOLKIT_SCROLL_BARS=yes
12381 elif test "${HAVE_XAW3D}" = "yes"; then
12382 cat >>confdefs.h <<\_ACEOF
12383 #define USE_TOOLKIT_SCROLL_BARS 1
12384 _ACEOF
12385
12386 USE_TOOLKIT_SCROLL_BARS=yes
12387 fi
12388 elif test "${HAVE_GTK}" = "yes"; then
12389 cat >>confdefs.h <<\_ACEOF
12390 #define USE_TOOLKIT_SCROLL_BARS 1
12391 _ACEOF
12392
12393 USE_TOOLKIT_SCROLL_BARS=yes
12394 elif test "${HAVE_NS}" = "yes"; then
12395 cat >>confdefs.h <<\_ACEOF
12396 #define USE_TOOLKIT_SCROLL_BARS 1
12397 _ACEOF
12398
12399 USE_TOOLKIT_SCROLL_BARS=yes
12400 fi
12401 fi
12402
12403 cat >conftest.$ac_ext <<_ACEOF
12404 /* confdefs.h. */
12405 _ACEOF
12406 cat confdefs.h >>conftest.$ac_ext
12407 cat >>conftest.$ac_ext <<_ACEOF
12408 /* end confdefs.h. */
12409
12410 #include <X11/Xlib.h>
12411 #include <X11/Xresource.h>
12412 int
12413 main ()
12414 {
12415 XIMProc callback;
12416 ;
12417 return 0;
12418 }
12419 _ACEOF
12420 rm -f conftest.$ac_objext
12421 if { (ac_try="$ac_compile"
12422 case "(($ac_try" in
12423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12424 *) ac_try_echo=$ac_try;;
12425 esac
12426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12427 (eval "$ac_compile") 2>conftest.er1
12428 ac_status=$?
12429 grep -v '^ *+' conftest.er1 >conftest.err
12430 rm -f conftest.er1
12431 cat conftest.err >&5
12432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12433 (exit $ac_status); } && {
12434 test -z "$ac_c_werror_flag" ||
12435 test ! -s conftest.err
12436 } && test -s conftest.$ac_objext; then
12437 HAVE_XIM=yes
12438
12439 cat >>confdefs.h <<\_ACEOF
12440 #define HAVE_XIM 1
12441 _ACEOF
12442
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 HAVE_XIM=no
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12451
12452
12453 if test "${with_xim}" != "no"; then
12454
12455 cat >>confdefs.h <<\_ACEOF
12456 #define USE_XIM 1
12457 _ACEOF
12458
12459 fi
12460
12461
12462 if test "${HAVE_XIM}" != "no"; then
12463 late_CFLAGS=$CFLAGS
12464 if test "$GCC" = yes; then
12465 CFLAGS="$CFLAGS --pedantic-errors"
12466 fi
12467 cat >conftest.$ac_ext <<_ACEOF
12468 /* confdefs.h. */
12469 _ACEOF
12470 cat confdefs.h >>conftest.$ac_ext
12471 cat >>conftest.$ac_ext <<_ACEOF
12472 /* end confdefs.h. */
12473
12474 #include <X11/Xlib.h>
12475 #include <X11/Xresource.h>
12476 int
12477 main ()
12478 {
12479 Display *display;
12480 XrmDatabase db;
12481 char *res_name;
12482 char *res_class;
12483 XIMProc callback;
12484 XPointer *client_data;
12485 #ifndef __GNUC__
12486 /* If we're not using GCC, it's probably not XFree86, and this is
12487 probably right, but we can't use something like --pedantic-errors. */
12488 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12489 char*, XIMProc, XPointer*);
12490 #endif
12491 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12492 client_data);
12493 ;
12494 return 0;
12495 }
12496 _ACEOF
12497 rm -f conftest.$ac_objext
12498 if { (ac_try="$ac_compile"
12499 case "(($ac_try" in
12500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12501 *) ac_try_echo=$ac_try;;
12502 esac
12503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12504 (eval "$ac_compile") 2>conftest.er1
12505 ac_status=$?
12506 grep -v '^ *+' conftest.er1 >conftest.err
12507 rm -f conftest.er1
12508 cat conftest.err >&5
12509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12510 (exit $ac_status); } && {
12511 test -z "$ac_c_werror_flag" ||
12512 test ! -s conftest.err
12513 } && test -s conftest.$ac_objext; then
12514 emacs_cv_arg6_star=yes
12515 else
12516 echo "$as_me: failed program was:" >&5
12517 sed 's/^/| /' conftest.$ac_ext >&5
12518
12519
12520 fi
12521
12522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12523
12524 if test "$emacs_cv_arg6_star" = yes; then
12525 cat >>confdefs.h <<\_ACEOF
12526 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12527 _ACEOF
12528
12529 else
12530 cat >>confdefs.h <<\_ACEOF
12531 #define XRegisterIMInstantiateCallback_arg6 XPointer
12532 _ACEOF
12533
12534 fi
12535 CFLAGS=$late_CFLAGS
12536 fi
12537
12538 ### Start of font-backend section.
12539
12540 ## Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12541 HAVE_XFT=maybe
12542 if test "x${with_freetype}" = "xno"; then
12543 with_xft="no";
12544 fi
12545 if test "x${with_xft}" != "xno"; then
12546
12547
12548 succeeded=no
12549
12550 # Extract the first word of "pkg-config", so it can be a program name with args.
12551 set dummy pkg-config; ac_word=$2
12552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12555 echo $ECHO_N "(cached) $ECHO_C" >&6
12556 else
12557 case $PKG_CONFIG in
12558 [\\/]* | ?:[\\/]*)
12559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12560 ;;
12561 *)
12562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12563 for as_dir in $PATH
12564 do
12565 IFS=$as_save_IFS
12566 test -z "$as_dir" && as_dir=.
12567 for ac_exec_ext in '' $ac_executable_extensions; do
12568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12571 break 2
12572 fi
12573 done
12574 done
12575 IFS=$as_save_IFS
12576
12577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12578 ;;
12579 esac
12580 fi
12581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12582 if test -n "$PKG_CONFIG"; then
12583 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12584 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12585 else
12586 { echo "$as_me:$LINENO: result: no" >&5
12587 echo "${ECHO_T}no" >&6; }
12588 fi
12589
12590
12591
12592 if test "$PKG_CONFIG" = "no" ; then
12593 HAVE_XFT=no
12594 else
12595 PKG_CONFIG_MIN_VERSION=0.9.0
12596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12597 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12598 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12599
12600 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12601 { echo "$as_me:$LINENO: result: yes" >&5
12602 echo "${ECHO_T}yes" >&6; }
12603 succeeded=yes
12604
12605 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12606 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12607 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12608 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12609 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12610
12611 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12612 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12613 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12614 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12615 echo "${ECHO_T}$XFT_LIBS" >&6; }
12616 else
12617 { echo "$as_me:$LINENO: result: no" >&5
12618 echo "${ECHO_T}no" >&6; }
12619 XFT_CFLAGS=""
12620 XFT_LIBS=""
12621 ## If we have a custom action on failure, don't print errors, but
12622 ## do set a variable so people can do so.
12623 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12624
12625 fi
12626
12627
12628
12629 else
12630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12632 fi
12633 fi
12634
12635 if test $succeeded = yes; then
12636 :
12637 else
12638 HAVE_XFT=no
12639 fi
12640
12641 if test "$HAVE_XFT" != no; then
12642 OLD_CPPFLAGS="$CPPFLAGS"
12643 OLD_CFLAGS="$CFLAGS"
12644 OLD_LIBS="$LIBS"
12645 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12646 CFLAGS="$CFLAGS $XFT_CFLAGS"
12647 LIBS="$XFT_LIBS $LIBS"
12648 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12649 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12650 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12651 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 fi
12654 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12655 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12656 else
12657 # Is the header compilable?
12658 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12659 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12660 cat >conftest.$ac_ext <<_ACEOF
12661 /* confdefs.h. */
12662 _ACEOF
12663 cat confdefs.h >>conftest.$ac_ext
12664 cat >>conftest.$ac_ext <<_ACEOF
12665 /* end confdefs.h. */
12666 $ac_includes_default
12667 #include <X11/Xft/Xft.h>
12668 _ACEOF
12669 rm -f conftest.$ac_objext
12670 if { (ac_try="$ac_compile"
12671 case "(($ac_try" in
12672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12673 *) ac_try_echo=$ac_try;;
12674 esac
12675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12676 (eval "$ac_compile") 2>conftest.er1
12677 ac_status=$?
12678 grep -v '^ *+' conftest.er1 >conftest.err
12679 rm -f conftest.er1
12680 cat conftest.err >&5
12681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12682 (exit $ac_status); } && {
12683 test -z "$ac_c_werror_flag" ||
12684 test ! -s conftest.err
12685 } && test -s conftest.$ac_objext; then
12686 ac_header_compiler=yes
12687 else
12688 echo "$as_me: failed program was:" >&5
12689 sed 's/^/| /' conftest.$ac_ext >&5
12690
12691 ac_header_compiler=no
12692 fi
12693
12694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12696 echo "${ECHO_T}$ac_header_compiler" >&6; }
12697
12698 # Is the header present?
12699 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12700 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12701 cat >conftest.$ac_ext <<_ACEOF
12702 /* confdefs.h. */
12703 _ACEOF
12704 cat confdefs.h >>conftest.$ac_ext
12705 cat >>conftest.$ac_ext <<_ACEOF
12706 /* end confdefs.h. */
12707 #include <X11/Xft/Xft.h>
12708 _ACEOF
12709 if { (ac_try="$ac_cpp conftest.$ac_ext"
12710 case "(($ac_try" in
12711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12712 *) ac_try_echo=$ac_try;;
12713 esac
12714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12716 ac_status=$?
12717 grep -v '^ *+' conftest.er1 >conftest.err
12718 rm -f conftest.er1
12719 cat conftest.err >&5
12720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12721 (exit $ac_status); } >/dev/null && {
12722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12723 test ! -s conftest.err
12724 }; then
12725 ac_header_preproc=yes
12726 else
12727 echo "$as_me: failed program was:" >&5
12728 sed 's/^/| /' conftest.$ac_ext >&5
12729
12730 ac_header_preproc=no
12731 fi
12732
12733 rm -f conftest.err conftest.$ac_ext
12734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12735 echo "${ECHO_T}$ac_header_preproc" >&6; }
12736
12737 # So? What about this header?
12738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12739 yes:no: )
12740 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12741 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12743 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12744 ac_header_preproc=yes
12745 ;;
12746 no:yes:* )
12747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12748 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12755 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12756 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12758 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12759
12760 ;;
12761 esac
12762 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12763 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12764 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12765 echo $ECHO_N "(cached) $ECHO_C" >&6
12766 else
12767 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12768 fi
12769 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12770 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12771
12772 fi
12773 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12774 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12775 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12776 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12777 echo $ECHO_N "(cached) $ECHO_C" >&6
12778 else
12779 ac_check_lib_save_LIBS=$LIBS
12780 LIBS="-lXft $XFT_LIBS $LIBS"
12781 cat >conftest.$ac_ext <<_ACEOF
12782 /* confdefs.h. */
12783 _ACEOF
12784 cat confdefs.h >>conftest.$ac_ext
12785 cat >>conftest.$ac_ext <<_ACEOF
12786 /* end confdefs.h. */
12787
12788 /* Override any GCC internal prototype to avoid an error.
12789 Use char because int might match the return type of a GCC
12790 builtin and then its argument prototype would still apply. */
12791 #ifdef __cplusplus
12792 extern "C"
12793 #endif
12794 char XftFontOpen ();
12795 int
12796 main ()
12797 {
12798 return XftFontOpen ();
12799 ;
12800 return 0;
12801 }
12802 _ACEOF
12803 rm -f conftest.$ac_objext conftest$ac_exeext
12804 if { (ac_try="$ac_link"
12805 case "(($ac_try" in
12806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12807 *) ac_try_echo=$ac_try;;
12808 esac
12809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12810 (eval "$ac_link") 2>conftest.er1
12811 ac_status=$?
12812 grep -v '^ *+' conftest.er1 >conftest.err
12813 rm -f conftest.er1
12814 cat conftest.err >&5
12815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12816 (exit $ac_status); } && {
12817 test -z "$ac_c_werror_flag" ||
12818 test ! -s conftest.err
12819 } && test -s conftest$ac_exeext &&
12820 $as_test_x conftest$ac_exeext; then
12821 ac_cv_lib_Xft_XftFontOpen=yes
12822 else
12823 echo "$as_me: failed program was:" >&5
12824 sed 's/^/| /' conftest.$ac_ext >&5
12825
12826 ac_cv_lib_Xft_XftFontOpen=no
12827 fi
12828
12829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12830 conftest$ac_exeext conftest.$ac_ext
12831 LIBS=$ac_check_lib_save_LIBS
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12834 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12835 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12836 HAVE_XFT=yes
12837 fi
12838
12839 fi
12840
12841
12842
12843 if test "${HAVE_XFT}" = "yes"; then
12844
12845 cat >>confdefs.h <<\_ACEOF
12846 #define HAVE_XFT 1
12847 _ACEOF
12848
12849
12850 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12851 else
12852 CPPFLAGS="$OLD_CPPFLAGS"
12853 CFLAGS="$OLD_CFLAGS"
12854 LIBS="$OLD_LIBS"
12855 fi # "${HAVE_XFT}" = "yes"
12856 fi # "$HAVE_XFT" != no
12857 fi # "x${with_xft}" != "xno"
12858
12859 if test "$HAVE_XFT" != "yes"; then
12860 HAVE_XFT=no
12861 fi
12862
12863
12864 HAVE_FREETYPE=no
12865 ### Use -lfreetype if available, unless `--with-freetype=no'.
12866 if test "${HAVE_XFT}" = "yes"; then
12867 HAVE_FREETYPE=yes
12868 elif test "x${with_freetype}" != "xno"; then
12869
12870
12871 succeeded=no
12872
12873 # Extract the first word of "pkg-config", so it can be a program name with args.
12874 set dummy pkg-config; ac_word=$2
12875 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12876 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12877 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12878 echo $ECHO_N "(cached) $ECHO_C" >&6
12879 else
12880 case $PKG_CONFIG in
12881 [\\/]* | ?:[\\/]*)
12882 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12883 ;;
12884 *)
12885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12886 for as_dir in $PATH
12887 do
12888 IFS=$as_save_IFS
12889 test -z "$as_dir" && as_dir=.
12890 for ac_exec_ext in '' $ac_executable_extensions; do
12891 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12892 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12893 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12894 break 2
12895 fi
12896 done
12897 done
12898 IFS=$as_save_IFS
12899
12900 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12901 ;;
12902 esac
12903 fi
12904 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12905 if test -n "$PKG_CONFIG"; then
12906 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12907 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12908 else
12909 { echo "$as_me:$LINENO: result: no" >&5
12910 echo "${ECHO_T}no" >&6; }
12911 fi
12912
12913
12914
12915 if test "$PKG_CONFIG" = "no" ; then
12916 HAVE_FREETYPE=no
12917 else
12918 PKG_CONFIG_MIN_VERSION=0.9.0
12919 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12920 { echo "$as_me:$LINENO: checking for freetype2" >&5
12921 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12922
12923 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12924 { echo "$as_me:$LINENO: result: yes" >&5
12925 echo "${ECHO_T}yes" >&6; }
12926 succeeded=yes
12927
12928 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12929 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12930 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"|sed -e 's,///*,/,g'`
12931 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12932 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12933
12934 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12935 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12936 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"|sed -e 's,///*,/,g'`
12937 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12938 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12939 else
12940 { echo "$as_me:$LINENO: result: no" >&5
12941 echo "${ECHO_T}no" >&6; }
12942 FREETYPE_CFLAGS=""
12943 FREETYPE_LIBS=""
12944 ## If we have a custom action on failure, don't print errors, but
12945 ## do set a variable so people can do so.
12946 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12947
12948 fi
12949
12950
12951
12952 else
12953 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12954 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12955 fi
12956 fi
12957
12958 if test $succeeded = yes; then
12959 HAVE_FREETYPE=yes
12960 else
12961 HAVE_FREETYPE=no
12962 fi
12963
12964 if test "${HAVE_FREETYPE}" = "yes"; then
12965
12966 succeeded=no
12967
12968 # Extract the first word of "pkg-config", so it can be a program name with args.
12969 set dummy pkg-config; ac_word=$2
12970 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12971 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12972 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12973 echo $ECHO_N "(cached) $ECHO_C" >&6
12974 else
12975 case $PKG_CONFIG in
12976 [\\/]* | ?:[\\/]*)
12977 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12978 ;;
12979 *)
12980 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12981 for as_dir in $PATH
12982 do
12983 IFS=$as_save_IFS
12984 test -z "$as_dir" && as_dir=.
12985 for ac_exec_ext in '' $ac_executable_extensions; do
12986 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12987 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12988 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12989 break 2
12990 fi
12991 done
12992 done
12993 IFS=$as_save_IFS
12994
12995 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12996 ;;
12997 esac
12998 fi
12999 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13000 if test -n "$PKG_CONFIG"; then
13001 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13002 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13003 else
13004 { echo "$as_me:$LINENO: result: no" >&5
13005 echo "${ECHO_T}no" >&6; }
13006 fi
13007
13008
13009
13010 if test "$PKG_CONFIG" = "no" ; then
13011 HAVE_FC=no
13012 else
13013 PKG_CONFIG_MIN_VERSION=0.9.0
13014 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13015 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13016 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13017
13018 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13019 { echo "$as_me:$LINENO: result: yes" >&5
13020 echo "${ECHO_T}yes" >&6; }
13021 succeeded=yes
13022
13023 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13024 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13025 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"|sed -e 's,///*,/,g'`
13026 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13027 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13028
13029 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13030 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13031 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"|sed -e 's,///*,/,g'`
13032 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13033 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13034 else
13035 { echo "$as_me:$LINENO: result: no" >&5
13036 echo "${ECHO_T}no" >&6; }
13037 FONTCONFIG_CFLAGS=""
13038 FONTCONFIG_LIBS=""
13039 ## If we have a custom action on failure, don't print errors, but
13040 ## do set a variable so people can do so.
13041 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13042
13043 fi
13044
13045
13046
13047 else
13048 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13049 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13050 fi
13051 fi
13052
13053 if test $succeeded = yes; then
13054 HAVE_FC=yes
13055 else
13056 HAVE_FC=no
13057 fi
13058
13059 if test "${HAVE_FC}" = "no"; then
13060 HAVE_FREETYPE=no
13061 fi
13062 fi
13063 fi
13064
13065 HAVE_LIBOTF=no
13066 if test "${HAVE_FREETYPE}" = "yes"; then
13067
13068 cat >>confdefs.h <<\_ACEOF
13069 #define HAVE_FREETYPE 1
13070 _ACEOF
13071
13072 if test "${with_libotf}" != "no"; then
13073
13074 succeeded=no
13075
13076 # Extract the first word of "pkg-config", so it can be a program name with args.
13077 set dummy pkg-config; ac_word=$2
13078 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13079 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13080 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13081 echo $ECHO_N "(cached) $ECHO_C" >&6
13082 else
13083 case $PKG_CONFIG in
13084 [\\/]* | ?:[\\/]*)
13085 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13086 ;;
13087 *)
13088 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13089 for as_dir in $PATH
13090 do
13091 IFS=$as_save_IFS
13092 test -z "$as_dir" && as_dir=.
13093 for ac_exec_ext in '' $ac_executable_extensions; do
13094 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13095 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13096 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13097 break 2
13098 fi
13099 done
13100 done
13101 IFS=$as_save_IFS
13102
13103 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13104 ;;
13105 esac
13106 fi
13107 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13108 if test -n "$PKG_CONFIG"; then
13109 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13110 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13111 else
13112 { echo "$as_me:$LINENO: result: no" >&5
13113 echo "${ECHO_T}no" >&6; }
13114 fi
13115
13116
13117
13118 if test "$PKG_CONFIG" = "no" ; then
13119 HAVE_LIBOTF=no
13120 else
13121 PKG_CONFIG_MIN_VERSION=0.9.0
13122 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13123 { echo "$as_me:$LINENO: checking for libotf" >&5
13124 echo $ECHO_N "checking for libotf... $ECHO_C" >&6; }
13125
13126 if $PKG_CONFIG --exists "libotf" 2>&5; then
13127 { echo "$as_me:$LINENO: result: yes" >&5
13128 echo "${ECHO_T}yes" >&6; }
13129 succeeded=yes
13130
13131 { echo "$as_me:$LINENO: checking LIBOTF_CFLAGS" >&5
13132 echo $ECHO_N "checking LIBOTF_CFLAGS... $ECHO_C" >&6; }
13133 LIBOTF_CFLAGS=`$PKG_CONFIG --cflags "libotf"|sed -e 's,///*,/,g'`
13134 { echo "$as_me:$LINENO: result: $LIBOTF_CFLAGS" >&5
13135 echo "${ECHO_T}$LIBOTF_CFLAGS" >&6; }
13136
13137 { echo "$as_me:$LINENO: checking LIBOTF_LIBS" >&5
13138 echo $ECHO_N "checking LIBOTF_LIBS... $ECHO_C" >&6; }
13139 LIBOTF_LIBS=`$PKG_CONFIG --libs "libotf"|sed -e 's,///*,/,g'`
13140 { echo "$as_me:$LINENO: result: $LIBOTF_LIBS" >&5
13141 echo "${ECHO_T}$LIBOTF_LIBS" >&6; }
13142 else
13143 { echo "$as_me:$LINENO: result: no" >&5
13144 echo "${ECHO_T}no" >&6; }
13145 LIBOTF_CFLAGS=""
13146 LIBOTF_LIBS=""
13147 ## If we have a custom action on failure, don't print errors, but
13148 ## do set a variable so people can do so.
13149 LIBOTF_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "libotf"`
13150
13151 fi
13152
13153
13154
13155 else
13156 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13157 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13158 fi
13159 fi
13160
13161 if test $succeeded = yes; then
13162 HAVE_LIBOTF=yes
13163 else
13164 HAVE_LIBOTF=no
13165 fi
13166
13167 if test "$HAVE_LIBOTF" = "yes"; then
13168
13169 cat >>confdefs.h <<\_ACEOF
13170 #define HAVE_LIBOTF 1
13171 _ACEOF
13172
13173 fi
13174 fi
13175 fi
13176
13177 HAVE_M17N_FLT=no
13178 if test "${with_m17n_flt}" != "no"; then
13179
13180 succeeded=no
13181
13182 # Extract the first word of "pkg-config", so it can be a program name with args.
13183 set dummy pkg-config; ac_word=$2
13184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13186 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 case $PKG_CONFIG in
13190 [\\/]* | ?:[\\/]*)
13191 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
13192 ;;
13193 *)
13194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13195 for as_dir in $PATH
13196 do
13197 IFS=$as_save_IFS
13198 test -z "$as_dir" && as_dir=.
13199 for ac_exec_ext in '' $ac_executable_extensions; do
13200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13201 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
13202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13203 break 2
13204 fi
13205 done
13206 done
13207 IFS=$as_save_IFS
13208
13209 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
13210 ;;
13211 esac
13212 fi
13213 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
13214 if test -n "$PKG_CONFIG"; then
13215 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13216 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13217 else
13218 { echo "$as_me:$LINENO: result: no" >&5
13219 echo "${ECHO_T}no" >&6; }
13220 fi
13221
13222
13223
13224 if test "$PKG_CONFIG" = "no" ; then
13225 HAVE_M17N_FLT=no
13226 else
13227 PKG_CONFIG_MIN_VERSION=0.9.0
13228 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13229 { echo "$as_me:$LINENO: checking for m17n-flt" >&5
13230 echo $ECHO_N "checking for m17n-flt... $ECHO_C" >&6; }
13231
13232 if $PKG_CONFIG --exists "m17n-flt" 2>&5; then
13233 { echo "$as_me:$LINENO: result: yes" >&5
13234 echo "${ECHO_T}yes" >&6; }
13235 succeeded=yes
13236
13237 { echo "$as_me:$LINENO: checking M17N_FLT_CFLAGS" >&5
13238 echo $ECHO_N "checking M17N_FLT_CFLAGS... $ECHO_C" >&6; }
13239 M17N_FLT_CFLAGS=`$PKG_CONFIG --cflags "m17n-flt"|sed -e 's,///*,/,g'`
13240 { echo "$as_me:$LINENO: result: $M17N_FLT_CFLAGS" >&5
13241 echo "${ECHO_T}$M17N_FLT_CFLAGS" >&6; }
13242
13243 { echo "$as_me:$LINENO: checking M17N_FLT_LIBS" >&5
13244 echo $ECHO_N "checking M17N_FLT_LIBS... $ECHO_C" >&6; }
13245 M17N_FLT_LIBS=`$PKG_CONFIG --libs "m17n-flt"|sed -e 's,///*,/,g'`
13246 { echo "$as_me:$LINENO: result: $M17N_FLT_LIBS" >&5
13247 echo "${ECHO_T}$M17N_FLT_LIBS" >&6; }
13248 else
13249 { echo "$as_me:$LINENO: result: no" >&5
13250 echo "${ECHO_T}no" >&6; }
13251 M17N_FLT_CFLAGS=""
13252 M17N_FLT_LIBS=""
13253 ## If we have a custom action on failure, don't print errors, but
13254 ## do set a variable so people can do so.
13255 M17N_FLT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "m17n-flt"`
13256
13257 fi
13258
13259
13260
13261 else
13262 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13263 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13264 fi
13265 fi
13266
13267 if test $succeeded = yes; then
13268 HAVE_M17N_FLT=yes
13269 else
13270 HAVE_M17N_FLT=no
13271 fi
13272
13273 if test "$HAVE_M17N_FLT" = "yes"; then
13274
13275 cat >>confdefs.h <<\_ACEOF
13276 #define HAVE_M17N_FLT 1
13277 _ACEOF
13278
13279 fi
13280 fi
13281
13282
13283
13284
13285
13286
13287
13288
13289
13290
13291 ### End of font-backend section.
13292
13293 ### Use -lXpm if available, unless `--with-xpm=no'.
13294 HAVE_XPM=no
13295 if test "${HAVE_X11}" = "yes"; then
13296 if test "${with_xpm}" != "no"; then
13297 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13298 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13299 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13300 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13301 echo $ECHO_N "(cached) $ECHO_C" >&6
13302 fi
13303 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13304 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13305 else
13306 # Is the header compilable?
13307 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13308 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13309 cat >conftest.$ac_ext <<_ACEOF
13310 /* confdefs.h. */
13311 _ACEOF
13312 cat confdefs.h >>conftest.$ac_ext
13313 cat >>conftest.$ac_ext <<_ACEOF
13314 /* end confdefs.h. */
13315 $ac_includes_default
13316 #include <X11/xpm.h>
13317 _ACEOF
13318 rm -f conftest.$ac_objext
13319 if { (ac_try="$ac_compile"
13320 case "(($ac_try" in
13321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13322 *) ac_try_echo=$ac_try;;
13323 esac
13324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13325 (eval "$ac_compile") 2>conftest.er1
13326 ac_status=$?
13327 grep -v '^ *+' conftest.er1 >conftest.err
13328 rm -f conftest.er1
13329 cat conftest.err >&5
13330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13331 (exit $ac_status); } && {
13332 test -z "$ac_c_werror_flag" ||
13333 test ! -s conftest.err
13334 } && test -s conftest.$ac_objext; then
13335 ac_header_compiler=yes
13336 else
13337 echo "$as_me: failed program was:" >&5
13338 sed 's/^/| /' conftest.$ac_ext >&5
13339
13340 ac_header_compiler=no
13341 fi
13342
13343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13344 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13345 echo "${ECHO_T}$ac_header_compiler" >&6; }
13346
13347 # Is the header present?
13348 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13349 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13350 cat >conftest.$ac_ext <<_ACEOF
13351 /* confdefs.h. */
13352 _ACEOF
13353 cat confdefs.h >>conftest.$ac_ext
13354 cat >>conftest.$ac_ext <<_ACEOF
13355 /* end confdefs.h. */
13356 #include <X11/xpm.h>
13357 _ACEOF
13358 if { (ac_try="$ac_cpp conftest.$ac_ext"
13359 case "(($ac_try" in
13360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13361 *) ac_try_echo=$ac_try;;
13362 esac
13363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13364 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13365 ac_status=$?
13366 grep -v '^ *+' conftest.er1 >conftest.err
13367 rm -f conftest.er1
13368 cat conftest.err >&5
13369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13370 (exit $ac_status); } >/dev/null && {
13371 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13372 test ! -s conftest.err
13373 }; then
13374 ac_header_preproc=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ac_header_preproc=no
13380 fi
13381
13382 rm -f conftest.err conftest.$ac_ext
13383 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13384 echo "${ECHO_T}$ac_header_preproc" >&6; }
13385
13386 # So? What about this header?
13387 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13388 yes:no: )
13389 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13390 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13391 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13392 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13393 ac_header_preproc=yes
13394 ;;
13395 no:yes:* )
13396 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13397 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13398 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13399 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13400 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13401 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13402 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13403 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13404 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13405 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13406 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13407 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13408
13409 ;;
13410 esac
13411 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13412 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13413 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 else
13416 ac_cv_header_X11_xpm_h=$ac_header_preproc
13417 fi
13418 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13419 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13420
13421 fi
13422 if test $ac_cv_header_X11_xpm_h = yes; then
13423 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13424 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13425 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13426 echo $ECHO_N "(cached) $ECHO_C" >&6
13427 else
13428 ac_check_lib_save_LIBS=$LIBS
13429 LIBS="-lXpm -lX11 $LIBS"
13430 cat >conftest.$ac_ext <<_ACEOF
13431 /* confdefs.h. */
13432 _ACEOF
13433 cat confdefs.h >>conftest.$ac_ext
13434 cat >>conftest.$ac_ext <<_ACEOF
13435 /* end confdefs.h. */
13436
13437 /* Override any GCC internal prototype to avoid an error.
13438 Use char because int might match the return type of a GCC
13439 builtin and then its argument prototype would still apply. */
13440 #ifdef __cplusplus
13441 extern "C"
13442 #endif
13443 char XpmReadFileToPixmap ();
13444 int
13445 main ()
13446 {
13447 return XpmReadFileToPixmap ();
13448 ;
13449 return 0;
13450 }
13451 _ACEOF
13452 rm -f conftest.$ac_objext conftest$ac_exeext
13453 if { (ac_try="$ac_link"
13454 case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_link") 2>conftest.er1
13460 ac_status=$?
13461 grep -v '^ *+' conftest.er1 >conftest.err
13462 rm -f conftest.er1
13463 cat conftest.err >&5
13464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13465 (exit $ac_status); } && {
13466 test -z "$ac_c_werror_flag" ||
13467 test ! -s conftest.err
13468 } && test -s conftest$ac_exeext &&
13469 $as_test_x conftest$ac_exeext; then
13470 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13471 else
13472 echo "$as_me: failed program was:" >&5
13473 sed 's/^/| /' conftest.$ac_ext >&5
13474
13475 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13476 fi
13477
13478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13479 conftest$ac_exeext conftest.$ac_ext
13480 LIBS=$ac_check_lib_save_LIBS
13481 fi
13482 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13483 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13484 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13485 HAVE_XPM=yes
13486 fi
13487
13488 fi
13489
13490
13491 if test "${HAVE_XPM}" = "yes"; then
13492 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13493 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13494 cat >conftest.$ac_ext <<_ACEOF
13495 /* confdefs.h. */
13496 _ACEOF
13497 cat confdefs.h >>conftest.$ac_ext
13498 cat >>conftest.$ac_ext <<_ACEOF
13499 /* end confdefs.h. */
13500 #include "X11/xpm.h"
13501 #ifndef XpmReturnAllocPixels
13502 no_return_alloc_pixels
13503 #endif
13504
13505 _ACEOF
13506 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13507 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13508 HAVE_XPM=no
13509 else
13510 HAVE_XPM=yes
13511 fi
13512 rm -f conftest*
13513
13514
13515 if test "${HAVE_XPM}" = "yes"; then
13516 { echo "$as_me:$LINENO: result: yes" >&5
13517 echo "${ECHO_T}yes" >&6; }
13518 else
13519 { echo "$as_me:$LINENO: result: no" >&5
13520 echo "${ECHO_T}no" >&6; }
13521 fi
13522 fi
13523 fi
13524
13525 if test "${HAVE_XPM}" = "yes"; then
13526
13527 cat >>confdefs.h <<\_ACEOF
13528 #define HAVE_XPM 1
13529 _ACEOF
13530
13531 fi
13532 fi
13533
13534 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13535 HAVE_JPEG=no
13536 if test "${HAVE_X11}" = "yes"; then
13537 if test "${with_jpeg}" != "no"; then
13538 if test "${ac_cv_header_jerror_h+set}" = set; then
13539 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13540 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13541 if test "${ac_cv_header_jerror_h+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 fi
13544 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13545 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13546 else
13547 # Is the header compilable?
13548 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13549 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h. */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h. */
13556 $ac_includes_default
13557 #include <jerror.h>
13558 _ACEOF
13559 rm -f conftest.$ac_objext
13560 if { (ac_try="$ac_compile"
13561 case "(($ac_try" in
13562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13563 *) ac_try_echo=$ac_try;;
13564 esac
13565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13566 (eval "$ac_compile") 2>conftest.er1
13567 ac_status=$?
13568 grep -v '^ *+' conftest.er1 >conftest.err
13569 rm -f conftest.er1
13570 cat conftest.err >&5
13571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572 (exit $ac_status); } && {
13573 test -z "$ac_c_werror_flag" ||
13574 test ! -s conftest.err
13575 } && test -s conftest.$ac_objext; then
13576 ac_header_compiler=yes
13577 else
13578 echo "$as_me: failed program was:" >&5
13579 sed 's/^/| /' conftest.$ac_ext >&5
13580
13581 ac_header_compiler=no
13582 fi
13583
13584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13586 echo "${ECHO_T}$ac_header_compiler" >&6; }
13587
13588 # Is the header present?
13589 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13590 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13591 cat >conftest.$ac_ext <<_ACEOF
13592 /* confdefs.h. */
13593 _ACEOF
13594 cat confdefs.h >>conftest.$ac_ext
13595 cat >>conftest.$ac_ext <<_ACEOF
13596 /* end confdefs.h. */
13597 #include <jerror.h>
13598 _ACEOF
13599 if { (ac_try="$ac_cpp conftest.$ac_ext"
13600 case "(($ac_try" in
13601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13602 *) ac_try_echo=$ac_try;;
13603 esac
13604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13605 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13606 ac_status=$?
13607 grep -v '^ *+' conftest.er1 >conftest.err
13608 rm -f conftest.er1
13609 cat conftest.err >&5
13610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13611 (exit $ac_status); } >/dev/null && {
13612 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13613 test ! -s conftest.err
13614 }; then
13615 ac_header_preproc=yes
13616 else
13617 echo "$as_me: failed program was:" >&5
13618 sed 's/^/| /' conftest.$ac_ext >&5
13619
13620 ac_header_preproc=no
13621 fi
13622
13623 rm -f conftest.err conftest.$ac_ext
13624 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13625 echo "${ECHO_T}$ac_header_preproc" >&6; }
13626
13627 # So? What about this header?
13628 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13629 yes:no: )
13630 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13631 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13633 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13634 ac_header_preproc=yes
13635 ;;
13636 no:yes:* )
13637 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13638 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13639 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13640 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13641 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13642 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13643 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13644 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13645 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13646 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13647 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13648 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13649
13650 ;;
13651 esac
13652 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13653 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13654 if test "${ac_cv_header_jerror_h+set}" = set; then
13655 echo $ECHO_N "(cached) $ECHO_C" >&6
13656 else
13657 ac_cv_header_jerror_h=$ac_header_preproc
13658 fi
13659 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13660 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13661
13662 fi
13663 if test $ac_cv_header_jerror_h = yes; then
13664 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13665 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13666 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13667 echo $ECHO_N "(cached) $ECHO_C" >&6
13668 else
13669 ac_check_lib_save_LIBS=$LIBS
13670 LIBS="-ljpeg $LIBS"
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677
13678 /* Override any GCC internal prototype to avoid an error.
13679 Use char because int might match the return type of a GCC
13680 builtin and then its argument prototype would still apply. */
13681 #ifdef __cplusplus
13682 extern "C"
13683 #endif
13684 char jpeg_destroy_compress ();
13685 int
13686 main ()
13687 {
13688 return jpeg_destroy_compress ();
13689 ;
13690 return 0;
13691 }
13692 _ACEOF
13693 rm -f conftest.$ac_objext conftest$ac_exeext
13694 if { (ac_try="$ac_link"
13695 case "(($ac_try" in
13696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13697 *) ac_try_echo=$ac_try;;
13698 esac
13699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13700 (eval "$ac_link") 2>conftest.er1
13701 ac_status=$?
13702 grep -v '^ *+' conftest.er1 >conftest.err
13703 rm -f conftest.er1
13704 cat conftest.err >&5
13705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13706 (exit $ac_status); } && {
13707 test -z "$ac_c_werror_flag" ||
13708 test ! -s conftest.err
13709 } && test -s conftest$ac_exeext &&
13710 $as_test_x conftest$ac_exeext; then
13711 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13712 else
13713 echo "$as_me: failed program was:" >&5
13714 sed 's/^/| /' conftest.$ac_ext >&5
13715
13716 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13717 fi
13718
13719 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13720 conftest$ac_exeext conftest.$ac_ext
13721 LIBS=$ac_check_lib_save_LIBS
13722 fi
13723 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13724 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13725 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13726 HAVE_JPEG=yes
13727 fi
13728
13729 fi
13730
13731
13732 fi
13733
13734
13735 if test "${HAVE_JPEG}" = "yes"; then
13736 cat >>confdefs.h <<\_ACEOF
13737 #define HAVE_JPEG 1
13738 _ACEOF
13739
13740 cat >conftest.$ac_ext <<_ACEOF
13741 /* confdefs.h. */
13742 _ACEOF
13743 cat confdefs.h >>conftest.$ac_ext
13744 cat >>conftest.$ac_ext <<_ACEOF
13745 /* end confdefs.h. */
13746 #include <jpeglib.h>
13747 version=JPEG_LIB_VERSION
13748
13749 _ACEOF
13750 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13751 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13752 cat >>confdefs.h <<\_ACEOF
13753 #define HAVE_JPEG 1
13754 _ACEOF
13755
13756 else
13757 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13758 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13759 HAVE_JPEG=no
13760 fi
13761 rm -f conftest*
13762
13763 fi
13764 fi
13765
13766 ### Use -lpng if available, unless `--with-png=no'.
13767 HAVE_PNG=no
13768 if test "${HAVE_X11}" = "yes"; then
13769 if test "${with_png}" != "no"; then
13770 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13771 # in /usr/include/libpng.
13772
13773
13774 for ac_header in png.h libpng/png.h
13775 do
13776 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13777 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13778 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13779 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13780 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13781 echo $ECHO_N "(cached) $ECHO_C" >&6
13782 fi
13783 ac_res=`eval echo '${'$as_ac_Header'}'`
13784 { echo "$as_me:$LINENO: result: $ac_res" >&5
13785 echo "${ECHO_T}$ac_res" >&6; }
13786 else
13787 # Is the header compilable?
13788 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13789 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13790 cat >conftest.$ac_ext <<_ACEOF
13791 /* confdefs.h. */
13792 _ACEOF
13793 cat confdefs.h >>conftest.$ac_ext
13794 cat >>conftest.$ac_ext <<_ACEOF
13795 /* end confdefs.h. */
13796 $ac_includes_default
13797 #include <$ac_header>
13798 _ACEOF
13799 rm -f conftest.$ac_objext
13800 if { (ac_try="$ac_compile"
13801 case "(($ac_try" in
13802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13803 *) ac_try_echo=$ac_try;;
13804 esac
13805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13806 (eval "$ac_compile") 2>conftest.er1
13807 ac_status=$?
13808 grep -v '^ *+' conftest.er1 >conftest.err
13809 rm -f conftest.er1
13810 cat conftest.err >&5
13811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13812 (exit $ac_status); } && {
13813 test -z "$ac_c_werror_flag" ||
13814 test ! -s conftest.err
13815 } && test -s conftest.$ac_objext; then
13816 ac_header_compiler=yes
13817 else
13818 echo "$as_me: failed program was:" >&5
13819 sed 's/^/| /' conftest.$ac_ext >&5
13820
13821 ac_header_compiler=no
13822 fi
13823
13824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13825 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13826 echo "${ECHO_T}$ac_header_compiler" >&6; }
13827
13828 # Is the header present?
13829 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13830 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837 #include <$ac_header>
13838 _ACEOF
13839 if { (ac_try="$ac_cpp conftest.$ac_ext"
13840 case "(($ac_try" in
13841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13842 *) ac_try_echo=$ac_try;;
13843 esac
13844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13846 ac_status=$?
13847 grep -v '^ *+' conftest.er1 >conftest.err
13848 rm -f conftest.er1
13849 cat conftest.err >&5
13850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13851 (exit $ac_status); } >/dev/null && {
13852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13853 test ! -s conftest.err
13854 }; then
13855 ac_header_preproc=yes
13856 else
13857 echo "$as_me: failed program was:" >&5
13858 sed 's/^/| /' conftest.$ac_ext >&5
13859
13860 ac_header_preproc=no
13861 fi
13862
13863 rm -f conftest.err conftest.$ac_ext
13864 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13865 echo "${ECHO_T}$ac_header_preproc" >&6; }
13866
13867 # So? What about this header?
13868 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13869 yes:no: )
13870 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13871 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13872 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13873 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13874 ac_header_preproc=yes
13875 ;;
13876 no:yes:* )
13877 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13878 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13879 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13880 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13881 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13882 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13883 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13884 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13885 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13886 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13887 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13888 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13889
13890 ;;
13891 esac
13892 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13893 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13895 echo $ECHO_N "(cached) $ECHO_C" >&6
13896 else
13897 eval "$as_ac_Header=\$ac_header_preproc"
13898 fi
13899 ac_res=`eval echo '${'$as_ac_Header'}'`
13900 { echo "$as_me:$LINENO: result: $ac_res" >&5
13901 echo "${ECHO_T}$ac_res" >&6; }
13902
13903 fi
13904 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13905 cat >>confdefs.h <<_ACEOF
13906 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13907 _ACEOF
13908
13909 fi
13910
13911 done
13912
13913 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13914 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13915 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13916 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13917 echo $ECHO_N "(cached) $ECHO_C" >&6
13918 else
13919 ac_check_lib_save_LIBS=$LIBS
13920 LIBS="-lpng -lz -lm $LIBS"
13921 cat >conftest.$ac_ext <<_ACEOF
13922 /* confdefs.h. */
13923 _ACEOF
13924 cat confdefs.h >>conftest.$ac_ext
13925 cat >>conftest.$ac_ext <<_ACEOF
13926 /* end confdefs.h. */
13927
13928 /* Override any GCC internal prototype to avoid an error.
13929 Use char because int might match the return type of a GCC
13930 builtin and then its argument prototype would still apply. */
13931 #ifdef __cplusplus
13932 extern "C"
13933 #endif
13934 char png_get_channels ();
13935 int
13936 main ()
13937 {
13938 return png_get_channels ();
13939 ;
13940 return 0;
13941 }
13942 _ACEOF
13943 rm -f conftest.$ac_objext conftest$ac_exeext
13944 if { (ac_try="$ac_link"
13945 case "(($ac_try" in
13946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13947 *) ac_try_echo=$ac_try;;
13948 esac
13949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13950 (eval "$ac_link") 2>conftest.er1
13951 ac_status=$?
13952 grep -v '^ *+' conftest.er1 >conftest.err
13953 rm -f conftest.er1
13954 cat conftest.err >&5
13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13956 (exit $ac_status); } && {
13957 test -z "$ac_c_werror_flag" ||
13958 test ! -s conftest.err
13959 } && test -s conftest$ac_exeext &&
13960 $as_test_x conftest$ac_exeext; then
13961 ac_cv_lib_png_png_get_channels=yes
13962 else
13963 echo "$as_me: failed program was:" >&5
13964 sed 's/^/| /' conftest.$ac_ext >&5
13965
13966 ac_cv_lib_png_png_get_channels=no
13967 fi
13968
13969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13970 conftest$ac_exeext conftest.$ac_ext
13971 LIBS=$ac_check_lib_save_LIBS
13972 fi
13973 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13974 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13975 if test $ac_cv_lib_png_png_get_channels = yes; then
13976 HAVE_PNG=yes
13977 fi
13978
13979 fi
13980 fi
13981
13982 if test "${HAVE_PNG}" = "yes"; then
13983
13984 cat >>confdefs.h <<\_ACEOF
13985 #define HAVE_PNG 1
13986 _ACEOF
13987
13988 fi
13989 fi
13990
13991 ### Use -ltiff if available, unless `--with-tiff=no'.
13992 HAVE_TIFF=no
13993 if test "${HAVE_X11}" = "yes"; then
13994 if test "${with_tiff}" != "no"; then
13995 if test "${ac_cv_header_tiffio_h+set}" = set; then
13996 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13997 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13998 if test "${ac_cv_header_tiffio_h+set}" = set; then
13999 echo $ECHO_N "(cached) $ECHO_C" >&6
14000 fi
14001 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14002 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14003 else
14004 # Is the header compilable?
14005 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14006 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14007 cat >conftest.$ac_ext <<_ACEOF
14008 /* confdefs.h. */
14009 _ACEOF
14010 cat confdefs.h >>conftest.$ac_ext
14011 cat >>conftest.$ac_ext <<_ACEOF
14012 /* end confdefs.h. */
14013 $ac_includes_default
14014 #include <tiffio.h>
14015 _ACEOF
14016 rm -f conftest.$ac_objext
14017 if { (ac_try="$ac_compile"
14018 case "(($ac_try" in
14019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14020 *) ac_try_echo=$ac_try;;
14021 esac
14022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14023 (eval "$ac_compile") 2>conftest.er1
14024 ac_status=$?
14025 grep -v '^ *+' conftest.er1 >conftest.err
14026 rm -f conftest.er1
14027 cat conftest.err >&5
14028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14029 (exit $ac_status); } && {
14030 test -z "$ac_c_werror_flag" ||
14031 test ! -s conftest.err
14032 } && test -s conftest.$ac_objext; then
14033 ac_header_compiler=yes
14034 else
14035 echo "$as_me: failed program was:" >&5
14036 sed 's/^/| /' conftest.$ac_ext >&5
14037
14038 ac_header_compiler=no
14039 fi
14040
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14043 echo "${ECHO_T}$ac_header_compiler" >&6; }
14044
14045 # Is the header present?
14046 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14047 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14048 cat >conftest.$ac_ext <<_ACEOF
14049 /* confdefs.h. */
14050 _ACEOF
14051 cat confdefs.h >>conftest.$ac_ext
14052 cat >>conftest.$ac_ext <<_ACEOF
14053 /* end confdefs.h. */
14054 #include <tiffio.h>
14055 _ACEOF
14056 if { (ac_try="$ac_cpp conftest.$ac_ext"
14057 case "(($ac_try" in
14058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14059 *) ac_try_echo=$ac_try;;
14060 esac
14061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14062 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14063 ac_status=$?
14064 grep -v '^ *+' conftest.er1 >conftest.err
14065 rm -f conftest.er1
14066 cat conftest.err >&5
14067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14068 (exit $ac_status); } >/dev/null && {
14069 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14070 test ! -s conftest.err
14071 }; then
14072 ac_header_preproc=yes
14073 else
14074 echo "$as_me: failed program was:" >&5
14075 sed 's/^/| /' conftest.$ac_ext >&5
14076
14077 ac_header_preproc=no
14078 fi
14079
14080 rm -f conftest.err conftest.$ac_ext
14081 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14082 echo "${ECHO_T}$ac_header_preproc" >&6; }
14083
14084 # So? What about this header?
14085 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14086 yes:no: )
14087 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14088 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14089 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14090 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14091 ac_header_preproc=yes
14092 ;;
14093 no:yes:* )
14094 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14095 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14096 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14097 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14098 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14099 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14100 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14101 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14102 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14103 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14104 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14105 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14106
14107 ;;
14108 esac
14109 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14110 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14111 if test "${ac_cv_header_tiffio_h+set}" = set; then
14112 echo $ECHO_N "(cached) $ECHO_C" >&6
14113 else
14114 ac_cv_header_tiffio_h=$ac_header_preproc
14115 fi
14116 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14117 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14118
14119 fi
14120 if test $ac_cv_header_tiffio_h = yes; then
14121 tifflibs="-lz -lm"
14122 # At least one tiff package requires the jpeg library.
14123 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14124 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14125 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14126 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14127 echo $ECHO_N "(cached) $ECHO_C" >&6
14128 else
14129 ac_check_lib_save_LIBS=$LIBS
14130 LIBS="-ltiff $tifflibs $LIBS"
14131 cat >conftest.$ac_ext <<_ACEOF
14132 /* confdefs.h. */
14133 _ACEOF
14134 cat confdefs.h >>conftest.$ac_ext
14135 cat >>conftest.$ac_ext <<_ACEOF
14136 /* end confdefs.h. */
14137
14138 /* Override any GCC internal prototype to avoid an error.
14139 Use char because int might match the return type of a GCC
14140 builtin and then its argument prototype would still apply. */
14141 #ifdef __cplusplus
14142 extern "C"
14143 #endif
14144 char TIFFGetVersion ();
14145 int
14146 main ()
14147 {
14148 return TIFFGetVersion ();
14149 ;
14150 return 0;
14151 }
14152 _ACEOF
14153 rm -f conftest.$ac_objext conftest$ac_exeext
14154 if { (ac_try="$ac_link"
14155 case "(($ac_try" in
14156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14157 *) ac_try_echo=$ac_try;;
14158 esac
14159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14160 (eval "$ac_link") 2>conftest.er1
14161 ac_status=$?
14162 grep -v '^ *+' conftest.er1 >conftest.err
14163 rm -f conftest.er1
14164 cat conftest.err >&5
14165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14166 (exit $ac_status); } && {
14167 test -z "$ac_c_werror_flag" ||
14168 test ! -s conftest.err
14169 } && test -s conftest$ac_exeext &&
14170 $as_test_x conftest$ac_exeext; then
14171 ac_cv_lib_tiff_TIFFGetVersion=yes
14172 else
14173 echo "$as_me: failed program was:" >&5
14174 sed 's/^/| /' conftest.$ac_ext >&5
14175
14176 ac_cv_lib_tiff_TIFFGetVersion=no
14177 fi
14178
14179 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14180 conftest$ac_exeext conftest.$ac_ext
14181 LIBS=$ac_check_lib_save_LIBS
14182 fi
14183 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14184 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14185 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14186 HAVE_TIFF=yes
14187 fi
14188
14189 fi
14190
14191
14192 fi
14193
14194 if test "${HAVE_TIFF}" = "yes"; then
14195
14196 cat >>confdefs.h <<\_ACEOF
14197 #define HAVE_TIFF 1
14198 _ACEOF
14199
14200 fi
14201 fi
14202
14203 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14204 HAVE_GIF=no
14205 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14206 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14207 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14208 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14209 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14210 echo $ECHO_N "(cached) $ECHO_C" >&6
14211 fi
14212 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14213 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14214 else
14215 # Is the header compilable?
14216 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14217 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14218 cat >conftest.$ac_ext <<_ACEOF
14219 /* confdefs.h. */
14220 _ACEOF
14221 cat confdefs.h >>conftest.$ac_ext
14222 cat >>conftest.$ac_ext <<_ACEOF
14223 /* end confdefs.h. */
14224 $ac_includes_default
14225 #include <gif_lib.h>
14226 _ACEOF
14227 rm -f conftest.$ac_objext
14228 if { (ac_try="$ac_compile"
14229 case "(($ac_try" in
14230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14231 *) ac_try_echo=$ac_try;;
14232 esac
14233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14234 (eval "$ac_compile") 2>conftest.er1
14235 ac_status=$?
14236 grep -v '^ *+' conftest.er1 >conftest.err
14237 rm -f conftest.er1
14238 cat conftest.err >&5
14239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14240 (exit $ac_status); } && {
14241 test -z "$ac_c_werror_flag" ||
14242 test ! -s conftest.err
14243 } && test -s conftest.$ac_objext; then
14244 ac_header_compiler=yes
14245 else
14246 echo "$as_me: failed program was:" >&5
14247 sed 's/^/| /' conftest.$ac_ext >&5
14248
14249 ac_header_compiler=no
14250 fi
14251
14252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14254 echo "${ECHO_T}$ac_header_compiler" >&6; }
14255
14256 # Is the header present?
14257 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14258 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14259 cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h. */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 #include <gif_lib.h>
14266 _ACEOF
14267 if { (ac_try="$ac_cpp conftest.$ac_ext"
14268 case "(($ac_try" in
14269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14270 *) ac_try_echo=$ac_try;;
14271 esac
14272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14273 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14274 ac_status=$?
14275 grep -v '^ *+' conftest.er1 >conftest.err
14276 rm -f conftest.er1
14277 cat conftest.err >&5
14278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14279 (exit $ac_status); } >/dev/null && {
14280 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14281 test ! -s conftest.err
14282 }; then
14283 ac_header_preproc=yes
14284 else
14285 echo "$as_me: failed program was:" >&5
14286 sed 's/^/| /' conftest.$ac_ext >&5
14287
14288 ac_header_preproc=no
14289 fi
14290
14291 rm -f conftest.err conftest.$ac_ext
14292 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14293 echo "${ECHO_T}$ac_header_preproc" >&6; }
14294
14295 # So? What about this header?
14296 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14297 yes:no: )
14298 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14299 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14300 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14301 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14302 ac_header_preproc=yes
14303 ;;
14304 no:yes:* )
14305 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14306 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14307 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14308 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14309 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14310 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14311 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14312 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14313 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14314 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14315 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14316 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14317
14318 ;;
14319 esac
14320 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14321 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14322 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14323 echo $ECHO_N "(cached) $ECHO_C" >&6
14324 else
14325 ac_cv_header_gif_lib_h=$ac_header_preproc
14326 fi
14327 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14328 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14329
14330 fi
14331 if test $ac_cv_header_gif_lib_h = yes; then
14332 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14333 # Earlier versions can crash Emacs.
14334 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14335 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14336 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14337 echo $ECHO_N "(cached) $ECHO_C" >&6
14338 else
14339 ac_check_lib_save_LIBS=$LIBS
14340 LIBS="-lgif $LIBS"
14341 cat >conftest.$ac_ext <<_ACEOF
14342 /* confdefs.h. */
14343 _ACEOF
14344 cat confdefs.h >>conftest.$ac_ext
14345 cat >>conftest.$ac_ext <<_ACEOF
14346 /* end confdefs.h. */
14347
14348 /* Override any GCC internal prototype to avoid an error.
14349 Use char because int might match the return type of a GCC
14350 builtin and then its argument prototype would still apply. */
14351 #ifdef __cplusplus
14352 extern "C"
14353 #endif
14354 char EGifPutExtensionLast ();
14355 int
14356 main ()
14357 {
14358 return EGifPutExtensionLast ();
14359 ;
14360 return 0;
14361 }
14362 _ACEOF
14363 rm -f conftest.$ac_objext conftest$ac_exeext
14364 if { (ac_try="$ac_link"
14365 case "(($ac_try" in
14366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14367 *) ac_try_echo=$ac_try;;
14368 esac
14369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14370 (eval "$ac_link") 2>conftest.er1
14371 ac_status=$?
14372 grep -v '^ *+' conftest.er1 >conftest.err
14373 rm -f conftest.er1
14374 cat conftest.err >&5
14375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14376 (exit $ac_status); } && {
14377 test -z "$ac_c_werror_flag" ||
14378 test ! -s conftest.err
14379 } && test -s conftest$ac_exeext &&
14380 $as_test_x conftest$ac_exeext; then
14381 ac_cv_lib_gif_EGifPutExtensionLast=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_cv_lib_gif_EGifPutExtensionLast=no
14387 fi
14388
14389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14390 conftest$ac_exeext conftest.$ac_ext
14391 LIBS=$ac_check_lib_save_LIBS
14392 fi
14393 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14394 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14395 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14396 HAVE_GIF=yes
14397 else
14398 try_libungif=yes
14399 fi
14400
14401 fi
14402
14403
14404
14405 if test "$HAVE_GIF" = yes; then
14406 ac_gif_lib_name="-lgif"
14407 fi
14408
14409 # If gif_lib.h but no libgif, try libungif.
14410 if test x"$try_libungif" = xyes; then
14411 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14412 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14413 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14414 echo $ECHO_N "(cached) $ECHO_C" >&6
14415 else
14416 ac_check_lib_save_LIBS=$LIBS
14417 LIBS="-lungif $LIBS"
14418 cat >conftest.$ac_ext <<_ACEOF
14419 /* confdefs.h. */
14420 _ACEOF
14421 cat confdefs.h >>conftest.$ac_ext
14422 cat >>conftest.$ac_ext <<_ACEOF
14423 /* end confdefs.h. */
14424
14425 /* Override any GCC internal prototype to avoid an error.
14426 Use char because int might match the return type of a GCC
14427 builtin and then its argument prototype would still apply. */
14428 #ifdef __cplusplus
14429 extern "C"
14430 #endif
14431 char EGifPutExtensionLast ();
14432 int
14433 main ()
14434 {
14435 return EGifPutExtensionLast ();
14436 ;
14437 return 0;
14438 }
14439 _ACEOF
14440 rm -f conftest.$ac_objext conftest$ac_exeext
14441 if { (ac_try="$ac_link"
14442 case "(($ac_try" in
14443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14444 *) ac_try_echo=$ac_try;;
14445 esac
14446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14447 (eval "$ac_link") 2>conftest.er1
14448 ac_status=$?
14449 grep -v '^ *+' conftest.er1 >conftest.err
14450 rm -f conftest.er1
14451 cat conftest.err >&5
14452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14453 (exit $ac_status); } && {
14454 test -z "$ac_c_werror_flag" ||
14455 test ! -s conftest.err
14456 } && test -s conftest$ac_exeext &&
14457 $as_test_x conftest$ac_exeext; then
14458 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14459 else
14460 echo "$as_me: failed program was:" >&5
14461 sed 's/^/| /' conftest.$ac_ext >&5
14462
14463 ac_cv_lib_ungif_EGifPutExtensionLast=no
14464 fi
14465
14466 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14467 conftest$ac_exeext conftest.$ac_ext
14468 LIBS=$ac_check_lib_save_LIBS
14469 fi
14470 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14471 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14472 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14473 HAVE_GIF=yes
14474 fi
14475
14476
14477 if test "$HAVE_GIF" = yes; then
14478
14479 cat >>confdefs.h <<\_ACEOF
14480 #define LIBGIF -lungif
14481 _ACEOF
14482
14483 ac_gif_lib_name="-lungif"
14484 fi
14485 fi
14486
14487 if test "${HAVE_GIF}" = "yes"; then
14488
14489 cat >>confdefs.h <<\_ACEOF
14490 #define HAVE_GIF 1
14491 _ACEOF
14492
14493 fi
14494 fi
14495
14496 if test "${HAVE_X11}" = "yes"; then
14497 MISSING=""
14498 WITH_NO=""
14499 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14500 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14501 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14502 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14503 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14504 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14505 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14506 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14507 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14508 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14509
14510 if test "X${MISSING}" != X; then
14511 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14512 $MISSING
14513 Maybe some development libraries/packages are missing?
14514 If you don't want to link with them give
14515 $WITH_NO
14516 as options to configure" >&5
14517 echo "$as_me: 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" >&2;}
14523 { (exit 1); exit 1; }; }
14524 fi
14525 fi
14526
14527 ### Use -lgpm if available, unless `--with-gpm=no'.
14528 HAVE_GPM=no
14529 if test "${with_gpm}" != "no"; then
14530 if test "${ac_cv_header_gpm_h+set}" = set; then
14531 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14532 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14533 if test "${ac_cv_header_gpm_h+set}" = set; then
14534 echo $ECHO_N "(cached) $ECHO_C" >&6
14535 fi
14536 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14537 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14538 else
14539 # Is the header compilable?
14540 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14541 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14542 cat >conftest.$ac_ext <<_ACEOF
14543 /* confdefs.h. */
14544 _ACEOF
14545 cat confdefs.h >>conftest.$ac_ext
14546 cat >>conftest.$ac_ext <<_ACEOF
14547 /* end confdefs.h. */
14548 $ac_includes_default
14549 #include <gpm.h>
14550 _ACEOF
14551 rm -f conftest.$ac_objext
14552 if { (ac_try="$ac_compile"
14553 case "(($ac_try" in
14554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14555 *) ac_try_echo=$ac_try;;
14556 esac
14557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14558 (eval "$ac_compile") 2>conftest.er1
14559 ac_status=$?
14560 grep -v '^ *+' conftest.er1 >conftest.err
14561 rm -f conftest.er1
14562 cat conftest.err >&5
14563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14564 (exit $ac_status); } && {
14565 test -z "$ac_c_werror_flag" ||
14566 test ! -s conftest.err
14567 } && test -s conftest.$ac_objext; then
14568 ac_header_compiler=yes
14569 else
14570 echo "$as_me: failed program was:" >&5
14571 sed 's/^/| /' conftest.$ac_ext >&5
14572
14573 ac_header_compiler=no
14574 fi
14575
14576 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14577 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14578 echo "${ECHO_T}$ac_header_compiler" >&6; }
14579
14580 # Is the header present?
14581 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14582 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14583 cat >conftest.$ac_ext <<_ACEOF
14584 /* confdefs.h. */
14585 _ACEOF
14586 cat confdefs.h >>conftest.$ac_ext
14587 cat >>conftest.$ac_ext <<_ACEOF
14588 /* end confdefs.h. */
14589 #include <gpm.h>
14590 _ACEOF
14591 if { (ac_try="$ac_cpp conftest.$ac_ext"
14592 case "(($ac_try" in
14593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14594 *) ac_try_echo=$ac_try;;
14595 esac
14596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14597 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14598 ac_status=$?
14599 grep -v '^ *+' conftest.er1 >conftest.err
14600 rm -f conftest.er1
14601 cat conftest.err >&5
14602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14603 (exit $ac_status); } >/dev/null && {
14604 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14605 test ! -s conftest.err
14606 }; then
14607 ac_header_preproc=yes
14608 else
14609 echo "$as_me: failed program was:" >&5
14610 sed 's/^/| /' conftest.$ac_ext >&5
14611
14612 ac_header_preproc=no
14613 fi
14614
14615 rm -f conftest.err conftest.$ac_ext
14616 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14617 echo "${ECHO_T}$ac_header_preproc" >&6; }
14618
14619 # So? What about this header?
14620 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14621 yes:no: )
14622 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14623 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14624 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14625 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14626 ac_header_preproc=yes
14627 ;;
14628 no:yes:* )
14629 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14630 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14631 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14632 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14633 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14634 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14635 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14636 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14637 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14638 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14639 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14640 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14641
14642 ;;
14643 esac
14644 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14645 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14646 if test "${ac_cv_header_gpm_h+set}" = set; then
14647 echo $ECHO_N "(cached) $ECHO_C" >&6
14648 else
14649 ac_cv_header_gpm_h=$ac_header_preproc
14650 fi
14651 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14652 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14653
14654 fi
14655 if test $ac_cv_header_gpm_h = yes; then
14656 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14657 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14658 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14659 echo $ECHO_N "(cached) $ECHO_C" >&6
14660 else
14661 ac_check_lib_save_LIBS=$LIBS
14662 LIBS="-lgpm $LIBS"
14663 cat >conftest.$ac_ext <<_ACEOF
14664 /* confdefs.h. */
14665 _ACEOF
14666 cat confdefs.h >>conftest.$ac_ext
14667 cat >>conftest.$ac_ext <<_ACEOF
14668 /* end confdefs.h. */
14669
14670 /* Override any GCC internal prototype to avoid an error.
14671 Use char because int might match the return type of a GCC
14672 builtin and then its argument prototype would still apply. */
14673 #ifdef __cplusplus
14674 extern "C"
14675 #endif
14676 char Gpm_Open ();
14677 int
14678 main ()
14679 {
14680 return Gpm_Open ();
14681 ;
14682 return 0;
14683 }
14684 _ACEOF
14685 rm -f conftest.$ac_objext conftest$ac_exeext
14686 if { (ac_try="$ac_link"
14687 case "(($ac_try" in
14688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14689 *) ac_try_echo=$ac_try;;
14690 esac
14691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14692 (eval "$ac_link") 2>conftest.er1
14693 ac_status=$?
14694 grep -v '^ *+' conftest.er1 >conftest.err
14695 rm -f conftest.er1
14696 cat conftest.err >&5
14697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14698 (exit $ac_status); } && {
14699 test -z "$ac_c_werror_flag" ||
14700 test ! -s conftest.err
14701 } && test -s conftest$ac_exeext &&
14702 $as_test_x conftest$ac_exeext; then
14703 ac_cv_lib_gpm_Gpm_Open=yes
14704 else
14705 echo "$as_me: failed program was:" >&5
14706 sed 's/^/| /' conftest.$ac_ext >&5
14707
14708 ac_cv_lib_gpm_Gpm_Open=no
14709 fi
14710
14711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14712 conftest$ac_exeext conftest.$ac_ext
14713 LIBS=$ac_check_lib_save_LIBS
14714 fi
14715 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14716 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14717 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14718 HAVE_GPM=yes
14719 fi
14720
14721 fi
14722
14723
14724 fi
14725
14726 if test "${HAVE_GPM}" = "yes"; then
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_GPM 1
14730 _ACEOF
14731
14732 fi
14733
14734 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14735 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14736 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14737 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 fi
14740 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14741 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14742 else
14743 # Is the header compilable?
14744 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14745 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14746 cat >conftest.$ac_ext <<_ACEOF
14747 /* confdefs.h. */
14748 _ACEOF
14749 cat confdefs.h >>conftest.$ac_ext
14750 cat >>conftest.$ac_ext <<_ACEOF
14751 /* end confdefs.h. */
14752 $ac_includes_default
14753 #include <malloc/malloc.h>
14754 _ACEOF
14755 rm -f conftest.$ac_objext
14756 if { (ac_try="$ac_compile"
14757 case "(($ac_try" in
14758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759 *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762 (eval "$ac_compile") 2>conftest.er1
14763 ac_status=$?
14764 grep -v '^ *+' conftest.er1 >conftest.err
14765 rm -f conftest.er1
14766 cat conftest.err >&5
14767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768 (exit $ac_status); } && {
14769 test -z "$ac_c_werror_flag" ||
14770 test ! -s conftest.err
14771 } && test -s conftest.$ac_objext; then
14772 ac_header_compiler=yes
14773 else
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 ac_header_compiler=no
14778 fi
14779
14780 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14781 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14782 echo "${ECHO_T}$ac_header_compiler" >&6; }
14783
14784 # Is the header present?
14785 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14786 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14787 cat >conftest.$ac_ext <<_ACEOF
14788 /* confdefs.h. */
14789 _ACEOF
14790 cat confdefs.h >>conftest.$ac_ext
14791 cat >>conftest.$ac_ext <<_ACEOF
14792 /* end confdefs.h. */
14793 #include <malloc/malloc.h>
14794 _ACEOF
14795 if { (ac_try="$ac_cpp conftest.$ac_ext"
14796 case "(($ac_try" in
14797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14798 *) ac_try_echo=$ac_try;;
14799 esac
14800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14801 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14802 ac_status=$?
14803 grep -v '^ *+' conftest.er1 >conftest.err
14804 rm -f conftest.er1
14805 cat conftest.err >&5
14806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14807 (exit $ac_status); } >/dev/null && {
14808 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14809 test ! -s conftest.err
14810 }; then
14811 ac_header_preproc=yes
14812 else
14813 echo "$as_me: failed program was:" >&5
14814 sed 's/^/| /' conftest.$ac_ext >&5
14815
14816 ac_header_preproc=no
14817 fi
14818
14819 rm -f conftest.err conftest.$ac_ext
14820 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14821 echo "${ECHO_T}$ac_header_preproc" >&6; }
14822
14823 # So? What about this header?
14824 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14825 yes:no: )
14826 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14827 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14828 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14829 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14830 ac_header_preproc=yes
14831 ;;
14832 no:yes:* )
14833 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14834 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14835 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14836 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14837 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14838 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14839 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14840 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14841 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14842 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14843 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14844 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14845
14846 ;;
14847 esac
14848 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14849 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14850 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14851 echo $ECHO_N "(cached) $ECHO_C" >&6
14852 else
14853 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14854 fi
14855 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14856 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14857
14858 fi
14859 if test $ac_cv_header_malloc_malloc_h = yes; then
14860
14861 cat >>confdefs.h <<\_ACEOF
14862 #define HAVE_MALLOC_MALLOC_H 1
14863 _ACEOF
14864
14865 fi
14866
14867
14868
14869 ### Use NeXTstep API to implement GUI.
14870 if test "${HAVE_NS}" = "yes"; then
14871
14872 cat >>confdefs.h <<\_ACEOF
14873 #define HAVE_NS 1
14874 _ACEOF
14875
14876 if test "${NS_IMPL_COCOA}" = "yes"; then
14877
14878 cat >>confdefs.h <<\_ACEOF
14879 #define NS_IMPL_COCOA 1
14880 _ACEOF
14881
14882 fi
14883 if test "${EN_COCOA_EXPERIMENTAL_CTRL_G}" = "yes"; then
14884
14885 cat >>confdefs.h <<\_ACEOF
14886 #define COCOA_EXPERIMENTAL_CTRL_G 1
14887 _ACEOF
14888
14889 fi
14890 if test "${NS_IMPL_GNUSTEP}" = "yes"; then
14891
14892 cat >>confdefs.h <<\_ACEOF
14893 #define NS_IMPL_GNUSTEP 1
14894 _ACEOF
14895
14896 fi
14897 if test "${NS_HAVE_INTEGER}" = "yes"; then
14898
14899 cat >>confdefs.h <<\_ACEOF
14900 #define NS_HAVE_INTEGER 1
14901 _ACEOF
14902
14903 fi
14904 # We also have mouse menus.
14905 HAVE_MENUS=yes
14906 fi
14907
14908
14909 ### Use session management (-lSM -lICE) if available
14910 HAVE_X_SM=no
14911 if test "${HAVE_X11}" = "yes"; then
14912 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14913 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14914 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14915 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14916 echo $ECHO_N "(cached) $ECHO_C" >&6
14917 fi
14918 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14919 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14920 else
14921 # Is the header compilable?
14922 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14923 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14924 cat >conftest.$ac_ext <<_ACEOF
14925 /* confdefs.h. */
14926 _ACEOF
14927 cat confdefs.h >>conftest.$ac_ext
14928 cat >>conftest.$ac_ext <<_ACEOF
14929 /* end confdefs.h. */
14930 $ac_includes_default
14931 #include <X11/SM/SMlib.h>
14932 _ACEOF
14933 rm -f conftest.$ac_objext
14934 if { (ac_try="$ac_compile"
14935 case "(($ac_try" in
14936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14937 *) ac_try_echo=$ac_try;;
14938 esac
14939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14940 (eval "$ac_compile") 2>conftest.er1
14941 ac_status=$?
14942 grep -v '^ *+' conftest.er1 >conftest.err
14943 rm -f conftest.er1
14944 cat conftest.err >&5
14945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14946 (exit $ac_status); } && {
14947 test -z "$ac_c_werror_flag" ||
14948 test ! -s conftest.err
14949 } && test -s conftest.$ac_objext; then
14950 ac_header_compiler=yes
14951 else
14952 echo "$as_me: failed program was:" >&5
14953 sed 's/^/| /' conftest.$ac_ext >&5
14954
14955 ac_header_compiler=no
14956 fi
14957
14958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14959 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14960 echo "${ECHO_T}$ac_header_compiler" >&6; }
14961
14962 # Is the header present?
14963 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14964 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14965 cat >conftest.$ac_ext <<_ACEOF
14966 /* confdefs.h. */
14967 _ACEOF
14968 cat confdefs.h >>conftest.$ac_ext
14969 cat >>conftest.$ac_ext <<_ACEOF
14970 /* end confdefs.h. */
14971 #include <X11/SM/SMlib.h>
14972 _ACEOF
14973 if { (ac_try="$ac_cpp conftest.$ac_ext"
14974 case "(($ac_try" in
14975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14976 *) ac_try_echo=$ac_try;;
14977 esac
14978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14979 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14980 ac_status=$?
14981 grep -v '^ *+' conftest.er1 >conftest.err
14982 rm -f conftest.er1
14983 cat conftest.err >&5
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); } >/dev/null && {
14986 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 }; then
14989 ac_header_preproc=yes
14990 else
14991 echo "$as_me: failed program was:" >&5
14992 sed 's/^/| /' conftest.$ac_ext >&5
14993
14994 ac_header_preproc=no
14995 fi
14996
14997 rm -f conftest.err conftest.$ac_ext
14998 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14999 echo "${ECHO_T}$ac_header_preproc" >&6; }
15000
15001 # So? What about this header?
15002 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15003 yes:no: )
15004 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15005 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15006 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15007 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15008 ac_header_preproc=yes
15009 ;;
15010 no:yes:* )
15011 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15012 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15013 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15014 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15015 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15016 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15018 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15020 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15021 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15022 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15023
15024 ;;
15025 esac
15026 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15027 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15028 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15029 echo $ECHO_N "(cached) $ECHO_C" >&6
15030 else
15031 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15032 fi
15033 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15034 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15035
15036 fi
15037 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15038 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15039 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15040 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 ac_check_lib_save_LIBS=$LIBS
15044 LIBS="-lSM -lICE $LIBS"
15045 cat >conftest.$ac_ext <<_ACEOF
15046 /* confdefs.h. */
15047 _ACEOF
15048 cat confdefs.h >>conftest.$ac_ext
15049 cat >>conftest.$ac_ext <<_ACEOF
15050 /* end confdefs.h. */
15051
15052 /* Override any GCC internal prototype to avoid an error.
15053 Use char because int might match the return type of a GCC
15054 builtin and then its argument prototype would still apply. */
15055 #ifdef __cplusplus
15056 extern "C"
15057 #endif
15058 char SmcOpenConnection ();
15059 int
15060 main ()
15061 {
15062 return SmcOpenConnection ();
15063 ;
15064 return 0;
15065 }
15066 _ACEOF
15067 rm -f conftest.$ac_objext conftest$ac_exeext
15068 if { (ac_try="$ac_link"
15069 case "(($ac_try" in
15070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15071 *) ac_try_echo=$ac_try;;
15072 esac
15073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15074 (eval "$ac_link") 2>conftest.er1
15075 ac_status=$?
15076 grep -v '^ *+' conftest.er1 >conftest.err
15077 rm -f conftest.er1
15078 cat conftest.err >&5
15079 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15080 (exit $ac_status); } && {
15081 test -z "$ac_c_werror_flag" ||
15082 test ! -s conftest.err
15083 } && test -s conftest$ac_exeext &&
15084 $as_test_x conftest$ac_exeext; then
15085 ac_cv_lib_SM_SmcOpenConnection=yes
15086 else
15087 echo "$as_me: failed program was:" >&5
15088 sed 's/^/| /' conftest.$ac_ext >&5
15089
15090 ac_cv_lib_SM_SmcOpenConnection=no
15091 fi
15092
15093 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15094 conftest$ac_exeext conftest.$ac_ext
15095 LIBS=$ac_check_lib_save_LIBS
15096 fi
15097 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15098 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15099 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15100 HAVE_X_SM=yes
15101 fi
15102
15103 fi
15104
15105
15106
15107 if test "${HAVE_X_SM}" = "yes"; then
15108
15109 cat >>confdefs.h <<\_ACEOF
15110 #define HAVE_X_SM 1
15111 _ACEOF
15112
15113 case "$LIBS" in
15114 *-lSM*) ;;
15115 *) LIBS="-lSM -lICE $LIBS" ;;
15116 esac
15117 fi
15118 fi
15119
15120 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15121 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15122 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15123 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15124 echo $ECHO_N "(cached) $ECHO_C" >&6
15125 else
15126 cat >conftest.$ac_ext <<_ACEOF
15127 /* confdefs.h. */
15128 _ACEOF
15129 cat confdefs.h >>conftest.$ac_ext
15130 cat >>conftest.$ac_ext <<_ACEOF
15131 /* end confdefs.h. */
15132 #include <netdb.h>
15133 int
15134 main ()
15135 {
15136 return h_errno;
15137 ;
15138 return 0;
15139 }
15140 _ACEOF
15141 rm -f conftest.$ac_objext conftest$ac_exeext
15142 if { (ac_try="$ac_link"
15143 case "(($ac_try" in
15144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15145 *) ac_try_echo=$ac_try;;
15146 esac
15147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15148 (eval "$ac_link") 2>conftest.er1
15149 ac_status=$?
15150 grep -v '^ *+' conftest.er1 >conftest.err
15151 rm -f conftest.er1
15152 cat conftest.err >&5
15153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15154 (exit $ac_status); } && {
15155 test -z "$ac_c_werror_flag" ||
15156 test ! -s conftest.err
15157 } && test -s conftest$ac_exeext &&
15158 $as_test_x conftest$ac_exeext; then
15159 emacs_cv_netdb_declares_h_errno=yes
15160 else
15161 echo "$as_me: failed program was:" >&5
15162 sed 's/^/| /' conftest.$ac_ext >&5
15163
15164 emacs_cv_netdb_declares_h_errno=no
15165 fi
15166
15167 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15168 conftest$ac_exeext conftest.$ac_ext
15169 fi
15170 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15171 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15172 if test $emacs_cv_netdb_declares_h_errno = yes; then
15173
15174 cat >>confdefs.h <<\_ACEOF
15175 #define HAVE_H_ERRNO 1
15176 _ACEOF
15177
15178 fi
15179
15180 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15181 # for constant arguments. Useless!
15182 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15183 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15184 if test "${ac_cv_working_alloca_h+set}" = set; then
15185 echo $ECHO_N "(cached) $ECHO_C" >&6
15186 else
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193 #include <alloca.h>
15194 int
15195 main ()
15196 {
15197 char *p = (char *) alloca (2 * sizeof (int));
15198 if (p) return 0;
15199 ;
15200 return 0;
15201 }
15202 _ACEOF
15203 rm -f conftest.$ac_objext conftest$ac_exeext
15204 if { (ac_try="$ac_link"
15205 case "(($ac_try" in
15206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15207 *) ac_try_echo=$ac_try;;
15208 esac
15209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15210 (eval "$ac_link") 2>conftest.er1
15211 ac_status=$?
15212 grep -v '^ *+' conftest.er1 >conftest.err
15213 rm -f conftest.er1
15214 cat conftest.err >&5
15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15216 (exit $ac_status); } && {
15217 test -z "$ac_c_werror_flag" ||
15218 test ! -s conftest.err
15219 } && test -s conftest$ac_exeext &&
15220 $as_test_x conftest$ac_exeext; then
15221 ac_cv_working_alloca_h=yes
15222 else
15223 echo "$as_me: failed program was:" >&5
15224 sed 's/^/| /' conftest.$ac_ext >&5
15225
15226 ac_cv_working_alloca_h=no
15227 fi
15228
15229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15230 conftest$ac_exeext conftest.$ac_ext
15231 fi
15232 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15233 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15234 if test $ac_cv_working_alloca_h = yes; then
15235
15236 cat >>confdefs.h <<\_ACEOF
15237 #define HAVE_ALLOCA_H 1
15238 _ACEOF
15239
15240 fi
15241
15242 { echo "$as_me:$LINENO: checking for alloca" >&5
15243 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15244 if test "${ac_cv_func_alloca_works+set}" = set; then
15245 echo $ECHO_N "(cached) $ECHO_C" >&6
15246 else
15247 cat >conftest.$ac_ext <<_ACEOF
15248 /* confdefs.h. */
15249 _ACEOF
15250 cat confdefs.h >>conftest.$ac_ext
15251 cat >>conftest.$ac_ext <<_ACEOF
15252 /* end confdefs.h. */
15253 #ifdef __GNUC__
15254 # define alloca __builtin_alloca
15255 #else
15256 # ifdef _MSC_VER
15257 # include <malloc.h>
15258 # define alloca _alloca
15259 # else
15260 # ifdef HAVE_ALLOCA_H
15261 # include <alloca.h>
15262 # else
15263 # ifdef _AIX
15264 #pragma alloca
15265 # else
15266 # ifndef alloca /* predefined by HP cc +Olibcalls */
15267 char *alloca ();
15268 # endif
15269 # endif
15270 # endif
15271 # endif
15272 #endif
15273
15274 int
15275 main ()
15276 {
15277 char *p = (char *) alloca (1);
15278 if (p) return 0;
15279 ;
15280 return 0;
15281 }
15282 _ACEOF
15283 rm -f conftest.$ac_objext conftest$ac_exeext
15284 if { (ac_try="$ac_link"
15285 case "(($ac_try" in
15286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15287 *) ac_try_echo=$ac_try;;
15288 esac
15289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15290 (eval "$ac_link") 2>conftest.er1
15291 ac_status=$?
15292 grep -v '^ *+' conftest.er1 >conftest.err
15293 rm -f conftest.er1
15294 cat conftest.err >&5
15295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15296 (exit $ac_status); } && {
15297 test -z "$ac_c_werror_flag" ||
15298 test ! -s conftest.err
15299 } && test -s conftest$ac_exeext &&
15300 $as_test_x conftest$ac_exeext; then
15301 ac_cv_func_alloca_works=yes
15302 else
15303 echo "$as_me: failed program was:" >&5
15304 sed 's/^/| /' conftest.$ac_ext >&5
15305
15306 ac_cv_func_alloca_works=no
15307 fi
15308
15309 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15310 conftest$ac_exeext conftest.$ac_ext
15311 fi
15312 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15313 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15314
15315 if test $ac_cv_func_alloca_works = yes; then
15316
15317 cat >>confdefs.h <<\_ACEOF
15318 #define HAVE_ALLOCA 1
15319 _ACEOF
15320
15321 else
15322 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15323 # that cause trouble. Some versions do not even contain alloca or
15324 # contain a buggy version. If you still want to use their alloca,
15325 # use ar to extract alloca.o from them instead of compiling alloca.c.
15326
15327 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15328
15329 cat >>confdefs.h <<\_ACEOF
15330 #define C_ALLOCA 1
15331 _ACEOF
15332
15333
15334 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15335 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15336 if test "${ac_cv_os_cray+set}" = set; then
15337 echo $ECHO_N "(cached) $ECHO_C" >&6
15338 else
15339 cat >conftest.$ac_ext <<_ACEOF
15340 /* confdefs.h. */
15341 _ACEOF
15342 cat confdefs.h >>conftest.$ac_ext
15343 cat >>conftest.$ac_ext <<_ACEOF
15344 /* end confdefs.h. */
15345 #if defined CRAY && ! defined CRAY2
15346 webecray
15347 #else
15348 wenotbecray
15349 #endif
15350
15351 _ACEOF
15352 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15353 $EGREP "webecray" >/dev/null 2>&1; then
15354 ac_cv_os_cray=yes
15355 else
15356 ac_cv_os_cray=no
15357 fi
15358 rm -f conftest*
15359
15360 fi
15361 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15362 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15363 if test $ac_cv_os_cray = yes; then
15364 for ac_func in _getb67 GETB67 getb67; do
15365 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15366 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15367 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15368 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15369 echo $ECHO_N "(cached) $ECHO_C" >&6
15370 else
15371 cat >conftest.$ac_ext <<_ACEOF
15372 /* confdefs.h. */
15373 _ACEOF
15374 cat confdefs.h >>conftest.$ac_ext
15375 cat >>conftest.$ac_ext <<_ACEOF
15376 /* end confdefs.h. */
15377 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15378 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15379 #define $ac_func innocuous_$ac_func
15380
15381 /* System header to define __stub macros and hopefully few prototypes,
15382 which can conflict with char $ac_func (); below.
15383 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15384 <limits.h> exists even on freestanding compilers. */
15385
15386 #ifdef __STDC__
15387 # include <limits.h>
15388 #else
15389 # include <assert.h>
15390 #endif
15391
15392 #undef $ac_func
15393
15394 /* Override any GCC internal prototype to avoid an error.
15395 Use char because int might match the return type of a GCC
15396 builtin and then its argument prototype would still apply. */
15397 #ifdef __cplusplus
15398 extern "C"
15399 #endif
15400 char $ac_func ();
15401 /* The GNU C library defines this for functions which it implements
15402 to always fail with ENOSYS. Some functions are actually named
15403 something starting with __ and the normal name is an alias. */
15404 #if defined __stub_$ac_func || defined __stub___$ac_func
15405 choke me
15406 #endif
15407
15408 int
15409 main ()
15410 {
15411 return $ac_func ();
15412 ;
15413 return 0;
15414 }
15415 _ACEOF
15416 rm -f conftest.$ac_objext conftest$ac_exeext
15417 if { (ac_try="$ac_link"
15418 case "(($ac_try" in
15419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15420 *) ac_try_echo=$ac_try;;
15421 esac
15422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15423 (eval "$ac_link") 2>conftest.er1
15424 ac_status=$?
15425 grep -v '^ *+' conftest.er1 >conftest.err
15426 rm -f conftest.er1
15427 cat conftest.err >&5
15428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15429 (exit $ac_status); } && {
15430 test -z "$ac_c_werror_flag" ||
15431 test ! -s conftest.err
15432 } && test -s conftest$ac_exeext &&
15433 $as_test_x conftest$ac_exeext; then
15434 eval "$as_ac_var=yes"
15435 else
15436 echo "$as_me: failed program was:" >&5
15437 sed 's/^/| /' conftest.$ac_ext >&5
15438
15439 eval "$as_ac_var=no"
15440 fi
15441
15442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15443 conftest$ac_exeext conftest.$ac_ext
15444 fi
15445 ac_res=`eval echo '${'$as_ac_var'}'`
15446 { echo "$as_me:$LINENO: result: $ac_res" >&5
15447 echo "${ECHO_T}$ac_res" >&6; }
15448 if test `eval echo '${'$as_ac_var'}'` = yes; then
15449
15450 cat >>confdefs.h <<_ACEOF
15451 #define CRAY_STACKSEG_END $ac_func
15452 _ACEOF
15453
15454 break
15455 fi
15456
15457 done
15458 fi
15459
15460 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15461 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15462 if test "${ac_cv_c_stack_direction+set}" = set; then
15463 echo $ECHO_N "(cached) $ECHO_C" >&6
15464 else
15465 if test "$cross_compiling" = yes; then
15466 ac_cv_c_stack_direction=0
15467 else
15468 cat >conftest.$ac_ext <<_ACEOF
15469 /* confdefs.h. */
15470 _ACEOF
15471 cat confdefs.h >>conftest.$ac_ext
15472 cat >>conftest.$ac_ext <<_ACEOF
15473 /* end confdefs.h. */
15474 $ac_includes_default
15475 int
15476 find_stack_direction ()
15477 {
15478 static char *addr = 0;
15479 auto char dummy;
15480 if (addr == 0)
15481 {
15482 addr = &dummy;
15483 return find_stack_direction ();
15484 }
15485 else
15486 return (&dummy > addr) ? 1 : -1;
15487 }
15488
15489 int
15490 main ()
15491 {
15492 return find_stack_direction () < 0;
15493 }
15494 _ACEOF
15495 rm -f conftest$ac_exeext
15496 if { (ac_try="$ac_link"
15497 case "(($ac_try" in
15498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15499 *) ac_try_echo=$ac_try;;
15500 esac
15501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15502 (eval "$ac_link") 2>&5
15503 ac_status=$?
15504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15505 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
15512 ac_status=$?
15513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15514 (exit $ac_status); }; }; then
15515 ac_cv_c_stack_direction=1
15516 else
15517 echo "$as_me: program exited with status $ac_status" >&5
15518 echo "$as_me: failed program was:" >&5
15519 sed 's/^/| /' conftest.$ac_ext >&5
15520
15521 ( exit $ac_status )
15522 ac_cv_c_stack_direction=-1
15523 fi
15524 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15525 fi
15526
15527
15528 fi
15529 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15530 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15531
15532 cat >>confdefs.h <<_ACEOF
15533 #define STACK_DIRECTION $ac_cv_c_stack_direction
15534 _ACEOF
15535
15536
15537 fi
15538
15539
15540 if test x"$ac_cv_func_alloca_works" != xyes; then
15541 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15542 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15543 { (exit 1); exit 1; }; }
15544 fi
15545
15546 # fmod, logb, and frexp are found in -lm on most systems.
15547 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15548
15549 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15550 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15551 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15552 echo $ECHO_N "(cached) $ECHO_C" >&6
15553 else
15554 ac_check_lib_save_LIBS=$LIBS
15555 LIBS="-lm $LIBS"
15556 cat >conftest.$ac_ext <<_ACEOF
15557 /* confdefs.h. */
15558 _ACEOF
15559 cat confdefs.h >>conftest.$ac_ext
15560 cat >>conftest.$ac_ext <<_ACEOF
15561 /* end confdefs.h. */
15562
15563 /* Override any GCC internal prototype to avoid an error.
15564 Use char because int might match the return type of a GCC
15565 builtin and then its argument prototype would still apply. */
15566 #ifdef __cplusplus
15567 extern "C"
15568 #endif
15569 char sqrt ();
15570 int
15571 main ()
15572 {
15573 return sqrt ();
15574 ;
15575 return 0;
15576 }
15577 _ACEOF
15578 rm -f conftest.$ac_objext conftest$ac_exeext
15579 if { (ac_try="$ac_link"
15580 case "(($ac_try" in
15581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15582 *) ac_try_echo=$ac_try;;
15583 esac
15584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15585 (eval "$ac_link") 2>conftest.er1
15586 ac_status=$?
15587 grep -v '^ *+' conftest.er1 >conftest.err
15588 rm -f conftest.er1
15589 cat conftest.err >&5
15590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15591 (exit $ac_status); } && {
15592 test -z "$ac_c_werror_flag" ||
15593 test ! -s conftest.err
15594 } && test -s conftest$ac_exeext &&
15595 $as_test_x conftest$ac_exeext; then
15596 ac_cv_lib_m_sqrt=yes
15597 else
15598 echo "$as_me: failed program was:" >&5
15599 sed 's/^/| /' conftest.$ac_ext >&5
15600
15601 ac_cv_lib_m_sqrt=no
15602 fi
15603
15604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15605 conftest$ac_exeext conftest.$ac_ext
15606 LIBS=$ac_check_lib_save_LIBS
15607 fi
15608 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15609 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15610 if test $ac_cv_lib_m_sqrt = yes; then
15611 cat >>confdefs.h <<_ACEOF
15612 #define HAVE_LIBM 1
15613 _ACEOF
15614
15615 LIBS="-lm $LIBS"
15616
15617 fi
15618
15619
15620 # Check for mail-locking functions in a "mail" library. Probably this should
15621 # have the same check as for liblockfile below.
15622
15623 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15624 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15625 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15626 echo $ECHO_N "(cached) $ECHO_C" >&6
15627 else
15628 ac_check_lib_save_LIBS=$LIBS
15629 LIBS="-lmail $LIBS"
15630 cat >conftest.$ac_ext <<_ACEOF
15631 /* confdefs.h. */
15632 _ACEOF
15633 cat confdefs.h >>conftest.$ac_ext
15634 cat >>conftest.$ac_ext <<_ACEOF
15635 /* end confdefs.h. */
15636
15637 /* Override any GCC internal prototype to avoid an error.
15638 Use char because int might match the return type of a GCC
15639 builtin and then its argument prototype would still apply. */
15640 #ifdef __cplusplus
15641 extern "C"
15642 #endif
15643 char maillock ();
15644 int
15645 main ()
15646 {
15647 return maillock ();
15648 ;
15649 return 0;
15650 }
15651 _ACEOF
15652 rm -f conftest.$ac_objext conftest$ac_exeext
15653 if { (ac_try="$ac_link"
15654 case "(($ac_try" in
15655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15656 *) ac_try_echo=$ac_try;;
15657 esac
15658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15659 (eval "$ac_link") 2>conftest.er1
15660 ac_status=$?
15661 grep -v '^ *+' conftest.er1 >conftest.err
15662 rm -f conftest.er1
15663 cat conftest.err >&5
15664 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15665 (exit $ac_status); } && {
15666 test -z "$ac_c_werror_flag" ||
15667 test ! -s conftest.err
15668 } && test -s conftest$ac_exeext &&
15669 $as_test_x conftest$ac_exeext; then
15670 ac_cv_lib_mail_maillock=yes
15671 else
15672 echo "$as_me: failed program was:" >&5
15673 sed 's/^/| /' conftest.$ac_ext >&5
15674
15675 ac_cv_lib_mail_maillock=no
15676 fi
15677
15678 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15679 conftest$ac_exeext conftest.$ac_ext
15680 LIBS=$ac_check_lib_save_LIBS
15681 fi
15682 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15683 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15684 if test $ac_cv_lib_mail_maillock = yes; then
15685 cat >>confdefs.h <<_ACEOF
15686 #define HAVE_LIBMAIL 1
15687 _ACEOF
15688
15689 LIBS="-lmail $LIBS"
15690
15691 fi
15692
15693
15694 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15695 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15696 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 else
15699 ac_check_lib_save_LIBS=$LIBS
15700 LIBS="-llockfile $LIBS"
15701 cat >conftest.$ac_ext <<_ACEOF
15702 /* confdefs.h. */
15703 _ACEOF
15704 cat confdefs.h >>conftest.$ac_ext
15705 cat >>conftest.$ac_ext <<_ACEOF
15706 /* end confdefs.h. */
15707
15708 /* Override any GCC internal prototype to avoid an error.
15709 Use char because int might match the return type of a GCC
15710 builtin and then its argument prototype would still apply. */
15711 #ifdef __cplusplus
15712 extern "C"
15713 #endif
15714 char maillock ();
15715 int
15716 main ()
15717 {
15718 return maillock ();
15719 ;
15720 return 0;
15721 }
15722 _ACEOF
15723 rm -f conftest.$ac_objext conftest$ac_exeext
15724 if { (ac_try="$ac_link"
15725 case "(($ac_try" in
15726 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15727 *) ac_try_echo=$ac_try;;
15728 esac
15729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15730 (eval "$ac_link") 2>conftest.er1
15731 ac_status=$?
15732 grep -v '^ *+' conftest.er1 >conftest.err
15733 rm -f conftest.er1
15734 cat conftest.err >&5
15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15736 (exit $ac_status); } && {
15737 test -z "$ac_c_werror_flag" ||
15738 test ! -s conftest.err
15739 } && test -s conftest$ac_exeext &&
15740 $as_test_x conftest$ac_exeext; then
15741 ac_cv_lib_lockfile_maillock=yes
15742 else
15743 echo "$as_me: failed program was:" >&5
15744 sed 's/^/| /' conftest.$ac_ext >&5
15745
15746 ac_cv_lib_lockfile_maillock=no
15747 fi
15748
15749 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15750 conftest$ac_exeext conftest.$ac_ext
15751 LIBS=$ac_check_lib_save_LIBS
15752 fi
15753 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15754 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15755 if test $ac_cv_lib_lockfile_maillock = yes; then
15756 cat >>confdefs.h <<_ACEOF
15757 #define HAVE_LIBLOCKFILE 1
15758 _ACEOF
15759
15760 LIBS="-llockfile $LIBS"
15761
15762 fi
15763
15764 # If we have the shared liblockfile, assume we must use it for mail
15765 # locking (e.g. Debian). If we couldn't link against liblockfile
15766 # (no liblockfile.a installed), ensure that we don't need to.
15767 if test "$ac_cv_lib_lockfile_maillock" = no; then
15768 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15769 set dummy liblockfile.so; ac_word=$2
15770 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15771 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15772 if test "${ac_cv_prog_liblockfile+set}" = set; then
15773 echo $ECHO_N "(cached) $ECHO_C" >&6
15774 else
15775 if test -n "$liblockfile"; then
15776 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15777 else
15778 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15779 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15780 for as_dir in $as_dummy
15781 do
15782 IFS=$as_save_IFS
15783 test -z "$as_dir" && as_dir=.
15784 for ac_exec_ext in '' $ac_executable_extensions; do
15785 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15786 ac_cv_prog_liblockfile="yes"
15787 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15788 break 2
15789 fi
15790 done
15791 done
15792 IFS=$as_save_IFS
15793
15794 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15795 fi
15796 fi
15797 liblockfile=$ac_cv_prog_liblockfile
15798 if test -n "$liblockfile"; then
15799 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15800 echo "${ECHO_T}$liblockfile" >&6; }
15801 else
15802 { echo "$as_me:$LINENO: result: no" >&5
15803 echo "${ECHO_T}no" >&6; }
15804 fi
15805
15806
15807 if test $ac_cv_prog_liblockfile = yes; then
15808 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15809 This probably means that movemail could lose mail.
15810 There may be a \`development' package to install containing liblockfile." >&5
15811 echo "$as_me: error: Shared liblockfile found but can't link against it.
15812 This probably means that movemail could lose mail.
15813 There may be a \`development' package to install containing liblockfile." >&2;}
15814 { (exit 1); exit 1; }; }
15815 else :
15816 fi
15817 fi
15818
15819 for ac_func in touchlock
15820 do
15821 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15822 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15823 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15824 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15825 echo $ECHO_N "(cached) $ECHO_C" >&6
15826 else
15827 cat >conftest.$ac_ext <<_ACEOF
15828 /* confdefs.h. */
15829 _ACEOF
15830 cat confdefs.h >>conftest.$ac_ext
15831 cat >>conftest.$ac_ext <<_ACEOF
15832 /* end confdefs.h. */
15833 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15834 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15835 #define $ac_func innocuous_$ac_func
15836
15837 /* System header to define __stub macros and hopefully few prototypes,
15838 which can conflict with char $ac_func (); below.
15839 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15840 <limits.h> exists even on freestanding compilers. */
15841
15842 #ifdef __STDC__
15843 # include <limits.h>
15844 #else
15845 # include <assert.h>
15846 #endif
15847
15848 #undef $ac_func
15849
15850 /* Override any GCC internal prototype to avoid an error.
15851 Use char because int might match the return type of a GCC
15852 builtin and then its argument prototype would still apply. */
15853 #ifdef __cplusplus
15854 extern "C"
15855 #endif
15856 char $ac_func ();
15857 /* The GNU C library defines this for functions which it implements
15858 to always fail with ENOSYS. Some functions are actually named
15859 something starting with __ and the normal name is an alias. */
15860 #if defined __stub_$ac_func || defined __stub___$ac_func
15861 choke me
15862 #endif
15863
15864 int
15865 main ()
15866 {
15867 return $ac_func ();
15868 ;
15869 return 0;
15870 }
15871 _ACEOF
15872 rm -f conftest.$ac_objext conftest$ac_exeext
15873 if { (ac_try="$ac_link"
15874 case "(($ac_try" in
15875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15876 *) ac_try_echo=$ac_try;;
15877 esac
15878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15879 (eval "$ac_link") 2>conftest.er1
15880 ac_status=$?
15881 grep -v '^ *+' conftest.er1 >conftest.err
15882 rm -f conftest.er1
15883 cat conftest.err >&5
15884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15885 (exit $ac_status); } && {
15886 test -z "$ac_c_werror_flag" ||
15887 test ! -s conftest.err
15888 } && test -s conftest$ac_exeext &&
15889 $as_test_x conftest$ac_exeext; then
15890 eval "$as_ac_var=yes"
15891 else
15892 echo "$as_me: failed program was:" >&5
15893 sed 's/^/| /' conftest.$ac_ext >&5
15894
15895 eval "$as_ac_var=no"
15896 fi
15897
15898 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15899 conftest$ac_exeext conftest.$ac_ext
15900 fi
15901 ac_res=`eval echo '${'$as_ac_var'}'`
15902 { echo "$as_me:$LINENO: result: $ac_res" >&5
15903 echo "${ECHO_T}$ac_res" >&6; }
15904 if test `eval echo '${'$as_ac_var'}'` = yes; then
15905 cat >>confdefs.h <<_ACEOF
15906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15907 _ACEOF
15908
15909 fi
15910 done
15911
15912
15913 for ac_header in maillock.h
15914 do
15915 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15917 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15918 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15919 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15920 echo $ECHO_N "(cached) $ECHO_C" >&6
15921 fi
15922 ac_res=`eval echo '${'$as_ac_Header'}'`
15923 { echo "$as_me:$LINENO: result: $ac_res" >&5
15924 echo "${ECHO_T}$ac_res" >&6; }
15925 else
15926 # Is the header compilable?
15927 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15928 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15929 cat >conftest.$ac_ext <<_ACEOF
15930 /* confdefs.h. */
15931 _ACEOF
15932 cat confdefs.h >>conftest.$ac_ext
15933 cat >>conftest.$ac_ext <<_ACEOF
15934 /* end confdefs.h. */
15935 $ac_includes_default
15936 #include <$ac_header>
15937 _ACEOF
15938 rm -f conftest.$ac_objext
15939 if { (ac_try="$ac_compile"
15940 case "(($ac_try" in
15941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15942 *) ac_try_echo=$ac_try;;
15943 esac
15944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15945 (eval "$ac_compile") 2>conftest.er1
15946 ac_status=$?
15947 grep -v '^ *+' conftest.er1 >conftest.err
15948 rm -f conftest.er1
15949 cat conftest.err >&5
15950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15951 (exit $ac_status); } && {
15952 test -z "$ac_c_werror_flag" ||
15953 test ! -s conftest.err
15954 } && test -s conftest.$ac_objext; then
15955 ac_header_compiler=yes
15956 else
15957 echo "$as_me: failed program was:" >&5
15958 sed 's/^/| /' conftest.$ac_ext >&5
15959
15960 ac_header_compiler=no
15961 fi
15962
15963 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15964 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15965 echo "${ECHO_T}$ac_header_compiler" >&6; }
15966
15967 # Is the header present?
15968 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15969 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15970 cat >conftest.$ac_ext <<_ACEOF
15971 /* confdefs.h. */
15972 _ACEOF
15973 cat confdefs.h >>conftest.$ac_ext
15974 cat >>conftest.$ac_ext <<_ACEOF
15975 /* end confdefs.h. */
15976 #include <$ac_header>
15977 _ACEOF
15978 if { (ac_try="$ac_cpp conftest.$ac_ext"
15979 case "(($ac_try" in
15980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15981 *) ac_try_echo=$ac_try;;
15982 esac
15983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15984 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15985 ac_status=$?
15986 grep -v '^ *+' conftest.er1 >conftest.err
15987 rm -f conftest.er1
15988 cat conftest.err >&5
15989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15990 (exit $ac_status); } >/dev/null && {
15991 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15992 test ! -s conftest.err
15993 }; then
15994 ac_header_preproc=yes
15995 else
15996 echo "$as_me: failed program was:" >&5
15997 sed 's/^/| /' conftest.$ac_ext >&5
15998
15999 ac_header_preproc=no
16000 fi
16001
16002 rm -f conftest.err conftest.$ac_ext
16003 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16004 echo "${ECHO_T}$ac_header_preproc" >&6; }
16005
16006 # So? What about this header?
16007 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16008 yes:no: )
16009 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16010 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16011 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16012 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16013 ac_header_preproc=yes
16014 ;;
16015 no:yes:* )
16016 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16017 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16018 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16019 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16020 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16021 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16022 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16023 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16025 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16026 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16027 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16028
16029 ;;
16030 esac
16031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16034 echo $ECHO_N "(cached) $ECHO_C" >&6
16035 else
16036 eval "$as_ac_Header=\$ac_header_preproc"
16037 fi
16038 ac_res=`eval echo '${'$as_ac_Header'}'`
16039 { echo "$as_me:$LINENO: result: $ac_res" >&5
16040 echo "${ECHO_T}$ac_res" >&6; }
16041
16042 fi
16043 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16044 cat >>confdefs.h <<_ACEOF
16045 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16046 _ACEOF
16047
16048 fi
16049
16050 done
16051
16052
16053
16054
16055
16056
16057
16058
16059
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 for ac_func in gethostname getdomainname dup2 \
16125 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16126 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
16127 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16128 utimes getrlimit setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16129 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16130 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16131 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16132 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign \
16133 cfmakeraw cfsetspeed
16134 do
16135 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16136 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16137 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16138 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16139 echo $ECHO_N "(cached) $ECHO_C" >&6
16140 else
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16149 #define $ac_func innocuous_$ac_func
16150
16151 /* System header to define __stub macros and hopefully few prototypes,
16152 which can conflict with char $ac_func (); below.
16153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16154 <limits.h> exists even on freestanding compilers. */
16155
16156 #ifdef __STDC__
16157 # include <limits.h>
16158 #else
16159 # include <assert.h>
16160 #endif
16161
16162 #undef $ac_func
16163
16164 /* Override any GCC internal prototype to avoid an error.
16165 Use char because int might match the return type of a GCC
16166 builtin and then its argument prototype would still apply. */
16167 #ifdef __cplusplus
16168 extern "C"
16169 #endif
16170 char $ac_func ();
16171 /* The GNU C library defines this for functions which it implements
16172 to always fail with ENOSYS. Some functions are actually named
16173 something starting with __ and the normal name is an alias. */
16174 #if defined __stub_$ac_func || defined __stub___$ac_func
16175 choke me
16176 #endif
16177
16178 int
16179 main ()
16180 {
16181 return $ac_func ();
16182 ;
16183 return 0;
16184 }
16185 _ACEOF
16186 rm -f conftest.$ac_objext conftest$ac_exeext
16187 if { (ac_try="$ac_link"
16188 case "(($ac_try" in
16189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16190 *) ac_try_echo=$ac_try;;
16191 esac
16192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16193 (eval "$ac_link") 2>conftest.er1
16194 ac_status=$?
16195 grep -v '^ *+' conftest.er1 >conftest.err
16196 rm -f conftest.er1
16197 cat conftest.err >&5
16198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16199 (exit $ac_status); } && {
16200 test -z "$ac_c_werror_flag" ||
16201 test ! -s conftest.err
16202 } && test -s conftest$ac_exeext &&
16203 $as_test_x conftest$ac_exeext; then
16204 eval "$as_ac_var=yes"
16205 else
16206 echo "$as_me: failed program was:" >&5
16207 sed 's/^/| /' conftest.$ac_ext >&5
16208
16209 eval "$as_ac_var=no"
16210 fi
16211
16212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16213 conftest$ac_exeext conftest.$ac_ext
16214 fi
16215 ac_res=`eval echo '${'$as_ac_var'}'`
16216 { echo "$as_me:$LINENO: result: $ac_res" >&5
16217 echo "${ECHO_T}$ac_res" >&6; }
16218 if test `eval echo '${'$as_ac_var'}'` = yes; then
16219 cat >>confdefs.h <<_ACEOF
16220 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16221 _ACEOF
16222
16223 fi
16224 done
16225
16226
16227
16228 for ac_header in sys/un.h
16229 do
16230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 fi
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16240 else
16241 # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h. */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 $ac_includes_default
16251 #include <$ac_header>
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 ac_header_compiler=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_header_compiler=no
16276 fi
16277
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16280 echo "${ECHO_T}$ac_header_compiler" >&6; }
16281
16282 # Is the header present?
16283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <$ac_header>
16292 _ACEOF
16293 if { (ac_try="$ac_cpp conftest.$ac_ext"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } >/dev/null && {
16306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 }; then
16309 ac_header_preproc=yes
16310 else
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ac_header_preproc=no
16315 fi
16316
16317 rm -f conftest.err conftest.$ac_ext
16318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16319 echo "${ECHO_T}$ac_header_preproc" >&6; }
16320
16321 # So? What about this header?
16322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16323 yes:no: )
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16328 ac_header_preproc=yes
16329 ;;
16330 no:yes:* )
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16343
16344 ;;
16345 esac
16346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 eval "$as_ac_Header=\$ac_header_preproc"
16352 fi
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356
16357 fi
16358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361 _ACEOF
16362
16363 fi
16364
16365 done
16366
16367
16368
16369
16370
16371
16372 for ac_header in $ac_header_list
16373 do
16374 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16375 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16376 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16377 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 fi
16381 ac_res=`eval echo '${'$as_ac_Header'}'`
16382 { echo "$as_me:$LINENO: result: $ac_res" >&5
16383 echo "${ECHO_T}$ac_res" >&6; }
16384 else
16385 # Is the header compilable?
16386 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16387 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16388 cat >conftest.$ac_ext <<_ACEOF
16389 /* confdefs.h. */
16390 _ACEOF
16391 cat confdefs.h >>conftest.$ac_ext
16392 cat >>conftest.$ac_ext <<_ACEOF
16393 /* end confdefs.h. */
16394 $ac_includes_default
16395 #include <$ac_header>
16396 _ACEOF
16397 rm -f conftest.$ac_objext
16398 if { (ac_try="$ac_compile"
16399 case "(($ac_try" in
16400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16401 *) ac_try_echo=$ac_try;;
16402 esac
16403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16404 (eval "$ac_compile") 2>conftest.er1
16405 ac_status=$?
16406 grep -v '^ *+' conftest.er1 >conftest.err
16407 rm -f conftest.er1
16408 cat conftest.err >&5
16409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16410 (exit $ac_status); } && {
16411 test -z "$ac_c_werror_flag" ||
16412 test ! -s conftest.err
16413 } && test -s conftest.$ac_objext; then
16414 ac_header_compiler=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_header_compiler=no
16420 fi
16421
16422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16423 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16424 echo "${ECHO_T}$ac_header_compiler" >&6; }
16425
16426 # Is the header present?
16427 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16428 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16429 cat >conftest.$ac_ext <<_ACEOF
16430 /* confdefs.h. */
16431 _ACEOF
16432 cat confdefs.h >>conftest.$ac_ext
16433 cat >>conftest.$ac_ext <<_ACEOF
16434 /* end confdefs.h. */
16435 #include <$ac_header>
16436 _ACEOF
16437 if { (ac_try="$ac_cpp conftest.$ac_ext"
16438 case "(($ac_try" in
16439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16440 *) ac_try_echo=$ac_try;;
16441 esac
16442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16443 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16444 ac_status=$?
16445 grep -v '^ *+' conftest.er1 >conftest.err
16446 rm -f conftest.er1
16447 cat conftest.err >&5
16448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16449 (exit $ac_status); } >/dev/null && {
16450 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16451 test ! -s conftest.err
16452 }; then
16453 ac_header_preproc=yes
16454 else
16455 echo "$as_me: failed program was:" >&5
16456 sed 's/^/| /' conftest.$ac_ext >&5
16457
16458 ac_header_preproc=no
16459 fi
16460
16461 rm -f conftest.err conftest.$ac_ext
16462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16463 echo "${ECHO_T}$ac_header_preproc" >&6; }
16464
16465 # So? What about this header?
16466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16467 yes:no: )
16468 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16469 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16471 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16472 ac_header_preproc=yes
16473 ;;
16474 no:yes:* )
16475 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16476 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16477 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16478 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16479 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16480 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16481 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16482 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16483 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16484 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16485 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16486 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16487
16488 ;;
16489 esac
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493 echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495 eval "$as_ac_Header=\$ac_header_preproc"
16496 fi
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498 { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500
16501 fi
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503 cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16505 _ACEOF
16506
16507 fi
16508
16509 done
16510
16511
16512
16513
16514
16515
16516
16517
16518
16519 for ac_func in $ac_func_list
16520 do
16521 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16522 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16523 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16524 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16525 echo $ECHO_N "(cached) $ECHO_C" >&6
16526 else
16527 cat >conftest.$ac_ext <<_ACEOF
16528 /* confdefs.h. */
16529 _ACEOF
16530 cat confdefs.h >>conftest.$ac_ext
16531 cat >>conftest.$ac_ext <<_ACEOF
16532 /* end confdefs.h. */
16533 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16534 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16535 #define $ac_func innocuous_$ac_func
16536
16537 /* System header to define __stub macros and hopefully few prototypes,
16538 which can conflict with char $ac_func (); below.
16539 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16540 <limits.h> exists even on freestanding compilers. */
16541
16542 #ifdef __STDC__
16543 # include <limits.h>
16544 #else
16545 # include <assert.h>
16546 #endif
16547
16548 #undef $ac_func
16549
16550 /* Override any GCC internal prototype to avoid an error.
16551 Use char because int might match the return type of a GCC
16552 builtin and then its argument prototype would still apply. */
16553 #ifdef __cplusplus
16554 extern "C"
16555 #endif
16556 char $ac_func ();
16557 /* The GNU C library defines this for functions which it implements
16558 to always fail with ENOSYS. Some functions are actually named
16559 something starting with __ and the normal name is an alias. */
16560 #if defined __stub_$ac_func || defined __stub___$ac_func
16561 choke me
16562 #endif
16563
16564 int
16565 main ()
16566 {
16567 return $ac_func ();
16568 ;
16569 return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 eval "$as_ac_var=yes"
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 eval "$as_ac_var=no"
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16600 fi
16601 ac_res=`eval echo '${'$as_ac_var'}'`
16602 { echo "$as_me:$LINENO: result: $ac_res" >&5
16603 echo "${ECHO_T}$ac_res" >&6; }
16604 if test `eval echo '${'$as_ac_var'}'` = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16607 _ACEOF
16608
16609 fi
16610 done
16611
16612
16613
16614
16615
16616
16617
16618
16619
16620
16621
16622
16623
16624
16625
16626
16627
16628 { echo "$as_me:$LINENO: checking for working mktime" >&5
16629 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16630 if test "${ac_cv_func_working_mktime+set}" = set; then
16631 echo $ECHO_N "(cached) $ECHO_C" >&6
16632 else
16633 if test "$cross_compiling" = yes; then
16634 ac_cv_func_working_mktime=no
16635 else
16636 cat >conftest.$ac_ext <<_ACEOF
16637 /* confdefs.h. */
16638 _ACEOF
16639 cat confdefs.h >>conftest.$ac_ext
16640 cat >>conftest.$ac_ext <<_ACEOF
16641 /* end confdefs.h. */
16642 /* Test program from Paul Eggert and Tony Leneis. */
16643 #ifdef TIME_WITH_SYS_TIME
16644 # include <sys/time.h>
16645 # include <time.h>
16646 #else
16647 # ifdef HAVE_SYS_TIME_H
16648 # include <sys/time.h>
16649 # else
16650 # include <time.h>
16651 # endif
16652 #endif
16653
16654 #include <stdlib.h>
16655
16656 #ifdef HAVE_UNISTD_H
16657 # include <unistd.h>
16658 #endif
16659
16660 #ifndef HAVE_ALARM
16661 # define alarm(X) /* empty */
16662 #endif
16663
16664 /* Work around redefinition to rpl_putenv by other config tests. */
16665 #undef putenv
16666
16667 static time_t time_t_max;
16668 static time_t time_t_min;
16669
16670 /* Values we'll use to set the TZ environment variable. */
16671 static char *tz_strings[] = {
16672 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16673 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16674 };
16675 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16676
16677 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16678 Based on a problem report from Andreas Jaeger. */
16679 static int
16680 spring_forward_gap ()
16681 {
16682 /* glibc (up to about 1998-10-07) failed this test. */
16683 struct tm tm;
16684
16685 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16686 instead of "TZ=America/Vancouver" in order to detect the bug even
16687 on systems that don't support the Olson extension, or don't have the
16688 full zoneinfo tables installed. */
16689 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16690
16691 tm.tm_year = 98;
16692 tm.tm_mon = 3;
16693 tm.tm_mday = 5;
16694 tm.tm_hour = 2;
16695 tm.tm_min = 0;
16696 tm.tm_sec = 0;
16697 tm.tm_isdst = -1;
16698 return mktime (&tm) != (time_t) -1;
16699 }
16700
16701 static int
16702 mktime_test1 (now)
16703 time_t now;
16704 {
16705 struct tm *lt;
16706 return ! (lt = localtime (&now)) || mktime (lt) == now;
16707 }
16708
16709 static int
16710 mktime_test (now)
16711 time_t now;
16712 {
16713 return (mktime_test1 (now)
16714 && mktime_test1 ((time_t) (time_t_max - now))
16715 && mktime_test1 ((time_t) (time_t_min + now)));
16716 }
16717
16718 static int
16719 irix_6_4_bug ()
16720 {
16721 /* Based on code from Ariel Faigon. */
16722 struct tm tm;
16723 tm.tm_year = 96;
16724 tm.tm_mon = 3;
16725 tm.tm_mday = 0;
16726 tm.tm_hour = 0;
16727 tm.tm_min = 0;
16728 tm.tm_sec = 0;
16729 tm.tm_isdst = -1;
16730 mktime (&tm);
16731 return tm.tm_mon == 2 && tm.tm_mday == 31;
16732 }
16733
16734 static int
16735 bigtime_test (j)
16736 int j;
16737 {
16738 struct tm tm;
16739 time_t now;
16740 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16741 now = mktime (&tm);
16742 if (now != (time_t) -1)
16743 {
16744 struct tm *lt = localtime (&now);
16745 if (! (lt
16746 && lt->tm_year == tm.tm_year
16747 && lt->tm_mon == tm.tm_mon
16748 && lt->tm_mday == tm.tm_mday
16749 && lt->tm_hour == tm.tm_hour
16750 && lt->tm_min == tm.tm_min
16751 && lt->tm_sec == tm.tm_sec
16752 && lt->tm_yday == tm.tm_yday
16753 && lt->tm_wday == tm.tm_wday
16754 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16755 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16756 return 0;
16757 }
16758 return 1;
16759 }
16760
16761 static int
16762 year_2050_test ()
16763 {
16764 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16765 ignoring leap seconds. */
16766 unsigned long int answer = 2527315200UL;
16767
16768 struct tm tm;
16769 time_t t;
16770 tm.tm_year = 2050 - 1900;
16771 tm.tm_mon = 2 - 1;
16772 tm.tm_mday = 1;
16773 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16774 tm.tm_isdst = -1;
16775
16776 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16777 instead of "TZ=America/Vancouver" in order to detect the bug even
16778 on systems that don't support the Olson extension, or don't have the
16779 full zoneinfo tables installed. */
16780 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16781
16782 t = mktime (&tm);
16783
16784 /* Check that the result is either a failure, or close enough
16785 to the correct answer that we can assume the discrepancy is
16786 due to leap seconds. */
16787 return (t == (time_t) -1
16788 || (0 < t && answer - 120 <= t && t <= answer + 120));
16789 }
16790
16791 int
16792 main ()
16793 {
16794 time_t t, delta;
16795 int i, j;
16796
16797 /* This test makes some buggy mktime implementations loop.
16798 Give up after 60 seconds; a mktime slower than that
16799 isn't worth using anyway. */
16800 alarm (60);
16801
16802 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16803 continue;
16804 time_t_max--;
16805 if ((time_t) -1 < 0)
16806 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16807 continue;
16808 delta = time_t_max / 997; /* a suitable prime number */
16809 for (i = 0; i < N_STRINGS; i++)
16810 {
16811 if (tz_strings[i])
16812 putenv (tz_strings[i]);
16813
16814 for (t = 0; t <= time_t_max - delta; t += delta)
16815 if (! mktime_test (t))
16816 return 1;
16817 if (! (mktime_test ((time_t) 1)
16818 && mktime_test ((time_t) (60 * 60))
16819 && mktime_test ((time_t) (60 * 60 * 24))))
16820 return 1;
16821
16822 for (j = 1; 0 < j; j *= 2)
16823 if (! bigtime_test (j))
16824 return 1;
16825 if (! bigtime_test (j - 1))
16826 return 1;
16827 }
16828 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16829 }
16830 _ACEOF
16831 rm -f conftest$ac_exeext
16832 if { (ac_try="$ac_link"
16833 case "(($ac_try" in
16834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16835 *) ac_try_echo=$ac_try;;
16836 esac
16837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16838 (eval "$ac_link") 2>&5
16839 ac_status=$?
16840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16841 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
16848 ac_status=$?
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); }; }; then
16851 ac_cv_func_working_mktime=yes
16852 else
16853 echo "$as_me: program exited with status $ac_status" >&5
16854 echo "$as_me: failed program was:" >&5
16855 sed 's/^/| /' conftest.$ac_ext >&5
16856
16857 ( exit $ac_status )
16858 ac_cv_func_working_mktime=no
16859 fi
16860 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16861 fi
16862
16863
16864 fi
16865 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16866 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16867 if test $ac_cv_func_working_mktime = no; then
16868 case " $LIBOBJS " in
16869 *" mktime.$ac_objext "* ) ;;
16870 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16871 ;;
16872 esac
16873
16874 fi
16875
16876 if test "$ac_cv_func_working_mktime" = no; then
16877
16878 cat >>confdefs.h <<\_ACEOF
16879 #define BROKEN_MKTIME 1
16880 _ACEOF
16881
16882 fi
16883
16884 ac_have_func=no # yes means we've found a way to get the load average.
16885
16886 # Make sure getloadavg.c is where it belongs, at configure-time.
16887 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16888 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16889 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16890 { (exit 1); exit 1; }; }
16891
16892 ac_save_LIBS=$LIBS
16893
16894 # Check for getloadavg, but be sure not to touch the cache variable.
16895 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16896 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16897 if test "${ac_cv_func_getloadavg+set}" = set; then
16898 echo $ECHO_N "(cached) $ECHO_C" >&6
16899 else
16900 cat >conftest.$ac_ext <<_ACEOF
16901 /* confdefs.h. */
16902 _ACEOF
16903 cat confdefs.h >>conftest.$ac_ext
16904 cat >>conftest.$ac_ext <<_ACEOF
16905 /* end confdefs.h. */
16906 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16907 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16908 #define getloadavg innocuous_getloadavg
16909
16910 /* System header to define __stub macros and hopefully few prototypes,
16911 which can conflict with char getloadavg (); below.
16912 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16913 <limits.h> exists even on freestanding compilers. */
16914
16915 #ifdef __STDC__
16916 # include <limits.h>
16917 #else
16918 # include <assert.h>
16919 #endif
16920
16921 #undef getloadavg
16922
16923 /* Override any GCC internal prototype to avoid an error.
16924 Use char because int might match the return type of a GCC
16925 builtin and then its argument prototype would still apply. */
16926 #ifdef __cplusplus
16927 extern "C"
16928 #endif
16929 char getloadavg ();
16930 /* The GNU C library defines this for functions which it implements
16931 to always fail with ENOSYS. Some functions are actually named
16932 something starting with __ and the normal name is an alias. */
16933 #if defined __stub_getloadavg || defined __stub___getloadavg
16934 choke me
16935 #endif
16936
16937 int
16938 main ()
16939 {
16940 return getloadavg ();
16941 ;
16942 return 0;
16943 }
16944 _ACEOF
16945 rm -f conftest.$ac_objext conftest$ac_exeext
16946 if { (ac_try="$ac_link"
16947 case "(($ac_try" in
16948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16949 *) ac_try_echo=$ac_try;;
16950 esac
16951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16952 (eval "$ac_link") 2>conftest.er1
16953 ac_status=$?
16954 grep -v '^ *+' conftest.er1 >conftest.err
16955 rm -f conftest.er1
16956 cat conftest.err >&5
16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16958 (exit $ac_status); } && {
16959 test -z "$ac_c_werror_flag" ||
16960 test ! -s conftest.err
16961 } && test -s conftest$ac_exeext &&
16962 $as_test_x conftest$ac_exeext; then
16963 ac_cv_func_getloadavg=yes
16964 else
16965 echo "$as_me: failed program was:" >&5
16966 sed 's/^/| /' conftest.$ac_ext >&5
16967
16968 ac_cv_func_getloadavg=no
16969 fi
16970
16971 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16972 conftest$ac_exeext conftest.$ac_ext
16973 fi
16974 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16975 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16976 if test $ac_cv_func_getloadavg = yes; then
16977 exit 0
16978 else
16979 exit 1
16980 fi
16981 ) && ac_have_func=yes
16982
16983 # On HPUX9, an unprivileged user can get load averages through this function.
16984
16985 for ac_func in pstat_getdynamic
16986 do
16987 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16988 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16989 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16990 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16991 echo $ECHO_N "(cached) $ECHO_C" >&6
16992 else
16993 cat >conftest.$ac_ext <<_ACEOF
16994 /* confdefs.h. */
16995 _ACEOF
16996 cat confdefs.h >>conftest.$ac_ext
16997 cat >>conftest.$ac_ext <<_ACEOF
16998 /* end confdefs.h. */
16999 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17000 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17001 #define $ac_func innocuous_$ac_func
17002
17003 /* System header to define __stub macros and hopefully few prototypes,
17004 which can conflict with char $ac_func (); below.
17005 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17006 <limits.h> exists even on freestanding compilers. */
17007
17008 #ifdef __STDC__
17009 # include <limits.h>
17010 #else
17011 # include <assert.h>
17012 #endif
17013
17014 #undef $ac_func
17015
17016 /* Override any GCC internal prototype to avoid an error.
17017 Use char because int might match the return type of a GCC
17018 builtin and then its argument prototype would still apply. */
17019 #ifdef __cplusplus
17020 extern "C"
17021 #endif
17022 char $ac_func ();
17023 /* The GNU C library defines this for functions which it implements
17024 to always fail with ENOSYS. Some functions are actually named
17025 something starting with __ and the normal name is an alias. */
17026 #if defined __stub_$ac_func || defined __stub___$ac_func
17027 choke me
17028 #endif
17029
17030 int
17031 main ()
17032 {
17033 return $ac_func ();
17034 ;
17035 return 0;
17036 }
17037 _ACEOF
17038 rm -f conftest.$ac_objext conftest$ac_exeext
17039 if { (ac_try="$ac_link"
17040 case "(($ac_try" in
17041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17042 *) ac_try_echo=$ac_try;;
17043 esac
17044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17045 (eval "$ac_link") 2>conftest.er1
17046 ac_status=$?
17047 grep -v '^ *+' conftest.er1 >conftest.err
17048 rm -f conftest.er1
17049 cat conftest.err >&5
17050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17051 (exit $ac_status); } && {
17052 test -z "$ac_c_werror_flag" ||
17053 test ! -s conftest.err
17054 } && test -s conftest$ac_exeext &&
17055 $as_test_x conftest$ac_exeext; then
17056 eval "$as_ac_var=yes"
17057 else
17058 echo "$as_me: failed program was:" >&5
17059 sed 's/^/| /' conftest.$ac_ext >&5
17060
17061 eval "$as_ac_var=no"
17062 fi
17063
17064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17065 conftest$ac_exeext conftest.$ac_ext
17066 fi
17067 ac_res=`eval echo '${'$as_ac_var'}'`
17068 { echo "$as_me:$LINENO: result: $ac_res" >&5
17069 echo "${ECHO_T}$ac_res" >&6; }
17070 if test `eval echo '${'$as_ac_var'}'` = yes; then
17071 cat >>confdefs.h <<_ACEOF
17072 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17073 _ACEOF
17074
17075 fi
17076 done
17077
17078
17079 # Solaris has libkstat which does not require root.
17080
17081 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17082 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17083 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lkstat $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char kstat_open ();
17102 int
17103 main ()
17104 {
17105 return kstat_open ();
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_kstat_kstat_open=yes
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_lib_kstat_kstat_open=no
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17139 fi
17140 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17141 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17142 if test $ac_cv_lib_kstat_kstat_open = yes; then
17143 cat >>confdefs.h <<_ACEOF
17144 #define HAVE_LIBKSTAT 1
17145 _ACEOF
17146
17147 LIBS="-lkstat $LIBS"
17148
17149 fi
17150
17151 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17152
17153 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17154 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17155 # to get the right answer into the cache.
17156 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17157 if test $ac_have_func = no; then
17158 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17159 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17160 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17161 echo $ECHO_N "(cached) $ECHO_C" >&6
17162 else
17163 ac_check_lib_save_LIBS=$LIBS
17164 LIBS="-lelf $LIBS"
17165 cat >conftest.$ac_ext <<_ACEOF
17166 /* confdefs.h. */
17167 _ACEOF
17168 cat confdefs.h >>conftest.$ac_ext
17169 cat >>conftest.$ac_ext <<_ACEOF
17170 /* end confdefs.h. */
17171
17172 /* Override any GCC internal prototype to avoid an error.
17173 Use char because int might match the return type of a GCC
17174 builtin and then its argument prototype would still apply. */
17175 #ifdef __cplusplus
17176 extern "C"
17177 #endif
17178 char elf_begin ();
17179 int
17180 main ()
17181 {
17182 return elf_begin ();
17183 ;
17184 return 0;
17185 }
17186 _ACEOF
17187 rm -f conftest.$ac_objext conftest$ac_exeext
17188 if { (ac_try="$ac_link"
17189 case "(($ac_try" in
17190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17191 *) ac_try_echo=$ac_try;;
17192 esac
17193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17194 (eval "$ac_link") 2>conftest.er1
17195 ac_status=$?
17196 grep -v '^ *+' conftest.er1 >conftest.err
17197 rm -f conftest.er1
17198 cat conftest.err >&5
17199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17200 (exit $ac_status); } && {
17201 test -z "$ac_c_werror_flag" ||
17202 test ! -s conftest.err
17203 } && test -s conftest$ac_exeext &&
17204 $as_test_x conftest$ac_exeext; then
17205 ac_cv_lib_elf_elf_begin=yes
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ac_cv_lib_elf_elf_begin=no
17211 fi
17212
17213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17214 conftest$ac_exeext conftest.$ac_ext
17215 LIBS=$ac_check_lib_save_LIBS
17216 fi
17217 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17218 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17219 if test $ac_cv_lib_elf_elf_begin = yes; then
17220 LIBS="-lelf $LIBS"
17221 fi
17222
17223 fi
17224 if test $ac_have_func = no; then
17225 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17226 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17227 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17228 echo $ECHO_N "(cached) $ECHO_C" >&6
17229 else
17230 ac_check_lib_save_LIBS=$LIBS
17231 LIBS="-lkvm $LIBS"
17232 cat >conftest.$ac_ext <<_ACEOF
17233 /* confdefs.h. */
17234 _ACEOF
17235 cat confdefs.h >>conftest.$ac_ext
17236 cat >>conftest.$ac_ext <<_ACEOF
17237 /* end confdefs.h. */
17238
17239 /* Override any GCC internal prototype to avoid an error.
17240 Use char because int might match the return type of a GCC
17241 builtin and then its argument prototype would still apply. */
17242 #ifdef __cplusplus
17243 extern "C"
17244 #endif
17245 char kvm_open ();
17246 int
17247 main ()
17248 {
17249 return kvm_open ();
17250 ;
17251 return 0;
17252 }
17253 _ACEOF
17254 rm -f conftest.$ac_objext conftest$ac_exeext
17255 if { (ac_try="$ac_link"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_link") 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest$ac_exeext &&
17271 $as_test_x conftest$ac_exeext; then
17272 ac_cv_lib_kvm_kvm_open=yes
17273 else
17274 echo "$as_me: failed program was:" >&5
17275 sed 's/^/| /' conftest.$ac_ext >&5
17276
17277 ac_cv_lib_kvm_kvm_open=no
17278 fi
17279
17280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17281 conftest$ac_exeext conftest.$ac_ext
17282 LIBS=$ac_check_lib_save_LIBS
17283 fi
17284 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17285 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17286 if test $ac_cv_lib_kvm_kvm_open = yes; then
17287 LIBS="-lkvm $LIBS"
17288 fi
17289
17290 # Check for the 4.4BSD definition of getloadavg.
17291 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17292 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17293 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17294 echo $ECHO_N "(cached) $ECHO_C" >&6
17295 else
17296 ac_check_lib_save_LIBS=$LIBS
17297 LIBS="-lutil $LIBS"
17298 cat >conftest.$ac_ext <<_ACEOF
17299 /* confdefs.h. */
17300 _ACEOF
17301 cat confdefs.h >>conftest.$ac_ext
17302 cat >>conftest.$ac_ext <<_ACEOF
17303 /* end confdefs.h. */
17304
17305 /* Override any GCC internal prototype to avoid an error.
17306 Use char because int might match the return type of a GCC
17307 builtin and then its argument prototype would still apply. */
17308 #ifdef __cplusplus
17309 extern "C"
17310 #endif
17311 char getloadavg ();
17312 int
17313 main ()
17314 {
17315 return getloadavg ();
17316 ;
17317 return 0;
17318 }
17319 _ACEOF
17320 rm -f conftest.$ac_objext conftest$ac_exeext
17321 if { (ac_try="$ac_link"
17322 case "(($ac_try" in
17323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17324 *) ac_try_echo=$ac_try;;
17325 esac
17326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17327 (eval "$ac_link") 2>conftest.er1
17328 ac_status=$?
17329 grep -v '^ *+' conftest.er1 >conftest.err
17330 rm -f conftest.er1
17331 cat conftest.err >&5
17332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17333 (exit $ac_status); } && {
17334 test -z "$ac_c_werror_flag" ||
17335 test ! -s conftest.err
17336 } && test -s conftest$ac_exeext &&
17337 $as_test_x conftest$ac_exeext; then
17338 ac_cv_lib_util_getloadavg=yes
17339 else
17340 echo "$as_me: failed program was:" >&5
17341 sed 's/^/| /' conftest.$ac_ext >&5
17342
17343 ac_cv_lib_util_getloadavg=no
17344 fi
17345
17346 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17347 conftest$ac_exeext conftest.$ac_ext
17348 LIBS=$ac_check_lib_save_LIBS
17349 fi
17350 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17351 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17352 if test $ac_cv_lib_util_getloadavg = yes; then
17353 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17354 fi
17355
17356 fi
17357
17358 if test $ac_have_func = no; then
17359 # There is a commonly available library for RS/6000 AIX.
17360 # Since it is not a standard part of AIX, it might be installed locally.
17361 ac_getloadavg_LIBS=$LIBS
17362 LIBS="-L/usr/local/lib $LIBS"
17363 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17364 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17365 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17366 echo $ECHO_N "(cached) $ECHO_C" >&6
17367 else
17368 ac_check_lib_save_LIBS=$LIBS
17369 LIBS="-lgetloadavg $LIBS"
17370 cat >conftest.$ac_ext <<_ACEOF
17371 /* confdefs.h. */
17372 _ACEOF
17373 cat confdefs.h >>conftest.$ac_ext
17374 cat >>conftest.$ac_ext <<_ACEOF
17375 /* end confdefs.h. */
17376
17377 /* Override any GCC internal prototype to avoid an error.
17378 Use char because int might match the return type of a GCC
17379 builtin and then its argument prototype would still apply. */
17380 #ifdef __cplusplus
17381 extern "C"
17382 #endif
17383 char getloadavg ();
17384 int
17385 main ()
17386 {
17387 return getloadavg ();
17388 ;
17389 return 0;
17390 }
17391 _ACEOF
17392 rm -f conftest.$ac_objext conftest$ac_exeext
17393 if { (ac_try="$ac_link"
17394 case "(($ac_try" in
17395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17396 *) ac_try_echo=$ac_try;;
17397 esac
17398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17399 (eval "$ac_link") 2>conftest.er1
17400 ac_status=$?
17401 grep -v '^ *+' conftest.er1 >conftest.err
17402 rm -f conftest.er1
17403 cat conftest.err >&5
17404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17405 (exit $ac_status); } && {
17406 test -z "$ac_c_werror_flag" ||
17407 test ! -s conftest.err
17408 } && test -s conftest$ac_exeext &&
17409 $as_test_x conftest$ac_exeext; then
17410 ac_cv_lib_getloadavg_getloadavg=yes
17411 else
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ac_cv_lib_getloadavg_getloadavg=no
17416 fi
17417
17418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17419 conftest$ac_exeext conftest.$ac_ext
17420 LIBS=$ac_check_lib_save_LIBS
17421 fi
17422 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17423 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17424 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17425 LIBS="-lgetloadavg $LIBS"
17426 else
17427 LIBS=$ac_getloadavg_LIBS
17428 fi
17429
17430 fi
17431
17432 # Make sure it is really in the library, if we think we found it,
17433 # otherwise set up the replacement function.
17434
17435 for ac_func in getloadavg
17436 do
17437 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17438 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17439 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17440 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17441 echo $ECHO_N "(cached) $ECHO_C" >&6
17442 else
17443 cat >conftest.$ac_ext <<_ACEOF
17444 /* confdefs.h. */
17445 _ACEOF
17446 cat confdefs.h >>conftest.$ac_ext
17447 cat >>conftest.$ac_ext <<_ACEOF
17448 /* end confdefs.h. */
17449 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17450 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17451 #define $ac_func innocuous_$ac_func
17452
17453 /* System header to define __stub macros and hopefully few prototypes,
17454 which can conflict with char $ac_func (); below.
17455 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17456 <limits.h> exists even on freestanding compilers. */
17457
17458 #ifdef __STDC__
17459 # include <limits.h>
17460 #else
17461 # include <assert.h>
17462 #endif
17463
17464 #undef $ac_func
17465
17466 /* Override any GCC internal prototype to avoid an error.
17467 Use char because int might match the return type of a GCC
17468 builtin and then its argument prototype would still apply. */
17469 #ifdef __cplusplus
17470 extern "C"
17471 #endif
17472 char $ac_func ();
17473 /* The GNU C library defines this for functions which it implements
17474 to always fail with ENOSYS. Some functions are actually named
17475 something starting with __ and the normal name is an alias. */
17476 #if defined __stub_$ac_func || defined __stub___$ac_func
17477 choke me
17478 #endif
17479
17480 int
17481 main ()
17482 {
17483 return $ac_func ();
17484 ;
17485 return 0;
17486 }
17487 _ACEOF
17488 rm -f conftest.$ac_objext conftest$ac_exeext
17489 if { (ac_try="$ac_link"
17490 case "(($ac_try" in
17491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17492 *) ac_try_echo=$ac_try;;
17493 esac
17494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17495 (eval "$ac_link") 2>conftest.er1
17496 ac_status=$?
17497 grep -v '^ *+' conftest.er1 >conftest.err
17498 rm -f conftest.er1
17499 cat conftest.err >&5
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); } && {
17502 test -z "$ac_c_werror_flag" ||
17503 test ! -s conftest.err
17504 } && test -s conftest$ac_exeext &&
17505 $as_test_x conftest$ac_exeext; then
17506 eval "$as_ac_var=yes"
17507 else
17508 echo "$as_me: failed program was:" >&5
17509 sed 's/^/| /' conftest.$ac_ext >&5
17510
17511 eval "$as_ac_var=no"
17512 fi
17513
17514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17515 conftest$ac_exeext conftest.$ac_ext
17516 fi
17517 ac_res=`eval echo '${'$as_ac_var'}'`
17518 { echo "$as_me:$LINENO: result: $ac_res" >&5
17519 echo "${ECHO_T}$ac_res" >&6; }
17520 if test `eval echo '${'$as_ac_var'}'` = yes; then
17521 cat >>confdefs.h <<_ACEOF
17522 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17523 _ACEOF
17524
17525 else
17526 case " $LIBOBJS " in
17527 *" getloadavg.$ac_objext "* ) ;;
17528 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17529 ;;
17530 esac
17531
17532
17533 cat >>confdefs.h <<\_ACEOF
17534 #define C_GETLOADAVG 1
17535 _ACEOF
17536
17537 # Figure out what our getloadavg.c needs.
17538 ac_have_func=no
17539 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17540 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17541 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17542 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17543 echo $ECHO_N "(cached) $ECHO_C" >&6
17544 fi
17545 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17546 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17547 else
17548 # Is the header compilable?
17549 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17550 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 $ac_includes_default
17558 #include <sys/dg_sys_info.h>
17559 _ACEOF
17560 rm -f conftest.$ac_objext
17561 if { (ac_try="$ac_compile"
17562 case "(($ac_try" in
17563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17564 *) ac_try_echo=$ac_try;;
17565 esac
17566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17567 (eval "$ac_compile") 2>conftest.er1
17568 ac_status=$?
17569 grep -v '^ *+' conftest.er1 >conftest.err
17570 rm -f conftest.er1
17571 cat conftest.err >&5
17572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573 (exit $ac_status); } && {
17574 test -z "$ac_c_werror_flag" ||
17575 test ! -s conftest.err
17576 } && test -s conftest.$ac_objext; then
17577 ac_header_compiler=yes
17578 else
17579 echo "$as_me: failed program was:" >&5
17580 sed 's/^/| /' conftest.$ac_ext >&5
17581
17582 ac_header_compiler=no
17583 fi
17584
17585 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17586 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17587 echo "${ECHO_T}$ac_header_compiler" >&6; }
17588
17589 # Is the header present?
17590 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17591 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17592 cat >conftest.$ac_ext <<_ACEOF
17593 /* confdefs.h. */
17594 _ACEOF
17595 cat confdefs.h >>conftest.$ac_ext
17596 cat >>conftest.$ac_ext <<_ACEOF
17597 /* end confdefs.h. */
17598 #include <sys/dg_sys_info.h>
17599 _ACEOF
17600 if { (ac_try="$ac_cpp conftest.$ac_ext"
17601 case "(($ac_try" in
17602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17603 *) ac_try_echo=$ac_try;;
17604 esac
17605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17606 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17607 ac_status=$?
17608 grep -v '^ *+' conftest.er1 >conftest.err
17609 rm -f conftest.er1
17610 cat conftest.err >&5
17611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17612 (exit $ac_status); } >/dev/null && {
17613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17614 test ! -s conftest.err
17615 }; then
17616 ac_header_preproc=yes
17617 else
17618 echo "$as_me: failed program was:" >&5
17619 sed 's/^/| /' conftest.$ac_ext >&5
17620
17621 ac_header_preproc=no
17622 fi
17623
17624 rm -f conftest.err conftest.$ac_ext
17625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17626 echo "${ECHO_T}$ac_header_preproc" >&6; }
17627
17628 # So? What about this header?
17629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17630 yes:no: )
17631 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17632 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17633 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17634 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17635 ac_header_preproc=yes
17636 ;;
17637 no:yes:* )
17638 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17639 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17640 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17641 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17642 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17643 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17645 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17647 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17649 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17650
17651 ;;
17652 esac
17653 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17654 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17655 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 else
17658 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17659 fi
17660 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17661 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17662
17663 fi
17664 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17665 ac_have_func=yes
17666
17667 cat >>confdefs.h <<\_ACEOF
17668 #define DGUX 1
17669 _ACEOF
17670
17671
17672 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17673 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17674 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17675 echo $ECHO_N "(cached) $ECHO_C" >&6
17676 else
17677 ac_check_lib_save_LIBS=$LIBS
17678 LIBS="-ldgc $LIBS"
17679 cat >conftest.$ac_ext <<_ACEOF
17680 /* confdefs.h. */
17681 _ACEOF
17682 cat confdefs.h >>conftest.$ac_ext
17683 cat >>conftest.$ac_ext <<_ACEOF
17684 /* end confdefs.h. */
17685
17686 /* Override any GCC internal prototype to avoid an error.
17687 Use char because int might match the return type of a GCC
17688 builtin and then its argument prototype would still apply. */
17689 #ifdef __cplusplus
17690 extern "C"
17691 #endif
17692 char dg_sys_info ();
17693 int
17694 main ()
17695 {
17696 return dg_sys_info ();
17697 ;
17698 return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext conftest$ac_exeext
17702 if { (ac_try="$ac_link"
17703 case "(($ac_try" in
17704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705 *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708 (eval "$ac_link") 2>conftest.er1
17709 ac_status=$?
17710 grep -v '^ *+' conftest.er1 >conftest.err
17711 rm -f conftest.er1
17712 cat conftest.err >&5
17713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714 (exit $ac_status); } && {
17715 test -z "$ac_c_werror_flag" ||
17716 test ! -s conftest.err
17717 } && test -s conftest$ac_exeext &&
17718 $as_test_x conftest$ac_exeext; then
17719 ac_cv_lib_dgc_dg_sys_info=yes
17720 else
17721 echo "$as_me: failed program was:" >&5
17722 sed 's/^/| /' conftest.$ac_ext >&5
17723
17724 ac_cv_lib_dgc_dg_sys_info=no
17725 fi
17726
17727 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17728 conftest$ac_exeext conftest.$ac_ext
17729 LIBS=$ac_check_lib_save_LIBS
17730 fi
17731 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17732 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17733 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_LIBDGC 1
17736 _ACEOF
17737
17738 LIBS="-ldgc $LIBS"
17739
17740 fi
17741
17742 fi
17743
17744
17745
17746 if test "${ac_cv_header_locale_h+set}" = set; then
17747 { echo "$as_me:$LINENO: checking for locale.h" >&5
17748 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17749 if test "${ac_cv_header_locale_h+set}" = set; then
17750 echo $ECHO_N "(cached) $ECHO_C" >&6
17751 fi
17752 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17753 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17754 else
17755 # Is the header compilable?
17756 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17757 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17758 cat >conftest.$ac_ext <<_ACEOF
17759 /* confdefs.h. */
17760 _ACEOF
17761 cat confdefs.h >>conftest.$ac_ext
17762 cat >>conftest.$ac_ext <<_ACEOF
17763 /* end confdefs.h. */
17764 $ac_includes_default
17765 #include <locale.h>
17766 _ACEOF
17767 rm -f conftest.$ac_objext
17768 if { (ac_try="$ac_compile"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_compile") 2>conftest.er1
17775 ac_status=$?
17776 grep -v '^ *+' conftest.er1 >conftest.err
17777 rm -f conftest.er1
17778 cat conftest.err >&5
17779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17780 (exit $ac_status); } && {
17781 test -z "$ac_c_werror_flag" ||
17782 test ! -s conftest.err
17783 } && test -s conftest.$ac_objext; then
17784 ac_header_compiler=yes
17785 else
17786 echo "$as_me: failed program was:" >&5
17787 sed 's/^/| /' conftest.$ac_ext >&5
17788
17789 ac_header_compiler=no
17790 fi
17791
17792 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17793 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17794 echo "${ECHO_T}$ac_header_compiler" >&6; }
17795
17796 # Is the header present?
17797 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17798 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17799 cat >conftest.$ac_ext <<_ACEOF
17800 /* confdefs.h. */
17801 _ACEOF
17802 cat confdefs.h >>conftest.$ac_ext
17803 cat >>conftest.$ac_ext <<_ACEOF
17804 /* end confdefs.h. */
17805 #include <locale.h>
17806 _ACEOF
17807 if { (ac_try="$ac_cpp conftest.$ac_ext"
17808 case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17814 ac_status=$?
17815 grep -v '^ *+' conftest.er1 >conftest.err
17816 rm -f conftest.er1
17817 cat conftest.err >&5
17818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17819 (exit $ac_status); } >/dev/null && {
17820 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17821 test ! -s conftest.err
17822 }; then
17823 ac_header_preproc=yes
17824 else
17825 echo "$as_me: failed program was:" >&5
17826 sed 's/^/| /' conftest.$ac_ext >&5
17827
17828 ac_header_preproc=no
17829 fi
17830
17831 rm -f conftest.err conftest.$ac_ext
17832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17833 echo "${ECHO_T}$ac_header_preproc" >&6; }
17834
17835 # So? What about this header?
17836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17837 yes:no: )
17838 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17839 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17840 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17841 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17842 ac_header_preproc=yes
17843 ;;
17844 no:yes:* )
17845 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17846 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17847 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17848 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17850 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17852 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17854 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17856 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17857
17858 ;;
17859 esac
17860 { echo "$as_me:$LINENO: checking for locale.h" >&5
17861 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17862 if test "${ac_cv_header_locale_h+set}" = set; then
17863 echo $ECHO_N "(cached) $ECHO_C" >&6
17864 else
17865 ac_cv_header_locale_h=$ac_header_preproc
17866 fi
17867 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17868 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17869
17870 fi
17871
17872
17873
17874 for ac_func in setlocale
17875 do
17876 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17877 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17878 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17879 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17880 echo $ECHO_N "(cached) $ECHO_C" >&6
17881 else
17882 cat >conftest.$ac_ext <<_ACEOF
17883 /* confdefs.h. */
17884 _ACEOF
17885 cat confdefs.h >>conftest.$ac_ext
17886 cat >>conftest.$ac_ext <<_ACEOF
17887 /* end confdefs.h. */
17888 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17889 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17890 #define $ac_func innocuous_$ac_func
17891
17892 /* System header to define __stub macros and hopefully few prototypes,
17893 which can conflict with char $ac_func (); below.
17894 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17895 <limits.h> exists even on freestanding compilers. */
17896
17897 #ifdef __STDC__
17898 # include <limits.h>
17899 #else
17900 # include <assert.h>
17901 #endif
17902
17903 #undef $ac_func
17904
17905 /* Override any GCC internal prototype to avoid an error.
17906 Use char because int might match the return type of a GCC
17907 builtin and then its argument prototype would still apply. */
17908 #ifdef __cplusplus
17909 extern "C"
17910 #endif
17911 char $ac_func ();
17912 /* The GNU C library defines this for functions which it implements
17913 to always fail with ENOSYS. Some functions are actually named
17914 something starting with __ and the normal name is an alias. */
17915 #if defined __stub_$ac_func || defined __stub___$ac_func
17916 choke me
17917 #endif
17918
17919 int
17920 main ()
17921 {
17922 return $ac_func ();
17923 ;
17924 return 0;
17925 }
17926 _ACEOF
17927 rm -f conftest.$ac_objext conftest$ac_exeext
17928 if { (ac_try="$ac_link"
17929 case "(($ac_try" in
17930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17931 *) ac_try_echo=$ac_try;;
17932 esac
17933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17934 (eval "$ac_link") 2>conftest.er1
17935 ac_status=$?
17936 grep -v '^ *+' conftest.er1 >conftest.err
17937 rm -f conftest.er1
17938 cat conftest.err >&5
17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17940 (exit $ac_status); } && {
17941 test -z "$ac_c_werror_flag" ||
17942 test ! -s conftest.err
17943 } && test -s conftest$ac_exeext &&
17944 $as_test_x conftest$ac_exeext; then
17945 eval "$as_ac_var=yes"
17946 else
17947 echo "$as_me: failed program was:" >&5
17948 sed 's/^/| /' conftest.$ac_ext >&5
17949
17950 eval "$as_ac_var=no"
17951 fi
17952
17953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17954 conftest$ac_exeext conftest.$ac_ext
17955 fi
17956 ac_res=`eval echo '${'$as_ac_var'}'`
17957 { echo "$as_me:$LINENO: result: $ac_res" >&5
17958 echo "${ECHO_T}$ac_res" >&6; }
17959 if test `eval echo '${'$as_ac_var'}'` = yes; then
17960 cat >>confdefs.h <<_ACEOF
17961 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17962 _ACEOF
17963
17964 fi
17965 done
17966
17967
17968 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17969 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17970 # Irix 4.0.5F has the header but not the library.
17971 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17972 ac_have_func=yes
17973
17974 cat >>confdefs.h <<\_ACEOF
17975 #define SVR4 1
17976 _ACEOF
17977
17978 fi
17979
17980 if test $ac_have_func = no; then
17981 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17982 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17983 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17984 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 fi
17987 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17988 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17989 else
17990 # Is the header compilable?
17991 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17992 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17993 cat >conftest.$ac_ext <<_ACEOF
17994 /* confdefs.h. */
17995 _ACEOF
17996 cat confdefs.h >>conftest.$ac_ext
17997 cat >>conftest.$ac_ext <<_ACEOF
17998 /* end confdefs.h. */
17999 $ac_includes_default
18000 #include <inq_stats/cpustats.h>
18001 _ACEOF
18002 rm -f conftest.$ac_objext
18003 if { (ac_try="$ac_compile"
18004 case "(($ac_try" in
18005 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006 *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009 (eval "$ac_compile") 2>conftest.er1
18010 ac_status=$?
18011 grep -v '^ *+' conftest.er1 >conftest.err
18012 rm -f conftest.er1
18013 cat conftest.err >&5
18014 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015 (exit $ac_status); } && {
18016 test -z "$ac_c_werror_flag" ||
18017 test ! -s conftest.err
18018 } && test -s conftest.$ac_objext; then
18019 ac_header_compiler=yes
18020 else
18021 echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024 ac_header_compiler=no
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18028 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18029 echo "${ECHO_T}$ac_header_compiler" >&6; }
18030
18031 # Is the header present?
18032 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18033 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18034 cat >conftest.$ac_ext <<_ACEOF
18035 /* confdefs.h. */
18036 _ACEOF
18037 cat confdefs.h >>conftest.$ac_ext
18038 cat >>conftest.$ac_ext <<_ACEOF
18039 /* end confdefs.h. */
18040 #include <inq_stats/cpustats.h>
18041 _ACEOF
18042 if { (ac_try="$ac_cpp conftest.$ac_ext"
18043 case "(($ac_try" in
18044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18045 *) ac_try_echo=$ac_try;;
18046 esac
18047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18048 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18049 ac_status=$?
18050 grep -v '^ *+' conftest.er1 >conftest.err
18051 rm -f conftest.er1
18052 cat conftest.err >&5
18053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18054 (exit $ac_status); } >/dev/null && {
18055 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18056 test ! -s conftest.err
18057 }; then
18058 ac_header_preproc=yes
18059 else
18060 echo "$as_me: failed program was:" >&5
18061 sed 's/^/| /' conftest.$ac_ext >&5
18062
18063 ac_header_preproc=no
18064 fi
18065
18066 rm -f conftest.err conftest.$ac_ext
18067 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18068 echo "${ECHO_T}$ac_header_preproc" >&6; }
18069
18070 # So? What about this header?
18071 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18072 yes:no: )
18073 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18074 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18075 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18076 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18077 ac_header_preproc=yes
18078 ;;
18079 no:yes:* )
18080 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18081 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18082 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18083 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18084 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18085 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18087 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18088 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18089 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18090 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18091 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18092
18093 ;;
18094 esac
18095 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18096 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18097 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18098 echo $ECHO_N "(cached) $ECHO_C" >&6
18099 else
18100 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18101 fi
18102 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18103 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18104
18105 fi
18106 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18107 ac_have_func=yes
18108
18109 cat >>confdefs.h <<\_ACEOF
18110 #define UMAX 1
18111 _ACEOF
18112
18113
18114 cat >>confdefs.h <<\_ACEOF
18115 #define UMAX4_3 1
18116 _ACEOF
18117
18118 fi
18119
18120
18121 fi
18122
18123 if test $ac_have_func = no; then
18124 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18125 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18126 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18127 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18128 echo $ECHO_N "(cached) $ECHO_C" >&6
18129 fi
18130 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18131 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18132 else
18133 # Is the header compilable?
18134 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
18135 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
18136 cat >conftest.$ac_ext <<_ACEOF
18137 /* confdefs.h. */
18138 _ACEOF
18139 cat confdefs.h >>conftest.$ac_ext
18140 cat >>conftest.$ac_ext <<_ACEOF
18141 /* end confdefs.h. */
18142 $ac_includes_default
18143 #include <sys/cpustats.h>
18144 _ACEOF
18145 rm -f conftest.$ac_objext
18146 if { (ac_try="$ac_compile"
18147 case "(($ac_try" in
18148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18149 *) ac_try_echo=$ac_try;;
18150 esac
18151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18152 (eval "$ac_compile") 2>conftest.er1
18153 ac_status=$?
18154 grep -v '^ *+' conftest.er1 >conftest.err
18155 rm -f conftest.er1
18156 cat conftest.err >&5
18157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18158 (exit $ac_status); } && {
18159 test -z "$ac_c_werror_flag" ||
18160 test ! -s conftest.err
18161 } && test -s conftest.$ac_objext; then
18162 ac_header_compiler=yes
18163 else
18164 echo "$as_me: failed program was:" >&5
18165 sed 's/^/| /' conftest.$ac_ext >&5
18166
18167 ac_header_compiler=no
18168 fi
18169
18170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18172 echo "${ECHO_T}$ac_header_compiler" >&6; }
18173
18174 # Is the header present?
18175 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18176 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18177 cat >conftest.$ac_ext <<_ACEOF
18178 /* confdefs.h. */
18179 _ACEOF
18180 cat confdefs.h >>conftest.$ac_ext
18181 cat >>conftest.$ac_ext <<_ACEOF
18182 /* end confdefs.h. */
18183 #include <sys/cpustats.h>
18184 _ACEOF
18185 if { (ac_try="$ac_cpp conftest.$ac_ext"
18186 case "(($ac_try" in
18187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18188 *) ac_try_echo=$ac_try;;
18189 esac
18190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18192 ac_status=$?
18193 grep -v '^ *+' conftest.er1 >conftest.err
18194 rm -f conftest.er1
18195 cat conftest.err >&5
18196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18197 (exit $ac_status); } >/dev/null && {
18198 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18199 test ! -s conftest.err
18200 }; then
18201 ac_header_preproc=yes
18202 else
18203 echo "$as_me: failed program was:" >&5
18204 sed 's/^/| /' conftest.$ac_ext >&5
18205
18206 ac_header_preproc=no
18207 fi
18208
18209 rm -f conftest.err conftest.$ac_ext
18210 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18211 echo "${ECHO_T}$ac_header_preproc" >&6; }
18212
18213 # So? What about this header?
18214 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18215 yes:no: )
18216 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18217 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18218 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18219 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18220 ac_header_preproc=yes
18221 ;;
18222 no:yes:* )
18223 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18224 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18226 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18228 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18230 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18232 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18234 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18235
18236 ;;
18237 esac
18238 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18239 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18240 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18241 echo $ECHO_N "(cached) $ECHO_C" >&6
18242 else
18243 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18244 fi
18245 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18246 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18247
18248 fi
18249 if test $ac_cv_header_sys_cpustats_h = yes; then
18250 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18251 #define UMAX 1
18252 _ACEOF
18253
18254 fi
18255
18256
18257 fi
18258
18259 if test $ac_have_func = no; then
18260
18261 for ac_header in mach/mach.h
18262 do
18263 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18265 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18266 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18268 echo $ECHO_N "(cached) $ECHO_C" >&6
18269 fi
18270 ac_res=`eval echo '${'$as_ac_Header'}'`
18271 { echo "$as_me:$LINENO: result: $ac_res" >&5
18272 echo "${ECHO_T}$ac_res" >&6; }
18273 else
18274 # Is the header compilable?
18275 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18276 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18277 cat >conftest.$ac_ext <<_ACEOF
18278 /* confdefs.h. */
18279 _ACEOF
18280 cat confdefs.h >>conftest.$ac_ext
18281 cat >>conftest.$ac_ext <<_ACEOF
18282 /* end confdefs.h. */
18283 $ac_includes_default
18284 #include <$ac_header>
18285 _ACEOF
18286 rm -f conftest.$ac_objext
18287 if { (ac_try="$ac_compile"
18288 case "(($ac_try" in
18289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18290 *) ac_try_echo=$ac_try;;
18291 esac
18292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18293 (eval "$ac_compile") 2>conftest.er1
18294 ac_status=$?
18295 grep -v '^ *+' conftest.er1 >conftest.err
18296 rm -f conftest.er1
18297 cat conftest.err >&5
18298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18299 (exit $ac_status); } && {
18300 test -z "$ac_c_werror_flag" ||
18301 test ! -s conftest.err
18302 } && test -s conftest.$ac_objext; then
18303 ac_header_compiler=yes
18304 else
18305 echo "$as_me: failed program was:" >&5
18306 sed 's/^/| /' conftest.$ac_ext >&5
18307
18308 ac_header_compiler=no
18309 fi
18310
18311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18312 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18313 echo "${ECHO_T}$ac_header_compiler" >&6; }
18314
18315 # Is the header present?
18316 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18317 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18318 cat >conftest.$ac_ext <<_ACEOF
18319 /* confdefs.h. */
18320 _ACEOF
18321 cat confdefs.h >>conftest.$ac_ext
18322 cat >>conftest.$ac_ext <<_ACEOF
18323 /* end confdefs.h. */
18324 #include <$ac_header>
18325 _ACEOF
18326 if { (ac_try="$ac_cpp conftest.$ac_ext"
18327 case "(($ac_try" in
18328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18329 *) ac_try_echo=$ac_try;;
18330 esac
18331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18332 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18333 ac_status=$?
18334 grep -v '^ *+' conftest.er1 >conftest.err
18335 rm -f conftest.er1
18336 cat conftest.err >&5
18337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18338 (exit $ac_status); } >/dev/null && {
18339 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18340 test ! -s conftest.err
18341 }; then
18342 ac_header_preproc=yes
18343 else
18344 echo "$as_me: failed program was:" >&5
18345 sed 's/^/| /' conftest.$ac_ext >&5
18346
18347 ac_header_preproc=no
18348 fi
18349
18350 rm -f conftest.err conftest.$ac_ext
18351 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18352 echo "${ECHO_T}$ac_header_preproc" >&6; }
18353
18354 # So? What about this header?
18355 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18356 yes:no: )
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18358 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18359 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18360 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18361 ac_header_preproc=yes
18362 ;;
18363 no:yes:* )
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18365 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18367 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18369 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18371 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18373 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18374 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18375 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18376
18377 ;;
18378 esac
18379 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18380 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18382 echo $ECHO_N "(cached) $ECHO_C" >&6
18383 else
18384 eval "$as_ac_Header=\$ac_header_preproc"
18385 fi
18386 ac_res=`eval echo '${'$as_ac_Header'}'`
18387 { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18389
18390 fi
18391 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18392 cat >>confdefs.h <<_ACEOF
18393 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18394 _ACEOF
18395
18396 fi
18397
18398 done
18399
18400 fi
18401
18402
18403 for ac_header in nlist.h
18404 do
18405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18407 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18410 echo $ECHO_N "(cached) $ECHO_C" >&6
18411 fi
18412 ac_res=`eval echo '${'$as_ac_Header'}'`
18413 { echo "$as_me:$LINENO: result: $ac_res" >&5
18414 echo "${ECHO_T}$ac_res" >&6; }
18415 else
18416 # Is the header compilable?
18417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18419 cat >conftest.$ac_ext <<_ACEOF
18420 /* confdefs.h. */
18421 _ACEOF
18422 cat confdefs.h >>conftest.$ac_ext
18423 cat >>conftest.$ac_ext <<_ACEOF
18424 /* end confdefs.h. */
18425 $ac_includes_default
18426 #include <$ac_header>
18427 _ACEOF
18428 rm -f conftest.$ac_objext
18429 if { (ac_try="$ac_compile"
18430 case "(($ac_try" in
18431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18432 *) ac_try_echo=$ac_try;;
18433 esac
18434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18435 (eval "$ac_compile") 2>conftest.er1
18436 ac_status=$?
18437 grep -v '^ *+' conftest.er1 >conftest.err
18438 rm -f conftest.er1
18439 cat conftest.err >&5
18440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18441 (exit $ac_status); } && {
18442 test -z "$ac_c_werror_flag" ||
18443 test ! -s conftest.err
18444 } && test -s conftest.$ac_objext; then
18445 ac_header_compiler=yes
18446 else
18447 echo "$as_me: failed program was:" >&5
18448 sed 's/^/| /' conftest.$ac_ext >&5
18449
18450 ac_header_compiler=no
18451 fi
18452
18453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18455 echo "${ECHO_T}$ac_header_compiler" >&6; }
18456
18457 # Is the header present?
18458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18460 cat >conftest.$ac_ext <<_ACEOF
18461 /* confdefs.h. */
18462 _ACEOF
18463 cat confdefs.h >>conftest.$ac_ext
18464 cat >>conftest.$ac_ext <<_ACEOF
18465 /* end confdefs.h. */
18466 #include <$ac_header>
18467 _ACEOF
18468 if { (ac_try="$ac_cpp conftest.$ac_ext"
18469 case "(($ac_try" in
18470 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18471 *) ac_try_echo=$ac_try;;
18472 esac
18473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18474 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18475 ac_status=$?
18476 grep -v '^ *+' conftest.er1 >conftest.err
18477 rm -f conftest.er1
18478 cat conftest.err >&5
18479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18480 (exit $ac_status); } >/dev/null && {
18481 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18482 test ! -s conftest.err
18483 }; then
18484 ac_header_preproc=yes
18485 else
18486 echo "$as_me: failed program was:" >&5
18487 sed 's/^/| /' conftest.$ac_ext >&5
18488
18489 ac_header_preproc=no
18490 fi
18491
18492 rm -f conftest.err conftest.$ac_ext
18493 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18494 echo "${ECHO_T}$ac_header_preproc" >&6; }
18495
18496 # So? What about this header?
18497 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18498 yes:no: )
18499 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18500 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18501 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18502 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18503 ac_header_preproc=yes
18504 ;;
18505 no:yes:* )
18506 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18507 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18508 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18509 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18510 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18511 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18512 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18513 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18514 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18515 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18516 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18517 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18518
18519 ;;
18520 esac
18521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18524 echo $ECHO_N "(cached) $ECHO_C" >&6
18525 else
18526 eval "$as_ac_Header=\$ac_header_preproc"
18527 fi
18528 ac_res=`eval echo '${'$as_ac_Header'}'`
18529 { echo "$as_me:$LINENO: result: $ac_res" >&5
18530 echo "${ECHO_T}$ac_res" >&6; }
18531
18532 fi
18533 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18534 cat >>confdefs.h <<_ACEOF
18535 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18536 _ACEOF
18537 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18538 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18539 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18540 echo $ECHO_N "(cached) $ECHO_C" >&6
18541 else
18542 cat >conftest.$ac_ext <<_ACEOF
18543 /* confdefs.h. */
18544 _ACEOF
18545 cat confdefs.h >>conftest.$ac_ext
18546 cat >>conftest.$ac_ext <<_ACEOF
18547 /* end confdefs.h. */
18548 #include <nlist.h>
18549
18550 int
18551 main ()
18552 {
18553 static struct nlist ac_aggr;
18554 if (ac_aggr.n_un.n_name)
18555 return 0;
18556 ;
18557 return 0;
18558 }
18559 _ACEOF
18560 rm -f conftest.$ac_objext
18561 if { (ac_try="$ac_compile"
18562 case "(($ac_try" in
18563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18564 *) ac_try_echo=$ac_try;;
18565 esac
18566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18567 (eval "$ac_compile") 2>conftest.er1
18568 ac_status=$?
18569 grep -v '^ *+' conftest.er1 >conftest.err
18570 rm -f conftest.er1
18571 cat conftest.err >&5
18572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18573 (exit $ac_status); } && {
18574 test -z "$ac_c_werror_flag" ||
18575 test ! -s conftest.err
18576 } && test -s conftest.$ac_objext; then
18577 ac_cv_member_struct_nlist_n_un_n_name=yes
18578 else
18579 echo "$as_me: failed program was:" >&5
18580 sed 's/^/| /' conftest.$ac_ext >&5
18581
18582 cat >conftest.$ac_ext <<_ACEOF
18583 /* confdefs.h. */
18584 _ACEOF
18585 cat confdefs.h >>conftest.$ac_ext
18586 cat >>conftest.$ac_ext <<_ACEOF
18587 /* end confdefs.h. */
18588 #include <nlist.h>
18589
18590 int
18591 main ()
18592 {
18593 static struct nlist ac_aggr;
18594 if (sizeof ac_aggr.n_un.n_name)
18595 return 0;
18596 ;
18597 return 0;
18598 }
18599 _ACEOF
18600 rm -f conftest.$ac_objext
18601 if { (ac_try="$ac_compile"
18602 case "(($ac_try" in
18603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18604 *) ac_try_echo=$ac_try;;
18605 esac
18606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18607 (eval "$ac_compile") 2>conftest.er1
18608 ac_status=$?
18609 grep -v '^ *+' conftest.er1 >conftest.err
18610 rm -f conftest.er1
18611 cat conftest.err >&5
18612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18613 (exit $ac_status); } && {
18614 test -z "$ac_c_werror_flag" ||
18615 test ! -s conftest.err
18616 } && test -s conftest.$ac_objext; then
18617 ac_cv_member_struct_nlist_n_un_n_name=yes
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622 ac_cv_member_struct_nlist_n_un_n_name=no
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18626 fi
18627
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 fi
18630 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18631 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18632 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18633
18634 cat >>confdefs.h <<_ACEOF
18635 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18636 _ACEOF
18637
18638
18639 cat >>confdefs.h <<\_ACEOF
18640 #define NLIST_NAME_UNION 1
18641 _ACEOF
18642
18643 fi
18644
18645
18646 fi
18647
18648 done
18649
18650 fi
18651 done
18652
18653
18654 # Some definitions of getloadavg require that the program be installed setgid.
18655 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18656 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18657 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18658 echo $ECHO_N "(cached) $ECHO_C" >&6
18659 else
18660 cat >conftest.$ac_ext <<_ACEOF
18661 /* confdefs.h. */
18662 _ACEOF
18663 cat confdefs.h >>conftest.$ac_ext
18664 cat >>conftest.$ac_ext <<_ACEOF
18665 /* end confdefs.h. */
18666 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18667 #ifdef LDAV_PRIVILEGED
18668 Yowza Am I SETGID yet
18669 #endif
18670 _ACEOF
18671 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18672 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18673 ac_cv_func_getloadavg_setgid=yes
18674 else
18675 ac_cv_func_getloadavg_setgid=no
18676 fi
18677 rm -f conftest*
18678
18679 fi
18680 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18681 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18682 if test $ac_cv_func_getloadavg_setgid = yes; then
18683 NEED_SETGID=true
18684
18685 cat >>confdefs.h <<\_ACEOF
18686 #define GETLOADAVG_PRIVILEGED 1
18687 _ACEOF
18688
18689 else
18690 NEED_SETGID=false
18691 fi
18692
18693 if test $ac_cv_func_getloadavg_setgid = yes; then
18694 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18695 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18696 if test "${ac_cv_group_kmem+set}" = set; then
18697 echo $ECHO_N "(cached) $ECHO_C" >&6
18698 else
18699 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18700 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18701 # If we got an error (system does not support symlinks), try without -L.
18702 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18703 ac_cv_group_kmem=`echo $ac_ls_output \
18704 | sed -ne 's/[ ][ ]*/ /g;
18705 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18706 / /s/.* //;p;'`
18707
18708 fi
18709 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18710 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18711 KMEM_GROUP=$ac_cv_group_kmem
18712 fi
18713 if test "x$ac_save_LIBS" = x; then
18714 GETLOADAVG_LIBS=$LIBS
18715 else
18716 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18717 fi
18718 LIBS=$ac_save_LIBS
18719
18720
18721
18722 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18723 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18724 if test "${ac_cv_sys_largefile_source+set}" = set; then
18725 echo $ECHO_N "(cached) $ECHO_C" >&6
18726 else
18727 while :; do
18728 cat >conftest.$ac_ext <<_ACEOF
18729 /* confdefs.h. */
18730 _ACEOF
18731 cat confdefs.h >>conftest.$ac_ext
18732 cat >>conftest.$ac_ext <<_ACEOF
18733 /* end confdefs.h. */
18734 #include <stdio.h>
18735 int
18736 main ()
18737 {
18738 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18739 ;
18740 return 0;
18741 }
18742 _ACEOF
18743 rm -f conftest.$ac_objext conftest$ac_exeext
18744 if { (ac_try="$ac_link"
18745 case "(($ac_try" in
18746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18747 *) ac_try_echo=$ac_try;;
18748 esac
18749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18750 (eval "$ac_link") 2>conftest.er1
18751 ac_status=$?
18752 grep -v '^ *+' conftest.er1 >conftest.err
18753 rm -f conftest.er1
18754 cat conftest.err >&5
18755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18756 (exit $ac_status); } && {
18757 test -z "$ac_c_werror_flag" ||
18758 test ! -s conftest.err
18759 } && test -s conftest$ac_exeext &&
18760 $as_test_x conftest$ac_exeext; then
18761 ac_cv_sys_largefile_source=no; break
18762 else
18763 echo "$as_me: failed program was:" >&5
18764 sed 's/^/| /' conftest.$ac_ext >&5
18765
18766
18767 fi
18768
18769 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18770 conftest$ac_exeext conftest.$ac_ext
18771 cat >conftest.$ac_ext <<_ACEOF
18772 /* confdefs.h. */
18773 _ACEOF
18774 cat confdefs.h >>conftest.$ac_ext
18775 cat >>conftest.$ac_ext <<_ACEOF
18776 /* end confdefs.h. */
18777 #define _LARGEFILE_SOURCE 1
18778 #include <stdio.h>
18779 int
18780 main ()
18781 {
18782 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18783 ;
18784 return 0;
18785 }
18786 _ACEOF
18787 rm -f conftest.$ac_objext conftest$ac_exeext
18788 if { (ac_try="$ac_link"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_link") 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } && {
18801 test -z "$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 } && test -s conftest$ac_exeext &&
18804 $as_test_x conftest$ac_exeext; then
18805 ac_cv_sys_largefile_source=1; break
18806 else
18807 echo "$as_me: failed program was:" >&5
18808 sed 's/^/| /' conftest.$ac_ext >&5
18809
18810
18811 fi
18812
18813 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18814 conftest$ac_exeext conftest.$ac_ext
18815 ac_cv_sys_largefile_source=unknown
18816 break
18817 done
18818 fi
18819 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18820 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18821 case $ac_cv_sys_largefile_source in #(
18822 no | unknown) ;;
18823 *)
18824 cat >>confdefs.h <<_ACEOF
18825 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18826 _ACEOF
18827 ;;
18828 esac
18829 rm -f conftest*
18830
18831 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18832 # in glibc 2.1.3, but that breaks too many other things.
18833 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18834 if test $ac_cv_sys_largefile_source != unknown; then
18835
18836 cat >>confdefs.h <<\_ACEOF
18837 #define HAVE_FSEEKO 1
18838 _ACEOF
18839
18840 fi
18841
18842
18843 # Configure getopt.
18844 # getopt.m4 serial 10
18845
18846 # The getopt module assume you want GNU getopt, with getopt_long etc,
18847 # rather than vanilla POSIX getopt. This means your your code should
18848 # always include <getopt.h> for the getopt prototypes.
18849
18850
18851
18852
18853
18854
18855
18856
18857
18858
18859
18860 # Prerequisites of lib/getopt*.
18861
18862
18863
18864
18865 GETOPT_H=
18866
18867 for ac_header in getopt.h
18868 do
18869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18874 echo $ECHO_N "(cached) $ECHO_C" >&6
18875 fi
18876 ac_res=`eval echo '${'$as_ac_Header'}'`
18877 { echo "$as_me:$LINENO: result: $ac_res" >&5
18878 echo "${ECHO_T}$ac_res" >&6; }
18879 else
18880 # Is the header compilable?
18881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18883 cat >conftest.$ac_ext <<_ACEOF
18884 /* confdefs.h. */
18885 _ACEOF
18886 cat confdefs.h >>conftest.$ac_ext
18887 cat >>conftest.$ac_ext <<_ACEOF
18888 /* end confdefs.h. */
18889 $ac_includes_default
18890 #include <$ac_header>
18891 _ACEOF
18892 rm -f conftest.$ac_objext
18893 if { (ac_try="$ac_compile"
18894 case "(($ac_try" in
18895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18896 *) ac_try_echo=$ac_try;;
18897 esac
18898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18899 (eval "$ac_compile") 2>conftest.er1
18900 ac_status=$?
18901 grep -v '^ *+' conftest.er1 >conftest.err
18902 rm -f conftest.er1
18903 cat conftest.err >&5
18904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905 (exit $ac_status); } && {
18906 test -z "$ac_c_werror_flag" ||
18907 test ! -s conftest.err
18908 } && test -s conftest.$ac_objext; then
18909 ac_header_compiler=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 ac_header_compiler=no
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18919 echo "${ECHO_T}$ac_header_compiler" >&6; }
18920
18921 # Is the header present?
18922 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18923 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18924 cat >conftest.$ac_ext <<_ACEOF
18925 /* confdefs.h. */
18926 _ACEOF
18927 cat confdefs.h >>conftest.$ac_ext
18928 cat >>conftest.$ac_ext <<_ACEOF
18929 /* end confdefs.h. */
18930 #include <$ac_header>
18931 _ACEOF
18932 if { (ac_try="$ac_cpp conftest.$ac_ext"
18933 case "(($ac_try" in
18934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18935 *) ac_try_echo=$ac_try;;
18936 esac
18937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18939 ac_status=$?
18940 grep -v '^ *+' conftest.er1 >conftest.err
18941 rm -f conftest.er1
18942 cat conftest.err >&5
18943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18944 (exit $ac_status); } >/dev/null && {
18945 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18946 test ! -s conftest.err
18947 }; then
18948 ac_header_preproc=yes
18949 else
18950 echo "$as_me: failed program was:" >&5
18951 sed 's/^/| /' conftest.$ac_ext >&5
18952
18953 ac_header_preproc=no
18954 fi
18955
18956 rm -f conftest.err conftest.$ac_ext
18957 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18958 echo "${ECHO_T}$ac_header_preproc" >&6; }
18959
18960 # So? What about this header?
18961 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18962 yes:no: )
18963 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18964 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18966 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18967 ac_header_preproc=yes
18968 ;;
18969 no:yes:* )
18970 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18971 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18972 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18973 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18974 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18975 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18976 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18977 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18978 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18979 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18980 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18981 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18982
18983 ;;
18984 esac
18985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18988 echo $ECHO_N "(cached) $ECHO_C" >&6
18989 else
18990 eval "$as_ac_Header=\$ac_header_preproc"
18991 fi
18992 ac_res=`eval echo '${'$as_ac_Header'}'`
18993 { echo "$as_me:$LINENO: result: $ac_res" >&5
18994 echo "${ECHO_T}$ac_res" >&6; }
18995
18996 fi
18997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18998 cat >>confdefs.h <<_ACEOF
18999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19000 _ACEOF
19001
19002 else
19003 GETOPT_H=getopt.h
19004 fi
19005
19006 done
19007
19008 if test -z "$GETOPT_H"; then
19009
19010 for ac_func in getopt_long_only
19011 do
19012 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19013 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19014 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19015 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19016 echo $ECHO_N "(cached) $ECHO_C" >&6
19017 else
19018 cat >conftest.$ac_ext <<_ACEOF
19019 /* confdefs.h. */
19020 _ACEOF
19021 cat confdefs.h >>conftest.$ac_ext
19022 cat >>conftest.$ac_ext <<_ACEOF
19023 /* end confdefs.h. */
19024 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19025 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19026 #define $ac_func innocuous_$ac_func
19027
19028 /* System header to define __stub macros and hopefully few prototypes,
19029 which can conflict with char $ac_func (); below.
19030 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19031 <limits.h> exists even on freestanding compilers. */
19032
19033 #ifdef __STDC__
19034 # include <limits.h>
19035 #else
19036 # include <assert.h>
19037 #endif
19038
19039 #undef $ac_func
19040
19041 /* Override any GCC internal prototype to avoid an error.
19042 Use char because int might match the return type of a GCC
19043 builtin and then its argument prototype would still apply. */
19044 #ifdef __cplusplus
19045 extern "C"
19046 #endif
19047 char $ac_func ();
19048 /* The GNU C library defines this for functions which it implements
19049 to always fail with ENOSYS. Some functions are actually named
19050 something starting with __ and the normal name is an alias. */
19051 #if defined __stub_$ac_func || defined __stub___$ac_func
19052 choke me
19053 #endif
19054
19055 int
19056 main ()
19057 {
19058 return $ac_func ();
19059 ;
19060 return 0;
19061 }
19062 _ACEOF
19063 rm -f conftest.$ac_objext conftest$ac_exeext
19064 if { (ac_try="$ac_link"
19065 case "(($ac_try" in
19066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19067 *) ac_try_echo=$ac_try;;
19068 esac
19069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19070 (eval "$ac_link") 2>conftest.er1
19071 ac_status=$?
19072 grep -v '^ *+' conftest.er1 >conftest.err
19073 rm -f conftest.er1
19074 cat conftest.err >&5
19075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19076 (exit $ac_status); } && {
19077 test -z "$ac_c_werror_flag" ||
19078 test ! -s conftest.err
19079 } && test -s conftest$ac_exeext &&
19080 $as_test_x conftest$ac_exeext; then
19081 eval "$as_ac_var=yes"
19082 else
19083 echo "$as_me: failed program was:" >&5
19084 sed 's/^/| /' conftest.$ac_ext >&5
19085
19086 eval "$as_ac_var=no"
19087 fi
19088
19089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19090 conftest$ac_exeext conftest.$ac_ext
19091 fi
19092 ac_res=`eval echo '${'$as_ac_var'}'`
19093 { echo "$as_me:$LINENO: result: $ac_res" >&5
19094 echo "${ECHO_T}$ac_res" >&6; }
19095 if test `eval echo '${'$as_ac_var'}'` = yes; then
19096 cat >>confdefs.h <<_ACEOF
19097 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19098 _ACEOF
19099
19100 else
19101 GETOPT_H=getopt.h
19102 fi
19103 done
19104
19105 fi
19106
19107 if test -z "$GETOPT_H"; then
19108 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
19109 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
19110 if test "${ac_cv_have_decl_optreset+set}" = set; then
19111 echo $ECHO_N "(cached) $ECHO_C" >&6
19112 else
19113 cat >conftest.$ac_ext <<_ACEOF
19114 /* confdefs.h. */
19115 _ACEOF
19116 cat confdefs.h >>conftest.$ac_ext
19117 cat >>conftest.$ac_ext <<_ACEOF
19118 /* end confdefs.h. */
19119 #include <getopt.h>
19120
19121 int
19122 main ()
19123 {
19124 #ifndef optreset
19125 (void) optreset;
19126 #endif
19127
19128 ;
19129 return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136 *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139 (eval "$ac_compile") 2>conftest.er1
19140 ac_status=$?
19141 grep -v '^ *+' conftest.er1 >conftest.err
19142 rm -f conftest.er1
19143 cat conftest.err >&5
19144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145 (exit $ac_status); } && {
19146 test -z "$ac_c_werror_flag" ||
19147 test ! -s conftest.err
19148 } && test -s conftest.$ac_objext; then
19149 ac_cv_have_decl_optreset=yes
19150 else
19151 echo "$as_me: failed program was:" >&5
19152 sed 's/^/| /' conftest.$ac_ext >&5
19153
19154 ac_cv_have_decl_optreset=no
19155 fi
19156
19157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19158 fi
19159 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19160 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19161 if test $ac_cv_have_decl_optreset = yes; then
19162 GETOPT_H=getopt.h
19163 fi
19164
19165 fi
19166
19167 if test -z "$GETOPT_H"; then
19168 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19169 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19170 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19171 echo $ECHO_N "(cached) $ECHO_C" >&6
19172 else
19173 if test "$cross_compiling" = yes; then
19174 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19175 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19176 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19177 echo $ECHO_N "(cached) $ECHO_C" >&6
19178 else
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 #include <getopt.h>
19186
19187 int
19188 main ()
19189 {
19190 #ifndef getopt_clip
19191 (void) getopt_clip;
19192 #endif
19193
19194 ;
19195 return 0;
19196 }
19197 _ACEOF
19198 rm -f conftest.$ac_objext
19199 if { (ac_try="$ac_compile"
19200 case "(($ac_try" in
19201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19202 *) ac_try_echo=$ac_try;;
19203 esac
19204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19205 (eval "$ac_compile") 2>conftest.er1
19206 ac_status=$?
19207 grep -v '^ *+' conftest.er1 >conftest.err
19208 rm -f conftest.er1
19209 cat conftest.err >&5
19210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19211 (exit $ac_status); } && {
19212 test -z "$ac_c_werror_flag" ||
19213 test ! -s conftest.err
19214 } && test -s conftest.$ac_objext; then
19215 ac_cv_have_decl_getopt_clip=yes
19216 else
19217 echo "$as_me: failed program was:" >&5
19218 sed 's/^/| /' conftest.$ac_ext >&5
19219
19220 ac_cv_have_decl_getopt_clip=no
19221 fi
19222
19223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19224 fi
19225 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19226 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19227 if test $ac_cv_have_decl_getopt_clip = yes; then
19228 gl_cv_func_gnu_getopt=no
19229 else
19230 gl_cv_func_gnu_getopt=yes
19231 fi
19232
19233 else
19234 cat >conftest.$ac_ext <<_ACEOF
19235 /* confdefs.h. */
19236 _ACEOF
19237 cat confdefs.h >>conftest.$ac_ext
19238 cat >>conftest.$ac_ext <<_ACEOF
19239 /* end confdefs.h. */
19240 #include <getopt.h>
19241 int
19242 main ()
19243 {
19244
19245 char *myargv[3];
19246 myargv[0] = "conftest";
19247 myargv[1] = "-+";
19248 myargv[2] = 0;
19249 return getopt (2, myargv, "+a") != '?';
19250
19251 ;
19252 return 0;
19253 }
19254 _ACEOF
19255 rm -f conftest$ac_exeext
19256 if { (ac_try="$ac_link"
19257 case "(($ac_try" in
19258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19259 *) ac_try_echo=$ac_try;;
19260 esac
19261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19262 (eval "$ac_link") 2>&5
19263 ac_status=$?
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
19272 ac_status=$?
19273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19274 (exit $ac_status); }; }; then
19275 gl_cv_func_gnu_getopt=yes
19276 else
19277 echo "$as_me: program exited with status $ac_status" >&5
19278 echo "$as_me: failed program was:" >&5
19279 sed 's/^/| /' conftest.$ac_ext >&5
19280
19281 ( exit $ac_status )
19282 gl_cv_func_gnu_getopt=no
19283 fi
19284 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19285 fi
19286
19287
19288 fi
19289 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19290 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19291 if test "$gl_cv_func_gnu_getopt" = "no"; then
19292 GETOPT_H=getopt.h
19293 fi
19294 fi
19295
19296
19297
19298 if test -n "$GETOPT_H"; then
19299
19300
19301 GETOPT_H=getopt.h
19302
19303 cat >>confdefs.h <<\_ACEOF
19304 #define __GETOPT_PREFIX rpl_
19305 _ACEOF
19306
19307
19308
19309 :
19310 GETOPTOBJS='getopt.o getopt1.o'
19311
19312 fi
19313
19314
19315
19316
19317 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19318 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19319 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19320 echo $ECHO_N "(cached) $ECHO_C" >&6
19321 else
19322 # Use it with a single arg.
19323 cat >conftest.$ac_ext <<_ACEOF
19324 /* confdefs.h. */
19325 _ACEOF
19326 cat confdefs.h >>conftest.$ac_ext
19327 cat >>conftest.$ac_ext <<_ACEOF
19328 /* end confdefs.h. */
19329 $ac_includes_default
19330 int
19331 main ()
19332 {
19333 getpgrp (0);
19334 ;
19335 return 0;
19336 }
19337 _ACEOF
19338 rm -f conftest.$ac_objext
19339 if { (ac_try="$ac_compile"
19340 case "(($ac_try" in
19341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19342 *) ac_try_echo=$ac_try;;
19343 esac
19344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19345 (eval "$ac_compile") 2>conftest.er1
19346 ac_status=$?
19347 grep -v '^ *+' conftest.er1 >conftest.err
19348 rm -f conftest.er1
19349 cat conftest.err >&5
19350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19351 (exit $ac_status); } && {
19352 test -z "$ac_c_werror_flag" ||
19353 test ! -s conftest.err
19354 } && test -s conftest.$ac_objext; then
19355 ac_cv_func_getpgrp_void=no
19356 else
19357 echo "$as_me: failed program was:" >&5
19358 sed 's/^/| /' conftest.$ac_ext >&5
19359
19360 ac_cv_func_getpgrp_void=yes
19361 fi
19362
19363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19364
19365 fi
19366 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19367 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19368 if test $ac_cv_func_getpgrp_void = yes; then
19369
19370 cat >>confdefs.h <<\_ACEOF
19371 #define GETPGRP_VOID 1
19372 _ACEOF
19373
19374 fi
19375
19376
19377
19378 for ac_func in strftime
19379 do
19380 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19381 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19382 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19383 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19384 echo $ECHO_N "(cached) $ECHO_C" >&6
19385 else
19386 cat >conftest.$ac_ext <<_ACEOF
19387 /* confdefs.h. */
19388 _ACEOF
19389 cat confdefs.h >>conftest.$ac_ext
19390 cat >>conftest.$ac_ext <<_ACEOF
19391 /* end confdefs.h. */
19392 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19394 #define $ac_func innocuous_$ac_func
19395
19396 /* System header to define __stub macros and hopefully few prototypes,
19397 which can conflict with char $ac_func (); below.
19398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19399 <limits.h> exists even on freestanding compilers. */
19400
19401 #ifdef __STDC__
19402 # include <limits.h>
19403 #else
19404 # include <assert.h>
19405 #endif
19406
19407 #undef $ac_func
19408
19409 /* Override any GCC internal prototype to avoid an error.
19410 Use char because int might match the return type of a GCC
19411 builtin and then its argument prototype would still apply. */
19412 #ifdef __cplusplus
19413 extern "C"
19414 #endif
19415 char $ac_func ();
19416 /* The GNU C library defines this for functions which it implements
19417 to always fail with ENOSYS. Some functions are actually named
19418 something starting with __ and the normal name is an alias. */
19419 #if defined __stub_$ac_func || defined __stub___$ac_func
19420 choke me
19421 #endif
19422
19423 int
19424 main ()
19425 {
19426 return $ac_func ();
19427 ;
19428 return 0;
19429 }
19430 _ACEOF
19431 rm -f conftest.$ac_objext conftest$ac_exeext
19432 if { (ac_try="$ac_link"
19433 case "(($ac_try" in
19434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19435 *) ac_try_echo=$ac_try;;
19436 esac
19437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19438 (eval "$ac_link") 2>conftest.er1
19439 ac_status=$?
19440 grep -v '^ *+' conftest.er1 >conftest.err
19441 rm -f conftest.er1
19442 cat conftest.err >&5
19443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444 (exit $ac_status); } && {
19445 test -z "$ac_c_werror_flag" ||
19446 test ! -s conftest.err
19447 } && test -s conftest$ac_exeext &&
19448 $as_test_x conftest$ac_exeext; then
19449 eval "$as_ac_var=yes"
19450 else
19451 echo "$as_me: failed program was:" >&5
19452 sed 's/^/| /' conftest.$ac_ext >&5
19453
19454 eval "$as_ac_var=no"
19455 fi
19456
19457 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19458 conftest$ac_exeext conftest.$ac_ext
19459 fi
19460 ac_res=`eval echo '${'$as_ac_var'}'`
19461 { echo "$as_me:$LINENO: result: $ac_res" >&5
19462 echo "${ECHO_T}$ac_res" >&6; }
19463 if test `eval echo '${'$as_ac_var'}'` = yes; then
19464 cat >>confdefs.h <<_ACEOF
19465 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19466 _ACEOF
19467
19468 else
19469 # strftime is in -lintl on SCO UNIX.
19470 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19471 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lintl $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char strftime ();
19491 int
19492 main ()
19493 {
19494 return strftime ();
19495 ;
19496 return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_intl_strftime=yes
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ac_cv_lib_intl_strftime=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19530 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19531 if test $ac_cv_lib_intl_strftime = yes; then
19532 cat >>confdefs.h <<\_ACEOF
19533 #define HAVE_STRFTIME 1
19534 _ACEOF
19535
19536 LIBS="-lintl $LIBS"
19537 fi
19538
19539 fi
19540 done
19541
19542
19543 # UNIX98 PTYs.
19544
19545 for ac_func in grantpt
19546 do
19547 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19548 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19549 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19550 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19551 echo $ECHO_N "(cached) $ECHO_C" >&6
19552 else
19553 cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h. */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h. */
19559 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19560 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19561 #define $ac_func innocuous_$ac_func
19562
19563 /* System header to define __stub macros and hopefully few prototypes,
19564 which can conflict with char $ac_func (); below.
19565 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19566 <limits.h> exists even on freestanding compilers. */
19567
19568 #ifdef __STDC__
19569 # include <limits.h>
19570 #else
19571 # include <assert.h>
19572 #endif
19573
19574 #undef $ac_func
19575
19576 /* Override any GCC internal prototype to avoid an error.
19577 Use char because int might match the return type of a GCC
19578 builtin and then its argument prototype would still apply. */
19579 #ifdef __cplusplus
19580 extern "C"
19581 #endif
19582 char $ac_func ();
19583 /* The GNU C library defines this for functions which it implements
19584 to always fail with ENOSYS. Some functions are actually named
19585 something starting with __ and the normal name is an alias. */
19586 #if defined __stub_$ac_func || defined __stub___$ac_func
19587 choke me
19588 #endif
19589
19590 int
19591 main ()
19592 {
19593 return $ac_func ();
19594 ;
19595 return 0;
19596 }
19597 _ACEOF
19598 rm -f conftest.$ac_objext conftest$ac_exeext
19599 if { (ac_try="$ac_link"
19600 case "(($ac_try" in
19601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602 *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605 (eval "$ac_link") 2>conftest.er1
19606 ac_status=$?
19607 grep -v '^ *+' conftest.er1 >conftest.err
19608 rm -f conftest.er1
19609 cat conftest.err >&5
19610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19611 (exit $ac_status); } && {
19612 test -z "$ac_c_werror_flag" ||
19613 test ! -s conftest.err
19614 } && test -s conftest$ac_exeext &&
19615 $as_test_x conftest$ac_exeext; then
19616 eval "$as_ac_var=yes"
19617 else
19618 echo "$as_me: failed program was:" >&5
19619 sed 's/^/| /' conftest.$ac_ext >&5
19620
19621 eval "$as_ac_var=no"
19622 fi
19623
19624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19625 conftest$ac_exeext conftest.$ac_ext
19626 fi
19627 ac_res=`eval echo '${'$as_ac_var'}'`
19628 { echo "$as_me:$LINENO: result: $ac_res" >&5
19629 echo "${ECHO_T}$ac_res" >&6; }
19630 if test `eval echo '${'$as_ac_var'}'` = yes; then
19631 cat >>confdefs.h <<_ACEOF
19632 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19633 _ACEOF
19634
19635 fi
19636 done
19637
19638
19639 # PTY-related GNU extensions.
19640
19641 for ac_func in getpt
19642 do
19643 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19644 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19645 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19646 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19656 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19657 #define $ac_func innocuous_$ac_func
19658
19659 /* System header to define __stub macros and hopefully few prototypes,
19660 which can conflict with char $ac_func (); below.
19661 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19662 <limits.h> exists even on freestanding compilers. */
19663
19664 #ifdef __STDC__
19665 # include <limits.h>
19666 #else
19667 # include <assert.h>
19668 #endif
19669
19670 #undef $ac_func
19671
19672 /* Override any GCC internal prototype to avoid an error.
19673 Use char because int might match the return type of a GCC
19674 builtin and then its argument prototype would still apply. */
19675 #ifdef __cplusplus
19676 extern "C"
19677 #endif
19678 char $ac_func ();
19679 /* The GNU C library defines this for functions which it implements
19680 to always fail with ENOSYS. Some functions are actually named
19681 something starting with __ and the normal name is an alias. */
19682 #if defined __stub_$ac_func || defined __stub___$ac_func
19683 choke me
19684 #endif
19685
19686 int
19687 main ()
19688 {
19689 return $ac_func ();
19690 ;
19691 return 0;
19692 }
19693 _ACEOF
19694 rm -f conftest.$ac_objext conftest$ac_exeext
19695 if { (ac_try="$ac_link"
19696 case "(($ac_try" in
19697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19698 *) ac_try_echo=$ac_try;;
19699 esac
19700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19701 (eval "$ac_link") 2>conftest.er1
19702 ac_status=$?
19703 grep -v '^ *+' conftest.er1 >conftest.err
19704 rm -f conftest.er1
19705 cat conftest.err >&5
19706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19707 (exit $ac_status); } && {
19708 test -z "$ac_c_werror_flag" ||
19709 test ! -s conftest.err
19710 } && test -s conftest$ac_exeext &&
19711 $as_test_x conftest$ac_exeext; then
19712 eval "$as_ac_var=yes"
19713 else
19714 echo "$as_me: failed program was:" >&5
19715 sed 's/^/| /' conftest.$ac_ext >&5
19716
19717 eval "$as_ac_var=no"
19718 fi
19719
19720 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19721 conftest$ac_exeext conftest.$ac_ext
19722 fi
19723 ac_res=`eval echo '${'$as_ac_var'}'`
19724 { echo "$as_me:$LINENO: result: $ac_res" >&5
19725 echo "${ECHO_T}$ac_res" >&6; }
19726 if test `eval echo '${'$as_ac_var'}'` = yes; then
19727 cat >>confdefs.h <<_ACEOF
19728 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19729 _ACEOF
19730
19731 fi
19732 done
19733
19734
19735 # Check this now, so that we will NOT find the above functions in ncurses.
19736 # That is because we have not set up to link ncurses in lib-src.
19737 # It's better to believe a function is not available
19738 # than to expect to find it in ncurses.
19739
19740 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19741 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19742 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19743 echo $ECHO_N "(cached) $ECHO_C" >&6
19744 else
19745 ac_check_lib_save_LIBS=$LIBS
19746 LIBS="-lncurses $LIBS"
19747 cat >conftest.$ac_ext <<_ACEOF
19748 /* confdefs.h. */
19749 _ACEOF
19750 cat confdefs.h >>conftest.$ac_ext
19751 cat >>conftest.$ac_ext <<_ACEOF
19752 /* end confdefs.h. */
19753
19754 /* Override any GCC internal prototype to avoid an error.
19755 Use char because int might match the return type of a GCC
19756 builtin and then its argument prototype would still apply. */
19757 #ifdef __cplusplus
19758 extern "C"
19759 #endif
19760 char tparm ();
19761 int
19762 main ()
19763 {
19764 return tparm ();
19765 ;
19766 return 0;
19767 }
19768 _ACEOF
19769 rm -f conftest.$ac_objext conftest$ac_exeext
19770 if { (ac_try="$ac_link"
19771 case "(($ac_try" in
19772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19773 *) ac_try_echo=$ac_try;;
19774 esac
19775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19776 (eval "$ac_link") 2>conftest.er1
19777 ac_status=$?
19778 grep -v '^ *+' conftest.er1 >conftest.err
19779 rm -f conftest.er1
19780 cat conftest.err >&5
19781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19782 (exit $ac_status); } && {
19783 test -z "$ac_c_werror_flag" ||
19784 test ! -s conftest.err
19785 } && test -s conftest$ac_exeext &&
19786 $as_test_x conftest$ac_exeext; then
19787 ac_cv_lib_ncurses_tparm=yes
19788 else
19789 echo "$as_me: failed program was:" >&5
19790 sed 's/^/| /' conftest.$ac_ext >&5
19791
19792 ac_cv_lib_ncurses_tparm=no
19793 fi
19794
19795 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19796 conftest$ac_exeext conftest.$ac_ext
19797 LIBS=$ac_check_lib_save_LIBS
19798 fi
19799 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19800 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19801 if test $ac_cv_lib_ncurses_tparm = yes; then
19802 cat >>confdefs.h <<_ACEOF
19803 #define HAVE_LIBNCURSES 1
19804 _ACEOF
19805
19806 LIBS="-lncurses $LIBS"
19807
19808 fi
19809
19810
19811 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19812
19813 resolv=no
19814 cat >conftest.$ac_ext <<_ACEOF
19815 /* confdefs.h. */
19816 _ACEOF
19817 cat confdefs.h >>conftest.$ac_ext
19818 cat >>conftest.$ac_ext <<_ACEOF
19819 /* end confdefs.h. */
19820 #include <netinet/in.h>
19821 #include <arpa/nameser.h>
19822 #include <resolv.h>
19823 int
19824 main ()
19825 {
19826 return res_init();
19827 ;
19828 return 0;
19829 }
19830 _ACEOF
19831 rm -f conftest.$ac_objext conftest$ac_exeext
19832 if { (ac_try="$ac_link"
19833 case "(($ac_try" in
19834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19835 *) ac_try_echo=$ac_try;;
19836 esac
19837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19838 (eval "$ac_link") 2>conftest.er1
19839 ac_status=$?
19840 grep -v '^ *+' conftest.er1 >conftest.err
19841 rm -f conftest.er1
19842 cat conftest.err >&5
19843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19844 (exit $ac_status); } && {
19845 test -z "$ac_c_werror_flag" ||
19846 test ! -s conftest.err
19847 } && test -s conftest$ac_exeext &&
19848 $as_test_x conftest$ac_exeext; then
19849 have_res_init=yes
19850 else
19851 echo "$as_me: failed program was:" >&5
19852 sed 's/^/| /' conftest.$ac_ext >&5
19853
19854 have_res_init=no
19855 fi
19856
19857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19858 conftest$ac_exeext conftest.$ac_ext
19859 if test "$have_res_init" = no; then
19860 OLIBS="$LIBS"
19861 LIBS="$LIBS -lresolv"
19862 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19863 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19864 cat >conftest.$ac_ext <<_ACEOF
19865 /* confdefs.h. */
19866 _ACEOF
19867 cat confdefs.h >>conftest.$ac_ext
19868 cat >>conftest.$ac_ext <<_ACEOF
19869 /* end confdefs.h. */
19870 #include <netinet/in.h>
19871 #include <arpa/nameser.h>
19872 #include <resolv.h>
19873 int
19874 main ()
19875 {
19876 return res_init();
19877 ;
19878 return 0;
19879 }
19880 _ACEOF
19881 rm -f conftest.$ac_objext conftest$ac_exeext
19882 if { (ac_try="$ac_link"
19883 case "(($ac_try" in
19884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19885 *) ac_try_echo=$ac_try;;
19886 esac
19887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19888 (eval "$ac_link") 2>conftest.er1
19889 ac_status=$?
19890 grep -v '^ *+' conftest.er1 >conftest.err
19891 rm -f conftest.er1
19892 cat conftest.err >&5
19893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19894 (exit $ac_status); } && {
19895 test -z "$ac_c_werror_flag" ||
19896 test ! -s conftest.err
19897 } && test -s conftest$ac_exeext &&
19898 $as_test_x conftest$ac_exeext; then
19899 have_res_init=yes
19900 else
19901 echo "$as_me: failed program was:" >&5
19902 sed 's/^/| /' conftest.$ac_ext >&5
19903
19904 have_res_init=no
19905 fi
19906
19907 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19908 conftest$ac_exeext conftest.$ac_ext
19909 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19910 echo "${ECHO_T}$have_res_init" >&6; }
19911 if test "$have_res_init" = yes ; then
19912 resolv=yes
19913 fi
19914 LIBS="$OLIBS"
19915 fi
19916
19917 if test "$have_res_init" = yes; then
19918
19919 cat >>confdefs.h <<\_ACEOF
19920 #define HAVE_RES_INIT 1
19921 _ACEOF
19922
19923 fi
19924
19925 # Do we need the Hesiod library to provide the support routines?
19926 if test "$with_hesiod" != no ; then
19927 # Don't set $LIBS here -- see comments above.
19928 { echo "$as_me:$LINENO: checking for res_send" >&5
19929 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19930 if test "${ac_cv_func_res_send+set}" = set; then
19931 echo $ECHO_N "(cached) $ECHO_C" >&6
19932 else
19933 cat >conftest.$ac_ext <<_ACEOF
19934 /* confdefs.h. */
19935 _ACEOF
19936 cat confdefs.h >>conftest.$ac_ext
19937 cat >>conftest.$ac_ext <<_ACEOF
19938 /* end confdefs.h. */
19939 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19940 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19941 #define res_send innocuous_res_send
19942
19943 /* System header to define __stub macros and hopefully few prototypes,
19944 which can conflict with char res_send (); below.
19945 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19946 <limits.h> exists even on freestanding compilers. */
19947
19948 #ifdef __STDC__
19949 # include <limits.h>
19950 #else
19951 # include <assert.h>
19952 #endif
19953
19954 #undef res_send
19955
19956 /* Override any GCC internal prototype to avoid an error.
19957 Use char because int might match the return type of a GCC
19958 builtin and then its argument prototype would still apply. */
19959 #ifdef __cplusplus
19960 extern "C"
19961 #endif
19962 char res_send ();
19963 /* The GNU C library defines this for functions which it implements
19964 to always fail with ENOSYS. Some functions are actually named
19965 something starting with __ and the normal name is an alias. */
19966 #if defined __stub_res_send || defined __stub___res_send
19967 choke me
19968 #endif
19969
19970 int
19971 main ()
19972 {
19973 return res_send ();
19974 ;
19975 return 0;
19976 }
19977 _ACEOF
19978 rm -f conftest.$ac_objext conftest$ac_exeext
19979 if { (ac_try="$ac_link"
19980 case "(($ac_try" in
19981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19982 *) ac_try_echo=$ac_try;;
19983 esac
19984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19985 (eval "$ac_link") 2>conftest.er1
19986 ac_status=$?
19987 grep -v '^ *+' conftest.er1 >conftest.err
19988 rm -f conftest.er1
19989 cat conftest.err >&5
19990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19991 (exit $ac_status); } && {
19992 test -z "$ac_c_werror_flag" ||
19993 test ! -s conftest.err
19994 } && test -s conftest$ac_exeext &&
19995 $as_test_x conftest$ac_exeext; then
19996 ac_cv_func_res_send=yes
19997 else
19998 echo "$as_me: failed program was:" >&5
19999 sed 's/^/| /' conftest.$ac_ext >&5
20000
20001 ac_cv_func_res_send=no
20002 fi
20003
20004 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20005 conftest$ac_exeext conftest.$ac_ext
20006 fi
20007 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
20008 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
20009 if test $ac_cv_func_res_send = yes; then
20010 :
20011 else
20012 { echo "$as_me:$LINENO: checking for __res_send" >&5
20013 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
20014 if test "${ac_cv_func___res_send+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 cat >conftest.$ac_ext <<_ACEOF
20018 /* confdefs.h. */
20019 _ACEOF
20020 cat confdefs.h >>conftest.$ac_ext
20021 cat >>conftest.$ac_ext <<_ACEOF
20022 /* end confdefs.h. */
20023 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
20024 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20025 #define __res_send innocuous___res_send
20026
20027 /* System header to define __stub macros and hopefully few prototypes,
20028 which can conflict with char __res_send (); below.
20029 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20030 <limits.h> exists even on freestanding compilers. */
20031
20032 #ifdef __STDC__
20033 # include <limits.h>
20034 #else
20035 # include <assert.h>
20036 #endif
20037
20038 #undef __res_send
20039
20040 /* Override any GCC internal prototype to avoid an error.
20041 Use char because int might match the return type of a GCC
20042 builtin and then its argument prototype would still apply. */
20043 #ifdef __cplusplus
20044 extern "C"
20045 #endif
20046 char __res_send ();
20047 /* The GNU C library defines this for functions which it implements
20048 to always fail with ENOSYS. Some functions are actually named
20049 something starting with __ and the normal name is an alias. */
20050 #if defined __stub___res_send || defined __stub_____res_send
20051 choke me
20052 #endif
20053
20054 int
20055 main ()
20056 {
20057 return __res_send ();
20058 ;
20059 return 0;
20060 }
20061 _ACEOF
20062 rm -f conftest.$ac_objext conftest$ac_exeext
20063 if { (ac_try="$ac_link"
20064 case "(($ac_try" in
20065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066 *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069 (eval "$ac_link") 2>conftest.er1
20070 ac_status=$?
20071 grep -v '^ *+' conftest.er1 >conftest.err
20072 rm -f conftest.er1
20073 cat conftest.err >&5
20074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20075 (exit $ac_status); } && {
20076 test -z "$ac_c_werror_flag" ||
20077 test ! -s conftest.err
20078 } && test -s conftest$ac_exeext &&
20079 $as_test_x conftest$ac_exeext; then
20080 ac_cv_func___res_send=yes
20081 else
20082 echo "$as_me: failed program was:" >&5
20083 sed 's/^/| /' conftest.$ac_ext >&5
20084
20085 ac_cv_func___res_send=no
20086 fi
20087
20088 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20089 conftest$ac_exeext conftest.$ac_ext
20090 fi
20091 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
20092 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
20093 if test $ac_cv_func___res_send = yes; then
20094 :
20095 else
20096 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
20097 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
20098 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
20099 echo $ECHO_N "(cached) $ECHO_C" >&6
20100 else
20101 ac_check_lib_save_LIBS=$LIBS
20102 LIBS="-lresolv $LIBS"
20103 cat >conftest.$ac_ext <<_ACEOF
20104 /* confdefs.h. */
20105 _ACEOF
20106 cat confdefs.h >>conftest.$ac_ext
20107 cat >>conftest.$ac_ext <<_ACEOF
20108 /* end confdefs.h. */
20109
20110 /* Override any GCC internal prototype to avoid an error.
20111 Use char because int might match the return type of a GCC
20112 builtin and then its argument prototype would still apply. */
20113 #ifdef __cplusplus
20114 extern "C"
20115 #endif
20116 char res_send ();
20117 int
20118 main ()
20119 {
20120 return res_send ();
20121 ;
20122 return 0;
20123 }
20124 _ACEOF
20125 rm -f conftest.$ac_objext conftest$ac_exeext
20126 if { (ac_try="$ac_link"
20127 case "(($ac_try" in
20128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20129 *) ac_try_echo=$ac_try;;
20130 esac
20131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20132 (eval "$ac_link") 2>conftest.er1
20133 ac_status=$?
20134 grep -v '^ *+' conftest.er1 >conftest.err
20135 rm -f conftest.er1
20136 cat conftest.err >&5
20137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20138 (exit $ac_status); } && {
20139 test -z "$ac_c_werror_flag" ||
20140 test ! -s conftest.err
20141 } && test -s conftest$ac_exeext &&
20142 $as_test_x conftest$ac_exeext; then
20143 ac_cv_lib_resolv_res_send=yes
20144 else
20145 echo "$as_me: failed program was:" >&5
20146 sed 's/^/| /' conftest.$ac_ext >&5
20147
20148 ac_cv_lib_resolv_res_send=no
20149 fi
20150
20151 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20152 conftest$ac_exeext conftest.$ac_ext
20153 LIBS=$ac_check_lib_save_LIBS
20154 fi
20155 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20156 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20157 if test $ac_cv_lib_resolv_res_send = yes; then
20158 resolv=yes
20159 else
20160 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20161 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20162 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20163 echo $ECHO_N "(cached) $ECHO_C" >&6
20164 else
20165 ac_check_lib_save_LIBS=$LIBS
20166 LIBS="-lresolv $LIBS"
20167 cat >conftest.$ac_ext <<_ACEOF
20168 /* confdefs.h. */
20169 _ACEOF
20170 cat confdefs.h >>conftest.$ac_ext
20171 cat >>conftest.$ac_ext <<_ACEOF
20172 /* end confdefs.h. */
20173
20174 /* Override any GCC internal prototype to avoid an error.
20175 Use char because int might match the return type of a GCC
20176 builtin and then its argument prototype would still apply. */
20177 #ifdef __cplusplus
20178 extern "C"
20179 #endif
20180 char __res_send ();
20181 int
20182 main ()
20183 {
20184 return __res_send ();
20185 ;
20186 return 0;
20187 }
20188 _ACEOF
20189 rm -f conftest.$ac_objext conftest$ac_exeext
20190 if { (ac_try="$ac_link"
20191 case "(($ac_try" in
20192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20193 *) ac_try_echo=$ac_try;;
20194 esac
20195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20196 (eval "$ac_link") 2>conftest.er1
20197 ac_status=$?
20198 grep -v '^ *+' conftest.er1 >conftest.err
20199 rm -f conftest.er1
20200 cat conftest.err >&5
20201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20202 (exit $ac_status); } && {
20203 test -z "$ac_c_werror_flag" ||
20204 test ! -s conftest.err
20205 } && test -s conftest$ac_exeext &&
20206 $as_test_x conftest$ac_exeext; then
20207 ac_cv_lib_resolv___res_send=yes
20208 else
20209 echo "$as_me: failed program was:" >&5
20210 sed 's/^/| /' conftest.$ac_ext >&5
20211
20212 ac_cv_lib_resolv___res_send=no
20213 fi
20214
20215 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20216 conftest$ac_exeext conftest.$ac_ext
20217 LIBS=$ac_check_lib_save_LIBS
20218 fi
20219 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20220 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20221 if test $ac_cv_lib_resolv___res_send = yes; then
20222 resolv=yes
20223 fi
20224
20225 fi
20226
20227 fi
20228
20229 fi
20230
20231 if test "$resolv" = yes ; then
20232 RESOLVLIB=-lresolv
20233 else
20234 RESOLVLIB=
20235 fi
20236 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20237 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20238 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20239 echo $ECHO_N "(cached) $ECHO_C" >&6
20240 else
20241 cat >conftest.$ac_ext <<_ACEOF
20242 /* confdefs.h. */
20243 _ACEOF
20244 cat confdefs.h >>conftest.$ac_ext
20245 cat >>conftest.$ac_ext <<_ACEOF
20246 /* end confdefs.h. */
20247 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20248 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20249 #define hes_getmailhost innocuous_hes_getmailhost
20250
20251 /* System header to define __stub macros and hopefully few prototypes,
20252 which can conflict with char hes_getmailhost (); below.
20253 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20254 <limits.h> exists even on freestanding compilers. */
20255
20256 #ifdef __STDC__
20257 # include <limits.h>
20258 #else
20259 # include <assert.h>
20260 #endif
20261
20262 #undef hes_getmailhost
20263
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20267 #ifdef __cplusplus
20268 extern "C"
20269 #endif
20270 char hes_getmailhost ();
20271 /* The GNU C library defines this for functions which it implements
20272 to always fail with ENOSYS. Some functions are actually named
20273 something starting with __ and the normal name is an alias. */
20274 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20275 choke me
20276 #endif
20277
20278 int
20279 main ()
20280 {
20281 return hes_getmailhost ();
20282 ;
20283 return 0;
20284 }
20285 _ACEOF
20286 rm -f conftest.$ac_objext conftest$ac_exeext
20287 if { (ac_try="$ac_link"
20288 case "(($ac_try" in
20289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20290 *) ac_try_echo=$ac_try;;
20291 esac
20292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20293 (eval "$ac_link") 2>conftest.er1
20294 ac_status=$?
20295 grep -v '^ *+' conftest.er1 >conftest.err
20296 rm -f conftest.er1
20297 cat conftest.err >&5
20298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20299 (exit $ac_status); } && {
20300 test -z "$ac_c_werror_flag" ||
20301 test ! -s conftest.err
20302 } && test -s conftest$ac_exeext &&
20303 $as_test_x conftest$ac_exeext; then
20304 ac_cv_func_hes_getmailhost=yes
20305 else
20306 echo "$as_me: failed program was:" >&5
20307 sed 's/^/| /' conftest.$ac_ext >&5
20308
20309 ac_cv_func_hes_getmailhost=no
20310 fi
20311
20312 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20313 conftest$ac_exeext conftest.$ac_ext
20314 fi
20315 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20316 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20317 if test $ac_cv_func_hes_getmailhost = yes; then
20318 :
20319 else
20320 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20321 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20322 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20323 echo $ECHO_N "(cached) $ECHO_C" >&6
20324 else
20325 ac_check_lib_save_LIBS=$LIBS
20326 LIBS="-lhesiod $RESOLVLIB $LIBS"
20327 cat >conftest.$ac_ext <<_ACEOF
20328 /* confdefs.h. */
20329 _ACEOF
20330 cat confdefs.h >>conftest.$ac_ext
20331 cat >>conftest.$ac_ext <<_ACEOF
20332 /* end confdefs.h. */
20333
20334 /* Override any GCC internal prototype to avoid an error.
20335 Use char because int might match the return type of a GCC
20336 builtin and then its argument prototype would still apply. */
20337 #ifdef __cplusplus
20338 extern "C"
20339 #endif
20340 char hes_getmailhost ();
20341 int
20342 main ()
20343 {
20344 return hes_getmailhost ();
20345 ;
20346 return 0;
20347 }
20348 _ACEOF
20349 rm -f conftest.$ac_objext conftest$ac_exeext
20350 if { (ac_try="$ac_link"
20351 case "(($ac_try" in
20352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20353 *) ac_try_echo=$ac_try;;
20354 esac
20355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20356 (eval "$ac_link") 2>conftest.er1
20357 ac_status=$?
20358 grep -v '^ *+' conftest.er1 >conftest.err
20359 rm -f conftest.er1
20360 cat conftest.err >&5
20361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20362 (exit $ac_status); } && {
20363 test -z "$ac_c_werror_flag" ||
20364 test ! -s conftest.err
20365 } && test -s conftest$ac_exeext &&
20366 $as_test_x conftest$ac_exeext; then
20367 ac_cv_lib_hesiod_hes_getmailhost=yes
20368 else
20369 echo "$as_me: failed program was:" >&5
20370 sed 's/^/| /' conftest.$ac_ext >&5
20371
20372 ac_cv_lib_hesiod_hes_getmailhost=no
20373 fi
20374
20375 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20376 conftest$ac_exeext conftest.$ac_ext
20377 LIBS=$ac_check_lib_save_LIBS
20378 fi
20379 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20380 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20381 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20382
20383 cat >>confdefs.h <<\_ACEOF
20384 #define HAVE_LIBHESIOD 1
20385 _ACEOF
20386
20387 else
20388 :
20389 fi
20390
20391 fi
20392
20393 fi
20394
20395 # Do we need libresolv (due to res_init or Hesiod)?
20396 if test "$resolv" = yes ; then
20397
20398 cat >>confdefs.h <<\_ACEOF
20399 #define HAVE_LIBRESOLV 1
20400 _ACEOF
20401
20402 fi
20403
20404 # These tell us which Kerberos-related libraries to use.
20405 if test "${with_kerberos}" != no; then
20406
20407 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20408 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20409 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20410 echo $ECHO_N "(cached) $ECHO_C" >&6
20411 else
20412 ac_check_lib_save_LIBS=$LIBS
20413 LIBS="-lcom_err $LIBS"
20414 cat >conftest.$ac_ext <<_ACEOF
20415 /* confdefs.h. */
20416 _ACEOF
20417 cat confdefs.h >>conftest.$ac_ext
20418 cat >>conftest.$ac_ext <<_ACEOF
20419 /* end confdefs.h. */
20420
20421 /* Override any GCC internal prototype to avoid an error.
20422 Use char because int might match the return type of a GCC
20423 builtin and then its argument prototype would still apply. */
20424 #ifdef __cplusplus
20425 extern "C"
20426 #endif
20427 char com_err ();
20428 int
20429 main ()
20430 {
20431 return com_err ();
20432 ;
20433 return 0;
20434 }
20435 _ACEOF
20436 rm -f conftest.$ac_objext conftest$ac_exeext
20437 if { (ac_try="$ac_link"
20438 case "(($ac_try" in
20439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20440 *) ac_try_echo=$ac_try;;
20441 esac
20442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20443 (eval "$ac_link") 2>conftest.er1
20444 ac_status=$?
20445 grep -v '^ *+' conftest.er1 >conftest.err
20446 rm -f conftest.er1
20447 cat conftest.err >&5
20448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20449 (exit $ac_status); } && {
20450 test -z "$ac_c_werror_flag" ||
20451 test ! -s conftest.err
20452 } && test -s conftest$ac_exeext &&
20453 $as_test_x conftest$ac_exeext; then
20454 ac_cv_lib_com_err_com_err=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_cv_lib_com_err_com_err=no
20460 fi
20461
20462 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20463 conftest$ac_exeext conftest.$ac_ext
20464 LIBS=$ac_check_lib_save_LIBS
20465 fi
20466 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20467 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20468 if test $ac_cv_lib_com_err_com_err = yes; then
20469 cat >>confdefs.h <<_ACEOF
20470 #define HAVE_LIBCOM_ERR 1
20471 _ACEOF
20472
20473 LIBS="-lcom_err $LIBS"
20474
20475 fi
20476
20477
20478 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20479 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20480 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 ac_check_lib_save_LIBS=$LIBS
20484 LIBS="-lk5crypto $LIBS"
20485 cat >conftest.$ac_ext <<_ACEOF
20486 /* confdefs.h. */
20487 _ACEOF
20488 cat confdefs.h >>conftest.$ac_ext
20489 cat >>conftest.$ac_ext <<_ACEOF
20490 /* end confdefs.h. */
20491
20492 /* Override any GCC internal prototype to avoid an error.
20493 Use char because int might match the return type of a GCC
20494 builtin and then its argument prototype would still apply. */
20495 #ifdef __cplusplus
20496 extern "C"
20497 #endif
20498 char mit_des_cbc_encrypt ();
20499 int
20500 main ()
20501 {
20502 return mit_des_cbc_encrypt ();
20503 ;
20504 return 0;
20505 }
20506 _ACEOF
20507 rm -f conftest.$ac_objext conftest$ac_exeext
20508 if { (ac_try="$ac_link"
20509 case "(($ac_try" in
20510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20511 *) ac_try_echo=$ac_try;;
20512 esac
20513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20514 (eval "$ac_link") 2>conftest.er1
20515 ac_status=$?
20516 grep -v '^ *+' conftest.er1 >conftest.err
20517 rm -f conftest.er1
20518 cat conftest.err >&5
20519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20520 (exit $ac_status); } && {
20521 test -z "$ac_c_werror_flag" ||
20522 test ! -s conftest.err
20523 } && test -s conftest$ac_exeext &&
20524 $as_test_x conftest$ac_exeext; then
20525 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20526 else
20527 echo "$as_me: failed program was:" >&5
20528 sed 's/^/| /' conftest.$ac_ext >&5
20529
20530 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20531 fi
20532
20533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20534 conftest$ac_exeext conftest.$ac_ext
20535 LIBS=$ac_check_lib_save_LIBS
20536 fi
20537 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20538 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20539 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20540 cat >>confdefs.h <<_ACEOF
20541 #define HAVE_LIBK5CRYPTO 1
20542 _ACEOF
20543
20544 LIBS="-lk5crypto $LIBS"
20545
20546 fi
20547
20548
20549 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20550 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20551 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20552 echo $ECHO_N "(cached) $ECHO_C" >&6
20553 else
20554 ac_check_lib_save_LIBS=$LIBS
20555 LIBS="-lcrypto $LIBS"
20556 cat >conftest.$ac_ext <<_ACEOF
20557 /* confdefs.h. */
20558 _ACEOF
20559 cat confdefs.h >>conftest.$ac_ext
20560 cat >>conftest.$ac_ext <<_ACEOF
20561 /* end confdefs.h. */
20562
20563 /* Override any GCC internal prototype to avoid an error.
20564 Use char because int might match the return type of a GCC
20565 builtin and then its argument prototype would still apply. */
20566 #ifdef __cplusplus
20567 extern "C"
20568 #endif
20569 char mit_des_cbc_encrypt ();
20570 int
20571 main ()
20572 {
20573 return mit_des_cbc_encrypt ();
20574 ;
20575 return 0;
20576 }
20577 _ACEOF
20578 rm -f conftest.$ac_objext conftest$ac_exeext
20579 if { (ac_try="$ac_link"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_link") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } && {
20592 test -z "$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 } && test -s conftest$ac_exeext &&
20595 $as_test_x conftest$ac_exeext; then
20596 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20597 else
20598 echo "$as_me: failed program was:" >&5
20599 sed 's/^/| /' conftest.$ac_ext >&5
20600
20601 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20602 fi
20603
20604 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20605 conftest$ac_exeext conftest.$ac_ext
20606 LIBS=$ac_check_lib_save_LIBS
20607 fi
20608 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20609 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20610 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20611 cat >>confdefs.h <<_ACEOF
20612 #define HAVE_LIBCRYPTO 1
20613 _ACEOF
20614
20615 LIBS="-lcrypto $LIBS"
20616
20617 fi
20618
20619
20620 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20621 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20622 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20623 echo $ECHO_N "(cached) $ECHO_C" >&6
20624 else
20625 ac_check_lib_save_LIBS=$LIBS
20626 LIBS="-lkrb5 $LIBS"
20627 cat >conftest.$ac_ext <<_ACEOF
20628 /* confdefs.h. */
20629 _ACEOF
20630 cat confdefs.h >>conftest.$ac_ext
20631 cat >>conftest.$ac_ext <<_ACEOF
20632 /* end confdefs.h. */
20633
20634 /* Override any GCC internal prototype to avoid an error.
20635 Use char because int might match the return type of a GCC
20636 builtin and then its argument prototype would still apply. */
20637 #ifdef __cplusplus
20638 extern "C"
20639 #endif
20640 char krb5_init_context ();
20641 int
20642 main ()
20643 {
20644 return krb5_init_context ();
20645 ;
20646 return 0;
20647 }
20648 _ACEOF
20649 rm -f conftest.$ac_objext conftest$ac_exeext
20650 if { (ac_try="$ac_link"
20651 case "(($ac_try" in
20652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20653 *) ac_try_echo=$ac_try;;
20654 esac
20655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20656 (eval "$ac_link") 2>conftest.er1
20657 ac_status=$?
20658 grep -v '^ *+' conftest.er1 >conftest.err
20659 rm -f conftest.er1
20660 cat conftest.err >&5
20661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20662 (exit $ac_status); } && {
20663 test -z "$ac_c_werror_flag" ||
20664 test ! -s conftest.err
20665 } && test -s conftest$ac_exeext &&
20666 $as_test_x conftest$ac_exeext; then
20667 ac_cv_lib_krb5_krb5_init_context=yes
20668 else
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ac_cv_lib_krb5_krb5_init_context=no
20673 fi
20674
20675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20676 conftest$ac_exeext conftest.$ac_ext
20677 LIBS=$ac_check_lib_save_LIBS
20678 fi
20679 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20680 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20681 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20682 cat >>confdefs.h <<_ACEOF
20683 #define HAVE_LIBKRB5 1
20684 _ACEOF
20685
20686 LIBS="-lkrb5 $LIBS"
20687
20688 fi
20689
20690 if test "${with_kerberos5}" = no; then
20691
20692 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20693 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20694 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20695 echo $ECHO_N "(cached) $ECHO_C" >&6
20696 else
20697 ac_check_lib_save_LIBS=$LIBS
20698 LIBS="-ldes425 $LIBS"
20699 cat >conftest.$ac_ext <<_ACEOF
20700 /* confdefs.h. */
20701 _ACEOF
20702 cat confdefs.h >>conftest.$ac_ext
20703 cat >>conftest.$ac_ext <<_ACEOF
20704 /* end confdefs.h. */
20705
20706 /* Override any GCC internal prototype to avoid an error.
20707 Use char because int might match the return type of a GCC
20708 builtin and then its argument prototype would still apply. */
20709 #ifdef __cplusplus
20710 extern "C"
20711 #endif
20712 char des_cbc_encrypt ();
20713 int
20714 main ()
20715 {
20716 return des_cbc_encrypt ();
20717 ;
20718 return 0;
20719 }
20720 _ACEOF
20721 rm -f conftest.$ac_objext conftest$ac_exeext
20722 if { (ac_try="$ac_link"
20723 case "(($ac_try" in
20724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20725 *) ac_try_echo=$ac_try;;
20726 esac
20727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20728 (eval "$ac_link") 2>conftest.er1
20729 ac_status=$?
20730 grep -v '^ *+' conftest.er1 >conftest.err
20731 rm -f conftest.er1
20732 cat conftest.err >&5
20733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20734 (exit $ac_status); } && {
20735 test -z "$ac_c_werror_flag" ||
20736 test ! -s conftest.err
20737 } && test -s conftest$ac_exeext &&
20738 $as_test_x conftest$ac_exeext; then
20739 ac_cv_lib_des425_des_cbc_encrypt=yes
20740 else
20741 echo "$as_me: failed program was:" >&5
20742 sed 's/^/| /' conftest.$ac_ext >&5
20743
20744 ac_cv_lib_des425_des_cbc_encrypt=no
20745 fi
20746
20747 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20748 conftest$ac_exeext conftest.$ac_ext
20749 LIBS=$ac_check_lib_save_LIBS
20750 fi
20751 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20752 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20753 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20754 cat >>confdefs.h <<_ACEOF
20755 #define HAVE_LIBDES425 1
20756 _ACEOF
20757
20758 LIBS="-ldes425 $LIBS"
20759
20760 else
20761
20762 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20763 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20764 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20765 echo $ECHO_N "(cached) $ECHO_C" >&6
20766 else
20767 ac_check_lib_save_LIBS=$LIBS
20768 LIBS="-ldes $LIBS"
20769 cat >conftest.$ac_ext <<_ACEOF
20770 /* confdefs.h. */
20771 _ACEOF
20772 cat confdefs.h >>conftest.$ac_ext
20773 cat >>conftest.$ac_ext <<_ACEOF
20774 /* end confdefs.h. */
20775
20776 /* Override any GCC internal prototype to avoid an error.
20777 Use char because int might match the return type of a GCC
20778 builtin and then its argument prototype would still apply. */
20779 #ifdef __cplusplus
20780 extern "C"
20781 #endif
20782 char des_cbc_encrypt ();
20783 int
20784 main ()
20785 {
20786 return des_cbc_encrypt ();
20787 ;
20788 return 0;
20789 }
20790 _ACEOF
20791 rm -f conftest.$ac_objext conftest$ac_exeext
20792 if { (ac_try="$ac_link"
20793 case "(($ac_try" in
20794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20795 *) ac_try_echo=$ac_try;;
20796 esac
20797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20798 (eval "$ac_link") 2>conftest.er1
20799 ac_status=$?
20800 grep -v '^ *+' conftest.er1 >conftest.err
20801 rm -f conftest.er1
20802 cat conftest.err >&5
20803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20804 (exit $ac_status); } && {
20805 test -z "$ac_c_werror_flag" ||
20806 test ! -s conftest.err
20807 } && test -s conftest$ac_exeext &&
20808 $as_test_x conftest$ac_exeext; then
20809 ac_cv_lib_des_des_cbc_encrypt=yes
20810 else
20811 echo "$as_me: failed program was:" >&5
20812 sed 's/^/| /' conftest.$ac_ext >&5
20813
20814 ac_cv_lib_des_des_cbc_encrypt=no
20815 fi
20816
20817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20818 conftest$ac_exeext conftest.$ac_ext
20819 LIBS=$ac_check_lib_save_LIBS
20820 fi
20821 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20822 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20823 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20824 cat >>confdefs.h <<_ACEOF
20825 #define HAVE_LIBDES 1
20826 _ACEOF
20827
20828 LIBS="-ldes $LIBS"
20829
20830 fi
20831
20832 fi
20833
20834
20835 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20836 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20837 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20838 echo $ECHO_N "(cached) $ECHO_C" >&6
20839 else
20840 ac_check_lib_save_LIBS=$LIBS
20841 LIBS="-lkrb4 $LIBS"
20842 cat >conftest.$ac_ext <<_ACEOF
20843 /* confdefs.h. */
20844 _ACEOF
20845 cat confdefs.h >>conftest.$ac_ext
20846 cat >>conftest.$ac_ext <<_ACEOF
20847 /* end confdefs.h. */
20848
20849 /* Override any GCC internal prototype to avoid an error.
20850 Use char because int might match the return type of a GCC
20851 builtin and then its argument prototype would still apply. */
20852 #ifdef __cplusplus
20853 extern "C"
20854 #endif
20855 char krb_get_cred ();
20856 int
20857 main ()
20858 {
20859 return krb_get_cred ();
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext conftest$ac_exeext
20865 if { (ac_try="$ac_link"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_link") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest$ac_exeext &&
20881 $as_test_x conftest$ac_exeext; then
20882 ac_cv_lib_krb4_krb_get_cred=yes
20883 else
20884 echo "$as_me: failed program was:" >&5
20885 sed 's/^/| /' conftest.$ac_ext >&5
20886
20887 ac_cv_lib_krb4_krb_get_cred=no
20888 fi
20889
20890 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20891 conftest$ac_exeext conftest.$ac_ext
20892 LIBS=$ac_check_lib_save_LIBS
20893 fi
20894 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20895 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20896 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20897 cat >>confdefs.h <<_ACEOF
20898 #define HAVE_LIBKRB4 1
20899 _ACEOF
20900
20901 LIBS="-lkrb4 $LIBS"
20902
20903 else
20904
20905 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20906 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20907 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20908 echo $ECHO_N "(cached) $ECHO_C" >&6
20909 else
20910 ac_check_lib_save_LIBS=$LIBS
20911 LIBS="-lkrb $LIBS"
20912 cat >conftest.$ac_ext <<_ACEOF
20913 /* confdefs.h. */
20914 _ACEOF
20915 cat confdefs.h >>conftest.$ac_ext
20916 cat >>conftest.$ac_ext <<_ACEOF
20917 /* end confdefs.h. */
20918
20919 /* Override any GCC internal prototype to avoid an error.
20920 Use char because int might match the return type of a GCC
20921 builtin and then its argument prototype would still apply. */
20922 #ifdef __cplusplus
20923 extern "C"
20924 #endif
20925 char krb_get_cred ();
20926 int
20927 main ()
20928 {
20929 return krb_get_cred ();
20930 ;
20931 return 0;
20932 }
20933 _ACEOF
20934 rm -f conftest.$ac_objext conftest$ac_exeext
20935 if { (ac_try="$ac_link"
20936 case "(($ac_try" in
20937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20938 *) ac_try_echo=$ac_try;;
20939 esac
20940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20941 (eval "$ac_link") 2>conftest.er1
20942 ac_status=$?
20943 grep -v '^ *+' conftest.er1 >conftest.err
20944 rm -f conftest.er1
20945 cat conftest.err >&5
20946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20947 (exit $ac_status); } && {
20948 test -z "$ac_c_werror_flag" ||
20949 test ! -s conftest.err
20950 } && test -s conftest$ac_exeext &&
20951 $as_test_x conftest$ac_exeext; then
20952 ac_cv_lib_krb_krb_get_cred=yes
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_cv_lib_krb_krb_get_cred=no
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20961 conftest$ac_exeext conftest.$ac_ext
20962 LIBS=$ac_check_lib_save_LIBS
20963 fi
20964 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20965 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20966 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20967 cat >>confdefs.h <<_ACEOF
20968 #define HAVE_LIBKRB 1
20969 _ACEOF
20970
20971 LIBS="-lkrb $LIBS"
20972
20973 fi
20974
20975 fi
20976
20977 fi
20978
20979 if test "${with_kerberos5}" != no; then
20980
20981 for ac_header in krb5.h
20982 do
20983 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20986 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20987 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20988 echo $ECHO_N "(cached) $ECHO_C" >&6
20989 fi
20990 ac_res=`eval echo '${'$as_ac_Header'}'`
20991 { echo "$as_me:$LINENO: result: $ac_res" >&5
20992 echo "${ECHO_T}$ac_res" >&6; }
20993 else
20994 # Is the header compilable?
20995 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20996 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20997 cat >conftest.$ac_ext <<_ACEOF
20998 /* confdefs.h. */
20999 _ACEOF
21000 cat confdefs.h >>conftest.$ac_ext
21001 cat >>conftest.$ac_ext <<_ACEOF
21002 /* end confdefs.h. */
21003 $ac_includes_default
21004 #include <$ac_header>
21005 _ACEOF
21006 rm -f conftest.$ac_objext
21007 if { (ac_try="$ac_compile"
21008 case "(($ac_try" in
21009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21010 *) ac_try_echo=$ac_try;;
21011 esac
21012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21013 (eval "$ac_compile") 2>conftest.er1
21014 ac_status=$?
21015 grep -v '^ *+' conftest.er1 >conftest.err
21016 rm -f conftest.er1
21017 cat conftest.err >&5
21018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21019 (exit $ac_status); } && {
21020 test -z "$ac_c_werror_flag" ||
21021 test ! -s conftest.err
21022 } && test -s conftest.$ac_objext; then
21023 ac_header_compiler=yes
21024 else
21025 echo "$as_me: failed program was:" >&5
21026 sed 's/^/| /' conftest.$ac_ext >&5
21027
21028 ac_header_compiler=no
21029 fi
21030
21031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21033 echo "${ECHO_T}$ac_header_compiler" >&6; }
21034
21035 # Is the header present?
21036 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21037 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21038 cat >conftest.$ac_ext <<_ACEOF
21039 /* confdefs.h. */
21040 _ACEOF
21041 cat confdefs.h >>conftest.$ac_ext
21042 cat >>conftest.$ac_ext <<_ACEOF
21043 /* end confdefs.h. */
21044 #include <$ac_header>
21045 _ACEOF
21046 if { (ac_try="$ac_cpp conftest.$ac_ext"
21047 case "(($ac_try" in
21048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21049 *) ac_try_echo=$ac_try;;
21050 esac
21051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21053 ac_status=$?
21054 grep -v '^ *+' conftest.er1 >conftest.err
21055 rm -f conftest.er1
21056 cat conftest.err >&5
21057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21058 (exit $ac_status); } >/dev/null && {
21059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21060 test ! -s conftest.err
21061 }; then
21062 ac_header_preproc=yes
21063 else
21064 echo "$as_me: failed program was:" >&5
21065 sed 's/^/| /' conftest.$ac_ext >&5
21066
21067 ac_header_preproc=no
21068 fi
21069
21070 rm -f conftest.err conftest.$ac_ext
21071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21072 echo "${ECHO_T}$ac_header_preproc" >&6; }
21073
21074 # So? What about this header?
21075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21076 yes:no: )
21077 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21078 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21079 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21080 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21081 ac_header_preproc=yes
21082 ;;
21083 no:yes:* )
21084 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21085 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21086 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21087 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21088 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21089 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21090 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21091 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21092 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21093 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21095 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21096
21097 ;;
21098 esac
21099 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21100 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21101 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21102 echo $ECHO_N "(cached) $ECHO_C" >&6
21103 else
21104 eval "$as_ac_Header=\$ac_header_preproc"
21105 fi
21106 ac_res=`eval echo '${'$as_ac_Header'}'`
21107 { echo "$as_me:$LINENO: result: $ac_res" >&5
21108 echo "${ECHO_T}$ac_res" >&6; }
21109
21110 fi
21111 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21112 cat >>confdefs.h <<_ACEOF
21113 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21114 _ACEOF
21115 { echo "$as_me:$LINENO: checking for krb5_error.text" >&5
21116 echo $ECHO_N "checking for krb5_error.text... $ECHO_C" >&6; }
21117 if test "${ac_cv_member_krb5_error_text+set}" = set; then
21118 echo $ECHO_N "(cached) $ECHO_C" >&6
21119 else
21120 cat >conftest.$ac_ext <<_ACEOF
21121 /* confdefs.h. */
21122 _ACEOF
21123 cat confdefs.h >>conftest.$ac_ext
21124 cat >>conftest.$ac_ext <<_ACEOF
21125 /* end confdefs.h. */
21126 #include <krb5.h>
21127
21128 int
21129 main ()
21130 {
21131 static krb5_error ac_aggr;
21132 if (ac_aggr.text)
21133 return 0;
21134 ;
21135 return 0;
21136 }
21137 _ACEOF
21138 rm -f conftest.$ac_objext
21139 if { (ac_try="$ac_compile"
21140 case "(($ac_try" in
21141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21142 *) ac_try_echo=$ac_try;;
21143 esac
21144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21145 (eval "$ac_compile") 2>conftest.er1
21146 ac_status=$?
21147 grep -v '^ *+' conftest.er1 >conftest.err
21148 rm -f conftest.er1
21149 cat conftest.err >&5
21150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21151 (exit $ac_status); } && {
21152 test -z "$ac_c_werror_flag" ||
21153 test ! -s conftest.err
21154 } && test -s conftest.$ac_objext; then
21155 ac_cv_member_krb5_error_text=yes
21156 else
21157 echo "$as_me: failed program was:" >&5
21158 sed 's/^/| /' conftest.$ac_ext >&5
21159
21160 cat >conftest.$ac_ext <<_ACEOF
21161 /* confdefs.h. */
21162 _ACEOF
21163 cat confdefs.h >>conftest.$ac_ext
21164 cat >>conftest.$ac_ext <<_ACEOF
21165 /* end confdefs.h. */
21166 #include <krb5.h>
21167
21168 int
21169 main ()
21170 {
21171 static krb5_error ac_aggr;
21172 if (sizeof ac_aggr.text)
21173 return 0;
21174 ;
21175 return 0;
21176 }
21177 _ACEOF
21178 rm -f conftest.$ac_objext
21179 if { (ac_try="$ac_compile"
21180 case "(($ac_try" in
21181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21182 *) ac_try_echo=$ac_try;;
21183 esac
21184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21185 (eval "$ac_compile") 2>conftest.er1
21186 ac_status=$?
21187 grep -v '^ *+' conftest.er1 >conftest.err
21188 rm -f conftest.er1
21189 cat conftest.err >&5
21190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21191 (exit $ac_status); } && {
21192 test -z "$ac_c_werror_flag" ||
21193 test ! -s conftest.err
21194 } && test -s conftest.$ac_objext; then
21195 ac_cv_member_krb5_error_text=yes
21196 else
21197 echo "$as_me: failed program was:" >&5
21198 sed 's/^/| /' conftest.$ac_ext >&5
21199
21200 ac_cv_member_krb5_error_text=no
21201 fi
21202
21203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21204 fi
21205
21206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21207 fi
21208 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_text" >&5
21209 echo "${ECHO_T}$ac_cv_member_krb5_error_text" >&6; }
21210 if test $ac_cv_member_krb5_error_text = yes; then
21211
21212 cat >>confdefs.h <<_ACEOF
21213 #define HAVE_KRB5_ERROR_TEXT 1
21214 _ACEOF
21215
21216
21217 fi
21218 { echo "$as_me:$LINENO: checking for krb5_error.e_text" >&5
21219 echo $ECHO_N "checking for krb5_error.e_text... $ECHO_C" >&6; }
21220 if test "${ac_cv_member_krb5_error_e_text+set}" = set; then
21221 echo $ECHO_N "(cached) $ECHO_C" >&6
21222 else
21223 cat >conftest.$ac_ext <<_ACEOF
21224 /* confdefs.h. */
21225 _ACEOF
21226 cat confdefs.h >>conftest.$ac_ext
21227 cat >>conftest.$ac_ext <<_ACEOF
21228 /* end confdefs.h. */
21229 #include <krb5.h>
21230
21231 int
21232 main ()
21233 {
21234 static krb5_error ac_aggr;
21235 if (ac_aggr.e_text)
21236 return 0;
21237 ;
21238 return 0;
21239 }
21240 _ACEOF
21241 rm -f conftest.$ac_objext
21242 if { (ac_try="$ac_compile"
21243 case "(($ac_try" in
21244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21245 *) ac_try_echo=$ac_try;;
21246 esac
21247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21248 (eval "$ac_compile") 2>conftest.er1
21249 ac_status=$?
21250 grep -v '^ *+' conftest.er1 >conftest.err
21251 rm -f conftest.er1
21252 cat conftest.err >&5
21253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21254 (exit $ac_status); } && {
21255 test -z "$ac_c_werror_flag" ||
21256 test ! -s conftest.err
21257 } && test -s conftest.$ac_objext; then
21258 ac_cv_member_krb5_error_e_text=yes
21259 else
21260 echo "$as_me: failed program was:" >&5
21261 sed 's/^/| /' conftest.$ac_ext >&5
21262
21263 cat >conftest.$ac_ext <<_ACEOF
21264 /* confdefs.h. */
21265 _ACEOF
21266 cat confdefs.h >>conftest.$ac_ext
21267 cat >>conftest.$ac_ext <<_ACEOF
21268 /* end confdefs.h. */
21269 #include <krb5.h>
21270
21271 int
21272 main ()
21273 {
21274 static krb5_error ac_aggr;
21275 if (sizeof ac_aggr.e_text)
21276 return 0;
21277 ;
21278 return 0;
21279 }
21280 _ACEOF
21281 rm -f conftest.$ac_objext
21282 if { (ac_try="$ac_compile"
21283 case "(($ac_try" in
21284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21285 *) ac_try_echo=$ac_try;;
21286 esac
21287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21288 (eval "$ac_compile") 2>conftest.er1
21289 ac_status=$?
21290 grep -v '^ *+' conftest.er1 >conftest.err
21291 rm -f conftest.er1
21292 cat conftest.err >&5
21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21294 (exit $ac_status); } && {
21295 test -z "$ac_c_werror_flag" ||
21296 test ! -s conftest.err
21297 } && test -s conftest.$ac_objext; then
21298 ac_cv_member_krb5_error_e_text=yes
21299 else
21300 echo "$as_me: failed program was:" >&5
21301 sed 's/^/| /' conftest.$ac_ext >&5
21302
21303 ac_cv_member_krb5_error_e_text=no
21304 fi
21305
21306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21307 fi
21308
21309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21310 fi
21311 { echo "$as_me:$LINENO: result: $ac_cv_member_krb5_error_e_text" >&5
21312 echo "${ECHO_T}$ac_cv_member_krb5_error_e_text" >&6; }
21313 if test $ac_cv_member_krb5_error_e_text = yes; then
21314
21315 cat >>confdefs.h <<_ACEOF
21316 #define HAVE_KRB5_ERROR_E_TEXT 1
21317 _ACEOF
21318
21319
21320 fi
21321
21322 fi
21323
21324 done
21325
21326 else
21327
21328 for ac_header in des.h
21329 do
21330 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21335 echo $ECHO_N "(cached) $ECHO_C" >&6
21336 fi
21337 ac_res=`eval echo '${'$as_ac_Header'}'`
21338 { echo "$as_me:$LINENO: result: $ac_res" >&5
21339 echo "${ECHO_T}$ac_res" >&6; }
21340 else
21341 # Is the header compilable?
21342 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21343 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21344 cat >conftest.$ac_ext <<_ACEOF
21345 /* confdefs.h. */
21346 _ACEOF
21347 cat confdefs.h >>conftest.$ac_ext
21348 cat >>conftest.$ac_ext <<_ACEOF
21349 /* end confdefs.h. */
21350 $ac_includes_default
21351 #include <$ac_header>
21352 _ACEOF
21353 rm -f conftest.$ac_objext
21354 if { (ac_try="$ac_compile"
21355 case "(($ac_try" in
21356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21357 *) ac_try_echo=$ac_try;;
21358 esac
21359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21360 (eval "$ac_compile") 2>conftest.er1
21361 ac_status=$?
21362 grep -v '^ *+' conftest.er1 >conftest.err
21363 rm -f conftest.er1
21364 cat conftest.err >&5
21365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21366 (exit $ac_status); } && {
21367 test -z "$ac_c_werror_flag" ||
21368 test ! -s conftest.err
21369 } && test -s conftest.$ac_objext; then
21370 ac_header_compiler=yes
21371 else
21372 echo "$as_me: failed program was:" >&5
21373 sed 's/^/| /' conftest.$ac_ext >&5
21374
21375 ac_header_compiler=no
21376 fi
21377
21378 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21379 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21380 echo "${ECHO_T}$ac_header_compiler" >&6; }
21381
21382 # Is the header present?
21383 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21384 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21385 cat >conftest.$ac_ext <<_ACEOF
21386 /* confdefs.h. */
21387 _ACEOF
21388 cat confdefs.h >>conftest.$ac_ext
21389 cat >>conftest.$ac_ext <<_ACEOF
21390 /* end confdefs.h. */
21391 #include <$ac_header>
21392 _ACEOF
21393 if { (ac_try="$ac_cpp conftest.$ac_ext"
21394 case "(($ac_try" in
21395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21396 *) ac_try_echo=$ac_try;;
21397 esac
21398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21399 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21400 ac_status=$?
21401 grep -v '^ *+' conftest.er1 >conftest.err
21402 rm -f conftest.er1
21403 cat conftest.err >&5
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); } >/dev/null && {
21406 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21407 test ! -s conftest.err
21408 }; then
21409 ac_header_preproc=yes
21410 else
21411 echo "$as_me: failed program was:" >&5
21412 sed 's/^/| /' conftest.$ac_ext >&5
21413
21414 ac_header_preproc=no
21415 fi
21416
21417 rm -f conftest.err conftest.$ac_ext
21418 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21419 echo "${ECHO_T}$ac_header_preproc" >&6; }
21420
21421 # So? What about this header?
21422 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21423 yes:no: )
21424 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21425 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21427 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21428 ac_header_preproc=yes
21429 ;;
21430 no:yes:* )
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21432 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21433 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21434 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21435 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21436 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21437 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21438 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21439 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21440 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21441 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21442 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21443
21444 ;;
21445 esac
21446 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21447 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21448 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21449 echo $ECHO_N "(cached) $ECHO_C" >&6
21450 else
21451 eval "$as_ac_Header=\$ac_header_preproc"
21452 fi
21453 ac_res=`eval echo '${'$as_ac_Header'}'`
21454 { echo "$as_me:$LINENO: result: $ac_res" >&5
21455 echo "${ECHO_T}$ac_res" >&6; }
21456
21457 fi
21458 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21459 cat >>confdefs.h <<_ACEOF
21460 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21461 _ACEOF
21462
21463 else
21464
21465 for ac_header in kerberosIV/des.h
21466 do
21467 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21468 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21472 echo $ECHO_N "(cached) $ECHO_C" >&6
21473 fi
21474 ac_res=`eval echo '${'$as_ac_Header'}'`
21475 { echo "$as_me:$LINENO: result: $ac_res" >&5
21476 echo "${ECHO_T}$ac_res" >&6; }
21477 else
21478 # Is the header compilable?
21479 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21480 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21481 cat >conftest.$ac_ext <<_ACEOF
21482 /* confdefs.h. */
21483 _ACEOF
21484 cat confdefs.h >>conftest.$ac_ext
21485 cat >>conftest.$ac_ext <<_ACEOF
21486 /* end confdefs.h. */
21487 $ac_includes_default
21488 #include <$ac_header>
21489 _ACEOF
21490 rm -f conftest.$ac_objext
21491 if { (ac_try="$ac_compile"
21492 case "(($ac_try" in
21493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21494 *) ac_try_echo=$ac_try;;
21495 esac
21496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21497 (eval "$ac_compile") 2>conftest.er1
21498 ac_status=$?
21499 grep -v '^ *+' conftest.er1 >conftest.err
21500 rm -f conftest.er1
21501 cat conftest.err >&5
21502 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21503 (exit $ac_status); } && {
21504 test -z "$ac_c_werror_flag" ||
21505 test ! -s conftest.err
21506 } && test -s conftest.$ac_objext; then
21507 ac_header_compiler=yes
21508 else
21509 echo "$as_me: failed program was:" >&5
21510 sed 's/^/| /' conftest.$ac_ext >&5
21511
21512 ac_header_compiler=no
21513 fi
21514
21515 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21516 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21517 echo "${ECHO_T}$ac_header_compiler" >&6; }
21518
21519 # Is the header present?
21520 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21521 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21522 cat >conftest.$ac_ext <<_ACEOF
21523 /* confdefs.h. */
21524 _ACEOF
21525 cat confdefs.h >>conftest.$ac_ext
21526 cat >>conftest.$ac_ext <<_ACEOF
21527 /* end confdefs.h. */
21528 #include <$ac_header>
21529 _ACEOF
21530 if { (ac_try="$ac_cpp conftest.$ac_ext"
21531 case "(($ac_try" in
21532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21533 *) ac_try_echo=$ac_try;;
21534 esac
21535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21536 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21537 ac_status=$?
21538 grep -v '^ *+' conftest.er1 >conftest.err
21539 rm -f conftest.er1
21540 cat conftest.err >&5
21541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21542 (exit $ac_status); } >/dev/null && {
21543 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21544 test ! -s conftest.err
21545 }; then
21546 ac_header_preproc=yes
21547 else
21548 echo "$as_me: failed program was:" >&5
21549 sed 's/^/| /' conftest.$ac_ext >&5
21550
21551 ac_header_preproc=no
21552 fi
21553
21554 rm -f conftest.err conftest.$ac_ext
21555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21556 echo "${ECHO_T}$ac_header_preproc" >&6; }
21557
21558 # So? What about this header?
21559 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21560 yes:no: )
21561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21565 ac_header_preproc=yes
21566 ;;
21567 no:yes:* )
21568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21580
21581 ;;
21582 esac
21583 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21584 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21585 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21586 echo $ECHO_N "(cached) $ECHO_C" >&6
21587 else
21588 eval "$as_ac_Header=\$ac_header_preproc"
21589 fi
21590 ac_res=`eval echo '${'$as_ac_Header'}'`
21591 { echo "$as_me:$LINENO: result: $ac_res" >&5
21592 echo "${ECHO_T}$ac_res" >&6; }
21593
21594 fi
21595 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21596 cat >>confdefs.h <<_ACEOF
21597 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21598 _ACEOF
21599
21600 else
21601
21602 for ac_header in kerberos/des.h
21603 do
21604 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21605 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21609 echo $ECHO_N "(cached) $ECHO_C" >&6
21610 fi
21611 ac_res=`eval echo '${'$as_ac_Header'}'`
21612 { echo "$as_me:$LINENO: result: $ac_res" >&5
21613 echo "${ECHO_T}$ac_res" >&6; }
21614 else
21615 # Is the header compilable?
21616 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21617 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21618 cat >conftest.$ac_ext <<_ACEOF
21619 /* confdefs.h. */
21620 _ACEOF
21621 cat confdefs.h >>conftest.$ac_ext
21622 cat >>conftest.$ac_ext <<_ACEOF
21623 /* end confdefs.h. */
21624 $ac_includes_default
21625 #include <$ac_header>
21626 _ACEOF
21627 rm -f conftest.$ac_objext
21628 if { (ac_try="$ac_compile"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_compile") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } && {
21641 test -z "$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 } && test -s conftest.$ac_objext; then
21644 ac_header_compiler=yes
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ac_header_compiler=no
21650 fi
21651
21652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21654 echo "${ECHO_T}$ac_header_compiler" >&6; }
21655
21656 # Is the header present?
21657 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21658 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21659 cat >conftest.$ac_ext <<_ACEOF
21660 /* confdefs.h. */
21661 _ACEOF
21662 cat confdefs.h >>conftest.$ac_ext
21663 cat >>conftest.$ac_ext <<_ACEOF
21664 /* end confdefs.h. */
21665 #include <$ac_header>
21666 _ACEOF
21667 if { (ac_try="$ac_cpp conftest.$ac_ext"
21668 case "(($ac_try" in
21669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21670 *) ac_try_echo=$ac_try;;
21671 esac
21672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21673 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21674 ac_status=$?
21675 grep -v '^ *+' conftest.er1 >conftest.err
21676 rm -f conftest.er1
21677 cat conftest.err >&5
21678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21679 (exit $ac_status); } >/dev/null && {
21680 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21681 test ! -s conftest.err
21682 }; then
21683 ac_header_preproc=yes
21684 else
21685 echo "$as_me: failed program was:" >&5
21686 sed 's/^/| /' conftest.$ac_ext >&5
21687
21688 ac_header_preproc=no
21689 fi
21690
21691 rm -f conftest.err conftest.$ac_ext
21692 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21693 echo "${ECHO_T}$ac_header_preproc" >&6; }
21694
21695 # So? What about this header?
21696 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21697 yes:no: )
21698 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21699 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21700 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21701 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21702 ac_header_preproc=yes
21703 ;;
21704 no:yes:* )
21705 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21706 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21707 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21708 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21709 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21710 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21711 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21712 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21713 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21714 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21715 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21716 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21717
21718 ;;
21719 esac
21720 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21721 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21722 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21723 echo $ECHO_N "(cached) $ECHO_C" >&6
21724 else
21725 eval "$as_ac_Header=\$ac_header_preproc"
21726 fi
21727 ac_res=`eval echo '${'$as_ac_Header'}'`
21728 { echo "$as_me:$LINENO: result: $ac_res" >&5
21729 echo "${ECHO_T}$ac_res" >&6; }
21730
21731 fi
21732 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21733 cat >>confdefs.h <<_ACEOF
21734 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21735 _ACEOF
21736
21737 fi
21738
21739 done
21740
21741 fi
21742
21743 done
21744
21745 fi
21746
21747 done
21748
21749
21750 for ac_header in krb.h
21751 do
21752 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21753 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21757 echo $ECHO_N "(cached) $ECHO_C" >&6
21758 fi
21759 ac_res=`eval echo '${'$as_ac_Header'}'`
21760 { echo "$as_me:$LINENO: result: $ac_res" >&5
21761 echo "${ECHO_T}$ac_res" >&6; }
21762 else
21763 # Is the header compilable?
21764 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21765 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21766 cat >conftest.$ac_ext <<_ACEOF
21767 /* confdefs.h. */
21768 _ACEOF
21769 cat confdefs.h >>conftest.$ac_ext
21770 cat >>conftest.$ac_ext <<_ACEOF
21771 /* end confdefs.h. */
21772 $ac_includes_default
21773 #include <$ac_header>
21774 _ACEOF
21775 rm -f conftest.$ac_objext
21776 if { (ac_try="$ac_compile"
21777 case "(($ac_try" in
21778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21779 *) ac_try_echo=$ac_try;;
21780 esac
21781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21782 (eval "$ac_compile") 2>conftest.er1
21783 ac_status=$?
21784 grep -v '^ *+' conftest.er1 >conftest.err
21785 rm -f conftest.er1
21786 cat conftest.err >&5
21787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21788 (exit $ac_status); } && {
21789 test -z "$ac_c_werror_flag" ||
21790 test ! -s conftest.err
21791 } && test -s conftest.$ac_objext; then
21792 ac_header_compiler=yes
21793 else
21794 echo "$as_me: failed program was:" >&5
21795 sed 's/^/| /' conftest.$ac_ext >&5
21796
21797 ac_header_compiler=no
21798 fi
21799
21800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21802 echo "${ECHO_T}$ac_header_compiler" >&6; }
21803
21804 # Is the header present?
21805 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21806 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21807 cat >conftest.$ac_ext <<_ACEOF
21808 /* confdefs.h. */
21809 _ACEOF
21810 cat confdefs.h >>conftest.$ac_ext
21811 cat >>conftest.$ac_ext <<_ACEOF
21812 /* end confdefs.h. */
21813 #include <$ac_header>
21814 _ACEOF
21815 if { (ac_try="$ac_cpp conftest.$ac_ext"
21816 case "(($ac_try" in
21817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21818 *) ac_try_echo=$ac_try;;
21819 esac
21820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21822 ac_status=$?
21823 grep -v '^ *+' conftest.er1 >conftest.err
21824 rm -f conftest.er1
21825 cat conftest.err >&5
21826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21827 (exit $ac_status); } >/dev/null && {
21828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21829 test ! -s conftest.err
21830 }; then
21831 ac_header_preproc=yes
21832 else
21833 echo "$as_me: failed program was:" >&5
21834 sed 's/^/| /' conftest.$ac_ext >&5
21835
21836 ac_header_preproc=no
21837 fi
21838
21839 rm -f conftest.err conftest.$ac_ext
21840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21841 echo "${ECHO_T}$ac_header_preproc" >&6; }
21842
21843 # So? What about this header?
21844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21845 yes:no: )
21846 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21847 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21849 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21850 ac_header_preproc=yes
21851 ;;
21852 no:yes:* )
21853 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21854 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21855 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21856 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21857 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21858 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21859 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21860 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21861 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21862 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21863 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21864 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21865
21866 ;;
21867 esac
21868 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21869 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21871 echo $ECHO_N "(cached) $ECHO_C" >&6
21872 else
21873 eval "$as_ac_Header=\$ac_header_preproc"
21874 fi
21875 ac_res=`eval echo '${'$as_ac_Header'}'`
21876 { echo "$as_me:$LINENO: result: $ac_res" >&5
21877 echo "${ECHO_T}$ac_res" >&6; }
21878
21879 fi
21880 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21881 cat >>confdefs.h <<_ACEOF
21882 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21883 _ACEOF
21884
21885 else
21886
21887 for ac_header in kerberosIV/krb.h
21888 do
21889 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21894 echo $ECHO_N "(cached) $ECHO_C" >&6
21895 fi
21896 ac_res=`eval echo '${'$as_ac_Header'}'`
21897 { echo "$as_me:$LINENO: result: $ac_res" >&5
21898 echo "${ECHO_T}$ac_res" >&6; }
21899 else
21900 # Is the header compilable?
21901 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21902 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21903 cat >conftest.$ac_ext <<_ACEOF
21904 /* confdefs.h. */
21905 _ACEOF
21906 cat confdefs.h >>conftest.$ac_ext
21907 cat >>conftest.$ac_ext <<_ACEOF
21908 /* end confdefs.h. */
21909 $ac_includes_default
21910 #include <$ac_header>
21911 _ACEOF
21912 rm -f conftest.$ac_objext
21913 if { (ac_try="$ac_compile"
21914 case "(($ac_try" in
21915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21916 *) ac_try_echo=$ac_try;;
21917 esac
21918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21919 (eval "$ac_compile") 2>conftest.er1
21920 ac_status=$?
21921 grep -v '^ *+' conftest.er1 >conftest.err
21922 rm -f conftest.er1
21923 cat conftest.err >&5
21924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21925 (exit $ac_status); } && {
21926 test -z "$ac_c_werror_flag" ||
21927 test ! -s conftest.err
21928 } && test -s conftest.$ac_objext; then
21929 ac_header_compiler=yes
21930 else
21931 echo "$as_me: failed program was:" >&5
21932 sed 's/^/| /' conftest.$ac_ext >&5
21933
21934 ac_header_compiler=no
21935 fi
21936
21937 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21938 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21939 echo "${ECHO_T}$ac_header_compiler" >&6; }
21940
21941 # Is the header present?
21942 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21943 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21944 cat >conftest.$ac_ext <<_ACEOF
21945 /* confdefs.h. */
21946 _ACEOF
21947 cat confdefs.h >>conftest.$ac_ext
21948 cat >>conftest.$ac_ext <<_ACEOF
21949 /* end confdefs.h. */
21950 #include <$ac_header>
21951 _ACEOF
21952 if { (ac_try="$ac_cpp conftest.$ac_ext"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } >/dev/null && {
21965 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 }; then
21968 ac_header_preproc=yes
21969 else
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_header_preproc=no
21974 fi
21975
21976 rm -f conftest.err conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21978 echo "${ECHO_T}$ac_header_preproc" >&6; }
21979
21980 # So? What about this header?
21981 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21982 yes:no: )
21983 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21984 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21985 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21986 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21987 ac_header_preproc=yes
21988 ;;
21989 no:yes:* )
21990 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21991 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21993 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21994 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21995 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21996 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21997 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21998 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21999 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22000 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22001 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22002
22003 ;;
22004 esac
22005 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22006 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22007 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22008 echo $ECHO_N "(cached) $ECHO_C" >&6
22009 else
22010 eval "$as_ac_Header=\$ac_header_preproc"
22011 fi
22012 ac_res=`eval echo '${'$as_ac_Header'}'`
22013 { echo "$as_me:$LINENO: result: $ac_res" >&5
22014 echo "${ECHO_T}$ac_res" >&6; }
22015
22016 fi
22017 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22018 cat >>confdefs.h <<_ACEOF
22019 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22020 _ACEOF
22021
22022 else
22023
22024 for ac_header in kerberos/krb.h
22025 do
22026 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22027 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22031 echo $ECHO_N "(cached) $ECHO_C" >&6
22032 fi
22033 ac_res=`eval echo '${'$as_ac_Header'}'`
22034 { echo "$as_me:$LINENO: result: $ac_res" >&5
22035 echo "${ECHO_T}$ac_res" >&6; }
22036 else
22037 # Is the header compilable?
22038 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22039 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22040 cat >conftest.$ac_ext <<_ACEOF
22041 /* confdefs.h. */
22042 _ACEOF
22043 cat confdefs.h >>conftest.$ac_ext
22044 cat >>conftest.$ac_ext <<_ACEOF
22045 /* end confdefs.h. */
22046 $ac_includes_default
22047 #include <$ac_header>
22048 _ACEOF
22049 rm -f conftest.$ac_objext
22050 if { (ac_try="$ac_compile"
22051 case "(($ac_try" in
22052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22053 *) ac_try_echo=$ac_try;;
22054 esac
22055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22056 (eval "$ac_compile") 2>conftest.er1
22057 ac_status=$?
22058 grep -v '^ *+' conftest.er1 >conftest.err
22059 rm -f conftest.er1
22060 cat conftest.err >&5
22061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22062 (exit $ac_status); } && {
22063 test -z "$ac_c_werror_flag" ||
22064 test ! -s conftest.err
22065 } && test -s conftest.$ac_objext; then
22066 ac_header_compiler=yes
22067 else
22068 echo "$as_me: failed program was:" >&5
22069 sed 's/^/| /' conftest.$ac_ext >&5
22070
22071 ac_header_compiler=no
22072 fi
22073
22074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22075 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22076 echo "${ECHO_T}$ac_header_compiler" >&6; }
22077
22078 # Is the header present?
22079 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22080 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22081 cat >conftest.$ac_ext <<_ACEOF
22082 /* confdefs.h. */
22083 _ACEOF
22084 cat confdefs.h >>conftest.$ac_ext
22085 cat >>conftest.$ac_ext <<_ACEOF
22086 /* end confdefs.h. */
22087 #include <$ac_header>
22088 _ACEOF
22089 if { (ac_try="$ac_cpp conftest.$ac_ext"
22090 case "(($ac_try" in
22091 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22092 *) ac_try_echo=$ac_try;;
22093 esac
22094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22095 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22096 ac_status=$?
22097 grep -v '^ *+' conftest.er1 >conftest.err
22098 rm -f conftest.er1
22099 cat conftest.err >&5
22100 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22101 (exit $ac_status); } >/dev/null && {
22102 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22103 test ! -s conftest.err
22104 }; then
22105 ac_header_preproc=yes
22106 else
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110 ac_header_preproc=no
22111 fi
22112
22113 rm -f conftest.err conftest.$ac_ext
22114 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22115 echo "${ECHO_T}$ac_header_preproc" >&6; }
22116
22117 # So? What about this header?
22118 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22119 yes:no: )
22120 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22121 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22122 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22123 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22124 ac_header_preproc=yes
22125 ;;
22126 no:yes:* )
22127 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22128 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22129 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22130 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22131 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22132 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22134 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22136 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22138 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22139
22140 ;;
22141 esac
22142 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22143 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22144 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22145 echo $ECHO_N "(cached) $ECHO_C" >&6
22146 else
22147 eval "$as_ac_Header=\$ac_header_preproc"
22148 fi
22149 ac_res=`eval echo '${'$as_ac_Header'}'`
22150 { echo "$as_me:$LINENO: result: $ac_res" >&5
22151 echo "${ECHO_T}$ac_res" >&6; }
22152
22153 fi
22154 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22155 cat >>confdefs.h <<_ACEOF
22156 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22157 _ACEOF
22158
22159 fi
22160
22161 done
22162
22163 fi
22164
22165 done
22166
22167 fi
22168
22169 done
22170
22171 fi
22172
22173 for ac_header in com_err.h
22174 do
22175 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22176 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22177 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22178 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22179 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22180 echo $ECHO_N "(cached) $ECHO_C" >&6
22181 fi
22182 ac_res=`eval echo '${'$as_ac_Header'}'`
22183 { echo "$as_me:$LINENO: result: $ac_res" >&5
22184 echo "${ECHO_T}$ac_res" >&6; }
22185 else
22186 # Is the header compilable?
22187 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22188 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22189 cat >conftest.$ac_ext <<_ACEOF
22190 /* confdefs.h. */
22191 _ACEOF
22192 cat confdefs.h >>conftest.$ac_ext
22193 cat >>conftest.$ac_ext <<_ACEOF
22194 /* end confdefs.h. */
22195 $ac_includes_default
22196 #include <$ac_header>
22197 _ACEOF
22198 rm -f conftest.$ac_objext
22199 if { (ac_try="$ac_compile"
22200 case "(($ac_try" in
22201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22202 *) ac_try_echo=$ac_try;;
22203 esac
22204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22205 (eval "$ac_compile") 2>conftest.er1
22206 ac_status=$?
22207 grep -v '^ *+' conftest.er1 >conftest.err
22208 rm -f conftest.er1
22209 cat conftest.err >&5
22210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22211 (exit $ac_status); } && {
22212 test -z "$ac_c_werror_flag" ||
22213 test ! -s conftest.err
22214 } && test -s conftest.$ac_objext; then
22215 ac_header_compiler=yes
22216 else
22217 echo "$as_me: failed program was:" >&5
22218 sed 's/^/| /' conftest.$ac_ext >&5
22219
22220 ac_header_compiler=no
22221 fi
22222
22223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22224 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22225 echo "${ECHO_T}$ac_header_compiler" >&6; }
22226
22227 # Is the header present?
22228 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22229 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22230 cat >conftest.$ac_ext <<_ACEOF
22231 /* confdefs.h. */
22232 _ACEOF
22233 cat confdefs.h >>conftest.$ac_ext
22234 cat >>conftest.$ac_ext <<_ACEOF
22235 /* end confdefs.h. */
22236 #include <$ac_header>
22237 _ACEOF
22238 if { (ac_try="$ac_cpp conftest.$ac_ext"
22239 case "(($ac_try" in
22240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22241 *) ac_try_echo=$ac_try;;
22242 esac
22243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22244 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22245 ac_status=$?
22246 grep -v '^ *+' conftest.er1 >conftest.err
22247 rm -f conftest.er1
22248 cat conftest.err >&5
22249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22250 (exit $ac_status); } >/dev/null && {
22251 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22252 test ! -s conftest.err
22253 }; then
22254 ac_header_preproc=yes
22255 else
22256 echo "$as_me: failed program was:" >&5
22257 sed 's/^/| /' conftest.$ac_ext >&5
22258
22259 ac_header_preproc=no
22260 fi
22261
22262 rm -f conftest.err conftest.$ac_ext
22263 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22264 echo "${ECHO_T}$ac_header_preproc" >&6; }
22265
22266 # So? What about this header?
22267 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22268 yes:no: )
22269 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22270 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22271 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22272 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22273 ac_header_preproc=yes
22274 ;;
22275 no:yes:* )
22276 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22277 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22278 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22279 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22280 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22281 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22282 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22283 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22284 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22285 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22286 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22287 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22288
22289 ;;
22290 esac
22291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22294 echo $ECHO_N "(cached) $ECHO_C" >&6
22295 else
22296 eval "$as_ac_Header=\$ac_header_preproc"
22297 fi
22298 ac_res=`eval echo '${'$as_ac_Header'}'`
22299 { echo "$as_me:$LINENO: result: $ac_res" >&5
22300 echo "${ECHO_T}$ac_res" >&6; }
22301
22302 fi
22303 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22304 cat >>confdefs.h <<_ACEOF
22305 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22306 _ACEOF
22307
22308 fi
22309
22310 done
22311
22312 fi
22313
22314 # Solaris requires -lintl if you want strerror (which calls dgettext)
22315 # to return localized messages.
22316
22317 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
22318 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
22319 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
22320 echo $ECHO_N "(cached) $ECHO_C" >&6
22321 else
22322 ac_check_lib_save_LIBS=$LIBS
22323 LIBS="-lintl $LIBS"
22324 cat >conftest.$ac_ext <<_ACEOF
22325 /* confdefs.h. */
22326 _ACEOF
22327 cat confdefs.h >>conftest.$ac_ext
22328 cat >>conftest.$ac_ext <<_ACEOF
22329 /* end confdefs.h. */
22330
22331 /* Override any GCC internal prototype to avoid an error.
22332 Use char because int might match the return type of a GCC
22333 builtin and then its argument prototype would still apply. */
22334 #ifdef __cplusplus
22335 extern "C"
22336 #endif
22337 char dgettext ();
22338 int
22339 main ()
22340 {
22341 return dgettext ();
22342 ;
22343 return 0;
22344 }
22345 _ACEOF
22346 rm -f conftest.$ac_objext conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>conftest.er1
22354 ac_status=$?
22355 grep -v '^ *+' conftest.er1 >conftest.err
22356 rm -f conftest.er1
22357 cat conftest.err >&5
22358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22359 (exit $ac_status); } && {
22360 test -z "$ac_c_werror_flag" ||
22361 test ! -s conftest.err
22362 } && test -s conftest$ac_exeext &&
22363 $as_test_x conftest$ac_exeext; then
22364 ac_cv_lib_intl_dgettext=yes
22365 else
22366 echo "$as_me: failed program was:" >&5
22367 sed 's/^/| /' conftest.$ac_ext >&5
22368
22369 ac_cv_lib_intl_dgettext=no
22370 fi
22371
22372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22373 conftest$ac_exeext conftest.$ac_ext
22374 LIBS=$ac_check_lib_save_LIBS
22375 fi
22376 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22377 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22378 if test $ac_cv_lib_intl_dgettext = yes; then
22379 cat >>confdefs.h <<_ACEOF
22380 #define HAVE_LIBINTL 1
22381 _ACEOF
22382
22383 LIBS="-lintl $LIBS"
22384
22385 fi
22386
22387
22388 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22389 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22390 if test "${emacs_cv_localtime_cache+set}" = set; then
22391 echo $ECHO_N "(cached) $ECHO_C" >&6
22392 else
22393 if test x$ac_cv_func_tzset = xyes; then
22394 if test "$cross_compiling" = yes; then
22395 # If we have tzset, assume the worst when cross-compiling.
22396 emacs_cv_localtime_cache=yes
22397 else
22398 cat >conftest.$ac_ext <<_ACEOF
22399 /* confdefs.h. */
22400 _ACEOF
22401 cat confdefs.h >>conftest.$ac_ext
22402 cat >>conftest.$ac_ext <<_ACEOF
22403 /* end confdefs.h. */
22404 #include <time.h>
22405 extern char **environ;
22406 unset_TZ ()
22407 {
22408 char **from, **to;
22409 for (to = from = environ; (*to = *from); from++)
22410 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22411 to++;
22412 }
22413 char TZ_GMT0[] = "TZ=GMT0";
22414 char TZ_PST8[] = "TZ=PST8";
22415 main()
22416 {
22417 time_t now = time ((time_t *) 0);
22418 int hour_GMT0, hour_unset;
22419 if (putenv (TZ_GMT0) != 0)
22420 exit (1);
22421 hour_GMT0 = localtime (&now)->tm_hour;
22422 unset_TZ ();
22423 hour_unset = localtime (&now)->tm_hour;
22424 if (putenv (TZ_PST8) != 0)
22425 exit (1);
22426 if (localtime (&now)->tm_hour == hour_GMT0)
22427 exit (1);
22428 unset_TZ ();
22429 if (localtime (&now)->tm_hour != hour_unset)
22430 exit (1);
22431 exit (0);
22432 }
22433 _ACEOF
22434 rm -f conftest$ac_exeext
22435 if { (ac_try="$ac_link"
22436 case "(($ac_try" in
22437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22438 *) ac_try_echo=$ac_try;;
22439 esac
22440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22441 (eval "$ac_link") 2>&5
22442 ac_status=$?
22443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22444 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
22451 ac_status=$?
22452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22453 (exit $ac_status); }; }; then
22454 emacs_cv_localtime_cache=no
22455 else
22456 echo "$as_me: program exited with status $ac_status" >&5
22457 echo "$as_me: failed program was:" >&5
22458 sed 's/^/| /' conftest.$ac_ext >&5
22459
22460 ( exit $ac_status )
22461 emacs_cv_localtime_cache=yes
22462 fi
22463 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22464 fi
22465
22466
22467 else
22468 # If we lack tzset, report that localtime does not cache TZ,
22469 # since we can't invalidate the cache if we don't have tzset.
22470 emacs_cv_localtime_cache=no
22471 fi
22472 fi
22473 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22474 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22475 if test $emacs_cv_localtime_cache = yes; then
22476
22477 cat >>confdefs.h <<\_ACEOF
22478 #define LOCALTIME_CACHE 1
22479 _ACEOF
22480
22481 fi
22482
22483 if test "x$HAVE_TIMEVAL" = xyes; then
22484
22485 for ac_func in gettimeofday
22486 do
22487 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22488 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22489 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22490 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 cat >conftest.$ac_ext <<_ACEOF
22494 /* confdefs.h. */
22495 _ACEOF
22496 cat confdefs.h >>conftest.$ac_ext
22497 cat >>conftest.$ac_ext <<_ACEOF
22498 /* end confdefs.h. */
22499 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22500 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22501 #define $ac_func innocuous_$ac_func
22502
22503 /* System header to define __stub macros and hopefully few prototypes,
22504 which can conflict with char $ac_func (); below.
22505 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22506 <limits.h> exists even on freestanding compilers. */
22507
22508 #ifdef __STDC__
22509 # include <limits.h>
22510 #else
22511 # include <assert.h>
22512 #endif
22513
22514 #undef $ac_func
22515
22516 /* Override any GCC internal prototype to avoid an error.
22517 Use char because int might match the return type of a GCC
22518 builtin and then its argument prototype would still apply. */
22519 #ifdef __cplusplus
22520 extern "C"
22521 #endif
22522 char $ac_func ();
22523 /* The GNU C library defines this for functions which it implements
22524 to always fail with ENOSYS. Some functions are actually named
22525 something starting with __ and the normal name is an alias. */
22526 #if defined __stub_$ac_func || defined __stub___$ac_func
22527 choke me
22528 #endif
22529
22530 int
22531 main ()
22532 {
22533 return $ac_func ();
22534 ;
22535 return 0;
22536 }
22537 _ACEOF
22538 rm -f conftest.$ac_objext conftest$ac_exeext
22539 if { (ac_try="$ac_link"
22540 case "(($ac_try" in
22541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22542 *) ac_try_echo=$ac_try;;
22543 esac
22544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22545 (eval "$ac_link") 2>conftest.er1
22546 ac_status=$?
22547 grep -v '^ *+' conftest.er1 >conftest.err
22548 rm -f conftest.er1
22549 cat conftest.err >&5
22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22551 (exit $ac_status); } && {
22552 test -z "$ac_c_werror_flag" ||
22553 test ! -s conftest.err
22554 } && test -s conftest$ac_exeext &&
22555 $as_test_x conftest$ac_exeext; then
22556 eval "$as_ac_var=yes"
22557 else
22558 echo "$as_me: failed program was:" >&5
22559 sed 's/^/| /' conftest.$ac_ext >&5
22560
22561 eval "$as_ac_var=no"
22562 fi
22563
22564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22565 conftest$ac_exeext conftest.$ac_ext
22566 fi
22567 ac_res=`eval echo '${'$as_ac_var'}'`
22568 { echo "$as_me:$LINENO: result: $ac_res" >&5
22569 echo "${ECHO_T}$ac_res" >&6; }
22570 if test `eval echo '${'$as_ac_var'}'` = yes; then
22571 cat >>confdefs.h <<_ACEOF
22572 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22573 _ACEOF
22574
22575 fi
22576 done
22577
22578 if test $ac_cv_func_gettimeofday = yes; then
22579 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22580 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22581 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22582 echo $ECHO_N "(cached) $ECHO_C" >&6
22583 else
22584 cat >conftest.$ac_ext <<_ACEOF
22585 /* confdefs.h. */
22586 _ACEOF
22587 cat confdefs.h >>conftest.$ac_ext
22588 cat >>conftest.$ac_ext <<_ACEOF
22589 /* end confdefs.h. */
22590
22591 #ifdef TIME_WITH_SYS_TIME
22592 #include <sys/time.h>
22593 #include <time.h>
22594 #else
22595 #ifdef HAVE_SYS_TIME_H
22596 #include <sys/time.h>
22597 #else
22598 #include <time.h>
22599 #endif
22600 #endif
22601 int
22602 main ()
22603 {
22604 struct timeval time;
22605 gettimeofday (&time, 0);
22606 ;
22607 return 0;
22608 }
22609 _ACEOF
22610 rm -f conftest.$ac_objext
22611 if { (ac_try="$ac_compile"
22612 case "(($ac_try" in
22613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22614 *) ac_try_echo=$ac_try;;
22615 esac
22616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22617 (eval "$ac_compile") 2>conftest.er1
22618 ac_status=$?
22619 grep -v '^ *+' conftest.er1 >conftest.err
22620 rm -f conftest.er1
22621 cat conftest.err >&5
22622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22623 (exit $ac_status); } && {
22624 test -z "$ac_c_werror_flag" ||
22625 test ! -s conftest.err
22626 } && test -s conftest.$ac_objext; then
22627 emacs_cv_gettimeofday_two_arguments=yes
22628 else
22629 echo "$as_me: failed program was:" >&5
22630 sed 's/^/| /' conftest.$ac_ext >&5
22631
22632 emacs_cv_gettimeofday_two_arguments=no
22633 fi
22634
22635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22636 fi
22637 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22638 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22639 if test $emacs_cv_gettimeofday_two_arguments = no; then
22640
22641 cat >>confdefs.h <<\_ACEOF
22642 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22643 _ACEOF
22644
22645 fi
22646 fi
22647 fi
22648
22649 ok_so_far=yes
22650 { echo "$as_me:$LINENO: checking for socket" >&5
22651 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22652 if test "${ac_cv_func_socket+set}" = set; then
22653 echo $ECHO_N "(cached) $ECHO_C" >&6
22654 else
22655 cat >conftest.$ac_ext <<_ACEOF
22656 /* confdefs.h. */
22657 _ACEOF
22658 cat confdefs.h >>conftest.$ac_ext
22659 cat >>conftest.$ac_ext <<_ACEOF
22660 /* end confdefs.h. */
22661 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22662 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22663 #define socket innocuous_socket
22664
22665 /* System header to define __stub macros and hopefully few prototypes,
22666 which can conflict with char socket (); below.
22667 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22668 <limits.h> exists even on freestanding compilers. */
22669
22670 #ifdef __STDC__
22671 # include <limits.h>
22672 #else
22673 # include <assert.h>
22674 #endif
22675
22676 #undef socket
22677
22678 /* Override any GCC internal prototype to avoid an error.
22679 Use char because int might match the return type of a GCC
22680 builtin and then its argument prototype would still apply. */
22681 #ifdef __cplusplus
22682 extern "C"
22683 #endif
22684 char socket ();
22685 /* The GNU C library defines this for functions which it implements
22686 to always fail with ENOSYS. Some functions are actually named
22687 something starting with __ and the normal name is an alias. */
22688 #if defined __stub_socket || defined __stub___socket
22689 choke me
22690 #endif
22691
22692 int
22693 main ()
22694 {
22695 return socket ();
22696 ;
22697 return 0;
22698 }
22699 _ACEOF
22700 rm -f conftest.$ac_objext conftest$ac_exeext
22701 if { (ac_try="$ac_link"
22702 case "(($ac_try" in
22703 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22704 *) ac_try_echo=$ac_try;;
22705 esac
22706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22707 (eval "$ac_link") 2>conftest.er1
22708 ac_status=$?
22709 grep -v '^ *+' conftest.er1 >conftest.err
22710 rm -f conftest.er1
22711 cat conftest.err >&5
22712 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22713 (exit $ac_status); } && {
22714 test -z "$ac_c_werror_flag" ||
22715 test ! -s conftest.err
22716 } && test -s conftest$ac_exeext &&
22717 $as_test_x conftest$ac_exeext; then
22718 ac_cv_func_socket=yes
22719 else
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723 ac_cv_func_socket=no
22724 fi
22725
22726 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22727 conftest$ac_exeext conftest.$ac_ext
22728 fi
22729 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22730 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22731 if test $ac_cv_func_socket = yes; then
22732 :
22733 else
22734 ok_so_far=no
22735 fi
22736
22737 if test $ok_so_far = yes; then
22738 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22739 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22740 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22741 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22742 echo $ECHO_N "(cached) $ECHO_C" >&6
22743 fi
22744 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22745 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22746 else
22747 # Is the header compilable?
22748 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22749 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22750 cat >conftest.$ac_ext <<_ACEOF
22751 /* confdefs.h. */
22752 _ACEOF
22753 cat confdefs.h >>conftest.$ac_ext
22754 cat >>conftest.$ac_ext <<_ACEOF
22755 /* end confdefs.h. */
22756 $ac_includes_default
22757 #include <netinet/in.h>
22758 _ACEOF
22759 rm -f conftest.$ac_objext
22760 if { (ac_try="$ac_compile"
22761 case "(($ac_try" in
22762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22763 *) ac_try_echo=$ac_try;;
22764 esac
22765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22766 (eval "$ac_compile") 2>conftest.er1
22767 ac_status=$?
22768 grep -v '^ *+' conftest.er1 >conftest.err
22769 rm -f conftest.er1
22770 cat conftest.err >&5
22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22772 (exit $ac_status); } && {
22773 test -z "$ac_c_werror_flag" ||
22774 test ! -s conftest.err
22775 } && test -s conftest.$ac_objext; then
22776 ac_header_compiler=yes
22777 else
22778 echo "$as_me: failed program was:" >&5
22779 sed 's/^/| /' conftest.$ac_ext >&5
22780
22781 ac_header_compiler=no
22782 fi
22783
22784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22785 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22786 echo "${ECHO_T}$ac_header_compiler" >&6; }
22787
22788 # Is the header present?
22789 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22790 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22791 cat >conftest.$ac_ext <<_ACEOF
22792 /* confdefs.h. */
22793 _ACEOF
22794 cat confdefs.h >>conftest.$ac_ext
22795 cat >>conftest.$ac_ext <<_ACEOF
22796 /* end confdefs.h. */
22797 #include <netinet/in.h>
22798 _ACEOF
22799 if { (ac_try="$ac_cpp conftest.$ac_ext"
22800 case "(($ac_try" in
22801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22802 *) ac_try_echo=$ac_try;;
22803 esac
22804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22805 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22806 ac_status=$?
22807 grep -v '^ *+' conftest.er1 >conftest.err
22808 rm -f conftest.er1
22809 cat conftest.err >&5
22810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22811 (exit $ac_status); } >/dev/null && {
22812 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22813 test ! -s conftest.err
22814 }; then
22815 ac_header_preproc=yes
22816 else
22817 echo "$as_me: failed program was:" >&5
22818 sed 's/^/| /' conftest.$ac_ext >&5
22819
22820 ac_header_preproc=no
22821 fi
22822
22823 rm -f conftest.err conftest.$ac_ext
22824 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22825 echo "${ECHO_T}$ac_header_preproc" >&6; }
22826
22827 # So? What about this header?
22828 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22829 yes:no: )
22830 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22831 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22832 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22833 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22834 ac_header_preproc=yes
22835 ;;
22836 no:yes:* )
22837 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22838 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22839 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22840 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22841 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22842 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22843 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22844 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22845 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22846 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22847 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22848 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22849
22850 ;;
22851 esac
22852 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22853 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22854 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22855 echo $ECHO_N "(cached) $ECHO_C" >&6
22856 else
22857 ac_cv_header_netinet_in_h=$ac_header_preproc
22858 fi
22859 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22860 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22861
22862 fi
22863 if test $ac_cv_header_netinet_in_h = yes; then
22864 :
22865 else
22866 ok_so_far=no
22867 fi
22868
22869
22870 fi
22871 if test $ok_so_far = yes; then
22872 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22873 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22874 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22875 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22876 echo $ECHO_N "(cached) $ECHO_C" >&6
22877 fi
22878 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22879 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22880 else
22881 # Is the header compilable?
22882 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22883 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22884 cat >conftest.$ac_ext <<_ACEOF
22885 /* confdefs.h. */
22886 _ACEOF
22887 cat confdefs.h >>conftest.$ac_ext
22888 cat >>conftest.$ac_ext <<_ACEOF
22889 /* end confdefs.h. */
22890 $ac_includes_default
22891 #include <arpa/inet.h>
22892 _ACEOF
22893 rm -f conftest.$ac_objext
22894 if { (ac_try="$ac_compile"
22895 case "(($ac_try" in
22896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22897 *) ac_try_echo=$ac_try;;
22898 esac
22899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22900 (eval "$ac_compile") 2>conftest.er1
22901 ac_status=$?
22902 grep -v '^ *+' conftest.er1 >conftest.err
22903 rm -f conftest.er1
22904 cat conftest.err >&5
22905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22906 (exit $ac_status); } && {
22907 test -z "$ac_c_werror_flag" ||
22908 test ! -s conftest.err
22909 } && test -s conftest.$ac_objext; then
22910 ac_header_compiler=yes
22911 else
22912 echo "$as_me: failed program was:" >&5
22913 sed 's/^/| /' conftest.$ac_ext >&5
22914
22915 ac_header_compiler=no
22916 fi
22917
22918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22920 echo "${ECHO_T}$ac_header_compiler" >&6; }
22921
22922 # Is the header present?
22923 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22924 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22925 cat >conftest.$ac_ext <<_ACEOF
22926 /* confdefs.h. */
22927 _ACEOF
22928 cat confdefs.h >>conftest.$ac_ext
22929 cat >>conftest.$ac_ext <<_ACEOF
22930 /* end confdefs.h. */
22931 #include <arpa/inet.h>
22932 _ACEOF
22933 if { (ac_try="$ac_cpp conftest.$ac_ext"
22934 case "(($ac_try" in
22935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22936 *) ac_try_echo=$ac_try;;
22937 esac
22938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22939 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22940 ac_status=$?
22941 grep -v '^ *+' conftest.er1 >conftest.err
22942 rm -f conftest.er1
22943 cat conftest.err >&5
22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22945 (exit $ac_status); } >/dev/null && {
22946 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22947 test ! -s conftest.err
22948 }; then
22949 ac_header_preproc=yes
22950 else
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 ac_header_preproc=no
22955 fi
22956
22957 rm -f conftest.err conftest.$ac_ext
22958 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22959 echo "${ECHO_T}$ac_header_preproc" >&6; }
22960
22961 # So? What about this header?
22962 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22963 yes:no: )
22964 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22965 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22967 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22968 ac_header_preproc=yes
22969 ;;
22970 no:yes:* )
22971 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22972 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22973 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22974 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22975 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22976 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22977 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22978 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22979 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22980 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22981 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22982 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22983
22984 ;;
22985 esac
22986 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22987 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22988 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22989 echo $ECHO_N "(cached) $ECHO_C" >&6
22990 else
22991 ac_cv_header_arpa_inet_h=$ac_header_preproc
22992 fi
22993 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22994 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22995
22996 fi
22997 if test $ac_cv_header_arpa_inet_h = yes; then
22998 :
22999 else
23000 ok_so_far=no
23001 fi
23002
23003
23004 fi
23005 if test $ok_so_far = yes; then
23006
23007 cat >>confdefs.h <<\_ACEOF
23008 #define HAVE_INET_SOCKETS 1
23009 _ACEOF
23010
23011 fi
23012
23013
23014 for ac_header in sys/ioctl.h
23015 do
23016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23021 echo $ECHO_N "(cached) $ECHO_C" >&6
23022 fi
23023 ac_res=`eval echo '${'$as_ac_Header'}'`
23024 { echo "$as_me:$LINENO: result: $ac_res" >&5
23025 echo "${ECHO_T}$ac_res" >&6; }
23026 else
23027 # Is the header compilable?
23028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23030 cat >conftest.$ac_ext <<_ACEOF
23031 /* confdefs.h. */
23032 _ACEOF
23033 cat confdefs.h >>conftest.$ac_ext
23034 cat >>conftest.$ac_ext <<_ACEOF
23035 /* end confdefs.h. */
23036 $ac_includes_default
23037 #include <$ac_header>
23038 _ACEOF
23039 rm -f conftest.$ac_objext
23040 if { (ac_try="$ac_compile"
23041 case "(($ac_try" in
23042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23043 *) ac_try_echo=$ac_try;;
23044 esac
23045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23046 (eval "$ac_compile") 2>conftest.er1
23047 ac_status=$?
23048 grep -v '^ *+' conftest.er1 >conftest.err
23049 rm -f conftest.er1
23050 cat conftest.err >&5
23051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23052 (exit $ac_status); } && {
23053 test -z "$ac_c_werror_flag" ||
23054 test ! -s conftest.err
23055 } && test -s conftest.$ac_objext; then
23056 ac_header_compiler=yes
23057 else
23058 echo "$as_me: failed program was:" >&5
23059 sed 's/^/| /' conftest.$ac_ext >&5
23060
23061 ac_header_compiler=no
23062 fi
23063
23064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23066 echo "${ECHO_T}$ac_header_compiler" >&6; }
23067
23068 # Is the header present?
23069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23071 cat >conftest.$ac_ext <<_ACEOF
23072 /* confdefs.h. */
23073 _ACEOF
23074 cat confdefs.h >>conftest.$ac_ext
23075 cat >>conftest.$ac_ext <<_ACEOF
23076 /* end confdefs.h. */
23077 #include <$ac_header>
23078 _ACEOF
23079 if { (ac_try="$ac_cpp conftest.$ac_ext"
23080 case "(($ac_try" in
23081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23082 *) ac_try_echo=$ac_try;;
23083 esac
23084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23086 ac_status=$?
23087 grep -v '^ *+' conftest.er1 >conftest.err
23088 rm -f conftest.er1
23089 cat conftest.err >&5
23090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23091 (exit $ac_status); } >/dev/null && {
23092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23093 test ! -s conftest.err
23094 }; then
23095 ac_header_preproc=yes
23096 else
23097 echo "$as_me: failed program was:" >&5
23098 sed 's/^/| /' conftest.$ac_ext >&5
23099
23100 ac_header_preproc=no
23101 fi
23102
23103 rm -f conftest.err conftest.$ac_ext
23104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23105 echo "${ECHO_T}$ac_header_preproc" >&6; }
23106
23107 # So? What about this header?
23108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23109 yes:no: )
23110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23114 ac_header_preproc=yes
23115 ;;
23116 no:yes:* )
23117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23129
23130 ;;
23131 esac
23132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23135 echo $ECHO_N "(cached) $ECHO_C" >&6
23136 else
23137 eval "$as_ac_Header=\$ac_header_preproc"
23138 fi
23139 ac_res=`eval echo '${'$as_ac_Header'}'`
23140 { echo "$as_me:$LINENO: result: $ac_res" >&5
23141 echo "${ECHO_T}$ac_res" >&6; }
23142
23143 fi
23144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23145 cat >>confdefs.h <<_ACEOF
23146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23147 _ACEOF
23148
23149 fi
23150
23151 done
23152
23153
23154 if test -f /usr/lpp/X11/bin/smt.exp; then
23155
23156 cat >>confdefs.h <<\_ACEOF
23157 #define HAVE_AIX_SMT_EXP 1
23158 _ACEOF
23159
23160 fi
23161
23162 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
23163 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
23164 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
23165 { echo "$as_me:$LINENO: result: yes" >&5
23166 echo "${ECHO_T}yes" >&6; }
23167
23168 cat >>confdefs.h <<\_ACEOF
23169 #define HAVE_DEV_PTMX 1
23170 _ACEOF
23171
23172 else
23173 { echo "$as_me:$LINENO: result: no" >&5
23174 echo "${ECHO_T}no" >&6; }
23175 fi
23176
23177 { echo "$as_me:$LINENO: checking for pid_t" >&5
23178 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
23179 if test "${ac_cv_type_pid_t+set}" = set; then
23180 echo $ECHO_N "(cached) $ECHO_C" >&6
23181 else
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 typedef pid_t ac__type_new_;
23190 int
23191 main ()
23192 {
23193 if ((ac__type_new_ *) 0)
23194 return 0;
23195 if (sizeof (ac__type_new_))
23196 return 0;
23197 ;
23198 return 0;
23199 }
23200 _ACEOF
23201 rm -f conftest.$ac_objext
23202 if { (ac_try="$ac_compile"
23203 case "(($ac_try" in
23204 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23205 *) ac_try_echo=$ac_try;;
23206 esac
23207 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23208 (eval "$ac_compile") 2>conftest.er1
23209 ac_status=$?
23210 grep -v '^ *+' conftest.er1 >conftest.err
23211 rm -f conftest.er1
23212 cat conftest.err >&5
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); } && {
23215 test -z "$ac_c_werror_flag" ||
23216 test ! -s conftest.err
23217 } && test -s conftest.$ac_objext; then
23218 ac_cv_type_pid_t=yes
23219 else
23220 echo "$as_me: failed program was:" >&5
23221 sed 's/^/| /' conftest.$ac_ext >&5
23222
23223 ac_cv_type_pid_t=no
23224 fi
23225
23226 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23227 fi
23228 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
23229 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
23230 if test $ac_cv_type_pid_t = yes; then
23231 :
23232 else
23233
23234 cat >>confdefs.h <<_ACEOF
23235 #define pid_t int
23236 _ACEOF
23237
23238 fi
23239
23240
23241 for ac_header in vfork.h
23242 do
23243 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23244 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23245 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23246 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23247 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23248 echo $ECHO_N "(cached) $ECHO_C" >&6
23249 fi
23250 ac_res=`eval echo '${'$as_ac_Header'}'`
23251 { echo "$as_me:$LINENO: result: $ac_res" >&5
23252 echo "${ECHO_T}$ac_res" >&6; }
23253 else
23254 # Is the header compilable?
23255 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23256 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23257 cat >conftest.$ac_ext <<_ACEOF
23258 /* confdefs.h. */
23259 _ACEOF
23260 cat confdefs.h >>conftest.$ac_ext
23261 cat >>conftest.$ac_ext <<_ACEOF
23262 /* end confdefs.h. */
23263 $ac_includes_default
23264 #include <$ac_header>
23265 _ACEOF
23266 rm -f conftest.$ac_objext
23267 if { (ac_try="$ac_compile"
23268 case "(($ac_try" in
23269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23270 *) ac_try_echo=$ac_try;;
23271 esac
23272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23273 (eval "$ac_compile") 2>conftest.er1
23274 ac_status=$?
23275 grep -v '^ *+' conftest.er1 >conftest.err
23276 rm -f conftest.er1
23277 cat conftest.err >&5
23278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23279 (exit $ac_status); } && {
23280 test -z "$ac_c_werror_flag" ||
23281 test ! -s conftest.err
23282 } && test -s conftest.$ac_objext; then
23283 ac_header_compiler=yes
23284 else
23285 echo "$as_me: failed program was:" >&5
23286 sed 's/^/| /' conftest.$ac_ext >&5
23287
23288 ac_header_compiler=no
23289 fi
23290
23291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23292 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23293 echo "${ECHO_T}$ac_header_compiler" >&6; }
23294
23295 # Is the header present?
23296 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23297 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23298 cat >conftest.$ac_ext <<_ACEOF
23299 /* confdefs.h. */
23300 _ACEOF
23301 cat confdefs.h >>conftest.$ac_ext
23302 cat >>conftest.$ac_ext <<_ACEOF
23303 /* end confdefs.h. */
23304 #include <$ac_header>
23305 _ACEOF
23306 if { (ac_try="$ac_cpp conftest.$ac_ext"
23307 case "(($ac_try" in
23308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23309 *) ac_try_echo=$ac_try;;
23310 esac
23311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23313 ac_status=$?
23314 grep -v '^ *+' conftest.er1 >conftest.err
23315 rm -f conftest.er1
23316 cat conftest.err >&5
23317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23318 (exit $ac_status); } >/dev/null && {
23319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
23320 test ! -s conftest.err
23321 }; then
23322 ac_header_preproc=yes
23323 else
23324 echo "$as_me: failed program was:" >&5
23325 sed 's/^/| /' conftest.$ac_ext >&5
23326
23327 ac_header_preproc=no
23328 fi
23329
23330 rm -f conftest.err conftest.$ac_ext
23331 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23332 echo "${ECHO_T}$ac_header_preproc" >&6; }
23333
23334 # So? What about this header?
23335 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23336 yes:no: )
23337 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23338 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23340 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23341 ac_header_preproc=yes
23342 ;;
23343 no:yes:* )
23344 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23345 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23346 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23347 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23348 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23349 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23350 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23351 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23352 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23353 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23354 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23355 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23356
23357 ;;
23358 esac
23359 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23360 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23361 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23362 echo $ECHO_N "(cached) $ECHO_C" >&6
23363 else
23364 eval "$as_ac_Header=\$ac_header_preproc"
23365 fi
23366 ac_res=`eval echo '${'$as_ac_Header'}'`
23367 { echo "$as_me:$LINENO: result: $ac_res" >&5
23368 echo "${ECHO_T}$ac_res" >&6; }
23369
23370 fi
23371 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23372 cat >>confdefs.h <<_ACEOF
23373 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23374 _ACEOF
23375
23376 fi
23377
23378 done
23379
23380
23381
23382 for ac_func in fork vfork
23383 do
23384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23388 echo $ECHO_N "(cached) $ECHO_C" >&6
23389 else
23390 cat >conftest.$ac_ext <<_ACEOF
23391 /* confdefs.h. */
23392 _ACEOF
23393 cat confdefs.h >>conftest.$ac_ext
23394 cat >>conftest.$ac_ext <<_ACEOF
23395 /* end confdefs.h. */
23396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23398 #define $ac_func innocuous_$ac_func
23399
23400 /* System header to define __stub macros and hopefully few prototypes,
23401 which can conflict with char $ac_func (); below.
23402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23403 <limits.h> exists even on freestanding compilers. */
23404
23405 #ifdef __STDC__
23406 # include <limits.h>
23407 #else
23408 # include <assert.h>
23409 #endif
23410
23411 #undef $ac_func
23412
23413 /* Override any GCC internal prototype to avoid an error.
23414 Use char because int might match the return type of a GCC
23415 builtin and then its argument prototype would still apply. */
23416 #ifdef __cplusplus
23417 extern "C"
23418 #endif
23419 char $ac_func ();
23420 /* The GNU C library defines this for functions which it implements
23421 to always fail with ENOSYS. Some functions are actually named
23422 something starting with __ and the normal name is an alias. */
23423 #if defined __stub_$ac_func || defined __stub___$ac_func
23424 choke me
23425 #endif
23426
23427 int
23428 main ()
23429 {
23430 return $ac_func ();
23431 ;
23432 return 0;
23433 }
23434 _ACEOF
23435 rm -f conftest.$ac_objext conftest$ac_exeext
23436 if { (ac_try="$ac_link"
23437 case "(($ac_try" in
23438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23439 *) ac_try_echo=$ac_try;;
23440 esac
23441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23442 (eval "$ac_link") 2>conftest.er1
23443 ac_status=$?
23444 grep -v '^ *+' conftest.er1 >conftest.err
23445 rm -f conftest.er1
23446 cat conftest.err >&5
23447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23448 (exit $ac_status); } && {
23449 test -z "$ac_c_werror_flag" ||
23450 test ! -s conftest.err
23451 } && test -s conftest$ac_exeext &&
23452 $as_test_x conftest$ac_exeext; then
23453 eval "$as_ac_var=yes"
23454 else
23455 echo "$as_me: failed program was:" >&5
23456 sed 's/^/| /' conftest.$ac_ext >&5
23457
23458 eval "$as_ac_var=no"
23459 fi
23460
23461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23462 conftest$ac_exeext conftest.$ac_ext
23463 fi
23464 ac_res=`eval echo '${'$as_ac_var'}'`
23465 { echo "$as_me:$LINENO: result: $ac_res" >&5
23466 echo "${ECHO_T}$ac_res" >&6; }
23467 if test `eval echo '${'$as_ac_var'}'` = yes; then
23468 cat >>confdefs.h <<_ACEOF
23469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23470 _ACEOF
23471
23472 fi
23473 done
23474
23475 if test "x$ac_cv_func_fork" = xyes; then
23476 { echo "$as_me:$LINENO: checking for working fork" >&5
23477 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23478 if test "${ac_cv_func_fork_works+set}" = set; then
23479 echo $ECHO_N "(cached) $ECHO_C" >&6
23480 else
23481 if test "$cross_compiling" = yes; then
23482 ac_cv_func_fork_works=cross
23483 else
23484 cat >conftest.$ac_ext <<_ACEOF
23485 /* confdefs.h. */
23486 _ACEOF
23487 cat confdefs.h >>conftest.$ac_ext
23488 cat >>conftest.$ac_ext <<_ACEOF
23489 /* end confdefs.h. */
23490 $ac_includes_default
23491 int
23492 main ()
23493 {
23494
23495 /* By Ruediger Kuhlmann. */
23496 return fork () < 0;
23497
23498 ;
23499 return 0;
23500 }
23501 _ACEOF
23502 rm -f conftest$ac_exeext
23503 if { (ac_try="$ac_link"
23504 case "(($ac_try" in
23505 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23506 *) ac_try_echo=$ac_try;;
23507 esac
23508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23509 (eval "$ac_link") 2>&5
23510 ac_status=$?
23511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23512 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23519 ac_status=$?
23520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23521 (exit $ac_status); }; }; then
23522 ac_cv_func_fork_works=yes
23523 else
23524 echo "$as_me: program exited with status $ac_status" >&5
23525 echo "$as_me: failed program was:" >&5
23526 sed 's/^/| /' conftest.$ac_ext >&5
23527
23528 ( exit $ac_status )
23529 ac_cv_func_fork_works=no
23530 fi
23531 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23532 fi
23533
23534
23535 fi
23536 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23537 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23538
23539 else
23540 ac_cv_func_fork_works=$ac_cv_func_fork
23541 fi
23542 if test "x$ac_cv_func_fork_works" = xcross; then
23543 case $host in
23544 *-*-amigaos* | *-*-msdosdjgpp*)
23545 # Override, as these systems have only a dummy fork() stub
23546 ac_cv_func_fork_works=no
23547 ;;
23548 *)
23549 ac_cv_func_fork_works=yes
23550 ;;
23551 esac
23552 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23553 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23554 fi
23555 ac_cv_func_vfork_works=$ac_cv_func_vfork
23556 if test "x$ac_cv_func_vfork" = xyes; then
23557 { echo "$as_me:$LINENO: checking for working vfork" >&5
23558 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23559 if test "${ac_cv_func_vfork_works+set}" = set; then
23560 echo $ECHO_N "(cached) $ECHO_C" >&6
23561 else
23562 if test "$cross_compiling" = yes; then
23563 ac_cv_func_vfork_works=cross
23564 else
23565 cat >conftest.$ac_ext <<_ACEOF
23566 /* confdefs.h. */
23567 _ACEOF
23568 cat confdefs.h >>conftest.$ac_ext
23569 cat >>conftest.$ac_ext <<_ACEOF
23570 /* end confdefs.h. */
23571 /* Thanks to Paul Eggert for this test. */
23572 $ac_includes_default
23573 #include <sys/wait.h>
23574 #ifdef HAVE_VFORK_H
23575 # include <vfork.h>
23576 #endif
23577 /* On some sparc systems, changes by the child to local and incoming
23578 argument registers are propagated back to the parent. The compiler
23579 is told about this with #include <vfork.h>, but some compilers
23580 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23581 static variable whose address is put into a register that is
23582 clobbered by the vfork. */
23583 static void
23584 #ifdef __cplusplus
23585 sparc_address_test (int arg)
23586 # else
23587 sparc_address_test (arg) int arg;
23588 #endif
23589 {
23590 static pid_t child;
23591 if (!child) {
23592 child = vfork ();
23593 if (child < 0) {
23594 perror ("vfork");
23595 _exit(2);
23596 }
23597 if (!child) {
23598 arg = getpid();
23599 write(-1, "", 0);
23600 _exit (arg);
23601 }
23602 }
23603 }
23604
23605 int
23606 main ()
23607 {
23608 pid_t parent = getpid ();
23609 pid_t child;
23610
23611 sparc_address_test (0);
23612
23613 child = vfork ();
23614
23615 if (child == 0) {
23616 /* Here is another test for sparc vfork register problems. This
23617 test uses lots of local variables, at least as many local
23618 variables as main has allocated so far including compiler
23619 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23620 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23621 reuse the register of parent for one of the local variables,
23622 since it will think that parent can't possibly be used any more
23623 in this routine. Assigning to the local variable will thus
23624 munge parent in the parent process. */
23625 pid_t
23626 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23627 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23628 /* Convince the compiler that p..p7 are live; otherwise, it might
23629 use the same hardware register for all 8 local variables. */
23630 if (p != p1 || p != p2 || p != p3 || p != p4
23631 || p != p5 || p != p6 || p != p7)
23632 _exit(1);
23633
23634 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23635 from child file descriptors. If the child closes a descriptor
23636 before it execs or exits, this munges the parent's descriptor
23637 as well. Test for this by closing stdout in the child. */
23638 _exit(close(fileno(stdout)) != 0);
23639 } else {
23640 int status;
23641 struct stat st;
23642
23643 while (wait(&status) != child)
23644 ;
23645 return (
23646 /* Was there some problem with vforking? */
23647 child < 0
23648
23649 /* Did the child fail? (This shouldn't happen.) */
23650 || status
23651
23652 /* Did the vfork/compiler bug occur? */
23653 || parent != getpid()
23654
23655 /* Did the file descriptor bug occur? */
23656 || fstat(fileno(stdout), &st) != 0
23657 );
23658 }
23659 }
23660 _ACEOF
23661 rm -f conftest$ac_exeext
23662 if { (ac_try="$ac_link"
23663 case "(($ac_try" in
23664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23665 *) ac_try_echo=$ac_try;;
23666 esac
23667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23668 (eval "$ac_link") 2>&5
23669 ac_status=$?
23670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23671 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
23678 ac_status=$?
23679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23680 (exit $ac_status); }; }; then
23681 ac_cv_func_vfork_works=yes
23682 else
23683 echo "$as_me: program exited with status $ac_status" >&5
23684 echo "$as_me: failed program was:" >&5
23685 sed 's/^/| /' conftest.$ac_ext >&5
23686
23687 ( exit $ac_status )
23688 ac_cv_func_vfork_works=no
23689 fi
23690 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23691 fi
23692
23693
23694 fi
23695 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23696 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23697
23698 fi;
23699 if test "x$ac_cv_func_fork_works" = xcross; then
23700 ac_cv_func_vfork_works=$ac_cv_func_vfork
23701 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23702 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23703 fi
23704
23705 if test "x$ac_cv_func_vfork_works" = xyes; then
23706
23707 cat >>confdefs.h <<\_ACEOF
23708 #define HAVE_WORKING_VFORK 1
23709 _ACEOF
23710
23711 else
23712
23713 cat >>confdefs.h <<\_ACEOF
23714 #define vfork fork
23715 _ACEOF
23716
23717 fi
23718 if test "x$ac_cv_func_fork_works" = xyes; then
23719
23720 cat >>confdefs.h <<\_ACEOF
23721 #define HAVE_WORKING_FORK 1
23722 _ACEOF
23723
23724 fi
23725
23726
23727 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23728 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23729 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23730 echo $ECHO_N "(cached) $ECHO_C" >&6
23731 else
23732 cat >conftest.$ac_ext <<_ACEOF
23733 /* confdefs.h. */
23734 _ACEOF
23735 cat confdefs.h >>conftest.$ac_ext
23736 cat >>conftest.$ac_ext <<_ACEOF
23737 /* end confdefs.h. */
23738 #include <langinfo.h>
23739 int
23740 main ()
23741 {
23742 char* cs = nl_langinfo(CODESET);
23743 ;
23744 return 0;
23745 }
23746 _ACEOF
23747 rm -f conftest.$ac_objext conftest$ac_exeext
23748 if { (ac_try="$ac_link"
23749 case "(($ac_try" in
23750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23751 *) ac_try_echo=$ac_try;;
23752 esac
23753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23754 (eval "$ac_link") 2>conftest.er1
23755 ac_status=$?
23756 grep -v '^ *+' conftest.er1 >conftest.err
23757 rm -f conftest.er1
23758 cat conftest.err >&5
23759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23760 (exit $ac_status); } && {
23761 test -z "$ac_c_werror_flag" ||
23762 test ! -s conftest.err
23763 } && test -s conftest$ac_exeext &&
23764 $as_test_x conftest$ac_exeext; then
23765 emacs_cv_langinfo_codeset=yes
23766 else
23767 echo "$as_me: failed program was:" >&5
23768 sed 's/^/| /' conftest.$ac_ext >&5
23769
23770 emacs_cv_langinfo_codeset=no
23771 fi
23772
23773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23774 conftest$ac_exeext conftest.$ac_ext
23775
23776 fi
23777 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23778 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23779 if test $emacs_cv_langinfo_codeset = yes; then
23780
23781 cat >>confdefs.h <<\_ACEOF
23782 #define HAVE_LANGINFO_CODESET 1
23783 _ACEOF
23784
23785 fi
23786
23787 { echo "$as_me:$LINENO: checking for size_t" >&5
23788 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23789 if test "${ac_cv_type_size_t+set}" = set; then
23790 echo $ECHO_N "(cached) $ECHO_C" >&6
23791 else
23792 cat >conftest.$ac_ext <<_ACEOF
23793 /* confdefs.h. */
23794 _ACEOF
23795 cat confdefs.h >>conftest.$ac_ext
23796 cat >>conftest.$ac_ext <<_ACEOF
23797 /* end confdefs.h. */
23798 $ac_includes_default
23799 typedef size_t ac__type_new_;
23800 int
23801 main ()
23802 {
23803 if ((ac__type_new_ *) 0)
23804 return 0;
23805 if (sizeof (ac__type_new_))
23806 return 0;
23807 ;
23808 return 0;
23809 }
23810 _ACEOF
23811 rm -f conftest.$ac_objext
23812 if { (ac_try="$ac_compile"
23813 case "(($ac_try" in
23814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23815 *) ac_try_echo=$ac_try;;
23816 esac
23817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23818 (eval "$ac_compile") 2>conftest.er1
23819 ac_status=$?
23820 grep -v '^ *+' conftest.er1 >conftest.err
23821 rm -f conftest.er1
23822 cat conftest.err >&5
23823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23824 (exit $ac_status); } && {
23825 test -z "$ac_c_werror_flag" ||
23826 test ! -s conftest.err
23827 } && test -s conftest.$ac_objext; then
23828 ac_cv_type_size_t=yes
23829 else
23830 echo "$as_me: failed program was:" >&5
23831 sed 's/^/| /' conftest.$ac_ext >&5
23832
23833 ac_cv_type_size_t=no
23834 fi
23835
23836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23837 fi
23838 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23839 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23840 if test $ac_cv_type_size_t = yes; then
23841
23842 cat >>confdefs.h <<_ACEOF
23843 #define HAVE_SIZE_T 1
23844 _ACEOF
23845
23846
23847 fi
23848
23849
23850 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23851 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23852 if test "${ac_cv_type_mbstate_t+set}" = set; then
23853 echo $ECHO_N "(cached) $ECHO_C" >&6
23854 else
23855 cat >conftest.$ac_ext <<_ACEOF
23856 /* confdefs.h. */
23857 _ACEOF
23858 cat confdefs.h >>conftest.$ac_ext
23859 cat >>conftest.$ac_ext <<_ACEOF
23860 /* end confdefs.h. */
23861 $ac_includes_default
23862 # include <wchar.h>
23863 int
23864 main ()
23865 {
23866 mbstate_t x; return sizeof x;
23867 ;
23868 return 0;
23869 }
23870 _ACEOF
23871 rm -f conftest.$ac_objext
23872 if { (ac_try="$ac_compile"
23873 case "(($ac_try" in
23874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23875 *) ac_try_echo=$ac_try;;
23876 esac
23877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23878 (eval "$ac_compile") 2>conftest.er1
23879 ac_status=$?
23880 grep -v '^ *+' conftest.er1 >conftest.err
23881 rm -f conftest.er1
23882 cat conftest.err >&5
23883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23884 (exit $ac_status); } && {
23885 test -z "$ac_c_werror_flag" ||
23886 test ! -s conftest.err
23887 } && test -s conftest.$ac_objext; then
23888 ac_cv_type_mbstate_t=yes
23889 else
23890 echo "$as_me: failed program was:" >&5
23891 sed 's/^/| /' conftest.$ac_ext >&5
23892
23893 ac_cv_type_mbstate_t=no
23894 fi
23895
23896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23897 fi
23898 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23899 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23900 if test $ac_cv_type_mbstate_t = yes; then
23901
23902 cat >>confdefs.h <<\_ACEOF
23903 #define HAVE_MBSTATE_T 1
23904 _ACEOF
23905
23906 else
23907
23908 cat >>confdefs.h <<\_ACEOF
23909 #define mbstate_t int
23910 _ACEOF
23911
23912 fi
23913
23914 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23915 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23916 if test "${emacs_cv_c_restrict+set}" = set; then
23917 echo $ECHO_N "(cached) $ECHO_C" >&6
23918 else
23919 cat >conftest.$ac_ext <<_ACEOF
23920 /* confdefs.h. */
23921 _ACEOF
23922 cat confdefs.h >>conftest.$ac_ext
23923 cat >>conftest.$ac_ext <<_ACEOF
23924 /* end confdefs.h. */
23925 void fred (int *restrict x);
23926 int
23927 main ()
23928 {
23929
23930 ;
23931 return 0;
23932 }
23933 _ACEOF
23934 rm -f conftest.$ac_objext
23935 if { (ac_try="$ac_compile"
23936 case "(($ac_try" in
23937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23938 *) ac_try_echo=$ac_try;;
23939 esac
23940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23941 (eval "$ac_compile") 2>conftest.er1
23942 ac_status=$?
23943 grep -v '^ *+' conftest.er1 >conftest.err
23944 rm -f conftest.er1
23945 cat conftest.err >&5
23946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23947 (exit $ac_status); } && {
23948 test -z "$ac_c_werror_flag" ||
23949 test ! -s conftest.err
23950 } && test -s conftest.$ac_objext; then
23951 emacs_cv_c_restrict=yes
23952 else
23953 echo "$as_me: failed program was:" >&5
23954 sed 's/^/| /' conftest.$ac_ext >&5
23955
23956 cat >conftest.$ac_ext <<_ACEOF
23957 /* confdefs.h. */
23958 _ACEOF
23959 cat confdefs.h >>conftest.$ac_ext
23960 cat >>conftest.$ac_ext <<_ACEOF
23961 /* end confdefs.h. */
23962 void fred (int *__restrict x);
23963 int
23964 main ()
23965 {
23966
23967 ;
23968 return 0;
23969 }
23970 _ACEOF
23971 rm -f conftest.$ac_objext
23972 if { (ac_try="$ac_compile"
23973 case "(($ac_try" in
23974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23975 *) ac_try_echo=$ac_try;;
23976 esac
23977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23978 (eval "$ac_compile") 2>conftest.er1
23979 ac_status=$?
23980 grep -v '^ *+' conftest.er1 >conftest.err
23981 rm -f conftest.er1
23982 cat conftest.err >&5
23983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23984 (exit $ac_status); } && {
23985 test -z "$ac_c_werror_flag" ||
23986 test ! -s conftest.err
23987 } && test -s conftest.$ac_objext; then
23988 emacs_cv_c_restrict=__restrict
23989 else
23990 echo "$as_me: failed program was:" >&5
23991 sed 's/^/| /' conftest.$ac_ext >&5
23992
23993 emacs_cv_c_restrict=no
23994 fi
23995
23996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23997 fi
23998
23999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24000 fi
24001 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
24002 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
24003 case "$emacs_cv_c_restrict" in
24004 yes) emacs_restrict=restrict;;
24005 no) emacs_restrict="";;
24006 *) emacs_restrict="$emacs_cv_c_restrict";;
24007 esac
24008 if test "$emacs_restrict" != __restrict; then
24009
24010 cat >>confdefs.h <<_ACEOF
24011 #define __restrict $emacs_restrict
24012 _ACEOF
24013
24014 fi
24015
24016 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
24017 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
24018 if test "${emacs_cv_c_restrict_arr+set}" = set; then
24019 echo $ECHO_N "(cached) $ECHO_C" >&6
24020 else
24021 cat >conftest.$ac_ext <<_ACEOF
24022 /* confdefs.h. */
24023 _ACEOF
24024 cat confdefs.h >>conftest.$ac_ext
24025 cat >>conftest.$ac_ext <<_ACEOF
24026 /* end confdefs.h. */
24027 void fred (int x[__restrict]);
24028 int
24029 main ()
24030 {
24031
24032 ;
24033 return 0;
24034 }
24035 _ACEOF
24036 rm -f conftest.$ac_objext
24037 if { (ac_try="$ac_compile"
24038 case "(($ac_try" in
24039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24040 *) ac_try_echo=$ac_try;;
24041 esac
24042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24043 (eval "$ac_compile") 2>conftest.er1
24044 ac_status=$?
24045 grep -v '^ *+' conftest.er1 >conftest.err
24046 rm -f conftest.er1
24047 cat conftest.err >&5
24048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24049 (exit $ac_status); } && {
24050 test -z "$ac_c_werror_flag" ||
24051 test ! -s conftest.err
24052 } && test -s conftest.$ac_objext; then
24053 emacs_cv_c_restrict_arr=yes
24054 else
24055 echo "$as_me: failed program was:" >&5
24056 sed 's/^/| /' conftest.$ac_ext >&5
24057
24058 emacs_cv_c_restrict_arr=no
24059 fi
24060
24061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24062 fi
24063 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
24064 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
24065 if test "$emacs_cv_c_restrict_arr" = yes; then
24066
24067 cat >>confdefs.h <<\_ACEOF
24068 #define __restrict_arr __restrict
24069 _ACEOF
24070
24071 fi
24072
24073
24074
24075 # Set up the CFLAGS for real compilation, so we can substitute it.
24076 CFLAGS="$REAL_CFLAGS"
24077 CPPFLAGS="$REAL_CPPFLAGS"
24078
24079 #### Find out which version of Emacs this is.
24080 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
24081 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
24082 if test x"${version}" = x; then
24083 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
24084 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
24085 { (exit 1); exit 1; }; }
24086 fi
24087
24088 ### Specify what sort of things we'll be editing into Makefile and config.h.
24089 ### Use configuration here uncanonicalized to avoid exceeding size limits.
24090
24091
24092
24093
24094
24095
24096
24097
24098
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 cat >>confdefs.h <<_ACEOF
24130 #define EMACS_CONFIGURATION "${canonical}"
24131 _ACEOF
24132
24133
24134 cat >>confdefs.h <<_ACEOF
24135 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
24136 _ACEOF
24137
24138
24139 cat >>confdefs.h <<_ACEOF
24140 #define config_machfile "${machfile}"
24141 _ACEOF
24142
24143
24144 cat >>confdefs.h <<_ACEOF
24145 #define config_opsysfile "${opsysfile}"
24146 _ACEOF
24147
24148
24149 cat >>confdefs.h <<_ACEOF
24150 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
24151 _ACEOF
24152
24153
24154 cat >>confdefs.h <<_ACEOF
24155 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
24156 _ACEOF
24157
24158
24159 cat >>confdefs.h <<_ACEOF
24160 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
24161 _ACEOF
24162
24163
24164 cat >>confdefs.h <<_ACEOF
24165 #define UNEXEC_SRC ${UNEXEC_SRC}
24166 _ACEOF
24167
24168
24169 if test "${HAVE_X_WINDOWS}" = "yes" ; then
24170
24171 cat >>confdefs.h <<\_ACEOF
24172 #define HAVE_X_WINDOWS 1
24173 _ACEOF
24174
24175 fi
24176 if test "${USE_X_TOOLKIT}" != "none" ; then
24177
24178 cat >>confdefs.h <<\_ACEOF
24179 #define USE_X_TOOLKIT 1
24180 _ACEOF
24181
24182 if test "${USE_X_TOOLKIT}" = "LUCID"; then
24183
24184 cat >>confdefs.h <<\_ACEOF
24185 #define USE_LUCID 1
24186 _ACEOF
24187
24188 elif test "${USE_X_TOOLKIT}" = "MOTIF"; then
24189
24190 cat >>confdefs.h <<\_ACEOF
24191 #define USE_MOTIF 1
24192 _ACEOF
24193
24194 fi
24195 fi
24196 if test "${HAVE_X11}" = "yes" ; then
24197
24198 cat >>confdefs.h <<\_ACEOF
24199 #define HAVE_X11 1
24200 _ACEOF
24201
24202 fi
24203 if test "${HAVE_MENUS}" = "yes" ; then
24204
24205 cat >>confdefs.h <<\_ACEOF
24206 #define HAVE_MENUS 1
24207 _ACEOF
24208
24209 fi
24210 if test "${GNU_MALLOC}" = "yes" ; then
24211
24212 cat >>confdefs.h <<\_ACEOF
24213 #define GNU_MALLOC 1
24214 _ACEOF
24215
24216 fi
24217 if test "${REL_ALLOC}" = "yes" ; then
24218
24219 cat >>confdefs.h <<\_ACEOF
24220 #define REL_ALLOC 1
24221 _ACEOF
24222
24223 fi
24224
24225
24226
24227
24228
24229
24230 #### Report on what we decided to do.
24231 #### Report GTK as a toolkit, even if it doesn't use Xt.
24232 #### It makes printing result more understandable as using GTK sets
24233 #### toolkit_scroll_bars to yes by default.
24234 if test "${HAVE_GTK}" = "yes"; then
24235 USE_X_TOOLKIT=GTK
24236 fi
24237
24238 echo "
24239 Configured for \`${canonical}'.
24240
24241 Where should the build process find the source code? ${srcdir}
24242 What operating system and machine description files should Emacs use?
24243 \`${opsysfile}' and \`${machfile}'
24244 What compiler should emacs be built with? ${CC} ${CFLAGS}
24245 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
24246 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
24247 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
24248 What window system should Emacs use? ${window_system}
24249 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
24250
24251 if test -n "${x_includes}"; then
24252 echo " Where do we find X Windows header files? ${x_includes}"
24253 else
24254 echo " Where do we find X Windows header files? Standard dirs"
24255 fi
24256 if test -n "${x_libraries}"; then
24257 echo " Where do we find X Windows libraries? ${x_libraries}"
24258 else
24259 echo " Where do we find X Windows libraries? Standard dirs"
24260 fi
24261
24262 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
24263 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
24264 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
24265 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
24266 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
24267 echo " Does Emacs use -lpng? ${HAVE_PNG}"
24268 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
24269 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
24270 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
24271
24272 echo " Does Emacs use -lfreetype? ${HAVE_FREETYPE}"
24273 echo " Does Emacs use -lm17n-flt? ${HAVE_M17N_FLT}"
24274 echo " Does Emacs use -lotf? ${HAVE_LIBOTF}"
24275 echo " Does Emacs use -lxft? ${HAVE_XFT}"
24276
24277 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
24278 echo
24279
24280 if test $USE_XASSERTS = yes; then
24281 echo " Compiling with asserts turned on."
24282 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
24283 fi
24284
24285 echo
24286
24287 if test "$USE_X_TOOLKIT" = GTK; then
24288 case "$canonical" in
24289 *cygwin*)
24290 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
24291 will probably get a crash on startup. If this happens, please use another
24292 toolkit for Emacs. See etc/PROBLEMS for more information."
24293 ;;
24294 esac
24295 fi
24296
24297 if test "$HAVE_NS" = "yes"; then
24298 echo
24299 echo "You must run \"make install\" in order to test the built application.
24300 The installed application will go to nextstep/Emacs.app and can be
24301 run or moved from there."
24302 if test "$EN_NS_SELF_CONTAINED" = "yes"; then
24303 echo "The application will be fully self-contained."
24304 else
24305 echo "The lisp resources for the application will be installed under ${prefix}.
24306 You may need to run \"make install\" with sudo. The application will fail
24307 to run if these resources are not installed."
24308 fi
24309 echo
24310 fi
24311
24312 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
24313 echo "D-Bus integration has been tested for GNU/Linux only."
24314 echo
24315 fi
24316
24317
24318 # Remove any trailing slashes in these variables.
24319 test "${prefix}" != NONE &&
24320 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
24321 test "${exec_prefix}" != NONE &&
24322 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
24323
24324 # Now get this: Some word that is part of the ${srcdir} directory name
24325 # or the ${configuration} value might, just might, happen to be an
24326 # identifier like `sun4' or `i386' or something, and be predefined by
24327 # the C preprocessor to some helpful value like 1, or maybe the empty
24328 # string. Needless to say consequent macro substitutions are less
24329 # than conducive to the makefile finding the correct directory.
24330 cpp_undefs="`echo $srcdir $configuration $canonical |
24331 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24332 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g'`"
24333
24334 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
24335 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
24336 ## from Makefile.c can correctly provide the arg `-traditional' to the
24337 ## C preprocessor.
24338
24339 cat >conftest.$ac_ext <<_ACEOF
24340 /* confdefs.h. */
24341 _ACEOF
24342 cat confdefs.h >>conftest.$ac_ext
24343 cat >>conftest.$ac_ext <<_ACEOF
24344 /* end confdefs.h. */
24345 yes..yes
24346 _ACEOF
24347 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
24348 $EGREP "yes..yes" >/dev/null 2>&1; then
24349 CPP_NEED_TRADITIONAL=no
24350 else
24351 CPP_NEED_TRADITIONAL=yes
24352 fi
24353 rm -f conftest*
24354
24355
24356 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"
24357
24358 ac_config_commands="$ac_config_commands default"
24359
24360 cat >confcache <<\_ACEOF
24361 # This file is a shell script that caches the results of configure
24362 # tests run on this system so they can be shared between configure
24363 # scripts and configure runs, see configure's option --config-cache.
24364 # It is not useful on other systems. If it contains results you don't
24365 # want to keep, you may remove or edit it.
24366 #
24367 # config.status only pays attention to the cache file if you give it
24368 # the --recheck option to rerun configure.
24369 #
24370 # `ac_cv_env_foo' variables (set or unset) will be overridden when
24371 # loading this file, other *unset* `ac_cv_foo' will be assigned the
24372 # following values.
24373
24374 _ACEOF
24375
24376 # The following way of writing the cache mishandles newlines in values,
24377 # but we know of no workaround that is simple, portable, and efficient.
24378 # So, we kill variables containing newlines.
24379 # Ultrix sh set writes to stderr and can't be redirected directly,
24380 # and sets the high bit in the cache file unless we assign to the vars.
24381 (
24382 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
24383 eval ac_val=\$$ac_var
24384 case $ac_val in #(
24385 *${as_nl}*)
24386 case $ac_var in #(
24387 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24388 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24389 esac
24390 case $ac_var in #(
24391 _ | IFS | as_nl) ;; #(
24392 *) $as_unset $ac_var ;;
24393 esac ;;
24394 esac
24395 done
24396
24397 (set) 2>&1 |
24398 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24399 *${as_nl}ac_space=\ *)
24400 # `set' does not quote correctly, so add quotes (double-quote
24401 # substitution turns \\\\ into \\, and sed turns \\ into \).
24402 sed -n \
24403 "s/'/'\\\\''/g;
24404 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24405 ;; #(
24406 *)
24407 # `set' quotes correctly as required by POSIX, so do not add quotes.
24408 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24409 ;;
24410 esac |
24411 sort
24412 ) |
24413 sed '
24414 /^ac_cv_env_/b end
24415 t clear
24416 :clear
24417 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24418 t end
24419 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24420 :end' >>confcache
24421 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24422 if test -w "$cache_file"; then
24423 test "x$cache_file" != "x/dev/null" &&
24424 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24425 echo "$as_me: updating cache $cache_file" >&6;}
24426 cat confcache >$cache_file
24427 else
24428 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24429 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24430 fi
24431 fi
24432 rm -f confcache
24433
24434 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24435 # Let make expand exec_prefix.
24436 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24437
24438 DEFS=-DHAVE_CONFIG_H
24439
24440 ac_libobjs=
24441 ac_ltlibobjs=
24442 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24443 # 1. Remove the extension, and $U if already installed.
24444 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24445 ac_i=`echo "$ac_i" | sed "$ac_script"`
24446 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24447 # will be set to the directory where LIBOBJS objects are built.
24448 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24449 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24450 done
24451 LIBOBJS=$ac_libobjs
24452
24453 LTLIBOBJS=$ac_ltlibobjs
24454
24455
24456
24457 : ${CONFIG_STATUS=./config.status}
24458 ac_clean_files_save=$ac_clean_files
24459 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24460 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24461 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24462 cat >$CONFIG_STATUS <<_ACEOF
24463 #! $SHELL
24464 # Generated by $as_me.
24465 # Run this file to recreate the current configuration.
24466 # Compiler output produced by configure, useful for debugging
24467 # configure, is in config.log if it exists.
24468
24469 debug=false
24470 ac_cs_recheck=false
24471 ac_cs_silent=false
24472 SHELL=\${CONFIG_SHELL-$SHELL}
24473 _ACEOF
24474
24475 cat >>$CONFIG_STATUS <<\_ACEOF
24476 ## --------------------- ##
24477 ## M4sh Initialization. ##
24478 ## --------------------- ##
24479
24480 # Be more Bourne compatible
24481 DUALCASE=1; export DUALCASE # for MKS sh
24482 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24483 emulate sh
24484 NULLCMD=:
24485 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24486 # is contrary to our usage. Disable this feature.
24487 alias -g '${1+"$@"}'='"$@"'
24488 setopt NO_GLOB_SUBST
24489 else
24490 case `(set -o) 2>/dev/null` in
24491 *posix*) set -o posix ;;
24492 esac
24493
24494 fi
24495
24496
24497
24498
24499 # PATH needs CR
24500 # Avoid depending upon Character Ranges.
24501 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24502 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24503 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24504 as_cr_digits='0123456789'
24505 as_cr_alnum=$as_cr_Letters$as_cr_digits
24506
24507 # The user is always right.
24508 if test "${PATH_SEPARATOR+set}" != set; then
24509 echo "#! /bin/sh" >conf$$.sh
24510 echo "exit 0" >>conf$$.sh
24511 chmod +x conf$$.sh
24512 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24513 PATH_SEPARATOR=';'
24514 else
24515 PATH_SEPARATOR=:
24516 fi
24517 rm -f conf$$.sh
24518 fi
24519
24520 # Support unset when possible.
24521 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24522 as_unset=unset
24523 else
24524 as_unset=false
24525 fi
24526
24527
24528 # IFS
24529 # We need space, tab and new line, in precisely that order. Quoting is
24530 # there to prevent editors from complaining about space-tab.
24531 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24532 # splitting by setting IFS to empty value.)
24533 as_nl='
24534 '
24535 IFS=" "" $as_nl"
24536
24537 # Find who we are. Look in the path if we contain no directory separator.
24538 case $0 in
24539 *[\\/]* ) as_myself=$0 ;;
24540 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24541 for as_dir in $PATH
24542 do
24543 IFS=$as_save_IFS
24544 test -z "$as_dir" && as_dir=.
24545 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24546 done
24547 IFS=$as_save_IFS
24548
24549 ;;
24550 esac
24551 # We did not find ourselves, most probably we were run as `sh COMMAND'
24552 # in which case we are not to be found in the path.
24553 if test "x$as_myself" = x; then
24554 as_myself=$0
24555 fi
24556 if test ! -f "$as_myself"; then
24557 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24558 { (exit 1); exit 1; }
24559 fi
24560
24561 # Work around bugs in pre-3.0 UWIN ksh.
24562 for as_var in ENV MAIL MAILPATH
24563 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24564 done
24565 PS1='$ '
24566 PS2='> '
24567 PS4='+ '
24568
24569 # NLS nuisances.
24570 for as_var in \
24571 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24572 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24573 LC_TELEPHONE LC_TIME
24574 do
24575 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24576 eval $as_var=C; export $as_var
24577 else
24578 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24579 fi
24580 done
24581
24582 # Required to use basename.
24583 if expr a : '\(a\)' >/dev/null 2>&1 &&
24584 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24585 as_expr=expr
24586 else
24587 as_expr=false
24588 fi
24589
24590 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24591 as_basename=basename
24592 else
24593 as_basename=false
24594 fi
24595
24596
24597 # Name of the executable.
24598 as_me=`$as_basename -- "$0" ||
24599 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24600 X"$0" : 'X\(//\)$' \| \
24601 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24602 echo X/"$0" |
24603 sed '/^.*\/\([^/][^/]*\)\/*$/{
24604 s//\1/
24605 q
24606 }
24607 /^X\/\(\/\/\)$/{
24608 s//\1/
24609 q
24610 }
24611 /^X\/\(\/\).*/{
24612 s//\1/
24613 q
24614 }
24615 s/.*/./; q'`
24616
24617 # CDPATH.
24618 $as_unset CDPATH
24619
24620
24621
24622 as_lineno_1=$LINENO
24623 as_lineno_2=$LINENO
24624 test "x$as_lineno_1" != "x$as_lineno_2" &&
24625 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24626
24627 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24628 # uniformly replaced by the line number. The first 'sed' inserts a
24629 # line-number line after each line using $LINENO; the second 'sed'
24630 # does the real work. The second script uses 'N' to pair each
24631 # line-number line with the line containing $LINENO, and appends
24632 # trailing '-' during substitution so that $LINENO is not a special
24633 # case at line end.
24634 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24635 # scripts with optimization help from Paolo Bonzini. Blame Lee
24636 # E. McMahon (1931-1989) for sed's syntax. :-)
24637 sed -n '
24638 p
24639 /[$]LINENO/=
24640 ' <$as_myself |
24641 sed '
24642 s/[$]LINENO.*/&-/
24643 t lineno
24644 b
24645 :lineno
24646 N
24647 :loop
24648 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24649 t loop
24650 s/-\n.*//
24651 ' >$as_me.lineno &&
24652 chmod +x "$as_me.lineno" ||
24653 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24654 { (exit 1); exit 1; }; }
24655
24656 # Don't try to exec as it changes $[0], causing all sort of problems
24657 # (the dirname of $[0] is not the place where we might find the
24658 # original and so on. Autoconf is especially sensitive to this).
24659 . "./$as_me.lineno"
24660 # Exit status is that of the last command.
24661 exit
24662 }
24663
24664
24665 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24666 as_dirname=dirname
24667 else
24668 as_dirname=false
24669 fi
24670
24671 ECHO_C= ECHO_N= ECHO_T=
24672 case `echo -n x` in
24673 -n*)
24674 case `echo 'x\c'` in
24675 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24676 *) ECHO_C='\c';;
24677 esac;;
24678 *)
24679 ECHO_N='-n';;
24680 esac
24681
24682 if expr a : '\(a\)' >/dev/null 2>&1 &&
24683 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24684 as_expr=expr
24685 else
24686 as_expr=false
24687 fi
24688
24689 rm -f conf$$ conf$$.exe conf$$.file
24690 if test -d conf$$.dir; then
24691 rm -f conf$$.dir/conf$$.file
24692 else
24693 rm -f conf$$.dir
24694 mkdir conf$$.dir
24695 fi
24696 echo >conf$$.file
24697 if ln -s conf$$.file conf$$ 2>/dev/null; then
24698 as_ln_s='ln -s'
24699 # ... but there are two gotchas:
24700 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24701 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24702 # In both cases, we have to default to `cp -p'.
24703 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24704 as_ln_s='cp -p'
24705 elif ln conf$$.file conf$$ 2>/dev/null; then
24706 as_ln_s=ln
24707 else
24708 as_ln_s='cp -p'
24709 fi
24710 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24711 rmdir conf$$.dir 2>/dev/null
24712
24713 if mkdir -p . 2>/dev/null; then
24714 as_mkdir_p=:
24715 else
24716 test -d ./-p && rmdir ./-p
24717 as_mkdir_p=false
24718 fi
24719
24720 if test -x / >/dev/null 2>&1; then
24721 as_test_x='test -x'
24722 else
24723 if ls -dL / >/dev/null 2>&1; then
24724 as_ls_L_option=L
24725 else
24726 as_ls_L_option=
24727 fi
24728 as_test_x='
24729 eval sh -c '\''
24730 if test -d "$1"; then
24731 test -d "$1/.";
24732 else
24733 case $1 in
24734 -*)set "./$1";;
24735 esac;
24736 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24737 ???[sx]*):;;*)false;;esac;fi
24738 '\'' sh
24739 '
24740 fi
24741 as_executable_p=$as_test_x
24742
24743 # Sed expression to map a string onto a valid CPP name.
24744 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24745
24746 # Sed expression to map a string onto a valid variable name.
24747 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24748
24749
24750 exec 6>&1
24751
24752 # Save the log message, to keep $[0] and so on meaningful, and to
24753 # report actual input values of CONFIG_FILES etc. instead of their
24754 # values after options handling.
24755 ac_log="
24756 This file was extended by emacs $as_me 23.0.60, which was
24757 generated by GNU Autoconf 2.61. Invocation command line was
24758
24759 CONFIG_FILES = $CONFIG_FILES
24760 CONFIG_HEADERS = $CONFIG_HEADERS
24761 CONFIG_LINKS = $CONFIG_LINKS
24762 CONFIG_COMMANDS = $CONFIG_COMMANDS
24763 $ $0 $@
24764
24765 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24766 "
24767
24768 _ACEOF
24769
24770 cat >>$CONFIG_STATUS <<_ACEOF
24771 # Files that config.status was made for.
24772 config_files="$ac_config_files"
24773 config_headers="$ac_config_headers"
24774 config_commands="$ac_config_commands"
24775
24776 _ACEOF
24777
24778 cat >>$CONFIG_STATUS <<\_ACEOF
24779 ac_cs_usage="\
24780 \`$as_me' instantiates files from templates according to the
24781 current configuration.
24782
24783 Usage: $0 [OPTIONS] [FILE]...
24784
24785 -h, --help print this help, then exit
24786 -V, --version print version number and configuration settings, then exit
24787 -q, --quiet do not print progress messages
24788 -d, --debug don't remove temporary files
24789 --recheck update $as_me by reconfiguring in the same conditions
24790 --file=FILE[:TEMPLATE]
24791 instantiate the configuration file FILE
24792 --header=FILE[:TEMPLATE]
24793 instantiate the configuration header FILE
24794
24795 Configuration files:
24796 $config_files
24797
24798 Configuration headers:
24799 $config_headers
24800
24801 Configuration commands:
24802 $config_commands
24803
24804 Report bugs to <bug-autoconf@gnu.org>."
24805
24806 _ACEOF
24807 cat >>$CONFIG_STATUS <<_ACEOF
24808 ac_cs_version="\\
24809 emacs config.status 23.0.60
24810 configured by $0, generated by GNU Autoconf 2.61,
24811 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24812
24813 Copyright (C) 2006 Free Software Foundation, Inc.
24814 This config.status script is free software; the Free Software Foundation
24815 gives unlimited permission to copy, distribute and modify it."
24816
24817 ac_pwd='$ac_pwd'
24818 srcdir='$srcdir'
24819 INSTALL='$INSTALL'
24820 _ACEOF
24821
24822 cat >>$CONFIG_STATUS <<\_ACEOF
24823 # If no file are specified by the user, then we need to provide default
24824 # value. By we need to know if files were specified by the user.
24825 ac_need_defaults=:
24826 while test $# != 0
24827 do
24828 case $1 in
24829 --*=*)
24830 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24831 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24832 ac_shift=:
24833 ;;
24834 *)
24835 ac_option=$1
24836 ac_optarg=$2
24837 ac_shift=shift
24838 ;;
24839 esac
24840
24841 case $ac_option in
24842 # Handling of the options.
24843 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24844 ac_cs_recheck=: ;;
24845 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24846 echo "$ac_cs_version"; exit ;;
24847 --debug | --debu | --deb | --de | --d | -d )
24848 debug=: ;;
24849 --file | --fil | --fi | --f )
24850 $ac_shift
24851 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24852 ac_need_defaults=false;;
24853 --header | --heade | --head | --hea )
24854 $ac_shift
24855 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24856 ac_need_defaults=false;;
24857 --he | --h)
24858 # Conflict between --help and --header
24859 { echo "$as_me: error: ambiguous option: $1
24860 Try \`$0 --help' for more information." >&2
24861 { (exit 1); exit 1; }; };;
24862 --help | --hel | -h )
24863 echo "$ac_cs_usage"; exit ;;
24864 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24865 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24866 ac_cs_silent=: ;;
24867
24868 # This is an error.
24869 -*) { echo "$as_me: error: unrecognized option: $1
24870 Try \`$0 --help' for more information." >&2
24871 { (exit 1); exit 1; }; } ;;
24872
24873 *) ac_config_targets="$ac_config_targets $1"
24874 ac_need_defaults=false ;;
24875
24876 esac
24877 shift
24878 done
24879
24880 ac_configure_extra_args=
24881
24882 if $ac_cs_silent; then
24883 exec 6>/dev/null
24884 ac_configure_extra_args="$ac_configure_extra_args --silent"
24885 fi
24886
24887 _ACEOF
24888 cat >>$CONFIG_STATUS <<_ACEOF
24889 if \$ac_cs_recheck; then
24890 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24891 CONFIG_SHELL=$SHELL
24892 export CONFIG_SHELL
24893 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24894 fi
24895
24896 _ACEOF
24897 cat >>$CONFIG_STATUS <<\_ACEOF
24898 exec 5>>config.log
24899 {
24900 echo
24901 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24902 ## Running $as_me. ##
24903 _ASBOX
24904 echo "$ac_log"
24905 } >&5
24906
24907 _ACEOF
24908 cat >>$CONFIG_STATUS <<_ACEOF
24909 #
24910 # INIT-COMMANDS
24911 #
24912 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS" cpp_undefs="$cpp_undefs"
24913
24914 _ACEOF
24915
24916 cat >>$CONFIG_STATUS <<\_ACEOF
24917
24918 # Handling of arguments.
24919 for ac_config_target in $ac_config_targets
24920 do
24921 case $ac_config_target in
24922 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24923 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24924 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24925 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24926 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24927 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24928 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24929 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24930 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24931 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24932 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24933 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24934 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24935
24936 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24937 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24938 { (exit 1); exit 1; }; };;
24939 esac
24940 done
24941
24942
24943 # If the user did not use the arguments to specify the items to instantiate,
24944 # then the envvar interface is used. Set only those that are not.
24945 # We use the long form for the default assignment because of an extremely
24946 # bizarre bug on SunOS 4.1.3.
24947 if $ac_need_defaults; then
24948 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24949 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24950 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24951 fi
24952
24953 # Have a temporary directory for convenience. Make it in the build tree
24954 # simply because there is no reason against having it here, and in addition,
24955 # creating and moving files from /tmp can sometimes cause problems.
24956 # Hook for its removal unless debugging.
24957 # Note that there is a small window in which the directory will not be cleaned:
24958 # after its creation but before its name has been assigned to `$tmp'.
24959 $debug ||
24960 {
24961 tmp=
24962 trap 'exit_status=$?
24963 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24964 ' 0
24965 trap '{ (exit 1); exit 1; }' 1 2 13 15
24966 }
24967 # Create a (secure) tmp directory for tmp files.
24968
24969 {
24970 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24971 test -n "$tmp" && test -d "$tmp"
24972 } ||
24973 {
24974 tmp=./conf$$-$RANDOM
24975 (umask 077 && mkdir "$tmp")
24976 } ||
24977 {
24978 echo "$me: cannot create a temporary directory in ." >&2
24979 { (exit 1); exit 1; }
24980 }
24981
24982 #
24983 # Set up the sed scripts for CONFIG_FILES section.
24984 #
24985
24986 # No need to generate the scripts if there are no CONFIG_FILES.
24987 # This happens for instance when ./config.status config.h
24988 if test -n "$CONFIG_FILES"; then
24989
24990 _ACEOF
24991
24992
24993
24994 ac_delim='%!_!# '
24995 for ac_last_try in false false false false false :; do
24996 cat >conf$$subs.sed <<_ACEOF
24997 SHELL!$SHELL$ac_delim
24998 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24999 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
25000 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
25001 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
25002 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
25003 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
25004 exec_prefix!$exec_prefix$ac_delim
25005 prefix!$prefix$ac_delim
25006 program_transform_name!$program_transform_name$ac_delim
25007 bindir!$bindir$ac_delim
25008 sbindir!$sbindir$ac_delim
25009 libexecdir!$libexecdir$ac_delim
25010 datarootdir!$datarootdir$ac_delim
25011 datadir!$datadir$ac_delim
25012 sysconfdir!$sysconfdir$ac_delim
25013 sharedstatedir!$sharedstatedir$ac_delim
25014 localstatedir!$localstatedir$ac_delim
25015 includedir!$includedir$ac_delim
25016 oldincludedir!$oldincludedir$ac_delim
25017 docdir!$docdir$ac_delim
25018 infodir!$infodir$ac_delim
25019 htmldir!$htmldir$ac_delim
25020 dvidir!$dvidir$ac_delim
25021 pdfdir!$pdfdir$ac_delim
25022 psdir!$psdir$ac_delim
25023 libdir!$libdir$ac_delim
25024 localedir!$localedir$ac_delim
25025 mandir!$mandir$ac_delim
25026 DEFS!$DEFS$ac_delim
25027 ECHO_C!$ECHO_C$ac_delim
25028 ECHO_N!$ECHO_N$ac_delim
25029 ECHO_T!$ECHO_T$ac_delim
25030 LIBS!$LIBS$ac_delim
25031 build_alias!$build_alias$ac_delim
25032 host_alias!$host_alias$ac_delim
25033 target_alias!$target_alias$ac_delim
25034 MAINT!$MAINT$ac_delim
25035 build!$build$ac_delim
25036 build_cpu!$build_cpu$ac_delim
25037 build_vendor!$build_vendor$ac_delim
25038 build_os!$build_os$ac_delim
25039 host!$host$ac_delim
25040 host_cpu!$host_cpu$ac_delim
25041 host_vendor!$host_vendor$ac_delim
25042 host_os!$host_os$ac_delim
25043 CC!$CC$ac_delim
25044 CFLAGS!$CFLAGS$ac_delim
25045 LDFLAGS!$LDFLAGS$ac_delim
25046 CPPFLAGS!$CPPFLAGS$ac_delim
25047 ac_ct_CC!$ac_ct_CC$ac_delim
25048 EXEEXT!$EXEEXT$ac_delim
25049 OBJEXT!$OBJEXT$ac_delim
25050 CPP!$CPP$ac_delim
25051 GREP!$GREP$ac_delim
25052 EGREP!$EGREP$ac_delim
25053 LN_S!$LN_S$ac_delim
25054 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
25055 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
25056 INSTALL_DATA!$INSTALL_DATA$ac_delim
25057 RANLIB!$RANLIB$ac_delim
25058 INSTALL_INFO!$INSTALL_INFO$ac_delim
25059 GZIP_PROG!$GZIP_PROG$ac_delim
25060 MAKEINFO!$MAKEINFO$ac_delim
25061 LIBSOUND!$LIBSOUND$ac_delim
25062 PKG_CONFIG!$PKG_CONFIG$ac_delim
25063 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
25064 ALSA_LIBS!$ALSA_LIBS$ac_delim
25065 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
25066 SET_MAKE!$SET_MAKE$ac_delim
25067 XMKMF!$XMKMF$ac_delim
25068 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
25069 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
25070 RSVG_LIBS!$RSVG_LIBS$ac_delim
25071 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
25072 GTK_LIBS!$GTK_LIBS$ac_delim
25073 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
25074 DBUS_LIBS!$DBUS_LIBS$ac_delim
25075 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
25076 XFT_LIBS!$XFT_LIBS$ac_delim
25077 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
25078 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
25079 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
25080 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
25081 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
25082 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
25083 M17N_FLT_CFLAGS!$M17N_FLT_CFLAGS$ac_delim
25084 M17N_FLT_LIBS!$M17N_FLT_LIBS$ac_delim
25085 ALLOCA!$ALLOCA$ac_delim
25086 liblockfile!$liblockfile$ac_delim
25087 LIBOBJS!$LIBOBJS$ac_delim
25088 NEED_SETGID!$NEED_SETGID$ac_delim
25089 KMEM_GROUP!$KMEM_GROUP$ac_delim
25090 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
25091 GETOPT_H!$GETOPT_H$ac_delim
25092 GETOPTOBJS!$GETOPTOBJS$ac_delim
25093 version!$version$ac_delim
25094 _ACEOF
25095
25096 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
25097 break
25098 elif $ac_last_try; then
25099 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25100 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25101 { (exit 1); exit 1; }; }
25102 else
25103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25104 fi
25105 done
25106
25107 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25108 if test -n "$ac_eof"; then
25109 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25110 ac_eof=`expr $ac_eof + 1`
25111 fi
25112
25113 cat >>$CONFIG_STATUS <<_ACEOF
25114 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
25115 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25116 _ACEOF
25117 sed '
25118 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25119 s/^/s,@/; s/!/@,|#_!!_#|/
25120 :n
25121 t n
25122 s/'"$ac_delim"'$/,g/; t
25123 s/$/\\/; p
25124 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25125 ' >>$CONFIG_STATUS <conf$$subs.sed
25126 rm -f conf$$subs.sed
25127 cat >>$CONFIG_STATUS <<_ACEOF
25128 CEOF$ac_eof
25129 _ACEOF
25130
25131
25132 ac_delim='%!_!# '
25133 for ac_last_try in false false false false false :; do
25134 cat >conf$$subs.sed <<_ACEOF
25135 configuration!$configuration$ac_delim
25136 canonical!$canonical$ac_delim
25137 srcdir!$srcdir$ac_delim
25138 lispdir!$lispdir$ac_delim
25139 locallisppath!$locallisppath$ac_delim
25140 lisppath!$lisppath$ac_delim
25141 x_default_search_path!$x_default_search_path$ac_delim
25142 etcdir!$etcdir$ac_delim
25143 archlibdir!$archlibdir$ac_delim
25144 bitmapdir!$bitmapdir$ac_delim
25145 gamedir!$gamedir$ac_delim
25146 gameuser!$gameuser$ac_delim
25147 c_switch_system!$c_switch_system$ac_delim
25148 c_switch_machine!$c_switch_machine$ac_delim
25149 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
25150 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
25151 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
25152 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
25153 machfile!$machfile$ac_delim
25154 opsysfile!$opsysfile$ac_delim
25155 ns_appdir!$ns_appdir$ac_delim
25156 ns_appbindir!$ns_appbindir$ac_delim
25157 ns_appresdir!$ns_appresdir$ac_delim
25158 ns_appsrc!$ns_appsrc$ac_delim
25159 GNUSTEP_MAKEFILES!$GNUSTEP_MAKEFILES$ac_delim
25160 LTLIBOBJS!$LTLIBOBJS$ac_delim
25161 _ACEOF
25162
25163 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 26; then
25164 break
25165 elif $ac_last_try; then
25166 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
25167 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
25168 { (exit 1); exit 1; }; }
25169 else
25170 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
25171 fi
25172 done
25173
25174 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
25175 if test -n "$ac_eof"; then
25176 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
25177 ac_eof=`expr $ac_eof + 1`
25178 fi
25179
25180 cat >>$CONFIG_STATUS <<_ACEOF
25181 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
25182 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
25183 _ACEOF
25184 sed '
25185 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
25186 s/^/s,@/; s/!/@,|#_!!_#|/
25187 :n
25188 t n
25189 s/'"$ac_delim"'$/,g/; t
25190 s/$/\\/; p
25191 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
25192 ' >>$CONFIG_STATUS <conf$$subs.sed
25193 rm -f conf$$subs.sed
25194 cat >>$CONFIG_STATUS <<_ACEOF
25195 :end
25196 s/|#_!!_#|//g
25197 CEOF$ac_eof
25198 _ACEOF
25199
25200
25201 # VPATH may cause trouble with some makes, so we remove $(srcdir),
25202 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
25203 # trailing colons and then remove the whole line if VPATH becomes empty
25204 # (actually we leave an empty line to preserve line numbers).
25205 if test "x$srcdir" = x.; then
25206 ac_vpsub='/^[ ]*VPATH[ ]*=/{
25207 s/:*\$(srcdir):*/:/
25208 s/:*\${srcdir}:*/:/
25209 s/:*@srcdir@:*/:/
25210 s/^\([^=]*=[ ]*\):*/\1/
25211 s/:*$//
25212 s/^[^=]*=[ ]*$//
25213 }'
25214 fi
25215
25216 cat >>$CONFIG_STATUS <<\_ACEOF
25217 fi # test -n "$CONFIG_FILES"
25218
25219
25220 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
25221 do
25222 case $ac_tag in
25223 :[FHLC]) ac_mode=$ac_tag; continue;;
25224 esac
25225 case $ac_mode$ac_tag in
25226 :[FHL]*:*);;
25227 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
25228 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
25229 { (exit 1); exit 1; }; };;
25230 :[FH]-) ac_tag=-:-;;
25231 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
25232 esac
25233 ac_save_IFS=$IFS
25234 IFS=:
25235 set x $ac_tag
25236 IFS=$ac_save_IFS
25237 shift
25238 ac_file=$1
25239 shift
25240
25241 case $ac_mode in
25242 :L) ac_source=$1;;
25243 :[FH])
25244 ac_file_inputs=
25245 for ac_f
25246 do
25247 case $ac_f in
25248 -) ac_f="$tmp/stdin";;
25249 *) # Look for the file first in the build tree, then in the source tree
25250 # (if the path is not absolute). The absolute path cannot be DOS-style,
25251 # because $ac_f cannot contain `:'.
25252 test -f "$ac_f" ||
25253 case $ac_f in
25254 [\\/$]*) false;;
25255 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
25256 esac ||
25257 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
25258 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
25259 { (exit 1); exit 1; }; };;
25260 esac
25261 ac_file_inputs="$ac_file_inputs $ac_f"
25262 done
25263
25264 # Let's still pretend it is `configure' which instantiates (i.e., don't
25265 # use $as_me), people would be surprised to read:
25266 # /* config.h. Generated by config.status. */
25267 configure_input="Generated from "`IFS=:
25268 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
25269 if test x"$ac_file" != x-; then
25270 configure_input="$ac_file. $configure_input"
25271 { echo "$as_me:$LINENO: creating $ac_file" >&5
25272 echo "$as_me: creating $ac_file" >&6;}
25273 fi
25274
25275 case $ac_tag in
25276 *:-:* | *:-) cat >"$tmp/stdin";;
25277 esac
25278 ;;
25279 esac
25280
25281 ac_dir=`$as_dirname -- "$ac_file" ||
25282 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25283 X"$ac_file" : 'X\(//\)[^/]' \| \
25284 X"$ac_file" : 'X\(//\)$' \| \
25285 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
25286 echo X"$ac_file" |
25287 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25288 s//\1/
25289 q
25290 }
25291 /^X\(\/\/\)[^/].*/{
25292 s//\1/
25293 q
25294 }
25295 /^X\(\/\/\)$/{
25296 s//\1/
25297 q
25298 }
25299 /^X\(\/\).*/{
25300 s//\1/
25301 q
25302 }
25303 s/.*/./; q'`
25304 { as_dir="$ac_dir"
25305 case $as_dir in #(
25306 -*) as_dir=./$as_dir;;
25307 esac
25308 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
25309 as_dirs=
25310 while :; do
25311 case $as_dir in #(
25312 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
25313 *) as_qdir=$as_dir;;
25314 esac
25315 as_dirs="'$as_qdir' $as_dirs"
25316 as_dir=`$as_dirname -- "$as_dir" ||
25317 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
25318 X"$as_dir" : 'X\(//\)[^/]' \| \
25319 X"$as_dir" : 'X\(//\)$' \| \
25320 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
25321 echo X"$as_dir" |
25322 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
25323 s//\1/
25324 q
25325 }
25326 /^X\(\/\/\)[^/].*/{
25327 s//\1/
25328 q
25329 }
25330 /^X\(\/\/\)$/{
25331 s//\1/
25332 q
25333 }
25334 /^X\(\/\).*/{
25335 s//\1/
25336 q
25337 }
25338 s/.*/./; q'`
25339 test -d "$as_dir" && break
25340 done
25341 test -z "$as_dirs" || eval "mkdir $as_dirs"
25342 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
25343 echo "$as_me: error: cannot create directory $as_dir" >&2;}
25344 { (exit 1); exit 1; }; }; }
25345 ac_builddir=.
25346
25347 case "$ac_dir" in
25348 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
25349 *)
25350 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
25351 # A ".." for each directory in $ac_dir_suffix.
25352 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
25353 case $ac_top_builddir_sub in
25354 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
25355 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
25356 esac ;;
25357 esac
25358 ac_abs_top_builddir=$ac_pwd
25359 ac_abs_builddir=$ac_pwd$ac_dir_suffix
25360 # for backward compatibility:
25361 ac_top_builddir=$ac_top_build_prefix
25362
25363 case $srcdir in
25364 .) # We are building in place.
25365 ac_srcdir=.
25366 ac_top_srcdir=$ac_top_builddir_sub
25367 ac_abs_top_srcdir=$ac_pwd ;;
25368 [\\/]* | ?:[\\/]* ) # Absolute name.
25369 ac_srcdir=$srcdir$ac_dir_suffix;
25370 ac_top_srcdir=$srcdir
25371 ac_abs_top_srcdir=$srcdir ;;
25372 *) # Relative name.
25373 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
25374 ac_top_srcdir=$ac_top_build_prefix$srcdir
25375 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
25376 esac
25377 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
25378
25379
25380 case $ac_mode in
25381 :F)
25382 #
25383 # CONFIG_FILE
25384 #
25385
25386 case $INSTALL in
25387 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
25388 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
25389 esac
25390 _ACEOF
25391
25392 cat >>$CONFIG_STATUS <<\_ACEOF
25393 # If the template does not know about datarootdir, expand it.
25394 # FIXME: This hack should be removed a few years after 2.60.
25395 ac_datarootdir_hack=; ac_datarootdir_seen=
25396
25397 case `sed -n '/datarootdir/ {
25398 p
25399 q
25400 }
25401 /@datadir@/p
25402 /@docdir@/p
25403 /@infodir@/p
25404 /@localedir@/p
25405 /@mandir@/p
25406 ' $ac_file_inputs` in
25407 *datarootdir*) ac_datarootdir_seen=yes;;
25408 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25409 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25410 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25411 _ACEOF
25412 cat >>$CONFIG_STATUS <<_ACEOF
25413 ac_datarootdir_hack='
25414 s&@datadir@&$datadir&g
25415 s&@docdir@&$docdir&g
25416 s&@infodir@&$infodir&g
25417 s&@localedir@&$localedir&g
25418 s&@mandir@&$mandir&g
25419 s&\\\${datarootdir}&$datarootdir&g' ;;
25420 esac
25421 _ACEOF
25422
25423 # Neutralize VPATH when `$srcdir' = `.'.
25424 # Shell code in configure.ac might set extrasub.
25425 # FIXME: do we really want to maintain this feature?
25426 cat >>$CONFIG_STATUS <<_ACEOF
25427 sed "$ac_vpsub
25428 $extrasub
25429 _ACEOF
25430 cat >>$CONFIG_STATUS <<\_ACEOF
25431 :t
25432 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25433 s&@configure_input@&$configure_input&;t t
25434 s&@top_builddir@&$ac_top_builddir_sub&;t t
25435 s&@srcdir@&$ac_srcdir&;t t
25436 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25437 s&@top_srcdir@&$ac_top_srcdir&;t t
25438 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25439 s&@builddir@&$ac_builddir&;t t
25440 s&@abs_builddir@&$ac_abs_builddir&;t t
25441 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25442 s&@INSTALL@&$ac_INSTALL&;t t
25443 $ac_datarootdir_hack
25444 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25445
25446 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25447 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25448 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25449 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25450 which seems to be undefined. Please make sure it is defined." >&5
25451 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25452 which seems to be undefined. Please make sure it is defined." >&2;}
25453
25454 rm -f "$tmp/stdin"
25455 case $ac_file in
25456 -) cat "$tmp/out"; rm -f "$tmp/out";;
25457 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25458 esac
25459 ;;
25460 :H)
25461 #
25462 # CONFIG_HEADER
25463 #
25464 _ACEOF
25465
25466 # Transform confdefs.h into a sed script `conftest.defines', that
25467 # substitutes the proper values into config.h.in to produce config.h.
25468 rm -f conftest.defines conftest.tail
25469 # First, append a space to every undef/define line, to ease matching.
25470 echo 's/$/ /' >conftest.defines
25471 # Then, protect against being on the right side of a sed subst, or in
25472 # an unquoted here document, in config.status. If some macros were
25473 # called several times there might be several #defines for the same
25474 # symbol, which is useless. But do not sort them, since the last
25475 # AC_DEFINE must be honored.
25476 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25477 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25478 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25479 # PARAMS is the parameter list in the macro definition--in most cases, it's
25480 # just an empty string.
25481 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25482 ac_dB='\\)[ (].*,\\1define\\2'
25483 ac_dC=' '
25484 ac_dD=' ,'
25485
25486 uniq confdefs.h |
25487 sed -n '
25488 t rset
25489 :rset
25490 s/^[ ]*#[ ]*define[ ][ ]*//
25491 t ok
25492 d
25493 :ok
25494 s/[\\&,]/\\&/g
25495 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25496 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25497 ' >>conftest.defines
25498
25499 # Remove the space that was appended to ease matching.
25500 # Then replace #undef with comments. This is necessary, for
25501 # example, in the case of _POSIX_SOURCE, which is predefined and required
25502 # on some systems where configure will not decide to define it.
25503 # (The regexp can be short, since the line contains either #define or #undef.)
25504 echo 's/ $//
25505 s,^[ #]*u.*,/* & */,' >>conftest.defines
25506
25507 # Break up conftest.defines:
25508 ac_max_sed_lines=50
25509
25510 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25511 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25512 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25513 # et cetera.
25514 ac_in='$ac_file_inputs'
25515 ac_out='"$tmp/out1"'
25516 ac_nxt='"$tmp/out2"'
25517
25518 while :
25519 do
25520 # Write a here document:
25521 cat >>$CONFIG_STATUS <<_ACEOF
25522 # First, check the format of the line:
25523 cat >"\$tmp/defines.sed" <<\\CEOF
25524 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25525 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25526 b
25527 :def
25528 _ACEOF
25529 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25530 echo 'CEOF
25531 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25532 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25533 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25534 grep . conftest.tail >/dev/null || break
25535 rm -f conftest.defines
25536 mv conftest.tail conftest.defines
25537 done
25538 rm -f conftest.defines conftest.tail
25539
25540 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25541 cat >>$CONFIG_STATUS <<\_ACEOF
25542 if test x"$ac_file" != x-; then
25543 echo "/* $configure_input */" >"$tmp/config.h"
25544 cat "$ac_result" >>"$tmp/config.h"
25545 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25546 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25547 echo "$as_me: $ac_file is unchanged" >&6;}
25548 else
25549 rm -f $ac_file
25550 mv "$tmp/config.h" $ac_file
25551 fi
25552 else
25553 echo "/* $configure_input */"
25554 cat "$ac_result"
25555 fi
25556 rm -f "$tmp/out12"
25557 ;;
25558
25559 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25560 echo "$as_me: executing $ac_file commands" >&6;}
25561 ;;
25562 esac
25563
25564
25565 case $ac_file$ac_mode in
25566 "default":C)
25567
25568 ### Make the necessary directories, if they don't exist.
25569 for dir in etc lisp ; do
25570 test -d ${dir} || mkdir ${dir}
25571 done
25572
25573 # Build src/Makefile from ${srcdir}/src/Makefile.c
25574 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25575 # This must be done after src/config.h is built, since we rely on that file.
25576
25577 echo creating src/epaths.h
25578 ${MAKE-make} epaths-force
25579
25580 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25581 # `..' to `. .' unless invoked with -traditional
25582
25583 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25584 CPPFLAGS="$CPPFLAGS -traditional"
25585 fi
25586
25587 echo creating lib-src/Makefile
25588 ( cd lib-src
25589 rm -f junk.c junk1.c junk2.c
25590 sed -e '/start of cpp stuff/q' \
25591 < Makefile.c > junk1.c
25592 sed -e '1,/start of cpp stuff/d'\
25593 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25594 < Makefile.c > junk.c
25595 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25596 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25597 cat junk1.c junk2.c > Makefile.new
25598 rm -f junk.c junk1.c junk2.c
25599 chmod 444 Makefile.new
25600 mv -f Makefile.new Makefile
25601 )
25602
25603 echo creating src/Makefile
25604 ( cd src
25605 rm -f junk.c junk1.c junk2.c
25606 sed -e '/start of cpp stuff/q' \
25607 < Makefile.c > junk1.c
25608 sed -e '1,/start of cpp stuff/d'\
25609 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25610 < Makefile.c > junk.c
25611 $CPP $cpp_undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25612 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25613 cat junk1.c junk2.c > Makefile.new
25614 rm -f junk.c junk1.c junk2.c
25615 chmod 444 Makefile.new
25616 mv -f Makefile.new Makefile
25617 )
25618
25619 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25620 echo creating src/.gdbinit
25621 echo source $srcdir/src/.gdbinit > src/.gdbinit
25622 fi
25623
25624 ;;
25625
25626 esac
25627 done # for ac_tag
25628
25629
25630 { (exit 0); exit 0; }
25631 _ACEOF
25632 chmod +x $CONFIG_STATUS
25633 ac_clean_files=$ac_clean_files_save
25634
25635
25636 # configure is writing to config.log, and then calls config.status.
25637 # config.status does its own redirection, appending to config.log.
25638 # Unfortunately, on DOS this fails, as config.log is still kept open
25639 # by configure, so config.status won't be able to write to it; its
25640 # output is simply discarded. So we exec the FD to /dev/null,
25641 # effectively closing config.log, so it can be properly (re)opened and
25642 # appended to by config.status. When coming back to configure, we
25643 # need to make the FD available again.
25644 if test "$no_create" != yes; then
25645 ac_cs_success=:
25646 ac_config_status_args=
25647 test "$silent" = yes &&
25648 ac_config_status_args="$ac_config_status_args --quiet"
25649 exec 5>/dev/null
25650 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25651 exec 5>>config.log
25652 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25653 # would make configure fail if this is the last instruction.
25654 $ac_cs_success || { (exit 1); exit 1; }
25655 fi
25656
25657