Merge from emacs--rel--22
[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.50.
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.50'
576 PACKAGE_STRING='emacs 23.0.50'
577 PACKAGE_BUGREPORT=''
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
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 ALLOCA
700 liblockfile
701 LIBOBJS
702 NEED_SETGID
703 KMEM_GROUP
704 GETLOADAVG_LIBS
705 GETOPT_H
706 GETOPTOBJS
707 version
708 configuration
709 canonical
710 srcdir
711 lispdir
712 locallisppath
713 lisppath
714 x_default_search_path
715 etcdir
716 archlibdir
717 bitmapdir
718 gamedir
719 gameuser
720 c_switch_system
721 c_switch_machine
722 LD_SWITCH_X_SITE
723 LD_SWITCH_X_SITE_AUX
724 C_SWITCH_X_SITE
725 X_TOOLKIT_TYPE
726 machfile
727 opsysfile
728 carbon_appdir
729 LTLIBOBJS'
730 ac_subst_files=''
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
734 CC
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
739 CPP
740 XMKMF'
741
742
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
788
789 ac_prev=
790 ac_dashdash=
791 for ac_option
792 do
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
796 ac_prev=
797 continue
798 fi
799
800 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 *) ac_optarg=yes ;;
803 esac
804
805 # Accept the important Cygnus configure options, so we can diagnose typos.
806
807 case $ac_dashdash$ac_option in
808 --)
809 ac_dashdash=yes ;;
810
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
815
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
820
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
827
828 --config-cache | -C)
829 cache_file=config.cache ;;
830
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
835
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
842
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
870
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
879
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
883
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
890
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
895
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
901
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
908
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
913
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
918
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
925
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
930
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
937
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
942
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
946
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
950
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
954
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
963
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
968
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
975
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
982
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
999
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1004
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1009
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1013
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1019
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1030
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1035
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1040
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1047
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1052
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1055
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1058
1059 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1067
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1094
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1098 ;;
1099
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1108
1109 *)
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 ;;
1116
1117 esac
1118 done
1119
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1124 fi
1125
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1131 do
1132 eval ac_val=\$$ac_var
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1139 done
1140
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1147
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1156 fi
1157 fi
1158
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162 test "$silent" = yes && exec 6>/dev/null
1163
1164
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1205 fi
1206 else
1207 ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1218 pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1222 fi
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1235
1236 #
1237 # Report the --help message.
1238 #
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243 \`configure' configures emacs 23.0.50 to adapt to many kinds of systems.
1244
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1249
1250 Defaults for the options are specified in brackets.
1251
1252 Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1268
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1273
1274 For better control, use the options below.
1275
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/emacs]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296 _ACEOF
1297
1298 cat <<\_ACEOF
1299
1300 Program names:
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1304
1305 X features:
1306 --x-includes=DIR X include files are in DIR
1307 --x-libraries=DIR X library files are in DIR
1308
1309 System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 _ACEOF
1313 fi
1314
1315 if test -n "$ac_init_help"; then
1316 case $ac_init_help in
1317 short | recursive ) echo "Configuration of emacs 23.0.50:";;
1318 esac
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR]
1325 specify install directory for Emacs.app on Mac OS X
1326 [DIR=/Application]
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode
1329 enable make rules and dependencies not useful (and
1330 sometimes confusing) to the casual installer
1331 --enable-locallisppath=PATH
1332 directories Emacs should search for lisp files
1333 specific to this site
1334 --disable-largefile omit support for large files
1335
1336 Optional Packages:
1337 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1338 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1339 --without-gcc don't use GCC to compile Emacs even if GCC is found
1340 --without-pop don't support POP mail retrieval with movemail
1341 --with-kerberos support Kerberos-authenticated POP
1342 --with-kerberos5 support Kerberos version 5 authenticated POP
1343 --with-hesiod support Hesiod to get the POP server host
1344 --without-sound don't compile with sound support
1345 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1346 motif, gtk, no)
1347 --without-xpm don't compile with XPM image support
1348 --without-jpeg don't compile with JPEG image support
1349 --without-tiff don't compile with TIFF image support
1350 --without-gif don't compile with GIF image support
1351 --without-png don't compile with PNG image support
1352 --without-rsvg don't compile with SVG image support
1353 --with-gtk use GTK toolkit
1354 --without-toolkit-scroll-bars
1355 don't use Motif or Xaw3d scroll bars
1356 --without-xaw3d don't use Xaw3d
1357 --without-xim don't use X11 XIM
1358 --with-carbon use Carbon GUI on Mac OS X. This is unsupported!
1359 --without-gpm don't use -lgpm for mouse support on a GNU/Linux
1360 console
1361 --with-dbus compile with D-Bus support
1362 --with-pkg-config-prog=PATH
1363 Path to pkg-config for finding GTK and librsvg
1364 --with-x use the X Window System
1365
1366 Some influential environment variables:
1367 CC C compiler command
1368 CFLAGS C compiler flags
1369 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1370 nonstandard directory <lib dir>
1371 LIBS libraries to pass to the linker, e.g. -l<library>
1372 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1373 you have headers in a nonstandard directory <include dir>
1374 CPP C preprocessor
1375 XMKMF Path to xmkmf, Makefile generator for X Window System
1376
1377 Use these variables to override the choices made by `configure' or to help
1378 it to find libraries and programs with nonstandard names/locations.
1379
1380 _ACEOF
1381 ac_status=$?
1382 fi
1383
1384 if test "$ac_init_help" = "recursive"; then
1385 # If there are subdirs, report their specific --help.
1386 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1387 test -d "$ac_dir" || continue
1388 ac_builddir=.
1389
1390 case "$ac_dir" in
1391 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1392 *)
1393 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1394 # A ".." for each directory in $ac_dir_suffix.
1395 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1396 case $ac_top_builddir_sub in
1397 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1398 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1399 esac ;;
1400 esac
1401 ac_abs_top_builddir=$ac_pwd
1402 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1403 # for backward compatibility:
1404 ac_top_builddir=$ac_top_build_prefix
1405
1406 case $srcdir in
1407 .) # We are building in place.
1408 ac_srcdir=.
1409 ac_top_srcdir=$ac_top_builddir_sub
1410 ac_abs_top_srcdir=$ac_pwd ;;
1411 [\\/]* | ?:[\\/]* ) # Absolute name.
1412 ac_srcdir=$srcdir$ac_dir_suffix;
1413 ac_top_srcdir=$srcdir
1414 ac_abs_top_srcdir=$srcdir ;;
1415 *) # Relative name.
1416 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1417 ac_top_srcdir=$ac_top_build_prefix$srcdir
1418 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1419 esac
1420 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1421
1422 cd "$ac_dir" || { ac_status=$?; continue; }
1423 # Check for guested configure.
1424 if test -f "$ac_srcdir/configure.gnu"; then
1425 echo &&
1426 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1427 elif test -f "$ac_srcdir/configure"; then
1428 echo &&
1429 $SHELL "$ac_srcdir/configure" --help=recursive
1430 else
1431 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1432 fi || ac_status=$?
1433 cd "$ac_pwd" || { ac_status=$?; break; }
1434 done
1435 fi
1436
1437 test -n "$ac_init_help" && exit $ac_status
1438 if $ac_init_version; then
1439 cat <<\_ACEOF
1440 emacs configure 23.0.50
1441 generated by GNU Autoconf 2.61
1442
1443 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1444 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1445 This configure script is free software; the Free Software Foundation
1446 gives unlimited permission to copy, distribute and modify it.
1447 _ACEOF
1448 exit
1449 fi
1450 cat >config.log <<_ACEOF
1451 This file contains any messages produced by compilers while
1452 running configure, to aid debugging if configure makes a mistake.
1453
1454 It was created by emacs $as_me 23.0.50, which was
1455 generated by GNU Autoconf 2.61. Invocation command line was
1456
1457 $ $0 $@
1458
1459 _ACEOF
1460 exec 5>>config.log
1461 {
1462 cat <<_ASUNAME
1463 ## --------- ##
1464 ## Platform. ##
1465 ## --------- ##
1466
1467 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1468 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1469 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1470 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1471 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1472
1473 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1474 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1475
1476 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1477 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1478 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1479 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1480 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1481 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1482 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1483
1484 _ASUNAME
1485
1486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1487 for as_dir in $PATH
1488 do
1489 IFS=$as_save_IFS
1490 test -z "$as_dir" && as_dir=.
1491 echo "PATH: $as_dir"
1492 done
1493 IFS=$as_save_IFS
1494
1495 } >&5
1496
1497 cat >&5 <<_ACEOF
1498
1499
1500 ## ----------- ##
1501 ## Core tests. ##
1502 ## ----------- ##
1503
1504 _ACEOF
1505
1506
1507 # Keep a trace of the command line.
1508 # Strip out --no-create and --no-recursion so they do not pile up.
1509 # Strip out --silent because we don't want to record it for future runs.
1510 # Also quote any args containing shell meta-characters.
1511 # Make two passes to allow for proper duplicate-argument suppression.
1512 ac_configure_args=
1513 ac_configure_args0=
1514 ac_configure_args1=
1515 ac_must_keep_next=false
1516 for ac_pass in 1 2
1517 do
1518 for ac_arg
1519 do
1520 case $ac_arg in
1521 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1522 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1523 | -silent | --silent | --silen | --sile | --sil)
1524 continue ;;
1525 *\'*)
1526 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1527 esac
1528 case $ac_pass in
1529 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1530 2)
1531 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1532 if test $ac_must_keep_next = true; then
1533 ac_must_keep_next=false # Got value, back to normal.
1534 else
1535 case $ac_arg in
1536 *=* | --config-cache | -C | -disable-* | --disable-* \
1537 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1538 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1539 | -with-* | --with-* | -without-* | --without-* | --x)
1540 case "$ac_configure_args0 " in
1541 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1542 esac
1543 ;;
1544 -* ) ac_must_keep_next=true ;;
1545 esac
1546 fi
1547 ac_configure_args="$ac_configure_args '$ac_arg'"
1548 ;;
1549 esac
1550 done
1551 done
1552 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1553 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1554
1555 # When interrupted or exit'd, cleanup temporary files, and complete
1556 # config.log. We remove comments because anyway the quotes in there
1557 # would cause problems or look ugly.
1558 # WARNING: Use '\'' to represent an apostrophe within the trap.
1559 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1560 trap 'exit_status=$?
1561 # Save into config.log some information that might help in debugging.
1562 {
1563 echo
1564
1565 cat <<\_ASBOX
1566 ## ---------------- ##
1567 ## Cache variables. ##
1568 ## ---------------- ##
1569 _ASBOX
1570 echo
1571 # The following way of writing the cache mishandles newlines in values,
1572 (
1573 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1574 eval ac_val=\$$ac_var
1575 case $ac_val in #(
1576 *${as_nl}*)
1577 case $ac_var in #(
1578 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1579 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1580 esac
1581 case $ac_var in #(
1582 _ | IFS | as_nl) ;; #(
1583 *) $as_unset $ac_var ;;
1584 esac ;;
1585 esac
1586 done
1587 (set) 2>&1 |
1588 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1589 *${as_nl}ac_space=\ *)
1590 sed -n \
1591 "s/'\''/'\''\\\\'\'''\''/g;
1592 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1593 ;; #(
1594 *)
1595 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1596 ;;
1597 esac |
1598 sort
1599 )
1600 echo
1601
1602 cat <<\_ASBOX
1603 ## ----------------- ##
1604 ## Output variables. ##
1605 ## ----------------- ##
1606 _ASBOX
1607 echo
1608 for ac_var in $ac_subst_vars
1609 do
1610 eval ac_val=\$$ac_var
1611 case $ac_val in
1612 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1613 esac
1614 echo "$ac_var='\''$ac_val'\''"
1615 done | sort
1616 echo
1617
1618 if test -n "$ac_subst_files"; then
1619 cat <<\_ASBOX
1620 ## ------------------- ##
1621 ## File substitutions. ##
1622 ## ------------------- ##
1623 _ASBOX
1624 echo
1625 for ac_var in $ac_subst_files
1626 do
1627 eval ac_val=\$$ac_var
1628 case $ac_val in
1629 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1630 esac
1631 echo "$ac_var='\''$ac_val'\''"
1632 done | sort
1633 echo
1634 fi
1635
1636 if test -s confdefs.h; then
1637 cat <<\_ASBOX
1638 ## ----------- ##
1639 ## confdefs.h. ##
1640 ## ----------- ##
1641 _ASBOX
1642 echo
1643 cat confdefs.h
1644 echo
1645 fi
1646 test "$ac_signal" != 0 &&
1647 echo "$as_me: caught signal $ac_signal"
1648 echo "$as_me: exit $exit_status"
1649 } >&5
1650 rm -f core *.core core.conftest.* &&
1651 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1652 exit $exit_status
1653 ' 0
1654 for ac_signal in 1 2 13 15; do
1655 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1656 done
1657 ac_signal=0
1658
1659 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1660 rm -f -r conftest* confdefs.h
1661
1662 # Predefined preprocessor variables.
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_NAME "$PACKAGE_NAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_STRING "$PACKAGE_STRING"
1681 _ACEOF
1682
1683
1684 cat >>confdefs.h <<_ACEOF
1685 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1686 _ACEOF
1687
1688
1689 # Let the site file select an alternate cache file if it wants to.
1690 # Prefer explicitly selected file to automatically selected ones.
1691 if test -n "$CONFIG_SITE"; then
1692 set x "$CONFIG_SITE"
1693 elif test "x$prefix" != xNONE; then
1694 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1695 else
1696 set x "$ac_default_prefix/share/config.site" \
1697 "$ac_default_prefix/etc/config.site"
1698 fi
1699 shift
1700 for ac_site_file
1701 do
1702 if test -r "$ac_site_file"; then
1703 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1704 echo "$as_me: loading site script $ac_site_file" >&6;}
1705 sed 's/^/| /' "$ac_site_file" >&5
1706 . "$ac_site_file"
1707 fi
1708 done
1709
1710 if test -r "$cache_file"; then
1711 # Some versions of bash will fail to source /dev/null (special
1712 # files actually), so we avoid doing that.
1713 if test -f "$cache_file"; then
1714 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1715 echo "$as_me: loading cache $cache_file" >&6;}
1716 case $cache_file in
1717 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1718 *) . "./$cache_file";;
1719 esac
1720 fi
1721 else
1722 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1723 echo "$as_me: creating cache $cache_file" >&6;}
1724 >$cache_file
1725 fi
1726
1727 ac_header_list="$ac_header_list sys/time.h"
1728 ac_header_list="$ac_header_list unistd.h"
1729 ac_func_list="$ac_func_list alarm"
1730 # Check that the precious variables saved in the cache have kept the same
1731 # value.
1732 ac_cache_corrupted=false
1733 for ac_var in $ac_precious_vars; do
1734 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1735 eval ac_new_set=\$ac_env_${ac_var}_set
1736 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1737 eval ac_new_val=\$ac_env_${ac_var}_value
1738 case $ac_old_set,$ac_new_set in
1739 set,)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,set)
1744 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1745 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1746 ac_cache_corrupted=: ;;
1747 ,);;
1748 *)
1749 if test "x$ac_old_val" != "x$ac_new_val"; then
1750 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1751 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1752 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1753 echo "$as_me: former value: $ac_old_val" >&2;}
1754 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1755 echo "$as_me: current value: $ac_new_val" >&2;}
1756 ac_cache_corrupted=:
1757 fi;;
1758 esac
1759 # Pass precious variables to config.status.
1760 if test "$ac_new_set" = set; then
1761 case $ac_new_val in
1762 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1763 *) ac_arg=$ac_var=$ac_new_val ;;
1764 esac
1765 case " $ac_configure_args " in
1766 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1767 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1768 esac
1769 fi
1770 done
1771 if $ac_cache_corrupted; then
1772 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1773 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1774 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1775 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1776 { (exit 1); exit 1; }; }
1777 fi
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791
1792
1793
1794
1795
1796
1797
1798
1799
1800
1801
1802
1803 ac_ext=c
1804 ac_cpp='$CPP $CPPFLAGS'
1805 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1806 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1807 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1808
1809
1810 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1811
1812
1813
1814 test "$program_prefix" != NONE &&
1815 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1816 # Use a double $ so make ignores it.
1817 test "$program_suffix" != NONE &&
1818 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1819 # Double any \ or $. echo might interpret backslashes.
1820 # By default was `s,x,x', remove it if useless.
1821 cat <<\_ACEOF >conftest.sed
1822 s/[\\$]/&&/g;s/;s,x,x,$//
1823 _ACEOF
1824 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1825 rm -f conftest.sed
1826
1827
1828 lispdir='${datadir}/emacs/${version}/lisp'
1829 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1830 '${datadir}/emacs/site-lisp'
1831 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1832 etcdir='${datadir}/emacs/${version}/etc'
1833 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1834 docdir='${datadir}/emacs/${version}/etc'
1835 gamedir='${localstatedir}/games/emacs'
1836
1837 gameuser=games
1838
1839
1840
1841
1842 # Check whether --with-gcc was given.
1843 if test "${with_gcc+set}" = set; then
1844 withval=$with_gcc;
1845 fi
1846
1847
1848
1849 # Check whether --with-pop was given.
1850 if test "${with_pop+set}" = set; then
1851 withval=$with_pop;
1852 else
1853 with_pop=yes
1854 fi
1855
1856 if test "$with_pop" = yes; then
1857 cat >>confdefs.h <<\_ACEOF
1858 #define MAIL_USE_POP 1
1859 _ACEOF
1860
1861 fi
1862
1863
1864
1865 # Check whether --with-kerberos was given.
1866 if test "${with_kerberos+set}" = set; then
1867 withval=$with_kerberos;
1868 else
1869 with_kerberos=no
1870 fi
1871
1872 if test "$with_kerberos" = yes; then
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS 1
1875 _ACEOF
1876
1877 fi
1878
1879
1880
1881 # Check whether --with-kerberos5 was given.
1882 if test "${with_kerberos5+set}" = set; then
1883 withval=$with_kerberos5;
1884 else
1885 with_kerberos5=no
1886 fi
1887
1888 if test "${with_kerberos5}" = yes; then
1889 if test "${with_kerberos}" != yes; then
1890 with_kerberos=yes
1891 cat >>confdefs.h <<\_ACEOF
1892 #define KERBEROS 1
1893 _ACEOF
1894
1895 fi
1896
1897 cat >>confdefs.h <<\_ACEOF
1898 #define KERBEROS5 1
1899 _ACEOF
1900
1901 fi
1902
1903
1904 # Check whether --with-hesiod was given.
1905 if test "${with_hesiod+set}" = set; then
1906 withval=$with_hesiod;
1907 else
1908 with_hesiod=no
1909 fi
1910
1911 if test "$with_hesiod" = yes; then
1912
1913 cat >>confdefs.h <<\_ACEOF
1914 #define HESIOD 1
1915 _ACEOF
1916
1917 fi
1918
1919
1920 # Check whether --with-sound was given.
1921 if test "${with_sound+set}" = set; then
1922 withval=$with_sound;
1923 else
1924 with_sound=yes
1925 fi
1926
1927
1928
1929 # Check whether --with-x-toolkit was given.
1930 if test "${with_x_toolkit+set}" = set; then
1931 withval=$with_x_toolkit; case "${withval}" in
1932 y | ye | yes ) val=gtk ;;
1933 n | no ) val=no ;;
1934 l | lu | luc | luci | lucid ) val=lucid ;;
1935 a | at | ath | athe | athen | athena ) val=athena ;;
1936 m | mo | mot | moti | motif ) val=motif ;;
1937 g | gt | gtk ) val=gtk ;;
1938 * )
1939 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1940 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1941 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1942 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1943 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1944 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1945 { (exit 1); exit 1; }; }
1946 ;;
1947 esac
1948 with_x_toolkit=$val
1949
1950 fi
1951
1952
1953
1954 # Check whether --with-xpm was given.
1955 if test "${with_xpm+set}" = set; then
1956 withval=$with_xpm;
1957 else
1958 with_xpm=yes
1959 fi
1960
1961
1962 # Check whether --with-jpeg was given.
1963 if test "${with_jpeg+set}" = set; then
1964 withval=$with_jpeg;
1965 else
1966 with_jpeg=yes
1967 fi
1968
1969
1970 # Check whether --with-tiff was given.
1971 if test "${with_tiff+set}" = set; then
1972 withval=$with_tiff;
1973 else
1974 with_tiff=yes
1975 fi
1976
1977
1978 # Check whether --with-gif was given.
1979 if test "${with_gif+set}" = set; then
1980 withval=$with_gif;
1981 else
1982 with_gif=yes
1983 fi
1984
1985
1986 # Check whether --with-png was given.
1987 if test "${with_png+set}" = set; then
1988 withval=$with_png;
1989 else
1990 with_png=yes
1991 fi
1992
1993
1994 # Check whether --with-rsvg was given.
1995 if test "${with_rsvg+set}" = set; then
1996 withval=$with_rsvg;
1997 else
1998 with_rsvg=yes
1999 fi
2000
2001
2002
2003 # Check whether --with-gtk was given.
2004 if test "${with_gtk+set}" = set; then
2005 withval=$with_gtk;
2006 else
2007 with_gtk=no
2008 fi
2009
2010
2011 # Check whether --with-toolkit-scroll-bars was given.
2012 if test "${with_toolkit_scroll_bars+set}" = set; then
2013 withval=$with_toolkit_scroll_bars;
2014 else
2015 with_toolkit_scroll_bars=yes
2016 fi
2017
2018
2019 # Check whether --with-xaw3d was given.
2020 if test "${with_xaw3d+set}" = set; then
2021 withval=$with_xaw3d;
2022 else
2023 with_xaw3d=yes
2024 fi
2025
2026
2027 # Check whether --with-xim was given.
2028 if test "${with_xim+set}" = set; then
2029 withval=$with_xim;
2030 else
2031 with_xim=yes
2032 fi
2033
2034
2035 # Check whether --with-carbon was given.
2036 if test "${with_carbon+set}" = set; then
2037 withval=$with_carbon;
2038 else
2039 with_carbon=no
2040 fi
2041
2042
2043
2044 # Check whether --with-gpm was given.
2045 if test "${with_gpm+set}" = set; then
2046 withval=$with_gpm;
2047 else
2048 with_gpm=yes
2049 fi
2050
2051
2052 # Check whether --with-dbus was given.
2053 if test "${with_dbus+set}" = set; then
2054 withval=$with_dbus;
2055 else
2056 with_dbus=no
2057 fi
2058
2059
2060
2061
2062 # Check whether --with-pkg-config-prog was given.
2063 if test "${with_pkg_config_prog+set}" = set; then
2064 withval=$with_pkg_config_prog;
2065 fi
2066
2067 if test "X${with_pkg_config_prog}" != X; then
2068 if test "${with_pkg_config_prog}" != yes; then
2069 PKG_CONFIG="${with_pkg_config_prog}"
2070 fi
2071 fi
2072
2073 # Check whether --enable-carbon-app was given.
2074 if test "${enable_carbon_app+set}" = set; then
2075 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2076 fi
2077
2078
2079 # Check whether --enable-asserts was given.
2080 if test "${enable_asserts+set}" = set; then
2081 enableval=$enable_asserts; USE_XASSERTS=$enableval
2082 else
2083 USE_XASSERTS=no
2084 fi
2085
2086
2087 # Check whether --enable-maintainer-mode was given.
2088 if test "${enable_maintainer_mode+set}" = set; then
2089 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2090 else
2091 USE_MAINTAINER_MODE=no
2092 fi
2093
2094 if test $USE_MAINTAINER_MODE = yes; then
2095 MAINT=
2096 else
2097 MAINT=#
2098 fi
2099
2100
2101 # Check whether --enable-locallisppath was given.
2102 if test "${enable_locallisppath+set}" = set; then
2103 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2104 locallisppath=
2105 elif test "${enableval}" != "yes"; then
2106 locallisppath=${enableval}
2107 fi
2108 fi
2109
2110
2111 #### Make srcdir absolute, if it isn't already. It's important to
2112 #### avoid running the path through pwd unnecessarily, since pwd can
2113 #### give you automounter prefixes, which can go away. We do all this
2114 #### so Emacs can find its files when run uninstalled.
2115 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2116 unset CDPATH
2117 case "${srcdir}" in
2118 /* ) ;;
2119 . )
2120 ## We may be able to use the $PWD environment variable to make this
2121 ## absolute. But sometimes PWD is inaccurate.
2122 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2123 ## but that tested only for a well-formed and valid PWD,
2124 ## it did not object when PWD was well-formed and valid but just wrong.
2125 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2126 then
2127 srcdir="$PWD"
2128 else
2129 srcdir="`(cd ${srcdir}; pwd)`"
2130 fi
2131 ;;
2132 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2133 esac
2134
2135 #### Check if the source directory already has a configured system in it.
2136 if test `pwd` != `(cd ${srcdir} && pwd)` \
2137 && test -f "${srcdir}/src/config.h" ; then
2138 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2139 as a build directory right now; it has been configured in its own
2140 right. To configure in another directory as well, you MUST
2141 use GNU make. If you do not have GNU make, then you must
2142 now do \`make distclean' in ${srcdir},
2143 and then run $0 again." >&5
2144 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2145 as a build directory right now; it has been configured in its own
2146 right. To configure in another directory as well, you MUST
2147 use GNU make. If you do not have GNU make, then you must
2148 now do \`make distclean' in ${srcdir},
2149 and then run $0 again." >&2;}
2150 fi
2151
2152 #### Given the configuration name, set machfile and opsysfile to the
2153 #### names of the m/*.h and s/*.h files we should use.
2154
2155 ### Canonicalize the configuration name.
2156
2157 ac_aux_dir=
2158 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2159 if test -f "$ac_dir/install-sh"; then
2160 ac_aux_dir=$ac_dir
2161 ac_install_sh="$ac_aux_dir/install-sh -c"
2162 break
2163 elif test -f "$ac_dir/install.sh"; then
2164 ac_aux_dir=$ac_dir
2165 ac_install_sh="$ac_aux_dir/install.sh -c"
2166 break
2167 elif test -f "$ac_dir/shtool"; then
2168 ac_aux_dir=$ac_dir
2169 ac_install_sh="$ac_aux_dir/shtool install -c"
2170 break
2171 fi
2172 done
2173 if test -z "$ac_aux_dir"; then
2174 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2175 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2176 { (exit 1); exit 1; }; }
2177 fi
2178
2179 # These three variables are undocumented and unsupported,
2180 # and are intended to be withdrawn in a future Autoconf release.
2181 # They can cause serious problems if a builder's source tree is in a directory
2182 # whose full name contains unusual characters.
2183 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2184 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2185 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2186
2187
2188 # Make sure we can run config.sub.
2189 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2190 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2191 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2192 { (exit 1); exit 1; }; }
2193
2194 { echo "$as_me:$LINENO: checking build system type" >&5
2195 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2196 if test "${ac_cv_build+set}" = set; then
2197 echo $ECHO_N "(cached) $ECHO_C" >&6
2198 else
2199 ac_build_alias=$build_alias
2200 test "x$ac_build_alias" = x &&
2201 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2202 test "x$ac_build_alias" = x &&
2203 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2204 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2205 { (exit 1); exit 1; }; }
2206 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2207 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2208 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2209 { (exit 1); exit 1; }; }
2210
2211 fi
2212 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2213 echo "${ECHO_T}$ac_cv_build" >&6; }
2214 case $ac_cv_build in
2215 *-*-*) ;;
2216 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2217 echo "$as_me: error: invalid value of canonical build" >&2;}
2218 { (exit 1); exit 1; }; };;
2219 esac
2220 build=$ac_cv_build
2221 ac_save_IFS=$IFS; IFS='-'
2222 set x $ac_cv_build
2223 shift
2224 build_cpu=$1
2225 build_vendor=$2
2226 shift; shift
2227 # Remember, the first character of IFS is used to create $*,
2228 # except with old shells:
2229 build_os=$*
2230 IFS=$ac_save_IFS
2231 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2232
2233
2234 { echo "$as_me:$LINENO: checking host system type" >&5
2235 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2236 if test "${ac_cv_host+set}" = set; then
2237 echo $ECHO_N "(cached) $ECHO_C" >&6
2238 else
2239 if test "x$host_alias" = x; then
2240 ac_cv_host=$ac_cv_build
2241 else
2242 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2243 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2244 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2245 { (exit 1); exit 1; }; }
2246 fi
2247
2248 fi
2249 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2250 echo "${ECHO_T}$ac_cv_host" >&6; }
2251 case $ac_cv_host in
2252 *-*-*) ;;
2253 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2254 echo "$as_me: error: invalid value of canonical host" >&2;}
2255 { (exit 1); exit 1; }; };;
2256 esac
2257 host=$ac_cv_host
2258 ac_save_IFS=$IFS; IFS='-'
2259 set x $ac_cv_host
2260 shift
2261 host_cpu=$1
2262 host_vendor=$2
2263 shift; shift
2264 # Remember, the first character of IFS is used to create $*,
2265 # except with old shells:
2266 host_os=$*
2267 IFS=$ac_save_IFS
2268 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2269
2270
2271 canonical=$host
2272 configuration=${host_alias-${build_alias-$host}}
2273
2274
2275
2276 ### If you add support for a new configuration, add code to this
2277 ### switch statement to recognize your configuration name and select
2278 ### the appropriate operating system and machine description files.
2279
2280 ### You would hope that you could choose an m/*.h file pretty much
2281 ### based on the machine portion of the configuration name, and an s-
2282 ### file based on the operating system portion. However, it turns out
2283 ### that each m/*.h file is pretty manufacturer-specific - for
2284 ### example hp9000s300.h is a 68000 machine;
2285 ### mips.h, pmax.h are all MIPS
2286 ### machines. So we basically have to have a special case for each
2287 ### configuration name.
2288 ###
2289 ### As far as handling version numbers on operating systems is
2290 ### concerned, make sure things will fail in a fixable way. If
2291 ### /etc/MACHINES doesn't say anything about version numbers, be
2292 ### prepared to handle anything reasonably. If version numbers
2293 ### matter, be sure /etc/MACHINES says something about it.
2294 ###
2295 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2296 ### "System V Release 4"; he writes, "The old convention encouraged
2297 ### confusion between `system' and `release' levels'."
2298
2299 machine='' opsys='' unported=no
2300 case "${canonical}" in
2301
2302 ## FreeBSD ports
2303 *-*-freebsd* )
2304 opsys=freebsd
2305 case "${canonical}" in
2306 alpha*-*-freebsd*) machine=alpha ;;
2307 ia64-*-freebsd*) machine=ia64 ;;
2308 sparc64-*-freebsd*) machine=sparc ;;
2309 powerpc-*-freebsd*) machine=macppc ;;
2310 i[3456]86-*-freebsd*) machine=intel386 ;;
2311 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2312 esac
2313 ;;
2314
2315 ## FreeBSD kernel + glibc based userland
2316 *-*-kfreebsd*gnu* )
2317 opsys=gnu-kfreebsd
2318 case "${canonical}" in
2319 alpha*-*-kfreebsd*) machine=alpha ;;
2320 ia64-*-kfreebsd*) machine=ia64 ;;
2321 sparc64-*-kfreebsd*) machine=sparc ;;
2322 powerpc-*-kfreebsd*) machine=macppc ;;
2323 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2324 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2325 esac
2326 ;;
2327
2328 ## NetBSD ports
2329 *-*-netbsd* )
2330 opsys=netbsd
2331 if test -f /usr/lib/crti.o; then
2332
2333 cat >>confdefs.h <<\_ACEOF
2334 #define HAVE_CRTIN
2335 _ACEOF
2336
2337 fi
2338
2339 case "${canonical}" in
2340 alpha*-*-netbsd*) machine=alpha ;;
2341 i[3456]86-*-netbsd*) machine=intel386 ;;
2342 m68k-*-netbsd*)
2343 # This is somewhat bogus.
2344 machine=hp9000s300 ;;
2345 mips-*-netbsd*) machine=pmax ;;
2346 mipsel-*-netbsd*) machine=pmax ;;
2347 mipseb-*-netbsd*) machine=pmax ;;
2348 powerpc-*-netbsd*) machine=macppc ;;
2349 sparc*-*-netbsd*) machine=sparc ;;
2350 vax-*-netbsd*) machine=vax ;;
2351 arm-*-netbsd*) machine=arm ;;
2352 x86_64-*-netbsd*) machine=amdx86-64 ;;
2353 hppa-*-netbsd*) machine=hp800 ;;
2354 esac
2355 ;;
2356
2357 ## OpenBSD ports
2358 *-*-openbsd* )
2359 opsys=openbsd
2360 case "${canonical}" in
2361 alpha*-*-openbsd*) machine=alpha ;;
2362 arm-*-openbsd*) machine=arm ;;
2363 hppa-*-openbsd*) machine=hp9000s300 ;;
2364 i386-*-openbsd*) machine=intel386 ;;
2365 m68k-*-openbsd*) machine=hp9000s300 ;;
2366 mips64-*-openbsd*) machine=mips64 ;;
2367 powerpc-*-openbsd*) machine=macppc ;;
2368 sparc*-*-openbsd*) machine=sparc ;;
2369 vax-*-openbsd*) machine=vax ;;
2370 x86_64-*-openbsd*) machine=amdx86-64 ;;
2371 esac
2372 ;;
2373
2374 ## LynxOS ports
2375 *-*-lynxos* )
2376 opsys=lynxos
2377 case "${canonical}" in
2378 i[3456]86-*-lynxos*) machine=intel386 ;;
2379 powerpc-*-lynxos*) machine=powerpc ;;
2380 esac
2381 ;;
2382
2383 ## BSDI ports
2384 *-*-bsdi* )
2385 opsys=bsdi
2386 case "${canonical}" in
2387 i[345]86-*-bsdi*) machine=intel386 ;;
2388 sparc-*-bsdi*) machine=sparc ;;
2389 powerpc-*-bsdi*) machine=macppc ;;
2390 esac
2391 case "${canonical}" in
2392 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2393 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2394 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2395 *-*-bsdi3* ) opsys=bsdos3 ;;
2396 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2397 esac
2398 ;;
2399
2400 ## Alpha (DEC) machines.
2401 alpha*-dec-osf* )
2402 machine=alpha opsys=osf1
2403 # This is needed to find X11R6.1 libraries for certain tests.
2404 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2405 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2406 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2407 # due to non-traditional preprocessing with the current compiler
2408 # defaults. OSF 4 can also have that compiler version, and there
2409 # seems always to have been a usable /usr/bin/cpp.
2410 NON_GNU_CPP=/usr/bin/cpp
2411 case "${canonical}" in
2412 alpha*-dec-osf[5-9]*)
2413 opsys=osf5-0 ;;
2414 esac
2415 ;;
2416
2417 alpha*-*-linux-gnu* )
2418 machine=alpha opsys=gnu-linux
2419 ;;
2420
2421 arm*-*-linux-gnu* )
2422 machine=arm opsys=gnu-linux
2423 ;;
2424
2425 ## Apple Darwin / Mac OS X
2426 *-apple-darwin* )
2427 case "${canonical}" in
2428 i[3456]86-* ) machine=intel386 ;;
2429 powerpc-* ) machine=powermac ;;
2430 * ) unported=yes ;;
2431 esac
2432 opsys=darwin
2433 # Define CPP as follows to make autoconf work correctly.
2434 CPP="${CC-cc} -E -no-cpp-precomp"
2435 # Use fink packages if available.
2436 if test -d /sw/include && test -d /sw/lib; then
2437 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2438 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2439 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2440 fi
2441 ;;
2442
2443 ## Compaq Nonstop
2444 mips-compaq-nonstopux* )
2445 machine=nonstopux opsys=nonstopux
2446 ;;
2447
2448 ## Cubix QBx/386
2449 i[3456]86-cubix-sysv* )
2450 machine=intel386 opsys=usg5-3
2451 ;;
2452
2453 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2454 machine=pmax opsys=bsd4-2
2455 ;;
2456 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2457 machine=pmax opsys=bsd4-3
2458 ;;
2459 mips-dec-ultrix* )
2460 machine=pmax opsys=ultrix4-3
2461 ;;
2462 mips-dec-osf* )
2463 machine=pmax opsys=osf1
2464 ;;
2465 mips-dec-mach_bsd4.3* )
2466 machine=pmax opsys=mach-bsd4-3
2467 ;;
2468
2469 ## HP 9000 series 200 or 300
2470 m68*-hp-bsd* )
2471 machine=hp9000s300 opsys=bsd4-3
2472 ;;
2473 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2474 m68*-hp-hpux* )
2475 case "`uname -r`" in
2476 ## Someone's system reports A.B8.05 for this.
2477 ## I wonder what other possibilities there are.
2478 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2479 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2480 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2481 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2482 *) machine=hp9000s300 opsys=hpux ;;
2483 esac
2484 ;;
2485
2486 ## HP 9000 series 700 and 800, running HP/UX
2487 hppa*-hp-hpux7* )
2488 machine=hp800 opsys=hpux
2489 ;;
2490 hppa*-hp-hpux8* )
2491 machine=hp800 opsys=hpux8
2492 ;;
2493 hppa*-hp-hpux9shr* )
2494 machine=hp800 opsys=hpux9shr
2495 ;;
2496 hppa*-hp-hpux9* )
2497 machine=hp800 opsys=hpux9
2498 ;;
2499 hppa*-hp-hpux10.2* )
2500 machine=hp800 opsys=hpux10-20
2501 ;;
2502 hppa*-hp-hpux10* )
2503 machine=hp800 opsys=hpux10
2504 ;;
2505 hppa*-hp-hpux1[1-9]* )
2506 machine=hp800 opsys=hpux11
2507 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2508 ;;
2509
2510 hppa*-*-linux-gnu* )
2511 machine=hp800 opsys=gnu-linux
2512 ;;
2513
2514 ## HP 9000 series 700 and 800, running HP/UX
2515 hppa*-hp-hpux* )
2516 ## Cross-compilation? Nah!
2517 case "`uname -r`" in
2518 ## Someone's system reports A.B8.05 for this.
2519 ## I wonder what other possibilities there are.
2520 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2521 *.08.* ) machine=hp800 opsys=hpux8 ;;
2522 *.09.* ) machine=hp800 opsys=hpux9 ;;
2523 *) machine=hp800 opsys=hpux10 ;;
2524 esac
2525 ;;
2526 hppa*-*-nextstep* )
2527 machine=hp800 opsys=nextstep
2528 ;;
2529
2530 ## IBM machines
2531 i370-ibm-aix*)
2532 machine=ibm370aix opsys=usg5-3
2533 ;;
2534 s390-*-linux-gnu* )
2535 machine=ibms390 opsys=gnu-linux
2536 ;;
2537 s390x-*-linux-gnu* )
2538 machine=ibms390x opsys=gnu-linux
2539 ;;
2540 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2541 machine=ibmrs6000 opsys=aix3-1
2542 ;;
2543 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2544 machine=ibmrs6000 opsys=aix3-2-5
2545 ;;
2546 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2547 machine=ibmrs6000 opsys=aix4-1
2548 ;;
2549 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2550 machine=ibmrs6000 opsys=aix4-2
2551 ;;
2552 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2553 machine=ibmrs6000 opsys=aix4-2
2554 ;;
2555 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2556 machine=ibmrs6000 opsys=aix4-2
2557 ;;
2558 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2559 machine=ibmrs6000 opsys=aix4
2560 ;;
2561 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2562 machine=ibmrs6000 opsys=aix4-1
2563 ;;
2564 rs6000-ibm-aix* | powerpc-ibm-aix* )
2565 machine=ibmrs6000 opsys=aix3-2
2566 ;;
2567
2568 ## Prime EXL
2569 i[3456]86-prime-sysv* )
2570 machine=i386 opsys=usg5-3
2571 ;;
2572
2573 ## ncr machine running svr4.3.
2574 i[3456]86-ncr-sysv4.3 )
2575 machine=ncr386 opsys=usg5-4-3
2576 ;;
2577
2578 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2579 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2580 i[3456]86-ncr-sysv* )
2581 machine=ncr386 opsys=usg5-4-2
2582 ;;
2583
2584 ## Macintosh PowerPC
2585 powerpc*-*-linux-gnu* )
2586 machine=macppc opsys=gnu-linux
2587 ;;
2588
2589 ## Workstations sold by MIPS
2590 ## This is not necessarily all workstations using the MIPS processor -
2591 ## Irises are produced by SGI, and DECstations by DEC.
2592
2593 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2594 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2595 ## it gives for choosing between the alternatives seems to be "Use
2596 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2597 ## the BSD world." I'll assume that these are instructions for
2598 ## handling two odd situations, and that every other situation
2599 ## should use mips.h and usg5-2-2, they being listed first.
2600 mips-mips-usg* )
2601 machine=mips4
2602 ## Fall through to the general code at the bottom to decide on the OS.
2603 ;;
2604 mips-mips-riscos4* )
2605 machine=mips4 opsys=bsd4-3
2606 NON_GNU_CC="cc -systype bsd43"
2607 NON_GNU_CPP="cc -systype bsd43 -E"
2608 ;;
2609 mips-mips-riscos5* )
2610 machine=mips4 opsys=riscos5
2611 NON_GNU_CC="cc -systype bsd43"
2612 NON_GNU_CPP="cc -systype bsd43 -E"
2613 ;;
2614 mips-mips-bsd* )
2615 machine=mips opsys=bsd4-3
2616 ;;
2617 mips-mips-* )
2618 machine=mips opsys=usg5-2-2
2619 ;;
2620
2621 ## NeXT
2622 m68*-next-* | m68k-*-nextstep* )
2623 machine=m68k opsys=nextstep
2624 ;;
2625
2626 ## NEC EWS4800
2627 mips-nec-sysv4*)
2628 machine=ews4800 opsys=ux4800
2629 ;;
2630
2631 ## Siemens Nixdorf
2632 mips-siemens-sysv* | mips-sni-sysv*)
2633 machine=mips-siemens opsys=usg5-4
2634 NON_GNU_CC=/usr/ccs/bin/cc
2635 NON_GNU_CPP=/usr/ccs/lib/cpp
2636 ;;
2637
2638 ## Silicon Graphics machines
2639 ## Iris 4D
2640 mips-sgi-irix6.5 )
2641 machine=iris4d opsys=irix6-5
2642 # Without defining _LANGUAGE_C, things get masked out in the headers
2643 # so that, for instance, grepping for `free' in stdlib.h fails and
2644 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2645 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2646 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2647 ;;
2648 mips-sgi-irix6* )
2649 machine=iris4d opsys=irix6-0
2650 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2651 # but presumably it does no harm.
2652 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2653 # -32 probably isn't necessary in later v.6s -- anyone know which?
2654 NON_GCC_TEST_OPTIONS=-32
2655 ;;
2656 mips-sgi-irix5.[01]* )
2657 machine=iris4d opsys=irix5-0
2658 ;;
2659 mips-sgi-irix5* | mips-sgi-irix* )
2660 machine=iris4d opsys=irix5-2
2661 ;;
2662
2663 ## Suns
2664 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2665 machine=sparc opsys=gnu-linux
2666 ;;
2667
2668 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2669 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2670 | rs6000-*-solaris2*)
2671 case "${canonical}" in
2672 i[3456]86-*-* ) machine=intel386 ;;
2673 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2674 powerpcle* ) machine=powerpcle ;;
2675 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2676 sparc* ) machine=sparc ;;
2677 * ) unported=yes ;;
2678 esac
2679 case "${canonical}" in
2680 *-sunos5.3* | *-solaris2.3* )
2681 opsys=sol2-3
2682 NON_GNU_CPP=/usr/ccs/lib/cpp
2683 ;;
2684 *-sunos5.4* | *-solaris2.4* )
2685 opsys=sol2-4
2686 NON_GNU_CPP=/usr/ccs/lib/cpp
2687 RANLIB="ar -ts"
2688 ;;
2689 *-sunos5.5* | *-solaris2.5* )
2690 opsys=sol2-5
2691 NON_GNU_CPP=/usr/ccs/lib/cpp
2692 RANLIB="ar -ts"
2693 ;;
2694 *-sunos5.6* | *-solaris2.6* )
2695 opsys=sol2-6
2696 NON_GNU_CPP=/usr/ccs/lib/cpp
2697 RANLIB="ar -ts"
2698 ;;
2699 *-sunos5* | *-solaris* )
2700 opsys=sol2-6
2701 emacs_check_sunpro_c=yes
2702 NON_GNU_CPP=/usr/ccs/lib/cpp
2703 ;;
2704 * ) opsys=bsd4-2 ;;
2705 esac
2706 ## Watch out for a compiler that we know will not work.
2707 case "${canonical}" in
2708 *-solaris* | *-sunos5* )
2709 if [ "x$CC" = x/usr/ucb/cc ]; then
2710 ## /usr/ucb/cc doesn't work;
2711 ## we should find some other compiler that does work.
2712 unset CC
2713 fi
2714 ;;
2715 *) ;;
2716 esac
2717 ;;
2718 sparc-*-nextstep* )
2719 machine=sparc opsys=nextstep
2720 ;;
2721
2722 ## Tandem Integrity S2
2723 mips-tandem-sysv* )
2724 machine=tandem-s2 opsys=usg5-3
2725 ;;
2726
2727 ## Vaxen.
2728 vax-dec-* )
2729 machine=vax
2730 case "${canonical}" in
2731 *-bsd4.1* ) opsys=bsd4-1 ;;
2732 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2733 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2734 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2735 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2736 *-vms* ) opsys=vms ;;
2737 * ) unported=yes
2738 esac
2739 ;;
2740
2741 ## IA-64
2742 ia64*-*-linux* )
2743 machine=ia64 opsys=gnu-linux
2744 ;;
2745
2746 ## Intel 386 machines where we don't care about the manufacturer
2747 i[3456]86-*-* )
2748 machine=intel386
2749 case "${canonical}" in
2750 *-cygwin ) opsys=cygwin ;;
2751 *-darwin* ) opsys=darwin
2752 CPP="${CC-cc} -E -no-cpp-precomp"
2753 ;;
2754 *-xenix* ) opsys=xenix ;;
2755 *-linux-gnu* ) opsys=gnu-linux ;;
2756 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2757 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2758 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2759 *-386bsd* ) opsys=386bsd ;;
2760 *-nextstep* ) opsys=nextstep ;;
2761 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2762 esac
2763 ;;
2764
2765 ## m68k Linux-based GNU system
2766 m68k-*-linux-gnu* )
2767 machine=m68k opsys=gnu-linux
2768 ;;
2769
2770 ## Mips Linux-based GNU system
2771 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2772 machine=mips opsys=gnu-linux
2773 ;;
2774
2775 ## UXP/DS
2776 sparc-fujitsu-sysv4* )
2777 machine=sparc opsys=uxpds
2778 NON_GNU_CPP=/usr/ccs/lib/cpp
2779 RANLIB="ar -ts"
2780 ;;
2781
2782 ## AMD x86-64 Linux-based GNU system
2783 x86_64-*-linux-gnu* )
2784 machine=amdx86-64 opsys=gnu-linux
2785 ;;
2786
2787 ## Tensilica Xtensa Linux-based GNU system
2788 xtensa*-*-linux-gnu* )
2789 machine=xtensa opsys=gnu-linux
2790 ;;
2791
2792 * )
2793 unported=yes
2794 ;;
2795 esac
2796
2797 ### If the code above didn't choose an operating system, just choose
2798 ### an operating system based on the configuration name. You really
2799 ### only want to use this when you have no idea what the right
2800 ### operating system is; if you know what operating systems a machine
2801 ### runs, it's cleaner to make it explicit in the case statement
2802 ### above.
2803 if test x"${opsys}" = x; then
2804 case "${canonical}" in
2805 *-gnu* ) opsys=gnu ;;
2806 *-bsd4.[01] ) opsys=bsd4-1 ;;
2807 *-bsd4.2 ) opsys=bsd4-2 ;;
2808 *-bsd4.3 ) opsys=bsd4-3 ;;
2809 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2810 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2811 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2812 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2813 *-sysv4.2uw* ) opsys=unixware ;;
2814 *-sysv5uw* ) opsys=unixware ;;
2815 *-sysv5OpenUNIX* ) opsys=unixware ;;
2816 *-sysv4.1* | *-sysvr4.1* )
2817 NON_GNU_CPP=/usr/lib/cpp
2818 opsys=usg5-4 ;;
2819 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2820 if [ x$NON_GNU_CPP = x ]; then
2821 if [ -f /usr/ccs/lib/cpp ]; then
2822 NON_GNU_CPP=/usr/ccs/lib/cpp
2823 else
2824 NON_GNU_CPP=/lib/cpp
2825 fi
2826 fi
2827 opsys=usg5-4-2 ;;
2828 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2829 * )
2830 unported=yes
2831 ;;
2832 esac
2833 fi
2834
2835
2836
2837 if test $unported = yes; then
2838 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&5
2840 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2841 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2842 { (exit 1); exit 1; }; }
2843 fi
2844
2845 machfile="m/${machine}.h"
2846 opsysfile="s/${opsys}.h"
2847
2848
2849 #### Choose a compiler.
2850 test -n "$CC" && cc_specified=yes
2851
2852 # Save the value of CFLAGS that the user specified.
2853 SPECIFIED_CFLAGS="$CFLAGS"
2854
2855 case ${with_gcc} in
2856 "yes" ) CC="gcc" GCC=yes ;;
2857 "no" ) : ${CC=cc} ;;
2858 * )
2859 esac
2860 ac_ext=c
2861 ac_cpp='$CPP $CPPFLAGS'
2862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2865 if test -n "$ac_tool_prefix"; then
2866 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2867 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2868 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2869 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2870 if test "${ac_cv_prog_CC+set}" = set; then
2871 echo $ECHO_N "(cached) $ECHO_C" >&6
2872 else
2873 if test -n "$CC"; then
2874 ac_cv_prog_CC="$CC" # Let the user override the test.
2875 else
2876 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2877 for as_dir in $PATH
2878 do
2879 IFS=$as_save_IFS
2880 test -z "$as_dir" && as_dir=.
2881 for ac_exec_ext in '' $ac_executable_extensions; do
2882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2883 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2884 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2885 break 2
2886 fi
2887 done
2888 done
2889 IFS=$as_save_IFS
2890
2891 fi
2892 fi
2893 CC=$ac_cv_prog_CC
2894 if test -n "$CC"; then
2895 { echo "$as_me:$LINENO: result: $CC" >&5
2896 echo "${ECHO_T}$CC" >&6; }
2897 else
2898 { echo "$as_me:$LINENO: result: no" >&5
2899 echo "${ECHO_T}no" >&6; }
2900 fi
2901
2902
2903 fi
2904 if test -z "$ac_cv_prog_CC"; then
2905 ac_ct_CC=$CC
2906 # Extract the first word of "gcc", so it can be a program name with args.
2907 set dummy gcc; ac_word=$2
2908 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2909 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2910 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2911 echo $ECHO_N "(cached) $ECHO_C" >&6
2912 else
2913 if test -n "$ac_ct_CC"; then
2914 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2915 else
2916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2917 for as_dir in $PATH
2918 do
2919 IFS=$as_save_IFS
2920 test -z "$as_dir" && as_dir=.
2921 for ac_exec_ext in '' $ac_executable_extensions; do
2922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2923 ac_cv_prog_ac_ct_CC="gcc"
2924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 break 2
2926 fi
2927 done
2928 done
2929 IFS=$as_save_IFS
2930
2931 fi
2932 fi
2933 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2934 if test -n "$ac_ct_CC"; then
2935 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2936 echo "${ECHO_T}$ac_ct_CC" >&6; }
2937 else
2938 { echo "$as_me:$LINENO: result: no" >&5
2939 echo "${ECHO_T}no" >&6; }
2940 fi
2941
2942 if test "x$ac_ct_CC" = x; then
2943 CC=""
2944 else
2945 case $cross_compiling:$ac_tool_warned in
2946 yes:)
2947 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2948 whose name does not start with the host triplet. If you think this
2949 configuration is useful to you, please write to autoconf@gnu.org." >&5
2950 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2951 whose name does not start with the host triplet. If you think this
2952 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2953 ac_tool_warned=yes ;;
2954 esac
2955 CC=$ac_ct_CC
2956 fi
2957 else
2958 CC="$ac_cv_prog_CC"
2959 fi
2960
2961 if test -z "$CC"; then
2962 if test -n "$ac_tool_prefix"; then
2963 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2964 set dummy ${ac_tool_prefix}cc; ac_word=$2
2965 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2966 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2967 if test "${ac_cv_prog_CC+set}" = set; then
2968 echo $ECHO_N "(cached) $ECHO_C" >&6
2969 else
2970 if test -n "$CC"; then
2971 ac_cv_prog_CC="$CC" # Let the user override the test.
2972 else
2973 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2974 for as_dir in $PATH
2975 do
2976 IFS=$as_save_IFS
2977 test -z "$as_dir" && as_dir=.
2978 for ac_exec_ext in '' $ac_executable_extensions; do
2979 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2980 ac_cv_prog_CC="${ac_tool_prefix}cc"
2981 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2982 break 2
2983 fi
2984 done
2985 done
2986 IFS=$as_save_IFS
2987
2988 fi
2989 fi
2990 CC=$ac_cv_prog_CC
2991 if test -n "$CC"; then
2992 { echo "$as_me:$LINENO: result: $CC" >&5
2993 echo "${ECHO_T}$CC" >&6; }
2994 else
2995 { echo "$as_me:$LINENO: result: no" >&5
2996 echo "${ECHO_T}no" >&6; }
2997 fi
2998
2999
3000 fi
3001 fi
3002 if test -z "$CC"; then
3003 # Extract the first word of "cc", so it can be a program name with args.
3004 set dummy cc; ac_word=$2
3005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3007 if test "${ac_cv_prog_CC+set}" = set; then
3008 echo $ECHO_N "(cached) $ECHO_C" >&6
3009 else
3010 if test -n "$CC"; then
3011 ac_cv_prog_CC="$CC" # Let the user override the test.
3012 else
3013 ac_prog_rejected=no
3014 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3015 for as_dir in $PATH
3016 do
3017 IFS=$as_save_IFS
3018 test -z "$as_dir" && as_dir=.
3019 for ac_exec_ext in '' $ac_executable_extensions; do
3020 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3021 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3022 ac_prog_rejected=yes
3023 continue
3024 fi
3025 ac_cv_prog_CC="cc"
3026 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3027 break 2
3028 fi
3029 done
3030 done
3031 IFS=$as_save_IFS
3032
3033 if test $ac_prog_rejected = yes; then
3034 # We found a bogon in the path, so make sure we never use it.
3035 set dummy $ac_cv_prog_CC
3036 shift
3037 if test $# != 0; then
3038 # We chose a different compiler from the bogus one.
3039 # However, it has the same basename, so the bogon will be chosen
3040 # first if we set CC to just the basename; use the full file name.
3041 shift
3042 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3043 fi
3044 fi
3045 fi
3046 fi
3047 CC=$ac_cv_prog_CC
3048 if test -n "$CC"; then
3049 { echo "$as_me:$LINENO: result: $CC" >&5
3050 echo "${ECHO_T}$CC" >&6; }
3051 else
3052 { echo "$as_me:$LINENO: result: no" >&5
3053 echo "${ECHO_T}no" >&6; }
3054 fi
3055
3056
3057 fi
3058 if test -z "$CC"; then
3059 if test -n "$ac_tool_prefix"; then
3060 for ac_prog in cl.exe
3061 do
3062 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3063 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3064 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3065 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3066 if test "${ac_cv_prog_CC+set}" = set; then
3067 echo $ECHO_N "(cached) $ECHO_C" >&6
3068 else
3069 if test -n "$CC"; then
3070 ac_cv_prog_CC="$CC" # Let the user override the test.
3071 else
3072 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3073 for as_dir in $PATH
3074 do
3075 IFS=$as_save_IFS
3076 test -z "$as_dir" && as_dir=.
3077 for ac_exec_ext in '' $ac_executable_extensions; do
3078 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3079 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3080 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3081 break 2
3082 fi
3083 done
3084 done
3085 IFS=$as_save_IFS
3086
3087 fi
3088 fi
3089 CC=$ac_cv_prog_CC
3090 if test -n "$CC"; then
3091 { echo "$as_me:$LINENO: result: $CC" >&5
3092 echo "${ECHO_T}$CC" >&6; }
3093 else
3094 { echo "$as_me:$LINENO: result: no" >&5
3095 echo "${ECHO_T}no" >&6; }
3096 fi
3097
3098
3099 test -n "$CC" && break
3100 done
3101 fi
3102 if test -z "$CC"; then
3103 ac_ct_CC=$CC
3104 for ac_prog in cl.exe
3105 do
3106 # Extract the first word of "$ac_prog", so it can be a program name with args.
3107 set dummy $ac_prog; ac_word=$2
3108 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3109 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3110 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3111 echo $ECHO_N "(cached) $ECHO_C" >&6
3112 else
3113 if test -n "$ac_ct_CC"; then
3114 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3115 else
3116 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3117 for as_dir in $PATH
3118 do
3119 IFS=$as_save_IFS
3120 test -z "$as_dir" && as_dir=.
3121 for ac_exec_ext in '' $ac_executable_extensions; do
3122 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3123 ac_cv_prog_ac_ct_CC="$ac_prog"
3124 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3125 break 2
3126 fi
3127 done
3128 done
3129 IFS=$as_save_IFS
3130
3131 fi
3132 fi
3133 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3134 if test -n "$ac_ct_CC"; then
3135 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3136 echo "${ECHO_T}$ac_ct_CC" >&6; }
3137 else
3138 { echo "$as_me:$LINENO: result: no" >&5
3139 echo "${ECHO_T}no" >&6; }
3140 fi
3141
3142
3143 test -n "$ac_ct_CC" && break
3144 done
3145
3146 if test "x$ac_ct_CC" = x; then
3147 CC=""
3148 else
3149 case $cross_compiling:$ac_tool_warned in
3150 yes:)
3151 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3152 whose name does not start with the host triplet. If you think this
3153 configuration is useful to you, please write to autoconf@gnu.org." >&5
3154 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3155 whose name does not start with the host triplet. If you think this
3156 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3157 ac_tool_warned=yes ;;
3158 esac
3159 CC=$ac_ct_CC
3160 fi
3161 fi
3162
3163 fi
3164
3165
3166 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details." >&5
3168 echo "$as_me: error: no acceptable C compiler found in \$PATH
3169 See \`config.log' for more details." >&2;}
3170 { (exit 1); exit 1; }; }
3171
3172 # Provide some information about the compiler.
3173 echo "$as_me:$LINENO: checking for C compiler version" >&5
3174 ac_compiler=`set X $ac_compile; echo $2`
3175 { (ac_try="$ac_compiler --version >&5"
3176 case "(($ac_try" in
3177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3178 *) ac_try_echo=$ac_try;;
3179 esac
3180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3181 (eval "$ac_compiler --version >&5") 2>&5
3182 ac_status=$?
3183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3184 (exit $ac_status); }
3185 { (ac_try="$ac_compiler -v >&5"
3186 case "(($ac_try" in
3187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3188 *) ac_try_echo=$ac_try;;
3189 esac
3190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3191 (eval "$ac_compiler -v >&5") 2>&5
3192 ac_status=$?
3193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3194 (exit $ac_status); }
3195 { (ac_try="$ac_compiler -V >&5"
3196 case "(($ac_try" in
3197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3198 *) ac_try_echo=$ac_try;;
3199 esac
3200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3201 (eval "$ac_compiler -V >&5") 2>&5
3202 ac_status=$?
3203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3204 (exit $ac_status); }
3205
3206 cat >conftest.$ac_ext <<_ACEOF
3207 /* confdefs.h. */
3208 _ACEOF
3209 cat confdefs.h >>conftest.$ac_ext
3210 cat >>conftest.$ac_ext <<_ACEOF
3211 /* end confdefs.h. */
3212
3213 int
3214 main ()
3215 {
3216
3217 ;
3218 return 0;
3219 }
3220 _ACEOF
3221 ac_clean_files_save=$ac_clean_files
3222 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3223 # Try to create an executable without -o first, disregard a.out.
3224 # It will help us diagnose broken compilers, and finding out an intuition
3225 # of exeext.
3226 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3227 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3228 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3229 #
3230 # List of possible output files, starting from the most likely.
3231 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3232 # only as a last resort. b.out is created by i960 compilers.
3233 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3234 #
3235 # The IRIX 6 linker writes into existing files which may not be
3236 # executable, retaining their permissions. Remove them first so a
3237 # subsequent execution test works.
3238 ac_rmfiles=
3239 for ac_file in $ac_files
3240 do
3241 case $ac_file in
3242 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3243 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3244 esac
3245 done
3246 rm -f $ac_rmfiles
3247
3248 if { (ac_try="$ac_link_default"
3249 case "(($ac_try" in
3250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3251 *) ac_try_echo=$ac_try;;
3252 esac
3253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3254 (eval "$ac_link_default") 2>&5
3255 ac_status=$?
3256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3257 (exit $ac_status); }; then
3258 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3259 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3260 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3261 # so that the user can short-circuit this test for compilers unknown to
3262 # Autoconf.
3263 for ac_file in $ac_files ''
3264 do
3265 test -f "$ac_file" || continue
3266 case $ac_file in
3267 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3268 ;;
3269 [ab].out )
3270 # We found the default executable, but exeext='' is most
3271 # certainly right.
3272 break;;
3273 *.* )
3274 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3275 then :; else
3276 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3277 fi
3278 # We set ac_cv_exeext here because the later test for it is not
3279 # safe: cross compilers may not add the suffix if given an `-o'
3280 # argument, so we may need to know it at that point already.
3281 # Even if this section looks crufty: it has the advantage of
3282 # actually working.
3283 break;;
3284 * )
3285 break;;
3286 esac
3287 done
3288 test "$ac_cv_exeext" = no && ac_cv_exeext=
3289
3290 else
3291 ac_file=''
3292 fi
3293
3294 { echo "$as_me:$LINENO: result: $ac_file" >&5
3295 echo "${ECHO_T}$ac_file" >&6; }
3296 if test -z "$ac_file"; then
3297 echo "$as_me: failed program was:" >&5
3298 sed 's/^/| /' conftest.$ac_ext >&5
3299
3300 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&5
3302 echo "$as_me: error: C compiler cannot create executables
3303 See \`config.log' for more details." >&2;}
3304 { (exit 77); exit 77; }; }
3305 fi
3306
3307 ac_exeext=$ac_cv_exeext
3308
3309 # Check that the compiler produces executables we can run. If not, either
3310 # the compiler is broken, or we cross compile.
3311 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3312 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3313 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3314 # If not cross compiling, check that we can run a simple program.
3315 if test "$cross_compiling" != yes; then
3316 if { ac_try='./$ac_file'
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_try") 2>&5
3323 ac_status=$?
3324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3325 (exit $ac_status); }; }; then
3326 cross_compiling=no
3327 else
3328 if test "$cross_compiling" = maybe; then
3329 cross_compiling=yes
3330 else
3331 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3332 If you meant to cross compile, use \`--host'.
3333 See \`config.log' for more details." >&5
3334 echo "$as_me: error: cannot run C compiled programs.
3335 If you meant to cross compile, use \`--host'.
3336 See \`config.log' for more details." >&2;}
3337 { (exit 1); exit 1; }; }
3338 fi
3339 fi
3340 fi
3341 { echo "$as_me:$LINENO: result: yes" >&5
3342 echo "${ECHO_T}yes" >&6; }
3343
3344 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3345 ac_clean_files=$ac_clean_files_save
3346 # Check that the compiler produces executables we can run. If not, either
3347 # the compiler is broken, or we cross compile.
3348 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3349 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3350 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3351 echo "${ECHO_T}$cross_compiling" >&6; }
3352
3353 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3354 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3355 if { (ac_try="$ac_link"
3356 case "(($ac_try" in
3357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3358 *) ac_try_echo=$ac_try;;
3359 esac
3360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3361 (eval "$ac_link") 2>&5
3362 ac_status=$?
3363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3364 (exit $ac_status); }; then
3365 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3366 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3367 # work properly (i.e., refer to `conftest.exe'), while it won't with
3368 # `rm'.
3369 for ac_file in conftest.exe conftest conftest.*; do
3370 test -f "$ac_file" || continue
3371 case $ac_file in
3372 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3373 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3374 break;;
3375 * ) break;;
3376 esac
3377 done
3378 else
3379 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details." >&5
3381 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3382 See \`config.log' for more details." >&2;}
3383 { (exit 1); exit 1; }; }
3384 fi
3385
3386 rm -f conftest$ac_cv_exeext
3387 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3388 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3389
3390 rm -f conftest.$ac_ext
3391 EXEEXT=$ac_cv_exeext
3392 ac_exeext=$EXEEXT
3393 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3394 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3395 if test "${ac_cv_objext+set}" = set; then
3396 echo $ECHO_N "(cached) $ECHO_C" >&6
3397 else
3398 cat >conftest.$ac_ext <<_ACEOF
3399 /* confdefs.h. */
3400 _ACEOF
3401 cat confdefs.h >>conftest.$ac_ext
3402 cat >>conftest.$ac_ext <<_ACEOF
3403 /* end confdefs.h. */
3404
3405 int
3406 main ()
3407 {
3408
3409 ;
3410 return 0;
3411 }
3412 _ACEOF
3413 rm -f conftest.o conftest.obj
3414 if { (ac_try="$ac_compile"
3415 case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418 esac
3419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3420 (eval "$ac_compile") 2>&5
3421 ac_status=$?
3422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3423 (exit $ac_status); }; then
3424 for ac_file in conftest.o conftest.obj conftest.*; do
3425 test -f "$ac_file" || continue;
3426 case $ac_file in
3427 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3428 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3429 break;;
3430 esac
3431 done
3432 else
3433 echo "$as_me: failed program was:" >&5
3434 sed 's/^/| /' conftest.$ac_ext >&5
3435
3436 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details." >&5
3438 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3439 See \`config.log' for more details." >&2;}
3440 { (exit 1); exit 1; }; }
3441 fi
3442
3443 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3444 fi
3445 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3446 echo "${ECHO_T}$ac_cv_objext" >&6; }
3447 OBJEXT=$ac_cv_objext
3448 ac_objext=$OBJEXT
3449 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3450 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3451 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3452 echo $ECHO_N "(cached) $ECHO_C" >&6
3453 else
3454 cat >conftest.$ac_ext <<_ACEOF
3455 /* confdefs.h. */
3456 _ACEOF
3457 cat confdefs.h >>conftest.$ac_ext
3458 cat >>conftest.$ac_ext <<_ACEOF
3459 /* end confdefs.h. */
3460
3461 int
3462 main ()
3463 {
3464 #ifndef __GNUC__
3465 choke me
3466 #endif
3467
3468 ;
3469 return 0;
3470 }
3471 _ACEOF
3472 rm -f conftest.$ac_objext
3473 if { (ac_try="$ac_compile"
3474 case "(($ac_try" in
3475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3476 *) ac_try_echo=$ac_try;;
3477 esac
3478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3479 (eval "$ac_compile") 2>conftest.er1
3480 ac_status=$?
3481 grep -v '^ *+' conftest.er1 >conftest.err
3482 rm -f conftest.er1
3483 cat conftest.err >&5
3484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3485 (exit $ac_status); } && {
3486 test -z "$ac_c_werror_flag" ||
3487 test ! -s conftest.err
3488 } && test -s conftest.$ac_objext; then
3489 ac_compiler_gnu=yes
3490 else
3491 echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3493
3494 ac_compiler_gnu=no
3495 fi
3496
3497 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3498 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3499
3500 fi
3501 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3502 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3503 GCC=`test $ac_compiler_gnu = yes && echo yes`
3504 ac_test_CFLAGS=${CFLAGS+set}
3505 ac_save_CFLAGS=$CFLAGS
3506 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3507 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3508 if test "${ac_cv_prog_cc_g+set}" = set; then
3509 echo $ECHO_N "(cached) $ECHO_C" >&6
3510 else
3511 ac_save_c_werror_flag=$ac_c_werror_flag
3512 ac_c_werror_flag=yes
3513 ac_cv_prog_cc_g=no
3514 CFLAGS="-g"
3515 cat >conftest.$ac_ext <<_ACEOF
3516 /* confdefs.h. */
3517 _ACEOF
3518 cat confdefs.h >>conftest.$ac_ext
3519 cat >>conftest.$ac_ext <<_ACEOF
3520 /* end confdefs.h. */
3521
3522 int
3523 main ()
3524 {
3525
3526 ;
3527 return 0;
3528 }
3529 _ACEOF
3530 rm -f conftest.$ac_objext
3531 if { (ac_try="$ac_compile"
3532 case "(($ac_try" in
3533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3534 *) ac_try_echo=$ac_try;;
3535 esac
3536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3537 (eval "$ac_compile") 2>conftest.er1
3538 ac_status=$?
3539 grep -v '^ *+' conftest.er1 >conftest.err
3540 rm -f conftest.er1
3541 cat conftest.err >&5
3542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3543 (exit $ac_status); } && {
3544 test -z "$ac_c_werror_flag" ||
3545 test ! -s conftest.err
3546 } && test -s conftest.$ac_objext; then
3547 ac_cv_prog_cc_g=yes
3548 else
3549 echo "$as_me: failed program was:" >&5
3550 sed 's/^/| /' conftest.$ac_ext >&5
3551
3552 CFLAGS=""
3553 cat >conftest.$ac_ext <<_ACEOF
3554 /* confdefs.h. */
3555 _ACEOF
3556 cat confdefs.h >>conftest.$ac_ext
3557 cat >>conftest.$ac_ext <<_ACEOF
3558 /* end confdefs.h. */
3559
3560 int
3561 main ()
3562 {
3563
3564 ;
3565 return 0;
3566 }
3567 _ACEOF
3568 rm -f conftest.$ac_objext
3569 if { (ac_try="$ac_compile"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compile") 2>conftest.er1
3576 ac_status=$?
3577 grep -v '^ *+' conftest.er1 >conftest.err
3578 rm -f conftest.er1
3579 cat conftest.err >&5
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); } && {
3582 test -z "$ac_c_werror_flag" ||
3583 test ! -s conftest.err
3584 } && test -s conftest.$ac_objext; then
3585 :
3586 else
3587 echo "$as_me: failed program was:" >&5
3588 sed 's/^/| /' conftest.$ac_ext >&5
3589
3590 ac_c_werror_flag=$ac_save_c_werror_flag
3591 CFLAGS="-g"
3592 cat >conftest.$ac_ext <<_ACEOF
3593 /* confdefs.h. */
3594 _ACEOF
3595 cat confdefs.h >>conftest.$ac_ext
3596 cat >>conftest.$ac_ext <<_ACEOF
3597 /* end confdefs.h. */
3598
3599 int
3600 main ()
3601 {
3602
3603 ;
3604 return 0;
3605 }
3606 _ACEOF
3607 rm -f conftest.$ac_objext
3608 if { (ac_try="$ac_compile"
3609 case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3614 (eval "$ac_compile") 2>conftest.er1
3615 ac_status=$?
3616 grep -v '^ *+' conftest.er1 >conftest.err
3617 rm -f conftest.er1
3618 cat conftest.err >&5
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); } && {
3621 test -z "$ac_c_werror_flag" ||
3622 test ! -s conftest.err
3623 } && test -s conftest.$ac_objext; then
3624 ac_cv_prog_cc_g=yes
3625 else
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629
3630 fi
3631
3632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3633 fi
3634
3635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3636 fi
3637
3638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3639 ac_c_werror_flag=$ac_save_c_werror_flag
3640 fi
3641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3642 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3643 if test "$ac_test_CFLAGS" = set; then
3644 CFLAGS=$ac_save_CFLAGS
3645 elif test $ac_cv_prog_cc_g = yes; then
3646 if test "$GCC" = yes; then
3647 CFLAGS="-g -O2"
3648 else
3649 CFLAGS="-g"
3650 fi
3651 else
3652 if test "$GCC" = yes; then
3653 CFLAGS="-O2"
3654 else
3655 CFLAGS=
3656 fi
3657 fi
3658 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3659 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3660 if test "${ac_cv_prog_cc_c89+set}" = set; then
3661 echo $ECHO_N "(cached) $ECHO_C" >&6
3662 else
3663 ac_cv_prog_cc_c89=no
3664 ac_save_CC=$CC
3665 cat >conftest.$ac_ext <<_ACEOF
3666 /* confdefs.h. */
3667 _ACEOF
3668 cat confdefs.h >>conftest.$ac_ext
3669 cat >>conftest.$ac_ext <<_ACEOF
3670 /* end confdefs.h. */
3671 #include <stdarg.h>
3672 #include <stdio.h>
3673 #include <sys/types.h>
3674 #include <sys/stat.h>
3675 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3676 struct buf { int x; };
3677 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3678 static char *e (p, i)
3679 char **p;
3680 int i;
3681 {
3682 return p[i];
3683 }
3684 static char *f (char * (*g) (char **, int), char **p, ...)
3685 {
3686 char *s;
3687 va_list v;
3688 va_start (v,p);
3689 s = g (p, va_arg (v,int));
3690 va_end (v);
3691 return s;
3692 }
3693
3694 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3695 function prototypes and stuff, but not '\xHH' hex character constants.
3696 These don't provoke an error unfortunately, instead are silently treated
3697 as 'x'. The following induces an error, until -std is added to get
3698 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3699 array size at least. It's necessary to write '\x00'==0 to get something
3700 that's true only with -std. */
3701 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3702
3703 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3704 inside strings and character constants. */
3705 #define FOO(x) 'x'
3706 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3707
3708 int test (int i, double x);
3709 struct s1 {int (*f) (int a);};
3710 struct s2 {int (*f) (double a);};
3711 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3712 int argc;
3713 char **argv;
3714 int
3715 main ()
3716 {
3717 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3718 ;
3719 return 0;
3720 }
3721 _ACEOF
3722 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3723 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3724 do
3725 CC="$ac_save_CC $ac_arg"
3726 rm -f conftest.$ac_objext
3727 if { (ac_try="$ac_compile"
3728 case "(($ac_try" in
3729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3730 *) ac_try_echo=$ac_try;;
3731 esac
3732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3733 (eval "$ac_compile") 2>conftest.er1
3734 ac_status=$?
3735 grep -v '^ *+' conftest.er1 >conftest.err
3736 rm -f conftest.er1
3737 cat conftest.err >&5
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); } && {
3740 test -z "$ac_c_werror_flag" ||
3741 test ! -s conftest.err
3742 } && test -s conftest.$ac_objext; then
3743 ac_cv_prog_cc_c89=$ac_arg
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748
3749 fi
3750
3751 rm -f core conftest.err conftest.$ac_objext
3752 test "x$ac_cv_prog_cc_c89" != "xno" && break
3753 done
3754 rm -f conftest.$ac_ext
3755 CC=$ac_save_CC
3756
3757 fi
3758 # AC_CACHE_VAL
3759 case "x$ac_cv_prog_cc_c89" in
3760 x)
3761 { echo "$as_me:$LINENO: result: none needed" >&5
3762 echo "${ECHO_T}none needed" >&6; } ;;
3763 xno)
3764 { echo "$as_me:$LINENO: result: unsupported" >&5
3765 echo "${ECHO_T}unsupported" >&6; } ;;
3766 *)
3767 CC="$CC $ac_cv_prog_cc_c89"
3768 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3769 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3770 esac
3771
3772
3773 ac_ext=c
3774 ac_cpp='$CPP $CPPFLAGS'
3775 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3776 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3777 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3778
3779
3780 # On Suns, sometimes $CPP names a directory.
3781 if test -n "$CPP" && test -d "$CPP"; then
3782 CPP=
3783 fi
3784
3785 ## If not using gcc, and on Solaris, and no CPP specified, see if
3786 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3787 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3788 test x"$CPP" = x; then
3789 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3790 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3791
3792 if test "${emacs_cv_sunpro_c+set}" = set; then
3793 echo $ECHO_N "(cached) $ECHO_C" >&6
3794 else
3795 cat >conftest.$ac_ext <<_ACEOF
3796 /* confdefs.h. */
3797 _ACEOF
3798 cat confdefs.h >>conftest.$ac_ext
3799 cat >>conftest.$ac_ext <<_ACEOF
3800 /* end confdefs.h. */
3801
3802 int
3803 main ()
3804 {
3805 #ifndef __SUNPRO_C
3806 fail;
3807 #endif
3808
3809 ;
3810 return 0;
3811 }
3812 _ACEOF
3813 rm -f conftest.$ac_objext conftest$ac_exeext
3814 if { (ac_try="$ac_link"
3815 case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_link") 2>conftest.er1
3821 ac_status=$?
3822 grep -v '^ *+' conftest.er1 >conftest.err
3823 rm -f conftest.er1
3824 cat conftest.err >&5
3825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3826 (exit $ac_status); } && {
3827 test -z "$ac_c_werror_flag" ||
3828 test ! -s conftest.err
3829 } && test -s conftest$ac_exeext &&
3830 $as_test_x conftest$ac_exeext; then
3831 emacs_cv_sunpro_c=yes
3832 else
3833 echo "$as_me: failed program was:" >&5
3834 sed 's/^/| /' conftest.$ac_ext >&5
3835
3836 emacs_cv_sunpro_c=no
3837 fi
3838
3839 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3840 conftest$ac_exeext conftest.$ac_ext
3841 fi
3842
3843 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3844 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3845
3846 if test x"$emacs_cv_sunpro_c" = xyes; then
3847 NON_GNU_CPP="$CC -E -Xs"
3848 fi
3849 fi
3850
3851 #### Some systems specify a CPP to use unless we are using GCC.
3852 #### Now that we know whether we are using GCC, we can decide whether
3853 #### to use that one.
3854 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3855 then
3856 CPP="$NON_GNU_CPP"
3857 fi
3858
3859 #### Some systems specify a CC to use unless we are using GCC.
3860 #### Now that we know whether we are using GCC, we can decide whether
3861 #### to use that one.
3862 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3863 test x$cc_specified != xyes
3864 then
3865 CC="$NON_GNU_CC"
3866 fi
3867
3868 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3869 then
3870 CC="$CC $GCC_TEST_OPTIONS"
3871 fi
3872
3873 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3874 then
3875 CC="$CC $NON_GCC_TEST_OPTIONS"
3876 fi
3877
3878 ac_ext=c
3879 ac_cpp='$CPP $CPPFLAGS'
3880 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3881 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3882 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3883 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3884 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3885 # On Suns, sometimes $CPP names a directory.
3886 if test -n "$CPP" && test -d "$CPP"; then
3887 CPP=
3888 fi
3889 if test -z "$CPP"; then
3890 if test "${ac_cv_prog_CPP+set}" = set; then
3891 echo $ECHO_N "(cached) $ECHO_C" >&6
3892 else
3893 # Double quotes because CPP needs to be expanded
3894 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3895 do
3896 ac_preproc_ok=false
3897 for ac_c_preproc_warn_flag in '' yes
3898 do
3899 # Use a header file that comes with gcc, so configuring glibc
3900 # with a fresh cross-compiler works.
3901 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3902 # <limits.h> exists even on freestanding compilers.
3903 # On the NeXT, cc -E runs the code through the compiler's parser,
3904 # not just through cpp. "Syntax error" is here to catch this case.
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911 #ifdef __STDC__
3912 # include <limits.h>
3913 #else
3914 # include <assert.h>
3915 #endif
3916 Syntax error
3917 _ACEOF
3918 if { (ac_try="$ac_cpp conftest.$ac_ext"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } >/dev/null && {
3931 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3933 }; then
3934 :
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 # Broken: fails on valid input.
3940 continue
3941 fi
3942
3943 rm -f conftest.err conftest.$ac_ext
3944
3945 # OK, works on sane cases. Now check whether nonexistent headers
3946 # can be detected and how.
3947 cat >conftest.$ac_ext <<_ACEOF
3948 /* confdefs.h. */
3949 _ACEOF
3950 cat confdefs.h >>conftest.$ac_ext
3951 cat >>conftest.$ac_ext <<_ACEOF
3952 /* end confdefs.h. */
3953 #include <ac_nonexistent.h>
3954 _ACEOF
3955 if { (ac_try="$ac_cpp conftest.$ac_ext"
3956 case "(($ac_try" in
3957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958 *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3962 ac_status=$?
3963 grep -v '^ *+' conftest.er1 >conftest.err
3964 rm -f conftest.er1
3965 cat conftest.err >&5
3966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967 (exit $ac_status); } >/dev/null && {
3968 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3969 test ! -s conftest.err
3970 }; then
3971 # Broken: success on invalid input.
3972 continue
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 # Passes both tests.
3978 ac_preproc_ok=:
3979 break
3980 fi
3981
3982 rm -f conftest.err conftest.$ac_ext
3983
3984 done
3985 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3986 rm -f conftest.err conftest.$ac_ext
3987 if $ac_preproc_ok; then
3988 break
3989 fi
3990
3991 done
3992 ac_cv_prog_CPP=$CPP
3993
3994 fi
3995 CPP=$ac_cv_prog_CPP
3996 else
3997 ac_cv_prog_CPP=$CPP
3998 fi
3999 { echo "$as_me:$LINENO: result: $CPP" >&5
4000 echo "${ECHO_T}$CPP" >&6; }
4001 ac_preproc_ok=false
4002 for ac_c_preproc_warn_flag in '' yes
4003 do
4004 # Use a header file that comes with gcc, so configuring glibc
4005 # with a fresh cross-compiler works.
4006 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4007 # <limits.h> exists even on freestanding compilers.
4008 # On the NeXT, cc -E runs the code through the compiler's parser,
4009 # not just through cpp. "Syntax error" is here to catch this case.
4010 cat >conftest.$ac_ext <<_ACEOF
4011 /* confdefs.h. */
4012 _ACEOF
4013 cat confdefs.h >>conftest.$ac_ext
4014 cat >>conftest.$ac_ext <<_ACEOF
4015 /* end confdefs.h. */
4016 #ifdef __STDC__
4017 # include <limits.h>
4018 #else
4019 # include <assert.h>
4020 #endif
4021 Syntax error
4022 _ACEOF
4023 if { (ac_try="$ac_cpp conftest.$ac_ext"
4024 case "(($ac_try" in
4025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4026 *) ac_try_echo=$ac_try;;
4027 esac
4028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4029 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4030 ac_status=$?
4031 grep -v '^ *+' conftest.er1 >conftest.err
4032 rm -f conftest.er1
4033 cat conftest.err >&5
4034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4035 (exit $ac_status); } >/dev/null && {
4036 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4037 test ! -s conftest.err
4038 }; then
4039 :
4040 else
4041 echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4043
4044 # Broken: fails on valid input.
4045 continue
4046 fi
4047
4048 rm -f conftest.err conftest.$ac_ext
4049
4050 # OK, works on sane cases. Now check whether nonexistent headers
4051 # can be detected and how.
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <ac_nonexistent.h>
4059 _ACEOF
4060 if { (ac_try="$ac_cpp conftest.$ac_ext"
4061 case "(($ac_try" in
4062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4063 *) ac_try_echo=$ac_try;;
4064 esac
4065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4066 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4067 ac_status=$?
4068 grep -v '^ *+' conftest.er1 >conftest.err
4069 rm -f conftest.er1
4070 cat conftest.err >&5
4071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4072 (exit $ac_status); } >/dev/null && {
4073 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4074 test ! -s conftest.err
4075 }; then
4076 # Broken: success on invalid input.
4077 continue
4078 else
4079 echo "$as_me: failed program was:" >&5
4080 sed 's/^/| /' conftest.$ac_ext >&5
4081
4082 # Passes both tests.
4083 ac_preproc_ok=:
4084 break
4085 fi
4086
4087 rm -f conftest.err conftest.$ac_ext
4088
4089 done
4090 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4091 rm -f conftest.err conftest.$ac_ext
4092 if $ac_preproc_ok; then
4093 :
4094 else
4095 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4096 See \`config.log' for more details." >&5
4097 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4098 See \`config.log' for more details." >&2;}
4099 { (exit 1); exit 1; }; }
4100 fi
4101
4102 ac_ext=c
4103 ac_cpp='$CPP $CPPFLAGS'
4104 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4105 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4106 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4107
4108
4109 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4110 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4111 if test "${ac_cv_path_GREP+set}" = set; then
4112 echo $ECHO_N "(cached) $ECHO_C" >&6
4113 else
4114 # Extract the first word of "grep ggrep" to use in msg output
4115 if test -z "$GREP"; then
4116 set dummy grep ggrep; ac_prog_name=$2
4117 if test "${ac_cv_path_GREP+set}" = set; then
4118 echo $ECHO_N "(cached) $ECHO_C" >&6
4119 else
4120 ac_path_GREP_found=false
4121 # Loop through the user's path and test for each of PROGNAME-LIST
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4124 do
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_prog in grep ggrep; do
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4130 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4131 # Check for GNU ac_path_GREP and select it if it is found.
4132 # Check for GNU $ac_path_GREP
4133 case `"$ac_path_GREP" --version 2>&1` in
4134 *GNU*)
4135 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4136 *)
4137 ac_count=0
4138 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4139 while :
4140 do
4141 cat "conftest.in" "conftest.in" >"conftest.tmp"
4142 mv "conftest.tmp" "conftest.in"
4143 cp "conftest.in" "conftest.nl"
4144 echo 'GREP' >> "conftest.nl"
4145 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4146 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4147 ac_count=`expr $ac_count + 1`
4148 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4149 # Best one so far, save it but keep looking for a better one
4150 ac_cv_path_GREP="$ac_path_GREP"
4151 ac_path_GREP_max=$ac_count
4152 fi
4153 # 10*(2^10) chars as input seems more than enough
4154 test $ac_count -gt 10 && break
4155 done
4156 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4157 esac
4158
4159
4160 $ac_path_GREP_found && break 3
4161 done
4162 done
4163
4164 done
4165 IFS=$as_save_IFS
4166
4167
4168 fi
4169
4170 GREP="$ac_cv_path_GREP"
4171 if test -z "$GREP"; then
4172 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4173 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4174 { (exit 1); exit 1; }; }
4175 fi
4176
4177 else
4178 ac_cv_path_GREP=$GREP
4179 fi
4180
4181
4182 fi
4183 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4184 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4185 GREP="$ac_cv_path_GREP"
4186
4187
4188 { echo "$as_me:$LINENO: checking for egrep" >&5
4189 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4190 if test "${ac_cv_path_EGREP+set}" = set; then
4191 echo $ECHO_N "(cached) $ECHO_C" >&6
4192 else
4193 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4194 then ac_cv_path_EGREP="$GREP -E"
4195 else
4196 # Extract the first word of "egrep" to use in msg output
4197 if test -z "$EGREP"; then
4198 set dummy egrep; ac_prog_name=$2
4199 if test "${ac_cv_path_EGREP+set}" = set; then
4200 echo $ECHO_N "(cached) $ECHO_C" >&6
4201 else
4202 ac_path_EGREP_found=false
4203 # Loop through the user's path and test for each of PROGNAME-LIST
4204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4205 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4206 do
4207 IFS=$as_save_IFS
4208 test -z "$as_dir" && as_dir=.
4209 for ac_prog in egrep; do
4210 for ac_exec_ext in '' $ac_executable_extensions; do
4211 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4212 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4213 # Check for GNU ac_path_EGREP and select it if it is found.
4214 # Check for GNU $ac_path_EGREP
4215 case `"$ac_path_EGREP" --version 2>&1` in
4216 *GNU*)
4217 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4218 *)
4219 ac_count=0
4220 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4221 while :
4222 do
4223 cat "conftest.in" "conftest.in" >"conftest.tmp"
4224 mv "conftest.tmp" "conftest.in"
4225 cp "conftest.in" "conftest.nl"
4226 echo 'EGREP' >> "conftest.nl"
4227 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4228 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4229 ac_count=`expr $ac_count + 1`
4230 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4231 # Best one so far, save it but keep looking for a better one
4232 ac_cv_path_EGREP="$ac_path_EGREP"
4233 ac_path_EGREP_max=$ac_count
4234 fi
4235 # 10*(2^10) chars as input seems more than enough
4236 test $ac_count -gt 10 && break
4237 done
4238 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4239 esac
4240
4241
4242 $ac_path_EGREP_found && break 3
4243 done
4244 done
4245
4246 done
4247 IFS=$as_save_IFS
4248
4249
4250 fi
4251
4252 EGREP="$ac_cv_path_EGREP"
4253 if test -z "$EGREP"; then
4254 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4255 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4256 { (exit 1); exit 1; }; }
4257 fi
4258
4259 else
4260 ac_cv_path_EGREP=$EGREP
4261 fi
4262
4263
4264 fi
4265 fi
4266 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4267 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4268 EGREP="$ac_cv_path_EGREP"
4269
4270
4271
4272 { echo "$as_me:$LINENO: checking for AIX" >&5
4273 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4274 cat >conftest.$ac_ext <<_ACEOF
4275 /* confdefs.h. */
4276 _ACEOF
4277 cat confdefs.h >>conftest.$ac_ext
4278 cat >>conftest.$ac_ext <<_ACEOF
4279 /* end confdefs.h. */
4280 #ifdef _AIX
4281 yes
4282 #endif
4283
4284 _ACEOF
4285 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4286 $EGREP "yes" >/dev/null 2>&1; then
4287 { echo "$as_me:$LINENO: result: yes" >&5
4288 echo "${ECHO_T}yes" >&6; }
4289 cat >>confdefs.h <<\_ACEOF
4290 #define _ALL_SOURCE 1
4291 _ACEOF
4292
4293 else
4294 { echo "$as_me:$LINENO: result: no" >&5
4295 echo "${ECHO_T}no" >&6; }
4296 fi
4297 rm -f conftest*
4298
4299
4300
4301 cat >>confdefs.h <<\_ACEOF
4302 #define _GNU_SOURCE 1
4303 _ACEOF
4304
4305
4306
4307 ### Use -Wno-pointer-sign if the compiler supports it
4308 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4309 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4310 SAVE_CFLAGS="$CFLAGS"
4311 CFLAGS="$CFLAGS -Wno-pointer-sign"
4312 cat >conftest.$ac_ext <<_ACEOF
4313 /* confdefs.h. */
4314 _ACEOF
4315 cat confdefs.h >>conftest.$ac_ext
4316 cat >>conftest.$ac_ext <<_ACEOF
4317 /* end confdefs.h. */
4318
4319 int
4320 main ()
4321 {
4322
4323 ;
4324 return 0;
4325 }
4326 _ACEOF
4327 rm -f conftest.$ac_objext
4328 if { (ac_try="$ac_compile"
4329 case "(($ac_try" in
4330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331 *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334 (eval "$ac_compile") 2>conftest.er1
4335 ac_status=$?
4336 grep -v '^ *+' conftest.er1 >conftest.err
4337 rm -f conftest.er1
4338 cat conftest.err >&5
4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4340 (exit $ac_status); } && {
4341 test -z "$ac_c_werror_flag" ||
4342 test ! -s conftest.err
4343 } && test -s conftest.$ac_objext; then
4344 has_option=yes
4345 else
4346 echo "$as_me: failed program was:" >&5
4347 sed 's/^/| /' conftest.$ac_ext >&5
4348
4349 has_option=no
4350 fi
4351
4352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4353 if test $has_option = yes; then
4354 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4355 fi
4356 { echo "$as_me:$LINENO: result: $has_option" >&5
4357 echo "${ECHO_T}$has_option" >&6; }
4358 CFLAGS="$SAVE_CFLAGS"
4359 unset has_option
4360 unset SAVE_CFLAGS
4361
4362 #### Some other nice autoconf tests.
4363
4364 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4365 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4366 LN_S=$as_ln_s
4367 if test "$LN_S" = "ln -s"; then
4368 { echo "$as_me:$LINENO: result: yes" >&5
4369 echo "${ECHO_T}yes" >&6; }
4370 else
4371 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4372 echo "${ECHO_T}no, using $LN_S" >&6; }
4373 fi
4374
4375 ac_ext=c
4376 ac_cpp='$CPP $CPPFLAGS'
4377 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4378 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4379 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4380 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4381 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4382 # On Suns, sometimes $CPP names a directory.
4383 if test -n "$CPP" && test -d "$CPP"; then
4384 CPP=
4385 fi
4386 if test -z "$CPP"; then
4387 if test "${ac_cv_prog_CPP+set}" = set; then
4388 echo $ECHO_N "(cached) $ECHO_C" >&6
4389 else
4390 # Double quotes because CPP needs to be expanded
4391 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4392 do
4393 ac_preproc_ok=false
4394 for ac_c_preproc_warn_flag in '' yes
4395 do
4396 # Use a header file that comes with gcc, so configuring glibc
4397 # with a fresh cross-compiler works.
4398 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4399 # <limits.h> exists even on freestanding compilers.
4400 # On the NeXT, cc -E runs the code through the compiler's parser,
4401 # not just through cpp. "Syntax error" is here to catch this case.
4402 cat >conftest.$ac_ext <<_ACEOF
4403 /* confdefs.h. */
4404 _ACEOF
4405 cat confdefs.h >>conftest.$ac_ext
4406 cat >>conftest.$ac_ext <<_ACEOF
4407 /* end confdefs.h. */
4408 #ifdef __STDC__
4409 # include <limits.h>
4410 #else
4411 # include <assert.h>
4412 #endif
4413 Syntax error
4414 _ACEOF
4415 if { (ac_try="$ac_cpp conftest.$ac_ext"
4416 case "(($ac_try" in
4417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4418 *) ac_try_echo=$ac_try;;
4419 esac
4420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4422 ac_status=$?
4423 grep -v '^ *+' conftest.er1 >conftest.err
4424 rm -f conftest.er1
4425 cat conftest.err >&5
4426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4427 (exit $ac_status); } >/dev/null && {
4428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4429 test ! -s conftest.err
4430 }; then
4431 :
4432 else
4433 echo "$as_me: failed program was:" >&5
4434 sed 's/^/| /' conftest.$ac_ext >&5
4435
4436 # Broken: fails on valid input.
4437 continue
4438 fi
4439
4440 rm -f conftest.err conftest.$ac_ext
4441
4442 # OK, works on sane cases. Now check whether nonexistent headers
4443 # can be detected and how.
4444 cat >conftest.$ac_ext <<_ACEOF
4445 /* confdefs.h. */
4446 _ACEOF
4447 cat confdefs.h >>conftest.$ac_ext
4448 cat >>conftest.$ac_ext <<_ACEOF
4449 /* end confdefs.h. */
4450 #include <ac_nonexistent.h>
4451 _ACEOF
4452 if { (ac_try="$ac_cpp conftest.$ac_ext"
4453 case "(($ac_try" in
4454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4455 *) ac_try_echo=$ac_try;;
4456 esac
4457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4458 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4459 ac_status=$?
4460 grep -v '^ *+' conftest.er1 >conftest.err
4461 rm -f conftest.er1
4462 cat conftest.err >&5
4463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4464 (exit $ac_status); } >/dev/null && {
4465 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4466 test ! -s conftest.err
4467 }; then
4468 # Broken: success on invalid input.
4469 continue
4470 else
4471 echo "$as_me: failed program was:" >&5
4472 sed 's/^/| /' conftest.$ac_ext >&5
4473
4474 # Passes both tests.
4475 ac_preproc_ok=:
4476 break
4477 fi
4478
4479 rm -f conftest.err conftest.$ac_ext
4480
4481 done
4482 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4483 rm -f conftest.err conftest.$ac_ext
4484 if $ac_preproc_ok; then
4485 break
4486 fi
4487
4488 done
4489 ac_cv_prog_CPP=$CPP
4490
4491 fi
4492 CPP=$ac_cv_prog_CPP
4493 else
4494 ac_cv_prog_CPP=$CPP
4495 fi
4496 { echo "$as_me:$LINENO: result: $CPP" >&5
4497 echo "${ECHO_T}$CPP" >&6; }
4498 ac_preproc_ok=false
4499 for ac_c_preproc_warn_flag in '' yes
4500 do
4501 # Use a header file that comes with gcc, so configuring glibc
4502 # with a fresh cross-compiler works.
4503 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4504 # <limits.h> exists even on freestanding compilers.
4505 # On the NeXT, cc -E runs the code through the compiler's parser,
4506 # not just through cpp. "Syntax error" is here to catch this case.
4507 cat >conftest.$ac_ext <<_ACEOF
4508 /* confdefs.h. */
4509 _ACEOF
4510 cat confdefs.h >>conftest.$ac_ext
4511 cat >>conftest.$ac_ext <<_ACEOF
4512 /* end confdefs.h. */
4513 #ifdef __STDC__
4514 # include <limits.h>
4515 #else
4516 # include <assert.h>
4517 #endif
4518 Syntax error
4519 _ACEOF
4520 if { (ac_try="$ac_cpp conftest.$ac_ext"
4521 case "(($ac_try" in
4522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4523 *) ac_try_echo=$ac_try;;
4524 esac
4525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4526 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4527 ac_status=$?
4528 grep -v '^ *+' conftest.er1 >conftest.err
4529 rm -f conftest.er1
4530 cat conftest.err >&5
4531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4532 (exit $ac_status); } >/dev/null && {
4533 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4534 test ! -s conftest.err
4535 }; then
4536 :
4537 else
4538 echo "$as_me: failed program was:" >&5
4539 sed 's/^/| /' conftest.$ac_ext >&5
4540
4541 # Broken: fails on valid input.
4542 continue
4543 fi
4544
4545 rm -f conftest.err conftest.$ac_ext
4546
4547 # OK, works on sane cases. Now check whether nonexistent headers
4548 # can be detected and how.
4549 cat >conftest.$ac_ext <<_ACEOF
4550 /* confdefs.h. */
4551 _ACEOF
4552 cat confdefs.h >>conftest.$ac_ext
4553 cat >>conftest.$ac_ext <<_ACEOF
4554 /* end confdefs.h. */
4555 #include <ac_nonexistent.h>
4556 _ACEOF
4557 if { (ac_try="$ac_cpp conftest.$ac_ext"
4558 case "(($ac_try" in
4559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4560 *) ac_try_echo=$ac_try;;
4561 esac
4562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4563 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4564 ac_status=$?
4565 grep -v '^ *+' conftest.er1 >conftest.err
4566 rm -f conftest.er1
4567 cat conftest.err >&5
4568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4569 (exit $ac_status); } >/dev/null && {
4570 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4571 test ! -s conftest.err
4572 }; then
4573 # Broken: success on invalid input.
4574 continue
4575 else
4576 echo "$as_me: failed program was:" >&5
4577 sed 's/^/| /' conftest.$ac_ext >&5
4578
4579 # Passes both tests.
4580 ac_preproc_ok=:
4581 break
4582 fi
4583
4584 rm -f conftest.err conftest.$ac_ext
4585
4586 done
4587 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4588 rm -f conftest.err conftest.$ac_ext
4589 if $ac_preproc_ok; then
4590 :
4591 else
4592 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4593 See \`config.log' for more details." >&5
4594 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4595 See \`config.log' for more details." >&2;}
4596 { (exit 1); exit 1; }; }
4597 fi
4598
4599 ac_ext=c
4600 ac_cpp='$CPP $CPPFLAGS'
4601 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4602 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4603 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4604
4605 # Find a good install program. We prefer a C program (faster),
4606 # so one script is as good as another. But avoid the broken or
4607 # incompatible versions:
4608 # SysV /etc/install, /usr/sbin/install
4609 # SunOS /usr/etc/install
4610 # IRIX /sbin/install
4611 # AIX /bin/install
4612 # AmigaOS /C/install, which installs bootblocks on floppy discs
4613 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4614 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4615 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4616 # OS/2's system install, which has a completely different semantic
4617 # ./install, which can be erroneously created by make from ./install.sh.
4618 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4619 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4620 if test -z "$INSTALL"; then
4621 if test "${ac_cv_path_install+set}" = set; then
4622 echo $ECHO_N "(cached) $ECHO_C" >&6
4623 else
4624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4625 for as_dir in $PATH
4626 do
4627 IFS=$as_save_IFS
4628 test -z "$as_dir" && as_dir=.
4629 # Account for people who put trailing slashes in PATH elements.
4630 case $as_dir/ in
4631 ./ | .// | /cC/* | \
4632 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4633 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4634 /usr/ucb/* ) ;;
4635 *)
4636 # OSF1 and SCO ODT 3.0 have their own names for install.
4637 # Don't use installbsd from OSF since it installs stuff as root
4638 # by default.
4639 for ac_prog in ginstall scoinst install; do
4640 for ac_exec_ext in '' $ac_executable_extensions; do
4641 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4642 if test $ac_prog = install &&
4643 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4644 # AIX install. It has an incompatible calling convention.
4645 :
4646 elif test $ac_prog = install &&
4647 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4648 # program-specific install script used by HP pwplus--don't use.
4649 :
4650 else
4651 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4652 break 3
4653 fi
4654 fi
4655 done
4656 done
4657 ;;
4658 esac
4659 done
4660 IFS=$as_save_IFS
4661
4662
4663 fi
4664 if test "${ac_cv_path_install+set}" = set; then
4665 INSTALL=$ac_cv_path_install
4666 else
4667 # As a last resort, use the slow shell script. Don't cache a
4668 # value for INSTALL within a source directory, because that will
4669 # break other packages using the cache if that directory is
4670 # removed, or if the value is a relative name.
4671 INSTALL=$ac_install_sh
4672 fi
4673 fi
4674 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4675 echo "${ECHO_T}$INSTALL" >&6; }
4676
4677 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4678 # It thinks the first close brace ends the variable substitution.
4679 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4680
4681 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4682
4683 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4684
4685 if test "x$RANLIB" = x; then
4686 if test -n "$ac_tool_prefix"; then
4687 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4688 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4689 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4690 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4691 if test "${ac_cv_prog_RANLIB+set}" = set; then
4692 echo $ECHO_N "(cached) $ECHO_C" >&6
4693 else
4694 if test -n "$RANLIB"; then
4695 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4696 else
4697 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4698 for as_dir in $PATH
4699 do
4700 IFS=$as_save_IFS
4701 test -z "$as_dir" && as_dir=.
4702 for ac_exec_ext in '' $ac_executable_extensions; do
4703 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4704 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4705 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4706 break 2
4707 fi
4708 done
4709 done
4710 IFS=$as_save_IFS
4711
4712 fi
4713 fi
4714 RANLIB=$ac_cv_prog_RANLIB
4715 if test -n "$RANLIB"; then
4716 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4717 echo "${ECHO_T}$RANLIB" >&6; }
4718 else
4719 { echo "$as_me:$LINENO: result: no" >&5
4720 echo "${ECHO_T}no" >&6; }
4721 fi
4722
4723
4724 fi
4725 if test -z "$ac_cv_prog_RANLIB"; then
4726 ac_ct_RANLIB=$RANLIB
4727 # Extract the first word of "ranlib", so it can be a program name with args.
4728 set dummy ranlib; ac_word=$2
4729 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4730 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4731 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4732 echo $ECHO_N "(cached) $ECHO_C" >&6
4733 else
4734 if test -n "$ac_ct_RANLIB"; then
4735 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4736 else
4737 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4738 for as_dir in $PATH
4739 do
4740 IFS=$as_save_IFS
4741 test -z "$as_dir" && as_dir=.
4742 for ac_exec_ext in '' $ac_executable_extensions; do
4743 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4744 ac_cv_prog_ac_ct_RANLIB="ranlib"
4745 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 break 2
4747 fi
4748 done
4749 done
4750 IFS=$as_save_IFS
4751
4752 fi
4753 fi
4754 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4755 if test -n "$ac_ct_RANLIB"; then
4756 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4757 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4758 else
4759 { echo "$as_me:$LINENO: result: no" >&5
4760 echo "${ECHO_T}no" >&6; }
4761 fi
4762
4763 if test "x$ac_ct_RANLIB" = x; then
4764 RANLIB=":"
4765 else
4766 case $cross_compiling:$ac_tool_warned in
4767 yes:)
4768 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4769 whose name does not start with the host triplet. If you think this
4770 configuration is useful to you, please write to autoconf@gnu.org." >&5
4771 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4772 whose name does not start with the host triplet. If you think this
4773 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4774 ac_tool_warned=yes ;;
4775 esac
4776 RANLIB=$ac_ct_RANLIB
4777 fi
4778 else
4779 RANLIB="$ac_cv_prog_RANLIB"
4780 fi
4781
4782 fi
4783 # Extract the first word of "install-info", so it can be a program name with args.
4784 set dummy install-info; ac_word=$2
4785 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4786 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4787 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4788 echo $ECHO_N "(cached) $ECHO_C" >&6
4789 else
4790 case $INSTALL_INFO in
4791 [\\/]* | ?:[\\/]*)
4792 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4793 ;;
4794 *)
4795 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4796 for as_dir in $PATH
4797 do
4798 IFS=$as_save_IFS
4799 test -z "$as_dir" && as_dir=.
4800 for ac_exec_ext in '' $ac_executable_extensions; do
4801 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4802 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4803 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4804 break 2
4805 fi
4806 done
4807 done
4808 IFS=$as_save_IFS
4809
4810 ;;
4811 esac
4812 fi
4813 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4814 if test -n "$INSTALL_INFO"; then
4815 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4816 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4817 else
4818 { echo "$as_me:$LINENO: result: no" >&5
4819 echo "${ECHO_T}no" >&6; }
4820 fi
4821
4822
4823 # Extract the first word of "install-info", so it can be a program name with args.
4824 set dummy install-info; ac_word=$2
4825 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4826 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4827 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 case $INSTALL_INFO in
4831 [\\/]* | ?:[\\/]*)
4832 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4833 ;;
4834 *)
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in /usr/sbin
4837 do
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4842 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4843 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4845 fi
4846 done
4847 done
4848 IFS=$as_save_IFS
4849
4850 ;;
4851 esac
4852 fi
4853 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4854 if test -n "$INSTALL_INFO"; then
4855 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4856 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4857 else
4858 { echo "$as_me:$LINENO: result: no" >&5
4859 echo "${ECHO_T}no" >&6; }
4860 fi
4861
4862
4863 # Extract the first word of "install-info", so it can be a program name with args.
4864 set dummy install-info; ac_word=$2
4865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4867 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 case $INSTALL_INFO in
4871 [\\/]* | ?:[\\/]*)
4872 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4873 ;;
4874 *)
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in /sbin
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 for ac_exec_ext in '' $ac_executable_extensions; do
4881 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4882 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4884 break 2
4885 fi
4886 done
4887 done
4888 IFS=$as_save_IFS
4889
4890 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4891 ;;
4892 esac
4893 fi
4894 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4895 if test -n "$INSTALL_INFO"; then
4896 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4897 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4898 else
4899 { echo "$as_me:$LINENO: result: no" >&5
4900 echo "${ECHO_T}no" >&6; }
4901 fi
4902
4903
4904 # Extract the first word of "gzip", so it can be a program name with args.
4905 set dummy gzip; ac_word=$2
4906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4908 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4909 echo $ECHO_N "(cached) $ECHO_C" >&6
4910 else
4911 case $GZIP_PROG in
4912 [\\/]* | ?:[\\/]*)
4913 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4914 ;;
4915 *)
4916 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4917 for as_dir in $PATH
4918 do
4919 IFS=$as_save_IFS
4920 test -z "$as_dir" && as_dir=.
4921 for ac_exec_ext in '' $ac_executable_extensions; do
4922 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4923 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4924 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4925 break 2
4926 fi
4927 done
4928 done
4929 IFS=$as_save_IFS
4930
4931 ;;
4932 esac
4933 fi
4934 GZIP_PROG=$ac_cv_path_GZIP_PROG
4935 if test -n "$GZIP_PROG"; then
4936 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4937 echo "${ECHO_T}$GZIP_PROG" >&6; }
4938 else
4939 { echo "$as_me:$LINENO: result: no" >&5
4940 echo "${ECHO_T}no" >&6; }
4941 fi
4942
4943
4944
4945
4946 ## Need makeinfo >= 4.6 (?) to build the manuals.
4947 # Extract the first word of "makeinfo", so it can be a program name with args.
4948 set dummy makeinfo; ac_word=$2
4949 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4950 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4951 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4952 echo $ECHO_N "(cached) $ECHO_C" >&6
4953 else
4954 case $MAKEINFO in
4955 [\\/]* | ?:[\\/]*)
4956 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4957 ;;
4958 *)
4959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4960 for as_dir in $PATH
4961 do
4962 IFS=$as_save_IFS
4963 test -z "$as_dir" && as_dir=.
4964 for ac_exec_ext in '' $ac_executable_extensions; do
4965 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4966 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4967 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4968 break 2
4969 fi
4970 done
4971 done
4972 IFS=$as_save_IFS
4973
4974 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4975 ;;
4976 esac
4977 fi
4978 MAKEINFO=$ac_cv_path_MAKEINFO
4979 if test -n "$MAKEINFO"; then
4980 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4981 echo "${ECHO_T}$MAKEINFO" >&6; }
4982 else
4983 { echo "$as_me:$LINENO: result: no" >&5
4984 echo "${ECHO_T}no" >&6; }
4985 fi
4986
4987
4988 if test "$MAKEINFO" != "no" && \
4989 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
4990 MAKEINFO=no
4991 fi
4992
4993 if test "$MAKEINFO" = "no"; then
4994 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4995 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4996 { (exit 1); exit 1; }; }
4997 fi
4998
4999
5000
5001 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5002 then
5003 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5004 fi
5005
5006 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5007 then
5008 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5009 fi
5010
5011
5012 late_LDFLAGS=$LDFLAGS
5013 if test "$GCC" = yes; then
5014 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5015 else
5016 LDFLAGS="$LDFLAGS -znocombreloc"
5017 fi
5018
5019 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5020 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5021 cat >conftest.$ac_ext <<_ACEOF
5022 main(){return 0;}
5023 _ACEOF
5024 rm -f conftest.$ac_objext conftest$ac_exeext
5025 if { (ac_try="$ac_link"
5026 case "(($ac_try" in
5027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5028 *) ac_try_echo=$ac_try;;
5029 esac
5030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5031 (eval "$ac_link") 2>conftest.er1
5032 ac_status=$?
5033 grep -v '^ *+' conftest.er1 >conftest.err
5034 rm -f conftest.er1
5035 cat conftest.err >&5
5036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5037 (exit $ac_status); } && {
5038 test -z "$ac_c_werror_flag" ||
5039 test ! -s conftest.err
5040 } && test -s conftest$ac_exeext &&
5041 $as_test_x conftest$ac_exeext; then
5042 { echo "$as_me:$LINENO: result: yes" >&5
5043 echo "${ECHO_T}yes" >&6; }
5044 else
5045 echo "$as_me: failed program was:" >&5
5046 sed 's/^/| /' conftest.$ac_ext >&5
5047
5048 LDFLAGS=$late_LDFLAGS
5049 { echo "$as_me:$LINENO: result: no" >&5
5050 echo "${ECHO_T}no" >&6; }
5051 fi
5052
5053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5054 conftest$ac_exeext conftest.$ac_ext
5055
5056 #### Extract some information from the operating system and machine files.
5057
5058 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5059 - which libraries the lib-src programs will want, and
5060 - whether the GNU malloc routines are usable..." >&5
5061 echo "$as_me: checking the machine- and system-dependent files to find out
5062 - which libraries the lib-src programs will want, and
5063 - whether the GNU malloc routines are usable..." >&6;}
5064
5065 ### First figure out CFLAGS (which we use for running the compiler here)
5066 ### and REAL_CFLAGS (which we use for real compilation).
5067 ### The two are the same except on a few systems, where they are made
5068 ### different to work around various lossages. For example,
5069 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5070 ### as implying static linking.
5071
5072 ### If the CFLAGS env var is specified, we use that value
5073 ### instead of the default.
5074
5075 ### It's not important that this name contain the PID; you can't run
5076 ### two configures in the same directory and have anything work
5077 ### anyway.
5078 tempcname="conftest.c"
5079
5080 echo '
5081 #include "'${srcdir}'/src/'${opsysfile}'"
5082 #include "'${srcdir}'/src/'${machfile}'"
5083 #ifndef LIBS_MACHINE
5084 #define LIBS_MACHINE
5085 #endif
5086 #ifndef LIBS_SYSTEM
5087 #define LIBS_SYSTEM
5088 #endif
5089 #ifndef C_SWITCH_SYSTEM
5090 #define C_SWITCH_SYSTEM
5091 #endif
5092 #ifndef C_SWITCH_MACHINE
5093 #define C_SWITCH_MACHINE
5094 #endif
5095 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5096 configure___ c_switch_system=C_SWITCH_SYSTEM
5097 configure___ c_switch_machine=C_SWITCH_MACHINE
5098
5099 #ifndef LIB_X11_LIB
5100 #define LIB_X11_LIB -lX11
5101 #endif
5102
5103 #ifndef LIBX11_MACHINE
5104 #define LIBX11_MACHINE
5105 #endif
5106
5107 #ifndef LIBX11_SYSTEM
5108 #define LIBX11_SYSTEM
5109 #endif
5110 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5111
5112 #ifdef UNEXEC
5113 configure___ unexec=UNEXEC
5114 #else
5115 configure___ unexec=unexec.o
5116 #endif
5117
5118 #ifdef SYSTEM_MALLOC
5119 configure___ system_malloc=yes
5120 #else
5121 configure___ system_malloc=no
5122 #endif
5123
5124 #ifdef USE_MMAP_FOR_BUFFERS
5125 configure___ use_mmap_for_buffers=yes
5126 #else
5127 configure___ use_mmap_for_buffers=no
5128 #endif
5129
5130 #ifndef C_DEBUG_SWITCH
5131 #define C_DEBUG_SWITCH -g
5132 #endif
5133
5134 #ifndef C_OPTIMIZE_SWITCH
5135 #ifdef __GNUC__
5136 #define C_OPTIMIZE_SWITCH -O2
5137 #else
5138 #define C_OPTIMIZE_SWITCH -O
5139 #endif
5140 #endif
5141
5142 #ifndef C_WARNINGS_SWITCH
5143 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5144 #endif
5145
5146 #ifndef LD_SWITCH_MACHINE
5147 #define LD_SWITCH_MACHINE
5148 #endif
5149
5150 #ifndef LD_SWITCH_SYSTEM
5151 #define LD_SWITCH_SYSTEM
5152 #endif
5153
5154 #ifndef LD_SWITCH_X_SITE_AUX
5155 #define LD_SWITCH_X_SITE_AUX
5156 #endif
5157
5158 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5159 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5160
5161 #ifdef THIS_IS_CONFIGURE
5162
5163 /* Get the CFLAGS for tests in configure. */
5164 #ifdef __GNUC__
5165 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5166 #else
5167 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5168 #endif
5169
5170 #else /* not THIS_IS_CONFIGURE */
5171
5172 /* Get the CFLAGS for real compilation. */
5173 #ifdef __GNUC__
5174 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5175 #else
5176 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5177 #endif
5178
5179 #endif /* not THIS_IS_CONFIGURE */
5180 ' > ${tempcname}
5181
5182 # The value of CPP is a quoted variable reference, so we need to do this
5183 # to get its actual value...
5184 CPP=`eval "echo $CPP"`
5185 eval `${CPP} -Isrc ${tempcname} \
5186 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5187 if test "x$SPECIFIED_CFLAGS" = x; then
5188 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5189 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5190 else
5191 REAL_CFLAGS="$CFLAGS"
5192 fi
5193 rm ${tempcname}
5194
5195 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5196
5197 ### Make sure subsequent tests use flags consistent with the build flags.
5198
5199 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5200 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5201 else
5202 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5203 fi
5204
5205
5206
5207 # Check whether --enable-largefile was given.
5208 if test "${enable_largefile+set}" = set; then
5209 enableval=$enable_largefile;
5210 fi
5211
5212 if test "$enable_largefile" != no; then
5213
5214 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5215 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5216 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5217 echo $ECHO_N "(cached) $ECHO_C" >&6
5218 else
5219 ac_cv_sys_largefile_CC=no
5220 if test "$GCC" != yes; then
5221 ac_save_CC=$CC
5222 while :; do
5223 # IRIX 6.2 and later do not support large files by default,
5224 # so use the C compiler's -n32 option if that helps.
5225 cat >conftest.$ac_ext <<_ACEOF
5226 /* confdefs.h. */
5227 _ACEOF
5228 cat confdefs.h >>conftest.$ac_ext
5229 cat >>conftest.$ac_ext <<_ACEOF
5230 /* end confdefs.h. */
5231 #include <sys/types.h>
5232 /* Check that off_t can represent 2**63 - 1 correctly.
5233 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5234 since some C++ compilers masquerading as C compilers
5235 incorrectly reject 9223372036854775807. */
5236 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5237 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5238 && LARGE_OFF_T % 2147483647 == 1)
5239 ? 1 : -1];
5240 int
5241 main ()
5242 {
5243
5244 ;
5245 return 0;
5246 }
5247 _ACEOF
5248 rm -f conftest.$ac_objext
5249 if { (ac_try="$ac_compile"
5250 case "(($ac_try" in
5251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5252 *) ac_try_echo=$ac_try;;
5253 esac
5254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5255 (eval "$ac_compile") 2>conftest.er1
5256 ac_status=$?
5257 grep -v '^ *+' conftest.er1 >conftest.err
5258 rm -f conftest.er1
5259 cat conftest.err >&5
5260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5261 (exit $ac_status); } && {
5262 test -z "$ac_c_werror_flag" ||
5263 test ! -s conftest.err
5264 } && test -s conftest.$ac_objext; then
5265 break
5266 else
5267 echo "$as_me: failed program was:" >&5
5268 sed 's/^/| /' conftest.$ac_ext >&5
5269
5270
5271 fi
5272
5273 rm -f core conftest.err conftest.$ac_objext
5274 CC="$CC -n32"
5275 rm -f conftest.$ac_objext
5276 if { (ac_try="$ac_compile"
5277 case "(($ac_try" in
5278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5279 *) ac_try_echo=$ac_try;;
5280 esac
5281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5282 (eval "$ac_compile") 2>conftest.er1
5283 ac_status=$?
5284 grep -v '^ *+' conftest.er1 >conftest.err
5285 rm -f conftest.er1
5286 cat conftest.err >&5
5287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5288 (exit $ac_status); } && {
5289 test -z "$ac_c_werror_flag" ||
5290 test ! -s conftest.err
5291 } && test -s conftest.$ac_objext; then
5292 ac_cv_sys_largefile_CC=' -n32'; break
5293 else
5294 echo "$as_me: failed program was:" >&5
5295 sed 's/^/| /' conftest.$ac_ext >&5
5296
5297
5298 fi
5299
5300 rm -f core conftest.err conftest.$ac_objext
5301 break
5302 done
5303 CC=$ac_save_CC
5304 rm -f conftest.$ac_ext
5305 fi
5306 fi
5307 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5308 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5309 if test "$ac_cv_sys_largefile_CC" != no; then
5310 CC=$CC$ac_cv_sys_largefile_CC
5311 fi
5312
5313 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5314 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5315 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5316 echo $ECHO_N "(cached) $ECHO_C" >&6
5317 else
5318 while :; do
5319 cat >conftest.$ac_ext <<_ACEOF
5320 /* confdefs.h. */
5321 _ACEOF
5322 cat confdefs.h >>conftest.$ac_ext
5323 cat >>conftest.$ac_ext <<_ACEOF
5324 /* end confdefs.h. */
5325 #include <sys/types.h>
5326 /* Check that off_t can represent 2**63 - 1 correctly.
5327 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5328 since some C++ compilers masquerading as C compilers
5329 incorrectly reject 9223372036854775807. */
5330 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5331 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5332 && LARGE_OFF_T % 2147483647 == 1)
5333 ? 1 : -1];
5334 int
5335 main ()
5336 {
5337
5338 ;
5339 return 0;
5340 }
5341 _ACEOF
5342 rm -f conftest.$ac_objext
5343 if { (ac_try="$ac_compile"
5344 case "(($ac_try" in
5345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5346 *) ac_try_echo=$ac_try;;
5347 esac
5348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5349 (eval "$ac_compile") 2>conftest.er1
5350 ac_status=$?
5351 grep -v '^ *+' conftest.er1 >conftest.err
5352 rm -f conftest.er1
5353 cat conftest.err >&5
5354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5355 (exit $ac_status); } && {
5356 test -z "$ac_c_werror_flag" ||
5357 test ! -s conftest.err
5358 } && test -s conftest.$ac_objext; then
5359 ac_cv_sys_file_offset_bits=no; break
5360 else
5361 echo "$as_me: failed program was:" >&5
5362 sed 's/^/| /' conftest.$ac_ext >&5
5363
5364
5365 fi
5366
5367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5368 cat >conftest.$ac_ext <<_ACEOF
5369 /* confdefs.h. */
5370 _ACEOF
5371 cat confdefs.h >>conftest.$ac_ext
5372 cat >>conftest.$ac_ext <<_ACEOF
5373 /* end confdefs.h. */
5374 #define _FILE_OFFSET_BITS 64
5375 #include <sys/types.h>
5376 /* Check that off_t can represent 2**63 - 1 correctly.
5377 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5378 since some C++ compilers masquerading as C compilers
5379 incorrectly reject 9223372036854775807. */
5380 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5381 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5382 && LARGE_OFF_T % 2147483647 == 1)
5383 ? 1 : -1];
5384 int
5385 main ()
5386 {
5387
5388 ;
5389 return 0;
5390 }
5391 _ACEOF
5392 rm -f conftest.$ac_objext
5393 if { (ac_try="$ac_compile"
5394 case "(($ac_try" in
5395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5396 *) ac_try_echo=$ac_try;;
5397 esac
5398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5399 (eval "$ac_compile") 2>conftest.er1
5400 ac_status=$?
5401 grep -v '^ *+' conftest.er1 >conftest.err
5402 rm -f conftest.er1
5403 cat conftest.err >&5
5404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5405 (exit $ac_status); } && {
5406 test -z "$ac_c_werror_flag" ||
5407 test ! -s conftest.err
5408 } && test -s conftest.$ac_objext; then
5409 ac_cv_sys_file_offset_bits=64; break
5410 else
5411 echo "$as_me: failed program was:" >&5
5412 sed 's/^/| /' conftest.$ac_ext >&5
5413
5414
5415 fi
5416
5417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5418 ac_cv_sys_file_offset_bits=unknown
5419 break
5420 done
5421 fi
5422 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5423 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5424 case $ac_cv_sys_file_offset_bits in #(
5425 no | unknown) ;;
5426 *)
5427 cat >>confdefs.h <<_ACEOF
5428 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5429 _ACEOF
5430 ;;
5431 esac
5432 rm -f conftest*
5433 if test $ac_cv_sys_file_offset_bits = unknown; then
5434 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5435 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5436 if test "${ac_cv_sys_large_files+set}" = set; then
5437 echo $ECHO_N "(cached) $ECHO_C" >&6
5438 else
5439 while :; do
5440 cat >conftest.$ac_ext <<_ACEOF
5441 /* confdefs.h. */
5442 _ACEOF
5443 cat confdefs.h >>conftest.$ac_ext
5444 cat >>conftest.$ac_ext <<_ACEOF
5445 /* end confdefs.h. */
5446 #include <sys/types.h>
5447 /* Check that off_t can represent 2**63 - 1 correctly.
5448 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5449 since some C++ compilers masquerading as C compilers
5450 incorrectly reject 9223372036854775807. */
5451 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5452 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5453 && LARGE_OFF_T % 2147483647 == 1)
5454 ? 1 : -1];
5455 int
5456 main ()
5457 {
5458
5459 ;
5460 return 0;
5461 }
5462 _ACEOF
5463 rm -f conftest.$ac_objext
5464 if { (ac_try="$ac_compile"
5465 case "(($ac_try" in
5466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5467 *) ac_try_echo=$ac_try;;
5468 esac
5469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5470 (eval "$ac_compile") 2>conftest.er1
5471 ac_status=$?
5472 grep -v '^ *+' conftest.er1 >conftest.err
5473 rm -f conftest.er1
5474 cat conftest.err >&5
5475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5476 (exit $ac_status); } && {
5477 test -z "$ac_c_werror_flag" ||
5478 test ! -s conftest.err
5479 } && test -s conftest.$ac_objext; then
5480 ac_cv_sys_large_files=no; break
5481 else
5482 echo "$as_me: failed program was:" >&5
5483 sed 's/^/| /' conftest.$ac_ext >&5
5484
5485
5486 fi
5487
5488 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #define _LARGE_FILES 1
5496 #include <sys/types.h>
5497 /* Check that off_t can represent 2**63 - 1 correctly.
5498 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5499 since some C++ compilers masquerading as C compilers
5500 incorrectly reject 9223372036854775807. */
5501 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5502 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5503 && LARGE_OFF_T % 2147483647 == 1)
5504 ? 1 : -1];
5505 int
5506 main ()
5507 {
5508
5509 ;
5510 return 0;
5511 }
5512 _ACEOF
5513 rm -f conftest.$ac_objext
5514 if { (ac_try="$ac_compile"
5515 case "(($ac_try" in
5516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5517 *) ac_try_echo=$ac_try;;
5518 esac
5519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5520 (eval "$ac_compile") 2>conftest.er1
5521 ac_status=$?
5522 grep -v '^ *+' conftest.er1 >conftest.err
5523 rm -f conftest.er1
5524 cat conftest.err >&5
5525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5526 (exit $ac_status); } && {
5527 test -z "$ac_c_werror_flag" ||
5528 test ! -s conftest.err
5529 } && test -s conftest.$ac_objext; then
5530 ac_cv_sys_large_files=1; break
5531 else
5532 echo "$as_me: failed program was:" >&5
5533 sed 's/^/| /' conftest.$ac_ext >&5
5534
5535
5536 fi
5537
5538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5539 ac_cv_sys_large_files=unknown
5540 break
5541 done
5542 fi
5543 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5544 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5545 case $ac_cv_sys_large_files in #(
5546 no | unknown) ;;
5547 *)
5548 cat >>confdefs.h <<_ACEOF
5549 #define _LARGE_FILES $ac_cv_sys_large_files
5550 _ACEOF
5551 ;;
5552 esac
5553 rm -f conftest*
5554 fi
5555 fi
5556
5557
5558
5559 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5560 ### be located in either /usr/lib64 or /usr/lib.
5561 case "${canonical}" in
5562 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5563 if test -d /usr/lib64; then
5564
5565 cat >>confdefs.h <<\_ACEOF
5566 #define HAVE_LIB64_DIR 1
5567 _ACEOF
5568
5569 fi
5570 esac
5571
5572
5573
5574
5575 if test "${with_sound}" != "no"; then
5576 # Sound support for GNU/Linux and the free BSDs.
5577 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5578 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5579 if test "${ac_cv_header_stdc+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 cat >conftest.$ac_ext <<_ACEOF
5583 /* confdefs.h. */
5584 _ACEOF
5585 cat confdefs.h >>conftest.$ac_ext
5586 cat >>conftest.$ac_ext <<_ACEOF
5587 /* end confdefs.h. */
5588 #include <stdlib.h>
5589 #include <stdarg.h>
5590 #include <string.h>
5591 #include <float.h>
5592
5593 int
5594 main ()
5595 {
5596
5597 ;
5598 return 0;
5599 }
5600 _ACEOF
5601 rm -f conftest.$ac_objext
5602 if { (ac_try="$ac_compile"
5603 case "(($ac_try" in
5604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5605 *) ac_try_echo=$ac_try;;
5606 esac
5607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5608 (eval "$ac_compile") 2>conftest.er1
5609 ac_status=$?
5610 grep -v '^ *+' conftest.er1 >conftest.err
5611 rm -f conftest.er1
5612 cat conftest.err >&5
5613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5614 (exit $ac_status); } && {
5615 test -z "$ac_c_werror_flag" ||
5616 test ! -s conftest.err
5617 } && test -s conftest.$ac_objext; then
5618 ac_cv_header_stdc=yes
5619 else
5620 echo "$as_me: failed program was:" >&5
5621 sed 's/^/| /' conftest.$ac_ext >&5
5622
5623 ac_cv_header_stdc=no
5624 fi
5625
5626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5627
5628 if test $ac_cv_header_stdc = yes; then
5629 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5630 cat >conftest.$ac_ext <<_ACEOF
5631 /* confdefs.h. */
5632 _ACEOF
5633 cat confdefs.h >>conftest.$ac_ext
5634 cat >>conftest.$ac_ext <<_ACEOF
5635 /* end confdefs.h. */
5636 #include <string.h>
5637
5638 _ACEOF
5639 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5640 $EGREP "memchr" >/dev/null 2>&1; then
5641 :
5642 else
5643 ac_cv_header_stdc=no
5644 fi
5645 rm -f conftest*
5646
5647 fi
5648
5649 if test $ac_cv_header_stdc = yes; then
5650 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <stdlib.h>
5658
5659 _ACEOF
5660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5661 $EGREP "free" >/dev/null 2>&1; then
5662 :
5663 else
5664 ac_cv_header_stdc=no
5665 fi
5666 rm -f conftest*
5667
5668 fi
5669
5670 if test $ac_cv_header_stdc = yes; then
5671 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5672 if test "$cross_compiling" = yes; then
5673 :
5674 else
5675 cat >conftest.$ac_ext <<_ACEOF
5676 /* confdefs.h. */
5677 _ACEOF
5678 cat confdefs.h >>conftest.$ac_ext
5679 cat >>conftest.$ac_ext <<_ACEOF
5680 /* end confdefs.h. */
5681 #include <ctype.h>
5682 #include <stdlib.h>
5683 #if ((' ' & 0x0FF) == 0x020)
5684 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5685 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5686 #else
5687 # define ISLOWER(c) \
5688 (('a' <= (c) && (c) <= 'i') \
5689 || ('j' <= (c) && (c) <= 'r') \
5690 || ('s' <= (c) && (c) <= 'z'))
5691 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5692 #endif
5693
5694 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5695 int
5696 main ()
5697 {
5698 int i;
5699 for (i = 0; i < 256; i++)
5700 if (XOR (islower (i), ISLOWER (i))
5701 || toupper (i) != TOUPPER (i))
5702 return 2;
5703 return 0;
5704 }
5705 _ACEOF
5706 rm -f conftest$ac_exeext
5707 if { (ac_try="$ac_link"
5708 case "(($ac_try" in
5709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5710 *) ac_try_echo=$ac_try;;
5711 esac
5712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5713 (eval "$ac_link") 2>&5
5714 ac_status=$?
5715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5716 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5717 { (case "(($ac_try" in
5718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5719 *) ac_try_echo=$ac_try;;
5720 esac
5721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5722 (eval "$ac_try") 2>&5
5723 ac_status=$?
5724 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5725 (exit $ac_status); }; }; then
5726 :
5727 else
5728 echo "$as_me: program exited with status $ac_status" >&5
5729 echo "$as_me: failed program was:" >&5
5730 sed 's/^/| /' conftest.$ac_ext >&5
5731
5732 ( exit $ac_status )
5733 ac_cv_header_stdc=no
5734 fi
5735 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5736 fi
5737
5738
5739 fi
5740 fi
5741 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5742 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5743 if test $ac_cv_header_stdc = yes; then
5744
5745 cat >>confdefs.h <<\_ACEOF
5746 #define STDC_HEADERS 1
5747 _ACEOF
5748
5749 fi
5750
5751 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5752
5753
5754
5755
5756
5757
5758
5759
5760
5761 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5762 inttypes.h stdint.h unistd.h
5763 do
5764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5765 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5766 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5767 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5768 echo $ECHO_N "(cached) $ECHO_C" >&6
5769 else
5770 cat >conftest.$ac_ext <<_ACEOF
5771 /* confdefs.h. */
5772 _ACEOF
5773 cat confdefs.h >>conftest.$ac_ext
5774 cat >>conftest.$ac_ext <<_ACEOF
5775 /* end confdefs.h. */
5776 $ac_includes_default
5777
5778 #include <$ac_header>
5779 _ACEOF
5780 rm -f conftest.$ac_objext
5781 if { (ac_try="$ac_compile"
5782 case "(($ac_try" in
5783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5784 *) ac_try_echo=$ac_try;;
5785 esac
5786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5787 (eval "$ac_compile") 2>conftest.er1
5788 ac_status=$?
5789 grep -v '^ *+' conftest.er1 >conftest.err
5790 rm -f conftest.er1
5791 cat conftest.err >&5
5792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5793 (exit $ac_status); } && {
5794 test -z "$ac_c_werror_flag" ||
5795 test ! -s conftest.err
5796 } && test -s conftest.$ac_objext; then
5797 eval "$as_ac_Header=yes"
5798 else
5799 echo "$as_me: failed program was:" >&5
5800 sed 's/^/| /' conftest.$ac_ext >&5
5801
5802 eval "$as_ac_Header=no"
5803 fi
5804
5805 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5806 fi
5807 ac_res=`eval echo '${'$as_ac_Header'}'`
5808 { echo "$as_me:$LINENO: result: $ac_res" >&5
5809 echo "${ECHO_T}$ac_res" >&6; }
5810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5811 cat >>confdefs.h <<_ACEOF
5812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5813 _ACEOF
5814
5815 fi
5816
5817 done
5818
5819
5820
5821
5822
5823 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5824 do
5825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5830 echo $ECHO_N "(cached) $ECHO_C" >&6
5831 fi
5832 ac_res=`eval echo '${'$as_ac_Header'}'`
5833 { echo "$as_me:$LINENO: result: $ac_res" >&5
5834 echo "${ECHO_T}$ac_res" >&6; }
5835 else
5836 # Is the header compilable?
5837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5839 cat >conftest.$ac_ext <<_ACEOF
5840 /* confdefs.h. */
5841 _ACEOF
5842 cat confdefs.h >>conftest.$ac_ext
5843 cat >>conftest.$ac_ext <<_ACEOF
5844 /* end confdefs.h. */
5845 $ac_includes_default
5846 #include <$ac_header>
5847 _ACEOF
5848 rm -f conftest.$ac_objext
5849 if { (ac_try="$ac_compile"
5850 case "(($ac_try" in
5851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5852 *) ac_try_echo=$ac_try;;
5853 esac
5854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5855 (eval "$ac_compile") 2>conftest.er1
5856 ac_status=$?
5857 grep -v '^ *+' conftest.er1 >conftest.err
5858 rm -f conftest.er1
5859 cat conftest.err >&5
5860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5861 (exit $ac_status); } && {
5862 test -z "$ac_c_werror_flag" ||
5863 test ! -s conftest.err
5864 } && test -s conftest.$ac_objext; then
5865 ac_header_compiler=yes
5866 else
5867 echo "$as_me: failed program was:" >&5
5868 sed 's/^/| /' conftest.$ac_ext >&5
5869
5870 ac_header_compiler=no
5871 fi
5872
5873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5875 echo "${ECHO_T}$ac_header_compiler" >&6; }
5876
5877 # Is the header present?
5878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5880 cat >conftest.$ac_ext <<_ACEOF
5881 /* confdefs.h. */
5882 _ACEOF
5883 cat confdefs.h >>conftest.$ac_ext
5884 cat >>conftest.$ac_ext <<_ACEOF
5885 /* end confdefs.h. */
5886 #include <$ac_header>
5887 _ACEOF
5888 if { (ac_try="$ac_cpp conftest.$ac_ext"
5889 case "(($ac_try" in
5890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5891 *) ac_try_echo=$ac_try;;
5892 esac
5893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5895 ac_status=$?
5896 grep -v '^ *+' conftest.er1 >conftest.err
5897 rm -f conftest.er1
5898 cat conftest.err >&5
5899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5900 (exit $ac_status); } >/dev/null && {
5901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5902 test ! -s conftest.err
5903 }; then
5904 ac_header_preproc=yes
5905 else
5906 echo "$as_me: failed program was:" >&5
5907 sed 's/^/| /' conftest.$ac_ext >&5
5908
5909 ac_header_preproc=no
5910 fi
5911
5912 rm -f conftest.err conftest.$ac_ext
5913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5914 echo "${ECHO_T}$ac_header_preproc" >&6; }
5915
5916 # So? What about this header?
5917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5918 yes:no: )
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5923 ac_header_preproc=yes
5924 ;;
5925 no:yes:* )
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5938
5939 ;;
5940 esac
5941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5944 echo $ECHO_N "(cached) $ECHO_C" >&6
5945 else
5946 eval "$as_ac_Header=\$ac_header_preproc"
5947 fi
5948 ac_res=`eval echo '${'$as_ac_Header'}'`
5949 { echo "$as_me:$LINENO: result: $ac_res" >&5
5950 echo "${ECHO_T}$ac_res" >&6; }
5951
5952 fi
5953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5954 cat >>confdefs.h <<_ACEOF
5955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5956 _ACEOF
5957
5958 fi
5959
5960 done
5961
5962 # Emulation library used on NetBSD.
5963 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5964 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5965 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5966 echo $ECHO_N "(cached) $ECHO_C" >&6
5967 else
5968 ac_check_lib_save_LIBS=$LIBS
5969 LIBS="-lossaudio $LIBS"
5970 cat >conftest.$ac_ext <<_ACEOF
5971 /* confdefs.h. */
5972 _ACEOF
5973 cat confdefs.h >>conftest.$ac_ext
5974 cat >>conftest.$ac_ext <<_ACEOF
5975 /* end confdefs.h. */
5976
5977 /* Override any GCC internal prototype to avoid an error.
5978 Use char because int might match the return type of a GCC
5979 builtin and then its argument prototype would still apply. */
5980 #ifdef __cplusplus
5981 extern "C"
5982 #endif
5983 char _oss_ioctl ();
5984 int
5985 main ()
5986 {
5987 return _oss_ioctl ();
5988 ;
5989 return 0;
5990 }
5991 _ACEOF
5992 rm -f conftest.$ac_objext conftest$ac_exeext
5993 if { (ac_try="$ac_link"
5994 case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_link") 2>conftest.er1
6000 ac_status=$?
6001 grep -v '^ *+' conftest.er1 >conftest.err
6002 rm -f conftest.er1
6003 cat conftest.err >&5
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); } && {
6006 test -z "$ac_c_werror_flag" ||
6007 test ! -s conftest.err
6008 } && test -s conftest$ac_exeext &&
6009 $as_test_x conftest$ac_exeext; then
6010 ac_cv_lib_ossaudio__oss_ioctl=yes
6011 else
6012 echo "$as_me: failed program was:" >&5
6013 sed 's/^/| /' conftest.$ac_ext >&5
6014
6015 ac_cv_lib_ossaudio__oss_ioctl=no
6016 fi
6017
6018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6019 conftest$ac_exeext conftest.$ac_ext
6020 LIBS=$ac_check_lib_save_LIBS
6021 fi
6022 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6023 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6024 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6025 LIBSOUND=-lossaudio
6026 else
6027 LIBSOUND=
6028 fi
6029
6030
6031
6032 ALSA_REQUIRED=1.0.0
6033 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6034
6035 succeeded=no
6036
6037 # Extract the first word of "pkg-config", so it can be a program name with args.
6038 set dummy pkg-config; ac_word=$2
6039 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6040 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6041 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6042 echo $ECHO_N "(cached) $ECHO_C" >&6
6043 else
6044 case $PKG_CONFIG in
6045 [\\/]* | ?:[\\/]*)
6046 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6047 ;;
6048 *)
6049 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6050 for as_dir in $PATH
6051 do
6052 IFS=$as_save_IFS
6053 test -z "$as_dir" && as_dir=.
6054 for ac_exec_ext in '' $ac_executable_extensions; do
6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6056 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6057 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6058 break 2
6059 fi
6060 done
6061 done
6062 IFS=$as_save_IFS
6063
6064 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6065 ;;
6066 esac
6067 fi
6068 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6069 if test -n "$PKG_CONFIG"; then
6070 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6071 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6072 else
6073 { echo "$as_me:$LINENO: result: no" >&5
6074 echo "${ECHO_T}no" >&6; }
6075 fi
6076
6077
6078
6079 if test "$PKG_CONFIG" = "no" ; then
6080 HAVE_ALSA=no
6081 else
6082 PKG_CONFIG_MIN_VERSION=0.9.0
6083 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6084 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6085 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6086
6087 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6088 { echo "$as_me:$LINENO: result: yes" >&5
6089 echo "${ECHO_T}yes" >&6; }
6090 succeeded=yes
6091
6092 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6093 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6094 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6095 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6096 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6097
6098 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6099 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6100 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6101 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6102 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6103 else
6104 { echo "$as_me:$LINENO: result: no" >&5
6105 echo "${ECHO_T}no" >&6; }
6106 ALSA_CFLAGS=""
6107 ALSA_LIBS=""
6108 ## If we have a custom action on failure, don't print errors, but
6109 ## do set a variable so people can do so.
6110 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6111
6112 fi
6113
6114
6115
6116 else
6117 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6118 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6119 fi
6120 fi
6121
6122 if test $succeeded = yes; then
6123 HAVE_ALSA=yes
6124 else
6125 HAVE_ALSA=no
6126 fi
6127
6128 if test $HAVE_ALSA = yes; then
6129 SAVE_CFLAGS="$CFLAGS"
6130 SAVE_LDFLAGS="$LDFLAGS"
6131 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6132 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6133 cat >conftest.$ac_ext <<_ACEOF
6134 /* confdefs.h. */
6135 _ACEOF
6136 cat confdefs.h >>conftest.$ac_ext
6137 cat >>conftest.$ac_ext <<_ACEOF
6138 /* end confdefs.h. */
6139 #include <asoundlib.h>
6140 int
6141 main ()
6142 {
6143 snd_lib_error_set_handler (0);
6144 ;
6145 return 0;
6146 }
6147 _ACEOF
6148 rm -f conftest.$ac_objext
6149 if { (ac_try="$ac_compile"
6150 case "(($ac_try" in
6151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6152 *) ac_try_echo=$ac_try;;
6153 esac
6154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6155 (eval "$ac_compile") 2>conftest.er1
6156 ac_status=$?
6157 grep -v '^ *+' conftest.er1 >conftest.err
6158 rm -f conftest.er1
6159 cat conftest.err >&5
6160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6161 (exit $ac_status); } && {
6162 test -z "$ac_c_werror_flag" ||
6163 test ! -s conftest.err
6164 } && test -s conftest.$ac_objext; then
6165 emacs_alsa_normal=yes
6166 else
6167 echo "$as_me: failed program was:" >&5
6168 sed 's/^/| /' conftest.$ac_ext >&5
6169
6170 emacs_alsa_normal=no
6171 fi
6172
6173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6174 if test "$emacs_alsa_normal" != yes; then
6175 cat >conftest.$ac_ext <<_ACEOF
6176 /* confdefs.h. */
6177 _ACEOF
6178 cat confdefs.h >>conftest.$ac_ext
6179 cat >>conftest.$ac_ext <<_ACEOF
6180 /* end confdefs.h. */
6181 #include <alsa/asoundlib.h>
6182 int
6183 main ()
6184 {
6185 snd_lib_error_set_handler (0);
6186 ;
6187 return 0;
6188 }
6189 _ACEOF
6190 rm -f conftest.$ac_objext
6191 if { (ac_try="$ac_compile"
6192 case "(($ac_try" in
6193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6194 *) ac_try_echo=$ac_try;;
6195 esac
6196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6197 (eval "$ac_compile") 2>conftest.er1
6198 ac_status=$?
6199 grep -v '^ *+' conftest.er1 >conftest.err
6200 rm -f conftest.er1
6201 cat conftest.err >&5
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && {
6204 test -z "$ac_c_werror_flag" ||
6205 test ! -s conftest.err
6206 } && test -s conftest.$ac_objext; then
6207 emacs_alsa_subdir=yes
6208 else
6209 echo "$as_me: failed program was:" >&5
6210 sed 's/^/| /' conftest.$ac_ext >&5
6211
6212 emacs_alsa_subdir=no
6213 fi
6214
6215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6216 if test "$emacs_alsa_subdir" != yes; then
6217 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6218 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6219 { (exit 1); exit 1; }; }
6220 fi
6221 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6222 fi
6223
6224 CFLAGS="$SAVE_CFLAGS"
6225 LDFLAGS="$SAVE_LDFLAGS"
6226 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6227 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6228
6229 cat >>confdefs.h <<\_ACEOF
6230 #define HAVE_ALSA 1
6231 _ACEOF
6232
6233 fi
6234
6235 fi
6236
6237
6238
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248
6249
6250
6251
6252
6253
6254
6255
6256
6257
6258
6259
6260
6261
6262 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6263 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6264 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6265 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6266 sys/utsname.h pwd.h
6267 do
6268 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6269 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6270 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6271 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6272 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6273 echo $ECHO_N "(cached) $ECHO_C" >&6
6274 fi
6275 ac_res=`eval echo '${'$as_ac_Header'}'`
6276 { echo "$as_me:$LINENO: result: $ac_res" >&5
6277 echo "${ECHO_T}$ac_res" >&6; }
6278 else
6279 # Is the header compilable?
6280 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6281 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6282 cat >conftest.$ac_ext <<_ACEOF
6283 /* confdefs.h. */
6284 _ACEOF
6285 cat confdefs.h >>conftest.$ac_ext
6286 cat >>conftest.$ac_ext <<_ACEOF
6287 /* end confdefs.h. */
6288 $ac_includes_default
6289 #include <$ac_header>
6290 _ACEOF
6291 rm -f conftest.$ac_objext
6292 if { (ac_try="$ac_compile"
6293 case "(($ac_try" in
6294 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6295 *) ac_try_echo=$ac_try;;
6296 esac
6297 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6298 (eval "$ac_compile") 2>conftest.er1
6299 ac_status=$?
6300 grep -v '^ *+' conftest.er1 >conftest.err
6301 rm -f conftest.er1
6302 cat conftest.err >&5
6303 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6304 (exit $ac_status); } && {
6305 test -z "$ac_c_werror_flag" ||
6306 test ! -s conftest.err
6307 } && test -s conftest.$ac_objext; then
6308 ac_header_compiler=yes
6309 else
6310 echo "$as_me: failed program was:" >&5
6311 sed 's/^/| /' conftest.$ac_ext >&5
6312
6313 ac_header_compiler=no
6314 fi
6315
6316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6317 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6318 echo "${ECHO_T}$ac_header_compiler" >&6; }
6319
6320 # Is the header present?
6321 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6322 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6323 cat >conftest.$ac_ext <<_ACEOF
6324 /* confdefs.h. */
6325 _ACEOF
6326 cat confdefs.h >>conftest.$ac_ext
6327 cat >>conftest.$ac_ext <<_ACEOF
6328 /* end confdefs.h. */
6329 #include <$ac_header>
6330 _ACEOF
6331 if { (ac_try="$ac_cpp conftest.$ac_ext"
6332 case "(($ac_try" in
6333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6334 *) ac_try_echo=$ac_try;;
6335 esac
6336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6337 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6338 ac_status=$?
6339 grep -v '^ *+' conftest.er1 >conftest.err
6340 rm -f conftest.er1
6341 cat conftest.err >&5
6342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6343 (exit $ac_status); } >/dev/null && {
6344 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6345 test ! -s conftest.err
6346 }; then
6347 ac_header_preproc=yes
6348 else
6349 echo "$as_me: failed program was:" >&5
6350 sed 's/^/| /' conftest.$ac_ext >&5
6351
6352 ac_header_preproc=no
6353 fi
6354
6355 rm -f conftest.err conftest.$ac_ext
6356 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6357 echo "${ECHO_T}$ac_header_preproc" >&6; }
6358
6359 # So? What about this header?
6360 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6361 yes:no: )
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6363 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6364 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6365 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6366 ac_header_preproc=yes
6367 ;;
6368 no:yes:* )
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6370 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6372 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6374 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6376 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6378 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6379 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6380 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6381
6382 ;;
6383 esac
6384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6387 echo $ECHO_N "(cached) $ECHO_C" >&6
6388 else
6389 eval "$as_ac_Header=\$ac_header_preproc"
6390 fi
6391 ac_res=`eval echo '${'$as_ac_Header'}'`
6392 { echo "$as_me:$LINENO: result: $ac_res" >&5
6393 echo "${ECHO_T}$ac_res" >&6; }
6394
6395 fi
6396 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6397 cat >>confdefs.h <<_ACEOF
6398 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6399 _ACEOF
6400
6401 fi
6402
6403 done
6404
6405
6406 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6407 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6408 cat >conftest.$ac_ext <<_ACEOF
6409 /* confdefs.h. */
6410 _ACEOF
6411 cat confdefs.h >>conftest.$ac_ext
6412 cat >>conftest.$ac_ext <<_ACEOF
6413 /* end confdefs.h. */
6414 #include <sys/personality.h>
6415 int
6416 main ()
6417 {
6418 personality (PER_LINUX32)
6419 ;
6420 return 0;
6421 }
6422 _ACEOF
6423 rm -f conftest.$ac_objext
6424 if { (ac_try="$ac_compile"
6425 case "(($ac_try" in
6426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6427 *) ac_try_echo=$ac_try;;
6428 esac
6429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6430 (eval "$ac_compile") 2>conftest.er1
6431 ac_status=$?
6432 grep -v '^ *+' conftest.er1 >conftest.err
6433 rm -f conftest.er1
6434 cat conftest.err >&5
6435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6436 (exit $ac_status); } && {
6437 test -z "$ac_c_werror_flag" ||
6438 test ! -s conftest.err
6439 } && test -s conftest.$ac_objext; then
6440 emacs_cv_personality_linux32=yes
6441 else
6442 echo "$as_me: failed program was:" >&5
6443 sed 's/^/| /' conftest.$ac_ext >&5
6444
6445 emacs_cv_personality_linux32=no
6446 fi
6447
6448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6449 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6450 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6451
6452 if test $emacs_cv_personality_linux32 = yes; then
6453
6454 cat >>confdefs.h <<\_ACEOF
6455 #define HAVE_PERSONALITY_LINUX32 1
6456 _ACEOF
6457
6458 fi
6459
6460
6461 for ac_header in term.h
6462 do
6463 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6464 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6465 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 echo $ECHO_N "(cached) $ECHO_C" >&6
6468 else
6469 cat >conftest.$ac_ext <<_ACEOF
6470 /* confdefs.h. */
6471 _ACEOF
6472 cat confdefs.h >>conftest.$ac_ext
6473 cat >>conftest.$ac_ext <<_ACEOF
6474 /* end confdefs.h. */
6475 #include <$ac_header>
6476 _ACEOF
6477 if { (ac_try="$ac_cpp conftest.$ac_ext"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } >/dev/null && {
6490 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6491 test ! -s conftest.err
6492 }; then
6493 eval "$as_ac_Header=yes"
6494 else
6495 echo "$as_me: failed program was:" >&5
6496 sed 's/^/| /' conftest.$ac_ext >&5
6497
6498 eval "$as_ac_Header=no"
6499 fi
6500
6501 rm -f conftest.err conftest.$ac_ext
6502 fi
6503 ac_res=`eval echo '${'$as_ac_Header'}'`
6504 { echo "$as_me:$LINENO: result: $ac_res" >&5
6505 echo "${ECHO_T}$ac_res" >&6; }
6506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6507 cat >>confdefs.h <<_ACEOF
6508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6509 _ACEOF
6510
6511 fi
6512
6513 done
6514
6515 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6516 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6517 if test "${ac_cv_header_stdc+set}" = set; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <stdlib.h>
6527 #include <stdarg.h>
6528 #include <string.h>
6529 #include <float.h>
6530
6531 int
6532 main ()
6533 {
6534
6535 ;
6536 return 0;
6537 }
6538 _ACEOF
6539 rm -f conftest.$ac_objext
6540 if { (ac_try="$ac_compile"
6541 case "(($ac_try" in
6542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6543 *) ac_try_echo=$ac_try;;
6544 esac
6545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6546 (eval "$ac_compile") 2>conftest.er1
6547 ac_status=$?
6548 grep -v '^ *+' conftest.er1 >conftest.err
6549 rm -f conftest.er1
6550 cat conftest.err >&5
6551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6552 (exit $ac_status); } && {
6553 test -z "$ac_c_werror_flag" ||
6554 test ! -s conftest.err
6555 } && test -s conftest.$ac_objext; then
6556 ac_cv_header_stdc=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_cv_header_stdc=no
6562 fi
6563
6564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6565
6566 if test $ac_cv_header_stdc = yes; then
6567 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6568 cat >conftest.$ac_ext <<_ACEOF
6569 /* confdefs.h. */
6570 _ACEOF
6571 cat confdefs.h >>conftest.$ac_ext
6572 cat >>conftest.$ac_ext <<_ACEOF
6573 /* end confdefs.h. */
6574 #include <string.h>
6575
6576 _ACEOF
6577 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6578 $EGREP "memchr" >/dev/null 2>&1; then
6579 :
6580 else
6581 ac_cv_header_stdc=no
6582 fi
6583 rm -f conftest*
6584
6585 fi
6586
6587 if test $ac_cv_header_stdc = yes; then
6588 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6589 cat >conftest.$ac_ext <<_ACEOF
6590 /* confdefs.h. */
6591 _ACEOF
6592 cat confdefs.h >>conftest.$ac_ext
6593 cat >>conftest.$ac_ext <<_ACEOF
6594 /* end confdefs.h. */
6595 #include <stdlib.h>
6596
6597 _ACEOF
6598 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6599 $EGREP "free" >/dev/null 2>&1; then
6600 :
6601 else
6602 ac_cv_header_stdc=no
6603 fi
6604 rm -f conftest*
6605
6606 fi
6607
6608 if test $ac_cv_header_stdc = yes; then
6609 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6610 if test "$cross_compiling" = yes; then
6611 :
6612 else
6613 cat >conftest.$ac_ext <<_ACEOF
6614 /* confdefs.h. */
6615 _ACEOF
6616 cat confdefs.h >>conftest.$ac_ext
6617 cat >>conftest.$ac_ext <<_ACEOF
6618 /* end confdefs.h. */
6619 #include <ctype.h>
6620 #include <stdlib.h>
6621 #if ((' ' & 0x0FF) == 0x020)
6622 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6623 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6624 #else
6625 # define ISLOWER(c) \
6626 (('a' <= (c) && (c) <= 'i') \
6627 || ('j' <= (c) && (c) <= 'r') \
6628 || ('s' <= (c) && (c) <= 'z'))
6629 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6630 #endif
6631
6632 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6633 int
6634 main ()
6635 {
6636 int i;
6637 for (i = 0; i < 256; i++)
6638 if (XOR (islower (i), ISLOWER (i))
6639 || toupper (i) != TOUPPER (i))
6640 return 2;
6641 return 0;
6642 }
6643 _ACEOF
6644 rm -f conftest$ac_exeext
6645 if { (ac_try="$ac_link"
6646 case "(($ac_try" in
6647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6648 *) ac_try_echo=$ac_try;;
6649 esac
6650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6651 (eval "$ac_link") 2>&5
6652 ac_status=$?
6653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6654 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6655 { (case "(($ac_try" in
6656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6657 *) ac_try_echo=$ac_try;;
6658 esac
6659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6660 (eval "$ac_try") 2>&5
6661 ac_status=$?
6662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6663 (exit $ac_status); }; }; then
6664 :
6665 else
6666 echo "$as_me: program exited with status $ac_status" >&5
6667 echo "$as_me: failed program was:" >&5
6668 sed 's/^/| /' conftest.$ac_ext >&5
6669
6670 ( exit $ac_status )
6671 ac_cv_header_stdc=no
6672 fi
6673 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6674 fi
6675
6676
6677 fi
6678 fi
6679 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6680 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6681 if test $ac_cv_header_stdc = yes; then
6682
6683 cat >>confdefs.h <<\_ACEOF
6684 #define STDC_HEADERS 1
6685 _ACEOF
6686
6687 fi
6688
6689 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6690 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6691 if test "${ac_cv_header_time+set}" = set; then
6692 echo $ECHO_N "(cached) $ECHO_C" >&6
6693 else
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <sys/types.h>
6701 #include <sys/time.h>
6702 #include <time.h>
6703
6704 int
6705 main ()
6706 {
6707 if ((struct tm *) 0)
6708 return 0;
6709 ;
6710 return 0;
6711 }
6712 _ACEOF
6713 rm -f conftest.$ac_objext
6714 if { (ac_try="$ac_compile"
6715 case "(($ac_try" in
6716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6717 *) ac_try_echo=$ac_try;;
6718 esac
6719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6720 (eval "$ac_compile") 2>conftest.er1
6721 ac_status=$?
6722 grep -v '^ *+' conftest.er1 >conftest.err
6723 rm -f conftest.er1
6724 cat conftest.err >&5
6725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6726 (exit $ac_status); } && {
6727 test -z "$ac_c_werror_flag" ||
6728 test ! -s conftest.err
6729 } && test -s conftest.$ac_objext; then
6730 ac_cv_header_time=yes
6731 else
6732 echo "$as_me: failed program was:" >&5
6733 sed 's/^/| /' conftest.$ac_ext >&5
6734
6735 ac_cv_header_time=no
6736 fi
6737
6738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6739 fi
6740 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6741 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6742 if test $ac_cv_header_time = yes; then
6743
6744 cat >>confdefs.h <<\_ACEOF
6745 #define TIME_WITH_SYS_TIME 1
6746 _ACEOF
6747
6748 fi
6749
6750 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6751 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6752 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6753 echo $ECHO_N "(cached) $ECHO_C" >&6
6754 else
6755 cat >conftest.$ac_ext <<_ACEOF
6756 /* confdefs.h. */
6757 _ACEOF
6758 cat confdefs.h >>conftest.$ac_ext
6759 cat >>conftest.$ac_ext <<_ACEOF
6760 /* end confdefs.h. */
6761 $ac_includes_default
6762 int
6763 main ()
6764 {
6765 #ifndef sys_siglist
6766 (void) sys_siglist;
6767 #endif
6768
6769 ;
6770 return 0;
6771 }
6772 _ACEOF
6773 rm -f conftest.$ac_objext
6774 if { (ac_try="$ac_compile"
6775 case "(($ac_try" in
6776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6777 *) ac_try_echo=$ac_try;;
6778 esac
6779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6780 (eval "$ac_compile") 2>conftest.er1
6781 ac_status=$?
6782 grep -v '^ *+' conftest.er1 >conftest.err
6783 rm -f conftest.er1
6784 cat conftest.err >&5
6785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6786 (exit $ac_status); } && {
6787 test -z "$ac_c_werror_flag" ||
6788 test ! -s conftest.err
6789 } && test -s conftest.$ac_objext; then
6790 ac_cv_have_decl_sys_siglist=yes
6791 else
6792 echo "$as_me: failed program was:" >&5
6793 sed 's/^/| /' conftest.$ac_ext >&5
6794
6795 ac_cv_have_decl_sys_siglist=no
6796 fi
6797
6798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6799 fi
6800 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6801 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6802 if test $ac_cv_have_decl_sys_siglist = yes; then
6803
6804 cat >>confdefs.h <<_ACEOF
6805 #define HAVE_DECL_SYS_SIGLIST 1
6806 _ACEOF
6807
6808
6809 else
6810 cat >>confdefs.h <<_ACEOF
6811 #define HAVE_DECL_SYS_SIGLIST 0
6812 _ACEOF
6813
6814
6815 fi
6816
6817
6818 if test $ac_cv_have_decl_sys_siglist != yes; then
6819 # For Tru64, at least:
6820 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6821 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6822 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 $ac_includes_default
6832 int
6833 main ()
6834 {
6835 #ifndef __sys_siglist
6836 (void) __sys_siglist;
6837 #endif
6838
6839 ;
6840 return 0;
6841 }
6842 _ACEOF
6843 rm -f conftest.$ac_objext
6844 if { (ac_try="$ac_compile"
6845 case "(($ac_try" in
6846 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6847 *) ac_try_echo=$ac_try;;
6848 esac
6849 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6850 (eval "$ac_compile") 2>conftest.er1
6851 ac_status=$?
6852 grep -v '^ *+' conftest.er1 >conftest.err
6853 rm -f conftest.er1
6854 cat conftest.err >&5
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && {
6857 test -z "$ac_c_werror_flag" ||
6858 test ! -s conftest.err
6859 } && test -s conftest.$ac_objext; then
6860 ac_cv_have_decl___sys_siglist=yes
6861 else
6862 echo "$as_me: failed program was:" >&5
6863 sed 's/^/| /' conftest.$ac_ext >&5
6864
6865 ac_cv_have_decl___sys_siglist=no
6866 fi
6867
6868 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6869 fi
6870 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6871 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6872 if test $ac_cv_have_decl___sys_siglist = yes; then
6873
6874 cat >>confdefs.h <<_ACEOF
6875 #define HAVE_DECL___SYS_SIGLIST 1
6876 _ACEOF
6877
6878
6879 else
6880 cat >>confdefs.h <<_ACEOF
6881 #define HAVE_DECL___SYS_SIGLIST 0
6882 _ACEOF
6883
6884
6885 fi
6886
6887
6888 if test $ac_cv_have_decl___sys_siglist = yes; then
6889
6890 cat >>confdefs.h <<\_ACEOF
6891 #define sys_siglist __sys_siglist
6892 _ACEOF
6893
6894 fi
6895 fi
6896 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6897 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6898 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6899 echo $ECHO_N "(cached) $ECHO_C" >&6
6900 else
6901 cat >conftest.$ac_ext <<_ACEOF
6902 /* confdefs.h. */
6903 _ACEOF
6904 cat confdefs.h >>conftest.$ac_ext
6905 cat >>conftest.$ac_ext <<_ACEOF
6906 /* end confdefs.h. */
6907 #include <sys/types.h>
6908 #include <sys/wait.h>
6909 #ifndef WEXITSTATUS
6910 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6911 #endif
6912 #ifndef WIFEXITED
6913 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6914 #endif
6915
6916 int
6917 main ()
6918 {
6919 int s;
6920 wait (&s);
6921 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6922 ;
6923 return 0;
6924 }
6925 _ACEOF
6926 rm -f conftest.$ac_objext
6927 if { (ac_try="$ac_compile"
6928 case "(($ac_try" in
6929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6930 *) ac_try_echo=$ac_try;;
6931 esac
6932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6933 (eval "$ac_compile") 2>conftest.er1
6934 ac_status=$?
6935 grep -v '^ *+' conftest.er1 >conftest.err
6936 rm -f conftest.er1
6937 cat conftest.err >&5
6938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6939 (exit $ac_status); } && {
6940 test -z "$ac_c_werror_flag" ||
6941 test ! -s conftest.err
6942 } && test -s conftest.$ac_objext; then
6943 ac_cv_header_sys_wait_h=yes
6944 else
6945 echo "$as_me: failed program was:" >&5
6946 sed 's/^/| /' conftest.$ac_ext >&5
6947
6948 ac_cv_header_sys_wait_h=no
6949 fi
6950
6951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6952 fi
6953 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6954 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6955 if test $ac_cv_header_sys_wait_h = yes; then
6956
6957 cat >>confdefs.h <<\_ACEOF
6958 #define HAVE_SYS_WAIT_H 1
6959 _ACEOF
6960
6961 fi
6962
6963
6964 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6965 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6966 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6967 echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969 cat >conftest.$ac_ext <<_ACEOF
6970 /* confdefs.h. */
6971 _ACEOF
6972 cat confdefs.h >>conftest.$ac_ext
6973 cat >>conftest.$ac_ext <<_ACEOF
6974 /* end confdefs.h. */
6975 #ifdef TIME_WITH_SYS_TIME
6976 #include <sys/time.h>
6977 #include <time.h>
6978 #else
6979 #ifdef HAVE_SYS_TIME_H
6980 #include <sys/time.h>
6981 #else
6982 #include <time.h>
6983 #endif
6984 #endif
6985 #ifdef HAVE_UTIME_H
6986 #include <utime.h>
6987 #endif
6988 int
6989 main ()
6990 {
6991 static struct utimbuf x; x.actime = x.modtime;
6992 ;
6993 return 0;
6994 }
6995 _ACEOF
6996 rm -f conftest.$ac_objext
6997 if { (ac_try="$ac_compile"
6998 case "(($ac_try" in
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_compile") 2>conftest.er1
7004 ac_status=$?
7005 grep -v '^ *+' conftest.er1 >conftest.err
7006 rm -f conftest.er1
7007 cat conftest.err >&5
7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7009 (exit $ac_status); } && {
7010 test -z "$ac_c_werror_flag" ||
7011 test ! -s conftest.err
7012 } && test -s conftest.$ac_objext; then
7013 emacs_cv_struct_utimbuf=yes
7014 else
7015 echo "$as_me: failed program was:" >&5
7016 sed 's/^/| /' conftest.$ac_ext >&5
7017
7018 emacs_cv_struct_utimbuf=no
7019 fi
7020
7021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7022 fi
7023 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7024 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7025 if test $emacs_cv_struct_utimbuf = yes; then
7026
7027 cat >>confdefs.h <<\_ACEOF
7028 #define HAVE_STRUCT_UTIMBUF 1
7029 _ACEOF
7030
7031 fi
7032
7033 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7034 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7035 if test "${ac_cv_type_signal+set}" = set; then
7036 echo $ECHO_N "(cached) $ECHO_C" >&6
7037 else
7038 cat >conftest.$ac_ext <<_ACEOF
7039 /* confdefs.h. */
7040 _ACEOF
7041 cat confdefs.h >>conftest.$ac_ext
7042 cat >>conftest.$ac_ext <<_ACEOF
7043 /* end confdefs.h. */
7044 #include <sys/types.h>
7045 #include <signal.h>
7046
7047 int
7048 main ()
7049 {
7050 return *(signal (0, 0)) (0) == 1;
7051 ;
7052 return 0;
7053 }
7054 _ACEOF
7055 rm -f conftest.$ac_objext
7056 if { (ac_try="$ac_compile"
7057 case "(($ac_try" in
7058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7059 *) ac_try_echo=$ac_try;;
7060 esac
7061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7062 (eval "$ac_compile") 2>conftest.er1
7063 ac_status=$?
7064 grep -v '^ *+' conftest.er1 >conftest.err
7065 rm -f conftest.er1
7066 cat conftest.err >&5
7067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7068 (exit $ac_status); } && {
7069 test -z "$ac_c_werror_flag" ||
7070 test ! -s conftest.err
7071 } && test -s conftest.$ac_objext; then
7072 ac_cv_type_signal=int
7073 else
7074 echo "$as_me: failed program was:" >&5
7075 sed 's/^/| /' conftest.$ac_ext >&5
7076
7077 ac_cv_type_signal=void
7078 fi
7079
7080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7081 fi
7082 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7083 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7084
7085 cat >>confdefs.h <<_ACEOF
7086 #define RETSIGTYPE $ac_cv_type_signal
7087 _ACEOF
7088
7089
7090
7091 { echo "$as_me:$LINENO: checking for speed_t" >&5
7092 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7093 if test "${emacs_cv_speed_t+set}" = set; then
7094 echo $ECHO_N "(cached) $ECHO_C" >&6
7095 else
7096 cat >conftest.$ac_ext <<_ACEOF
7097 /* confdefs.h. */
7098 _ACEOF
7099 cat confdefs.h >>conftest.$ac_ext
7100 cat >>conftest.$ac_ext <<_ACEOF
7101 /* end confdefs.h. */
7102 #include <termios.h>
7103 int
7104 main ()
7105 {
7106 speed_t x = 1;
7107 ;
7108 return 0;
7109 }
7110 _ACEOF
7111 rm -f conftest.$ac_objext
7112 if { (ac_try="$ac_compile"
7113 case "(($ac_try" in
7114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7115 *) ac_try_echo=$ac_try;;
7116 esac
7117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7118 (eval "$ac_compile") 2>conftest.er1
7119 ac_status=$?
7120 grep -v '^ *+' conftest.er1 >conftest.err
7121 rm -f conftest.er1
7122 cat conftest.err >&5
7123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7124 (exit $ac_status); } && {
7125 test -z "$ac_c_werror_flag" ||
7126 test ! -s conftest.err
7127 } && test -s conftest.$ac_objext; then
7128 emacs_cv_speed_t=yes
7129 else
7130 echo "$as_me: failed program was:" >&5
7131 sed 's/^/| /' conftest.$ac_ext >&5
7132
7133 emacs_cv_speed_t=no
7134 fi
7135
7136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7137 fi
7138 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7139 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7140 if test $emacs_cv_speed_t = yes; then
7141
7142 cat >>confdefs.h <<\_ACEOF
7143 #define HAVE_SPEED_T 1
7144 _ACEOF
7145
7146 fi
7147
7148 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7149 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7150 if test "${emacs_cv_struct_timeval+set}" = set; then
7151 echo $ECHO_N "(cached) $ECHO_C" >&6
7152 else
7153 cat >conftest.$ac_ext <<_ACEOF
7154 /* confdefs.h. */
7155 _ACEOF
7156 cat confdefs.h >>conftest.$ac_ext
7157 cat >>conftest.$ac_ext <<_ACEOF
7158 /* end confdefs.h. */
7159 #ifdef TIME_WITH_SYS_TIME
7160 #include <sys/time.h>
7161 #include <time.h>
7162 #else
7163 #ifdef HAVE_SYS_TIME_H
7164 #include <sys/time.h>
7165 #else
7166 #include <time.h>
7167 #endif
7168 #endif
7169 int
7170 main ()
7171 {
7172 static struct timeval x; x.tv_sec = x.tv_usec;
7173 ;
7174 return 0;
7175 }
7176 _ACEOF
7177 rm -f conftest.$ac_objext
7178 if { (ac_try="$ac_compile"
7179 case "(($ac_try" in
7180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7181 *) ac_try_echo=$ac_try;;
7182 esac
7183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7184 (eval "$ac_compile") 2>conftest.er1
7185 ac_status=$?
7186 grep -v '^ *+' conftest.er1 >conftest.err
7187 rm -f conftest.er1
7188 cat conftest.err >&5
7189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7190 (exit $ac_status); } && {
7191 test -z "$ac_c_werror_flag" ||
7192 test ! -s conftest.err
7193 } && test -s conftest.$ac_objext; then
7194 emacs_cv_struct_timeval=yes
7195 else
7196 echo "$as_me: failed program was:" >&5
7197 sed 's/^/| /' conftest.$ac_ext >&5
7198
7199 emacs_cv_struct_timeval=no
7200 fi
7201
7202 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7203 fi
7204 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7205 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7206 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7207 if test $emacs_cv_struct_timeval = yes; then
7208
7209 cat >>confdefs.h <<\_ACEOF
7210 #define HAVE_TIMEVAL 1
7211 _ACEOF
7212
7213 fi
7214
7215 { echo "$as_me:$LINENO: checking for struct exception" >&5
7216 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7217 if test "${emacs_cv_struct_exception+set}" = set; then
7218 echo $ECHO_N "(cached) $ECHO_C" >&6
7219 else
7220 cat >conftest.$ac_ext <<_ACEOF
7221 /* confdefs.h. */
7222 _ACEOF
7223 cat confdefs.h >>conftest.$ac_ext
7224 cat >>conftest.$ac_ext <<_ACEOF
7225 /* end confdefs.h. */
7226 #include <math.h>
7227 int
7228 main ()
7229 {
7230 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7231 ;
7232 return 0;
7233 }
7234 _ACEOF
7235 rm -f conftest.$ac_objext
7236 if { (ac_try="$ac_compile"
7237 case "(($ac_try" in
7238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7239 *) ac_try_echo=$ac_try;;
7240 esac
7241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7242 (eval "$ac_compile") 2>conftest.er1
7243 ac_status=$?
7244 grep -v '^ *+' conftest.er1 >conftest.err
7245 rm -f conftest.er1
7246 cat conftest.err >&5
7247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7248 (exit $ac_status); } && {
7249 test -z "$ac_c_werror_flag" ||
7250 test ! -s conftest.err
7251 } && test -s conftest.$ac_objext; then
7252 emacs_cv_struct_exception=yes
7253 else
7254 echo "$as_me: failed program was:" >&5
7255 sed 's/^/| /' conftest.$ac_ext >&5
7256
7257 emacs_cv_struct_exception=no
7258 fi
7259
7260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7261 fi
7262 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7263 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7264 HAVE_EXCEPTION=$emacs_cv_struct_exception
7265 if test $emacs_cv_struct_exception != yes; then
7266
7267 cat >>confdefs.h <<\_ACEOF
7268 #define NO_MATHERR 1
7269 _ACEOF
7270
7271 fi
7272
7273
7274 for ac_header in sys/socket.h
7275 do
7276 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7277 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7278 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7279 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7280 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7281 echo $ECHO_N "(cached) $ECHO_C" >&6
7282 fi
7283 ac_res=`eval echo '${'$as_ac_Header'}'`
7284 { echo "$as_me:$LINENO: result: $ac_res" >&5
7285 echo "${ECHO_T}$ac_res" >&6; }
7286 else
7287 # Is the header compilable?
7288 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7289 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7290 cat >conftest.$ac_ext <<_ACEOF
7291 /* confdefs.h. */
7292 _ACEOF
7293 cat confdefs.h >>conftest.$ac_ext
7294 cat >>conftest.$ac_ext <<_ACEOF
7295 /* end confdefs.h. */
7296 $ac_includes_default
7297 #include <$ac_header>
7298 _ACEOF
7299 rm -f conftest.$ac_objext
7300 if { (ac_try="$ac_compile"
7301 case "(($ac_try" in
7302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7303 *) ac_try_echo=$ac_try;;
7304 esac
7305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7306 (eval "$ac_compile") 2>conftest.er1
7307 ac_status=$?
7308 grep -v '^ *+' conftest.er1 >conftest.err
7309 rm -f conftest.er1
7310 cat conftest.err >&5
7311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7312 (exit $ac_status); } && {
7313 test -z "$ac_c_werror_flag" ||
7314 test ! -s conftest.err
7315 } && test -s conftest.$ac_objext; then
7316 ac_header_compiler=yes
7317 else
7318 echo "$as_me: failed program was:" >&5
7319 sed 's/^/| /' conftest.$ac_ext >&5
7320
7321 ac_header_compiler=no
7322 fi
7323
7324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7325 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7326 echo "${ECHO_T}$ac_header_compiler" >&6; }
7327
7328 # Is the header present?
7329 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7330 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7331 cat >conftest.$ac_ext <<_ACEOF
7332 /* confdefs.h. */
7333 _ACEOF
7334 cat confdefs.h >>conftest.$ac_ext
7335 cat >>conftest.$ac_ext <<_ACEOF
7336 /* end confdefs.h. */
7337 #include <$ac_header>
7338 _ACEOF
7339 if { (ac_try="$ac_cpp conftest.$ac_ext"
7340 case "(($ac_try" in
7341 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7342 *) ac_try_echo=$ac_try;;
7343 esac
7344 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7345 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7346 ac_status=$?
7347 grep -v '^ *+' conftest.er1 >conftest.err
7348 rm -f conftest.er1
7349 cat conftest.err >&5
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); } >/dev/null && {
7352 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7353 test ! -s conftest.err
7354 }; then
7355 ac_header_preproc=yes
7356 else
7357 echo "$as_me: failed program was:" >&5
7358 sed 's/^/| /' conftest.$ac_ext >&5
7359
7360 ac_header_preproc=no
7361 fi
7362
7363 rm -f conftest.err conftest.$ac_ext
7364 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7365 echo "${ECHO_T}$ac_header_preproc" >&6; }
7366
7367 # So? What about this header?
7368 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7369 yes:no: )
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7371 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7372 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7373 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7374 ac_header_preproc=yes
7375 ;;
7376 no:yes:* )
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7378 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7380 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7382 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7384 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7386 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7387 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7388 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7389
7390 ;;
7391 esac
7392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7395 echo $ECHO_N "(cached) $ECHO_C" >&6
7396 else
7397 eval "$as_ac_Header=\$ac_header_preproc"
7398 fi
7399 ac_res=`eval echo '${'$as_ac_Header'}'`
7400 { echo "$as_me:$LINENO: result: $ac_res" >&5
7401 echo "${ECHO_T}$ac_res" >&6; }
7402
7403 fi
7404 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7405 cat >>confdefs.h <<_ACEOF
7406 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7407 _ACEOF
7408
7409 fi
7410
7411 done
7412
7413
7414 for ac_header in net/if.h
7415 do
7416 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7417 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7418 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7419 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 $ac_includes_default
7429 #if HAVE_SYS_SOCKET_H
7430 #include <sys/socket.h>
7431 #endif
7432
7433 #include <$ac_header>
7434 _ACEOF
7435 rm -f conftest.$ac_objext
7436 if { (ac_try="$ac_compile"
7437 case "(($ac_try" in
7438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7439 *) ac_try_echo=$ac_try;;
7440 esac
7441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7442 (eval "$ac_compile") 2>conftest.er1
7443 ac_status=$?
7444 grep -v '^ *+' conftest.er1 >conftest.err
7445 rm -f conftest.er1
7446 cat conftest.err >&5
7447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7448 (exit $ac_status); } && {
7449 test -z "$ac_c_werror_flag" ||
7450 test ! -s conftest.err
7451 } && test -s conftest.$ac_objext; then
7452 eval "$as_ac_Header=yes"
7453 else
7454 echo "$as_me: failed program was:" >&5
7455 sed 's/^/| /' conftest.$ac_ext >&5
7456
7457 eval "$as_ac_Header=no"
7458 fi
7459
7460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7461 fi
7462 ac_res=`eval echo '${'$as_ac_Header'}'`
7463 { echo "$as_me:$LINENO: result: $ac_res" >&5
7464 echo "${ECHO_T}$ac_res" >&6; }
7465 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7466 cat >>confdefs.h <<_ACEOF
7467 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7468 _ACEOF
7469
7470 fi
7471
7472 done
7473
7474
7475 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7476 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7477 if test "${ac_cv_struct_tm+set}" = set; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 else
7480 cat >conftest.$ac_ext <<_ACEOF
7481 /* confdefs.h. */
7482 _ACEOF
7483 cat confdefs.h >>conftest.$ac_ext
7484 cat >>conftest.$ac_ext <<_ACEOF
7485 /* end confdefs.h. */
7486 #include <sys/types.h>
7487 #include <time.h>
7488
7489 int
7490 main ()
7491 {
7492 struct tm tm;
7493 int *p = &tm.tm_sec;
7494 return !p;
7495 ;
7496 return 0;
7497 }
7498 _ACEOF
7499 rm -f conftest.$ac_objext
7500 if { (ac_try="$ac_compile"
7501 case "(($ac_try" in
7502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7503 *) ac_try_echo=$ac_try;;
7504 esac
7505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7506 (eval "$ac_compile") 2>conftest.er1
7507 ac_status=$?
7508 grep -v '^ *+' conftest.er1 >conftest.err
7509 rm -f conftest.er1
7510 cat conftest.err >&5
7511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7512 (exit $ac_status); } && {
7513 test -z "$ac_c_werror_flag" ||
7514 test ! -s conftest.err
7515 } && test -s conftest.$ac_objext; then
7516 ac_cv_struct_tm=time.h
7517 else
7518 echo "$as_me: failed program was:" >&5
7519 sed 's/^/| /' conftest.$ac_ext >&5
7520
7521 ac_cv_struct_tm=sys/time.h
7522 fi
7523
7524 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7525 fi
7526 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7527 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7528 if test $ac_cv_struct_tm = sys/time.h; then
7529
7530 cat >>confdefs.h <<\_ACEOF
7531 #define TM_IN_SYS_TIME 1
7532 _ACEOF
7533
7534 fi
7535
7536 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7537 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7538 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7539 echo $ECHO_N "(cached) $ECHO_C" >&6
7540 else
7541 cat >conftest.$ac_ext <<_ACEOF
7542 /* confdefs.h. */
7543 _ACEOF
7544 cat confdefs.h >>conftest.$ac_ext
7545 cat >>conftest.$ac_ext <<_ACEOF
7546 /* end confdefs.h. */
7547 #include <sys/types.h>
7548 #include <$ac_cv_struct_tm>
7549
7550
7551 int
7552 main ()
7553 {
7554 static struct tm ac_aggr;
7555 if (ac_aggr.tm_zone)
7556 return 0;
7557 ;
7558 return 0;
7559 }
7560 _ACEOF
7561 rm -f conftest.$ac_objext
7562 if { (ac_try="$ac_compile"
7563 case "(($ac_try" in
7564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7565 *) ac_try_echo=$ac_try;;
7566 esac
7567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7568 (eval "$ac_compile") 2>conftest.er1
7569 ac_status=$?
7570 grep -v '^ *+' conftest.er1 >conftest.err
7571 rm -f conftest.er1
7572 cat conftest.err >&5
7573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7574 (exit $ac_status); } && {
7575 test -z "$ac_c_werror_flag" ||
7576 test ! -s conftest.err
7577 } && test -s conftest.$ac_objext; then
7578 ac_cv_member_struct_tm_tm_zone=yes
7579 else
7580 echo "$as_me: failed program was:" >&5
7581 sed 's/^/| /' conftest.$ac_ext >&5
7582
7583 cat >conftest.$ac_ext <<_ACEOF
7584 /* confdefs.h. */
7585 _ACEOF
7586 cat confdefs.h >>conftest.$ac_ext
7587 cat >>conftest.$ac_ext <<_ACEOF
7588 /* end confdefs.h. */
7589 #include <sys/types.h>
7590 #include <$ac_cv_struct_tm>
7591
7592
7593 int
7594 main ()
7595 {
7596 static struct tm ac_aggr;
7597 if (sizeof ac_aggr.tm_zone)
7598 return 0;
7599 ;
7600 return 0;
7601 }
7602 _ACEOF
7603 rm -f conftest.$ac_objext
7604 if { (ac_try="$ac_compile"
7605 case "(($ac_try" in
7606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7607 *) ac_try_echo=$ac_try;;
7608 esac
7609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7610 (eval "$ac_compile") 2>conftest.er1
7611 ac_status=$?
7612 grep -v '^ *+' conftest.er1 >conftest.err
7613 rm -f conftest.er1
7614 cat conftest.err >&5
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); } && {
7617 test -z "$ac_c_werror_flag" ||
7618 test ! -s conftest.err
7619 } && test -s conftest.$ac_objext; then
7620 ac_cv_member_struct_tm_tm_zone=yes
7621 else
7622 echo "$as_me: failed program was:" >&5
7623 sed 's/^/| /' conftest.$ac_ext >&5
7624
7625 ac_cv_member_struct_tm_tm_zone=no
7626 fi
7627
7628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7629 fi
7630
7631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7632 fi
7633 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7634 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7635 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7636
7637 cat >>confdefs.h <<_ACEOF
7638 #define HAVE_STRUCT_TM_TM_ZONE 1
7639 _ACEOF
7640
7641
7642 fi
7643
7644 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7645
7646 cat >>confdefs.h <<\_ACEOF
7647 #define HAVE_TM_ZONE 1
7648 _ACEOF
7649
7650 else
7651 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7652 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7653 if test "${ac_cv_have_decl_tzname+set}" = set; then
7654 echo $ECHO_N "(cached) $ECHO_C" >&6
7655 else
7656 cat >conftest.$ac_ext <<_ACEOF
7657 /* confdefs.h. */
7658 _ACEOF
7659 cat confdefs.h >>conftest.$ac_ext
7660 cat >>conftest.$ac_ext <<_ACEOF
7661 /* end confdefs.h. */
7662 #include <time.h>
7663
7664 int
7665 main ()
7666 {
7667 #ifndef tzname
7668 (void) tzname;
7669 #endif
7670
7671 ;
7672 return 0;
7673 }
7674 _ACEOF
7675 rm -f conftest.$ac_objext
7676 if { (ac_try="$ac_compile"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_compile") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } && {
7689 test -z "$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 } && test -s conftest.$ac_objext; then
7692 ac_cv_have_decl_tzname=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 ac_cv_have_decl_tzname=no
7698 fi
7699
7700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7701 fi
7702 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7703 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7704 if test $ac_cv_have_decl_tzname = yes; then
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define HAVE_DECL_TZNAME 1
7708 _ACEOF
7709
7710
7711 else
7712 cat >>confdefs.h <<_ACEOF
7713 #define HAVE_DECL_TZNAME 0
7714 _ACEOF
7715
7716
7717 fi
7718
7719
7720 { echo "$as_me:$LINENO: checking for tzname" >&5
7721 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7722 if test "${ac_cv_var_tzname+set}" = set; then
7723 echo $ECHO_N "(cached) $ECHO_C" >&6
7724 else
7725 cat >conftest.$ac_ext <<_ACEOF
7726 /* confdefs.h. */
7727 _ACEOF
7728 cat confdefs.h >>conftest.$ac_ext
7729 cat >>conftest.$ac_ext <<_ACEOF
7730 /* end confdefs.h. */
7731 #include <time.h>
7732 #if !HAVE_DECL_TZNAME
7733 extern char *tzname[];
7734 #endif
7735
7736 int
7737 main ()
7738 {
7739 return tzname[0][0];
7740 ;
7741 return 0;
7742 }
7743 _ACEOF
7744 rm -f conftest.$ac_objext conftest$ac_exeext
7745 if { (ac_try="$ac_link"
7746 case "(($ac_try" in
7747 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7748 *) ac_try_echo=$ac_try;;
7749 esac
7750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7751 (eval "$ac_link") 2>conftest.er1
7752 ac_status=$?
7753 grep -v '^ *+' conftest.er1 >conftest.err
7754 rm -f conftest.er1
7755 cat conftest.err >&5
7756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7757 (exit $ac_status); } && {
7758 test -z "$ac_c_werror_flag" ||
7759 test ! -s conftest.err
7760 } && test -s conftest$ac_exeext &&
7761 $as_test_x conftest$ac_exeext; then
7762 ac_cv_var_tzname=yes
7763 else
7764 echo "$as_me: failed program was:" >&5
7765 sed 's/^/| /' conftest.$ac_ext >&5
7766
7767 ac_cv_var_tzname=no
7768 fi
7769
7770 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7771 conftest$ac_exeext conftest.$ac_ext
7772 fi
7773 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7774 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7775 if test $ac_cv_var_tzname = yes; then
7776
7777 cat >>confdefs.h <<\_ACEOF
7778 #define HAVE_TZNAME 1
7779 _ACEOF
7780
7781 fi
7782 fi
7783
7784 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7785 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7786 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7787 echo $ECHO_N "(cached) $ECHO_C" >&6
7788 else
7789 cat >conftest.$ac_ext <<_ACEOF
7790 /* confdefs.h. */
7791 _ACEOF
7792 cat confdefs.h >>conftest.$ac_ext
7793 cat >>conftest.$ac_ext <<_ACEOF
7794 /* end confdefs.h. */
7795 #include <time.h>
7796
7797 int
7798 main ()
7799 {
7800 static struct tm ac_aggr;
7801 if (ac_aggr.tm_gmtoff)
7802 return 0;
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext
7808 if { (ac_try="$ac_compile"
7809 case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_compile") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } && {
7821 test -z "$ac_c_werror_flag" ||
7822 test ! -s conftest.err
7823 } && test -s conftest.$ac_objext; then
7824 ac_cv_member_struct_tm_tm_gmtoff=yes
7825 else
7826 echo "$as_me: failed program was:" >&5
7827 sed 's/^/| /' conftest.$ac_ext >&5
7828
7829 cat >conftest.$ac_ext <<_ACEOF
7830 /* confdefs.h. */
7831 _ACEOF
7832 cat confdefs.h >>conftest.$ac_ext
7833 cat >>conftest.$ac_ext <<_ACEOF
7834 /* end confdefs.h. */
7835 #include <time.h>
7836
7837 int
7838 main ()
7839 {
7840 static struct tm ac_aggr;
7841 if (sizeof ac_aggr.tm_gmtoff)
7842 return 0;
7843 ;
7844 return 0;
7845 }
7846 _ACEOF
7847 rm -f conftest.$ac_objext
7848 if { (ac_try="$ac_compile"
7849 case "(($ac_try" in
7850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7851 *) ac_try_echo=$ac_try;;
7852 esac
7853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7854 (eval "$ac_compile") 2>conftest.er1
7855 ac_status=$?
7856 grep -v '^ *+' conftest.er1 >conftest.err
7857 rm -f conftest.er1
7858 cat conftest.err >&5
7859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7860 (exit $ac_status); } && {
7861 test -z "$ac_c_werror_flag" ||
7862 test ! -s conftest.err
7863 } && test -s conftest.$ac_objext; then
7864 ac_cv_member_struct_tm_tm_gmtoff=yes
7865 else
7866 echo "$as_me: failed program was:" >&5
7867 sed 's/^/| /' conftest.$ac_ext >&5
7868
7869 ac_cv_member_struct_tm_tm_gmtoff=no
7870 fi
7871
7872 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7873 fi
7874
7875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7876 fi
7877 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7878 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7879 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7880
7881 cat >>confdefs.h <<\_ACEOF
7882 #define HAVE_TM_GMTOFF 1
7883 _ACEOF
7884
7885 fi
7886
7887 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7888 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7889 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7890 echo $ECHO_N "(cached) $ECHO_C" >&6
7891 else
7892 cat >conftest.$ac_ext <<_ACEOF
7893 /* confdefs.h. */
7894 _ACEOF
7895 cat confdefs.h >>conftest.$ac_ext
7896 cat >>conftest.$ac_ext <<_ACEOF
7897 /* end confdefs.h. */
7898 $ac_includes_default
7899 #if HAVE_SYS_SOCKET_H
7900 #include <sys/socket.h>
7901 #endif
7902 #if HAVE_NET_IF_H
7903 #include <net/if.h>
7904 #endif
7905
7906 int
7907 main ()
7908 {
7909 static struct ifreq ac_aggr;
7910 if (ac_aggr.ifr_flags)
7911 return 0;
7912 ;
7913 return 0;
7914 }
7915 _ACEOF
7916 rm -f conftest.$ac_objext
7917 if { (ac_try="$ac_compile"
7918 case "(($ac_try" in
7919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7920 *) ac_try_echo=$ac_try;;
7921 esac
7922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7923 (eval "$ac_compile") 2>conftest.er1
7924 ac_status=$?
7925 grep -v '^ *+' conftest.er1 >conftest.err
7926 rm -f conftest.er1
7927 cat conftest.err >&5
7928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7929 (exit $ac_status); } && {
7930 test -z "$ac_c_werror_flag" ||
7931 test ! -s conftest.err
7932 } && test -s conftest.$ac_objext; then
7933 ac_cv_member_struct_ifreq_ifr_flags=yes
7934 else
7935 echo "$as_me: failed program was:" >&5
7936 sed 's/^/| /' conftest.$ac_ext >&5
7937
7938 cat >conftest.$ac_ext <<_ACEOF
7939 /* confdefs.h. */
7940 _ACEOF
7941 cat confdefs.h >>conftest.$ac_ext
7942 cat >>conftest.$ac_ext <<_ACEOF
7943 /* end confdefs.h. */
7944 $ac_includes_default
7945 #if HAVE_SYS_SOCKET_H
7946 #include <sys/socket.h>
7947 #endif
7948 #if HAVE_NET_IF_H
7949 #include <net/if.h>
7950 #endif
7951
7952 int
7953 main ()
7954 {
7955 static struct ifreq ac_aggr;
7956 if (sizeof ac_aggr.ifr_flags)
7957 return 0;
7958 ;
7959 return 0;
7960 }
7961 _ACEOF
7962 rm -f conftest.$ac_objext
7963 if { (ac_try="$ac_compile"
7964 case "(($ac_try" in
7965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7966 *) ac_try_echo=$ac_try;;
7967 esac
7968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7969 (eval "$ac_compile") 2>conftest.er1
7970 ac_status=$?
7971 grep -v '^ *+' conftest.er1 >conftest.err
7972 rm -f conftest.er1
7973 cat conftest.err >&5
7974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7975 (exit $ac_status); } && {
7976 test -z "$ac_c_werror_flag" ||
7977 test ! -s conftest.err
7978 } && test -s conftest.$ac_objext; then
7979 ac_cv_member_struct_ifreq_ifr_flags=yes
7980 else
7981 echo "$as_me: failed program was:" >&5
7982 sed 's/^/| /' conftest.$ac_ext >&5
7983
7984 ac_cv_member_struct_ifreq_ifr_flags=no
7985 fi
7986
7987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7988 fi
7989
7990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7991 fi
7992 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7993 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7994 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7995
7996 cat >>confdefs.h <<_ACEOF
7997 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7998 _ACEOF
7999
8000
8001 fi
8002 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8003 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8004 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8005 echo $ECHO_N "(cached) $ECHO_C" >&6
8006 else
8007 cat >conftest.$ac_ext <<_ACEOF
8008 /* confdefs.h. */
8009 _ACEOF
8010 cat confdefs.h >>conftest.$ac_ext
8011 cat >>conftest.$ac_ext <<_ACEOF
8012 /* end confdefs.h. */
8013 $ac_includes_default
8014 #if HAVE_SYS_SOCKET_H
8015 #include <sys/socket.h>
8016 #endif
8017 #if HAVE_NET_IF_H
8018 #include <net/if.h>
8019 #endif
8020
8021 int
8022 main ()
8023 {
8024 static struct ifreq ac_aggr;
8025 if (ac_aggr.ifr_hwaddr)
8026 return 0;
8027 ;
8028 return 0;
8029 }
8030 _ACEOF
8031 rm -f conftest.$ac_objext
8032 if { (ac_try="$ac_compile"
8033 case "(($ac_try" in
8034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8035 *) ac_try_echo=$ac_try;;
8036 esac
8037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8038 (eval "$ac_compile") 2>conftest.er1
8039 ac_status=$?
8040 grep -v '^ *+' conftest.er1 >conftest.err
8041 rm -f conftest.er1
8042 cat conftest.err >&5
8043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8044 (exit $ac_status); } && {
8045 test -z "$ac_c_werror_flag" ||
8046 test ! -s conftest.err
8047 } && test -s conftest.$ac_objext; then
8048 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8049 else
8050 echo "$as_me: failed program was:" >&5
8051 sed 's/^/| /' conftest.$ac_ext >&5
8052
8053 cat >conftest.$ac_ext <<_ACEOF
8054 /* confdefs.h. */
8055 _ACEOF
8056 cat confdefs.h >>conftest.$ac_ext
8057 cat >>conftest.$ac_ext <<_ACEOF
8058 /* end confdefs.h. */
8059 $ac_includes_default
8060 #if HAVE_SYS_SOCKET_H
8061 #include <sys/socket.h>
8062 #endif
8063 #if HAVE_NET_IF_H
8064 #include <net/if.h>
8065 #endif
8066
8067 int
8068 main ()
8069 {
8070 static struct ifreq ac_aggr;
8071 if (sizeof ac_aggr.ifr_hwaddr)
8072 return 0;
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8100 fi
8101
8102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8103 fi
8104
8105 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8106 fi
8107 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8108 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8109 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8110
8111 cat >>confdefs.h <<_ACEOF
8112 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8113 _ACEOF
8114
8115
8116 fi
8117 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8118 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8119 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8120 echo $ECHO_N "(cached) $ECHO_C" >&6
8121 else
8122 cat >conftest.$ac_ext <<_ACEOF
8123 /* confdefs.h. */
8124 _ACEOF
8125 cat confdefs.h >>conftest.$ac_ext
8126 cat >>conftest.$ac_ext <<_ACEOF
8127 /* end confdefs.h. */
8128 $ac_includes_default
8129 #if HAVE_SYS_SOCKET_H
8130 #include <sys/socket.h>
8131 #endif
8132 #if HAVE_NET_IF_H
8133 #include <net/if.h>
8134 #endif
8135
8136 int
8137 main ()
8138 {
8139 static struct ifreq ac_aggr;
8140 if (ac_aggr.ifr_netmask)
8141 return 0;
8142 ;
8143 return 0;
8144 }
8145 _ACEOF
8146 rm -f conftest.$ac_objext
8147 if { (ac_try="$ac_compile"
8148 case "(($ac_try" in
8149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8150 *) ac_try_echo=$ac_try;;
8151 esac
8152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8153 (eval "$ac_compile") 2>conftest.er1
8154 ac_status=$?
8155 grep -v '^ *+' conftest.er1 >conftest.err
8156 rm -f conftest.er1
8157 cat conftest.err >&5
8158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8159 (exit $ac_status); } && {
8160 test -z "$ac_c_werror_flag" ||
8161 test ! -s conftest.err
8162 } && test -s conftest.$ac_objext; then
8163 ac_cv_member_struct_ifreq_ifr_netmask=yes
8164 else
8165 echo "$as_me: failed program was:" >&5
8166 sed 's/^/| /' conftest.$ac_ext >&5
8167
8168 cat >conftest.$ac_ext <<_ACEOF
8169 /* confdefs.h. */
8170 _ACEOF
8171 cat confdefs.h >>conftest.$ac_ext
8172 cat >>conftest.$ac_ext <<_ACEOF
8173 /* end confdefs.h. */
8174 $ac_includes_default
8175 #if HAVE_SYS_SOCKET_H
8176 #include <sys/socket.h>
8177 #endif
8178 #if HAVE_NET_IF_H
8179 #include <net/if.h>
8180 #endif
8181
8182 int
8183 main ()
8184 {
8185 static struct ifreq ac_aggr;
8186 if (sizeof ac_aggr.ifr_netmask)
8187 return 0;
8188 ;
8189 return 0;
8190 }
8191 _ACEOF
8192 rm -f conftest.$ac_objext
8193 if { (ac_try="$ac_compile"
8194 case "(($ac_try" in
8195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8196 *) ac_try_echo=$ac_try;;
8197 esac
8198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8199 (eval "$ac_compile") 2>conftest.er1
8200 ac_status=$?
8201 grep -v '^ *+' conftest.er1 >conftest.err
8202 rm -f conftest.er1
8203 cat conftest.err >&5
8204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8205 (exit $ac_status); } && {
8206 test -z "$ac_c_werror_flag" ||
8207 test ! -s conftest.err
8208 } && test -s conftest.$ac_objext; then
8209 ac_cv_member_struct_ifreq_ifr_netmask=yes
8210 else
8211 echo "$as_me: failed program was:" >&5
8212 sed 's/^/| /' conftest.$ac_ext >&5
8213
8214 ac_cv_member_struct_ifreq_ifr_netmask=no
8215 fi
8216
8217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8218 fi
8219
8220 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8221 fi
8222 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8223 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8224 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8225
8226 cat >>confdefs.h <<_ACEOF
8227 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8228 _ACEOF
8229
8230
8231 fi
8232 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8233 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8234 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8235 echo $ECHO_N "(cached) $ECHO_C" >&6
8236 else
8237 cat >conftest.$ac_ext <<_ACEOF
8238 /* confdefs.h. */
8239 _ACEOF
8240 cat confdefs.h >>conftest.$ac_ext
8241 cat >>conftest.$ac_ext <<_ACEOF
8242 /* end confdefs.h. */
8243 $ac_includes_default
8244 #if HAVE_SYS_SOCKET_H
8245 #include <sys/socket.h>
8246 #endif
8247 #if HAVE_NET_IF_H
8248 #include <net/if.h>
8249 #endif
8250
8251 int
8252 main ()
8253 {
8254 static struct ifreq ac_aggr;
8255 if (ac_aggr.ifr_broadaddr)
8256 return 0;
8257 ;
8258 return 0;
8259 }
8260 _ACEOF
8261 rm -f conftest.$ac_objext
8262 if { (ac_try="$ac_compile"
8263 case "(($ac_try" in
8264 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8265 *) ac_try_echo=$ac_try;;
8266 esac
8267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8268 (eval "$ac_compile") 2>conftest.er1
8269 ac_status=$?
8270 grep -v '^ *+' conftest.er1 >conftest.err
8271 rm -f conftest.er1
8272 cat conftest.err >&5
8273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8274 (exit $ac_status); } && {
8275 test -z "$ac_c_werror_flag" ||
8276 test ! -s conftest.err
8277 } && test -s conftest.$ac_objext; then
8278 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8279 else
8280 echo "$as_me: failed program was:" >&5
8281 sed 's/^/| /' conftest.$ac_ext >&5
8282
8283 cat >conftest.$ac_ext <<_ACEOF
8284 /* confdefs.h. */
8285 _ACEOF
8286 cat confdefs.h >>conftest.$ac_ext
8287 cat >>conftest.$ac_ext <<_ACEOF
8288 /* end confdefs.h. */
8289 $ac_includes_default
8290 #if HAVE_SYS_SOCKET_H
8291 #include <sys/socket.h>
8292 #endif
8293 #if HAVE_NET_IF_H
8294 #include <net/if.h>
8295 #endif
8296
8297 int
8298 main ()
8299 {
8300 static struct ifreq ac_aggr;
8301 if (sizeof ac_aggr.ifr_broadaddr)
8302 return 0;
8303 ;
8304 return 0;
8305 }
8306 _ACEOF
8307 rm -f conftest.$ac_objext
8308 if { (ac_try="$ac_compile"
8309 case "(($ac_try" in
8310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8311 *) ac_try_echo=$ac_try;;
8312 esac
8313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8314 (eval "$ac_compile") 2>conftest.er1
8315 ac_status=$?
8316 grep -v '^ *+' conftest.er1 >conftest.err
8317 rm -f conftest.er1
8318 cat conftest.err >&5
8319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8320 (exit $ac_status); } && {
8321 test -z "$ac_c_werror_flag" ||
8322 test ! -s conftest.err
8323 } && test -s conftest.$ac_objext; then
8324 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8325 else
8326 echo "$as_me: failed program was:" >&5
8327 sed 's/^/| /' conftest.$ac_ext >&5
8328
8329 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8330 fi
8331
8332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8333 fi
8334
8335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8336 fi
8337 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8338 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8339 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8340
8341 cat >>confdefs.h <<_ACEOF
8342 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8343 _ACEOF
8344
8345
8346 fi
8347 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8348 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8349 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8350 echo $ECHO_N "(cached) $ECHO_C" >&6
8351 else
8352 cat >conftest.$ac_ext <<_ACEOF
8353 /* confdefs.h. */
8354 _ACEOF
8355 cat confdefs.h >>conftest.$ac_ext
8356 cat >>conftest.$ac_ext <<_ACEOF
8357 /* end confdefs.h. */
8358 $ac_includes_default
8359 #if HAVE_SYS_SOCKET_H
8360 #include <sys/socket.h>
8361 #endif
8362 #if HAVE_NET_IF_H
8363 #include <net/if.h>
8364 #endif
8365
8366 int
8367 main ()
8368 {
8369 static struct ifreq ac_aggr;
8370 if (ac_aggr.ifr_addr)
8371 return 0;
8372 ;
8373 return 0;
8374 }
8375 _ACEOF
8376 rm -f conftest.$ac_objext
8377 if { (ac_try="$ac_compile"
8378 case "(($ac_try" in
8379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8380 *) ac_try_echo=$ac_try;;
8381 esac
8382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8383 (eval "$ac_compile") 2>conftest.er1
8384 ac_status=$?
8385 grep -v '^ *+' conftest.er1 >conftest.err
8386 rm -f conftest.er1
8387 cat conftest.err >&5
8388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8389 (exit $ac_status); } && {
8390 test -z "$ac_c_werror_flag" ||
8391 test ! -s conftest.err
8392 } && test -s conftest.$ac_objext; then
8393 ac_cv_member_struct_ifreq_ifr_addr=yes
8394 else
8395 echo "$as_me: failed program was:" >&5
8396 sed 's/^/| /' conftest.$ac_ext >&5
8397
8398 cat >conftest.$ac_ext <<_ACEOF
8399 /* confdefs.h. */
8400 _ACEOF
8401 cat confdefs.h >>conftest.$ac_ext
8402 cat >>conftest.$ac_ext <<_ACEOF
8403 /* end confdefs.h. */
8404 $ac_includes_default
8405 #if HAVE_SYS_SOCKET_H
8406 #include <sys/socket.h>
8407 #endif
8408 #if HAVE_NET_IF_H
8409 #include <net/if.h>
8410 #endif
8411
8412 int
8413 main ()
8414 {
8415 static struct ifreq ac_aggr;
8416 if (sizeof ac_aggr.ifr_addr)
8417 return 0;
8418 ;
8419 return 0;
8420 }
8421 _ACEOF
8422 rm -f conftest.$ac_objext
8423 if { (ac_try="$ac_compile"
8424 case "(($ac_try" in
8425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8426 *) ac_try_echo=$ac_try;;
8427 esac
8428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8429 (eval "$ac_compile") 2>conftest.er1
8430 ac_status=$?
8431 grep -v '^ *+' conftest.er1 >conftest.err
8432 rm -f conftest.er1
8433 cat conftest.err >&5
8434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8435 (exit $ac_status); } && {
8436 test -z "$ac_c_werror_flag" ||
8437 test ! -s conftest.err
8438 } && test -s conftest.$ac_objext; then
8439 ac_cv_member_struct_ifreq_ifr_addr=yes
8440 else
8441 echo "$as_me: failed program was:" >&5
8442 sed 's/^/| /' conftest.$ac_ext >&5
8443
8444 ac_cv_member_struct_ifreq_ifr_addr=no
8445 fi
8446
8447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8448 fi
8449
8450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8451 fi
8452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8454 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8455
8456 cat >>confdefs.h <<_ACEOF
8457 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8458 _ACEOF
8459
8460
8461 fi
8462
8463
8464
8465 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8466 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8467 if test "$ac_cv_prog_cc_c89" != no; then
8468 { echo "$as_me:$LINENO: result: yes" >&5
8469 echo "${ECHO_T}yes" >&6; }
8470
8471 cat >>confdefs.h <<\_ACEOF
8472 #define PROTOTYPES 1
8473 _ACEOF
8474
8475
8476 cat >>confdefs.h <<\_ACEOF
8477 #define __PROTOTYPES 1
8478 _ACEOF
8479
8480 else
8481 { echo "$as_me:$LINENO: result: no" >&5
8482 echo "${ECHO_T}no" >&6; }
8483 fi
8484
8485 { echo "$as_me:$LINENO: checking for working volatile" >&5
8486 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8487 if test "${ac_cv_c_volatile+set}" = set; then
8488 echo $ECHO_N "(cached) $ECHO_C" >&6
8489 else
8490 cat >conftest.$ac_ext <<_ACEOF
8491 /* confdefs.h. */
8492 _ACEOF
8493 cat confdefs.h >>conftest.$ac_ext
8494 cat >>conftest.$ac_ext <<_ACEOF
8495 /* end confdefs.h. */
8496
8497 int
8498 main ()
8499 {
8500
8501 volatile int x;
8502 int * volatile y = (int *) 0;
8503 return !x && !y;
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_cv_c_volatile=yes
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 ac_cv_c_volatile=no
8531 fi
8532
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 fi
8535 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8536 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8537 if test $ac_cv_c_volatile = no; then
8538
8539 cat >>confdefs.h <<\_ACEOF
8540 #define volatile
8541 _ACEOF
8542
8543 fi
8544
8545 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8546 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8547 if test "${ac_cv_c_const+set}" = set; then
8548 echo $ECHO_N "(cached) $ECHO_C" >&6
8549 else
8550 cat >conftest.$ac_ext <<_ACEOF
8551 /* confdefs.h. */
8552 _ACEOF
8553 cat confdefs.h >>conftest.$ac_ext
8554 cat >>conftest.$ac_ext <<_ACEOF
8555 /* end confdefs.h. */
8556
8557 int
8558 main ()
8559 {
8560 /* FIXME: Include the comments suggested by Paul. */
8561 #ifndef __cplusplus
8562 /* Ultrix mips cc rejects this. */
8563 typedef int charset[2];
8564 const charset cs;
8565 /* SunOS 4.1.1 cc rejects this. */
8566 char const *const *pcpcc;
8567 char **ppc;
8568 /* NEC SVR4.0.2 mips cc rejects this. */
8569 struct point {int x, y;};
8570 static struct point const zero = {0,0};
8571 /* AIX XL C 1.02.0.0 rejects this.
8572 It does not let you subtract one const X* pointer from another in
8573 an arm of an if-expression whose if-part is not a constant
8574 expression */
8575 const char *g = "string";
8576 pcpcc = &g + (g ? g-g : 0);
8577 /* HPUX 7.0 cc rejects these. */
8578 ++pcpcc;
8579 ppc = (char**) pcpcc;
8580 pcpcc = (char const *const *) ppc;
8581 { /* SCO 3.2v4 cc rejects this. */
8582 char *t;
8583 char const *s = 0 ? (char *) 0 : (char const *) 0;
8584
8585 *t++ = 0;
8586 if (s) return 0;
8587 }
8588 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8589 int x[] = {25, 17};
8590 const int *foo = &x[0];
8591 ++foo;
8592 }
8593 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8594 typedef const int *iptr;
8595 iptr p = 0;
8596 ++p;
8597 }
8598 { /* AIX XL C 1.02.0.0 rejects this saying
8599 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8600 struct s { int j; const int *ap[3]; };
8601 struct s *b; b->j = 5;
8602 }
8603 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8604 const int foo = 10;
8605 if (!foo) return 0;
8606 }
8607 return !cs[0] && !zero.x;
8608 #endif
8609
8610 ;
8611 return 0;
8612 }
8613 _ACEOF
8614 rm -f conftest.$ac_objext
8615 if { (ac_try="$ac_compile"
8616 case "(($ac_try" in
8617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8618 *) ac_try_echo=$ac_try;;
8619 esac
8620 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8621 (eval "$ac_compile") 2>conftest.er1
8622 ac_status=$?
8623 grep -v '^ *+' conftest.er1 >conftest.err
8624 rm -f conftest.er1
8625 cat conftest.err >&5
8626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8627 (exit $ac_status); } && {
8628 test -z "$ac_c_werror_flag" ||
8629 test ! -s conftest.err
8630 } && test -s conftest.$ac_objext; then
8631 ac_cv_c_const=yes
8632 else
8633 echo "$as_me: failed program was:" >&5
8634 sed 's/^/| /' conftest.$ac_ext >&5
8635
8636 ac_cv_c_const=no
8637 fi
8638
8639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8640 fi
8641 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8642 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8643 if test $ac_cv_c_const = no; then
8644
8645 cat >>confdefs.h <<\_ACEOF
8646 #define const
8647 _ACEOF
8648
8649 fi
8650
8651 { echo "$as_me:$LINENO: checking for void * support" >&5
8652 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8653 if test "${emacs_cv_void_star+set}" = set; then
8654 echo $ECHO_N "(cached) $ECHO_C" >&6
8655 else
8656 cat >conftest.$ac_ext <<_ACEOF
8657 /* confdefs.h. */
8658 _ACEOF
8659 cat confdefs.h >>conftest.$ac_ext
8660 cat >>conftest.$ac_ext <<_ACEOF
8661 /* end confdefs.h. */
8662
8663 int
8664 main ()
8665 {
8666 void * foo;
8667 ;
8668 return 0;
8669 }
8670 _ACEOF
8671 rm -f conftest.$ac_objext
8672 if { (ac_try="$ac_compile"
8673 case "(($ac_try" in
8674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8675 *) ac_try_echo=$ac_try;;
8676 esac
8677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8678 (eval "$ac_compile") 2>conftest.er1
8679 ac_status=$?
8680 grep -v '^ *+' conftest.er1 >conftest.err
8681 rm -f conftest.er1
8682 cat conftest.err >&5
8683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8684 (exit $ac_status); } && {
8685 test -z "$ac_c_werror_flag" ||
8686 test ! -s conftest.err
8687 } && test -s conftest.$ac_objext; then
8688 emacs_cv_void_star=yes
8689 else
8690 echo "$as_me: failed program was:" >&5
8691 sed 's/^/| /' conftest.$ac_ext >&5
8692
8693 emacs_cv_void_star=no
8694 fi
8695
8696 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8697 fi
8698 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8699 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8700 if test $emacs_cv_void_star = yes; then
8701 cat >>confdefs.h <<\_ACEOF
8702 #define POINTER_TYPE void
8703 _ACEOF
8704
8705 else
8706 cat >>confdefs.h <<\_ACEOF
8707 #define POINTER_TYPE char
8708 _ACEOF
8709
8710 fi
8711
8712
8713
8714
8715
8716 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8717 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8718 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8719 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 cat >conftest.make <<\_ACEOF
8723 SHELL = /bin/sh
8724 all:
8725 @echo '@@@%%%=$(MAKE)=@@@%%%'
8726 _ACEOF
8727 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8728 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8729 *@@@%%%=?*=@@@%%%*)
8730 eval ac_cv_prog_make_${ac_make}_set=yes;;
8731 *)
8732 eval ac_cv_prog_make_${ac_make}_set=no;;
8733 esac
8734 rm -f conftest.make
8735 fi
8736 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8737 { echo "$as_me:$LINENO: result: yes" >&5
8738 echo "${ECHO_T}yes" >&6; }
8739 SET_MAKE=
8740 else
8741 { echo "$as_me:$LINENO: result: no" >&5
8742 echo "${ECHO_T}no" >&6; }
8743 SET_MAKE="MAKE=${MAKE-make}"
8744 fi
8745
8746
8747 { echo "$as_me:$LINENO: checking for long file names" >&5
8748 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8749 if test "${ac_cv_sys_long_file_names+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 ac_cv_sys_long_file_names=yes
8753 # Test for long file names in all the places we know might matter:
8754 # . the current directory, where building will happen
8755 # $prefix/lib where we will be installing things
8756 # $exec_prefix/lib likewise
8757 # $TMPDIR if set, where it might want to write temporary files
8758 # /tmp where it might want to write temporary files
8759 # /var/tmp likewise
8760 # /usr/tmp likewise
8761 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8762 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8763 # in the usual case where exec_prefix is '${prefix}'.
8764 case $ac_dir in #(
8765 . | /* | ?:[\\/]*) ;; #(
8766 *) continue;;
8767 esac
8768 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8769 ac_xdir=$ac_dir/cf$$
8770 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8771 ac_tf1=$ac_xdir/conftest9012345
8772 ac_tf2=$ac_xdir/conftest9012346
8773 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8774 ac_cv_sys_long_file_names=no
8775 rm -f -r "$ac_xdir" 2>/dev/null
8776 test $ac_cv_sys_long_file_names = no && break
8777 done
8778 fi
8779 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8780 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8781 if test $ac_cv_sys_long_file_names = yes; then
8782
8783 cat >>confdefs.h <<\_ACEOF
8784 #define HAVE_LONG_FILE_NAMES 1
8785 _ACEOF
8786
8787 fi
8788
8789
8790 #### Choose a window system.
8791
8792 { echo "$as_me:$LINENO: checking for X" >&5
8793 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8794
8795
8796 # Check whether --with-x was given.
8797 if test "${with_x+set}" = set; then
8798 withval=$with_x;
8799 fi
8800
8801 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8802 if test "x$with_x" = xno; then
8803 # The user explicitly disabled X.
8804 have_x=disabled
8805 else
8806 case $x_includes,$x_libraries in #(
8807 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8808 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8809 { (exit 1); exit 1; }; };; #(
8810 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8811 echo $ECHO_N "(cached) $ECHO_C" >&6
8812 else
8813 # One or both of the vars are not set, and there is no cached value.
8814 ac_x_includes=no ac_x_libraries=no
8815 rm -f -r conftest.dir
8816 if mkdir conftest.dir; then
8817 cd conftest.dir
8818 cat >Imakefile <<'_ACEOF'
8819 incroot:
8820 @echo incroot='${INCROOT}'
8821 usrlibdir:
8822 @echo usrlibdir='${USRLIBDIR}'
8823 libdir:
8824 @echo libdir='${LIBDIR}'
8825 _ACEOF
8826 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8827 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8828 for ac_var in incroot usrlibdir libdir; do
8829 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8830 done
8831 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8832 for ac_extension in a so sl; do
8833 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8834 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8835 ac_im_usrlibdir=$ac_im_libdir; break
8836 fi
8837 done
8838 # Screen out bogus values from the imake configuration. They are
8839 # bogus both because they are the default anyway, and because
8840 # using them would break gcc on systems where it needs fixed includes.
8841 case $ac_im_incroot in
8842 /usr/include) ac_x_includes= ;;
8843 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8844 esac
8845 case $ac_im_usrlibdir in
8846 /usr/lib | /lib) ;;
8847 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8848 esac
8849 fi
8850 cd ..
8851 rm -f -r conftest.dir
8852 fi
8853
8854 # Standard set of common directories for X headers.
8855 # Check X11 before X11Rn because it is often a symlink to the current release.
8856 ac_x_header_dirs='
8857 /usr/X11/include
8858 /usr/X11R6/include
8859 /usr/X11R5/include
8860 /usr/X11R4/include
8861
8862 /usr/include/X11
8863 /usr/include/X11R6
8864 /usr/include/X11R5
8865 /usr/include/X11R4
8866
8867 /usr/local/X11/include
8868 /usr/local/X11R6/include
8869 /usr/local/X11R5/include
8870 /usr/local/X11R4/include
8871
8872 /usr/local/include/X11
8873 /usr/local/include/X11R6
8874 /usr/local/include/X11R5
8875 /usr/local/include/X11R4
8876
8877 /usr/X386/include
8878 /usr/x386/include
8879 /usr/XFree86/include/X11
8880
8881 /usr/include
8882 /usr/local/include
8883 /usr/unsupported/include
8884 /usr/athena/include
8885 /usr/local/x11r5/include
8886 /usr/lpp/Xamples/include
8887
8888 /usr/openwin/include
8889 /usr/openwin/share/include'
8890
8891 if test "$ac_x_includes" = no; then
8892 # Guess where to find include files, by looking for Xlib.h.
8893 # First, try using that file with no special directory specified.
8894 cat >conftest.$ac_ext <<_ACEOF
8895 /* confdefs.h. */
8896 _ACEOF
8897 cat confdefs.h >>conftest.$ac_ext
8898 cat >>conftest.$ac_ext <<_ACEOF
8899 /* end confdefs.h. */
8900 #include <X11/Xlib.h>
8901 _ACEOF
8902 if { (ac_try="$ac_cpp conftest.$ac_ext"
8903 case "(($ac_try" in
8904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8905 *) ac_try_echo=$ac_try;;
8906 esac
8907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8909 ac_status=$?
8910 grep -v '^ *+' conftest.er1 >conftest.err
8911 rm -f conftest.er1
8912 cat conftest.err >&5
8913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8914 (exit $ac_status); } >/dev/null && {
8915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8916 test ! -s conftest.err
8917 }; then
8918 # We can compile using X headers with no special include directory.
8919 ac_x_includes=
8920 else
8921 echo "$as_me: failed program was:" >&5
8922 sed 's/^/| /' conftest.$ac_ext >&5
8923
8924 for ac_dir in $ac_x_header_dirs; do
8925 if test -r "$ac_dir/X11/Xlib.h"; then
8926 ac_x_includes=$ac_dir
8927 break
8928 fi
8929 done
8930 fi
8931
8932 rm -f conftest.err conftest.$ac_ext
8933 fi # $ac_x_includes = no
8934
8935 if test "$ac_x_libraries" = no; then
8936 # Check for the libraries.
8937 # See if we find them without any special options.
8938 # Don't add to $LIBS permanently.
8939 ac_save_LIBS=$LIBS
8940 LIBS="-lX11 $LIBS"
8941 cat >conftest.$ac_ext <<_ACEOF
8942 /* confdefs.h. */
8943 _ACEOF
8944 cat confdefs.h >>conftest.$ac_ext
8945 cat >>conftest.$ac_ext <<_ACEOF
8946 /* end confdefs.h. */
8947 #include <X11/Xlib.h>
8948 int
8949 main ()
8950 {
8951 XrmInitialize ()
8952 ;
8953 return 0;
8954 }
8955 _ACEOF
8956 rm -f conftest.$ac_objext conftest$ac_exeext
8957 if { (ac_try="$ac_link"
8958 case "(($ac_try" in
8959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8960 *) ac_try_echo=$ac_try;;
8961 esac
8962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8963 (eval "$ac_link") 2>conftest.er1
8964 ac_status=$?
8965 grep -v '^ *+' conftest.er1 >conftest.err
8966 rm -f conftest.er1
8967 cat conftest.err >&5
8968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8969 (exit $ac_status); } && {
8970 test -z "$ac_c_werror_flag" ||
8971 test ! -s conftest.err
8972 } && test -s conftest$ac_exeext &&
8973 $as_test_x conftest$ac_exeext; then
8974 LIBS=$ac_save_LIBS
8975 # We can link X programs with no special library path.
8976 ac_x_libraries=
8977 else
8978 echo "$as_me: failed program was:" >&5
8979 sed 's/^/| /' conftest.$ac_ext >&5
8980
8981 LIBS=$ac_save_LIBS
8982 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8983 do
8984 # Don't even attempt the hair of trying to link an X program!
8985 for ac_extension in a so sl; do
8986 if test -r "$ac_dir/libX11.$ac_extension"; then
8987 ac_x_libraries=$ac_dir
8988 break 2
8989 fi
8990 done
8991 done
8992 fi
8993
8994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8995 conftest$ac_exeext conftest.$ac_ext
8996 fi # $ac_x_libraries = no
8997
8998 case $ac_x_includes,$ac_x_libraries in #(
8999 no,* | *,no | *\'*)
9000 # Didn't find X, or a directory has "'" in its name.
9001 ac_cv_have_x="have_x=no";; #(
9002 *)
9003 # Record where we found X for the cache.
9004 ac_cv_have_x="have_x=yes\
9005 ac_x_includes='$ac_x_includes'\
9006 ac_x_libraries='$ac_x_libraries'"
9007 esac
9008 fi
9009 ;; #(
9010 *) have_x=yes;;
9011 esac
9012 eval "$ac_cv_have_x"
9013 fi # $with_x != no
9014
9015 if test "$have_x" != yes; then
9016 { echo "$as_me:$LINENO: result: $have_x" >&5
9017 echo "${ECHO_T}$have_x" >&6; }
9018 no_x=yes
9019 else
9020 # If each of the values was on the command line, it overrides each guess.
9021 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9022 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9023 # Update the cache value to reflect the command line values.
9024 ac_cv_have_x="have_x=yes\
9025 ac_x_includes='$x_includes'\
9026 ac_x_libraries='$x_libraries'"
9027 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9028 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9029 fi
9030
9031 if test "$no_x" = yes; then
9032 window_system=none
9033 else
9034 window_system=x11
9035 fi
9036
9037 if test "${x_libraries}" != NONE; then
9038 if test -n "${x_libraries}"; then
9039 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9040 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9041 fi
9042 x_default_search_path=""
9043 x_search_path=${x_libraries}
9044 if test -z "${x_search_path}"; then
9045 x_search_path=/usr/lib
9046 fi
9047 for x_library in `echo ${x_search_path}: | \
9048 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9049 x_search_path="\
9050 ${x_library}/X11/%L/%T/%N%C%S:\
9051 ${x_library}/X11/%l/%T/%N%C%S:\
9052 ${x_library}/X11/%T/%N%C%S:\
9053 ${x_library}/X11/%L/%T/%N%S:\
9054 ${x_library}/X11/%l/%T/%N%S:\
9055 ${x_library}/X11/%T/%N%S"
9056 if test x"${x_default_search_path}" = x; then
9057 x_default_search_path=${x_search_path}
9058 else
9059 x_default_search_path="${x_search_path}:${x_default_search_path}"
9060 fi
9061 done
9062 fi
9063 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9064 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9065 fi
9066
9067 if test x"${x_includes}" = x; then
9068 bitmapdir=/usr/include/X11/bitmaps
9069 else
9070 # accumulate include directories that have X11 bitmap subdirectories
9071 bmd_acc="dummyval"
9072 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9073 if test -d "${bmd}/X11/bitmaps"; then
9074 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9075 fi
9076 if test -d "${bmd}/bitmaps"; then
9077 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9078 fi
9079 done
9080 if test ${bmd_acc} != "dummyval"; then
9081 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9082 fi
9083 fi
9084
9085 HAVE_CARBON=no
9086 if test "${with_carbon}" != no; then
9087 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9088 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9089 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9090 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9091 echo $ECHO_N "(cached) $ECHO_C" >&6
9092 fi
9093 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9094 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9095 else
9096 # Is the header compilable?
9097 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9098 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9099 cat >conftest.$ac_ext <<_ACEOF
9100 /* confdefs.h. */
9101 _ACEOF
9102 cat confdefs.h >>conftest.$ac_ext
9103 cat >>conftest.$ac_ext <<_ACEOF
9104 /* end confdefs.h. */
9105 $ac_includes_default
9106 #include <Carbon/Carbon.h>
9107 _ACEOF
9108 rm -f conftest.$ac_objext
9109 if { (ac_try="$ac_compile"
9110 case "(($ac_try" in
9111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9112 *) ac_try_echo=$ac_try;;
9113 esac
9114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9115 (eval "$ac_compile") 2>conftest.er1
9116 ac_status=$?
9117 grep -v '^ *+' conftest.er1 >conftest.err
9118 rm -f conftest.er1
9119 cat conftest.err >&5
9120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9121 (exit $ac_status); } && {
9122 test -z "$ac_c_werror_flag" ||
9123 test ! -s conftest.err
9124 } && test -s conftest.$ac_objext; then
9125 ac_header_compiler=yes
9126 else
9127 echo "$as_me: failed program was:" >&5
9128 sed 's/^/| /' conftest.$ac_ext >&5
9129
9130 ac_header_compiler=no
9131 fi
9132
9133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9135 echo "${ECHO_T}$ac_header_compiler" >&6; }
9136
9137 # Is the header present?
9138 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9139 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9140 cat >conftest.$ac_ext <<_ACEOF
9141 /* confdefs.h. */
9142 _ACEOF
9143 cat confdefs.h >>conftest.$ac_ext
9144 cat >>conftest.$ac_ext <<_ACEOF
9145 /* end confdefs.h. */
9146 #include <Carbon/Carbon.h>
9147 _ACEOF
9148 if { (ac_try="$ac_cpp conftest.$ac_ext"
9149 case "(($ac_try" in
9150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9151 *) ac_try_echo=$ac_try;;
9152 esac
9153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9155 ac_status=$?
9156 grep -v '^ *+' conftest.er1 >conftest.err
9157 rm -f conftest.er1
9158 cat conftest.err >&5
9159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9160 (exit $ac_status); } >/dev/null && {
9161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9162 test ! -s conftest.err
9163 }; then
9164 ac_header_preproc=yes
9165 else
9166 echo "$as_me: failed program was:" >&5
9167 sed 's/^/| /' conftest.$ac_ext >&5
9168
9169 ac_header_preproc=no
9170 fi
9171
9172 rm -f conftest.err conftest.$ac_ext
9173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9174 echo "${ECHO_T}$ac_header_preproc" >&6; }
9175
9176 # So? What about this header?
9177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9178 yes:no: )
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9181 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9182 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9183 ac_header_preproc=yes
9184 ;;
9185 no:yes:* )
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9189 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9191 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9196 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9197 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9198
9199 ;;
9200 esac
9201 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9202 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9203 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9204 echo $ECHO_N "(cached) $ECHO_C" >&6
9205 else
9206 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9207 fi
9208 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9209 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9210
9211 fi
9212 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9213 HAVE_CARBON=yes
9214 fi
9215
9216
9217 fi
9218 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9219 if test "${with_carbon+set}" != set \
9220 && test "${carbon_appdir_x+set}" != set; then
9221 for var in with_x with_x_toolkit with_gtk with_xim \
9222 with_xpm with_jpeg with_tiff with_gif with_png; do
9223 if eval test \"\${$var+set}\" = set; then
9224 HAVE_CARBON=no
9225 break
9226 fi
9227 done
9228 fi
9229 fi
9230 if test "${HAVE_CARBON}" = yes; then
9231 window_system=mac
9232 fi
9233
9234 case "${window_system}" in
9235 x11 )
9236 HAVE_X_WINDOWS=yes
9237 HAVE_X11=yes
9238 case "${with_x_toolkit}" in
9239 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9240 motif ) USE_X_TOOLKIT=MOTIF ;;
9241 gtk ) with_gtk=yes
9242 USE_X_TOOLKIT=none ;;
9243 no ) USE_X_TOOLKIT=none ;;
9244 * )
9245 if test x"$with_gtk" = xyes; then
9246 USE_X_TOOLKIT=none
9247 else
9248 USE_X_TOOLKIT=maybe
9249 fi
9250 ;;
9251 esac
9252 ;;
9253 mac | none )
9254 HAVE_X_WINDOWS=no
9255 HAVE_X11=no
9256 USE_X_TOOLKIT=none
9257 ;;
9258 esac
9259
9260 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9261 # Extract the first word of "X", so it can be a program name with args.
9262 set dummy X; ac_word=$2
9263 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9265 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9266 echo $ECHO_N "(cached) $ECHO_C" >&6
9267 else
9268 if test -n "$HAVE_XSERVER"; then
9269 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9270 else
9271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9272 for as_dir in $PATH
9273 do
9274 IFS=$as_save_IFS
9275 test -z "$as_dir" && as_dir=.
9276 for ac_exec_ext in '' $ac_executable_extensions; do
9277 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9278 ac_cv_prog_HAVE_XSERVER="true"
9279 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9280 break 2
9281 fi
9282 done
9283 done
9284 IFS=$as_save_IFS
9285
9286 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9287 fi
9288 fi
9289 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9290 if test -n "$HAVE_XSERVER"; then
9291 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9292 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9293 else
9294 { echo "$as_me:$LINENO: result: no" >&5
9295 echo "${ECHO_T}no" >&6; }
9296 fi
9297
9298
9299 if test "$HAVE_XSERVER" = true ||
9300 test -n "$DISPLAY" ||
9301 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9302 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9303 were found. You should install the relevant development files for X
9304 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9305 sure you have development files for image handling, i.e.
9306 tiff, gif, jpeg, png and xpm.
9307 If you are sure you want Emacs compiled without X window support, pass
9308 --without-x
9309 to configure." >&5
9310 echo "$as_me: error: You seem to be running X, but no X development libraries
9311 were found. You should install the relevant development files for X
9312 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9313 sure you have development files for image handling, i.e.
9314 tiff, gif, jpeg, png and xpm.
9315 If you are sure you want Emacs compiled without X window support, pass
9316 --without-x
9317 to configure." >&2;}
9318 { (exit 1); exit 1; }; }
9319 fi
9320 fi
9321
9322 ### If we're using X11, we should use the X menu package.
9323 HAVE_MENUS=no
9324 case ${HAVE_X11} in
9325 yes ) HAVE_MENUS=yes ;;
9326 esac
9327
9328 ### Compute the unexec source name from the object name.
9329 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9330
9331 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9332 # Assume not, until told otherwise.
9333 GNU_MALLOC=yes
9334 doug_lea_malloc=yes
9335 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9336 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9337 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9338 echo $ECHO_N "(cached) $ECHO_C" >&6
9339 else
9340 cat >conftest.$ac_ext <<_ACEOF
9341 /* confdefs.h. */
9342 _ACEOF
9343 cat confdefs.h >>conftest.$ac_ext
9344 cat >>conftest.$ac_ext <<_ACEOF
9345 /* end confdefs.h. */
9346 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9348 #define malloc_get_state innocuous_malloc_get_state
9349
9350 /* System header to define __stub macros and hopefully few prototypes,
9351 which can conflict with char malloc_get_state (); below.
9352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9353 <limits.h> exists even on freestanding compilers. */
9354
9355 #ifdef __STDC__
9356 # include <limits.h>
9357 #else
9358 # include <assert.h>
9359 #endif
9360
9361 #undef malloc_get_state
9362
9363 /* Override any GCC internal prototype to avoid an error.
9364 Use char because int might match the return type of a GCC
9365 builtin and then its argument prototype would still apply. */
9366 #ifdef __cplusplus
9367 extern "C"
9368 #endif
9369 char malloc_get_state ();
9370 /* The GNU C library defines this for functions which it implements
9371 to always fail with ENOSYS. Some functions are actually named
9372 something starting with __ and the normal name is an alias. */
9373 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9374 choke me
9375 #endif
9376
9377 int
9378 main ()
9379 {
9380 return malloc_get_state ();
9381 ;
9382 return 0;
9383 }
9384 _ACEOF
9385 rm -f conftest.$ac_objext conftest$ac_exeext
9386 if { (ac_try="$ac_link"
9387 case "(($ac_try" in
9388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9389 *) ac_try_echo=$ac_try;;
9390 esac
9391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9392 (eval "$ac_link") 2>conftest.er1
9393 ac_status=$?
9394 grep -v '^ *+' conftest.er1 >conftest.err
9395 rm -f conftest.er1
9396 cat conftest.err >&5
9397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9398 (exit $ac_status); } && {
9399 test -z "$ac_c_werror_flag" ||
9400 test ! -s conftest.err
9401 } && test -s conftest$ac_exeext &&
9402 $as_test_x conftest$ac_exeext; then
9403 ac_cv_func_malloc_get_state=yes
9404 else
9405 echo "$as_me: failed program was:" >&5
9406 sed 's/^/| /' conftest.$ac_ext >&5
9407
9408 ac_cv_func_malloc_get_state=no
9409 fi
9410
9411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9412 conftest$ac_exeext conftest.$ac_ext
9413 fi
9414 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9415 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9416 if test $ac_cv_func_malloc_get_state = yes; then
9417 :
9418 else
9419 doug_lea_malloc=no
9420 fi
9421
9422 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9423 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9424 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9425 echo $ECHO_N "(cached) $ECHO_C" >&6
9426 else
9427 cat >conftest.$ac_ext <<_ACEOF
9428 /* confdefs.h. */
9429 _ACEOF
9430 cat confdefs.h >>conftest.$ac_ext
9431 cat >>conftest.$ac_ext <<_ACEOF
9432 /* end confdefs.h. */
9433 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9434 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9435 #define malloc_set_state innocuous_malloc_set_state
9436
9437 /* System header to define __stub macros and hopefully few prototypes,
9438 which can conflict with char malloc_set_state (); below.
9439 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9440 <limits.h> exists even on freestanding compilers. */
9441
9442 #ifdef __STDC__
9443 # include <limits.h>
9444 #else
9445 # include <assert.h>
9446 #endif
9447
9448 #undef malloc_set_state
9449
9450 /* Override any GCC internal prototype to avoid an error.
9451 Use char because int might match the return type of a GCC
9452 builtin and then its argument prototype would still apply. */
9453 #ifdef __cplusplus
9454 extern "C"
9455 #endif
9456 char malloc_set_state ();
9457 /* The GNU C library defines this for functions which it implements
9458 to always fail with ENOSYS. Some functions are actually named
9459 something starting with __ and the normal name is an alias. */
9460 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9461 choke me
9462 #endif
9463
9464 int
9465 main ()
9466 {
9467 return malloc_set_state ();
9468 ;
9469 return 0;
9470 }
9471 _ACEOF
9472 rm -f conftest.$ac_objext conftest$ac_exeext
9473 if { (ac_try="$ac_link"
9474 case "(($ac_try" in
9475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9476 *) ac_try_echo=$ac_try;;
9477 esac
9478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9479 (eval "$ac_link") 2>conftest.er1
9480 ac_status=$?
9481 grep -v '^ *+' conftest.er1 >conftest.err
9482 rm -f conftest.er1
9483 cat conftest.err >&5
9484 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9485 (exit $ac_status); } && {
9486 test -z "$ac_c_werror_flag" ||
9487 test ! -s conftest.err
9488 } && test -s conftest$ac_exeext &&
9489 $as_test_x conftest$ac_exeext; then
9490 ac_cv_func_malloc_set_state=yes
9491 else
9492 echo "$as_me: failed program was:" >&5
9493 sed 's/^/| /' conftest.$ac_ext >&5
9494
9495 ac_cv_func_malloc_set_state=no
9496 fi
9497
9498 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9499 conftest$ac_exeext conftest.$ac_ext
9500 fi
9501 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9502 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9503 if test $ac_cv_func_malloc_set_state = yes; then
9504 :
9505 else
9506 doug_lea_malloc=no
9507 fi
9508
9509 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9510 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9511 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9512 echo $ECHO_N "(cached) $ECHO_C" >&6
9513 else
9514 cat >conftest.$ac_ext <<_ACEOF
9515 /* confdefs.h. */
9516 _ACEOF
9517 cat confdefs.h >>conftest.$ac_ext
9518 cat >>conftest.$ac_ext <<_ACEOF
9519 /* end confdefs.h. */
9520 extern void (* __after_morecore_hook)();
9521 int
9522 main ()
9523 {
9524 __after_morecore_hook = 0
9525 ;
9526 return 0;
9527 }
9528 _ACEOF
9529 rm -f conftest.$ac_objext conftest$ac_exeext
9530 if { (ac_try="$ac_link"
9531 case "(($ac_try" in
9532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9533 *) ac_try_echo=$ac_try;;
9534 esac
9535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9536 (eval "$ac_link") 2>conftest.er1
9537 ac_status=$?
9538 grep -v '^ *+' conftest.er1 >conftest.err
9539 rm -f conftest.er1
9540 cat conftest.err >&5
9541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9542 (exit $ac_status); } && {
9543 test -z "$ac_c_werror_flag" ||
9544 test ! -s conftest.err
9545 } && test -s conftest$ac_exeext &&
9546 $as_test_x conftest$ac_exeext; then
9547 emacs_cv_var___after_morecore_hook=yes
9548 else
9549 echo "$as_me: failed program was:" >&5
9550 sed 's/^/| /' conftest.$ac_ext >&5
9551
9552 emacs_cv_var___after_morecore_hook=no
9553 fi
9554
9555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9556 conftest$ac_exeext conftest.$ac_ext
9557 fi
9558 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9559 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9560 if test $emacs_cv_var___after_morecore_hook = no; then
9561 doug_lea_malloc=no
9562 fi
9563 if test "${system_malloc}" = "yes"; then
9564 GNU_MALLOC=no
9565 GNU_MALLOC_reason="
9566 (The GNU allocators don't work with this system configuration.)"
9567 fi
9568 if test "$doug_lea_malloc" = "yes" ; then
9569 if test "$GNU_MALLOC" = yes ; then
9570 GNU_MALLOC_reason="
9571 (Using Doug Lea's new malloc from the GNU C Library.)"
9572 fi
9573
9574 cat >>confdefs.h <<\_ACEOF
9575 #define DOUG_LEA_MALLOC 1
9576 _ACEOF
9577
9578 fi
9579
9580 if test x"${REL_ALLOC}" = x; then
9581 REL_ALLOC=${GNU_MALLOC}
9582 fi
9583
9584
9585
9586
9587 for ac_header in stdlib.h unistd.h
9588 do
9589 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9591 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9592 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9593 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9594 echo $ECHO_N "(cached) $ECHO_C" >&6
9595 fi
9596 ac_res=`eval echo '${'$as_ac_Header'}'`
9597 { echo "$as_me:$LINENO: result: $ac_res" >&5
9598 echo "${ECHO_T}$ac_res" >&6; }
9599 else
9600 # Is the header compilable?
9601 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9602 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9603 cat >conftest.$ac_ext <<_ACEOF
9604 /* confdefs.h. */
9605 _ACEOF
9606 cat confdefs.h >>conftest.$ac_ext
9607 cat >>conftest.$ac_ext <<_ACEOF
9608 /* end confdefs.h. */
9609 $ac_includes_default
9610 #include <$ac_header>
9611 _ACEOF
9612 rm -f conftest.$ac_objext
9613 if { (ac_try="$ac_compile"
9614 case "(($ac_try" in
9615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9616 *) ac_try_echo=$ac_try;;
9617 esac
9618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9619 (eval "$ac_compile") 2>conftest.er1
9620 ac_status=$?
9621 grep -v '^ *+' conftest.er1 >conftest.err
9622 rm -f conftest.er1
9623 cat conftest.err >&5
9624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9625 (exit $ac_status); } && {
9626 test -z "$ac_c_werror_flag" ||
9627 test ! -s conftest.err
9628 } && test -s conftest.$ac_objext; then
9629 ac_header_compiler=yes
9630 else
9631 echo "$as_me: failed program was:" >&5
9632 sed 's/^/| /' conftest.$ac_ext >&5
9633
9634 ac_header_compiler=no
9635 fi
9636
9637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9638 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9639 echo "${ECHO_T}$ac_header_compiler" >&6; }
9640
9641 # Is the header present?
9642 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9643 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9644 cat >conftest.$ac_ext <<_ACEOF
9645 /* confdefs.h. */
9646 _ACEOF
9647 cat confdefs.h >>conftest.$ac_ext
9648 cat >>conftest.$ac_ext <<_ACEOF
9649 /* end confdefs.h. */
9650 #include <$ac_header>
9651 _ACEOF
9652 if { (ac_try="$ac_cpp conftest.$ac_ext"
9653 case "(($ac_try" in
9654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9655 *) ac_try_echo=$ac_try;;
9656 esac
9657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9658 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9659 ac_status=$?
9660 grep -v '^ *+' conftest.er1 >conftest.err
9661 rm -f conftest.er1
9662 cat conftest.err >&5
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); } >/dev/null && {
9665 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9666 test ! -s conftest.err
9667 }; then
9668 ac_header_preproc=yes
9669 else
9670 echo "$as_me: failed program was:" >&5
9671 sed 's/^/| /' conftest.$ac_ext >&5
9672
9673 ac_header_preproc=no
9674 fi
9675
9676 rm -f conftest.err conftest.$ac_ext
9677 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9678 echo "${ECHO_T}$ac_header_preproc" >&6; }
9679
9680 # So? What about this header?
9681 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9682 yes:no: )
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9684 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9685 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9686 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9687 ac_header_preproc=yes
9688 ;;
9689 no:yes:* )
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9691 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9693 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9695 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9697 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9699 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9700 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9701 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9702
9703 ;;
9704 esac
9705 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9706 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9707 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9708 echo $ECHO_N "(cached) $ECHO_C" >&6
9709 else
9710 eval "$as_ac_Header=\$ac_header_preproc"
9711 fi
9712 ac_res=`eval echo '${'$as_ac_Header'}'`
9713 { echo "$as_me:$LINENO: result: $ac_res" >&5
9714 echo "${ECHO_T}$ac_res" >&6; }
9715
9716 fi
9717 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9718 cat >>confdefs.h <<_ACEOF
9719 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9720 _ACEOF
9721
9722 fi
9723
9724 done
9725
9726
9727 for ac_func in getpagesize
9728 do
9729 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9730 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9731 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9732 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9733 echo $ECHO_N "(cached) $ECHO_C" >&6
9734 else
9735 cat >conftest.$ac_ext <<_ACEOF
9736 /* confdefs.h. */
9737 _ACEOF
9738 cat confdefs.h >>conftest.$ac_ext
9739 cat >>conftest.$ac_ext <<_ACEOF
9740 /* end confdefs.h. */
9741 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9742 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9743 #define $ac_func innocuous_$ac_func
9744
9745 /* System header to define __stub macros and hopefully few prototypes,
9746 which can conflict with char $ac_func (); below.
9747 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9748 <limits.h> exists even on freestanding compilers. */
9749
9750 #ifdef __STDC__
9751 # include <limits.h>
9752 #else
9753 # include <assert.h>
9754 #endif
9755
9756 #undef $ac_func
9757
9758 /* Override any GCC internal prototype to avoid an error.
9759 Use char because int might match the return type of a GCC
9760 builtin and then its argument prototype would still apply. */
9761 #ifdef __cplusplus
9762 extern "C"
9763 #endif
9764 char $ac_func ();
9765 /* The GNU C library defines this for functions which it implements
9766 to always fail with ENOSYS. Some functions are actually named
9767 something starting with __ and the normal name is an alias. */
9768 #if defined __stub_$ac_func || defined __stub___$ac_func
9769 choke me
9770 #endif
9771
9772 int
9773 main ()
9774 {
9775 return $ac_func ();
9776 ;
9777 return 0;
9778 }
9779 _ACEOF
9780 rm -f conftest.$ac_objext conftest$ac_exeext
9781 if { (ac_try="$ac_link"
9782 case "(($ac_try" in
9783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9784 *) ac_try_echo=$ac_try;;
9785 esac
9786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9787 (eval "$ac_link") 2>conftest.er1
9788 ac_status=$?
9789 grep -v '^ *+' conftest.er1 >conftest.err
9790 rm -f conftest.er1
9791 cat conftest.err >&5
9792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9793 (exit $ac_status); } && {
9794 test -z "$ac_c_werror_flag" ||
9795 test ! -s conftest.err
9796 } && test -s conftest$ac_exeext &&
9797 $as_test_x conftest$ac_exeext; then
9798 eval "$as_ac_var=yes"
9799 else
9800 echo "$as_me: failed program was:" >&5
9801 sed 's/^/| /' conftest.$ac_ext >&5
9802
9803 eval "$as_ac_var=no"
9804 fi
9805
9806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9807 conftest$ac_exeext conftest.$ac_ext
9808 fi
9809 ac_res=`eval echo '${'$as_ac_var'}'`
9810 { echo "$as_me:$LINENO: result: $ac_res" >&5
9811 echo "${ECHO_T}$ac_res" >&6; }
9812 if test `eval echo '${'$as_ac_var'}'` = yes; then
9813 cat >>confdefs.h <<_ACEOF
9814 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9815 _ACEOF
9816
9817 fi
9818 done
9819
9820 { echo "$as_me:$LINENO: checking for working mmap" >&5
9821 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9822 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9823 echo $ECHO_N "(cached) $ECHO_C" >&6
9824 else
9825 if test "$cross_compiling" = yes; then
9826 ac_cv_func_mmap_fixed_mapped=no
9827 else
9828 cat >conftest.$ac_ext <<_ACEOF
9829 /* confdefs.h. */
9830 _ACEOF
9831 cat confdefs.h >>conftest.$ac_ext
9832 cat >>conftest.$ac_ext <<_ACEOF
9833 /* end confdefs.h. */
9834 $ac_includes_default
9835 /* malloc might have been renamed as rpl_malloc. */
9836 #undef malloc
9837
9838 /* Thanks to Mike Haertel and Jim Avera for this test.
9839 Here is a matrix of mmap possibilities:
9840 mmap private not fixed
9841 mmap private fixed at somewhere currently unmapped
9842 mmap private fixed at somewhere already mapped
9843 mmap shared not fixed
9844 mmap shared fixed at somewhere currently unmapped
9845 mmap shared fixed at somewhere already mapped
9846 For private mappings, we should verify that changes cannot be read()
9847 back from the file, nor mmap's back from the file at a different
9848 address. (There have been systems where private was not correctly
9849 implemented like the infamous i386 svr4.0, and systems where the
9850 VM page cache was not coherent with the file system buffer cache
9851 like early versions of FreeBSD and possibly contemporary NetBSD.)
9852 For shared mappings, we should conversely verify that changes get
9853 propagated back to all the places they're supposed to be.
9854
9855 Grep wants private fixed already mapped.
9856 The main things grep needs to know about mmap are:
9857 * does it exist and is it safe to write into the mmap'd area
9858 * how to use it (BSD variants) */
9859
9860 #include <fcntl.h>
9861 #include <sys/mman.h>
9862
9863 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9864 char *malloc ();
9865 #endif
9866
9867 /* This mess was copied from the GNU getpagesize.h. */
9868 #ifndef HAVE_GETPAGESIZE
9869 /* Assume that all systems that can run configure have sys/param.h. */
9870 # ifndef HAVE_SYS_PARAM_H
9871 # define HAVE_SYS_PARAM_H 1
9872 # endif
9873
9874 # ifdef _SC_PAGESIZE
9875 # define getpagesize() sysconf(_SC_PAGESIZE)
9876 # else /* no _SC_PAGESIZE */
9877 # ifdef HAVE_SYS_PARAM_H
9878 # include <sys/param.h>
9879 # ifdef EXEC_PAGESIZE
9880 # define getpagesize() EXEC_PAGESIZE
9881 # else /* no EXEC_PAGESIZE */
9882 # ifdef NBPG
9883 # define getpagesize() NBPG * CLSIZE
9884 # ifndef CLSIZE
9885 # define CLSIZE 1
9886 # endif /* no CLSIZE */
9887 # else /* no NBPG */
9888 # ifdef NBPC
9889 # define getpagesize() NBPC
9890 # else /* no NBPC */
9891 # ifdef PAGESIZE
9892 # define getpagesize() PAGESIZE
9893 # endif /* PAGESIZE */
9894 # endif /* no NBPC */
9895 # endif /* no NBPG */
9896 # endif /* no EXEC_PAGESIZE */
9897 # else /* no HAVE_SYS_PARAM_H */
9898 # define getpagesize() 8192 /* punt totally */
9899 # endif /* no HAVE_SYS_PARAM_H */
9900 # endif /* no _SC_PAGESIZE */
9901
9902 #endif /* no HAVE_GETPAGESIZE */
9903
9904 int
9905 main ()
9906 {
9907 char *data, *data2, *data3;
9908 int i, pagesize;
9909 int fd;
9910
9911 pagesize = getpagesize ();
9912
9913 /* First, make a file with some known garbage in it. */
9914 data = (char *) malloc (pagesize);
9915 if (!data)
9916 return 1;
9917 for (i = 0; i < pagesize; ++i)
9918 *(data + i) = rand ();
9919 umask (0);
9920 fd = creat ("conftest.mmap", 0600);
9921 if (fd < 0)
9922 return 1;
9923 if (write (fd, data, pagesize) != pagesize)
9924 return 1;
9925 close (fd);
9926
9927 /* Next, try to mmap the file at a fixed address which already has
9928 something else allocated at it. If we can, also make sure that
9929 we see the same garbage. */
9930 fd = open ("conftest.mmap", O_RDWR);
9931 if (fd < 0)
9932 return 1;
9933 data2 = (char *) malloc (2 * pagesize);
9934 if (!data2)
9935 return 1;
9936 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9937 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9938 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9939 return 1;
9940 for (i = 0; i < pagesize; ++i)
9941 if (*(data + i) != *(data2 + i))
9942 return 1;
9943
9944 /* Finally, make sure that changes to the mapped area do not
9945 percolate back to the file as seen by read(). (This is a bug on
9946 some variants of i386 svr4.0.) */
9947 for (i = 0; i < pagesize; ++i)
9948 *(data2 + i) = *(data2 + i) + 1;
9949 data3 = (char *) malloc (pagesize);
9950 if (!data3)
9951 return 1;
9952 if (read (fd, data3, pagesize) != pagesize)
9953 return 1;
9954 for (i = 0; i < pagesize; ++i)
9955 if (*(data + i) != *(data3 + i))
9956 return 1;
9957 close (fd);
9958 return 0;
9959 }
9960 _ACEOF
9961 rm -f conftest$ac_exeext
9962 if { (ac_try="$ac_link"
9963 case "(($ac_try" in
9964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9965 *) ac_try_echo=$ac_try;;
9966 esac
9967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9968 (eval "$ac_link") 2>&5
9969 ac_status=$?
9970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9971 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9972 { (case "(($ac_try" in
9973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9974 *) ac_try_echo=$ac_try;;
9975 esac
9976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9977 (eval "$ac_try") 2>&5
9978 ac_status=$?
9979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9980 (exit $ac_status); }; }; then
9981 ac_cv_func_mmap_fixed_mapped=yes
9982 else
9983 echo "$as_me: program exited with status $ac_status" >&5
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ( exit $ac_status )
9988 ac_cv_func_mmap_fixed_mapped=no
9989 fi
9990 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9991 fi
9992
9993
9994 fi
9995 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9996 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9997 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9998
9999 cat >>confdefs.h <<\_ACEOF
10000 #define HAVE_MMAP 1
10001 _ACEOF
10002
10003 fi
10004 rm -f conftest.mmap
10005
10006 if test $use_mmap_for_buffers = yes; then
10007 REL_ALLOC=no
10008 fi
10009
10010 LIBS="$libsrc_libs $LIBS"
10011
10012
10013 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10014 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10015 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10016 echo $ECHO_N "(cached) $ECHO_C" >&6
10017 else
10018 ac_check_lib_save_LIBS=$LIBS
10019 LIBS="-ldnet $LIBS"
10020 cat >conftest.$ac_ext <<_ACEOF
10021 /* confdefs.h. */
10022 _ACEOF
10023 cat confdefs.h >>conftest.$ac_ext
10024 cat >>conftest.$ac_ext <<_ACEOF
10025 /* end confdefs.h. */
10026
10027 /* Override any GCC internal prototype to avoid an error.
10028 Use char because int might match the return type of a GCC
10029 builtin and then its argument prototype would still apply. */
10030 #ifdef __cplusplus
10031 extern "C"
10032 #endif
10033 char dnet_ntoa ();
10034 int
10035 main ()
10036 {
10037 return dnet_ntoa ();
10038 ;
10039 return 0;
10040 }
10041 _ACEOF
10042 rm -f conftest.$ac_objext conftest$ac_exeext
10043 if { (ac_try="$ac_link"
10044 case "(($ac_try" in
10045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10046 *) ac_try_echo=$ac_try;;
10047 esac
10048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10049 (eval "$ac_link") 2>conftest.er1
10050 ac_status=$?
10051 grep -v '^ *+' conftest.er1 >conftest.err
10052 rm -f conftest.er1
10053 cat conftest.err >&5
10054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10055 (exit $ac_status); } && {
10056 test -z "$ac_c_werror_flag" ||
10057 test ! -s conftest.err
10058 } && test -s conftest$ac_exeext &&
10059 $as_test_x conftest$ac_exeext; then
10060 ac_cv_lib_dnet_dnet_ntoa=yes
10061 else
10062 echo "$as_me: failed program was:" >&5
10063 sed 's/^/| /' conftest.$ac_ext >&5
10064
10065 ac_cv_lib_dnet_dnet_ntoa=no
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10069 conftest$ac_exeext conftest.$ac_ext
10070 LIBS=$ac_check_lib_save_LIBS
10071 fi
10072 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10073 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10074 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10075 cat >>confdefs.h <<_ACEOF
10076 #define HAVE_LIBDNET 1
10077 _ACEOF
10078
10079 LIBS="-ldnet $LIBS"
10080
10081 fi
10082
10083
10084 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10085 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10086 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10087 echo $ECHO_N "(cached) $ECHO_C" >&6
10088 else
10089 ac_check_lib_save_LIBS=$LIBS
10090 LIBS="-lXbsd $LIBS"
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097
10098
10099 int
10100 main ()
10101 {
10102 return main ();
10103 ;
10104 return 0;
10105 }
10106 _ACEOF
10107 rm -f conftest.$ac_objext conftest$ac_exeext
10108 if { (ac_try="$ac_link"
10109 case "(($ac_try" in
10110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10111 *) ac_try_echo=$ac_try;;
10112 esac
10113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10114 (eval "$ac_link") 2>conftest.er1
10115 ac_status=$?
10116 grep -v '^ *+' conftest.er1 >conftest.err
10117 rm -f conftest.er1
10118 cat conftest.err >&5
10119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10120 (exit $ac_status); } && {
10121 test -z "$ac_c_werror_flag" ||
10122 test ! -s conftest.err
10123 } && test -s conftest$ac_exeext &&
10124 $as_test_x conftest$ac_exeext; then
10125 ac_cv_lib_Xbsd_main=yes
10126 else
10127 echo "$as_me: failed program was:" >&5
10128 sed 's/^/| /' conftest.$ac_ext >&5
10129
10130 ac_cv_lib_Xbsd_main=no
10131 fi
10132
10133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10134 conftest$ac_exeext conftest.$ac_ext
10135 LIBS=$ac_check_lib_save_LIBS
10136 fi
10137 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10138 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10139 if test $ac_cv_lib_Xbsd_main = yes; then
10140 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10141 fi
10142
10143
10144
10145 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10146 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10147 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10148 echo $ECHO_N "(cached) $ECHO_C" >&6
10149 else
10150 ac_check_lib_save_LIBS=$LIBS
10151 LIBS="-lpthreads $LIBS"
10152 cat >conftest.$ac_ext <<_ACEOF
10153 /* confdefs.h. */
10154 _ACEOF
10155 cat confdefs.h >>conftest.$ac_ext
10156 cat >>conftest.$ac_ext <<_ACEOF
10157 /* end confdefs.h. */
10158
10159 /* Override any GCC internal prototype to avoid an error.
10160 Use char because int might match the return type of a GCC
10161 builtin and then its argument prototype would still apply. */
10162 #ifdef __cplusplus
10163 extern "C"
10164 #endif
10165 char cma_open ();
10166 int
10167 main ()
10168 {
10169 return cma_open ();
10170 ;
10171 return 0;
10172 }
10173 _ACEOF
10174 rm -f conftest.$ac_objext conftest$ac_exeext
10175 if { (ac_try="$ac_link"
10176 case "(($ac_try" in
10177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10178 *) ac_try_echo=$ac_try;;
10179 esac
10180 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10181 (eval "$ac_link") 2>conftest.er1
10182 ac_status=$?
10183 grep -v '^ *+' conftest.er1 >conftest.err
10184 rm -f conftest.er1
10185 cat conftest.err >&5
10186 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10187 (exit $ac_status); } && {
10188 test -z "$ac_c_werror_flag" ||
10189 test ! -s conftest.err
10190 } && test -s conftest$ac_exeext &&
10191 $as_test_x conftest$ac_exeext; then
10192 ac_cv_lib_pthreads_cma_open=yes
10193 else
10194 echo "$as_me: failed program was:" >&5
10195 sed 's/^/| /' conftest.$ac_ext >&5
10196
10197 ac_cv_lib_pthreads_cma_open=no
10198 fi
10199
10200 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10201 conftest$ac_exeext conftest.$ac_ext
10202 LIBS=$ac_check_lib_save_LIBS
10203 fi
10204 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10205 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10206 if test $ac_cv_lib_pthreads_cma_open = yes; then
10207 cat >>confdefs.h <<_ACEOF
10208 #define HAVE_LIBPTHREADS 1
10209 _ACEOF
10210
10211 LIBS="-lpthreads $LIBS"
10212
10213 fi
10214
10215
10216 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10217 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10218 if test -d /usr/X386/include; then
10219 HAVE_XFREE386=yes
10220 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10221 else
10222 HAVE_XFREE386=no
10223 fi
10224 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10225 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10226
10227
10228 case ${host_os} in
10229 aix*)
10230 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10231 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10232 if test "${gdb_cv_bigtoc+set}" = set; then
10233 echo $ECHO_N "(cached) $ECHO_C" >&6
10234 else
10235
10236 case $GCC in
10237 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10238 *) gdb_cv_bigtoc=-bbigtoc ;;
10239 esac
10240
10241 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10242 cat >conftest.$ac_ext <<_ACEOF
10243 /* confdefs.h. */
10244 _ACEOF
10245 cat confdefs.h >>conftest.$ac_ext
10246 cat >>conftest.$ac_ext <<_ACEOF
10247 /* end confdefs.h. */
10248
10249 int
10250 main ()
10251 {
10252 int i;
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext &&
10274 $as_test_x conftest$ac_exeext; then
10275 :
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 gdb_cv_bigtoc=
10281 fi
10282
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10285
10286 fi
10287 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10288 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10289 ;;
10290 esac
10291
10292 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10293 # used for the tests that follow. We set them back to REAL_CFLAGS and
10294 # REAL_CPPFLAGS later on.
10295
10296 REAL_CPPFLAGS="$CPPFLAGS"
10297
10298 if test "${HAVE_X11}" = "yes"; then
10299 DEFS="$C_SWITCH_X_SITE $DEFS"
10300 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10301 LIBS="$LIBX $LIBS"
10302 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10303 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10304
10305 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10306 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10307 # but it's more convenient here to set LD_RUN_PATH
10308 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10309 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10310 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10311 export LD_RUN_PATH
10312 fi
10313
10314 if test "${opsys}" = "gnu-linux"; then
10315 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10316 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10317 cat >conftest.$ac_ext <<_ACEOF
10318 /* confdefs.h. */
10319 _ACEOF
10320 cat confdefs.h >>conftest.$ac_ext
10321 cat >>conftest.$ac_ext <<_ACEOF
10322 /* end confdefs.h. */
10323
10324 int
10325 main ()
10326 {
10327 XOpenDisplay ("foo");
10328 ;
10329 return 0;
10330 }
10331 _ACEOF
10332 rm -f conftest.$ac_objext conftest$ac_exeext
10333 if { (ac_try="$ac_link"
10334 case "(($ac_try" in
10335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10336 *) ac_try_echo=$ac_try;;
10337 esac
10338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10339 (eval "$ac_link") 2>conftest.er1
10340 ac_status=$?
10341 grep -v '^ *+' conftest.er1 >conftest.err
10342 rm -f conftest.er1
10343 cat conftest.err >&5
10344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10345 (exit $ac_status); } && {
10346 test -z "$ac_c_werror_flag" ||
10347 test ! -s conftest.err
10348 } && test -s conftest$ac_exeext &&
10349 $as_test_x conftest$ac_exeext; then
10350 xlinux_first_failure=no
10351 else
10352 echo "$as_me: failed program was:" >&5
10353 sed 's/^/| /' conftest.$ac_ext >&5
10354
10355 xlinux_first_failure=yes
10356 fi
10357
10358 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10359 conftest$ac_exeext conftest.$ac_ext
10360 if test "${xlinux_first_failure}" = "yes"; then
10361 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10362 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10363 OLD_CPPFLAGS="$CPPFLAGS"
10364 OLD_LIBS="$LIBS"
10365 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10366 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10367 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10368 LIBS="$LIBS -b i486-linuxaout"
10369 cat >conftest.$ac_ext <<_ACEOF
10370 /* confdefs.h. */
10371 _ACEOF
10372 cat confdefs.h >>conftest.$ac_ext
10373 cat >>conftest.$ac_ext <<_ACEOF
10374 /* end confdefs.h. */
10375
10376 int
10377 main ()
10378 {
10379 XOpenDisplay ("foo");
10380 ;
10381 return 0;
10382 }
10383 _ACEOF
10384 rm -f conftest.$ac_objext conftest$ac_exeext
10385 if { (ac_try="$ac_link"
10386 case "(($ac_try" in
10387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10388 *) ac_try_echo=$ac_try;;
10389 esac
10390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10391 (eval "$ac_link") 2>conftest.er1
10392 ac_status=$?
10393 grep -v '^ *+' conftest.er1 >conftest.err
10394 rm -f conftest.er1
10395 cat conftest.err >&5
10396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10397 (exit $ac_status); } && {
10398 test -z "$ac_c_werror_flag" ||
10399 test ! -s conftest.err
10400 } && test -s conftest$ac_exeext &&
10401 $as_test_x conftest$ac_exeext; then
10402 xlinux_second_failure=no
10403 else
10404 echo "$as_me: failed program was:" >&5
10405 sed 's/^/| /' conftest.$ac_ext >&5
10406
10407 xlinux_second_failure=yes
10408 fi
10409
10410 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10411 conftest$ac_exeext conftest.$ac_ext
10412 if test "${xlinux_second_failure}" = "yes"; then
10413 # If we get the same failure with -b, there is no use adding -b.
10414 # So take it out. This plays safe.
10415 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10416 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10417 CPPFLAGS="$OLD_CPPFLAGS"
10418 LIBS="$OLD_LIBS"
10419 { echo "$as_me:$LINENO: result: no" >&5
10420 echo "${ECHO_T}no" >&6; }
10421 else
10422 { echo "$as_me:$LINENO: result: yes" >&5
10423 echo "${ECHO_T}yes" >&6; }
10424 fi
10425 else
10426 { echo "$as_me:$LINENO: result: no" >&5
10427 echo "${ECHO_T}no" >&6; }
10428 fi
10429 fi
10430
10431 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10432 # header files included from there.
10433 { echo "$as_me:$LINENO: checking for Xkb" >&5
10434 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10435 cat >conftest.$ac_ext <<_ACEOF
10436 /* confdefs.h. */
10437 _ACEOF
10438 cat confdefs.h >>conftest.$ac_ext
10439 cat >>conftest.$ac_ext <<_ACEOF
10440 /* end confdefs.h. */
10441 #include <X11/Xlib.h>
10442 #include <X11/XKBlib.h>
10443 int
10444 main ()
10445 {
10446 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10447 ;
10448 return 0;
10449 }
10450 _ACEOF
10451 rm -f conftest.$ac_objext conftest$ac_exeext
10452 if { (ac_try="$ac_link"
10453 case "(($ac_try" in
10454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10455 *) ac_try_echo=$ac_try;;
10456 esac
10457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10458 (eval "$ac_link") 2>conftest.er1
10459 ac_status=$?
10460 grep -v '^ *+' conftest.er1 >conftest.err
10461 rm -f conftest.er1
10462 cat conftest.err >&5
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); } && {
10465 test -z "$ac_c_werror_flag" ||
10466 test ! -s conftest.err
10467 } && test -s conftest$ac_exeext &&
10468 $as_test_x conftest$ac_exeext; then
10469 emacs_xkb=yes
10470 else
10471 echo "$as_me: failed program was:" >&5
10472 sed 's/^/| /' conftest.$ac_ext >&5
10473
10474 emacs_xkb=no
10475 fi
10476
10477 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10478 conftest$ac_exeext conftest.$ac_ext
10479 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10480 echo "${ECHO_T}$emacs_xkb" >&6; }
10481 if test $emacs_xkb = yes; then
10482
10483 cat >>confdefs.h <<\_ACEOF
10484 #define HAVE_XKBGETKEYBOARD 1
10485 _ACEOF
10486
10487 fi
10488
10489
10490
10491
10492
10493 for ac_func in XrmSetDatabase XScreenResourceString \
10494 XScreenNumberOfScreen XSetWMProtocols
10495 do
10496 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10497 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10498 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10499 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10500 echo $ECHO_N "(cached) $ECHO_C" >&6
10501 else
10502 cat >conftest.$ac_ext <<_ACEOF
10503 /* confdefs.h. */
10504 _ACEOF
10505 cat confdefs.h >>conftest.$ac_ext
10506 cat >>conftest.$ac_ext <<_ACEOF
10507 /* end confdefs.h. */
10508 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10509 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10510 #define $ac_func innocuous_$ac_func
10511
10512 /* System header to define __stub macros and hopefully few prototypes,
10513 which can conflict with char $ac_func (); below.
10514 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10515 <limits.h> exists even on freestanding compilers. */
10516
10517 #ifdef __STDC__
10518 # include <limits.h>
10519 #else
10520 # include <assert.h>
10521 #endif
10522
10523 #undef $ac_func
10524
10525 /* Override any GCC internal prototype to avoid an error.
10526 Use char because int might match the return type of a GCC
10527 builtin and then its argument prototype would still apply. */
10528 #ifdef __cplusplus
10529 extern "C"
10530 #endif
10531 char $ac_func ();
10532 /* The GNU C library defines this for functions which it implements
10533 to always fail with ENOSYS. Some functions are actually named
10534 something starting with __ and the normal name is an alias. */
10535 #if defined __stub_$ac_func || defined __stub___$ac_func
10536 choke me
10537 #endif
10538
10539 int
10540 main ()
10541 {
10542 return $ac_func ();
10543 ;
10544 return 0;
10545 }
10546 _ACEOF
10547 rm -f conftest.$ac_objext conftest$ac_exeext
10548 if { (ac_try="$ac_link"
10549 case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_link") 2>conftest.er1
10555 ac_status=$?
10556 grep -v '^ *+' conftest.er1 >conftest.err
10557 rm -f conftest.er1
10558 cat conftest.err >&5
10559 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10560 (exit $ac_status); } && {
10561 test -z "$ac_c_werror_flag" ||
10562 test ! -s conftest.err
10563 } && test -s conftest$ac_exeext &&
10564 $as_test_x conftest$ac_exeext; then
10565 eval "$as_ac_var=yes"
10566 else
10567 echo "$as_me: failed program was:" >&5
10568 sed 's/^/| /' conftest.$ac_ext >&5
10569
10570 eval "$as_ac_var=no"
10571 fi
10572
10573 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10574 conftest$ac_exeext conftest.$ac_ext
10575 fi
10576 ac_res=`eval echo '${'$as_ac_var'}'`
10577 { echo "$as_me:$LINENO: result: $ac_res" >&5
10578 echo "${ECHO_T}$ac_res" >&6; }
10579 if test `eval echo '${'$as_ac_var'}'` = yes; then
10580 cat >>confdefs.h <<_ACEOF
10581 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10582 _ACEOF
10583
10584 fi
10585 done
10586
10587 fi
10588
10589 if test "${window_system}" = "x11"; then
10590 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10591 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10592 if test "${emacs_cv_x11_version_6+set}" = set; then
10593 echo $ECHO_N "(cached) $ECHO_C" >&6
10594 else
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601 #include <X11/Xlib.h>
10602 int
10603 main ()
10604 {
10605 #if XlibSpecificationRelease < 6
10606 fail;
10607 #endif
10608
10609 ;
10610 return 0;
10611 }
10612 _ACEOF
10613 rm -f conftest.$ac_objext conftest$ac_exeext
10614 if { (ac_try="$ac_link"
10615 case "(($ac_try" in
10616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10617 *) ac_try_echo=$ac_try;;
10618 esac
10619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10620 (eval "$ac_link") 2>conftest.er1
10621 ac_status=$?
10622 grep -v '^ *+' conftest.er1 >conftest.err
10623 rm -f conftest.er1
10624 cat conftest.err >&5
10625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10626 (exit $ac_status); } && {
10627 test -z "$ac_c_werror_flag" ||
10628 test ! -s conftest.err
10629 } && test -s conftest$ac_exeext &&
10630 $as_test_x conftest$ac_exeext; then
10631 emacs_cv_x11_version_6=yes
10632 else
10633 echo "$as_me: failed program was:" >&5
10634 sed 's/^/| /' conftest.$ac_ext >&5
10635
10636 emacs_cv_x11_version_6=no
10637 fi
10638
10639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10640 conftest$ac_exeext conftest.$ac_ext
10641 fi
10642
10643 if test $emacs_cv_x11_version_6 = yes; then
10644 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10645 echo "${ECHO_T}6 or newer" >&6; }
10646
10647 cat >>confdefs.h <<\_ACEOF
10648 #define HAVE_X11R6 1
10649 _ACEOF
10650
10651 else
10652 { echo "$as_me:$LINENO: result: before 6" >&5
10653 echo "${ECHO_T}before 6" >&6; }
10654 fi
10655 fi
10656
10657
10658 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10659 HAVE_RSVG=no
10660 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10661 if test "${with_rsvg}" != "no"; then
10662 RSVG_REQUIRED=2.0.0
10663 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10664
10665
10666 succeeded=no
10667
10668 # Extract the first word of "pkg-config", so it can be a program name with args.
10669 set dummy pkg-config; ac_word=$2
10670 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10671 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10672 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10673 echo $ECHO_N "(cached) $ECHO_C" >&6
10674 else
10675 case $PKG_CONFIG in
10676 [\\/]* | ?:[\\/]*)
10677 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10678 ;;
10679 *)
10680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10681 for as_dir in $PATH
10682 do
10683 IFS=$as_save_IFS
10684 test -z "$as_dir" && as_dir=.
10685 for ac_exec_ext in '' $ac_executable_extensions; do
10686 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10687 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10688 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10689 break 2
10690 fi
10691 done
10692 done
10693 IFS=$as_save_IFS
10694
10695 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10696 ;;
10697 esac
10698 fi
10699 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10700 if test -n "$PKG_CONFIG"; then
10701 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10702 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10703 else
10704 { echo "$as_me:$LINENO: result: no" >&5
10705 echo "${ECHO_T}no" >&6; }
10706 fi
10707
10708
10709
10710 if test "$PKG_CONFIG" = "no" ; then
10711 :
10712 else
10713 PKG_CONFIG_MIN_VERSION=0.9.0
10714 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10715 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10716 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10717
10718 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10719 { echo "$as_me:$LINENO: result: yes" >&5
10720 echo "${ECHO_T}yes" >&6; }
10721 succeeded=yes
10722
10723 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10724 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10725 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10726 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10727 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10728
10729 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10730 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10731 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10732 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10733 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10734 else
10735 { echo "$as_me:$LINENO: result: no" >&5
10736 echo "${ECHO_T}no" >&6; }
10737 RSVG_CFLAGS=""
10738 RSVG_LIBS=""
10739 ## If we have a custom action on failure, don't print errors, but
10740 ## do set a variable so people can do so.
10741 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10742
10743 fi
10744
10745
10746
10747 else
10748 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10749 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10750 fi
10751 fi
10752
10753 if test $succeeded = yes; then
10754 :
10755 else
10756 :
10757 fi
10758
10759
10760
10761
10762 if test ".${RSVG_CFLAGS}" != "."; then
10763 HAVE_RSVG=yes
10764
10765 cat >>confdefs.h <<\_ACEOF
10766 #define HAVE_RSVG 1
10767 _ACEOF
10768
10769 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10770 LIBS="$RSVG_LIBS $LIBS"
10771 fi
10772 fi
10773 fi
10774
10775
10776 HAVE_GTK=no
10777 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10778 USE_X_TOOLKIT=none
10779 fi
10780 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10781 test "$USE_X_TOOLKIT" = "maybe"; then
10782 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10783 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10784 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10785 { (exit 1); exit 1; }; };
10786 fi
10787 GLIB_REQUIRED=2.6
10788 GTK_REQUIRED=2.6
10789 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10790
10791
10792 succeeded=no
10793
10794 # Extract the first word of "pkg-config", so it can be a program name with args.
10795 set dummy pkg-config; ac_word=$2
10796 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10797 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10798 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10799 echo $ECHO_N "(cached) $ECHO_C" >&6
10800 else
10801 case $PKG_CONFIG in
10802 [\\/]* | ?:[\\/]*)
10803 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10804 ;;
10805 *)
10806 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10807 for as_dir in $PATH
10808 do
10809 IFS=$as_save_IFS
10810 test -z "$as_dir" && as_dir=.
10811 for ac_exec_ext in '' $ac_executable_extensions; do
10812 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10813 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10814 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10815 break 2
10816 fi
10817 done
10818 done
10819 IFS=$as_save_IFS
10820
10821 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10822 ;;
10823 esac
10824 fi
10825 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10826 if test -n "$PKG_CONFIG"; then
10827 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10828 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10829 else
10830 { echo "$as_me:$LINENO: result: no" >&5
10831 echo "${ECHO_T}no" >&6; }
10832 fi
10833
10834
10835
10836 if test "$PKG_CONFIG" = "no" ; then
10837 pkg_check_gtk=no
10838 else
10839 PKG_CONFIG_MIN_VERSION=0.9.0
10840 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10841 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10842 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10843
10844 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10845 { echo "$as_me:$LINENO: result: yes" >&5
10846 echo "${ECHO_T}yes" >&6; }
10847 succeeded=yes
10848
10849 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10850 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10851 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10852 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10853 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10854
10855 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10856 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10857 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10858 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10859 echo "${ECHO_T}$GTK_LIBS" >&6; }
10860 else
10861 { echo "$as_me:$LINENO: result: no" >&5
10862 echo "${ECHO_T}no" >&6; }
10863 GTK_CFLAGS=""
10864 GTK_LIBS=""
10865 ## If we have a custom action on failure, don't print errors, but
10866 ## do set a variable so people can do so.
10867 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10868
10869 fi
10870
10871
10872
10873 else
10874 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10875 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10876 fi
10877 fi
10878
10879 if test $succeeded = yes; then
10880 pkg_check_gtk=yes
10881 else
10882 pkg_check_gtk=no
10883 fi
10884
10885 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10886 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10887 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10888 { (exit 1); exit 1; }; }
10889 fi
10890 fi
10891
10892
10893 if test x"$pkg_check_gtk" = xyes; then
10894
10895
10896
10897 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10898 CFLAGS="$CFLAGS $GTK_CFLAGS"
10899 LIBS="$GTK_LIBS $LIBS"
10900 GTK_COMPILES=no
10901
10902 for ac_func in gtk_main
10903 do
10904 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10905 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10906 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10907 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10908 echo $ECHO_N "(cached) $ECHO_C" >&6
10909 else
10910 cat >conftest.$ac_ext <<_ACEOF
10911 /* confdefs.h. */
10912 _ACEOF
10913 cat confdefs.h >>conftest.$ac_ext
10914 cat >>conftest.$ac_ext <<_ACEOF
10915 /* end confdefs.h. */
10916 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10917 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10918 #define $ac_func innocuous_$ac_func
10919
10920 /* System header to define __stub macros and hopefully few prototypes,
10921 which can conflict with char $ac_func (); below.
10922 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10923 <limits.h> exists even on freestanding compilers. */
10924
10925 #ifdef __STDC__
10926 # include <limits.h>
10927 #else
10928 # include <assert.h>
10929 #endif
10930
10931 #undef $ac_func
10932
10933 /* Override any GCC internal prototype to avoid an error.
10934 Use char because int might match the return type of a GCC
10935 builtin and then its argument prototype would still apply. */
10936 #ifdef __cplusplus
10937 extern "C"
10938 #endif
10939 char $ac_func ();
10940 /* The GNU C library defines this for functions which it implements
10941 to always fail with ENOSYS. Some functions are actually named
10942 something starting with __ and the normal name is an alias. */
10943 #if defined __stub_$ac_func || defined __stub___$ac_func
10944 choke me
10945 #endif
10946
10947 int
10948 main ()
10949 {
10950 return $ac_func ();
10951 ;
10952 return 0;
10953 }
10954 _ACEOF
10955 rm -f conftest.$ac_objext conftest$ac_exeext
10956 if { (ac_try="$ac_link"
10957 case "(($ac_try" in
10958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10959 *) ac_try_echo=$ac_try;;
10960 esac
10961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10962 (eval "$ac_link") 2>conftest.er1
10963 ac_status=$?
10964 grep -v '^ *+' conftest.er1 >conftest.err
10965 rm -f conftest.er1
10966 cat conftest.err >&5
10967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10968 (exit $ac_status); } && {
10969 test -z "$ac_c_werror_flag" ||
10970 test ! -s conftest.err
10971 } && test -s conftest$ac_exeext &&
10972 $as_test_x conftest$ac_exeext; then
10973 eval "$as_ac_var=yes"
10974 else
10975 echo "$as_me: failed program was:" >&5
10976 sed 's/^/| /' conftest.$ac_ext >&5
10977
10978 eval "$as_ac_var=no"
10979 fi
10980
10981 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10982 conftest$ac_exeext conftest.$ac_ext
10983 fi
10984 ac_res=`eval echo '${'$as_ac_var'}'`
10985 { echo "$as_me:$LINENO: result: $ac_res" >&5
10986 echo "${ECHO_T}$ac_res" >&6; }
10987 if test `eval echo '${'$as_ac_var'}'` = yes; then
10988 cat >>confdefs.h <<_ACEOF
10989 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10990 _ACEOF
10991 GTK_COMPILES=yes
10992 fi
10993 done
10994
10995 if test "${GTK_COMPILES}" != "yes"; then
10996 if test "$USE_X_TOOLKIT" != "maybe"; then
10997 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10998 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10999 { (exit 1); exit 1; }; };
11000 fi
11001 else
11002 HAVE_GTK=yes
11003
11004 cat >>confdefs.h <<\_ACEOF
11005 #define HAVE_GTK 1
11006 _ACEOF
11007
11008 USE_X_TOOLKIT=none
11009 fi
11010
11011 fi
11012
11013
11014 if test "${HAVE_GTK}" = "yes"; then
11015
11016 if test "$with_toolkit_scroll_bars" != no; then
11017 with_toolkit_scroll_bars=yes
11018 fi
11019
11020 HAVE_GTK_MULTIDISPLAY=no
11021
11022 for ac_func in gdk_display_open
11023 do
11024 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11025 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11026 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11027 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11028 echo $ECHO_N "(cached) $ECHO_C" >&6
11029 else
11030 cat >conftest.$ac_ext <<_ACEOF
11031 /* confdefs.h. */
11032 _ACEOF
11033 cat confdefs.h >>conftest.$ac_ext
11034 cat >>conftest.$ac_ext <<_ACEOF
11035 /* end confdefs.h. */
11036 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11037 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11038 #define $ac_func innocuous_$ac_func
11039
11040 /* System header to define __stub macros and hopefully few prototypes,
11041 which can conflict with char $ac_func (); below.
11042 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11043 <limits.h> exists even on freestanding compilers. */
11044
11045 #ifdef __STDC__
11046 # include <limits.h>
11047 #else
11048 # include <assert.h>
11049 #endif
11050
11051 #undef $ac_func
11052
11053 /* Override any GCC internal prototype to avoid an error.
11054 Use char because int might match the return type of a GCC
11055 builtin and then its argument prototype would still apply. */
11056 #ifdef __cplusplus
11057 extern "C"
11058 #endif
11059 char $ac_func ();
11060 /* The GNU C library defines this for functions which it implements
11061 to always fail with ENOSYS. Some functions are actually named
11062 something starting with __ and the normal name is an alias. */
11063 #if defined __stub_$ac_func || defined __stub___$ac_func
11064 choke me
11065 #endif
11066
11067 int
11068 main ()
11069 {
11070 return $ac_func ();
11071 ;
11072 return 0;
11073 }
11074 _ACEOF
11075 rm -f conftest.$ac_objext conftest$ac_exeext
11076 if { (ac_try="$ac_link"
11077 case "(($ac_try" in
11078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11079 *) ac_try_echo=$ac_try;;
11080 esac
11081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11082 (eval "$ac_link") 2>conftest.er1
11083 ac_status=$?
11084 grep -v '^ *+' conftest.er1 >conftest.err
11085 rm -f conftest.er1
11086 cat conftest.err >&5
11087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11088 (exit $ac_status); } && {
11089 test -z "$ac_c_werror_flag" ||
11090 test ! -s conftest.err
11091 } && test -s conftest$ac_exeext &&
11092 $as_test_x conftest$ac_exeext; then
11093 eval "$as_ac_var=yes"
11094 else
11095 echo "$as_me: failed program was:" >&5
11096 sed 's/^/| /' conftest.$ac_ext >&5
11097
11098 eval "$as_ac_var=no"
11099 fi
11100
11101 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11102 conftest$ac_exeext conftest.$ac_ext
11103 fi
11104 ac_res=`eval echo '${'$as_ac_var'}'`
11105 { echo "$as_me:$LINENO: result: $ac_res" >&5
11106 echo "${ECHO_T}$ac_res" >&6; }
11107 if test `eval echo '${'$as_ac_var'}'` = yes; then
11108 cat >>confdefs.h <<_ACEOF
11109 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11110 _ACEOF
11111 HAVE_GTK_MULTIDISPLAY=yes
11112 fi
11113 done
11114
11115 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11116
11117 cat >>confdefs.h <<\_ACEOF
11118 #define HAVE_GTK_MULTIDISPLAY 1
11119 _ACEOF
11120
11121 fi
11122
11123 HAVE_GTK_FILE_SELECTION=no
11124
11125 for ac_func in gtk_file_selection_new
11126 do
11127 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11128 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11129 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11130 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11131 echo $ECHO_N "(cached) $ECHO_C" >&6
11132 else
11133 cat >conftest.$ac_ext <<_ACEOF
11134 /* confdefs.h. */
11135 _ACEOF
11136 cat confdefs.h >>conftest.$ac_ext
11137 cat >>conftest.$ac_ext <<_ACEOF
11138 /* end confdefs.h. */
11139 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11140 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11141 #define $ac_func innocuous_$ac_func
11142
11143 /* System header to define __stub macros and hopefully few prototypes,
11144 which can conflict with char $ac_func (); below.
11145 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11146 <limits.h> exists even on freestanding compilers. */
11147
11148 #ifdef __STDC__
11149 # include <limits.h>
11150 #else
11151 # include <assert.h>
11152 #endif
11153
11154 #undef $ac_func
11155
11156 /* Override any GCC internal prototype to avoid an error.
11157 Use char because int might match the return type of a GCC
11158 builtin and then its argument prototype would still apply. */
11159 #ifdef __cplusplus
11160 extern "C"
11161 #endif
11162 char $ac_func ();
11163 /* The GNU C library defines this for functions which it implements
11164 to always fail with ENOSYS. Some functions are actually named
11165 something starting with __ and the normal name is an alias. */
11166 #if defined __stub_$ac_func || defined __stub___$ac_func
11167 choke me
11168 #endif
11169
11170 int
11171 main ()
11172 {
11173 return $ac_func ();
11174 ;
11175 return 0;
11176 }
11177 _ACEOF
11178 rm -f conftest.$ac_objext conftest$ac_exeext
11179 if { (ac_try="$ac_link"
11180 case "(($ac_try" in
11181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11182 *) ac_try_echo=$ac_try;;
11183 esac
11184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11185 (eval "$ac_link") 2>conftest.er1
11186 ac_status=$?
11187 grep -v '^ *+' conftest.er1 >conftest.err
11188 rm -f conftest.er1
11189 cat conftest.err >&5
11190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11191 (exit $ac_status); } && {
11192 test -z "$ac_c_werror_flag" ||
11193 test ! -s conftest.err
11194 } && test -s conftest$ac_exeext &&
11195 $as_test_x conftest$ac_exeext; then
11196 eval "$as_ac_var=yes"
11197 else
11198 echo "$as_me: failed program was:" >&5
11199 sed 's/^/| /' conftest.$ac_ext >&5
11200
11201 eval "$as_ac_var=no"
11202 fi
11203
11204 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11205 conftest$ac_exeext conftest.$ac_ext
11206 fi
11207 ac_res=`eval echo '${'$as_ac_var'}'`
11208 { echo "$as_me:$LINENO: result: $ac_res" >&5
11209 echo "${ECHO_T}$ac_res" >&6; }
11210 if test `eval echo '${'$as_ac_var'}'` = yes; then
11211 cat >>confdefs.h <<_ACEOF
11212 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11213 _ACEOF
11214 HAVE_GTK_FILE_SELECTION=yes
11215 fi
11216 done
11217
11218
11219 HAVE_GTK_FILE_CHOOSER=no
11220
11221 for ac_func in gtk_file_chooser_dialog_new
11222 do
11223 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11224 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11225 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11226 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11227 echo $ECHO_N "(cached) $ECHO_C" >&6
11228 else
11229 cat >conftest.$ac_ext <<_ACEOF
11230 /* confdefs.h. */
11231 _ACEOF
11232 cat confdefs.h >>conftest.$ac_ext
11233 cat >>conftest.$ac_ext <<_ACEOF
11234 /* end confdefs.h. */
11235 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11236 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11237 #define $ac_func innocuous_$ac_func
11238
11239 /* System header to define __stub macros and hopefully few prototypes,
11240 which can conflict with char $ac_func (); below.
11241 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11242 <limits.h> exists even on freestanding compilers. */
11243
11244 #ifdef __STDC__
11245 # include <limits.h>
11246 #else
11247 # include <assert.h>
11248 #endif
11249
11250 #undef $ac_func
11251
11252 /* Override any GCC internal prototype to avoid an error.
11253 Use char because int might match the return type of a GCC
11254 builtin and then its argument prototype would still apply. */
11255 #ifdef __cplusplus
11256 extern "C"
11257 #endif
11258 char $ac_func ();
11259 /* The GNU C library defines this for functions which it implements
11260 to always fail with ENOSYS. Some functions are actually named
11261 something starting with __ and the normal name is an alias. */
11262 #if defined __stub_$ac_func || defined __stub___$ac_func
11263 choke me
11264 #endif
11265
11266 int
11267 main ()
11268 {
11269 return $ac_func ();
11270 ;
11271 return 0;
11272 }
11273 _ACEOF
11274 rm -f conftest.$ac_objext conftest$ac_exeext
11275 if { (ac_try="$ac_link"
11276 case "(($ac_try" in
11277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11278 *) ac_try_echo=$ac_try;;
11279 esac
11280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11281 (eval "$ac_link") 2>conftest.er1
11282 ac_status=$?
11283 grep -v '^ *+' conftest.er1 >conftest.err
11284 rm -f conftest.er1
11285 cat conftest.err >&5
11286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11287 (exit $ac_status); } && {
11288 test -z "$ac_c_werror_flag" ||
11289 test ! -s conftest.err
11290 } && test -s conftest$ac_exeext &&
11291 $as_test_x conftest$ac_exeext; then
11292 eval "$as_ac_var=yes"
11293 else
11294 echo "$as_me: failed program was:" >&5
11295 sed 's/^/| /' conftest.$ac_ext >&5
11296
11297 eval "$as_ac_var=no"
11298 fi
11299
11300 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11301 conftest$ac_exeext conftest.$ac_ext
11302 fi
11303 ac_res=`eval echo '${'$as_ac_var'}'`
11304 { echo "$as_me:$LINENO: result: $ac_res" >&5
11305 echo "${ECHO_T}$ac_res" >&6; }
11306 if test `eval echo '${'$as_ac_var'}'` = yes; then
11307 cat >>confdefs.h <<_ACEOF
11308 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11309 _ACEOF
11310 HAVE_GTK_FILE_CHOOSER=yes
11311 fi
11312 done
11313
11314
11315 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11316 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11317
11318 cat >>confdefs.h <<\_ACEOF
11319 #define HAVE_GTK_FILE_BOTH 1
11320 _ACEOF
11321
11322 fi
11323
11324 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11325 HAVE_GTK_AND_PTHREAD=no
11326
11327 for ac_header in pthread.h
11328 do
11329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11334 echo $ECHO_N "(cached) $ECHO_C" >&6
11335 fi
11336 ac_res=`eval echo '${'$as_ac_Header'}'`
11337 { echo "$as_me:$LINENO: result: $ac_res" >&5
11338 echo "${ECHO_T}$ac_res" >&6; }
11339 else
11340 # Is the header compilable?
11341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 $ac_includes_default
11350 #include <$ac_header>
11351 _ACEOF
11352 rm -f conftest.$ac_objext
11353 if { (ac_try="$ac_compile"
11354 case "(($ac_try" in
11355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11356 *) ac_try_echo=$ac_try;;
11357 esac
11358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11359 (eval "$ac_compile") 2>conftest.er1
11360 ac_status=$?
11361 grep -v '^ *+' conftest.er1 >conftest.err
11362 rm -f conftest.er1
11363 cat conftest.err >&5
11364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11365 (exit $ac_status); } && {
11366 test -z "$ac_c_werror_flag" ||
11367 test ! -s conftest.err
11368 } && test -s conftest.$ac_objext; then
11369 ac_header_compiler=yes
11370 else
11371 echo "$as_me: failed program was:" >&5
11372 sed 's/^/| /' conftest.$ac_ext >&5
11373
11374 ac_header_compiler=no
11375 fi
11376
11377 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11379 echo "${ECHO_T}$ac_header_compiler" >&6; }
11380
11381 # Is the header present?
11382 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11383 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11384 cat >conftest.$ac_ext <<_ACEOF
11385 /* confdefs.h. */
11386 _ACEOF
11387 cat confdefs.h >>conftest.$ac_ext
11388 cat >>conftest.$ac_ext <<_ACEOF
11389 /* end confdefs.h. */
11390 #include <$ac_header>
11391 _ACEOF
11392 if { (ac_try="$ac_cpp conftest.$ac_ext"
11393 case "(($ac_try" in
11394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11395 *) ac_try_echo=$ac_try;;
11396 esac
11397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11398 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11399 ac_status=$?
11400 grep -v '^ *+' conftest.er1 >conftest.err
11401 rm -f conftest.er1
11402 cat conftest.err >&5
11403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404 (exit $ac_status); } >/dev/null && {
11405 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11406 test ! -s conftest.err
11407 }; then
11408 ac_header_preproc=yes
11409 else
11410 echo "$as_me: failed program was:" >&5
11411 sed 's/^/| /' conftest.$ac_ext >&5
11412
11413 ac_header_preproc=no
11414 fi
11415
11416 rm -f conftest.err conftest.$ac_ext
11417 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11418 echo "${ECHO_T}$ac_header_preproc" >&6; }
11419
11420 # So? What about this header?
11421 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11422 yes:no: )
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11424 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11425 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11426 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11427 ac_header_preproc=yes
11428 ;;
11429 no:yes:* )
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11431 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11433 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11435 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11437 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11439 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11440 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11441 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11442
11443 ;;
11444 esac
11445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11448 echo $ECHO_N "(cached) $ECHO_C" >&6
11449 else
11450 eval "$as_ac_Header=\$ac_header_preproc"
11451 fi
11452 ac_res=`eval echo '${'$as_ac_Header'}'`
11453 { echo "$as_me:$LINENO: result: $ac_res" >&5
11454 echo "${ECHO_T}$ac_res" >&6; }
11455
11456 fi
11457 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11458 cat >>confdefs.h <<_ACEOF
11459 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11460 _ACEOF
11461
11462 fi
11463
11464 done
11465
11466 if test "$ac_cv_header_pthread_h"; then
11467 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11468 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11469 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11470 echo $ECHO_N "(cached) $ECHO_C" >&6
11471 else
11472 ac_check_lib_save_LIBS=$LIBS
11473 LIBS="-lpthread $LIBS"
11474 cat >conftest.$ac_ext <<_ACEOF
11475 /* confdefs.h. */
11476 _ACEOF
11477 cat confdefs.h >>conftest.$ac_ext
11478 cat >>conftest.$ac_ext <<_ACEOF
11479 /* end confdefs.h. */
11480
11481 /* Override any GCC internal prototype to avoid an error.
11482 Use char because int might match the return type of a GCC
11483 builtin and then its argument prototype would still apply. */
11484 #ifdef __cplusplus
11485 extern "C"
11486 #endif
11487 char pthread_self ();
11488 int
11489 main ()
11490 {
11491 return pthread_self ();
11492 ;
11493 return 0;
11494 }
11495 _ACEOF
11496 rm -f conftest.$ac_objext conftest$ac_exeext
11497 if { (ac_try="$ac_link"
11498 case "(($ac_try" in
11499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11500 *) ac_try_echo=$ac_try;;
11501 esac
11502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11503 (eval "$ac_link") 2>conftest.er1
11504 ac_status=$?
11505 grep -v '^ *+' conftest.er1 >conftest.err
11506 rm -f conftest.er1
11507 cat conftest.err >&5
11508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11509 (exit $ac_status); } && {
11510 test -z "$ac_c_werror_flag" ||
11511 test ! -s conftest.err
11512 } && test -s conftest$ac_exeext &&
11513 $as_test_x conftest$ac_exeext; then
11514 ac_cv_lib_pthread_pthread_self=yes
11515 else
11516 echo "$as_me: failed program was:" >&5
11517 sed 's/^/| /' conftest.$ac_ext >&5
11518
11519 ac_cv_lib_pthread_pthread_self=no
11520 fi
11521
11522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11523 conftest$ac_exeext conftest.$ac_ext
11524 LIBS=$ac_check_lib_save_LIBS
11525 fi
11526 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11527 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11528 if test $ac_cv_lib_pthread_pthread_self = yes; then
11529 HAVE_GTK_AND_PTHREAD=yes
11530 fi
11531
11532 fi
11533 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11534 case "${canonical}" in
11535 *-hpux*) ;;
11536 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11537 esac
11538
11539 cat >>confdefs.h <<\_ACEOF
11540 #define HAVE_GTK_AND_PTHREAD 1
11541 _ACEOF
11542
11543 fi
11544 fi
11545 fi
11546
11547 HAVE_DBUS=no
11548 if test "${with_dbus}" = "yes"; then
11549
11550 succeeded=no
11551
11552 # Extract the first word of "pkg-config", so it can be a program name with args.
11553 set dummy pkg-config; ac_word=$2
11554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11556 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11557 echo $ECHO_N "(cached) $ECHO_C" >&6
11558 else
11559 case $PKG_CONFIG in
11560 [\\/]* | ?:[\\/]*)
11561 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11562 ;;
11563 *)
11564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11565 for as_dir in $PATH
11566 do
11567 IFS=$as_save_IFS
11568 test -z "$as_dir" && as_dir=.
11569 for ac_exec_ext in '' $ac_executable_extensions; do
11570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11571 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11572 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11573 break 2
11574 fi
11575 done
11576 done
11577 IFS=$as_save_IFS
11578
11579 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11580 ;;
11581 esac
11582 fi
11583 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11584 if test -n "$PKG_CONFIG"; then
11585 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11586 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11587 else
11588 { echo "$as_me:$LINENO: result: no" >&5
11589 echo "${ECHO_T}no" >&6; }
11590 fi
11591
11592
11593
11594 if test "$PKG_CONFIG" = "no" ; then
11595 HAVE_DBUS=no
11596 else
11597 PKG_CONFIG_MIN_VERSION=0.9.0
11598 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11599 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11600 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11601
11602 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11603 { echo "$as_me:$LINENO: result: yes" >&5
11604 echo "${ECHO_T}yes" >&6; }
11605 succeeded=yes
11606
11607 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11608 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11609 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11610 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11611 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11612
11613 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11614 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11615 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11616 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11617 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11618 else
11619 { echo "$as_me:$LINENO: result: no" >&5
11620 echo "${ECHO_T}no" >&6; }
11621 DBUS_CFLAGS=""
11622 DBUS_LIBS=""
11623 ## If we have a custom action on failure, don't print errors, but
11624 ## do set a variable so people can do so.
11625 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11626
11627 fi
11628
11629
11630
11631 else
11632 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11633 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11634 fi
11635 fi
11636
11637 if test $succeeded = yes; then
11638 HAVE_DBUS=yes
11639 else
11640 HAVE_DBUS=no
11641 fi
11642
11643 if test "$HAVE_DBUS" = yes; then
11644
11645 cat >>confdefs.h <<\_ACEOF
11646 #define HAVE_DBUS 1
11647 _ACEOF
11648
11649 fi
11650 fi
11651
11652 ### Link with -lXft if available to work around a bug.
11653 HAVE_XFT=maybe
11654 if test "${HAVE_GTK}" = "yes"; then
11655
11656 succeeded=no
11657
11658 # Extract the first word of "pkg-config", so it can be a program name with args.
11659 set dummy pkg-config; ac_word=$2
11660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11662 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11663 echo $ECHO_N "(cached) $ECHO_C" >&6
11664 else
11665 case $PKG_CONFIG in
11666 [\\/]* | ?:[\\/]*)
11667 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11668 ;;
11669 *)
11670 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11671 for as_dir in $PATH
11672 do
11673 IFS=$as_save_IFS
11674 test -z "$as_dir" && as_dir=.
11675 for ac_exec_ext in '' $ac_executable_extensions; do
11676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11677 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11679 break 2
11680 fi
11681 done
11682 done
11683 IFS=$as_save_IFS
11684
11685 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11686 ;;
11687 esac
11688 fi
11689 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11690 if test -n "$PKG_CONFIG"; then
11691 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11692 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11693 else
11694 { echo "$as_me:$LINENO: result: no" >&5
11695 echo "${ECHO_T}no" >&6; }
11696 fi
11697
11698
11699
11700 if test "$PKG_CONFIG" = "no" ; then
11701 HAVE_XFT=no
11702 else
11703 PKG_CONFIG_MIN_VERSION=0.9.0
11704 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11705 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11706 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11707
11708 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11709 { echo "$as_me:$LINENO: result: yes" >&5
11710 echo "${ECHO_T}yes" >&6; }
11711 succeeded=yes
11712
11713 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11714 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11715 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11716 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11717 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11718
11719 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11720 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11721 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11722 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11723 echo "${ECHO_T}$XFT_LIBS" >&6; }
11724 else
11725 { echo "$as_me:$LINENO: result: no" >&5
11726 echo "${ECHO_T}no" >&6; }
11727 XFT_CFLAGS=""
11728 XFT_LIBS=""
11729 ## If we have a custom action on failure, don't print errors, but
11730 ## do set a variable so people can do so.
11731 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11732
11733 fi
11734
11735
11736
11737 else
11738 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11739 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11740 fi
11741 fi
11742
11743 if test $succeeded = yes; then
11744 :
11745 else
11746 HAVE_XFT=no
11747 fi
11748
11749 if test "$HAVE_XFT" != no; then
11750 OLD_CFLAGS="$CPPFLAGS"
11751 OLD_CPPFLAGS="$CFLAGS"
11752 OLD_LIBS="$LIBS"
11753 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11754 CFLAGS="$CFLAGS $XFT_CFLAGS"
11755 LIBS="$XFT_LIBS $LIBS"
11756 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11757 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11758 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11759 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11760 echo $ECHO_N "(cached) $ECHO_C" >&6
11761 fi
11762 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11763 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11764 else
11765 # Is the header compilable?
11766 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11767 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11768 cat >conftest.$ac_ext <<_ACEOF
11769 /* confdefs.h. */
11770 _ACEOF
11771 cat confdefs.h >>conftest.$ac_ext
11772 cat >>conftest.$ac_ext <<_ACEOF
11773 /* end confdefs.h. */
11774 $ac_includes_default
11775 #include <X11/Xft/Xft.h>
11776 _ACEOF
11777 rm -f conftest.$ac_objext
11778 if { (ac_try="$ac_compile"
11779 case "(($ac_try" in
11780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11781 *) ac_try_echo=$ac_try;;
11782 esac
11783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11784 (eval "$ac_compile") 2>conftest.er1
11785 ac_status=$?
11786 grep -v '^ *+' conftest.er1 >conftest.err
11787 rm -f conftest.er1
11788 cat conftest.err >&5
11789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11790 (exit $ac_status); } && {
11791 test -z "$ac_c_werror_flag" ||
11792 test ! -s conftest.err
11793 } && test -s conftest.$ac_objext; then
11794 ac_header_compiler=yes
11795 else
11796 echo "$as_me: failed program was:" >&5
11797 sed 's/^/| /' conftest.$ac_ext >&5
11798
11799 ac_header_compiler=no
11800 fi
11801
11802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11804 echo "${ECHO_T}$ac_header_compiler" >&6; }
11805
11806 # Is the header present?
11807 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11808 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11809 cat >conftest.$ac_ext <<_ACEOF
11810 /* confdefs.h. */
11811 _ACEOF
11812 cat confdefs.h >>conftest.$ac_ext
11813 cat >>conftest.$ac_ext <<_ACEOF
11814 /* end confdefs.h. */
11815 #include <X11/Xft/Xft.h>
11816 _ACEOF
11817 if { (ac_try="$ac_cpp conftest.$ac_ext"
11818 case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11824 ac_status=$?
11825 grep -v '^ *+' conftest.er1 >conftest.err
11826 rm -f conftest.er1
11827 cat conftest.err >&5
11828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11829 (exit $ac_status); } >/dev/null && {
11830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11831 test ! -s conftest.err
11832 }; then
11833 ac_header_preproc=yes
11834 else
11835 echo "$as_me: failed program was:" >&5
11836 sed 's/^/| /' conftest.$ac_ext >&5
11837
11838 ac_header_preproc=no
11839 fi
11840
11841 rm -f conftest.err conftest.$ac_ext
11842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11843 echo "${ECHO_T}$ac_header_preproc" >&6; }
11844
11845 # So? What about this header?
11846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11847 yes:no: )
11848 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11849 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11852 ac_header_preproc=yes
11853 ;;
11854 no:yes:* )
11855 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11856 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11865 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11866 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11867
11868 ;;
11869 esac
11870 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11871 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11872 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11873 echo $ECHO_N "(cached) $ECHO_C" >&6
11874 else
11875 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11876 fi
11877 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11878 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11879
11880 fi
11881 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11882 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11883 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11884 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11885 echo $ECHO_N "(cached) $ECHO_C" >&6
11886 else
11887 ac_check_lib_save_LIBS=$LIBS
11888 LIBS="-lXft $XFT_LIBS $LIBS"
11889 cat >conftest.$ac_ext <<_ACEOF
11890 /* confdefs.h. */
11891 _ACEOF
11892 cat confdefs.h >>conftest.$ac_ext
11893 cat >>conftest.$ac_ext <<_ACEOF
11894 /* end confdefs.h. */
11895
11896 /* Override any GCC internal prototype to avoid an error.
11897 Use char because int might match the return type of a GCC
11898 builtin and then its argument prototype would still apply. */
11899 #ifdef __cplusplus
11900 extern "C"
11901 #endif
11902 char XftFontOpen ();
11903 int
11904 main ()
11905 {
11906 return XftFontOpen ();
11907 ;
11908 return 0;
11909 }
11910 _ACEOF
11911 rm -f conftest.$ac_objext conftest$ac_exeext
11912 if { (ac_try="$ac_link"
11913 case "(($ac_try" in
11914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11915 *) ac_try_echo=$ac_try;;
11916 esac
11917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11918 (eval "$ac_link") 2>conftest.er1
11919 ac_status=$?
11920 grep -v '^ *+' conftest.er1 >conftest.err
11921 rm -f conftest.er1
11922 cat conftest.err >&5
11923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11924 (exit $ac_status); } && {
11925 test -z "$ac_c_werror_flag" ||
11926 test ! -s conftest.err
11927 } && test -s conftest$ac_exeext &&
11928 $as_test_x conftest$ac_exeext; then
11929 ac_cv_lib_Xft_XftFontOpen=yes
11930 else
11931 echo "$as_me: failed program was:" >&5
11932 sed 's/^/| /' conftest.$ac_ext >&5
11933
11934 ac_cv_lib_Xft_XftFontOpen=no
11935 fi
11936
11937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11938 conftest$ac_exeext conftest.$ac_ext
11939 LIBS=$ac_check_lib_save_LIBS
11940 fi
11941 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11942 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11943 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11944 HAVE_XFT=yes
11945 fi
11946
11947 fi
11948
11949
11950
11951 if test "${HAVE_XFT}" = "yes"; then
11952
11953 cat >>confdefs.h <<\_ACEOF
11954 #define HAVE_XFT 1
11955 _ACEOF
11956
11957
11958 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11959 else
11960 CFLAGS="$OLD_CPPFLAGS"
11961 CFLAGS="$OLD_CFLAGS"
11962 LIBS="$OLD_LIBS"
11963 fi
11964 fi
11965 fi
11966
11967 HAVE_XAW3D=no
11968 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11969 if test "$with_xaw3d" != no; then
11970 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11971 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11972 if test "${emacs_cv_xaw3d+set}" = set; then
11973 echo $ECHO_N "(cached) $ECHO_C" >&6
11974 else
11975 cat >conftest.$ac_ext <<_ACEOF
11976 /* confdefs.h. */
11977 _ACEOF
11978 cat confdefs.h >>conftest.$ac_ext
11979 cat >>conftest.$ac_ext <<_ACEOF
11980 /* end confdefs.h. */
11981
11982 #include <X11/Intrinsic.h>
11983 #include <X11/Xaw3d/Simple.h>
11984 int
11985 main ()
11986 {
11987
11988 ;
11989 return 0;
11990 }
11991 _ACEOF
11992 rm -f conftest.$ac_objext conftest$ac_exeext
11993 if { (ac_try="$ac_link"
11994 case "(($ac_try" in
11995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11996 *) ac_try_echo=$ac_try;;
11997 esac
11998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11999 (eval "$ac_link") 2>conftest.er1
12000 ac_status=$?
12001 grep -v '^ *+' conftest.er1 >conftest.err
12002 rm -f conftest.er1
12003 cat conftest.err >&5
12004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12005 (exit $ac_status); } && {
12006 test -z "$ac_c_werror_flag" ||
12007 test ! -s conftest.err
12008 } && test -s conftest$ac_exeext &&
12009 $as_test_x conftest$ac_exeext; then
12010 emacs_cv_xaw3d=yes
12011 else
12012 echo "$as_me: failed program was:" >&5
12013 sed 's/^/| /' conftest.$ac_ext >&5
12014
12015 emacs_cv_xaw3d=no
12016 fi
12017
12018 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12019 conftest$ac_exeext conftest.$ac_ext
12020 fi
12021
12022 else
12023 emacs_cv_xaw3d=no
12024 fi
12025 if test $emacs_cv_xaw3d = yes; then
12026 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12027 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12028 USE_X_TOOLKIT=LUCID
12029 HAVE_XAW3D=yes
12030
12031 cat >>confdefs.h <<\_ACEOF
12032 #define HAVE_XAW3D 1
12033 _ACEOF
12034
12035 else
12036 { echo "$as_me:$LINENO: result: no" >&5
12037 echo "${ECHO_T}no" >&6; }
12038 { echo "$as_me:$LINENO: checking for libXaw" >&5
12039 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12040 if test "${emacs_cv_xaw+set}" = set; then
12041 echo $ECHO_N "(cached) $ECHO_C" >&6
12042 else
12043 cat >conftest.$ac_ext <<_ACEOF
12044 /* confdefs.h. */
12045 _ACEOF
12046 cat confdefs.h >>conftest.$ac_ext
12047 cat >>conftest.$ac_ext <<_ACEOF
12048 /* end confdefs.h. */
12049
12050 #include <X11/Intrinsic.h>
12051 #include <X11/Xaw/Simple.h>
12052 int
12053 main ()
12054 {
12055
12056 ;
12057 return 0;
12058 }
12059 _ACEOF
12060 rm -f conftest.$ac_objext conftest$ac_exeext
12061 if { (ac_try="$ac_link"
12062 case "(($ac_try" in
12063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12064 *) ac_try_echo=$ac_try;;
12065 esac
12066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12067 (eval "$ac_link") 2>conftest.er1
12068 ac_status=$?
12069 grep -v '^ *+' conftest.er1 >conftest.err
12070 rm -f conftest.er1
12071 cat conftest.err >&5
12072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12073 (exit $ac_status); } && {
12074 test -z "$ac_c_werror_flag" ||
12075 test ! -s conftest.err
12076 } && test -s conftest$ac_exeext &&
12077 $as_test_x conftest$ac_exeext; then
12078 emacs_cv_xaw=yes
12079 else
12080 echo "$as_me: failed program was:" >&5
12081 sed 's/^/| /' conftest.$ac_ext >&5
12082
12083 emacs_cv_xaw=no
12084 fi
12085
12086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12087 conftest$ac_exeext conftest.$ac_ext
12088 fi
12089
12090 if test $emacs_cv_xaw = yes; then
12091 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12092 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12093 USE_X_TOOLKIT=LUCID
12094 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12095 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12096 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12097 { (exit 1); exit 1; }; }
12098 else
12099 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12100 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12101 USE_X_TOOLKIT=none
12102 fi
12103 fi
12104 fi
12105
12106 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12107
12108 if test "${USE_X_TOOLKIT}" != "none"; then
12109 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12110 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12111 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12112 echo $ECHO_N "(cached) $ECHO_C" >&6
12113 else
12114 cat >conftest.$ac_ext <<_ACEOF
12115 /* confdefs.h. */
12116 _ACEOF
12117 cat confdefs.h >>conftest.$ac_ext
12118 cat >>conftest.$ac_ext <<_ACEOF
12119 /* end confdefs.h. */
12120 #include <X11/Intrinsic.h>
12121 int
12122 main ()
12123 {
12124 #if XtSpecificationRelease < 6
12125 fail;
12126 #endif
12127
12128 ;
12129 return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest$ac_exeext &&
12149 $as_test_x conftest$ac_exeext; then
12150 emacs_cv_x11_toolkit_version_6=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 emacs_cv_x11_toolkit_version_6=no
12156 fi
12157
12158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160 fi
12161
12162 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12163 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12164 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12165 echo "${ECHO_T}6 or newer" >&6; }
12166
12167 cat >>confdefs.h <<\_ACEOF
12168 #define HAVE_X11XTR6 1
12169 _ACEOF
12170
12171 else
12172 { echo "$as_me:$LINENO: result: before 6" >&5
12173 echo "${ECHO_T}before 6" >&6; }
12174 fi
12175
12176 OLDLIBS="$LIBS"
12177 if test x$HAVE_X11XTR6 = xyes; then
12178 LIBS="-lXt -lSM -lICE $LIBS"
12179 else
12180 LIBS="-lXt $LIBS"
12181 fi
12182
12183 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12184 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12185 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12186 echo $ECHO_N "(cached) $ECHO_C" >&6
12187 else
12188 ac_check_lib_save_LIBS=$LIBS
12189 LIBS="-lXmu $LIBS"
12190 cat >conftest.$ac_ext <<_ACEOF
12191 /* confdefs.h. */
12192 _ACEOF
12193 cat confdefs.h >>conftest.$ac_ext
12194 cat >>conftest.$ac_ext <<_ACEOF
12195 /* end confdefs.h. */
12196
12197 /* Override any GCC internal prototype to avoid an error.
12198 Use char because int might match the return type of a GCC
12199 builtin and then its argument prototype would still apply. */
12200 #ifdef __cplusplus
12201 extern "C"
12202 #endif
12203 char XmuConvertStandardSelection ();
12204 int
12205 main ()
12206 {
12207 return XmuConvertStandardSelection ();
12208 ;
12209 return 0;
12210 }
12211 _ACEOF
12212 rm -f conftest.$ac_objext conftest$ac_exeext
12213 if { (ac_try="$ac_link"
12214 case "(($ac_try" in
12215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12216 *) ac_try_echo=$ac_try;;
12217 esac
12218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12219 (eval "$ac_link") 2>conftest.er1
12220 ac_status=$?
12221 grep -v '^ *+' conftest.er1 >conftest.err
12222 rm -f conftest.er1
12223 cat conftest.err >&5
12224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12225 (exit $ac_status); } && {
12226 test -z "$ac_c_werror_flag" ||
12227 test ! -s conftest.err
12228 } && test -s conftest$ac_exeext &&
12229 $as_test_x conftest$ac_exeext; then
12230 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12231 else
12232 echo "$as_me: failed program was:" >&5
12233 sed 's/^/| /' conftest.$ac_ext >&5
12234
12235 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12236 fi
12237
12238 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12239 conftest$ac_exeext conftest.$ac_ext
12240 LIBS=$ac_check_lib_save_LIBS
12241 fi
12242 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12243 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12244 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12245 cat >>confdefs.h <<_ACEOF
12246 #define HAVE_LIBXMU 1
12247 _ACEOF
12248
12249 LIBS="-lXmu $LIBS"
12250
12251 fi
12252
12253 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12254 fi
12255
12256 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12257 if test "${HAVE_X11}" = "yes"; then
12258 if test "${USE_X_TOOLKIT}" != "none"; then
12259
12260 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12261 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12262 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12263 echo $ECHO_N "(cached) $ECHO_C" >&6
12264 else
12265 ac_check_lib_save_LIBS=$LIBS
12266 LIBS="-lXext $LIBS"
12267 cat >conftest.$ac_ext <<_ACEOF
12268 /* confdefs.h. */
12269 _ACEOF
12270 cat confdefs.h >>conftest.$ac_ext
12271 cat >>conftest.$ac_ext <<_ACEOF
12272 /* end confdefs.h. */
12273
12274 /* Override any GCC internal prototype to avoid an error.
12275 Use char because int might match the return type of a GCC
12276 builtin and then its argument prototype would still apply. */
12277 #ifdef __cplusplus
12278 extern "C"
12279 #endif
12280 char XShapeQueryExtension ();
12281 int
12282 main ()
12283 {
12284 return XShapeQueryExtension ();
12285 ;
12286 return 0;
12287 }
12288 _ACEOF
12289 rm -f conftest.$ac_objext conftest$ac_exeext
12290 if { (ac_try="$ac_link"
12291 case "(($ac_try" in
12292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12293 *) ac_try_echo=$ac_try;;
12294 esac
12295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12296 (eval "$ac_link") 2>conftest.er1
12297 ac_status=$?
12298 grep -v '^ *+' conftest.er1 >conftest.err
12299 rm -f conftest.er1
12300 cat conftest.err >&5
12301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12302 (exit $ac_status); } && {
12303 test -z "$ac_c_werror_flag" ||
12304 test ! -s conftest.err
12305 } && test -s conftest$ac_exeext &&
12306 $as_test_x conftest$ac_exeext; then
12307 ac_cv_lib_Xext_XShapeQueryExtension=yes
12308 else
12309 echo "$as_me: failed program was:" >&5
12310 sed 's/^/| /' conftest.$ac_ext >&5
12311
12312 ac_cv_lib_Xext_XShapeQueryExtension=no
12313 fi
12314
12315 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12316 conftest$ac_exeext conftest.$ac_ext
12317 LIBS=$ac_check_lib_save_LIBS
12318 fi
12319 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12320 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12321 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12322 cat >>confdefs.h <<_ACEOF
12323 #define HAVE_LIBXEXT 1
12324 _ACEOF
12325
12326 LIBS="-lXext $LIBS"
12327
12328 fi
12329
12330 fi
12331 fi
12332
12333 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12334 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12335 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12336 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12337 echo $ECHO_N "(cached) $ECHO_C" >&6
12338 else
12339 cat >conftest.$ac_ext <<_ACEOF
12340 /* confdefs.h. */
12341 _ACEOF
12342 cat confdefs.h >>conftest.$ac_ext
12343 cat >>conftest.$ac_ext <<_ACEOF
12344 /* end confdefs.h. */
12345 #include <Xm/Xm.h>
12346 int
12347 main ()
12348 {
12349 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12350 int x = 5;
12351 #else
12352 Motif version prior to 2.1.
12353 #endif
12354 ;
12355 return 0;
12356 }
12357 _ACEOF
12358 rm -f conftest.$ac_objext
12359 if { (ac_try="$ac_compile"
12360 case "(($ac_try" in
12361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12362 *) ac_try_echo=$ac_try;;
12363 esac
12364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12365 (eval "$ac_compile") 2>conftest.er1
12366 ac_status=$?
12367 grep -v '^ *+' conftest.er1 >conftest.err
12368 rm -f conftest.er1
12369 cat conftest.err >&5
12370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12371 (exit $ac_status); } && {
12372 test -z "$ac_c_werror_flag" ||
12373 test ! -s conftest.err
12374 } && test -s conftest.$ac_objext; then
12375 emacs_cv_motif_version_2_1=yes
12376 else
12377 echo "$as_me: failed program was:" >&5
12378 sed 's/^/| /' conftest.$ac_ext >&5
12379
12380 emacs_cv_motif_version_2_1=no
12381 fi
12382
12383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12384 fi
12385 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12386 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12387 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12388 if test $emacs_cv_motif_version_2_1 = yes; then
12389 HAVE_LIBXP=no
12390
12391 cat >>confdefs.h <<\_ACEOF
12392 #define HAVE_MOTIF_2_1 1
12393 _ACEOF
12394
12395 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12396 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12397 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12398 echo $ECHO_N "(cached) $ECHO_C" >&6
12399 else
12400 ac_check_lib_save_LIBS=$LIBS
12401 LIBS="-lXp $LIBS"
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408
12409 /* Override any GCC internal prototype to avoid an error.
12410 Use char because int might match the return type of a GCC
12411 builtin and then its argument prototype would still apply. */
12412 #ifdef __cplusplus
12413 extern "C"
12414 #endif
12415 char XpCreateContext ();
12416 int
12417 main ()
12418 {
12419 return XpCreateContext ();
12420 ;
12421 return 0;
12422 }
12423 _ACEOF
12424 rm -f conftest.$ac_objext conftest$ac_exeext
12425 if { (ac_try="$ac_link"
12426 case "(($ac_try" in
12427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428 *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431 (eval "$ac_link") 2>conftest.er1
12432 ac_status=$?
12433 grep -v '^ *+' conftest.er1 >conftest.err
12434 rm -f conftest.er1
12435 cat conftest.err >&5
12436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12437 (exit $ac_status); } && {
12438 test -z "$ac_c_werror_flag" ||
12439 test ! -s conftest.err
12440 } && test -s conftest$ac_exeext &&
12441 $as_test_x conftest$ac_exeext; then
12442 ac_cv_lib_Xp_XpCreateContext=yes
12443 else
12444 echo "$as_me: failed program was:" >&5
12445 sed 's/^/| /' conftest.$ac_ext >&5
12446
12447 ac_cv_lib_Xp_XpCreateContext=no
12448 fi
12449
12450 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12451 conftest$ac_exeext conftest.$ac_ext
12452 LIBS=$ac_check_lib_save_LIBS
12453 fi
12454 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12455 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12456 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12457 HAVE_LIBXP=yes
12458 fi
12459
12460 if test ${HAVE_LIBXP} = yes; then
12461
12462 cat >>confdefs.h <<\_ACEOF
12463 #define HAVE_LIBXP 1
12464 _ACEOF
12465
12466 fi
12467 else
12468 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12469 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12470 if test "${emacs_cv_lesstif+set}" = set; then
12471 echo $ECHO_N "(cached) $ECHO_C" >&6
12472 else
12473 # We put this in CFLAGS temporarily to precede other -I options
12474 # that might be in CFLAGS temporarily.
12475 # We put this in CPPFLAGS where it precedes the other -I options.
12476 OLD_CPPFLAGS=$CPPFLAGS
12477 OLD_CFLAGS=$CFLAGS
12478 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12479 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12480 cat >conftest.$ac_ext <<_ACEOF
12481 /* confdefs.h. */
12482 _ACEOF
12483 cat confdefs.h >>conftest.$ac_ext
12484 cat >>conftest.$ac_ext <<_ACEOF
12485 /* end confdefs.h. */
12486 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12487 int
12488 main ()
12489 {
12490 int x = 5;
12491 ;
12492 return 0;
12493 }
12494 _ACEOF
12495 rm -f conftest.$ac_objext
12496 if { (ac_try="$ac_compile"
12497 case "(($ac_try" in
12498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12499 *) ac_try_echo=$ac_try;;
12500 esac
12501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12502 (eval "$ac_compile") 2>conftest.er1
12503 ac_status=$?
12504 grep -v '^ *+' conftest.er1 >conftest.err
12505 rm -f conftest.er1
12506 cat conftest.err >&5
12507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12508 (exit $ac_status); } && {
12509 test -z "$ac_c_werror_flag" ||
12510 test ! -s conftest.err
12511 } && test -s conftest.$ac_objext; then
12512 emacs_cv_lesstif=yes
12513 else
12514 echo "$as_me: failed program was:" >&5
12515 sed 's/^/| /' conftest.$ac_ext >&5
12516
12517 emacs_cv_lesstif=no
12518 fi
12519
12520 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12521 fi
12522 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12523 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12524 if test $emacs_cv_lesstif = yes; then
12525 # Make sure this -I option remains in CPPFLAGS after it is set
12526 # back to REAL_CPPFLAGS.
12527 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12528 # have those other -I options anyway. Ultimately, having this
12529 # directory ultimately in CPPFLAGS will be enough.
12530 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12531 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12532 else
12533 CFLAGS=$OLD_CFLAGS
12534 CPPFLAGS=$OLD_CPPFLAGS
12535 fi
12536 fi
12537 fi
12538
12539
12540
12541 USE_TOOLKIT_SCROLL_BARS=no
12542 if test "${with_toolkit_scroll_bars}" != "no"; then
12543 if test "${USE_X_TOOLKIT}" != "none"; then
12544 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12545 cat >>confdefs.h <<\_ACEOF
12546 #define USE_TOOLKIT_SCROLL_BARS 1
12547 _ACEOF
12548
12549 HAVE_XAW3D=no
12550 USE_TOOLKIT_SCROLL_BARS=yes
12551 elif test "${HAVE_XAW3D}" = "yes"; then
12552 cat >>confdefs.h <<\_ACEOF
12553 #define USE_TOOLKIT_SCROLL_BARS 1
12554 _ACEOF
12555
12556 USE_TOOLKIT_SCROLL_BARS=yes
12557 fi
12558 elif test "${HAVE_GTK}" = "yes"; then
12559 cat >>confdefs.h <<\_ACEOF
12560 #define USE_TOOLKIT_SCROLL_BARS 1
12561 _ACEOF
12562
12563 USE_TOOLKIT_SCROLL_BARS=yes
12564 elif test "${HAVE_CARBON}" = "yes"; then
12565 cat >>confdefs.h <<\_ACEOF
12566 #define USE_TOOLKIT_SCROLL_BARS 1
12567 _ACEOF
12568
12569 USE_TOOLKIT_SCROLL_BARS=yes
12570 fi
12571 fi
12572
12573 cat >conftest.$ac_ext <<_ACEOF
12574 /* confdefs.h. */
12575 _ACEOF
12576 cat confdefs.h >>conftest.$ac_ext
12577 cat >>conftest.$ac_ext <<_ACEOF
12578 /* end confdefs.h. */
12579
12580 #include <X11/Xlib.h>
12581 #include <X11/Xresource.h>
12582 int
12583 main ()
12584 {
12585 XIMProc callback;
12586 ;
12587 return 0;
12588 }
12589 _ACEOF
12590 rm -f conftest.$ac_objext
12591 if { (ac_try="$ac_compile"
12592 case "(($ac_try" in
12593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12594 *) ac_try_echo=$ac_try;;
12595 esac
12596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12597 (eval "$ac_compile") 2>conftest.er1
12598 ac_status=$?
12599 grep -v '^ *+' conftest.er1 >conftest.err
12600 rm -f conftest.er1
12601 cat conftest.err >&5
12602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12603 (exit $ac_status); } && {
12604 test -z "$ac_c_werror_flag" ||
12605 test ! -s conftest.err
12606 } && test -s conftest.$ac_objext; then
12607 HAVE_XIM=yes
12608
12609 cat >>confdefs.h <<\_ACEOF
12610 #define HAVE_XIM 1
12611 _ACEOF
12612
12613 else
12614 echo "$as_me: failed program was:" >&5
12615 sed 's/^/| /' conftest.$ac_ext >&5
12616
12617 HAVE_XIM=no
12618 fi
12619
12620 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12621
12622
12623 if test "${with_xim}" != "no"; then
12624
12625 cat >>confdefs.h <<\_ACEOF
12626 #define USE_XIM 1
12627 _ACEOF
12628
12629 fi
12630
12631
12632 if test "${HAVE_XIM}" != "no"; then
12633 late_CFLAGS=$CFLAGS
12634 if test "$GCC" = yes; then
12635 CFLAGS="$CFLAGS --pedantic-errors"
12636 fi
12637 cat >conftest.$ac_ext <<_ACEOF
12638 /* confdefs.h. */
12639 _ACEOF
12640 cat confdefs.h >>conftest.$ac_ext
12641 cat >>conftest.$ac_ext <<_ACEOF
12642 /* end confdefs.h. */
12643
12644 #include <X11/Xlib.h>
12645 #include <X11/Xresource.h>
12646 int
12647 main ()
12648 {
12649 Display *display;
12650 XrmDatabase db;
12651 char *res_name;
12652 char *res_class;
12653 XIMProc callback;
12654 XPointer *client_data;
12655 #ifndef __GNUC__
12656 /* If we're not using GCC, it's probably not XFree86, and this is
12657 probably right, but we can't use something like --pedantic-errors. */
12658 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12659 char*, XIMProc, XPointer*);
12660 #endif
12661 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12662 client_data);
12663 ;
12664 return 0;
12665 }
12666 _ACEOF
12667 rm -f conftest.$ac_objext
12668 if { (ac_try="$ac_compile"
12669 case "(($ac_try" in
12670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12671 *) ac_try_echo=$ac_try;;
12672 esac
12673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12674 (eval "$ac_compile") 2>conftest.er1
12675 ac_status=$?
12676 grep -v '^ *+' conftest.er1 >conftest.err
12677 rm -f conftest.er1
12678 cat conftest.err >&5
12679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12680 (exit $ac_status); } && {
12681 test -z "$ac_c_werror_flag" ||
12682 test ! -s conftest.err
12683 } && test -s conftest.$ac_objext; then
12684 emacs_cv_arg6_star=yes
12685 else
12686 echo "$as_me: failed program was:" >&5
12687 sed 's/^/| /' conftest.$ac_ext >&5
12688
12689
12690 fi
12691
12692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12693
12694 if test "$emacs_cv_arg6_star" = yes; then
12695 cat >>confdefs.h <<\_ACEOF
12696 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12697 _ACEOF
12698
12699 else
12700 cat >>confdefs.h <<\_ACEOF
12701 #define XRegisterIMInstantiateCallback_arg6 XPointer
12702 _ACEOF
12703
12704 fi
12705 CFLAGS=$late_CFLAGS
12706 fi
12707
12708 ### Use -lXpm if available, unless `--with-xpm=no'.
12709 HAVE_XPM=no
12710 if test "${HAVE_X11}" = "yes"; then
12711 if test "${with_xpm}" != "no"; then
12712 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12713 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12714 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12715 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12716 echo $ECHO_N "(cached) $ECHO_C" >&6
12717 fi
12718 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12719 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12720 else
12721 # Is the header compilable?
12722 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12723 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12724 cat >conftest.$ac_ext <<_ACEOF
12725 /* confdefs.h. */
12726 _ACEOF
12727 cat confdefs.h >>conftest.$ac_ext
12728 cat >>conftest.$ac_ext <<_ACEOF
12729 /* end confdefs.h. */
12730 $ac_includes_default
12731 #include <X11/xpm.h>
12732 _ACEOF
12733 rm -f conftest.$ac_objext
12734 if { (ac_try="$ac_compile"
12735 case "(($ac_try" in
12736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12737 *) ac_try_echo=$ac_try;;
12738 esac
12739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12740 (eval "$ac_compile") 2>conftest.er1
12741 ac_status=$?
12742 grep -v '^ *+' conftest.er1 >conftest.err
12743 rm -f conftest.er1
12744 cat conftest.err >&5
12745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12746 (exit $ac_status); } && {
12747 test -z "$ac_c_werror_flag" ||
12748 test ! -s conftest.err
12749 } && test -s conftest.$ac_objext; then
12750 ac_header_compiler=yes
12751 else
12752 echo "$as_me: failed program was:" >&5
12753 sed 's/^/| /' conftest.$ac_ext >&5
12754
12755 ac_header_compiler=no
12756 fi
12757
12758 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12759 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12760 echo "${ECHO_T}$ac_header_compiler" >&6; }
12761
12762 # Is the header present?
12763 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12764 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12765 cat >conftest.$ac_ext <<_ACEOF
12766 /* confdefs.h. */
12767 _ACEOF
12768 cat confdefs.h >>conftest.$ac_ext
12769 cat >>conftest.$ac_ext <<_ACEOF
12770 /* end confdefs.h. */
12771 #include <X11/xpm.h>
12772 _ACEOF
12773 if { (ac_try="$ac_cpp conftest.$ac_ext"
12774 case "(($ac_try" in
12775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12776 *) ac_try_echo=$ac_try;;
12777 esac
12778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12779 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12780 ac_status=$?
12781 grep -v '^ *+' conftest.er1 >conftest.err
12782 rm -f conftest.er1
12783 cat conftest.err >&5
12784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12785 (exit $ac_status); } >/dev/null && {
12786 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12787 test ! -s conftest.err
12788 }; then
12789 ac_header_preproc=yes
12790 else
12791 echo "$as_me: failed program was:" >&5
12792 sed 's/^/| /' conftest.$ac_ext >&5
12793
12794 ac_header_preproc=no
12795 fi
12796
12797 rm -f conftest.err conftest.$ac_ext
12798 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12799 echo "${ECHO_T}$ac_header_preproc" >&6; }
12800
12801 # So? What about this header?
12802 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12803 yes:no: )
12804 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12805 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12806 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12807 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12808 ac_header_preproc=yes
12809 ;;
12810 no:yes:* )
12811 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12812 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12814 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12816 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12818 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12820 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12821 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12822 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12823
12824 ;;
12825 esac
12826 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12827 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12828 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12829 echo $ECHO_N "(cached) $ECHO_C" >&6
12830 else
12831 ac_cv_header_X11_xpm_h=$ac_header_preproc
12832 fi
12833 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12834 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12835
12836 fi
12837 if test $ac_cv_header_X11_xpm_h = yes; then
12838 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12839 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12840 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12841 echo $ECHO_N "(cached) $ECHO_C" >&6
12842 else
12843 ac_check_lib_save_LIBS=$LIBS
12844 LIBS="-lXpm -lX11 $LIBS"
12845 cat >conftest.$ac_ext <<_ACEOF
12846 /* confdefs.h. */
12847 _ACEOF
12848 cat confdefs.h >>conftest.$ac_ext
12849 cat >>conftest.$ac_ext <<_ACEOF
12850 /* end confdefs.h. */
12851
12852 /* Override any GCC internal prototype to avoid an error.
12853 Use char because int might match the return type of a GCC
12854 builtin and then its argument prototype would still apply. */
12855 #ifdef __cplusplus
12856 extern "C"
12857 #endif
12858 char XpmReadFileToPixmap ();
12859 int
12860 main ()
12861 {
12862 return XpmReadFileToPixmap ();
12863 ;
12864 return 0;
12865 }
12866 _ACEOF
12867 rm -f conftest.$ac_objext conftest$ac_exeext
12868 if { (ac_try="$ac_link"
12869 case "(($ac_try" in
12870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12871 *) ac_try_echo=$ac_try;;
12872 esac
12873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12874 (eval "$ac_link") 2>conftest.er1
12875 ac_status=$?
12876 grep -v '^ *+' conftest.er1 >conftest.err
12877 rm -f conftest.er1
12878 cat conftest.err >&5
12879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12880 (exit $ac_status); } && {
12881 test -z "$ac_c_werror_flag" ||
12882 test ! -s conftest.err
12883 } && test -s conftest$ac_exeext &&
12884 $as_test_x conftest$ac_exeext; then
12885 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12886 else
12887 echo "$as_me: failed program was:" >&5
12888 sed 's/^/| /' conftest.$ac_ext >&5
12889
12890 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12891 fi
12892
12893 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12894 conftest$ac_exeext conftest.$ac_ext
12895 LIBS=$ac_check_lib_save_LIBS
12896 fi
12897 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12898 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12899 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12900 HAVE_XPM=yes
12901 fi
12902
12903 fi
12904
12905
12906 if test "${HAVE_XPM}" = "yes"; then
12907 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12908 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12909 cat >conftest.$ac_ext <<_ACEOF
12910 /* confdefs.h. */
12911 _ACEOF
12912 cat confdefs.h >>conftest.$ac_ext
12913 cat >>conftest.$ac_ext <<_ACEOF
12914 /* end confdefs.h. */
12915 #include "X11/xpm.h"
12916 #ifndef XpmReturnAllocPixels
12917 no_return_alloc_pixels
12918 #endif
12919
12920 _ACEOF
12921 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12922 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12923 HAVE_XPM=no
12924 else
12925 HAVE_XPM=yes
12926 fi
12927 rm -f conftest*
12928
12929
12930 if test "${HAVE_XPM}" = "yes"; then
12931 { echo "$as_me:$LINENO: result: yes" >&5
12932 echo "${ECHO_T}yes" >&6; }
12933 else
12934 { echo "$as_me:$LINENO: result: no" >&5
12935 echo "${ECHO_T}no" >&6; }
12936 fi
12937 fi
12938 fi
12939
12940 if test "${HAVE_XPM}" = "yes"; then
12941
12942 cat >>confdefs.h <<\_ACEOF
12943 #define HAVE_XPM 1
12944 _ACEOF
12945
12946 fi
12947 fi
12948
12949 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12950 HAVE_JPEG=no
12951 if test "${HAVE_X11}" = "yes"; then
12952 if test "${with_jpeg}" != "no"; then
12953 if test "${ac_cv_header_jerror_h+set}" = set; then
12954 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12955 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12956 if test "${ac_cv_header_jerror_h+set}" = set; then
12957 echo $ECHO_N "(cached) $ECHO_C" >&6
12958 fi
12959 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12960 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12961 else
12962 # Is the header compilable?
12963 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12964 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12965 cat >conftest.$ac_ext <<_ACEOF
12966 /* confdefs.h. */
12967 _ACEOF
12968 cat confdefs.h >>conftest.$ac_ext
12969 cat >>conftest.$ac_ext <<_ACEOF
12970 /* end confdefs.h. */
12971 $ac_includes_default
12972 #include <jerror.h>
12973 _ACEOF
12974 rm -f conftest.$ac_objext
12975 if { (ac_try="$ac_compile"
12976 case "(($ac_try" in
12977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12978 *) ac_try_echo=$ac_try;;
12979 esac
12980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12981 (eval "$ac_compile") 2>conftest.er1
12982 ac_status=$?
12983 grep -v '^ *+' conftest.er1 >conftest.err
12984 rm -f conftest.er1
12985 cat conftest.err >&5
12986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12987 (exit $ac_status); } && {
12988 test -z "$ac_c_werror_flag" ||
12989 test ! -s conftest.err
12990 } && test -s conftest.$ac_objext; then
12991 ac_header_compiler=yes
12992 else
12993 echo "$as_me: failed program was:" >&5
12994 sed 's/^/| /' conftest.$ac_ext >&5
12995
12996 ac_header_compiler=no
12997 fi
12998
12999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13000 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13001 echo "${ECHO_T}$ac_header_compiler" >&6; }
13002
13003 # Is the header present?
13004 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13005 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13006 cat >conftest.$ac_ext <<_ACEOF
13007 /* confdefs.h. */
13008 _ACEOF
13009 cat confdefs.h >>conftest.$ac_ext
13010 cat >>conftest.$ac_ext <<_ACEOF
13011 /* end confdefs.h. */
13012 #include <jerror.h>
13013 _ACEOF
13014 if { (ac_try="$ac_cpp conftest.$ac_ext"
13015 case "(($ac_try" in
13016 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13017 *) ac_try_echo=$ac_try;;
13018 esac
13019 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13020 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13021 ac_status=$?
13022 grep -v '^ *+' conftest.er1 >conftest.err
13023 rm -f conftest.er1
13024 cat conftest.err >&5
13025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13026 (exit $ac_status); } >/dev/null && {
13027 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13028 test ! -s conftest.err
13029 }; then
13030 ac_header_preproc=yes
13031 else
13032 echo "$as_me: failed program was:" >&5
13033 sed 's/^/| /' conftest.$ac_ext >&5
13034
13035 ac_header_preproc=no
13036 fi
13037
13038 rm -f conftest.err conftest.$ac_ext
13039 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13040 echo "${ECHO_T}$ac_header_preproc" >&6; }
13041
13042 # So? What about this header?
13043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13044 yes:no: )
13045 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13046 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13047 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13048 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13049 ac_header_preproc=yes
13050 ;;
13051 no:yes:* )
13052 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13053 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13055 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13057 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13059 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13061 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13062 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13063 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13064
13065 ;;
13066 esac
13067 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13068 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13069 if test "${ac_cv_header_jerror_h+set}" = set; then
13070 echo $ECHO_N "(cached) $ECHO_C" >&6
13071 else
13072 ac_cv_header_jerror_h=$ac_header_preproc
13073 fi
13074 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13075 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13076
13077 fi
13078 if test $ac_cv_header_jerror_h = yes; then
13079 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13080 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13081 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13082 echo $ECHO_N "(cached) $ECHO_C" >&6
13083 else
13084 ac_check_lib_save_LIBS=$LIBS
13085 LIBS="-ljpeg $LIBS"
13086 cat >conftest.$ac_ext <<_ACEOF
13087 /* confdefs.h. */
13088 _ACEOF
13089 cat confdefs.h >>conftest.$ac_ext
13090 cat >>conftest.$ac_ext <<_ACEOF
13091 /* end confdefs.h. */
13092
13093 /* Override any GCC internal prototype to avoid an error.
13094 Use char because int might match the return type of a GCC
13095 builtin and then its argument prototype would still apply. */
13096 #ifdef __cplusplus
13097 extern "C"
13098 #endif
13099 char jpeg_destroy_compress ();
13100 int
13101 main ()
13102 {
13103 return jpeg_destroy_compress ();
13104 ;
13105 return 0;
13106 }
13107 _ACEOF
13108 rm -f conftest.$ac_objext conftest$ac_exeext
13109 if { (ac_try="$ac_link"
13110 case "(($ac_try" in
13111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13112 *) ac_try_echo=$ac_try;;
13113 esac
13114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13115 (eval "$ac_link") 2>conftest.er1
13116 ac_status=$?
13117 grep -v '^ *+' conftest.er1 >conftest.err
13118 rm -f conftest.er1
13119 cat conftest.err >&5
13120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13121 (exit $ac_status); } && {
13122 test -z "$ac_c_werror_flag" ||
13123 test ! -s conftest.err
13124 } && test -s conftest$ac_exeext &&
13125 $as_test_x conftest$ac_exeext; then
13126 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13127 else
13128 echo "$as_me: failed program was:" >&5
13129 sed 's/^/| /' conftest.$ac_ext >&5
13130
13131 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13132 fi
13133
13134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13135 conftest$ac_exeext conftest.$ac_ext
13136 LIBS=$ac_check_lib_save_LIBS
13137 fi
13138 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13139 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13140 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13141 HAVE_JPEG=yes
13142 fi
13143
13144 fi
13145
13146
13147 fi
13148
13149
13150 if test "${HAVE_JPEG}" = "yes"; then
13151 cat >>confdefs.h <<\_ACEOF
13152 #define HAVE_JPEG 1
13153 _ACEOF
13154
13155 cat >conftest.$ac_ext <<_ACEOF
13156 /* confdefs.h. */
13157 _ACEOF
13158 cat confdefs.h >>conftest.$ac_ext
13159 cat >>conftest.$ac_ext <<_ACEOF
13160 /* end confdefs.h. */
13161 #include <jpeglib.h>
13162 version=JPEG_LIB_VERSION
13163
13164 _ACEOF
13165 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13166 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13167 cat >>confdefs.h <<\_ACEOF
13168 #define HAVE_JPEG 1
13169 _ACEOF
13170
13171 else
13172 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13173 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13174 HAVE_JPEG=no
13175 fi
13176 rm -f conftest*
13177
13178 fi
13179 fi
13180
13181 ### Use -lpng if available, unless `--with-png=no'.
13182 HAVE_PNG=no
13183 if test "${HAVE_X11}" = "yes"; then
13184 if test "${with_png}" != "no"; then
13185 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13186 # in /usr/include/libpng.
13187
13188
13189 for ac_header in png.h libpng/png.h
13190 do
13191 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13192 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13193 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13194 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13195 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13196 echo $ECHO_N "(cached) $ECHO_C" >&6
13197 fi
13198 ac_res=`eval echo '${'$as_ac_Header'}'`
13199 { echo "$as_me:$LINENO: result: $ac_res" >&5
13200 echo "${ECHO_T}$ac_res" >&6; }
13201 else
13202 # Is the header compilable?
13203 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13204 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211 $ac_includes_default
13212 #include <$ac_header>
13213 _ACEOF
13214 rm -f conftest.$ac_objext
13215 if { (ac_try="$ac_compile"
13216 case "(($ac_try" in
13217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13218 *) ac_try_echo=$ac_try;;
13219 esac
13220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13221 (eval "$ac_compile") 2>conftest.er1
13222 ac_status=$?
13223 grep -v '^ *+' conftest.er1 >conftest.err
13224 rm -f conftest.er1
13225 cat conftest.err >&5
13226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13227 (exit $ac_status); } && {
13228 test -z "$ac_c_werror_flag" ||
13229 test ! -s conftest.err
13230 } && test -s conftest.$ac_objext; then
13231 ac_header_compiler=yes
13232 else
13233 echo "$as_me: failed program was:" >&5
13234 sed 's/^/| /' conftest.$ac_ext >&5
13235
13236 ac_header_compiler=no
13237 fi
13238
13239 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13240 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13241 echo "${ECHO_T}$ac_header_compiler" >&6; }
13242
13243 # Is the header present?
13244 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13245 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13246 cat >conftest.$ac_ext <<_ACEOF
13247 /* confdefs.h. */
13248 _ACEOF
13249 cat confdefs.h >>conftest.$ac_ext
13250 cat >>conftest.$ac_ext <<_ACEOF
13251 /* end confdefs.h. */
13252 #include <$ac_header>
13253 _ACEOF
13254 if { (ac_try="$ac_cpp conftest.$ac_ext"
13255 case "(($ac_try" in
13256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13257 *) ac_try_echo=$ac_try;;
13258 esac
13259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13260 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13261 ac_status=$?
13262 grep -v '^ *+' conftest.er1 >conftest.err
13263 rm -f conftest.er1
13264 cat conftest.err >&5
13265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13266 (exit $ac_status); } >/dev/null && {
13267 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13268 test ! -s conftest.err
13269 }; then
13270 ac_header_preproc=yes
13271 else
13272 echo "$as_me: failed program was:" >&5
13273 sed 's/^/| /' conftest.$ac_ext >&5
13274
13275 ac_header_preproc=no
13276 fi
13277
13278 rm -f conftest.err conftest.$ac_ext
13279 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13280 echo "${ECHO_T}$ac_header_preproc" >&6; }
13281
13282 # So? What about this header?
13283 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13284 yes:no: )
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13286 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13288 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13289 ac_header_preproc=yes
13290 ;;
13291 no:yes:* )
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13293 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13295 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13297 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13299 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13301 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13302 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13303 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13304
13305 ;;
13306 esac
13307 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13308 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13309 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13310 echo $ECHO_N "(cached) $ECHO_C" >&6
13311 else
13312 eval "$as_ac_Header=\$ac_header_preproc"
13313 fi
13314 ac_res=`eval echo '${'$as_ac_Header'}'`
13315 { echo "$as_me:$LINENO: result: $ac_res" >&5
13316 echo "${ECHO_T}$ac_res" >&6; }
13317
13318 fi
13319 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13320 cat >>confdefs.h <<_ACEOF
13321 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13322 _ACEOF
13323
13324 fi
13325
13326 done
13327
13328 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13329 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13330 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13331 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13332 echo $ECHO_N "(cached) $ECHO_C" >&6
13333 else
13334 ac_check_lib_save_LIBS=$LIBS
13335 LIBS="-lpng -lz -lm $LIBS"
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342
13343 /* Override any GCC internal prototype to avoid an error.
13344 Use char because int might match the return type of a GCC
13345 builtin and then its argument prototype would still apply. */
13346 #ifdef __cplusplus
13347 extern "C"
13348 #endif
13349 char png_get_channels ();
13350 int
13351 main ()
13352 {
13353 return png_get_channels ();
13354 ;
13355 return 0;
13356 }
13357 _ACEOF
13358 rm -f conftest.$ac_objext conftest$ac_exeext
13359 if { (ac_try="$ac_link"
13360 case "(($ac_try" in
13361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13362 *) ac_try_echo=$ac_try;;
13363 esac
13364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13365 (eval "$ac_link") 2>conftest.er1
13366 ac_status=$?
13367 grep -v '^ *+' conftest.er1 >conftest.err
13368 rm -f conftest.er1
13369 cat conftest.err >&5
13370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13371 (exit $ac_status); } && {
13372 test -z "$ac_c_werror_flag" ||
13373 test ! -s conftest.err
13374 } && test -s conftest$ac_exeext &&
13375 $as_test_x conftest$ac_exeext; then
13376 ac_cv_lib_png_png_get_channels=yes
13377 else
13378 echo "$as_me: failed program was:" >&5
13379 sed 's/^/| /' conftest.$ac_ext >&5
13380
13381 ac_cv_lib_png_png_get_channels=no
13382 fi
13383
13384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13385 conftest$ac_exeext conftest.$ac_ext
13386 LIBS=$ac_check_lib_save_LIBS
13387 fi
13388 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13389 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13390 if test $ac_cv_lib_png_png_get_channels = yes; then
13391 HAVE_PNG=yes
13392 fi
13393
13394 fi
13395 fi
13396
13397 if test "${HAVE_PNG}" = "yes"; then
13398
13399 cat >>confdefs.h <<\_ACEOF
13400 #define HAVE_PNG 1
13401 _ACEOF
13402
13403 fi
13404 fi
13405
13406 ### Use -ltiff if available, unless `--with-tiff=no'.
13407 HAVE_TIFF=no
13408 if test "${HAVE_X11}" = "yes"; then
13409 if test "${with_tiff}" != "no"; then
13410 if test "${ac_cv_header_tiffio_h+set}" = set; then
13411 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13412 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13413 if test "${ac_cv_header_tiffio_h+set}" = set; then
13414 echo $ECHO_N "(cached) $ECHO_C" >&6
13415 fi
13416 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13417 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13418 else
13419 # Is the header compilable?
13420 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13421 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13422 cat >conftest.$ac_ext <<_ACEOF
13423 /* confdefs.h. */
13424 _ACEOF
13425 cat confdefs.h >>conftest.$ac_ext
13426 cat >>conftest.$ac_ext <<_ACEOF
13427 /* end confdefs.h. */
13428 $ac_includes_default
13429 #include <tiffio.h>
13430 _ACEOF
13431 rm -f conftest.$ac_objext
13432 if { (ac_try="$ac_compile"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_compile") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } && {
13445 test -z "$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 } && test -s conftest.$ac_objext; then
13448 ac_header_compiler=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_header_compiler=no
13454 fi
13455
13456 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13458 echo "${ECHO_T}$ac_header_compiler" >&6; }
13459
13460 # Is the header present?
13461 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13462 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13463 cat >conftest.$ac_ext <<_ACEOF
13464 /* confdefs.h. */
13465 _ACEOF
13466 cat confdefs.h >>conftest.$ac_ext
13467 cat >>conftest.$ac_ext <<_ACEOF
13468 /* end confdefs.h. */
13469 #include <tiffio.h>
13470 _ACEOF
13471 if { (ac_try="$ac_cpp conftest.$ac_ext"
13472 case "(($ac_try" in
13473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13474 *) ac_try_echo=$ac_try;;
13475 esac
13476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13477 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13478 ac_status=$?
13479 grep -v '^ *+' conftest.er1 >conftest.err
13480 rm -f conftest.er1
13481 cat conftest.err >&5
13482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13483 (exit $ac_status); } >/dev/null && {
13484 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13485 test ! -s conftest.err
13486 }; then
13487 ac_header_preproc=yes
13488 else
13489 echo "$as_me: failed program was:" >&5
13490 sed 's/^/| /' conftest.$ac_ext >&5
13491
13492 ac_header_preproc=no
13493 fi
13494
13495 rm -f conftest.err conftest.$ac_ext
13496 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13497 echo "${ECHO_T}$ac_header_preproc" >&6; }
13498
13499 # So? What about this header?
13500 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13501 yes:no: )
13502 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13503 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13504 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13505 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13506 ac_header_preproc=yes
13507 ;;
13508 no:yes:* )
13509 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13510 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13512 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13514 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13516 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13518 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13519 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13520 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13521
13522 ;;
13523 esac
13524 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13525 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13526 if test "${ac_cv_header_tiffio_h+set}" = set; then
13527 echo $ECHO_N "(cached) $ECHO_C" >&6
13528 else
13529 ac_cv_header_tiffio_h=$ac_header_preproc
13530 fi
13531 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13532 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13533
13534 fi
13535 if test $ac_cv_header_tiffio_h = yes; then
13536 tifflibs="-lz -lm"
13537 # At least one tiff package requires the jpeg library.
13538 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13539 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13540 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13541 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13542 echo $ECHO_N "(cached) $ECHO_C" >&6
13543 else
13544 ac_check_lib_save_LIBS=$LIBS
13545 LIBS="-ltiff $tifflibs $LIBS"
13546 cat >conftest.$ac_ext <<_ACEOF
13547 /* confdefs.h. */
13548 _ACEOF
13549 cat confdefs.h >>conftest.$ac_ext
13550 cat >>conftest.$ac_ext <<_ACEOF
13551 /* end confdefs.h. */
13552
13553 /* Override any GCC internal prototype to avoid an error.
13554 Use char because int might match the return type of a GCC
13555 builtin and then its argument prototype would still apply. */
13556 #ifdef __cplusplus
13557 extern "C"
13558 #endif
13559 char TIFFGetVersion ();
13560 int
13561 main ()
13562 {
13563 return TIFFGetVersion ();
13564 ;
13565 return 0;
13566 }
13567 _ACEOF
13568 rm -f conftest.$ac_objext conftest$ac_exeext
13569 if { (ac_try="$ac_link"
13570 case "(($ac_try" in
13571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13572 *) ac_try_echo=$ac_try;;
13573 esac
13574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13575 (eval "$ac_link") 2>conftest.er1
13576 ac_status=$?
13577 grep -v '^ *+' conftest.er1 >conftest.err
13578 rm -f conftest.er1
13579 cat conftest.err >&5
13580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13581 (exit $ac_status); } && {
13582 test -z "$ac_c_werror_flag" ||
13583 test ! -s conftest.err
13584 } && test -s conftest$ac_exeext &&
13585 $as_test_x conftest$ac_exeext; then
13586 ac_cv_lib_tiff_TIFFGetVersion=yes
13587 else
13588 echo "$as_me: failed program was:" >&5
13589 sed 's/^/| /' conftest.$ac_ext >&5
13590
13591 ac_cv_lib_tiff_TIFFGetVersion=no
13592 fi
13593
13594 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13595 conftest$ac_exeext conftest.$ac_ext
13596 LIBS=$ac_check_lib_save_LIBS
13597 fi
13598 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13599 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13600 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13601 HAVE_TIFF=yes
13602 fi
13603
13604 fi
13605
13606
13607 fi
13608
13609 if test "${HAVE_TIFF}" = "yes"; then
13610
13611 cat >>confdefs.h <<\_ACEOF
13612 #define HAVE_TIFF 1
13613 _ACEOF
13614
13615 fi
13616 fi
13617
13618 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13619 HAVE_GIF=no
13620 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13621 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13622 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13623 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13624 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13625 echo $ECHO_N "(cached) $ECHO_C" >&6
13626 fi
13627 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13628 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13629 else
13630 # Is the header compilable?
13631 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13632 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13633 cat >conftest.$ac_ext <<_ACEOF
13634 /* confdefs.h. */
13635 _ACEOF
13636 cat confdefs.h >>conftest.$ac_ext
13637 cat >>conftest.$ac_ext <<_ACEOF
13638 /* end confdefs.h. */
13639 $ac_includes_default
13640 #include <gif_lib.h>
13641 _ACEOF
13642 rm -f conftest.$ac_objext
13643 if { (ac_try="$ac_compile"
13644 case "(($ac_try" in
13645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13646 *) ac_try_echo=$ac_try;;
13647 esac
13648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13649 (eval "$ac_compile") 2>conftest.er1
13650 ac_status=$?
13651 grep -v '^ *+' conftest.er1 >conftest.err
13652 rm -f conftest.er1
13653 cat conftest.err >&5
13654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13655 (exit $ac_status); } && {
13656 test -z "$ac_c_werror_flag" ||
13657 test ! -s conftest.err
13658 } && test -s conftest.$ac_objext; then
13659 ac_header_compiler=yes
13660 else
13661 echo "$as_me: failed program was:" >&5
13662 sed 's/^/| /' conftest.$ac_ext >&5
13663
13664 ac_header_compiler=no
13665 fi
13666
13667 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13668 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13669 echo "${ECHO_T}$ac_header_compiler" >&6; }
13670
13671 # Is the header present?
13672 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13673 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13674 cat >conftest.$ac_ext <<_ACEOF
13675 /* confdefs.h. */
13676 _ACEOF
13677 cat confdefs.h >>conftest.$ac_ext
13678 cat >>conftest.$ac_ext <<_ACEOF
13679 /* end confdefs.h. */
13680 #include <gif_lib.h>
13681 _ACEOF
13682 if { (ac_try="$ac_cpp conftest.$ac_ext"
13683 case "(($ac_try" in
13684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13685 *) ac_try_echo=$ac_try;;
13686 esac
13687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13688 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13689 ac_status=$?
13690 grep -v '^ *+' conftest.er1 >conftest.err
13691 rm -f conftest.er1
13692 cat conftest.err >&5
13693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13694 (exit $ac_status); } >/dev/null && {
13695 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13696 test ! -s conftest.err
13697 }; then
13698 ac_header_preproc=yes
13699 else
13700 echo "$as_me: failed program was:" >&5
13701 sed 's/^/| /' conftest.$ac_ext >&5
13702
13703 ac_header_preproc=no
13704 fi
13705
13706 rm -f conftest.err conftest.$ac_ext
13707 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13708 echo "${ECHO_T}$ac_header_preproc" >&6; }
13709
13710 # So? What about this header?
13711 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13712 yes:no: )
13713 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13714 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13715 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13716 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13717 ac_header_preproc=yes
13718 ;;
13719 no:yes:* )
13720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13721 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13723 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13725 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13727 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13729 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13730 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13731 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13732
13733 ;;
13734 esac
13735 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13736 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13737 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13738 echo $ECHO_N "(cached) $ECHO_C" >&6
13739 else
13740 ac_cv_header_gif_lib_h=$ac_header_preproc
13741 fi
13742 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13743 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13744
13745 fi
13746 if test $ac_cv_header_gif_lib_h = yes; then
13747 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13748 # Earlier versions can crash Emacs.
13749 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13750 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13751 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13752 echo $ECHO_N "(cached) $ECHO_C" >&6
13753 else
13754 ac_check_lib_save_LIBS=$LIBS
13755 LIBS="-lgif $LIBS"
13756 cat >conftest.$ac_ext <<_ACEOF
13757 /* confdefs.h. */
13758 _ACEOF
13759 cat confdefs.h >>conftest.$ac_ext
13760 cat >>conftest.$ac_ext <<_ACEOF
13761 /* end confdefs.h. */
13762
13763 /* Override any GCC internal prototype to avoid an error.
13764 Use char because int might match the return type of a GCC
13765 builtin and then its argument prototype would still apply. */
13766 #ifdef __cplusplus
13767 extern "C"
13768 #endif
13769 char EGifPutExtensionLast ();
13770 int
13771 main ()
13772 {
13773 return EGifPutExtensionLast ();
13774 ;
13775 return 0;
13776 }
13777 _ACEOF
13778 rm -f conftest.$ac_objext conftest$ac_exeext
13779 if { (ac_try="$ac_link"
13780 case "(($ac_try" in
13781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13782 *) ac_try_echo=$ac_try;;
13783 esac
13784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13785 (eval "$ac_link") 2>conftest.er1
13786 ac_status=$?
13787 grep -v '^ *+' conftest.er1 >conftest.err
13788 rm -f conftest.er1
13789 cat conftest.err >&5
13790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791 (exit $ac_status); } && {
13792 test -z "$ac_c_werror_flag" ||
13793 test ! -s conftest.err
13794 } && test -s conftest$ac_exeext &&
13795 $as_test_x conftest$ac_exeext; then
13796 ac_cv_lib_gif_EGifPutExtensionLast=yes
13797 else
13798 echo "$as_me: failed program was:" >&5
13799 sed 's/^/| /' conftest.$ac_ext >&5
13800
13801 ac_cv_lib_gif_EGifPutExtensionLast=no
13802 fi
13803
13804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13805 conftest$ac_exeext conftest.$ac_ext
13806 LIBS=$ac_check_lib_save_LIBS
13807 fi
13808 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13809 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13810 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13811 HAVE_GIF=yes
13812 else
13813 try_libungif=yes
13814 fi
13815
13816 fi
13817
13818
13819
13820 if test "$HAVE_GIF" = yes; then
13821 ac_gif_lib_name="-lgif"
13822 fi
13823
13824 # If gif_lib.h but no libgif, try libungif.
13825 if test x"$try_libungif" = xyes; then
13826 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13827 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13828 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13829 echo $ECHO_N "(cached) $ECHO_C" >&6
13830 else
13831 ac_check_lib_save_LIBS=$LIBS
13832 LIBS="-lungif $LIBS"
13833 cat >conftest.$ac_ext <<_ACEOF
13834 /* confdefs.h. */
13835 _ACEOF
13836 cat confdefs.h >>conftest.$ac_ext
13837 cat >>conftest.$ac_ext <<_ACEOF
13838 /* end confdefs.h. */
13839
13840 /* Override any GCC internal prototype to avoid an error.
13841 Use char because int might match the return type of a GCC
13842 builtin and then its argument prototype would still apply. */
13843 #ifdef __cplusplus
13844 extern "C"
13845 #endif
13846 char EGifPutExtensionLast ();
13847 int
13848 main ()
13849 {
13850 return EGifPutExtensionLast ();
13851 ;
13852 return 0;
13853 }
13854 _ACEOF
13855 rm -f conftest.$ac_objext conftest$ac_exeext
13856 if { (ac_try="$ac_link"
13857 case "(($ac_try" in
13858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13859 *) ac_try_echo=$ac_try;;
13860 esac
13861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13862 (eval "$ac_link") 2>conftest.er1
13863 ac_status=$?
13864 grep -v '^ *+' conftest.er1 >conftest.err
13865 rm -f conftest.er1
13866 cat conftest.err >&5
13867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13868 (exit $ac_status); } && {
13869 test -z "$ac_c_werror_flag" ||
13870 test ! -s conftest.err
13871 } && test -s conftest$ac_exeext &&
13872 $as_test_x conftest$ac_exeext; then
13873 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13874 else
13875 echo "$as_me: failed program was:" >&5
13876 sed 's/^/| /' conftest.$ac_ext >&5
13877
13878 ac_cv_lib_ungif_EGifPutExtensionLast=no
13879 fi
13880
13881 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13882 conftest$ac_exeext conftest.$ac_ext
13883 LIBS=$ac_check_lib_save_LIBS
13884 fi
13885 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13886 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13887 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13888 HAVE_GIF=yes
13889 fi
13890
13891
13892 if test "$HAVE_GIF" = yes; then
13893
13894 cat >>confdefs.h <<\_ACEOF
13895 #define LIBGIF -lungif
13896 _ACEOF
13897
13898 ac_gif_lib_name="-lungif"
13899 fi
13900 fi
13901
13902 if test "${HAVE_GIF}" = "yes"; then
13903
13904 cat >>confdefs.h <<\_ACEOF
13905 #define HAVE_GIF 1
13906 _ACEOF
13907
13908 fi
13909 fi
13910
13911 if test "${HAVE_X11}" = "yes"; then
13912 MISSING=""
13913 WITH_NO=""
13914 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13915 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13916 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13917 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13918 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13919 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13920 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13921 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13922 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13923 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13924
13925 if test "X${MISSING}" != X; then
13926 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13927 $MISSING
13928 Maybe some development libraries/packages are missing?
13929 If you don't want to link with them give
13930 $WITH_NO
13931 as options to configure" >&5
13932 echo "$as_me: error: The following required libraries were not found:
13933 $MISSING
13934 Maybe some development libraries/packages are missing?
13935 If you don't want to link with them give
13936 $WITH_NO
13937 as options to configure" >&2;}
13938 { (exit 1); exit 1; }; }
13939 fi
13940 fi
13941
13942 ### Use -lgpm if available, unless `--with-gpm=no'.
13943 HAVE_GPM=no
13944 if test "${with_gpm}" != "no"; then
13945 if test "${ac_cv_header_gpm_h+set}" = set; then
13946 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13947 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13948 if test "${ac_cv_header_gpm_h+set}" = set; then
13949 echo $ECHO_N "(cached) $ECHO_C" >&6
13950 fi
13951 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13952 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13953 else
13954 # Is the header compilable?
13955 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13956 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13957 cat >conftest.$ac_ext <<_ACEOF
13958 /* confdefs.h. */
13959 _ACEOF
13960 cat confdefs.h >>conftest.$ac_ext
13961 cat >>conftest.$ac_ext <<_ACEOF
13962 /* end confdefs.h. */
13963 $ac_includes_default
13964 #include <gpm.h>
13965 _ACEOF
13966 rm -f conftest.$ac_objext
13967 if { (ac_try="$ac_compile"
13968 case "(($ac_try" in
13969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13970 *) ac_try_echo=$ac_try;;
13971 esac
13972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13973 (eval "$ac_compile") 2>conftest.er1
13974 ac_status=$?
13975 grep -v '^ *+' conftest.er1 >conftest.err
13976 rm -f conftest.er1
13977 cat conftest.err >&5
13978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13979 (exit $ac_status); } && {
13980 test -z "$ac_c_werror_flag" ||
13981 test ! -s conftest.err
13982 } && test -s conftest.$ac_objext; then
13983 ac_header_compiler=yes
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 ac_header_compiler=no
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13992 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13993 echo "${ECHO_T}$ac_header_compiler" >&6; }
13994
13995 # Is the header present?
13996 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
13997 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
13998 cat >conftest.$ac_ext <<_ACEOF
13999 /* confdefs.h. */
14000 _ACEOF
14001 cat confdefs.h >>conftest.$ac_ext
14002 cat >>conftest.$ac_ext <<_ACEOF
14003 /* end confdefs.h. */
14004 #include <gpm.h>
14005 _ACEOF
14006 if { (ac_try="$ac_cpp conftest.$ac_ext"
14007 case "(($ac_try" in
14008 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14009 *) ac_try_echo=$ac_try;;
14010 esac
14011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14012 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14013 ac_status=$?
14014 grep -v '^ *+' conftest.er1 >conftest.err
14015 rm -f conftest.er1
14016 cat conftest.err >&5
14017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14018 (exit $ac_status); } >/dev/null && {
14019 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14020 test ! -s conftest.err
14021 }; then
14022 ac_header_preproc=yes
14023 else
14024 echo "$as_me: failed program was:" >&5
14025 sed 's/^/| /' conftest.$ac_ext >&5
14026
14027 ac_header_preproc=no
14028 fi
14029
14030 rm -f conftest.err conftest.$ac_ext
14031 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14032 echo "${ECHO_T}$ac_header_preproc" >&6; }
14033
14034 # So? What about this header?
14035 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14036 yes:no: )
14037 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14038 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14039 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14040 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14041 ac_header_preproc=yes
14042 ;;
14043 no:yes:* )
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14045 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14047 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14049 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14051 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14053 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14055 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14056
14057 ;;
14058 esac
14059 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14060 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14061 if test "${ac_cv_header_gpm_h+set}" = set; then
14062 echo $ECHO_N "(cached) $ECHO_C" >&6
14063 else
14064 ac_cv_header_gpm_h=$ac_header_preproc
14065 fi
14066 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14067 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14068
14069 fi
14070 if test $ac_cv_header_gpm_h = yes; then
14071 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14072 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14073 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14074 echo $ECHO_N "(cached) $ECHO_C" >&6
14075 else
14076 ac_check_lib_save_LIBS=$LIBS
14077 LIBS="-lgpm $LIBS"
14078 cat >conftest.$ac_ext <<_ACEOF
14079 /* confdefs.h. */
14080 _ACEOF
14081 cat confdefs.h >>conftest.$ac_ext
14082 cat >>conftest.$ac_ext <<_ACEOF
14083 /* end confdefs.h. */
14084
14085 /* Override any GCC internal prototype to avoid an error.
14086 Use char because int might match the return type of a GCC
14087 builtin and then its argument prototype would still apply. */
14088 #ifdef __cplusplus
14089 extern "C"
14090 #endif
14091 char Gpm_Open ();
14092 int
14093 main ()
14094 {
14095 return Gpm_Open ();
14096 ;
14097 return 0;
14098 }
14099 _ACEOF
14100 rm -f conftest.$ac_objext conftest$ac_exeext
14101 if { (ac_try="$ac_link"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_link") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } && {
14114 test -z "$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 } && test -s conftest$ac_exeext &&
14117 $as_test_x conftest$ac_exeext; then
14118 ac_cv_lib_gpm_Gpm_Open=yes
14119 else
14120 echo "$as_me: failed program was:" >&5
14121 sed 's/^/| /' conftest.$ac_ext >&5
14122
14123 ac_cv_lib_gpm_Gpm_Open=no
14124 fi
14125
14126 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14127 conftest$ac_exeext conftest.$ac_ext
14128 LIBS=$ac_check_lib_save_LIBS
14129 fi
14130 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14131 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14132 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14133 HAVE_GPM=yes
14134 fi
14135
14136 fi
14137
14138
14139 fi
14140
14141 if test "${HAVE_GPM}" = "yes"; then
14142
14143 cat >>confdefs.h <<\_ACEOF
14144 #define HAVE_GPM 1
14145 _ACEOF
14146
14147 fi
14148
14149 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14150 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14151 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14152 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14153 echo $ECHO_N "(cached) $ECHO_C" >&6
14154 fi
14155 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14156 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14157 else
14158 # Is the header compilable?
14159 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14160 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14161 cat >conftest.$ac_ext <<_ACEOF
14162 /* confdefs.h. */
14163 _ACEOF
14164 cat confdefs.h >>conftest.$ac_ext
14165 cat >>conftest.$ac_ext <<_ACEOF
14166 /* end confdefs.h. */
14167 $ac_includes_default
14168 #include <malloc/malloc.h>
14169 _ACEOF
14170 rm -f conftest.$ac_objext
14171 if { (ac_try="$ac_compile"
14172 case "(($ac_try" in
14173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14174 *) ac_try_echo=$ac_try;;
14175 esac
14176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14177 (eval "$ac_compile") 2>conftest.er1
14178 ac_status=$?
14179 grep -v '^ *+' conftest.er1 >conftest.err
14180 rm -f conftest.er1
14181 cat conftest.err >&5
14182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14183 (exit $ac_status); } && {
14184 test -z "$ac_c_werror_flag" ||
14185 test ! -s conftest.err
14186 } && test -s conftest.$ac_objext; then
14187 ac_header_compiler=yes
14188 else
14189 echo "$as_me: failed program was:" >&5
14190 sed 's/^/| /' conftest.$ac_ext >&5
14191
14192 ac_header_compiler=no
14193 fi
14194
14195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14197 echo "${ECHO_T}$ac_header_compiler" >&6; }
14198
14199 # Is the header present?
14200 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14201 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14202 cat >conftest.$ac_ext <<_ACEOF
14203 /* confdefs.h. */
14204 _ACEOF
14205 cat confdefs.h >>conftest.$ac_ext
14206 cat >>conftest.$ac_ext <<_ACEOF
14207 /* end confdefs.h. */
14208 #include <malloc/malloc.h>
14209 _ACEOF
14210 if { (ac_try="$ac_cpp conftest.$ac_ext"
14211 case "(($ac_try" in
14212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14213 *) ac_try_echo=$ac_try;;
14214 esac
14215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14217 ac_status=$?
14218 grep -v '^ *+' conftest.er1 >conftest.err
14219 rm -f conftest.er1
14220 cat conftest.err >&5
14221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14222 (exit $ac_status); } >/dev/null && {
14223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14224 test ! -s conftest.err
14225 }; then
14226 ac_header_preproc=yes
14227 else
14228 echo "$as_me: failed program was:" >&5
14229 sed 's/^/| /' conftest.$ac_ext >&5
14230
14231 ac_header_preproc=no
14232 fi
14233
14234 rm -f conftest.err conftest.$ac_ext
14235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14236 echo "${ECHO_T}$ac_header_preproc" >&6; }
14237
14238 # So? What about this header?
14239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14240 yes:no: )
14241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14242 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14243 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14244 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14245 ac_header_preproc=yes
14246 ;;
14247 no:yes:* )
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14249 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14251 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14253 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14255 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14257 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14258 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14259 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14260
14261 ;;
14262 esac
14263 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14264 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14265 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14266 echo $ECHO_N "(cached) $ECHO_C" >&6
14267 else
14268 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14269 fi
14270 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14271 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14272
14273 fi
14274 if test $ac_cv_header_malloc_malloc_h = yes; then
14275
14276 cat >>confdefs.h <<\_ACEOF
14277 #define HAVE_MALLOC_MALLOC_H 1
14278 _ACEOF
14279
14280 fi
14281
14282
14283
14284 ### Use Mac OS X Carbon API to implement GUI.
14285 if test "${HAVE_CARBON}" = "yes"; then
14286
14287 cat >>confdefs.h <<\_ACEOF
14288 #define HAVE_CARBON 1
14289 _ACEOF
14290
14291 ## Specify the install directory
14292 carbon_appdir=
14293 if test "${carbon_appdir_x}" != ""; then
14294 case ${carbon_appdir_x} in
14295 y | ye | yes) carbon_appdir=/Applications ;;
14296 * ) carbon_appdir=${carbon_appdir_x} ;;
14297 esac
14298 fi
14299 # We also have mouse menus.
14300 HAVE_MENUS=yes
14301 fi
14302
14303 ### Use session management (-lSM -lICE) if available
14304 HAVE_X_SM=no
14305 if test "${HAVE_X11}" = "yes"; then
14306 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14307 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14308 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14309 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14310 echo $ECHO_N "(cached) $ECHO_C" >&6
14311 fi
14312 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14313 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14314 else
14315 # Is the header compilable?
14316 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14317 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14318 cat >conftest.$ac_ext <<_ACEOF
14319 /* confdefs.h. */
14320 _ACEOF
14321 cat confdefs.h >>conftest.$ac_ext
14322 cat >>conftest.$ac_ext <<_ACEOF
14323 /* end confdefs.h. */
14324 $ac_includes_default
14325 #include <X11/SM/SMlib.h>
14326 _ACEOF
14327 rm -f conftest.$ac_objext
14328 if { (ac_try="$ac_compile"
14329 case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_compile") 2>conftest.er1
14335 ac_status=$?
14336 grep -v '^ *+' conftest.er1 >conftest.err
14337 rm -f conftest.er1
14338 cat conftest.err >&5
14339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14340 (exit $ac_status); } && {
14341 test -z "$ac_c_werror_flag" ||
14342 test ! -s conftest.err
14343 } && test -s conftest.$ac_objext; then
14344 ac_header_compiler=yes
14345 else
14346 echo "$as_me: failed program was:" >&5
14347 sed 's/^/| /' conftest.$ac_ext >&5
14348
14349 ac_header_compiler=no
14350 fi
14351
14352 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14353 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14354 echo "${ECHO_T}$ac_header_compiler" >&6; }
14355
14356 # Is the header present?
14357 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14358 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14359 cat >conftest.$ac_ext <<_ACEOF
14360 /* confdefs.h. */
14361 _ACEOF
14362 cat confdefs.h >>conftest.$ac_ext
14363 cat >>conftest.$ac_ext <<_ACEOF
14364 /* end confdefs.h. */
14365 #include <X11/SM/SMlib.h>
14366 _ACEOF
14367 if { (ac_try="$ac_cpp conftest.$ac_ext"
14368 case "(($ac_try" in
14369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14370 *) ac_try_echo=$ac_try;;
14371 esac
14372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14373 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14374 ac_status=$?
14375 grep -v '^ *+' conftest.er1 >conftest.err
14376 rm -f conftest.er1
14377 cat conftest.err >&5
14378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14379 (exit $ac_status); } >/dev/null && {
14380 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14381 test ! -s conftest.err
14382 }; then
14383 ac_header_preproc=yes
14384 else
14385 echo "$as_me: failed program was:" >&5
14386 sed 's/^/| /' conftest.$ac_ext >&5
14387
14388 ac_header_preproc=no
14389 fi
14390
14391 rm -f conftest.err conftest.$ac_ext
14392 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14393 echo "${ECHO_T}$ac_header_preproc" >&6; }
14394
14395 # So? What about this header?
14396 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14397 yes:no: )
14398 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14399 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14400 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14401 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14402 ac_header_preproc=yes
14403 ;;
14404 no:yes:* )
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14406 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14408 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14410 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14412 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14414 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14415 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14416 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14417
14418 ;;
14419 esac
14420 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14421 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14422 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14423 echo $ECHO_N "(cached) $ECHO_C" >&6
14424 else
14425 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14426 fi
14427 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14428 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14429
14430 fi
14431 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14432 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14433 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14434 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14435 echo $ECHO_N "(cached) $ECHO_C" >&6
14436 else
14437 ac_check_lib_save_LIBS=$LIBS
14438 LIBS="-lSM -lICE $LIBS"
14439 cat >conftest.$ac_ext <<_ACEOF
14440 /* confdefs.h. */
14441 _ACEOF
14442 cat confdefs.h >>conftest.$ac_ext
14443 cat >>conftest.$ac_ext <<_ACEOF
14444 /* end confdefs.h. */
14445
14446 /* Override any GCC internal prototype to avoid an error.
14447 Use char because int might match the return type of a GCC
14448 builtin and then its argument prototype would still apply. */
14449 #ifdef __cplusplus
14450 extern "C"
14451 #endif
14452 char SmcOpenConnection ();
14453 int
14454 main ()
14455 {
14456 return SmcOpenConnection ();
14457 ;
14458 return 0;
14459 }
14460 _ACEOF
14461 rm -f conftest.$ac_objext conftest$ac_exeext
14462 if { (ac_try="$ac_link"
14463 case "(($ac_try" in
14464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14465 *) ac_try_echo=$ac_try;;
14466 esac
14467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14468 (eval "$ac_link") 2>conftest.er1
14469 ac_status=$?
14470 grep -v '^ *+' conftest.er1 >conftest.err
14471 rm -f conftest.er1
14472 cat conftest.err >&5
14473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14474 (exit $ac_status); } && {
14475 test -z "$ac_c_werror_flag" ||
14476 test ! -s conftest.err
14477 } && test -s conftest$ac_exeext &&
14478 $as_test_x conftest$ac_exeext; then
14479 ac_cv_lib_SM_SmcOpenConnection=yes
14480 else
14481 echo "$as_me: failed program was:" >&5
14482 sed 's/^/| /' conftest.$ac_ext >&5
14483
14484 ac_cv_lib_SM_SmcOpenConnection=no
14485 fi
14486
14487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14488 conftest$ac_exeext conftest.$ac_ext
14489 LIBS=$ac_check_lib_save_LIBS
14490 fi
14491 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14492 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14493 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14494 HAVE_X_SM=yes
14495 fi
14496
14497 fi
14498
14499
14500
14501 if test "${HAVE_X_SM}" = "yes"; then
14502
14503 cat >>confdefs.h <<\_ACEOF
14504 #define HAVE_X_SM 1
14505 _ACEOF
14506
14507 case "$LIBS" in
14508 *-lSM*) ;;
14509 *) LIBS="-lSM -lICE $LIBS" ;;
14510 esac
14511 fi
14512 fi
14513
14514 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14515 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14516 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14517 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14518 echo $ECHO_N "(cached) $ECHO_C" >&6
14519 else
14520 cat >conftest.$ac_ext <<_ACEOF
14521 /* confdefs.h. */
14522 _ACEOF
14523 cat confdefs.h >>conftest.$ac_ext
14524 cat >>conftest.$ac_ext <<_ACEOF
14525 /* end confdefs.h. */
14526 #include <netdb.h>
14527 int
14528 main ()
14529 {
14530 return h_errno;
14531 ;
14532 return 0;
14533 }
14534 _ACEOF
14535 rm -f conftest.$ac_objext conftest$ac_exeext
14536 if { (ac_try="$ac_link"
14537 case "(($ac_try" in
14538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14539 *) ac_try_echo=$ac_try;;
14540 esac
14541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14542 (eval "$ac_link") 2>conftest.er1
14543 ac_status=$?
14544 grep -v '^ *+' conftest.er1 >conftest.err
14545 rm -f conftest.er1
14546 cat conftest.err >&5
14547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14548 (exit $ac_status); } && {
14549 test -z "$ac_c_werror_flag" ||
14550 test ! -s conftest.err
14551 } && test -s conftest$ac_exeext &&
14552 $as_test_x conftest$ac_exeext; then
14553 emacs_cv_netdb_declares_h_errno=yes
14554 else
14555 echo "$as_me: failed program was:" >&5
14556 sed 's/^/| /' conftest.$ac_ext >&5
14557
14558 emacs_cv_netdb_declares_h_errno=no
14559 fi
14560
14561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14562 conftest$ac_exeext conftest.$ac_ext
14563 fi
14564 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14565 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14566 if test $emacs_cv_netdb_declares_h_errno = yes; then
14567
14568 cat >>confdefs.h <<\_ACEOF
14569 #define HAVE_H_ERRNO 1
14570 _ACEOF
14571
14572 fi
14573
14574 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14575 # for constant arguments. Useless!
14576 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14577 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14578 if test "${ac_cv_working_alloca_h+set}" = set; then
14579 echo $ECHO_N "(cached) $ECHO_C" >&6
14580 else
14581 cat >conftest.$ac_ext <<_ACEOF
14582 /* confdefs.h. */
14583 _ACEOF
14584 cat confdefs.h >>conftest.$ac_ext
14585 cat >>conftest.$ac_ext <<_ACEOF
14586 /* end confdefs.h. */
14587 #include <alloca.h>
14588 int
14589 main ()
14590 {
14591 char *p = (char *) alloca (2 * sizeof (int));
14592 if (p) return 0;
14593 ;
14594 return 0;
14595 }
14596 _ACEOF
14597 rm -f conftest.$ac_objext conftest$ac_exeext
14598 if { (ac_try="$ac_link"
14599 case "(($ac_try" in
14600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14601 *) ac_try_echo=$ac_try;;
14602 esac
14603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14604 (eval "$ac_link") 2>conftest.er1
14605 ac_status=$?
14606 grep -v '^ *+' conftest.er1 >conftest.err
14607 rm -f conftest.er1
14608 cat conftest.err >&5
14609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14610 (exit $ac_status); } && {
14611 test -z "$ac_c_werror_flag" ||
14612 test ! -s conftest.err
14613 } && test -s conftest$ac_exeext &&
14614 $as_test_x conftest$ac_exeext; then
14615 ac_cv_working_alloca_h=yes
14616 else
14617 echo "$as_me: failed program was:" >&5
14618 sed 's/^/| /' conftest.$ac_ext >&5
14619
14620 ac_cv_working_alloca_h=no
14621 fi
14622
14623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14624 conftest$ac_exeext conftest.$ac_ext
14625 fi
14626 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14627 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14628 if test $ac_cv_working_alloca_h = yes; then
14629
14630 cat >>confdefs.h <<\_ACEOF
14631 #define HAVE_ALLOCA_H 1
14632 _ACEOF
14633
14634 fi
14635
14636 { echo "$as_me:$LINENO: checking for alloca" >&5
14637 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14638 if test "${ac_cv_func_alloca_works+set}" = set; then
14639 echo $ECHO_N "(cached) $ECHO_C" >&6
14640 else
14641 cat >conftest.$ac_ext <<_ACEOF
14642 /* confdefs.h. */
14643 _ACEOF
14644 cat confdefs.h >>conftest.$ac_ext
14645 cat >>conftest.$ac_ext <<_ACEOF
14646 /* end confdefs.h. */
14647 #ifdef __GNUC__
14648 # define alloca __builtin_alloca
14649 #else
14650 # ifdef _MSC_VER
14651 # include <malloc.h>
14652 # define alloca _alloca
14653 # else
14654 # ifdef HAVE_ALLOCA_H
14655 # include <alloca.h>
14656 # else
14657 # ifdef _AIX
14658 #pragma alloca
14659 # else
14660 # ifndef alloca /* predefined by HP cc +Olibcalls */
14661 char *alloca ();
14662 # endif
14663 # endif
14664 # endif
14665 # endif
14666 #endif
14667
14668 int
14669 main ()
14670 {
14671 char *p = (char *) alloca (1);
14672 if (p) return 0;
14673 ;
14674 return 0;
14675 }
14676 _ACEOF
14677 rm -f conftest.$ac_objext conftest$ac_exeext
14678 if { (ac_try="$ac_link"
14679 case "(($ac_try" in
14680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14681 *) ac_try_echo=$ac_try;;
14682 esac
14683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14684 (eval "$ac_link") 2>conftest.er1
14685 ac_status=$?
14686 grep -v '^ *+' conftest.er1 >conftest.err
14687 rm -f conftest.er1
14688 cat conftest.err >&5
14689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14690 (exit $ac_status); } && {
14691 test -z "$ac_c_werror_flag" ||
14692 test ! -s conftest.err
14693 } && test -s conftest$ac_exeext &&
14694 $as_test_x conftest$ac_exeext; then
14695 ac_cv_func_alloca_works=yes
14696 else
14697 echo "$as_me: failed program was:" >&5
14698 sed 's/^/| /' conftest.$ac_ext >&5
14699
14700 ac_cv_func_alloca_works=no
14701 fi
14702
14703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14704 conftest$ac_exeext conftest.$ac_ext
14705 fi
14706 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14707 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14708
14709 if test $ac_cv_func_alloca_works = yes; then
14710
14711 cat >>confdefs.h <<\_ACEOF
14712 #define HAVE_ALLOCA 1
14713 _ACEOF
14714
14715 else
14716 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14717 # that cause trouble. Some versions do not even contain alloca or
14718 # contain a buggy version. If you still want to use their alloca,
14719 # use ar to extract alloca.o from them instead of compiling alloca.c.
14720
14721 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14722
14723 cat >>confdefs.h <<\_ACEOF
14724 #define C_ALLOCA 1
14725 _ACEOF
14726
14727
14728 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14729 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14730 if test "${ac_cv_os_cray+set}" = set; then
14731 echo $ECHO_N "(cached) $ECHO_C" >&6
14732 else
14733 cat >conftest.$ac_ext <<_ACEOF
14734 /* confdefs.h. */
14735 _ACEOF
14736 cat confdefs.h >>conftest.$ac_ext
14737 cat >>conftest.$ac_ext <<_ACEOF
14738 /* end confdefs.h. */
14739 #if defined CRAY && ! defined CRAY2
14740 webecray
14741 #else
14742 wenotbecray
14743 #endif
14744
14745 _ACEOF
14746 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14747 $EGREP "webecray" >/dev/null 2>&1; then
14748 ac_cv_os_cray=yes
14749 else
14750 ac_cv_os_cray=no
14751 fi
14752 rm -f conftest*
14753
14754 fi
14755 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14756 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14757 if test $ac_cv_os_cray = yes; then
14758 for ac_func in _getb67 GETB67 getb67; do
14759 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14760 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14761 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14762 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14763 echo $ECHO_N "(cached) $ECHO_C" >&6
14764 else
14765 cat >conftest.$ac_ext <<_ACEOF
14766 /* confdefs.h. */
14767 _ACEOF
14768 cat confdefs.h >>conftest.$ac_ext
14769 cat >>conftest.$ac_ext <<_ACEOF
14770 /* end confdefs.h. */
14771 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14772 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14773 #define $ac_func innocuous_$ac_func
14774
14775 /* System header to define __stub macros and hopefully few prototypes,
14776 which can conflict with char $ac_func (); below.
14777 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14778 <limits.h> exists even on freestanding compilers. */
14779
14780 #ifdef __STDC__
14781 # include <limits.h>
14782 #else
14783 # include <assert.h>
14784 #endif
14785
14786 #undef $ac_func
14787
14788 /* Override any GCC internal prototype to avoid an error.
14789 Use char because int might match the return type of a GCC
14790 builtin and then its argument prototype would still apply. */
14791 #ifdef __cplusplus
14792 extern "C"
14793 #endif
14794 char $ac_func ();
14795 /* The GNU C library defines this for functions which it implements
14796 to always fail with ENOSYS. Some functions are actually named
14797 something starting with __ and the normal name is an alias. */
14798 #if defined __stub_$ac_func || defined __stub___$ac_func
14799 choke me
14800 #endif
14801
14802 int
14803 main ()
14804 {
14805 return $ac_func ();
14806 ;
14807 return 0;
14808 }
14809 _ACEOF
14810 rm -f conftest.$ac_objext conftest$ac_exeext
14811 if { (ac_try="$ac_link"
14812 case "(($ac_try" in
14813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14814 *) ac_try_echo=$ac_try;;
14815 esac
14816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14817 (eval "$ac_link") 2>conftest.er1
14818 ac_status=$?
14819 grep -v '^ *+' conftest.er1 >conftest.err
14820 rm -f conftest.er1
14821 cat conftest.err >&5
14822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14823 (exit $ac_status); } && {
14824 test -z "$ac_c_werror_flag" ||
14825 test ! -s conftest.err
14826 } && test -s conftest$ac_exeext &&
14827 $as_test_x conftest$ac_exeext; then
14828 eval "$as_ac_var=yes"
14829 else
14830 echo "$as_me: failed program was:" >&5
14831 sed 's/^/| /' conftest.$ac_ext >&5
14832
14833 eval "$as_ac_var=no"
14834 fi
14835
14836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14837 conftest$ac_exeext conftest.$ac_ext
14838 fi
14839 ac_res=`eval echo '${'$as_ac_var'}'`
14840 { echo "$as_me:$LINENO: result: $ac_res" >&5
14841 echo "${ECHO_T}$ac_res" >&6; }
14842 if test `eval echo '${'$as_ac_var'}'` = yes; then
14843
14844 cat >>confdefs.h <<_ACEOF
14845 #define CRAY_STACKSEG_END $ac_func
14846 _ACEOF
14847
14848 break
14849 fi
14850
14851 done
14852 fi
14853
14854 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14855 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14856 if test "${ac_cv_c_stack_direction+set}" = set; then
14857 echo $ECHO_N "(cached) $ECHO_C" >&6
14858 else
14859 if test "$cross_compiling" = yes; then
14860 ac_cv_c_stack_direction=0
14861 else
14862 cat >conftest.$ac_ext <<_ACEOF
14863 /* confdefs.h. */
14864 _ACEOF
14865 cat confdefs.h >>conftest.$ac_ext
14866 cat >>conftest.$ac_ext <<_ACEOF
14867 /* end confdefs.h. */
14868 $ac_includes_default
14869 int
14870 find_stack_direction ()
14871 {
14872 static char *addr = 0;
14873 auto char dummy;
14874 if (addr == 0)
14875 {
14876 addr = &dummy;
14877 return find_stack_direction ();
14878 }
14879 else
14880 return (&dummy > addr) ? 1 : -1;
14881 }
14882
14883 int
14884 main ()
14885 {
14886 return find_stack_direction () < 0;
14887 }
14888 _ACEOF
14889 rm -f conftest$ac_exeext
14890 if { (ac_try="$ac_link"
14891 case "(($ac_try" in
14892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893 *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896 (eval "$ac_link") 2>&5
14897 ac_status=$?
14898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14899 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14900 { (case "(($ac_try" in
14901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14902 *) ac_try_echo=$ac_try;;
14903 esac
14904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14905 (eval "$ac_try") 2>&5
14906 ac_status=$?
14907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14908 (exit $ac_status); }; }; then
14909 ac_cv_c_stack_direction=1
14910 else
14911 echo "$as_me: program exited with status $ac_status" >&5
14912 echo "$as_me: failed program was:" >&5
14913 sed 's/^/| /' conftest.$ac_ext >&5
14914
14915 ( exit $ac_status )
14916 ac_cv_c_stack_direction=-1
14917 fi
14918 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14919 fi
14920
14921
14922 fi
14923 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14924 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14925
14926 cat >>confdefs.h <<_ACEOF
14927 #define STACK_DIRECTION $ac_cv_c_stack_direction
14928 _ACEOF
14929
14930
14931 fi
14932
14933
14934 if test x"$ac_cv_func_alloca_works" != xyes; then
14935 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
14936 echo "$as_me: error: a system implementation of alloca is required " >&2;}
14937 { (exit 1); exit 1; }; }
14938 fi
14939
14940 # fmod, logb, and frexp are found in -lm on most systems.
14941 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14942
14943 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14944 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14945 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14946 echo $ECHO_N "(cached) $ECHO_C" >&6
14947 else
14948 ac_check_lib_save_LIBS=$LIBS
14949 LIBS="-lm $LIBS"
14950 cat >conftest.$ac_ext <<_ACEOF
14951 /* confdefs.h. */
14952 _ACEOF
14953 cat confdefs.h >>conftest.$ac_ext
14954 cat >>conftest.$ac_ext <<_ACEOF
14955 /* end confdefs.h. */
14956
14957 /* Override any GCC internal prototype to avoid an error.
14958 Use char because int might match the return type of a GCC
14959 builtin and then its argument prototype would still apply. */
14960 #ifdef __cplusplus
14961 extern "C"
14962 #endif
14963 char sqrt ();
14964 int
14965 main ()
14966 {
14967 return sqrt ();
14968 ;
14969 return 0;
14970 }
14971 _ACEOF
14972 rm -f conftest.$ac_objext conftest$ac_exeext
14973 if { (ac_try="$ac_link"
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_link") 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); } && {
14986 test -z "$ac_c_werror_flag" ||
14987 test ! -s conftest.err
14988 } && test -s conftest$ac_exeext &&
14989 $as_test_x conftest$ac_exeext; then
14990 ac_cv_lib_m_sqrt=yes
14991 else
14992 echo "$as_me: failed program was:" >&5
14993 sed 's/^/| /' conftest.$ac_ext >&5
14994
14995 ac_cv_lib_m_sqrt=no
14996 fi
14997
14998 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14999 conftest$ac_exeext conftest.$ac_ext
15000 LIBS=$ac_check_lib_save_LIBS
15001 fi
15002 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15003 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15004 if test $ac_cv_lib_m_sqrt = yes; then
15005 cat >>confdefs.h <<_ACEOF
15006 #define HAVE_LIBM 1
15007 _ACEOF
15008
15009 LIBS="-lm $LIBS"
15010
15011 fi
15012
15013
15014 # Check for mail-locking functions in a "mail" library. Probably this should
15015 # have the same check as for liblockfile below.
15016
15017 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15018 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15019 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15020 echo $ECHO_N "(cached) $ECHO_C" >&6
15021 else
15022 ac_check_lib_save_LIBS=$LIBS
15023 LIBS="-lmail $LIBS"
15024 cat >conftest.$ac_ext <<_ACEOF
15025 /* confdefs.h. */
15026 _ACEOF
15027 cat confdefs.h >>conftest.$ac_ext
15028 cat >>conftest.$ac_ext <<_ACEOF
15029 /* end confdefs.h. */
15030
15031 /* Override any GCC internal prototype to avoid an error.
15032 Use char because int might match the return type of a GCC
15033 builtin and then its argument prototype would still apply. */
15034 #ifdef __cplusplus
15035 extern "C"
15036 #endif
15037 char maillock ();
15038 int
15039 main ()
15040 {
15041 return maillock ();
15042 ;
15043 return 0;
15044 }
15045 _ACEOF
15046 rm -f conftest.$ac_objext conftest$ac_exeext
15047 if { (ac_try="$ac_link"
15048 case "(($ac_try" in
15049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15050 *) ac_try_echo=$ac_try;;
15051 esac
15052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15053 (eval "$ac_link") 2>conftest.er1
15054 ac_status=$?
15055 grep -v '^ *+' conftest.er1 >conftest.err
15056 rm -f conftest.er1
15057 cat conftest.err >&5
15058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15059 (exit $ac_status); } && {
15060 test -z "$ac_c_werror_flag" ||
15061 test ! -s conftest.err
15062 } && test -s conftest$ac_exeext &&
15063 $as_test_x conftest$ac_exeext; then
15064 ac_cv_lib_mail_maillock=yes
15065 else
15066 echo "$as_me: failed program was:" >&5
15067 sed 's/^/| /' conftest.$ac_ext >&5
15068
15069 ac_cv_lib_mail_maillock=no
15070 fi
15071
15072 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15073 conftest$ac_exeext conftest.$ac_ext
15074 LIBS=$ac_check_lib_save_LIBS
15075 fi
15076 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15077 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15078 if test $ac_cv_lib_mail_maillock = yes; then
15079 cat >>confdefs.h <<_ACEOF
15080 #define HAVE_LIBMAIL 1
15081 _ACEOF
15082
15083 LIBS="-lmail $LIBS"
15084
15085 fi
15086
15087
15088 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15089 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15090 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093 ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-llockfile $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h. */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15105 #ifdef __cplusplus
15106 extern "C"
15107 #endif
15108 char maillock ();
15109 int
15110 main ()
15111 {
15112 return maillock ();
15113 ;
15114 return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_lib_lockfile_maillock=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_cv_lib_lockfile_maillock=no
15141 fi
15142
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15146 fi
15147 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15148 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15149 if test $ac_cv_lib_lockfile_maillock = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_LIBLOCKFILE 1
15152 _ACEOF
15153
15154 LIBS="-llockfile $LIBS"
15155
15156 fi
15157
15158 # If we have the shared liblockfile, assume we must use it for mail
15159 # locking (e.g. Debian). If we couldn't link against liblockfile
15160 # (no liblockfile.a installed), ensure that we don't need to.
15161 if test "$ac_cv_lib_lockfile_maillock" = no; then
15162 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15163 set dummy liblockfile.so; ac_word=$2
15164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15166 if test "${ac_cv_prog_liblockfile+set}" = set; then
15167 echo $ECHO_N "(cached) $ECHO_C" >&6
15168 else
15169 if test -n "$liblockfile"; then
15170 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15171 else
15172 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15173 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15174 for as_dir in $as_dummy
15175 do
15176 IFS=$as_save_IFS
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15180 ac_cv_prog_liblockfile="yes"
15181 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15182 break 2
15183 fi
15184 done
15185 done
15186 IFS=$as_save_IFS
15187
15188 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15189 fi
15190 fi
15191 liblockfile=$ac_cv_prog_liblockfile
15192 if test -n "$liblockfile"; then
15193 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15194 echo "${ECHO_T}$liblockfile" >&6; }
15195 else
15196 { echo "$as_me:$LINENO: result: no" >&5
15197 echo "${ECHO_T}no" >&6; }
15198 fi
15199
15200
15201 if test $ac_cv_prog_liblockfile = yes; then
15202 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15203 This probably means that movemail could lose mail.
15204 There may be a \`development' package to install containing liblockfile." >&5
15205 echo "$as_me: error: Shared liblockfile found but can't link against it.
15206 This probably means that movemail could lose mail.
15207 There may be a \`development' package to install containing liblockfile." >&2;}
15208 { (exit 1); exit 1; }; }
15209 else :
15210 fi
15211 fi
15212
15213 for ac_func in touchlock
15214 do
15215 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15216 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15217 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15218 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15219 echo $ECHO_N "(cached) $ECHO_C" >&6
15220 else
15221 cat >conftest.$ac_ext <<_ACEOF
15222 /* confdefs.h. */
15223 _ACEOF
15224 cat confdefs.h >>conftest.$ac_ext
15225 cat >>conftest.$ac_ext <<_ACEOF
15226 /* end confdefs.h. */
15227 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15228 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15229 #define $ac_func innocuous_$ac_func
15230
15231 /* System header to define __stub macros and hopefully few prototypes,
15232 which can conflict with char $ac_func (); below.
15233 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15234 <limits.h> exists even on freestanding compilers. */
15235
15236 #ifdef __STDC__
15237 # include <limits.h>
15238 #else
15239 # include <assert.h>
15240 #endif
15241
15242 #undef $ac_func
15243
15244 /* Override any GCC internal prototype to avoid an error.
15245 Use char because int might match the return type of a GCC
15246 builtin and then its argument prototype would still apply. */
15247 #ifdef __cplusplus
15248 extern "C"
15249 #endif
15250 char $ac_func ();
15251 /* The GNU C library defines this for functions which it implements
15252 to always fail with ENOSYS. Some functions are actually named
15253 something starting with __ and the normal name is an alias. */
15254 #if defined __stub_$ac_func || defined __stub___$ac_func
15255 choke me
15256 #endif
15257
15258 int
15259 main ()
15260 {
15261 return $ac_func ();
15262 ;
15263 return 0;
15264 }
15265 _ACEOF
15266 rm -f conftest.$ac_objext conftest$ac_exeext
15267 if { (ac_try="$ac_link"
15268 case "(($ac_try" in
15269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15270 *) ac_try_echo=$ac_try;;
15271 esac
15272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15273 (eval "$ac_link") 2>conftest.er1
15274 ac_status=$?
15275 grep -v '^ *+' conftest.er1 >conftest.err
15276 rm -f conftest.er1
15277 cat conftest.err >&5
15278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15279 (exit $ac_status); } && {
15280 test -z "$ac_c_werror_flag" ||
15281 test ! -s conftest.err
15282 } && test -s conftest$ac_exeext &&
15283 $as_test_x conftest$ac_exeext; then
15284 eval "$as_ac_var=yes"
15285 else
15286 echo "$as_me: failed program was:" >&5
15287 sed 's/^/| /' conftest.$ac_ext >&5
15288
15289 eval "$as_ac_var=no"
15290 fi
15291
15292 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15293 conftest$ac_exeext conftest.$ac_ext
15294 fi
15295 ac_res=`eval echo '${'$as_ac_var'}'`
15296 { echo "$as_me:$LINENO: result: $ac_res" >&5
15297 echo "${ECHO_T}$ac_res" >&6; }
15298 if test `eval echo '${'$as_ac_var'}'` = yes; then
15299 cat >>confdefs.h <<_ACEOF
15300 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15301 _ACEOF
15302
15303 fi
15304 done
15305
15306
15307 for ac_header in maillock.h
15308 do
15309 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15311 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15312 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15313 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15314 echo $ECHO_N "(cached) $ECHO_C" >&6
15315 fi
15316 ac_res=`eval echo '${'$as_ac_Header'}'`
15317 { echo "$as_me:$LINENO: result: $ac_res" >&5
15318 echo "${ECHO_T}$ac_res" >&6; }
15319 else
15320 # Is the header compilable?
15321 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15322 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15323 cat >conftest.$ac_ext <<_ACEOF
15324 /* confdefs.h. */
15325 _ACEOF
15326 cat confdefs.h >>conftest.$ac_ext
15327 cat >>conftest.$ac_ext <<_ACEOF
15328 /* end confdefs.h. */
15329 $ac_includes_default
15330 #include <$ac_header>
15331 _ACEOF
15332 rm -f conftest.$ac_objext
15333 if { (ac_try="$ac_compile"
15334 case "(($ac_try" in
15335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336 *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339 (eval "$ac_compile") 2>conftest.er1
15340 ac_status=$?
15341 grep -v '^ *+' conftest.er1 >conftest.err
15342 rm -f conftest.er1
15343 cat conftest.err >&5
15344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15345 (exit $ac_status); } && {
15346 test -z "$ac_c_werror_flag" ||
15347 test ! -s conftest.err
15348 } && test -s conftest.$ac_objext; then
15349 ac_header_compiler=yes
15350 else
15351 echo "$as_me: failed program was:" >&5
15352 sed 's/^/| /' conftest.$ac_ext >&5
15353
15354 ac_header_compiler=no
15355 fi
15356
15357 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15358 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15359 echo "${ECHO_T}$ac_header_compiler" >&6; }
15360
15361 # Is the header present?
15362 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15363 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 #include <$ac_header>
15371 _ACEOF
15372 if { (ac_try="$ac_cpp conftest.$ac_ext"
15373 case "(($ac_try" in
15374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15375 *) ac_try_echo=$ac_try;;
15376 esac
15377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15378 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15379 ac_status=$?
15380 grep -v '^ *+' conftest.er1 >conftest.err
15381 rm -f conftest.er1
15382 cat conftest.err >&5
15383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15384 (exit $ac_status); } >/dev/null && {
15385 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15386 test ! -s conftest.err
15387 }; then
15388 ac_header_preproc=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_header_preproc=no
15394 fi
15395
15396 rm -f conftest.err conftest.$ac_ext
15397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15398 echo "${ECHO_T}$ac_header_preproc" >&6; }
15399
15400 # So? What about this header?
15401 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15402 yes:no: )
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15407 ac_header_preproc=yes
15408 ;;
15409 no:yes:* )
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15422
15423 ;;
15424 esac
15425 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15426 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15427 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15428 echo $ECHO_N "(cached) $ECHO_C" >&6
15429 else
15430 eval "$as_ac_Header=\$ac_header_preproc"
15431 fi
15432 ac_res=`eval echo '${'$as_ac_Header'}'`
15433 { echo "$as_me:$LINENO: result: $ac_res" >&5
15434 echo "${ECHO_T}$ac_res" >&6; }
15435
15436 fi
15437 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15438 cat >>confdefs.h <<_ACEOF
15439 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15440 _ACEOF
15441
15442 fi
15443
15444 done
15445
15446
15447
15448
15449
15450
15451
15452
15453
15454
15455
15456
15457
15458
15459
15460
15461
15462
15463
15464
15465
15466
15467
15468
15469
15470
15471
15472
15473
15474
15475
15476
15477
15478
15479
15480
15481
15482
15483
15484
15485
15486
15487
15488
15489
15490
15491
15492
15493
15494
15495
15496
15497
15498
15499
15500
15501
15502
15503
15504
15505
15506
15507
15508
15509
15510
15511
15512
15513
15514
15515 for ac_func in gethostname getdomainname dup2 \
15516 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15517 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15518 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15519 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15520 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15521 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15522 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15523 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15524 do
15525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15540
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15545
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15551
15552 #undef $ac_func
15553
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char $ac_func ();
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15565 choke me
15566 #endif
15567
15568 int
15569 main ()
15570 {
15571 return $ac_func ();
15572 ;
15573 return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 eval "$as_ac_var=no"
15600 fi
15601
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15604 fi
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15612
15613 fi
15614 done
15615
15616
15617
15618 for ac_header in sys/un.h
15619 do
15620 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15622 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15623 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15624 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15625 echo $ECHO_N "(cached) $ECHO_C" >&6
15626 fi
15627 ac_res=`eval echo '${'$as_ac_Header'}'`
15628 { echo "$as_me:$LINENO: result: $ac_res" >&5
15629 echo "${ECHO_T}$ac_res" >&6; }
15630 else
15631 # Is the header compilable?
15632 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15633 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15634 cat >conftest.$ac_ext <<_ACEOF
15635 /* confdefs.h. */
15636 _ACEOF
15637 cat confdefs.h >>conftest.$ac_ext
15638 cat >>conftest.$ac_ext <<_ACEOF
15639 /* end confdefs.h. */
15640 $ac_includes_default
15641 #include <$ac_header>
15642 _ACEOF
15643 rm -f conftest.$ac_objext
15644 if { (ac_try="$ac_compile"
15645 case "(($ac_try" in
15646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15647 *) ac_try_echo=$ac_try;;
15648 esac
15649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15650 (eval "$ac_compile") 2>conftest.er1
15651 ac_status=$?
15652 grep -v '^ *+' conftest.er1 >conftest.err
15653 rm -f conftest.er1
15654 cat conftest.err >&5
15655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15656 (exit $ac_status); } && {
15657 test -z "$ac_c_werror_flag" ||
15658 test ! -s conftest.err
15659 } && test -s conftest.$ac_objext; then
15660 ac_header_compiler=yes
15661 else
15662 echo "$as_me: failed program was:" >&5
15663 sed 's/^/| /' conftest.$ac_ext >&5
15664
15665 ac_header_compiler=no
15666 fi
15667
15668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15669 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15670 echo "${ECHO_T}$ac_header_compiler" >&6; }
15671
15672 # Is the header present?
15673 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15674 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15675 cat >conftest.$ac_ext <<_ACEOF
15676 /* confdefs.h. */
15677 _ACEOF
15678 cat confdefs.h >>conftest.$ac_ext
15679 cat >>conftest.$ac_ext <<_ACEOF
15680 /* end confdefs.h. */
15681 #include <$ac_header>
15682 _ACEOF
15683 if { (ac_try="$ac_cpp conftest.$ac_ext"
15684 case "(($ac_try" in
15685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15686 *) ac_try_echo=$ac_try;;
15687 esac
15688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15689 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15690 ac_status=$?
15691 grep -v '^ *+' conftest.er1 >conftest.err
15692 rm -f conftest.er1
15693 cat conftest.err >&5
15694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15695 (exit $ac_status); } >/dev/null && {
15696 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15697 test ! -s conftest.err
15698 }; then
15699 ac_header_preproc=yes
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 ac_header_preproc=no
15705 fi
15706
15707 rm -f conftest.err conftest.$ac_ext
15708 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15709 echo "${ECHO_T}$ac_header_preproc" >&6; }
15710
15711 # So? What about this header?
15712 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15713 yes:no: )
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15715 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15716 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15717 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15718 ac_header_preproc=yes
15719 ;;
15720 no:yes:* )
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15722 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15724 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15726 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15728 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15731 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15732 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15733
15734 ;;
15735 esac
15736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15739 echo $ECHO_N "(cached) $ECHO_C" >&6
15740 else
15741 eval "$as_ac_Header=\$ac_header_preproc"
15742 fi
15743 ac_res=`eval echo '${'$as_ac_Header'}'`
15744 { echo "$as_me:$LINENO: result: $ac_res" >&5
15745 echo "${ECHO_T}$ac_res" >&6; }
15746
15747 fi
15748 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15749 cat >>confdefs.h <<_ACEOF
15750 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15751 _ACEOF
15752
15753 fi
15754
15755 done
15756
15757
15758
15759
15760
15761
15762 for ac_header in $ac_header_list
15763 do
15764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15769 echo $ECHO_N "(cached) $ECHO_C" >&6
15770 fi
15771 ac_res=`eval echo '${'$as_ac_Header'}'`
15772 { echo "$as_me:$LINENO: result: $ac_res" >&5
15773 echo "${ECHO_T}$ac_res" >&6; }
15774 else
15775 # Is the header compilable?
15776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15778 cat >conftest.$ac_ext <<_ACEOF
15779 /* confdefs.h. */
15780 _ACEOF
15781 cat confdefs.h >>conftest.$ac_ext
15782 cat >>conftest.$ac_ext <<_ACEOF
15783 /* end confdefs.h. */
15784 $ac_includes_default
15785 #include <$ac_header>
15786 _ACEOF
15787 rm -f conftest.$ac_objext
15788 if { (ac_try="$ac_compile"
15789 case "(($ac_try" in
15790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15791 *) ac_try_echo=$ac_try;;
15792 esac
15793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15794 (eval "$ac_compile") 2>conftest.er1
15795 ac_status=$?
15796 grep -v '^ *+' conftest.er1 >conftest.err
15797 rm -f conftest.er1
15798 cat conftest.err >&5
15799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15800 (exit $ac_status); } && {
15801 test -z "$ac_c_werror_flag" ||
15802 test ! -s conftest.err
15803 } && test -s conftest.$ac_objext; then
15804 ac_header_compiler=yes
15805 else
15806 echo "$as_me: failed program was:" >&5
15807 sed 's/^/| /' conftest.$ac_ext >&5
15808
15809 ac_header_compiler=no
15810 fi
15811
15812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15814 echo "${ECHO_T}$ac_header_compiler" >&6; }
15815
15816 # Is the header present?
15817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15819 cat >conftest.$ac_ext <<_ACEOF
15820 /* confdefs.h. */
15821 _ACEOF
15822 cat confdefs.h >>conftest.$ac_ext
15823 cat >>conftest.$ac_ext <<_ACEOF
15824 /* end confdefs.h. */
15825 #include <$ac_header>
15826 _ACEOF
15827 if { (ac_try="$ac_cpp conftest.$ac_ext"
15828 case "(($ac_try" in
15829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15830 *) ac_try_echo=$ac_try;;
15831 esac
15832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15834 ac_status=$?
15835 grep -v '^ *+' conftest.er1 >conftest.err
15836 rm -f conftest.er1
15837 cat conftest.err >&5
15838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15839 (exit $ac_status); } >/dev/null && {
15840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15841 test ! -s conftest.err
15842 }; then
15843 ac_header_preproc=yes
15844 else
15845 echo "$as_me: failed program was:" >&5
15846 sed 's/^/| /' conftest.$ac_ext >&5
15847
15848 ac_header_preproc=no
15849 fi
15850
15851 rm -f conftest.err conftest.$ac_ext
15852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15853 echo "${ECHO_T}$ac_header_preproc" >&6; }
15854
15855 # So? What about this header?
15856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15857 yes:no: )
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15862 ac_header_preproc=yes
15863 ;;
15864 no:yes:* )
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15877
15878 ;;
15879 esac
15880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15883 echo $ECHO_N "(cached) $ECHO_C" >&6
15884 else
15885 eval "$as_ac_Header=\$ac_header_preproc"
15886 fi
15887 ac_res=`eval echo '${'$as_ac_Header'}'`
15888 { echo "$as_me:$LINENO: result: $ac_res" >&5
15889 echo "${ECHO_T}$ac_res" >&6; }
15890
15891 fi
15892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15893 cat >>confdefs.h <<_ACEOF
15894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15895 _ACEOF
15896
15897 fi
15898
15899 done
15900
15901
15902
15903
15904
15905
15906
15907
15908
15909 for ac_func in $ac_func_list
15910 do
15911 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15912 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15913 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15914 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15915 echo $ECHO_N "(cached) $ECHO_C" >&6
15916 else
15917 cat >conftest.$ac_ext <<_ACEOF
15918 /* confdefs.h. */
15919 _ACEOF
15920 cat confdefs.h >>conftest.$ac_ext
15921 cat >>conftest.$ac_ext <<_ACEOF
15922 /* end confdefs.h. */
15923 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15924 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15925 #define $ac_func innocuous_$ac_func
15926
15927 /* System header to define __stub macros and hopefully few prototypes,
15928 which can conflict with char $ac_func (); below.
15929 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15930 <limits.h> exists even on freestanding compilers. */
15931
15932 #ifdef __STDC__
15933 # include <limits.h>
15934 #else
15935 # include <assert.h>
15936 #endif
15937
15938 #undef $ac_func
15939
15940 /* Override any GCC internal prototype to avoid an error.
15941 Use char because int might match the return type of a GCC
15942 builtin and then its argument prototype would still apply. */
15943 #ifdef __cplusplus
15944 extern "C"
15945 #endif
15946 char $ac_func ();
15947 /* The GNU C library defines this for functions which it implements
15948 to always fail with ENOSYS. Some functions are actually named
15949 something starting with __ and the normal name is an alias. */
15950 #if defined __stub_$ac_func || defined __stub___$ac_func
15951 choke me
15952 #endif
15953
15954 int
15955 main ()
15956 {
15957 return $ac_func ();
15958 ;
15959 return 0;
15960 }
15961 _ACEOF
15962 rm -f conftest.$ac_objext conftest$ac_exeext
15963 if { (ac_try="$ac_link"
15964 case "(($ac_try" in
15965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15966 *) ac_try_echo=$ac_try;;
15967 esac
15968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15969 (eval "$ac_link") 2>conftest.er1
15970 ac_status=$?
15971 grep -v '^ *+' conftest.er1 >conftest.err
15972 rm -f conftest.er1
15973 cat conftest.err >&5
15974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15975 (exit $ac_status); } && {
15976 test -z "$ac_c_werror_flag" ||
15977 test ! -s conftest.err
15978 } && test -s conftest$ac_exeext &&
15979 $as_test_x conftest$ac_exeext; then
15980 eval "$as_ac_var=yes"
15981 else
15982 echo "$as_me: failed program was:" >&5
15983 sed 's/^/| /' conftest.$ac_ext >&5
15984
15985 eval "$as_ac_var=no"
15986 fi
15987
15988 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15989 conftest$ac_exeext conftest.$ac_ext
15990 fi
15991 ac_res=`eval echo '${'$as_ac_var'}'`
15992 { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 if test `eval echo '${'$as_ac_var'}'` = yes; then
15995 cat >>confdefs.h <<_ACEOF
15996 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15997 _ACEOF
15998
15999 fi
16000 done
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016
16017
16018 { echo "$as_me:$LINENO: checking for working mktime" >&5
16019 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16020 if test "${ac_cv_func_working_mktime+set}" = set; then
16021 echo $ECHO_N "(cached) $ECHO_C" >&6
16022 else
16023 if test "$cross_compiling" = yes; then
16024 ac_cv_func_working_mktime=no
16025 else
16026 cat >conftest.$ac_ext <<_ACEOF
16027 /* confdefs.h. */
16028 _ACEOF
16029 cat confdefs.h >>conftest.$ac_ext
16030 cat >>conftest.$ac_ext <<_ACEOF
16031 /* end confdefs.h. */
16032 /* Test program from Paul Eggert and Tony Leneis. */
16033 #ifdef TIME_WITH_SYS_TIME
16034 # include <sys/time.h>
16035 # include <time.h>
16036 #else
16037 # ifdef HAVE_SYS_TIME_H
16038 # include <sys/time.h>
16039 # else
16040 # include <time.h>
16041 # endif
16042 #endif
16043
16044 #include <stdlib.h>
16045
16046 #ifdef HAVE_UNISTD_H
16047 # include <unistd.h>
16048 #endif
16049
16050 #ifndef HAVE_ALARM
16051 # define alarm(X) /* empty */
16052 #endif
16053
16054 /* Work around redefinition to rpl_putenv by other config tests. */
16055 #undef putenv
16056
16057 static time_t time_t_max;
16058 static time_t time_t_min;
16059
16060 /* Values we'll use to set the TZ environment variable. */
16061 static char *tz_strings[] = {
16062 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16063 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16064 };
16065 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16066
16067 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16068 Based on a problem report from Andreas Jaeger. */
16069 static int
16070 spring_forward_gap ()
16071 {
16072 /* glibc (up to about 1998-10-07) failed this test. */
16073 struct tm tm;
16074
16075 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16076 instead of "TZ=America/Vancouver" in order to detect the bug even
16077 on systems that don't support the Olson extension, or don't have the
16078 full zoneinfo tables installed. */
16079 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16080
16081 tm.tm_year = 98;
16082 tm.tm_mon = 3;
16083 tm.tm_mday = 5;
16084 tm.tm_hour = 2;
16085 tm.tm_min = 0;
16086 tm.tm_sec = 0;
16087 tm.tm_isdst = -1;
16088 return mktime (&tm) != (time_t) -1;
16089 }
16090
16091 static int
16092 mktime_test1 (now)
16093 time_t now;
16094 {
16095 struct tm *lt;
16096 return ! (lt = localtime (&now)) || mktime (lt) == now;
16097 }
16098
16099 static int
16100 mktime_test (now)
16101 time_t now;
16102 {
16103 return (mktime_test1 (now)
16104 && mktime_test1 ((time_t) (time_t_max - now))
16105 && mktime_test1 ((time_t) (time_t_min + now)));
16106 }
16107
16108 static int
16109 irix_6_4_bug ()
16110 {
16111 /* Based on code from Ariel Faigon. */
16112 struct tm tm;
16113 tm.tm_year = 96;
16114 tm.tm_mon = 3;
16115 tm.tm_mday = 0;
16116 tm.tm_hour = 0;
16117 tm.tm_min = 0;
16118 tm.tm_sec = 0;
16119 tm.tm_isdst = -1;
16120 mktime (&tm);
16121 return tm.tm_mon == 2 && tm.tm_mday == 31;
16122 }
16123
16124 static int
16125 bigtime_test (j)
16126 int j;
16127 {
16128 struct tm tm;
16129 time_t now;
16130 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16131 now = mktime (&tm);
16132 if (now != (time_t) -1)
16133 {
16134 struct tm *lt = localtime (&now);
16135 if (! (lt
16136 && lt->tm_year == tm.tm_year
16137 && lt->tm_mon == tm.tm_mon
16138 && lt->tm_mday == tm.tm_mday
16139 && lt->tm_hour == tm.tm_hour
16140 && lt->tm_min == tm.tm_min
16141 && lt->tm_sec == tm.tm_sec
16142 && lt->tm_yday == tm.tm_yday
16143 && lt->tm_wday == tm.tm_wday
16144 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16145 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16146 return 0;
16147 }
16148 return 1;
16149 }
16150
16151 static int
16152 year_2050_test ()
16153 {
16154 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16155 ignoring leap seconds. */
16156 unsigned long int answer = 2527315200UL;
16157
16158 struct tm tm;
16159 time_t t;
16160 tm.tm_year = 2050 - 1900;
16161 tm.tm_mon = 2 - 1;
16162 tm.tm_mday = 1;
16163 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16164 tm.tm_isdst = -1;
16165
16166 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16167 instead of "TZ=America/Vancouver" in order to detect the bug even
16168 on systems that don't support the Olson extension, or don't have the
16169 full zoneinfo tables installed. */
16170 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16171
16172 t = mktime (&tm);
16173
16174 /* Check that the result is either a failure, or close enough
16175 to the correct answer that we can assume the discrepancy is
16176 due to leap seconds. */
16177 return (t == (time_t) -1
16178 || (0 < t && answer - 120 <= t && t <= answer + 120));
16179 }
16180
16181 int
16182 main ()
16183 {
16184 time_t t, delta;
16185 int i, j;
16186
16187 /* This test makes some buggy mktime implementations loop.
16188 Give up after 60 seconds; a mktime slower than that
16189 isn't worth using anyway. */
16190 alarm (60);
16191
16192 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16193 continue;
16194 time_t_max--;
16195 if ((time_t) -1 < 0)
16196 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16197 continue;
16198 delta = time_t_max / 997; /* a suitable prime number */
16199 for (i = 0; i < N_STRINGS; i++)
16200 {
16201 if (tz_strings[i])
16202 putenv (tz_strings[i]);
16203
16204 for (t = 0; t <= time_t_max - delta; t += delta)
16205 if (! mktime_test (t))
16206 return 1;
16207 if (! (mktime_test ((time_t) 1)
16208 && mktime_test ((time_t) (60 * 60))
16209 && mktime_test ((time_t) (60 * 60 * 24))))
16210 return 1;
16211
16212 for (j = 1; 0 < j; j *= 2)
16213 if (! bigtime_test (j))
16214 return 1;
16215 if (! bigtime_test (j - 1))
16216 return 1;
16217 }
16218 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16219 }
16220 _ACEOF
16221 rm -f conftest$ac_exeext
16222 if { (ac_try="$ac_link"
16223 case "(($ac_try" in
16224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16225 *) ac_try_echo=$ac_try;;
16226 esac
16227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16228 (eval "$ac_link") 2>&5
16229 ac_status=$?
16230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16231 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16232 { (case "(($ac_try" in
16233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16234 *) ac_try_echo=$ac_try;;
16235 esac
16236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16237 (eval "$ac_try") 2>&5
16238 ac_status=$?
16239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16240 (exit $ac_status); }; }; then
16241 ac_cv_func_working_mktime=yes
16242 else
16243 echo "$as_me: program exited with status $ac_status" >&5
16244 echo "$as_me: failed program was:" >&5
16245 sed 's/^/| /' conftest.$ac_ext >&5
16246
16247 ( exit $ac_status )
16248 ac_cv_func_working_mktime=no
16249 fi
16250 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16251 fi
16252
16253
16254 fi
16255 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16256 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16257 if test $ac_cv_func_working_mktime = no; then
16258 case " $LIBOBJS " in
16259 *" mktime.$ac_objext "* ) ;;
16260 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16261 ;;
16262 esac
16263
16264 fi
16265
16266 if test "$ac_cv_func_working_mktime" = no; then
16267
16268 cat >>confdefs.h <<\_ACEOF
16269 #define BROKEN_MKTIME 1
16270 _ACEOF
16271
16272 fi
16273
16274 ac_have_func=no # yes means we've found a way to get the load average.
16275
16276 # Make sure getloadavg.c is where it belongs, at configure-time.
16277 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16278 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16279 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16280 { (exit 1); exit 1; }; }
16281
16282 ac_save_LIBS=$LIBS
16283
16284 # Check for getloadavg, but be sure not to touch the cache variable.
16285 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16286 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16287 if test "${ac_cv_func_getloadavg+set}" = set; then
16288 echo $ECHO_N "(cached) $ECHO_C" >&6
16289 else
16290 cat >conftest.$ac_ext <<_ACEOF
16291 /* confdefs.h. */
16292 _ACEOF
16293 cat confdefs.h >>conftest.$ac_ext
16294 cat >>conftest.$ac_ext <<_ACEOF
16295 /* end confdefs.h. */
16296 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16297 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16298 #define getloadavg innocuous_getloadavg
16299
16300 /* System header to define __stub macros and hopefully few prototypes,
16301 which can conflict with char getloadavg (); below.
16302 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16303 <limits.h> exists even on freestanding compilers. */
16304
16305 #ifdef __STDC__
16306 # include <limits.h>
16307 #else
16308 # include <assert.h>
16309 #endif
16310
16311 #undef getloadavg
16312
16313 /* Override any GCC internal prototype to avoid an error.
16314 Use char because int might match the return type of a GCC
16315 builtin and then its argument prototype would still apply. */
16316 #ifdef __cplusplus
16317 extern "C"
16318 #endif
16319 char getloadavg ();
16320 /* The GNU C library defines this for functions which it implements
16321 to always fail with ENOSYS. Some functions are actually named
16322 something starting with __ and the normal name is an alias. */
16323 #if defined __stub_getloadavg || defined __stub___getloadavg
16324 choke me
16325 #endif
16326
16327 int
16328 main ()
16329 {
16330 return getloadavg ();
16331 ;
16332 return 0;
16333 }
16334 _ACEOF
16335 rm -f conftest.$ac_objext conftest$ac_exeext
16336 if { (ac_try="$ac_link"
16337 case "(($ac_try" in
16338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16339 *) ac_try_echo=$ac_try;;
16340 esac
16341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16342 (eval "$ac_link") 2>conftest.er1
16343 ac_status=$?
16344 grep -v '^ *+' conftest.er1 >conftest.err
16345 rm -f conftest.er1
16346 cat conftest.err >&5
16347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16348 (exit $ac_status); } && {
16349 test -z "$ac_c_werror_flag" ||
16350 test ! -s conftest.err
16351 } && test -s conftest$ac_exeext &&
16352 $as_test_x conftest$ac_exeext; then
16353 ac_cv_func_getloadavg=yes
16354 else
16355 echo "$as_me: failed program was:" >&5
16356 sed 's/^/| /' conftest.$ac_ext >&5
16357
16358 ac_cv_func_getloadavg=no
16359 fi
16360
16361 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16362 conftest$ac_exeext conftest.$ac_ext
16363 fi
16364 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16365 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16366 if test $ac_cv_func_getloadavg = yes; then
16367 exit 0
16368 else
16369 exit 1
16370 fi
16371 ) && ac_have_func=yes
16372
16373 # On HPUX9, an unprivileged user can get load averages through this function.
16374
16375 for ac_func in pstat_getdynamic
16376 do
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16392
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16397
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16403
16404 #undef $ac_func
16405
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char $ac_func ();
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_$ac_func || defined __stub___$ac_func
16417 choke me
16418 #endif
16419
16420 int
16421 main ()
16422 {
16423 return $ac_func ();
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 eval "$as_ac_var=yes"
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 eval "$as_ac_var=no"
16452 fi
16453
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16456 fi
16457 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466 done
16467
16468
16469 # Solaris has libkstat which does not require root.
16470
16471 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16472 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16473 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 ac_check_lib_save_LIBS=$LIBS
16477 LIBS="-lkstat $LIBS"
16478 cat >conftest.$ac_ext <<_ACEOF
16479 /* confdefs.h. */
16480 _ACEOF
16481 cat confdefs.h >>conftest.$ac_ext
16482 cat >>conftest.$ac_ext <<_ACEOF
16483 /* end confdefs.h. */
16484
16485 /* Override any GCC internal prototype to avoid an error.
16486 Use char because int might match the return type of a GCC
16487 builtin and then its argument prototype would still apply. */
16488 #ifdef __cplusplus
16489 extern "C"
16490 #endif
16491 char kstat_open ();
16492 int
16493 main ()
16494 {
16495 return kstat_open ();
16496 ;
16497 return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 ac_cv_lib_kstat_kstat_open=yes
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523 ac_cv_lib_kstat_kstat_open=no
16524 fi
16525
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 LIBS=$ac_check_lib_save_LIBS
16529 fi
16530 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16531 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16532 if test $ac_cv_lib_kstat_kstat_open = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define HAVE_LIBKSTAT 1
16535 _ACEOF
16536
16537 LIBS="-lkstat $LIBS"
16538
16539 fi
16540
16541 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16542
16543 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16544 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16545 # to get the right answer into the cache.
16546 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16547 if test $ac_have_func = no; then
16548 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16549 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16550 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16551 echo $ECHO_N "(cached) $ECHO_C" >&6
16552 else
16553 ac_check_lib_save_LIBS=$LIBS
16554 LIBS="-lelf $LIBS"
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561
16562 /* Override any GCC internal prototype to avoid an error.
16563 Use char because int might match the return type of a GCC
16564 builtin and then its argument prototype would still apply. */
16565 #ifdef __cplusplus
16566 extern "C"
16567 #endif
16568 char elf_begin ();
16569 int
16570 main ()
16571 {
16572 return elf_begin ();
16573 ;
16574 return 0;
16575 }
16576 _ACEOF
16577 rm -f conftest.$ac_objext conftest$ac_exeext
16578 if { (ac_try="$ac_link"
16579 case "(($ac_try" in
16580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16581 *) ac_try_echo=$ac_try;;
16582 esac
16583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16584 (eval "$ac_link") 2>conftest.er1
16585 ac_status=$?
16586 grep -v '^ *+' conftest.er1 >conftest.err
16587 rm -f conftest.er1
16588 cat conftest.err >&5
16589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16590 (exit $ac_status); } && {
16591 test -z "$ac_c_werror_flag" ||
16592 test ! -s conftest.err
16593 } && test -s conftest$ac_exeext &&
16594 $as_test_x conftest$ac_exeext; then
16595 ac_cv_lib_elf_elf_begin=yes
16596 else
16597 echo "$as_me: failed program was:" >&5
16598 sed 's/^/| /' conftest.$ac_ext >&5
16599
16600 ac_cv_lib_elf_elf_begin=no
16601 fi
16602
16603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16604 conftest$ac_exeext conftest.$ac_ext
16605 LIBS=$ac_check_lib_save_LIBS
16606 fi
16607 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16608 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16609 if test $ac_cv_lib_elf_elf_begin = yes; then
16610 LIBS="-lelf $LIBS"
16611 fi
16612
16613 fi
16614 if test $ac_have_func = no; then
16615 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16616 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16617 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16618 echo $ECHO_N "(cached) $ECHO_C" >&6
16619 else
16620 ac_check_lib_save_LIBS=$LIBS
16621 LIBS="-lkvm $LIBS"
16622 cat >conftest.$ac_ext <<_ACEOF
16623 /* confdefs.h. */
16624 _ACEOF
16625 cat confdefs.h >>conftest.$ac_ext
16626 cat >>conftest.$ac_ext <<_ACEOF
16627 /* end confdefs.h. */
16628
16629 /* Override any GCC internal prototype to avoid an error.
16630 Use char because int might match the return type of a GCC
16631 builtin and then its argument prototype would still apply. */
16632 #ifdef __cplusplus
16633 extern "C"
16634 #endif
16635 char kvm_open ();
16636 int
16637 main ()
16638 {
16639 return kvm_open ();
16640 ;
16641 return 0;
16642 }
16643 _ACEOF
16644 rm -f conftest.$ac_objext conftest$ac_exeext
16645 if { (ac_try="$ac_link"
16646 case "(($ac_try" in
16647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16648 *) ac_try_echo=$ac_try;;
16649 esac
16650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16651 (eval "$ac_link") 2>conftest.er1
16652 ac_status=$?
16653 grep -v '^ *+' conftest.er1 >conftest.err
16654 rm -f conftest.er1
16655 cat conftest.err >&5
16656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16657 (exit $ac_status); } && {
16658 test -z "$ac_c_werror_flag" ||
16659 test ! -s conftest.err
16660 } && test -s conftest$ac_exeext &&
16661 $as_test_x conftest$ac_exeext; then
16662 ac_cv_lib_kvm_kvm_open=yes
16663 else
16664 echo "$as_me: failed program was:" >&5
16665 sed 's/^/| /' conftest.$ac_ext >&5
16666
16667 ac_cv_lib_kvm_kvm_open=no
16668 fi
16669
16670 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16671 conftest$ac_exeext conftest.$ac_ext
16672 LIBS=$ac_check_lib_save_LIBS
16673 fi
16674 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16675 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16676 if test $ac_cv_lib_kvm_kvm_open = yes; then
16677 LIBS="-lkvm $LIBS"
16678 fi
16679
16680 # Check for the 4.4BSD definition of getloadavg.
16681 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16682 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16683 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16684 echo $ECHO_N "(cached) $ECHO_C" >&6
16685 else
16686 ac_check_lib_save_LIBS=$LIBS
16687 LIBS="-lutil $LIBS"
16688 cat >conftest.$ac_ext <<_ACEOF
16689 /* confdefs.h. */
16690 _ACEOF
16691 cat confdefs.h >>conftest.$ac_ext
16692 cat >>conftest.$ac_ext <<_ACEOF
16693 /* end confdefs.h. */
16694
16695 /* Override any GCC internal prototype to avoid an error.
16696 Use char because int might match the return type of a GCC
16697 builtin and then its argument prototype would still apply. */
16698 #ifdef __cplusplus
16699 extern "C"
16700 #endif
16701 char getloadavg ();
16702 int
16703 main ()
16704 {
16705 return getloadavg ();
16706 ;
16707 return 0;
16708 }
16709 _ACEOF
16710 rm -f conftest.$ac_objext conftest$ac_exeext
16711 if { (ac_try="$ac_link"
16712 case "(($ac_try" in
16713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16714 *) ac_try_echo=$ac_try;;
16715 esac
16716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16717 (eval "$ac_link") 2>conftest.er1
16718 ac_status=$?
16719 grep -v '^ *+' conftest.er1 >conftest.err
16720 rm -f conftest.er1
16721 cat conftest.err >&5
16722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16723 (exit $ac_status); } && {
16724 test -z "$ac_c_werror_flag" ||
16725 test ! -s conftest.err
16726 } && test -s conftest$ac_exeext &&
16727 $as_test_x conftest$ac_exeext; then
16728 ac_cv_lib_util_getloadavg=yes
16729 else
16730 echo "$as_me: failed program was:" >&5
16731 sed 's/^/| /' conftest.$ac_ext >&5
16732
16733 ac_cv_lib_util_getloadavg=no
16734 fi
16735
16736 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16737 conftest$ac_exeext conftest.$ac_ext
16738 LIBS=$ac_check_lib_save_LIBS
16739 fi
16740 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16741 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16742 if test $ac_cv_lib_util_getloadavg = yes; then
16743 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16744 fi
16745
16746 fi
16747
16748 if test $ac_have_func = no; then
16749 # There is a commonly available library for RS/6000 AIX.
16750 # Since it is not a standard part of AIX, it might be installed locally.
16751 ac_getloadavg_LIBS=$LIBS
16752 LIBS="-L/usr/local/lib $LIBS"
16753 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16754 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16755 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lgetloadavg $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770 #ifdef __cplusplus
16771 extern "C"
16772 #endif
16773 char getloadavg ();
16774 int
16775 main ()
16776 {
16777 return getloadavg ();
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_getloadavg_getloadavg=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_cv_lib_getloadavg_getloadavg=no
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16811 fi
16812 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16814 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16815 LIBS="-lgetloadavg $LIBS"
16816 else
16817 LIBS=$ac_getloadavg_LIBS
16818 fi
16819
16820 fi
16821
16822 # Make sure it is really in the library, if we think we found it,
16823 # otherwise set up the replacement function.
16824
16825 for ac_func in getloadavg
16826 do
16827 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16828 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16829 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16830 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16831 echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833 cat >conftest.$ac_ext <<_ACEOF
16834 /* confdefs.h. */
16835 _ACEOF
16836 cat confdefs.h >>conftest.$ac_ext
16837 cat >>conftest.$ac_ext <<_ACEOF
16838 /* end confdefs.h. */
16839 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16840 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16841 #define $ac_func innocuous_$ac_func
16842
16843 /* System header to define __stub macros and hopefully few prototypes,
16844 which can conflict with char $ac_func (); below.
16845 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16846 <limits.h> exists even on freestanding compilers. */
16847
16848 #ifdef __STDC__
16849 # include <limits.h>
16850 #else
16851 # include <assert.h>
16852 #endif
16853
16854 #undef $ac_func
16855
16856 /* Override any GCC internal prototype to avoid an error.
16857 Use char because int might match the return type of a GCC
16858 builtin and then its argument prototype would still apply. */
16859 #ifdef __cplusplus
16860 extern "C"
16861 #endif
16862 char $ac_func ();
16863 /* The GNU C library defines this for functions which it implements
16864 to always fail with ENOSYS. Some functions are actually named
16865 something starting with __ and the normal name is an alias. */
16866 #if defined __stub_$ac_func || defined __stub___$ac_func
16867 choke me
16868 #endif
16869
16870 int
16871 main ()
16872 {
16873 return $ac_func ();
16874 ;
16875 return 0;
16876 }
16877 _ACEOF
16878 rm -f conftest.$ac_objext conftest$ac_exeext
16879 if { (ac_try="$ac_link"
16880 case "(($ac_try" in
16881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16882 *) ac_try_echo=$ac_try;;
16883 esac
16884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16885 (eval "$ac_link") 2>conftest.er1
16886 ac_status=$?
16887 grep -v '^ *+' conftest.er1 >conftest.err
16888 rm -f conftest.er1
16889 cat conftest.err >&5
16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16891 (exit $ac_status); } && {
16892 test -z "$ac_c_werror_flag" ||
16893 test ! -s conftest.err
16894 } && test -s conftest$ac_exeext &&
16895 $as_test_x conftest$ac_exeext; then
16896 eval "$as_ac_var=yes"
16897 else
16898 echo "$as_me: failed program was:" >&5
16899 sed 's/^/| /' conftest.$ac_ext >&5
16900
16901 eval "$as_ac_var=no"
16902 fi
16903
16904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16905 conftest$ac_exeext conftest.$ac_ext
16906 fi
16907 ac_res=`eval echo '${'$as_ac_var'}'`
16908 { echo "$as_me:$LINENO: result: $ac_res" >&5
16909 echo "${ECHO_T}$ac_res" >&6; }
16910 if test `eval echo '${'$as_ac_var'}'` = yes; then
16911 cat >>confdefs.h <<_ACEOF
16912 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16913 _ACEOF
16914
16915 else
16916 case " $LIBOBJS " in
16917 *" getloadavg.$ac_objext "* ) ;;
16918 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16919 ;;
16920 esac
16921
16922
16923 cat >>confdefs.h <<\_ACEOF
16924 #define C_GETLOADAVG 1
16925 _ACEOF
16926
16927 # Figure out what our getloadavg.c needs.
16928 ac_have_func=no
16929 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16930 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16931 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16932 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16933 echo $ECHO_N "(cached) $ECHO_C" >&6
16934 fi
16935 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16936 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16937 else
16938 # Is the header compilable?
16939 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16940 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h. */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 $ac_includes_default
16948 #include <sys/dg_sys_info.h>
16949 _ACEOF
16950 rm -f conftest.$ac_objext
16951 if { (ac_try="$ac_compile"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_compile") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest.$ac_objext; then
16967 ac_header_compiler=yes
16968 else
16969 echo "$as_me: failed program was:" >&5
16970 sed 's/^/| /' conftest.$ac_ext >&5
16971
16972 ac_header_compiler=no
16973 fi
16974
16975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16976 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16977 echo "${ECHO_T}$ac_header_compiler" >&6; }
16978
16979 # Is the header present?
16980 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16981 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16982 cat >conftest.$ac_ext <<_ACEOF
16983 /* confdefs.h. */
16984 _ACEOF
16985 cat confdefs.h >>conftest.$ac_ext
16986 cat >>conftest.$ac_ext <<_ACEOF
16987 /* end confdefs.h. */
16988 #include <sys/dg_sys_info.h>
16989 _ACEOF
16990 if { (ac_try="$ac_cpp conftest.$ac_ext"
16991 case "(($ac_try" in
16992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16993 *) ac_try_echo=$ac_try;;
16994 esac
16995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16996 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16997 ac_status=$?
16998 grep -v '^ *+' conftest.er1 >conftest.err
16999 rm -f conftest.er1
17000 cat conftest.err >&5
17001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17002 (exit $ac_status); } >/dev/null && {
17003 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17004 test ! -s conftest.err
17005 }; then
17006 ac_header_preproc=yes
17007 else
17008 echo "$as_me: failed program was:" >&5
17009 sed 's/^/| /' conftest.$ac_ext >&5
17010
17011 ac_header_preproc=no
17012 fi
17013
17014 rm -f conftest.err conftest.$ac_ext
17015 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17016 echo "${ECHO_T}$ac_header_preproc" >&6; }
17017
17018 # So? What about this header?
17019 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17020 yes:no: )
17021 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17022 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17023 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17024 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17025 ac_header_preproc=yes
17026 ;;
17027 no:yes:* )
17028 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17029 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17031 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17033 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17038 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17039 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17040
17041 ;;
17042 esac
17043 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17044 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17045 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17046 echo $ECHO_N "(cached) $ECHO_C" >&6
17047 else
17048 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17049 fi
17050 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17051 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17052
17053 fi
17054 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17055 ac_have_func=yes
17056
17057 cat >>confdefs.h <<\_ACEOF
17058 #define DGUX 1
17059 _ACEOF
17060
17061
17062 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17063 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17064 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17065 echo $ECHO_N "(cached) $ECHO_C" >&6
17066 else
17067 ac_check_lib_save_LIBS=$LIBS
17068 LIBS="-ldgc $LIBS"
17069 cat >conftest.$ac_ext <<_ACEOF
17070 /* confdefs.h. */
17071 _ACEOF
17072 cat confdefs.h >>conftest.$ac_ext
17073 cat >>conftest.$ac_ext <<_ACEOF
17074 /* end confdefs.h. */
17075
17076 /* Override any GCC internal prototype to avoid an error.
17077 Use char because int might match the return type of a GCC
17078 builtin and then its argument prototype would still apply. */
17079 #ifdef __cplusplus
17080 extern "C"
17081 #endif
17082 char dg_sys_info ();
17083 int
17084 main ()
17085 {
17086 return dg_sys_info ();
17087 ;
17088 return 0;
17089 }
17090 _ACEOF
17091 rm -f conftest.$ac_objext conftest$ac_exeext
17092 if { (ac_try="$ac_link"
17093 case "(($ac_try" in
17094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17095 *) ac_try_echo=$ac_try;;
17096 esac
17097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17098 (eval "$ac_link") 2>conftest.er1
17099 ac_status=$?
17100 grep -v '^ *+' conftest.er1 >conftest.err
17101 rm -f conftest.er1
17102 cat conftest.err >&5
17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17104 (exit $ac_status); } && {
17105 test -z "$ac_c_werror_flag" ||
17106 test ! -s conftest.err
17107 } && test -s conftest$ac_exeext &&
17108 $as_test_x conftest$ac_exeext; then
17109 ac_cv_lib_dgc_dg_sys_info=yes
17110 else
17111 echo "$as_me: failed program was:" >&5
17112 sed 's/^/| /' conftest.$ac_ext >&5
17113
17114 ac_cv_lib_dgc_dg_sys_info=no
17115 fi
17116
17117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17118 conftest$ac_exeext conftest.$ac_ext
17119 LIBS=$ac_check_lib_save_LIBS
17120 fi
17121 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17122 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17123 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17124 cat >>confdefs.h <<_ACEOF
17125 #define HAVE_LIBDGC 1
17126 _ACEOF
17127
17128 LIBS="-ldgc $LIBS"
17129
17130 fi
17131
17132 fi
17133
17134
17135
17136 if test "${ac_cv_header_locale_h+set}" = set; then
17137 { echo "$as_me:$LINENO: checking for locale.h" >&5
17138 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17139 if test "${ac_cv_header_locale_h+set}" = set; then
17140 echo $ECHO_N "(cached) $ECHO_C" >&6
17141 fi
17142 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17143 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17144 else
17145 # Is the header compilable?
17146 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17147 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17148 cat >conftest.$ac_ext <<_ACEOF
17149 /* confdefs.h. */
17150 _ACEOF
17151 cat confdefs.h >>conftest.$ac_ext
17152 cat >>conftest.$ac_ext <<_ACEOF
17153 /* end confdefs.h. */
17154 $ac_includes_default
17155 #include <locale.h>
17156 _ACEOF
17157 rm -f conftest.$ac_objext
17158 if { (ac_try="$ac_compile"
17159 case "(($ac_try" in
17160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17161 *) ac_try_echo=$ac_try;;
17162 esac
17163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17164 (eval "$ac_compile") 2>conftest.er1
17165 ac_status=$?
17166 grep -v '^ *+' conftest.er1 >conftest.err
17167 rm -f conftest.er1
17168 cat conftest.err >&5
17169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17170 (exit $ac_status); } && {
17171 test -z "$ac_c_werror_flag" ||
17172 test ! -s conftest.err
17173 } && test -s conftest.$ac_objext; then
17174 ac_header_compiler=yes
17175 else
17176 echo "$as_me: failed program was:" >&5
17177 sed 's/^/| /' conftest.$ac_ext >&5
17178
17179 ac_header_compiler=no
17180 fi
17181
17182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17184 echo "${ECHO_T}$ac_header_compiler" >&6; }
17185
17186 # Is the header present?
17187 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17188 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17189 cat >conftest.$ac_ext <<_ACEOF
17190 /* confdefs.h. */
17191 _ACEOF
17192 cat confdefs.h >>conftest.$ac_ext
17193 cat >>conftest.$ac_ext <<_ACEOF
17194 /* end confdefs.h. */
17195 #include <locale.h>
17196 _ACEOF
17197 if { (ac_try="$ac_cpp conftest.$ac_ext"
17198 case "(($ac_try" in
17199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17200 *) ac_try_echo=$ac_try;;
17201 esac
17202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17204 ac_status=$?
17205 grep -v '^ *+' conftest.er1 >conftest.err
17206 rm -f conftest.er1
17207 cat conftest.err >&5
17208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17209 (exit $ac_status); } >/dev/null && {
17210 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17211 test ! -s conftest.err
17212 }; then
17213 ac_header_preproc=yes
17214 else
17215 echo "$as_me: failed program was:" >&5
17216 sed 's/^/| /' conftest.$ac_ext >&5
17217
17218 ac_header_preproc=no
17219 fi
17220
17221 rm -f conftest.err conftest.$ac_ext
17222 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17223 echo "${ECHO_T}$ac_header_preproc" >&6; }
17224
17225 # So? What about this header?
17226 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17227 yes:no: )
17228 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17229 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17230 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17231 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17232 ac_header_preproc=yes
17233 ;;
17234 no:yes:* )
17235 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17236 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17238 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17240 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17242 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17244 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17245 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17246 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17247
17248 ;;
17249 esac
17250 { echo "$as_me:$LINENO: checking for locale.h" >&5
17251 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17252 if test "${ac_cv_header_locale_h+set}" = set; then
17253 echo $ECHO_N "(cached) $ECHO_C" >&6
17254 else
17255 ac_cv_header_locale_h=$ac_header_preproc
17256 fi
17257 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17258 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17259
17260 fi
17261
17262
17263
17264 for ac_func in setlocale
17265 do
17266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17270 echo $ECHO_N "(cached) $ECHO_C" >&6
17271 else
17272 cat >conftest.$ac_ext <<_ACEOF
17273 /* confdefs.h. */
17274 _ACEOF
17275 cat confdefs.h >>conftest.$ac_ext
17276 cat >>conftest.$ac_ext <<_ACEOF
17277 /* end confdefs.h. */
17278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17280 #define $ac_func innocuous_$ac_func
17281
17282 /* System header to define __stub macros and hopefully few prototypes,
17283 which can conflict with char $ac_func (); below.
17284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17285 <limits.h> exists even on freestanding compilers. */
17286
17287 #ifdef __STDC__
17288 # include <limits.h>
17289 #else
17290 # include <assert.h>
17291 #endif
17292
17293 #undef $ac_func
17294
17295 /* Override any GCC internal prototype to avoid an error.
17296 Use char because int might match the return type of a GCC
17297 builtin and then its argument prototype would still apply. */
17298 #ifdef __cplusplus
17299 extern "C"
17300 #endif
17301 char $ac_func ();
17302 /* The GNU C library defines this for functions which it implements
17303 to always fail with ENOSYS. Some functions are actually named
17304 something starting with __ and the normal name is an alias. */
17305 #if defined __stub_$ac_func || defined __stub___$ac_func
17306 choke me
17307 #endif
17308
17309 int
17310 main ()
17311 {
17312 return $ac_func ();
17313 ;
17314 return 0;
17315 }
17316 _ACEOF
17317 rm -f conftest.$ac_objext conftest$ac_exeext
17318 if { (ac_try="$ac_link"
17319 case "(($ac_try" in
17320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17321 *) ac_try_echo=$ac_try;;
17322 esac
17323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17324 (eval "$ac_link") 2>conftest.er1
17325 ac_status=$?
17326 grep -v '^ *+' conftest.er1 >conftest.err
17327 rm -f conftest.er1
17328 cat conftest.err >&5
17329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17330 (exit $ac_status); } && {
17331 test -z "$ac_c_werror_flag" ||
17332 test ! -s conftest.err
17333 } && test -s conftest$ac_exeext &&
17334 $as_test_x conftest$ac_exeext; then
17335 eval "$as_ac_var=yes"
17336 else
17337 echo "$as_me: failed program was:" >&5
17338 sed 's/^/| /' conftest.$ac_ext >&5
17339
17340 eval "$as_ac_var=no"
17341 fi
17342
17343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17344 conftest$ac_exeext conftest.$ac_ext
17345 fi
17346 ac_res=`eval echo '${'$as_ac_var'}'`
17347 { echo "$as_me:$LINENO: result: $ac_res" >&5
17348 echo "${ECHO_T}$ac_res" >&6; }
17349 if test `eval echo '${'$as_ac_var'}'` = yes; then
17350 cat >>confdefs.h <<_ACEOF
17351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17352 _ACEOF
17353
17354 fi
17355 done
17356
17357
17358 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17359 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17360 # Irix 4.0.5F has the header but not the library.
17361 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17362 ac_have_func=yes
17363
17364 cat >>confdefs.h <<\_ACEOF
17365 #define SVR4 1
17366 _ACEOF
17367
17368 fi
17369
17370 if test $ac_have_func = no; then
17371 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17372 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17373 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17374 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17375 echo $ECHO_N "(cached) $ECHO_C" >&6
17376 fi
17377 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17378 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17379 else
17380 # Is the header compilable?
17381 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17382 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17383 cat >conftest.$ac_ext <<_ACEOF
17384 /* confdefs.h. */
17385 _ACEOF
17386 cat confdefs.h >>conftest.$ac_ext
17387 cat >>conftest.$ac_ext <<_ACEOF
17388 /* end confdefs.h. */
17389 $ac_includes_default
17390 #include <inq_stats/cpustats.h>
17391 _ACEOF
17392 rm -f conftest.$ac_objext
17393 if { (ac_try="$ac_compile"
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_compile") 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_objext; then
17409 ac_header_compiler=yes
17410 else
17411 echo "$as_me: failed program was:" >&5
17412 sed 's/^/| /' conftest.$ac_ext >&5
17413
17414 ac_header_compiler=no
17415 fi
17416
17417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17419 echo "${ECHO_T}$ac_header_compiler" >&6; }
17420
17421 # Is the header present?
17422 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17423 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17424 cat >conftest.$ac_ext <<_ACEOF
17425 /* confdefs.h. */
17426 _ACEOF
17427 cat confdefs.h >>conftest.$ac_ext
17428 cat >>conftest.$ac_ext <<_ACEOF
17429 /* end confdefs.h. */
17430 #include <inq_stats/cpustats.h>
17431 _ACEOF
17432 if { (ac_try="$ac_cpp conftest.$ac_ext"
17433 case "(($ac_try" in
17434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17435 *) ac_try_echo=$ac_try;;
17436 esac
17437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17439 ac_status=$?
17440 grep -v '^ *+' conftest.er1 >conftest.err
17441 rm -f conftest.er1
17442 cat conftest.err >&5
17443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17444 (exit $ac_status); } >/dev/null && {
17445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17446 test ! -s conftest.err
17447 }; then
17448 ac_header_preproc=yes
17449 else
17450 echo "$as_me: failed program was:" >&5
17451 sed 's/^/| /' conftest.$ac_ext >&5
17452
17453 ac_header_preproc=no
17454 fi
17455
17456 rm -f conftest.err conftest.$ac_ext
17457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17458 echo "${ECHO_T}$ac_header_preproc" >&6; }
17459
17460 # So? What about this header?
17461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17462 yes:no: )
17463 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17464 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17465 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17466 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17467 ac_header_preproc=yes
17468 ;;
17469 no:yes:* )
17470 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17471 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17473 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17475 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17480 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17481 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17482
17483 ;;
17484 esac
17485 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17486 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17487 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17488 echo $ECHO_N "(cached) $ECHO_C" >&6
17489 else
17490 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17491 fi
17492 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17493 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17494
17495 fi
17496 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17497 ac_have_func=yes
17498
17499 cat >>confdefs.h <<\_ACEOF
17500 #define UMAX 1
17501 _ACEOF
17502
17503
17504 cat >>confdefs.h <<\_ACEOF
17505 #define UMAX4_3 1
17506 _ACEOF
17507
17508 fi
17509
17510
17511 fi
17512
17513 if test $ac_have_func = no; then
17514 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17515 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17516 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17517 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17518 echo $ECHO_N "(cached) $ECHO_C" >&6
17519 fi
17520 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17521 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17522 else
17523 # Is the header compilable?
17524 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17525 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17526 cat >conftest.$ac_ext <<_ACEOF
17527 /* confdefs.h. */
17528 _ACEOF
17529 cat confdefs.h >>conftest.$ac_ext
17530 cat >>conftest.$ac_ext <<_ACEOF
17531 /* end confdefs.h. */
17532 $ac_includes_default
17533 #include <sys/cpustats.h>
17534 _ACEOF
17535 rm -f conftest.$ac_objext
17536 if { (ac_try="$ac_compile"
17537 case "(($ac_try" in
17538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17539 *) ac_try_echo=$ac_try;;
17540 esac
17541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17542 (eval "$ac_compile") 2>conftest.er1
17543 ac_status=$?
17544 grep -v '^ *+' conftest.er1 >conftest.err
17545 rm -f conftest.er1
17546 cat conftest.err >&5
17547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17548 (exit $ac_status); } && {
17549 test -z "$ac_c_werror_flag" ||
17550 test ! -s conftest.err
17551 } && test -s conftest.$ac_objext; then
17552 ac_header_compiler=yes
17553 else
17554 echo "$as_me: failed program was:" >&5
17555 sed 's/^/| /' conftest.$ac_ext >&5
17556
17557 ac_header_compiler=no
17558 fi
17559
17560 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17561 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17562 echo "${ECHO_T}$ac_header_compiler" >&6; }
17563
17564 # Is the header present?
17565 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17566 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17567 cat >conftest.$ac_ext <<_ACEOF
17568 /* confdefs.h. */
17569 _ACEOF
17570 cat confdefs.h >>conftest.$ac_ext
17571 cat >>conftest.$ac_ext <<_ACEOF
17572 /* end confdefs.h. */
17573 #include <sys/cpustats.h>
17574 _ACEOF
17575 if { (ac_try="$ac_cpp conftest.$ac_ext"
17576 case "(($ac_try" in
17577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17578 *) ac_try_echo=$ac_try;;
17579 esac
17580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17581 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17582 ac_status=$?
17583 grep -v '^ *+' conftest.er1 >conftest.err
17584 rm -f conftest.er1
17585 cat conftest.err >&5
17586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17587 (exit $ac_status); } >/dev/null && {
17588 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17589 test ! -s conftest.err
17590 }; then
17591 ac_header_preproc=yes
17592 else
17593 echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596 ac_header_preproc=no
17597 fi
17598
17599 rm -f conftest.err conftest.$ac_ext
17600 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17601 echo "${ECHO_T}$ac_header_preproc" >&6; }
17602
17603 # So? What about this header?
17604 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17605 yes:no: )
17606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17607 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17608 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17609 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17610 ac_header_preproc=yes
17611 ;;
17612 no:yes:* )
17613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17614 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17616 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17618 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17624 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17625
17626 ;;
17627 esac
17628 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17629 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17630 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17631 echo $ECHO_N "(cached) $ECHO_C" >&6
17632 else
17633 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17634 fi
17635 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17636 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17637
17638 fi
17639 if test $ac_cv_header_sys_cpustats_h = yes; then
17640 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17641 #define UMAX 1
17642 _ACEOF
17643
17644 fi
17645
17646
17647 fi
17648
17649 if test $ac_have_func = no; then
17650
17651 for ac_header in mach/mach.h
17652 do
17653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 fi
17660 ac_res=`eval echo '${'$as_ac_Header'}'`
17661 { echo "$as_me:$LINENO: result: $ac_res" >&5
17662 echo "${ECHO_T}$ac_res" >&6; }
17663 else
17664 # Is the header compilable?
17665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17667 cat >conftest.$ac_ext <<_ACEOF
17668 /* confdefs.h. */
17669 _ACEOF
17670 cat confdefs.h >>conftest.$ac_ext
17671 cat >>conftest.$ac_ext <<_ACEOF
17672 /* end confdefs.h. */
17673 $ac_includes_default
17674 #include <$ac_header>
17675 _ACEOF
17676 rm -f conftest.$ac_objext
17677 if { (ac_try="$ac_compile"
17678 case "(($ac_try" in
17679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17680 *) ac_try_echo=$ac_try;;
17681 esac
17682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17683 (eval "$ac_compile") 2>conftest.er1
17684 ac_status=$?
17685 grep -v '^ *+' conftest.er1 >conftest.err
17686 rm -f conftest.er1
17687 cat conftest.err >&5
17688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17689 (exit $ac_status); } && {
17690 test -z "$ac_c_werror_flag" ||
17691 test ! -s conftest.err
17692 } && test -s conftest.$ac_objext; then
17693 ac_header_compiler=yes
17694 else
17695 echo "$as_me: failed program was:" >&5
17696 sed 's/^/| /' conftest.$ac_ext >&5
17697
17698 ac_header_compiler=no
17699 fi
17700
17701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17703 echo "${ECHO_T}$ac_header_compiler" >&6; }
17704
17705 # Is the header present?
17706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 #include <$ac_header>
17715 _ACEOF
17716 if { (ac_try="$ac_cpp conftest.$ac_ext"
17717 case "(($ac_try" in
17718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17719 *) ac_try_echo=$ac_try;;
17720 esac
17721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17723 ac_status=$?
17724 grep -v '^ *+' conftest.er1 >conftest.err
17725 rm -f conftest.er1
17726 cat conftest.err >&5
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); } >/dev/null && {
17729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17730 test ! -s conftest.err
17731 }; then
17732 ac_header_preproc=yes
17733 else
17734 echo "$as_me: failed program was:" >&5
17735 sed 's/^/| /' conftest.$ac_ext >&5
17736
17737 ac_header_preproc=no
17738 fi
17739
17740 rm -f conftest.err conftest.$ac_ext
17741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17742 echo "${ECHO_T}$ac_header_preproc" >&6; }
17743
17744 # So? What about this header?
17745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17746 yes:no: )
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17751 ac_header_preproc=yes
17752 ;;
17753 no:yes:* )
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17766
17767 ;;
17768 esac
17769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17772 echo $ECHO_N "(cached) $ECHO_C" >&6
17773 else
17774 eval "$as_ac_Header=\$ac_header_preproc"
17775 fi
17776 ac_res=`eval echo '${'$as_ac_Header'}'`
17777 { echo "$as_me:$LINENO: result: $ac_res" >&5
17778 echo "${ECHO_T}$ac_res" >&6; }
17779
17780 fi
17781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17782 cat >>confdefs.h <<_ACEOF
17783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17784 _ACEOF
17785
17786 fi
17787
17788 done
17789
17790 fi
17791
17792
17793 for ac_header in nlist.h
17794 do
17795 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17797 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17798 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17799 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17800 echo $ECHO_N "(cached) $ECHO_C" >&6
17801 fi
17802 ac_res=`eval echo '${'$as_ac_Header'}'`
17803 { echo "$as_me:$LINENO: result: $ac_res" >&5
17804 echo "${ECHO_T}$ac_res" >&6; }
17805 else
17806 # Is the header compilable?
17807 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17808 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17809 cat >conftest.$ac_ext <<_ACEOF
17810 /* confdefs.h. */
17811 _ACEOF
17812 cat confdefs.h >>conftest.$ac_ext
17813 cat >>conftest.$ac_ext <<_ACEOF
17814 /* end confdefs.h. */
17815 $ac_includes_default
17816 #include <$ac_header>
17817 _ACEOF
17818 rm -f conftest.$ac_objext
17819 if { (ac_try="$ac_compile"
17820 case "(($ac_try" in
17821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17822 *) ac_try_echo=$ac_try;;
17823 esac
17824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17825 (eval "$ac_compile") 2>conftest.er1
17826 ac_status=$?
17827 grep -v '^ *+' conftest.er1 >conftest.err
17828 rm -f conftest.er1
17829 cat conftest.err >&5
17830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17831 (exit $ac_status); } && {
17832 test -z "$ac_c_werror_flag" ||
17833 test ! -s conftest.err
17834 } && test -s conftest.$ac_objext; then
17835 ac_header_compiler=yes
17836 else
17837 echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840 ac_header_compiler=no
17841 fi
17842
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17845 echo "${ECHO_T}$ac_header_compiler" >&6; }
17846
17847 # Is the header present?
17848 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17849 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17850 cat >conftest.$ac_ext <<_ACEOF
17851 /* confdefs.h. */
17852 _ACEOF
17853 cat confdefs.h >>conftest.$ac_ext
17854 cat >>conftest.$ac_ext <<_ACEOF
17855 /* end confdefs.h. */
17856 #include <$ac_header>
17857 _ACEOF
17858 if { (ac_try="$ac_cpp conftest.$ac_ext"
17859 case "(($ac_try" in
17860 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17861 *) ac_try_echo=$ac_try;;
17862 esac
17863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17864 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17865 ac_status=$?
17866 grep -v '^ *+' conftest.er1 >conftest.err
17867 rm -f conftest.er1
17868 cat conftest.err >&5
17869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17870 (exit $ac_status); } >/dev/null && {
17871 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17872 test ! -s conftest.err
17873 }; then
17874 ac_header_preproc=yes
17875 else
17876 echo "$as_me: failed program was:" >&5
17877 sed 's/^/| /' conftest.$ac_ext >&5
17878
17879 ac_header_preproc=no
17880 fi
17881
17882 rm -f conftest.err conftest.$ac_ext
17883 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17884 echo "${ECHO_T}$ac_header_preproc" >&6; }
17885
17886 # So? What about this header?
17887 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17888 yes:no: )
17889 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17890 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17891 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17892 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17893 ac_header_preproc=yes
17894 ;;
17895 no:yes:* )
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17897 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17899 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17901 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17903 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17905 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17906 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17907 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17908
17909 ;;
17910 esac
17911 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17912 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17914 echo $ECHO_N "(cached) $ECHO_C" >&6
17915 else
17916 eval "$as_ac_Header=\$ac_header_preproc"
17917 fi
17918 ac_res=`eval echo '${'$as_ac_Header'}'`
17919 { echo "$as_me:$LINENO: result: $ac_res" >&5
17920 echo "${ECHO_T}$ac_res" >&6; }
17921
17922 fi
17923 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17924 cat >>confdefs.h <<_ACEOF
17925 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17926 _ACEOF
17927 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17928 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17929 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17930 echo $ECHO_N "(cached) $ECHO_C" >&6
17931 else
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <nlist.h>
17939
17940 int
17941 main ()
17942 {
17943 static struct nlist ac_aggr;
17944 if (ac_aggr.n_un.n_name)
17945 return 0;
17946 ;
17947 return 0;
17948 }
17949 _ACEOF
17950 rm -f conftest.$ac_objext
17951 if { (ac_try="$ac_compile"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_compile") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } && {
17964 test -z "$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 } && test -s conftest.$ac_objext; then
17967 ac_cv_member_struct_nlist_n_un_n_name=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972 cat >conftest.$ac_ext <<_ACEOF
17973 /* confdefs.h. */
17974 _ACEOF
17975 cat confdefs.h >>conftest.$ac_ext
17976 cat >>conftest.$ac_ext <<_ACEOF
17977 /* end confdefs.h. */
17978 #include <nlist.h>
17979
17980 int
17981 main ()
17982 {
17983 static struct nlist ac_aggr;
17984 if (sizeof ac_aggr.n_un.n_name)
17985 return 0;
17986 ;
17987 return 0;
17988 }
17989 _ACEOF
17990 rm -f conftest.$ac_objext
17991 if { (ac_try="$ac_compile"
17992 case "(($ac_try" in
17993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17994 *) ac_try_echo=$ac_try;;
17995 esac
17996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17997 (eval "$ac_compile") 2>conftest.er1
17998 ac_status=$?
17999 grep -v '^ *+' conftest.er1 >conftest.err
18000 rm -f conftest.er1
18001 cat conftest.err >&5
18002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18003 (exit $ac_status); } && {
18004 test -z "$ac_c_werror_flag" ||
18005 test ! -s conftest.err
18006 } && test -s conftest.$ac_objext; then
18007 ac_cv_member_struct_nlist_n_un_n_name=yes
18008 else
18009 echo "$as_me: failed program was:" >&5
18010 sed 's/^/| /' conftest.$ac_ext >&5
18011
18012 ac_cv_member_struct_nlist_n_un_n_name=no
18013 fi
18014
18015 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18016 fi
18017
18018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18019 fi
18020 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18021 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18022 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18023
18024 cat >>confdefs.h <<_ACEOF
18025 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18026 _ACEOF
18027
18028
18029 cat >>confdefs.h <<\_ACEOF
18030 #define NLIST_NAME_UNION 1
18031 _ACEOF
18032
18033 fi
18034
18035
18036 fi
18037
18038 done
18039
18040 fi
18041 done
18042
18043
18044 # Some definitions of getloadavg require that the program be installed setgid.
18045 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18046 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18047 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18048 echo $ECHO_N "(cached) $ECHO_C" >&6
18049 else
18050 cat >conftest.$ac_ext <<_ACEOF
18051 /* confdefs.h. */
18052 _ACEOF
18053 cat confdefs.h >>conftest.$ac_ext
18054 cat >>conftest.$ac_ext <<_ACEOF
18055 /* end confdefs.h. */
18056 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18057 #ifdef LDAV_PRIVILEGED
18058 Yowza Am I SETGID yet
18059 #endif
18060 _ACEOF
18061 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18062 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18063 ac_cv_func_getloadavg_setgid=yes
18064 else
18065 ac_cv_func_getloadavg_setgid=no
18066 fi
18067 rm -f conftest*
18068
18069 fi
18070 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18071 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18072 if test $ac_cv_func_getloadavg_setgid = yes; then
18073 NEED_SETGID=true
18074
18075 cat >>confdefs.h <<\_ACEOF
18076 #define GETLOADAVG_PRIVILEGED 1
18077 _ACEOF
18078
18079 else
18080 NEED_SETGID=false
18081 fi
18082
18083 if test $ac_cv_func_getloadavg_setgid = yes; then
18084 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18085 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18086 if test "${ac_cv_group_kmem+set}" = set; then
18087 echo $ECHO_N "(cached) $ECHO_C" >&6
18088 else
18089 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18090 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18091 # If we got an error (system does not support symlinks), try without -L.
18092 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18093 ac_cv_group_kmem=`echo $ac_ls_output \
18094 | sed -ne 's/[ ][ ]*/ /g;
18095 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18096 / /s/.* //;p;'`
18097
18098 fi
18099 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18100 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18101 KMEM_GROUP=$ac_cv_group_kmem
18102 fi
18103 if test "x$ac_save_LIBS" = x; then
18104 GETLOADAVG_LIBS=$LIBS
18105 else
18106 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18107 fi
18108 LIBS=$ac_save_LIBS
18109
18110
18111
18112 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18113 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18114 if test "${ac_cv_sys_largefile_source+set}" = set; then
18115 echo $ECHO_N "(cached) $ECHO_C" >&6
18116 else
18117 while :; do
18118 cat >conftest.$ac_ext <<_ACEOF
18119 /* confdefs.h. */
18120 _ACEOF
18121 cat confdefs.h >>conftest.$ac_ext
18122 cat >>conftest.$ac_ext <<_ACEOF
18123 /* end confdefs.h. */
18124 #include <stdio.h>
18125 int
18126 main ()
18127 {
18128 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18129 ;
18130 return 0;
18131 }
18132 _ACEOF
18133 rm -f conftest.$ac_objext conftest$ac_exeext
18134 if { (ac_try="$ac_link"
18135 case "(($ac_try" in
18136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18137 *) ac_try_echo=$ac_try;;
18138 esac
18139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18140 (eval "$ac_link") 2>conftest.er1
18141 ac_status=$?
18142 grep -v '^ *+' conftest.er1 >conftest.err
18143 rm -f conftest.er1
18144 cat conftest.err >&5
18145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18146 (exit $ac_status); } && {
18147 test -z "$ac_c_werror_flag" ||
18148 test ! -s conftest.err
18149 } && test -s conftest$ac_exeext &&
18150 $as_test_x conftest$ac_exeext; then
18151 ac_cv_sys_largefile_source=no; break
18152 else
18153 echo "$as_me: failed program was:" >&5
18154 sed 's/^/| /' conftest.$ac_ext >&5
18155
18156
18157 fi
18158
18159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18160 conftest$ac_exeext conftest.$ac_ext
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 #define _LARGEFILE_SOURCE 1
18168 #include <stdio.h>
18169 int
18170 main ()
18171 {
18172 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18173 ;
18174 return 0;
18175 }
18176 _ACEOF
18177 rm -f conftest.$ac_objext conftest$ac_exeext
18178 if { (ac_try="$ac_link"
18179 case "(($ac_try" in
18180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18181 *) ac_try_echo=$ac_try;;
18182 esac
18183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18184 (eval "$ac_link") 2>conftest.er1
18185 ac_status=$?
18186 grep -v '^ *+' conftest.er1 >conftest.err
18187 rm -f conftest.er1
18188 cat conftest.err >&5
18189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18190 (exit $ac_status); } && {
18191 test -z "$ac_c_werror_flag" ||
18192 test ! -s conftest.err
18193 } && test -s conftest$ac_exeext &&
18194 $as_test_x conftest$ac_exeext; then
18195 ac_cv_sys_largefile_source=1; break
18196 else
18197 echo "$as_me: failed program was:" >&5
18198 sed 's/^/| /' conftest.$ac_ext >&5
18199
18200
18201 fi
18202
18203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18204 conftest$ac_exeext conftest.$ac_ext
18205 ac_cv_sys_largefile_source=unknown
18206 break
18207 done
18208 fi
18209 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18210 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18211 case $ac_cv_sys_largefile_source in #(
18212 no | unknown) ;;
18213 *)
18214 cat >>confdefs.h <<_ACEOF
18215 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18216 _ACEOF
18217 ;;
18218 esac
18219 rm -f conftest*
18220
18221 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18222 # in glibc 2.1.3, but that breaks too many other things.
18223 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18224 if test $ac_cv_sys_largefile_source != unknown; then
18225
18226 cat >>confdefs.h <<\_ACEOF
18227 #define HAVE_FSEEKO 1
18228 _ACEOF
18229
18230 fi
18231
18232
18233 # Configure getopt.
18234 # getopt.m4 serial 10
18235
18236 # The getopt module assume you want GNU getopt, with getopt_long etc,
18237 # rather than vanilla POSIX getopt. This means your your code should
18238 # always include <getopt.h> for the getopt prototypes.
18239
18240
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250 # Prerequisites of lib/getopt*.
18251
18252
18253
18254
18255 GETOPT_H=
18256
18257 for ac_header in getopt.h
18258 do
18259 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18260 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18261 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18262 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18263 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18264 echo $ECHO_N "(cached) $ECHO_C" >&6
18265 fi
18266 ac_res=`eval echo '${'$as_ac_Header'}'`
18267 { echo "$as_me:$LINENO: result: $ac_res" >&5
18268 echo "${ECHO_T}$ac_res" >&6; }
18269 else
18270 # Is the header compilable?
18271 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18272 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18273 cat >conftest.$ac_ext <<_ACEOF
18274 /* confdefs.h. */
18275 _ACEOF
18276 cat confdefs.h >>conftest.$ac_ext
18277 cat >>conftest.$ac_ext <<_ACEOF
18278 /* end confdefs.h. */
18279 $ac_includes_default
18280 #include <$ac_header>
18281 _ACEOF
18282 rm -f conftest.$ac_objext
18283 if { (ac_try="$ac_compile"
18284 case "(($ac_try" in
18285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18286 *) ac_try_echo=$ac_try;;
18287 esac
18288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18289 (eval "$ac_compile") 2>conftest.er1
18290 ac_status=$?
18291 grep -v '^ *+' conftest.er1 >conftest.err
18292 rm -f conftest.er1
18293 cat conftest.err >&5
18294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18295 (exit $ac_status); } && {
18296 test -z "$ac_c_werror_flag" ||
18297 test ! -s conftest.err
18298 } && test -s conftest.$ac_objext; then
18299 ac_header_compiler=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_header_compiler=no
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18308 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18309 echo "${ECHO_T}$ac_header_compiler" >&6; }
18310
18311 # Is the header present?
18312 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18313 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18314 cat >conftest.$ac_ext <<_ACEOF
18315 /* confdefs.h. */
18316 _ACEOF
18317 cat confdefs.h >>conftest.$ac_ext
18318 cat >>conftest.$ac_ext <<_ACEOF
18319 /* end confdefs.h. */
18320 #include <$ac_header>
18321 _ACEOF
18322 if { (ac_try="$ac_cpp conftest.$ac_ext"
18323 case "(($ac_try" in
18324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18325 *) ac_try_echo=$ac_try;;
18326 esac
18327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18328 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18329 ac_status=$?
18330 grep -v '^ *+' conftest.er1 >conftest.err
18331 rm -f conftest.er1
18332 cat conftest.err >&5
18333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18334 (exit $ac_status); } >/dev/null && {
18335 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18336 test ! -s conftest.err
18337 }; then
18338 ac_header_preproc=yes
18339 else
18340 echo "$as_me: failed program was:" >&5
18341 sed 's/^/| /' conftest.$ac_ext >&5
18342
18343 ac_header_preproc=no
18344 fi
18345
18346 rm -f conftest.err conftest.$ac_ext
18347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18348 echo "${ECHO_T}$ac_header_preproc" >&6; }
18349
18350 # So? What about this header?
18351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18352 yes:no: )
18353 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18357 ac_header_preproc=yes
18358 ;;
18359 no:yes:* )
18360 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18363 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18367 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18372
18373 ;;
18374 esac
18375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18378 echo $ECHO_N "(cached) $ECHO_C" >&6
18379 else
18380 eval "$as_ac_Header=\$ac_header_preproc"
18381 fi
18382 ac_res=`eval echo '${'$as_ac_Header'}'`
18383 { echo "$as_me:$LINENO: result: $ac_res" >&5
18384 echo "${ECHO_T}$ac_res" >&6; }
18385
18386 fi
18387 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18388 cat >>confdefs.h <<_ACEOF
18389 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18390 _ACEOF
18391
18392 else
18393 GETOPT_H=getopt.h
18394 fi
18395
18396 done
18397
18398 if test -z "$GETOPT_H"; then
18399
18400 for ac_func in getopt_long_only
18401 do
18402 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18403 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18404 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18405 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18406 echo $ECHO_N "(cached) $ECHO_C" >&6
18407 else
18408 cat >conftest.$ac_ext <<_ACEOF
18409 /* confdefs.h. */
18410 _ACEOF
18411 cat confdefs.h >>conftest.$ac_ext
18412 cat >>conftest.$ac_ext <<_ACEOF
18413 /* end confdefs.h. */
18414 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18415 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18416 #define $ac_func innocuous_$ac_func
18417
18418 /* System header to define __stub macros and hopefully few prototypes,
18419 which can conflict with char $ac_func (); below.
18420 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18421 <limits.h> exists even on freestanding compilers. */
18422
18423 #ifdef __STDC__
18424 # include <limits.h>
18425 #else
18426 # include <assert.h>
18427 #endif
18428
18429 #undef $ac_func
18430
18431 /* Override any GCC internal prototype to avoid an error.
18432 Use char because int might match the return type of a GCC
18433 builtin and then its argument prototype would still apply. */
18434 #ifdef __cplusplus
18435 extern "C"
18436 #endif
18437 char $ac_func ();
18438 /* The GNU C library defines this for functions which it implements
18439 to always fail with ENOSYS. Some functions are actually named
18440 something starting with __ and the normal name is an alias. */
18441 #if defined __stub_$ac_func || defined __stub___$ac_func
18442 choke me
18443 #endif
18444
18445 int
18446 main ()
18447 {
18448 return $ac_func ();
18449 ;
18450 return 0;
18451 }
18452 _ACEOF
18453 rm -f conftest.$ac_objext conftest$ac_exeext
18454 if { (ac_try="$ac_link"
18455 case "(($ac_try" in
18456 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18457 *) ac_try_echo=$ac_try;;
18458 esac
18459 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18460 (eval "$ac_link") 2>conftest.er1
18461 ac_status=$?
18462 grep -v '^ *+' conftest.er1 >conftest.err
18463 rm -f conftest.er1
18464 cat conftest.err >&5
18465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18466 (exit $ac_status); } && {
18467 test -z "$ac_c_werror_flag" ||
18468 test ! -s conftest.err
18469 } && test -s conftest$ac_exeext &&
18470 $as_test_x conftest$ac_exeext; then
18471 eval "$as_ac_var=yes"
18472 else
18473 echo "$as_me: failed program was:" >&5
18474 sed 's/^/| /' conftest.$ac_ext >&5
18475
18476 eval "$as_ac_var=no"
18477 fi
18478
18479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18480 conftest$ac_exeext conftest.$ac_ext
18481 fi
18482 ac_res=`eval echo '${'$as_ac_var'}'`
18483 { echo "$as_me:$LINENO: result: $ac_res" >&5
18484 echo "${ECHO_T}$ac_res" >&6; }
18485 if test `eval echo '${'$as_ac_var'}'` = yes; then
18486 cat >>confdefs.h <<_ACEOF
18487 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18488 _ACEOF
18489
18490 else
18491 GETOPT_H=getopt.h
18492 fi
18493 done
18494
18495 fi
18496
18497 if test -z "$GETOPT_H"; then
18498 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18499 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18500 if test "${ac_cv_have_decl_optreset+set}" = set; then
18501 echo $ECHO_N "(cached) $ECHO_C" >&6
18502 else
18503 cat >conftest.$ac_ext <<_ACEOF
18504 /* confdefs.h. */
18505 _ACEOF
18506 cat confdefs.h >>conftest.$ac_ext
18507 cat >>conftest.$ac_ext <<_ACEOF
18508 /* end confdefs.h. */
18509 #include <getopt.h>
18510
18511 int
18512 main ()
18513 {
18514 #ifndef optreset
18515 (void) optreset;
18516 #endif
18517
18518 ;
18519 return 0;
18520 }
18521 _ACEOF
18522 rm -f conftest.$ac_objext
18523 if { (ac_try="$ac_compile"
18524 case "(($ac_try" in
18525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18526 *) ac_try_echo=$ac_try;;
18527 esac
18528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18529 (eval "$ac_compile") 2>conftest.er1
18530 ac_status=$?
18531 grep -v '^ *+' conftest.er1 >conftest.err
18532 rm -f conftest.er1
18533 cat conftest.err >&5
18534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18535 (exit $ac_status); } && {
18536 test -z "$ac_c_werror_flag" ||
18537 test ! -s conftest.err
18538 } && test -s conftest.$ac_objext; then
18539 ac_cv_have_decl_optreset=yes
18540 else
18541 echo "$as_me: failed program was:" >&5
18542 sed 's/^/| /' conftest.$ac_ext >&5
18543
18544 ac_cv_have_decl_optreset=no
18545 fi
18546
18547 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18548 fi
18549 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18550 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18551 if test $ac_cv_have_decl_optreset = yes; then
18552 GETOPT_H=getopt.h
18553 fi
18554
18555 fi
18556
18557 if test -z "$GETOPT_H"; then
18558 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18559 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18560 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18561 echo $ECHO_N "(cached) $ECHO_C" >&6
18562 else
18563 if test "$cross_compiling" = yes; then
18564 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18565 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18566 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18567 echo $ECHO_N "(cached) $ECHO_C" >&6
18568 else
18569 cat >conftest.$ac_ext <<_ACEOF
18570 /* confdefs.h. */
18571 _ACEOF
18572 cat confdefs.h >>conftest.$ac_ext
18573 cat >>conftest.$ac_ext <<_ACEOF
18574 /* end confdefs.h. */
18575 #include <getopt.h>
18576
18577 int
18578 main ()
18579 {
18580 #ifndef getopt_clip
18581 (void) getopt_clip;
18582 #endif
18583
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext
18589 if { (ac_try="$ac_compile"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_compile") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest.$ac_objext; then
18605 ac_cv_have_decl_getopt_clip=yes
18606 else
18607 echo "$as_me: failed program was:" >&5
18608 sed 's/^/| /' conftest.$ac_ext >&5
18609
18610 ac_cv_have_decl_getopt_clip=no
18611 fi
18612
18613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18614 fi
18615 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18616 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18617 if test $ac_cv_have_decl_getopt_clip = yes; then
18618 gl_cv_func_gnu_getopt=no
18619 else
18620 gl_cv_func_gnu_getopt=yes
18621 fi
18622
18623 else
18624 cat >conftest.$ac_ext <<_ACEOF
18625 /* confdefs.h. */
18626 _ACEOF
18627 cat confdefs.h >>conftest.$ac_ext
18628 cat >>conftest.$ac_ext <<_ACEOF
18629 /* end confdefs.h. */
18630 #include <getopt.h>
18631 int
18632 main ()
18633 {
18634
18635 char *myargv[3];
18636 myargv[0] = "conftest";
18637 myargv[1] = "-+";
18638 myargv[2] = 0;
18639 return getopt (2, myargv, "+a") != '?';
18640
18641 ;
18642 return 0;
18643 }
18644 _ACEOF
18645 rm -f conftest$ac_exeext
18646 if { (ac_try="$ac_link"
18647 case "(($ac_try" in
18648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18649 *) ac_try_echo=$ac_try;;
18650 esac
18651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18652 (eval "$ac_link") 2>&5
18653 ac_status=$?
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18656 { (case "(($ac_try" in
18657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18658 *) ac_try_echo=$ac_try;;
18659 esac
18660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18661 (eval "$ac_try") 2>&5
18662 ac_status=$?
18663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18664 (exit $ac_status); }; }; then
18665 gl_cv_func_gnu_getopt=yes
18666 else
18667 echo "$as_me: program exited with status $ac_status" >&5
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ( exit $ac_status )
18672 gl_cv_func_gnu_getopt=no
18673 fi
18674 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18675 fi
18676
18677
18678 fi
18679 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18680 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18681 if test "$gl_cv_func_gnu_getopt" = "no"; then
18682 GETOPT_H=getopt.h
18683 fi
18684 fi
18685
18686
18687
18688 if test -n "$GETOPT_H"; then
18689
18690
18691 GETOPT_H=getopt.h
18692
18693 cat >>confdefs.h <<\_ACEOF
18694 #define __GETOPT_PREFIX rpl_
18695 _ACEOF
18696
18697
18698
18699 :
18700 GETOPTOBJS='getopt.o getopt1.o'
18701
18702 fi
18703
18704
18705
18706
18707 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18708 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18709 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18710 echo $ECHO_N "(cached) $ECHO_C" >&6
18711 else
18712 # Use it with a single arg.
18713 cat >conftest.$ac_ext <<_ACEOF
18714 /* confdefs.h. */
18715 _ACEOF
18716 cat confdefs.h >>conftest.$ac_ext
18717 cat >>conftest.$ac_ext <<_ACEOF
18718 /* end confdefs.h. */
18719 $ac_includes_default
18720 int
18721 main ()
18722 {
18723 getpgrp (0);
18724 ;
18725 return 0;
18726 }
18727 _ACEOF
18728 rm -f conftest.$ac_objext
18729 if { (ac_try="$ac_compile"
18730 case "(($ac_try" in
18731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18732 *) ac_try_echo=$ac_try;;
18733 esac
18734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18735 (eval "$ac_compile") 2>conftest.er1
18736 ac_status=$?
18737 grep -v '^ *+' conftest.er1 >conftest.err
18738 rm -f conftest.er1
18739 cat conftest.err >&5
18740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18741 (exit $ac_status); } && {
18742 test -z "$ac_c_werror_flag" ||
18743 test ! -s conftest.err
18744 } && test -s conftest.$ac_objext; then
18745 ac_cv_func_getpgrp_void=no
18746 else
18747 echo "$as_me: failed program was:" >&5
18748 sed 's/^/| /' conftest.$ac_ext >&5
18749
18750 ac_cv_func_getpgrp_void=yes
18751 fi
18752
18753 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18754
18755 fi
18756 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18757 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18758 if test $ac_cv_func_getpgrp_void = yes; then
18759
18760 cat >>confdefs.h <<\_ACEOF
18761 #define GETPGRP_VOID 1
18762 _ACEOF
18763
18764 fi
18765
18766
18767
18768 for ac_func in strftime
18769 do
18770 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18771 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18772 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18773 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18774 echo $ECHO_N "(cached) $ECHO_C" >&6
18775 else
18776 cat >conftest.$ac_ext <<_ACEOF
18777 /* confdefs.h. */
18778 _ACEOF
18779 cat confdefs.h >>conftest.$ac_ext
18780 cat >>conftest.$ac_ext <<_ACEOF
18781 /* end confdefs.h. */
18782 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18783 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18784 #define $ac_func innocuous_$ac_func
18785
18786 /* System header to define __stub macros and hopefully few prototypes,
18787 which can conflict with char $ac_func (); below.
18788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18789 <limits.h> exists even on freestanding compilers. */
18790
18791 #ifdef __STDC__
18792 # include <limits.h>
18793 #else
18794 # include <assert.h>
18795 #endif
18796
18797 #undef $ac_func
18798
18799 /* Override any GCC internal prototype to avoid an error.
18800 Use char because int might match the return type of a GCC
18801 builtin and then its argument prototype would still apply. */
18802 #ifdef __cplusplus
18803 extern "C"
18804 #endif
18805 char $ac_func ();
18806 /* The GNU C library defines this for functions which it implements
18807 to always fail with ENOSYS. Some functions are actually named
18808 something starting with __ and the normal name is an alias. */
18809 #if defined __stub_$ac_func || defined __stub___$ac_func
18810 choke me
18811 #endif
18812
18813 int
18814 main ()
18815 {
18816 return $ac_func ();
18817 ;
18818 return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext conftest$ac_exeext
18822 if { (ac_try="$ac_link"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_link") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest$ac_exeext &&
18838 $as_test_x conftest$ac_exeext; then
18839 eval "$as_ac_var=yes"
18840 else
18841 echo "$as_me: failed program was:" >&5
18842 sed 's/^/| /' conftest.$ac_ext >&5
18843
18844 eval "$as_ac_var=no"
18845 fi
18846
18847 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18848 conftest$ac_exeext conftest.$ac_ext
18849 fi
18850 ac_res=`eval echo '${'$as_ac_var'}'`
18851 { echo "$as_me:$LINENO: result: $ac_res" >&5
18852 echo "${ECHO_T}$ac_res" >&6; }
18853 if test `eval echo '${'$as_ac_var'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18856 _ACEOF
18857
18858 else
18859 # strftime is in -lintl on SCO UNIX.
18860 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18861 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18862 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18863 echo $ECHO_N "(cached) $ECHO_C" >&6
18864 else
18865 ac_check_lib_save_LIBS=$LIBS
18866 LIBS="-lintl $LIBS"
18867 cat >conftest.$ac_ext <<_ACEOF
18868 /* confdefs.h. */
18869 _ACEOF
18870 cat confdefs.h >>conftest.$ac_ext
18871 cat >>conftest.$ac_ext <<_ACEOF
18872 /* end confdefs.h. */
18873
18874 /* Override any GCC internal prototype to avoid an error.
18875 Use char because int might match the return type of a GCC
18876 builtin and then its argument prototype would still apply. */
18877 #ifdef __cplusplus
18878 extern "C"
18879 #endif
18880 char strftime ();
18881 int
18882 main ()
18883 {
18884 return strftime ();
18885 ;
18886 return 0;
18887 }
18888 _ACEOF
18889 rm -f conftest.$ac_objext conftest$ac_exeext
18890 if { (ac_try="$ac_link"
18891 case "(($ac_try" in
18892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18893 *) ac_try_echo=$ac_try;;
18894 esac
18895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18896 (eval "$ac_link") 2>conftest.er1
18897 ac_status=$?
18898 grep -v '^ *+' conftest.er1 >conftest.err
18899 rm -f conftest.er1
18900 cat conftest.err >&5
18901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18902 (exit $ac_status); } && {
18903 test -z "$ac_c_werror_flag" ||
18904 test ! -s conftest.err
18905 } && test -s conftest$ac_exeext &&
18906 $as_test_x conftest$ac_exeext; then
18907 ac_cv_lib_intl_strftime=yes
18908 else
18909 echo "$as_me: failed program was:" >&5
18910 sed 's/^/| /' conftest.$ac_ext >&5
18911
18912 ac_cv_lib_intl_strftime=no
18913 fi
18914
18915 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18916 conftest$ac_exeext conftest.$ac_ext
18917 LIBS=$ac_check_lib_save_LIBS
18918 fi
18919 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18920 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18921 if test $ac_cv_lib_intl_strftime = yes; then
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_STRFTIME 1
18924 _ACEOF
18925
18926 LIBS="-lintl $LIBS"
18927 fi
18928
18929 fi
18930 done
18931
18932
18933 # UNIX98 PTYs.
18934
18935 for ac_func in grantpt
18936 do
18937 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18938 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18939 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18940 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18941 echo $ECHO_N "(cached) $ECHO_C" >&6
18942 else
18943 cat >conftest.$ac_ext <<_ACEOF
18944 /* confdefs.h. */
18945 _ACEOF
18946 cat confdefs.h >>conftest.$ac_ext
18947 cat >>conftest.$ac_ext <<_ACEOF
18948 /* end confdefs.h. */
18949 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18950 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18951 #define $ac_func innocuous_$ac_func
18952
18953 /* System header to define __stub macros and hopefully few prototypes,
18954 which can conflict with char $ac_func (); below.
18955 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18956 <limits.h> exists even on freestanding compilers. */
18957
18958 #ifdef __STDC__
18959 # include <limits.h>
18960 #else
18961 # include <assert.h>
18962 #endif
18963
18964 #undef $ac_func
18965
18966 /* Override any GCC internal prototype to avoid an error.
18967 Use char because int might match the return type of a GCC
18968 builtin and then its argument prototype would still apply. */
18969 #ifdef __cplusplus
18970 extern "C"
18971 #endif
18972 char $ac_func ();
18973 /* The GNU C library defines this for functions which it implements
18974 to always fail with ENOSYS. Some functions are actually named
18975 something starting with __ and the normal name is an alias. */
18976 #if defined __stub_$ac_func || defined __stub___$ac_func
18977 choke me
18978 #endif
18979
18980 int
18981 main ()
18982 {
18983 return $ac_func ();
18984 ;
18985 return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext conftest$ac_exeext
18989 if { (ac_try="$ac_link"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_link") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest$ac_exeext &&
19005 $as_test_x conftest$ac_exeext; then
19006 eval "$as_ac_var=yes"
19007 else
19008 echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011 eval "$as_ac_var=no"
19012 fi
19013
19014 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19015 conftest$ac_exeext conftest.$ac_ext
19016 fi
19017 ac_res=`eval echo '${'$as_ac_var'}'`
19018 { echo "$as_me:$LINENO: result: $ac_res" >&5
19019 echo "${ECHO_T}$ac_res" >&6; }
19020 if test `eval echo '${'$as_ac_var'}'` = yes; then
19021 cat >>confdefs.h <<_ACEOF
19022 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19023 _ACEOF
19024
19025 fi
19026 done
19027
19028
19029 # PTY-related GNU extensions.
19030
19031 for ac_func in getpt
19032 do
19033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19037 echo $ECHO_N "(cached) $ECHO_C" >&6
19038 else
19039 cat >conftest.$ac_ext <<_ACEOF
19040 /* confdefs.h. */
19041 _ACEOF
19042 cat confdefs.h >>conftest.$ac_ext
19043 cat >>conftest.$ac_ext <<_ACEOF
19044 /* end confdefs.h. */
19045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19047 #define $ac_func innocuous_$ac_func
19048
19049 /* System header to define __stub macros and hopefully few prototypes,
19050 which can conflict with char $ac_func (); below.
19051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19052 <limits.h> exists even on freestanding compilers. */
19053
19054 #ifdef __STDC__
19055 # include <limits.h>
19056 #else
19057 # include <assert.h>
19058 #endif
19059
19060 #undef $ac_func
19061
19062 /* Override any GCC internal prototype to avoid an error.
19063 Use char because int might match the return type of a GCC
19064 builtin and then its argument prototype would still apply. */
19065 #ifdef __cplusplus
19066 extern "C"
19067 #endif
19068 char $ac_func ();
19069 /* The GNU C library defines this for functions which it implements
19070 to always fail with ENOSYS. Some functions are actually named
19071 something starting with __ and the normal name is an alias. */
19072 #if defined __stub_$ac_func || defined __stub___$ac_func
19073 choke me
19074 #endif
19075
19076 int
19077 main ()
19078 {
19079 return $ac_func ();
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest$ac_exeext &&
19101 $as_test_x conftest$ac_exeext; then
19102 eval "$as_ac_var=yes"
19103 else
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 eval "$as_ac_var=no"
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19111 conftest$ac_exeext conftest.$ac_ext
19112 fi
19113 ac_res=`eval echo '${'$as_ac_var'}'`
19114 { echo "$as_me:$LINENO: result: $ac_res" >&5
19115 echo "${ECHO_T}$ac_res" >&6; }
19116 if test `eval echo '${'$as_ac_var'}'` = yes; then
19117 cat >>confdefs.h <<_ACEOF
19118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19119 _ACEOF
19120
19121 fi
19122 done
19123
19124
19125 # Check this now, so that we will NOT find the above functions in ncurses.
19126 # That is because we have not set up to link ncurses in lib-src.
19127 # It's better to believe a function is not available
19128 # than to expect to find it in ncurses.
19129
19130 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19131 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19132 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19133 echo $ECHO_N "(cached) $ECHO_C" >&6
19134 else
19135 ac_check_lib_save_LIBS=$LIBS
19136 LIBS="-lncurses $LIBS"
19137 cat >conftest.$ac_ext <<_ACEOF
19138 /* confdefs.h. */
19139 _ACEOF
19140 cat confdefs.h >>conftest.$ac_ext
19141 cat >>conftest.$ac_ext <<_ACEOF
19142 /* end confdefs.h. */
19143
19144 /* Override any GCC internal prototype to avoid an error.
19145 Use char because int might match the return type of a GCC
19146 builtin and then its argument prototype would still apply. */
19147 #ifdef __cplusplus
19148 extern "C"
19149 #endif
19150 char tparm ();
19151 int
19152 main ()
19153 {
19154 return tparm ();
19155 ;
19156 return 0;
19157 }
19158 _ACEOF
19159 rm -f conftest.$ac_objext conftest$ac_exeext
19160 if { (ac_try="$ac_link"
19161 case "(($ac_try" in
19162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19163 *) ac_try_echo=$ac_try;;
19164 esac
19165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19166 (eval "$ac_link") 2>conftest.er1
19167 ac_status=$?
19168 grep -v '^ *+' conftest.er1 >conftest.err
19169 rm -f conftest.er1
19170 cat conftest.err >&5
19171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172 (exit $ac_status); } && {
19173 test -z "$ac_c_werror_flag" ||
19174 test ! -s conftest.err
19175 } && test -s conftest$ac_exeext &&
19176 $as_test_x conftest$ac_exeext; then
19177 ac_cv_lib_ncurses_tparm=yes
19178 else
19179 echo "$as_me: failed program was:" >&5
19180 sed 's/^/| /' conftest.$ac_ext >&5
19181
19182 ac_cv_lib_ncurses_tparm=no
19183 fi
19184
19185 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19186 conftest$ac_exeext conftest.$ac_ext
19187 LIBS=$ac_check_lib_save_LIBS
19188 fi
19189 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19190 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19191 if test $ac_cv_lib_ncurses_tparm = yes; then
19192 cat >>confdefs.h <<_ACEOF
19193 #define HAVE_LIBNCURSES 1
19194 _ACEOF
19195
19196 LIBS="-lncurses $LIBS"
19197
19198 fi
19199
19200
19201 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19202
19203 resolv=no
19204 cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h. */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h. */
19210 #include <netinet/in.h>
19211 #include <arpa/nameser.h>
19212 #include <resolv.h>
19213 int
19214 main ()
19215 {
19216 return res_init();
19217 ;
19218 return 0;
19219 }
19220 _ACEOF
19221 rm -f conftest.$ac_objext conftest$ac_exeext
19222 if { (ac_try="$ac_link"
19223 case "(($ac_try" in
19224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19225 *) ac_try_echo=$ac_try;;
19226 esac
19227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19228 (eval "$ac_link") 2>conftest.er1
19229 ac_status=$?
19230 grep -v '^ *+' conftest.er1 >conftest.err
19231 rm -f conftest.er1
19232 cat conftest.err >&5
19233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19234 (exit $ac_status); } && {
19235 test -z "$ac_c_werror_flag" ||
19236 test ! -s conftest.err
19237 } && test -s conftest$ac_exeext &&
19238 $as_test_x conftest$ac_exeext; then
19239 have_res_init=yes
19240 else
19241 echo "$as_me: failed program was:" >&5
19242 sed 's/^/| /' conftest.$ac_ext >&5
19243
19244 have_res_init=no
19245 fi
19246
19247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19248 conftest$ac_exeext conftest.$ac_ext
19249 if test "$have_res_init" = no; then
19250 OLIBS="$LIBS"
19251 LIBS="$LIBS -lresolv"
19252 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19253 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19254 cat >conftest.$ac_ext <<_ACEOF
19255 /* confdefs.h. */
19256 _ACEOF
19257 cat confdefs.h >>conftest.$ac_ext
19258 cat >>conftest.$ac_ext <<_ACEOF
19259 /* end confdefs.h. */
19260 #include <netinet/in.h>
19261 #include <arpa/nameser.h>
19262 #include <resolv.h>
19263 int
19264 main ()
19265 {
19266 return res_init();
19267 ;
19268 return 0;
19269 }
19270 _ACEOF
19271 rm -f conftest.$ac_objext conftest$ac_exeext
19272 if { (ac_try="$ac_link"
19273 case "(($ac_try" in
19274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19275 *) ac_try_echo=$ac_try;;
19276 esac
19277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19278 (eval "$ac_link") 2>conftest.er1
19279 ac_status=$?
19280 grep -v '^ *+' conftest.er1 >conftest.err
19281 rm -f conftest.er1
19282 cat conftest.err >&5
19283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19284 (exit $ac_status); } && {
19285 test -z "$ac_c_werror_flag" ||
19286 test ! -s conftest.err
19287 } && test -s conftest$ac_exeext &&
19288 $as_test_x conftest$ac_exeext; then
19289 have_res_init=yes
19290 else
19291 echo "$as_me: failed program was:" >&5
19292 sed 's/^/| /' conftest.$ac_ext >&5
19293
19294 have_res_init=no
19295 fi
19296
19297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19298 conftest$ac_exeext conftest.$ac_ext
19299 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19300 echo "${ECHO_T}$have_res_init" >&6; }
19301 if test "$have_res_init" = yes ; then
19302 resolv=yes
19303 fi
19304 LIBS="$OLIBS"
19305 fi
19306
19307 if test "$have_res_init" = yes; then
19308
19309 cat >>confdefs.h <<\_ACEOF
19310 #define HAVE_RES_INIT 1
19311 _ACEOF
19312
19313 fi
19314
19315 # Do we need the Hesiod library to provide the support routines?
19316 if test "$with_hesiod" = yes ; then
19317 # Don't set $LIBS here -- see comments above.
19318 { echo "$as_me:$LINENO: checking for res_send" >&5
19319 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19320 if test "${ac_cv_func_res_send+set}" = set; then
19321 echo $ECHO_N "(cached) $ECHO_C" >&6
19322 else
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 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19330 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19331 #define res_send innocuous_res_send
19332
19333 /* System header to define __stub macros and hopefully few prototypes,
19334 which can conflict with char res_send (); below.
19335 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19336 <limits.h> exists even on freestanding compilers. */
19337
19338 #ifdef __STDC__
19339 # include <limits.h>
19340 #else
19341 # include <assert.h>
19342 #endif
19343
19344 #undef res_send
19345
19346 /* Override any GCC internal prototype to avoid an error.
19347 Use char because int might match the return type of a GCC
19348 builtin and then its argument prototype would still apply. */
19349 #ifdef __cplusplus
19350 extern "C"
19351 #endif
19352 char res_send ();
19353 /* The GNU C library defines this for functions which it implements
19354 to always fail with ENOSYS. Some functions are actually named
19355 something starting with __ and the normal name is an alias. */
19356 #if defined __stub_res_send || defined __stub___res_send
19357 choke me
19358 #endif
19359
19360 int
19361 main ()
19362 {
19363 return res_send ();
19364 ;
19365 return 0;
19366 }
19367 _ACEOF
19368 rm -f conftest.$ac_objext conftest$ac_exeext
19369 if { (ac_try="$ac_link"
19370 case "(($ac_try" in
19371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19372 *) ac_try_echo=$ac_try;;
19373 esac
19374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19375 (eval "$ac_link") 2>conftest.er1
19376 ac_status=$?
19377 grep -v '^ *+' conftest.er1 >conftest.err
19378 rm -f conftest.er1
19379 cat conftest.err >&5
19380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19381 (exit $ac_status); } && {
19382 test -z "$ac_c_werror_flag" ||
19383 test ! -s conftest.err
19384 } && test -s conftest$ac_exeext &&
19385 $as_test_x conftest$ac_exeext; then
19386 ac_cv_func_res_send=yes
19387 else
19388 echo "$as_me: failed program was:" >&5
19389 sed 's/^/| /' conftest.$ac_ext >&5
19390
19391 ac_cv_func_res_send=no
19392 fi
19393
19394 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19395 conftest$ac_exeext conftest.$ac_ext
19396 fi
19397 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19398 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19399 if test $ac_cv_func_res_send = yes; then
19400 :
19401 else
19402 { echo "$as_me:$LINENO: checking for __res_send" >&5
19403 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19404 if test "${ac_cv_func___res_send+set}" = set; then
19405 echo $ECHO_N "(cached) $ECHO_C" >&6
19406 else
19407 cat >conftest.$ac_ext <<_ACEOF
19408 /* confdefs.h. */
19409 _ACEOF
19410 cat confdefs.h >>conftest.$ac_ext
19411 cat >>conftest.$ac_ext <<_ACEOF
19412 /* end confdefs.h. */
19413 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19414 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19415 #define __res_send innocuous___res_send
19416
19417 /* System header to define __stub macros and hopefully few prototypes,
19418 which can conflict with char __res_send (); below.
19419 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19420 <limits.h> exists even on freestanding compilers. */
19421
19422 #ifdef __STDC__
19423 # include <limits.h>
19424 #else
19425 # include <assert.h>
19426 #endif
19427
19428 #undef __res_send
19429
19430 /* Override any GCC internal prototype to avoid an error.
19431 Use char because int might match the return type of a GCC
19432 builtin and then its argument prototype would still apply. */
19433 #ifdef __cplusplus
19434 extern "C"
19435 #endif
19436 char __res_send ();
19437 /* The GNU C library defines this for functions which it implements
19438 to always fail with ENOSYS. Some functions are actually named
19439 something starting with __ and the normal name is an alias. */
19440 #if defined __stub___res_send || defined __stub_____res_send
19441 choke me
19442 #endif
19443
19444 int
19445 main ()
19446 {
19447 return __res_send ();
19448 ;
19449 return 0;
19450 }
19451 _ACEOF
19452 rm -f conftest.$ac_objext conftest$ac_exeext
19453 if { (ac_try="$ac_link"
19454 case "(($ac_try" in
19455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19456 *) ac_try_echo=$ac_try;;
19457 esac
19458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19459 (eval "$ac_link") 2>conftest.er1
19460 ac_status=$?
19461 grep -v '^ *+' conftest.er1 >conftest.err
19462 rm -f conftest.er1
19463 cat conftest.err >&5
19464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19465 (exit $ac_status); } && {
19466 test -z "$ac_c_werror_flag" ||
19467 test ! -s conftest.err
19468 } && test -s conftest$ac_exeext &&
19469 $as_test_x conftest$ac_exeext; then
19470 ac_cv_func___res_send=yes
19471 else
19472 echo "$as_me: failed program was:" >&5
19473 sed 's/^/| /' conftest.$ac_ext >&5
19474
19475 ac_cv_func___res_send=no
19476 fi
19477
19478 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19479 conftest$ac_exeext conftest.$ac_ext
19480 fi
19481 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19482 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19483 if test $ac_cv_func___res_send = yes; then
19484 :
19485 else
19486 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19487 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19488 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19489 echo $ECHO_N "(cached) $ECHO_C" >&6
19490 else
19491 ac_check_lib_save_LIBS=$LIBS
19492 LIBS="-lresolv $LIBS"
19493 cat >conftest.$ac_ext <<_ACEOF
19494 /* confdefs.h. */
19495 _ACEOF
19496 cat confdefs.h >>conftest.$ac_ext
19497 cat >>conftest.$ac_ext <<_ACEOF
19498 /* end confdefs.h. */
19499
19500 /* Override any GCC internal prototype to avoid an error.
19501 Use char because int might match the return type of a GCC
19502 builtin and then its argument prototype would still apply. */
19503 #ifdef __cplusplus
19504 extern "C"
19505 #endif
19506 char res_send ();
19507 int
19508 main ()
19509 {
19510 return res_send ();
19511 ;
19512 return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext conftest$ac_exeext
19516 if { (ac_try="$ac_link"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_link") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } && {
19529 test -z "$ac_c_werror_flag" ||
19530 test ! -s conftest.err
19531 } && test -s conftest$ac_exeext &&
19532 $as_test_x conftest$ac_exeext; then
19533 ac_cv_lib_resolv_res_send=yes
19534 else
19535 echo "$as_me: failed program was:" >&5
19536 sed 's/^/| /' conftest.$ac_ext >&5
19537
19538 ac_cv_lib_resolv_res_send=no
19539 fi
19540
19541 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19542 conftest$ac_exeext conftest.$ac_ext
19543 LIBS=$ac_check_lib_save_LIBS
19544 fi
19545 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19546 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19547 if test $ac_cv_lib_resolv_res_send = yes; then
19548 resolv=yes
19549 else
19550 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19551 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19552 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19553 echo $ECHO_N "(cached) $ECHO_C" >&6
19554 else
19555 ac_check_lib_save_LIBS=$LIBS
19556 LIBS="-lresolv $LIBS"
19557 cat >conftest.$ac_ext <<_ACEOF
19558 /* confdefs.h. */
19559 _ACEOF
19560 cat confdefs.h >>conftest.$ac_ext
19561 cat >>conftest.$ac_ext <<_ACEOF
19562 /* end confdefs.h. */
19563
19564 /* Override any GCC internal prototype to avoid an error.
19565 Use char because int might match the return type of a GCC
19566 builtin and then its argument prototype would still apply. */
19567 #ifdef __cplusplus
19568 extern "C"
19569 #endif
19570 char __res_send ();
19571 int
19572 main ()
19573 {
19574 return __res_send ();
19575 ;
19576 return 0;
19577 }
19578 _ACEOF
19579 rm -f conftest.$ac_objext conftest$ac_exeext
19580 if { (ac_try="$ac_link"
19581 case "(($ac_try" in
19582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19583 *) ac_try_echo=$ac_try;;
19584 esac
19585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19586 (eval "$ac_link") 2>conftest.er1
19587 ac_status=$?
19588 grep -v '^ *+' conftest.er1 >conftest.err
19589 rm -f conftest.er1
19590 cat conftest.err >&5
19591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19592 (exit $ac_status); } && {
19593 test -z "$ac_c_werror_flag" ||
19594 test ! -s conftest.err
19595 } && test -s conftest$ac_exeext &&
19596 $as_test_x conftest$ac_exeext; then
19597 ac_cv_lib_resolv___res_send=yes
19598 else
19599 echo "$as_me: failed program was:" >&5
19600 sed 's/^/| /' conftest.$ac_ext >&5
19601
19602 ac_cv_lib_resolv___res_send=no
19603 fi
19604
19605 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19606 conftest$ac_exeext conftest.$ac_ext
19607 LIBS=$ac_check_lib_save_LIBS
19608 fi
19609 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19610 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19611 if test $ac_cv_lib_resolv___res_send = yes; then
19612 resolv=yes
19613 fi
19614
19615 fi
19616
19617 fi
19618
19619 fi
19620
19621 if test "$resolv" = yes ; then
19622 RESOLVLIB=-lresolv
19623 else
19624 RESOLVLIB=
19625 fi
19626 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19627 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19628 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19629 echo $ECHO_N "(cached) $ECHO_C" >&6
19630 else
19631 cat >conftest.$ac_ext <<_ACEOF
19632 /* confdefs.h. */
19633 _ACEOF
19634 cat confdefs.h >>conftest.$ac_ext
19635 cat >>conftest.$ac_ext <<_ACEOF
19636 /* end confdefs.h. */
19637 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19638 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19639 #define hes_getmailhost innocuous_hes_getmailhost
19640
19641 /* System header to define __stub macros and hopefully few prototypes,
19642 which can conflict with char hes_getmailhost (); below.
19643 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19644 <limits.h> exists even on freestanding compilers. */
19645
19646 #ifdef __STDC__
19647 # include <limits.h>
19648 #else
19649 # include <assert.h>
19650 #endif
19651
19652 #undef hes_getmailhost
19653
19654 /* Override any GCC internal prototype to avoid an error.
19655 Use char because int might match the return type of a GCC
19656 builtin and then its argument prototype would still apply. */
19657 #ifdef __cplusplus
19658 extern "C"
19659 #endif
19660 char hes_getmailhost ();
19661 /* The GNU C library defines this for functions which it implements
19662 to always fail with ENOSYS. Some functions are actually named
19663 something starting with __ and the normal name is an alias. */
19664 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19665 choke me
19666 #endif
19667
19668 int
19669 main ()
19670 {
19671 return hes_getmailhost ();
19672 ;
19673 return 0;
19674 }
19675 _ACEOF
19676 rm -f conftest.$ac_objext conftest$ac_exeext
19677 if { (ac_try="$ac_link"
19678 case "(($ac_try" in
19679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680 *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683 (eval "$ac_link") 2>conftest.er1
19684 ac_status=$?
19685 grep -v '^ *+' conftest.er1 >conftest.err
19686 rm -f conftest.er1
19687 cat conftest.err >&5
19688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689 (exit $ac_status); } && {
19690 test -z "$ac_c_werror_flag" ||
19691 test ! -s conftest.err
19692 } && test -s conftest$ac_exeext &&
19693 $as_test_x conftest$ac_exeext; then
19694 ac_cv_func_hes_getmailhost=yes
19695 else
19696 echo "$as_me: failed program was:" >&5
19697 sed 's/^/| /' conftest.$ac_ext >&5
19698
19699 ac_cv_func_hes_getmailhost=no
19700 fi
19701
19702 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19703 conftest$ac_exeext conftest.$ac_ext
19704 fi
19705 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19706 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19707 if test $ac_cv_func_hes_getmailhost = yes; then
19708 :
19709 else
19710 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19711 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19712 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19713 echo $ECHO_N "(cached) $ECHO_C" >&6
19714 else
19715 ac_check_lib_save_LIBS=$LIBS
19716 LIBS="-lhesiod $RESOLVLIB $LIBS"
19717 cat >conftest.$ac_ext <<_ACEOF
19718 /* confdefs.h. */
19719 _ACEOF
19720 cat confdefs.h >>conftest.$ac_ext
19721 cat >>conftest.$ac_ext <<_ACEOF
19722 /* end confdefs.h. */
19723
19724 /* Override any GCC internal prototype to avoid an error.
19725 Use char because int might match the return type of a GCC
19726 builtin and then its argument prototype would still apply. */
19727 #ifdef __cplusplus
19728 extern "C"
19729 #endif
19730 char hes_getmailhost ();
19731 int
19732 main ()
19733 {
19734 return hes_getmailhost ();
19735 ;
19736 return 0;
19737 }
19738 _ACEOF
19739 rm -f conftest.$ac_objext conftest$ac_exeext
19740 if { (ac_try="$ac_link"
19741 case "(($ac_try" in
19742 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19743 *) ac_try_echo=$ac_try;;
19744 esac
19745 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19746 (eval "$ac_link") 2>conftest.er1
19747 ac_status=$?
19748 grep -v '^ *+' conftest.er1 >conftest.err
19749 rm -f conftest.er1
19750 cat conftest.err >&5
19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19752 (exit $ac_status); } && {
19753 test -z "$ac_c_werror_flag" ||
19754 test ! -s conftest.err
19755 } && test -s conftest$ac_exeext &&
19756 $as_test_x conftest$ac_exeext; then
19757 ac_cv_lib_hesiod_hes_getmailhost=yes
19758 else
19759 echo "$as_me: failed program was:" >&5
19760 sed 's/^/| /' conftest.$ac_ext >&5
19761
19762 ac_cv_lib_hesiod_hes_getmailhost=no
19763 fi
19764
19765 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19766 conftest$ac_exeext conftest.$ac_ext
19767 LIBS=$ac_check_lib_save_LIBS
19768 fi
19769 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19770 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19771 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19772
19773 cat >>confdefs.h <<\_ACEOF
19774 #define HAVE_LIBHESIOD 1
19775 _ACEOF
19776
19777 else
19778 :
19779 fi
19780
19781 fi
19782
19783 fi
19784
19785 # Do we need libresolv (due to res_init or Hesiod)?
19786 if test "$resolv" = yes ; then
19787
19788 cat >>confdefs.h <<\_ACEOF
19789 #define HAVE_LIBRESOLV 1
19790 _ACEOF
19791
19792 fi
19793
19794 # These tell us which Kerberos-related libraries to use.
19795 if test "${with_kerberos+set}" = set; then
19796
19797 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19798 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19799 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19800 echo $ECHO_N "(cached) $ECHO_C" >&6
19801 else
19802 ac_check_lib_save_LIBS=$LIBS
19803 LIBS="-lcom_err $LIBS"
19804 cat >conftest.$ac_ext <<_ACEOF
19805 /* confdefs.h. */
19806 _ACEOF
19807 cat confdefs.h >>conftest.$ac_ext
19808 cat >>conftest.$ac_ext <<_ACEOF
19809 /* end confdefs.h. */
19810
19811 /* Override any GCC internal prototype to avoid an error.
19812 Use char because int might match the return type of a GCC
19813 builtin and then its argument prototype would still apply. */
19814 #ifdef __cplusplus
19815 extern "C"
19816 #endif
19817 char com_err ();
19818 int
19819 main ()
19820 {
19821 return com_err ();
19822 ;
19823 return 0;
19824 }
19825 _ACEOF
19826 rm -f conftest.$ac_objext conftest$ac_exeext
19827 if { (ac_try="$ac_link"
19828 case "(($ac_try" in
19829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19830 *) ac_try_echo=$ac_try;;
19831 esac
19832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19833 (eval "$ac_link") 2>conftest.er1
19834 ac_status=$?
19835 grep -v '^ *+' conftest.er1 >conftest.err
19836 rm -f conftest.er1
19837 cat conftest.err >&5
19838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19839 (exit $ac_status); } && {
19840 test -z "$ac_c_werror_flag" ||
19841 test ! -s conftest.err
19842 } && test -s conftest$ac_exeext &&
19843 $as_test_x conftest$ac_exeext; then
19844 ac_cv_lib_com_err_com_err=yes
19845 else
19846 echo "$as_me: failed program was:" >&5
19847 sed 's/^/| /' conftest.$ac_ext >&5
19848
19849 ac_cv_lib_com_err_com_err=no
19850 fi
19851
19852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19853 conftest$ac_exeext conftest.$ac_ext
19854 LIBS=$ac_check_lib_save_LIBS
19855 fi
19856 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19857 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19858 if test $ac_cv_lib_com_err_com_err = yes; then
19859 cat >>confdefs.h <<_ACEOF
19860 #define HAVE_LIBCOM_ERR 1
19861 _ACEOF
19862
19863 LIBS="-lcom_err $LIBS"
19864
19865 fi
19866
19867
19868 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19869 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19870 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873 ac_check_lib_save_LIBS=$LIBS
19874 LIBS="-lk5crypto $LIBS"
19875 cat >conftest.$ac_ext <<_ACEOF
19876 /* confdefs.h. */
19877 _ACEOF
19878 cat confdefs.h >>conftest.$ac_ext
19879 cat >>conftest.$ac_ext <<_ACEOF
19880 /* end confdefs.h. */
19881
19882 /* Override any GCC internal prototype to avoid an error.
19883 Use char because int might match the return type of a GCC
19884 builtin and then its argument prototype would still apply. */
19885 #ifdef __cplusplus
19886 extern "C"
19887 #endif
19888 char mit_des_cbc_encrypt ();
19889 int
19890 main ()
19891 {
19892 return mit_des_cbc_encrypt ();
19893 ;
19894 return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_link") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext &&
19914 $as_test_x conftest$ac_exeext; then
19915 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19921 fi
19922
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext conftest.$ac_ext
19925 LIBS=$ac_check_lib_save_LIBS
19926 fi
19927 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19928 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19929 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19930 cat >>confdefs.h <<_ACEOF
19931 #define HAVE_LIBK5CRYPTO 1
19932 _ACEOF
19933
19934 LIBS="-lk5crypto $LIBS"
19935
19936 fi
19937
19938
19939 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19940 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19941 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19942 echo $ECHO_N "(cached) $ECHO_C" >&6
19943 else
19944 ac_check_lib_save_LIBS=$LIBS
19945 LIBS="-lcrypto $LIBS"
19946 cat >conftest.$ac_ext <<_ACEOF
19947 /* confdefs.h. */
19948 _ACEOF
19949 cat confdefs.h >>conftest.$ac_ext
19950 cat >>conftest.$ac_ext <<_ACEOF
19951 /* end confdefs.h. */
19952
19953 /* Override any GCC internal prototype to avoid an error.
19954 Use char because int might match the return type of a GCC
19955 builtin and then its argument prototype would still apply. */
19956 #ifdef __cplusplus
19957 extern "C"
19958 #endif
19959 char mit_des_cbc_encrypt ();
19960 int
19961 main ()
19962 {
19963 return mit_des_cbc_encrypt ();
19964 ;
19965 return 0;
19966 }
19967 _ACEOF
19968 rm -f conftest.$ac_objext conftest$ac_exeext
19969 if { (ac_try="$ac_link"
19970 case "(($ac_try" in
19971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19972 *) ac_try_echo=$ac_try;;
19973 esac
19974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19975 (eval "$ac_link") 2>conftest.er1
19976 ac_status=$?
19977 grep -v '^ *+' conftest.er1 >conftest.err
19978 rm -f conftest.er1
19979 cat conftest.err >&5
19980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19981 (exit $ac_status); } && {
19982 test -z "$ac_c_werror_flag" ||
19983 test ! -s conftest.err
19984 } && test -s conftest$ac_exeext &&
19985 $as_test_x conftest$ac_exeext; then
19986 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19987 else
19988 echo "$as_me: failed program was:" >&5
19989 sed 's/^/| /' conftest.$ac_ext >&5
19990
19991 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19992 fi
19993
19994 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19995 conftest$ac_exeext conftest.$ac_ext
19996 LIBS=$ac_check_lib_save_LIBS
19997 fi
19998 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19999 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20000 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20001 cat >>confdefs.h <<_ACEOF
20002 #define HAVE_LIBCRYPTO 1
20003 _ACEOF
20004
20005 LIBS="-lcrypto $LIBS"
20006
20007 fi
20008
20009
20010 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20011 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20012 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20013 echo $ECHO_N "(cached) $ECHO_C" >&6
20014 else
20015 ac_check_lib_save_LIBS=$LIBS
20016 LIBS="-lkrb5 $LIBS"
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
20024 /* Override any GCC internal prototype to avoid an error.
20025 Use char because int might match the return type of a GCC
20026 builtin and then its argument prototype would still apply. */
20027 #ifdef __cplusplus
20028 extern "C"
20029 #endif
20030 char krb5_init_context ();
20031 int
20032 main ()
20033 {
20034 return krb5_init_context ();
20035 ;
20036 return 0;
20037 }
20038 _ACEOF
20039 rm -f conftest.$ac_objext conftest$ac_exeext
20040 if { (ac_try="$ac_link"
20041 case "(($ac_try" in
20042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20043 *) ac_try_echo=$ac_try;;
20044 esac
20045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20046 (eval "$ac_link") 2>conftest.er1
20047 ac_status=$?
20048 grep -v '^ *+' conftest.er1 >conftest.err
20049 rm -f conftest.er1
20050 cat conftest.err >&5
20051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20052 (exit $ac_status); } && {
20053 test -z "$ac_c_werror_flag" ||
20054 test ! -s conftest.err
20055 } && test -s conftest$ac_exeext &&
20056 $as_test_x conftest$ac_exeext; then
20057 ac_cv_lib_krb5_krb5_init_context=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_cv_lib_krb5_krb5_init_context=no
20063 fi
20064
20065 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20066 conftest$ac_exeext conftest.$ac_ext
20067 LIBS=$ac_check_lib_save_LIBS
20068 fi
20069 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20070 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20071 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20072 cat >>confdefs.h <<_ACEOF
20073 #define HAVE_LIBKRB5 1
20074 _ACEOF
20075
20076 LIBS="-lkrb5 $LIBS"
20077
20078 fi
20079
20080 if test "${with_kerberos5+set}" != set; then
20081
20082 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20083 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20084 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20085 echo $ECHO_N "(cached) $ECHO_C" >&6
20086 else
20087 ac_check_lib_save_LIBS=$LIBS
20088 LIBS="-ldes425 $LIBS"
20089 cat >conftest.$ac_ext <<_ACEOF
20090 /* confdefs.h. */
20091 _ACEOF
20092 cat confdefs.h >>conftest.$ac_ext
20093 cat >>conftest.$ac_ext <<_ACEOF
20094 /* end confdefs.h. */
20095
20096 /* Override any GCC internal prototype to avoid an error.
20097 Use char because int might match the return type of a GCC
20098 builtin and then its argument prototype would still apply. */
20099 #ifdef __cplusplus
20100 extern "C"
20101 #endif
20102 char des_cbc_encrypt ();
20103 int
20104 main ()
20105 {
20106 return des_cbc_encrypt ();
20107 ;
20108 return 0;
20109 }
20110 _ACEOF
20111 rm -f conftest.$ac_objext conftest$ac_exeext
20112 if { (ac_try="$ac_link"
20113 case "(($ac_try" in
20114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20115 *) ac_try_echo=$ac_try;;
20116 esac
20117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20118 (eval "$ac_link") 2>conftest.er1
20119 ac_status=$?
20120 grep -v '^ *+' conftest.er1 >conftest.err
20121 rm -f conftest.er1
20122 cat conftest.err >&5
20123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20124 (exit $ac_status); } && {
20125 test -z "$ac_c_werror_flag" ||
20126 test ! -s conftest.err
20127 } && test -s conftest$ac_exeext &&
20128 $as_test_x conftest$ac_exeext; then
20129 ac_cv_lib_des425_des_cbc_encrypt=yes
20130 else
20131 echo "$as_me: failed program was:" >&5
20132 sed 's/^/| /' conftest.$ac_ext >&5
20133
20134 ac_cv_lib_des425_des_cbc_encrypt=no
20135 fi
20136
20137 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20138 conftest$ac_exeext conftest.$ac_ext
20139 LIBS=$ac_check_lib_save_LIBS
20140 fi
20141 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20142 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20143 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define HAVE_LIBDES425 1
20146 _ACEOF
20147
20148 LIBS="-ldes425 $LIBS"
20149
20150 else
20151
20152 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20153 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20154 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20155 echo $ECHO_N "(cached) $ECHO_C" >&6
20156 else
20157 ac_check_lib_save_LIBS=$LIBS
20158 LIBS="-ldes $LIBS"
20159 cat >conftest.$ac_ext <<_ACEOF
20160 /* confdefs.h. */
20161 _ACEOF
20162 cat confdefs.h >>conftest.$ac_ext
20163 cat >>conftest.$ac_ext <<_ACEOF
20164 /* end confdefs.h. */
20165
20166 /* Override any GCC internal prototype to avoid an error.
20167 Use char because int might match the return type of a GCC
20168 builtin and then its argument prototype would still apply. */
20169 #ifdef __cplusplus
20170 extern "C"
20171 #endif
20172 char des_cbc_encrypt ();
20173 int
20174 main ()
20175 {
20176 return des_cbc_encrypt ();
20177 ;
20178 return 0;
20179 }
20180 _ACEOF
20181 rm -f conftest.$ac_objext conftest$ac_exeext
20182 if { (ac_try="$ac_link"
20183 case "(($ac_try" in
20184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20185 *) ac_try_echo=$ac_try;;
20186 esac
20187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20188 (eval "$ac_link") 2>conftest.er1
20189 ac_status=$?
20190 grep -v '^ *+' conftest.er1 >conftest.err
20191 rm -f conftest.er1
20192 cat conftest.err >&5
20193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20194 (exit $ac_status); } && {
20195 test -z "$ac_c_werror_flag" ||
20196 test ! -s conftest.err
20197 } && test -s conftest$ac_exeext &&
20198 $as_test_x conftest$ac_exeext; then
20199 ac_cv_lib_des_des_cbc_encrypt=yes
20200 else
20201 echo "$as_me: failed program was:" >&5
20202 sed 's/^/| /' conftest.$ac_ext >&5
20203
20204 ac_cv_lib_des_des_cbc_encrypt=no
20205 fi
20206
20207 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20208 conftest$ac_exeext conftest.$ac_ext
20209 LIBS=$ac_check_lib_save_LIBS
20210 fi
20211 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20212 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20213 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20214 cat >>confdefs.h <<_ACEOF
20215 #define HAVE_LIBDES 1
20216 _ACEOF
20217
20218 LIBS="-ldes $LIBS"
20219
20220 fi
20221
20222 fi
20223
20224
20225 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20226 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20227 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20228 echo $ECHO_N "(cached) $ECHO_C" >&6
20229 else
20230 ac_check_lib_save_LIBS=$LIBS
20231 LIBS="-lkrb4 $LIBS"
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h. */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h. */
20238
20239 /* Override any GCC internal prototype to avoid an error.
20240 Use char because int might match the return type of a GCC
20241 builtin and then its argument prototype would still apply. */
20242 #ifdef __cplusplus
20243 extern "C"
20244 #endif
20245 char krb_get_cred ();
20246 int
20247 main ()
20248 {
20249 return krb_get_cred ();
20250 ;
20251 return 0;
20252 }
20253 _ACEOF
20254 rm -f conftest.$ac_objext conftest$ac_exeext
20255 if { (ac_try="$ac_link"
20256 case "(($ac_try" in
20257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20258 *) ac_try_echo=$ac_try;;
20259 esac
20260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20261 (eval "$ac_link") 2>conftest.er1
20262 ac_status=$?
20263 grep -v '^ *+' conftest.er1 >conftest.err
20264 rm -f conftest.er1
20265 cat conftest.err >&5
20266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20267 (exit $ac_status); } && {
20268 test -z "$ac_c_werror_flag" ||
20269 test ! -s conftest.err
20270 } && test -s conftest$ac_exeext &&
20271 $as_test_x conftest$ac_exeext; then
20272 ac_cv_lib_krb4_krb_get_cred=yes
20273 else
20274 echo "$as_me: failed program was:" >&5
20275 sed 's/^/| /' conftest.$ac_ext >&5
20276
20277 ac_cv_lib_krb4_krb_get_cred=no
20278 fi
20279
20280 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20281 conftest$ac_exeext conftest.$ac_ext
20282 LIBS=$ac_check_lib_save_LIBS
20283 fi
20284 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20285 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20286 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20287 cat >>confdefs.h <<_ACEOF
20288 #define HAVE_LIBKRB4 1
20289 _ACEOF
20290
20291 LIBS="-lkrb4 $LIBS"
20292
20293 else
20294
20295 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20296 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20297 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20298 echo $ECHO_N "(cached) $ECHO_C" >&6
20299 else
20300 ac_check_lib_save_LIBS=$LIBS
20301 LIBS="-lkrb $LIBS"
20302 cat >conftest.$ac_ext <<_ACEOF
20303 /* confdefs.h. */
20304 _ACEOF
20305 cat confdefs.h >>conftest.$ac_ext
20306 cat >>conftest.$ac_ext <<_ACEOF
20307 /* end confdefs.h. */
20308
20309 /* Override any GCC internal prototype to avoid an error.
20310 Use char because int might match the return type of a GCC
20311 builtin and then its argument prototype would still apply. */
20312 #ifdef __cplusplus
20313 extern "C"
20314 #endif
20315 char krb_get_cred ();
20316 int
20317 main ()
20318 {
20319 return krb_get_cred ();
20320 ;
20321 return 0;
20322 }
20323 _ACEOF
20324 rm -f conftest.$ac_objext conftest$ac_exeext
20325 if { (ac_try="$ac_link"
20326 case "(($ac_try" in
20327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20328 *) ac_try_echo=$ac_try;;
20329 esac
20330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20331 (eval "$ac_link") 2>conftest.er1
20332 ac_status=$?
20333 grep -v '^ *+' conftest.er1 >conftest.err
20334 rm -f conftest.er1
20335 cat conftest.err >&5
20336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20337 (exit $ac_status); } && {
20338 test -z "$ac_c_werror_flag" ||
20339 test ! -s conftest.err
20340 } && test -s conftest$ac_exeext &&
20341 $as_test_x conftest$ac_exeext; then
20342 ac_cv_lib_krb_krb_get_cred=yes
20343 else
20344 echo "$as_me: failed program was:" >&5
20345 sed 's/^/| /' conftest.$ac_ext >&5
20346
20347 ac_cv_lib_krb_krb_get_cred=no
20348 fi
20349
20350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20351 conftest$ac_exeext conftest.$ac_ext
20352 LIBS=$ac_check_lib_save_LIBS
20353 fi
20354 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20355 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20356 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20357 cat >>confdefs.h <<_ACEOF
20358 #define HAVE_LIBKRB 1
20359 _ACEOF
20360
20361 LIBS="-lkrb $LIBS"
20362
20363 fi
20364
20365 fi
20366
20367 fi
20368
20369 if test "${with_kerberos5+set}" = set; then
20370
20371 for ac_header in krb5.h
20372 do
20373 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20374 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20375 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20376 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20377 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20378 echo $ECHO_N "(cached) $ECHO_C" >&6
20379 fi
20380 ac_res=`eval echo '${'$as_ac_Header'}'`
20381 { echo "$as_me:$LINENO: result: $ac_res" >&5
20382 echo "${ECHO_T}$ac_res" >&6; }
20383 else
20384 # Is the header compilable?
20385 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20386 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20387 cat >conftest.$ac_ext <<_ACEOF
20388 /* confdefs.h. */
20389 _ACEOF
20390 cat confdefs.h >>conftest.$ac_ext
20391 cat >>conftest.$ac_ext <<_ACEOF
20392 /* end confdefs.h. */
20393 $ac_includes_default
20394 #include <$ac_header>
20395 _ACEOF
20396 rm -f conftest.$ac_objext
20397 if { (ac_try="$ac_compile"
20398 case "(($ac_try" in
20399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20400 *) ac_try_echo=$ac_try;;
20401 esac
20402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20403 (eval "$ac_compile") 2>conftest.er1
20404 ac_status=$?
20405 grep -v '^ *+' conftest.er1 >conftest.err
20406 rm -f conftest.er1
20407 cat conftest.err >&5
20408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20409 (exit $ac_status); } && {
20410 test -z "$ac_c_werror_flag" ||
20411 test ! -s conftest.err
20412 } && test -s conftest.$ac_objext; then
20413 ac_header_compiler=yes
20414 else
20415 echo "$as_me: failed program was:" >&5
20416 sed 's/^/| /' conftest.$ac_ext >&5
20417
20418 ac_header_compiler=no
20419 fi
20420
20421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20422 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20423 echo "${ECHO_T}$ac_header_compiler" >&6; }
20424
20425 # Is the header present?
20426 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20427 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20428 cat >conftest.$ac_ext <<_ACEOF
20429 /* confdefs.h. */
20430 _ACEOF
20431 cat confdefs.h >>conftest.$ac_ext
20432 cat >>conftest.$ac_ext <<_ACEOF
20433 /* end confdefs.h. */
20434 #include <$ac_header>
20435 _ACEOF
20436 if { (ac_try="$ac_cpp conftest.$ac_ext"
20437 case "(($ac_try" in
20438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20439 *) ac_try_echo=$ac_try;;
20440 esac
20441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20442 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20443 ac_status=$?
20444 grep -v '^ *+' conftest.er1 >conftest.err
20445 rm -f conftest.er1
20446 cat conftest.err >&5
20447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20448 (exit $ac_status); } >/dev/null && {
20449 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20450 test ! -s conftest.err
20451 }; then
20452 ac_header_preproc=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457 ac_header_preproc=no
20458 fi
20459
20460 rm -f conftest.err conftest.$ac_ext
20461 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20462 echo "${ECHO_T}$ac_header_preproc" >&6; }
20463
20464 # So? What about this header?
20465 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20466 yes:no: )
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20468 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20470 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20471 ac_header_preproc=yes
20472 ;;
20473 no:yes:* )
20474 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20475 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20477 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20479 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20481 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20483 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20485 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20486
20487 ;;
20488 esac
20489 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20490 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20492 echo $ECHO_N "(cached) $ECHO_C" >&6
20493 else
20494 eval "$as_ac_Header=\$ac_header_preproc"
20495 fi
20496 ac_res=`eval echo '${'$as_ac_Header'}'`
20497 { echo "$as_me:$LINENO: result: $ac_res" >&5
20498 echo "${ECHO_T}$ac_res" >&6; }
20499
20500 fi
20501 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20502 cat >>confdefs.h <<_ACEOF
20503 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20504 _ACEOF
20505
20506 fi
20507
20508 done
20509
20510 else
20511
20512 for ac_header in des.h
20513 do
20514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20519 echo $ECHO_N "(cached) $ECHO_C" >&6
20520 fi
20521 ac_res=`eval echo '${'$as_ac_Header'}'`
20522 { echo "$as_me:$LINENO: result: $ac_res" >&5
20523 echo "${ECHO_T}$ac_res" >&6; }
20524 else
20525 # Is the header compilable?
20526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20528 cat >conftest.$ac_ext <<_ACEOF
20529 /* confdefs.h. */
20530 _ACEOF
20531 cat confdefs.h >>conftest.$ac_ext
20532 cat >>conftest.$ac_ext <<_ACEOF
20533 /* end confdefs.h. */
20534 $ac_includes_default
20535 #include <$ac_header>
20536 _ACEOF
20537 rm -f conftest.$ac_objext
20538 if { (ac_try="$ac_compile"
20539 case "(($ac_try" in
20540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20541 *) ac_try_echo=$ac_try;;
20542 esac
20543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20544 (eval "$ac_compile") 2>conftest.er1
20545 ac_status=$?
20546 grep -v '^ *+' conftest.er1 >conftest.err
20547 rm -f conftest.er1
20548 cat conftest.err >&5
20549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20550 (exit $ac_status); } && {
20551 test -z "$ac_c_werror_flag" ||
20552 test ! -s conftest.err
20553 } && test -s conftest.$ac_objext; then
20554 ac_header_compiler=yes
20555 else
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_header_compiler=no
20560 fi
20561
20562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20564 echo "${ECHO_T}$ac_header_compiler" >&6; }
20565
20566 # Is the header present?
20567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20569 cat >conftest.$ac_ext <<_ACEOF
20570 /* confdefs.h. */
20571 _ACEOF
20572 cat confdefs.h >>conftest.$ac_ext
20573 cat >>conftest.$ac_ext <<_ACEOF
20574 /* end confdefs.h. */
20575 #include <$ac_header>
20576 _ACEOF
20577 if { (ac_try="$ac_cpp conftest.$ac_ext"
20578 case "(($ac_try" in
20579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20580 *) ac_try_echo=$ac_try;;
20581 esac
20582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20584 ac_status=$?
20585 grep -v '^ *+' conftest.er1 >conftest.err
20586 rm -f conftest.er1
20587 cat conftest.err >&5
20588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20589 (exit $ac_status); } >/dev/null && {
20590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20591 test ! -s conftest.err
20592 }; then
20593 ac_header_preproc=yes
20594 else
20595 echo "$as_me: failed program was:" >&5
20596 sed 's/^/| /' conftest.$ac_ext >&5
20597
20598 ac_header_preproc=no
20599 fi
20600
20601 rm -f conftest.err conftest.$ac_ext
20602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20603 echo "${ECHO_T}$ac_header_preproc" >&6; }
20604
20605 # So? What about this header?
20606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20607 yes:no: )
20608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20612 ac_header_preproc=yes
20613 ;;
20614 no:yes:* )
20615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20627
20628 ;;
20629 esac
20630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20633 echo $ECHO_N "(cached) $ECHO_C" >&6
20634 else
20635 eval "$as_ac_Header=\$ac_header_preproc"
20636 fi
20637 ac_res=`eval echo '${'$as_ac_Header'}'`
20638 { echo "$as_me:$LINENO: result: $ac_res" >&5
20639 echo "${ECHO_T}$ac_res" >&6; }
20640
20641 fi
20642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20643 cat >>confdefs.h <<_ACEOF
20644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20645 _ACEOF
20646
20647 else
20648
20649 for ac_header in kerberosIV/des.h
20650 do
20651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20656 echo $ECHO_N "(cached) $ECHO_C" >&6
20657 fi
20658 ac_res=`eval echo '${'$as_ac_Header'}'`
20659 { echo "$as_me:$LINENO: result: $ac_res" >&5
20660 echo "${ECHO_T}$ac_res" >&6; }
20661 else
20662 # Is the header compilable?
20663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20665 cat >conftest.$ac_ext <<_ACEOF
20666 /* confdefs.h. */
20667 _ACEOF
20668 cat confdefs.h >>conftest.$ac_ext
20669 cat >>conftest.$ac_ext <<_ACEOF
20670 /* end confdefs.h. */
20671 $ac_includes_default
20672 #include <$ac_header>
20673 _ACEOF
20674 rm -f conftest.$ac_objext
20675 if { (ac_try="$ac_compile"
20676 case "(($ac_try" in
20677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20678 *) ac_try_echo=$ac_try;;
20679 esac
20680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20681 (eval "$ac_compile") 2>conftest.er1
20682 ac_status=$?
20683 grep -v '^ *+' conftest.er1 >conftest.err
20684 rm -f conftest.er1
20685 cat conftest.err >&5
20686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20687 (exit $ac_status); } && {
20688 test -z "$ac_c_werror_flag" ||
20689 test ! -s conftest.err
20690 } && test -s conftest.$ac_objext; then
20691 ac_header_compiler=yes
20692 else
20693 echo "$as_me: failed program was:" >&5
20694 sed 's/^/| /' conftest.$ac_ext >&5
20695
20696 ac_header_compiler=no
20697 fi
20698
20699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20701 echo "${ECHO_T}$ac_header_compiler" >&6; }
20702
20703 # Is the header present?
20704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20706 cat >conftest.$ac_ext <<_ACEOF
20707 /* confdefs.h. */
20708 _ACEOF
20709 cat confdefs.h >>conftest.$ac_ext
20710 cat >>conftest.$ac_ext <<_ACEOF
20711 /* end confdefs.h. */
20712 #include <$ac_header>
20713 _ACEOF
20714 if { (ac_try="$ac_cpp conftest.$ac_ext"
20715 case "(($ac_try" in
20716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20717 *) ac_try_echo=$ac_try;;
20718 esac
20719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20721 ac_status=$?
20722 grep -v '^ *+' conftest.er1 >conftest.err
20723 rm -f conftest.er1
20724 cat conftest.err >&5
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); } >/dev/null && {
20727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20728 test ! -s conftest.err
20729 }; then
20730 ac_header_preproc=yes
20731 else
20732 echo "$as_me: failed program was:" >&5
20733 sed 's/^/| /' conftest.$ac_ext >&5
20734
20735 ac_header_preproc=no
20736 fi
20737
20738 rm -f conftest.err conftest.$ac_ext
20739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20740 echo "${ECHO_T}$ac_header_preproc" >&6; }
20741
20742 # So? What about this header?
20743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20744 yes:no: )
20745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20749 ac_header_preproc=yes
20750 ;;
20751 no:yes:* )
20752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20764
20765 ;;
20766 esac
20767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20770 echo $ECHO_N "(cached) $ECHO_C" >&6
20771 else
20772 eval "$as_ac_Header=\$ac_header_preproc"
20773 fi
20774 ac_res=`eval echo '${'$as_ac_Header'}'`
20775 { echo "$as_me:$LINENO: result: $ac_res" >&5
20776 echo "${ECHO_T}$ac_res" >&6; }
20777
20778 fi
20779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20780 cat >>confdefs.h <<_ACEOF
20781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20782 _ACEOF
20783
20784 else
20785
20786 for ac_header in kerberos/des.h
20787 do
20788 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20789 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20790 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20791 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20793 echo $ECHO_N "(cached) $ECHO_C" >&6
20794 fi
20795 ac_res=`eval echo '${'$as_ac_Header'}'`
20796 { echo "$as_me:$LINENO: result: $ac_res" >&5
20797 echo "${ECHO_T}$ac_res" >&6; }
20798 else
20799 # Is the header compilable?
20800 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20801 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20802 cat >conftest.$ac_ext <<_ACEOF
20803 /* confdefs.h. */
20804 _ACEOF
20805 cat confdefs.h >>conftest.$ac_ext
20806 cat >>conftest.$ac_ext <<_ACEOF
20807 /* end confdefs.h. */
20808 $ac_includes_default
20809 #include <$ac_header>
20810 _ACEOF
20811 rm -f conftest.$ac_objext
20812 if { (ac_try="$ac_compile"
20813 case "(($ac_try" in
20814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20815 *) ac_try_echo=$ac_try;;
20816 esac
20817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20818 (eval "$ac_compile") 2>conftest.er1
20819 ac_status=$?
20820 grep -v '^ *+' conftest.er1 >conftest.err
20821 rm -f conftest.er1
20822 cat conftest.err >&5
20823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20824 (exit $ac_status); } && {
20825 test -z "$ac_c_werror_flag" ||
20826 test ! -s conftest.err
20827 } && test -s conftest.$ac_objext; then
20828 ac_header_compiler=yes
20829 else
20830 echo "$as_me: failed program was:" >&5
20831 sed 's/^/| /' conftest.$ac_ext >&5
20832
20833 ac_header_compiler=no
20834 fi
20835
20836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20837 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20838 echo "${ECHO_T}$ac_header_compiler" >&6; }
20839
20840 # Is the header present?
20841 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20842 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20843 cat >conftest.$ac_ext <<_ACEOF
20844 /* confdefs.h. */
20845 _ACEOF
20846 cat confdefs.h >>conftest.$ac_ext
20847 cat >>conftest.$ac_ext <<_ACEOF
20848 /* end confdefs.h. */
20849 #include <$ac_header>
20850 _ACEOF
20851 if { (ac_try="$ac_cpp conftest.$ac_ext"
20852 case "(($ac_try" in
20853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20854 *) ac_try_echo=$ac_try;;
20855 esac
20856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20857 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20858 ac_status=$?
20859 grep -v '^ *+' conftest.er1 >conftest.err
20860 rm -f conftest.er1
20861 cat conftest.err >&5
20862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20863 (exit $ac_status); } >/dev/null && {
20864 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20865 test ! -s conftest.err
20866 }; then
20867 ac_header_preproc=yes
20868 else
20869 echo "$as_me: failed program was:" >&5
20870 sed 's/^/| /' conftest.$ac_ext >&5
20871
20872 ac_header_preproc=no
20873 fi
20874
20875 rm -f conftest.err conftest.$ac_ext
20876 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20877 echo "${ECHO_T}$ac_header_preproc" >&6; }
20878
20879 # So? What about this header?
20880 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20881 yes:no: )
20882 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20883 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20885 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20886 ac_header_preproc=yes
20887 ;;
20888 no:yes:* )
20889 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20890 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20892 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20894 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20896 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20898 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20900 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20901
20902 ;;
20903 esac
20904 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20905 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20906 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20907 echo $ECHO_N "(cached) $ECHO_C" >&6
20908 else
20909 eval "$as_ac_Header=\$ac_header_preproc"
20910 fi
20911 ac_res=`eval echo '${'$as_ac_Header'}'`
20912 { echo "$as_me:$LINENO: result: $ac_res" >&5
20913 echo "${ECHO_T}$ac_res" >&6; }
20914
20915 fi
20916 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20917 cat >>confdefs.h <<_ACEOF
20918 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20919 _ACEOF
20920
20921 fi
20922
20923 done
20924
20925 fi
20926
20927 done
20928
20929 fi
20930
20931 done
20932
20933
20934 for ac_header in krb.h
20935 do
20936 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20937 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20938 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20939 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20940 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20941 echo $ECHO_N "(cached) $ECHO_C" >&6
20942 fi
20943 ac_res=`eval echo '${'$as_ac_Header'}'`
20944 { echo "$as_me:$LINENO: result: $ac_res" >&5
20945 echo "${ECHO_T}$ac_res" >&6; }
20946 else
20947 # Is the header compilable?
20948 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20949 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20950 cat >conftest.$ac_ext <<_ACEOF
20951 /* confdefs.h. */
20952 _ACEOF
20953 cat confdefs.h >>conftest.$ac_ext
20954 cat >>conftest.$ac_ext <<_ACEOF
20955 /* end confdefs.h. */
20956 $ac_includes_default
20957 #include <$ac_header>
20958 _ACEOF
20959 rm -f conftest.$ac_objext
20960 if { (ac_try="$ac_compile"
20961 case "(($ac_try" in
20962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20963 *) ac_try_echo=$ac_try;;
20964 esac
20965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20966 (eval "$ac_compile") 2>conftest.er1
20967 ac_status=$?
20968 grep -v '^ *+' conftest.er1 >conftest.err
20969 rm -f conftest.er1
20970 cat conftest.err >&5
20971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20972 (exit $ac_status); } && {
20973 test -z "$ac_c_werror_flag" ||
20974 test ! -s conftest.err
20975 } && test -s conftest.$ac_objext; then
20976 ac_header_compiler=yes
20977 else
20978 echo "$as_me: failed program was:" >&5
20979 sed 's/^/| /' conftest.$ac_ext >&5
20980
20981 ac_header_compiler=no
20982 fi
20983
20984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20985 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20986 echo "${ECHO_T}$ac_header_compiler" >&6; }
20987
20988 # Is the header present?
20989 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20990 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20991 cat >conftest.$ac_ext <<_ACEOF
20992 /* confdefs.h. */
20993 _ACEOF
20994 cat confdefs.h >>conftest.$ac_ext
20995 cat >>conftest.$ac_ext <<_ACEOF
20996 /* end confdefs.h. */
20997 #include <$ac_header>
20998 _ACEOF
20999 if { (ac_try="$ac_cpp conftest.$ac_ext"
21000 case "(($ac_try" in
21001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21002 *) ac_try_echo=$ac_try;;
21003 esac
21004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21005 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21006 ac_status=$?
21007 grep -v '^ *+' conftest.er1 >conftest.err
21008 rm -f conftest.er1
21009 cat conftest.err >&5
21010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21011 (exit $ac_status); } >/dev/null && {
21012 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21013 test ! -s conftest.err
21014 }; then
21015 ac_header_preproc=yes
21016 else
21017 echo "$as_me: failed program was:" >&5
21018 sed 's/^/| /' conftest.$ac_ext >&5
21019
21020 ac_header_preproc=no
21021 fi
21022
21023 rm -f conftest.err conftest.$ac_ext
21024 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21025 echo "${ECHO_T}$ac_header_preproc" >&6; }
21026
21027 # So? What about this header?
21028 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21029 yes:no: )
21030 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21031 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21033 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21034 ac_header_preproc=yes
21035 ;;
21036 no:yes:* )
21037 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21038 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21040 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21042 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21044 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21046 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21048 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21049
21050 ;;
21051 esac
21052 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21053 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21054 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21055 echo $ECHO_N "(cached) $ECHO_C" >&6
21056 else
21057 eval "$as_ac_Header=\$ac_header_preproc"
21058 fi
21059 ac_res=`eval echo '${'$as_ac_Header'}'`
21060 { echo "$as_me:$LINENO: result: $ac_res" >&5
21061 echo "${ECHO_T}$ac_res" >&6; }
21062
21063 fi
21064 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21065 cat >>confdefs.h <<_ACEOF
21066 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21067 _ACEOF
21068
21069 else
21070
21071 for ac_header in kerberosIV/krb.h
21072 do
21073 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21074 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21075 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21076 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21077 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21078 echo $ECHO_N "(cached) $ECHO_C" >&6
21079 fi
21080 ac_res=`eval echo '${'$as_ac_Header'}'`
21081 { echo "$as_me:$LINENO: result: $ac_res" >&5
21082 echo "${ECHO_T}$ac_res" >&6; }
21083 else
21084 # Is the header compilable?
21085 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21086 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21087 cat >conftest.$ac_ext <<_ACEOF
21088 /* confdefs.h. */
21089 _ACEOF
21090 cat confdefs.h >>conftest.$ac_ext
21091 cat >>conftest.$ac_ext <<_ACEOF
21092 /* end confdefs.h. */
21093 $ac_includes_default
21094 #include <$ac_header>
21095 _ACEOF
21096 rm -f conftest.$ac_objext
21097 if { (ac_try="$ac_compile"
21098 case "(($ac_try" in
21099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21100 *) ac_try_echo=$ac_try;;
21101 esac
21102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21103 (eval "$ac_compile") 2>conftest.er1
21104 ac_status=$?
21105 grep -v '^ *+' conftest.er1 >conftest.err
21106 rm -f conftest.er1
21107 cat conftest.err >&5
21108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21109 (exit $ac_status); } && {
21110 test -z "$ac_c_werror_flag" ||
21111 test ! -s conftest.err
21112 } && test -s conftest.$ac_objext; then
21113 ac_header_compiler=yes
21114 else
21115 echo "$as_me: failed program was:" >&5
21116 sed 's/^/| /' conftest.$ac_ext >&5
21117
21118 ac_header_compiler=no
21119 fi
21120
21121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21122 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21123 echo "${ECHO_T}$ac_header_compiler" >&6; }
21124
21125 # Is the header present?
21126 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21127 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21128 cat >conftest.$ac_ext <<_ACEOF
21129 /* confdefs.h. */
21130 _ACEOF
21131 cat confdefs.h >>conftest.$ac_ext
21132 cat >>conftest.$ac_ext <<_ACEOF
21133 /* end confdefs.h. */
21134 #include <$ac_header>
21135 _ACEOF
21136 if { (ac_try="$ac_cpp conftest.$ac_ext"
21137 case "(($ac_try" in
21138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21139 *) ac_try_echo=$ac_try;;
21140 esac
21141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21142 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21143 ac_status=$?
21144 grep -v '^ *+' conftest.er1 >conftest.err
21145 rm -f conftest.er1
21146 cat conftest.err >&5
21147 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21148 (exit $ac_status); } >/dev/null && {
21149 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21150 test ! -s conftest.err
21151 }; then
21152 ac_header_preproc=yes
21153 else
21154 echo "$as_me: failed program was:" >&5
21155 sed 's/^/| /' conftest.$ac_ext >&5
21156
21157 ac_header_preproc=no
21158 fi
21159
21160 rm -f conftest.err conftest.$ac_ext
21161 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21162 echo "${ECHO_T}$ac_header_preproc" >&6; }
21163
21164 # So? What about this header?
21165 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21166 yes:no: )
21167 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21168 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21170 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21171 ac_header_preproc=yes
21172 ;;
21173 no:yes:* )
21174 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21175 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21177 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21179 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21181 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21183 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21185 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21186
21187 ;;
21188 esac
21189 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21192 echo $ECHO_N "(cached) $ECHO_C" >&6
21193 else
21194 eval "$as_ac_Header=\$ac_header_preproc"
21195 fi
21196 ac_res=`eval echo '${'$as_ac_Header'}'`
21197 { echo "$as_me:$LINENO: result: $ac_res" >&5
21198 echo "${ECHO_T}$ac_res" >&6; }
21199
21200 fi
21201 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21202 cat >>confdefs.h <<_ACEOF
21203 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21204 _ACEOF
21205
21206 else
21207
21208 for ac_header in kerberos/krb.h
21209 do
21210 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21211 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21212 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21213 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21214 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21215 echo $ECHO_N "(cached) $ECHO_C" >&6
21216 fi
21217 ac_res=`eval echo '${'$as_ac_Header'}'`
21218 { echo "$as_me:$LINENO: result: $ac_res" >&5
21219 echo "${ECHO_T}$ac_res" >&6; }
21220 else
21221 # Is the header compilable?
21222 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21223 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21224 cat >conftest.$ac_ext <<_ACEOF
21225 /* confdefs.h. */
21226 _ACEOF
21227 cat confdefs.h >>conftest.$ac_ext
21228 cat >>conftest.$ac_ext <<_ACEOF
21229 /* end confdefs.h. */
21230 $ac_includes_default
21231 #include <$ac_header>
21232 _ACEOF
21233 rm -f conftest.$ac_objext
21234 if { (ac_try="$ac_compile"
21235 case "(($ac_try" in
21236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21237 *) ac_try_echo=$ac_try;;
21238 esac
21239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21240 (eval "$ac_compile") 2>conftest.er1
21241 ac_status=$?
21242 grep -v '^ *+' conftest.er1 >conftest.err
21243 rm -f conftest.er1
21244 cat conftest.err >&5
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); } && {
21247 test -z "$ac_c_werror_flag" ||
21248 test ! -s conftest.err
21249 } && test -s conftest.$ac_objext; then
21250 ac_header_compiler=yes
21251 else
21252 echo "$as_me: failed program was:" >&5
21253 sed 's/^/| /' conftest.$ac_ext >&5
21254
21255 ac_header_compiler=no
21256 fi
21257
21258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21259 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21260 echo "${ECHO_T}$ac_header_compiler" >&6; }
21261
21262 # Is the header present?
21263 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21264 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21265 cat >conftest.$ac_ext <<_ACEOF
21266 /* confdefs.h. */
21267 _ACEOF
21268 cat confdefs.h >>conftest.$ac_ext
21269 cat >>conftest.$ac_ext <<_ACEOF
21270 /* end confdefs.h. */
21271 #include <$ac_header>
21272 _ACEOF
21273 if { (ac_try="$ac_cpp conftest.$ac_ext"
21274 case "(($ac_try" in
21275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21276 *) ac_try_echo=$ac_try;;
21277 esac
21278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21279 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21280 ac_status=$?
21281 grep -v '^ *+' conftest.er1 >conftest.err
21282 rm -f conftest.er1
21283 cat conftest.err >&5
21284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21285 (exit $ac_status); } >/dev/null && {
21286 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21287 test ! -s conftest.err
21288 }; then
21289 ac_header_preproc=yes
21290 else
21291 echo "$as_me: failed program was:" >&5
21292 sed 's/^/| /' conftest.$ac_ext >&5
21293
21294 ac_header_preproc=no
21295 fi
21296
21297 rm -f conftest.err conftest.$ac_ext
21298 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21299 echo "${ECHO_T}$ac_header_preproc" >&6; }
21300
21301 # So? What about this header?
21302 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21303 yes:no: )
21304 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21305 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21307 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21308 ac_header_preproc=yes
21309 ;;
21310 no:yes:* )
21311 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21312 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21314 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21316 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21318 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21320 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21322 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21323
21324 ;;
21325 esac
21326 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21327 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21329 echo $ECHO_N "(cached) $ECHO_C" >&6
21330 else
21331 eval "$as_ac_Header=\$ac_header_preproc"
21332 fi
21333 ac_res=`eval echo '${'$as_ac_Header'}'`
21334 { echo "$as_me:$LINENO: result: $ac_res" >&5
21335 echo "${ECHO_T}$ac_res" >&6; }
21336
21337 fi
21338 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21339 cat >>confdefs.h <<_ACEOF
21340 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21341 _ACEOF
21342
21343 fi
21344
21345 done
21346
21347 fi
21348
21349 done
21350
21351 fi
21352
21353 done
21354
21355 fi
21356
21357 for ac_header in com_err.h
21358 do
21359 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21360 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21361 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21362 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21363 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21364 echo $ECHO_N "(cached) $ECHO_C" >&6
21365 fi
21366 ac_res=`eval echo '${'$as_ac_Header'}'`
21367 { echo "$as_me:$LINENO: result: $ac_res" >&5
21368 echo "${ECHO_T}$ac_res" >&6; }
21369 else
21370 # Is the header compilable?
21371 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21372 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21373 cat >conftest.$ac_ext <<_ACEOF
21374 /* confdefs.h. */
21375 _ACEOF
21376 cat confdefs.h >>conftest.$ac_ext
21377 cat >>conftest.$ac_ext <<_ACEOF
21378 /* end confdefs.h. */
21379 $ac_includes_default
21380 #include <$ac_header>
21381 _ACEOF
21382 rm -f conftest.$ac_objext
21383 if { (ac_try="$ac_compile"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_compile") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } && {
21396 test -z "$ac_c_werror_flag" ||
21397 test ! -s conftest.err
21398 } && test -s conftest.$ac_objext; then
21399 ac_header_compiler=yes
21400 else
21401 echo "$as_me: failed program was:" >&5
21402 sed 's/^/| /' conftest.$ac_ext >&5
21403
21404 ac_header_compiler=no
21405 fi
21406
21407 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21408 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21409 echo "${ECHO_T}$ac_header_compiler" >&6; }
21410
21411 # Is the header present?
21412 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21413 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21414 cat >conftest.$ac_ext <<_ACEOF
21415 /* confdefs.h. */
21416 _ACEOF
21417 cat confdefs.h >>conftest.$ac_ext
21418 cat >>conftest.$ac_ext <<_ACEOF
21419 /* end confdefs.h. */
21420 #include <$ac_header>
21421 _ACEOF
21422 if { (ac_try="$ac_cpp conftest.$ac_ext"
21423 case "(($ac_try" in
21424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21425 *) ac_try_echo=$ac_try;;
21426 esac
21427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21428 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21429 ac_status=$?
21430 grep -v '^ *+' conftest.er1 >conftest.err
21431 rm -f conftest.er1
21432 cat conftest.err >&5
21433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21434 (exit $ac_status); } >/dev/null && {
21435 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21436 test ! -s conftest.err
21437 }; then
21438 ac_header_preproc=yes
21439 else
21440 echo "$as_me: failed program was:" >&5
21441 sed 's/^/| /' conftest.$ac_ext >&5
21442
21443 ac_header_preproc=no
21444 fi
21445
21446 rm -f conftest.err conftest.$ac_ext
21447 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21448 echo "${ECHO_T}$ac_header_preproc" >&6; }
21449
21450 # So? What about this header?
21451 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21452 yes:no: )
21453 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21454 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21456 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21457 ac_header_preproc=yes
21458 ;;
21459 no:yes:* )
21460 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21461 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21463 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21465 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21467 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21469 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21471 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21472
21473 ;;
21474 esac
21475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21478 echo $ECHO_N "(cached) $ECHO_C" >&6
21479 else
21480 eval "$as_ac_Header=\$ac_header_preproc"
21481 fi
21482 ac_res=`eval echo '${'$as_ac_Header'}'`
21483 { echo "$as_me:$LINENO: result: $ac_res" >&5
21484 echo "${ECHO_T}$ac_res" >&6; }
21485
21486 fi
21487 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21488 cat >>confdefs.h <<_ACEOF
21489 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21490 _ACEOF
21491
21492 fi
21493
21494 done
21495
21496 fi
21497
21498 # Solaris requires -lintl if you want strerror (which calls dgettext)
21499 # to return localized messages.
21500
21501 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21502 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21503 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21504 echo $ECHO_N "(cached) $ECHO_C" >&6
21505 else
21506 ac_check_lib_save_LIBS=$LIBS
21507 LIBS="-lintl $LIBS"
21508 cat >conftest.$ac_ext <<_ACEOF
21509 /* confdefs.h. */
21510 _ACEOF
21511 cat confdefs.h >>conftest.$ac_ext
21512 cat >>conftest.$ac_ext <<_ACEOF
21513 /* end confdefs.h. */
21514
21515 /* Override any GCC internal prototype to avoid an error.
21516 Use char because int might match the return type of a GCC
21517 builtin and then its argument prototype would still apply. */
21518 #ifdef __cplusplus
21519 extern "C"
21520 #endif
21521 char dgettext ();
21522 int
21523 main ()
21524 {
21525 return dgettext ();
21526 ;
21527 return 0;
21528 }
21529 _ACEOF
21530 rm -f conftest.$ac_objext conftest$ac_exeext
21531 if { (ac_try="$ac_link"
21532 case "(($ac_try" in
21533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21534 *) ac_try_echo=$ac_try;;
21535 esac
21536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21537 (eval "$ac_link") 2>conftest.er1
21538 ac_status=$?
21539 grep -v '^ *+' conftest.er1 >conftest.err
21540 rm -f conftest.er1
21541 cat conftest.err >&5
21542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21543 (exit $ac_status); } && {
21544 test -z "$ac_c_werror_flag" ||
21545 test ! -s conftest.err
21546 } && test -s conftest$ac_exeext &&
21547 $as_test_x conftest$ac_exeext; then
21548 ac_cv_lib_intl_dgettext=yes
21549 else
21550 echo "$as_me: failed program was:" >&5
21551 sed 's/^/| /' conftest.$ac_ext >&5
21552
21553 ac_cv_lib_intl_dgettext=no
21554 fi
21555
21556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21557 conftest$ac_exeext conftest.$ac_ext
21558 LIBS=$ac_check_lib_save_LIBS
21559 fi
21560 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21561 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21562 if test $ac_cv_lib_intl_dgettext = yes; then
21563 cat >>confdefs.h <<_ACEOF
21564 #define HAVE_LIBINTL 1
21565 _ACEOF
21566
21567 LIBS="-lintl $LIBS"
21568
21569 fi
21570
21571
21572 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21573 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21574 if test "${emacs_cv_localtime_cache+set}" = set; then
21575 echo $ECHO_N "(cached) $ECHO_C" >&6
21576 else
21577 if test x$ac_cv_func_tzset = xyes; then
21578 if test "$cross_compiling" = yes; then
21579 # If we have tzset, assume the worst when cross-compiling.
21580 emacs_cv_localtime_cache=yes
21581 else
21582 cat >conftest.$ac_ext <<_ACEOF
21583 /* confdefs.h. */
21584 _ACEOF
21585 cat confdefs.h >>conftest.$ac_ext
21586 cat >>conftest.$ac_ext <<_ACEOF
21587 /* end confdefs.h. */
21588 #include <time.h>
21589 extern char **environ;
21590 unset_TZ ()
21591 {
21592 char **from, **to;
21593 for (to = from = environ; (*to = *from); from++)
21594 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21595 to++;
21596 }
21597 char TZ_GMT0[] = "TZ=GMT0";
21598 char TZ_PST8[] = "TZ=PST8";
21599 main()
21600 {
21601 time_t now = time ((time_t *) 0);
21602 int hour_GMT0, hour_unset;
21603 if (putenv (TZ_GMT0) != 0)
21604 exit (1);
21605 hour_GMT0 = localtime (&now)->tm_hour;
21606 unset_TZ ();
21607 hour_unset = localtime (&now)->tm_hour;
21608 if (putenv (TZ_PST8) != 0)
21609 exit (1);
21610 if (localtime (&now)->tm_hour == hour_GMT0)
21611 exit (1);
21612 unset_TZ ();
21613 if (localtime (&now)->tm_hour != hour_unset)
21614 exit (1);
21615 exit (0);
21616 }
21617 _ACEOF
21618 rm -f conftest$ac_exeext
21619 if { (ac_try="$ac_link"
21620 case "(($ac_try" in
21621 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21622 *) ac_try_echo=$ac_try;;
21623 esac
21624 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21625 (eval "$ac_link") 2>&5
21626 ac_status=$?
21627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21628 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21635 ac_status=$?
21636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21637 (exit $ac_status); }; }; then
21638 emacs_cv_localtime_cache=no
21639 else
21640 echo "$as_me: program exited with status $ac_status" >&5
21641 echo "$as_me: failed program was:" >&5
21642 sed 's/^/| /' conftest.$ac_ext >&5
21643
21644 ( exit $ac_status )
21645 emacs_cv_localtime_cache=yes
21646 fi
21647 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21648 fi
21649
21650
21651 else
21652 # If we lack tzset, report that localtime does not cache TZ,
21653 # since we can't invalidate the cache if we don't have tzset.
21654 emacs_cv_localtime_cache=no
21655 fi
21656 fi
21657 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21658 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21659 if test $emacs_cv_localtime_cache = yes; then
21660
21661 cat >>confdefs.h <<\_ACEOF
21662 #define LOCALTIME_CACHE 1
21663 _ACEOF
21664
21665 fi
21666
21667 if test "x$HAVE_TIMEVAL" = xyes; then
21668
21669 for ac_func in gettimeofday
21670 do
21671 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21672 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21673 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21674 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21675 echo $ECHO_N "(cached) $ECHO_C" >&6
21676 else
21677 cat >conftest.$ac_ext <<_ACEOF
21678 /* confdefs.h. */
21679 _ACEOF
21680 cat confdefs.h >>conftest.$ac_ext
21681 cat >>conftest.$ac_ext <<_ACEOF
21682 /* end confdefs.h. */
21683 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21684 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21685 #define $ac_func innocuous_$ac_func
21686
21687 /* System header to define __stub macros and hopefully few prototypes,
21688 which can conflict with char $ac_func (); below.
21689 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21690 <limits.h> exists even on freestanding compilers. */
21691
21692 #ifdef __STDC__
21693 # include <limits.h>
21694 #else
21695 # include <assert.h>
21696 #endif
21697
21698 #undef $ac_func
21699
21700 /* Override any GCC internal prototype to avoid an error.
21701 Use char because int might match the return type of a GCC
21702 builtin and then its argument prototype would still apply. */
21703 #ifdef __cplusplus
21704 extern "C"
21705 #endif
21706 char $ac_func ();
21707 /* The GNU C library defines this for functions which it implements
21708 to always fail with ENOSYS. Some functions are actually named
21709 something starting with __ and the normal name is an alias. */
21710 #if defined __stub_$ac_func || defined __stub___$ac_func
21711 choke me
21712 #endif
21713
21714 int
21715 main ()
21716 {
21717 return $ac_func ();
21718 ;
21719 return 0;
21720 }
21721 _ACEOF
21722 rm -f conftest.$ac_objext conftest$ac_exeext
21723 if { (ac_try="$ac_link"
21724 case "(($ac_try" in
21725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21726 *) ac_try_echo=$ac_try;;
21727 esac
21728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21729 (eval "$ac_link") 2>conftest.er1
21730 ac_status=$?
21731 grep -v '^ *+' conftest.er1 >conftest.err
21732 rm -f conftest.er1
21733 cat conftest.err >&5
21734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21735 (exit $ac_status); } && {
21736 test -z "$ac_c_werror_flag" ||
21737 test ! -s conftest.err
21738 } && test -s conftest$ac_exeext &&
21739 $as_test_x conftest$ac_exeext; then
21740 eval "$as_ac_var=yes"
21741 else
21742 echo "$as_me: failed program was:" >&5
21743 sed 's/^/| /' conftest.$ac_ext >&5
21744
21745 eval "$as_ac_var=no"
21746 fi
21747
21748 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21749 conftest$ac_exeext conftest.$ac_ext
21750 fi
21751 ac_res=`eval echo '${'$as_ac_var'}'`
21752 { echo "$as_me:$LINENO: result: $ac_res" >&5
21753 echo "${ECHO_T}$ac_res" >&6; }
21754 if test `eval echo '${'$as_ac_var'}'` = yes; then
21755 cat >>confdefs.h <<_ACEOF
21756 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21757 _ACEOF
21758
21759 fi
21760 done
21761
21762 if test $ac_cv_func_gettimeofday = yes; then
21763 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21764 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21765 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21766 echo $ECHO_N "(cached) $ECHO_C" >&6
21767 else
21768 cat >conftest.$ac_ext <<_ACEOF
21769 /* confdefs.h. */
21770 _ACEOF
21771 cat confdefs.h >>conftest.$ac_ext
21772 cat >>conftest.$ac_ext <<_ACEOF
21773 /* end confdefs.h. */
21774
21775 #ifdef TIME_WITH_SYS_TIME
21776 #include <sys/time.h>
21777 #include <time.h>
21778 #else
21779 #ifdef HAVE_SYS_TIME_H
21780 #include <sys/time.h>
21781 #else
21782 #include <time.h>
21783 #endif
21784 #endif
21785 int
21786 main ()
21787 {
21788 struct timeval time;
21789 gettimeofday (&time, 0);
21790 ;
21791 return 0;
21792 }
21793 _ACEOF
21794 rm -f conftest.$ac_objext
21795 if { (ac_try="$ac_compile"
21796 case "(($ac_try" in
21797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21798 *) ac_try_echo=$ac_try;;
21799 esac
21800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21801 (eval "$ac_compile") 2>conftest.er1
21802 ac_status=$?
21803 grep -v '^ *+' conftest.er1 >conftest.err
21804 rm -f conftest.er1
21805 cat conftest.err >&5
21806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21807 (exit $ac_status); } && {
21808 test -z "$ac_c_werror_flag" ||
21809 test ! -s conftest.err
21810 } && test -s conftest.$ac_objext; then
21811 emacs_cv_gettimeofday_two_arguments=yes
21812 else
21813 echo "$as_me: failed program was:" >&5
21814 sed 's/^/| /' conftest.$ac_ext >&5
21815
21816 emacs_cv_gettimeofday_two_arguments=no
21817 fi
21818
21819 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21820 fi
21821 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21822 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21823 if test $emacs_cv_gettimeofday_two_arguments = no; then
21824
21825 cat >>confdefs.h <<\_ACEOF
21826 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21827 _ACEOF
21828
21829 fi
21830 fi
21831 fi
21832
21833 ok_so_far=yes
21834 { echo "$as_me:$LINENO: checking for socket" >&5
21835 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21836 if test "${ac_cv_func_socket+set}" = set; then
21837 echo $ECHO_N "(cached) $ECHO_C" >&6
21838 else
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21846 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21847 #define socket innocuous_socket
21848
21849 /* System header to define __stub macros and hopefully few prototypes,
21850 which can conflict with char socket (); below.
21851 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21852 <limits.h> exists even on freestanding compilers. */
21853
21854 #ifdef __STDC__
21855 # include <limits.h>
21856 #else
21857 # include <assert.h>
21858 #endif
21859
21860 #undef socket
21861
21862 /* Override any GCC internal prototype to avoid an error.
21863 Use char because int might match the return type of a GCC
21864 builtin and then its argument prototype would still apply. */
21865 #ifdef __cplusplus
21866 extern "C"
21867 #endif
21868 char socket ();
21869 /* The GNU C library defines this for functions which it implements
21870 to always fail with ENOSYS. Some functions are actually named
21871 something starting with __ and the normal name is an alias. */
21872 #if defined __stub_socket || defined __stub___socket
21873 choke me
21874 #endif
21875
21876 int
21877 main ()
21878 {
21879 return socket ();
21880 ;
21881 return 0;
21882 }
21883 _ACEOF
21884 rm -f conftest.$ac_objext conftest$ac_exeext
21885 if { (ac_try="$ac_link"
21886 case "(($ac_try" in
21887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21888 *) ac_try_echo=$ac_try;;
21889 esac
21890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21891 (eval "$ac_link") 2>conftest.er1
21892 ac_status=$?
21893 grep -v '^ *+' conftest.er1 >conftest.err
21894 rm -f conftest.er1
21895 cat conftest.err >&5
21896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21897 (exit $ac_status); } && {
21898 test -z "$ac_c_werror_flag" ||
21899 test ! -s conftest.err
21900 } && test -s conftest$ac_exeext &&
21901 $as_test_x conftest$ac_exeext; then
21902 ac_cv_func_socket=yes
21903 else
21904 echo "$as_me: failed program was:" >&5
21905 sed 's/^/| /' conftest.$ac_ext >&5
21906
21907 ac_cv_func_socket=no
21908 fi
21909
21910 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21911 conftest$ac_exeext conftest.$ac_ext
21912 fi
21913 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21914 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21915 if test $ac_cv_func_socket = yes; then
21916 :
21917 else
21918 ok_so_far=no
21919 fi
21920
21921 if test $ok_so_far = yes; then
21922 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21923 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21924 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21925 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21926 echo $ECHO_N "(cached) $ECHO_C" >&6
21927 fi
21928 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21929 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21930 else
21931 # Is the header compilable?
21932 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21933 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21934 cat >conftest.$ac_ext <<_ACEOF
21935 /* confdefs.h. */
21936 _ACEOF
21937 cat confdefs.h >>conftest.$ac_ext
21938 cat >>conftest.$ac_ext <<_ACEOF
21939 /* end confdefs.h. */
21940 $ac_includes_default
21941 #include <netinet/in.h>
21942 _ACEOF
21943 rm -f conftest.$ac_objext
21944 if { (ac_try="$ac_compile"
21945 case "(($ac_try" in
21946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21947 *) ac_try_echo=$ac_try;;
21948 esac
21949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21950 (eval "$ac_compile") 2>conftest.er1
21951 ac_status=$?
21952 grep -v '^ *+' conftest.er1 >conftest.err
21953 rm -f conftest.er1
21954 cat conftest.err >&5
21955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21956 (exit $ac_status); } && {
21957 test -z "$ac_c_werror_flag" ||
21958 test ! -s conftest.err
21959 } && test -s conftest.$ac_objext; then
21960 ac_header_compiler=yes
21961 else
21962 echo "$as_me: failed program was:" >&5
21963 sed 's/^/| /' conftest.$ac_ext >&5
21964
21965 ac_header_compiler=no
21966 fi
21967
21968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21969 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21970 echo "${ECHO_T}$ac_header_compiler" >&6; }
21971
21972 # Is the header present?
21973 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21974 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21975 cat >conftest.$ac_ext <<_ACEOF
21976 /* confdefs.h. */
21977 _ACEOF
21978 cat confdefs.h >>conftest.$ac_ext
21979 cat >>conftest.$ac_ext <<_ACEOF
21980 /* end confdefs.h. */
21981 #include <netinet/in.h>
21982 _ACEOF
21983 if { (ac_try="$ac_cpp conftest.$ac_ext"
21984 case "(($ac_try" in
21985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21986 *) ac_try_echo=$ac_try;;
21987 esac
21988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21990 ac_status=$?
21991 grep -v '^ *+' conftest.er1 >conftest.err
21992 rm -f conftest.er1
21993 cat conftest.err >&5
21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21995 (exit $ac_status); } >/dev/null && {
21996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21997 test ! -s conftest.err
21998 }; then
21999 ac_header_preproc=yes
22000 else
22001 echo "$as_me: failed program was:" >&5
22002 sed 's/^/| /' conftest.$ac_ext >&5
22003
22004 ac_header_preproc=no
22005 fi
22006
22007 rm -f conftest.err conftest.$ac_ext
22008 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22009 echo "${ECHO_T}$ac_header_preproc" >&6; }
22010
22011 # So? What about this header?
22012 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22013 yes:no: )
22014 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22015 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22016 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22017 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22018 ac_header_preproc=yes
22019 ;;
22020 no:yes:* )
22021 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22022 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22023 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22024 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22026 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22028 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22030 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22032 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22033
22034 ;;
22035 esac
22036 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22037 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22038 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22039 echo $ECHO_N "(cached) $ECHO_C" >&6
22040 else
22041 ac_cv_header_netinet_in_h=$ac_header_preproc
22042 fi
22043 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22044 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22045
22046 fi
22047 if test $ac_cv_header_netinet_in_h = yes; then
22048 :
22049 else
22050 ok_so_far=no
22051 fi
22052
22053
22054 fi
22055 if test $ok_so_far = yes; then
22056 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22057 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22058 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22059 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22060 echo $ECHO_N "(cached) $ECHO_C" >&6
22061 fi
22062 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22063 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22064 else
22065 # Is the header compilable?
22066 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22067 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22068 cat >conftest.$ac_ext <<_ACEOF
22069 /* confdefs.h. */
22070 _ACEOF
22071 cat confdefs.h >>conftest.$ac_ext
22072 cat >>conftest.$ac_ext <<_ACEOF
22073 /* end confdefs.h. */
22074 $ac_includes_default
22075 #include <arpa/inet.h>
22076 _ACEOF
22077 rm -f conftest.$ac_objext
22078 if { (ac_try="$ac_compile"
22079 case "(($ac_try" in
22080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22081 *) ac_try_echo=$ac_try;;
22082 esac
22083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22084 (eval "$ac_compile") 2>conftest.er1
22085 ac_status=$?
22086 grep -v '^ *+' conftest.er1 >conftest.err
22087 rm -f conftest.er1
22088 cat conftest.err >&5
22089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22090 (exit $ac_status); } && {
22091 test -z "$ac_c_werror_flag" ||
22092 test ! -s conftest.err
22093 } && test -s conftest.$ac_objext; then
22094 ac_header_compiler=yes
22095 else
22096 echo "$as_me: failed program was:" >&5
22097 sed 's/^/| /' conftest.$ac_ext >&5
22098
22099 ac_header_compiler=no
22100 fi
22101
22102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22103 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22104 echo "${ECHO_T}$ac_header_compiler" >&6; }
22105
22106 # Is the header present?
22107 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22108 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22109 cat >conftest.$ac_ext <<_ACEOF
22110 /* confdefs.h. */
22111 _ACEOF
22112 cat confdefs.h >>conftest.$ac_ext
22113 cat >>conftest.$ac_ext <<_ACEOF
22114 /* end confdefs.h. */
22115 #include <arpa/inet.h>
22116 _ACEOF
22117 if { (ac_try="$ac_cpp conftest.$ac_ext"
22118 case "(($ac_try" in
22119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22120 *) ac_try_echo=$ac_try;;
22121 esac
22122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22123 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22124 ac_status=$?
22125 grep -v '^ *+' conftest.er1 >conftest.err
22126 rm -f conftest.er1
22127 cat conftest.err >&5
22128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22129 (exit $ac_status); } >/dev/null && {
22130 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22131 test ! -s conftest.err
22132 }; then
22133 ac_header_preproc=yes
22134 else
22135 echo "$as_me: failed program was:" >&5
22136 sed 's/^/| /' conftest.$ac_ext >&5
22137
22138 ac_header_preproc=no
22139 fi
22140
22141 rm -f conftest.err conftest.$ac_ext
22142 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22143 echo "${ECHO_T}$ac_header_preproc" >&6; }
22144
22145 # So? What about this header?
22146 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22147 yes:no: )
22148 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22149 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22150 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22151 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22152 ac_header_preproc=yes
22153 ;;
22154 no:yes:* )
22155 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22156 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22157 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22158 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22160 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22162 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22164 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22166 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22167
22168 ;;
22169 esac
22170 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22171 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22172 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22173 echo $ECHO_N "(cached) $ECHO_C" >&6
22174 else
22175 ac_cv_header_arpa_inet_h=$ac_header_preproc
22176 fi
22177 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22178 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22179
22180 fi
22181 if test $ac_cv_header_arpa_inet_h = yes; then
22182 :
22183 else
22184 ok_so_far=no
22185 fi
22186
22187
22188 fi
22189 if test $ok_so_far = yes; then
22190
22191 cat >>confdefs.h <<\_ACEOF
22192 #define HAVE_INET_SOCKETS 1
22193 _ACEOF
22194
22195 fi
22196
22197
22198 for ac_header in sys/ioctl.h
22199 do
22200 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22201 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22205 echo $ECHO_N "(cached) $ECHO_C" >&6
22206 fi
22207 ac_res=`eval echo '${'$as_ac_Header'}'`
22208 { echo "$as_me:$LINENO: result: $ac_res" >&5
22209 echo "${ECHO_T}$ac_res" >&6; }
22210 else
22211 # Is the header compilable?
22212 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22213 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22214 cat >conftest.$ac_ext <<_ACEOF
22215 /* confdefs.h. */
22216 _ACEOF
22217 cat confdefs.h >>conftest.$ac_ext
22218 cat >>conftest.$ac_ext <<_ACEOF
22219 /* end confdefs.h. */
22220 $ac_includes_default
22221 #include <$ac_header>
22222 _ACEOF
22223 rm -f conftest.$ac_objext
22224 if { (ac_try="$ac_compile"
22225 case "(($ac_try" in
22226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22227 *) ac_try_echo=$ac_try;;
22228 esac
22229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22230 (eval "$ac_compile") 2>conftest.er1
22231 ac_status=$?
22232 grep -v '^ *+' conftest.er1 >conftest.err
22233 rm -f conftest.er1
22234 cat conftest.err >&5
22235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22236 (exit $ac_status); } && {
22237 test -z "$ac_c_werror_flag" ||
22238 test ! -s conftest.err
22239 } && test -s conftest.$ac_objext; then
22240 ac_header_compiler=yes
22241 else
22242 echo "$as_me: failed program was:" >&5
22243 sed 's/^/| /' conftest.$ac_ext >&5
22244
22245 ac_header_compiler=no
22246 fi
22247
22248 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22249 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22250 echo "${ECHO_T}$ac_header_compiler" >&6; }
22251
22252 # Is the header present?
22253 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22254 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22255 cat >conftest.$ac_ext <<_ACEOF
22256 /* confdefs.h. */
22257 _ACEOF
22258 cat confdefs.h >>conftest.$ac_ext
22259 cat >>conftest.$ac_ext <<_ACEOF
22260 /* end confdefs.h. */
22261 #include <$ac_header>
22262 _ACEOF
22263 if { (ac_try="$ac_cpp conftest.$ac_ext"
22264 case "(($ac_try" in
22265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22266 *) ac_try_echo=$ac_try;;
22267 esac
22268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22269 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22270 ac_status=$?
22271 grep -v '^ *+' conftest.er1 >conftest.err
22272 rm -f conftest.er1
22273 cat conftest.err >&5
22274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22275 (exit $ac_status); } >/dev/null && {
22276 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22277 test ! -s conftest.err
22278 }; then
22279 ac_header_preproc=yes
22280 else
22281 echo "$as_me: failed program was:" >&5
22282 sed 's/^/| /' conftest.$ac_ext >&5
22283
22284 ac_header_preproc=no
22285 fi
22286
22287 rm -f conftest.err conftest.$ac_ext
22288 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22289 echo "${ECHO_T}$ac_header_preproc" >&6; }
22290
22291 # So? What about this header?
22292 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22293 yes:no: )
22294 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22295 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22296 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22297 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22298 ac_header_preproc=yes
22299 ;;
22300 no:yes:* )
22301 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22302 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22304 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22306 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22308 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22309 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22310 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22312 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22313
22314 ;;
22315 esac
22316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321 eval "$as_ac_Header=\$ac_header_preproc"
22322 fi
22323 ac_res=`eval echo '${'$as_ac_Header'}'`
22324 { echo "$as_me:$LINENO: result: $ac_res" >&5
22325 echo "${ECHO_T}$ac_res" >&6; }
22326
22327 fi
22328 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22329 cat >>confdefs.h <<_ACEOF
22330 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22331 _ACEOF
22332
22333 fi
22334
22335 done
22336
22337
22338 if test -f /usr/lpp/X11/bin/smt.exp; then
22339
22340 cat >>confdefs.h <<\_ACEOF
22341 #define HAVE_AIX_SMT_EXP 1
22342 _ACEOF
22343
22344 fi
22345
22346 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22347 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22348 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22349 { echo "$as_me:$LINENO: result: yes" >&5
22350 echo "${ECHO_T}yes" >&6; }
22351
22352 cat >>confdefs.h <<\_ACEOF
22353 #define HAVE_DEV_PTMX 1
22354 _ACEOF
22355
22356 else
22357 { echo "$as_me:$LINENO: result: no" >&5
22358 echo "${ECHO_T}no" >&6; }
22359 fi
22360
22361 { echo "$as_me:$LINENO: checking for pid_t" >&5
22362 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22363 if test "${ac_cv_type_pid_t+set}" = set; then
22364 echo $ECHO_N "(cached) $ECHO_C" >&6
22365 else
22366 cat >conftest.$ac_ext <<_ACEOF
22367 /* confdefs.h. */
22368 _ACEOF
22369 cat confdefs.h >>conftest.$ac_ext
22370 cat >>conftest.$ac_ext <<_ACEOF
22371 /* end confdefs.h. */
22372 $ac_includes_default
22373 typedef pid_t ac__type_new_;
22374 int
22375 main ()
22376 {
22377 if ((ac__type_new_ *) 0)
22378 return 0;
22379 if (sizeof (ac__type_new_))
22380 return 0;
22381 ;
22382 return 0;
22383 }
22384 _ACEOF
22385 rm -f conftest.$ac_objext
22386 if { (ac_try="$ac_compile"
22387 case "(($ac_try" in
22388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22389 *) ac_try_echo=$ac_try;;
22390 esac
22391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22392 (eval "$ac_compile") 2>conftest.er1
22393 ac_status=$?
22394 grep -v '^ *+' conftest.er1 >conftest.err
22395 rm -f conftest.er1
22396 cat conftest.err >&5
22397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22398 (exit $ac_status); } && {
22399 test -z "$ac_c_werror_flag" ||
22400 test ! -s conftest.err
22401 } && test -s conftest.$ac_objext; then
22402 ac_cv_type_pid_t=yes
22403 else
22404 echo "$as_me: failed program was:" >&5
22405 sed 's/^/| /' conftest.$ac_ext >&5
22406
22407 ac_cv_type_pid_t=no
22408 fi
22409
22410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22411 fi
22412 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22413 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22414 if test $ac_cv_type_pid_t = yes; then
22415 :
22416 else
22417
22418 cat >>confdefs.h <<_ACEOF
22419 #define pid_t int
22420 _ACEOF
22421
22422 fi
22423
22424
22425 for ac_header in vfork.h
22426 do
22427 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22428 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22429 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22430 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22431 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22432 echo $ECHO_N "(cached) $ECHO_C" >&6
22433 fi
22434 ac_res=`eval echo '${'$as_ac_Header'}'`
22435 { echo "$as_me:$LINENO: result: $ac_res" >&5
22436 echo "${ECHO_T}$ac_res" >&6; }
22437 else
22438 # Is the header compilable?
22439 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22440 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 $ac_includes_default
22448 #include <$ac_header>
22449 _ACEOF
22450 rm -f conftest.$ac_objext
22451 if { (ac_try="$ac_compile"
22452 case "(($ac_try" in
22453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22454 *) ac_try_echo=$ac_try;;
22455 esac
22456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22457 (eval "$ac_compile") 2>conftest.er1
22458 ac_status=$?
22459 grep -v '^ *+' conftest.er1 >conftest.err
22460 rm -f conftest.er1
22461 cat conftest.err >&5
22462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22463 (exit $ac_status); } && {
22464 test -z "$ac_c_werror_flag" ||
22465 test ! -s conftest.err
22466 } && test -s conftest.$ac_objext; then
22467 ac_header_compiler=yes
22468 else
22469 echo "$as_me: failed program was:" >&5
22470 sed 's/^/| /' conftest.$ac_ext >&5
22471
22472 ac_header_compiler=no
22473 fi
22474
22475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22476 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22477 echo "${ECHO_T}$ac_header_compiler" >&6; }
22478
22479 # Is the header present?
22480 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22481 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22482 cat >conftest.$ac_ext <<_ACEOF
22483 /* confdefs.h. */
22484 _ACEOF
22485 cat confdefs.h >>conftest.$ac_ext
22486 cat >>conftest.$ac_ext <<_ACEOF
22487 /* end confdefs.h. */
22488 #include <$ac_header>
22489 _ACEOF
22490 if { (ac_try="$ac_cpp conftest.$ac_ext"
22491 case "(($ac_try" in
22492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22493 *) ac_try_echo=$ac_try;;
22494 esac
22495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22496 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22497 ac_status=$?
22498 grep -v '^ *+' conftest.er1 >conftest.err
22499 rm -f conftest.er1
22500 cat conftest.err >&5
22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22502 (exit $ac_status); } >/dev/null && {
22503 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22504 test ! -s conftest.err
22505 }; then
22506 ac_header_preproc=yes
22507 else
22508 echo "$as_me: failed program was:" >&5
22509 sed 's/^/| /' conftest.$ac_ext >&5
22510
22511 ac_header_preproc=no
22512 fi
22513
22514 rm -f conftest.err conftest.$ac_ext
22515 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22516 echo "${ECHO_T}$ac_header_preproc" >&6; }
22517
22518 # So? What about this header?
22519 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22520 yes:no: )
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22522 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22524 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22525 ac_header_preproc=yes
22526 ;;
22527 no:yes:* )
22528 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22529 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22530 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22531 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22533 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22535 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22537 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22539 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22540
22541 ;;
22542 esac
22543 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22544 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22545 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22546 echo $ECHO_N "(cached) $ECHO_C" >&6
22547 else
22548 eval "$as_ac_Header=\$ac_header_preproc"
22549 fi
22550 ac_res=`eval echo '${'$as_ac_Header'}'`
22551 { echo "$as_me:$LINENO: result: $ac_res" >&5
22552 echo "${ECHO_T}$ac_res" >&6; }
22553
22554 fi
22555 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22556 cat >>confdefs.h <<_ACEOF
22557 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22558 _ACEOF
22559
22560 fi
22561
22562 done
22563
22564
22565
22566 for ac_func in fork vfork
22567 do
22568 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22569 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22570 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22571 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22572 echo $ECHO_N "(cached) $ECHO_C" >&6
22573 else
22574 cat >conftest.$ac_ext <<_ACEOF
22575 /* confdefs.h. */
22576 _ACEOF
22577 cat confdefs.h >>conftest.$ac_ext
22578 cat >>conftest.$ac_ext <<_ACEOF
22579 /* end confdefs.h. */
22580 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22581 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22582 #define $ac_func innocuous_$ac_func
22583
22584 /* System header to define __stub macros and hopefully few prototypes,
22585 which can conflict with char $ac_func (); below.
22586 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22587 <limits.h> exists even on freestanding compilers. */
22588
22589 #ifdef __STDC__
22590 # include <limits.h>
22591 #else
22592 # include <assert.h>
22593 #endif
22594
22595 #undef $ac_func
22596
22597 /* Override any GCC internal prototype to avoid an error.
22598 Use char because int might match the return type of a GCC
22599 builtin and then its argument prototype would still apply. */
22600 #ifdef __cplusplus
22601 extern "C"
22602 #endif
22603 char $ac_func ();
22604 /* The GNU C library defines this for functions which it implements
22605 to always fail with ENOSYS. Some functions are actually named
22606 something starting with __ and the normal name is an alias. */
22607 #if defined __stub_$ac_func || defined __stub___$ac_func
22608 choke me
22609 #endif
22610
22611 int
22612 main ()
22613 {
22614 return $ac_func ();
22615 ;
22616 return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext conftest$ac_exeext
22620 if { (ac_try="$ac_link"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_link") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest$ac_exeext &&
22636 $as_test_x conftest$ac_exeext; then
22637 eval "$as_ac_var=yes"
22638 else
22639 echo "$as_me: failed program was:" >&5
22640 sed 's/^/| /' conftest.$ac_ext >&5
22641
22642 eval "$as_ac_var=no"
22643 fi
22644
22645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22646 conftest$ac_exeext conftest.$ac_ext
22647 fi
22648 ac_res=`eval echo '${'$as_ac_var'}'`
22649 { echo "$as_me:$LINENO: result: $ac_res" >&5
22650 echo "${ECHO_T}$ac_res" >&6; }
22651 if test `eval echo '${'$as_ac_var'}'` = yes; then
22652 cat >>confdefs.h <<_ACEOF
22653 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22654 _ACEOF
22655
22656 fi
22657 done
22658
22659 if test "x$ac_cv_func_fork" = xyes; then
22660 { echo "$as_me:$LINENO: checking for working fork" >&5
22661 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22662 if test "${ac_cv_func_fork_works+set}" = set; then
22663 echo $ECHO_N "(cached) $ECHO_C" >&6
22664 else
22665 if test "$cross_compiling" = yes; then
22666 ac_cv_func_fork_works=cross
22667 else
22668 cat >conftest.$ac_ext <<_ACEOF
22669 /* confdefs.h. */
22670 _ACEOF
22671 cat confdefs.h >>conftest.$ac_ext
22672 cat >>conftest.$ac_ext <<_ACEOF
22673 /* end confdefs.h. */
22674 $ac_includes_default
22675 int
22676 main ()
22677 {
22678
22679 /* By Ruediger Kuhlmann. */
22680 return fork () < 0;
22681
22682 ;
22683 return 0;
22684 }
22685 _ACEOF
22686 rm -f conftest$ac_exeext
22687 if { (ac_try="$ac_link"
22688 case "(($ac_try" in
22689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22690 *) ac_try_echo=$ac_try;;
22691 esac
22692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22693 (eval "$ac_link") 2>&5
22694 ac_status=$?
22695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22696 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22697 { (case "(($ac_try" in
22698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22699 *) ac_try_echo=$ac_try;;
22700 esac
22701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22702 (eval "$ac_try") 2>&5
22703 ac_status=$?
22704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22705 (exit $ac_status); }; }; then
22706 ac_cv_func_fork_works=yes
22707 else
22708 echo "$as_me: program exited with status $ac_status" >&5
22709 echo "$as_me: failed program was:" >&5
22710 sed 's/^/| /' conftest.$ac_ext >&5
22711
22712 ( exit $ac_status )
22713 ac_cv_func_fork_works=no
22714 fi
22715 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22716 fi
22717
22718
22719 fi
22720 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22721 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22722
22723 else
22724 ac_cv_func_fork_works=$ac_cv_func_fork
22725 fi
22726 if test "x$ac_cv_func_fork_works" = xcross; then
22727 case $host in
22728 *-*-amigaos* | *-*-msdosdjgpp*)
22729 # Override, as these systems have only a dummy fork() stub
22730 ac_cv_func_fork_works=no
22731 ;;
22732 *)
22733 ac_cv_func_fork_works=yes
22734 ;;
22735 esac
22736 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22737 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22738 fi
22739 ac_cv_func_vfork_works=$ac_cv_func_vfork
22740 if test "x$ac_cv_func_vfork" = xyes; then
22741 { echo "$as_me:$LINENO: checking for working vfork" >&5
22742 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22743 if test "${ac_cv_func_vfork_works+set}" = set; then
22744 echo $ECHO_N "(cached) $ECHO_C" >&6
22745 else
22746 if test "$cross_compiling" = yes; then
22747 ac_cv_func_vfork_works=cross
22748 else
22749 cat >conftest.$ac_ext <<_ACEOF
22750 /* confdefs.h. */
22751 _ACEOF
22752 cat confdefs.h >>conftest.$ac_ext
22753 cat >>conftest.$ac_ext <<_ACEOF
22754 /* end confdefs.h. */
22755 /* Thanks to Paul Eggert for this test. */
22756 $ac_includes_default
22757 #include <sys/wait.h>
22758 #ifdef HAVE_VFORK_H
22759 # include <vfork.h>
22760 #endif
22761 /* On some sparc systems, changes by the child to local and incoming
22762 argument registers are propagated back to the parent. The compiler
22763 is told about this with #include <vfork.h>, but some compilers
22764 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22765 static variable whose address is put into a register that is
22766 clobbered by the vfork. */
22767 static void
22768 #ifdef __cplusplus
22769 sparc_address_test (int arg)
22770 # else
22771 sparc_address_test (arg) int arg;
22772 #endif
22773 {
22774 static pid_t child;
22775 if (!child) {
22776 child = vfork ();
22777 if (child < 0) {
22778 perror ("vfork");
22779 _exit(2);
22780 }
22781 if (!child) {
22782 arg = getpid();
22783 write(-1, "", 0);
22784 _exit (arg);
22785 }
22786 }
22787 }
22788
22789 int
22790 main ()
22791 {
22792 pid_t parent = getpid ();
22793 pid_t child;
22794
22795 sparc_address_test (0);
22796
22797 child = vfork ();
22798
22799 if (child == 0) {
22800 /* Here is another test for sparc vfork register problems. This
22801 test uses lots of local variables, at least as many local
22802 variables as main has allocated so far including compiler
22803 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22804 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22805 reuse the register of parent for one of the local variables,
22806 since it will think that parent can't possibly be used any more
22807 in this routine. Assigning to the local variable will thus
22808 munge parent in the parent process. */
22809 pid_t
22810 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22811 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22812 /* Convince the compiler that p..p7 are live; otherwise, it might
22813 use the same hardware register for all 8 local variables. */
22814 if (p != p1 || p != p2 || p != p3 || p != p4
22815 || p != p5 || p != p6 || p != p7)
22816 _exit(1);
22817
22818 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22819 from child file descriptors. If the child closes a descriptor
22820 before it execs or exits, this munges the parent's descriptor
22821 as well. Test for this by closing stdout in the child. */
22822 _exit(close(fileno(stdout)) != 0);
22823 } else {
22824 int status;
22825 struct stat st;
22826
22827 while (wait(&status) != child)
22828 ;
22829 return (
22830 /* Was there some problem with vforking? */
22831 child < 0
22832
22833 /* Did the child fail? (This shouldn't happen.) */
22834 || status
22835
22836 /* Did the vfork/compiler bug occur? */
22837 || parent != getpid()
22838
22839 /* Did the file descriptor bug occur? */
22840 || fstat(fileno(stdout), &st) != 0
22841 );
22842 }
22843 }
22844 _ACEOF
22845 rm -f conftest$ac_exeext
22846 if { (ac_try="$ac_link"
22847 case "(($ac_try" in
22848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22849 *) ac_try_echo=$ac_try;;
22850 esac
22851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22852 (eval "$ac_link") 2>&5
22853 ac_status=$?
22854 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22855 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22856 { (case "(($ac_try" in
22857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22858 *) ac_try_echo=$ac_try;;
22859 esac
22860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22861 (eval "$ac_try") 2>&5
22862 ac_status=$?
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); }; }; then
22865 ac_cv_func_vfork_works=yes
22866 else
22867 echo "$as_me: program exited with status $ac_status" >&5
22868 echo "$as_me: failed program was:" >&5
22869 sed 's/^/| /' conftest.$ac_ext >&5
22870
22871 ( exit $ac_status )
22872 ac_cv_func_vfork_works=no
22873 fi
22874 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22875 fi
22876
22877
22878 fi
22879 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22880 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22881
22882 fi;
22883 if test "x$ac_cv_func_fork_works" = xcross; then
22884 ac_cv_func_vfork_works=$ac_cv_func_vfork
22885 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22886 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22887 fi
22888
22889 if test "x$ac_cv_func_vfork_works" = xyes; then
22890
22891 cat >>confdefs.h <<\_ACEOF
22892 #define HAVE_WORKING_VFORK 1
22893 _ACEOF
22894
22895 else
22896
22897 cat >>confdefs.h <<\_ACEOF
22898 #define vfork fork
22899 _ACEOF
22900
22901 fi
22902 if test "x$ac_cv_func_fork_works" = xyes; then
22903
22904 cat >>confdefs.h <<\_ACEOF
22905 #define HAVE_WORKING_FORK 1
22906 _ACEOF
22907
22908 fi
22909
22910
22911 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22912 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22913 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22914 echo $ECHO_N "(cached) $ECHO_C" >&6
22915 else
22916 cat >conftest.$ac_ext <<_ACEOF
22917 /* confdefs.h. */
22918 _ACEOF
22919 cat confdefs.h >>conftest.$ac_ext
22920 cat >>conftest.$ac_ext <<_ACEOF
22921 /* end confdefs.h. */
22922 #include <langinfo.h>
22923 int
22924 main ()
22925 {
22926 char* cs = nl_langinfo(CODESET);
22927 ;
22928 return 0;
22929 }
22930 _ACEOF
22931 rm -f conftest.$ac_objext conftest$ac_exeext
22932 if { (ac_try="$ac_link"
22933 case "(($ac_try" in
22934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22935 *) ac_try_echo=$ac_try;;
22936 esac
22937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22938 (eval "$ac_link") 2>conftest.er1
22939 ac_status=$?
22940 grep -v '^ *+' conftest.er1 >conftest.err
22941 rm -f conftest.er1
22942 cat conftest.err >&5
22943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22944 (exit $ac_status); } && {
22945 test -z "$ac_c_werror_flag" ||
22946 test ! -s conftest.err
22947 } && test -s conftest$ac_exeext &&
22948 $as_test_x conftest$ac_exeext; then
22949 emacs_cv_langinfo_codeset=yes
22950 else
22951 echo "$as_me: failed program was:" >&5
22952 sed 's/^/| /' conftest.$ac_ext >&5
22953
22954 emacs_cv_langinfo_codeset=no
22955 fi
22956
22957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22958 conftest$ac_exeext conftest.$ac_ext
22959
22960 fi
22961 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22962 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22963 if test $emacs_cv_langinfo_codeset = yes; then
22964
22965 cat >>confdefs.h <<\_ACEOF
22966 #define HAVE_LANGINFO_CODESET 1
22967 _ACEOF
22968
22969 fi
22970
22971 { echo "$as_me:$LINENO: checking for size_t" >&5
22972 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22973 if test "${ac_cv_type_size_t+set}" = set; then
22974 echo $ECHO_N "(cached) $ECHO_C" >&6
22975 else
22976 cat >conftest.$ac_ext <<_ACEOF
22977 /* confdefs.h. */
22978 _ACEOF
22979 cat confdefs.h >>conftest.$ac_ext
22980 cat >>conftest.$ac_ext <<_ACEOF
22981 /* end confdefs.h. */
22982 $ac_includes_default
22983 typedef size_t ac__type_new_;
22984 int
22985 main ()
22986 {
22987 if ((ac__type_new_ *) 0)
22988 return 0;
22989 if (sizeof (ac__type_new_))
22990 return 0;
22991 ;
22992 return 0;
22993 }
22994 _ACEOF
22995 rm -f conftest.$ac_objext
22996 if { (ac_try="$ac_compile"
22997 case "(($ac_try" in
22998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22999 *) ac_try_echo=$ac_try;;
23000 esac
23001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23002 (eval "$ac_compile") 2>conftest.er1
23003 ac_status=$?
23004 grep -v '^ *+' conftest.er1 >conftest.err
23005 rm -f conftest.er1
23006 cat conftest.err >&5
23007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23008 (exit $ac_status); } && {
23009 test -z "$ac_c_werror_flag" ||
23010 test ! -s conftest.err
23011 } && test -s conftest.$ac_objext; then
23012 ac_cv_type_size_t=yes
23013 else
23014 echo "$as_me: failed program was:" >&5
23015 sed 's/^/| /' conftest.$ac_ext >&5
23016
23017 ac_cv_type_size_t=no
23018 fi
23019
23020 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23021 fi
23022 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23023 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23024 if test $ac_cv_type_size_t = yes; then
23025
23026 cat >>confdefs.h <<_ACEOF
23027 #define HAVE_SIZE_T 1
23028 _ACEOF
23029
23030
23031 fi
23032
23033
23034 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23035 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23036 if test "${ac_cv_type_mbstate_t+set}" = set; then
23037 echo $ECHO_N "(cached) $ECHO_C" >&6
23038 else
23039 cat >conftest.$ac_ext <<_ACEOF
23040 /* confdefs.h. */
23041 _ACEOF
23042 cat confdefs.h >>conftest.$ac_ext
23043 cat >>conftest.$ac_ext <<_ACEOF
23044 /* end confdefs.h. */
23045 $ac_includes_default
23046 # include <wchar.h>
23047 int
23048 main ()
23049 {
23050 mbstate_t x; return sizeof x;
23051 ;
23052 return 0;
23053 }
23054 _ACEOF
23055 rm -f conftest.$ac_objext
23056 if { (ac_try="$ac_compile"
23057 case "(($ac_try" in
23058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23059 *) ac_try_echo=$ac_try;;
23060 esac
23061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23062 (eval "$ac_compile") 2>conftest.er1
23063 ac_status=$?
23064 grep -v '^ *+' conftest.er1 >conftest.err
23065 rm -f conftest.er1
23066 cat conftest.err >&5
23067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23068 (exit $ac_status); } && {
23069 test -z "$ac_c_werror_flag" ||
23070 test ! -s conftest.err
23071 } && test -s conftest.$ac_objext; then
23072 ac_cv_type_mbstate_t=yes
23073 else
23074 echo "$as_me: failed program was:" >&5
23075 sed 's/^/| /' conftest.$ac_ext >&5
23076
23077 ac_cv_type_mbstate_t=no
23078 fi
23079
23080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23081 fi
23082 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23083 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23084 if test $ac_cv_type_mbstate_t = yes; then
23085
23086 cat >>confdefs.h <<\_ACEOF
23087 #define HAVE_MBSTATE_T 1
23088 _ACEOF
23089
23090 else
23091
23092 cat >>confdefs.h <<\_ACEOF
23093 #define mbstate_t int
23094 _ACEOF
23095
23096 fi
23097
23098 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23099 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23100 if test "${emacs_cv_c_restrict+set}" = set; then
23101 echo $ECHO_N "(cached) $ECHO_C" >&6
23102 else
23103 cat >conftest.$ac_ext <<_ACEOF
23104 /* confdefs.h. */
23105 _ACEOF
23106 cat confdefs.h >>conftest.$ac_ext
23107 cat >>conftest.$ac_ext <<_ACEOF
23108 /* end confdefs.h. */
23109 void fred (int *restrict x);
23110 int
23111 main ()
23112 {
23113
23114 ;
23115 return 0;
23116 }
23117 _ACEOF
23118 rm -f conftest.$ac_objext
23119 if { (ac_try="$ac_compile"
23120 case "(($ac_try" in
23121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23122 *) ac_try_echo=$ac_try;;
23123 esac
23124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23125 (eval "$ac_compile") 2>conftest.er1
23126 ac_status=$?
23127 grep -v '^ *+' conftest.er1 >conftest.err
23128 rm -f conftest.er1
23129 cat conftest.err >&5
23130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23131 (exit $ac_status); } && {
23132 test -z "$ac_c_werror_flag" ||
23133 test ! -s conftest.err
23134 } && test -s conftest.$ac_objext; then
23135 emacs_cv_c_restrict=yes
23136 else
23137 echo "$as_me: failed program was:" >&5
23138 sed 's/^/| /' conftest.$ac_ext >&5
23139
23140 cat >conftest.$ac_ext <<_ACEOF
23141 /* confdefs.h. */
23142 _ACEOF
23143 cat confdefs.h >>conftest.$ac_ext
23144 cat >>conftest.$ac_ext <<_ACEOF
23145 /* end confdefs.h. */
23146 void fred (int *__restrict x);
23147 int
23148 main ()
23149 {
23150
23151 ;
23152 return 0;
23153 }
23154 _ACEOF
23155 rm -f conftest.$ac_objext
23156 if { (ac_try="$ac_compile"
23157 case "(($ac_try" in
23158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23159 *) ac_try_echo=$ac_try;;
23160 esac
23161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23162 (eval "$ac_compile") 2>conftest.er1
23163 ac_status=$?
23164 grep -v '^ *+' conftest.er1 >conftest.err
23165 rm -f conftest.er1
23166 cat conftest.err >&5
23167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23168 (exit $ac_status); } && {
23169 test -z "$ac_c_werror_flag" ||
23170 test ! -s conftest.err
23171 } && test -s conftest.$ac_objext; then
23172 emacs_cv_c_restrict=__restrict
23173 else
23174 echo "$as_me: failed program was:" >&5
23175 sed 's/^/| /' conftest.$ac_ext >&5
23176
23177 emacs_cv_c_restrict=no
23178 fi
23179
23180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23181 fi
23182
23183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23184 fi
23185 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23186 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23187 case "$emacs_cv_c_restrict" in
23188 yes) emacs_restrict=restrict;;
23189 no) emacs_restrict="";;
23190 *) emacs_restrict="$emacs_cv_c_restrict";;
23191 esac
23192 if test "$emacs_restrict" != __restrict; then
23193
23194 cat >>confdefs.h <<_ACEOF
23195 #define __restrict $emacs_restrict
23196 _ACEOF
23197
23198 fi
23199
23200 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23201 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23202 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23203 echo $ECHO_N "(cached) $ECHO_C" >&6
23204 else
23205 cat >conftest.$ac_ext <<_ACEOF
23206 /* confdefs.h. */
23207 _ACEOF
23208 cat confdefs.h >>conftest.$ac_ext
23209 cat >>conftest.$ac_ext <<_ACEOF
23210 /* end confdefs.h. */
23211 void fred (int x[__restrict]);
23212 int
23213 main ()
23214 {
23215
23216 ;
23217 return 0;
23218 }
23219 _ACEOF
23220 rm -f conftest.$ac_objext
23221 if { (ac_try="$ac_compile"
23222 case "(($ac_try" in
23223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23224 *) ac_try_echo=$ac_try;;
23225 esac
23226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23227 (eval "$ac_compile") 2>conftest.er1
23228 ac_status=$?
23229 grep -v '^ *+' conftest.er1 >conftest.err
23230 rm -f conftest.er1
23231 cat conftest.err >&5
23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23233 (exit $ac_status); } && {
23234 test -z "$ac_c_werror_flag" ||
23235 test ! -s conftest.err
23236 } && test -s conftest.$ac_objext; then
23237 emacs_cv_c_restrict_arr=yes
23238 else
23239 echo "$as_me: failed program was:" >&5
23240 sed 's/^/| /' conftest.$ac_ext >&5
23241
23242 emacs_cv_c_restrict_arr=no
23243 fi
23244
23245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23246 fi
23247 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23248 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23249 if test "$emacs_cv_c_restrict_arr" = yes; then
23250
23251 cat >>confdefs.h <<\_ACEOF
23252 #define __restrict_arr __restrict
23253 _ACEOF
23254
23255 fi
23256
23257
23258
23259 # Set up the CFLAGS for real compilation, so we can substitute it.
23260 CFLAGS="$REAL_CFLAGS"
23261 CPPFLAGS="$REAL_CPPFLAGS"
23262
23263 #### Find out which version of Emacs this is.
23264 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23265 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23266 if test x"${version}" = x; then
23267 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23268 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23269 { (exit 1); exit 1; }; }
23270 fi
23271
23272 ### Specify what sort of things we'll be editing into Makefile and config.h.
23273 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285
23286
23287
23288
23289
23290
23291
23292
23293
23294
23295
23296
23297
23298
23299
23300
23301
23302
23303
23304
23305
23306
23307
23308
23309 cat >>confdefs.h <<_ACEOF
23310 #define EMACS_CONFIGURATION "${canonical}"
23311 _ACEOF
23312
23313
23314 cat >>confdefs.h <<_ACEOF
23315 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23316 _ACEOF
23317
23318
23319 cat >>confdefs.h <<_ACEOF
23320 #define config_machfile "${machfile}"
23321 _ACEOF
23322
23323
23324 cat >>confdefs.h <<_ACEOF
23325 #define config_opsysfile "${opsysfile}"
23326 _ACEOF
23327
23328
23329 cat >>confdefs.h <<_ACEOF
23330 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23331 _ACEOF
23332
23333
23334 cat >>confdefs.h <<_ACEOF
23335 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23336 _ACEOF
23337
23338
23339 cat >>confdefs.h <<_ACEOF
23340 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23341 _ACEOF
23342
23343
23344 cat >>confdefs.h <<_ACEOF
23345 #define UNEXEC_SRC ${UNEXEC_SRC}
23346 _ACEOF
23347
23348
23349 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23350
23351 cat >>confdefs.h <<\_ACEOF
23352 #define HAVE_X_WINDOWS 1
23353 _ACEOF
23354
23355 fi
23356 if test "${USE_X_TOOLKIT}" != "none" ; then
23357
23358 cat >>confdefs.h <<\_ACEOF
23359 #define USE_X_TOOLKIT 1
23360 _ACEOF
23361
23362 fi
23363 if test "${HAVE_X11}" = "yes" ; then
23364
23365 cat >>confdefs.h <<\_ACEOF
23366 #define HAVE_X11 1
23367 _ACEOF
23368
23369 fi
23370 if test "${HAVE_XFREE386}" = "yes" ; then
23371
23372 cat >>confdefs.h <<\_ACEOF
23373 #define HAVE_XFREE386 1
23374 _ACEOF
23375
23376 fi
23377 if test "${HAVE_MENUS}" = "yes" ; then
23378
23379 cat >>confdefs.h <<\_ACEOF
23380 #define HAVE_MENUS 1
23381 _ACEOF
23382
23383 fi
23384 if test "${GNU_MALLOC}" = "yes" ; then
23385
23386 cat >>confdefs.h <<\_ACEOF
23387 #define GNU_MALLOC 1
23388 _ACEOF
23389
23390 fi
23391 if test "${REL_ALLOC}" = "yes" ; then
23392
23393 cat >>confdefs.h <<\_ACEOF
23394 #define REL_ALLOC 1
23395 _ACEOF
23396
23397 fi
23398
23399
23400
23401
23402
23403
23404 #### Report on what we decided to do.
23405 #### Report GTK as a toolkit, even if it doesn't use Xt.
23406 #### It makes printing result more understandable as using GTK sets
23407 #### toolkit_scroll_bars to yes by default.
23408 if test "${HAVE_GTK}" = "yes"; then
23409 USE_X_TOOLKIT=GTK
23410 fi
23411
23412 echo "
23413 Configured for \`${canonical}'.
23414
23415 Where should the build process find the source code? ${srcdir}
23416 What operating system and machine description files should Emacs use?
23417 \`${opsysfile}' and \`${machfile}'
23418 What compiler should emacs be built with? ${CC} ${CFLAGS}
23419 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23420 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23421 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23422 What window system should Emacs use? ${window_system}
23423 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23424
23425 if test -n "${x_includes}"; then
23426 echo " Where do we find X Windows header files? ${x_includes}"
23427 else
23428 echo " Where do we find X Windows header files? Standard dirs"
23429 fi
23430 if test -n "${x_libraries}"; then
23431 echo " Where do we find X Windows libraries? ${x_libraries}"
23432 else
23433 echo " Where do we find X Windows libraries? Standard dirs"
23434 fi
23435
23436 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23437 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23438 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23439 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23440 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23441 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23442 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23443 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23444 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23445 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23446 echo
23447
23448 if test $USE_XASSERTS = yes; then
23449 echo " Compiling with asserts turned on."
23450 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23451 echo
23452 fi
23453
23454 if test "$USE_X_TOOLKIT" = GTK; then
23455 case "$canonical" in
23456 *cygwin*)
23457 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23458 will probably get a crash on startup. If this happens, please use another
23459 toolkit for Emacs. See etc/PROBLEMS for more information."
23460 ;;
23461 esac
23462 fi
23463
23464
23465 if test "$HAVE_CARBON" = "yes"; then
23466 echo
23467 echo "Warning: The Mac Carbon port is currently unsupported and has
23468 known problems. It is not recommended for use by non-developers.
23469 Read the emacs-devel archives for more information."
23470 echo
23471 fi
23472
23473 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23474 echo "D-Bus integration has been tested for GNU/Linux only."
23475 echo
23476 fi
23477
23478
23479 # Remove any trailing slashes in these variables.
23480 test "${prefix}" != NONE &&
23481 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23482 test "${exec_prefix}" != NONE &&
23483 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23484
23485 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23486 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23487 ## from Makefile.c can correctly provide the arg `-traditional' to the
23488 ## C preprocessor.
23489
23490 cat >conftest.$ac_ext <<_ACEOF
23491 /* confdefs.h. */
23492 _ACEOF
23493 cat confdefs.h >>conftest.$ac_ext
23494 cat >>conftest.$ac_ext <<_ACEOF
23495 /* end confdefs.h. */
23496 yes..yes
23497 _ACEOF
23498 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23499 $EGREP "yes..yes" >/dev/null 2>&1; then
23500 CPP_NEED_TRADITIONAL=no
23501 else
23502 CPP_NEED_TRADITIONAL=yes
23503 fi
23504 rm -f conftest*
23505
23506
23507 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"
23508
23509 ac_config_commands="$ac_config_commands default"
23510
23511 cat >confcache <<\_ACEOF
23512 # This file is a shell script that caches the results of configure
23513 # tests run on this system so they can be shared between configure
23514 # scripts and configure runs, see configure's option --config-cache.
23515 # It is not useful on other systems. If it contains results you don't
23516 # want to keep, you may remove or edit it.
23517 #
23518 # config.status only pays attention to the cache file if you give it
23519 # the --recheck option to rerun configure.
23520 #
23521 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23522 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23523 # following values.
23524
23525 _ACEOF
23526
23527 # The following way of writing the cache mishandles newlines in values,
23528 # but we know of no workaround that is simple, portable, and efficient.
23529 # So, we kill variables containing newlines.
23530 # Ultrix sh set writes to stderr and can't be redirected directly,
23531 # and sets the high bit in the cache file unless we assign to the vars.
23532 (
23533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23534 eval ac_val=\$$ac_var
23535 case $ac_val in #(
23536 *${as_nl}*)
23537 case $ac_var in #(
23538 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23539 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23540 esac
23541 case $ac_var in #(
23542 _ | IFS | as_nl) ;; #(
23543 *) $as_unset $ac_var ;;
23544 esac ;;
23545 esac
23546 done
23547
23548 (set) 2>&1 |
23549 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23550 *${as_nl}ac_space=\ *)
23551 # `set' does not quote correctly, so add quotes (double-quote
23552 # substitution turns \\\\ into \\, and sed turns \\ into \).
23553 sed -n \
23554 "s/'/'\\\\''/g;
23555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23556 ;; #(
23557 *)
23558 # `set' quotes correctly as required by POSIX, so do not add quotes.
23559 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23560 ;;
23561 esac |
23562 sort
23563 ) |
23564 sed '
23565 /^ac_cv_env_/b end
23566 t clear
23567 :clear
23568 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23569 t end
23570 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23571 :end' >>confcache
23572 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23573 if test -w "$cache_file"; then
23574 test "x$cache_file" != "x/dev/null" &&
23575 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23576 echo "$as_me: updating cache $cache_file" >&6;}
23577 cat confcache >$cache_file
23578 else
23579 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23580 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23581 fi
23582 fi
23583 rm -f confcache
23584
23585 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23586 # Let make expand exec_prefix.
23587 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23588
23589 DEFS=-DHAVE_CONFIG_H
23590
23591 ac_libobjs=
23592 ac_ltlibobjs=
23593 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23594 # 1. Remove the extension, and $U if already installed.
23595 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23596 ac_i=`echo "$ac_i" | sed "$ac_script"`
23597 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23598 # will be set to the directory where LIBOBJS objects are built.
23599 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23600 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23601 done
23602 LIBOBJS=$ac_libobjs
23603
23604 LTLIBOBJS=$ac_ltlibobjs
23605
23606
23607
23608 : ${CONFIG_STATUS=./config.status}
23609 ac_clean_files_save=$ac_clean_files
23610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23611 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23612 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23613 cat >$CONFIG_STATUS <<_ACEOF
23614 #! $SHELL
23615 # Generated by $as_me.
23616 # Run this file to recreate the current configuration.
23617 # Compiler output produced by configure, useful for debugging
23618 # configure, is in config.log if it exists.
23619
23620 debug=false
23621 ac_cs_recheck=false
23622 ac_cs_silent=false
23623 SHELL=\${CONFIG_SHELL-$SHELL}
23624 _ACEOF
23625
23626 cat >>$CONFIG_STATUS <<\_ACEOF
23627 ## --------------------- ##
23628 ## M4sh Initialization. ##
23629 ## --------------------- ##
23630
23631 # Be more Bourne compatible
23632 DUALCASE=1; export DUALCASE # for MKS sh
23633 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23634 emulate sh
23635 NULLCMD=:
23636 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23637 # is contrary to our usage. Disable this feature.
23638 alias -g '${1+"$@"}'='"$@"'
23639 setopt NO_GLOB_SUBST
23640 else
23641 case `(set -o) 2>/dev/null` in
23642 *posix*) set -o posix ;;
23643 esac
23644
23645 fi
23646
23647
23648
23649
23650 # PATH needs CR
23651 # Avoid depending upon Character Ranges.
23652 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23653 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23654 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23655 as_cr_digits='0123456789'
23656 as_cr_alnum=$as_cr_Letters$as_cr_digits
23657
23658 # The user is always right.
23659 if test "${PATH_SEPARATOR+set}" != set; then
23660 echo "#! /bin/sh" >conf$$.sh
23661 echo "exit 0" >>conf$$.sh
23662 chmod +x conf$$.sh
23663 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23664 PATH_SEPARATOR=';'
23665 else
23666 PATH_SEPARATOR=:
23667 fi
23668 rm -f conf$$.sh
23669 fi
23670
23671 # Support unset when possible.
23672 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23673 as_unset=unset
23674 else
23675 as_unset=false
23676 fi
23677
23678
23679 # IFS
23680 # We need space, tab and new line, in precisely that order. Quoting is
23681 # there to prevent editors from complaining about space-tab.
23682 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23683 # splitting by setting IFS to empty value.)
23684 as_nl='
23685 '
23686 IFS=" "" $as_nl"
23687
23688 # Find who we are. Look in the path if we contain no directory separator.
23689 case $0 in
23690 *[\\/]* ) as_myself=$0 ;;
23691 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23692 for as_dir in $PATH
23693 do
23694 IFS=$as_save_IFS
23695 test -z "$as_dir" && as_dir=.
23696 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23697 done
23698 IFS=$as_save_IFS
23699
23700 ;;
23701 esac
23702 # We did not find ourselves, most probably we were run as `sh COMMAND'
23703 # in which case we are not to be found in the path.
23704 if test "x$as_myself" = x; then
23705 as_myself=$0
23706 fi
23707 if test ! -f "$as_myself"; then
23708 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23709 { (exit 1); exit 1; }
23710 fi
23711
23712 # Work around bugs in pre-3.0 UWIN ksh.
23713 for as_var in ENV MAIL MAILPATH
23714 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23715 done
23716 PS1='$ '
23717 PS2='> '
23718 PS4='+ '
23719
23720 # NLS nuisances.
23721 for as_var in \
23722 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23723 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23724 LC_TELEPHONE LC_TIME
23725 do
23726 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23727 eval $as_var=C; export $as_var
23728 else
23729 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23730 fi
23731 done
23732
23733 # Required to use basename.
23734 if expr a : '\(a\)' >/dev/null 2>&1 &&
23735 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23736 as_expr=expr
23737 else
23738 as_expr=false
23739 fi
23740
23741 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23742 as_basename=basename
23743 else
23744 as_basename=false
23745 fi
23746
23747
23748 # Name of the executable.
23749 as_me=`$as_basename -- "$0" ||
23750 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23751 X"$0" : 'X\(//\)$' \| \
23752 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23753 echo X/"$0" |
23754 sed '/^.*\/\([^/][^/]*\)\/*$/{
23755 s//\1/
23756 q
23757 }
23758 /^X\/\(\/\/\)$/{
23759 s//\1/
23760 q
23761 }
23762 /^X\/\(\/\).*/{
23763 s//\1/
23764 q
23765 }
23766 s/.*/./; q'`
23767
23768 # CDPATH.
23769 $as_unset CDPATH
23770
23771
23772
23773 as_lineno_1=$LINENO
23774 as_lineno_2=$LINENO
23775 test "x$as_lineno_1" != "x$as_lineno_2" &&
23776 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23777
23778 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23779 # uniformly replaced by the line number. The first 'sed' inserts a
23780 # line-number line after each line using $LINENO; the second 'sed'
23781 # does the real work. The second script uses 'N' to pair each
23782 # line-number line with the line containing $LINENO, and appends
23783 # trailing '-' during substitution so that $LINENO is not a special
23784 # case at line end.
23785 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23786 # scripts with optimization help from Paolo Bonzini. Blame Lee
23787 # E. McMahon (1931-1989) for sed's syntax. :-)
23788 sed -n '
23789 p
23790 /[$]LINENO/=
23791 ' <$as_myself |
23792 sed '
23793 s/[$]LINENO.*/&-/
23794 t lineno
23795 b
23796 :lineno
23797 N
23798 :loop
23799 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23800 t loop
23801 s/-\n.*//
23802 ' >$as_me.lineno &&
23803 chmod +x "$as_me.lineno" ||
23804 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23805 { (exit 1); exit 1; }; }
23806
23807 # Don't try to exec as it changes $[0], causing all sort of problems
23808 # (the dirname of $[0] is not the place where we might find the
23809 # original and so on. Autoconf is especially sensitive to this).
23810 . "./$as_me.lineno"
23811 # Exit status is that of the last command.
23812 exit
23813 }
23814
23815
23816 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23817 as_dirname=dirname
23818 else
23819 as_dirname=false
23820 fi
23821
23822 ECHO_C= ECHO_N= ECHO_T=
23823 case `echo -n x` in
23824 -n*)
23825 case `echo 'x\c'` in
23826 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23827 *) ECHO_C='\c';;
23828 esac;;
23829 *)
23830 ECHO_N='-n';;
23831 esac
23832
23833 if expr a : '\(a\)' >/dev/null 2>&1 &&
23834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23835 as_expr=expr
23836 else
23837 as_expr=false
23838 fi
23839
23840 rm -f conf$$ conf$$.exe conf$$.file
23841 if test -d conf$$.dir; then
23842 rm -f conf$$.dir/conf$$.file
23843 else
23844 rm -f conf$$.dir
23845 mkdir conf$$.dir
23846 fi
23847 echo >conf$$.file
23848 if ln -s conf$$.file conf$$ 2>/dev/null; then
23849 as_ln_s='ln -s'
23850 # ... but there are two gotchas:
23851 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23852 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23853 # In both cases, we have to default to `cp -p'.
23854 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23855 as_ln_s='cp -p'
23856 elif ln conf$$.file conf$$ 2>/dev/null; then
23857 as_ln_s=ln
23858 else
23859 as_ln_s='cp -p'
23860 fi
23861 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23862 rmdir conf$$.dir 2>/dev/null
23863
23864 if mkdir -p . 2>/dev/null; then
23865 as_mkdir_p=:
23866 else
23867 test -d ./-p && rmdir ./-p
23868 as_mkdir_p=false
23869 fi
23870
23871 if test -x / >/dev/null 2>&1; then
23872 as_test_x='test -x'
23873 else
23874 if ls -dL / >/dev/null 2>&1; then
23875 as_ls_L_option=L
23876 else
23877 as_ls_L_option=
23878 fi
23879 as_test_x='
23880 eval sh -c '\''
23881 if test -d "$1"; then
23882 test -d "$1/.";
23883 else
23884 case $1 in
23885 -*)set "./$1";;
23886 esac;
23887 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23888 ???[sx]*):;;*)false;;esac;fi
23889 '\'' sh
23890 '
23891 fi
23892 as_executable_p=$as_test_x
23893
23894 # Sed expression to map a string onto a valid CPP name.
23895 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23896
23897 # Sed expression to map a string onto a valid variable name.
23898 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23899
23900
23901 exec 6>&1
23902
23903 # Save the log message, to keep $[0] and so on meaningful, and to
23904 # report actual input values of CONFIG_FILES etc. instead of their
23905 # values after options handling.
23906 ac_log="
23907 This file was extended by emacs $as_me 23.0.50, which was
23908 generated by GNU Autoconf 2.61. Invocation command line was
23909
23910 CONFIG_FILES = $CONFIG_FILES
23911 CONFIG_HEADERS = $CONFIG_HEADERS
23912 CONFIG_LINKS = $CONFIG_LINKS
23913 CONFIG_COMMANDS = $CONFIG_COMMANDS
23914 $ $0 $@
23915
23916 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23917 "
23918
23919 _ACEOF
23920
23921 cat >>$CONFIG_STATUS <<_ACEOF
23922 # Files that config.status was made for.
23923 config_files="$ac_config_files"
23924 config_headers="$ac_config_headers"
23925 config_commands="$ac_config_commands"
23926
23927 _ACEOF
23928
23929 cat >>$CONFIG_STATUS <<\_ACEOF
23930 ac_cs_usage="\
23931 \`$as_me' instantiates files from templates according to the
23932 current configuration.
23933
23934 Usage: $0 [OPTIONS] [FILE]...
23935
23936 -h, --help print this help, then exit
23937 -V, --version print version number and configuration settings, then exit
23938 -q, --quiet do not print progress messages
23939 -d, --debug don't remove temporary files
23940 --recheck update $as_me by reconfiguring in the same conditions
23941 --file=FILE[:TEMPLATE]
23942 instantiate the configuration file FILE
23943 --header=FILE[:TEMPLATE]
23944 instantiate the configuration header FILE
23945
23946 Configuration files:
23947 $config_files
23948
23949 Configuration headers:
23950 $config_headers
23951
23952 Configuration commands:
23953 $config_commands
23954
23955 Report bugs to <bug-autoconf@gnu.org>."
23956
23957 _ACEOF
23958 cat >>$CONFIG_STATUS <<_ACEOF
23959 ac_cs_version="\\
23960 emacs config.status 23.0.50
23961 configured by $0, generated by GNU Autoconf 2.61,
23962 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23963
23964 Copyright (C) 2006 Free Software Foundation, Inc.
23965 This config.status script is free software; the Free Software Foundation
23966 gives unlimited permission to copy, distribute and modify it."
23967
23968 ac_pwd='$ac_pwd'
23969 srcdir='$srcdir'
23970 INSTALL='$INSTALL'
23971 _ACEOF
23972
23973 cat >>$CONFIG_STATUS <<\_ACEOF
23974 # If no file are specified by the user, then we need to provide default
23975 # value. By we need to know if files were specified by the user.
23976 ac_need_defaults=:
23977 while test $# != 0
23978 do
23979 case $1 in
23980 --*=*)
23981 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23982 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23983 ac_shift=:
23984 ;;
23985 *)
23986 ac_option=$1
23987 ac_optarg=$2
23988 ac_shift=shift
23989 ;;
23990 esac
23991
23992 case $ac_option in
23993 # Handling of the options.
23994 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23995 ac_cs_recheck=: ;;
23996 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23997 echo "$ac_cs_version"; exit ;;
23998 --debug | --debu | --deb | --de | --d | -d )
23999 debug=: ;;
24000 --file | --fil | --fi | --f )
24001 $ac_shift
24002 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24003 ac_need_defaults=false;;
24004 --header | --heade | --head | --hea )
24005 $ac_shift
24006 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24007 ac_need_defaults=false;;
24008 --he | --h)
24009 # Conflict between --help and --header
24010 { echo "$as_me: error: ambiguous option: $1
24011 Try \`$0 --help' for more information." >&2
24012 { (exit 1); exit 1; }; };;
24013 --help | --hel | -h )
24014 echo "$ac_cs_usage"; exit ;;
24015 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24016 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24017 ac_cs_silent=: ;;
24018
24019 # This is an error.
24020 -*) { echo "$as_me: error: unrecognized option: $1
24021 Try \`$0 --help' for more information." >&2
24022 { (exit 1); exit 1; }; } ;;
24023
24024 *) ac_config_targets="$ac_config_targets $1"
24025 ac_need_defaults=false ;;
24026
24027 esac
24028 shift
24029 done
24030
24031 ac_configure_extra_args=
24032
24033 if $ac_cs_silent; then
24034 exec 6>/dev/null
24035 ac_configure_extra_args="$ac_configure_extra_args --silent"
24036 fi
24037
24038 _ACEOF
24039 cat >>$CONFIG_STATUS <<_ACEOF
24040 if \$ac_cs_recheck; then
24041 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24042 CONFIG_SHELL=$SHELL
24043 export CONFIG_SHELL
24044 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24045 fi
24046
24047 _ACEOF
24048 cat >>$CONFIG_STATUS <<\_ACEOF
24049 exec 5>>config.log
24050 {
24051 echo
24052 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24053 ## Running $as_me. ##
24054 _ASBOX
24055 echo "$ac_log"
24056 } >&5
24057
24058 _ACEOF
24059 cat >>$CONFIG_STATUS <<_ACEOF
24060 #
24061 # INIT-COMMANDS
24062 #
24063 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24064
24065 _ACEOF
24066
24067 cat >>$CONFIG_STATUS <<\_ACEOF
24068
24069 # Handling of arguments.
24070 for ac_config_target in $ac_config_targets
24071 do
24072 case $ac_config_target in
24073 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24074 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24075 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24076 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24077 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24078 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24079 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24080 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24081 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24082 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24083 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24084 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24085 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24086
24087 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24088 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24089 { (exit 1); exit 1; }; };;
24090 esac
24091 done
24092
24093
24094 # If the user did not use the arguments to specify the items to instantiate,
24095 # then the envvar interface is used. Set only those that are not.
24096 # We use the long form for the default assignment because of an extremely
24097 # bizarre bug on SunOS 4.1.3.
24098 if $ac_need_defaults; then
24099 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24100 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24101 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24102 fi
24103
24104 # Have a temporary directory for convenience. Make it in the build tree
24105 # simply because there is no reason against having it here, and in addition,
24106 # creating and moving files from /tmp can sometimes cause problems.
24107 # Hook for its removal unless debugging.
24108 # Note that there is a small window in which the directory will not be cleaned:
24109 # after its creation but before its name has been assigned to `$tmp'.
24110 $debug ||
24111 {
24112 tmp=
24113 trap 'exit_status=$?
24114 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24115 ' 0
24116 trap '{ (exit 1); exit 1; }' 1 2 13 15
24117 }
24118 # Create a (secure) tmp directory for tmp files.
24119
24120 {
24121 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24122 test -n "$tmp" && test -d "$tmp"
24123 } ||
24124 {
24125 tmp=./conf$$-$RANDOM
24126 (umask 077 && mkdir "$tmp")
24127 } ||
24128 {
24129 echo "$me: cannot create a temporary directory in ." >&2
24130 { (exit 1); exit 1; }
24131 }
24132
24133 #
24134 # Set up the sed scripts for CONFIG_FILES section.
24135 #
24136
24137 # No need to generate the scripts if there are no CONFIG_FILES.
24138 # This happens for instance when ./config.status config.h
24139 if test -n "$CONFIG_FILES"; then
24140
24141 _ACEOF
24142
24143
24144
24145 ac_delim='%!_!# '
24146 for ac_last_try in false false false false false :; do
24147 cat >conf$$subs.sed <<_ACEOF
24148 SHELL!$SHELL$ac_delim
24149 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24150 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24151 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24152 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24153 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24154 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24155 exec_prefix!$exec_prefix$ac_delim
24156 prefix!$prefix$ac_delim
24157 program_transform_name!$program_transform_name$ac_delim
24158 bindir!$bindir$ac_delim
24159 sbindir!$sbindir$ac_delim
24160 libexecdir!$libexecdir$ac_delim
24161 datarootdir!$datarootdir$ac_delim
24162 datadir!$datadir$ac_delim
24163 sysconfdir!$sysconfdir$ac_delim
24164 sharedstatedir!$sharedstatedir$ac_delim
24165 localstatedir!$localstatedir$ac_delim
24166 includedir!$includedir$ac_delim
24167 oldincludedir!$oldincludedir$ac_delim
24168 docdir!$docdir$ac_delim
24169 infodir!$infodir$ac_delim
24170 htmldir!$htmldir$ac_delim
24171 dvidir!$dvidir$ac_delim
24172 pdfdir!$pdfdir$ac_delim
24173 psdir!$psdir$ac_delim
24174 libdir!$libdir$ac_delim
24175 localedir!$localedir$ac_delim
24176 mandir!$mandir$ac_delim
24177 DEFS!$DEFS$ac_delim
24178 ECHO_C!$ECHO_C$ac_delim
24179 ECHO_N!$ECHO_N$ac_delim
24180 ECHO_T!$ECHO_T$ac_delim
24181 LIBS!$LIBS$ac_delim
24182 build_alias!$build_alias$ac_delim
24183 host_alias!$host_alias$ac_delim
24184 target_alias!$target_alias$ac_delim
24185 MAINT!$MAINT$ac_delim
24186 build!$build$ac_delim
24187 build_cpu!$build_cpu$ac_delim
24188 build_vendor!$build_vendor$ac_delim
24189 build_os!$build_os$ac_delim
24190 host!$host$ac_delim
24191 host_cpu!$host_cpu$ac_delim
24192 host_vendor!$host_vendor$ac_delim
24193 host_os!$host_os$ac_delim
24194 CC!$CC$ac_delim
24195 CFLAGS!$CFLAGS$ac_delim
24196 LDFLAGS!$LDFLAGS$ac_delim
24197 CPPFLAGS!$CPPFLAGS$ac_delim
24198 ac_ct_CC!$ac_ct_CC$ac_delim
24199 EXEEXT!$EXEEXT$ac_delim
24200 OBJEXT!$OBJEXT$ac_delim
24201 CPP!$CPP$ac_delim
24202 GREP!$GREP$ac_delim
24203 EGREP!$EGREP$ac_delim
24204 LN_S!$LN_S$ac_delim
24205 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24206 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24207 INSTALL_DATA!$INSTALL_DATA$ac_delim
24208 RANLIB!$RANLIB$ac_delim
24209 INSTALL_INFO!$INSTALL_INFO$ac_delim
24210 GZIP_PROG!$GZIP_PROG$ac_delim
24211 MAKEINFO!$MAKEINFO$ac_delim
24212 LIBSOUND!$LIBSOUND$ac_delim
24213 PKG_CONFIG!$PKG_CONFIG$ac_delim
24214 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24215 ALSA_LIBS!$ALSA_LIBS$ac_delim
24216 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24217 SET_MAKE!$SET_MAKE$ac_delim
24218 XMKMF!$XMKMF$ac_delim
24219 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24220 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24221 RSVG_LIBS!$RSVG_LIBS$ac_delim
24222 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24223 GTK_LIBS!$GTK_LIBS$ac_delim
24224 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24225 DBUS_LIBS!$DBUS_LIBS$ac_delim
24226 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24227 XFT_LIBS!$XFT_LIBS$ac_delim
24228 ALLOCA!$ALLOCA$ac_delim
24229 liblockfile!$liblockfile$ac_delim
24230 LIBOBJS!$LIBOBJS$ac_delim
24231 NEED_SETGID!$NEED_SETGID$ac_delim
24232 KMEM_GROUP!$KMEM_GROUP$ac_delim
24233 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24234 GETOPT_H!$GETOPT_H$ac_delim
24235 GETOPTOBJS!$GETOPTOBJS$ac_delim
24236 version!$version$ac_delim
24237 configuration!$configuration$ac_delim
24238 canonical!$canonical$ac_delim
24239 srcdir!$srcdir$ac_delim
24240 lispdir!$lispdir$ac_delim
24241 locallisppath!$locallisppath$ac_delim
24242 lisppath!$lisppath$ac_delim
24243 x_default_search_path!$x_default_search_path$ac_delim
24244 etcdir!$etcdir$ac_delim
24245 _ACEOF
24246
24247 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24248 break
24249 elif $ac_last_try; then
24250 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24251 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24252 { (exit 1); exit 1; }; }
24253 else
24254 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24255 fi
24256 done
24257
24258 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24259 if test -n "$ac_eof"; then
24260 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24261 ac_eof=`expr $ac_eof + 1`
24262 fi
24263
24264 cat >>$CONFIG_STATUS <<_ACEOF
24265 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24266 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24267 _ACEOF
24268 sed '
24269 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24270 s/^/s,@/; s/!/@,|#_!!_#|/
24271 :n
24272 t n
24273 s/'"$ac_delim"'$/,g/; t
24274 s/$/\\/; p
24275 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24276 ' >>$CONFIG_STATUS <conf$$subs.sed
24277 rm -f conf$$subs.sed
24278 cat >>$CONFIG_STATUS <<_ACEOF
24279 CEOF$ac_eof
24280 _ACEOF
24281
24282
24283 ac_delim='%!_!# '
24284 for ac_last_try in false false false false false :; do
24285 cat >conf$$subs.sed <<_ACEOF
24286 archlibdir!$archlibdir$ac_delim
24287 bitmapdir!$bitmapdir$ac_delim
24288 gamedir!$gamedir$ac_delim
24289 gameuser!$gameuser$ac_delim
24290 c_switch_system!$c_switch_system$ac_delim
24291 c_switch_machine!$c_switch_machine$ac_delim
24292 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24293 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24294 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24295 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24296 machfile!$machfile$ac_delim
24297 opsysfile!$opsysfile$ac_delim
24298 carbon_appdir!$carbon_appdir$ac_delim
24299 LTLIBOBJS!$LTLIBOBJS$ac_delim
24300 _ACEOF
24301
24302 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24303 break
24304 elif $ac_last_try; then
24305 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24306 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24307 { (exit 1); exit 1; }; }
24308 else
24309 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24310 fi
24311 done
24312
24313 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24314 if test -n "$ac_eof"; then
24315 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24316 ac_eof=`expr $ac_eof + 1`
24317 fi
24318
24319 cat >>$CONFIG_STATUS <<_ACEOF
24320 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24321 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24322 _ACEOF
24323 sed '
24324 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24325 s/^/s,@/; s/!/@,|#_!!_#|/
24326 :n
24327 t n
24328 s/'"$ac_delim"'$/,g/; t
24329 s/$/\\/; p
24330 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24331 ' >>$CONFIG_STATUS <conf$$subs.sed
24332 rm -f conf$$subs.sed
24333 cat >>$CONFIG_STATUS <<_ACEOF
24334 :end
24335 s/|#_!!_#|//g
24336 CEOF$ac_eof
24337 _ACEOF
24338
24339
24340 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24341 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24342 # trailing colons and then remove the whole line if VPATH becomes empty
24343 # (actually we leave an empty line to preserve line numbers).
24344 if test "x$srcdir" = x.; then
24345 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24346 s/:*\$(srcdir):*/:/
24347 s/:*\${srcdir}:*/:/
24348 s/:*@srcdir@:*/:/
24349 s/^\([^=]*=[ ]*\):*/\1/
24350 s/:*$//
24351 s/^[^=]*=[ ]*$//
24352 }'
24353 fi
24354
24355 cat >>$CONFIG_STATUS <<\_ACEOF
24356 fi # test -n "$CONFIG_FILES"
24357
24358
24359 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24360 do
24361 case $ac_tag in
24362 :[FHLC]) ac_mode=$ac_tag; continue;;
24363 esac
24364 case $ac_mode$ac_tag in
24365 :[FHL]*:*);;
24366 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24367 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24368 { (exit 1); exit 1; }; };;
24369 :[FH]-) ac_tag=-:-;;
24370 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24371 esac
24372 ac_save_IFS=$IFS
24373 IFS=:
24374 set x $ac_tag
24375 IFS=$ac_save_IFS
24376 shift
24377 ac_file=$1
24378 shift
24379
24380 case $ac_mode in
24381 :L) ac_source=$1;;
24382 :[FH])
24383 ac_file_inputs=
24384 for ac_f
24385 do
24386 case $ac_f in
24387 -) ac_f="$tmp/stdin";;
24388 *) # Look for the file first in the build tree, then in the source tree
24389 # (if the path is not absolute). The absolute path cannot be DOS-style,
24390 # because $ac_f cannot contain `:'.
24391 test -f "$ac_f" ||
24392 case $ac_f in
24393 [\\/$]*) false;;
24394 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24395 esac ||
24396 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24397 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24398 { (exit 1); exit 1; }; };;
24399 esac
24400 ac_file_inputs="$ac_file_inputs $ac_f"
24401 done
24402
24403 # Let's still pretend it is `configure' which instantiates (i.e., don't
24404 # use $as_me), people would be surprised to read:
24405 # /* config.h. Generated by config.status. */
24406 configure_input="Generated from "`IFS=:
24407 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24408 if test x"$ac_file" != x-; then
24409 configure_input="$ac_file. $configure_input"
24410 { echo "$as_me:$LINENO: creating $ac_file" >&5
24411 echo "$as_me: creating $ac_file" >&6;}
24412 fi
24413
24414 case $ac_tag in
24415 *:-:* | *:-) cat >"$tmp/stdin";;
24416 esac
24417 ;;
24418 esac
24419
24420 ac_dir=`$as_dirname -- "$ac_file" ||
24421 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24422 X"$ac_file" : 'X\(//\)[^/]' \| \
24423 X"$ac_file" : 'X\(//\)$' \| \
24424 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24425 echo X"$ac_file" |
24426 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24427 s//\1/
24428 q
24429 }
24430 /^X\(\/\/\)[^/].*/{
24431 s//\1/
24432 q
24433 }
24434 /^X\(\/\/\)$/{
24435 s//\1/
24436 q
24437 }
24438 /^X\(\/\).*/{
24439 s//\1/
24440 q
24441 }
24442 s/.*/./; q'`
24443 { as_dir="$ac_dir"
24444 case $as_dir in #(
24445 -*) as_dir=./$as_dir;;
24446 esac
24447 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24448 as_dirs=
24449 while :; do
24450 case $as_dir in #(
24451 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24452 *) as_qdir=$as_dir;;
24453 esac
24454 as_dirs="'$as_qdir' $as_dirs"
24455 as_dir=`$as_dirname -- "$as_dir" ||
24456 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24457 X"$as_dir" : 'X\(//\)[^/]' \| \
24458 X"$as_dir" : 'X\(//\)$' \| \
24459 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24460 echo X"$as_dir" |
24461 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24462 s//\1/
24463 q
24464 }
24465 /^X\(\/\/\)[^/].*/{
24466 s//\1/
24467 q
24468 }
24469 /^X\(\/\/\)$/{
24470 s//\1/
24471 q
24472 }
24473 /^X\(\/\).*/{
24474 s//\1/
24475 q
24476 }
24477 s/.*/./; q'`
24478 test -d "$as_dir" && break
24479 done
24480 test -z "$as_dirs" || eval "mkdir $as_dirs"
24481 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24482 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24483 { (exit 1); exit 1; }; }; }
24484 ac_builddir=.
24485
24486 case "$ac_dir" in
24487 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24488 *)
24489 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24490 # A ".." for each directory in $ac_dir_suffix.
24491 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24492 case $ac_top_builddir_sub in
24493 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24494 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24495 esac ;;
24496 esac
24497 ac_abs_top_builddir=$ac_pwd
24498 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24499 # for backward compatibility:
24500 ac_top_builddir=$ac_top_build_prefix
24501
24502 case $srcdir in
24503 .) # We are building in place.
24504 ac_srcdir=.
24505 ac_top_srcdir=$ac_top_builddir_sub
24506 ac_abs_top_srcdir=$ac_pwd ;;
24507 [\\/]* | ?:[\\/]* ) # Absolute name.
24508 ac_srcdir=$srcdir$ac_dir_suffix;
24509 ac_top_srcdir=$srcdir
24510 ac_abs_top_srcdir=$srcdir ;;
24511 *) # Relative name.
24512 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24513 ac_top_srcdir=$ac_top_build_prefix$srcdir
24514 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24515 esac
24516 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24517
24518
24519 case $ac_mode in
24520 :F)
24521 #
24522 # CONFIG_FILE
24523 #
24524
24525 case $INSTALL in
24526 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24527 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24528 esac
24529 _ACEOF
24530
24531 cat >>$CONFIG_STATUS <<\_ACEOF
24532 # If the template does not know about datarootdir, expand it.
24533 # FIXME: This hack should be removed a few years after 2.60.
24534 ac_datarootdir_hack=; ac_datarootdir_seen=
24535
24536 case `sed -n '/datarootdir/ {
24537 p
24538 q
24539 }
24540 /@datadir@/p
24541 /@docdir@/p
24542 /@infodir@/p
24543 /@localedir@/p
24544 /@mandir@/p
24545 ' $ac_file_inputs` in
24546 *datarootdir*) ac_datarootdir_seen=yes;;
24547 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24548 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24549 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24550 _ACEOF
24551 cat >>$CONFIG_STATUS <<_ACEOF
24552 ac_datarootdir_hack='
24553 s&@datadir@&$datadir&g
24554 s&@docdir@&$docdir&g
24555 s&@infodir@&$infodir&g
24556 s&@localedir@&$localedir&g
24557 s&@mandir@&$mandir&g
24558 s&\\\${datarootdir}&$datarootdir&g' ;;
24559 esac
24560 _ACEOF
24561
24562 # Neutralize VPATH when `$srcdir' = `.'.
24563 # Shell code in configure.ac might set extrasub.
24564 # FIXME: do we really want to maintain this feature?
24565 cat >>$CONFIG_STATUS <<_ACEOF
24566 sed "$ac_vpsub
24567 $extrasub
24568 _ACEOF
24569 cat >>$CONFIG_STATUS <<\_ACEOF
24570 :t
24571 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24572 s&@configure_input@&$configure_input&;t t
24573 s&@top_builddir@&$ac_top_builddir_sub&;t t
24574 s&@srcdir@&$ac_srcdir&;t t
24575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24576 s&@top_srcdir@&$ac_top_srcdir&;t t
24577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24578 s&@builddir@&$ac_builddir&;t t
24579 s&@abs_builddir@&$ac_abs_builddir&;t t
24580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24581 s&@INSTALL@&$ac_INSTALL&;t t
24582 $ac_datarootdir_hack
24583 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24584
24585 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24586 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24587 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24588 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24589 which seems to be undefined. Please make sure it is defined." >&5
24590 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24591 which seems to be undefined. Please make sure it is defined." >&2;}
24592
24593 rm -f "$tmp/stdin"
24594 case $ac_file in
24595 -) cat "$tmp/out"; rm -f "$tmp/out";;
24596 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24597 esac
24598 ;;
24599 :H)
24600 #
24601 # CONFIG_HEADER
24602 #
24603 _ACEOF
24604
24605 # Transform confdefs.h into a sed script `conftest.defines', that
24606 # substitutes the proper values into config.h.in to produce config.h.
24607 rm -f conftest.defines conftest.tail
24608 # First, append a space to every undef/define line, to ease matching.
24609 echo 's/$/ /' >conftest.defines
24610 # Then, protect against being on the right side of a sed subst, or in
24611 # an unquoted here document, in config.status. If some macros were
24612 # called several times there might be several #defines for the same
24613 # symbol, which is useless. But do not sort them, since the last
24614 # AC_DEFINE must be honored.
24615 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24616 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24617 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24618 # PARAMS is the parameter list in the macro definition--in most cases, it's
24619 # just an empty string.
24620 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24621 ac_dB='\\)[ (].*,\\1define\\2'
24622 ac_dC=' '
24623 ac_dD=' ,'
24624
24625 uniq confdefs.h |
24626 sed -n '
24627 t rset
24628 :rset
24629 s/^[ ]*#[ ]*define[ ][ ]*//
24630 t ok
24631 d
24632 :ok
24633 s/[\\&,]/\\&/g
24634 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24635 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24636 ' >>conftest.defines
24637
24638 # Remove the space that was appended to ease matching.
24639 # Then replace #undef with comments. This is necessary, for
24640 # example, in the case of _POSIX_SOURCE, which is predefined and required
24641 # on some systems where configure will not decide to define it.
24642 # (The regexp can be short, since the line contains either #define or #undef.)
24643 echo 's/ $//
24644 s,^[ #]*u.*,/* & */,' >>conftest.defines
24645
24646 # Break up conftest.defines:
24647 ac_max_sed_lines=50
24648
24649 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24650 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24651 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24652 # et cetera.
24653 ac_in='$ac_file_inputs'
24654 ac_out='"$tmp/out1"'
24655 ac_nxt='"$tmp/out2"'
24656
24657 while :
24658 do
24659 # Write a here document:
24660 cat >>$CONFIG_STATUS <<_ACEOF
24661 # First, check the format of the line:
24662 cat >"\$tmp/defines.sed" <<\\CEOF
24663 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24664 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24665 b
24666 :def
24667 _ACEOF
24668 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24669 echo 'CEOF
24670 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24671 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24672 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24673 grep . conftest.tail >/dev/null || break
24674 rm -f conftest.defines
24675 mv conftest.tail conftest.defines
24676 done
24677 rm -f conftest.defines conftest.tail
24678
24679 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24680 cat >>$CONFIG_STATUS <<\_ACEOF
24681 if test x"$ac_file" != x-; then
24682 echo "/* $configure_input */" >"$tmp/config.h"
24683 cat "$ac_result" >>"$tmp/config.h"
24684 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24685 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24686 echo "$as_me: $ac_file is unchanged" >&6;}
24687 else
24688 rm -f $ac_file
24689 mv "$tmp/config.h" $ac_file
24690 fi
24691 else
24692 echo "/* $configure_input */"
24693 cat "$ac_result"
24694 fi
24695 rm -f "$tmp/out12"
24696 ;;
24697
24698 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24699 echo "$as_me: executing $ac_file commands" >&6;}
24700 ;;
24701 esac
24702
24703
24704 case $ac_file$ac_mode in
24705 "default":C)
24706
24707 ### Make the necessary directories, if they don't exist.
24708 for dir in etc lisp ; do
24709 test -d ${dir} || mkdir ${dir}
24710 done
24711
24712 # Build src/Makefile from ${srcdir}/src/Makefile.c
24713 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24714 # This must be done after src/config.h is built, since we rely on that file.
24715
24716 # Now get this: Some word that is part of the ${srcdir} directory name
24717 # or the ${configuration} value might, just might, happen to be an
24718 # identifier like `sun4' or `i386' or something, and be predefined by
24719 # the C preprocessor to some helpful value like 1, or maybe the empty
24720 # string. Needless to say consequent macro substitutions are less
24721 # than conducive to the makefile finding the correct directory.
24722 undefs="`echo $top_srcdir $configuration $canonical |
24723 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24724 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24725 `"
24726
24727 echo creating src/epaths.h
24728 ${MAKE-make} epaths-force
24729
24730 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24731 # `..' to `. .' unless invoked with -traditional
24732
24733 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24734 CPPFLAGS="$CPPFLAGS -traditional"
24735 fi
24736
24737 echo creating lib-src/Makefile
24738 ( cd lib-src
24739 rm -f junk.c junk1.c junk2.c
24740 sed -e '/start of cpp stuff/q' \
24741 < Makefile.c > junk1.c
24742 sed -e '1,/start of cpp stuff/d'\
24743 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24744 < Makefile.c > junk.c
24745 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24746 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24747 cat junk1.c junk2.c > Makefile.new
24748 rm -f junk.c junk1.c junk2.c
24749 chmod 444 Makefile.new
24750 mv -f Makefile.new Makefile
24751 )
24752
24753 echo creating src/Makefile
24754 ( cd src
24755 rm -f junk.c junk1.c junk2.c
24756 sed -e '/start of cpp stuff/q' \
24757 < Makefile.c > junk1.c
24758 sed -e '1,/start of cpp stuff/d'\
24759 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24760 < Makefile.c > junk.c
24761 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24762 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24763 cat junk1.c junk2.c > Makefile.new
24764 rm -f junk.c junk1.c junk2.c
24765 chmod 444 Makefile.new
24766 mv -f Makefile.new Makefile
24767 )
24768
24769 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24770 echo creating src/.gdbinit
24771 echo source $srcdir/src/.gdbinit > src/.gdbinit
24772 fi
24773
24774 # This is how we know whether to re-run configure in certain cases.
24775 touch src/config.stamp
24776
24777 ;;
24778
24779 esac
24780 done # for ac_tag
24781
24782
24783 { (exit 0); exit 0; }
24784 _ACEOF
24785 chmod +x $CONFIG_STATUS
24786 ac_clean_files=$ac_clean_files_save
24787
24788
24789 # configure is writing to config.log, and then calls config.status.
24790 # config.status does its own redirection, appending to config.log.
24791 # Unfortunately, on DOS this fails, as config.log is still kept open
24792 # by configure, so config.status won't be able to write to it; its
24793 # output is simply discarded. So we exec the FD to /dev/null,
24794 # effectively closing config.log, so it can be properly (re)opened and
24795 # appended to by config.status. When coming back to configure, we
24796 # need to make the FD available again.
24797 if test "$no_create" != yes; then
24798 ac_cs_success=:
24799 ac_config_status_args=
24800 test "$silent" = yes &&
24801 ac_config_status_args="$ac_config_status_args --quiet"
24802 exec 5>/dev/null
24803 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24804 exec 5>>config.log
24805 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24806 # would make configure fail if this is the last instruction.
24807 $ac_cs_success || { (exit 1); exit 1; }
24808 fi
24809
24810