Regnerate configure.
[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 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 --with-xpm use -lXpm for displaying XPM images
1348 --with-jpeg use -ljpeg for displaying JPEG images
1349 --with-tiff use -ltiff for displaying TIFF images
1350 --with-gif use -lgif (or -lungif) for displaying GIF images
1351 --with-png use -lpng for displaying PNG images
1352 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1353 --with-rsvg use -lrsvg-2 for displaying SVG images
1354 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xaw3d don't use Xaw3d
1358 --without-xim don't use X11 XIM
1359 --without-carbon don't use Carbon GUI on Mac OS X
1360 --without-dbus use D-Bus
1361 --with-pkg-config-prog=PATH
1362 Path to pkg-config for finding GTK and librsvg
1363 --with-x use the X Window System
1364
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1373 CPP C preprocessor
1374 XMKMF Path to xmkmf, Makefile generator for X Window System
1375
1376 Use these variables to override the choices made by `configure' or to help
1377 it to find libraries and programs with nonstandard names/locations.
1378
1379 _ACEOF
1380 ac_status=$?
1381 fi
1382
1383 if test "$ac_init_help" = "recursive"; then
1384 # If there are subdirs, report their specific --help.
1385 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1386 test -d "$ac_dir" || continue
1387 ac_builddir=.
1388
1389 case "$ac_dir" in
1390 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1391 *)
1392 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1393 # A ".." for each directory in $ac_dir_suffix.
1394 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1395 case $ac_top_builddir_sub in
1396 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1397 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1398 esac ;;
1399 esac
1400 ac_abs_top_builddir=$ac_pwd
1401 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1402 # for backward compatibility:
1403 ac_top_builddir=$ac_top_build_prefix
1404
1405 case $srcdir in
1406 .) # We are building in place.
1407 ac_srcdir=.
1408 ac_top_srcdir=$ac_top_builddir_sub
1409 ac_abs_top_srcdir=$ac_pwd ;;
1410 [\\/]* | ?:[\\/]* ) # Absolute name.
1411 ac_srcdir=$srcdir$ac_dir_suffix;
1412 ac_top_srcdir=$srcdir
1413 ac_abs_top_srcdir=$srcdir ;;
1414 *) # Relative name.
1415 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1416 ac_top_srcdir=$ac_top_build_prefix$srcdir
1417 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1418 esac
1419 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1420
1421 cd "$ac_dir" || { ac_status=$?; continue; }
1422 # Check for guested configure.
1423 if test -f "$ac_srcdir/configure.gnu"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1426 elif test -f "$ac_srcdir/configure"; then
1427 echo &&
1428 $SHELL "$ac_srcdir/configure" --help=recursive
1429 else
1430 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1431 fi || ac_status=$?
1432 cd "$ac_pwd" || { ac_status=$?; break; }
1433 done
1434 fi
1435
1436 test -n "$ac_init_help" && exit $ac_status
1437 if $ac_init_version; then
1438 cat <<\_ACEOF
1439 emacs configure 23.0.50
1440 generated by GNU Autoconf 2.61
1441
1442 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1443 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1444 This configure script is free software; the Free Software Foundation
1445 gives unlimited permission to copy, distribute and modify it.
1446 _ACEOF
1447 exit
1448 fi
1449 cat >config.log <<_ACEOF
1450 This file contains any messages produced by compilers while
1451 running configure, to aid debugging if configure makes a mistake.
1452
1453 It was created by emacs $as_me 23.0.50, which was
1454 generated by GNU Autoconf 2.61. Invocation command line was
1455
1456 $ $0 $@
1457
1458 _ACEOF
1459 exec 5>>config.log
1460 {
1461 cat <<_ASUNAME
1462 ## --------- ##
1463 ## Platform. ##
1464 ## --------- ##
1465
1466 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1467 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1468 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1469 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1470 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1471
1472 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1473 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1474
1475 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1476 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1477 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1478 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1479 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1480 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1481 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1482
1483 _ASUNAME
1484
1485 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1486 for as_dir in $PATH
1487 do
1488 IFS=$as_save_IFS
1489 test -z "$as_dir" && as_dir=.
1490 echo "PATH: $as_dir"
1491 done
1492 IFS=$as_save_IFS
1493
1494 } >&5
1495
1496 cat >&5 <<_ACEOF
1497
1498
1499 ## ----------- ##
1500 ## Core tests. ##
1501 ## ----------- ##
1502
1503 _ACEOF
1504
1505
1506 # Keep a trace of the command line.
1507 # Strip out --no-create and --no-recursion so they do not pile up.
1508 # Strip out --silent because we don't want to record it for future runs.
1509 # Also quote any args containing shell meta-characters.
1510 # Make two passes to allow for proper duplicate-argument suppression.
1511 ac_configure_args=
1512 ac_configure_args0=
1513 ac_configure_args1=
1514 ac_must_keep_next=false
1515 for ac_pass in 1 2
1516 do
1517 for ac_arg
1518 do
1519 case $ac_arg in
1520 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1521 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1522 | -silent | --silent | --silen | --sile | --sil)
1523 continue ;;
1524 *\'*)
1525 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1526 esac
1527 case $ac_pass in
1528 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1529 2)
1530 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1531 if test $ac_must_keep_next = true; then
1532 ac_must_keep_next=false # Got value, back to normal.
1533 else
1534 case $ac_arg in
1535 *=* | --config-cache | -C | -disable-* | --disable-* \
1536 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1537 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1538 | -with-* | --with-* | -without-* | --without-* | --x)
1539 case "$ac_configure_args0 " in
1540 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1541 esac
1542 ;;
1543 -* ) ac_must_keep_next=true ;;
1544 esac
1545 fi
1546 ac_configure_args="$ac_configure_args '$ac_arg'"
1547 ;;
1548 esac
1549 done
1550 done
1551 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1552 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1553
1554 # When interrupted or exit'd, cleanup temporary files, and complete
1555 # config.log. We remove comments because anyway the quotes in there
1556 # would cause problems or look ugly.
1557 # WARNING: Use '\'' to represent an apostrophe within the trap.
1558 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1559 trap 'exit_status=$?
1560 # Save into config.log some information that might help in debugging.
1561 {
1562 echo
1563
1564 cat <<\_ASBOX
1565 ## ---------------- ##
1566 ## Cache variables. ##
1567 ## ---------------- ##
1568 _ASBOX
1569 echo
1570 # The following way of writing the cache mishandles newlines in values,
1571 (
1572 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1573 eval ac_val=\$$ac_var
1574 case $ac_val in #(
1575 *${as_nl}*)
1576 case $ac_var in #(
1577 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1578 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1579 esac
1580 case $ac_var in #(
1581 _ | IFS | as_nl) ;; #(
1582 *) $as_unset $ac_var ;;
1583 esac ;;
1584 esac
1585 done
1586 (set) 2>&1 |
1587 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1588 *${as_nl}ac_space=\ *)
1589 sed -n \
1590 "s/'\''/'\''\\\\'\'''\''/g;
1591 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1592 ;; #(
1593 *)
1594 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1595 ;;
1596 esac |
1597 sort
1598 )
1599 echo
1600
1601 cat <<\_ASBOX
1602 ## ----------------- ##
1603 ## Output variables. ##
1604 ## ----------------- ##
1605 _ASBOX
1606 echo
1607 for ac_var in $ac_subst_vars
1608 do
1609 eval ac_val=\$$ac_var
1610 case $ac_val in
1611 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 esac
1613 echo "$ac_var='\''$ac_val'\''"
1614 done | sort
1615 echo
1616
1617 if test -n "$ac_subst_files"; then
1618 cat <<\_ASBOX
1619 ## ------------------- ##
1620 ## File substitutions. ##
1621 ## ------------------- ##
1622 _ASBOX
1623 echo
1624 for ac_var in $ac_subst_files
1625 do
1626 eval ac_val=\$$ac_var
1627 case $ac_val in
1628 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1629 esac
1630 echo "$ac_var='\''$ac_val'\''"
1631 done | sort
1632 echo
1633 fi
1634
1635 if test -s confdefs.h; then
1636 cat <<\_ASBOX
1637 ## ----------- ##
1638 ## confdefs.h. ##
1639 ## ----------- ##
1640 _ASBOX
1641 echo
1642 cat confdefs.h
1643 echo
1644 fi
1645 test "$ac_signal" != 0 &&
1646 echo "$as_me: caught signal $ac_signal"
1647 echo "$as_me: exit $exit_status"
1648 } >&5
1649 rm -f core *.core core.conftest.* &&
1650 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1651 exit $exit_status
1652 ' 0
1653 for ac_signal in 1 2 13 15; do
1654 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1655 done
1656 ac_signal=0
1657
1658 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1659 rm -f -r conftest* confdefs.h
1660
1661 # Predefined preprocessor variables.
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_NAME "$PACKAGE_NAME"
1665 _ACEOF
1666
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1675 _ACEOF
1676
1677
1678 cat >>confdefs.h <<_ACEOF
1679 #define PACKAGE_STRING "$PACKAGE_STRING"
1680 _ACEOF
1681
1682
1683 cat >>confdefs.h <<_ACEOF
1684 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1685 _ACEOF
1686
1687
1688 # Let the site file select an alternate cache file if it wants to.
1689 # Prefer explicitly selected file to automatically selected ones.
1690 if test -n "$CONFIG_SITE"; then
1691 set x "$CONFIG_SITE"
1692 elif test "x$prefix" != xNONE; then
1693 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1694 else
1695 set x "$ac_default_prefix/share/config.site" \
1696 "$ac_default_prefix/etc/config.site"
1697 fi
1698 shift
1699 for ac_site_file
1700 do
1701 if test -r "$ac_site_file"; then
1702 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1703 echo "$as_me: loading site script $ac_site_file" >&6;}
1704 sed 's/^/| /' "$ac_site_file" >&5
1705 . "$ac_site_file"
1706 fi
1707 done
1708
1709 if test -r "$cache_file"; then
1710 # Some versions of bash will fail to source /dev/null (special
1711 # files actually), so we avoid doing that.
1712 if test -f "$cache_file"; then
1713 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1714 echo "$as_me: loading cache $cache_file" >&6;}
1715 case $cache_file in
1716 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1717 *) . "./$cache_file";;
1718 esac
1719 fi
1720 else
1721 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1722 echo "$as_me: creating cache $cache_file" >&6;}
1723 >$cache_file
1724 fi
1725
1726 ac_header_list="$ac_header_list sys/time.h"
1727 ac_header_list="$ac_header_list unistd.h"
1728 ac_func_list="$ac_func_list alarm"
1729 # Check that the precious variables saved in the cache have kept the same
1730 # value.
1731 ac_cache_corrupted=false
1732 for ac_var in $ac_precious_vars; do
1733 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1734 eval ac_new_set=\$ac_env_${ac_var}_set
1735 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1736 eval ac_new_val=\$ac_env_${ac_var}_value
1737 case $ac_old_set,$ac_new_set in
1738 set,)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,set)
1743 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1744 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1745 ac_cache_corrupted=: ;;
1746 ,);;
1747 *)
1748 if test "x$ac_old_val" != "x$ac_new_val"; then
1749 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1750 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1751 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1752 echo "$as_me: former value: $ac_old_val" >&2;}
1753 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1754 echo "$as_me: current value: $ac_new_val" >&2;}
1755 ac_cache_corrupted=:
1756 fi;;
1757 esac
1758 # Pass precious variables to config.status.
1759 if test "$ac_new_set" = set; then
1760 case $ac_new_val in
1761 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1762 *) ac_arg=$ac_var=$ac_new_val ;;
1763 esac
1764 case " $ac_configure_args " in
1765 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1766 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1767 esac
1768 fi
1769 done
1770 if $ac_cache_corrupted; then
1771 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1772 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1773 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1774 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1775 { (exit 1); exit 1; }; }
1776 fi
1777
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 ac_ext=c
1803 ac_cpp='$CPP $CPPFLAGS'
1804 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1805 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1806 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1807
1808
1809 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1810
1811
1812
1813 test "$program_prefix" != NONE &&
1814 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1815 # Use a double $ so make ignores it.
1816 test "$program_suffix" != NONE &&
1817 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1818 # Double any \ or $. echo might interpret backslashes.
1819 # By default was `s,x,x', remove it if useless.
1820 cat <<\_ACEOF >conftest.sed
1821 s/[\\$]/&&/g;s/;s,x,x,$//
1822 _ACEOF
1823 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1824 rm -f conftest.sed
1825
1826
1827 lispdir='${datadir}/emacs/${version}/lisp'
1828 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1829 '${datadir}/emacs/site-lisp'
1830 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1831 etcdir='${datadir}/emacs/${version}/etc'
1832 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1833 docdir='${datadir}/emacs/${version}/etc'
1834 gamedir='${localstatedir}/games/emacs'
1835
1836 gameuser=games
1837
1838
1839
1840
1841 # Check whether --with-gcc was given.
1842 if test "${with_gcc+set}" = set; then
1843 withval=$with_gcc;
1844 else
1845 with_gcc=yes
1846 fi
1847
1848
1849
1850 # Check whether --with-pop was given.
1851 if test "${with_pop+set}" = set; then
1852 withval=$with_pop;
1853 else
1854 with_pop=yes
1855 fi
1856
1857 if test "$with_pop" = yes; then
1858 cat >>confdefs.h <<\_ACEOF
1859 #define MAIL_USE_POP 1
1860 _ACEOF
1861
1862 fi
1863
1864
1865
1866 # Check whether --with-kerberos was given.
1867 if test "${with_kerberos+set}" = set; then
1868 withval=$with_kerberos;
1869 else
1870 with_kerberos=no
1871 fi
1872
1873 if test "$with_kerberos" = yes; then
1874 cat >>confdefs.h <<\_ACEOF
1875 #define KERBEROS 1
1876 _ACEOF
1877
1878 fi
1879
1880
1881
1882 # Check whether --with-kerberos5 was given.
1883 if test "${with_kerberos5+set}" = set; then
1884 withval=$with_kerberos5;
1885 else
1886 with_kerberos5=no
1887 fi
1888
1889 if test "${with_kerberos5}" = yes; then
1890 if test "${with_kerberos}" != yes; then
1891 with_kerberos=yes
1892 cat >>confdefs.h <<\_ACEOF
1893 #define KERBEROS 1
1894 _ACEOF
1895
1896 fi
1897
1898 cat >>confdefs.h <<\_ACEOF
1899 #define KERBEROS5 1
1900 _ACEOF
1901
1902 fi
1903
1904
1905 # Check whether --with-hesiod was given.
1906 if test "${with_hesiod+set}" = set; then
1907 withval=$with_hesiod;
1908 else
1909 with_hesiod=no
1910 fi
1911
1912 if test "$with_hesiod" = yes; then
1913
1914 cat >>confdefs.h <<\_ACEOF
1915 #define HESIOD 1
1916 _ACEOF
1917
1918 fi
1919
1920
1921 # Check whether --with-sound was given.
1922 if test "${with_sound+set}" = set; then
1923 withval=$with_sound;
1924 else
1925 with_sound=yes
1926 fi
1927
1928
1929
1930 # Check whether --with-x-toolkit was given.
1931 if test "${with_x_toolkit+set}" = set; then
1932 withval=$with_x_toolkit; case "${withval}" in
1933 y | ye | yes ) val=gtk ;;
1934 n | no ) val=no ;;
1935 l | lu | luc | luci | lucid ) val=lucid ;;
1936 a | at | ath | athe | athen | athena ) val=athena ;;
1937 m | mo | mot | moti | motif ) val=motif ;;
1938 g | gt | gtk ) val=gtk ;;
1939 * )
1940 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1941 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1942 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1943 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1944 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1945 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1946 { (exit 1); exit 1; }; }
1947 ;;
1948 esac
1949 with_x_toolkit=$val
1950
1951 fi
1952
1953
1954
1955 # Check whether --with-xpm was given.
1956 if test "${with_xpm+set}" = set; then
1957 withval=$with_xpm;
1958 else
1959 with_xpm=no
1960 fi
1961
1962
1963 # Check whether --with-jpeg was given.
1964 if test "${with_jpeg+set}" = set; then
1965 withval=$with_jpeg;
1966 else
1967 with_jpeg=no
1968 fi
1969
1970
1971 # Check whether --with-tiff was given.
1972 if test "${with_tiff+set}" = set; then
1973 withval=$with_tiff;
1974 else
1975 with_tiff=no
1976 fi
1977
1978
1979 # Check whether --with-gif was given.
1980 if test "${with_gif+set}" = set; then
1981 withval=$with_gif;
1982 else
1983 with_gif=no
1984 fi
1985
1986
1987 # Check whether --with-png was given.
1988 if test "${with_png+set}" = set; then
1989 withval=$with_png;
1990 else
1991 with_png=no
1992 fi
1993
1994
1995 # Check whether --with-gpm was given.
1996 if test "${with_gpm+set}" = set; then
1997 withval=$with_gpm;
1998 else
1999 with_gpm=no
2000 fi
2001
2002
2003 # Check whether --with-rsvg was given.
2004 if test "${with_rsvg+set}" = set; then
2005 withval=$with_rsvg;
2006 else
2007 with_rsvg=no
2008 fi
2009
2010
2011 # Check whether --with-gtk was given.
2012 if test "${with_gtk+set}" = set; then
2013 withval=$with_gtk;
2014 else
2015 with_gtk=no
2016 fi
2017
2018
2019 # Check whether --with-toolkit-scroll-bars was given.
2020 if test "${with_toolkit_scroll_bars+set}" = set; then
2021 withval=$with_toolkit_scroll_bars;
2022 else
2023 with_toolkit_scroll_bars=yes
2024 fi
2025
2026
2027 # Check whether --with-xaw3d was given.
2028 if test "${with_xaw3d+set}" = set; then
2029 withval=$with_xaw3d;
2030 else
2031 with_xaw3d=yes
2032 fi
2033
2034
2035 # Check whether --with-xim was given.
2036 if test "${with_xim+set}" = set; then
2037 withval=$with_xim;
2038 else
2039 with_xim=yes
2040 fi
2041
2042
2043 # Check whether --with-carbon was given.
2044 if test "${with_carbon+set}" = set; then
2045 withval=$with_carbon;
2046 else
2047 with_carbon=yes
2048 fi
2049
2050
2051 # Check whether --with-dbus was given.
2052 if test "${with_dbus+set}" = set; then
2053 withval=$with_dbus;
2054 else
2055 with_dbus=yes
2056 fi
2057
2058
2059
2060 # Check whether --with-pkg-config-prog was given.
2061 if test "${with_pkg_config_prog+set}" = set; then
2062 withval=$with_pkg_config_prog;
2063 fi
2064
2065 if test "X${with_pkg_config_prog}" != X; then
2066 if test "${with_pkg_config_prog}" != yes; then
2067 PKG_CONFIG="${with_pkg_config_prog}"
2068 fi
2069 fi
2070
2071 # Check whether --enable-carbon-app was given.
2072 if test "${enable_carbon_app+set}" = set; then
2073 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2074 fi
2075
2076
2077 # Check whether --enable-asserts was given.
2078 if test "${enable_asserts+set}" = set; then
2079 enableval=$enable_asserts; USE_XASSERTS=$enableval
2080 else
2081 USE_XASSERTS=no
2082 fi
2083
2084
2085 # Check whether --enable-maintainer-mode was given.
2086 if test "${enable_maintainer_mode+set}" = set; then
2087 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2088 else
2089 USE_MAINTAINER_MODE=no
2090 fi
2091
2092 if test $USE_MAINTAINER_MODE = yes; then
2093 MAINT=
2094 else
2095 MAINT=#
2096 fi
2097
2098
2099 # Check whether --enable-locallisppath was given.
2100 if test "${enable_locallisppath+set}" = set; then
2101 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2102 locallisppath=
2103 elif test "${enableval}" != "yes"; then
2104 locallisppath=${enableval}
2105 fi
2106 fi
2107
2108
2109 #### Make srcdir absolute, if it isn't already. It's important to
2110 #### avoid running the path through pwd unnecessarily, since pwd can
2111 #### give you automounter prefixes, which can go away. We do all this
2112 #### so Emacs can find its files when run uninstalled.
2113 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2114 unset CDPATH
2115 case "${srcdir}" in
2116 /* ) ;;
2117 . )
2118 ## We may be able to use the $PWD environment variable to make this
2119 ## absolute. But sometimes PWD is inaccurate.
2120 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2121 ## but that tested only for a well-formed and valid PWD,
2122 ## it did not object when PWD was well-formed and valid but just wrong.
2123 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2124 then
2125 srcdir="$PWD"
2126 else
2127 srcdir="`(cd ${srcdir}; pwd)`"
2128 fi
2129 ;;
2130 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2131 esac
2132
2133 #### Check if the source directory already has a configured system in it.
2134 if test `pwd` != `(cd ${srcdir} && pwd)` \
2135 && test -f "${srcdir}/src/config.h" ; then
2136 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2137 as a build directory right now; it has been configured in its own
2138 right. To configure in another directory as well, you MUST
2139 use GNU make. If you do not have GNU make, then you must
2140 now do \`make distclean' in ${srcdir},
2141 and then run $0 again." >&5
2142 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2143 as a build directory right now; it has been configured in its own
2144 right. To configure in another directory as well, you MUST
2145 use GNU make. If you do not have GNU make, then you must
2146 now do \`make distclean' in ${srcdir},
2147 and then run $0 again." >&2;}
2148 fi
2149
2150 #### Given the configuration name, set machfile and opsysfile to the
2151 #### names of the m/*.h and s/*.h files we should use.
2152
2153 ### Canonicalize the configuration name.
2154
2155 ac_aux_dir=
2156 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2157 if test -f "$ac_dir/install-sh"; then
2158 ac_aux_dir=$ac_dir
2159 ac_install_sh="$ac_aux_dir/install-sh -c"
2160 break
2161 elif test -f "$ac_dir/install.sh"; then
2162 ac_aux_dir=$ac_dir
2163 ac_install_sh="$ac_aux_dir/install.sh -c"
2164 break
2165 elif test -f "$ac_dir/shtool"; then
2166 ac_aux_dir=$ac_dir
2167 ac_install_sh="$ac_aux_dir/shtool install -c"
2168 break
2169 fi
2170 done
2171 if test -z "$ac_aux_dir"; then
2172 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2173 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2174 { (exit 1); exit 1; }; }
2175 fi
2176
2177 # These three variables are undocumented and unsupported,
2178 # and are intended to be withdrawn in a future Autoconf release.
2179 # They can cause serious problems if a builder's source tree is in a directory
2180 # whose full name contains unusual characters.
2181 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2182 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2183 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2184
2185
2186 # Make sure we can run config.sub.
2187 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2188 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2189 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2190 { (exit 1); exit 1; }; }
2191
2192 { echo "$as_me:$LINENO: checking build system type" >&5
2193 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2194 if test "${ac_cv_build+set}" = set; then
2195 echo $ECHO_N "(cached) $ECHO_C" >&6
2196 else
2197 ac_build_alias=$build_alias
2198 test "x$ac_build_alias" = x &&
2199 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2200 test "x$ac_build_alias" = x &&
2201 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2202 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2203 { (exit 1); exit 1; }; }
2204 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2205 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2206 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2207 { (exit 1); exit 1; }; }
2208
2209 fi
2210 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2211 echo "${ECHO_T}$ac_cv_build" >&6; }
2212 case $ac_cv_build in
2213 *-*-*) ;;
2214 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2215 echo "$as_me: error: invalid value of canonical build" >&2;}
2216 { (exit 1); exit 1; }; };;
2217 esac
2218 build=$ac_cv_build
2219 ac_save_IFS=$IFS; IFS='-'
2220 set x $ac_cv_build
2221 shift
2222 build_cpu=$1
2223 build_vendor=$2
2224 shift; shift
2225 # Remember, the first character of IFS is used to create $*,
2226 # except with old shells:
2227 build_os=$*
2228 IFS=$ac_save_IFS
2229 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2230
2231
2232 { echo "$as_me:$LINENO: checking host system type" >&5
2233 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2234 if test "${ac_cv_host+set}" = set; then
2235 echo $ECHO_N "(cached) $ECHO_C" >&6
2236 else
2237 if test "x$host_alias" = x; then
2238 ac_cv_host=$ac_cv_build
2239 else
2240 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2241 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2242 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2243 { (exit 1); exit 1; }; }
2244 fi
2245
2246 fi
2247 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2248 echo "${ECHO_T}$ac_cv_host" >&6; }
2249 case $ac_cv_host in
2250 *-*-*) ;;
2251 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2252 echo "$as_me: error: invalid value of canonical host" >&2;}
2253 { (exit 1); exit 1; }; };;
2254 esac
2255 host=$ac_cv_host
2256 ac_save_IFS=$IFS; IFS='-'
2257 set x $ac_cv_host
2258 shift
2259 host_cpu=$1
2260 host_vendor=$2
2261 shift; shift
2262 # Remember, the first character of IFS is used to create $*,
2263 # except with old shells:
2264 host_os=$*
2265 IFS=$ac_save_IFS
2266 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2267
2268
2269 canonical=$host
2270 configuration=${host_alias-${build_alias-$host}}
2271
2272
2273
2274 ### If you add support for a new configuration, add code to this
2275 ### switch statement to recognize your configuration name and select
2276 ### the appropriate operating system and machine description files.
2277
2278 ### You would hope that you could choose an m/*.h file pretty much
2279 ### based on the machine portion of the configuration name, and an s-
2280 ### file based on the operating system portion. However, it turns out
2281 ### that each m/*.h file is pretty manufacturer-specific - for
2282 ### example hp9000s300.h is a 68000 machine;
2283 ### mips.h, pmax.h are all MIPS
2284 ### machines. So we basically have to have a special case for each
2285 ### configuration name.
2286 ###
2287 ### As far as handling version numbers on operating systems is
2288 ### concerned, make sure things will fail in a fixable way. If
2289 ### /etc/MACHINES doesn't say anything about version numbers, be
2290 ### prepared to handle anything reasonably. If version numbers
2291 ### matter, be sure /etc/MACHINES says something about it.
2292 ###
2293 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2294 ### "System V Release 4"; he writes, "The old convention encouraged
2295 ### confusion between `system' and `release' levels'."
2296
2297 machine='' opsys='' unported=no
2298 case "${canonical}" in
2299
2300 ## FreeBSD ports
2301 *-*-freebsd* )
2302 opsys=freebsd
2303 case "${canonical}" in
2304 alpha*-*-freebsd*) machine=alpha ;;
2305 ia64-*-freebsd*) machine=ia64 ;;
2306 sparc64-*-freebsd*) machine=sparc ;;
2307 powerpc-*-freebsd*) machine=macppc ;;
2308 i[3456]86-*-freebsd*) machine=intel386 ;;
2309 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2310 esac
2311 ;;
2312
2313 ## FreeBSD kernel + glibc based userland
2314 *-*-kfreebsd*gnu* )
2315 opsys=gnu-kfreebsd
2316 case "${canonical}" in
2317 alpha*-*-kfreebsd*) machine=alpha ;;
2318 ia64-*-kfreebsd*) machine=ia64 ;;
2319 sparc64-*-kfreebsd*) machine=sparc ;;
2320 powerpc-*-kfreebsd*) machine=macppc ;;
2321 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2322 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2323 esac
2324 ;;
2325
2326 ## NetBSD ports
2327 *-*-netbsd* )
2328 opsys=netbsd
2329 if test -f /usr/lib/crti.o; then
2330
2331 cat >>confdefs.h <<\_ACEOF
2332 #define HAVE_CRTIN
2333 _ACEOF
2334
2335 fi
2336
2337 case "${canonical}" in
2338 alpha*-*-netbsd*) machine=alpha ;;
2339 i[3456]86-*-netbsd*) machine=intel386 ;;
2340 m68k-*-netbsd*)
2341 # This is somewhat bogus.
2342 machine=hp9000s300 ;;
2343 mips-*-netbsd*) machine=pmax ;;
2344 mipsel-*-netbsd*) machine=pmax ;;
2345 mipseb-*-netbsd*) machine=pmax ;;
2346 powerpc-*-netbsd*) machine=macppc ;;
2347 sparc*-*-netbsd*) machine=sparc ;;
2348 vax-*-netbsd*) machine=vax ;;
2349 arm-*-netbsd*) machine=arm ;;
2350 x86_64-*-netbsd*) machine=amdx86-64 ;;
2351 hppa-*-netbsd*) machine=hp800 ;;
2352 esac
2353 ;;
2354
2355 ## OpenBSD ports
2356 *-*-openbsd* )
2357 opsys=openbsd
2358 case "${canonical}" in
2359 alpha*-*-openbsd*) machine=alpha ;;
2360 arm-*-openbsd*) machine=arm ;;
2361 hppa-*-openbsd*) machine=hp9000s300 ;;
2362 i386-*-openbsd*) machine=intel386 ;;
2363 m68k-*-openbsd*) machine=hp9000s300 ;;
2364 mips64-*-openbsd*) machine=mips64 ;;
2365 powerpc-*-openbsd*) machine=macppc ;;
2366 sparc*-*-openbsd*) machine=sparc ;;
2367 vax-*-openbsd*) machine=vax ;;
2368 x86_64-*-openbsd*) machine=amdx86-64 ;;
2369 esac
2370 ;;
2371
2372 ## LynxOS ports
2373 *-*-lynxos* )
2374 opsys=lynxos
2375 case "${canonical}" in
2376 i[3456]86-*-lynxos*) machine=intel386 ;;
2377 powerpc-*-lynxos*) machine=powerpc ;;
2378 esac
2379 ;;
2380
2381 ## BSDI ports
2382 *-*-bsdi* )
2383 opsys=bsdi
2384 case "${canonical}" in
2385 i[345]86-*-bsdi*) machine=intel386 ;;
2386 sparc-*-bsdi*) machine=sparc ;;
2387 powerpc-*-bsdi*) machine=macppc ;;
2388 esac
2389 case "${canonical}" in
2390 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2391 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2392 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2393 *-*-bsdi3* ) opsys=bsdos3 ;;
2394 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2395 esac
2396 ;;
2397
2398 ## Alpha (DEC) machines.
2399 alpha*-dec-osf* )
2400 machine=alpha opsys=osf1
2401 # This is needed to find X11R6.1 libraries for certain tests.
2402 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2403 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2404 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2405 # due to non-traditional preprocessing with the current compiler
2406 # defaults. OSF 4 can also have that compiler version, and there
2407 # seems always to have been a usable /usr/bin/cpp.
2408 NON_GNU_CPP=/usr/bin/cpp
2409 case "${canonical}" in
2410 alpha*-dec-osf[5-9]*)
2411 opsys=osf5-0 ;;
2412 esac
2413 ;;
2414
2415 alpha*-*-linux-gnu* )
2416 machine=alpha opsys=gnu-linux
2417 ;;
2418
2419 arm*-*-linux-gnu* )
2420 machine=arm opsys=gnu-linux
2421 ;;
2422
2423 ## Apple Darwin / Mac OS X
2424 *-apple-darwin* )
2425 case "${canonical}" in
2426 i[3456]86-* ) machine=intel386 ;;
2427 powerpc-* ) machine=powermac ;;
2428 * ) unported=yes ;;
2429 esac
2430 opsys=darwin
2431 # Define CPP as follows to make autoconf work correctly.
2432 CPP="${CC-cc} -E -no-cpp-precomp"
2433 # Use fink packages if available.
2434 if test -d /sw/include && test -d /sw/lib; then
2435 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2436 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2437 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2438 fi
2439 ;;
2440
2441 ## Compaq Nonstop
2442 mips-compaq-nonstopux* )
2443 machine=nonstopux opsys=nonstopux
2444 ;;
2445
2446 ## Cubix QBx/386
2447 i[3456]86-cubix-sysv* )
2448 machine=intel386 opsys=usg5-3
2449 ;;
2450
2451 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2452 machine=pmax opsys=bsd4-2
2453 ;;
2454 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2455 machine=pmax opsys=bsd4-3
2456 ;;
2457 mips-dec-ultrix* )
2458 machine=pmax opsys=ultrix4-3
2459 ;;
2460 mips-dec-osf* )
2461 machine=pmax opsys=osf1
2462 ;;
2463 mips-dec-mach_bsd4.3* )
2464 machine=pmax opsys=mach-bsd4-3
2465 ;;
2466
2467 ## HP 9000 series 200 or 300
2468 m68*-hp-bsd* )
2469 machine=hp9000s300 opsys=bsd4-3
2470 ;;
2471 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2472 m68*-hp-hpux* )
2473 case "`uname -r`" in
2474 ## Someone's system reports A.B8.05 for this.
2475 ## I wonder what other possibilities there are.
2476 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2477 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2478 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2479 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2480 *) machine=hp9000s300 opsys=hpux ;;
2481 esac
2482 ;;
2483
2484 ## HP 9000 series 700 and 800, running HP/UX
2485 hppa*-hp-hpux7* )
2486 machine=hp800 opsys=hpux
2487 ;;
2488 hppa*-hp-hpux8* )
2489 machine=hp800 opsys=hpux8
2490 ;;
2491 hppa*-hp-hpux9shr* )
2492 machine=hp800 opsys=hpux9shr
2493 ;;
2494 hppa*-hp-hpux9* )
2495 machine=hp800 opsys=hpux9
2496 ;;
2497 hppa*-hp-hpux10.2* )
2498 machine=hp800 opsys=hpux10-20
2499 ;;
2500 hppa*-hp-hpux10* )
2501 machine=hp800 opsys=hpux10
2502 ;;
2503 hppa*-hp-hpux1[1-9]* )
2504 machine=hp800 opsys=hpux11
2505 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2506 ;;
2507
2508 hppa*-*-linux-gnu* )
2509 machine=hp800 opsys=gnu-linux
2510 ;;
2511
2512 ## HP 9000 series 700 and 800, running HP/UX
2513 hppa*-hp-hpux* )
2514 ## Cross-compilation? Nah!
2515 case "`uname -r`" in
2516 ## Someone's system reports A.B8.05 for this.
2517 ## I wonder what other possibilities there are.
2518 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2519 *.08.* ) machine=hp800 opsys=hpux8 ;;
2520 *.09.* ) machine=hp800 opsys=hpux9 ;;
2521 *) machine=hp800 opsys=hpux10 ;;
2522 esac
2523 ;;
2524 hppa*-*-nextstep* )
2525 machine=hp800 opsys=nextstep
2526 ;;
2527
2528 ## IBM machines
2529 i370-ibm-aix*)
2530 machine=ibm370aix opsys=usg5-3
2531 ;;
2532 s390-*-linux-gnu* )
2533 machine=ibms390 opsys=gnu-linux
2534 ;;
2535 s390x-*-linux-gnu* )
2536 machine=ibms390x opsys=gnu-linux
2537 ;;
2538 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2539 machine=ibmrs6000 opsys=aix3-1
2540 ;;
2541 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2542 machine=ibmrs6000 opsys=aix3-2-5
2543 ;;
2544 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2545 machine=ibmrs6000 opsys=aix4-1
2546 ;;
2547 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2548 machine=ibmrs6000 opsys=aix4-2
2549 ;;
2550 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2551 machine=ibmrs6000 opsys=aix4-2
2552 ;;
2553 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2554 machine=ibmrs6000 opsys=aix4-2
2555 ;;
2556 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2557 machine=ibmrs6000 opsys=aix4
2558 ;;
2559 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2560 machine=ibmrs6000 opsys=aix4-1
2561 ;;
2562 rs6000-ibm-aix* | powerpc-ibm-aix* )
2563 machine=ibmrs6000 opsys=aix3-2
2564 ;;
2565
2566 ## Prime EXL
2567 i[3456]86-prime-sysv* )
2568 machine=i386 opsys=usg5-3
2569 ;;
2570
2571 ## ncr machine running svr4.3.
2572 i[3456]86-ncr-sysv4.3 )
2573 machine=ncr386 opsys=usg5-4-3
2574 ;;
2575
2576 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2577 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2578 i[3456]86-ncr-sysv* )
2579 machine=ncr386 opsys=usg5-4-2
2580 ;;
2581
2582 ## Macintosh PowerPC
2583 powerpc*-*-linux-gnu* )
2584 machine=macppc opsys=gnu-linux
2585 ;;
2586
2587 ## Workstations sold by MIPS
2588 ## This is not necessarily all workstations using the MIPS processor -
2589 ## Irises are produced by SGI, and DECstations by DEC.
2590
2591 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2592 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2593 ## it gives for choosing between the alternatives seems to be "Use
2594 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2595 ## the BSD world." I'll assume that these are instructions for
2596 ## handling two odd situations, and that every other situation
2597 ## should use mips.h and usg5-2-2, they being listed first.
2598 mips-mips-usg* )
2599 machine=mips4
2600 ## Fall through to the general code at the bottom to decide on the OS.
2601 ;;
2602 mips-mips-riscos4* )
2603 machine=mips4 opsys=bsd4-3
2604 NON_GNU_CC="cc -systype bsd43"
2605 NON_GNU_CPP="cc -systype bsd43 -E"
2606 ;;
2607 mips-mips-riscos5* )
2608 machine=mips4 opsys=riscos5
2609 NON_GNU_CC="cc -systype bsd43"
2610 NON_GNU_CPP="cc -systype bsd43 -E"
2611 ;;
2612 mips-mips-bsd* )
2613 machine=mips opsys=bsd4-3
2614 ;;
2615 mips-mips-* )
2616 machine=mips opsys=usg5-2-2
2617 ;;
2618
2619 ## NeXT
2620 m68*-next-* | m68k-*-nextstep* )
2621 machine=m68k opsys=nextstep
2622 ;;
2623
2624 ## NEC EWS4800
2625 mips-nec-sysv4*)
2626 machine=ews4800 opsys=ux4800
2627 ;;
2628
2629 ## Siemens Nixdorf
2630 mips-siemens-sysv* | mips-sni-sysv*)
2631 machine=mips-siemens opsys=usg5-4
2632 NON_GNU_CC=/usr/ccs/bin/cc
2633 NON_GNU_CPP=/usr/ccs/lib/cpp
2634 ;;
2635
2636 ## Silicon Graphics machines
2637 ## Iris 4D
2638 mips-sgi-irix6.5 )
2639 machine=iris4d opsys=irix6-5
2640 # Without defining _LANGUAGE_C, things get masked out in the headers
2641 # so that, for instance, grepping for `free' in stdlib.h fails and
2642 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2643 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2644 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2645 ;;
2646 mips-sgi-irix6* )
2647 machine=iris4d opsys=irix6-0
2648 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2649 # but presumably it does no harm.
2650 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2651 # -32 probably isn't necessary in later v.6s -- anyone know which?
2652 NON_GCC_TEST_OPTIONS=-32
2653 ;;
2654 mips-sgi-irix5.[01]* )
2655 machine=iris4d opsys=irix5-0
2656 ;;
2657 mips-sgi-irix5* | mips-sgi-irix* )
2658 machine=iris4d opsys=irix5-2
2659 ;;
2660
2661 ## Suns
2662 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2663 machine=sparc opsys=gnu-linux
2664 ;;
2665
2666 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2667 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2668 | rs6000-*-solaris2*)
2669 case "${canonical}" in
2670 i[3456]86-*-* ) machine=intel386 ;;
2671 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2672 powerpcle* ) machine=powerpcle ;;
2673 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2674 sparc* ) machine=sparc ;;
2675 * ) unported=yes ;;
2676 esac
2677 case "${canonical}" in
2678 *-sunos5.3* | *-solaris2.3* )
2679 opsys=sol2-3
2680 NON_GNU_CPP=/usr/ccs/lib/cpp
2681 ;;
2682 *-sunos5.4* | *-solaris2.4* )
2683 opsys=sol2-4
2684 NON_GNU_CPP=/usr/ccs/lib/cpp
2685 RANLIB="ar -ts"
2686 ;;
2687 *-sunos5.5* | *-solaris2.5* )
2688 opsys=sol2-5
2689 NON_GNU_CPP=/usr/ccs/lib/cpp
2690 RANLIB="ar -ts"
2691 ;;
2692 *-sunos5.6* | *-solaris2.6* )
2693 opsys=sol2-6
2694 NON_GNU_CPP=/usr/ccs/lib/cpp
2695 RANLIB="ar -ts"
2696 ;;
2697 *-sunos5* | *-solaris* )
2698 opsys=sol2-6
2699 emacs_check_sunpro_c=yes
2700 NON_GNU_CPP=/usr/ccs/lib/cpp
2701 ;;
2702 * ) opsys=bsd4-2 ;;
2703 esac
2704 ## Watch out for a compiler that we know will not work.
2705 case "${canonical}" in
2706 *-solaris* | *-sunos5* )
2707 if [ "x$CC" = x/usr/ucb/cc ]; then
2708 ## /usr/ucb/cc doesn't work;
2709 ## we should find some other compiler that does work.
2710 unset CC
2711 fi
2712 ;;
2713 *) ;;
2714 esac
2715 ;;
2716 sparc-*-nextstep* )
2717 machine=sparc opsys=nextstep
2718 ;;
2719
2720 ## Tandem Integrity S2
2721 mips-tandem-sysv* )
2722 machine=tandem-s2 opsys=usg5-3
2723 ;;
2724
2725 ## Vaxen.
2726 vax-dec-* )
2727 machine=vax
2728 case "${canonical}" in
2729 *-bsd4.1* ) opsys=bsd4-1 ;;
2730 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
2731 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
2732 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
2733 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
2734 *-vms* ) opsys=vms ;;
2735 * ) unported=yes
2736 esac
2737 ;;
2738
2739 ## IA-64
2740 ia64*-*-linux* )
2741 machine=ia64 opsys=gnu-linux
2742 ;;
2743
2744 ## Intel 386 machines where we don't care about the manufacturer
2745 i[3456]86-*-* )
2746 machine=intel386
2747 case "${canonical}" in
2748 *-cygwin ) opsys=cygwin ;;
2749 *-darwin* ) opsys=darwin
2750 CPP="${CC-cc} -E -no-cpp-precomp"
2751 ;;
2752 *-xenix* ) opsys=xenix ;;
2753 *-linux-gnu* ) opsys=gnu-linux ;;
2754 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2755 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2756 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
2757 *-386bsd* ) opsys=386bsd ;;
2758 *-nextstep* ) opsys=nextstep ;;
2759 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
2760 esac
2761 ;;
2762
2763 ## m68k Linux-based GNU system
2764 m68k-*-linux-gnu* )
2765 machine=m68k opsys=gnu-linux
2766 ;;
2767
2768 ## Mips Linux-based GNU system
2769 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
2770 machine=mips opsys=gnu-linux
2771 ;;
2772
2773 ## UXP/DS
2774 sparc-fujitsu-sysv4* )
2775 machine=sparc opsys=uxpds
2776 NON_GNU_CPP=/usr/ccs/lib/cpp
2777 RANLIB="ar -ts"
2778 ;;
2779
2780 ## AMD x86-64 Linux-based GNU system
2781 x86_64-*-linux-gnu* )
2782 machine=amdx86-64 opsys=gnu-linux
2783 ;;
2784
2785 ## Tensilica Xtensa Linux-based GNU system
2786 xtensa-*-linux-gnu* )
2787 machine=xtensa opsys=gnu-linux
2788 ;;
2789
2790 * )
2791 unported=yes
2792 ;;
2793 esac
2794
2795 ### If the code above didn't choose an operating system, just choose
2796 ### an operating system based on the configuration name. You really
2797 ### only want to use this when you have no idea what the right
2798 ### operating system is; if you know what operating systems a machine
2799 ### runs, it's cleaner to make it explicit in the case statement
2800 ### above.
2801 if test x"${opsys}" = x; then
2802 case "${canonical}" in
2803 *-gnu* ) opsys=gnu ;;
2804 *-bsd4.[01] ) opsys=bsd4-1 ;;
2805 *-bsd4.2 ) opsys=bsd4-2 ;;
2806 *-bsd4.3 ) opsys=bsd4-3 ;;
2807 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
2808 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
2809 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
2810 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
2811 *-sysv4.2uw* ) opsys=unixware ;;
2812 *-sysv5uw* ) opsys=unixware ;;
2813 *-sysv5OpenUNIX* ) opsys=unixware ;;
2814 *-sysv4.1* | *-sysvr4.1* )
2815 NON_GNU_CPP=/usr/lib/cpp
2816 opsys=usg5-4 ;;
2817 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
2818 if [ x$NON_GNU_CPP = x ]; then
2819 if [ -f /usr/ccs/lib/cpp ]; then
2820 NON_GNU_CPP=/usr/ccs/lib/cpp
2821 else
2822 NON_GNU_CPP=/lib/cpp
2823 fi
2824 fi
2825 opsys=usg5-4-2 ;;
2826 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
2827 * )
2828 unported=yes
2829 ;;
2830 esac
2831 fi
2832
2833
2834
2835 if test $unported = yes; then
2836 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
2837 Check \`etc/MACHINES' for recognized configuration names." >&5
2838 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
2839 Check \`etc/MACHINES' for recognized configuration names." >&2;}
2840 { (exit 1); exit 1; }; }
2841 fi
2842
2843 machfile="m/${machine}.h"
2844 opsysfile="s/${opsys}.h"
2845
2846
2847 #### Choose a compiler.
2848 test -n "$CC" && cc_specified=yes
2849
2850 # Save the value of CFLAGS that the user specified.
2851 SPECIFIED_CFLAGS="$CFLAGS"
2852
2853 case ${with_gcc} in
2854 "yes" ) CC="gcc" GCC=yes ;;
2855 "no" ) : ${CC=cc} ;;
2856 * )
2857 esac
2858 ac_ext=c
2859 ac_cpp='$CPP $CPPFLAGS'
2860 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2861 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2862 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2863 if test -n "$ac_tool_prefix"; then
2864 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2865 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2866 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2867 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2868 if test "${ac_cv_prog_CC+set}" = set; then
2869 echo $ECHO_N "(cached) $ECHO_C" >&6
2870 else
2871 if test -n "$CC"; then
2872 ac_cv_prog_CC="$CC" # Let the user override the test.
2873 else
2874 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2875 for as_dir in $PATH
2876 do
2877 IFS=$as_save_IFS
2878 test -z "$as_dir" && as_dir=.
2879 for ac_exec_ext in '' $ac_executable_extensions; do
2880 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2881 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2883 break 2
2884 fi
2885 done
2886 done
2887 IFS=$as_save_IFS
2888
2889 fi
2890 fi
2891 CC=$ac_cv_prog_CC
2892 if test -n "$CC"; then
2893 { echo "$as_me:$LINENO: result: $CC" >&5
2894 echo "${ECHO_T}$CC" >&6; }
2895 else
2896 { echo "$as_me:$LINENO: result: no" >&5
2897 echo "${ECHO_T}no" >&6; }
2898 fi
2899
2900
2901 fi
2902 if test -z "$ac_cv_prog_CC"; then
2903 ac_ct_CC=$CC
2904 # Extract the first word of "gcc", so it can be a program name with args.
2905 set dummy gcc; ac_word=$2
2906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2908 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2909 echo $ECHO_N "(cached) $ECHO_C" >&6
2910 else
2911 if test -n "$ac_ct_CC"; then
2912 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2913 else
2914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2915 for as_dir in $PATH
2916 do
2917 IFS=$as_save_IFS
2918 test -z "$as_dir" && as_dir=.
2919 for ac_exec_ext in '' $ac_executable_extensions; do
2920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2921 ac_cv_prog_ac_ct_CC="gcc"
2922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2923 break 2
2924 fi
2925 done
2926 done
2927 IFS=$as_save_IFS
2928
2929 fi
2930 fi
2931 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2932 if test -n "$ac_ct_CC"; then
2933 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2934 echo "${ECHO_T}$ac_ct_CC" >&6; }
2935 else
2936 { echo "$as_me:$LINENO: result: no" >&5
2937 echo "${ECHO_T}no" >&6; }
2938 fi
2939
2940 if test "x$ac_ct_CC" = x; then
2941 CC=""
2942 else
2943 case $cross_compiling:$ac_tool_warned in
2944 yes:)
2945 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2946 whose name does not start with the host triplet. If you think this
2947 configuration is useful to you, please write to autoconf@gnu.org." >&5
2948 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2949 whose name does not start with the host triplet. If you think this
2950 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2951 ac_tool_warned=yes ;;
2952 esac
2953 CC=$ac_ct_CC
2954 fi
2955 else
2956 CC="$ac_cv_prog_CC"
2957 fi
2958
2959 if test -z "$CC"; then
2960 if test -n "$ac_tool_prefix"; then
2961 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2962 set dummy ${ac_tool_prefix}cc; ac_word=$2
2963 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2964 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2965 if test "${ac_cv_prog_CC+set}" = set; then
2966 echo $ECHO_N "(cached) $ECHO_C" >&6
2967 else
2968 if test -n "$CC"; then
2969 ac_cv_prog_CC="$CC" # Let the user override the test.
2970 else
2971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2972 for as_dir in $PATH
2973 do
2974 IFS=$as_save_IFS
2975 test -z "$as_dir" && as_dir=.
2976 for ac_exec_ext in '' $ac_executable_extensions; do
2977 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2978 ac_cv_prog_CC="${ac_tool_prefix}cc"
2979 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2980 break 2
2981 fi
2982 done
2983 done
2984 IFS=$as_save_IFS
2985
2986 fi
2987 fi
2988 CC=$ac_cv_prog_CC
2989 if test -n "$CC"; then
2990 { echo "$as_me:$LINENO: result: $CC" >&5
2991 echo "${ECHO_T}$CC" >&6; }
2992 else
2993 { echo "$as_me:$LINENO: result: no" >&5
2994 echo "${ECHO_T}no" >&6; }
2995 fi
2996
2997
2998 fi
2999 fi
3000 if test -z "$CC"; then
3001 # Extract the first word of "cc", so it can be a program name with args.
3002 set dummy cc; ac_word=$2
3003 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3004 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3005 if test "${ac_cv_prog_CC+set}" = set; then
3006 echo $ECHO_N "(cached) $ECHO_C" >&6
3007 else
3008 if test -n "$CC"; then
3009 ac_cv_prog_CC="$CC" # Let the user override the test.
3010 else
3011 ac_prog_rejected=no
3012 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3013 for as_dir in $PATH
3014 do
3015 IFS=$as_save_IFS
3016 test -z "$as_dir" && as_dir=.
3017 for ac_exec_ext in '' $ac_executable_extensions; do
3018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3019 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3020 ac_prog_rejected=yes
3021 continue
3022 fi
3023 ac_cv_prog_CC="cc"
3024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3025 break 2
3026 fi
3027 done
3028 done
3029 IFS=$as_save_IFS
3030
3031 if test $ac_prog_rejected = yes; then
3032 # We found a bogon in the path, so make sure we never use it.
3033 set dummy $ac_cv_prog_CC
3034 shift
3035 if test $# != 0; then
3036 # We chose a different compiler from the bogus one.
3037 # However, it has the same basename, so the bogon will be chosen
3038 # first if we set CC to just the basename; use the full file name.
3039 shift
3040 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3041 fi
3042 fi
3043 fi
3044 fi
3045 CC=$ac_cv_prog_CC
3046 if test -n "$CC"; then
3047 { echo "$as_me:$LINENO: result: $CC" >&5
3048 echo "${ECHO_T}$CC" >&6; }
3049 else
3050 { echo "$as_me:$LINENO: result: no" >&5
3051 echo "${ECHO_T}no" >&6; }
3052 fi
3053
3054
3055 fi
3056 if test -z "$CC"; then
3057 if test -n "$ac_tool_prefix"; then
3058 for ac_prog in cl.exe
3059 do
3060 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3061 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3062 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3063 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3064 if test "${ac_cv_prog_CC+set}" = set; then
3065 echo $ECHO_N "(cached) $ECHO_C" >&6
3066 else
3067 if test -n "$CC"; then
3068 ac_cv_prog_CC="$CC" # Let the user override the test.
3069 else
3070 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3071 for as_dir in $PATH
3072 do
3073 IFS=$as_save_IFS
3074 test -z "$as_dir" && as_dir=.
3075 for ac_exec_ext in '' $ac_executable_extensions; do
3076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3077 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3078 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3079 break 2
3080 fi
3081 done
3082 done
3083 IFS=$as_save_IFS
3084
3085 fi
3086 fi
3087 CC=$ac_cv_prog_CC
3088 if test -n "$CC"; then
3089 { echo "$as_me:$LINENO: result: $CC" >&5
3090 echo "${ECHO_T}$CC" >&6; }
3091 else
3092 { echo "$as_me:$LINENO: result: no" >&5
3093 echo "${ECHO_T}no" >&6; }
3094 fi
3095
3096
3097 test -n "$CC" && break
3098 done
3099 fi
3100 if test -z "$CC"; then
3101 ac_ct_CC=$CC
3102 for ac_prog in cl.exe
3103 do
3104 # Extract the first word of "$ac_prog", so it can be a program name with args.
3105 set dummy $ac_prog; ac_word=$2
3106 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3107 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3108 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3109 echo $ECHO_N "(cached) $ECHO_C" >&6
3110 else
3111 if test -n "$ac_ct_CC"; then
3112 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3113 else
3114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3115 for as_dir in $PATH
3116 do
3117 IFS=$as_save_IFS
3118 test -z "$as_dir" && as_dir=.
3119 for ac_exec_ext in '' $ac_executable_extensions; do
3120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3121 ac_cv_prog_ac_ct_CC="$ac_prog"
3122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3123 break 2
3124 fi
3125 done
3126 done
3127 IFS=$as_save_IFS
3128
3129 fi
3130 fi
3131 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3132 if test -n "$ac_ct_CC"; then
3133 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3134 echo "${ECHO_T}$ac_ct_CC" >&6; }
3135 else
3136 { echo "$as_me:$LINENO: result: no" >&5
3137 echo "${ECHO_T}no" >&6; }
3138 fi
3139
3140
3141 test -n "$ac_ct_CC" && break
3142 done
3143
3144 if test "x$ac_ct_CC" = x; then
3145 CC=""
3146 else
3147 case $cross_compiling:$ac_tool_warned in
3148 yes:)
3149 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3150 whose name does not start with the host triplet. If you think this
3151 configuration is useful to you, please write to autoconf@gnu.org." >&5
3152 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3153 whose name does not start with the host triplet. If you think this
3154 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3155 ac_tool_warned=yes ;;
3156 esac
3157 CC=$ac_ct_CC
3158 fi
3159 fi
3160
3161 fi
3162
3163
3164 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3165 See \`config.log' for more details." >&5
3166 echo "$as_me: error: no acceptable C compiler found in \$PATH
3167 See \`config.log' for more details." >&2;}
3168 { (exit 1); exit 1; }; }
3169
3170 # Provide some information about the compiler.
3171 echo "$as_me:$LINENO: checking for C compiler version" >&5
3172 ac_compiler=`set X $ac_compile; echo $2`
3173 { (ac_try="$ac_compiler --version >&5"
3174 case "(($ac_try" in
3175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3176 *) ac_try_echo=$ac_try;;
3177 esac
3178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3179 (eval "$ac_compiler --version >&5") 2>&5
3180 ac_status=$?
3181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3182 (exit $ac_status); }
3183 { (ac_try="$ac_compiler -v >&5"
3184 case "(($ac_try" in
3185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3186 *) ac_try_echo=$ac_try;;
3187 esac
3188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3189 (eval "$ac_compiler -v >&5") 2>&5
3190 ac_status=$?
3191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192 (exit $ac_status); }
3193 { (ac_try="$ac_compiler -V >&5"
3194 case "(($ac_try" in
3195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196 *) ac_try_echo=$ac_try;;
3197 esac
3198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3199 (eval "$ac_compiler -V >&5") 2>&5
3200 ac_status=$?
3201 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202 (exit $ac_status); }
3203
3204 cat >conftest.$ac_ext <<_ACEOF
3205 /* confdefs.h. */
3206 _ACEOF
3207 cat confdefs.h >>conftest.$ac_ext
3208 cat >>conftest.$ac_ext <<_ACEOF
3209 /* end confdefs.h. */
3210
3211 int
3212 main ()
3213 {
3214
3215 ;
3216 return 0;
3217 }
3218 _ACEOF
3219 ac_clean_files_save=$ac_clean_files
3220 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3221 # Try to create an executable without -o first, disregard a.out.
3222 # It will help us diagnose broken compilers, and finding out an intuition
3223 # of exeext.
3224 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3225 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3226 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3227 #
3228 # List of possible output files, starting from the most likely.
3229 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3230 # only as a last resort. b.out is created by i960 compilers.
3231 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3232 #
3233 # The IRIX 6 linker writes into existing files which may not be
3234 # executable, retaining their permissions. Remove them first so a
3235 # subsequent execution test works.
3236 ac_rmfiles=
3237 for ac_file in $ac_files
3238 do
3239 case $ac_file in
3240 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3241 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3242 esac
3243 done
3244 rm -f $ac_rmfiles
3245
3246 if { (ac_try="$ac_link_default"
3247 case "(($ac_try" in
3248 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3249 *) ac_try_echo=$ac_try;;
3250 esac
3251 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3252 (eval "$ac_link_default") 2>&5
3253 ac_status=$?
3254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3255 (exit $ac_status); }; then
3256 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3257 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3258 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3259 # so that the user can short-circuit this test for compilers unknown to
3260 # Autoconf.
3261 for ac_file in $ac_files ''
3262 do
3263 test -f "$ac_file" || continue
3264 case $ac_file in
3265 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3266 ;;
3267 [ab].out )
3268 # We found the default executable, but exeext='' is most
3269 # certainly right.
3270 break;;
3271 *.* )
3272 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3273 then :; else
3274 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3275 fi
3276 # We set ac_cv_exeext here because the later test for it is not
3277 # safe: cross compilers may not add the suffix if given an `-o'
3278 # argument, so we may need to know it at that point already.
3279 # Even if this section looks crufty: it has the advantage of
3280 # actually working.
3281 break;;
3282 * )
3283 break;;
3284 esac
3285 done
3286 test "$ac_cv_exeext" = no && ac_cv_exeext=
3287
3288 else
3289 ac_file=''
3290 fi
3291
3292 { echo "$as_me:$LINENO: result: $ac_file" >&5
3293 echo "${ECHO_T}$ac_file" >&6; }
3294 if test -z "$ac_file"; then
3295 echo "$as_me: failed program was:" >&5
3296 sed 's/^/| /' conftest.$ac_ext >&5
3297
3298 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3299 See \`config.log' for more details." >&5
3300 echo "$as_me: error: C compiler cannot create executables
3301 See \`config.log' for more details." >&2;}
3302 { (exit 77); exit 77; }; }
3303 fi
3304
3305 ac_exeext=$ac_cv_exeext
3306
3307 # Check that the compiler produces executables we can run. If not, either
3308 # the compiler is broken, or we cross compile.
3309 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3310 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3311 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3312 # If not cross compiling, check that we can run a simple program.
3313 if test "$cross_compiling" != yes; then
3314 if { ac_try='./$ac_file'
3315 { (case "(($ac_try" in
3316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3317 *) ac_try_echo=$ac_try;;
3318 esac
3319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3320 (eval "$ac_try") 2>&5
3321 ac_status=$?
3322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3323 (exit $ac_status); }; }; then
3324 cross_compiling=no
3325 else
3326 if test "$cross_compiling" = maybe; then
3327 cross_compiling=yes
3328 else
3329 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3330 If you meant to cross compile, use \`--host'.
3331 See \`config.log' for more details." >&5
3332 echo "$as_me: error: cannot run C compiled programs.
3333 If you meant to cross compile, use \`--host'.
3334 See \`config.log' for more details." >&2;}
3335 { (exit 1); exit 1; }; }
3336 fi
3337 fi
3338 fi
3339 { echo "$as_me:$LINENO: result: yes" >&5
3340 echo "${ECHO_T}yes" >&6; }
3341
3342 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3343 ac_clean_files=$ac_clean_files_save
3344 # Check that the compiler produces executables we can run. If not, either
3345 # the compiler is broken, or we cross compile.
3346 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3347 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3348 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3349 echo "${ECHO_T}$cross_compiling" >&6; }
3350
3351 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3352 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3353 if { (ac_try="$ac_link"
3354 case "(($ac_try" in
3355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3356 *) ac_try_echo=$ac_try;;
3357 esac
3358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3359 (eval "$ac_link") 2>&5
3360 ac_status=$?
3361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3362 (exit $ac_status); }; then
3363 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3364 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3365 # work properly (i.e., refer to `conftest.exe'), while it won't with
3366 # `rm'.
3367 for ac_file in conftest.exe conftest conftest.*; do
3368 test -f "$ac_file" || continue
3369 case $ac_file in
3370 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3371 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3372 break;;
3373 * ) break;;
3374 esac
3375 done
3376 else
3377 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3378 See \`config.log' for more details." >&5
3379 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3380 See \`config.log' for more details." >&2;}
3381 { (exit 1); exit 1; }; }
3382 fi
3383
3384 rm -f conftest$ac_cv_exeext
3385 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3386 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3387
3388 rm -f conftest.$ac_ext
3389 EXEEXT=$ac_cv_exeext
3390 ac_exeext=$EXEEXT
3391 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3392 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3393 if test "${ac_cv_objext+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 cat >conftest.$ac_ext <<_ACEOF
3397 /* confdefs.h. */
3398 _ACEOF
3399 cat confdefs.h >>conftest.$ac_ext
3400 cat >>conftest.$ac_ext <<_ACEOF
3401 /* end confdefs.h. */
3402
3403 int
3404 main ()
3405 {
3406
3407 ;
3408 return 0;
3409 }
3410 _ACEOF
3411 rm -f conftest.o conftest.obj
3412 if { (ac_try="$ac_compile"
3413 case "(($ac_try" in
3414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3415 *) ac_try_echo=$ac_try;;
3416 esac
3417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3418 (eval "$ac_compile") 2>&5
3419 ac_status=$?
3420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3421 (exit $ac_status); }; then
3422 for ac_file in conftest.o conftest.obj conftest.*; do
3423 test -f "$ac_file" || continue;
3424 case $ac_file in
3425 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3426 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3427 break;;
3428 esac
3429 done
3430 else
3431 echo "$as_me: failed program was:" >&5
3432 sed 's/^/| /' conftest.$ac_ext >&5
3433
3434 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3435 See \`config.log' for more details." >&5
3436 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3437 See \`config.log' for more details." >&2;}
3438 { (exit 1); exit 1; }; }
3439 fi
3440
3441 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3442 fi
3443 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3444 echo "${ECHO_T}$ac_cv_objext" >&6; }
3445 OBJEXT=$ac_cv_objext
3446 ac_objext=$OBJEXT
3447 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3448 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3449 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3450 echo $ECHO_N "(cached) $ECHO_C" >&6
3451 else
3452 cat >conftest.$ac_ext <<_ACEOF
3453 /* confdefs.h. */
3454 _ACEOF
3455 cat confdefs.h >>conftest.$ac_ext
3456 cat >>conftest.$ac_ext <<_ACEOF
3457 /* end confdefs.h. */
3458
3459 int
3460 main ()
3461 {
3462 #ifndef __GNUC__
3463 choke me
3464 #endif
3465
3466 ;
3467 return 0;
3468 }
3469 _ACEOF
3470 rm -f conftest.$ac_objext
3471 if { (ac_try="$ac_compile"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477 (eval "$ac_compile") 2>conftest.er1
3478 ac_status=$?
3479 grep -v '^ *+' conftest.er1 >conftest.err
3480 rm -f conftest.er1
3481 cat conftest.err >&5
3482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483 (exit $ac_status); } && {
3484 test -z "$ac_c_werror_flag" ||
3485 test ! -s conftest.err
3486 } && test -s conftest.$ac_objext; then
3487 ac_compiler_gnu=yes
3488 else
3489 echo "$as_me: failed program was:" >&5
3490 sed 's/^/| /' conftest.$ac_ext >&5
3491
3492 ac_compiler_gnu=no
3493 fi
3494
3495 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3496 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3497
3498 fi
3499 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3500 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3501 GCC=`test $ac_compiler_gnu = yes && echo yes`
3502 ac_test_CFLAGS=${CFLAGS+set}
3503 ac_save_CFLAGS=$CFLAGS
3504 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3505 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3506 if test "${ac_cv_prog_cc_g+set}" = set; then
3507 echo $ECHO_N "(cached) $ECHO_C" >&6
3508 else
3509 ac_save_c_werror_flag=$ac_c_werror_flag
3510 ac_c_werror_flag=yes
3511 ac_cv_prog_cc_g=no
3512 CFLAGS="-g"
3513 cat >conftest.$ac_ext <<_ACEOF
3514 /* confdefs.h. */
3515 _ACEOF
3516 cat confdefs.h >>conftest.$ac_ext
3517 cat >>conftest.$ac_ext <<_ACEOF
3518 /* end confdefs.h. */
3519
3520 int
3521 main ()
3522 {
3523
3524 ;
3525 return 0;
3526 }
3527 _ACEOF
3528 rm -f conftest.$ac_objext
3529 if { (ac_try="$ac_compile"
3530 case "(($ac_try" in
3531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3532 *) ac_try_echo=$ac_try;;
3533 esac
3534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3535 (eval "$ac_compile") 2>conftest.er1
3536 ac_status=$?
3537 grep -v '^ *+' conftest.er1 >conftest.err
3538 rm -f conftest.er1
3539 cat conftest.err >&5
3540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3541 (exit $ac_status); } && {
3542 test -z "$ac_c_werror_flag" ||
3543 test ! -s conftest.err
3544 } && test -s conftest.$ac_objext; then
3545 ac_cv_prog_cc_g=yes
3546 else
3547 echo "$as_me: failed program was:" >&5
3548 sed 's/^/| /' conftest.$ac_ext >&5
3549
3550 CFLAGS=""
3551 cat >conftest.$ac_ext <<_ACEOF
3552 /* confdefs.h. */
3553 _ACEOF
3554 cat confdefs.h >>conftest.$ac_ext
3555 cat >>conftest.$ac_ext <<_ACEOF
3556 /* end confdefs.h. */
3557
3558 int
3559 main ()
3560 {
3561
3562 ;
3563 return 0;
3564 }
3565 _ACEOF
3566 rm -f conftest.$ac_objext
3567 if { (ac_try="$ac_compile"
3568 case "(($ac_try" in
3569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3570 *) ac_try_echo=$ac_try;;
3571 esac
3572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3573 (eval "$ac_compile") 2>conftest.er1
3574 ac_status=$?
3575 grep -v '^ *+' conftest.er1 >conftest.err
3576 rm -f conftest.er1
3577 cat conftest.err >&5
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); } && {
3580 test -z "$ac_c_werror_flag" ||
3581 test ! -s conftest.err
3582 } && test -s conftest.$ac_objext; then
3583 :
3584 else
3585 echo "$as_me: failed program was:" >&5
3586 sed 's/^/| /' conftest.$ac_ext >&5
3587
3588 ac_c_werror_flag=$ac_save_c_werror_flag
3589 CFLAGS="-g"
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 rm -f conftest.$ac_objext
3606 if { (ac_try="$ac_compile"
3607 case "(($ac_try" in
3608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3609 *) ac_try_echo=$ac_try;;
3610 esac
3611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3612 (eval "$ac_compile") 2>conftest.er1
3613 ac_status=$?
3614 grep -v '^ *+' conftest.er1 >conftest.err
3615 rm -f conftest.er1
3616 cat conftest.err >&5
3617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3618 (exit $ac_status); } && {
3619 test -z "$ac_c_werror_flag" ||
3620 test ! -s conftest.err
3621 } && test -s conftest.$ac_objext; then
3622 ac_cv_prog_cc_g=yes
3623 else
3624 echo "$as_me: failed program was:" >&5
3625 sed 's/^/| /' conftest.$ac_ext >&5
3626
3627
3628 fi
3629
3630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3631 fi
3632
3633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3634 fi
3635
3636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3637 ac_c_werror_flag=$ac_save_c_werror_flag
3638 fi
3639 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3640 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3641 if test "$ac_test_CFLAGS" = set; then
3642 CFLAGS=$ac_save_CFLAGS
3643 elif test $ac_cv_prog_cc_g = yes; then
3644 if test "$GCC" = yes; then
3645 CFLAGS="-g -O2"
3646 else
3647 CFLAGS="-g"
3648 fi
3649 else
3650 if test "$GCC" = yes; then
3651 CFLAGS="-O2"
3652 else
3653 CFLAGS=
3654 fi
3655 fi
3656 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3657 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3658 if test "${ac_cv_prog_cc_c89+set}" = set; then
3659 echo $ECHO_N "(cached) $ECHO_C" >&6
3660 else
3661 ac_cv_prog_cc_c89=no
3662 ac_save_CC=$CC
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h. */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h. */
3669 #include <stdarg.h>
3670 #include <stdio.h>
3671 #include <sys/types.h>
3672 #include <sys/stat.h>
3673 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3674 struct buf { int x; };
3675 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3676 static char *e (p, i)
3677 char **p;
3678 int i;
3679 {
3680 return p[i];
3681 }
3682 static char *f (char * (*g) (char **, int), char **p, ...)
3683 {
3684 char *s;
3685 va_list v;
3686 va_start (v,p);
3687 s = g (p, va_arg (v,int));
3688 va_end (v);
3689 return s;
3690 }
3691
3692 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3693 function prototypes and stuff, but not '\xHH' hex character constants.
3694 These don't provoke an error unfortunately, instead are silently treated
3695 as 'x'. The following induces an error, until -std is added to get
3696 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3697 array size at least. It's necessary to write '\x00'==0 to get something
3698 that's true only with -std. */
3699 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3700
3701 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3702 inside strings and character constants. */
3703 #define FOO(x) 'x'
3704 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3705
3706 int test (int i, double x);
3707 struct s1 {int (*f) (int a);};
3708 struct s2 {int (*f) (double a);};
3709 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3710 int argc;
3711 char **argv;
3712 int
3713 main ()
3714 {
3715 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3716 ;
3717 return 0;
3718 }
3719 _ACEOF
3720 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3721 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3722 do
3723 CC="$ac_save_CC $ac_arg"
3724 rm -f conftest.$ac_objext
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>conftest.er1
3732 ac_status=$?
3733 grep -v '^ *+' conftest.er1 >conftest.err
3734 rm -f conftest.er1
3735 cat conftest.err >&5
3736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3737 (exit $ac_status); } && {
3738 test -z "$ac_c_werror_flag" ||
3739 test ! -s conftest.err
3740 } && test -s conftest.$ac_objext; then
3741 ac_cv_prog_cc_c89=$ac_arg
3742 else
3743 echo "$as_me: failed program was:" >&5
3744 sed 's/^/| /' conftest.$ac_ext >&5
3745
3746
3747 fi
3748
3749 rm -f core conftest.err conftest.$ac_objext
3750 test "x$ac_cv_prog_cc_c89" != "xno" && break
3751 done
3752 rm -f conftest.$ac_ext
3753 CC=$ac_save_CC
3754
3755 fi
3756 # AC_CACHE_VAL
3757 case "x$ac_cv_prog_cc_c89" in
3758 x)
3759 { echo "$as_me:$LINENO: result: none needed" >&5
3760 echo "${ECHO_T}none needed" >&6; } ;;
3761 xno)
3762 { echo "$as_me:$LINENO: result: unsupported" >&5
3763 echo "${ECHO_T}unsupported" >&6; } ;;
3764 *)
3765 CC="$CC $ac_cv_prog_cc_c89"
3766 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3767 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3768 esac
3769
3770
3771 ac_ext=c
3772 ac_cpp='$CPP $CPPFLAGS'
3773 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3774 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3775 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3776
3777
3778 # On Suns, sometimes $CPP names a directory.
3779 if test -n "$CPP" && test -d "$CPP"; then
3780 CPP=
3781 fi
3782
3783 ## If not using gcc, and on Solaris, and no CPP specified, see if
3784 ## using a Sun compiler, which needs -Xs to prevent whitespace.
3785 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
3786 test x"$CPP" = x; then
3787 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
3788 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
3789
3790 if test "${emacs_cv_sunpro_c+set}" = set; then
3791 echo $ECHO_N "(cached) $ECHO_C" >&6
3792 else
3793 cat >conftest.$ac_ext <<_ACEOF
3794 /* confdefs.h. */
3795 _ACEOF
3796 cat confdefs.h >>conftest.$ac_ext
3797 cat >>conftest.$ac_ext <<_ACEOF
3798 /* end confdefs.h. */
3799
3800 int
3801 main ()
3802 {
3803 #ifndef __SUNPRO_C
3804 fail;
3805 #endif
3806
3807 ;
3808 return 0;
3809 }
3810 _ACEOF
3811 rm -f conftest.$ac_objext conftest$ac_exeext
3812 if { (ac_try="$ac_link"
3813 case "(($ac_try" in
3814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3815 *) ac_try_echo=$ac_try;;
3816 esac
3817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3818 (eval "$ac_link") 2>conftest.er1
3819 ac_status=$?
3820 grep -v '^ *+' conftest.er1 >conftest.err
3821 rm -f conftest.er1
3822 cat conftest.err >&5
3823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3824 (exit $ac_status); } && {
3825 test -z "$ac_c_werror_flag" ||
3826 test ! -s conftest.err
3827 } && test -s conftest$ac_exeext &&
3828 $as_test_x conftest$ac_exeext; then
3829 emacs_cv_sunpro_c=yes
3830 else
3831 echo "$as_me: failed program was:" >&5
3832 sed 's/^/| /' conftest.$ac_ext >&5
3833
3834 emacs_cv_sunpro_c=no
3835 fi
3836
3837 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
3838 conftest$ac_exeext conftest.$ac_ext
3839 fi
3840
3841 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
3842 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
3843
3844 if test x"$emacs_cv_sunpro_c" = xyes; then
3845 NON_GNU_CPP="$CC -E -Xs"
3846 fi
3847 fi
3848
3849 #### Some systems specify a CPP to use unless we are using GCC.
3850 #### Now that we know whether we are using GCC, we can decide whether
3851 #### to use that one.
3852 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
3853 then
3854 CPP="$NON_GNU_CPP"
3855 fi
3856
3857 #### Some systems specify a CC to use unless we are using GCC.
3858 #### Now that we know whether we are using GCC, we can decide whether
3859 #### to use that one.
3860 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
3861 test x$cc_specified != xyes
3862 then
3863 CC="$NON_GNU_CC"
3864 fi
3865
3866 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
3867 then
3868 CC="$CC $GCC_TEST_OPTIONS"
3869 fi
3870
3871 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
3872 then
3873 CC="$CC $NON_GCC_TEST_OPTIONS"
3874 fi
3875
3876 ac_ext=c
3877 ac_cpp='$CPP $CPPFLAGS'
3878 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3879 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3880 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3881 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3882 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3883 # On Suns, sometimes $CPP names a directory.
3884 if test -n "$CPP" && test -d "$CPP"; then
3885 CPP=
3886 fi
3887 if test -z "$CPP"; then
3888 if test "${ac_cv_prog_CPP+set}" = set; then
3889 echo $ECHO_N "(cached) $ECHO_C" >&6
3890 else
3891 # Double quotes because CPP needs to be expanded
3892 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3893 do
3894 ac_preproc_ok=false
3895 for ac_c_preproc_warn_flag in '' yes
3896 do
3897 # Use a header file that comes with gcc, so configuring glibc
3898 # with a fresh cross-compiler works.
3899 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3900 # <limits.h> exists even on freestanding compilers.
3901 # On the NeXT, cc -E runs the code through the compiler's parser,
3902 # not just through cpp. "Syntax error" is here to catch this case.
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909 #ifdef __STDC__
3910 # include <limits.h>
3911 #else
3912 # include <assert.h>
3913 #endif
3914 Syntax error
3915 _ACEOF
3916 if { (ac_try="$ac_cpp conftest.$ac_ext"
3917 case "(($ac_try" in
3918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3919 *) ac_try_echo=$ac_try;;
3920 esac
3921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3923 ac_status=$?
3924 grep -v '^ *+' conftest.er1 >conftest.err
3925 rm -f conftest.er1
3926 cat conftest.err >&5
3927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3928 (exit $ac_status); } >/dev/null && {
3929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3930 test ! -s conftest.err
3931 }; then
3932 :
3933 else
3934 echo "$as_me: failed program was:" >&5
3935 sed 's/^/| /' conftest.$ac_ext >&5
3936
3937 # Broken: fails on valid input.
3938 continue
3939 fi
3940
3941 rm -f conftest.err conftest.$ac_ext
3942
3943 # OK, works on sane cases. Now check whether nonexistent headers
3944 # can be detected and how.
3945 cat >conftest.$ac_ext <<_ACEOF
3946 /* confdefs.h. */
3947 _ACEOF
3948 cat confdefs.h >>conftest.$ac_ext
3949 cat >>conftest.$ac_ext <<_ACEOF
3950 /* end confdefs.h. */
3951 #include <ac_nonexistent.h>
3952 _ACEOF
3953 if { (ac_try="$ac_cpp conftest.$ac_ext"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } >/dev/null && {
3966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 }; then
3969 # Broken: success on invalid input.
3970 continue
3971 else
3972 echo "$as_me: failed program was:" >&5
3973 sed 's/^/| /' conftest.$ac_ext >&5
3974
3975 # Passes both tests.
3976 ac_preproc_ok=:
3977 break
3978 fi
3979
3980 rm -f conftest.err conftest.$ac_ext
3981
3982 done
3983 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3984 rm -f conftest.err conftest.$ac_ext
3985 if $ac_preproc_ok; then
3986 break
3987 fi
3988
3989 done
3990 ac_cv_prog_CPP=$CPP
3991
3992 fi
3993 CPP=$ac_cv_prog_CPP
3994 else
3995 ac_cv_prog_CPP=$CPP
3996 fi
3997 { echo "$as_me:$LINENO: result: $CPP" >&5
3998 echo "${ECHO_T}$CPP" >&6; }
3999 ac_preproc_ok=false
4000 for ac_c_preproc_warn_flag in '' yes
4001 do
4002 # Use a header file that comes with gcc, so configuring glibc
4003 # with a fresh cross-compiler works.
4004 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4005 # <limits.h> exists even on freestanding compilers.
4006 # On the NeXT, cc -E runs the code through the compiler's parser,
4007 # not just through cpp. "Syntax error" is here to catch this case.
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #ifdef __STDC__
4015 # include <limits.h>
4016 #else
4017 # include <assert.h>
4018 #endif
4019 Syntax error
4020 _ACEOF
4021 if { (ac_try="$ac_cpp conftest.$ac_ext"
4022 case "(($ac_try" in
4023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4024 *) ac_try_echo=$ac_try;;
4025 esac
4026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4027 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4028 ac_status=$?
4029 grep -v '^ *+' conftest.er1 >conftest.err
4030 rm -f conftest.er1
4031 cat conftest.err >&5
4032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4033 (exit $ac_status); } >/dev/null && {
4034 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4035 test ! -s conftest.err
4036 }; then
4037 :
4038 else
4039 echo "$as_me: failed program was:" >&5
4040 sed 's/^/| /' conftest.$ac_ext >&5
4041
4042 # Broken: fails on valid input.
4043 continue
4044 fi
4045
4046 rm -f conftest.err conftest.$ac_ext
4047
4048 # OK, works on sane cases. Now check whether nonexistent headers
4049 # can be detected and how.
4050 cat >conftest.$ac_ext <<_ACEOF
4051 /* confdefs.h. */
4052 _ACEOF
4053 cat confdefs.h >>conftest.$ac_ext
4054 cat >>conftest.$ac_ext <<_ACEOF
4055 /* end confdefs.h. */
4056 #include <ac_nonexistent.h>
4057 _ACEOF
4058 if { (ac_try="$ac_cpp conftest.$ac_ext"
4059 case "(($ac_try" in
4060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4061 *) ac_try_echo=$ac_try;;
4062 esac
4063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4065 ac_status=$?
4066 grep -v '^ *+' conftest.er1 >conftest.err
4067 rm -f conftest.er1
4068 cat conftest.err >&5
4069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4070 (exit $ac_status); } >/dev/null && {
4071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4072 test ! -s conftest.err
4073 }; then
4074 # Broken: success on invalid input.
4075 continue
4076 else
4077 echo "$as_me: failed program was:" >&5
4078 sed 's/^/| /' conftest.$ac_ext >&5
4079
4080 # Passes both tests.
4081 ac_preproc_ok=:
4082 break
4083 fi
4084
4085 rm -f conftest.err conftest.$ac_ext
4086
4087 done
4088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4089 rm -f conftest.err conftest.$ac_ext
4090 if $ac_preproc_ok; then
4091 :
4092 else
4093 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4094 See \`config.log' for more details." >&5
4095 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4096 See \`config.log' for more details." >&2;}
4097 { (exit 1); exit 1; }; }
4098 fi
4099
4100 ac_ext=c
4101 ac_cpp='$CPP $CPPFLAGS'
4102 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4105
4106
4107 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4108 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4109 if test "${ac_cv_path_GREP+set}" = set; then
4110 echo $ECHO_N "(cached) $ECHO_C" >&6
4111 else
4112 # Extract the first word of "grep ggrep" to use in msg output
4113 if test -z "$GREP"; then
4114 set dummy grep ggrep; ac_prog_name=$2
4115 if test "${ac_cv_path_GREP+set}" = set; then
4116 echo $ECHO_N "(cached) $ECHO_C" >&6
4117 else
4118 ac_path_GREP_found=false
4119 # Loop through the user's path and test for each of PROGNAME-LIST
4120 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4121 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4122 do
4123 IFS=$as_save_IFS
4124 test -z "$as_dir" && as_dir=.
4125 for ac_prog in grep ggrep; do
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4128 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4129 # Check for GNU ac_path_GREP and select it if it is found.
4130 # Check for GNU $ac_path_GREP
4131 case `"$ac_path_GREP" --version 2>&1` in
4132 *GNU*)
4133 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4134 *)
4135 ac_count=0
4136 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4137 while :
4138 do
4139 cat "conftest.in" "conftest.in" >"conftest.tmp"
4140 mv "conftest.tmp" "conftest.in"
4141 cp "conftest.in" "conftest.nl"
4142 echo 'GREP' >> "conftest.nl"
4143 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4144 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4145 ac_count=`expr $ac_count + 1`
4146 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4147 # Best one so far, save it but keep looking for a better one
4148 ac_cv_path_GREP="$ac_path_GREP"
4149 ac_path_GREP_max=$ac_count
4150 fi
4151 # 10*(2^10) chars as input seems more than enough
4152 test $ac_count -gt 10 && break
4153 done
4154 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4155 esac
4156
4157
4158 $ac_path_GREP_found && break 3
4159 done
4160 done
4161
4162 done
4163 IFS=$as_save_IFS
4164
4165
4166 fi
4167
4168 GREP="$ac_cv_path_GREP"
4169 if test -z "$GREP"; then
4170 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4171 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4172 { (exit 1); exit 1; }; }
4173 fi
4174
4175 else
4176 ac_cv_path_GREP=$GREP
4177 fi
4178
4179
4180 fi
4181 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4182 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4183 GREP="$ac_cv_path_GREP"
4184
4185
4186 { echo "$as_me:$LINENO: checking for egrep" >&5
4187 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4188 if test "${ac_cv_path_EGREP+set}" = set; then
4189 echo $ECHO_N "(cached) $ECHO_C" >&6
4190 else
4191 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4192 then ac_cv_path_EGREP="$GREP -E"
4193 else
4194 # Extract the first word of "egrep" to use in msg output
4195 if test -z "$EGREP"; then
4196 set dummy egrep; ac_prog_name=$2
4197 if test "${ac_cv_path_EGREP+set}" = set; then
4198 echo $ECHO_N "(cached) $ECHO_C" >&6
4199 else
4200 ac_path_EGREP_found=false
4201 # Loop through the user's path and test for each of PROGNAME-LIST
4202 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4203 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4204 do
4205 IFS=$as_save_IFS
4206 test -z "$as_dir" && as_dir=.
4207 for ac_prog in egrep; do
4208 for ac_exec_ext in '' $ac_executable_extensions; do
4209 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4210 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4211 # Check for GNU ac_path_EGREP and select it if it is found.
4212 # Check for GNU $ac_path_EGREP
4213 case `"$ac_path_EGREP" --version 2>&1` in
4214 *GNU*)
4215 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4216 *)
4217 ac_count=0
4218 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4219 while :
4220 do
4221 cat "conftest.in" "conftest.in" >"conftest.tmp"
4222 mv "conftest.tmp" "conftest.in"
4223 cp "conftest.in" "conftest.nl"
4224 echo 'EGREP' >> "conftest.nl"
4225 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4226 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4227 ac_count=`expr $ac_count + 1`
4228 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4229 # Best one so far, save it but keep looking for a better one
4230 ac_cv_path_EGREP="$ac_path_EGREP"
4231 ac_path_EGREP_max=$ac_count
4232 fi
4233 # 10*(2^10) chars as input seems more than enough
4234 test $ac_count -gt 10 && break
4235 done
4236 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4237 esac
4238
4239
4240 $ac_path_EGREP_found && break 3
4241 done
4242 done
4243
4244 done
4245 IFS=$as_save_IFS
4246
4247
4248 fi
4249
4250 EGREP="$ac_cv_path_EGREP"
4251 if test -z "$EGREP"; then
4252 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4253 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4254 { (exit 1); exit 1; }; }
4255 fi
4256
4257 else
4258 ac_cv_path_EGREP=$EGREP
4259 fi
4260
4261
4262 fi
4263 fi
4264 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4265 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4266 EGREP="$ac_cv_path_EGREP"
4267
4268
4269
4270 { echo "$as_me:$LINENO: checking for AIX" >&5
4271 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4272 cat >conftest.$ac_ext <<_ACEOF
4273 /* confdefs.h. */
4274 _ACEOF
4275 cat confdefs.h >>conftest.$ac_ext
4276 cat >>conftest.$ac_ext <<_ACEOF
4277 /* end confdefs.h. */
4278 #ifdef _AIX
4279 yes
4280 #endif
4281
4282 _ACEOF
4283 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4284 $EGREP "yes" >/dev/null 2>&1; then
4285 { echo "$as_me:$LINENO: result: yes" >&5
4286 echo "${ECHO_T}yes" >&6; }
4287 cat >>confdefs.h <<\_ACEOF
4288 #define _ALL_SOURCE 1
4289 _ACEOF
4290
4291 else
4292 { echo "$as_me:$LINENO: result: no" >&5
4293 echo "${ECHO_T}no" >&6; }
4294 fi
4295 rm -f conftest*
4296
4297
4298
4299 cat >>confdefs.h <<\_ACEOF
4300 #define _GNU_SOURCE 1
4301 _ACEOF
4302
4303
4304
4305 ### Use -Wno-pointer-sign if the compiler supports it
4306 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4307 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4308 SAVE_CFLAGS="$CFLAGS"
4309 CFLAGS="$CFLAGS -Wno-pointer-sign"
4310 cat >conftest.$ac_ext <<_ACEOF
4311 /* confdefs.h. */
4312 _ACEOF
4313 cat confdefs.h >>conftest.$ac_ext
4314 cat >>conftest.$ac_ext <<_ACEOF
4315 /* end confdefs.h. */
4316
4317 int
4318 main ()
4319 {
4320
4321 ;
4322 return 0;
4323 }
4324 _ACEOF
4325 rm -f conftest.$ac_objext
4326 if { (ac_try="$ac_compile"
4327 case "(($ac_try" in
4328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4329 *) ac_try_echo=$ac_try;;
4330 esac
4331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4332 (eval "$ac_compile") 2>conftest.er1
4333 ac_status=$?
4334 grep -v '^ *+' conftest.er1 >conftest.err
4335 rm -f conftest.er1
4336 cat conftest.err >&5
4337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4338 (exit $ac_status); } && {
4339 test -z "$ac_c_werror_flag" ||
4340 test ! -s conftest.err
4341 } && test -s conftest.$ac_objext; then
4342 has_option=yes
4343 else
4344 echo "$as_me: failed program was:" >&5
4345 sed 's/^/| /' conftest.$ac_ext >&5
4346
4347 has_option=no
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 if test $has_option = yes; then
4352 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4353 fi
4354 { echo "$as_me:$LINENO: result: $has_option" >&5
4355 echo "${ECHO_T}$has_option" >&6; }
4356 CFLAGS="$SAVE_CFLAGS"
4357 unset has_option
4358 unset SAVE_CFLAGS
4359
4360 #### Some other nice autoconf tests.
4361
4362 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4363 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4364 LN_S=$as_ln_s
4365 if test "$LN_S" = "ln -s"; then
4366 { echo "$as_me:$LINENO: result: yes" >&5
4367 echo "${ECHO_T}yes" >&6; }
4368 else
4369 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4370 echo "${ECHO_T}no, using $LN_S" >&6; }
4371 fi
4372
4373 ac_ext=c
4374 ac_cpp='$CPP $CPPFLAGS'
4375 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4376 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4377 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4378 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4379 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4380 # On Suns, sometimes $CPP names a directory.
4381 if test -n "$CPP" && test -d "$CPP"; then
4382 CPP=
4383 fi
4384 if test -z "$CPP"; then
4385 if test "${ac_cv_prog_CPP+set}" = set; then
4386 echo $ECHO_N "(cached) $ECHO_C" >&6
4387 else
4388 # Double quotes because CPP needs to be expanded
4389 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4390 do
4391 ac_preproc_ok=false
4392 for ac_c_preproc_warn_flag in '' yes
4393 do
4394 # Use a header file that comes with gcc, so configuring glibc
4395 # with a fresh cross-compiler works.
4396 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4397 # <limits.h> exists even on freestanding compilers.
4398 # On the NeXT, cc -E runs the code through the compiler's parser,
4399 # not just through cpp. "Syntax error" is here to catch this case.
4400 cat >conftest.$ac_ext <<_ACEOF
4401 /* confdefs.h. */
4402 _ACEOF
4403 cat confdefs.h >>conftest.$ac_ext
4404 cat >>conftest.$ac_ext <<_ACEOF
4405 /* end confdefs.h. */
4406 #ifdef __STDC__
4407 # include <limits.h>
4408 #else
4409 # include <assert.h>
4410 #endif
4411 Syntax error
4412 _ACEOF
4413 if { (ac_try="$ac_cpp conftest.$ac_ext"
4414 case "(($ac_try" in
4415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4416 *) ac_try_echo=$ac_try;;
4417 esac
4418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4419 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4420 ac_status=$?
4421 grep -v '^ *+' conftest.er1 >conftest.err
4422 rm -f conftest.er1
4423 cat conftest.err >&5
4424 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4425 (exit $ac_status); } >/dev/null && {
4426 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4427 test ! -s conftest.err
4428 }; then
4429 :
4430 else
4431 echo "$as_me: failed program was:" >&5
4432 sed 's/^/| /' conftest.$ac_ext >&5
4433
4434 # Broken: fails on valid input.
4435 continue
4436 fi
4437
4438 rm -f conftest.err conftest.$ac_ext
4439
4440 # OK, works on sane cases. Now check whether nonexistent headers
4441 # can be detected and how.
4442 cat >conftest.$ac_ext <<_ACEOF
4443 /* confdefs.h. */
4444 _ACEOF
4445 cat confdefs.h >>conftest.$ac_ext
4446 cat >>conftest.$ac_ext <<_ACEOF
4447 /* end confdefs.h. */
4448 #include <ac_nonexistent.h>
4449 _ACEOF
4450 if { (ac_try="$ac_cpp conftest.$ac_ext"
4451 case "(($ac_try" in
4452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4453 *) ac_try_echo=$ac_try;;
4454 esac
4455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4456 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4457 ac_status=$?
4458 grep -v '^ *+' conftest.er1 >conftest.err
4459 rm -f conftest.er1
4460 cat conftest.err >&5
4461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4462 (exit $ac_status); } >/dev/null && {
4463 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4464 test ! -s conftest.err
4465 }; then
4466 # Broken: success on invalid input.
4467 continue
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 # Passes both tests.
4473 ac_preproc_ok=:
4474 break
4475 fi
4476
4477 rm -f conftest.err conftest.$ac_ext
4478
4479 done
4480 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4481 rm -f conftest.err conftest.$ac_ext
4482 if $ac_preproc_ok; then
4483 break
4484 fi
4485
4486 done
4487 ac_cv_prog_CPP=$CPP
4488
4489 fi
4490 CPP=$ac_cv_prog_CPP
4491 else
4492 ac_cv_prog_CPP=$CPP
4493 fi
4494 { echo "$as_me:$LINENO: result: $CPP" >&5
4495 echo "${ECHO_T}$CPP" >&6; }
4496 ac_preproc_ok=false
4497 for ac_c_preproc_warn_flag in '' yes
4498 do
4499 # Use a header file that comes with gcc, so configuring glibc
4500 # with a fresh cross-compiler works.
4501 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4502 # <limits.h> exists even on freestanding compilers.
4503 # On the NeXT, cc -E runs the code through the compiler's parser,
4504 # not just through cpp. "Syntax error" is here to catch this case.
4505 cat >conftest.$ac_ext <<_ACEOF
4506 /* confdefs.h. */
4507 _ACEOF
4508 cat confdefs.h >>conftest.$ac_ext
4509 cat >>conftest.$ac_ext <<_ACEOF
4510 /* end confdefs.h. */
4511 #ifdef __STDC__
4512 # include <limits.h>
4513 #else
4514 # include <assert.h>
4515 #endif
4516 Syntax error
4517 _ACEOF
4518 if { (ac_try="$ac_cpp conftest.$ac_ext"
4519 case "(($ac_try" in
4520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4521 *) ac_try_echo=$ac_try;;
4522 esac
4523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4524 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4525 ac_status=$?
4526 grep -v '^ *+' conftest.er1 >conftest.err
4527 rm -f conftest.er1
4528 cat conftest.err >&5
4529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530 (exit $ac_status); } >/dev/null && {
4531 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4532 test ! -s conftest.err
4533 }; then
4534 :
4535 else
4536 echo "$as_me: failed program was:" >&5
4537 sed 's/^/| /' conftest.$ac_ext >&5
4538
4539 # Broken: fails on valid input.
4540 continue
4541 fi
4542
4543 rm -f conftest.err conftest.$ac_ext
4544
4545 # OK, works on sane cases. Now check whether nonexistent headers
4546 # can be detected and how.
4547 cat >conftest.$ac_ext <<_ACEOF
4548 /* confdefs.h. */
4549 _ACEOF
4550 cat confdefs.h >>conftest.$ac_ext
4551 cat >>conftest.$ac_ext <<_ACEOF
4552 /* end confdefs.h. */
4553 #include <ac_nonexistent.h>
4554 _ACEOF
4555 if { (ac_try="$ac_cpp conftest.$ac_ext"
4556 case "(($ac_try" in
4557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4558 *) ac_try_echo=$ac_try;;
4559 esac
4560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4561 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4562 ac_status=$?
4563 grep -v '^ *+' conftest.er1 >conftest.err
4564 rm -f conftest.er1
4565 cat conftest.err >&5
4566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4567 (exit $ac_status); } >/dev/null && {
4568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4569 test ! -s conftest.err
4570 }; then
4571 # Broken: success on invalid input.
4572 continue
4573 else
4574 echo "$as_me: failed program was:" >&5
4575 sed 's/^/| /' conftest.$ac_ext >&5
4576
4577 # Passes both tests.
4578 ac_preproc_ok=:
4579 break
4580 fi
4581
4582 rm -f conftest.err conftest.$ac_ext
4583
4584 done
4585 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4586 rm -f conftest.err conftest.$ac_ext
4587 if $ac_preproc_ok; then
4588 :
4589 else
4590 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4591 See \`config.log' for more details." >&5
4592 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4593 See \`config.log' for more details." >&2;}
4594 { (exit 1); exit 1; }; }
4595 fi
4596
4597 ac_ext=c
4598 ac_cpp='$CPP $CPPFLAGS'
4599 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4600 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4601 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4602
4603 # Find a good install program. We prefer a C program (faster),
4604 # so one script is as good as another. But avoid the broken or
4605 # incompatible versions:
4606 # SysV /etc/install, /usr/sbin/install
4607 # SunOS /usr/etc/install
4608 # IRIX /sbin/install
4609 # AIX /bin/install
4610 # AmigaOS /C/install, which installs bootblocks on floppy discs
4611 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4612 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4613 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4614 # OS/2's system install, which has a completely different semantic
4615 # ./install, which can be erroneously created by make from ./install.sh.
4616 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4617 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4618 if test -z "$INSTALL"; then
4619 if test "${ac_cv_path_install+set}" = set; then
4620 echo $ECHO_N "(cached) $ECHO_C" >&6
4621 else
4622 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4623 for as_dir in $PATH
4624 do
4625 IFS=$as_save_IFS
4626 test -z "$as_dir" && as_dir=.
4627 # Account for people who put trailing slashes in PATH elements.
4628 case $as_dir/ in
4629 ./ | .// | /cC/* | \
4630 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4631 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4632 /usr/ucb/* ) ;;
4633 *)
4634 # OSF1 and SCO ODT 3.0 have their own names for install.
4635 # Don't use installbsd from OSF since it installs stuff as root
4636 # by default.
4637 for ac_prog in ginstall scoinst install; do
4638 for ac_exec_ext in '' $ac_executable_extensions; do
4639 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4640 if test $ac_prog = install &&
4641 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4642 # AIX install. It has an incompatible calling convention.
4643 :
4644 elif test $ac_prog = install &&
4645 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4646 # program-specific install script used by HP pwplus--don't use.
4647 :
4648 else
4649 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4650 break 3
4651 fi
4652 fi
4653 done
4654 done
4655 ;;
4656 esac
4657 done
4658 IFS=$as_save_IFS
4659
4660
4661 fi
4662 if test "${ac_cv_path_install+set}" = set; then
4663 INSTALL=$ac_cv_path_install
4664 else
4665 # As a last resort, use the slow shell script. Don't cache a
4666 # value for INSTALL within a source directory, because that will
4667 # break other packages using the cache if that directory is
4668 # removed, or if the value is a relative name.
4669 INSTALL=$ac_install_sh
4670 fi
4671 fi
4672 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4673 echo "${ECHO_T}$INSTALL" >&6; }
4674
4675 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4676 # It thinks the first close brace ends the variable substitution.
4677 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4678
4679 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4680
4681 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4682
4683 if test "x$RANLIB" = x; then
4684 if test -n "$ac_tool_prefix"; then
4685 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4686 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4687 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4688 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4689 if test "${ac_cv_prog_RANLIB+set}" = set; then
4690 echo $ECHO_N "(cached) $ECHO_C" >&6
4691 else
4692 if test -n "$RANLIB"; then
4693 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4694 else
4695 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4696 for as_dir in $PATH
4697 do
4698 IFS=$as_save_IFS
4699 test -z "$as_dir" && as_dir=.
4700 for ac_exec_ext in '' $ac_executable_extensions; do
4701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4702 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4703 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4704 break 2
4705 fi
4706 done
4707 done
4708 IFS=$as_save_IFS
4709
4710 fi
4711 fi
4712 RANLIB=$ac_cv_prog_RANLIB
4713 if test -n "$RANLIB"; then
4714 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4715 echo "${ECHO_T}$RANLIB" >&6; }
4716 else
4717 { echo "$as_me:$LINENO: result: no" >&5
4718 echo "${ECHO_T}no" >&6; }
4719 fi
4720
4721
4722 fi
4723 if test -z "$ac_cv_prog_RANLIB"; then
4724 ac_ct_RANLIB=$RANLIB
4725 # Extract the first word of "ranlib", so it can be a program name with args.
4726 set dummy ranlib; ac_word=$2
4727 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4728 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4729 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4730 echo $ECHO_N "(cached) $ECHO_C" >&6
4731 else
4732 if test -n "$ac_ct_RANLIB"; then
4733 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4734 else
4735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4736 for as_dir in $PATH
4737 do
4738 IFS=$as_save_IFS
4739 test -z "$as_dir" && as_dir=.
4740 for ac_exec_ext in '' $ac_executable_extensions; do
4741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4742 ac_cv_prog_ac_ct_RANLIB="ranlib"
4743 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4744 break 2
4745 fi
4746 done
4747 done
4748 IFS=$as_save_IFS
4749
4750 fi
4751 fi
4752 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
4753 if test -n "$ac_ct_RANLIB"; then
4754 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
4755 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
4756 else
4757 { echo "$as_me:$LINENO: result: no" >&5
4758 echo "${ECHO_T}no" >&6; }
4759 fi
4760
4761 if test "x$ac_ct_RANLIB" = x; then
4762 RANLIB=":"
4763 else
4764 case $cross_compiling:$ac_tool_warned in
4765 yes:)
4766 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
4767 whose name does not start with the host triplet. If you think this
4768 configuration is useful to you, please write to autoconf@gnu.org." >&5
4769 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
4770 whose name does not start with the host triplet. If you think this
4771 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
4772 ac_tool_warned=yes ;;
4773 esac
4774 RANLIB=$ac_ct_RANLIB
4775 fi
4776 else
4777 RANLIB="$ac_cv_prog_RANLIB"
4778 fi
4779
4780 fi
4781 # Extract the first word of "install-info", so it can be a program name with args.
4782 set dummy install-info; ac_word=$2
4783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4785 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4786 echo $ECHO_N "(cached) $ECHO_C" >&6
4787 else
4788 case $INSTALL_INFO in
4789 [\\/]* | ?:[\\/]*)
4790 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4791 ;;
4792 *)
4793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4794 for as_dir in $PATH
4795 do
4796 IFS=$as_save_IFS
4797 test -z "$as_dir" && as_dir=.
4798 for ac_exec_ext in '' $ac_executable_extensions; do
4799 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4800 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4801 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4802 break 2
4803 fi
4804 done
4805 done
4806 IFS=$as_save_IFS
4807
4808 ;;
4809 esac
4810 fi
4811 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4812 if test -n "$INSTALL_INFO"; then
4813 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4814 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4815 else
4816 { echo "$as_me:$LINENO: result: no" >&5
4817 echo "${ECHO_T}no" >&6; }
4818 fi
4819
4820
4821 # Extract the first word of "install-info", so it can be a program name with args.
4822 set dummy install-info; ac_word=$2
4823 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4824 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4825 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4826 echo $ECHO_N "(cached) $ECHO_C" >&6
4827 else
4828 case $INSTALL_INFO in
4829 [\\/]* | ?:[\\/]*)
4830 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4831 ;;
4832 *)
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in /usr/sbin
4835 do
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4840 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4841 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4843 fi
4844 done
4845 done
4846 IFS=$as_save_IFS
4847
4848 ;;
4849 esac
4850 fi
4851 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4852 if test -n "$INSTALL_INFO"; then
4853 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4854 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4855 else
4856 { echo "$as_me:$LINENO: result: no" >&5
4857 echo "${ECHO_T}no" >&6; }
4858 fi
4859
4860
4861 # Extract the first word of "install-info", so it can be a program name with args.
4862 set dummy install-info; ac_word=$2
4863 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4864 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4865 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
4866 echo $ECHO_N "(cached) $ECHO_C" >&6
4867 else
4868 case $INSTALL_INFO in
4869 [\\/]* | ?:[\\/]*)
4870 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
4871 ;;
4872 *)
4873 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4874 for as_dir in /sbin
4875 do
4876 IFS=$as_save_IFS
4877 test -z "$as_dir" && as_dir=.
4878 for ac_exec_ext in '' $ac_executable_extensions; do
4879 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4880 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
4881 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4882 break 2
4883 fi
4884 done
4885 done
4886 IFS=$as_save_IFS
4887
4888 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
4889 ;;
4890 esac
4891 fi
4892 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
4893 if test -n "$INSTALL_INFO"; then
4894 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
4895 echo "${ECHO_T}$INSTALL_INFO" >&6; }
4896 else
4897 { echo "$as_me:$LINENO: result: no" >&5
4898 echo "${ECHO_T}no" >&6; }
4899 fi
4900
4901
4902 # Extract the first word of "gzip", so it can be a program name with args.
4903 set dummy gzip; ac_word=$2
4904 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4905 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4906 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
4907 echo $ECHO_N "(cached) $ECHO_C" >&6
4908 else
4909 case $GZIP_PROG in
4910 [\\/]* | ?:[\\/]*)
4911 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
4912 ;;
4913 *)
4914 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4915 for as_dir in $PATH
4916 do
4917 IFS=$as_save_IFS
4918 test -z "$as_dir" && as_dir=.
4919 for ac_exec_ext in '' $ac_executable_extensions; do
4920 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4921 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
4922 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4923 break 2
4924 fi
4925 done
4926 done
4927 IFS=$as_save_IFS
4928
4929 ;;
4930 esac
4931 fi
4932 GZIP_PROG=$ac_cv_path_GZIP_PROG
4933 if test -n "$GZIP_PROG"; then
4934 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
4935 echo "${ECHO_T}$GZIP_PROG" >&6; }
4936 else
4937 { echo "$as_me:$LINENO: result: no" >&5
4938 echo "${ECHO_T}no" >&6; }
4939 fi
4940
4941
4942
4943
4944 ## Need makeinfo >= 4.6 (?) to build the manuals.
4945 # Extract the first word of "makeinfo", so it can be a program name with args.
4946 set dummy makeinfo; ac_word=$2
4947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4949 if test "${ac_cv_path_MAKEINFO+set}" = set; then
4950 echo $ECHO_N "(cached) $ECHO_C" >&6
4951 else
4952 case $MAKEINFO in
4953 [\\/]* | ?:[\\/]*)
4954 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
4955 ;;
4956 *)
4957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4958 for as_dir in $PATH
4959 do
4960 IFS=$as_save_IFS
4961 test -z "$as_dir" && as_dir=.
4962 for ac_exec_ext in '' $ac_executable_extensions; do
4963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4964 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
4965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4966 break 2
4967 fi
4968 done
4969 done
4970 IFS=$as_save_IFS
4971
4972 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
4973 ;;
4974 esac
4975 fi
4976 MAKEINFO=$ac_cv_path_MAKEINFO
4977 if test -n "$MAKEINFO"; then
4978 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
4979 echo "${ECHO_T}$MAKEINFO" >&6; }
4980 else
4981 { echo "$as_me:$LINENO: result: no" >&5
4982 echo "${ECHO_T}no" >&6; }
4983 fi
4984
4985
4986 if test "$MAKEINFO" != "no" && \
4987 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
4988 MAKEINFO=no
4989 fi
4990
4991 if test "$MAKEINFO" = "no"; then
4992 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
4993 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
4994 { (exit 1); exit 1; }; }
4995 fi
4996
4997
4998
4999 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5000 then
5001 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5002 fi
5003
5004 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5005 then
5006 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5007 fi
5008
5009
5010 late_LDFLAGS=$LDFLAGS
5011 if test "$GCC" = yes; then
5012 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5013 else
5014 LDFLAGS="$LDFLAGS -znocombreloc"
5015 fi
5016
5017 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5018 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5019 cat >conftest.$ac_ext <<_ACEOF
5020 main(){return 0;}
5021 _ACEOF
5022 rm -f conftest.$ac_objext conftest$ac_exeext
5023 if { (ac_try="$ac_link"
5024 case "(($ac_try" in
5025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5026 *) ac_try_echo=$ac_try;;
5027 esac
5028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5029 (eval "$ac_link") 2>conftest.er1
5030 ac_status=$?
5031 grep -v '^ *+' conftest.er1 >conftest.err
5032 rm -f conftest.er1
5033 cat conftest.err >&5
5034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5035 (exit $ac_status); } && {
5036 test -z "$ac_c_werror_flag" ||
5037 test ! -s conftest.err
5038 } && test -s conftest$ac_exeext &&
5039 $as_test_x conftest$ac_exeext; then
5040 { echo "$as_me:$LINENO: result: yes" >&5
5041 echo "${ECHO_T}yes" >&6; }
5042 else
5043 echo "$as_me: failed program was:" >&5
5044 sed 's/^/| /' conftest.$ac_ext >&5
5045
5046 LDFLAGS=$late_LDFLAGS
5047 { echo "$as_me:$LINENO: result: no" >&5
5048 echo "${ECHO_T}no" >&6; }
5049 fi
5050
5051 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5052 conftest$ac_exeext conftest.$ac_ext
5053
5054 #### Extract some information from the operating system and machine files.
5055
5056 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5057 - which libraries the lib-src programs will want, and
5058 - whether the GNU malloc routines are usable..." >&5
5059 echo "$as_me: checking the machine- and system-dependent files to find out
5060 - which libraries the lib-src programs will want, and
5061 - whether the GNU malloc routines are usable..." >&6;}
5062
5063 ### First figure out CFLAGS (which we use for running the compiler here)
5064 ### and REAL_CFLAGS (which we use for real compilation).
5065 ### The two are the same except on a few systems, where they are made
5066 ### different to work around various lossages. For example,
5067 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5068 ### as implying static linking.
5069
5070 ### If the CFLAGS env var is specified, we use that value
5071 ### instead of the default.
5072
5073 ### It's not important that this name contain the PID; you can't run
5074 ### two configures in the same directory and have anything work
5075 ### anyway.
5076 tempcname="conftest.c"
5077
5078 echo '
5079 #include "'${srcdir}'/src/'${opsysfile}'"
5080 #include "'${srcdir}'/src/'${machfile}'"
5081 #ifndef LIBS_MACHINE
5082 #define LIBS_MACHINE
5083 #endif
5084 #ifndef LIBS_SYSTEM
5085 #define LIBS_SYSTEM
5086 #endif
5087 #ifndef C_SWITCH_SYSTEM
5088 #define C_SWITCH_SYSTEM
5089 #endif
5090 #ifndef C_SWITCH_MACHINE
5091 #define C_SWITCH_MACHINE
5092 #endif
5093 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5094 configure___ c_switch_system=C_SWITCH_SYSTEM
5095 configure___ c_switch_machine=C_SWITCH_MACHINE
5096
5097 #ifndef LIB_X11_LIB
5098 #define LIB_X11_LIB -lX11
5099 #endif
5100
5101 #ifndef LIBX11_MACHINE
5102 #define LIBX11_MACHINE
5103 #endif
5104
5105 #ifndef LIBX11_SYSTEM
5106 #define LIBX11_SYSTEM
5107 #endif
5108 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5109
5110 #ifdef UNEXEC
5111 configure___ unexec=UNEXEC
5112 #else
5113 configure___ unexec=unexec.o
5114 #endif
5115
5116 #ifdef SYSTEM_MALLOC
5117 configure___ system_malloc=yes
5118 #else
5119 configure___ system_malloc=no
5120 #endif
5121
5122 #ifdef USE_MMAP_FOR_BUFFERS
5123 configure___ use_mmap_for_buffers=yes
5124 #else
5125 configure___ use_mmap_for_buffers=no
5126 #endif
5127
5128 #ifndef C_DEBUG_SWITCH
5129 #define C_DEBUG_SWITCH -g
5130 #endif
5131
5132 #ifndef C_OPTIMIZE_SWITCH
5133 #ifdef __GNUC__
5134 #define C_OPTIMIZE_SWITCH -O2
5135 #else
5136 #define C_OPTIMIZE_SWITCH -O
5137 #endif
5138 #endif
5139
5140 #ifndef C_WARNINGS_SWITCH
5141 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5142 #endif
5143
5144 #ifndef LD_SWITCH_MACHINE
5145 #define LD_SWITCH_MACHINE
5146 #endif
5147
5148 #ifndef LD_SWITCH_SYSTEM
5149 #define LD_SWITCH_SYSTEM
5150 #endif
5151
5152 #ifndef LD_SWITCH_X_SITE_AUX
5153 #define LD_SWITCH_X_SITE_AUX
5154 #endif
5155
5156 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5157 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5158
5159 #ifdef THIS_IS_CONFIGURE
5160
5161 /* Get the CFLAGS for tests in configure. */
5162 #ifdef __GNUC__
5163 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5164 #else
5165 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5166 #endif
5167
5168 #else /* not THIS_IS_CONFIGURE */
5169
5170 /* Get the CFLAGS for real compilation. */
5171 #ifdef __GNUC__
5172 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5173 #else
5174 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5175 #endif
5176
5177 #endif /* not THIS_IS_CONFIGURE */
5178 ' > ${tempcname}
5179
5180 # The value of CPP is a quoted variable reference, so we need to do this
5181 # to get its actual value...
5182 CPP=`eval "echo $CPP"`
5183 eval `${CPP} -Isrc ${tempcname} \
5184 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5185 if test "x$SPECIFIED_CFLAGS" = x; then
5186 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5187 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5188 else
5189 REAL_CFLAGS="$CFLAGS"
5190 fi
5191 rm ${tempcname}
5192
5193 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5194
5195 ### Make sure subsequent tests use flags consistent with the build flags.
5196
5197 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5198 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5199 else
5200 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5201 fi
5202
5203
5204
5205 # Check whether --enable-largefile was given.
5206 if test "${enable_largefile+set}" = set; then
5207 enableval=$enable_largefile;
5208 fi
5209
5210 if test "$enable_largefile" != no; then
5211
5212 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5213 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5214 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 ac_cv_sys_largefile_CC=no
5218 if test "$GCC" != yes; then
5219 ac_save_CC=$CC
5220 while :; do
5221 # IRIX 6.2 and later do not support large files by default,
5222 # so use the C compiler's -n32 option if that helps.
5223 cat >conftest.$ac_ext <<_ACEOF
5224 /* confdefs.h. */
5225 _ACEOF
5226 cat confdefs.h >>conftest.$ac_ext
5227 cat >>conftest.$ac_ext <<_ACEOF
5228 /* end confdefs.h. */
5229 #include <sys/types.h>
5230 /* Check that off_t can represent 2**63 - 1 correctly.
5231 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5232 since some C++ compilers masquerading as C compilers
5233 incorrectly reject 9223372036854775807. */
5234 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5235 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5236 && LARGE_OFF_T % 2147483647 == 1)
5237 ? 1 : -1];
5238 int
5239 main ()
5240 {
5241
5242 ;
5243 return 0;
5244 }
5245 _ACEOF
5246 rm -f conftest.$ac_objext
5247 if { (ac_try="$ac_compile"
5248 case "(($ac_try" in
5249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5250 *) ac_try_echo=$ac_try;;
5251 esac
5252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5253 (eval "$ac_compile") 2>conftest.er1
5254 ac_status=$?
5255 grep -v '^ *+' conftest.er1 >conftest.err
5256 rm -f conftest.er1
5257 cat conftest.err >&5
5258 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5259 (exit $ac_status); } && {
5260 test -z "$ac_c_werror_flag" ||
5261 test ! -s conftest.err
5262 } && test -s conftest.$ac_objext; then
5263 break
5264 else
5265 echo "$as_me: failed program was:" >&5
5266 sed 's/^/| /' conftest.$ac_ext >&5
5267
5268
5269 fi
5270
5271 rm -f core conftest.err conftest.$ac_objext
5272 CC="$CC -n32"
5273 rm -f conftest.$ac_objext
5274 if { (ac_try="$ac_compile"
5275 case "(($ac_try" in
5276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5277 *) ac_try_echo=$ac_try;;
5278 esac
5279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5280 (eval "$ac_compile") 2>conftest.er1
5281 ac_status=$?
5282 grep -v '^ *+' conftest.er1 >conftest.err
5283 rm -f conftest.er1
5284 cat conftest.err >&5
5285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5286 (exit $ac_status); } && {
5287 test -z "$ac_c_werror_flag" ||
5288 test ! -s conftest.err
5289 } && test -s conftest.$ac_objext; then
5290 ac_cv_sys_largefile_CC=' -n32'; break
5291 else
5292 echo "$as_me: failed program was:" >&5
5293 sed 's/^/| /' conftest.$ac_ext >&5
5294
5295
5296 fi
5297
5298 rm -f core conftest.err conftest.$ac_objext
5299 break
5300 done
5301 CC=$ac_save_CC
5302 rm -f conftest.$ac_ext
5303 fi
5304 fi
5305 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5306 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5307 if test "$ac_cv_sys_largefile_CC" != no; then
5308 CC=$CC$ac_cv_sys_largefile_CC
5309 fi
5310
5311 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5312 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5313 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5314 echo $ECHO_N "(cached) $ECHO_C" >&6
5315 else
5316 while :; do
5317 cat >conftest.$ac_ext <<_ACEOF
5318 /* confdefs.h. */
5319 _ACEOF
5320 cat confdefs.h >>conftest.$ac_ext
5321 cat >>conftest.$ac_ext <<_ACEOF
5322 /* end confdefs.h. */
5323 #include <sys/types.h>
5324 /* Check that off_t can represent 2**63 - 1 correctly.
5325 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5326 since some C++ compilers masquerading as C compilers
5327 incorrectly reject 9223372036854775807. */
5328 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5329 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5330 && LARGE_OFF_T % 2147483647 == 1)
5331 ? 1 : -1];
5332 int
5333 main ()
5334 {
5335
5336 ;
5337 return 0;
5338 }
5339 _ACEOF
5340 rm -f conftest.$ac_objext
5341 if { (ac_try="$ac_compile"
5342 case "(($ac_try" in
5343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5344 *) ac_try_echo=$ac_try;;
5345 esac
5346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5347 (eval "$ac_compile") 2>conftest.er1
5348 ac_status=$?
5349 grep -v '^ *+' conftest.er1 >conftest.err
5350 rm -f conftest.er1
5351 cat conftest.err >&5
5352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5353 (exit $ac_status); } && {
5354 test -z "$ac_c_werror_flag" ||
5355 test ! -s conftest.err
5356 } && test -s conftest.$ac_objext; then
5357 ac_cv_sys_file_offset_bits=no; break
5358 else
5359 echo "$as_me: failed program was:" >&5
5360 sed 's/^/| /' conftest.$ac_ext >&5
5361
5362
5363 fi
5364
5365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5366 cat >conftest.$ac_ext <<_ACEOF
5367 /* confdefs.h. */
5368 _ACEOF
5369 cat confdefs.h >>conftest.$ac_ext
5370 cat >>conftest.$ac_ext <<_ACEOF
5371 /* end confdefs.h. */
5372 #define _FILE_OFFSET_BITS 64
5373 #include <sys/types.h>
5374 /* Check that off_t can represent 2**63 - 1 correctly.
5375 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5376 since some C++ compilers masquerading as C compilers
5377 incorrectly reject 9223372036854775807. */
5378 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5379 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5380 && LARGE_OFF_T % 2147483647 == 1)
5381 ? 1 : -1];
5382 int
5383 main ()
5384 {
5385
5386 ;
5387 return 0;
5388 }
5389 _ACEOF
5390 rm -f conftest.$ac_objext
5391 if { (ac_try="$ac_compile"
5392 case "(($ac_try" in
5393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5394 *) ac_try_echo=$ac_try;;
5395 esac
5396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5397 (eval "$ac_compile") 2>conftest.er1
5398 ac_status=$?
5399 grep -v '^ *+' conftest.er1 >conftest.err
5400 rm -f conftest.er1
5401 cat conftest.err >&5
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); } && {
5404 test -z "$ac_c_werror_flag" ||
5405 test ! -s conftest.err
5406 } && test -s conftest.$ac_objext; then
5407 ac_cv_sys_file_offset_bits=64; break
5408 else
5409 echo "$as_me: failed program was:" >&5
5410 sed 's/^/| /' conftest.$ac_ext >&5
5411
5412
5413 fi
5414
5415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5416 ac_cv_sys_file_offset_bits=unknown
5417 break
5418 done
5419 fi
5420 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5421 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5422 case $ac_cv_sys_file_offset_bits in #(
5423 no | unknown) ;;
5424 *)
5425 cat >>confdefs.h <<_ACEOF
5426 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5427 _ACEOF
5428 ;;
5429 esac
5430 rm -f conftest*
5431 if test $ac_cv_sys_file_offset_bits = unknown; then
5432 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5433 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5434 if test "${ac_cv_sys_large_files+set}" = set; then
5435 echo $ECHO_N "(cached) $ECHO_C" >&6
5436 else
5437 while :; do
5438 cat >conftest.$ac_ext <<_ACEOF
5439 /* confdefs.h. */
5440 _ACEOF
5441 cat confdefs.h >>conftest.$ac_ext
5442 cat >>conftest.$ac_ext <<_ACEOF
5443 /* end confdefs.h. */
5444 #include <sys/types.h>
5445 /* Check that off_t can represent 2**63 - 1 correctly.
5446 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5447 since some C++ compilers masquerading as C compilers
5448 incorrectly reject 9223372036854775807. */
5449 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5450 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5451 && LARGE_OFF_T % 2147483647 == 1)
5452 ? 1 : -1];
5453 int
5454 main ()
5455 {
5456
5457 ;
5458 return 0;
5459 }
5460 _ACEOF
5461 rm -f conftest.$ac_objext
5462 if { (ac_try="$ac_compile"
5463 case "(($ac_try" in
5464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5465 *) ac_try_echo=$ac_try;;
5466 esac
5467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5468 (eval "$ac_compile") 2>conftest.er1
5469 ac_status=$?
5470 grep -v '^ *+' conftest.er1 >conftest.err
5471 rm -f conftest.er1
5472 cat conftest.err >&5
5473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5474 (exit $ac_status); } && {
5475 test -z "$ac_c_werror_flag" ||
5476 test ! -s conftest.err
5477 } && test -s conftest.$ac_objext; then
5478 ac_cv_sys_large_files=no; break
5479 else
5480 echo "$as_me: failed program was:" >&5
5481 sed 's/^/| /' conftest.$ac_ext >&5
5482
5483
5484 fi
5485
5486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5487 cat >conftest.$ac_ext <<_ACEOF
5488 /* confdefs.h. */
5489 _ACEOF
5490 cat confdefs.h >>conftest.$ac_ext
5491 cat >>conftest.$ac_ext <<_ACEOF
5492 /* end confdefs.h. */
5493 #define _LARGE_FILES 1
5494 #include <sys/types.h>
5495 /* Check that off_t can represent 2**63 - 1 correctly.
5496 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5497 since some C++ compilers masquerading as C compilers
5498 incorrectly reject 9223372036854775807. */
5499 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5500 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5501 && LARGE_OFF_T % 2147483647 == 1)
5502 ? 1 : -1];
5503 int
5504 main ()
5505 {
5506
5507 ;
5508 return 0;
5509 }
5510 _ACEOF
5511 rm -f conftest.$ac_objext
5512 if { (ac_try="$ac_compile"
5513 case "(($ac_try" in
5514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5515 *) ac_try_echo=$ac_try;;
5516 esac
5517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5518 (eval "$ac_compile") 2>conftest.er1
5519 ac_status=$?
5520 grep -v '^ *+' conftest.er1 >conftest.err
5521 rm -f conftest.er1
5522 cat conftest.err >&5
5523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5524 (exit $ac_status); } && {
5525 test -z "$ac_c_werror_flag" ||
5526 test ! -s conftest.err
5527 } && test -s conftest.$ac_objext; then
5528 ac_cv_sys_large_files=1; break
5529 else
5530 echo "$as_me: failed program was:" >&5
5531 sed 's/^/| /' conftest.$ac_ext >&5
5532
5533
5534 fi
5535
5536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5537 ac_cv_sys_large_files=unknown
5538 break
5539 done
5540 fi
5541 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5542 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5543 case $ac_cv_sys_large_files in #(
5544 no | unknown) ;;
5545 *)
5546 cat >>confdefs.h <<_ACEOF
5547 #define _LARGE_FILES $ac_cv_sys_large_files
5548 _ACEOF
5549 ;;
5550 esac
5551 rm -f conftest*
5552 fi
5553 fi
5554
5555
5556
5557 ### The standard library on x86-64 and s390x GNU/Linux distributions can
5558 ### be located in either /usr/lib64 or /usr/lib.
5559 case "${canonical}" in
5560 x86_64-*-linux-gnu* | s390x-*-linux-gnu* )
5561 if test -d /usr/lib64; then
5562
5563 cat >>confdefs.h <<\_ACEOF
5564 #define HAVE_LIB64_DIR 1
5565 _ACEOF
5566
5567 fi
5568 esac
5569
5570
5571
5572
5573 if test "${with_sound}" != "no"; then
5574 # Sound support for GNU/Linux and the free BSDs.
5575 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5576 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5577 if test "${ac_cv_header_stdc+set}" = set; then
5578 echo $ECHO_N "(cached) $ECHO_C" >&6
5579 else
5580 cat >conftest.$ac_ext <<_ACEOF
5581 /* confdefs.h. */
5582 _ACEOF
5583 cat confdefs.h >>conftest.$ac_ext
5584 cat >>conftest.$ac_ext <<_ACEOF
5585 /* end confdefs.h. */
5586 #include <stdlib.h>
5587 #include <stdarg.h>
5588 #include <string.h>
5589 #include <float.h>
5590
5591 int
5592 main ()
5593 {
5594
5595 ;
5596 return 0;
5597 }
5598 _ACEOF
5599 rm -f conftest.$ac_objext
5600 if { (ac_try="$ac_compile"
5601 case "(($ac_try" in
5602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5603 *) ac_try_echo=$ac_try;;
5604 esac
5605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5606 (eval "$ac_compile") 2>conftest.er1
5607 ac_status=$?
5608 grep -v '^ *+' conftest.er1 >conftest.err
5609 rm -f conftest.er1
5610 cat conftest.err >&5
5611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5612 (exit $ac_status); } && {
5613 test -z "$ac_c_werror_flag" ||
5614 test ! -s conftest.err
5615 } && test -s conftest.$ac_objext; then
5616 ac_cv_header_stdc=yes
5617 else
5618 echo "$as_me: failed program was:" >&5
5619 sed 's/^/| /' conftest.$ac_ext >&5
5620
5621 ac_cv_header_stdc=no
5622 fi
5623
5624 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5625
5626 if test $ac_cv_header_stdc = yes; then
5627 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5628 cat >conftest.$ac_ext <<_ACEOF
5629 /* confdefs.h. */
5630 _ACEOF
5631 cat confdefs.h >>conftest.$ac_ext
5632 cat >>conftest.$ac_ext <<_ACEOF
5633 /* end confdefs.h. */
5634 #include <string.h>
5635
5636 _ACEOF
5637 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5638 $EGREP "memchr" >/dev/null 2>&1; then
5639 :
5640 else
5641 ac_cv_header_stdc=no
5642 fi
5643 rm -f conftest*
5644
5645 fi
5646
5647 if test $ac_cv_header_stdc = yes; then
5648 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5649 cat >conftest.$ac_ext <<_ACEOF
5650 /* confdefs.h. */
5651 _ACEOF
5652 cat confdefs.h >>conftest.$ac_ext
5653 cat >>conftest.$ac_ext <<_ACEOF
5654 /* end confdefs.h. */
5655 #include <stdlib.h>
5656
5657 _ACEOF
5658 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5659 $EGREP "free" >/dev/null 2>&1; then
5660 :
5661 else
5662 ac_cv_header_stdc=no
5663 fi
5664 rm -f conftest*
5665
5666 fi
5667
5668 if test $ac_cv_header_stdc = yes; then
5669 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5670 if test "$cross_compiling" = yes; then
5671 :
5672 else
5673 cat >conftest.$ac_ext <<_ACEOF
5674 /* confdefs.h. */
5675 _ACEOF
5676 cat confdefs.h >>conftest.$ac_ext
5677 cat >>conftest.$ac_ext <<_ACEOF
5678 /* end confdefs.h. */
5679 #include <ctype.h>
5680 #include <stdlib.h>
5681 #if ((' ' & 0x0FF) == 0x020)
5682 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5683 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5684 #else
5685 # define ISLOWER(c) \
5686 (('a' <= (c) && (c) <= 'i') \
5687 || ('j' <= (c) && (c) <= 'r') \
5688 || ('s' <= (c) && (c) <= 'z'))
5689 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5690 #endif
5691
5692 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5693 int
5694 main ()
5695 {
5696 int i;
5697 for (i = 0; i < 256; i++)
5698 if (XOR (islower (i), ISLOWER (i))
5699 || toupper (i) != TOUPPER (i))
5700 return 2;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest$ac_exeext
5705 if { (ac_try="$ac_link"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_link") 2>&5
5712 ac_status=$?
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5715 { (case "(($ac_try" in
5716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5717 *) ac_try_echo=$ac_try;;
5718 esac
5719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5720 (eval "$ac_try") 2>&5
5721 ac_status=$?
5722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5723 (exit $ac_status); }; }; then
5724 :
5725 else
5726 echo "$as_me: program exited with status $ac_status" >&5
5727 echo "$as_me: failed program was:" >&5
5728 sed 's/^/| /' conftest.$ac_ext >&5
5729
5730 ( exit $ac_status )
5731 ac_cv_header_stdc=no
5732 fi
5733 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5734 fi
5735
5736
5737 fi
5738 fi
5739 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5740 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5741 if test $ac_cv_header_stdc = yes; then
5742
5743 cat >>confdefs.h <<\_ACEOF
5744 #define STDC_HEADERS 1
5745 _ACEOF
5746
5747 fi
5748
5749 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5750
5751
5752
5753
5754
5755
5756
5757
5758
5759 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5760 inttypes.h stdint.h unistd.h
5761 do
5762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5766 echo $ECHO_N "(cached) $ECHO_C" >&6
5767 else
5768 cat >conftest.$ac_ext <<_ACEOF
5769 /* confdefs.h. */
5770 _ACEOF
5771 cat confdefs.h >>conftest.$ac_ext
5772 cat >>conftest.$ac_ext <<_ACEOF
5773 /* end confdefs.h. */
5774 $ac_includes_default
5775
5776 #include <$ac_header>
5777 _ACEOF
5778 rm -f conftest.$ac_objext
5779 if { (ac_try="$ac_compile"
5780 case "(($ac_try" in
5781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782 *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785 (eval "$ac_compile") 2>conftest.er1
5786 ac_status=$?
5787 grep -v '^ *+' conftest.er1 >conftest.err
5788 rm -f conftest.er1
5789 cat conftest.err >&5
5790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5791 (exit $ac_status); } && {
5792 test -z "$ac_c_werror_flag" ||
5793 test ! -s conftest.err
5794 } && test -s conftest.$ac_objext; then
5795 eval "$as_ac_Header=yes"
5796 else
5797 echo "$as_me: failed program was:" >&5
5798 sed 's/^/| /' conftest.$ac_ext >&5
5799
5800 eval "$as_ac_Header=no"
5801 fi
5802
5803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5804 fi
5805 ac_res=`eval echo '${'$as_ac_Header'}'`
5806 { echo "$as_me:$LINENO: result: $ac_res" >&5
5807 echo "${ECHO_T}$ac_res" >&6; }
5808 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5809 cat >>confdefs.h <<_ACEOF
5810 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5811 _ACEOF
5812
5813 fi
5814
5815 done
5816
5817
5818
5819
5820
5821 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
5822 do
5823 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5824 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5825 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5826 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5827 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5828 echo $ECHO_N "(cached) $ECHO_C" >&6
5829 fi
5830 ac_res=`eval echo '${'$as_ac_Header'}'`
5831 { echo "$as_me:$LINENO: result: $ac_res" >&5
5832 echo "${ECHO_T}$ac_res" >&6; }
5833 else
5834 # Is the header compilable?
5835 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5836 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5837 cat >conftest.$ac_ext <<_ACEOF
5838 /* confdefs.h. */
5839 _ACEOF
5840 cat confdefs.h >>conftest.$ac_ext
5841 cat >>conftest.$ac_ext <<_ACEOF
5842 /* end confdefs.h. */
5843 $ac_includes_default
5844 #include <$ac_header>
5845 _ACEOF
5846 rm -f conftest.$ac_objext
5847 if { (ac_try="$ac_compile"
5848 case "(($ac_try" in
5849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850 *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853 (eval "$ac_compile") 2>conftest.er1
5854 ac_status=$?
5855 grep -v '^ *+' conftest.er1 >conftest.err
5856 rm -f conftest.er1
5857 cat conftest.err >&5
5858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5859 (exit $ac_status); } && {
5860 test -z "$ac_c_werror_flag" ||
5861 test ! -s conftest.err
5862 } && test -s conftest.$ac_objext; then
5863 ac_header_compiler=yes
5864 else
5865 echo "$as_me: failed program was:" >&5
5866 sed 's/^/| /' conftest.$ac_ext >&5
5867
5868 ac_header_compiler=no
5869 fi
5870
5871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5873 echo "${ECHO_T}$ac_header_compiler" >&6; }
5874
5875 # Is the header present?
5876 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5877 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5878 cat >conftest.$ac_ext <<_ACEOF
5879 /* confdefs.h. */
5880 _ACEOF
5881 cat confdefs.h >>conftest.$ac_ext
5882 cat >>conftest.$ac_ext <<_ACEOF
5883 /* end confdefs.h. */
5884 #include <$ac_header>
5885 _ACEOF
5886 if { (ac_try="$ac_cpp conftest.$ac_ext"
5887 case "(($ac_try" in
5888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5889 *) ac_try_echo=$ac_try;;
5890 esac
5891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5892 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5893 ac_status=$?
5894 grep -v '^ *+' conftest.er1 >conftest.err
5895 rm -f conftest.er1
5896 cat conftest.err >&5
5897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5898 (exit $ac_status); } >/dev/null && {
5899 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
5900 test ! -s conftest.err
5901 }; then
5902 ac_header_preproc=yes
5903 else
5904 echo "$as_me: failed program was:" >&5
5905 sed 's/^/| /' conftest.$ac_ext >&5
5906
5907 ac_header_preproc=no
5908 fi
5909
5910 rm -f conftest.err conftest.$ac_ext
5911 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5912 echo "${ECHO_T}$ac_header_preproc" >&6; }
5913
5914 # So? What about this header?
5915 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
5916 yes:no: )
5917 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5918 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5919 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5920 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5921 ac_header_preproc=yes
5922 ;;
5923 no:yes:* )
5924 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5925 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5926 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5927 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5928 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5929 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5930 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5931 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5933 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5934 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5935 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5936
5937 ;;
5938 esac
5939 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5940 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5941 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5942 echo $ECHO_N "(cached) $ECHO_C" >&6
5943 else
5944 eval "$as_ac_Header=\$ac_header_preproc"
5945 fi
5946 ac_res=`eval echo '${'$as_ac_Header'}'`
5947 { echo "$as_me:$LINENO: result: $ac_res" >&5
5948 echo "${ECHO_T}$ac_res" >&6; }
5949
5950 fi
5951 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5952 cat >>confdefs.h <<_ACEOF
5953 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5954 _ACEOF
5955
5956 fi
5957
5958 done
5959
5960 # Emulation library used on NetBSD.
5961 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
5962 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
5963 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 ac_check_lib_save_LIBS=$LIBS
5967 LIBS="-lossaudio $LIBS"
5968 cat >conftest.$ac_ext <<_ACEOF
5969 /* confdefs.h. */
5970 _ACEOF
5971 cat confdefs.h >>conftest.$ac_ext
5972 cat >>conftest.$ac_ext <<_ACEOF
5973 /* end confdefs.h. */
5974
5975 /* Override any GCC internal prototype to avoid an error.
5976 Use char because int might match the return type of a GCC
5977 builtin and then its argument prototype would still apply. */
5978 #ifdef __cplusplus
5979 extern "C"
5980 #endif
5981 char _oss_ioctl ();
5982 int
5983 main ()
5984 {
5985 return _oss_ioctl ();
5986 ;
5987 return 0;
5988 }
5989 _ACEOF
5990 rm -f conftest.$ac_objext conftest$ac_exeext
5991 if { (ac_try="$ac_link"
5992 case "(($ac_try" in
5993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5994 *) ac_try_echo=$ac_try;;
5995 esac
5996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5997 (eval "$ac_link") 2>conftest.er1
5998 ac_status=$?
5999 grep -v '^ *+' conftest.er1 >conftest.err
6000 rm -f conftest.er1
6001 cat conftest.err >&5
6002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003 (exit $ac_status); } && {
6004 test -z "$ac_c_werror_flag" ||
6005 test ! -s conftest.err
6006 } && test -s conftest$ac_exeext &&
6007 $as_test_x conftest$ac_exeext; then
6008 ac_cv_lib_ossaudio__oss_ioctl=yes
6009 else
6010 echo "$as_me: failed program was:" >&5
6011 sed 's/^/| /' conftest.$ac_ext >&5
6012
6013 ac_cv_lib_ossaudio__oss_ioctl=no
6014 fi
6015
6016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6017 conftest$ac_exeext conftest.$ac_ext
6018 LIBS=$ac_check_lib_save_LIBS
6019 fi
6020 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6021 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6022 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6023 LIBSOUND=-lossaudio
6024 else
6025 LIBSOUND=
6026 fi
6027
6028
6029
6030 ALSA_REQUIRED=1.0.0
6031 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6032
6033 succeeded=no
6034
6035 # Extract the first word of "pkg-config", so it can be a program name with args.
6036 set dummy pkg-config; ac_word=$2
6037 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6038 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6039 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6040 echo $ECHO_N "(cached) $ECHO_C" >&6
6041 else
6042 case $PKG_CONFIG in
6043 [\\/]* | ?:[\\/]*)
6044 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6045 ;;
6046 *)
6047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6048 for as_dir in $PATH
6049 do
6050 IFS=$as_save_IFS
6051 test -z "$as_dir" && as_dir=.
6052 for ac_exec_ext in '' $ac_executable_extensions; do
6053 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6054 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6055 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6056 break 2
6057 fi
6058 done
6059 done
6060 IFS=$as_save_IFS
6061
6062 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6063 ;;
6064 esac
6065 fi
6066 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6067 if test -n "$PKG_CONFIG"; then
6068 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6069 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6070 else
6071 { echo "$as_me:$LINENO: result: no" >&5
6072 echo "${ECHO_T}no" >&6; }
6073 fi
6074
6075
6076
6077 if test "$PKG_CONFIG" = "no" ; then
6078 HAVE_ALSA=no
6079 else
6080 PKG_CONFIG_MIN_VERSION=0.9.0
6081 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6082 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6083 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6084
6085 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6086 { echo "$as_me:$LINENO: result: yes" >&5
6087 echo "${ECHO_T}yes" >&6; }
6088 succeeded=yes
6089
6090 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6091 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6092 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6093 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6094 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6095
6096 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6097 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6098 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6099 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6100 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6101 else
6102 { echo "$as_me:$LINENO: result: no" >&5
6103 echo "${ECHO_T}no" >&6; }
6104 ALSA_CFLAGS=""
6105 ALSA_LIBS=""
6106 ## If we have a custom action on failure, don't print errors, but
6107 ## do set a variable so people can do so.
6108 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6109
6110 fi
6111
6112
6113
6114 else
6115 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6116 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6117 fi
6118 fi
6119
6120 if test $succeeded = yes; then
6121 HAVE_ALSA=yes
6122 else
6123 HAVE_ALSA=no
6124 fi
6125
6126 if test $HAVE_ALSA = yes; then
6127 SAVE_CFLAGS="$CFLAGS"
6128 SAVE_LDFLAGS="$LDFLAGS"
6129 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6130 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 #include <asoundlib.h>
6138 int
6139 main ()
6140 {
6141 snd_lib_error_set_handler (0);
6142 ;
6143 return 0;
6144 }
6145 _ACEOF
6146 rm -f conftest.$ac_objext
6147 if { (ac_try="$ac_compile"
6148 case "(($ac_try" in
6149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6150 *) ac_try_echo=$ac_try;;
6151 esac
6152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6153 (eval "$ac_compile") 2>conftest.er1
6154 ac_status=$?
6155 grep -v '^ *+' conftest.er1 >conftest.err
6156 rm -f conftest.er1
6157 cat conftest.err >&5
6158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6159 (exit $ac_status); } && {
6160 test -z "$ac_c_werror_flag" ||
6161 test ! -s conftest.err
6162 } && test -s conftest.$ac_objext; then
6163 emacs_alsa_normal=yes
6164 else
6165 echo "$as_me: failed program was:" >&5
6166 sed 's/^/| /' conftest.$ac_ext >&5
6167
6168 emacs_alsa_normal=no
6169 fi
6170
6171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6172 if test "$emacs_alsa_normal" != yes; then
6173 cat >conftest.$ac_ext <<_ACEOF
6174 /* confdefs.h. */
6175 _ACEOF
6176 cat confdefs.h >>conftest.$ac_ext
6177 cat >>conftest.$ac_ext <<_ACEOF
6178 /* end confdefs.h. */
6179 #include <alsa/asoundlib.h>
6180 int
6181 main ()
6182 {
6183 snd_lib_error_set_handler (0);
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext
6189 if { (ac_try="$ac_compile"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_compile") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest.$ac_objext; then
6205 emacs_alsa_subdir=yes
6206 else
6207 echo "$as_me: failed program was:" >&5
6208 sed 's/^/| /' conftest.$ac_ext >&5
6209
6210 emacs_alsa_subdir=no
6211 fi
6212
6213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6214 if test "$emacs_alsa_subdir" != yes; then
6215 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6216 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6217 { (exit 1); exit 1; }; }
6218 fi
6219 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6220 fi
6221
6222 CFLAGS="$SAVE_CFLAGS"
6223 LDFLAGS="$SAVE_LDFLAGS"
6224 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6225 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6226
6227 cat >>confdefs.h <<\_ACEOF
6228 #define HAVE_ALSA 1
6229 _ACEOF
6230
6231 fi
6232
6233 fi
6234
6235
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 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6261 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6262 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6263 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6264 sys/utsname.h pwd.h
6265 do
6266 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6267 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6271 echo $ECHO_N "(cached) $ECHO_C" >&6
6272 fi
6273 ac_res=`eval echo '${'$as_ac_Header'}'`
6274 { echo "$as_me:$LINENO: result: $ac_res" >&5
6275 echo "${ECHO_T}$ac_res" >&6; }
6276 else
6277 # Is the header compilable?
6278 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6279 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6280 cat >conftest.$ac_ext <<_ACEOF
6281 /* confdefs.h. */
6282 _ACEOF
6283 cat confdefs.h >>conftest.$ac_ext
6284 cat >>conftest.$ac_ext <<_ACEOF
6285 /* end confdefs.h. */
6286 $ac_includes_default
6287 #include <$ac_header>
6288 _ACEOF
6289 rm -f conftest.$ac_objext
6290 if { (ac_try="$ac_compile"
6291 case "(($ac_try" in
6292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6293 *) ac_try_echo=$ac_try;;
6294 esac
6295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6296 (eval "$ac_compile") 2>conftest.er1
6297 ac_status=$?
6298 grep -v '^ *+' conftest.er1 >conftest.err
6299 rm -f conftest.er1
6300 cat conftest.err >&5
6301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6302 (exit $ac_status); } && {
6303 test -z "$ac_c_werror_flag" ||
6304 test ! -s conftest.err
6305 } && test -s conftest.$ac_objext; then
6306 ac_header_compiler=yes
6307 else
6308 echo "$as_me: failed program was:" >&5
6309 sed 's/^/| /' conftest.$ac_ext >&5
6310
6311 ac_header_compiler=no
6312 fi
6313
6314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6316 echo "${ECHO_T}$ac_header_compiler" >&6; }
6317
6318 # Is the header present?
6319 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6320 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6321 cat >conftest.$ac_ext <<_ACEOF
6322 /* confdefs.h. */
6323 _ACEOF
6324 cat confdefs.h >>conftest.$ac_ext
6325 cat >>conftest.$ac_ext <<_ACEOF
6326 /* end confdefs.h. */
6327 #include <$ac_header>
6328 _ACEOF
6329 if { (ac_try="$ac_cpp conftest.$ac_ext"
6330 case "(($ac_try" in
6331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6332 *) ac_try_echo=$ac_try;;
6333 esac
6334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6336 ac_status=$?
6337 grep -v '^ *+' conftest.er1 >conftest.err
6338 rm -f conftest.er1
6339 cat conftest.err >&5
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); } >/dev/null && {
6342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6343 test ! -s conftest.err
6344 }; then
6345 ac_header_preproc=yes
6346 else
6347 echo "$as_me: failed program was:" >&5
6348 sed 's/^/| /' conftest.$ac_ext >&5
6349
6350 ac_header_preproc=no
6351 fi
6352
6353 rm -f conftest.err conftest.$ac_ext
6354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6355 echo "${ECHO_T}$ac_header_preproc" >&6; }
6356
6357 # So? What about this header?
6358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6359 yes:no: )
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6361 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6363 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6364 ac_header_preproc=yes
6365 ;;
6366 no:yes:* )
6367 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6368 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6369 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6370 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6371 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6372 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6373 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6374 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6376 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6377 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6378 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6379
6380 ;;
6381 esac
6382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6385 echo $ECHO_N "(cached) $ECHO_C" >&6
6386 else
6387 eval "$as_ac_Header=\$ac_header_preproc"
6388 fi
6389 ac_res=`eval echo '${'$as_ac_Header'}'`
6390 { echo "$as_me:$LINENO: result: $ac_res" >&5
6391 echo "${ECHO_T}$ac_res" >&6; }
6392
6393 fi
6394 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6395 cat >>confdefs.h <<_ACEOF
6396 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6397 _ACEOF
6398
6399 fi
6400
6401 done
6402
6403
6404 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6405 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6406 cat >conftest.$ac_ext <<_ACEOF
6407 /* confdefs.h. */
6408 _ACEOF
6409 cat confdefs.h >>conftest.$ac_ext
6410 cat >>conftest.$ac_ext <<_ACEOF
6411 /* end confdefs.h. */
6412 #include <sys/personality.h>
6413 int
6414 main ()
6415 {
6416 personality (PER_LINUX32)
6417 ;
6418 return 0;
6419 }
6420 _ACEOF
6421 rm -f conftest.$ac_objext
6422 if { (ac_try="$ac_compile"
6423 case "(($ac_try" in
6424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6425 *) ac_try_echo=$ac_try;;
6426 esac
6427 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6428 (eval "$ac_compile") 2>conftest.er1
6429 ac_status=$?
6430 grep -v '^ *+' conftest.er1 >conftest.err
6431 rm -f conftest.er1
6432 cat conftest.err >&5
6433 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6434 (exit $ac_status); } && {
6435 test -z "$ac_c_werror_flag" ||
6436 test ! -s conftest.err
6437 } && test -s conftest.$ac_objext; then
6438 emacs_cv_personality_linux32=yes
6439 else
6440 echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443 emacs_cv_personality_linux32=no
6444 fi
6445
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6448 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6449
6450 if test $emacs_cv_personality_linux32 = yes; then
6451
6452 cat >>confdefs.h <<\_ACEOF
6453 #define HAVE_PERSONALITY_LINUX32 1
6454 _ACEOF
6455
6456 fi
6457
6458
6459 for ac_header in term.h
6460 do
6461 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6462 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6463 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6464 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6465 echo $ECHO_N "(cached) $ECHO_C" >&6
6466 else
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 #include <$ac_header>
6474 _ACEOF
6475 if { (ac_try="$ac_cpp conftest.$ac_ext"
6476 case "(($ac_try" in
6477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6478 *) ac_try_echo=$ac_try;;
6479 esac
6480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6482 ac_status=$?
6483 grep -v '^ *+' conftest.er1 >conftest.err
6484 rm -f conftest.er1
6485 cat conftest.err >&5
6486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6487 (exit $ac_status); } >/dev/null && {
6488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6489 test ! -s conftest.err
6490 }; then
6491 eval "$as_ac_Header=yes"
6492 else
6493 echo "$as_me: failed program was:" >&5
6494 sed 's/^/| /' conftest.$ac_ext >&5
6495
6496 eval "$as_ac_Header=no"
6497 fi
6498
6499 rm -f conftest.err conftest.$ac_ext
6500 fi
6501 ac_res=`eval echo '${'$as_ac_Header'}'`
6502 { echo "$as_me:$LINENO: result: $ac_res" >&5
6503 echo "${ECHO_T}$ac_res" >&6; }
6504 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6505 cat >>confdefs.h <<_ACEOF
6506 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6507 _ACEOF
6508
6509 fi
6510
6511 done
6512
6513 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6514 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6515 if test "${ac_cv_header_stdc+set}" = set; then
6516 echo $ECHO_N "(cached) $ECHO_C" >&6
6517 else
6518 cat >conftest.$ac_ext <<_ACEOF
6519 /* confdefs.h. */
6520 _ACEOF
6521 cat confdefs.h >>conftest.$ac_ext
6522 cat >>conftest.$ac_ext <<_ACEOF
6523 /* end confdefs.h. */
6524 #include <stdlib.h>
6525 #include <stdarg.h>
6526 #include <string.h>
6527 #include <float.h>
6528
6529 int
6530 main ()
6531 {
6532
6533 ;
6534 return 0;
6535 }
6536 _ACEOF
6537 rm -f conftest.$ac_objext
6538 if { (ac_try="$ac_compile"
6539 case "(($ac_try" in
6540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6541 *) ac_try_echo=$ac_try;;
6542 esac
6543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6544 (eval "$ac_compile") 2>conftest.er1
6545 ac_status=$?
6546 grep -v '^ *+' conftest.er1 >conftest.err
6547 rm -f conftest.er1
6548 cat conftest.err >&5
6549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550 (exit $ac_status); } && {
6551 test -z "$ac_c_werror_flag" ||
6552 test ! -s conftest.err
6553 } && test -s conftest.$ac_objext; then
6554 ac_cv_header_stdc=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 ac_cv_header_stdc=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6563
6564 if test $ac_cv_header_stdc = yes; then
6565 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6566 cat >conftest.$ac_ext <<_ACEOF
6567 /* confdefs.h. */
6568 _ACEOF
6569 cat confdefs.h >>conftest.$ac_ext
6570 cat >>conftest.$ac_ext <<_ACEOF
6571 /* end confdefs.h. */
6572 #include <string.h>
6573
6574 _ACEOF
6575 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6576 $EGREP "memchr" >/dev/null 2>&1; then
6577 :
6578 else
6579 ac_cv_header_stdc=no
6580 fi
6581 rm -f conftest*
6582
6583 fi
6584
6585 if test $ac_cv_header_stdc = yes; then
6586 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6587 cat >conftest.$ac_ext <<_ACEOF
6588 /* confdefs.h. */
6589 _ACEOF
6590 cat confdefs.h >>conftest.$ac_ext
6591 cat >>conftest.$ac_ext <<_ACEOF
6592 /* end confdefs.h. */
6593 #include <stdlib.h>
6594
6595 _ACEOF
6596 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6597 $EGREP "free" >/dev/null 2>&1; then
6598 :
6599 else
6600 ac_cv_header_stdc=no
6601 fi
6602 rm -f conftest*
6603
6604 fi
6605
6606 if test $ac_cv_header_stdc = yes; then
6607 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6608 if test "$cross_compiling" = yes; then
6609 :
6610 else
6611 cat >conftest.$ac_ext <<_ACEOF
6612 /* confdefs.h. */
6613 _ACEOF
6614 cat confdefs.h >>conftest.$ac_ext
6615 cat >>conftest.$ac_ext <<_ACEOF
6616 /* end confdefs.h. */
6617 #include <ctype.h>
6618 #include <stdlib.h>
6619 #if ((' ' & 0x0FF) == 0x020)
6620 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6621 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6622 #else
6623 # define ISLOWER(c) \
6624 (('a' <= (c) && (c) <= 'i') \
6625 || ('j' <= (c) && (c) <= 'r') \
6626 || ('s' <= (c) && (c) <= 'z'))
6627 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6628 #endif
6629
6630 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6631 int
6632 main ()
6633 {
6634 int i;
6635 for (i = 0; i < 256; i++)
6636 if (XOR (islower (i), ISLOWER (i))
6637 || toupper (i) != TOUPPER (i))
6638 return 2;
6639 return 0;
6640 }
6641 _ACEOF
6642 rm -f conftest$ac_exeext
6643 if { (ac_try="$ac_link"
6644 case "(($ac_try" in
6645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6646 *) ac_try_echo=$ac_try;;
6647 esac
6648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6649 (eval "$ac_link") 2>&5
6650 ac_status=$?
6651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6653 { (case "(($ac_try" in
6654 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6655 *) ac_try_echo=$ac_try;;
6656 esac
6657 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6658 (eval "$ac_try") 2>&5
6659 ac_status=$?
6660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6661 (exit $ac_status); }; }; then
6662 :
6663 else
6664 echo "$as_me: program exited with status $ac_status" >&5
6665 echo "$as_me: failed program was:" >&5
6666 sed 's/^/| /' conftest.$ac_ext >&5
6667
6668 ( exit $ac_status )
6669 ac_cv_header_stdc=no
6670 fi
6671 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6672 fi
6673
6674
6675 fi
6676 fi
6677 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6678 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6679 if test $ac_cv_header_stdc = yes; then
6680
6681 cat >>confdefs.h <<\_ACEOF
6682 #define STDC_HEADERS 1
6683 _ACEOF
6684
6685 fi
6686
6687 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6688 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6689 if test "${ac_cv_header_time+set}" = set; then
6690 echo $ECHO_N "(cached) $ECHO_C" >&6
6691 else
6692 cat >conftest.$ac_ext <<_ACEOF
6693 /* confdefs.h. */
6694 _ACEOF
6695 cat confdefs.h >>conftest.$ac_ext
6696 cat >>conftest.$ac_ext <<_ACEOF
6697 /* end confdefs.h. */
6698 #include <sys/types.h>
6699 #include <sys/time.h>
6700 #include <time.h>
6701
6702 int
6703 main ()
6704 {
6705 if ((struct tm *) 0)
6706 return 0;
6707 ;
6708 return 0;
6709 }
6710 _ACEOF
6711 rm -f conftest.$ac_objext
6712 if { (ac_try="$ac_compile"
6713 case "(($ac_try" in
6714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6715 *) ac_try_echo=$ac_try;;
6716 esac
6717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6718 (eval "$ac_compile") 2>conftest.er1
6719 ac_status=$?
6720 grep -v '^ *+' conftest.er1 >conftest.err
6721 rm -f conftest.er1
6722 cat conftest.err >&5
6723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6724 (exit $ac_status); } && {
6725 test -z "$ac_c_werror_flag" ||
6726 test ! -s conftest.err
6727 } && test -s conftest.$ac_objext; then
6728 ac_cv_header_time=yes
6729 else
6730 echo "$as_me: failed program was:" >&5
6731 sed 's/^/| /' conftest.$ac_ext >&5
6732
6733 ac_cv_header_time=no
6734 fi
6735
6736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6737 fi
6738 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6739 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6740 if test $ac_cv_header_time = yes; then
6741
6742 cat >>confdefs.h <<\_ACEOF
6743 #define TIME_WITH_SYS_TIME 1
6744 _ACEOF
6745
6746 fi
6747
6748 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6749 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6750 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6751 echo $ECHO_N "(cached) $ECHO_C" >&6
6752 else
6753 cat >conftest.$ac_ext <<_ACEOF
6754 /* confdefs.h. */
6755 _ACEOF
6756 cat confdefs.h >>conftest.$ac_ext
6757 cat >>conftest.$ac_ext <<_ACEOF
6758 /* end confdefs.h. */
6759 $ac_includes_default
6760 int
6761 main ()
6762 {
6763 #ifndef sys_siglist
6764 (void) sys_siglist;
6765 #endif
6766
6767 ;
6768 return 0;
6769 }
6770 _ACEOF
6771 rm -f conftest.$ac_objext
6772 if { (ac_try="$ac_compile"
6773 case "(($ac_try" in
6774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6775 *) ac_try_echo=$ac_try;;
6776 esac
6777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6778 (eval "$ac_compile") 2>conftest.er1
6779 ac_status=$?
6780 grep -v '^ *+' conftest.er1 >conftest.err
6781 rm -f conftest.er1
6782 cat conftest.err >&5
6783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6784 (exit $ac_status); } && {
6785 test -z "$ac_c_werror_flag" ||
6786 test ! -s conftest.err
6787 } && test -s conftest.$ac_objext; then
6788 ac_cv_have_decl_sys_siglist=yes
6789 else
6790 echo "$as_me: failed program was:" >&5
6791 sed 's/^/| /' conftest.$ac_ext >&5
6792
6793 ac_cv_have_decl_sys_siglist=no
6794 fi
6795
6796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6797 fi
6798 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6799 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6800 if test $ac_cv_have_decl_sys_siglist = yes; then
6801
6802 cat >>confdefs.h <<_ACEOF
6803 #define HAVE_DECL_SYS_SIGLIST 1
6804 _ACEOF
6805
6806
6807 else
6808 cat >>confdefs.h <<_ACEOF
6809 #define HAVE_DECL_SYS_SIGLIST 0
6810 _ACEOF
6811
6812
6813 fi
6814
6815
6816 if test $ac_cv_have_decl_sys_siglist != yes; then
6817 # For Tru64, at least:
6818 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6819 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6820 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6821 echo $ECHO_N "(cached) $ECHO_C" >&6
6822 else
6823 cat >conftest.$ac_ext <<_ACEOF
6824 /* confdefs.h. */
6825 _ACEOF
6826 cat confdefs.h >>conftest.$ac_ext
6827 cat >>conftest.$ac_ext <<_ACEOF
6828 /* end confdefs.h. */
6829 $ac_includes_default
6830 int
6831 main ()
6832 {
6833 #ifndef __sys_siglist
6834 (void) __sys_siglist;
6835 #endif
6836
6837 ;
6838 return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest.$ac_objext
6842 if { (ac_try="$ac_compile"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_compile") 2>conftest.er1
6849 ac_status=$?
6850 grep -v '^ *+' conftest.er1 >conftest.err
6851 rm -f conftest.er1
6852 cat conftest.err >&5
6853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6854 (exit $ac_status); } && {
6855 test -z "$ac_c_werror_flag" ||
6856 test ! -s conftest.err
6857 } && test -s conftest.$ac_objext; then
6858 ac_cv_have_decl___sys_siglist=yes
6859 else
6860 echo "$as_me: failed program was:" >&5
6861 sed 's/^/| /' conftest.$ac_ext >&5
6862
6863 ac_cv_have_decl___sys_siglist=no
6864 fi
6865
6866 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6867 fi
6868 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
6869 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
6870 if test $ac_cv_have_decl___sys_siglist = yes; then
6871
6872 cat >>confdefs.h <<_ACEOF
6873 #define HAVE_DECL___SYS_SIGLIST 1
6874 _ACEOF
6875
6876
6877 else
6878 cat >>confdefs.h <<_ACEOF
6879 #define HAVE_DECL___SYS_SIGLIST 0
6880 _ACEOF
6881
6882
6883 fi
6884
6885
6886 if test $ac_cv_have_decl___sys_siglist = yes; then
6887
6888 cat >>confdefs.h <<\_ACEOF
6889 #define sys_siglist __sys_siglist
6890 _ACEOF
6891
6892 fi
6893 fi
6894 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
6895 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
6896 if test "${ac_cv_header_sys_wait_h+set}" = set; then
6897 echo $ECHO_N "(cached) $ECHO_C" >&6
6898 else
6899 cat >conftest.$ac_ext <<_ACEOF
6900 /* confdefs.h. */
6901 _ACEOF
6902 cat confdefs.h >>conftest.$ac_ext
6903 cat >>conftest.$ac_ext <<_ACEOF
6904 /* end confdefs.h. */
6905 #include <sys/types.h>
6906 #include <sys/wait.h>
6907 #ifndef WEXITSTATUS
6908 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
6909 #endif
6910 #ifndef WIFEXITED
6911 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
6912 #endif
6913
6914 int
6915 main ()
6916 {
6917 int s;
6918 wait (&s);
6919 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
6920 ;
6921 return 0;
6922 }
6923 _ACEOF
6924 rm -f conftest.$ac_objext
6925 if { (ac_try="$ac_compile"
6926 case "(($ac_try" in
6927 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6928 *) ac_try_echo=$ac_try;;
6929 esac
6930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6931 (eval "$ac_compile") 2>conftest.er1
6932 ac_status=$?
6933 grep -v '^ *+' conftest.er1 >conftest.err
6934 rm -f conftest.er1
6935 cat conftest.err >&5
6936 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6937 (exit $ac_status); } && {
6938 test -z "$ac_c_werror_flag" ||
6939 test ! -s conftest.err
6940 } && test -s conftest.$ac_objext; then
6941 ac_cv_header_sys_wait_h=yes
6942 else
6943 echo "$as_me: failed program was:" >&5
6944 sed 's/^/| /' conftest.$ac_ext >&5
6945
6946 ac_cv_header_sys_wait_h=no
6947 fi
6948
6949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6950 fi
6951 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
6952 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
6953 if test $ac_cv_header_sys_wait_h = yes; then
6954
6955 cat >>confdefs.h <<\_ACEOF
6956 #define HAVE_SYS_WAIT_H 1
6957 _ACEOF
6958
6959 fi
6960
6961
6962 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
6963 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
6964 if test "${emacs_cv_struct_utimbuf+set}" = set; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 else
6967 cat >conftest.$ac_ext <<_ACEOF
6968 /* confdefs.h. */
6969 _ACEOF
6970 cat confdefs.h >>conftest.$ac_ext
6971 cat >>conftest.$ac_ext <<_ACEOF
6972 /* end confdefs.h. */
6973 #ifdef TIME_WITH_SYS_TIME
6974 #include <sys/time.h>
6975 #include <time.h>
6976 #else
6977 #ifdef HAVE_SYS_TIME_H
6978 #include <sys/time.h>
6979 #else
6980 #include <time.h>
6981 #endif
6982 #endif
6983 #ifdef HAVE_UTIME_H
6984 #include <utime.h>
6985 #endif
6986 int
6987 main ()
6988 {
6989 static struct utimbuf x; x.actime = x.modtime;
6990 ;
6991 return 0;
6992 }
6993 _ACEOF
6994 rm -f conftest.$ac_objext
6995 if { (ac_try="$ac_compile"
6996 case "(($ac_try" in
6997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6998 *) ac_try_echo=$ac_try;;
6999 esac
7000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7001 (eval "$ac_compile") 2>conftest.er1
7002 ac_status=$?
7003 grep -v '^ *+' conftest.er1 >conftest.err
7004 rm -f conftest.er1
7005 cat conftest.err >&5
7006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7007 (exit $ac_status); } && {
7008 test -z "$ac_c_werror_flag" ||
7009 test ! -s conftest.err
7010 } && test -s conftest.$ac_objext; then
7011 emacs_cv_struct_utimbuf=yes
7012 else
7013 echo "$as_me: failed program was:" >&5
7014 sed 's/^/| /' conftest.$ac_ext >&5
7015
7016 emacs_cv_struct_utimbuf=no
7017 fi
7018
7019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7020 fi
7021 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7022 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7023 if test $emacs_cv_struct_utimbuf = yes; then
7024
7025 cat >>confdefs.h <<\_ACEOF
7026 #define HAVE_STRUCT_UTIMBUF 1
7027 _ACEOF
7028
7029 fi
7030
7031 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7032 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7033 if test "${ac_cv_type_signal+set}" = set; then
7034 echo $ECHO_N "(cached) $ECHO_C" >&6
7035 else
7036 cat >conftest.$ac_ext <<_ACEOF
7037 /* confdefs.h. */
7038 _ACEOF
7039 cat confdefs.h >>conftest.$ac_ext
7040 cat >>conftest.$ac_ext <<_ACEOF
7041 /* end confdefs.h. */
7042 #include <sys/types.h>
7043 #include <signal.h>
7044
7045 int
7046 main ()
7047 {
7048 return *(signal (0, 0)) (0) == 1;
7049 ;
7050 return 0;
7051 }
7052 _ACEOF
7053 rm -f conftest.$ac_objext
7054 if { (ac_try="$ac_compile"
7055 case "(($ac_try" in
7056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7057 *) ac_try_echo=$ac_try;;
7058 esac
7059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7060 (eval "$ac_compile") 2>conftest.er1
7061 ac_status=$?
7062 grep -v '^ *+' conftest.er1 >conftest.err
7063 rm -f conftest.er1
7064 cat conftest.err >&5
7065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7066 (exit $ac_status); } && {
7067 test -z "$ac_c_werror_flag" ||
7068 test ! -s conftest.err
7069 } && test -s conftest.$ac_objext; then
7070 ac_cv_type_signal=int
7071 else
7072 echo "$as_me: failed program was:" >&5
7073 sed 's/^/| /' conftest.$ac_ext >&5
7074
7075 ac_cv_type_signal=void
7076 fi
7077
7078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7079 fi
7080 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7081 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7082
7083 cat >>confdefs.h <<_ACEOF
7084 #define RETSIGTYPE $ac_cv_type_signal
7085 _ACEOF
7086
7087
7088
7089 { echo "$as_me:$LINENO: checking for speed_t" >&5
7090 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7091 if test "${emacs_cv_speed_t+set}" = set; then
7092 echo $ECHO_N "(cached) $ECHO_C" >&6
7093 else
7094 cat >conftest.$ac_ext <<_ACEOF
7095 /* confdefs.h. */
7096 _ACEOF
7097 cat confdefs.h >>conftest.$ac_ext
7098 cat >>conftest.$ac_ext <<_ACEOF
7099 /* end confdefs.h. */
7100 #include <termios.h>
7101 int
7102 main ()
7103 {
7104 speed_t x = 1;
7105 ;
7106 return 0;
7107 }
7108 _ACEOF
7109 rm -f conftest.$ac_objext
7110 if { (ac_try="$ac_compile"
7111 case "(($ac_try" in
7112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7113 *) ac_try_echo=$ac_try;;
7114 esac
7115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7116 (eval "$ac_compile") 2>conftest.er1
7117 ac_status=$?
7118 grep -v '^ *+' conftest.er1 >conftest.err
7119 rm -f conftest.er1
7120 cat conftest.err >&5
7121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7122 (exit $ac_status); } && {
7123 test -z "$ac_c_werror_flag" ||
7124 test ! -s conftest.err
7125 } && test -s conftest.$ac_objext; then
7126 emacs_cv_speed_t=yes
7127 else
7128 echo "$as_me: failed program was:" >&5
7129 sed 's/^/| /' conftest.$ac_ext >&5
7130
7131 emacs_cv_speed_t=no
7132 fi
7133
7134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7135 fi
7136 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7137 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7138 if test $emacs_cv_speed_t = yes; then
7139
7140 cat >>confdefs.h <<\_ACEOF
7141 #define HAVE_SPEED_T 1
7142 _ACEOF
7143
7144 fi
7145
7146 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7147 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7148 if test "${emacs_cv_struct_timeval+set}" = set; then
7149 echo $ECHO_N "(cached) $ECHO_C" >&6
7150 else
7151 cat >conftest.$ac_ext <<_ACEOF
7152 /* confdefs.h. */
7153 _ACEOF
7154 cat confdefs.h >>conftest.$ac_ext
7155 cat >>conftest.$ac_ext <<_ACEOF
7156 /* end confdefs.h. */
7157 #ifdef TIME_WITH_SYS_TIME
7158 #include <sys/time.h>
7159 #include <time.h>
7160 #else
7161 #ifdef HAVE_SYS_TIME_H
7162 #include <sys/time.h>
7163 #else
7164 #include <time.h>
7165 #endif
7166 #endif
7167 int
7168 main ()
7169 {
7170 static struct timeval x; x.tv_sec = x.tv_usec;
7171 ;
7172 return 0;
7173 }
7174 _ACEOF
7175 rm -f conftest.$ac_objext
7176 if { (ac_try="$ac_compile"
7177 case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_compile") 2>conftest.er1
7183 ac_status=$?
7184 grep -v '^ *+' conftest.er1 >conftest.err
7185 rm -f conftest.er1
7186 cat conftest.err >&5
7187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7188 (exit $ac_status); } && {
7189 test -z "$ac_c_werror_flag" ||
7190 test ! -s conftest.err
7191 } && test -s conftest.$ac_objext; then
7192 emacs_cv_struct_timeval=yes
7193 else
7194 echo "$as_me: failed program was:" >&5
7195 sed 's/^/| /' conftest.$ac_ext >&5
7196
7197 emacs_cv_struct_timeval=no
7198 fi
7199
7200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7201 fi
7202 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7203 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7204 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7205 if test $emacs_cv_struct_timeval = yes; then
7206
7207 cat >>confdefs.h <<\_ACEOF
7208 #define HAVE_TIMEVAL 1
7209 _ACEOF
7210
7211 fi
7212
7213 { echo "$as_me:$LINENO: checking for struct exception" >&5
7214 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7215 if test "${emacs_cv_struct_exception+set}" = set; then
7216 echo $ECHO_N "(cached) $ECHO_C" >&6
7217 else
7218 cat >conftest.$ac_ext <<_ACEOF
7219 /* confdefs.h. */
7220 _ACEOF
7221 cat confdefs.h >>conftest.$ac_ext
7222 cat >>conftest.$ac_ext <<_ACEOF
7223 /* end confdefs.h. */
7224 #include <math.h>
7225 int
7226 main ()
7227 {
7228 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7229 ;
7230 return 0;
7231 }
7232 _ACEOF
7233 rm -f conftest.$ac_objext
7234 if { (ac_try="$ac_compile"
7235 case "(($ac_try" in
7236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7237 *) ac_try_echo=$ac_try;;
7238 esac
7239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7240 (eval "$ac_compile") 2>conftest.er1
7241 ac_status=$?
7242 grep -v '^ *+' conftest.er1 >conftest.err
7243 rm -f conftest.er1
7244 cat conftest.err >&5
7245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7246 (exit $ac_status); } && {
7247 test -z "$ac_c_werror_flag" ||
7248 test ! -s conftest.err
7249 } && test -s conftest.$ac_objext; then
7250 emacs_cv_struct_exception=yes
7251 else
7252 echo "$as_me: failed program was:" >&5
7253 sed 's/^/| /' conftest.$ac_ext >&5
7254
7255 emacs_cv_struct_exception=no
7256 fi
7257
7258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7259 fi
7260 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7261 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7262 HAVE_EXCEPTION=$emacs_cv_struct_exception
7263 if test $emacs_cv_struct_exception != yes; then
7264
7265 cat >>confdefs.h <<\_ACEOF
7266 #define NO_MATHERR 1
7267 _ACEOF
7268
7269 fi
7270
7271
7272 for ac_header in sys/socket.h
7273 do
7274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7279 echo $ECHO_N "(cached) $ECHO_C" >&6
7280 fi
7281 ac_res=`eval echo '${'$as_ac_Header'}'`
7282 { echo "$as_me:$LINENO: result: $ac_res" >&5
7283 echo "${ECHO_T}$ac_res" >&6; }
7284 else
7285 # Is the header compilable?
7286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7288 cat >conftest.$ac_ext <<_ACEOF
7289 /* confdefs.h. */
7290 _ACEOF
7291 cat confdefs.h >>conftest.$ac_ext
7292 cat >>conftest.$ac_ext <<_ACEOF
7293 /* end confdefs.h. */
7294 $ac_includes_default
7295 #include <$ac_header>
7296 _ACEOF
7297 rm -f conftest.$ac_objext
7298 if { (ac_try="$ac_compile"
7299 case "(($ac_try" in
7300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7301 *) ac_try_echo=$ac_try;;
7302 esac
7303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7304 (eval "$ac_compile") 2>conftest.er1
7305 ac_status=$?
7306 grep -v '^ *+' conftest.er1 >conftest.err
7307 rm -f conftest.er1
7308 cat conftest.err >&5
7309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7310 (exit $ac_status); } && {
7311 test -z "$ac_c_werror_flag" ||
7312 test ! -s conftest.err
7313 } && test -s conftest.$ac_objext; then
7314 ac_header_compiler=yes
7315 else
7316 echo "$as_me: failed program was:" >&5
7317 sed 's/^/| /' conftest.$ac_ext >&5
7318
7319 ac_header_compiler=no
7320 fi
7321
7322 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7323 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7324 echo "${ECHO_T}$ac_header_compiler" >&6; }
7325
7326 # Is the header present?
7327 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7328 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <$ac_header>
7336 _ACEOF
7337 if { (ac_try="$ac_cpp conftest.$ac_ext"
7338 case "(($ac_try" in
7339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7340 *) ac_try_echo=$ac_try;;
7341 esac
7342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7343 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7344 ac_status=$?
7345 grep -v '^ *+' conftest.er1 >conftest.err
7346 rm -f conftest.er1
7347 cat conftest.err >&5
7348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7349 (exit $ac_status); } >/dev/null && {
7350 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7351 test ! -s conftest.err
7352 }; then
7353 ac_header_preproc=yes
7354 else
7355 echo "$as_me: failed program was:" >&5
7356 sed 's/^/| /' conftest.$ac_ext >&5
7357
7358 ac_header_preproc=no
7359 fi
7360
7361 rm -f conftest.err conftest.$ac_ext
7362 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7363 echo "${ECHO_T}$ac_header_preproc" >&6; }
7364
7365 # So? What about this header?
7366 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7367 yes:no: )
7368 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7369 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7371 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7372 ac_header_preproc=yes
7373 ;;
7374 no:yes:* )
7375 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7376 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7377 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7378 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7379 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7380 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7381 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7382 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7383 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7384 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7385 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7386 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7387
7388 ;;
7389 esac
7390 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7393 echo $ECHO_N "(cached) $ECHO_C" >&6
7394 else
7395 eval "$as_ac_Header=\$ac_header_preproc"
7396 fi
7397 ac_res=`eval echo '${'$as_ac_Header'}'`
7398 { echo "$as_me:$LINENO: result: $ac_res" >&5
7399 echo "${ECHO_T}$ac_res" >&6; }
7400
7401 fi
7402 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7403 cat >>confdefs.h <<_ACEOF
7404 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7405 _ACEOF
7406
7407 fi
7408
7409 done
7410
7411
7412 for ac_header in net/if.h
7413 do
7414 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7418 echo $ECHO_N "(cached) $ECHO_C" >&6
7419 else
7420 cat >conftest.$ac_ext <<_ACEOF
7421 /* confdefs.h. */
7422 _ACEOF
7423 cat confdefs.h >>conftest.$ac_ext
7424 cat >>conftest.$ac_ext <<_ACEOF
7425 /* end confdefs.h. */
7426 $ac_includes_default
7427 #if HAVE_SYS_SOCKET_H
7428 #include <sys/socket.h>
7429 #endif
7430
7431 #include <$ac_header>
7432 _ACEOF
7433 rm -f conftest.$ac_objext
7434 if { (ac_try="$ac_compile"
7435 case "(($ac_try" in
7436 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7437 *) ac_try_echo=$ac_try;;
7438 esac
7439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7440 (eval "$ac_compile") 2>conftest.er1
7441 ac_status=$?
7442 grep -v '^ *+' conftest.er1 >conftest.err
7443 rm -f conftest.er1
7444 cat conftest.err >&5
7445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7446 (exit $ac_status); } && {
7447 test -z "$ac_c_werror_flag" ||
7448 test ! -s conftest.err
7449 } && test -s conftest.$ac_objext; then
7450 eval "$as_ac_Header=yes"
7451 else
7452 echo "$as_me: failed program was:" >&5
7453 sed 's/^/| /' conftest.$ac_ext >&5
7454
7455 eval "$as_ac_Header=no"
7456 fi
7457
7458 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7459 fi
7460 ac_res=`eval echo '${'$as_ac_Header'}'`
7461 { echo "$as_me:$LINENO: result: $ac_res" >&5
7462 echo "${ECHO_T}$ac_res" >&6; }
7463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7464 cat >>confdefs.h <<_ACEOF
7465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7466 _ACEOF
7467
7468 fi
7469
7470 done
7471
7472
7473 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7474 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7475 if test "${ac_cv_struct_tm+set}" = set; then
7476 echo $ECHO_N "(cached) $ECHO_C" >&6
7477 else
7478 cat >conftest.$ac_ext <<_ACEOF
7479 /* confdefs.h. */
7480 _ACEOF
7481 cat confdefs.h >>conftest.$ac_ext
7482 cat >>conftest.$ac_ext <<_ACEOF
7483 /* end confdefs.h. */
7484 #include <sys/types.h>
7485 #include <time.h>
7486
7487 int
7488 main ()
7489 {
7490 struct tm tm;
7491 int *p = &tm.tm_sec;
7492 return !p;
7493 ;
7494 return 0;
7495 }
7496 _ACEOF
7497 rm -f conftest.$ac_objext
7498 if { (ac_try="$ac_compile"
7499 case "(($ac_try" in
7500 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7501 *) ac_try_echo=$ac_try;;
7502 esac
7503 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7504 (eval "$ac_compile") 2>conftest.er1
7505 ac_status=$?
7506 grep -v '^ *+' conftest.er1 >conftest.err
7507 rm -f conftest.er1
7508 cat conftest.err >&5
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); } && {
7511 test -z "$ac_c_werror_flag" ||
7512 test ! -s conftest.err
7513 } && test -s conftest.$ac_objext; then
7514 ac_cv_struct_tm=time.h
7515 else
7516 echo "$as_me: failed program was:" >&5
7517 sed 's/^/| /' conftest.$ac_ext >&5
7518
7519 ac_cv_struct_tm=sys/time.h
7520 fi
7521
7522 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7523 fi
7524 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7525 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7526 if test $ac_cv_struct_tm = sys/time.h; then
7527
7528 cat >>confdefs.h <<\_ACEOF
7529 #define TM_IN_SYS_TIME 1
7530 _ACEOF
7531
7532 fi
7533
7534 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7535 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7536 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7537 echo $ECHO_N "(cached) $ECHO_C" >&6
7538 else
7539 cat >conftest.$ac_ext <<_ACEOF
7540 /* confdefs.h. */
7541 _ACEOF
7542 cat confdefs.h >>conftest.$ac_ext
7543 cat >>conftest.$ac_ext <<_ACEOF
7544 /* end confdefs.h. */
7545 #include <sys/types.h>
7546 #include <$ac_cv_struct_tm>
7547
7548
7549 int
7550 main ()
7551 {
7552 static struct tm ac_aggr;
7553 if (ac_aggr.tm_zone)
7554 return 0;
7555 ;
7556 return 0;
7557 }
7558 _ACEOF
7559 rm -f conftest.$ac_objext
7560 if { (ac_try="$ac_compile"
7561 case "(($ac_try" in
7562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7563 *) ac_try_echo=$ac_try;;
7564 esac
7565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7566 (eval "$ac_compile") 2>conftest.er1
7567 ac_status=$?
7568 grep -v '^ *+' conftest.er1 >conftest.err
7569 rm -f conftest.er1
7570 cat conftest.err >&5
7571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7572 (exit $ac_status); } && {
7573 test -z "$ac_c_werror_flag" ||
7574 test ! -s conftest.err
7575 } && test -s conftest.$ac_objext; then
7576 ac_cv_member_struct_tm_tm_zone=yes
7577 else
7578 echo "$as_me: failed program was:" >&5
7579 sed 's/^/| /' conftest.$ac_ext >&5
7580
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 #include <sys/types.h>
7588 #include <$ac_cv_struct_tm>
7589
7590
7591 int
7592 main ()
7593 {
7594 static struct tm ac_aggr;
7595 if (sizeof ac_aggr.tm_zone)
7596 return 0;
7597 ;
7598 return 0;
7599 }
7600 _ACEOF
7601 rm -f conftest.$ac_objext
7602 if { (ac_try="$ac_compile"
7603 case "(($ac_try" in
7604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7605 *) ac_try_echo=$ac_try;;
7606 esac
7607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7608 (eval "$ac_compile") 2>conftest.er1
7609 ac_status=$?
7610 grep -v '^ *+' conftest.er1 >conftest.err
7611 rm -f conftest.er1
7612 cat conftest.err >&5
7613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7614 (exit $ac_status); } && {
7615 test -z "$ac_c_werror_flag" ||
7616 test ! -s conftest.err
7617 } && test -s conftest.$ac_objext; then
7618 ac_cv_member_struct_tm_tm_zone=yes
7619 else
7620 echo "$as_me: failed program was:" >&5
7621 sed 's/^/| /' conftest.$ac_ext >&5
7622
7623 ac_cv_member_struct_tm_tm_zone=no
7624 fi
7625
7626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7627 fi
7628
7629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7630 fi
7631 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7632 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7633 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7634
7635 cat >>confdefs.h <<_ACEOF
7636 #define HAVE_STRUCT_TM_TM_ZONE 1
7637 _ACEOF
7638
7639
7640 fi
7641
7642 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7643
7644 cat >>confdefs.h <<\_ACEOF
7645 #define HAVE_TM_ZONE 1
7646 _ACEOF
7647
7648 else
7649 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7650 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7651 if test "${ac_cv_have_decl_tzname+set}" = set; then
7652 echo $ECHO_N "(cached) $ECHO_C" >&6
7653 else
7654 cat >conftest.$ac_ext <<_ACEOF
7655 /* confdefs.h. */
7656 _ACEOF
7657 cat confdefs.h >>conftest.$ac_ext
7658 cat >>conftest.$ac_ext <<_ACEOF
7659 /* end confdefs.h. */
7660 #include <time.h>
7661
7662 int
7663 main ()
7664 {
7665 #ifndef tzname
7666 (void) tzname;
7667 #endif
7668
7669 ;
7670 return 0;
7671 }
7672 _ACEOF
7673 rm -f conftest.$ac_objext
7674 if { (ac_try="$ac_compile"
7675 case "(($ac_try" in
7676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7677 *) ac_try_echo=$ac_try;;
7678 esac
7679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7680 (eval "$ac_compile") 2>conftest.er1
7681 ac_status=$?
7682 grep -v '^ *+' conftest.er1 >conftest.err
7683 rm -f conftest.er1
7684 cat conftest.err >&5
7685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7686 (exit $ac_status); } && {
7687 test -z "$ac_c_werror_flag" ||
7688 test ! -s conftest.err
7689 } && test -s conftest.$ac_objext; then
7690 ac_cv_have_decl_tzname=yes
7691 else
7692 echo "$as_me: failed program was:" >&5
7693 sed 's/^/| /' conftest.$ac_ext >&5
7694
7695 ac_cv_have_decl_tzname=no
7696 fi
7697
7698 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7699 fi
7700 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7701 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7702 if test $ac_cv_have_decl_tzname = yes; then
7703
7704 cat >>confdefs.h <<_ACEOF
7705 #define HAVE_DECL_TZNAME 1
7706 _ACEOF
7707
7708
7709 else
7710 cat >>confdefs.h <<_ACEOF
7711 #define HAVE_DECL_TZNAME 0
7712 _ACEOF
7713
7714
7715 fi
7716
7717
7718 { echo "$as_me:$LINENO: checking for tzname" >&5
7719 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7720 if test "${ac_cv_var_tzname+set}" = set; then
7721 echo $ECHO_N "(cached) $ECHO_C" >&6
7722 else
7723 cat >conftest.$ac_ext <<_ACEOF
7724 /* confdefs.h. */
7725 _ACEOF
7726 cat confdefs.h >>conftest.$ac_ext
7727 cat >>conftest.$ac_ext <<_ACEOF
7728 /* end confdefs.h. */
7729 #include <time.h>
7730 #if !HAVE_DECL_TZNAME
7731 extern char *tzname[];
7732 #endif
7733
7734 int
7735 main ()
7736 {
7737 return tzname[0][0];
7738 ;
7739 return 0;
7740 }
7741 _ACEOF
7742 rm -f conftest.$ac_objext conftest$ac_exeext
7743 if { (ac_try="$ac_link"
7744 case "(($ac_try" in
7745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7746 *) ac_try_echo=$ac_try;;
7747 esac
7748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7749 (eval "$ac_link") 2>conftest.er1
7750 ac_status=$?
7751 grep -v '^ *+' conftest.er1 >conftest.err
7752 rm -f conftest.er1
7753 cat conftest.err >&5
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); } && {
7756 test -z "$ac_c_werror_flag" ||
7757 test ! -s conftest.err
7758 } && test -s conftest$ac_exeext &&
7759 $as_test_x conftest$ac_exeext; then
7760 ac_cv_var_tzname=yes
7761 else
7762 echo "$as_me: failed program was:" >&5
7763 sed 's/^/| /' conftest.$ac_ext >&5
7764
7765 ac_cv_var_tzname=no
7766 fi
7767
7768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7769 conftest$ac_exeext conftest.$ac_ext
7770 fi
7771 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7772 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7773 if test $ac_cv_var_tzname = yes; then
7774
7775 cat >>confdefs.h <<\_ACEOF
7776 #define HAVE_TZNAME 1
7777 _ACEOF
7778
7779 fi
7780 fi
7781
7782 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7783 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7784 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 #include <time.h>
7794
7795 int
7796 main ()
7797 {
7798 static struct tm ac_aggr;
7799 if (ac_aggr.tm_gmtoff)
7800 return 0;
7801 ;
7802 return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (ac_try="$ac_compile"
7807 case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7822 ac_cv_member_struct_tm_tm_gmtoff=yes
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 cat >conftest.$ac_ext <<_ACEOF
7828 /* confdefs.h. */
7829 _ACEOF
7830 cat confdefs.h >>conftest.$ac_ext
7831 cat >>conftest.$ac_ext <<_ACEOF
7832 /* end confdefs.h. */
7833 #include <time.h>
7834
7835 int
7836 main ()
7837 {
7838 static struct tm ac_aggr;
7839 if (sizeof ac_aggr.tm_gmtoff)
7840 return 0;
7841 ;
7842 return 0;
7843 }
7844 _ACEOF
7845 rm -f conftest.$ac_objext
7846 if { (ac_try="$ac_compile"
7847 case "(($ac_try" in
7848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7849 *) ac_try_echo=$ac_try;;
7850 esac
7851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7852 (eval "$ac_compile") 2>conftest.er1
7853 ac_status=$?
7854 grep -v '^ *+' conftest.er1 >conftest.err
7855 rm -f conftest.er1
7856 cat conftest.err >&5
7857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7858 (exit $ac_status); } && {
7859 test -z "$ac_c_werror_flag" ||
7860 test ! -s conftest.err
7861 } && test -s conftest.$ac_objext; then
7862 ac_cv_member_struct_tm_tm_gmtoff=yes
7863 else
7864 echo "$as_me: failed program was:" >&5
7865 sed 's/^/| /' conftest.$ac_ext >&5
7866
7867 ac_cv_member_struct_tm_tm_gmtoff=no
7868 fi
7869
7870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7871 fi
7872
7873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7874 fi
7875 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
7876 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
7877 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
7878
7879 cat >>confdefs.h <<\_ACEOF
7880 #define HAVE_TM_GMTOFF 1
7881 _ACEOF
7882
7883 fi
7884
7885 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
7886 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
7887 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
7888 echo $ECHO_N "(cached) $ECHO_C" >&6
7889 else
7890 cat >conftest.$ac_ext <<_ACEOF
7891 /* confdefs.h. */
7892 _ACEOF
7893 cat confdefs.h >>conftest.$ac_ext
7894 cat >>conftest.$ac_ext <<_ACEOF
7895 /* end confdefs.h. */
7896 $ac_includes_default
7897 #if HAVE_SYS_SOCKET_H
7898 #include <sys/socket.h>
7899 #endif
7900 #if HAVE_NET_IF_H
7901 #include <net/if.h>
7902 #endif
7903
7904 int
7905 main ()
7906 {
7907 static struct ifreq ac_aggr;
7908 if (ac_aggr.ifr_flags)
7909 return 0;
7910 ;
7911 return 0;
7912 }
7913 _ACEOF
7914 rm -f conftest.$ac_objext
7915 if { (ac_try="$ac_compile"
7916 case "(($ac_try" in
7917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7918 *) ac_try_echo=$ac_try;;
7919 esac
7920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7921 (eval "$ac_compile") 2>conftest.er1
7922 ac_status=$?
7923 grep -v '^ *+' conftest.er1 >conftest.err
7924 rm -f conftest.er1
7925 cat conftest.err >&5
7926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7927 (exit $ac_status); } && {
7928 test -z "$ac_c_werror_flag" ||
7929 test ! -s conftest.err
7930 } && test -s conftest.$ac_objext; then
7931 ac_cv_member_struct_ifreq_ifr_flags=yes
7932 else
7933 echo "$as_me: failed program was:" >&5
7934 sed 's/^/| /' conftest.$ac_ext >&5
7935
7936 cat >conftest.$ac_ext <<_ACEOF
7937 /* confdefs.h. */
7938 _ACEOF
7939 cat confdefs.h >>conftest.$ac_ext
7940 cat >>conftest.$ac_ext <<_ACEOF
7941 /* end confdefs.h. */
7942 $ac_includes_default
7943 #if HAVE_SYS_SOCKET_H
7944 #include <sys/socket.h>
7945 #endif
7946 #if HAVE_NET_IF_H
7947 #include <net/if.h>
7948 #endif
7949
7950 int
7951 main ()
7952 {
7953 static struct ifreq ac_aggr;
7954 if (sizeof ac_aggr.ifr_flags)
7955 return 0;
7956 ;
7957 return 0;
7958 }
7959 _ACEOF
7960 rm -f conftest.$ac_objext
7961 if { (ac_try="$ac_compile"
7962 case "(($ac_try" in
7963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7964 *) ac_try_echo=$ac_try;;
7965 esac
7966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7967 (eval "$ac_compile") 2>conftest.er1
7968 ac_status=$?
7969 grep -v '^ *+' conftest.er1 >conftest.err
7970 rm -f conftest.er1
7971 cat conftest.err >&5
7972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7973 (exit $ac_status); } && {
7974 test -z "$ac_c_werror_flag" ||
7975 test ! -s conftest.err
7976 } && test -s conftest.$ac_objext; then
7977 ac_cv_member_struct_ifreq_ifr_flags=yes
7978 else
7979 echo "$as_me: failed program was:" >&5
7980 sed 's/^/| /' conftest.$ac_ext >&5
7981
7982 ac_cv_member_struct_ifreq_ifr_flags=no
7983 fi
7984
7985 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7986 fi
7987
7988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7989 fi
7990 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
7991 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
7992 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
7993
7994 cat >>confdefs.h <<_ACEOF
7995 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
7996 _ACEOF
7997
7998
7999 fi
8000 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8001 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8002 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8003 echo $ECHO_N "(cached) $ECHO_C" >&6
8004 else
8005 cat >conftest.$ac_ext <<_ACEOF
8006 /* confdefs.h. */
8007 _ACEOF
8008 cat confdefs.h >>conftest.$ac_ext
8009 cat >>conftest.$ac_ext <<_ACEOF
8010 /* end confdefs.h. */
8011 $ac_includes_default
8012 #if HAVE_SYS_SOCKET_H
8013 #include <sys/socket.h>
8014 #endif
8015 #if HAVE_NET_IF_H
8016 #include <net/if.h>
8017 #endif
8018
8019 int
8020 main ()
8021 {
8022 static struct ifreq ac_aggr;
8023 if (ac_aggr.ifr_hwaddr)
8024 return 0;
8025 ;
8026 return 0;
8027 }
8028 _ACEOF
8029 rm -f conftest.$ac_objext
8030 if { (ac_try="$ac_compile"
8031 case "(($ac_try" in
8032 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8033 *) ac_try_echo=$ac_try;;
8034 esac
8035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8036 (eval "$ac_compile") 2>conftest.er1
8037 ac_status=$?
8038 grep -v '^ *+' conftest.er1 >conftest.err
8039 rm -f conftest.er1
8040 cat conftest.err >&5
8041 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8042 (exit $ac_status); } && {
8043 test -z "$ac_c_werror_flag" ||
8044 test ! -s conftest.err
8045 } && test -s conftest.$ac_objext; then
8046 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8047 else
8048 echo "$as_me: failed program was:" >&5
8049 sed 's/^/| /' conftest.$ac_ext >&5
8050
8051 cat >conftest.$ac_ext <<_ACEOF
8052 /* confdefs.h. */
8053 _ACEOF
8054 cat confdefs.h >>conftest.$ac_ext
8055 cat >>conftest.$ac_ext <<_ACEOF
8056 /* end confdefs.h. */
8057 $ac_includes_default
8058 #if HAVE_SYS_SOCKET_H
8059 #include <sys/socket.h>
8060 #endif
8061 #if HAVE_NET_IF_H
8062 #include <net/if.h>
8063 #endif
8064
8065 int
8066 main ()
8067 {
8068 static struct ifreq ac_aggr;
8069 if (sizeof ac_aggr.ifr_hwaddr)
8070 return 0;
8071 ;
8072 return 0;
8073 }
8074 _ACEOF
8075 rm -f conftest.$ac_objext
8076 if { (ac_try="$ac_compile"
8077 case "(($ac_try" in
8078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8079 *) ac_try_echo=$ac_try;;
8080 esac
8081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8082 (eval "$ac_compile") 2>conftest.er1
8083 ac_status=$?
8084 grep -v '^ *+' conftest.er1 >conftest.err
8085 rm -f conftest.er1
8086 cat conftest.err >&5
8087 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8088 (exit $ac_status); } && {
8089 test -z "$ac_c_werror_flag" ||
8090 test ! -s conftest.err
8091 } && test -s conftest.$ac_objext; then
8092 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8093 else
8094 echo "$as_me: failed program was:" >&5
8095 sed 's/^/| /' conftest.$ac_ext >&5
8096
8097 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8098 fi
8099
8100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8101 fi
8102
8103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8104 fi
8105 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8106 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8107 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8108
8109 cat >>confdefs.h <<_ACEOF
8110 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8111 _ACEOF
8112
8113
8114 fi
8115 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8116 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8117 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8118 echo $ECHO_N "(cached) $ECHO_C" >&6
8119 else
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 $ac_includes_default
8127 #if HAVE_SYS_SOCKET_H
8128 #include <sys/socket.h>
8129 #endif
8130 #if HAVE_NET_IF_H
8131 #include <net/if.h>
8132 #endif
8133
8134 int
8135 main ()
8136 {
8137 static struct ifreq ac_aggr;
8138 if (ac_aggr.ifr_netmask)
8139 return 0;
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_cv_member_struct_ifreq_ifr_netmask=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 $ac_includes_default
8173 #if HAVE_SYS_SOCKET_H
8174 #include <sys/socket.h>
8175 #endif
8176 #if HAVE_NET_IF_H
8177 #include <net/if.h>
8178 #endif
8179
8180 int
8181 main ()
8182 {
8183 static struct ifreq ac_aggr;
8184 if (sizeof ac_aggr.ifr_netmask)
8185 return 0;
8186 ;
8187 return 0;
8188 }
8189 _ACEOF
8190 rm -f conftest.$ac_objext
8191 if { (ac_try="$ac_compile"
8192 case "(($ac_try" in
8193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8194 *) ac_try_echo=$ac_try;;
8195 esac
8196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8197 (eval "$ac_compile") 2>conftest.er1
8198 ac_status=$?
8199 grep -v '^ *+' conftest.er1 >conftest.err
8200 rm -f conftest.er1
8201 cat conftest.err >&5
8202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8203 (exit $ac_status); } && {
8204 test -z "$ac_c_werror_flag" ||
8205 test ! -s conftest.err
8206 } && test -s conftest.$ac_objext; then
8207 ac_cv_member_struct_ifreq_ifr_netmask=yes
8208 else
8209 echo "$as_me: failed program was:" >&5
8210 sed 's/^/| /' conftest.$ac_ext >&5
8211
8212 ac_cv_member_struct_ifreq_ifr_netmask=no
8213 fi
8214
8215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8216 fi
8217
8218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8219 fi
8220 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8221 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8222 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8223
8224 cat >>confdefs.h <<_ACEOF
8225 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8226 _ACEOF
8227
8228
8229 fi
8230 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8231 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8232 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8233 echo $ECHO_N "(cached) $ECHO_C" >&6
8234 else
8235 cat >conftest.$ac_ext <<_ACEOF
8236 /* confdefs.h. */
8237 _ACEOF
8238 cat confdefs.h >>conftest.$ac_ext
8239 cat >>conftest.$ac_ext <<_ACEOF
8240 /* end confdefs.h. */
8241 $ac_includes_default
8242 #if HAVE_SYS_SOCKET_H
8243 #include <sys/socket.h>
8244 #endif
8245 #if HAVE_NET_IF_H
8246 #include <net/if.h>
8247 #endif
8248
8249 int
8250 main ()
8251 {
8252 static struct ifreq ac_aggr;
8253 if (ac_aggr.ifr_broadaddr)
8254 return 0;
8255 ;
8256 return 0;
8257 }
8258 _ACEOF
8259 rm -f conftest.$ac_objext
8260 if { (ac_try="$ac_compile"
8261 case "(($ac_try" in
8262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8263 *) ac_try_echo=$ac_try;;
8264 esac
8265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8266 (eval "$ac_compile") 2>conftest.er1
8267 ac_status=$?
8268 grep -v '^ *+' conftest.er1 >conftest.err
8269 rm -f conftest.er1
8270 cat conftest.err >&5
8271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8272 (exit $ac_status); } && {
8273 test -z "$ac_c_werror_flag" ||
8274 test ! -s conftest.err
8275 } && test -s conftest.$ac_objext; then
8276 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8277 else
8278 echo "$as_me: failed program was:" >&5
8279 sed 's/^/| /' conftest.$ac_ext >&5
8280
8281 cat >conftest.$ac_ext <<_ACEOF
8282 /* confdefs.h. */
8283 _ACEOF
8284 cat confdefs.h >>conftest.$ac_ext
8285 cat >>conftest.$ac_ext <<_ACEOF
8286 /* end confdefs.h. */
8287 $ac_includes_default
8288 #if HAVE_SYS_SOCKET_H
8289 #include <sys/socket.h>
8290 #endif
8291 #if HAVE_NET_IF_H
8292 #include <net/if.h>
8293 #endif
8294
8295 int
8296 main ()
8297 {
8298 static struct ifreq ac_aggr;
8299 if (sizeof ac_aggr.ifr_broadaddr)
8300 return 0;
8301 ;
8302 return 0;
8303 }
8304 _ACEOF
8305 rm -f conftest.$ac_objext
8306 if { (ac_try="$ac_compile"
8307 case "(($ac_try" in
8308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8309 *) ac_try_echo=$ac_try;;
8310 esac
8311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8312 (eval "$ac_compile") 2>conftest.er1
8313 ac_status=$?
8314 grep -v '^ *+' conftest.er1 >conftest.err
8315 rm -f conftest.er1
8316 cat conftest.err >&5
8317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8318 (exit $ac_status); } && {
8319 test -z "$ac_c_werror_flag" ||
8320 test ! -s conftest.err
8321 } && test -s conftest.$ac_objext; then
8322 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8323 else
8324 echo "$as_me: failed program was:" >&5
8325 sed 's/^/| /' conftest.$ac_ext >&5
8326
8327 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8328 fi
8329
8330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8331 fi
8332
8333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8334 fi
8335 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8336 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8337 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8338
8339 cat >>confdefs.h <<_ACEOF
8340 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8341 _ACEOF
8342
8343
8344 fi
8345 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8346 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8347 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8348 echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350 cat >conftest.$ac_ext <<_ACEOF
8351 /* confdefs.h. */
8352 _ACEOF
8353 cat confdefs.h >>conftest.$ac_ext
8354 cat >>conftest.$ac_ext <<_ACEOF
8355 /* end confdefs.h. */
8356 $ac_includes_default
8357 #if HAVE_SYS_SOCKET_H
8358 #include <sys/socket.h>
8359 #endif
8360 #if HAVE_NET_IF_H
8361 #include <net/if.h>
8362 #endif
8363
8364 int
8365 main ()
8366 {
8367 static struct ifreq ac_aggr;
8368 if (ac_aggr.ifr_addr)
8369 return 0;
8370 ;
8371 return 0;
8372 }
8373 _ACEOF
8374 rm -f conftest.$ac_objext
8375 if { (ac_try="$ac_compile"
8376 case "(($ac_try" in
8377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8378 *) ac_try_echo=$ac_try;;
8379 esac
8380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8381 (eval "$ac_compile") 2>conftest.er1
8382 ac_status=$?
8383 grep -v '^ *+' conftest.er1 >conftest.err
8384 rm -f conftest.er1
8385 cat conftest.err >&5
8386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8387 (exit $ac_status); } && {
8388 test -z "$ac_c_werror_flag" ||
8389 test ! -s conftest.err
8390 } && test -s conftest.$ac_objext; then
8391 ac_cv_member_struct_ifreq_ifr_addr=yes
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 cat >conftest.$ac_ext <<_ACEOF
8397 /* confdefs.h. */
8398 _ACEOF
8399 cat confdefs.h >>conftest.$ac_ext
8400 cat >>conftest.$ac_ext <<_ACEOF
8401 /* end confdefs.h. */
8402 $ac_includes_default
8403 #if HAVE_SYS_SOCKET_H
8404 #include <sys/socket.h>
8405 #endif
8406 #if HAVE_NET_IF_H
8407 #include <net/if.h>
8408 #endif
8409
8410 int
8411 main ()
8412 {
8413 static struct ifreq ac_aggr;
8414 if (sizeof ac_aggr.ifr_addr)
8415 return 0;
8416 ;
8417 return 0;
8418 }
8419 _ACEOF
8420 rm -f conftest.$ac_objext
8421 if { (ac_try="$ac_compile"
8422 case "(($ac_try" in
8423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8424 *) ac_try_echo=$ac_try;;
8425 esac
8426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8427 (eval "$ac_compile") 2>conftest.er1
8428 ac_status=$?
8429 grep -v '^ *+' conftest.er1 >conftest.err
8430 rm -f conftest.er1
8431 cat conftest.err >&5
8432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8433 (exit $ac_status); } && {
8434 test -z "$ac_c_werror_flag" ||
8435 test ! -s conftest.err
8436 } && test -s conftest.$ac_objext; then
8437 ac_cv_member_struct_ifreq_ifr_addr=yes
8438 else
8439 echo "$as_me: failed program was:" >&5
8440 sed 's/^/| /' conftest.$ac_ext >&5
8441
8442 ac_cv_member_struct_ifreq_ifr_addr=no
8443 fi
8444
8445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8446 fi
8447
8448 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8449 fi
8450 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8451 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8452 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8453
8454 cat >>confdefs.h <<_ACEOF
8455 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8456 _ACEOF
8457
8458
8459 fi
8460
8461
8462
8463 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8464 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8465 if test "$ac_cv_prog_cc_c89" != no; then
8466 { echo "$as_me:$LINENO: result: yes" >&5
8467 echo "${ECHO_T}yes" >&6; }
8468
8469 cat >>confdefs.h <<\_ACEOF
8470 #define PROTOTYPES 1
8471 _ACEOF
8472
8473
8474 cat >>confdefs.h <<\_ACEOF
8475 #define __PROTOTYPES 1
8476 _ACEOF
8477
8478 else
8479 { echo "$as_me:$LINENO: result: no" >&5
8480 echo "${ECHO_T}no" >&6; }
8481 fi
8482
8483 { echo "$as_me:$LINENO: checking for working volatile" >&5
8484 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8485 if test "${ac_cv_c_volatile+set}" = set; then
8486 echo $ECHO_N "(cached) $ECHO_C" >&6
8487 else
8488 cat >conftest.$ac_ext <<_ACEOF
8489 /* confdefs.h. */
8490 _ACEOF
8491 cat confdefs.h >>conftest.$ac_ext
8492 cat >>conftest.$ac_ext <<_ACEOF
8493 /* end confdefs.h. */
8494
8495 int
8496 main ()
8497 {
8498
8499 volatile int x;
8500 int * volatile y = (int *) 0;
8501 return !x && !y;
8502 ;
8503 return 0;
8504 }
8505 _ACEOF
8506 rm -f conftest.$ac_objext
8507 if { (ac_try="$ac_compile"
8508 case "(($ac_try" in
8509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8510 *) ac_try_echo=$ac_try;;
8511 esac
8512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8513 (eval "$ac_compile") 2>conftest.er1
8514 ac_status=$?
8515 grep -v '^ *+' conftest.er1 >conftest.err
8516 rm -f conftest.er1
8517 cat conftest.err >&5
8518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8519 (exit $ac_status); } && {
8520 test -z "$ac_c_werror_flag" ||
8521 test ! -s conftest.err
8522 } && test -s conftest.$ac_objext; then
8523 ac_cv_c_volatile=yes
8524 else
8525 echo "$as_me: failed program was:" >&5
8526 sed 's/^/| /' conftest.$ac_ext >&5
8527
8528 ac_cv_c_volatile=no
8529 fi
8530
8531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8532 fi
8533 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8534 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8535 if test $ac_cv_c_volatile = no; then
8536
8537 cat >>confdefs.h <<\_ACEOF
8538 #define volatile
8539 _ACEOF
8540
8541 fi
8542
8543 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8544 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8545 if test "${ac_cv_c_const+set}" = set; then
8546 echo $ECHO_N "(cached) $ECHO_C" >&6
8547 else
8548 cat >conftest.$ac_ext <<_ACEOF
8549 /* confdefs.h. */
8550 _ACEOF
8551 cat confdefs.h >>conftest.$ac_ext
8552 cat >>conftest.$ac_ext <<_ACEOF
8553 /* end confdefs.h. */
8554
8555 int
8556 main ()
8557 {
8558 /* FIXME: Include the comments suggested by Paul. */
8559 #ifndef __cplusplus
8560 /* Ultrix mips cc rejects this. */
8561 typedef int charset[2];
8562 const charset cs;
8563 /* SunOS 4.1.1 cc rejects this. */
8564 char const *const *pcpcc;
8565 char **ppc;
8566 /* NEC SVR4.0.2 mips cc rejects this. */
8567 struct point {int x, y;};
8568 static struct point const zero = {0,0};
8569 /* AIX XL C 1.02.0.0 rejects this.
8570 It does not let you subtract one const X* pointer from another in
8571 an arm of an if-expression whose if-part is not a constant
8572 expression */
8573 const char *g = "string";
8574 pcpcc = &g + (g ? g-g : 0);
8575 /* HPUX 7.0 cc rejects these. */
8576 ++pcpcc;
8577 ppc = (char**) pcpcc;
8578 pcpcc = (char const *const *) ppc;
8579 { /* SCO 3.2v4 cc rejects this. */
8580 char *t;
8581 char const *s = 0 ? (char *) 0 : (char const *) 0;
8582
8583 *t++ = 0;
8584 if (s) return 0;
8585 }
8586 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8587 int x[] = {25, 17};
8588 const int *foo = &x[0];
8589 ++foo;
8590 }
8591 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8592 typedef const int *iptr;
8593 iptr p = 0;
8594 ++p;
8595 }
8596 { /* AIX XL C 1.02.0.0 rejects this saying
8597 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8598 struct s { int j; const int *ap[3]; };
8599 struct s *b; b->j = 5;
8600 }
8601 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8602 const int foo = 10;
8603 if (!foo) return 0;
8604 }
8605 return !cs[0] && !zero.x;
8606 #endif
8607
8608 ;
8609 return 0;
8610 }
8611 _ACEOF
8612 rm -f conftest.$ac_objext
8613 if { (ac_try="$ac_compile"
8614 case "(($ac_try" in
8615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8616 *) ac_try_echo=$ac_try;;
8617 esac
8618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8619 (eval "$ac_compile") 2>conftest.er1
8620 ac_status=$?
8621 grep -v '^ *+' conftest.er1 >conftest.err
8622 rm -f conftest.er1
8623 cat conftest.err >&5
8624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8625 (exit $ac_status); } && {
8626 test -z "$ac_c_werror_flag" ||
8627 test ! -s conftest.err
8628 } && test -s conftest.$ac_objext; then
8629 ac_cv_c_const=yes
8630 else
8631 echo "$as_me: failed program was:" >&5
8632 sed 's/^/| /' conftest.$ac_ext >&5
8633
8634 ac_cv_c_const=no
8635 fi
8636
8637 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8638 fi
8639 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8640 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8641 if test $ac_cv_c_const = no; then
8642
8643 cat >>confdefs.h <<\_ACEOF
8644 #define const
8645 _ACEOF
8646
8647 fi
8648
8649 { echo "$as_me:$LINENO: checking for void * support" >&5
8650 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8651 if test "${emacs_cv_void_star+set}" = set; then
8652 echo $ECHO_N "(cached) $ECHO_C" >&6
8653 else
8654 cat >conftest.$ac_ext <<_ACEOF
8655 /* confdefs.h. */
8656 _ACEOF
8657 cat confdefs.h >>conftest.$ac_ext
8658 cat >>conftest.$ac_ext <<_ACEOF
8659 /* end confdefs.h. */
8660
8661 int
8662 main ()
8663 {
8664 void * foo;
8665 ;
8666 return 0;
8667 }
8668 _ACEOF
8669 rm -f conftest.$ac_objext
8670 if { (ac_try="$ac_compile"
8671 case "(($ac_try" in
8672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8673 *) ac_try_echo=$ac_try;;
8674 esac
8675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8676 (eval "$ac_compile") 2>conftest.er1
8677 ac_status=$?
8678 grep -v '^ *+' conftest.er1 >conftest.err
8679 rm -f conftest.er1
8680 cat conftest.err >&5
8681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8682 (exit $ac_status); } && {
8683 test -z "$ac_c_werror_flag" ||
8684 test ! -s conftest.err
8685 } && test -s conftest.$ac_objext; then
8686 emacs_cv_void_star=yes
8687 else
8688 echo "$as_me: failed program was:" >&5
8689 sed 's/^/| /' conftest.$ac_ext >&5
8690
8691 emacs_cv_void_star=no
8692 fi
8693
8694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8695 fi
8696 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8697 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8698 if test $emacs_cv_void_star = yes; then
8699 cat >>confdefs.h <<\_ACEOF
8700 #define POINTER_TYPE void
8701 _ACEOF
8702
8703 else
8704 cat >>confdefs.h <<\_ACEOF
8705 #define POINTER_TYPE char
8706 _ACEOF
8707
8708 fi
8709
8710
8711
8712
8713
8714 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8715 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8716 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8717 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8718 echo $ECHO_N "(cached) $ECHO_C" >&6
8719 else
8720 cat >conftest.make <<\_ACEOF
8721 SHELL = /bin/sh
8722 all:
8723 @echo '@@@%%%=$(MAKE)=@@@%%%'
8724 _ACEOF
8725 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8726 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8727 *@@@%%%=?*=@@@%%%*)
8728 eval ac_cv_prog_make_${ac_make}_set=yes;;
8729 *)
8730 eval ac_cv_prog_make_${ac_make}_set=no;;
8731 esac
8732 rm -f conftest.make
8733 fi
8734 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8735 { echo "$as_me:$LINENO: result: yes" >&5
8736 echo "${ECHO_T}yes" >&6; }
8737 SET_MAKE=
8738 else
8739 { echo "$as_me:$LINENO: result: no" >&5
8740 echo "${ECHO_T}no" >&6; }
8741 SET_MAKE="MAKE=${MAKE-make}"
8742 fi
8743
8744
8745 { echo "$as_me:$LINENO: checking for long file names" >&5
8746 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8747 if test "${ac_cv_sys_long_file_names+set}" = set; then
8748 echo $ECHO_N "(cached) $ECHO_C" >&6
8749 else
8750 ac_cv_sys_long_file_names=yes
8751 # Test for long file names in all the places we know might matter:
8752 # . the current directory, where building will happen
8753 # $prefix/lib where we will be installing things
8754 # $exec_prefix/lib likewise
8755 # $TMPDIR if set, where it might want to write temporary files
8756 # /tmp where it might want to write temporary files
8757 # /var/tmp likewise
8758 # /usr/tmp likewise
8759 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8760 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8761 # in the usual case where exec_prefix is '${prefix}'.
8762 case $ac_dir in #(
8763 . | /* | ?:[\\/]*) ;; #(
8764 *) continue;;
8765 esac
8766 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8767 ac_xdir=$ac_dir/cf$$
8768 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8769 ac_tf1=$ac_xdir/conftest9012345
8770 ac_tf2=$ac_xdir/conftest9012346
8771 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8772 ac_cv_sys_long_file_names=no
8773 rm -f -r "$ac_xdir" 2>/dev/null
8774 test $ac_cv_sys_long_file_names = no && break
8775 done
8776 fi
8777 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8778 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8779 if test $ac_cv_sys_long_file_names = yes; then
8780
8781 cat >>confdefs.h <<\_ACEOF
8782 #define HAVE_LONG_FILE_NAMES 1
8783 _ACEOF
8784
8785 fi
8786
8787
8788 #### Choose a window system.
8789
8790 { echo "$as_me:$LINENO: checking for X" >&5
8791 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8792
8793
8794 # Check whether --with-x was given.
8795 if test "${with_x+set}" = set; then
8796 withval=$with_x;
8797 fi
8798
8799 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8800 if test "x$with_x" = xno; then
8801 # The user explicitly disabled X.
8802 have_x=disabled
8803 else
8804 case $x_includes,$x_libraries in #(
8805 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8806 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8807 { (exit 1); exit 1; }; };; #(
8808 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8809 echo $ECHO_N "(cached) $ECHO_C" >&6
8810 else
8811 # One or both of the vars are not set, and there is no cached value.
8812 ac_x_includes=no ac_x_libraries=no
8813 rm -f -r conftest.dir
8814 if mkdir conftest.dir; then
8815 cd conftest.dir
8816 cat >Imakefile <<'_ACEOF'
8817 incroot:
8818 @echo incroot='${INCROOT}'
8819 usrlibdir:
8820 @echo usrlibdir='${USRLIBDIR}'
8821 libdir:
8822 @echo libdir='${LIBDIR}'
8823 _ACEOF
8824 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8825 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8826 for ac_var in incroot usrlibdir libdir; do
8827 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8828 done
8829 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8830 for ac_extension in a so sl; do
8831 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8832 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8833 ac_im_usrlibdir=$ac_im_libdir; break
8834 fi
8835 done
8836 # Screen out bogus values from the imake configuration. They are
8837 # bogus both because they are the default anyway, and because
8838 # using them would break gcc on systems where it needs fixed includes.
8839 case $ac_im_incroot in
8840 /usr/include) ac_x_includes= ;;
8841 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8842 esac
8843 case $ac_im_usrlibdir in
8844 /usr/lib | /lib) ;;
8845 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8846 esac
8847 fi
8848 cd ..
8849 rm -f -r conftest.dir
8850 fi
8851
8852 # Standard set of common directories for X headers.
8853 # Check X11 before X11Rn because it is often a symlink to the current release.
8854 ac_x_header_dirs='
8855 /usr/X11/include
8856 /usr/X11R6/include
8857 /usr/X11R5/include
8858 /usr/X11R4/include
8859
8860 /usr/include/X11
8861 /usr/include/X11R6
8862 /usr/include/X11R5
8863 /usr/include/X11R4
8864
8865 /usr/local/X11/include
8866 /usr/local/X11R6/include
8867 /usr/local/X11R5/include
8868 /usr/local/X11R4/include
8869
8870 /usr/local/include/X11
8871 /usr/local/include/X11R6
8872 /usr/local/include/X11R5
8873 /usr/local/include/X11R4
8874
8875 /usr/X386/include
8876 /usr/x386/include
8877 /usr/XFree86/include/X11
8878
8879 /usr/include
8880 /usr/local/include
8881 /usr/unsupported/include
8882 /usr/athena/include
8883 /usr/local/x11r5/include
8884 /usr/lpp/Xamples/include
8885
8886 /usr/openwin/include
8887 /usr/openwin/share/include'
8888
8889 if test "$ac_x_includes" = no; then
8890 # Guess where to find include files, by looking for Xlib.h.
8891 # First, try using that file with no special directory specified.
8892 cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h. */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h. */
8898 #include <X11/Xlib.h>
8899 _ACEOF
8900 if { (ac_try="$ac_cpp conftest.$ac_ext"
8901 case "(($ac_try" in
8902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8903 *) ac_try_echo=$ac_try;;
8904 esac
8905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8907 ac_status=$?
8908 grep -v '^ *+' conftest.er1 >conftest.err
8909 rm -f conftest.er1
8910 cat conftest.err >&5
8911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8912 (exit $ac_status); } >/dev/null && {
8913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
8914 test ! -s conftest.err
8915 }; then
8916 # We can compile using X headers with no special include directory.
8917 ac_x_includes=
8918 else
8919 echo "$as_me: failed program was:" >&5
8920 sed 's/^/| /' conftest.$ac_ext >&5
8921
8922 for ac_dir in $ac_x_header_dirs; do
8923 if test -r "$ac_dir/X11/Xlib.h"; then
8924 ac_x_includes=$ac_dir
8925 break
8926 fi
8927 done
8928 fi
8929
8930 rm -f conftest.err conftest.$ac_ext
8931 fi # $ac_x_includes = no
8932
8933 if test "$ac_x_libraries" = no; then
8934 # Check for the libraries.
8935 # See if we find them without any special options.
8936 # Don't add to $LIBS permanently.
8937 ac_save_LIBS=$LIBS
8938 LIBS="-lX11 $LIBS"
8939 cat >conftest.$ac_ext <<_ACEOF
8940 /* confdefs.h. */
8941 _ACEOF
8942 cat confdefs.h >>conftest.$ac_ext
8943 cat >>conftest.$ac_ext <<_ACEOF
8944 /* end confdefs.h. */
8945 #include <X11/Xlib.h>
8946 int
8947 main ()
8948 {
8949 XrmInitialize ()
8950 ;
8951 return 0;
8952 }
8953 _ACEOF
8954 rm -f conftest.$ac_objext conftest$ac_exeext
8955 if { (ac_try="$ac_link"
8956 case "(($ac_try" in
8957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8958 *) ac_try_echo=$ac_try;;
8959 esac
8960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8961 (eval "$ac_link") 2>conftest.er1
8962 ac_status=$?
8963 grep -v '^ *+' conftest.er1 >conftest.err
8964 rm -f conftest.er1
8965 cat conftest.err >&5
8966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8967 (exit $ac_status); } && {
8968 test -z "$ac_c_werror_flag" ||
8969 test ! -s conftest.err
8970 } && test -s conftest$ac_exeext &&
8971 $as_test_x conftest$ac_exeext; then
8972 LIBS=$ac_save_LIBS
8973 # We can link X programs with no special library path.
8974 ac_x_libraries=
8975 else
8976 echo "$as_me: failed program was:" >&5
8977 sed 's/^/| /' conftest.$ac_ext >&5
8978
8979 LIBS=$ac_save_LIBS
8980 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
8981 do
8982 # Don't even attempt the hair of trying to link an X program!
8983 for ac_extension in a so sl; do
8984 if test -r "$ac_dir/libX11.$ac_extension"; then
8985 ac_x_libraries=$ac_dir
8986 break 2
8987 fi
8988 done
8989 done
8990 fi
8991
8992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8993 conftest$ac_exeext conftest.$ac_ext
8994 fi # $ac_x_libraries = no
8995
8996 case $ac_x_includes,$ac_x_libraries in #(
8997 no,* | *,no | *\'*)
8998 # Didn't find X, or a directory has "'" in its name.
8999 ac_cv_have_x="have_x=no";; #(
9000 *)
9001 # Record where we found X for the cache.
9002 ac_cv_have_x="have_x=yes\
9003 ac_x_includes='$ac_x_includes'\
9004 ac_x_libraries='$ac_x_libraries'"
9005 esac
9006 fi
9007 ;; #(
9008 *) have_x=yes;;
9009 esac
9010 eval "$ac_cv_have_x"
9011 fi # $with_x != no
9012
9013 if test "$have_x" != yes; then
9014 { echo "$as_me:$LINENO: result: $have_x" >&5
9015 echo "${ECHO_T}$have_x" >&6; }
9016 no_x=yes
9017 else
9018 # If each of the values was on the command line, it overrides each guess.
9019 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9020 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9021 # Update the cache value to reflect the command line values.
9022 ac_cv_have_x="have_x=yes\
9023 ac_x_includes='$x_includes'\
9024 ac_x_libraries='$x_libraries'"
9025 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9026 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9027 fi
9028
9029 if test "$no_x" = yes; then
9030 window_system=none
9031 else
9032 window_system=x11
9033 fi
9034
9035 if test "${x_libraries}" != NONE; then
9036 if test -n "${x_libraries}"; then
9037 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9038 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9039 fi
9040 x_default_search_path=""
9041 x_search_path=${x_libraries}
9042 if test -z "${x_search_path}"; then
9043 x_search_path=/usr/lib
9044 fi
9045 for x_library in `echo ${x_search_path}: | \
9046 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9047 x_search_path="\
9048 ${x_library}/X11/%L/%T/%N%C%S:\
9049 ${x_library}/X11/%l/%T/%N%C%S:\
9050 ${x_library}/X11/%T/%N%C%S:\
9051 ${x_library}/X11/%L/%T/%N%S:\
9052 ${x_library}/X11/%l/%T/%N%S:\
9053 ${x_library}/X11/%T/%N%S"
9054 if test x"${x_default_search_path}" = x; then
9055 x_default_search_path=${x_search_path}
9056 else
9057 x_default_search_path="${x_search_path}:${x_default_search_path}"
9058 fi
9059 done
9060 fi
9061 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9062 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9063 fi
9064
9065 if test x"${x_includes}" = x; then
9066 bitmapdir=/usr/include/X11/bitmaps
9067 else
9068 # accumulate include directories that have X11 bitmap subdirectories
9069 bmd_acc="dummyval"
9070 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9071 if test -d "${bmd}/X11/bitmaps"; then
9072 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9073 fi
9074 if test -d "${bmd}/bitmaps"; then
9075 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9076 fi
9077 done
9078 if test ${bmd_acc} != "dummyval"; then
9079 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9080 fi
9081 fi
9082
9083 HAVE_CARBON=no
9084 if test "${with_carbon}" != no; then
9085 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9086 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9087 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9088 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9089 echo $ECHO_N "(cached) $ECHO_C" >&6
9090 fi
9091 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9092 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9093 else
9094 # Is the header compilable?
9095 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9096 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9097 cat >conftest.$ac_ext <<_ACEOF
9098 /* confdefs.h. */
9099 _ACEOF
9100 cat confdefs.h >>conftest.$ac_ext
9101 cat >>conftest.$ac_ext <<_ACEOF
9102 /* end confdefs.h. */
9103 $ac_includes_default
9104 #include <Carbon/Carbon.h>
9105 _ACEOF
9106 rm -f conftest.$ac_objext
9107 if { (ac_try="$ac_compile"
9108 case "(($ac_try" in
9109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9110 *) ac_try_echo=$ac_try;;
9111 esac
9112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9113 (eval "$ac_compile") 2>conftest.er1
9114 ac_status=$?
9115 grep -v '^ *+' conftest.er1 >conftest.err
9116 rm -f conftest.er1
9117 cat conftest.err >&5
9118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9119 (exit $ac_status); } && {
9120 test -z "$ac_c_werror_flag" ||
9121 test ! -s conftest.err
9122 } && test -s conftest.$ac_objext; then
9123 ac_header_compiler=yes
9124 else
9125 echo "$as_me: failed program was:" >&5
9126 sed 's/^/| /' conftest.$ac_ext >&5
9127
9128 ac_header_compiler=no
9129 fi
9130
9131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9132 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9133 echo "${ECHO_T}$ac_header_compiler" >&6; }
9134
9135 # Is the header present?
9136 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9137 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <Carbon/Carbon.h>
9145 _ACEOF
9146 if { (ac_try="$ac_cpp conftest.$ac_ext"
9147 case "(($ac_try" in
9148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9149 *) ac_try_echo=$ac_try;;
9150 esac
9151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9152 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9153 ac_status=$?
9154 grep -v '^ *+' conftest.er1 >conftest.err
9155 rm -f conftest.er1
9156 cat conftest.err >&5
9157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9158 (exit $ac_status); } >/dev/null && {
9159 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9160 test ! -s conftest.err
9161 }; then
9162 ac_header_preproc=yes
9163 else
9164 echo "$as_me: failed program was:" >&5
9165 sed 's/^/| /' conftest.$ac_ext >&5
9166
9167 ac_header_preproc=no
9168 fi
9169
9170 rm -f conftest.err conftest.$ac_ext
9171 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9172 echo "${ECHO_T}$ac_header_preproc" >&6; }
9173
9174 # So? What about this header?
9175 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9176 yes:no: )
9177 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9178 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9179 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9180 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9181 ac_header_preproc=yes
9182 ;;
9183 no:yes:* )
9184 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9185 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9186 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9187 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9188 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9189 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9190 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9191 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9192 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9193 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9194 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9195 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9196
9197 ;;
9198 esac
9199 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9200 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9201 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9202 echo $ECHO_N "(cached) $ECHO_C" >&6
9203 else
9204 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9205 fi
9206 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9207 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9208
9209 fi
9210 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9211 HAVE_CARBON=yes
9212 fi
9213
9214
9215 fi
9216 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9217 if test "${with_carbon+set}" != set \
9218 && test "${carbon_appdir_x+set}" != set; then
9219 for var in with_x with_x_toolkit with_gtk with_xim \
9220 with_xpm with_jpeg with_tiff with_gif with_png; do
9221 if eval test \"\${$var+set}\" = set; then
9222 HAVE_CARBON=no
9223 break
9224 fi
9225 done
9226 fi
9227 fi
9228 if test "${HAVE_CARBON}" = yes; then
9229 window_system=mac
9230 fi
9231
9232 case "${window_system}" in
9233 x11 )
9234 HAVE_X_WINDOWS=yes
9235 HAVE_X11=yes
9236 case "${with_x_toolkit}" in
9237 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9238 motif ) USE_X_TOOLKIT=MOTIF ;;
9239 gtk ) with_gtk=yes
9240 USE_X_TOOLKIT=none ;;
9241 no ) USE_X_TOOLKIT=none ;;
9242 * )
9243 if test x"$with_gtk" = xyes; then
9244 USE_X_TOOLKIT=none
9245 else
9246 USE_X_TOOLKIT=maybe
9247 fi
9248 ;;
9249 esac
9250 ;;
9251 mac | none )
9252 HAVE_X_WINDOWS=no
9253 HAVE_X11=no
9254 USE_X_TOOLKIT=none
9255 ;;
9256 esac
9257
9258 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9259 # Extract the first word of "X", so it can be a program name with args.
9260 set dummy X; ac_word=$2
9261 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9262 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9263 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9264 echo $ECHO_N "(cached) $ECHO_C" >&6
9265 else
9266 if test -n "$HAVE_XSERVER"; then
9267 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9268 else
9269 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9270 for as_dir in $PATH
9271 do
9272 IFS=$as_save_IFS
9273 test -z "$as_dir" && as_dir=.
9274 for ac_exec_ext in '' $ac_executable_extensions; do
9275 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9276 ac_cv_prog_HAVE_XSERVER="true"
9277 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9278 break 2
9279 fi
9280 done
9281 done
9282 IFS=$as_save_IFS
9283
9284 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9285 fi
9286 fi
9287 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9288 if test -n "$HAVE_XSERVER"; then
9289 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9290 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9291 else
9292 { echo "$as_me:$LINENO: result: no" >&5
9293 echo "${ECHO_T}no" >&6; }
9294 fi
9295
9296
9297 if test "$HAVE_XSERVER" = true ||
9298 test -n "$DISPLAY" ||
9299 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9300 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9301 were found. You should install the relevant development files for X
9302 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9303 sure you have development files for image handling, i.e.
9304 tiff, gif, jpeg, png and xpm.
9305 If you are sure you want Emacs compiled without X window support, pass
9306 --without-x
9307 to configure." >&5
9308 echo "$as_me: error: You seem to be running X, but no X development libraries
9309 were found. You should install the relevant development files for X
9310 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9311 sure you have development files for image handling, i.e.
9312 tiff, gif, jpeg, png and xpm.
9313 If you are sure you want Emacs compiled without X window support, pass
9314 --without-x
9315 to configure." >&2;}
9316 { (exit 1); exit 1; }; }
9317 fi
9318 fi
9319
9320 ### If we're using X11, we should use the X menu package.
9321 HAVE_MENUS=no
9322 case ${HAVE_X11} in
9323 yes ) HAVE_MENUS=yes ;;
9324 esac
9325
9326 ### Compute the unexec source name from the object name.
9327 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9328
9329 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9330 # Assume not, until told otherwise.
9331 GNU_MALLOC=yes
9332 doug_lea_malloc=yes
9333 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9334 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9335 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9336 echo $ECHO_N "(cached) $ECHO_C" >&6
9337 else
9338 cat >conftest.$ac_ext <<_ACEOF
9339 /* confdefs.h. */
9340 _ACEOF
9341 cat confdefs.h >>conftest.$ac_ext
9342 cat >>conftest.$ac_ext <<_ACEOF
9343 /* end confdefs.h. */
9344 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9345 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9346 #define malloc_get_state innocuous_malloc_get_state
9347
9348 /* System header to define __stub macros and hopefully few prototypes,
9349 which can conflict with char malloc_get_state (); below.
9350 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9351 <limits.h> exists even on freestanding compilers. */
9352
9353 #ifdef __STDC__
9354 # include <limits.h>
9355 #else
9356 # include <assert.h>
9357 #endif
9358
9359 #undef malloc_get_state
9360
9361 /* Override any GCC internal prototype to avoid an error.
9362 Use char because int might match the return type of a GCC
9363 builtin and then its argument prototype would still apply. */
9364 #ifdef __cplusplus
9365 extern "C"
9366 #endif
9367 char malloc_get_state ();
9368 /* The GNU C library defines this for functions which it implements
9369 to always fail with ENOSYS. Some functions are actually named
9370 something starting with __ and the normal name is an alias. */
9371 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9372 choke me
9373 #endif
9374
9375 int
9376 main ()
9377 {
9378 return malloc_get_state ();
9379 ;
9380 return 0;
9381 }
9382 _ACEOF
9383 rm -f conftest.$ac_objext conftest$ac_exeext
9384 if { (ac_try="$ac_link"
9385 case "(($ac_try" in
9386 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9387 *) ac_try_echo=$ac_try;;
9388 esac
9389 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9390 (eval "$ac_link") 2>conftest.er1
9391 ac_status=$?
9392 grep -v '^ *+' conftest.er1 >conftest.err
9393 rm -f conftest.er1
9394 cat conftest.err >&5
9395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9396 (exit $ac_status); } && {
9397 test -z "$ac_c_werror_flag" ||
9398 test ! -s conftest.err
9399 } && test -s conftest$ac_exeext &&
9400 $as_test_x conftest$ac_exeext; then
9401 ac_cv_func_malloc_get_state=yes
9402 else
9403 echo "$as_me: failed program was:" >&5
9404 sed 's/^/| /' conftest.$ac_ext >&5
9405
9406 ac_cv_func_malloc_get_state=no
9407 fi
9408
9409 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9410 conftest$ac_exeext conftest.$ac_ext
9411 fi
9412 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9413 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9414 if test $ac_cv_func_malloc_get_state = yes; then
9415 :
9416 else
9417 doug_lea_malloc=no
9418 fi
9419
9420 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9421 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9422 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9423 echo $ECHO_N "(cached) $ECHO_C" >&6
9424 else
9425 cat >conftest.$ac_ext <<_ACEOF
9426 /* confdefs.h. */
9427 _ACEOF
9428 cat confdefs.h >>conftest.$ac_ext
9429 cat >>conftest.$ac_ext <<_ACEOF
9430 /* end confdefs.h. */
9431 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9432 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9433 #define malloc_set_state innocuous_malloc_set_state
9434
9435 /* System header to define __stub macros and hopefully few prototypes,
9436 which can conflict with char malloc_set_state (); below.
9437 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9438 <limits.h> exists even on freestanding compilers. */
9439
9440 #ifdef __STDC__
9441 # include <limits.h>
9442 #else
9443 # include <assert.h>
9444 #endif
9445
9446 #undef malloc_set_state
9447
9448 /* Override any GCC internal prototype to avoid an error.
9449 Use char because int might match the return type of a GCC
9450 builtin and then its argument prototype would still apply. */
9451 #ifdef __cplusplus
9452 extern "C"
9453 #endif
9454 char malloc_set_state ();
9455 /* The GNU C library defines this for functions which it implements
9456 to always fail with ENOSYS. Some functions are actually named
9457 something starting with __ and the normal name is an alias. */
9458 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9459 choke me
9460 #endif
9461
9462 int
9463 main ()
9464 {
9465 return malloc_set_state ();
9466 ;
9467 return 0;
9468 }
9469 _ACEOF
9470 rm -f conftest.$ac_objext conftest$ac_exeext
9471 if { (ac_try="$ac_link"
9472 case "(($ac_try" in
9473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9474 *) ac_try_echo=$ac_try;;
9475 esac
9476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9477 (eval "$ac_link") 2>conftest.er1
9478 ac_status=$?
9479 grep -v '^ *+' conftest.er1 >conftest.err
9480 rm -f conftest.er1
9481 cat conftest.err >&5
9482 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483 (exit $ac_status); } && {
9484 test -z "$ac_c_werror_flag" ||
9485 test ! -s conftest.err
9486 } && test -s conftest$ac_exeext &&
9487 $as_test_x conftest$ac_exeext; then
9488 ac_cv_func_malloc_set_state=yes
9489 else
9490 echo "$as_me: failed program was:" >&5
9491 sed 's/^/| /' conftest.$ac_ext >&5
9492
9493 ac_cv_func_malloc_set_state=no
9494 fi
9495
9496 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9497 conftest$ac_exeext conftest.$ac_ext
9498 fi
9499 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9500 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9501 if test $ac_cv_func_malloc_set_state = yes; then
9502 :
9503 else
9504 doug_lea_malloc=no
9505 fi
9506
9507 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9508 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9509 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9510 echo $ECHO_N "(cached) $ECHO_C" >&6
9511 else
9512 cat >conftest.$ac_ext <<_ACEOF
9513 /* confdefs.h. */
9514 _ACEOF
9515 cat confdefs.h >>conftest.$ac_ext
9516 cat >>conftest.$ac_ext <<_ACEOF
9517 /* end confdefs.h. */
9518 extern void (* __after_morecore_hook)();
9519 int
9520 main ()
9521 {
9522 __after_morecore_hook = 0
9523 ;
9524 return 0;
9525 }
9526 _ACEOF
9527 rm -f conftest.$ac_objext conftest$ac_exeext
9528 if { (ac_try="$ac_link"
9529 case "(($ac_try" in
9530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9531 *) ac_try_echo=$ac_try;;
9532 esac
9533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9534 (eval "$ac_link") 2>conftest.er1
9535 ac_status=$?
9536 grep -v '^ *+' conftest.er1 >conftest.err
9537 rm -f conftest.er1
9538 cat conftest.err >&5
9539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9540 (exit $ac_status); } && {
9541 test -z "$ac_c_werror_flag" ||
9542 test ! -s conftest.err
9543 } && test -s conftest$ac_exeext &&
9544 $as_test_x conftest$ac_exeext; then
9545 emacs_cv_var___after_morecore_hook=yes
9546 else
9547 echo "$as_me: failed program was:" >&5
9548 sed 's/^/| /' conftest.$ac_ext >&5
9549
9550 emacs_cv_var___after_morecore_hook=no
9551 fi
9552
9553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9554 conftest$ac_exeext conftest.$ac_ext
9555 fi
9556 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9557 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9558 if test $emacs_cv_var___after_morecore_hook = no; then
9559 doug_lea_malloc=no
9560 fi
9561 if test "${system_malloc}" = "yes"; then
9562 GNU_MALLOC=no
9563 GNU_MALLOC_reason="
9564 (The GNU allocators don't work with this system configuration.)"
9565 fi
9566 if test "$doug_lea_malloc" = "yes" ; then
9567 if test "$GNU_MALLOC" = yes ; then
9568 GNU_MALLOC_reason="
9569 (Using Doug Lea's new malloc from the GNU C Library.)"
9570 fi
9571
9572 cat >>confdefs.h <<\_ACEOF
9573 #define DOUG_LEA_MALLOC 1
9574 _ACEOF
9575
9576 fi
9577
9578 if test x"${REL_ALLOC}" = x; then
9579 REL_ALLOC=${GNU_MALLOC}
9580 fi
9581
9582
9583
9584
9585 for ac_header in stdlib.h unistd.h
9586 do
9587 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9592 echo $ECHO_N "(cached) $ECHO_C" >&6
9593 fi
9594 ac_res=`eval echo '${'$as_ac_Header'}'`
9595 { echo "$as_me:$LINENO: result: $ac_res" >&5
9596 echo "${ECHO_T}$ac_res" >&6; }
9597 else
9598 # Is the header compilable?
9599 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9600 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9601 cat >conftest.$ac_ext <<_ACEOF
9602 /* confdefs.h. */
9603 _ACEOF
9604 cat confdefs.h >>conftest.$ac_ext
9605 cat >>conftest.$ac_ext <<_ACEOF
9606 /* end confdefs.h. */
9607 $ac_includes_default
9608 #include <$ac_header>
9609 _ACEOF
9610 rm -f conftest.$ac_objext
9611 if { (ac_try="$ac_compile"
9612 case "(($ac_try" in
9613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9614 *) ac_try_echo=$ac_try;;
9615 esac
9616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9617 (eval "$ac_compile") 2>conftest.er1
9618 ac_status=$?
9619 grep -v '^ *+' conftest.er1 >conftest.err
9620 rm -f conftest.er1
9621 cat conftest.err >&5
9622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9623 (exit $ac_status); } && {
9624 test -z "$ac_c_werror_flag" ||
9625 test ! -s conftest.err
9626 } && test -s conftest.$ac_objext; then
9627 ac_header_compiler=yes
9628 else
9629 echo "$as_me: failed program was:" >&5
9630 sed 's/^/| /' conftest.$ac_ext >&5
9631
9632 ac_header_compiler=no
9633 fi
9634
9635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9636 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9637 echo "${ECHO_T}$ac_header_compiler" >&6; }
9638
9639 # Is the header present?
9640 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9641 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9642 cat >conftest.$ac_ext <<_ACEOF
9643 /* confdefs.h. */
9644 _ACEOF
9645 cat confdefs.h >>conftest.$ac_ext
9646 cat >>conftest.$ac_ext <<_ACEOF
9647 /* end confdefs.h. */
9648 #include <$ac_header>
9649 _ACEOF
9650 if { (ac_try="$ac_cpp conftest.$ac_ext"
9651 case "(($ac_try" in
9652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9653 *) ac_try_echo=$ac_try;;
9654 esac
9655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9656 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9657 ac_status=$?
9658 grep -v '^ *+' conftest.er1 >conftest.err
9659 rm -f conftest.er1
9660 cat conftest.err >&5
9661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9662 (exit $ac_status); } >/dev/null && {
9663 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9664 test ! -s conftest.err
9665 }; then
9666 ac_header_preproc=yes
9667 else
9668 echo "$as_me: failed program was:" >&5
9669 sed 's/^/| /' conftest.$ac_ext >&5
9670
9671 ac_header_preproc=no
9672 fi
9673
9674 rm -f conftest.err conftest.$ac_ext
9675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9676 echo "${ECHO_T}$ac_header_preproc" >&6; }
9677
9678 # So? What about this header?
9679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9680 yes:no: )
9681 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9682 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9684 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9685 ac_header_preproc=yes
9686 ;;
9687 no:yes:* )
9688 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9689 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9690 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9691 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9692 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9693 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9694 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9695 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9696 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9697 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9698 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9699 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9700
9701 ;;
9702 esac
9703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9706 echo $ECHO_N "(cached) $ECHO_C" >&6
9707 else
9708 eval "$as_ac_Header=\$ac_header_preproc"
9709 fi
9710 ac_res=`eval echo '${'$as_ac_Header'}'`
9711 { echo "$as_me:$LINENO: result: $ac_res" >&5
9712 echo "${ECHO_T}$ac_res" >&6; }
9713
9714 fi
9715 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9716 cat >>confdefs.h <<_ACEOF
9717 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9718 _ACEOF
9719
9720 fi
9721
9722 done
9723
9724
9725 for ac_func in getpagesize
9726 do
9727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9731 echo $ECHO_N "(cached) $ECHO_C" >&6
9732 else
9733 cat >conftest.$ac_ext <<_ACEOF
9734 /* confdefs.h. */
9735 _ACEOF
9736 cat confdefs.h >>conftest.$ac_ext
9737 cat >>conftest.$ac_ext <<_ACEOF
9738 /* end confdefs.h. */
9739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9740 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9741 #define $ac_func innocuous_$ac_func
9742
9743 /* System header to define __stub macros and hopefully few prototypes,
9744 which can conflict with char $ac_func (); below.
9745 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9746 <limits.h> exists even on freestanding compilers. */
9747
9748 #ifdef __STDC__
9749 # include <limits.h>
9750 #else
9751 # include <assert.h>
9752 #endif
9753
9754 #undef $ac_func
9755
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char $ac_func ();
9763 /* The GNU C library defines this for functions which it implements
9764 to always fail with ENOSYS. Some functions are actually named
9765 something starting with __ and the normal name is an alias. */
9766 #if defined __stub_$ac_func || defined __stub___$ac_func
9767 choke me
9768 #endif
9769
9770 int
9771 main ()
9772 {
9773 return $ac_func ();
9774 ;
9775 return 0;
9776 }
9777 _ACEOF
9778 rm -f conftest.$ac_objext conftest$ac_exeext
9779 if { (ac_try="$ac_link"
9780 case "(($ac_try" in
9781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9782 *) ac_try_echo=$ac_try;;
9783 esac
9784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9785 (eval "$ac_link") 2>conftest.er1
9786 ac_status=$?
9787 grep -v '^ *+' conftest.er1 >conftest.err
9788 rm -f conftest.er1
9789 cat conftest.err >&5
9790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9791 (exit $ac_status); } && {
9792 test -z "$ac_c_werror_flag" ||
9793 test ! -s conftest.err
9794 } && test -s conftest$ac_exeext &&
9795 $as_test_x conftest$ac_exeext; then
9796 eval "$as_ac_var=yes"
9797 else
9798 echo "$as_me: failed program was:" >&5
9799 sed 's/^/| /' conftest.$ac_ext >&5
9800
9801 eval "$as_ac_var=no"
9802 fi
9803
9804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9805 conftest$ac_exeext conftest.$ac_ext
9806 fi
9807 ac_res=`eval echo '${'$as_ac_var'}'`
9808 { echo "$as_me:$LINENO: result: $ac_res" >&5
9809 echo "${ECHO_T}$ac_res" >&6; }
9810 if test `eval echo '${'$as_ac_var'}'` = yes; then
9811 cat >>confdefs.h <<_ACEOF
9812 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9813 _ACEOF
9814
9815 fi
9816 done
9817
9818 { echo "$as_me:$LINENO: checking for working mmap" >&5
9819 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9820 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9821 echo $ECHO_N "(cached) $ECHO_C" >&6
9822 else
9823 if test "$cross_compiling" = yes; then
9824 ac_cv_func_mmap_fixed_mapped=no
9825 else
9826 cat >conftest.$ac_ext <<_ACEOF
9827 /* confdefs.h. */
9828 _ACEOF
9829 cat confdefs.h >>conftest.$ac_ext
9830 cat >>conftest.$ac_ext <<_ACEOF
9831 /* end confdefs.h. */
9832 $ac_includes_default
9833 /* malloc might have been renamed as rpl_malloc. */
9834 #undef malloc
9835
9836 /* Thanks to Mike Haertel and Jim Avera for this test.
9837 Here is a matrix of mmap possibilities:
9838 mmap private not fixed
9839 mmap private fixed at somewhere currently unmapped
9840 mmap private fixed at somewhere already mapped
9841 mmap shared not fixed
9842 mmap shared fixed at somewhere currently unmapped
9843 mmap shared fixed at somewhere already mapped
9844 For private mappings, we should verify that changes cannot be read()
9845 back from the file, nor mmap's back from the file at a different
9846 address. (There have been systems where private was not correctly
9847 implemented like the infamous i386 svr4.0, and systems where the
9848 VM page cache was not coherent with the file system buffer cache
9849 like early versions of FreeBSD and possibly contemporary NetBSD.)
9850 For shared mappings, we should conversely verify that changes get
9851 propagated back to all the places they're supposed to be.
9852
9853 Grep wants private fixed already mapped.
9854 The main things grep needs to know about mmap are:
9855 * does it exist and is it safe to write into the mmap'd area
9856 * how to use it (BSD variants) */
9857
9858 #include <fcntl.h>
9859 #include <sys/mman.h>
9860
9861 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9862 char *malloc ();
9863 #endif
9864
9865 /* This mess was copied from the GNU getpagesize.h. */
9866 #ifndef HAVE_GETPAGESIZE
9867 /* Assume that all systems that can run configure have sys/param.h. */
9868 # ifndef HAVE_SYS_PARAM_H
9869 # define HAVE_SYS_PARAM_H 1
9870 # endif
9871
9872 # ifdef _SC_PAGESIZE
9873 # define getpagesize() sysconf(_SC_PAGESIZE)
9874 # else /* no _SC_PAGESIZE */
9875 # ifdef HAVE_SYS_PARAM_H
9876 # include <sys/param.h>
9877 # ifdef EXEC_PAGESIZE
9878 # define getpagesize() EXEC_PAGESIZE
9879 # else /* no EXEC_PAGESIZE */
9880 # ifdef NBPG
9881 # define getpagesize() NBPG * CLSIZE
9882 # ifndef CLSIZE
9883 # define CLSIZE 1
9884 # endif /* no CLSIZE */
9885 # else /* no NBPG */
9886 # ifdef NBPC
9887 # define getpagesize() NBPC
9888 # else /* no NBPC */
9889 # ifdef PAGESIZE
9890 # define getpagesize() PAGESIZE
9891 # endif /* PAGESIZE */
9892 # endif /* no NBPC */
9893 # endif /* no NBPG */
9894 # endif /* no EXEC_PAGESIZE */
9895 # else /* no HAVE_SYS_PARAM_H */
9896 # define getpagesize() 8192 /* punt totally */
9897 # endif /* no HAVE_SYS_PARAM_H */
9898 # endif /* no _SC_PAGESIZE */
9899
9900 #endif /* no HAVE_GETPAGESIZE */
9901
9902 int
9903 main ()
9904 {
9905 char *data, *data2, *data3;
9906 int i, pagesize;
9907 int fd;
9908
9909 pagesize = getpagesize ();
9910
9911 /* First, make a file with some known garbage in it. */
9912 data = (char *) malloc (pagesize);
9913 if (!data)
9914 return 1;
9915 for (i = 0; i < pagesize; ++i)
9916 *(data + i) = rand ();
9917 umask (0);
9918 fd = creat ("conftest.mmap", 0600);
9919 if (fd < 0)
9920 return 1;
9921 if (write (fd, data, pagesize) != pagesize)
9922 return 1;
9923 close (fd);
9924
9925 /* Next, try to mmap the file at a fixed address which already has
9926 something else allocated at it. If we can, also make sure that
9927 we see the same garbage. */
9928 fd = open ("conftest.mmap", O_RDWR);
9929 if (fd < 0)
9930 return 1;
9931 data2 = (char *) malloc (2 * pagesize);
9932 if (!data2)
9933 return 1;
9934 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
9935 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
9936 MAP_PRIVATE | MAP_FIXED, fd, 0L))
9937 return 1;
9938 for (i = 0; i < pagesize; ++i)
9939 if (*(data + i) != *(data2 + i))
9940 return 1;
9941
9942 /* Finally, make sure that changes to the mapped area do not
9943 percolate back to the file as seen by read(). (This is a bug on
9944 some variants of i386 svr4.0.) */
9945 for (i = 0; i < pagesize; ++i)
9946 *(data2 + i) = *(data2 + i) + 1;
9947 data3 = (char *) malloc (pagesize);
9948 if (!data3)
9949 return 1;
9950 if (read (fd, data3, pagesize) != pagesize)
9951 return 1;
9952 for (i = 0; i < pagesize; ++i)
9953 if (*(data + i) != *(data3 + i))
9954 return 1;
9955 close (fd);
9956 return 0;
9957 }
9958 _ACEOF
9959 rm -f conftest$ac_exeext
9960 if { (ac_try="$ac_link"
9961 case "(($ac_try" in
9962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9963 *) ac_try_echo=$ac_try;;
9964 esac
9965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9966 (eval "$ac_link") 2>&5
9967 ac_status=$?
9968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9969 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
9970 { (case "(($ac_try" in
9971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9972 *) ac_try_echo=$ac_try;;
9973 esac
9974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9975 (eval "$ac_try") 2>&5
9976 ac_status=$?
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); }; }; then
9979 ac_cv_func_mmap_fixed_mapped=yes
9980 else
9981 echo "$as_me: program exited with status $ac_status" >&5
9982 echo "$as_me: failed program was:" >&5
9983 sed 's/^/| /' conftest.$ac_ext >&5
9984
9985 ( exit $ac_status )
9986 ac_cv_func_mmap_fixed_mapped=no
9987 fi
9988 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
9989 fi
9990
9991
9992 fi
9993 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
9994 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
9995 if test $ac_cv_func_mmap_fixed_mapped = yes; then
9996
9997 cat >>confdefs.h <<\_ACEOF
9998 #define HAVE_MMAP 1
9999 _ACEOF
10000
10001 fi
10002 rm -f conftest.mmap
10003
10004 if test $use_mmap_for_buffers = yes; then
10005 REL_ALLOC=no
10006 fi
10007
10008 LIBS="$libsrc_libs $LIBS"
10009
10010
10011 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10012 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10013 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10014 echo $ECHO_N "(cached) $ECHO_C" >&6
10015 else
10016 ac_check_lib_save_LIBS=$LIBS
10017 LIBS="-ldnet $LIBS"
10018 cat >conftest.$ac_ext <<_ACEOF
10019 /* confdefs.h. */
10020 _ACEOF
10021 cat confdefs.h >>conftest.$ac_ext
10022 cat >>conftest.$ac_ext <<_ACEOF
10023 /* end confdefs.h. */
10024
10025 /* Override any GCC internal prototype to avoid an error.
10026 Use char because int might match the return type of a GCC
10027 builtin and then its argument prototype would still apply. */
10028 #ifdef __cplusplus
10029 extern "C"
10030 #endif
10031 char dnet_ntoa ();
10032 int
10033 main ()
10034 {
10035 return dnet_ntoa ();
10036 ;
10037 return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest.$ac_objext conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>conftest.er1
10048 ac_status=$?
10049 grep -v '^ *+' conftest.er1 >conftest.err
10050 rm -f conftest.er1
10051 cat conftest.err >&5
10052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10053 (exit $ac_status); } && {
10054 test -z "$ac_c_werror_flag" ||
10055 test ! -s conftest.err
10056 } && test -s conftest$ac_exeext &&
10057 $as_test_x conftest$ac_exeext; then
10058 ac_cv_lib_dnet_dnet_ntoa=yes
10059 else
10060 echo "$as_me: failed program was:" >&5
10061 sed 's/^/| /' conftest.$ac_ext >&5
10062
10063 ac_cv_lib_dnet_dnet_ntoa=no
10064 fi
10065
10066 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10067 conftest$ac_exeext conftest.$ac_ext
10068 LIBS=$ac_check_lib_save_LIBS
10069 fi
10070 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10071 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10072 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10073 cat >>confdefs.h <<_ACEOF
10074 #define HAVE_LIBDNET 1
10075 _ACEOF
10076
10077 LIBS="-ldnet $LIBS"
10078
10079 fi
10080
10081
10082 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10083 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10084 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10085 echo $ECHO_N "(cached) $ECHO_C" >&6
10086 else
10087 ac_check_lib_save_LIBS=$LIBS
10088 LIBS="-lXbsd $LIBS"
10089 cat >conftest.$ac_ext <<_ACEOF
10090 /* confdefs.h. */
10091 _ACEOF
10092 cat confdefs.h >>conftest.$ac_ext
10093 cat >>conftest.$ac_ext <<_ACEOF
10094 /* end confdefs.h. */
10095
10096
10097 int
10098 main ()
10099 {
10100 return main ();
10101 ;
10102 return 0;
10103 }
10104 _ACEOF
10105 rm -f conftest.$ac_objext conftest$ac_exeext
10106 if { (ac_try="$ac_link"
10107 case "(($ac_try" in
10108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10109 *) ac_try_echo=$ac_try;;
10110 esac
10111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10112 (eval "$ac_link") 2>conftest.er1
10113 ac_status=$?
10114 grep -v '^ *+' conftest.er1 >conftest.err
10115 rm -f conftest.er1
10116 cat conftest.err >&5
10117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10118 (exit $ac_status); } && {
10119 test -z "$ac_c_werror_flag" ||
10120 test ! -s conftest.err
10121 } && test -s conftest$ac_exeext &&
10122 $as_test_x conftest$ac_exeext; then
10123 ac_cv_lib_Xbsd_main=yes
10124 else
10125 echo "$as_me: failed program was:" >&5
10126 sed 's/^/| /' conftest.$ac_ext >&5
10127
10128 ac_cv_lib_Xbsd_main=no
10129 fi
10130
10131 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10132 conftest$ac_exeext conftest.$ac_ext
10133 LIBS=$ac_check_lib_save_LIBS
10134 fi
10135 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10136 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10137 if test $ac_cv_lib_Xbsd_main = yes; then
10138 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10139 fi
10140
10141
10142
10143 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10144 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10145 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10146 echo $ECHO_N "(cached) $ECHO_C" >&6
10147 else
10148 ac_check_lib_save_LIBS=$LIBS
10149 LIBS="-lpthreads $LIBS"
10150 cat >conftest.$ac_ext <<_ACEOF
10151 /* confdefs.h. */
10152 _ACEOF
10153 cat confdefs.h >>conftest.$ac_ext
10154 cat >>conftest.$ac_ext <<_ACEOF
10155 /* end confdefs.h. */
10156
10157 /* Override any GCC internal prototype to avoid an error.
10158 Use char because int might match the return type of a GCC
10159 builtin and then its argument prototype would still apply. */
10160 #ifdef __cplusplus
10161 extern "C"
10162 #endif
10163 char cma_open ();
10164 int
10165 main ()
10166 {
10167 return cma_open ();
10168 ;
10169 return 0;
10170 }
10171 _ACEOF
10172 rm -f conftest.$ac_objext conftest$ac_exeext
10173 if { (ac_try="$ac_link"
10174 case "(($ac_try" in
10175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10176 *) ac_try_echo=$ac_try;;
10177 esac
10178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10179 (eval "$ac_link") 2>conftest.er1
10180 ac_status=$?
10181 grep -v '^ *+' conftest.er1 >conftest.err
10182 rm -f conftest.er1
10183 cat conftest.err >&5
10184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10185 (exit $ac_status); } && {
10186 test -z "$ac_c_werror_flag" ||
10187 test ! -s conftest.err
10188 } && test -s conftest$ac_exeext &&
10189 $as_test_x conftest$ac_exeext; then
10190 ac_cv_lib_pthreads_cma_open=yes
10191 else
10192 echo "$as_me: failed program was:" >&5
10193 sed 's/^/| /' conftest.$ac_ext >&5
10194
10195 ac_cv_lib_pthreads_cma_open=no
10196 fi
10197
10198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10199 conftest$ac_exeext conftest.$ac_ext
10200 LIBS=$ac_check_lib_save_LIBS
10201 fi
10202 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10203 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10204 if test $ac_cv_lib_pthreads_cma_open = yes; then
10205 cat >>confdefs.h <<_ACEOF
10206 #define HAVE_LIBPTHREADS 1
10207 _ACEOF
10208
10209 LIBS="-lpthreads $LIBS"
10210
10211 fi
10212
10213
10214 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10215 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10216 if test -d /usr/X386/include; then
10217 HAVE_XFREE386=yes
10218 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10219 else
10220 HAVE_XFREE386=no
10221 fi
10222 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10223 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10224
10225
10226 case ${host_os} in
10227 aix*)
10228 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10229 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10230 if test "${gdb_cv_bigtoc+set}" = set; then
10231 echo $ECHO_N "(cached) $ECHO_C" >&6
10232 else
10233
10234 case $GCC in
10235 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10236 *) gdb_cv_bigtoc=-bbigtoc ;;
10237 esac
10238
10239 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10240 cat >conftest.$ac_ext <<_ACEOF
10241 /* confdefs.h. */
10242 _ACEOF
10243 cat confdefs.h >>conftest.$ac_ext
10244 cat >>conftest.$ac_ext <<_ACEOF
10245 /* end confdefs.h. */
10246
10247 int
10248 main ()
10249 {
10250 int i;
10251 ;
10252 return 0;
10253 }
10254 _ACEOF
10255 rm -f conftest.$ac_objext conftest$ac_exeext
10256 if { (ac_try="$ac_link"
10257 case "(($ac_try" in
10258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10259 *) ac_try_echo=$ac_try;;
10260 esac
10261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10262 (eval "$ac_link") 2>conftest.er1
10263 ac_status=$?
10264 grep -v '^ *+' conftest.er1 >conftest.err
10265 rm -f conftest.er1
10266 cat conftest.err >&5
10267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10268 (exit $ac_status); } && {
10269 test -z "$ac_c_werror_flag" ||
10270 test ! -s conftest.err
10271 } && test -s conftest$ac_exeext &&
10272 $as_test_x conftest$ac_exeext; then
10273 :
10274 else
10275 echo "$as_me: failed program was:" >&5
10276 sed 's/^/| /' conftest.$ac_ext >&5
10277
10278 gdb_cv_bigtoc=
10279 fi
10280
10281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10282 conftest$ac_exeext conftest.$ac_ext
10283
10284 fi
10285 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10286 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10287 ;;
10288 esac
10289
10290 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10291 # used for the tests that follow. We set them back to REAL_CFLAGS and
10292 # REAL_CPPFLAGS later on.
10293
10294 REAL_CPPFLAGS="$CPPFLAGS"
10295
10296 if test "${HAVE_X11}" = "yes"; then
10297 DEFS="$C_SWITCH_X_SITE $DEFS"
10298 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10299 LIBS="$LIBX $LIBS"
10300 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10301 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10302
10303 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10304 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10305 # but it's more convenient here to set LD_RUN_PATH
10306 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10307 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10308 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10309 export LD_RUN_PATH
10310 fi
10311
10312 if test "${opsys}" = "gnu-linux"; then
10313 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10314 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10315 cat >conftest.$ac_ext <<_ACEOF
10316 /* confdefs.h. */
10317 _ACEOF
10318 cat confdefs.h >>conftest.$ac_ext
10319 cat >>conftest.$ac_ext <<_ACEOF
10320 /* end confdefs.h. */
10321
10322 int
10323 main ()
10324 {
10325 XOpenDisplay ("foo");
10326 ;
10327 return 0;
10328 }
10329 _ACEOF
10330 rm -f conftest.$ac_objext conftest$ac_exeext
10331 if { (ac_try="$ac_link"
10332 case "(($ac_try" in
10333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10334 *) ac_try_echo=$ac_try;;
10335 esac
10336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10337 (eval "$ac_link") 2>conftest.er1
10338 ac_status=$?
10339 grep -v '^ *+' conftest.er1 >conftest.err
10340 rm -f conftest.er1
10341 cat conftest.err >&5
10342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10343 (exit $ac_status); } && {
10344 test -z "$ac_c_werror_flag" ||
10345 test ! -s conftest.err
10346 } && test -s conftest$ac_exeext &&
10347 $as_test_x conftest$ac_exeext; then
10348 xlinux_first_failure=no
10349 else
10350 echo "$as_me: failed program was:" >&5
10351 sed 's/^/| /' conftest.$ac_ext >&5
10352
10353 xlinux_first_failure=yes
10354 fi
10355
10356 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10357 conftest$ac_exeext conftest.$ac_ext
10358 if test "${xlinux_first_failure}" = "yes"; then
10359 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10360 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10361 OLD_CPPFLAGS="$CPPFLAGS"
10362 OLD_LIBS="$LIBS"
10363 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10364 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10365 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10366 LIBS="$LIBS -b i486-linuxaout"
10367 cat >conftest.$ac_ext <<_ACEOF
10368 /* confdefs.h. */
10369 _ACEOF
10370 cat confdefs.h >>conftest.$ac_ext
10371 cat >>conftest.$ac_ext <<_ACEOF
10372 /* end confdefs.h. */
10373
10374 int
10375 main ()
10376 {
10377 XOpenDisplay ("foo");
10378 ;
10379 return 0;
10380 }
10381 _ACEOF
10382 rm -f conftest.$ac_objext conftest$ac_exeext
10383 if { (ac_try="$ac_link"
10384 case "(($ac_try" in
10385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10386 *) ac_try_echo=$ac_try;;
10387 esac
10388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10389 (eval "$ac_link") 2>conftest.er1
10390 ac_status=$?
10391 grep -v '^ *+' conftest.er1 >conftest.err
10392 rm -f conftest.er1
10393 cat conftest.err >&5
10394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10395 (exit $ac_status); } && {
10396 test -z "$ac_c_werror_flag" ||
10397 test ! -s conftest.err
10398 } && test -s conftest$ac_exeext &&
10399 $as_test_x conftest$ac_exeext; then
10400 xlinux_second_failure=no
10401 else
10402 echo "$as_me: failed program was:" >&5
10403 sed 's/^/| /' conftest.$ac_ext >&5
10404
10405 xlinux_second_failure=yes
10406 fi
10407
10408 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10409 conftest$ac_exeext conftest.$ac_ext
10410 if test "${xlinux_second_failure}" = "yes"; then
10411 # If we get the same failure with -b, there is no use adding -b.
10412 # So take it out. This plays safe.
10413 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10414 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10415 CPPFLAGS="$OLD_CPPFLAGS"
10416 LIBS="$OLD_LIBS"
10417 { echo "$as_me:$LINENO: result: no" >&5
10418 echo "${ECHO_T}no" >&6; }
10419 else
10420 { echo "$as_me:$LINENO: result: yes" >&5
10421 echo "${ECHO_T}yes" >&6; }
10422 fi
10423 else
10424 { echo "$as_me:$LINENO: result: no" >&5
10425 echo "${ECHO_T}no" >&6; }
10426 fi
10427 fi
10428
10429 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10430 # header files included from there.
10431 { echo "$as_me:$LINENO: checking for Xkb" >&5
10432 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10433 cat >conftest.$ac_ext <<_ACEOF
10434 /* confdefs.h. */
10435 _ACEOF
10436 cat confdefs.h >>conftest.$ac_ext
10437 cat >>conftest.$ac_ext <<_ACEOF
10438 /* end confdefs.h. */
10439 #include <X11/Xlib.h>
10440 #include <X11/XKBlib.h>
10441 int
10442 main ()
10443 {
10444 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10445 ;
10446 return 0;
10447 }
10448 _ACEOF
10449 rm -f conftest.$ac_objext conftest$ac_exeext
10450 if { (ac_try="$ac_link"
10451 case "(($ac_try" in
10452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10453 *) ac_try_echo=$ac_try;;
10454 esac
10455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10456 (eval "$ac_link") 2>conftest.er1
10457 ac_status=$?
10458 grep -v '^ *+' conftest.er1 >conftest.err
10459 rm -f conftest.er1
10460 cat conftest.err >&5
10461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10462 (exit $ac_status); } && {
10463 test -z "$ac_c_werror_flag" ||
10464 test ! -s conftest.err
10465 } && test -s conftest$ac_exeext &&
10466 $as_test_x conftest$ac_exeext; then
10467 emacs_xkb=yes
10468 else
10469 echo "$as_me: failed program was:" >&5
10470 sed 's/^/| /' conftest.$ac_ext >&5
10471
10472 emacs_xkb=no
10473 fi
10474
10475 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10476 conftest$ac_exeext conftest.$ac_ext
10477 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10478 echo "${ECHO_T}$emacs_xkb" >&6; }
10479 if test $emacs_xkb = yes; then
10480
10481 cat >>confdefs.h <<\_ACEOF
10482 #define HAVE_XKBGETKEYBOARD 1
10483 _ACEOF
10484
10485 fi
10486
10487
10488
10489
10490
10491 for ac_func in XrmSetDatabase XScreenResourceString \
10492 XScreenNumberOfScreen XSetWMProtocols
10493 do
10494 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10495 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10496 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10497 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10498 echo $ECHO_N "(cached) $ECHO_C" >&6
10499 else
10500 cat >conftest.$ac_ext <<_ACEOF
10501 /* confdefs.h. */
10502 _ACEOF
10503 cat confdefs.h >>conftest.$ac_ext
10504 cat >>conftest.$ac_ext <<_ACEOF
10505 /* end confdefs.h. */
10506 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10507 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10508 #define $ac_func innocuous_$ac_func
10509
10510 /* System header to define __stub macros and hopefully few prototypes,
10511 which can conflict with char $ac_func (); below.
10512 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10513 <limits.h> exists even on freestanding compilers. */
10514
10515 #ifdef __STDC__
10516 # include <limits.h>
10517 #else
10518 # include <assert.h>
10519 #endif
10520
10521 #undef $ac_func
10522
10523 /* Override any GCC internal prototype to avoid an error.
10524 Use char because int might match the return type of a GCC
10525 builtin and then its argument prototype would still apply. */
10526 #ifdef __cplusplus
10527 extern "C"
10528 #endif
10529 char $ac_func ();
10530 /* The GNU C library defines this for functions which it implements
10531 to always fail with ENOSYS. Some functions are actually named
10532 something starting with __ and the normal name is an alias. */
10533 #if defined __stub_$ac_func || defined __stub___$ac_func
10534 choke me
10535 #endif
10536
10537 int
10538 main ()
10539 {
10540 return $ac_func ();
10541 ;
10542 return 0;
10543 }
10544 _ACEOF
10545 rm -f conftest.$ac_objext conftest$ac_exeext
10546 if { (ac_try="$ac_link"
10547 case "(($ac_try" in
10548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10549 *) ac_try_echo=$ac_try;;
10550 esac
10551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10552 (eval "$ac_link") 2>conftest.er1
10553 ac_status=$?
10554 grep -v '^ *+' conftest.er1 >conftest.err
10555 rm -f conftest.er1
10556 cat conftest.err >&5
10557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10558 (exit $ac_status); } && {
10559 test -z "$ac_c_werror_flag" ||
10560 test ! -s conftest.err
10561 } && test -s conftest$ac_exeext &&
10562 $as_test_x conftest$ac_exeext; then
10563 eval "$as_ac_var=yes"
10564 else
10565 echo "$as_me: failed program was:" >&5
10566 sed 's/^/| /' conftest.$ac_ext >&5
10567
10568 eval "$as_ac_var=no"
10569 fi
10570
10571 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10572 conftest$ac_exeext conftest.$ac_ext
10573 fi
10574 ac_res=`eval echo '${'$as_ac_var'}'`
10575 { echo "$as_me:$LINENO: result: $ac_res" >&5
10576 echo "${ECHO_T}$ac_res" >&6; }
10577 if test `eval echo '${'$as_ac_var'}'` = yes; then
10578 cat >>confdefs.h <<_ACEOF
10579 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10580 _ACEOF
10581
10582 fi
10583 done
10584
10585 fi
10586
10587 if test "${window_system}" = "x11"; then
10588 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10589 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10590 if test "${emacs_cv_x11_version_6+set}" = set; then
10591 echo $ECHO_N "(cached) $ECHO_C" >&6
10592 else
10593 cat >conftest.$ac_ext <<_ACEOF
10594 /* confdefs.h. */
10595 _ACEOF
10596 cat confdefs.h >>conftest.$ac_ext
10597 cat >>conftest.$ac_ext <<_ACEOF
10598 /* end confdefs.h. */
10599 #include <X11/Xlib.h>
10600 int
10601 main ()
10602 {
10603 #if XlibSpecificationRelease < 6
10604 fail;
10605 #endif
10606
10607 ;
10608 return 0;
10609 }
10610 _ACEOF
10611 rm -f conftest.$ac_objext conftest$ac_exeext
10612 if { (ac_try="$ac_link"
10613 case "(($ac_try" in
10614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10615 *) ac_try_echo=$ac_try;;
10616 esac
10617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10618 (eval "$ac_link") 2>conftest.er1
10619 ac_status=$?
10620 grep -v '^ *+' conftest.er1 >conftest.err
10621 rm -f conftest.er1
10622 cat conftest.err >&5
10623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10624 (exit $ac_status); } && {
10625 test -z "$ac_c_werror_flag" ||
10626 test ! -s conftest.err
10627 } && test -s conftest$ac_exeext &&
10628 $as_test_x conftest$ac_exeext; then
10629 emacs_cv_x11_version_6=yes
10630 else
10631 echo "$as_me: failed program was:" >&5
10632 sed 's/^/| /' conftest.$ac_ext >&5
10633
10634 emacs_cv_x11_version_6=no
10635 fi
10636
10637 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10638 conftest$ac_exeext conftest.$ac_ext
10639 fi
10640
10641 if test $emacs_cv_x11_version_6 = yes; then
10642 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10643 echo "${ECHO_T}6 or newer" >&6; }
10644
10645 cat >>confdefs.h <<\_ACEOF
10646 #define HAVE_X11R6 1
10647 _ACEOF
10648
10649 else
10650 { echo "$as_me:$LINENO: result: before 6" >&5
10651 echo "${ECHO_T}before 6" >&6; }
10652 fi
10653 fi
10654
10655
10656 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
10657 HAVE_RSVG=no
10658 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
10659 if test "${with_rsvg}" != "no"; then
10660 RSVG_REQUIRED=2.0.0
10661 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
10662
10663
10664 succeeded=no
10665
10666 # Extract the first word of "pkg-config", so it can be a program name with args.
10667 set dummy pkg-config; ac_word=$2
10668 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10669 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10670 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10671 echo $ECHO_N "(cached) $ECHO_C" >&6
10672 else
10673 case $PKG_CONFIG in
10674 [\\/]* | ?:[\\/]*)
10675 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10676 ;;
10677 *)
10678 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10679 for as_dir in $PATH
10680 do
10681 IFS=$as_save_IFS
10682 test -z "$as_dir" && as_dir=.
10683 for ac_exec_ext in '' $ac_executable_extensions; do
10684 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10685 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10686 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10687 break 2
10688 fi
10689 done
10690 done
10691 IFS=$as_save_IFS
10692
10693 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10694 ;;
10695 esac
10696 fi
10697 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10698 if test -n "$PKG_CONFIG"; then
10699 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10700 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10701 else
10702 { echo "$as_me:$LINENO: result: no" >&5
10703 echo "${ECHO_T}no" >&6; }
10704 fi
10705
10706
10707
10708 if test "$PKG_CONFIG" = "no" ; then
10709 :
10710 else
10711 PKG_CONFIG_MIN_VERSION=0.9.0
10712 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10713 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
10714 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
10715
10716 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
10717 { echo "$as_me:$LINENO: result: yes" >&5
10718 echo "${ECHO_T}yes" >&6; }
10719 succeeded=yes
10720
10721 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
10722 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
10723 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10724 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
10725 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
10726
10727 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
10728 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
10729 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
10730 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
10731 echo "${ECHO_T}$RSVG_LIBS" >&6; }
10732 else
10733 { echo "$as_me:$LINENO: result: no" >&5
10734 echo "${ECHO_T}no" >&6; }
10735 RSVG_CFLAGS=""
10736 RSVG_LIBS=""
10737 ## If we have a custom action on failure, don't print errors, but
10738 ## do set a variable so people can do so.
10739 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
10740
10741 fi
10742
10743
10744
10745 else
10746 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10747 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10748 fi
10749 fi
10750
10751 if test $succeeded = yes; then
10752 :
10753 else
10754 :
10755 fi
10756
10757
10758
10759
10760 if test ".${RSVG_CFLAGS}" != "."; then
10761 HAVE_RSVG=yes
10762
10763 cat >>confdefs.h <<\_ACEOF
10764 #define HAVE_RSVG 1
10765 _ACEOF
10766
10767 CFLAGS="$CFLAGS $RSVG_CFLAGS"
10768 LIBS="$RSVG_LIBS $LIBS"
10769 fi
10770 fi
10771 fi
10772
10773
10774 HAVE_GTK=no
10775 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10776 USE_X_TOOLKIT=none
10777 fi
10778 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
10779 test "$USE_X_TOOLKIT" = "maybe"; then
10780 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10781 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10782 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10783 { (exit 1); exit 1; }; };
10784 fi
10785 GLIB_REQUIRED=2.6
10786 GTK_REQUIRED=2.6
10787 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10788
10789
10790 succeeded=no
10791
10792 # Extract the first word of "pkg-config", so it can be a program name with args.
10793 set dummy pkg-config; ac_word=$2
10794 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10795 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10796 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10797 echo $ECHO_N "(cached) $ECHO_C" >&6
10798 else
10799 case $PKG_CONFIG in
10800 [\\/]* | ?:[\\/]*)
10801 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10802 ;;
10803 *)
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 for as_dir in $PATH
10806 do
10807 IFS=$as_save_IFS
10808 test -z "$as_dir" && as_dir=.
10809 for ac_exec_ext in '' $ac_executable_extensions; do
10810 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10811 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10812 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10813 break 2
10814 fi
10815 done
10816 done
10817 IFS=$as_save_IFS
10818
10819 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10820 ;;
10821 esac
10822 fi
10823 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10824 if test -n "$PKG_CONFIG"; then
10825 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10826 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10827 else
10828 { echo "$as_me:$LINENO: result: no" >&5
10829 echo "${ECHO_T}no" >&6; }
10830 fi
10831
10832
10833
10834 if test "$PKG_CONFIG" = "no" ; then
10835 pkg_check_gtk=no
10836 else
10837 PKG_CONFIG_MIN_VERSION=0.9.0
10838 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10839 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10840 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10841
10842 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10843 { echo "$as_me:$LINENO: result: yes" >&5
10844 echo "${ECHO_T}yes" >&6; }
10845 succeeded=yes
10846
10847 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10848 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10849 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10850 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10851 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10852
10853 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10854 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10855 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10856 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10857 echo "${ECHO_T}$GTK_LIBS" >&6; }
10858 else
10859 { echo "$as_me:$LINENO: result: no" >&5
10860 echo "${ECHO_T}no" >&6; }
10861 GTK_CFLAGS=""
10862 GTK_LIBS=""
10863 ## If we have a custom action on failure, don't print errors, but
10864 ## do set a variable so people can do so.
10865 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10866
10867 fi
10868
10869
10870
10871 else
10872 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10873 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10874 fi
10875 fi
10876
10877 if test $succeeded = yes; then
10878 pkg_check_gtk=yes
10879 else
10880 pkg_check_gtk=no
10881 fi
10882
10883 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
10884 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
10885 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
10886 { (exit 1); exit 1; }; }
10887 fi
10888 fi
10889
10890
10891 if test x"$pkg_check_gtk" = xyes; then
10892
10893
10894
10895 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10896 CFLAGS="$CFLAGS $GTK_CFLAGS"
10897 LIBS="$GTK_LIBS $LIBS"
10898 GTK_COMPILES=no
10899
10900 for ac_func in gtk_main
10901 do
10902 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10903 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10904 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10905 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10906 echo $ECHO_N "(cached) $ECHO_C" >&6
10907 else
10908 cat >conftest.$ac_ext <<_ACEOF
10909 /* confdefs.h. */
10910 _ACEOF
10911 cat confdefs.h >>conftest.$ac_ext
10912 cat >>conftest.$ac_ext <<_ACEOF
10913 /* end confdefs.h. */
10914 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10915 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10916 #define $ac_func innocuous_$ac_func
10917
10918 /* System header to define __stub macros and hopefully few prototypes,
10919 which can conflict with char $ac_func (); below.
10920 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10921 <limits.h> exists even on freestanding compilers. */
10922
10923 #ifdef __STDC__
10924 # include <limits.h>
10925 #else
10926 # include <assert.h>
10927 #endif
10928
10929 #undef $ac_func
10930
10931 /* Override any GCC internal prototype to avoid an error.
10932 Use char because int might match the return type of a GCC
10933 builtin and then its argument prototype would still apply. */
10934 #ifdef __cplusplus
10935 extern "C"
10936 #endif
10937 char $ac_func ();
10938 /* The GNU C library defines this for functions which it implements
10939 to always fail with ENOSYS. Some functions are actually named
10940 something starting with __ and the normal name is an alias. */
10941 #if defined __stub_$ac_func || defined __stub___$ac_func
10942 choke me
10943 #endif
10944
10945 int
10946 main ()
10947 {
10948 return $ac_func ();
10949 ;
10950 return 0;
10951 }
10952 _ACEOF
10953 rm -f conftest.$ac_objext conftest$ac_exeext
10954 if { (ac_try="$ac_link"
10955 case "(($ac_try" in
10956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10957 *) ac_try_echo=$ac_try;;
10958 esac
10959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10960 (eval "$ac_link") 2>conftest.er1
10961 ac_status=$?
10962 grep -v '^ *+' conftest.er1 >conftest.err
10963 rm -f conftest.er1
10964 cat conftest.err >&5
10965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10966 (exit $ac_status); } && {
10967 test -z "$ac_c_werror_flag" ||
10968 test ! -s conftest.err
10969 } && test -s conftest$ac_exeext &&
10970 $as_test_x conftest$ac_exeext; then
10971 eval "$as_ac_var=yes"
10972 else
10973 echo "$as_me: failed program was:" >&5
10974 sed 's/^/| /' conftest.$ac_ext >&5
10975
10976 eval "$as_ac_var=no"
10977 fi
10978
10979 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10980 conftest$ac_exeext conftest.$ac_ext
10981 fi
10982 ac_res=`eval echo '${'$as_ac_var'}'`
10983 { echo "$as_me:$LINENO: result: $ac_res" >&5
10984 echo "${ECHO_T}$ac_res" >&6; }
10985 if test `eval echo '${'$as_ac_var'}'` = yes; then
10986 cat >>confdefs.h <<_ACEOF
10987 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 _ACEOF
10989 GTK_COMPILES=yes
10990 fi
10991 done
10992
10993 if test "${GTK_COMPILES}" != "yes"; then
10994 if test "$USE_X_TOOLKIT" != "maybe"; then
10995 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
10996 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
10997 { (exit 1); exit 1; }; };
10998 fi
10999 else
11000 HAVE_GTK=yes
11001
11002 cat >>confdefs.h <<\_ACEOF
11003 #define HAVE_GTK 1
11004 _ACEOF
11005
11006 USE_X_TOOLKIT=none
11007 fi
11008
11009 fi
11010
11011
11012 if test "${HAVE_GTK}" = "yes"; then
11013
11014 if test "$with_toolkit_scroll_bars" != no; then
11015 with_toolkit_scroll_bars=yes
11016 fi
11017
11018 HAVE_GTK_MULTIDISPLAY=no
11019
11020 for ac_func in gdk_display_open
11021 do
11022 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11023 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11024 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11025 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11026 echo $ECHO_N "(cached) $ECHO_C" >&6
11027 else
11028 cat >conftest.$ac_ext <<_ACEOF
11029 /* confdefs.h. */
11030 _ACEOF
11031 cat confdefs.h >>conftest.$ac_ext
11032 cat >>conftest.$ac_ext <<_ACEOF
11033 /* end confdefs.h. */
11034 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11035 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11036 #define $ac_func innocuous_$ac_func
11037
11038 /* System header to define __stub macros and hopefully few prototypes,
11039 which can conflict with char $ac_func (); below.
11040 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11041 <limits.h> exists even on freestanding compilers. */
11042
11043 #ifdef __STDC__
11044 # include <limits.h>
11045 #else
11046 # include <assert.h>
11047 #endif
11048
11049 #undef $ac_func
11050
11051 /* Override any GCC internal prototype to avoid an error.
11052 Use char because int might match the return type of a GCC
11053 builtin and then its argument prototype would still apply. */
11054 #ifdef __cplusplus
11055 extern "C"
11056 #endif
11057 char $ac_func ();
11058 /* The GNU C library defines this for functions which it implements
11059 to always fail with ENOSYS. Some functions are actually named
11060 something starting with __ and the normal name is an alias. */
11061 #if defined __stub_$ac_func || defined __stub___$ac_func
11062 choke me
11063 #endif
11064
11065 int
11066 main ()
11067 {
11068 return $ac_func ();
11069 ;
11070 return 0;
11071 }
11072 _ACEOF
11073 rm -f conftest.$ac_objext conftest$ac_exeext
11074 if { (ac_try="$ac_link"
11075 case "(($ac_try" in
11076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11077 *) ac_try_echo=$ac_try;;
11078 esac
11079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11080 (eval "$ac_link") 2>conftest.er1
11081 ac_status=$?
11082 grep -v '^ *+' conftest.er1 >conftest.err
11083 rm -f conftest.er1
11084 cat conftest.err >&5
11085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11086 (exit $ac_status); } && {
11087 test -z "$ac_c_werror_flag" ||
11088 test ! -s conftest.err
11089 } && test -s conftest$ac_exeext &&
11090 $as_test_x conftest$ac_exeext; then
11091 eval "$as_ac_var=yes"
11092 else
11093 echo "$as_me: failed program was:" >&5
11094 sed 's/^/| /' conftest.$ac_ext >&5
11095
11096 eval "$as_ac_var=no"
11097 fi
11098
11099 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11100 conftest$ac_exeext conftest.$ac_ext
11101 fi
11102 ac_res=`eval echo '${'$as_ac_var'}'`
11103 { echo "$as_me:$LINENO: result: $ac_res" >&5
11104 echo "${ECHO_T}$ac_res" >&6; }
11105 if test `eval echo '${'$as_ac_var'}'` = yes; then
11106 cat >>confdefs.h <<_ACEOF
11107 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11108 _ACEOF
11109 HAVE_GTK_MULTIDISPLAY=yes
11110 fi
11111 done
11112
11113 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11114
11115 cat >>confdefs.h <<\_ACEOF
11116 #define HAVE_GTK_MULTIDISPLAY 1
11117 _ACEOF
11118
11119 fi
11120
11121 HAVE_GTK_FILE_SELECTION=no
11122
11123 for ac_func in gtk_file_selection_new
11124 do
11125 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11126 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11127 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11128 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11129 echo $ECHO_N "(cached) $ECHO_C" >&6
11130 else
11131 cat >conftest.$ac_ext <<_ACEOF
11132 /* confdefs.h. */
11133 _ACEOF
11134 cat confdefs.h >>conftest.$ac_ext
11135 cat >>conftest.$ac_ext <<_ACEOF
11136 /* end confdefs.h. */
11137 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11138 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11139 #define $ac_func innocuous_$ac_func
11140
11141 /* System header to define __stub macros and hopefully few prototypes,
11142 which can conflict with char $ac_func (); below.
11143 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11144 <limits.h> exists even on freestanding compilers. */
11145
11146 #ifdef __STDC__
11147 # include <limits.h>
11148 #else
11149 # include <assert.h>
11150 #endif
11151
11152 #undef $ac_func
11153
11154 /* Override any GCC internal prototype to avoid an error.
11155 Use char because int might match the return type of a GCC
11156 builtin and then its argument prototype would still apply. */
11157 #ifdef __cplusplus
11158 extern "C"
11159 #endif
11160 char $ac_func ();
11161 /* The GNU C library defines this for functions which it implements
11162 to always fail with ENOSYS. Some functions are actually named
11163 something starting with __ and the normal name is an alias. */
11164 #if defined __stub_$ac_func || defined __stub___$ac_func
11165 choke me
11166 #endif
11167
11168 int
11169 main ()
11170 {
11171 return $ac_func ();
11172 ;
11173 return 0;
11174 }
11175 _ACEOF
11176 rm -f conftest.$ac_objext conftest$ac_exeext
11177 if { (ac_try="$ac_link"
11178 case "(($ac_try" in
11179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11180 *) ac_try_echo=$ac_try;;
11181 esac
11182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11183 (eval "$ac_link") 2>conftest.er1
11184 ac_status=$?
11185 grep -v '^ *+' conftest.er1 >conftest.err
11186 rm -f conftest.er1
11187 cat conftest.err >&5
11188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11189 (exit $ac_status); } && {
11190 test -z "$ac_c_werror_flag" ||
11191 test ! -s conftest.err
11192 } && test -s conftest$ac_exeext &&
11193 $as_test_x conftest$ac_exeext; then
11194 eval "$as_ac_var=yes"
11195 else
11196 echo "$as_me: failed program was:" >&5
11197 sed 's/^/| /' conftest.$ac_ext >&5
11198
11199 eval "$as_ac_var=no"
11200 fi
11201
11202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11203 conftest$ac_exeext conftest.$ac_ext
11204 fi
11205 ac_res=`eval echo '${'$as_ac_var'}'`
11206 { echo "$as_me:$LINENO: result: $ac_res" >&5
11207 echo "${ECHO_T}$ac_res" >&6; }
11208 if test `eval echo '${'$as_ac_var'}'` = yes; then
11209 cat >>confdefs.h <<_ACEOF
11210 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11211 _ACEOF
11212 HAVE_GTK_FILE_SELECTION=yes
11213 fi
11214 done
11215
11216
11217 HAVE_GTK_FILE_CHOOSER=no
11218
11219 for ac_func in gtk_file_chooser_dialog_new
11220 do
11221 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11222 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11223 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11224 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11225 echo $ECHO_N "(cached) $ECHO_C" >&6
11226 else
11227 cat >conftest.$ac_ext <<_ACEOF
11228 /* confdefs.h. */
11229 _ACEOF
11230 cat confdefs.h >>conftest.$ac_ext
11231 cat >>conftest.$ac_ext <<_ACEOF
11232 /* end confdefs.h. */
11233 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11234 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11235 #define $ac_func innocuous_$ac_func
11236
11237 /* System header to define __stub macros and hopefully few prototypes,
11238 which can conflict with char $ac_func (); below.
11239 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11240 <limits.h> exists even on freestanding compilers. */
11241
11242 #ifdef __STDC__
11243 # include <limits.h>
11244 #else
11245 # include <assert.h>
11246 #endif
11247
11248 #undef $ac_func
11249
11250 /* Override any GCC internal prototype to avoid an error.
11251 Use char because int might match the return type of a GCC
11252 builtin and then its argument prototype would still apply. */
11253 #ifdef __cplusplus
11254 extern "C"
11255 #endif
11256 char $ac_func ();
11257 /* The GNU C library defines this for functions which it implements
11258 to always fail with ENOSYS. Some functions are actually named
11259 something starting with __ and the normal name is an alias. */
11260 #if defined __stub_$ac_func || defined __stub___$ac_func
11261 choke me
11262 #endif
11263
11264 int
11265 main ()
11266 {
11267 return $ac_func ();
11268 ;
11269 return 0;
11270 }
11271 _ACEOF
11272 rm -f conftest.$ac_objext conftest$ac_exeext
11273 if { (ac_try="$ac_link"
11274 case "(($ac_try" in
11275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11276 *) ac_try_echo=$ac_try;;
11277 esac
11278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11279 (eval "$ac_link") 2>conftest.er1
11280 ac_status=$?
11281 grep -v '^ *+' conftest.er1 >conftest.err
11282 rm -f conftest.er1
11283 cat conftest.err >&5
11284 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11285 (exit $ac_status); } && {
11286 test -z "$ac_c_werror_flag" ||
11287 test ! -s conftest.err
11288 } && test -s conftest$ac_exeext &&
11289 $as_test_x conftest$ac_exeext; then
11290 eval "$as_ac_var=yes"
11291 else
11292 echo "$as_me: failed program was:" >&5
11293 sed 's/^/| /' conftest.$ac_ext >&5
11294
11295 eval "$as_ac_var=no"
11296 fi
11297
11298 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11299 conftest$ac_exeext conftest.$ac_ext
11300 fi
11301 ac_res=`eval echo '${'$as_ac_var'}'`
11302 { echo "$as_me:$LINENO: result: $ac_res" >&5
11303 echo "${ECHO_T}$ac_res" >&6; }
11304 if test `eval echo '${'$as_ac_var'}'` = yes; then
11305 cat >>confdefs.h <<_ACEOF
11306 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11307 _ACEOF
11308 HAVE_GTK_FILE_CHOOSER=yes
11309 fi
11310 done
11311
11312
11313 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11314 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11315
11316 cat >>confdefs.h <<\_ACEOF
11317 #define HAVE_GTK_FILE_BOTH 1
11318 _ACEOF
11319
11320 fi
11321
11322 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11323 HAVE_GTK_AND_PTHREAD=no
11324
11325 for ac_header in pthread.h
11326 do
11327 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11328 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11329 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11330 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11331 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11332 echo $ECHO_N "(cached) $ECHO_C" >&6
11333 fi
11334 ac_res=`eval echo '${'$as_ac_Header'}'`
11335 { echo "$as_me:$LINENO: result: $ac_res" >&5
11336 echo "${ECHO_T}$ac_res" >&6; }
11337 else
11338 # Is the header compilable?
11339 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11340 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11341 cat >conftest.$ac_ext <<_ACEOF
11342 /* confdefs.h. */
11343 _ACEOF
11344 cat confdefs.h >>conftest.$ac_ext
11345 cat >>conftest.$ac_ext <<_ACEOF
11346 /* end confdefs.h. */
11347 $ac_includes_default
11348 #include <$ac_header>
11349 _ACEOF
11350 rm -f conftest.$ac_objext
11351 if { (ac_try="$ac_compile"
11352 case "(($ac_try" in
11353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11354 *) ac_try_echo=$ac_try;;
11355 esac
11356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11357 (eval "$ac_compile") 2>conftest.er1
11358 ac_status=$?
11359 grep -v '^ *+' conftest.er1 >conftest.err
11360 rm -f conftest.er1
11361 cat conftest.err >&5
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); } && {
11364 test -z "$ac_c_werror_flag" ||
11365 test ! -s conftest.err
11366 } && test -s conftest.$ac_objext; then
11367 ac_header_compiler=yes
11368 else
11369 echo "$as_me: failed program was:" >&5
11370 sed 's/^/| /' conftest.$ac_ext >&5
11371
11372 ac_header_compiler=no
11373 fi
11374
11375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11377 echo "${ECHO_T}$ac_header_compiler" >&6; }
11378
11379 # Is the header present?
11380 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11381 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11382 cat >conftest.$ac_ext <<_ACEOF
11383 /* confdefs.h. */
11384 _ACEOF
11385 cat confdefs.h >>conftest.$ac_ext
11386 cat >>conftest.$ac_ext <<_ACEOF
11387 /* end confdefs.h. */
11388 #include <$ac_header>
11389 _ACEOF
11390 if { (ac_try="$ac_cpp conftest.$ac_ext"
11391 case "(($ac_try" in
11392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11393 *) ac_try_echo=$ac_try;;
11394 esac
11395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11397 ac_status=$?
11398 grep -v '^ *+' conftest.er1 >conftest.err
11399 rm -f conftest.er1
11400 cat conftest.err >&5
11401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11402 (exit $ac_status); } >/dev/null && {
11403 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11404 test ! -s conftest.err
11405 }; then
11406 ac_header_preproc=yes
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 ac_header_preproc=no
11412 fi
11413
11414 rm -f conftest.err conftest.$ac_ext
11415 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11416 echo "${ECHO_T}$ac_header_preproc" >&6; }
11417
11418 # So? What about this header?
11419 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11420 yes:no: )
11421 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11422 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11424 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11425 ac_header_preproc=yes
11426 ;;
11427 no:yes:* )
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11429 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11430 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11431 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11432 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11433 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11434 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11435 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11436 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11437 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11438 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11439 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11440
11441 ;;
11442 esac
11443 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11444 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11445 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11446 echo $ECHO_N "(cached) $ECHO_C" >&6
11447 else
11448 eval "$as_ac_Header=\$ac_header_preproc"
11449 fi
11450 ac_res=`eval echo '${'$as_ac_Header'}'`
11451 { echo "$as_me:$LINENO: result: $ac_res" >&5
11452 echo "${ECHO_T}$ac_res" >&6; }
11453
11454 fi
11455 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11456 cat >>confdefs.h <<_ACEOF
11457 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11458 _ACEOF
11459
11460 fi
11461
11462 done
11463
11464 if test "$ac_cv_header_pthread_h"; then
11465 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11466 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11467 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11468 echo $ECHO_N "(cached) $ECHO_C" >&6
11469 else
11470 ac_check_lib_save_LIBS=$LIBS
11471 LIBS="-lpthread $LIBS"
11472 cat >conftest.$ac_ext <<_ACEOF
11473 /* confdefs.h. */
11474 _ACEOF
11475 cat confdefs.h >>conftest.$ac_ext
11476 cat >>conftest.$ac_ext <<_ACEOF
11477 /* end confdefs.h. */
11478
11479 /* Override any GCC internal prototype to avoid an error.
11480 Use char because int might match the return type of a GCC
11481 builtin and then its argument prototype would still apply. */
11482 #ifdef __cplusplus
11483 extern "C"
11484 #endif
11485 char pthread_self ();
11486 int
11487 main ()
11488 {
11489 return pthread_self ();
11490 ;
11491 return 0;
11492 }
11493 _ACEOF
11494 rm -f conftest.$ac_objext conftest$ac_exeext
11495 if { (ac_try="$ac_link"
11496 case "(($ac_try" in
11497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11498 *) ac_try_echo=$ac_try;;
11499 esac
11500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11501 (eval "$ac_link") 2>conftest.er1
11502 ac_status=$?
11503 grep -v '^ *+' conftest.er1 >conftest.err
11504 rm -f conftest.er1
11505 cat conftest.err >&5
11506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11507 (exit $ac_status); } && {
11508 test -z "$ac_c_werror_flag" ||
11509 test ! -s conftest.err
11510 } && test -s conftest$ac_exeext &&
11511 $as_test_x conftest$ac_exeext; then
11512 ac_cv_lib_pthread_pthread_self=yes
11513 else
11514 echo "$as_me: failed program was:" >&5
11515 sed 's/^/| /' conftest.$ac_ext >&5
11516
11517 ac_cv_lib_pthread_pthread_self=no
11518 fi
11519
11520 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11521 conftest$ac_exeext conftest.$ac_ext
11522 LIBS=$ac_check_lib_save_LIBS
11523 fi
11524 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11525 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11526 if test $ac_cv_lib_pthread_pthread_self = yes; then
11527 HAVE_GTK_AND_PTHREAD=yes
11528 fi
11529
11530 fi
11531 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11532 case "${canonical}" in
11533 *-hpux*) ;;
11534 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11535 esac
11536
11537 cat >>confdefs.h <<\_ACEOF
11538 #define HAVE_GTK_AND_PTHREAD 1
11539 _ACEOF
11540
11541 fi
11542 fi
11543 fi
11544
11545 HAVE_DBUS=no
11546 if test "${with_dbus}" = "yes"; then
11547
11548 succeeded=no
11549
11550 # Extract the first word of "pkg-config", so it can be a program name with args.
11551 set dummy pkg-config; ac_word=$2
11552 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11553 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11554 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11555 echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557 case $PKG_CONFIG in
11558 [\\/]* | ?:[\\/]*)
11559 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11560 ;;
11561 *)
11562 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11563 for as_dir in $PATH
11564 do
11565 IFS=$as_save_IFS
11566 test -z "$as_dir" && as_dir=.
11567 for ac_exec_ext in '' $ac_executable_extensions; do
11568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11569 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11570 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11571 break 2
11572 fi
11573 done
11574 done
11575 IFS=$as_save_IFS
11576
11577 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11578 ;;
11579 esac
11580 fi
11581 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11582 if test -n "$PKG_CONFIG"; then
11583 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11584 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11585 else
11586 { echo "$as_me:$LINENO: result: no" >&5
11587 echo "${ECHO_T}no" >&6; }
11588 fi
11589
11590
11591
11592 if test "$PKG_CONFIG" = "no" ; then
11593 HAVE_DBUS=no
11594 else
11595 PKG_CONFIG_MIN_VERSION=0.9.0
11596 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11597 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
11598 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
11599
11600 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
11601 { echo "$as_me:$LINENO: result: yes" >&5
11602 echo "${ECHO_T}yes" >&6; }
11603 succeeded=yes
11604
11605 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
11606 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
11607 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11608 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
11609 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
11610
11611 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
11612 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
11613 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
11614 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
11615 echo "${ECHO_T}$DBUS_LIBS" >&6; }
11616 else
11617 { echo "$as_me:$LINENO: result: no" >&5
11618 echo "${ECHO_T}no" >&6; }
11619 DBUS_CFLAGS=""
11620 DBUS_LIBS=""
11621 ## If we have a custom action on failure, don't print errors, but
11622 ## do set a variable so people can do so.
11623 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
11624
11625 fi
11626
11627
11628
11629 else
11630 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11631 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11632 fi
11633 fi
11634
11635 if test $succeeded = yes; then
11636 HAVE_DBUS=yes
11637 else
11638 HAVE_DBUS=no
11639 fi
11640
11641 if test "$HAVE_DBUS" = yes; then
11642
11643 cat >>confdefs.h <<\_ACEOF
11644 #define HAVE_DBUS 1
11645 _ACEOF
11646
11647 fi
11648 fi
11649
11650 ### Link with -lXft if available to work around a bug.
11651 HAVE_XFT=maybe
11652 if test "${HAVE_GTK}" = "yes"; then
11653
11654 succeeded=no
11655
11656 # Extract the first word of "pkg-config", so it can be a program name with args.
11657 set dummy pkg-config; ac_word=$2
11658 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11659 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11660 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 case $PKG_CONFIG in
11664 [\\/]* | ?:[\\/]*)
11665 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11666 ;;
11667 *)
11668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11669 for as_dir in $PATH
11670 do
11671 IFS=$as_save_IFS
11672 test -z "$as_dir" && as_dir=.
11673 for ac_exec_ext in '' $ac_executable_extensions; do
11674 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11675 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11676 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11677 break 2
11678 fi
11679 done
11680 done
11681 IFS=$as_save_IFS
11682
11683 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11684 ;;
11685 esac
11686 fi
11687 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11688 if test -n "$PKG_CONFIG"; then
11689 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11690 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11691 else
11692 { echo "$as_me:$LINENO: result: no" >&5
11693 echo "${ECHO_T}no" >&6; }
11694 fi
11695
11696
11697
11698 if test "$PKG_CONFIG" = "no" ; then
11699 HAVE_XFT=no
11700 else
11701 PKG_CONFIG_MIN_VERSION=0.9.0
11702 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11703 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11704 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11705
11706 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11707 { echo "$as_me:$LINENO: result: yes" >&5
11708 echo "${ECHO_T}yes" >&6; }
11709 succeeded=yes
11710
11711 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11712 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11713 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11714 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11715 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11716
11717 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11718 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11719 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11720 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11721 echo "${ECHO_T}$XFT_LIBS" >&6; }
11722 else
11723 { echo "$as_me:$LINENO: result: no" >&5
11724 echo "${ECHO_T}no" >&6; }
11725 XFT_CFLAGS=""
11726 XFT_LIBS=""
11727 ## If we have a custom action on failure, don't print errors, but
11728 ## do set a variable so people can do so.
11729 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11730
11731 fi
11732
11733
11734
11735 else
11736 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11737 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11738 fi
11739 fi
11740
11741 if test $succeeded = yes; then
11742 :
11743 else
11744 HAVE_XFT=no
11745 fi
11746
11747 if test "$HAVE_XFT" != no; then
11748 OLD_CFLAGS="$CPPFLAGS"
11749 OLD_CPPFLAGS="$CFLAGS"
11750 OLD_LIBS="$LIBS"
11751 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11752 CFLAGS="$CFLAGS $XFT_CFLAGS"
11753 LIBS="$XFT_LIBS $LIBS"
11754 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11755 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11756 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11757 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11758 echo $ECHO_N "(cached) $ECHO_C" >&6
11759 fi
11760 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11761 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11762 else
11763 # Is the header compilable?
11764 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11765 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11766 cat >conftest.$ac_ext <<_ACEOF
11767 /* confdefs.h. */
11768 _ACEOF
11769 cat confdefs.h >>conftest.$ac_ext
11770 cat >>conftest.$ac_ext <<_ACEOF
11771 /* end confdefs.h. */
11772 $ac_includes_default
11773 #include <X11/Xft/Xft.h>
11774 _ACEOF
11775 rm -f conftest.$ac_objext
11776 if { (ac_try="$ac_compile"
11777 case "(($ac_try" in
11778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11779 *) ac_try_echo=$ac_try;;
11780 esac
11781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11782 (eval "$ac_compile") 2>conftest.er1
11783 ac_status=$?
11784 grep -v '^ *+' conftest.er1 >conftest.err
11785 rm -f conftest.er1
11786 cat conftest.err >&5
11787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11788 (exit $ac_status); } && {
11789 test -z "$ac_c_werror_flag" ||
11790 test ! -s conftest.err
11791 } && test -s conftest.$ac_objext; then
11792 ac_header_compiler=yes
11793 else
11794 echo "$as_me: failed program was:" >&5
11795 sed 's/^/| /' conftest.$ac_ext >&5
11796
11797 ac_header_compiler=no
11798 fi
11799
11800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11801 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11802 echo "${ECHO_T}$ac_header_compiler" >&6; }
11803
11804 # Is the header present?
11805 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11806 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11807 cat >conftest.$ac_ext <<_ACEOF
11808 /* confdefs.h. */
11809 _ACEOF
11810 cat confdefs.h >>conftest.$ac_ext
11811 cat >>conftest.$ac_ext <<_ACEOF
11812 /* end confdefs.h. */
11813 #include <X11/Xft/Xft.h>
11814 _ACEOF
11815 if { (ac_try="$ac_cpp conftest.$ac_ext"
11816 case "(($ac_try" in
11817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11818 *) ac_try_echo=$ac_try;;
11819 esac
11820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11821 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11822 ac_status=$?
11823 grep -v '^ *+' conftest.er1 >conftest.err
11824 rm -f conftest.er1
11825 cat conftest.err >&5
11826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11827 (exit $ac_status); } >/dev/null && {
11828 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11829 test ! -s conftest.err
11830 }; then
11831 ac_header_preproc=yes
11832 else
11833 echo "$as_me: failed program was:" >&5
11834 sed 's/^/| /' conftest.$ac_ext >&5
11835
11836 ac_header_preproc=no
11837 fi
11838
11839 rm -f conftest.err conftest.$ac_ext
11840 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11841 echo "${ECHO_T}$ac_header_preproc" >&6; }
11842
11843 # So? What about this header?
11844 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11845 yes:no: )
11846 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11847 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11849 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11850 ac_header_preproc=yes
11851 ;;
11852 no:yes:* )
11853 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11854 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11855 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11856 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11858 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11859 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11860 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11861 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11862 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11863 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11864 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11865
11866 ;;
11867 esac
11868 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11869 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11870 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11871 echo $ECHO_N "(cached) $ECHO_C" >&6
11872 else
11873 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11874 fi
11875 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11876 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11877
11878 fi
11879 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11880 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11881 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11882 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11883 echo $ECHO_N "(cached) $ECHO_C" >&6
11884 else
11885 ac_check_lib_save_LIBS=$LIBS
11886 LIBS="-lXft $XFT_LIBS $LIBS"
11887 cat >conftest.$ac_ext <<_ACEOF
11888 /* confdefs.h. */
11889 _ACEOF
11890 cat confdefs.h >>conftest.$ac_ext
11891 cat >>conftest.$ac_ext <<_ACEOF
11892 /* end confdefs.h. */
11893
11894 /* Override any GCC internal prototype to avoid an error.
11895 Use char because int might match the return type of a GCC
11896 builtin and then its argument prototype would still apply. */
11897 #ifdef __cplusplus
11898 extern "C"
11899 #endif
11900 char XftFontOpen ();
11901 int
11902 main ()
11903 {
11904 return XftFontOpen ();
11905 ;
11906 return 0;
11907 }
11908 _ACEOF
11909 rm -f conftest.$ac_objext conftest$ac_exeext
11910 if { (ac_try="$ac_link"
11911 case "(($ac_try" in
11912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11913 *) ac_try_echo=$ac_try;;
11914 esac
11915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11916 (eval "$ac_link") 2>conftest.er1
11917 ac_status=$?
11918 grep -v '^ *+' conftest.er1 >conftest.err
11919 rm -f conftest.er1
11920 cat conftest.err >&5
11921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11922 (exit $ac_status); } && {
11923 test -z "$ac_c_werror_flag" ||
11924 test ! -s conftest.err
11925 } && test -s conftest$ac_exeext &&
11926 $as_test_x conftest$ac_exeext; then
11927 ac_cv_lib_Xft_XftFontOpen=yes
11928 else
11929 echo "$as_me: failed program was:" >&5
11930 sed 's/^/| /' conftest.$ac_ext >&5
11931
11932 ac_cv_lib_Xft_XftFontOpen=no
11933 fi
11934
11935 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11936 conftest$ac_exeext conftest.$ac_ext
11937 LIBS=$ac_check_lib_save_LIBS
11938 fi
11939 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11940 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11941 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11942 HAVE_XFT=yes
11943 fi
11944
11945 fi
11946
11947
11948
11949 if test "${HAVE_XFT}" = "yes"; then
11950
11951 cat >>confdefs.h <<\_ACEOF
11952 #define HAVE_XFT 1
11953 _ACEOF
11954
11955
11956 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11957 else
11958 CFLAGS="$OLD_CPPFLAGS"
11959 CFLAGS="$OLD_CFLAGS"
11960 LIBS="$OLD_LIBS"
11961 fi
11962 fi
11963 fi
11964
11965 HAVE_XAW3D=no
11966 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
11967 if test "$with_xaw3d" != no; then
11968 { echo "$as_me:$LINENO: checking for xaw3d" >&5
11969 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
11970 if test "${emacs_cv_xaw3d+set}" = set; then
11971 echo $ECHO_N "(cached) $ECHO_C" >&6
11972 else
11973 cat >conftest.$ac_ext <<_ACEOF
11974 /* confdefs.h. */
11975 _ACEOF
11976 cat confdefs.h >>conftest.$ac_ext
11977 cat >>conftest.$ac_ext <<_ACEOF
11978 /* end confdefs.h. */
11979
11980 #include <X11/Intrinsic.h>
11981 #include <X11/Xaw3d/Simple.h>
11982 int
11983 main ()
11984 {
11985
11986 ;
11987 return 0;
11988 }
11989 _ACEOF
11990 rm -f conftest.$ac_objext conftest$ac_exeext
11991 if { (ac_try="$ac_link"
11992 case "(($ac_try" in
11993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994 *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997 (eval "$ac_link") 2>conftest.er1
11998 ac_status=$?
11999 grep -v '^ *+' conftest.er1 >conftest.err
12000 rm -f conftest.er1
12001 cat conftest.err >&5
12002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12003 (exit $ac_status); } && {
12004 test -z "$ac_c_werror_flag" ||
12005 test ! -s conftest.err
12006 } && test -s conftest$ac_exeext &&
12007 $as_test_x conftest$ac_exeext; then
12008 emacs_cv_xaw3d=yes
12009 else
12010 echo "$as_me: failed program was:" >&5
12011 sed 's/^/| /' conftest.$ac_ext >&5
12012
12013 emacs_cv_xaw3d=no
12014 fi
12015
12016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12017 conftest$ac_exeext conftest.$ac_ext
12018 fi
12019
12020 else
12021 emacs_cv_xaw3d=no
12022 fi
12023 if test $emacs_cv_xaw3d = yes; then
12024 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12025 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12026 USE_X_TOOLKIT=LUCID
12027 HAVE_XAW3D=yes
12028
12029 cat >>confdefs.h <<\_ACEOF
12030 #define HAVE_XAW3D 1
12031 _ACEOF
12032
12033 else
12034 { echo "$as_me:$LINENO: result: no" >&5
12035 echo "${ECHO_T}no" >&6; }
12036 { echo "$as_me:$LINENO: checking for libXaw" >&5
12037 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12038 if test "${emacs_cv_xaw+set}" = set; then
12039 echo $ECHO_N "(cached) $ECHO_C" >&6
12040 else
12041 cat >conftest.$ac_ext <<_ACEOF
12042 /* confdefs.h. */
12043 _ACEOF
12044 cat confdefs.h >>conftest.$ac_ext
12045 cat >>conftest.$ac_ext <<_ACEOF
12046 /* end confdefs.h. */
12047
12048 #include <X11/Intrinsic.h>
12049 #include <X11/Xaw/Simple.h>
12050 int
12051 main ()
12052 {
12053
12054 ;
12055 return 0;
12056 }
12057 _ACEOF
12058 rm -f conftest.$ac_objext conftest$ac_exeext
12059 if { (ac_try="$ac_link"
12060 case "(($ac_try" in
12061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12062 *) ac_try_echo=$ac_try;;
12063 esac
12064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12065 (eval "$ac_link") 2>conftest.er1
12066 ac_status=$?
12067 grep -v '^ *+' conftest.er1 >conftest.err
12068 rm -f conftest.er1
12069 cat conftest.err >&5
12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12071 (exit $ac_status); } && {
12072 test -z "$ac_c_werror_flag" ||
12073 test ! -s conftest.err
12074 } && test -s conftest$ac_exeext &&
12075 $as_test_x conftest$ac_exeext; then
12076 emacs_cv_xaw=yes
12077 else
12078 echo "$as_me: failed program was:" >&5
12079 sed 's/^/| /' conftest.$ac_ext >&5
12080
12081 emacs_cv_xaw=no
12082 fi
12083
12084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12085 conftest$ac_exeext conftest.$ac_ext
12086 fi
12087
12088 if test $emacs_cv_xaw = yes; then
12089 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12090 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12091 USE_X_TOOLKIT=LUCID
12092 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12093 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12094 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12095 { (exit 1); exit 1; }; }
12096 else
12097 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12098 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12099 USE_X_TOOLKIT=none
12100 fi
12101 fi
12102 fi
12103
12104 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12105
12106 if test "${USE_X_TOOLKIT}" != "none"; then
12107 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12108 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12109 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12110 echo $ECHO_N "(cached) $ECHO_C" >&6
12111 else
12112 cat >conftest.$ac_ext <<_ACEOF
12113 /* confdefs.h. */
12114 _ACEOF
12115 cat confdefs.h >>conftest.$ac_ext
12116 cat >>conftest.$ac_ext <<_ACEOF
12117 /* end confdefs.h. */
12118 #include <X11/Intrinsic.h>
12119 int
12120 main ()
12121 {
12122 #if XtSpecificationRelease < 6
12123 fail;
12124 #endif
12125
12126 ;
12127 return 0;
12128 }
12129 _ACEOF
12130 rm -f conftest.$ac_objext conftest$ac_exeext
12131 if { (ac_try="$ac_link"
12132 case "(($ac_try" in
12133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12134 *) ac_try_echo=$ac_try;;
12135 esac
12136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12137 (eval "$ac_link") 2>conftest.er1
12138 ac_status=$?
12139 grep -v '^ *+' conftest.er1 >conftest.err
12140 rm -f conftest.er1
12141 cat conftest.err >&5
12142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12143 (exit $ac_status); } && {
12144 test -z "$ac_c_werror_flag" ||
12145 test ! -s conftest.err
12146 } && test -s conftest$ac_exeext &&
12147 $as_test_x conftest$ac_exeext; then
12148 emacs_cv_x11_toolkit_version_6=yes
12149 else
12150 echo "$as_me: failed program was:" >&5
12151 sed 's/^/| /' conftest.$ac_ext >&5
12152
12153 emacs_cv_x11_toolkit_version_6=no
12154 fi
12155
12156 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12157 conftest$ac_exeext conftest.$ac_ext
12158 fi
12159
12160 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12161 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12162 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12163 echo "${ECHO_T}6 or newer" >&6; }
12164
12165 cat >>confdefs.h <<\_ACEOF
12166 #define HAVE_X11XTR6 1
12167 _ACEOF
12168
12169 else
12170 { echo "$as_me:$LINENO: result: before 6" >&5
12171 echo "${ECHO_T}before 6" >&6; }
12172 fi
12173
12174 OLDLIBS="$LIBS"
12175 if test x$HAVE_X11XTR6 = xyes; then
12176 LIBS="-lXt -lSM -lICE $LIBS"
12177 else
12178 LIBS="-lXt $LIBS"
12179 fi
12180
12181 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12182 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12183 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12184 echo $ECHO_N "(cached) $ECHO_C" >&6
12185 else
12186 ac_check_lib_save_LIBS=$LIBS
12187 LIBS="-lXmu $LIBS"
12188 cat >conftest.$ac_ext <<_ACEOF
12189 /* confdefs.h. */
12190 _ACEOF
12191 cat confdefs.h >>conftest.$ac_ext
12192 cat >>conftest.$ac_ext <<_ACEOF
12193 /* end confdefs.h. */
12194
12195 /* Override any GCC internal prototype to avoid an error.
12196 Use char because int might match the return type of a GCC
12197 builtin and then its argument prototype would still apply. */
12198 #ifdef __cplusplus
12199 extern "C"
12200 #endif
12201 char XmuConvertStandardSelection ();
12202 int
12203 main ()
12204 {
12205 return XmuConvertStandardSelection ();
12206 ;
12207 return 0;
12208 }
12209 _ACEOF
12210 rm -f conftest.$ac_objext conftest$ac_exeext
12211 if { (ac_try="$ac_link"
12212 case "(($ac_try" in
12213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12214 *) ac_try_echo=$ac_try;;
12215 esac
12216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12217 (eval "$ac_link") 2>conftest.er1
12218 ac_status=$?
12219 grep -v '^ *+' conftest.er1 >conftest.err
12220 rm -f conftest.er1
12221 cat conftest.err >&5
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); } && {
12224 test -z "$ac_c_werror_flag" ||
12225 test ! -s conftest.err
12226 } && test -s conftest$ac_exeext &&
12227 $as_test_x conftest$ac_exeext; then
12228 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12229 else
12230 echo "$as_me: failed program was:" >&5
12231 sed 's/^/| /' conftest.$ac_ext >&5
12232
12233 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12234 fi
12235
12236 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12237 conftest$ac_exeext conftest.$ac_ext
12238 LIBS=$ac_check_lib_save_LIBS
12239 fi
12240 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12241 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12242 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12243 cat >>confdefs.h <<_ACEOF
12244 #define HAVE_LIBXMU 1
12245 _ACEOF
12246
12247 LIBS="-lXmu $LIBS"
12248
12249 fi
12250
12251 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12252 fi
12253
12254 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12255 if test "${HAVE_X11}" = "yes"; then
12256 if test "${USE_X_TOOLKIT}" != "none"; then
12257
12258 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12259 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12260 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12261 echo $ECHO_N "(cached) $ECHO_C" >&6
12262 else
12263 ac_check_lib_save_LIBS=$LIBS
12264 LIBS="-lXext $LIBS"
12265 cat >conftest.$ac_ext <<_ACEOF
12266 /* confdefs.h. */
12267 _ACEOF
12268 cat confdefs.h >>conftest.$ac_ext
12269 cat >>conftest.$ac_ext <<_ACEOF
12270 /* end confdefs.h. */
12271
12272 /* Override any GCC internal prototype to avoid an error.
12273 Use char because int might match the return type of a GCC
12274 builtin and then its argument prototype would still apply. */
12275 #ifdef __cplusplus
12276 extern "C"
12277 #endif
12278 char XShapeQueryExtension ();
12279 int
12280 main ()
12281 {
12282 return XShapeQueryExtension ();
12283 ;
12284 return 0;
12285 }
12286 _ACEOF
12287 rm -f conftest.$ac_objext conftest$ac_exeext
12288 if { (ac_try="$ac_link"
12289 case "(($ac_try" in
12290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12291 *) ac_try_echo=$ac_try;;
12292 esac
12293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12294 (eval "$ac_link") 2>conftest.er1
12295 ac_status=$?
12296 grep -v '^ *+' conftest.er1 >conftest.err
12297 rm -f conftest.er1
12298 cat conftest.err >&5
12299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12300 (exit $ac_status); } && {
12301 test -z "$ac_c_werror_flag" ||
12302 test ! -s conftest.err
12303 } && test -s conftest$ac_exeext &&
12304 $as_test_x conftest$ac_exeext; then
12305 ac_cv_lib_Xext_XShapeQueryExtension=yes
12306 else
12307 echo "$as_me: failed program was:" >&5
12308 sed 's/^/| /' conftest.$ac_ext >&5
12309
12310 ac_cv_lib_Xext_XShapeQueryExtension=no
12311 fi
12312
12313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12314 conftest$ac_exeext conftest.$ac_ext
12315 LIBS=$ac_check_lib_save_LIBS
12316 fi
12317 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12318 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12319 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12320 cat >>confdefs.h <<_ACEOF
12321 #define HAVE_LIBXEXT 1
12322 _ACEOF
12323
12324 LIBS="-lXext $LIBS"
12325
12326 fi
12327
12328 fi
12329 fi
12330
12331 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12332 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12333 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12334 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12335 echo $ECHO_N "(cached) $ECHO_C" >&6
12336 else
12337 cat >conftest.$ac_ext <<_ACEOF
12338 /* confdefs.h. */
12339 _ACEOF
12340 cat confdefs.h >>conftest.$ac_ext
12341 cat >>conftest.$ac_ext <<_ACEOF
12342 /* end confdefs.h. */
12343 #include <Xm/Xm.h>
12344 int
12345 main ()
12346 {
12347 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12348 int x = 5;
12349 #else
12350 Motif version prior to 2.1.
12351 #endif
12352 ;
12353 return 0;
12354 }
12355 _ACEOF
12356 rm -f conftest.$ac_objext
12357 if { (ac_try="$ac_compile"
12358 case "(($ac_try" in
12359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12360 *) ac_try_echo=$ac_try;;
12361 esac
12362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12363 (eval "$ac_compile") 2>conftest.er1
12364 ac_status=$?
12365 grep -v '^ *+' conftest.er1 >conftest.err
12366 rm -f conftest.er1
12367 cat conftest.err >&5
12368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12369 (exit $ac_status); } && {
12370 test -z "$ac_c_werror_flag" ||
12371 test ! -s conftest.err
12372 } && test -s conftest.$ac_objext; then
12373 emacs_cv_motif_version_2_1=yes
12374 else
12375 echo "$as_me: failed program was:" >&5
12376 sed 's/^/| /' conftest.$ac_ext >&5
12377
12378 emacs_cv_motif_version_2_1=no
12379 fi
12380
12381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12382 fi
12383 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12384 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12385 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12386 if test $emacs_cv_motif_version_2_1 = yes; then
12387 HAVE_LIBXP=no
12388
12389 cat >>confdefs.h <<\_ACEOF
12390 #define HAVE_MOTIF_2_1 1
12391 _ACEOF
12392
12393 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12394 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12395 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12396 echo $ECHO_N "(cached) $ECHO_C" >&6
12397 else
12398 ac_check_lib_save_LIBS=$LIBS
12399 LIBS="-lXp $LIBS"
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406
12407 /* Override any GCC internal prototype to avoid an error.
12408 Use char because int might match the return type of a GCC
12409 builtin and then its argument prototype would still apply. */
12410 #ifdef __cplusplus
12411 extern "C"
12412 #endif
12413 char XpCreateContext ();
12414 int
12415 main ()
12416 {
12417 return XpCreateContext ();
12418 ;
12419 return 0;
12420 }
12421 _ACEOF
12422 rm -f conftest.$ac_objext conftest$ac_exeext
12423 if { (ac_try="$ac_link"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_link") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest$ac_exeext &&
12439 $as_test_x conftest$ac_exeext; then
12440 ac_cv_lib_Xp_XpCreateContext=yes
12441 else
12442 echo "$as_me: failed program was:" >&5
12443 sed 's/^/| /' conftest.$ac_ext >&5
12444
12445 ac_cv_lib_Xp_XpCreateContext=no
12446 fi
12447
12448 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12449 conftest$ac_exeext conftest.$ac_ext
12450 LIBS=$ac_check_lib_save_LIBS
12451 fi
12452 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12453 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12454 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12455 HAVE_LIBXP=yes
12456 fi
12457
12458 if test ${HAVE_LIBXP} = yes; then
12459
12460 cat >>confdefs.h <<\_ACEOF
12461 #define HAVE_LIBXP 1
12462 _ACEOF
12463
12464 fi
12465 else
12466 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12467 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12468 if test "${emacs_cv_lesstif+set}" = set; then
12469 echo $ECHO_N "(cached) $ECHO_C" >&6
12470 else
12471 # We put this in CFLAGS temporarily to precede other -I options
12472 # that might be in CFLAGS temporarily.
12473 # We put this in CPPFLAGS where it precedes the other -I options.
12474 OLD_CPPFLAGS=$CPPFLAGS
12475 OLD_CFLAGS=$CFLAGS
12476 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12477 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12478 cat >conftest.$ac_ext <<_ACEOF
12479 /* confdefs.h. */
12480 _ACEOF
12481 cat confdefs.h >>conftest.$ac_ext
12482 cat >>conftest.$ac_ext <<_ACEOF
12483 /* end confdefs.h. */
12484 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12485 int
12486 main ()
12487 {
12488 int x = 5;
12489 ;
12490 return 0;
12491 }
12492 _ACEOF
12493 rm -f conftest.$ac_objext
12494 if { (ac_try="$ac_compile"
12495 case "(($ac_try" in
12496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12497 *) ac_try_echo=$ac_try;;
12498 esac
12499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12500 (eval "$ac_compile") 2>conftest.er1
12501 ac_status=$?
12502 grep -v '^ *+' conftest.er1 >conftest.err
12503 rm -f conftest.er1
12504 cat conftest.err >&5
12505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12506 (exit $ac_status); } && {
12507 test -z "$ac_c_werror_flag" ||
12508 test ! -s conftest.err
12509 } && test -s conftest.$ac_objext; then
12510 emacs_cv_lesstif=yes
12511 else
12512 echo "$as_me: failed program was:" >&5
12513 sed 's/^/| /' conftest.$ac_ext >&5
12514
12515 emacs_cv_lesstif=no
12516 fi
12517
12518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12519 fi
12520 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12521 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12522 if test $emacs_cv_lesstif = yes; then
12523 # Make sure this -I option remains in CPPFLAGS after it is set
12524 # back to REAL_CPPFLAGS.
12525 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12526 # have those other -I options anyway. Ultimately, having this
12527 # directory ultimately in CPPFLAGS will be enough.
12528 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12529 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12530 else
12531 CFLAGS=$OLD_CFLAGS
12532 CPPFLAGS=$OLD_CPPFLAGS
12533 fi
12534 fi
12535 fi
12536
12537
12538
12539 USE_TOOLKIT_SCROLL_BARS=no
12540 if test "${with_toolkit_scroll_bars}" != "no"; then
12541 if test "${USE_X_TOOLKIT}" != "none"; then
12542 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12543 cat >>confdefs.h <<\_ACEOF
12544 #define USE_TOOLKIT_SCROLL_BARS 1
12545 _ACEOF
12546
12547 HAVE_XAW3D=no
12548 USE_TOOLKIT_SCROLL_BARS=yes
12549 elif test "${HAVE_XAW3D}" = "yes"; then
12550 cat >>confdefs.h <<\_ACEOF
12551 #define USE_TOOLKIT_SCROLL_BARS 1
12552 _ACEOF
12553
12554 USE_TOOLKIT_SCROLL_BARS=yes
12555 fi
12556 elif test "${HAVE_GTK}" = "yes"; then
12557 cat >>confdefs.h <<\_ACEOF
12558 #define USE_TOOLKIT_SCROLL_BARS 1
12559 _ACEOF
12560
12561 USE_TOOLKIT_SCROLL_BARS=yes
12562 elif test "${HAVE_CARBON}" = "yes"; then
12563 cat >>confdefs.h <<\_ACEOF
12564 #define USE_TOOLKIT_SCROLL_BARS 1
12565 _ACEOF
12566
12567 USE_TOOLKIT_SCROLL_BARS=yes
12568 fi
12569 fi
12570
12571 cat >conftest.$ac_ext <<_ACEOF
12572 /* confdefs.h. */
12573 _ACEOF
12574 cat confdefs.h >>conftest.$ac_ext
12575 cat >>conftest.$ac_ext <<_ACEOF
12576 /* end confdefs.h. */
12577
12578 #include <X11/Xlib.h>
12579 #include <X11/Xresource.h>
12580 int
12581 main ()
12582 {
12583 XIMProc callback;
12584 ;
12585 return 0;
12586 }
12587 _ACEOF
12588 rm -f conftest.$ac_objext
12589 if { (ac_try="$ac_compile"
12590 case "(($ac_try" in
12591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12592 *) ac_try_echo=$ac_try;;
12593 esac
12594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12595 (eval "$ac_compile") 2>conftest.er1
12596 ac_status=$?
12597 grep -v '^ *+' conftest.er1 >conftest.err
12598 rm -f conftest.er1
12599 cat conftest.err >&5
12600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12601 (exit $ac_status); } && {
12602 test -z "$ac_c_werror_flag" ||
12603 test ! -s conftest.err
12604 } && test -s conftest.$ac_objext; then
12605 HAVE_XIM=yes
12606
12607 cat >>confdefs.h <<\_ACEOF
12608 #define HAVE_XIM 1
12609 _ACEOF
12610
12611 else
12612 echo "$as_me: failed program was:" >&5
12613 sed 's/^/| /' conftest.$ac_ext >&5
12614
12615 HAVE_XIM=no
12616 fi
12617
12618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12619
12620
12621 if test "${with_xim}" != "no"; then
12622
12623 cat >>confdefs.h <<\_ACEOF
12624 #define USE_XIM 1
12625 _ACEOF
12626
12627 fi
12628
12629
12630 if test "${HAVE_XIM}" != "no"; then
12631 late_CFLAGS=$CFLAGS
12632 if test "$GCC" = yes; then
12633 CFLAGS="$CFLAGS --pedantic-errors"
12634 fi
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641
12642 #include <X11/Xlib.h>
12643 #include <X11/Xresource.h>
12644 int
12645 main ()
12646 {
12647 Display *display;
12648 XrmDatabase db;
12649 char *res_name;
12650 char *res_class;
12651 XIMProc callback;
12652 XPointer *client_data;
12653 #ifndef __GNUC__
12654 /* If we're not using GCC, it's probably not XFree86, and this is
12655 probably right, but we can't use something like --pedantic-errors. */
12656 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12657 char*, XIMProc, XPointer*);
12658 #endif
12659 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12660 client_data);
12661 ;
12662 return 0;
12663 }
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (ac_try="$ac_compile"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest.$ac_objext; then
12682 emacs_cv_arg6_star=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687
12688 fi
12689
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691
12692 if test "$emacs_cv_arg6_star" = yes; then
12693 cat >>confdefs.h <<\_ACEOF
12694 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12695 _ACEOF
12696
12697 else
12698 cat >>confdefs.h <<\_ACEOF
12699 #define XRegisterIMInstantiateCallback_arg6 XPointer
12700 _ACEOF
12701
12702 fi
12703 CFLAGS=$late_CFLAGS
12704 fi
12705
12706 ### Use -lXpm if available, unless `--with-xpm=no'.
12707 HAVE_XPM=no
12708 if test "${HAVE_X11}" = "yes"; then
12709 if test "${with_xpm}" != "no"; then
12710 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12711 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12712 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12713 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12714 echo $ECHO_N "(cached) $ECHO_C" >&6
12715 fi
12716 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12717 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12718 else
12719 # Is the header compilable?
12720 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12721 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12722 cat >conftest.$ac_ext <<_ACEOF
12723 /* confdefs.h. */
12724 _ACEOF
12725 cat confdefs.h >>conftest.$ac_ext
12726 cat >>conftest.$ac_ext <<_ACEOF
12727 /* end confdefs.h. */
12728 $ac_includes_default
12729 #include <X11/xpm.h>
12730 _ACEOF
12731 rm -f conftest.$ac_objext
12732 if { (ac_try="$ac_compile"
12733 case "(($ac_try" in
12734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12735 *) ac_try_echo=$ac_try;;
12736 esac
12737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12738 (eval "$ac_compile") 2>conftest.er1
12739 ac_status=$?
12740 grep -v '^ *+' conftest.er1 >conftest.err
12741 rm -f conftest.er1
12742 cat conftest.err >&5
12743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744 (exit $ac_status); } && {
12745 test -z "$ac_c_werror_flag" ||
12746 test ! -s conftest.err
12747 } && test -s conftest.$ac_objext; then
12748 ac_header_compiler=yes
12749 else
12750 echo "$as_me: failed program was:" >&5
12751 sed 's/^/| /' conftest.$ac_ext >&5
12752
12753 ac_header_compiler=no
12754 fi
12755
12756 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12757 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12758 echo "${ECHO_T}$ac_header_compiler" >&6; }
12759
12760 # Is the header present?
12761 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12762 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12763 cat >conftest.$ac_ext <<_ACEOF
12764 /* confdefs.h. */
12765 _ACEOF
12766 cat confdefs.h >>conftest.$ac_ext
12767 cat >>conftest.$ac_ext <<_ACEOF
12768 /* end confdefs.h. */
12769 #include <X11/xpm.h>
12770 _ACEOF
12771 if { (ac_try="$ac_cpp conftest.$ac_ext"
12772 case "(($ac_try" in
12773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12774 *) ac_try_echo=$ac_try;;
12775 esac
12776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12778 ac_status=$?
12779 grep -v '^ *+' conftest.er1 >conftest.err
12780 rm -f conftest.er1
12781 cat conftest.err >&5
12782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12783 (exit $ac_status); } >/dev/null && {
12784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12785 test ! -s conftest.err
12786 }; then
12787 ac_header_preproc=yes
12788 else
12789 echo "$as_me: failed program was:" >&5
12790 sed 's/^/| /' conftest.$ac_ext >&5
12791
12792 ac_header_preproc=no
12793 fi
12794
12795 rm -f conftest.err conftest.$ac_ext
12796 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12797 echo "${ECHO_T}$ac_header_preproc" >&6; }
12798
12799 # So? What about this header?
12800 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12801 yes:no: )
12802 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12803 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12804 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12805 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12806 ac_header_preproc=yes
12807 ;;
12808 no:yes:* )
12809 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12810 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12811 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12812 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12813 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12814 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12815 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12816 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12817 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12818 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12819 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12820 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12821
12822 ;;
12823 esac
12824 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12825 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12826 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12827 echo $ECHO_N "(cached) $ECHO_C" >&6
12828 else
12829 ac_cv_header_X11_xpm_h=$ac_header_preproc
12830 fi
12831 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12832 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12833
12834 fi
12835 if test $ac_cv_header_X11_xpm_h = yes; then
12836 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12837 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12838 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12839 echo $ECHO_N "(cached) $ECHO_C" >&6
12840 else
12841 ac_check_lib_save_LIBS=$LIBS
12842 LIBS="-lXpm -lX11 $LIBS"
12843 cat >conftest.$ac_ext <<_ACEOF
12844 /* confdefs.h. */
12845 _ACEOF
12846 cat confdefs.h >>conftest.$ac_ext
12847 cat >>conftest.$ac_ext <<_ACEOF
12848 /* end confdefs.h. */
12849
12850 /* Override any GCC internal prototype to avoid an error.
12851 Use char because int might match the return type of a GCC
12852 builtin and then its argument prototype would still apply. */
12853 #ifdef __cplusplus
12854 extern "C"
12855 #endif
12856 char XpmReadFileToPixmap ();
12857 int
12858 main ()
12859 {
12860 return XpmReadFileToPixmap ();
12861 ;
12862 return 0;
12863 }
12864 _ACEOF
12865 rm -f conftest.$ac_objext conftest$ac_exeext
12866 if { (ac_try="$ac_link"
12867 case "(($ac_try" in
12868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12869 *) ac_try_echo=$ac_try;;
12870 esac
12871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12872 (eval "$ac_link") 2>conftest.er1
12873 ac_status=$?
12874 grep -v '^ *+' conftest.er1 >conftest.err
12875 rm -f conftest.er1
12876 cat conftest.err >&5
12877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12878 (exit $ac_status); } && {
12879 test -z "$ac_c_werror_flag" ||
12880 test ! -s conftest.err
12881 } && test -s conftest$ac_exeext &&
12882 $as_test_x conftest$ac_exeext; then
12883 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12884 else
12885 echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12889 fi
12890
12891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12892 conftest$ac_exeext conftest.$ac_ext
12893 LIBS=$ac_check_lib_save_LIBS
12894 fi
12895 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12896 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12897 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12898 HAVE_XPM=yes
12899 fi
12900
12901 fi
12902
12903
12904 if test "${HAVE_XPM}" = "yes"; then
12905 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12906 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12907 cat >conftest.$ac_ext <<_ACEOF
12908 /* confdefs.h. */
12909 _ACEOF
12910 cat confdefs.h >>conftest.$ac_ext
12911 cat >>conftest.$ac_ext <<_ACEOF
12912 /* end confdefs.h. */
12913 #include "X11/xpm.h"
12914 #ifndef XpmReturnAllocPixels
12915 no_return_alloc_pixels
12916 #endif
12917
12918 _ACEOF
12919 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12920 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12921 HAVE_XPM=no
12922 else
12923 HAVE_XPM=yes
12924 fi
12925 rm -f conftest*
12926
12927
12928 if test "${HAVE_XPM}" = "yes"; then
12929 { echo "$as_me:$LINENO: result: yes" >&5
12930 echo "${ECHO_T}yes" >&6; }
12931 else
12932 { echo "$as_me:$LINENO: result: no" >&5
12933 echo "${ECHO_T}no" >&6; }
12934 fi
12935 fi
12936 fi
12937
12938 if test "${HAVE_XPM}" = "yes"; then
12939
12940 cat >>confdefs.h <<\_ACEOF
12941 #define HAVE_XPM 1
12942 _ACEOF
12943
12944 fi
12945 fi
12946
12947 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12948 HAVE_JPEG=no
12949 if test "${HAVE_X11}" = "yes"; then
12950 if test "${with_jpeg}" != "no"; then
12951 if test "${ac_cv_header_jerror_h+set}" = set; then
12952 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12953 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12954 if test "${ac_cv_header_jerror_h+set}" = set; then
12955 echo $ECHO_N "(cached) $ECHO_C" >&6
12956 fi
12957 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12958 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12959 else
12960 # Is the header compilable?
12961 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12962 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12963 cat >conftest.$ac_ext <<_ACEOF
12964 /* confdefs.h. */
12965 _ACEOF
12966 cat confdefs.h >>conftest.$ac_ext
12967 cat >>conftest.$ac_ext <<_ACEOF
12968 /* end confdefs.h. */
12969 $ac_includes_default
12970 #include <jerror.h>
12971 _ACEOF
12972 rm -f conftest.$ac_objext
12973 if { (ac_try="$ac_compile"
12974 case "(($ac_try" in
12975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12976 *) ac_try_echo=$ac_try;;
12977 esac
12978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12979 (eval "$ac_compile") 2>conftest.er1
12980 ac_status=$?
12981 grep -v '^ *+' conftest.er1 >conftest.err
12982 rm -f conftest.er1
12983 cat conftest.err >&5
12984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12985 (exit $ac_status); } && {
12986 test -z "$ac_c_werror_flag" ||
12987 test ! -s conftest.err
12988 } && test -s conftest.$ac_objext; then
12989 ac_header_compiler=yes
12990 else
12991 echo "$as_me: failed program was:" >&5
12992 sed 's/^/| /' conftest.$ac_ext >&5
12993
12994 ac_header_compiler=no
12995 fi
12996
12997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12999 echo "${ECHO_T}$ac_header_compiler" >&6; }
13000
13001 # Is the header present?
13002 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13003 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13004 cat >conftest.$ac_ext <<_ACEOF
13005 /* confdefs.h. */
13006 _ACEOF
13007 cat confdefs.h >>conftest.$ac_ext
13008 cat >>conftest.$ac_ext <<_ACEOF
13009 /* end confdefs.h. */
13010 #include <jerror.h>
13011 _ACEOF
13012 if { (ac_try="$ac_cpp conftest.$ac_ext"
13013 case "(($ac_try" in
13014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13015 *) ac_try_echo=$ac_try;;
13016 esac
13017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13019 ac_status=$?
13020 grep -v '^ *+' conftest.er1 >conftest.err
13021 rm -f conftest.er1
13022 cat conftest.err >&5
13023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13024 (exit $ac_status); } >/dev/null && {
13025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13026 test ! -s conftest.err
13027 }; then
13028 ac_header_preproc=yes
13029 else
13030 echo "$as_me: failed program was:" >&5
13031 sed 's/^/| /' conftest.$ac_ext >&5
13032
13033 ac_header_preproc=no
13034 fi
13035
13036 rm -f conftest.err conftest.$ac_ext
13037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13038 echo "${ECHO_T}$ac_header_preproc" >&6; }
13039
13040 # So? What about this header?
13041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13042 yes:no: )
13043 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13044 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13045 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13046 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13047 ac_header_preproc=yes
13048 ;;
13049 no:yes:* )
13050 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13051 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13052 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13053 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13054 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13055 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13056 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13057 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13058 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13059 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13060 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13061 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13062
13063 ;;
13064 esac
13065 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13066 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13067 if test "${ac_cv_header_jerror_h+set}" = set; then
13068 echo $ECHO_N "(cached) $ECHO_C" >&6
13069 else
13070 ac_cv_header_jerror_h=$ac_header_preproc
13071 fi
13072 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13073 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13074
13075 fi
13076 if test $ac_cv_header_jerror_h = yes; then
13077 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13078 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13079 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13080 echo $ECHO_N "(cached) $ECHO_C" >&6
13081 else
13082 ac_check_lib_save_LIBS=$LIBS
13083 LIBS="-ljpeg $LIBS"
13084 cat >conftest.$ac_ext <<_ACEOF
13085 /* confdefs.h. */
13086 _ACEOF
13087 cat confdefs.h >>conftest.$ac_ext
13088 cat >>conftest.$ac_ext <<_ACEOF
13089 /* end confdefs.h. */
13090
13091 /* Override any GCC internal prototype to avoid an error.
13092 Use char because int might match the return type of a GCC
13093 builtin and then its argument prototype would still apply. */
13094 #ifdef __cplusplus
13095 extern "C"
13096 #endif
13097 char jpeg_destroy_compress ();
13098 int
13099 main ()
13100 {
13101 return jpeg_destroy_compress ();
13102 ;
13103 return 0;
13104 }
13105 _ACEOF
13106 rm -f conftest.$ac_objext conftest$ac_exeext
13107 if { (ac_try="$ac_link"
13108 case "(($ac_try" in
13109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13110 *) ac_try_echo=$ac_try;;
13111 esac
13112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13113 (eval "$ac_link") 2>conftest.er1
13114 ac_status=$?
13115 grep -v '^ *+' conftest.er1 >conftest.err
13116 rm -f conftest.er1
13117 cat conftest.err >&5
13118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13119 (exit $ac_status); } && {
13120 test -z "$ac_c_werror_flag" ||
13121 test ! -s conftest.err
13122 } && test -s conftest$ac_exeext &&
13123 $as_test_x conftest$ac_exeext; then
13124 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13125 else
13126 echo "$as_me: failed program was:" >&5
13127 sed 's/^/| /' conftest.$ac_ext >&5
13128
13129 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13130 fi
13131
13132 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13133 conftest$ac_exeext conftest.$ac_ext
13134 LIBS=$ac_check_lib_save_LIBS
13135 fi
13136 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13137 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13138 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13139 HAVE_JPEG=yes
13140 fi
13141
13142 fi
13143
13144
13145 fi
13146
13147
13148 if test "${HAVE_JPEG}" = "yes"; then
13149 cat >>confdefs.h <<\_ACEOF
13150 #define HAVE_JPEG 1
13151 _ACEOF
13152
13153 cat >conftest.$ac_ext <<_ACEOF
13154 /* confdefs.h. */
13155 _ACEOF
13156 cat confdefs.h >>conftest.$ac_ext
13157 cat >>conftest.$ac_ext <<_ACEOF
13158 /* end confdefs.h. */
13159 #include <jpeglib.h>
13160 version=JPEG_LIB_VERSION
13161
13162 _ACEOF
13163 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13164 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13165 cat >>confdefs.h <<\_ACEOF
13166 #define HAVE_JPEG 1
13167 _ACEOF
13168
13169 else
13170 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13171 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13172 HAVE_JPEG=no
13173 fi
13174 rm -f conftest*
13175
13176 fi
13177 fi
13178
13179 ### Use -lpng if available, unless `--with-png=no'.
13180 HAVE_PNG=no
13181 if test "${HAVE_X11}" = "yes"; then
13182 if test "${with_png}" != "no"; then
13183 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13184 # in /usr/include/libpng.
13185
13186
13187 for ac_header in png.h libpng/png.h
13188 do
13189 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13194 echo $ECHO_N "(cached) $ECHO_C" >&6
13195 fi
13196 ac_res=`eval echo '${'$as_ac_Header'}'`
13197 { echo "$as_me:$LINENO: result: $ac_res" >&5
13198 echo "${ECHO_T}$ac_res" >&6; }
13199 else
13200 # Is the header compilable?
13201 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13202 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13203 cat >conftest.$ac_ext <<_ACEOF
13204 /* confdefs.h. */
13205 _ACEOF
13206 cat confdefs.h >>conftest.$ac_ext
13207 cat >>conftest.$ac_ext <<_ACEOF
13208 /* end confdefs.h. */
13209 $ac_includes_default
13210 #include <$ac_header>
13211 _ACEOF
13212 rm -f conftest.$ac_objext
13213 if { (ac_try="$ac_compile"
13214 case "(($ac_try" in
13215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13216 *) ac_try_echo=$ac_try;;
13217 esac
13218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13219 (eval "$ac_compile") 2>conftest.er1
13220 ac_status=$?
13221 grep -v '^ *+' conftest.er1 >conftest.err
13222 rm -f conftest.er1
13223 cat conftest.err >&5
13224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13225 (exit $ac_status); } && {
13226 test -z "$ac_c_werror_flag" ||
13227 test ! -s conftest.err
13228 } && test -s conftest.$ac_objext; then
13229 ac_header_compiler=yes
13230 else
13231 echo "$as_me: failed program was:" >&5
13232 sed 's/^/| /' conftest.$ac_ext >&5
13233
13234 ac_header_compiler=no
13235 fi
13236
13237 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13238 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13239 echo "${ECHO_T}$ac_header_compiler" >&6; }
13240
13241 # Is the header present?
13242 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13243 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13244 cat >conftest.$ac_ext <<_ACEOF
13245 /* confdefs.h. */
13246 _ACEOF
13247 cat confdefs.h >>conftest.$ac_ext
13248 cat >>conftest.$ac_ext <<_ACEOF
13249 /* end confdefs.h. */
13250 #include <$ac_header>
13251 _ACEOF
13252 if { (ac_try="$ac_cpp conftest.$ac_ext"
13253 case "(($ac_try" in
13254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13255 *) ac_try_echo=$ac_try;;
13256 esac
13257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13258 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13259 ac_status=$?
13260 grep -v '^ *+' conftest.er1 >conftest.err
13261 rm -f conftest.er1
13262 cat conftest.err >&5
13263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13264 (exit $ac_status); } >/dev/null && {
13265 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13266 test ! -s conftest.err
13267 }; then
13268 ac_header_preproc=yes
13269 else
13270 echo "$as_me: failed program was:" >&5
13271 sed 's/^/| /' conftest.$ac_ext >&5
13272
13273 ac_header_preproc=no
13274 fi
13275
13276 rm -f conftest.err conftest.$ac_ext
13277 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13278 echo "${ECHO_T}$ac_header_preproc" >&6; }
13279
13280 # So? What about this header?
13281 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13282 yes:no: )
13283 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13284 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13286 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13287 ac_header_preproc=yes
13288 ;;
13289 no:yes:* )
13290 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13291 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13292 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13293 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13294 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13295 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13296 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13297 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13299 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13300 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13301 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13302
13303 ;;
13304 esac
13305 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13306 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13307 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13308 echo $ECHO_N "(cached) $ECHO_C" >&6
13309 else
13310 eval "$as_ac_Header=\$ac_header_preproc"
13311 fi
13312 ac_res=`eval echo '${'$as_ac_Header'}'`
13313 { echo "$as_me:$LINENO: result: $ac_res" >&5
13314 echo "${ECHO_T}$ac_res" >&6; }
13315
13316 fi
13317 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13318 cat >>confdefs.h <<_ACEOF
13319 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13320 _ACEOF
13321
13322 fi
13323
13324 done
13325
13326 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13327 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13328 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13329 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13330 echo $ECHO_N "(cached) $ECHO_C" >&6
13331 else
13332 ac_check_lib_save_LIBS=$LIBS
13333 LIBS="-lpng -lz -lm $LIBS"
13334 cat >conftest.$ac_ext <<_ACEOF
13335 /* confdefs.h. */
13336 _ACEOF
13337 cat confdefs.h >>conftest.$ac_ext
13338 cat >>conftest.$ac_ext <<_ACEOF
13339 /* end confdefs.h. */
13340
13341 /* Override any GCC internal prototype to avoid an error.
13342 Use char because int might match the return type of a GCC
13343 builtin and then its argument prototype would still apply. */
13344 #ifdef __cplusplus
13345 extern "C"
13346 #endif
13347 char png_get_channels ();
13348 int
13349 main ()
13350 {
13351 return png_get_channels ();
13352 ;
13353 return 0;
13354 }
13355 _ACEOF
13356 rm -f conftest.$ac_objext conftest$ac_exeext
13357 if { (ac_try="$ac_link"
13358 case "(($ac_try" in
13359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13360 *) ac_try_echo=$ac_try;;
13361 esac
13362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13363 (eval "$ac_link") 2>conftest.er1
13364 ac_status=$?
13365 grep -v '^ *+' conftest.er1 >conftest.err
13366 rm -f conftest.er1
13367 cat conftest.err >&5
13368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13369 (exit $ac_status); } && {
13370 test -z "$ac_c_werror_flag" ||
13371 test ! -s conftest.err
13372 } && test -s conftest$ac_exeext &&
13373 $as_test_x conftest$ac_exeext; then
13374 ac_cv_lib_png_png_get_channels=yes
13375 else
13376 echo "$as_me: failed program was:" >&5
13377 sed 's/^/| /' conftest.$ac_ext >&5
13378
13379 ac_cv_lib_png_png_get_channels=no
13380 fi
13381
13382 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13383 conftest$ac_exeext conftest.$ac_ext
13384 LIBS=$ac_check_lib_save_LIBS
13385 fi
13386 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13387 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13388 if test $ac_cv_lib_png_png_get_channels = yes; then
13389 HAVE_PNG=yes
13390 fi
13391
13392 fi
13393 fi
13394
13395 if test "${HAVE_PNG}" = "yes"; then
13396
13397 cat >>confdefs.h <<\_ACEOF
13398 #define HAVE_PNG 1
13399 _ACEOF
13400
13401 fi
13402 fi
13403
13404 ### Use -ltiff if available, unless `--with-tiff=no'.
13405 HAVE_TIFF=no
13406 if test "${HAVE_X11}" = "yes"; then
13407 if test "${with_tiff}" != "no"; then
13408 if test "${ac_cv_header_tiffio_h+set}" = set; then
13409 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13410 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13411 if test "${ac_cv_header_tiffio_h+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 fi
13414 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13415 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13416 else
13417 # Is the header compilable?
13418 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13419 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13420 cat >conftest.$ac_ext <<_ACEOF
13421 /* confdefs.h. */
13422 _ACEOF
13423 cat confdefs.h >>conftest.$ac_ext
13424 cat >>conftest.$ac_ext <<_ACEOF
13425 /* end confdefs.h. */
13426 $ac_includes_default
13427 #include <tiffio.h>
13428 _ACEOF
13429 rm -f conftest.$ac_objext
13430 if { (ac_try="$ac_compile"
13431 case "(($ac_try" in
13432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13433 *) ac_try_echo=$ac_try;;
13434 esac
13435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13436 (eval "$ac_compile") 2>conftest.er1
13437 ac_status=$?
13438 grep -v '^ *+' conftest.er1 >conftest.err
13439 rm -f conftest.er1
13440 cat conftest.err >&5
13441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13442 (exit $ac_status); } && {
13443 test -z "$ac_c_werror_flag" ||
13444 test ! -s conftest.err
13445 } && test -s conftest.$ac_objext; then
13446 ac_header_compiler=yes
13447 else
13448 echo "$as_me: failed program was:" >&5
13449 sed 's/^/| /' conftest.$ac_ext >&5
13450
13451 ac_header_compiler=no
13452 fi
13453
13454 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13455 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13456 echo "${ECHO_T}$ac_header_compiler" >&6; }
13457
13458 # Is the header present?
13459 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13460 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13461 cat >conftest.$ac_ext <<_ACEOF
13462 /* confdefs.h. */
13463 _ACEOF
13464 cat confdefs.h >>conftest.$ac_ext
13465 cat >>conftest.$ac_ext <<_ACEOF
13466 /* end confdefs.h. */
13467 #include <tiffio.h>
13468 _ACEOF
13469 if { (ac_try="$ac_cpp conftest.$ac_ext"
13470 case "(($ac_try" in
13471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472 *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13476 ac_status=$?
13477 grep -v '^ *+' conftest.er1 >conftest.err
13478 rm -f conftest.er1
13479 cat conftest.err >&5
13480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481 (exit $ac_status); } >/dev/null && {
13482 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13483 test ! -s conftest.err
13484 }; then
13485 ac_header_preproc=yes
13486 else
13487 echo "$as_me: failed program was:" >&5
13488 sed 's/^/| /' conftest.$ac_ext >&5
13489
13490 ac_header_preproc=no
13491 fi
13492
13493 rm -f conftest.err conftest.$ac_ext
13494 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13495 echo "${ECHO_T}$ac_header_preproc" >&6; }
13496
13497 # So? What about this header?
13498 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13499 yes:no: )
13500 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13501 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13502 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13503 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13504 ac_header_preproc=yes
13505 ;;
13506 no:yes:* )
13507 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13508 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13509 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13510 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13511 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13512 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13514 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13515 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13516 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13517 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13518 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13519
13520 ;;
13521 esac
13522 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13523 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13524 if test "${ac_cv_header_tiffio_h+set}" = set; then
13525 echo $ECHO_N "(cached) $ECHO_C" >&6
13526 else
13527 ac_cv_header_tiffio_h=$ac_header_preproc
13528 fi
13529 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13530 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13531
13532 fi
13533 if test $ac_cv_header_tiffio_h = yes; then
13534 tifflibs="-lz -lm"
13535 # At least one tiff package requires the jpeg library.
13536 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13537 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13538 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13539 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13540 echo $ECHO_N "(cached) $ECHO_C" >&6
13541 else
13542 ac_check_lib_save_LIBS=$LIBS
13543 LIBS="-ltiff $tifflibs $LIBS"
13544 cat >conftest.$ac_ext <<_ACEOF
13545 /* confdefs.h. */
13546 _ACEOF
13547 cat confdefs.h >>conftest.$ac_ext
13548 cat >>conftest.$ac_ext <<_ACEOF
13549 /* end confdefs.h. */
13550
13551 /* Override any GCC internal prototype to avoid an error.
13552 Use char because int might match the return type of a GCC
13553 builtin and then its argument prototype would still apply. */
13554 #ifdef __cplusplus
13555 extern "C"
13556 #endif
13557 char TIFFGetVersion ();
13558 int
13559 main ()
13560 {
13561 return TIFFGetVersion ();
13562 ;
13563 return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (ac_try="$ac_link"
13568 case "(($ac_try" in
13569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570 *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573 (eval "$ac_link") 2>conftest.er1
13574 ac_status=$?
13575 grep -v '^ *+' conftest.er1 >conftest.err
13576 rm -f conftest.er1
13577 cat conftest.err >&5
13578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579 (exit $ac_status); } && {
13580 test -z "$ac_c_werror_flag" ||
13581 test ! -s conftest.err
13582 } && test -s conftest$ac_exeext &&
13583 $as_test_x conftest$ac_exeext; then
13584 ac_cv_lib_tiff_TIFFGetVersion=yes
13585 else
13586 echo "$as_me: failed program was:" >&5
13587 sed 's/^/| /' conftest.$ac_ext >&5
13588
13589 ac_cv_lib_tiff_TIFFGetVersion=no
13590 fi
13591
13592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13595 fi
13596 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13597 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13598 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13599 HAVE_TIFF=yes
13600 fi
13601
13602 fi
13603
13604
13605 fi
13606
13607 if test "${HAVE_TIFF}" = "yes"; then
13608
13609 cat >>confdefs.h <<\_ACEOF
13610 #define HAVE_TIFF 1
13611 _ACEOF
13612
13613 fi
13614 fi
13615
13616 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13617 HAVE_GIF=no
13618 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13619 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13620 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13621 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13622 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13623 echo $ECHO_N "(cached) $ECHO_C" >&6
13624 fi
13625 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13626 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13627 else
13628 # Is the header compilable?
13629 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13630 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h. */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h. */
13637 $ac_includes_default
13638 #include <gif_lib.h>
13639 _ACEOF
13640 rm -f conftest.$ac_objext
13641 if { (ac_try="$ac_compile"
13642 case "(($ac_try" in
13643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13644 *) ac_try_echo=$ac_try;;
13645 esac
13646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13647 (eval "$ac_compile") 2>conftest.er1
13648 ac_status=$?
13649 grep -v '^ *+' conftest.er1 >conftest.err
13650 rm -f conftest.er1
13651 cat conftest.err >&5
13652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13653 (exit $ac_status); } && {
13654 test -z "$ac_c_werror_flag" ||
13655 test ! -s conftest.err
13656 } && test -s conftest.$ac_objext; then
13657 ac_header_compiler=yes
13658 else
13659 echo "$as_me: failed program was:" >&5
13660 sed 's/^/| /' conftest.$ac_ext >&5
13661
13662 ac_header_compiler=no
13663 fi
13664
13665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13666 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13667 echo "${ECHO_T}$ac_header_compiler" >&6; }
13668
13669 # Is the header present?
13670 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13671 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13672 cat >conftest.$ac_ext <<_ACEOF
13673 /* confdefs.h. */
13674 _ACEOF
13675 cat confdefs.h >>conftest.$ac_ext
13676 cat >>conftest.$ac_ext <<_ACEOF
13677 /* end confdefs.h. */
13678 #include <gif_lib.h>
13679 _ACEOF
13680 if { (ac_try="$ac_cpp conftest.$ac_ext"
13681 case "(($ac_try" in
13682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13683 *) ac_try_echo=$ac_try;;
13684 esac
13685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13686 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13687 ac_status=$?
13688 grep -v '^ *+' conftest.er1 >conftest.err
13689 rm -f conftest.er1
13690 cat conftest.err >&5
13691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13692 (exit $ac_status); } >/dev/null && {
13693 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13694 test ! -s conftest.err
13695 }; then
13696 ac_header_preproc=yes
13697 else
13698 echo "$as_me: failed program was:" >&5
13699 sed 's/^/| /' conftest.$ac_ext >&5
13700
13701 ac_header_preproc=no
13702 fi
13703
13704 rm -f conftest.err conftest.$ac_ext
13705 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13706 echo "${ECHO_T}$ac_header_preproc" >&6; }
13707
13708 # So? What about this header?
13709 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13710 yes:no: )
13711 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13712 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13713 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13714 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13715 ac_header_preproc=yes
13716 ;;
13717 no:yes:* )
13718 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13719 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13721 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13722 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13723 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13724 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13725 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13726 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13727 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13728 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13729 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13730
13731 ;;
13732 esac
13733 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13734 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13735 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13736 echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738 ac_cv_header_gif_lib_h=$ac_header_preproc
13739 fi
13740 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13741 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13742
13743 fi
13744 if test $ac_cv_header_gif_lib_h = yes; then
13745 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13746 # Earlier versions can crash Emacs.
13747 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
13748 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
13749 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-lgif $LIBS"
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char EGifPutExtensionLast ();
13768 int
13769 main ()
13770 {
13771 return EGifPutExtensionLast ();
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest$ac_exeext &&
13793 $as_test_x conftest$ac_exeext; then
13794 ac_cv_lib_gif_EGifPutExtensionLast=yes
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_cv_lib_gif_EGifPutExtensionLast=no
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803 conftest$ac_exeext conftest.$ac_ext
13804 LIBS=$ac_check_lib_save_LIBS
13805 fi
13806 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
13807 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
13808 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
13809 HAVE_GIF=yes
13810 else
13811 try_libungif=yes
13812 fi
13813
13814 fi
13815
13816
13817
13818 if test "$HAVE_GIF" = yes; then
13819 ac_gif_lib_name="-lgif"
13820 fi
13821
13822 # If gif_lib.h but no libgif, try libungif.
13823 if test x"$try_libungif" = xyes; then
13824 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13825 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13826 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13827 echo $ECHO_N "(cached) $ECHO_C" >&6
13828 else
13829 ac_check_lib_save_LIBS=$LIBS
13830 LIBS="-lungif $LIBS"
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h. */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h. */
13837
13838 /* Override any GCC internal prototype to avoid an error.
13839 Use char because int might match the return type of a GCC
13840 builtin and then its argument prototype would still apply. */
13841 #ifdef __cplusplus
13842 extern "C"
13843 #endif
13844 char EGifPutExtensionLast ();
13845 int
13846 main ()
13847 {
13848 return EGifPutExtensionLast ();
13849 ;
13850 return 0;
13851 }
13852 _ACEOF
13853 rm -f conftest.$ac_objext conftest$ac_exeext
13854 if { (ac_try="$ac_link"
13855 case "(($ac_try" in
13856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13857 *) ac_try_echo=$ac_try;;
13858 esac
13859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13860 (eval "$ac_link") 2>conftest.er1
13861 ac_status=$?
13862 grep -v '^ *+' conftest.er1 >conftest.err
13863 rm -f conftest.er1
13864 cat conftest.err >&5
13865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13866 (exit $ac_status); } && {
13867 test -z "$ac_c_werror_flag" ||
13868 test ! -s conftest.err
13869 } && test -s conftest$ac_exeext &&
13870 $as_test_x conftest$ac_exeext; then
13871 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13872 else
13873 echo "$as_me: failed program was:" >&5
13874 sed 's/^/| /' conftest.$ac_ext >&5
13875
13876 ac_cv_lib_ungif_EGifPutExtensionLast=no
13877 fi
13878
13879 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13880 conftest$ac_exeext conftest.$ac_ext
13881 LIBS=$ac_check_lib_save_LIBS
13882 fi
13883 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13884 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13885 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13886 HAVE_GIF=yes
13887 fi
13888
13889
13890 if test "$HAVE_GIF" = yes; then
13891
13892 cat >>confdefs.h <<\_ACEOF
13893 #define LIBGIF -lungif
13894 _ACEOF
13895
13896 ac_gif_lib_name="-lungif"
13897 fi
13898 fi
13899
13900 if test "${HAVE_GIF}" = "yes"; then
13901
13902 cat >>confdefs.h <<\_ACEOF
13903 #define HAVE_GIF 1
13904 _ACEOF
13905
13906 fi
13907 fi
13908
13909 if test "${HAVE_X11}" = "yes"; then
13910 MISSING=""
13911 WITH_NO=""
13912 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
13913 MISSING="libXpm" && WITH_NO="--with-xpm=no"
13914 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
13915 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
13916 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
13917 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
13918 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
13919 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
13920 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
13921 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
13922
13923 if test "X${MISSING}" != X; then
13924 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
13925 $MISSING
13926 Maybe some development libraries/packages are missing?
13927 If you don't want to link with them give
13928 $WITH_NO
13929 as options to configure" >&5
13930 echo "$as_me: error: The following required libraries were not found:
13931 $MISSING
13932 Maybe some development libraries/packages are missing?
13933 If you don't want to link with them give
13934 $WITH_NO
13935 as options to configure" >&2;}
13936 { (exit 1); exit 1; }; }
13937 fi
13938 fi
13939
13940 ### Use -lgpm if available, unless `--with-gpm=no'.
13941 HAVE_GPM=no
13942 if test "${with_gpm}" != "no"; then
13943 if test "${ac_cv_header_gpm_h+set}" = set; then
13944 { echo "$as_me:$LINENO: checking for gpm.h" >&5
13945 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
13946 if test "${ac_cv_header_gpm_h+set}" = set; then
13947 echo $ECHO_N "(cached) $ECHO_C" >&6
13948 fi
13949 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
13950 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
13951 else
13952 # Is the header compilable?
13953 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
13954 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h. */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h. */
13961 $ac_includes_default
13962 #include <gpm.h>
13963 _ACEOF
13964 rm -f conftest.$ac_objext
13965 if { (ac_try="$ac_compile"
13966 case "(($ac_try" in
13967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13968 *) ac_try_echo=$ac_try;;
13969 esac
13970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13971 (eval "$ac_compile") 2>conftest.er1
13972 ac_status=$?
13973 grep -v '^ *+' conftest.er1 >conftest.err
13974 rm -f conftest.er1
13975 cat conftest.err >&5
13976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13977 (exit $ac_status); } && {
13978 test -z "$ac_c_werror_flag" ||
13979 test ! -s conftest.err
13980 } && test -s conftest.$ac_objext; then
13981 ac_header_compiler=yes
13982 else
13983 echo "$as_me: failed program was:" >&5
13984 sed 's/^/| /' conftest.$ac_ext >&5
13985
13986 ac_header_compiler=no
13987 fi
13988
13989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13991 echo "${ECHO_T}$ac_header_compiler" >&6; }
13992
13993 # Is the header present?
13994 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
13995 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
13996 cat >conftest.$ac_ext <<_ACEOF
13997 /* confdefs.h. */
13998 _ACEOF
13999 cat confdefs.h >>conftest.$ac_ext
14000 cat >>conftest.$ac_ext <<_ACEOF
14001 /* end confdefs.h. */
14002 #include <gpm.h>
14003 _ACEOF
14004 if { (ac_try="$ac_cpp conftest.$ac_ext"
14005 case "(($ac_try" in
14006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14007 *) ac_try_echo=$ac_try;;
14008 esac
14009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14011 ac_status=$?
14012 grep -v '^ *+' conftest.er1 >conftest.err
14013 rm -f conftest.er1
14014 cat conftest.err >&5
14015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14016 (exit $ac_status); } >/dev/null && {
14017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14018 test ! -s conftest.err
14019 }; then
14020 ac_header_preproc=yes
14021 else
14022 echo "$as_me: failed program was:" >&5
14023 sed 's/^/| /' conftest.$ac_ext >&5
14024
14025 ac_header_preproc=no
14026 fi
14027
14028 rm -f conftest.err conftest.$ac_ext
14029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14030 echo "${ECHO_T}$ac_header_preproc" >&6; }
14031
14032 # So? What about this header?
14033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14034 yes:no: )
14035 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14036 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14037 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14038 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14039 ac_header_preproc=yes
14040 ;;
14041 no:yes:* )
14042 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14043 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14044 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14045 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14046 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14047 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14048 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14049 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14050 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14051 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14053 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14054
14055 ;;
14056 esac
14057 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14058 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14059 if test "${ac_cv_header_gpm_h+set}" = set; then
14060 echo $ECHO_N "(cached) $ECHO_C" >&6
14061 else
14062 ac_cv_header_gpm_h=$ac_header_preproc
14063 fi
14064 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14065 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14066
14067 fi
14068 if test $ac_cv_header_gpm_h = yes; then
14069 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14070 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14071 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14072 echo $ECHO_N "(cached) $ECHO_C" >&6
14073 else
14074 ac_check_lib_save_LIBS=$LIBS
14075 LIBS="-lgpm $LIBS"
14076 cat >conftest.$ac_ext <<_ACEOF
14077 /* confdefs.h. */
14078 _ACEOF
14079 cat confdefs.h >>conftest.$ac_ext
14080 cat >>conftest.$ac_ext <<_ACEOF
14081 /* end confdefs.h. */
14082
14083 /* Override any GCC internal prototype to avoid an error.
14084 Use char because int might match the return type of a GCC
14085 builtin and then its argument prototype would still apply. */
14086 #ifdef __cplusplus
14087 extern "C"
14088 #endif
14089 char Gpm_Open ();
14090 int
14091 main ()
14092 {
14093 return Gpm_Open ();
14094 ;
14095 return 0;
14096 }
14097 _ACEOF
14098 rm -f conftest.$ac_objext conftest$ac_exeext
14099 if { (ac_try="$ac_link"
14100 case "(($ac_try" in
14101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14102 *) ac_try_echo=$ac_try;;
14103 esac
14104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14105 (eval "$ac_link") 2>conftest.er1
14106 ac_status=$?
14107 grep -v '^ *+' conftest.er1 >conftest.err
14108 rm -f conftest.er1
14109 cat conftest.err >&5
14110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14111 (exit $ac_status); } && {
14112 test -z "$ac_c_werror_flag" ||
14113 test ! -s conftest.err
14114 } && test -s conftest$ac_exeext &&
14115 $as_test_x conftest$ac_exeext; then
14116 ac_cv_lib_gpm_Gpm_Open=yes
14117 else
14118 echo "$as_me: failed program was:" >&5
14119 sed 's/^/| /' conftest.$ac_ext >&5
14120
14121 ac_cv_lib_gpm_Gpm_Open=no
14122 fi
14123
14124 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14125 conftest$ac_exeext conftest.$ac_ext
14126 LIBS=$ac_check_lib_save_LIBS
14127 fi
14128 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14129 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14130 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14131 HAVE_GPM=yes
14132 fi
14133
14134 fi
14135
14136
14137 fi
14138
14139 if test "${HAVE_GPM}" = "yes"; then
14140
14141 cat >>confdefs.h <<\_ACEOF
14142 #define HAVE_GPM 1
14143 _ACEOF
14144
14145 fi
14146
14147 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14148 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14149 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14150 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14151 echo $ECHO_N "(cached) $ECHO_C" >&6
14152 fi
14153 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14154 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14155 else
14156 # Is the header compilable?
14157 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14158 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14159 cat >conftest.$ac_ext <<_ACEOF
14160 /* confdefs.h. */
14161 _ACEOF
14162 cat confdefs.h >>conftest.$ac_ext
14163 cat >>conftest.$ac_ext <<_ACEOF
14164 /* end confdefs.h. */
14165 $ac_includes_default
14166 #include <malloc/malloc.h>
14167 _ACEOF
14168 rm -f conftest.$ac_objext
14169 if { (ac_try="$ac_compile"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_compile") 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest.$ac_objext; then
14185 ac_header_compiler=yes
14186 else
14187 echo "$as_me: failed program was:" >&5
14188 sed 's/^/| /' conftest.$ac_ext >&5
14189
14190 ac_header_compiler=no
14191 fi
14192
14193 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14194 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14195 echo "${ECHO_T}$ac_header_compiler" >&6; }
14196
14197 # Is the header present?
14198 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14199 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <malloc/malloc.h>
14207 _ACEOF
14208 if { (ac_try="$ac_cpp conftest.$ac_ext"
14209 case "(($ac_try" in
14210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14211 *) ac_try_echo=$ac_try;;
14212 esac
14213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14214 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14215 ac_status=$?
14216 grep -v '^ *+' conftest.er1 >conftest.err
14217 rm -f conftest.er1
14218 cat conftest.err >&5
14219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14220 (exit $ac_status); } >/dev/null && {
14221 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14222 test ! -s conftest.err
14223 }; then
14224 ac_header_preproc=yes
14225 else
14226 echo "$as_me: failed program was:" >&5
14227 sed 's/^/| /' conftest.$ac_ext >&5
14228
14229 ac_header_preproc=no
14230 fi
14231
14232 rm -f conftest.err conftest.$ac_ext
14233 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14234 echo "${ECHO_T}$ac_header_preproc" >&6; }
14235
14236 # So? What about this header?
14237 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14238 yes:no: )
14239 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14240 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14241 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14242 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14243 ac_header_preproc=yes
14244 ;;
14245 no:yes:* )
14246 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14247 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14248 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14249 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14250 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14251 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14252 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14253 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14254 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14255 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14256 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14257 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14258
14259 ;;
14260 esac
14261 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14262 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14263 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14264 echo $ECHO_N "(cached) $ECHO_C" >&6
14265 else
14266 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14267 fi
14268 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14269 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14270
14271 fi
14272 if test $ac_cv_header_malloc_malloc_h = yes; then
14273
14274 cat >>confdefs.h <<\_ACEOF
14275 #define HAVE_MALLOC_MALLOC_H 1
14276 _ACEOF
14277
14278 fi
14279
14280
14281
14282 ### Use Mac OS X Carbon API to implement GUI.
14283 if test "${HAVE_CARBON}" = "yes"; then
14284
14285 cat >>confdefs.h <<\_ACEOF
14286 #define HAVE_CARBON 1
14287 _ACEOF
14288
14289 ## Specify the install directory
14290 carbon_appdir=
14291 if test "${carbon_appdir_x}" != ""; then
14292 case ${carbon_appdir_x} in
14293 y | ye | yes) carbon_appdir=/Applications ;;
14294 * ) carbon_appdir=${carbon_appdir_x} ;;
14295 esac
14296 fi
14297 # We also have mouse menus.
14298 HAVE_MENUS=yes
14299 fi
14300
14301 ### Use session management (-lSM -lICE) if available
14302 HAVE_X_SM=no
14303 if test "${HAVE_X11}" = "yes"; then
14304 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14305 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14306 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14307 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14308 echo $ECHO_N "(cached) $ECHO_C" >&6
14309 fi
14310 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14311 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14312 else
14313 # Is the header compilable?
14314 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14315 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14316 cat >conftest.$ac_ext <<_ACEOF
14317 /* confdefs.h. */
14318 _ACEOF
14319 cat confdefs.h >>conftest.$ac_ext
14320 cat >>conftest.$ac_ext <<_ACEOF
14321 /* end confdefs.h. */
14322 $ac_includes_default
14323 #include <X11/SM/SMlib.h>
14324 _ACEOF
14325 rm -f conftest.$ac_objext
14326 if { (ac_try="$ac_compile"
14327 case "(($ac_try" in
14328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14329 *) ac_try_echo=$ac_try;;
14330 esac
14331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14332 (eval "$ac_compile") 2>conftest.er1
14333 ac_status=$?
14334 grep -v '^ *+' conftest.er1 >conftest.err
14335 rm -f conftest.er1
14336 cat conftest.err >&5
14337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14338 (exit $ac_status); } && {
14339 test -z "$ac_c_werror_flag" ||
14340 test ! -s conftest.err
14341 } && test -s conftest.$ac_objext; then
14342 ac_header_compiler=yes
14343 else
14344 echo "$as_me: failed program was:" >&5
14345 sed 's/^/| /' conftest.$ac_ext >&5
14346
14347 ac_header_compiler=no
14348 fi
14349
14350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14352 echo "${ECHO_T}$ac_header_compiler" >&6; }
14353
14354 # Is the header present?
14355 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14356 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14357 cat >conftest.$ac_ext <<_ACEOF
14358 /* confdefs.h. */
14359 _ACEOF
14360 cat confdefs.h >>conftest.$ac_ext
14361 cat >>conftest.$ac_ext <<_ACEOF
14362 /* end confdefs.h. */
14363 #include <X11/SM/SMlib.h>
14364 _ACEOF
14365 if { (ac_try="$ac_cpp conftest.$ac_ext"
14366 case "(($ac_try" in
14367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14368 *) ac_try_echo=$ac_try;;
14369 esac
14370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14372 ac_status=$?
14373 grep -v '^ *+' conftest.er1 >conftest.err
14374 rm -f conftest.er1
14375 cat conftest.err >&5
14376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14377 (exit $ac_status); } >/dev/null && {
14378 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14379 test ! -s conftest.err
14380 }; then
14381 ac_header_preproc=yes
14382 else
14383 echo "$as_me: failed program was:" >&5
14384 sed 's/^/| /' conftest.$ac_ext >&5
14385
14386 ac_header_preproc=no
14387 fi
14388
14389 rm -f conftest.err conftest.$ac_ext
14390 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14391 echo "${ECHO_T}$ac_header_preproc" >&6; }
14392
14393 # So? What about this header?
14394 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14395 yes:no: )
14396 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14397 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14398 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14399 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14400 ac_header_preproc=yes
14401 ;;
14402 no:yes:* )
14403 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14404 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14405 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14406 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14407 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14408 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14409 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14410 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14411 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14412 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14413 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14414 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14415
14416 ;;
14417 esac
14418 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14419 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14420 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14421 echo $ECHO_N "(cached) $ECHO_C" >&6
14422 else
14423 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14424 fi
14425 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14426 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14427
14428 fi
14429 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14430 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14431 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14432 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14433 echo $ECHO_N "(cached) $ECHO_C" >&6
14434 else
14435 ac_check_lib_save_LIBS=$LIBS
14436 LIBS="-lSM -lICE $LIBS"
14437 cat >conftest.$ac_ext <<_ACEOF
14438 /* confdefs.h. */
14439 _ACEOF
14440 cat confdefs.h >>conftest.$ac_ext
14441 cat >>conftest.$ac_ext <<_ACEOF
14442 /* end confdefs.h. */
14443
14444 /* Override any GCC internal prototype to avoid an error.
14445 Use char because int might match the return type of a GCC
14446 builtin and then its argument prototype would still apply. */
14447 #ifdef __cplusplus
14448 extern "C"
14449 #endif
14450 char SmcOpenConnection ();
14451 int
14452 main ()
14453 {
14454 return SmcOpenConnection ();
14455 ;
14456 return 0;
14457 }
14458 _ACEOF
14459 rm -f conftest.$ac_objext conftest$ac_exeext
14460 if { (ac_try="$ac_link"
14461 case "(($ac_try" in
14462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14463 *) ac_try_echo=$ac_try;;
14464 esac
14465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14466 (eval "$ac_link") 2>conftest.er1
14467 ac_status=$?
14468 grep -v '^ *+' conftest.er1 >conftest.err
14469 rm -f conftest.er1
14470 cat conftest.err >&5
14471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14472 (exit $ac_status); } && {
14473 test -z "$ac_c_werror_flag" ||
14474 test ! -s conftest.err
14475 } && test -s conftest$ac_exeext &&
14476 $as_test_x conftest$ac_exeext; then
14477 ac_cv_lib_SM_SmcOpenConnection=yes
14478 else
14479 echo "$as_me: failed program was:" >&5
14480 sed 's/^/| /' conftest.$ac_ext >&5
14481
14482 ac_cv_lib_SM_SmcOpenConnection=no
14483 fi
14484
14485 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14486 conftest$ac_exeext conftest.$ac_ext
14487 LIBS=$ac_check_lib_save_LIBS
14488 fi
14489 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14490 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14491 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14492 HAVE_X_SM=yes
14493 fi
14494
14495 fi
14496
14497
14498
14499 if test "${HAVE_X_SM}" = "yes"; then
14500
14501 cat >>confdefs.h <<\_ACEOF
14502 #define HAVE_X_SM 1
14503 _ACEOF
14504
14505 case "$LIBS" in
14506 *-lSM*) ;;
14507 *) LIBS="-lSM -lICE $LIBS" ;;
14508 esac
14509 fi
14510 fi
14511
14512 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14513 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14514 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14515 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14516 echo $ECHO_N "(cached) $ECHO_C" >&6
14517 else
14518 cat >conftest.$ac_ext <<_ACEOF
14519 /* confdefs.h. */
14520 _ACEOF
14521 cat confdefs.h >>conftest.$ac_ext
14522 cat >>conftest.$ac_ext <<_ACEOF
14523 /* end confdefs.h. */
14524 #include <netdb.h>
14525 int
14526 main ()
14527 {
14528 return h_errno;
14529 ;
14530 return 0;
14531 }
14532 _ACEOF
14533 rm -f conftest.$ac_objext conftest$ac_exeext
14534 if { (ac_try="$ac_link"
14535 case "(($ac_try" in
14536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537 *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540 (eval "$ac_link") 2>conftest.er1
14541 ac_status=$?
14542 grep -v '^ *+' conftest.er1 >conftest.err
14543 rm -f conftest.er1
14544 cat conftest.err >&5
14545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14546 (exit $ac_status); } && {
14547 test -z "$ac_c_werror_flag" ||
14548 test ! -s conftest.err
14549 } && test -s conftest$ac_exeext &&
14550 $as_test_x conftest$ac_exeext; then
14551 emacs_cv_netdb_declares_h_errno=yes
14552 else
14553 echo "$as_me: failed program was:" >&5
14554 sed 's/^/| /' conftest.$ac_ext >&5
14555
14556 emacs_cv_netdb_declares_h_errno=no
14557 fi
14558
14559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14560 conftest$ac_exeext conftest.$ac_ext
14561 fi
14562 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14563 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14564 if test $emacs_cv_netdb_declares_h_errno = yes; then
14565
14566 cat >>confdefs.h <<\_ACEOF
14567 #define HAVE_H_ERRNO 1
14568 _ACEOF
14569
14570 fi
14571
14572 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14573 # for constant arguments. Useless!
14574 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14575 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14576 if test "${ac_cv_working_alloca_h+set}" = set; then
14577 echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579 cat >conftest.$ac_ext <<_ACEOF
14580 /* confdefs.h. */
14581 _ACEOF
14582 cat confdefs.h >>conftest.$ac_ext
14583 cat >>conftest.$ac_ext <<_ACEOF
14584 /* end confdefs.h. */
14585 #include <alloca.h>
14586 int
14587 main ()
14588 {
14589 char *p = (char *) alloca (2 * sizeof (int));
14590 if (p) return 0;
14591 ;
14592 return 0;
14593 }
14594 _ACEOF
14595 rm -f conftest.$ac_objext conftest$ac_exeext
14596 if { (ac_try="$ac_link"
14597 case "(($ac_try" in
14598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14599 *) ac_try_echo=$ac_try;;
14600 esac
14601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14602 (eval "$ac_link") 2>conftest.er1
14603 ac_status=$?
14604 grep -v '^ *+' conftest.er1 >conftest.err
14605 rm -f conftest.er1
14606 cat conftest.err >&5
14607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14608 (exit $ac_status); } && {
14609 test -z "$ac_c_werror_flag" ||
14610 test ! -s conftest.err
14611 } && test -s conftest$ac_exeext &&
14612 $as_test_x conftest$ac_exeext; then
14613 ac_cv_working_alloca_h=yes
14614 else
14615 echo "$as_me: failed program was:" >&5
14616 sed 's/^/| /' conftest.$ac_ext >&5
14617
14618 ac_cv_working_alloca_h=no
14619 fi
14620
14621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14622 conftest$ac_exeext conftest.$ac_ext
14623 fi
14624 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14625 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14626 if test $ac_cv_working_alloca_h = yes; then
14627
14628 cat >>confdefs.h <<\_ACEOF
14629 #define HAVE_ALLOCA_H 1
14630 _ACEOF
14631
14632 fi
14633
14634 { echo "$as_me:$LINENO: checking for alloca" >&5
14635 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14636 if test "${ac_cv_func_alloca_works+set}" = set; then
14637 echo $ECHO_N "(cached) $ECHO_C" >&6
14638 else
14639 cat >conftest.$ac_ext <<_ACEOF
14640 /* confdefs.h. */
14641 _ACEOF
14642 cat confdefs.h >>conftest.$ac_ext
14643 cat >>conftest.$ac_ext <<_ACEOF
14644 /* end confdefs.h. */
14645 #ifdef __GNUC__
14646 # define alloca __builtin_alloca
14647 #else
14648 # ifdef _MSC_VER
14649 # include <malloc.h>
14650 # define alloca _alloca
14651 # else
14652 # ifdef HAVE_ALLOCA_H
14653 # include <alloca.h>
14654 # else
14655 # ifdef _AIX
14656 #pragma alloca
14657 # else
14658 # ifndef alloca /* predefined by HP cc +Olibcalls */
14659 char *alloca ();
14660 # endif
14661 # endif
14662 # endif
14663 # endif
14664 #endif
14665
14666 int
14667 main ()
14668 {
14669 char *p = (char *) alloca (1);
14670 if (p) return 0;
14671 ;
14672 return 0;
14673 }
14674 _ACEOF
14675 rm -f conftest.$ac_objext conftest$ac_exeext
14676 if { (ac_try="$ac_link"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_link") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } && {
14689 test -z "$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 } && test -s conftest$ac_exeext &&
14692 $as_test_x conftest$ac_exeext; then
14693 ac_cv_func_alloca_works=yes
14694 else
14695 echo "$as_me: failed program was:" >&5
14696 sed 's/^/| /' conftest.$ac_ext >&5
14697
14698 ac_cv_func_alloca_works=no
14699 fi
14700
14701 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14702 conftest$ac_exeext conftest.$ac_ext
14703 fi
14704 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14705 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14706
14707 if test $ac_cv_func_alloca_works = yes; then
14708
14709 cat >>confdefs.h <<\_ACEOF
14710 #define HAVE_ALLOCA 1
14711 _ACEOF
14712
14713 else
14714 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14715 # that cause trouble. Some versions do not even contain alloca or
14716 # contain a buggy version. If you still want to use their alloca,
14717 # use ar to extract alloca.o from them instead of compiling alloca.c.
14718
14719 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14720
14721 cat >>confdefs.h <<\_ACEOF
14722 #define C_ALLOCA 1
14723 _ACEOF
14724
14725
14726 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14727 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14728 if test "${ac_cv_os_cray+set}" = set; then
14729 echo $ECHO_N "(cached) $ECHO_C" >&6
14730 else
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h. */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h. */
14737 #if defined CRAY && ! defined CRAY2
14738 webecray
14739 #else
14740 wenotbecray
14741 #endif
14742
14743 _ACEOF
14744 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14745 $EGREP "webecray" >/dev/null 2>&1; then
14746 ac_cv_os_cray=yes
14747 else
14748 ac_cv_os_cray=no
14749 fi
14750 rm -f conftest*
14751
14752 fi
14753 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14754 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14755 if test $ac_cv_os_cray = yes; then
14756 for ac_func in _getb67 GETB67 getb67; do
14757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14761 echo $ECHO_N "(cached) $ECHO_C" >&6
14762 else
14763 cat >conftest.$ac_ext <<_ACEOF
14764 /* confdefs.h. */
14765 _ACEOF
14766 cat confdefs.h >>conftest.$ac_ext
14767 cat >>conftest.$ac_ext <<_ACEOF
14768 /* end confdefs.h. */
14769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14771 #define $ac_func innocuous_$ac_func
14772
14773 /* System header to define __stub macros and hopefully few prototypes,
14774 which can conflict with char $ac_func (); below.
14775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14776 <limits.h> exists even on freestanding compilers. */
14777
14778 #ifdef __STDC__
14779 # include <limits.h>
14780 #else
14781 # include <assert.h>
14782 #endif
14783
14784 #undef $ac_func
14785
14786 /* Override any GCC internal prototype to avoid an error.
14787 Use char because int might match the return type of a GCC
14788 builtin and then its argument prototype would still apply. */
14789 #ifdef __cplusplus
14790 extern "C"
14791 #endif
14792 char $ac_func ();
14793 /* The GNU C library defines this for functions which it implements
14794 to always fail with ENOSYS. Some functions are actually named
14795 something starting with __ and the normal name is an alias. */
14796 #if defined __stub_$ac_func || defined __stub___$ac_func
14797 choke me
14798 #endif
14799
14800 int
14801 main ()
14802 {
14803 return $ac_func ();
14804 ;
14805 return 0;
14806 }
14807 _ACEOF
14808 rm -f conftest.$ac_objext conftest$ac_exeext
14809 if { (ac_try="$ac_link"
14810 case "(($ac_try" in
14811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14812 *) ac_try_echo=$ac_try;;
14813 esac
14814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14815 (eval "$ac_link") 2>conftest.er1
14816 ac_status=$?
14817 grep -v '^ *+' conftest.er1 >conftest.err
14818 rm -f conftest.er1
14819 cat conftest.err >&5
14820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14821 (exit $ac_status); } && {
14822 test -z "$ac_c_werror_flag" ||
14823 test ! -s conftest.err
14824 } && test -s conftest$ac_exeext &&
14825 $as_test_x conftest$ac_exeext; then
14826 eval "$as_ac_var=yes"
14827 else
14828 echo "$as_me: failed program was:" >&5
14829 sed 's/^/| /' conftest.$ac_ext >&5
14830
14831 eval "$as_ac_var=no"
14832 fi
14833
14834 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14835 conftest$ac_exeext conftest.$ac_ext
14836 fi
14837 ac_res=`eval echo '${'$as_ac_var'}'`
14838 { echo "$as_me:$LINENO: result: $ac_res" >&5
14839 echo "${ECHO_T}$ac_res" >&6; }
14840 if test `eval echo '${'$as_ac_var'}'` = yes; then
14841
14842 cat >>confdefs.h <<_ACEOF
14843 #define CRAY_STACKSEG_END $ac_func
14844 _ACEOF
14845
14846 break
14847 fi
14848
14849 done
14850 fi
14851
14852 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14853 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14854 if test "${ac_cv_c_stack_direction+set}" = set; then
14855 echo $ECHO_N "(cached) $ECHO_C" >&6
14856 else
14857 if test "$cross_compiling" = yes; then
14858 ac_cv_c_stack_direction=0
14859 else
14860 cat >conftest.$ac_ext <<_ACEOF
14861 /* confdefs.h. */
14862 _ACEOF
14863 cat confdefs.h >>conftest.$ac_ext
14864 cat >>conftest.$ac_ext <<_ACEOF
14865 /* end confdefs.h. */
14866 $ac_includes_default
14867 int
14868 find_stack_direction ()
14869 {
14870 static char *addr = 0;
14871 auto char dummy;
14872 if (addr == 0)
14873 {
14874 addr = &dummy;
14875 return find_stack_direction ();
14876 }
14877 else
14878 return (&dummy > addr) ? 1 : -1;
14879 }
14880
14881 int
14882 main ()
14883 {
14884 return find_stack_direction () < 0;
14885 }
14886 _ACEOF
14887 rm -f conftest$ac_exeext
14888 if { (ac_try="$ac_link"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_link") 2>&5
14895 ac_status=$?
14896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14897 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14898 { (case "(($ac_try" in
14899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14900 *) ac_try_echo=$ac_try;;
14901 esac
14902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14903 (eval "$ac_try") 2>&5
14904 ac_status=$?
14905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14906 (exit $ac_status); }; }; then
14907 ac_cv_c_stack_direction=1
14908 else
14909 echo "$as_me: program exited with status $ac_status" >&5
14910 echo "$as_me: failed program was:" >&5
14911 sed 's/^/| /' conftest.$ac_ext >&5
14912
14913 ( exit $ac_status )
14914 ac_cv_c_stack_direction=-1
14915 fi
14916 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14917 fi
14918
14919
14920 fi
14921 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14922 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14923
14924 cat >>confdefs.h <<_ACEOF
14925 #define STACK_DIRECTION $ac_cv_c_stack_direction
14926 _ACEOF
14927
14928
14929 fi
14930
14931
14932 if test x"$ac_cv_func_alloca_works" != xyes; then
14933 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
14934 echo "$as_me: error: a system implementation of alloca is required " >&2;}
14935 { (exit 1); exit 1; }; }
14936 fi
14937
14938 # fmod, logb, and frexp are found in -lm on most systems.
14939 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14940
14941 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14942 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14943 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14944 echo $ECHO_N "(cached) $ECHO_C" >&6
14945 else
14946 ac_check_lib_save_LIBS=$LIBS
14947 LIBS="-lm $LIBS"
14948 cat >conftest.$ac_ext <<_ACEOF
14949 /* confdefs.h. */
14950 _ACEOF
14951 cat confdefs.h >>conftest.$ac_ext
14952 cat >>conftest.$ac_ext <<_ACEOF
14953 /* end confdefs.h. */
14954
14955 /* Override any GCC internal prototype to avoid an error.
14956 Use char because int might match the return type of a GCC
14957 builtin and then its argument prototype would still apply. */
14958 #ifdef __cplusplus
14959 extern "C"
14960 #endif
14961 char sqrt ();
14962 int
14963 main ()
14964 {
14965 return sqrt ();
14966 ;
14967 return 0;
14968 }
14969 _ACEOF
14970 rm -f conftest.$ac_objext conftest$ac_exeext
14971 if { (ac_try="$ac_link"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14977 (eval "$ac_link") 2>conftest.er1
14978 ac_status=$?
14979 grep -v '^ *+' conftest.er1 >conftest.err
14980 rm -f conftest.er1
14981 cat conftest.err >&5
14982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14983 (exit $ac_status); } && {
14984 test -z "$ac_c_werror_flag" ||
14985 test ! -s conftest.err
14986 } && test -s conftest$ac_exeext &&
14987 $as_test_x conftest$ac_exeext; then
14988 ac_cv_lib_m_sqrt=yes
14989 else
14990 echo "$as_me: failed program was:" >&5
14991 sed 's/^/| /' conftest.$ac_ext >&5
14992
14993 ac_cv_lib_m_sqrt=no
14994 fi
14995
14996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14997 conftest$ac_exeext conftest.$ac_ext
14998 LIBS=$ac_check_lib_save_LIBS
14999 fi
15000 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15001 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15002 if test $ac_cv_lib_m_sqrt = yes; then
15003 cat >>confdefs.h <<_ACEOF
15004 #define HAVE_LIBM 1
15005 _ACEOF
15006
15007 LIBS="-lm $LIBS"
15008
15009 fi
15010
15011
15012 # Check for mail-locking functions in a "mail" library. Probably this should
15013 # have the same check as for liblockfile below.
15014
15015 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15016 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15017 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15018 echo $ECHO_N "(cached) $ECHO_C" >&6
15019 else
15020 ac_check_lib_save_LIBS=$LIBS
15021 LIBS="-lmail $LIBS"
15022 cat >conftest.$ac_ext <<_ACEOF
15023 /* confdefs.h. */
15024 _ACEOF
15025 cat confdefs.h >>conftest.$ac_ext
15026 cat >>conftest.$ac_ext <<_ACEOF
15027 /* end confdefs.h. */
15028
15029 /* Override any GCC internal prototype to avoid an error.
15030 Use char because int might match the return type of a GCC
15031 builtin and then its argument prototype would still apply. */
15032 #ifdef __cplusplus
15033 extern "C"
15034 #endif
15035 char maillock ();
15036 int
15037 main ()
15038 {
15039 return maillock ();
15040 ;
15041 return 0;
15042 }
15043 _ACEOF
15044 rm -f conftest.$ac_objext conftest$ac_exeext
15045 if { (ac_try="$ac_link"
15046 case "(($ac_try" in
15047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15048 *) ac_try_echo=$ac_try;;
15049 esac
15050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15051 (eval "$ac_link") 2>conftest.er1
15052 ac_status=$?
15053 grep -v '^ *+' conftest.er1 >conftest.err
15054 rm -f conftest.er1
15055 cat conftest.err >&5
15056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15057 (exit $ac_status); } && {
15058 test -z "$ac_c_werror_flag" ||
15059 test ! -s conftest.err
15060 } && test -s conftest$ac_exeext &&
15061 $as_test_x conftest$ac_exeext; then
15062 ac_cv_lib_mail_maillock=yes
15063 else
15064 echo "$as_me: failed program was:" >&5
15065 sed 's/^/| /' conftest.$ac_ext >&5
15066
15067 ac_cv_lib_mail_maillock=no
15068 fi
15069
15070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15071 conftest$ac_exeext conftest.$ac_ext
15072 LIBS=$ac_check_lib_save_LIBS
15073 fi
15074 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15075 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15076 if test $ac_cv_lib_mail_maillock = yes; then
15077 cat >>confdefs.h <<_ACEOF
15078 #define HAVE_LIBMAIL 1
15079 _ACEOF
15080
15081 LIBS="-lmail $LIBS"
15082
15083 fi
15084
15085
15086 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15087 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15088 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15089 echo $ECHO_N "(cached) $ECHO_C" >&6
15090 else
15091 ac_check_lib_save_LIBS=$LIBS
15092 LIBS="-llockfile $LIBS"
15093 cat >conftest.$ac_ext <<_ACEOF
15094 /* confdefs.h. */
15095 _ACEOF
15096 cat confdefs.h >>conftest.$ac_ext
15097 cat >>conftest.$ac_ext <<_ACEOF
15098 /* end confdefs.h. */
15099
15100 /* Override any GCC internal prototype to avoid an error.
15101 Use char because int might match the return type of a GCC
15102 builtin and then its argument prototype would still apply. */
15103 #ifdef __cplusplus
15104 extern "C"
15105 #endif
15106 char maillock ();
15107 int
15108 main ()
15109 {
15110 return maillock ();
15111 ;
15112 return 0;
15113 }
15114 _ACEOF
15115 rm -f conftest.$ac_objext conftest$ac_exeext
15116 if { (ac_try="$ac_link"
15117 case "(($ac_try" in
15118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15119 *) ac_try_echo=$ac_try;;
15120 esac
15121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15122 (eval "$ac_link") 2>conftest.er1
15123 ac_status=$?
15124 grep -v '^ *+' conftest.er1 >conftest.err
15125 rm -f conftest.er1
15126 cat conftest.err >&5
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); } && {
15129 test -z "$ac_c_werror_flag" ||
15130 test ! -s conftest.err
15131 } && test -s conftest$ac_exeext &&
15132 $as_test_x conftest$ac_exeext; then
15133 ac_cv_lib_lockfile_maillock=yes
15134 else
15135 echo "$as_me: failed program was:" >&5
15136 sed 's/^/| /' conftest.$ac_ext >&5
15137
15138 ac_cv_lib_lockfile_maillock=no
15139 fi
15140
15141 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15142 conftest$ac_exeext conftest.$ac_ext
15143 LIBS=$ac_check_lib_save_LIBS
15144 fi
15145 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15146 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15147 if test $ac_cv_lib_lockfile_maillock = yes; then
15148 cat >>confdefs.h <<_ACEOF
15149 #define HAVE_LIBLOCKFILE 1
15150 _ACEOF
15151
15152 LIBS="-llockfile $LIBS"
15153
15154 fi
15155
15156 # If we have the shared liblockfile, assume we must use it for mail
15157 # locking (e.g. Debian). If we couldn't link against liblockfile
15158 # (no liblockfile.a installed), ensure that we don't need to.
15159 if test "$ac_cv_lib_lockfile_maillock" = no; then
15160 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15161 set dummy liblockfile.so; ac_word=$2
15162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15164 if test "${ac_cv_prog_liblockfile+set}" = set; then
15165 echo $ECHO_N "(cached) $ECHO_C" >&6
15166 else
15167 if test -n "$liblockfile"; then
15168 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15169 else
15170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15171 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15172 for as_dir in $as_dummy
15173 do
15174 IFS=$as_save_IFS
15175 test -z "$as_dir" && as_dir=.
15176 for ac_exec_ext in '' $ac_executable_extensions; do
15177 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15178 ac_cv_prog_liblockfile="yes"
15179 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15180 break 2
15181 fi
15182 done
15183 done
15184 IFS=$as_save_IFS
15185
15186 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15187 fi
15188 fi
15189 liblockfile=$ac_cv_prog_liblockfile
15190 if test -n "$liblockfile"; then
15191 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15192 echo "${ECHO_T}$liblockfile" >&6; }
15193 else
15194 { echo "$as_me:$LINENO: result: no" >&5
15195 echo "${ECHO_T}no" >&6; }
15196 fi
15197
15198
15199 if test $ac_cv_prog_liblockfile = yes; then
15200 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15201 This probably means that movemail could lose mail.
15202 There may be a \`development' package to install containing liblockfile." >&5
15203 echo "$as_me: error: Shared liblockfile found but can't link against it.
15204 This probably means that movemail could lose mail.
15205 There may be a \`development' package to install containing liblockfile." >&2;}
15206 { (exit 1); exit 1; }; }
15207 else :
15208 fi
15209 fi
15210
15211 for ac_func in touchlock
15212 do
15213 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15214 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15215 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15216 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15217 echo $ECHO_N "(cached) $ECHO_C" >&6
15218 else
15219 cat >conftest.$ac_ext <<_ACEOF
15220 /* confdefs.h. */
15221 _ACEOF
15222 cat confdefs.h >>conftest.$ac_ext
15223 cat >>conftest.$ac_ext <<_ACEOF
15224 /* end confdefs.h. */
15225 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15226 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15227 #define $ac_func innocuous_$ac_func
15228
15229 /* System header to define __stub macros and hopefully few prototypes,
15230 which can conflict with char $ac_func (); below.
15231 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15232 <limits.h> exists even on freestanding compilers. */
15233
15234 #ifdef __STDC__
15235 # include <limits.h>
15236 #else
15237 # include <assert.h>
15238 #endif
15239
15240 #undef $ac_func
15241
15242 /* Override any GCC internal prototype to avoid an error.
15243 Use char because int might match the return type of a GCC
15244 builtin and then its argument prototype would still apply. */
15245 #ifdef __cplusplus
15246 extern "C"
15247 #endif
15248 char $ac_func ();
15249 /* The GNU C library defines this for functions which it implements
15250 to always fail with ENOSYS. Some functions are actually named
15251 something starting with __ and the normal name is an alias. */
15252 #if defined __stub_$ac_func || defined __stub___$ac_func
15253 choke me
15254 #endif
15255
15256 int
15257 main ()
15258 {
15259 return $ac_func ();
15260 ;
15261 return 0;
15262 }
15263 _ACEOF
15264 rm -f conftest.$ac_objext conftest$ac_exeext
15265 if { (ac_try="$ac_link"
15266 case "(($ac_try" in
15267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15268 *) ac_try_echo=$ac_try;;
15269 esac
15270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15271 (eval "$ac_link") 2>conftest.er1
15272 ac_status=$?
15273 grep -v '^ *+' conftest.er1 >conftest.err
15274 rm -f conftest.er1
15275 cat conftest.err >&5
15276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15277 (exit $ac_status); } && {
15278 test -z "$ac_c_werror_flag" ||
15279 test ! -s conftest.err
15280 } && test -s conftest$ac_exeext &&
15281 $as_test_x conftest$ac_exeext; then
15282 eval "$as_ac_var=yes"
15283 else
15284 echo "$as_me: failed program was:" >&5
15285 sed 's/^/| /' conftest.$ac_ext >&5
15286
15287 eval "$as_ac_var=no"
15288 fi
15289
15290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15291 conftest$ac_exeext conftest.$ac_ext
15292 fi
15293 ac_res=`eval echo '${'$as_ac_var'}'`
15294 { echo "$as_me:$LINENO: result: $ac_res" >&5
15295 echo "${ECHO_T}$ac_res" >&6; }
15296 if test `eval echo '${'$as_ac_var'}'` = yes; then
15297 cat >>confdefs.h <<_ACEOF
15298 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15299 _ACEOF
15300
15301 fi
15302 done
15303
15304
15305 for ac_header in maillock.h
15306 do
15307 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15308 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15309 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15310 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15311 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 fi
15314 ac_res=`eval echo '${'$as_ac_Header'}'`
15315 { echo "$as_me:$LINENO: result: $ac_res" >&5
15316 echo "${ECHO_T}$ac_res" >&6; }
15317 else
15318 # Is the header compilable?
15319 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15320 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15321 cat >conftest.$ac_ext <<_ACEOF
15322 /* confdefs.h. */
15323 _ACEOF
15324 cat confdefs.h >>conftest.$ac_ext
15325 cat >>conftest.$ac_ext <<_ACEOF
15326 /* end confdefs.h. */
15327 $ac_includes_default
15328 #include <$ac_header>
15329 _ACEOF
15330 rm -f conftest.$ac_objext
15331 if { (ac_try="$ac_compile"
15332 case "(($ac_try" in
15333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15334 *) ac_try_echo=$ac_try;;
15335 esac
15336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15337 (eval "$ac_compile") 2>conftest.er1
15338 ac_status=$?
15339 grep -v '^ *+' conftest.er1 >conftest.err
15340 rm -f conftest.er1
15341 cat conftest.err >&5
15342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15343 (exit $ac_status); } && {
15344 test -z "$ac_c_werror_flag" ||
15345 test ! -s conftest.err
15346 } && test -s conftest.$ac_objext; then
15347 ac_header_compiler=yes
15348 else
15349 echo "$as_me: failed program was:" >&5
15350 sed 's/^/| /' conftest.$ac_ext >&5
15351
15352 ac_header_compiler=no
15353 fi
15354
15355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15356 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15357 echo "${ECHO_T}$ac_header_compiler" >&6; }
15358
15359 # Is the header present?
15360 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15361 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15362 cat >conftest.$ac_ext <<_ACEOF
15363 /* confdefs.h. */
15364 _ACEOF
15365 cat confdefs.h >>conftest.$ac_ext
15366 cat >>conftest.$ac_ext <<_ACEOF
15367 /* end confdefs.h. */
15368 #include <$ac_header>
15369 _ACEOF
15370 if { (ac_try="$ac_cpp conftest.$ac_ext"
15371 case "(($ac_try" in
15372 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15373 *) ac_try_echo=$ac_try;;
15374 esac
15375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15376 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15377 ac_status=$?
15378 grep -v '^ *+' conftest.er1 >conftest.err
15379 rm -f conftest.er1
15380 cat conftest.err >&5
15381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15382 (exit $ac_status); } >/dev/null && {
15383 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15384 test ! -s conftest.err
15385 }; then
15386 ac_header_preproc=yes
15387 else
15388 echo "$as_me: failed program was:" >&5
15389 sed 's/^/| /' conftest.$ac_ext >&5
15390
15391 ac_header_preproc=no
15392 fi
15393
15394 rm -f conftest.err conftest.$ac_ext
15395 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15396 echo "${ECHO_T}$ac_header_preproc" >&6; }
15397
15398 # So? What about this header?
15399 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15400 yes:no: )
15401 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15402 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15403 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15404 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15405 ac_header_preproc=yes
15406 ;;
15407 no:yes:* )
15408 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15409 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15410 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15411 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15412 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15413 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15414 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15415 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15416 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15417 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15418 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15419 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15420
15421 ;;
15422 esac
15423 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15424 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15425 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15426 echo $ECHO_N "(cached) $ECHO_C" >&6
15427 else
15428 eval "$as_ac_Header=\$ac_header_preproc"
15429 fi
15430 ac_res=`eval echo '${'$as_ac_Header'}'`
15431 { echo "$as_me:$LINENO: result: $ac_res" >&5
15432 echo "${ECHO_T}$ac_res" >&6; }
15433
15434 fi
15435 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15436 cat >>confdefs.h <<_ACEOF
15437 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15438 _ACEOF
15439
15440 fi
15441
15442 done
15443
15444
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 for ac_func in gethostname getdomainname dup2 \
15514 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15515 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15516 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15517 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15518 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15519 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15520 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15521 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15522 do
15523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15527 echo $ECHO_N "(cached) $ECHO_C" >&6
15528 else
15529 cat >conftest.$ac_ext <<_ACEOF
15530 /* confdefs.h. */
15531 _ACEOF
15532 cat confdefs.h >>conftest.$ac_ext
15533 cat >>conftest.$ac_ext <<_ACEOF
15534 /* end confdefs.h. */
15535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15537 #define $ac_func innocuous_$ac_func
15538
15539 /* System header to define __stub macros and hopefully few prototypes,
15540 which can conflict with char $ac_func (); below.
15541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15542 <limits.h> exists even on freestanding compilers. */
15543
15544 #ifdef __STDC__
15545 # include <limits.h>
15546 #else
15547 # include <assert.h>
15548 #endif
15549
15550 #undef $ac_func
15551
15552 /* Override any GCC internal prototype to avoid an error.
15553 Use char because int might match the return type of a GCC
15554 builtin and then its argument prototype would still apply. */
15555 #ifdef __cplusplus
15556 extern "C"
15557 #endif
15558 char $ac_func ();
15559 /* The GNU C library defines this for functions which it implements
15560 to always fail with ENOSYS. Some functions are actually named
15561 something starting with __ and the normal name is an alias. */
15562 #if defined __stub_$ac_func || defined __stub___$ac_func
15563 choke me
15564 #endif
15565
15566 int
15567 main ()
15568 {
15569 return $ac_func ();
15570 ;
15571 return 0;
15572 }
15573 _ACEOF
15574 rm -f conftest.$ac_objext conftest$ac_exeext
15575 if { (ac_try="$ac_link"
15576 case "(($ac_try" in
15577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15578 *) ac_try_echo=$ac_try;;
15579 esac
15580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15581 (eval "$ac_link") 2>conftest.er1
15582 ac_status=$?
15583 grep -v '^ *+' conftest.er1 >conftest.err
15584 rm -f conftest.er1
15585 cat conftest.err >&5
15586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15587 (exit $ac_status); } && {
15588 test -z "$ac_c_werror_flag" ||
15589 test ! -s conftest.err
15590 } && test -s conftest$ac_exeext &&
15591 $as_test_x conftest$ac_exeext; then
15592 eval "$as_ac_var=yes"
15593 else
15594 echo "$as_me: failed program was:" >&5
15595 sed 's/^/| /' conftest.$ac_ext >&5
15596
15597 eval "$as_ac_var=no"
15598 fi
15599
15600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15601 conftest$ac_exeext conftest.$ac_ext
15602 fi
15603 ac_res=`eval echo '${'$as_ac_var'}'`
15604 { echo "$as_me:$LINENO: result: $ac_res" >&5
15605 echo "${ECHO_T}$ac_res" >&6; }
15606 if test `eval echo '${'$as_ac_var'}'` = yes; then
15607 cat >>confdefs.h <<_ACEOF
15608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15609 _ACEOF
15610
15611 fi
15612 done
15613
15614
15615
15616 for ac_header in sys/un.h
15617 do
15618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15619 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15623 echo $ECHO_N "(cached) $ECHO_C" >&6
15624 fi
15625 ac_res=`eval echo '${'$as_ac_Header'}'`
15626 { echo "$as_me:$LINENO: result: $ac_res" >&5
15627 echo "${ECHO_T}$ac_res" >&6; }
15628 else
15629 # Is the header compilable?
15630 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15631 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15632 cat >conftest.$ac_ext <<_ACEOF
15633 /* confdefs.h. */
15634 _ACEOF
15635 cat confdefs.h >>conftest.$ac_ext
15636 cat >>conftest.$ac_ext <<_ACEOF
15637 /* end confdefs.h. */
15638 $ac_includes_default
15639 #include <$ac_header>
15640 _ACEOF
15641 rm -f conftest.$ac_objext
15642 if { (ac_try="$ac_compile"
15643 case "(($ac_try" in
15644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15645 *) ac_try_echo=$ac_try;;
15646 esac
15647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15648 (eval "$ac_compile") 2>conftest.er1
15649 ac_status=$?
15650 grep -v '^ *+' conftest.er1 >conftest.err
15651 rm -f conftest.er1
15652 cat conftest.err >&5
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); } && {
15655 test -z "$ac_c_werror_flag" ||
15656 test ! -s conftest.err
15657 } && test -s conftest.$ac_objext; then
15658 ac_header_compiler=yes
15659 else
15660 echo "$as_me: failed program was:" >&5
15661 sed 's/^/| /' conftest.$ac_ext >&5
15662
15663 ac_header_compiler=no
15664 fi
15665
15666 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15667 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15668 echo "${ECHO_T}$ac_header_compiler" >&6; }
15669
15670 # Is the header present?
15671 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15672 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15673 cat >conftest.$ac_ext <<_ACEOF
15674 /* confdefs.h. */
15675 _ACEOF
15676 cat confdefs.h >>conftest.$ac_ext
15677 cat >>conftest.$ac_ext <<_ACEOF
15678 /* end confdefs.h. */
15679 #include <$ac_header>
15680 _ACEOF
15681 if { (ac_try="$ac_cpp conftest.$ac_ext"
15682 case "(($ac_try" in
15683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684 *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15688 ac_status=$?
15689 grep -v '^ *+' conftest.er1 >conftest.err
15690 rm -f conftest.er1
15691 cat conftest.err >&5
15692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693 (exit $ac_status); } >/dev/null && {
15694 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15695 test ! -s conftest.err
15696 }; then
15697 ac_header_preproc=yes
15698 else
15699 echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702 ac_header_preproc=no
15703 fi
15704
15705 rm -f conftest.err conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15707 echo "${ECHO_T}$ac_header_preproc" >&6; }
15708
15709 # So? What about this header?
15710 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15711 yes:no: )
15712 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15713 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15715 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15716 ac_header_preproc=yes
15717 ;;
15718 no:yes:* )
15719 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15720 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15721 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15722 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15723 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15724 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15725 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15726 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15728 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15730 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15731
15732 ;;
15733 esac
15734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15737 echo $ECHO_N "(cached) $ECHO_C" >&6
15738 else
15739 eval "$as_ac_Header=\$ac_header_preproc"
15740 fi
15741 ac_res=`eval echo '${'$as_ac_Header'}'`
15742 { echo "$as_me:$LINENO: result: $ac_res" >&5
15743 echo "${ECHO_T}$ac_res" >&6; }
15744
15745 fi
15746 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15747 cat >>confdefs.h <<_ACEOF
15748 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15749 _ACEOF
15750
15751 fi
15752
15753 done
15754
15755
15756
15757
15758
15759
15760 for ac_header in $ac_header_list
15761 do
15762 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15763 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15764 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15765 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15766 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15767 echo $ECHO_N "(cached) $ECHO_C" >&6
15768 fi
15769 ac_res=`eval echo '${'$as_ac_Header'}'`
15770 { echo "$as_me:$LINENO: result: $ac_res" >&5
15771 echo "${ECHO_T}$ac_res" >&6; }
15772 else
15773 # Is the header compilable?
15774 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15775 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15776 cat >conftest.$ac_ext <<_ACEOF
15777 /* confdefs.h. */
15778 _ACEOF
15779 cat confdefs.h >>conftest.$ac_ext
15780 cat >>conftest.$ac_ext <<_ACEOF
15781 /* end confdefs.h. */
15782 $ac_includes_default
15783 #include <$ac_header>
15784 _ACEOF
15785 rm -f conftest.$ac_objext
15786 if { (ac_try="$ac_compile"
15787 case "(($ac_try" in
15788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15789 *) ac_try_echo=$ac_try;;
15790 esac
15791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15792 (eval "$ac_compile") 2>conftest.er1
15793 ac_status=$?
15794 grep -v '^ *+' conftest.er1 >conftest.err
15795 rm -f conftest.er1
15796 cat conftest.err >&5
15797 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15798 (exit $ac_status); } && {
15799 test -z "$ac_c_werror_flag" ||
15800 test ! -s conftest.err
15801 } && test -s conftest.$ac_objext; then
15802 ac_header_compiler=yes
15803 else
15804 echo "$as_me: failed program was:" >&5
15805 sed 's/^/| /' conftest.$ac_ext >&5
15806
15807 ac_header_compiler=no
15808 fi
15809
15810 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15811 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15812 echo "${ECHO_T}$ac_header_compiler" >&6; }
15813
15814 # Is the header present?
15815 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15816 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15817 cat >conftest.$ac_ext <<_ACEOF
15818 /* confdefs.h. */
15819 _ACEOF
15820 cat confdefs.h >>conftest.$ac_ext
15821 cat >>conftest.$ac_ext <<_ACEOF
15822 /* end confdefs.h. */
15823 #include <$ac_header>
15824 _ACEOF
15825 if { (ac_try="$ac_cpp conftest.$ac_ext"
15826 case "(($ac_try" in
15827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15828 *) ac_try_echo=$ac_try;;
15829 esac
15830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15831 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15832 ac_status=$?
15833 grep -v '^ *+' conftest.er1 >conftest.err
15834 rm -f conftest.er1
15835 cat conftest.err >&5
15836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15837 (exit $ac_status); } >/dev/null && {
15838 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15839 test ! -s conftest.err
15840 }; then
15841 ac_header_preproc=yes
15842 else
15843 echo "$as_me: failed program was:" >&5
15844 sed 's/^/| /' conftest.$ac_ext >&5
15845
15846 ac_header_preproc=no
15847 fi
15848
15849 rm -f conftest.err conftest.$ac_ext
15850 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15851 echo "${ECHO_T}$ac_header_preproc" >&6; }
15852
15853 # So? What about this header?
15854 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15855 yes:no: )
15856 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15857 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15858 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15859 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15860 ac_header_preproc=yes
15861 ;;
15862 no:yes:* )
15863 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15864 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15865 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15866 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15867 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15868 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15870 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15873 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15874 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15875
15876 ;;
15877 esac
15878 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15879 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15880 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15881 echo $ECHO_N "(cached) $ECHO_C" >&6
15882 else
15883 eval "$as_ac_Header=\$ac_header_preproc"
15884 fi
15885 ac_res=`eval echo '${'$as_ac_Header'}'`
15886 { echo "$as_me:$LINENO: result: $ac_res" >&5
15887 echo "${ECHO_T}$ac_res" >&6; }
15888
15889 fi
15890 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15891 cat >>confdefs.h <<_ACEOF
15892 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15893 _ACEOF
15894
15895 fi
15896
15897 done
15898
15899
15900
15901
15902
15903
15904
15905
15906
15907 for ac_func in $ac_func_list
15908 do
15909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15913 echo $ECHO_N "(cached) $ECHO_C" >&6
15914 else
15915 cat >conftest.$ac_ext <<_ACEOF
15916 /* confdefs.h. */
15917 _ACEOF
15918 cat confdefs.h >>conftest.$ac_ext
15919 cat >>conftest.$ac_ext <<_ACEOF
15920 /* end confdefs.h. */
15921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15922 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15923 #define $ac_func innocuous_$ac_func
15924
15925 /* System header to define __stub macros and hopefully few prototypes,
15926 which can conflict with char $ac_func (); below.
15927 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15928 <limits.h> exists even on freestanding compilers. */
15929
15930 #ifdef __STDC__
15931 # include <limits.h>
15932 #else
15933 # include <assert.h>
15934 #endif
15935
15936 #undef $ac_func
15937
15938 /* Override any GCC internal prototype to avoid an error.
15939 Use char because int might match the return type of a GCC
15940 builtin and then its argument prototype would still apply. */
15941 #ifdef __cplusplus
15942 extern "C"
15943 #endif
15944 char $ac_func ();
15945 /* The GNU C library defines this for functions which it implements
15946 to always fail with ENOSYS. Some functions are actually named
15947 something starting with __ and the normal name is an alias. */
15948 #if defined __stub_$ac_func || defined __stub___$ac_func
15949 choke me
15950 #endif
15951
15952 int
15953 main ()
15954 {
15955 return $ac_func ();
15956 ;
15957 return 0;
15958 }
15959 _ACEOF
15960 rm -f conftest.$ac_objext conftest$ac_exeext
15961 if { (ac_try="$ac_link"
15962 case "(($ac_try" in
15963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15964 *) ac_try_echo=$ac_try;;
15965 esac
15966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15967 (eval "$ac_link") 2>conftest.er1
15968 ac_status=$?
15969 grep -v '^ *+' conftest.er1 >conftest.err
15970 rm -f conftest.er1
15971 cat conftest.err >&5
15972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15973 (exit $ac_status); } && {
15974 test -z "$ac_c_werror_flag" ||
15975 test ! -s conftest.err
15976 } && test -s conftest$ac_exeext &&
15977 $as_test_x conftest$ac_exeext; then
15978 eval "$as_ac_var=yes"
15979 else
15980 echo "$as_me: failed program was:" >&5
15981 sed 's/^/| /' conftest.$ac_ext >&5
15982
15983 eval "$as_ac_var=no"
15984 fi
15985
15986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15987 conftest$ac_exeext conftest.$ac_ext
15988 fi
15989 ac_res=`eval echo '${'$as_ac_var'}'`
15990 { echo "$as_me:$LINENO: result: $ac_res" >&5
15991 echo "${ECHO_T}$ac_res" >&6; }
15992 if test `eval echo '${'$as_ac_var'}'` = yes; then
15993 cat >>confdefs.h <<_ACEOF
15994 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15995 _ACEOF
15996
15997 fi
15998 done
15999
16000
16001
16002
16003
16004
16005
16006
16007
16008
16009
16010
16011
16012
16013
16014
16015
16016 { echo "$as_me:$LINENO: checking for working mktime" >&5
16017 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16018 if test "${ac_cv_func_working_mktime+set}" = set; then
16019 echo $ECHO_N "(cached) $ECHO_C" >&6
16020 else
16021 if test "$cross_compiling" = yes; then
16022 ac_cv_func_working_mktime=no
16023 else
16024 cat >conftest.$ac_ext <<_ACEOF
16025 /* confdefs.h. */
16026 _ACEOF
16027 cat confdefs.h >>conftest.$ac_ext
16028 cat >>conftest.$ac_ext <<_ACEOF
16029 /* end confdefs.h. */
16030 /* Test program from Paul Eggert and Tony Leneis. */
16031 #ifdef TIME_WITH_SYS_TIME
16032 # include <sys/time.h>
16033 # include <time.h>
16034 #else
16035 # ifdef HAVE_SYS_TIME_H
16036 # include <sys/time.h>
16037 # else
16038 # include <time.h>
16039 # endif
16040 #endif
16041
16042 #include <stdlib.h>
16043
16044 #ifdef HAVE_UNISTD_H
16045 # include <unistd.h>
16046 #endif
16047
16048 #ifndef HAVE_ALARM
16049 # define alarm(X) /* empty */
16050 #endif
16051
16052 /* Work around redefinition to rpl_putenv by other config tests. */
16053 #undef putenv
16054
16055 static time_t time_t_max;
16056 static time_t time_t_min;
16057
16058 /* Values we'll use to set the TZ environment variable. */
16059 static char *tz_strings[] = {
16060 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16061 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16062 };
16063 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16064
16065 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16066 Based on a problem report from Andreas Jaeger. */
16067 static int
16068 spring_forward_gap ()
16069 {
16070 /* glibc (up to about 1998-10-07) failed this test. */
16071 struct tm tm;
16072
16073 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16074 instead of "TZ=America/Vancouver" in order to detect the bug even
16075 on systems that don't support the Olson extension, or don't have the
16076 full zoneinfo tables installed. */
16077 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16078
16079 tm.tm_year = 98;
16080 tm.tm_mon = 3;
16081 tm.tm_mday = 5;
16082 tm.tm_hour = 2;
16083 tm.tm_min = 0;
16084 tm.tm_sec = 0;
16085 tm.tm_isdst = -1;
16086 return mktime (&tm) != (time_t) -1;
16087 }
16088
16089 static int
16090 mktime_test1 (now)
16091 time_t now;
16092 {
16093 struct tm *lt;
16094 return ! (lt = localtime (&now)) || mktime (lt) == now;
16095 }
16096
16097 static int
16098 mktime_test (now)
16099 time_t now;
16100 {
16101 return (mktime_test1 (now)
16102 && mktime_test1 ((time_t) (time_t_max - now))
16103 && mktime_test1 ((time_t) (time_t_min + now)));
16104 }
16105
16106 static int
16107 irix_6_4_bug ()
16108 {
16109 /* Based on code from Ariel Faigon. */
16110 struct tm tm;
16111 tm.tm_year = 96;
16112 tm.tm_mon = 3;
16113 tm.tm_mday = 0;
16114 tm.tm_hour = 0;
16115 tm.tm_min = 0;
16116 tm.tm_sec = 0;
16117 tm.tm_isdst = -1;
16118 mktime (&tm);
16119 return tm.tm_mon == 2 && tm.tm_mday == 31;
16120 }
16121
16122 static int
16123 bigtime_test (j)
16124 int j;
16125 {
16126 struct tm tm;
16127 time_t now;
16128 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16129 now = mktime (&tm);
16130 if (now != (time_t) -1)
16131 {
16132 struct tm *lt = localtime (&now);
16133 if (! (lt
16134 && lt->tm_year == tm.tm_year
16135 && lt->tm_mon == tm.tm_mon
16136 && lt->tm_mday == tm.tm_mday
16137 && lt->tm_hour == tm.tm_hour
16138 && lt->tm_min == tm.tm_min
16139 && lt->tm_sec == tm.tm_sec
16140 && lt->tm_yday == tm.tm_yday
16141 && lt->tm_wday == tm.tm_wday
16142 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16143 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16144 return 0;
16145 }
16146 return 1;
16147 }
16148
16149 static int
16150 year_2050_test ()
16151 {
16152 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16153 ignoring leap seconds. */
16154 unsigned long int answer = 2527315200UL;
16155
16156 struct tm tm;
16157 time_t t;
16158 tm.tm_year = 2050 - 1900;
16159 tm.tm_mon = 2 - 1;
16160 tm.tm_mday = 1;
16161 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16162 tm.tm_isdst = -1;
16163
16164 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16165 instead of "TZ=America/Vancouver" in order to detect the bug even
16166 on systems that don't support the Olson extension, or don't have the
16167 full zoneinfo tables installed. */
16168 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16169
16170 t = mktime (&tm);
16171
16172 /* Check that the result is either a failure, or close enough
16173 to the correct answer that we can assume the discrepancy is
16174 due to leap seconds. */
16175 return (t == (time_t) -1
16176 || (0 < t && answer - 120 <= t && t <= answer + 120));
16177 }
16178
16179 int
16180 main ()
16181 {
16182 time_t t, delta;
16183 int i, j;
16184
16185 /* This test makes some buggy mktime implementations loop.
16186 Give up after 60 seconds; a mktime slower than that
16187 isn't worth using anyway. */
16188 alarm (60);
16189
16190 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16191 continue;
16192 time_t_max--;
16193 if ((time_t) -1 < 0)
16194 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16195 continue;
16196 delta = time_t_max / 997; /* a suitable prime number */
16197 for (i = 0; i < N_STRINGS; i++)
16198 {
16199 if (tz_strings[i])
16200 putenv (tz_strings[i]);
16201
16202 for (t = 0; t <= time_t_max - delta; t += delta)
16203 if (! mktime_test (t))
16204 return 1;
16205 if (! (mktime_test ((time_t) 1)
16206 && mktime_test ((time_t) (60 * 60))
16207 && mktime_test ((time_t) (60 * 60 * 24))))
16208 return 1;
16209
16210 for (j = 1; 0 < j; j *= 2)
16211 if (! bigtime_test (j))
16212 return 1;
16213 if (! bigtime_test (j - 1))
16214 return 1;
16215 }
16216 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16217 }
16218 _ACEOF
16219 rm -f conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16230 { (case "(($ac_try" in
16231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16232 *) ac_try_echo=$ac_try;;
16233 esac
16234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16235 (eval "$ac_try") 2>&5
16236 ac_status=$?
16237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16238 (exit $ac_status); }; }; then
16239 ac_cv_func_working_mktime=yes
16240 else
16241 echo "$as_me: program exited with status $ac_status" >&5
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ( exit $ac_status )
16246 ac_cv_func_working_mktime=no
16247 fi
16248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16249 fi
16250
16251
16252 fi
16253 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16254 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16255 if test $ac_cv_func_working_mktime = no; then
16256 case " $LIBOBJS " in
16257 *" mktime.$ac_objext "* ) ;;
16258 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16259 ;;
16260 esac
16261
16262 fi
16263
16264 if test "$ac_cv_func_working_mktime" = no; then
16265
16266 cat >>confdefs.h <<\_ACEOF
16267 #define BROKEN_MKTIME 1
16268 _ACEOF
16269
16270 fi
16271
16272 ac_have_func=no # yes means we've found a way to get the load average.
16273
16274 # Make sure getloadavg.c is where it belongs, at configure-time.
16275 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16276 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16277 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16278 { (exit 1); exit 1; }; }
16279
16280 ac_save_LIBS=$LIBS
16281
16282 # Check for getloadavg, but be sure not to touch the cache variable.
16283 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16284 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16285 if test "${ac_cv_func_getloadavg+set}" = set; then
16286 echo $ECHO_N "(cached) $ECHO_C" >&6
16287 else
16288 cat >conftest.$ac_ext <<_ACEOF
16289 /* confdefs.h. */
16290 _ACEOF
16291 cat confdefs.h >>conftest.$ac_ext
16292 cat >>conftest.$ac_ext <<_ACEOF
16293 /* end confdefs.h. */
16294 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16295 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16296 #define getloadavg innocuous_getloadavg
16297
16298 /* System header to define __stub macros and hopefully few prototypes,
16299 which can conflict with char getloadavg (); below.
16300 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16301 <limits.h> exists even on freestanding compilers. */
16302
16303 #ifdef __STDC__
16304 # include <limits.h>
16305 #else
16306 # include <assert.h>
16307 #endif
16308
16309 #undef getloadavg
16310
16311 /* Override any GCC internal prototype to avoid an error.
16312 Use char because int might match the return type of a GCC
16313 builtin and then its argument prototype would still apply. */
16314 #ifdef __cplusplus
16315 extern "C"
16316 #endif
16317 char getloadavg ();
16318 /* The GNU C library defines this for functions which it implements
16319 to always fail with ENOSYS. Some functions are actually named
16320 something starting with __ and the normal name is an alias. */
16321 #if defined __stub_getloadavg || defined __stub___getloadavg
16322 choke me
16323 #endif
16324
16325 int
16326 main ()
16327 {
16328 return getloadavg ();
16329 ;
16330 return 0;
16331 }
16332 _ACEOF
16333 rm -f conftest.$ac_objext conftest$ac_exeext
16334 if { (ac_try="$ac_link"
16335 case "(($ac_try" in
16336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16337 *) ac_try_echo=$ac_try;;
16338 esac
16339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16340 (eval "$ac_link") 2>conftest.er1
16341 ac_status=$?
16342 grep -v '^ *+' conftest.er1 >conftest.err
16343 rm -f conftest.er1
16344 cat conftest.err >&5
16345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16346 (exit $ac_status); } && {
16347 test -z "$ac_c_werror_flag" ||
16348 test ! -s conftest.err
16349 } && test -s conftest$ac_exeext &&
16350 $as_test_x conftest$ac_exeext; then
16351 ac_cv_func_getloadavg=yes
16352 else
16353 echo "$as_me: failed program was:" >&5
16354 sed 's/^/| /' conftest.$ac_ext >&5
16355
16356 ac_cv_func_getloadavg=no
16357 fi
16358
16359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16360 conftest$ac_exeext conftest.$ac_ext
16361 fi
16362 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16363 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16364 if test $ac_cv_func_getloadavg = yes; then
16365 exit 0
16366 else
16367 exit 1
16368 fi
16369 ) && ac_have_func=yes
16370
16371 # On HPUX9, an unprivileged user can get load averages through this function.
16372
16373 for ac_func in pstat_getdynamic
16374 do
16375 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16376 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16377 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16378 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16379 echo $ECHO_N "(cached) $ECHO_C" >&6
16380 else
16381 cat >conftest.$ac_ext <<_ACEOF
16382 /* confdefs.h. */
16383 _ACEOF
16384 cat confdefs.h >>conftest.$ac_ext
16385 cat >>conftest.$ac_ext <<_ACEOF
16386 /* end confdefs.h. */
16387 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16388 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16389 #define $ac_func innocuous_$ac_func
16390
16391 /* System header to define __stub macros and hopefully few prototypes,
16392 which can conflict with char $ac_func (); below.
16393 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16394 <limits.h> exists even on freestanding compilers. */
16395
16396 #ifdef __STDC__
16397 # include <limits.h>
16398 #else
16399 # include <assert.h>
16400 #endif
16401
16402 #undef $ac_func
16403
16404 /* Override any GCC internal prototype to avoid an error.
16405 Use char because int might match the return type of a GCC
16406 builtin and then its argument prototype would still apply. */
16407 #ifdef __cplusplus
16408 extern "C"
16409 #endif
16410 char $ac_func ();
16411 /* The GNU C library defines this for functions which it implements
16412 to always fail with ENOSYS. Some functions are actually named
16413 something starting with __ and the normal name is an alias. */
16414 #if defined __stub_$ac_func || defined __stub___$ac_func
16415 choke me
16416 #endif
16417
16418 int
16419 main ()
16420 {
16421 return $ac_func ();
16422 ;
16423 return 0;
16424 }
16425 _ACEOF
16426 rm -f conftest.$ac_objext conftest$ac_exeext
16427 if { (ac_try="$ac_link"
16428 case "(($ac_try" in
16429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16430 *) ac_try_echo=$ac_try;;
16431 esac
16432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16433 (eval "$ac_link") 2>conftest.er1
16434 ac_status=$?
16435 grep -v '^ *+' conftest.er1 >conftest.err
16436 rm -f conftest.er1
16437 cat conftest.err >&5
16438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16439 (exit $ac_status); } && {
16440 test -z "$ac_c_werror_flag" ||
16441 test ! -s conftest.err
16442 } && test -s conftest$ac_exeext &&
16443 $as_test_x conftest$ac_exeext; then
16444 eval "$as_ac_var=yes"
16445 else
16446 echo "$as_me: failed program was:" >&5
16447 sed 's/^/| /' conftest.$ac_ext >&5
16448
16449 eval "$as_ac_var=no"
16450 fi
16451
16452 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16453 conftest$ac_exeext conftest.$ac_ext
16454 fi
16455 ac_res=`eval echo '${'$as_ac_var'}'`
16456 { echo "$as_me:$LINENO: result: $ac_res" >&5
16457 echo "${ECHO_T}$ac_res" >&6; }
16458 if test `eval echo '${'$as_ac_var'}'` = yes; then
16459 cat >>confdefs.h <<_ACEOF
16460 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16461 _ACEOF
16462
16463 fi
16464 done
16465
16466
16467 # Solaris has libkstat which does not require root.
16468
16469 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16470 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16471 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16472 echo $ECHO_N "(cached) $ECHO_C" >&6
16473 else
16474 ac_check_lib_save_LIBS=$LIBS
16475 LIBS="-lkstat $LIBS"
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482
16483 /* Override any GCC internal prototype to avoid an error.
16484 Use char because int might match the return type of a GCC
16485 builtin and then its argument prototype would still apply. */
16486 #ifdef __cplusplus
16487 extern "C"
16488 #endif
16489 char kstat_open ();
16490 int
16491 main ()
16492 {
16493 return kstat_open ();
16494 ;
16495 return 0;
16496 }
16497 _ACEOF
16498 rm -f conftest.$ac_objext conftest$ac_exeext
16499 if { (ac_try="$ac_link"
16500 case "(($ac_try" in
16501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16502 *) ac_try_echo=$ac_try;;
16503 esac
16504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16505 (eval "$ac_link") 2>conftest.er1
16506 ac_status=$?
16507 grep -v '^ *+' conftest.er1 >conftest.err
16508 rm -f conftest.er1
16509 cat conftest.err >&5
16510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16511 (exit $ac_status); } && {
16512 test -z "$ac_c_werror_flag" ||
16513 test ! -s conftest.err
16514 } && test -s conftest$ac_exeext &&
16515 $as_test_x conftest$ac_exeext; then
16516 ac_cv_lib_kstat_kstat_open=yes
16517 else
16518 echo "$as_me: failed program was:" >&5
16519 sed 's/^/| /' conftest.$ac_ext >&5
16520
16521 ac_cv_lib_kstat_kstat_open=no
16522 fi
16523
16524 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16525 conftest$ac_exeext conftest.$ac_ext
16526 LIBS=$ac_check_lib_save_LIBS
16527 fi
16528 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16529 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16530 if test $ac_cv_lib_kstat_kstat_open = yes; then
16531 cat >>confdefs.h <<_ACEOF
16532 #define HAVE_LIBKSTAT 1
16533 _ACEOF
16534
16535 LIBS="-lkstat $LIBS"
16536
16537 fi
16538
16539 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16540
16541 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16542 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16543 # to get the right answer into the cache.
16544 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16545 if test $ac_have_func = no; then
16546 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16547 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16548 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16549 echo $ECHO_N "(cached) $ECHO_C" >&6
16550 else
16551 ac_check_lib_save_LIBS=$LIBS
16552 LIBS="-lelf $LIBS"
16553 cat >conftest.$ac_ext <<_ACEOF
16554 /* confdefs.h. */
16555 _ACEOF
16556 cat confdefs.h >>conftest.$ac_ext
16557 cat >>conftest.$ac_ext <<_ACEOF
16558 /* end confdefs.h. */
16559
16560 /* Override any GCC internal prototype to avoid an error.
16561 Use char because int might match the return type of a GCC
16562 builtin and then its argument prototype would still apply. */
16563 #ifdef __cplusplus
16564 extern "C"
16565 #endif
16566 char elf_begin ();
16567 int
16568 main ()
16569 {
16570 return elf_begin ();
16571 ;
16572 return 0;
16573 }
16574 _ACEOF
16575 rm -f conftest.$ac_objext conftest$ac_exeext
16576 if { (ac_try="$ac_link"
16577 case "(($ac_try" in
16578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16579 *) ac_try_echo=$ac_try;;
16580 esac
16581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16582 (eval "$ac_link") 2>conftest.er1
16583 ac_status=$?
16584 grep -v '^ *+' conftest.er1 >conftest.err
16585 rm -f conftest.er1
16586 cat conftest.err >&5
16587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16588 (exit $ac_status); } && {
16589 test -z "$ac_c_werror_flag" ||
16590 test ! -s conftest.err
16591 } && test -s conftest$ac_exeext &&
16592 $as_test_x conftest$ac_exeext; then
16593 ac_cv_lib_elf_elf_begin=yes
16594 else
16595 echo "$as_me: failed program was:" >&5
16596 sed 's/^/| /' conftest.$ac_ext >&5
16597
16598 ac_cv_lib_elf_elf_begin=no
16599 fi
16600
16601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16602 conftest$ac_exeext conftest.$ac_ext
16603 LIBS=$ac_check_lib_save_LIBS
16604 fi
16605 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16606 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16607 if test $ac_cv_lib_elf_elf_begin = yes; then
16608 LIBS="-lelf $LIBS"
16609 fi
16610
16611 fi
16612 if test $ac_have_func = no; then
16613 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16614 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16615 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16616 echo $ECHO_N "(cached) $ECHO_C" >&6
16617 else
16618 ac_check_lib_save_LIBS=$LIBS
16619 LIBS="-lkvm $LIBS"
16620 cat >conftest.$ac_ext <<_ACEOF
16621 /* confdefs.h. */
16622 _ACEOF
16623 cat confdefs.h >>conftest.$ac_ext
16624 cat >>conftest.$ac_ext <<_ACEOF
16625 /* end confdefs.h. */
16626
16627 /* Override any GCC internal prototype to avoid an error.
16628 Use char because int might match the return type of a GCC
16629 builtin and then its argument prototype would still apply. */
16630 #ifdef __cplusplus
16631 extern "C"
16632 #endif
16633 char kvm_open ();
16634 int
16635 main ()
16636 {
16637 return kvm_open ();
16638 ;
16639 return 0;
16640 }
16641 _ACEOF
16642 rm -f conftest.$ac_objext conftest$ac_exeext
16643 if { (ac_try="$ac_link"
16644 case "(($ac_try" in
16645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16646 *) ac_try_echo=$ac_try;;
16647 esac
16648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16649 (eval "$ac_link") 2>conftest.er1
16650 ac_status=$?
16651 grep -v '^ *+' conftest.er1 >conftest.err
16652 rm -f conftest.er1
16653 cat conftest.err >&5
16654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16655 (exit $ac_status); } && {
16656 test -z "$ac_c_werror_flag" ||
16657 test ! -s conftest.err
16658 } && test -s conftest$ac_exeext &&
16659 $as_test_x conftest$ac_exeext; then
16660 ac_cv_lib_kvm_kvm_open=yes
16661 else
16662 echo "$as_me: failed program was:" >&5
16663 sed 's/^/| /' conftest.$ac_ext >&5
16664
16665 ac_cv_lib_kvm_kvm_open=no
16666 fi
16667
16668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16669 conftest$ac_exeext conftest.$ac_ext
16670 LIBS=$ac_check_lib_save_LIBS
16671 fi
16672 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16673 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16674 if test $ac_cv_lib_kvm_kvm_open = yes; then
16675 LIBS="-lkvm $LIBS"
16676 fi
16677
16678 # Check for the 4.4BSD definition of getloadavg.
16679 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16680 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16681 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16682 echo $ECHO_N "(cached) $ECHO_C" >&6
16683 else
16684 ac_check_lib_save_LIBS=$LIBS
16685 LIBS="-lutil $LIBS"
16686 cat >conftest.$ac_ext <<_ACEOF
16687 /* confdefs.h. */
16688 _ACEOF
16689 cat confdefs.h >>conftest.$ac_ext
16690 cat >>conftest.$ac_ext <<_ACEOF
16691 /* end confdefs.h. */
16692
16693 /* Override any GCC internal prototype to avoid an error.
16694 Use char because int might match the return type of a GCC
16695 builtin and then its argument prototype would still apply. */
16696 #ifdef __cplusplus
16697 extern "C"
16698 #endif
16699 char getloadavg ();
16700 int
16701 main ()
16702 {
16703 return getloadavg ();
16704 ;
16705 return 0;
16706 }
16707 _ACEOF
16708 rm -f conftest.$ac_objext conftest$ac_exeext
16709 if { (ac_try="$ac_link"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_link") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } && {
16722 test -z "$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 } && test -s conftest$ac_exeext &&
16725 $as_test_x conftest$ac_exeext; then
16726 ac_cv_lib_util_getloadavg=yes
16727 else
16728 echo "$as_me: failed program was:" >&5
16729 sed 's/^/| /' conftest.$ac_ext >&5
16730
16731 ac_cv_lib_util_getloadavg=no
16732 fi
16733
16734 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16735 conftest$ac_exeext conftest.$ac_ext
16736 LIBS=$ac_check_lib_save_LIBS
16737 fi
16738 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16739 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16740 if test $ac_cv_lib_util_getloadavg = yes; then
16741 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16742 fi
16743
16744 fi
16745
16746 if test $ac_have_func = no; then
16747 # There is a commonly available library for RS/6000 AIX.
16748 # Since it is not a standard part of AIX, it might be installed locally.
16749 ac_getloadavg_LIBS=$LIBS
16750 LIBS="-L/usr/local/lib $LIBS"
16751 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16752 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16753 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 ac_check_lib_save_LIBS=$LIBS
16757 LIBS="-lgetloadavg $LIBS"
16758 cat >conftest.$ac_ext <<_ACEOF
16759 /* confdefs.h. */
16760 _ACEOF
16761 cat confdefs.h >>conftest.$ac_ext
16762 cat >>conftest.$ac_ext <<_ACEOF
16763 /* end confdefs.h. */
16764
16765 /* Override any GCC internal prototype to avoid an error.
16766 Use char because int might match the return type of a GCC
16767 builtin and then its argument prototype would still apply. */
16768 #ifdef __cplusplus
16769 extern "C"
16770 #endif
16771 char getloadavg ();
16772 int
16773 main ()
16774 {
16775 return getloadavg ();
16776 ;
16777 return 0;
16778 }
16779 _ACEOF
16780 rm -f conftest.$ac_objext conftest$ac_exeext
16781 if { (ac_try="$ac_link"
16782 case "(($ac_try" in
16783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16784 *) ac_try_echo=$ac_try;;
16785 esac
16786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16787 (eval "$ac_link") 2>conftest.er1
16788 ac_status=$?
16789 grep -v '^ *+' conftest.er1 >conftest.err
16790 rm -f conftest.er1
16791 cat conftest.err >&5
16792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16793 (exit $ac_status); } && {
16794 test -z "$ac_c_werror_flag" ||
16795 test ! -s conftest.err
16796 } && test -s conftest$ac_exeext &&
16797 $as_test_x conftest$ac_exeext; then
16798 ac_cv_lib_getloadavg_getloadavg=yes
16799 else
16800 echo "$as_me: failed program was:" >&5
16801 sed 's/^/| /' conftest.$ac_ext >&5
16802
16803 ac_cv_lib_getloadavg_getloadavg=no
16804 fi
16805
16806 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16807 conftest$ac_exeext conftest.$ac_ext
16808 LIBS=$ac_check_lib_save_LIBS
16809 fi
16810 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16811 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16812 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16813 LIBS="-lgetloadavg $LIBS"
16814 else
16815 LIBS=$ac_getloadavg_LIBS
16816 fi
16817
16818 fi
16819
16820 # Make sure it is really in the library, if we think we found it,
16821 # otherwise set up the replacement function.
16822
16823 for ac_func in getloadavg
16824 do
16825 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16826 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16827 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16828 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16829 echo $ECHO_N "(cached) $ECHO_C" >&6
16830 else
16831 cat >conftest.$ac_ext <<_ACEOF
16832 /* confdefs.h. */
16833 _ACEOF
16834 cat confdefs.h >>conftest.$ac_ext
16835 cat >>conftest.$ac_ext <<_ACEOF
16836 /* end confdefs.h. */
16837 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16838 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16839 #define $ac_func innocuous_$ac_func
16840
16841 /* System header to define __stub macros and hopefully few prototypes,
16842 which can conflict with char $ac_func (); below.
16843 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16844 <limits.h> exists even on freestanding compilers. */
16845
16846 #ifdef __STDC__
16847 # include <limits.h>
16848 #else
16849 # include <assert.h>
16850 #endif
16851
16852 #undef $ac_func
16853
16854 /* Override any GCC internal prototype to avoid an error.
16855 Use char because int might match the return type of a GCC
16856 builtin and then its argument prototype would still apply. */
16857 #ifdef __cplusplus
16858 extern "C"
16859 #endif
16860 char $ac_func ();
16861 /* The GNU C library defines this for functions which it implements
16862 to always fail with ENOSYS. Some functions are actually named
16863 something starting with __ and the normal name is an alias. */
16864 #if defined __stub_$ac_func || defined __stub___$ac_func
16865 choke me
16866 #endif
16867
16868 int
16869 main ()
16870 {
16871 return $ac_func ();
16872 ;
16873 return 0;
16874 }
16875 _ACEOF
16876 rm -f conftest.$ac_objext conftest$ac_exeext
16877 if { (ac_try="$ac_link"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_link") 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest$ac_exeext &&
16893 $as_test_x conftest$ac_exeext; then
16894 eval "$as_ac_var=yes"
16895 else
16896 echo "$as_me: failed program was:" >&5
16897 sed 's/^/| /' conftest.$ac_ext >&5
16898
16899 eval "$as_ac_var=no"
16900 fi
16901
16902 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16903 conftest$ac_exeext conftest.$ac_ext
16904 fi
16905 ac_res=`eval echo '${'$as_ac_var'}'`
16906 { echo "$as_me:$LINENO: result: $ac_res" >&5
16907 echo "${ECHO_T}$ac_res" >&6; }
16908 if test `eval echo '${'$as_ac_var'}'` = yes; then
16909 cat >>confdefs.h <<_ACEOF
16910 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16911 _ACEOF
16912
16913 else
16914 case " $LIBOBJS " in
16915 *" getloadavg.$ac_objext "* ) ;;
16916 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16917 ;;
16918 esac
16919
16920
16921 cat >>confdefs.h <<\_ACEOF
16922 #define C_GETLOADAVG 1
16923 _ACEOF
16924
16925 # Figure out what our getloadavg.c needs.
16926 ac_have_func=no
16927 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16928 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16929 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16930 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16931 echo $ECHO_N "(cached) $ECHO_C" >&6
16932 fi
16933 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16934 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16935 else
16936 # Is the header compilable?
16937 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16938 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16939 cat >conftest.$ac_ext <<_ACEOF
16940 /* confdefs.h. */
16941 _ACEOF
16942 cat confdefs.h >>conftest.$ac_ext
16943 cat >>conftest.$ac_ext <<_ACEOF
16944 /* end confdefs.h. */
16945 $ac_includes_default
16946 #include <sys/dg_sys_info.h>
16947 _ACEOF
16948 rm -f conftest.$ac_objext
16949 if { (ac_try="$ac_compile"
16950 case "(($ac_try" in
16951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16952 *) ac_try_echo=$ac_try;;
16953 esac
16954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16955 (eval "$ac_compile") 2>conftest.er1
16956 ac_status=$?
16957 grep -v '^ *+' conftest.er1 >conftest.err
16958 rm -f conftest.er1
16959 cat conftest.err >&5
16960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16961 (exit $ac_status); } && {
16962 test -z "$ac_c_werror_flag" ||
16963 test ! -s conftest.err
16964 } && test -s conftest.$ac_objext; then
16965 ac_header_compiler=yes
16966 else
16967 echo "$as_me: failed program was:" >&5
16968 sed 's/^/| /' conftest.$ac_ext >&5
16969
16970 ac_header_compiler=no
16971 fi
16972
16973 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16974 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16975 echo "${ECHO_T}$ac_header_compiler" >&6; }
16976
16977 # Is the header present?
16978 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16979 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16980 cat >conftest.$ac_ext <<_ACEOF
16981 /* confdefs.h. */
16982 _ACEOF
16983 cat confdefs.h >>conftest.$ac_ext
16984 cat >>conftest.$ac_ext <<_ACEOF
16985 /* end confdefs.h. */
16986 #include <sys/dg_sys_info.h>
16987 _ACEOF
16988 if { (ac_try="$ac_cpp conftest.$ac_ext"
16989 case "(($ac_try" in
16990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16991 *) ac_try_echo=$ac_try;;
16992 esac
16993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16994 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16995 ac_status=$?
16996 grep -v '^ *+' conftest.er1 >conftest.err
16997 rm -f conftest.er1
16998 cat conftest.err >&5
16999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17000 (exit $ac_status); } >/dev/null && {
17001 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17002 test ! -s conftest.err
17003 }; then
17004 ac_header_preproc=yes
17005 else
17006 echo "$as_me: failed program was:" >&5
17007 sed 's/^/| /' conftest.$ac_ext >&5
17008
17009 ac_header_preproc=no
17010 fi
17011
17012 rm -f conftest.err conftest.$ac_ext
17013 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17014 echo "${ECHO_T}$ac_header_preproc" >&6; }
17015
17016 # So? What about this header?
17017 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17018 yes:no: )
17019 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17020 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17021 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17022 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17023 ac_header_preproc=yes
17024 ;;
17025 no:yes:* )
17026 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17027 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17029 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17030 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17031 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17032 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17033 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17034 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17035 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17036 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17037 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17038
17039 ;;
17040 esac
17041 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17042 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17043 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17044 echo $ECHO_N "(cached) $ECHO_C" >&6
17045 else
17046 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17047 fi
17048 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17049 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17050
17051 fi
17052 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17053 ac_have_func=yes
17054
17055 cat >>confdefs.h <<\_ACEOF
17056 #define DGUX 1
17057 _ACEOF
17058
17059
17060 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17061 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17062 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17063 echo $ECHO_N "(cached) $ECHO_C" >&6
17064 else
17065 ac_check_lib_save_LIBS=$LIBS
17066 LIBS="-ldgc $LIBS"
17067 cat >conftest.$ac_ext <<_ACEOF
17068 /* confdefs.h. */
17069 _ACEOF
17070 cat confdefs.h >>conftest.$ac_ext
17071 cat >>conftest.$ac_ext <<_ACEOF
17072 /* end confdefs.h. */
17073
17074 /* Override any GCC internal prototype to avoid an error.
17075 Use char because int might match the return type of a GCC
17076 builtin and then its argument prototype would still apply. */
17077 #ifdef __cplusplus
17078 extern "C"
17079 #endif
17080 char dg_sys_info ();
17081 int
17082 main ()
17083 {
17084 return dg_sys_info ();
17085 ;
17086 return 0;
17087 }
17088 _ACEOF
17089 rm -f conftest.$ac_objext conftest$ac_exeext
17090 if { (ac_try="$ac_link"
17091 case "(($ac_try" in
17092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17093 *) ac_try_echo=$ac_try;;
17094 esac
17095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17096 (eval "$ac_link") 2>conftest.er1
17097 ac_status=$?
17098 grep -v '^ *+' conftest.er1 >conftest.err
17099 rm -f conftest.er1
17100 cat conftest.err >&5
17101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17102 (exit $ac_status); } && {
17103 test -z "$ac_c_werror_flag" ||
17104 test ! -s conftest.err
17105 } && test -s conftest$ac_exeext &&
17106 $as_test_x conftest$ac_exeext; then
17107 ac_cv_lib_dgc_dg_sys_info=yes
17108 else
17109 echo "$as_me: failed program was:" >&5
17110 sed 's/^/| /' conftest.$ac_ext >&5
17111
17112 ac_cv_lib_dgc_dg_sys_info=no
17113 fi
17114
17115 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17116 conftest$ac_exeext conftest.$ac_ext
17117 LIBS=$ac_check_lib_save_LIBS
17118 fi
17119 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17120 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17121 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17122 cat >>confdefs.h <<_ACEOF
17123 #define HAVE_LIBDGC 1
17124 _ACEOF
17125
17126 LIBS="-ldgc $LIBS"
17127
17128 fi
17129
17130 fi
17131
17132
17133
17134 if test "${ac_cv_header_locale_h+set}" = set; then
17135 { echo "$as_me:$LINENO: checking for locale.h" >&5
17136 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17137 if test "${ac_cv_header_locale_h+set}" = set; then
17138 echo $ECHO_N "(cached) $ECHO_C" >&6
17139 fi
17140 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17141 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17142 else
17143 # Is the header compilable?
17144 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17145 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17146 cat >conftest.$ac_ext <<_ACEOF
17147 /* confdefs.h. */
17148 _ACEOF
17149 cat confdefs.h >>conftest.$ac_ext
17150 cat >>conftest.$ac_ext <<_ACEOF
17151 /* end confdefs.h. */
17152 $ac_includes_default
17153 #include <locale.h>
17154 _ACEOF
17155 rm -f conftest.$ac_objext
17156 if { (ac_try="$ac_compile"
17157 case "(($ac_try" in
17158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17159 *) ac_try_echo=$ac_try;;
17160 esac
17161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17162 (eval "$ac_compile") 2>conftest.er1
17163 ac_status=$?
17164 grep -v '^ *+' conftest.er1 >conftest.err
17165 rm -f conftest.er1
17166 cat conftest.err >&5
17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17168 (exit $ac_status); } && {
17169 test -z "$ac_c_werror_flag" ||
17170 test ! -s conftest.err
17171 } && test -s conftest.$ac_objext; then
17172 ac_header_compiler=yes
17173 else
17174 echo "$as_me: failed program was:" >&5
17175 sed 's/^/| /' conftest.$ac_ext >&5
17176
17177 ac_header_compiler=no
17178 fi
17179
17180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17182 echo "${ECHO_T}$ac_header_compiler" >&6; }
17183
17184 # Is the header present?
17185 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17186 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17187 cat >conftest.$ac_ext <<_ACEOF
17188 /* confdefs.h. */
17189 _ACEOF
17190 cat confdefs.h >>conftest.$ac_ext
17191 cat >>conftest.$ac_ext <<_ACEOF
17192 /* end confdefs.h. */
17193 #include <locale.h>
17194 _ACEOF
17195 if { (ac_try="$ac_cpp conftest.$ac_ext"
17196 case "(($ac_try" in
17197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17198 *) ac_try_echo=$ac_try;;
17199 esac
17200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17202 ac_status=$?
17203 grep -v '^ *+' conftest.er1 >conftest.err
17204 rm -f conftest.er1
17205 cat conftest.err >&5
17206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17207 (exit $ac_status); } >/dev/null && {
17208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17209 test ! -s conftest.err
17210 }; then
17211 ac_header_preproc=yes
17212 else
17213 echo "$as_me: failed program was:" >&5
17214 sed 's/^/| /' conftest.$ac_ext >&5
17215
17216 ac_header_preproc=no
17217 fi
17218
17219 rm -f conftest.err conftest.$ac_ext
17220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17221 echo "${ECHO_T}$ac_header_preproc" >&6; }
17222
17223 # So? What about this header?
17224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17225 yes:no: )
17226 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17227 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17228 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17229 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17230 ac_header_preproc=yes
17231 ;;
17232 no:yes:* )
17233 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17234 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17236 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17238 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17239 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17240 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17241 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17242 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17243 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17244 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17245
17246 ;;
17247 esac
17248 { echo "$as_me:$LINENO: checking for locale.h" >&5
17249 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17250 if test "${ac_cv_header_locale_h+set}" = set; then
17251 echo $ECHO_N "(cached) $ECHO_C" >&6
17252 else
17253 ac_cv_header_locale_h=$ac_header_preproc
17254 fi
17255 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17256 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17257
17258 fi
17259
17260
17261
17262 for ac_func in setlocale
17263 do
17264 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17265 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17266 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17267 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17268 echo $ECHO_N "(cached) $ECHO_C" >&6
17269 else
17270 cat >conftest.$ac_ext <<_ACEOF
17271 /* confdefs.h. */
17272 _ACEOF
17273 cat confdefs.h >>conftest.$ac_ext
17274 cat >>conftest.$ac_ext <<_ACEOF
17275 /* end confdefs.h. */
17276 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17277 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17278 #define $ac_func innocuous_$ac_func
17279
17280 /* System header to define __stub macros and hopefully few prototypes,
17281 which can conflict with char $ac_func (); below.
17282 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17283 <limits.h> exists even on freestanding compilers. */
17284
17285 #ifdef __STDC__
17286 # include <limits.h>
17287 #else
17288 # include <assert.h>
17289 #endif
17290
17291 #undef $ac_func
17292
17293 /* Override any GCC internal prototype to avoid an error.
17294 Use char because int might match the return type of a GCC
17295 builtin and then its argument prototype would still apply. */
17296 #ifdef __cplusplus
17297 extern "C"
17298 #endif
17299 char $ac_func ();
17300 /* The GNU C library defines this for functions which it implements
17301 to always fail with ENOSYS. Some functions are actually named
17302 something starting with __ and the normal name is an alias. */
17303 #if defined __stub_$ac_func || defined __stub___$ac_func
17304 choke me
17305 #endif
17306
17307 int
17308 main ()
17309 {
17310 return $ac_func ();
17311 ;
17312 return 0;
17313 }
17314 _ACEOF
17315 rm -f conftest.$ac_objext conftest$ac_exeext
17316 if { (ac_try="$ac_link"
17317 case "(($ac_try" in
17318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17319 *) ac_try_echo=$ac_try;;
17320 esac
17321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17322 (eval "$ac_link") 2>conftest.er1
17323 ac_status=$?
17324 grep -v '^ *+' conftest.er1 >conftest.err
17325 rm -f conftest.er1
17326 cat conftest.err >&5
17327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17328 (exit $ac_status); } && {
17329 test -z "$ac_c_werror_flag" ||
17330 test ! -s conftest.err
17331 } && test -s conftest$ac_exeext &&
17332 $as_test_x conftest$ac_exeext; then
17333 eval "$as_ac_var=yes"
17334 else
17335 echo "$as_me: failed program was:" >&5
17336 sed 's/^/| /' conftest.$ac_ext >&5
17337
17338 eval "$as_ac_var=no"
17339 fi
17340
17341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17342 conftest$ac_exeext conftest.$ac_ext
17343 fi
17344 ac_res=`eval echo '${'$as_ac_var'}'`
17345 { echo "$as_me:$LINENO: result: $ac_res" >&5
17346 echo "${ECHO_T}$ac_res" >&6; }
17347 if test `eval echo '${'$as_ac_var'}'` = yes; then
17348 cat >>confdefs.h <<_ACEOF
17349 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17350 _ACEOF
17351
17352 fi
17353 done
17354
17355
17356 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17357 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17358 # Irix 4.0.5F has the header but not the library.
17359 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17360 ac_have_func=yes
17361
17362 cat >>confdefs.h <<\_ACEOF
17363 #define SVR4 1
17364 _ACEOF
17365
17366 fi
17367
17368 if test $ac_have_func = no; then
17369 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17370 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17371 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17372 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17373 echo $ECHO_N "(cached) $ECHO_C" >&6
17374 fi
17375 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17376 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17377 else
17378 # Is the header compilable?
17379 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17380 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17381 cat >conftest.$ac_ext <<_ACEOF
17382 /* confdefs.h. */
17383 _ACEOF
17384 cat confdefs.h >>conftest.$ac_ext
17385 cat >>conftest.$ac_ext <<_ACEOF
17386 /* end confdefs.h. */
17387 $ac_includes_default
17388 #include <inq_stats/cpustats.h>
17389 _ACEOF
17390 rm -f conftest.$ac_objext
17391 if { (ac_try="$ac_compile"
17392 case "(($ac_try" in
17393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17394 *) ac_try_echo=$ac_try;;
17395 esac
17396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17397 (eval "$ac_compile") 2>conftest.er1
17398 ac_status=$?
17399 grep -v '^ *+' conftest.er1 >conftest.err
17400 rm -f conftest.er1
17401 cat conftest.err >&5
17402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17403 (exit $ac_status); } && {
17404 test -z "$ac_c_werror_flag" ||
17405 test ! -s conftest.err
17406 } && test -s conftest.$ac_objext; then
17407 ac_header_compiler=yes
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 ac_header_compiler=no
17413 fi
17414
17415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17417 echo "${ECHO_T}$ac_header_compiler" >&6; }
17418
17419 # Is the header present?
17420 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17421 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17422 cat >conftest.$ac_ext <<_ACEOF
17423 /* confdefs.h. */
17424 _ACEOF
17425 cat confdefs.h >>conftest.$ac_ext
17426 cat >>conftest.$ac_ext <<_ACEOF
17427 /* end confdefs.h. */
17428 #include <inq_stats/cpustats.h>
17429 _ACEOF
17430 if { (ac_try="$ac_cpp conftest.$ac_ext"
17431 case "(($ac_try" in
17432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17433 *) ac_try_echo=$ac_try;;
17434 esac
17435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17437 ac_status=$?
17438 grep -v '^ *+' conftest.er1 >conftest.err
17439 rm -f conftest.er1
17440 cat conftest.err >&5
17441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17442 (exit $ac_status); } >/dev/null && {
17443 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17444 test ! -s conftest.err
17445 }; then
17446 ac_header_preproc=yes
17447 else
17448 echo "$as_me: failed program was:" >&5
17449 sed 's/^/| /' conftest.$ac_ext >&5
17450
17451 ac_header_preproc=no
17452 fi
17453
17454 rm -f conftest.err conftest.$ac_ext
17455 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17456 echo "${ECHO_T}$ac_header_preproc" >&6; }
17457
17458 # So? What about this header?
17459 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17460 yes:no: )
17461 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17462 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17463 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17464 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17465 ac_header_preproc=yes
17466 ;;
17467 no:yes:* )
17468 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17469 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17470 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17471 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17472 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17473 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17474 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17475 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17476 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17477 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17478 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17479 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17480
17481 ;;
17482 esac
17483 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17484 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17485 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17486 echo $ECHO_N "(cached) $ECHO_C" >&6
17487 else
17488 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17489 fi
17490 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17491 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17492
17493 fi
17494 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17495 ac_have_func=yes
17496
17497 cat >>confdefs.h <<\_ACEOF
17498 #define UMAX 1
17499 _ACEOF
17500
17501
17502 cat >>confdefs.h <<\_ACEOF
17503 #define UMAX4_3 1
17504 _ACEOF
17505
17506 fi
17507
17508
17509 fi
17510
17511 if test $ac_have_func = no; then
17512 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17513 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17514 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17515 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17516 echo $ECHO_N "(cached) $ECHO_C" >&6
17517 fi
17518 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17519 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17520 else
17521 # Is the header compilable?
17522 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17523 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17524 cat >conftest.$ac_ext <<_ACEOF
17525 /* confdefs.h. */
17526 _ACEOF
17527 cat confdefs.h >>conftest.$ac_ext
17528 cat >>conftest.$ac_ext <<_ACEOF
17529 /* end confdefs.h. */
17530 $ac_includes_default
17531 #include <sys/cpustats.h>
17532 _ACEOF
17533 rm -f conftest.$ac_objext
17534 if { (ac_try="$ac_compile"
17535 case "(($ac_try" in
17536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17537 *) ac_try_echo=$ac_try;;
17538 esac
17539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17540 (eval "$ac_compile") 2>conftest.er1
17541 ac_status=$?
17542 grep -v '^ *+' conftest.er1 >conftest.err
17543 rm -f conftest.er1
17544 cat conftest.err >&5
17545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17546 (exit $ac_status); } && {
17547 test -z "$ac_c_werror_flag" ||
17548 test ! -s conftest.err
17549 } && test -s conftest.$ac_objext; then
17550 ac_header_compiler=yes
17551 else
17552 echo "$as_me: failed program was:" >&5
17553 sed 's/^/| /' conftest.$ac_ext >&5
17554
17555 ac_header_compiler=no
17556 fi
17557
17558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17559 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17560 echo "${ECHO_T}$ac_header_compiler" >&6; }
17561
17562 # Is the header present?
17563 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17564 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17565 cat >conftest.$ac_ext <<_ACEOF
17566 /* confdefs.h. */
17567 _ACEOF
17568 cat confdefs.h >>conftest.$ac_ext
17569 cat >>conftest.$ac_ext <<_ACEOF
17570 /* end confdefs.h. */
17571 #include <sys/cpustats.h>
17572 _ACEOF
17573 if { (ac_try="$ac_cpp conftest.$ac_ext"
17574 case "(($ac_try" in
17575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17576 *) ac_try_echo=$ac_try;;
17577 esac
17578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17579 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17580 ac_status=$?
17581 grep -v '^ *+' conftest.er1 >conftest.err
17582 rm -f conftest.er1
17583 cat conftest.err >&5
17584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17585 (exit $ac_status); } >/dev/null && {
17586 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17587 test ! -s conftest.err
17588 }; then
17589 ac_header_preproc=yes
17590 else
17591 echo "$as_me: failed program was:" >&5
17592 sed 's/^/| /' conftest.$ac_ext >&5
17593
17594 ac_header_preproc=no
17595 fi
17596
17597 rm -f conftest.err conftest.$ac_ext
17598 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17599 echo "${ECHO_T}$ac_header_preproc" >&6; }
17600
17601 # So? What about this header?
17602 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17603 yes:no: )
17604 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17605 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17606 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17607 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17608 ac_header_preproc=yes
17609 ;;
17610 no:yes:* )
17611 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17612 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17613 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17614 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17615 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17616 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17618 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17620 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17622 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17623
17624 ;;
17625 esac
17626 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17627 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17628 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17629 echo $ECHO_N "(cached) $ECHO_C" >&6
17630 else
17631 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17632 fi
17633 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17634 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17635
17636 fi
17637 if test $ac_cv_header_sys_cpustats_h = yes; then
17638 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17639 #define UMAX 1
17640 _ACEOF
17641
17642 fi
17643
17644
17645 fi
17646
17647 if test $ac_have_func = no; then
17648
17649 for ac_header in mach/mach.h
17650 do
17651 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17652 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17656 echo $ECHO_N "(cached) $ECHO_C" >&6
17657 fi
17658 ac_res=`eval echo '${'$as_ac_Header'}'`
17659 { echo "$as_me:$LINENO: result: $ac_res" >&5
17660 echo "${ECHO_T}$ac_res" >&6; }
17661 else
17662 # Is the header compilable?
17663 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17664 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17665 cat >conftest.$ac_ext <<_ACEOF
17666 /* confdefs.h. */
17667 _ACEOF
17668 cat confdefs.h >>conftest.$ac_ext
17669 cat >>conftest.$ac_ext <<_ACEOF
17670 /* end confdefs.h. */
17671 $ac_includes_default
17672 #include <$ac_header>
17673 _ACEOF
17674 rm -f conftest.$ac_objext
17675 if { (ac_try="$ac_compile"
17676 case "(($ac_try" in
17677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17678 *) ac_try_echo=$ac_try;;
17679 esac
17680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17681 (eval "$ac_compile") 2>conftest.er1
17682 ac_status=$?
17683 grep -v '^ *+' conftest.er1 >conftest.err
17684 rm -f conftest.er1
17685 cat conftest.err >&5
17686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17687 (exit $ac_status); } && {
17688 test -z "$ac_c_werror_flag" ||
17689 test ! -s conftest.err
17690 } && test -s conftest.$ac_objext; then
17691 ac_header_compiler=yes
17692 else
17693 echo "$as_me: failed program was:" >&5
17694 sed 's/^/| /' conftest.$ac_ext >&5
17695
17696 ac_header_compiler=no
17697 fi
17698
17699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17700 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17701 echo "${ECHO_T}$ac_header_compiler" >&6; }
17702
17703 # Is the header present?
17704 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17705 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17706 cat >conftest.$ac_ext <<_ACEOF
17707 /* confdefs.h. */
17708 _ACEOF
17709 cat confdefs.h >>conftest.$ac_ext
17710 cat >>conftest.$ac_ext <<_ACEOF
17711 /* end confdefs.h. */
17712 #include <$ac_header>
17713 _ACEOF
17714 if { (ac_try="$ac_cpp conftest.$ac_ext"
17715 case "(($ac_try" in
17716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17717 *) ac_try_echo=$ac_try;;
17718 esac
17719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17720 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17721 ac_status=$?
17722 grep -v '^ *+' conftest.er1 >conftest.err
17723 rm -f conftest.er1
17724 cat conftest.err >&5
17725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17726 (exit $ac_status); } >/dev/null && {
17727 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17728 test ! -s conftest.err
17729 }; then
17730 ac_header_preproc=yes
17731 else
17732 echo "$as_me: failed program was:" >&5
17733 sed 's/^/| /' conftest.$ac_ext >&5
17734
17735 ac_header_preproc=no
17736 fi
17737
17738 rm -f conftest.err conftest.$ac_ext
17739 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17740 echo "${ECHO_T}$ac_header_preproc" >&6; }
17741
17742 # So? What about this header?
17743 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17744 yes:no: )
17745 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17746 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17747 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17748 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17749 ac_header_preproc=yes
17750 ;;
17751 no:yes:* )
17752 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17753 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17754 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17755 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17756 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17757 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17758 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17759 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17760 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17761 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17762 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17763 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17764
17765 ;;
17766 esac
17767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17770 echo $ECHO_N "(cached) $ECHO_C" >&6
17771 else
17772 eval "$as_ac_Header=\$ac_header_preproc"
17773 fi
17774 ac_res=`eval echo '${'$as_ac_Header'}'`
17775 { echo "$as_me:$LINENO: result: $ac_res" >&5
17776 echo "${ECHO_T}$ac_res" >&6; }
17777
17778 fi
17779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17780 cat >>confdefs.h <<_ACEOF
17781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17782 _ACEOF
17783
17784 fi
17785
17786 done
17787
17788 fi
17789
17790
17791 for ac_header in nlist.h
17792 do
17793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17798 echo $ECHO_N "(cached) $ECHO_C" >&6
17799 fi
17800 ac_res=`eval echo '${'$as_ac_Header'}'`
17801 { echo "$as_me:$LINENO: result: $ac_res" >&5
17802 echo "${ECHO_T}$ac_res" >&6; }
17803 else
17804 # Is the header compilable?
17805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17807 cat >conftest.$ac_ext <<_ACEOF
17808 /* confdefs.h. */
17809 _ACEOF
17810 cat confdefs.h >>conftest.$ac_ext
17811 cat >>conftest.$ac_ext <<_ACEOF
17812 /* end confdefs.h. */
17813 $ac_includes_default
17814 #include <$ac_header>
17815 _ACEOF
17816 rm -f conftest.$ac_objext
17817 if { (ac_try="$ac_compile"
17818 case "(($ac_try" in
17819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17820 *) ac_try_echo=$ac_try;;
17821 esac
17822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17823 (eval "$ac_compile") 2>conftest.er1
17824 ac_status=$?
17825 grep -v '^ *+' conftest.er1 >conftest.err
17826 rm -f conftest.er1
17827 cat conftest.err >&5
17828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17829 (exit $ac_status); } && {
17830 test -z "$ac_c_werror_flag" ||
17831 test ! -s conftest.err
17832 } && test -s conftest.$ac_objext; then
17833 ac_header_compiler=yes
17834 else
17835 echo "$as_me: failed program was:" >&5
17836 sed 's/^/| /' conftest.$ac_ext >&5
17837
17838 ac_header_compiler=no
17839 fi
17840
17841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17843 echo "${ECHO_T}$ac_header_compiler" >&6; }
17844
17845 # Is the header present?
17846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17848 cat >conftest.$ac_ext <<_ACEOF
17849 /* confdefs.h. */
17850 _ACEOF
17851 cat confdefs.h >>conftest.$ac_ext
17852 cat >>conftest.$ac_ext <<_ACEOF
17853 /* end confdefs.h. */
17854 #include <$ac_header>
17855 _ACEOF
17856 if { (ac_try="$ac_cpp conftest.$ac_ext"
17857 case "(($ac_try" in
17858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17859 *) ac_try_echo=$ac_try;;
17860 esac
17861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17863 ac_status=$?
17864 grep -v '^ *+' conftest.er1 >conftest.err
17865 rm -f conftest.er1
17866 cat conftest.err >&5
17867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17868 (exit $ac_status); } >/dev/null && {
17869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17870 test ! -s conftest.err
17871 }; then
17872 ac_header_preproc=yes
17873 else
17874 echo "$as_me: failed program was:" >&5
17875 sed 's/^/| /' conftest.$ac_ext >&5
17876
17877 ac_header_preproc=no
17878 fi
17879
17880 rm -f conftest.err conftest.$ac_ext
17881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17882 echo "${ECHO_T}$ac_header_preproc" >&6; }
17883
17884 # So? What about this header?
17885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17886 yes:no: )
17887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17891 ac_header_preproc=yes
17892 ;;
17893 no:yes:* )
17894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17906
17907 ;;
17908 esac
17909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17912 echo $ECHO_N "(cached) $ECHO_C" >&6
17913 else
17914 eval "$as_ac_Header=\$ac_header_preproc"
17915 fi
17916 ac_res=`eval echo '${'$as_ac_Header'}'`
17917 { echo "$as_me:$LINENO: result: $ac_res" >&5
17918 echo "${ECHO_T}$ac_res" >&6; }
17919
17920 fi
17921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17922 cat >>confdefs.h <<_ACEOF
17923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17924 _ACEOF
17925 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17926 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17927 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17928 echo $ECHO_N "(cached) $ECHO_C" >&6
17929 else
17930 cat >conftest.$ac_ext <<_ACEOF
17931 /* confdefs.h. */
17932 _ACEOF
17933 cat confdefs.h >>conftest.$ac_ext
17934 cat >>conftest.$ac_ext <<_ACEOF
17935 /* end confdefs.h. */
17936 #include <nlist.h>
17937
17938 int
17939 main ()
17940 {
17941 static struct nlist ac_aggr;
17942 if (ac_aggr.n_un.n_name)
17943 return 0;
17944 ;
17945 return 0;
17946 }
17947 _ACEOF
17948 rm -f conftest.$ac_objext
17949 if { (ac_try="$ac_compile"
17950 case "(($ac_try" in
17951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17952 *) ac_try_echo=$ac_try;;
17953 esac
17954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17955 (eval "$ac_compile") 2>conftest.er1
17956 ac_status=$?
17957 grep -v '^ *+' conftest.er1 >conftest.err
17958 rm -f conftest.er1
17959 cat conftest.err >&5
17960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17961 (exit $ac_status); } && {
17962 test -z "$ac_c_werror_flag" ||
17963 test ! -s conftest.err
17964 } && test -s conftest.$ac_objext; then
17965 ac_cv_member_struct_nlist_n_un_n_name=yes
17966 else
17967 echo "$as_me: failed program was:" >&5
17968 sed 's/^/| /' conftest.$ac_ext >&5
17969
17970 cat >conftest.$ac_ext <<_ACEOF
17971 /* confdefs.h. */
17972 _ACEOF
17973 cat confdefs.h >>conftest.$ac_ext
17974 cat >>conftest.$ac_ext <<_ACEOF
17975 /* end confdefs.h. */
17976 #include <nlist.h>
17977
17978 int
17979 main ()
17980 {
17981 static struct nlist ac_aggr;
17982 if (sizeof ac_aggr.n_un.n_name)
17983 return 0;
17984 ;
17985 return 0;
17986 }
17987 _ACEOF
17988 rm -f conftest.$ac_objext
17989 if { (ac_try="$ac_compile"
17990 case "(($ac_try" in
17991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17992 *) ac_try_echo=$ac_try;;
17993 esac
17994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17995 (eval "$ac_compile") 2>conftest.er1
17996 ac_status=$?
17997 grep -v '^ *+' conftest.er1 >conftest.err
17998 rm -f conftest.er1
17999 cat conftest.err >&5
18000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18001 (exit $ac_status); } && {
18002 test -z "$ac_c_werror_flag" ||
18003 test ! -s conftest.err
18004 } && test -s conftest.$ac_objext; then
18005 ac_cv_member_struct_nlist_n_un_n_name=yes
18006 else
18007 echo "$as_me: failed program was:" >&5
18008 sed 's/^/| /' conftest.$ac_ext >&5
18009
18010 ac_cv_member_struct_nlist_n_un_n_name=no
18011 fi
18012
18013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18014 fi
18015
18016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18017 fi
18018 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18019 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18020 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18021
18022 cat >>confdefs.h <<_ACEOF
18023 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18024 _ACEOF
18025
18026
18027 cat >>confdefs.h <<\_ACEOF
18028 #define NLIST_NAME_UNION 1
18029 _ACEOF
18030
18031 fi
18032
18033
18034 fi
18035
18036 done
18037
18038 fi
18039 done
18040
18041
18042 # Some definitions of getloadavg require that the program be installed setgid.
18043 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18044 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18045 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18046 echo $ECHO_N "(cached) $ECHO_C" >&6
18047 else
18048 cat >conftest.$ac_ext <<_ACEOF
18049 /* confdefs.h. */
18050 _ACEOF
18051 cat confdefs.h >>conftest.$ac_ext
18052 cat >>conftest.$ac_ext <<_ACEOF
18053 /* end confdefs.h. */
18054 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18055 #ifdef LDAV_PRIVILEGED
18056 Yowza Am I SETGID yet
18057 #endif
18058 _ACEOF
18059 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18060 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18061 ac_cv_func_getloadavg_setgid=yes
18062 else
18063 ac_cv_func_getloadavg_setgid=no
18064 fi
18065 rm -f conftest*
18066
18067 fi
18068 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18069 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18070 if test $ac_cv_func_getloadavg_setgid = yes; then
18071 NEED_SETGID=true
18072
18073 cat >>confdefs.h <<\_ACEOF
18074 #define GETLOADAVG_PRIVILEGED 1
18075 _ACEOF
18076
18077 else
18078 NEED_SETGID=false
18079 fi
18080
18081 if test $ac_cv_func_getloadavg_setgid = yes; then
18082 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18083 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18084 if test "${ac_cv_group_kmem+set}" = set; then
18085 echo $ECHO_N "(cached) $ECHO_C" >&6
18086 else
18087 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18088 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18089 # If we got an error (system does not support symlinks), try without -L.
18090 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18091 ac_cv_group_kmem=`echo $ac_ls_output \
18092 | sed -ne 's/[ ][ ]*/ /g;
18093 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18094 / /s/.* //;p;'`
18095
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18098 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18099 KMEM_GROUP=$ac_cv_group_kmem
18100 fi
18101 if test "x$ac_save_LIBS" = x; then
18102 GETLOADAVG_LIBS=$LIBS
18103 else
18104 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18105 fi
18106 LIBS=$ac_save_LIBS
18107
18108
18109
18110 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18111 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18112 if test "${ac_cv_sys_largefile_source+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 while :; do
18116 cat >conftest.$ac_ext <<_ACEOF
18117 /* confdefs.h. */
18118 _ACEOF
18119 cat confdefs.h >>conftest.$ac_ext
18120 cat >>conftest.$ac_ext <<_ACEOF
18121 /* end confdefs.h. */
18122 #include <sys/types.h> /* for off_t */
18123 #include <stdio.h>
18124 int
18125 main ()
18126 {
18127 int (*fp) (FILE *, off_t, int) = fseeko;
18128 return fseeko (stdin, 0, 0) && fp (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 <sys/types.h> /* for off_t */
18169 #include <stdio.h>
18170 int
18171 main ()
18172 {
18173 int (*fp) (FILE *, off_t, int) = fseeko;
18174 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18175 ;
18176 return 0;
18177 }
18178 _ACEOF
18179 rm -f conftest.$ac_objext conftest$ac_exeext
18180 if { (ac_try="$ac_link"
18181 case "(($ac_try" in
18182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18183 *) ac_try_echo=$ac_try;;
18184 esac
18185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18186 (eval "$ac_link") 2>conftest.er1
18187 ac_status=$?
18188 grep -v '^ *+' conftest.er1 >conftest.err
18189 rm -f conftest.er1
18190 cat conftest.err >&5
18191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18192 (exit $ac_status); } && {
18193 test -z "$ac_c_werror_flag" ||
18194 test ! -s conftest.err
18195 } && test -s conftest$ac_exeext &&
18196 $as_test_x conftest$ac_exeext; then
18197 ac_cv_sys_largefile_source=1; break
18198 else
18199 echo "$as_me: failed program was:" >&5
18200 sed 's/^/| /' conftest.$ac_ext >&5
18201
18202
18203 fi
18204
18205 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18206 conftest$ac_exeext conftest.$ac_ext
18207 ac_cv_sys_largefile_source=unknown
18208 break
18209 done
18210 fi
18211 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18212 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18213 case $ac_cv_sys_largefile_source in #(
18214 no | unknown) ;;
18215 *)
18216 cat >>confdefs.h <<_ACEOF
18217 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18218 _ACEOF
18219 ;;
18220 esac
18221 rm -f conftest*
18222
18223 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18224 # in glibc 2.1.3, but that breaks too many other things.
18225 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18226 if test $ac_cv_sys_largefile_source != unknown; then
18227
18228 cat >>confdefs.h <<\_ACEOF
18229 #define HAVE_FSEEKO 1
18230 _ACEOF
18231
18232 fi
18233
18234
18235 # Configure getopt.
18236 # getopt.m4 serial 10
18237
18238 # The getopt module assume you want GNU getopt, with getopt_long etc,
18239 # rather than vanilla POSIX getopt. This means your your code should
18240 # always include <getopt.h> for the getopt prototypes.
18241
18242
18243
18244
18245
18246
18247
18248
18249
18250
18251
18252 # Prerequisites of lib/getopt*.
18253
18254
18255
18256
18257 GETOPT_H=
18258
18259 for ac_header in getopt.h
18260 do
18261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 fi
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271 else
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ac_header_compiler=no
18307 fi
18308
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18312
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <$ac_header>
18323 _ACEOF
18324 if { (ac_try="$ac_cpp conftest.$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 }; then
18340 ac_header_preproc=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_header_preproc=no
18346 fi
18347
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18351
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354 yes:no: )
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18359 ac_header_preproc=yes
18360 ;;
18361 no:yes:* )
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18374
18375 ;;
18376 esac
18377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 eval "$as_ac_Header=\$ac_header_preproc"
18383 fi
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387
18388 fi
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18392 _ACEOF
18393
18394 else
18395 GETOPT_H=getopt.h
18396 fi
18397
18398 done
18399
18400 if test -z "$GETOPT_H"; then
18401
18402 for ac_func in getopt_long_only
18403 do
18404 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18405 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18406 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18407 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18408 echo $ECHO_N "(cached) $ECHO_C" >&6
18409 else
18410 cat >conftest.$ac_ext <<_ACEOF
18411 /* confdefs.h. */
18412 _ACEOF
18413 cat confdefs.h >>conftest.$ac_ext
18414 cat >>conftest.$ac_ext <<_ACEOF
18415 /* end confdefs.h. */
18416 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18417 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18418 #define $ac_func innocuous_$ac_func
18419
18420 /* System header to define __stub macros and hopefully few prototypes,
18421 which can conflict with char $ac_func (); below.
18422 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18423 <limits.h> exists even on freestanding compilers. */
18424
18425 #ifdef __STDC__
18426 # include <limits.h>
18427 #else
18428 # include <assert.h>
18429 #endif
18430
18431 #undef $ac_func
18432
18433 /* Override any GCC internal prototype to avoid an error.
18434 Use char because int might match the return type of a GCC
18435 builtin and then its argument prototype would still apply. */
18436 #ifdef __cplusplus
18437 extern "C"
18438 #endif
18439 char $ac_func ();
18440 /* The GNU C library defines this for functions which it implements
18441 to always fail with ENOSYS. Some functions are actually named
18442 something starting with __ and the normal name is an alias. */
18443 #if defined __stub_$ac_func || defined __stub___$ac_func
18444 choke me
18445 #endif
18446
18447 int
18448 main ()
18449 {
18450 return $ac_func ();
18451 ;
18452 return 0;
18453 }
18454 _ACEOF
18455 rm -f conftest.$ac_objext conftest$ac_exeext
18456 if { (ac_try="$ac_link"
18457 case "(($ac_try" in
18458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18459 *) ac_try_echo=$ac_try;;
18460 esac
18461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18462 (eval "$ac_link") 2>conftest.er1
18463 ac_status=$?
18464 grep -v '^ *+' conftest.er1 >conftest.err
18465 rm -f conftest.er1
18466 cat conftest.err >&5
18467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18468 (exit $ac_status); } && {
18469 test -z "$ac_c_werror_flag" ||
18470 test ! -s conftest.err
18471 } && test -s conftest$ac_exeext &&
18472 $as_test_x conftest$ac_exeext; then
18473 eval "$as_ac_var=yes"
18474 else
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 eval "$as_ac_var=no"
18479 fi
18480
18481 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18482 conftest$ac_exeext conftest.$ac_ext
18483 fi
18484 ac_res=`eval echo '${'$as_ac_var'}'`
18485 { echo "$as_me:$LINENO: result: $ac_res" >&5
18486 echo "${ECHO_T}$ac_res" >&6; }
18487 if test `eval echo '${'$as_ac_var'}'` = yes; then
18488 cat >>confdefs.h <<_ACEOF
18489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18490 _ACEOF
18491
18492 else
18493 GETOPT_H=getopt.h
18494 fi
18495 done
18496
18497 fi
18498
18499 if test -z "$GETOPT_H"; then
18500 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18501 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18502 if test "${ac_cv_have_decl_optreset+set}" = set; then
18503 echo $ECHO_N "(cached) $ECHO_C" >&6
18504 else
18505 cat >conftest.$ac_ext <<_ACEOF
18506 /* confdefs.h. */
18507 _ACEOF
18508 cat confdefs.h >>conftest.$ac_ext
18509 cat >>conftest.$ac_ext <<_ACEOF
18510 /* end confdefs.h. */
18511 #include <getopt.h>
18512
18513 int
18514 main ()
18515 {
18516 #ifndef optreset
18517 (void) optreset;
18518 #endif
18519
18520 ;
18521 return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest.$ac_objext
18525 if { (ac_try="$ac_compile"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_compile") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest.$ac_objext; then
18541 ac_cv_have_decl_optreset=yes
18542 else
18543 echo "$as_me: failed program was:" >&5
18544 sed 's/^/| /' conftest.$ac_ext >&5
18545
18546 ac_cv_have_decl_optreset=no
18547 fi
18548
18549 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18550 fi
18551 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18552 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18553 if test $ac_cv_have_decl_optreset = yes; then
18554 GETOPT_H=getopt.h
18555 fi
18556
18557 fi
18558
18559 if test -z "$GETOPT_H"; then
18560 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18561 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18562 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18563 echo $ECHO_N "(cached) $ECHO_C" >&6
18564 else
18565 if test "$cross_compiling" = yes; then
18566 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18567 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18568 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 else
18571 cat >conftest.$ac_ext <<_ACEOF
18572 /* confdefs.h. */
18573 _ACEOF
18574 cat confdefs.h >>conftest.$ac_ext
18575 cat >>conftest.$ac_ext <<_ACEOF
18576 /* end confdefs.h. */
18577 #include <getopt.h>
18578
18579 int
18580 main ()
18581 {
18582 #ifndef getopt_clip
18583 (void) getopt_clip;
18584 #endif
18585
18586 ;
18587 return 0;
18588 }
18589 _ACEOF
18590 rm -f conftest.$ac_objext
18591 if { (ac_try="$ac_compile"
18592 case "(($ac_try" in
18593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18594 *) ac_try_echo=$ac_try;;
18595 esac
18596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18597 (eval "$ac_compile") 2>conftest.er1
18598 ac_status=$?
18599 grep -v '^ *+' conftest.er1 >conftest.err
18600 rm -f conftest.er1
18601 cat conftest.err >&5
18602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18603 (exit $ac_status); } && {
18604 test -z "$ac_c_werror_flag" ||
18605 test ! -s conftest.err
18606 } && test -s conftest.$ac_objext; then
18607 ac_cv_have_decl_getopt_clip=yes
18608 else
18609 echo "$as_me: failed program was:" >&5
18610 sed 's/^/| /' conftest.$ac_ext >&5
18611
18612 ac_cv_have_decl_getopt_clip=no
18613 fi
18614
18615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18616 fi
18617 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18618 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18619 if test $ac_cv_have_decl_getopt_clip = yes; then
18620 gl_cv_func_gnu_getopt=no
18621 else
18622 gl_cv_func_gnu_getopt=yes
18623 fi
18624
18625 else
18626 cat >conftest.$ac_ext <<_ACEOF
18627 /* confdefs.h. */
18628 _ACEOF
18629 cat confdefs.h >>conftest.$ac_ext
18630 cat >>conftest.$ac_ext <<_ACEOF
18631 /* end confdefs.h. */
18632 #include <getopt.h>
18633 int
18634 main ()
18635 {
18636
18637 char *myargv[3];
18638 myargv[0] = "conftest";
18639 myargv[1] = "-+";
18640 myargv[2] = 0;
18641 return getopt (2, myargv, "+a") != '?';
18642
18643 ;
18644 return 0;
18645 }
18646 _ACEOF
18647 rm -f conftest$ac_exeext
18648 if { (ac_try="$ac_link"
18649 case "(($ac_try" in
18650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18651 *) ac_try_echo=$ac_try;;
18652 esac
18653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18654 (eval "$ac_link") 2>&5
18655 ac_status=$?
18656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18657 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18658 { (case "(($ac_try" in
18659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18660 *) ac_try_echo=$ac_try;;
18661 esac
18662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18663 (eval "$ac_try") 2>&5
18664 ac_status=$?
18665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18666 (exit $ac_status); }; }; then
18667 gl_cv_func_gnu_getopt=yes
18668 else
18669 echo "$as_me: program exited with status $ac_status" >&5
18670 echo "$as_me: failed program was:" >&5
18671 sed 's/^/| /' conftest.$ac_ext >&5
18672
18673 ( exit $ac_status )
18674 gl_cv_func_gnu_getopt=no
18675 fi
18676 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18677 fi
18678
18679
18680 fi
18681 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18682 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18683 if test "$gl_cv_func_gnu_getopt" = "no"; then
18684 GETOPT_H=getopt.h
18685 fi
18686 fi
18687
18688
18689
18690 if test -n "$GETOPT_H"; then
18691
18692
18693 GETOPT_H=getopt.h
18694
18695 cat >>confdefs.h <<\_ACEOF
18696 #define __GETOPT_PREFIX rpl_
18697 _ACEOF
18698
18699
18700
18701 :
18702 GETOPTOBJS='getopt.o getopt1.o'
18703
18704 fi
18705
18706
18707
18708
18709 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18710 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18711 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18712 echo $ECHO_N "(cached) $ECHO_C" >&6
18713 else
18714 # Use it with a single arg.
18715 cat >conftest.$ac_ext <<_ACEOF
18716 /* confdefs.h. */
18717 _ACEOF
18718 cat confdefs.h >>conftest.$ac_ext
18719 cat >>conftest.$ac_ext <<_ACEOF
18720 /* end confdefs.h. */
18721 $ac_includes_default
18722 int
18723 main ()
18724 {
18725 getpgrp (0);
18726 ;
18727 return 0;
18728 }
18729 _ACEOF
18730 rm -f conftest.$ac_objext
18731 if { (ac_try="$ac_compile"
18732 case "(($ac_try" in
18733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18734 *) ac_try_echo=$ac_try;;
18735 esac
18736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18737 (eval "$ac_compile") 2>conftest.er1
18738 ac_status=$?
18739 grep -v '^ *+' conftest.er1 >conftest.err
18740 rm -f conftest.er1
18741 cat conftest.err >&5
18742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18743 (exit $ac_status); } && {
18744 test -z "$ac_c_werror_flag" ||
18745 test ! -s conftest.err
18746 } && test -s conftest.$ac_objext; then
18747 ac_cv_func_getpgrp_void=no
18748 else
18749 echo "$as_me: failed program was:" >&5
18750 sed 's/^/| /' conftest.$ac_ext >&5
18751
18752 ac_cv_func_getpgrp_void=yes
18753 fi
18754
18755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18756
18757 fi
18758 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18759 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18760 if test $ac_cv_func_getpgrp_void = yes; then
18761
18762 cat >>confdefs.h <<\_ACEOF
18763 #define GETPGRP_VOID 1
18764 _ACEOF
18765
18766 fi
18767
18768
18769
18770 for ac_func in strftime
18771 do
18772 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18773 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18774 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18775 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18776 echo $ECHO_N "(cached) $ECHO_C" >&6
18777 else
18778 cat >conftest.$ac_ext <<_ACEOF
18779 /* confdefs.h. */
18780 _ACEOF
18781 cat confdefs.h >>conftest.$ac_ext
18782 cat >>conftest.$ac_ext <<_ACEOF
18783 /* end confdefs.h. */
18784 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18785 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18786 #define $ac_func innocuous_$ac_func
18787
18788 /* System header to define __stub macros and hopefully few prototypes,
18789 which can conflict with char $ac_func (); below.
18790 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18791 <limits.h> exists even on freestanding compilers. */
18792
18793 #ifdef __STDC__
18794 # include <limits.h>
18795 #else
18796 # include <assert.h>
18797 #endif
18798
18799 #undef $ac_func
18800
18801 /* Override any GCC internal prototype to avoid an error.
18802 Use char because int might match the return type of a GCC
18803 builtin and then its argument prototype would still apply. */
18804 #ifdef __cplusplus
18805 extern "C"
18806 #endif
18807 char $ac_func ();
18808 /* The GNU C library defines this for functions which it implements
18809 to always fail with ENOSYS. Some functions are actually named
18810 something starting with __ and the normal name is an alias. */
18811 #if defined __stub_$ac_func || defined __stub___$ac_func
18812 choke me
18813 #endif
18814
18815 int
18816 main ()
18817 {
18818 return $ac_func ();
18819 ;
18820 return 0;
18821 }
18822 _ACEOF
18823 rm -f conftest.$ac_objext conftest$ac_exeext
18824 if { (ac_try="$ac_link"
18825 case "(($ac_try" in
18826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18827 *) ac_try_echo=$ac_try;;
18828 esac
18829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18830 (eval "$ac_link") 2>conftest.er1
18831 ac_status=$?
18832 grep -v '^ *+' conftest.er1 >conftest.err
18833 rm -f conftest.er1
18834 cat conftest.err >&5
18835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18836 (exit $ac_status); } && {
18837 test -z "$ac_c_werror_flag" ||
18838 test ! -s conftest.err
18839 } && test -s conftest$ac_exeext &&
18840 $as_test_x conftest$ac_exeext; then
18841 eval "$as_ac_var=yes"
18842 else
18843 echo "$as_me: failed program was:" >&5
18844 sed 's/^/| /' conftest.$ac_ext >&5
18845
18846 eval "$as_ac_var=no"
18847 fi
18848
18849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18850 conftest$ac_exeext conftest.$ac_ext
18851 fi
18852 ac_res=`eval echo '${'$as_ac_var'}'`
18853 { echo "$as_me:$LINENO: result: $ac_res" >&5
18854 echo "${ECHO_T}$ac_res" >&6; }
18855 if test `eval echo '${'$as_ac_var'}'` = yes; then
18856 cat >>confdefs.h <<_ACEOF
18857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18858 _ACEOF
18859
18860 else
18861 # strftime is in -lintl on SCO UNIX.
18862 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18863 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18864 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18865 echo $ECHO_N "(cached) $ECHO_C" >&6
18866 else
18867 ac_check_lib_save_LIBS=$LIBS
18868 LIBS="-lintl $LIBS"
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875
18876 /* Override any GCC internal prototype to avoid an error.
18877 Use char because int might match the return type of a GCC
18878 builtin and then its argument prototype would still apply. */
18879 #ifdef __cplusplus
18880 extern "C"
18881 #endif
18882 char strftime ();
18883 int
18884 main ()
18885 {
18886 return strftime ();
18887 ;
18888 return 0;
18889 }
18890 _ACEOF
18891 rm -f conftest.$ac_objext conftest$ac_exeext
18892 if { (ac_try="$ac_link"
18893 case "(($ac_try" in
18894 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18895 *) ac_try_echo=$ac_try;;
18896 esac
18897 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18898 (eval "$ac_link") 2>conftest.er1
18899 ac_status=$?
18900 grep -v '^ *+' conftest.er1 >conftest.err
18901 rm -f conftest.er1
18902 cat conftest.err >&5
18903 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18904 (exit $ac_status); } && {
18905 test -z "$ac_c_werror_flag" ||
18906 test ! -s conftest.err
18907 } && test -s conftest$ac_exeext &&
18908 $as_test_x conftest$ac_exeext; then
18909 ac_cv_lib_intl_strftime=yes
18910 else
18911 echo "$as_me: failed program was:" >&5
18912 sed 's/^/| /' conftest.$ac_ext >&5
18913
18914 ac_cv_lib_intl_strftime=no
18915 fi
18916
18917 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18918 conftest$ac_exeext conftest.$ac_ext
18919 LIBS=$ac_check_lib_save_LIBS
18920 fi
18921 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18922 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18923 if test $ac_cv_lib_intl_strftime = yes; then
18924 cat >>confdefs.h <<\_ACEOF
18925 #define HAVE_STRFTIME 1
18926 _ACEOF
18927
18928 LIBS="-lintl $LIBS"
18929 fi
18930
18931 fi
18932 done
18933
18934
18935 # UNIX98 PTYs.
18936
18937 for ac_func in grantpt
18938 do
18939 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18940 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18941 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18942 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18943 echo $ECHO_N "(cached) $ECHO_C" >&6
18944 else
18945 cat >conftest.$ac_ext <<_ACEOF
18946 /* confdefs.h. */
18947 _ACEOF
18948 cat confdefs.h >>conftest.$ac_ext
18949 cat >>conftest.$ac_ext <<_ACEOF
18950 /* end confdefs.h. */
18951 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18952 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18953 #define $ac_func innocuous_$ac_func
18954
18955 /* System header to define __stub macros and hopefully few prototypes,
18956 which can conflict with char $ac_func (); below.
18957 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18958 <limits.h> exists even on freestanding compilers. */
18959
18960 #ifdef __STDC__
18961 # include <limits.h>
18962 #else
18963 # include <assert.h>
18964 #endif
18965
18966 #undef $ac_func
18967
18968 /* Override any GCC internal prototype to avoid an error.
18969 Use char because int might match the return type of a GCC
18970 builtin and then its argument prototype would still apply. */
18971 #ifdef __cplusplus
18972 extern "C"
18973 #endif
18974 char $ac_func ();
18975 /* The GNU C library defines this for functions which it implements
18976 to always fail with ENOSYS. Some functions are actually named
18977 something starting with __ and the normal name is an alias. */
18978 #if defined __stub_$ac_func || defined __stub___$ac_func
18979 choke me
18980 #endif
18981
18982 int
18983 main ()
18984 {
18985 return $ac_func ();
18986 ;
18987 return 0;
18988 }
18989 _ACEOF
18990 rm -f conftest.$ac_objext conftest$ac_exeext
18991 if { (ac_try="$ac_link"
18992 case "(($ac_try" in
18993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18994 *) ac_try_echo=$ac_try;;
18995 esac
18996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18997 (eval "$ac_link") 2>conftest.er1
18998 ac_status=$?
18999 grep -v '^ *+' conftest.er1 >conftest.err
19000 rm -f conftest.er1
19001 cat conftest.err >&5
19002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19003 (exit $ac_status); } && {
19004 test -z "$ac_c_werror_flag" ||
19005 test ! -s conftest.err
19006 } && test -s conftest$ac_exeext &&
19007 $as_test_x conftest$ac_exeext; then
19008 eval "$as_ac_var=yes"
19009 else
19010 echo "$as_me: failed program was:" >&5
19011 sed 's/^/| /' conftest.$ac_ext >&5
19012
19013 eval "$as_ac_var=no"
19014 fi
19015
19016 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19017 conftest$ac_exeext conftest.$ac_ext
19018 fi
19019 ac_res=`eval echo '${'$as_ac_var'}'`
19020 { echo "$as_me:$LINENO: result: $ac_res" >&5
19021 echo "${ECHO_T}$ac_res" >&6; }
19022 if test `eval echo '${'$as_ac_var'}'` = yes; then
19023 cat >>confdefs.h <<_ACEOF
19024 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19025 _ACEOF
19026
19027 fi
19028 done
19029
19030
19031 # PTY-related GNU extensions.
19032
19033 for ac_func in getpt
19034 do
19035 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19036 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19037 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19038 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 cat >conftest.$ac_ext <<_ACEOF
19042 /* confdefs.h. */
19043 _ACEOF
19044 cat confdefs.h >>conftest.$ac_ext
19045 cat >>conftest.$ac_ext <<_ACEOF
19046 /* end confdefs.h. */
19047 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19048 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19049 #define $ac_func innocuous_$ac_func
19050
19051 /* System header to define __stub macros and hopefully few prototypes,
19052 which can conflict with char $ac_func (); below.
19053 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19054 <limits.h> exists even on freestanding compilers. */
19055
19056 #ifdef __STDC__
19057 # include <limits.h>
19058 #else
19059 # include <assert.h>
19060 #endif
19061
19062 #undef $ac_func
19063
19064 /* Override any GCC internal prototype to avoid an error.
19065 Use char because int might match the return type of a GCC
19066 builtin and then its argument prototype would still apply. */
19067 #ifdef __cplusplus
19068 extern "C"
19069 #endif
19070 char $ac_func ();
19071 /* The GNU C library defines this for functions which it implements
19072 to always fail with ENOSYS. Some functions are actually named
19073 something starting with __ and the normal name is an alias. */
19074 #if defined __stub_$ac_func || defined __stub___$ac_func
19075 choke me
19076 #endif
19077
19078 int
19079 main ()
19080 {
19081 return $ac_func ();
19082 ;
19083 return 0;
19084 }
19085 _ACEOF
19086 rm -f conftest.$ac_objext conftest$ac_exeext
19087 if { (ac_try="$ac_link"
19088 case "(($ac_try" in
19089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19090 *) ac_try_echo=$ac_try;;
19091 esac
19092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19093 (eval "$ac_link") 2>conftest.er1
19094 ac_status=$?
19095 grep -v '^ *+' conftest.er1 >conftest.err
19096 rm -f conftest.er1
19097 cat conftest.err >&5
19098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19099 (exit $ac_status); } && {
19100 test -z "$ac_c_werror_flag" ||
19101 test ! -s conftest.err
19102 } && test -s conftest$ac_exeext &&
19103 $as_test_x conftest$ac_exeext; then
19104 eval "$as_ac_var=yes"
19105 else
19106 echo "$as_me: failed program was:" >&5
19107 sed 's/^/| /' conftest.$ac_ext >&5
19108
19109 eval "$as_ac_var=no"
19110 fi
19111
19112 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19113 conftest$ac_exeext conftest.$ac_ext
19114 fi
19115 ac_res=`eval echo '${'$as_ac_var'}'`
19116 { echo "$as_me:$LINENO: result: $ac_res" >&5
19117 echo "${ECHO_T}$ac_res" >&6; }
19118 if test `eval echo '${'$as_ac_var'}'` = yes; then
19119 cat >>confdefs.h <<_ACEOF
19120 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19121 _ACEOF
19122
19123 fi
19124 done
19125
19126
19127 # Check this now, so that we will NOT find the above functions in ncurses.
19128 # That is because we have not set up to link ncurses in lib-src.
19129 # It's better to believe a function is not available
19130 # than to expect to find it in ncurses.
19131
19132 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19133 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19134 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19135 echo $ECHO_N "(cached) $ECHO_C" >&6
19136 else
19137 ac_check_lib_save_LIBS=$LIBS
19138 LIBS="-lncurses $LIBS"
19139 cat >conftest.$ac_ext <<_ACEOF
19140 /* confdefs.h. */
19141 _ACEOF
19142 cat confdefs.h >>conftest.$ac_ext
19143 cat >>conftest.$ac_ext <<_ACEOF
19144 /* end confdefs.h. */
19145
19146 /* Override any GCC internal prototype to avoid an error.
19147 Use char because int might match the return type of a GCC
19148 builtin and then its argument prototype would still apply. */
19149 #ifdef __cplusplus
19150 extern "C"
19151 #endif
19152 char tparm ();
19153 int
19154 main ()
19155 {
19156 return tparm ();
19157 ;
19158 return 0;
19159 }
19160 _ACEOF
19161 rm -f conftest.$ac_objext conftest$ac_exeext
19162 if { (ac_try="$ac_link"
19163 case "(($ac_try" in
19164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19165 *) ac_try_echo=$ac_try;;
19166 esac
19167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19168 (eval "$ac_link") 2>conftest.er1
19169 ac_status=$?
19170 grep -v '^ *+' conftest.er1 >conftest.err
19171 rm -f conftest.er1
19172 cat conftest.err >&5
19173 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19174 (exit $ac_status); } && {
19175 test -z "$ac_c_werror_flag" ||
19176 test ! -s conftest.err
19177 } && test -s conftest$ac_exeext &&
19178 $as_test_x conftest$ac_exeext; then
19179 ac_cv_lib_ncurses_tparm=yes
19180 else
19181 echo "$as_me: failed program was:" >&5
19182 sed 's/^/| /' conftest.$ac_ext >&5
19183
19184 ac_cv_lib_ncurses_tparm=no
19185 fi
19186
19187 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19188 conftest$ac_exeext conftest.$ac_ext
19189 LIBS=$ac_check_lib_save_LIBS
19190 fi
19191 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19192 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19193 if test $ac_cv_lib_ncurses_tparm = yes; then
19194 cat >>confdefs.h <<_ACEOF
19195 #define HAVE_LIBNCURSES 1
19196 _ACEOF
19197
19198 LIBS="-lncurses $LIBS"
19199
19200 fi
19201
19202
19203 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19204
19205 resolv=no
19206 cat >conftest.$ac_ext <<_ACEOF
19207 /* confdefs.h. */
19208 _ACEOF
19209 cat confdefs.h >>conftest.$ac_ext
19210 cat >>conftest.$ac_ext <<_ACEOF
19211 /* end confdefs.h. */
19212 #include <netinet/in.h>
19213 #include <arpa/nameser.h>
19214 #include <resolv.h>
19215 int
19216 main ()
19217 {
19218 return res_init();
19219 ;
19220 return 0;
19221 }
19222 _ACEOF
19223 rm -f conftest.$ac_objext conftest$ac_exeext
19224 if { (ac_try="$ac_link"
19225 case "(($ac_try" in
19226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19227 *) ac_try_echo=$ac_try;;
19228 esac
19229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19230 (eval "$ac_link") 2>conftest.er1
19231 ac_status=$?
19232 grep -v '^ *+' conftest.er1 >conftest.err
19233 rm -f conftest.er1
19234 cat conftest.err >&5
19235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19236 (exit $ac_status); } && {
19237 test -z "$ac_c_werror_flag" ||
19238 test ! -s conftest.err
19239 } && test -s conftest$ac_exeext &&
19240 $as_test_x conftest$ac_exeext; then
19241 have_res_init=yes
19242 else
19243 echo "$as_me: failed program was:" >&5
19244 sed 's/^/| /' conftest.$ac_ext >&5
19245
19246 have_res_init=no
19247 fi
19248
19249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19250 conftest$ac_exeext conftest.$ac_ext
19251 if test "$have_res_init" = no; then
19252 OLIBS="$LIBS"
19253 LIBS="$LIBS -lresolv"
19254 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19255 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19256 cat >conftest.$ac_ext <<_ACEOF
19257 /* confdefs.h. */
19258 _ACEOF
19259 cat confdefs.h >>conftest.$ac_ext
19260 cat >>conftest.$ac_ext <<_ACEOF
19261 /* end confdefs.h. */
19262 #include <netinet/in.h>
19263 #include <arpa/nameser.h>
19264 #include <resolv.h>
19265 int
19266 main ()
19267 {
19268 return res_init();
19269 ;
19270 return 0;
19271 }
19272 _ACEOF
19273 rm -f conftest.$ac_objext conftest$ac_exeext
19274 if { (ac_try="$ac_link"
19275 case "(($ac_try" in
19276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19277 *) ac_try_echo=$ac_try;;
19278 esac
19279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19280 (eval "$ac_link") 2>conftest.er1
19281 ac_status=$?
19282 grep -v '^ *+' conftest.er1 >conftest.err
19283 rm -f conftest.er1
19284 cat conftest.err >&5
19285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19286 (exit $ac_status); } && {
19287 test -z "$ac_c_werror_flag" ||
19288 test ! -s conftest.err
19289 } && test -s conftest$ac_exeext &&
19290 $as_test_x conftest$ac_exeext; then
19291 have_res_init=yes
19292 else
19293 echo "$as_me: failed program was:" >&5
19294 sed 's/^/| /' conftest.$ac_ext >&5
19295
19296 have_res_init=no
19297 fi
19298
19299 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19300 conftest$ac_exeext conftest.$ac_ext
19301 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19302 echo "${ECHO_T}$have_res_init" >&6; }
19303 if test "$have_res_init" = yes ; then
19304 resolv=yes
19305 fi
19306 LIBS="$OLIBS"
19307 fi
19308
19309 if test "$have_res_init" = yes; then
19310
19311 cat >>confdefs.h <<\_ACEOF
19312 #define HAVE_RES_INIT 1
19313 _ACEOF
19314
19315 fi
19316
19317 # Do we need the Hesiod library to provide the support routines?
19318 if test "$with_hesiod" = yes ; then
19319 # Don't set $LIBS here -- see comments above.
19320 { echo "$as_me:$LINENO: checking for res_send" >&5
19321 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19322 if test "${ac_cv_func_res_send+set}" = set; then
19323 echo $ECHO_N "(cached) $ECHO_C" >&6
19324 else
19325 cat >conftest.$ac_ext <<_ACEOF
19326 /* confdefs.h. */
19327 _ACEOF
19328 cat confdefs.h >>conftest.$ac_ext
19329 cat >>conftest.$ac_ext <<_ACEOF
19330 /* end confdefs.h. */
19331 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19332 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19333 #define res_send innocuous_res_send
19334
19335 /* System header to define __stub macros and hopefully few prototypes,
19336 which can conflict with char res_send (); below.
19337 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19338 <limits.h> exists even on freestanding compilers. */
19339
19340 #ifdef __STDC__
19341 # include <limits.h>
19342 #else
19343 # include <assert.h>
19344 #endif
19345
19346 #undef res_send
19347
19348 /* Override any GCC internal prototype to avoid an error.
19349 Use char because int might match the return type of a GCC
19350 builtin and then its argument prototype would still apply. */
19351 #ifdef __cplusplus
19352 extern "C"
19353 #endif
19354 char res_send ();
19355 /* The GNU C library defines this for functions which it implements
19356 to always fail with ENOSYS. Some functions are actually named
19357 something starting with __ and the normal name is an alias. */
19358 #if defined __stub_res_send || defined __stub___res_send
19359 choke me
19360 #endif
19361
19362 int
19363 main ()
19364 {
19365 return res_send ();
19366 ;
19367 return 0;
19368 }
19369 _ACEOF
19370 rm -f conftest.$ac_objext conftest$ac_exeext
19371 if { (ac_try="$ac_link"
19372 case "(($ac_try" in
19373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19374 *) ac_try_echo=$ac_try;;
19375 esac
19376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19377 (eval "$ac_link") 2>conftest.er1
19378 ac_status=$?
19379 grep -v '^ *+' conftest.er1 >conftest.err
19380 rm -f conftest.er1
19381 cat conftest.err >&5
19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19383 (exit $ac_status); } && {
19384 test -z "$ac_c_werror_flag" ||
19385 test ! -s conftest.err
19386 } && test -s conftest$ac_exeext &&
19387 $as_test_x conftest$ac_exeext; then
19388 ac_cv_func_res_send=yes
19389 else
19390 echo "$as_me: failed program was:" >&5
19391 sed 's/^/| /' conftest.$ac_ext >&5
19392
19393 ac_cv_func_res_send=no
19394 fi
19395
19396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19397 conftest$ac_exeext conftest.$ac_ext
19398 fi
19399 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19400 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19401 if test $ac_cv_func_res_send = yes; then
19402 :
19403 else
19404 { echo "$as_me:$LINENO: checking for __res_send" >&5
19405 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19406 if test "${ac_cv_func___res_send+set}" = set; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define __res_send innocuous___res_send
19418
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char __res_send (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19423
19424 #ifdef __STDC__
19425 # include <limits.h>
19426 #else
19427 # include <assert.h>
19428 #endif
19429
19430 #undef __res_send
19431
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char __res_send ();
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined __stub___res_send || defined __stub_____res_send
19443 choke me
19444 #endif
19445
19446 int
19447 main ()
19448 {
19449 return __res_send ();
19450 ;
19451 return 0;
19452 }
19453 _ACEOF
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest$ac_exeext &&
19471 $as_test_x conftest$ac_exeext; then
19472 ac_cv_func___res_send=yes
19473 else
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 ac_cv_func___res_send=no
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481 conftest$ac_exeext conftest.$ac_ext
19482 fi
19483 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19484 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19485 if test $ac_cv_func___res_send = yes; then
19486 :
19487 else
19488 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19489 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19490 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19491 echo $ECHO_N "(cached) $ECHO_C" >&6
19492 else
19493 ac_check_lib_save_LIBS=$LIBS
19494 LIBS="-lresolv $LIBS"
19495 cat >conftest.$ac_ext <<_ACEOF
19496 /* confdefs.h. */
19497 _ACEOF
19498 cat confdefs.h >>conftest.$ac_ext
19499 cat >>conftest.$ac_ext <<_ACEOF
19500 /* end confdefs.h. */
19501
19502 /* Override any GCC internal prototype to avoid an error.
19503 Use char because int might match the return type of a GCC
19504 builtin and then its argument prototype would still apply. */
19505 #ifdef __cplusplus
19506 extern "C"
19507 #endif
19508 char res_send ();
19509 int
19510 main ()
19511 {
19512 return res_send ();
19513 ;
19514 return 0;
19515 }
19516 _ACEOF
19517 rm -f conftest.$ac_objext conftest$ac_exeext
19518 if { (ac_try="$ac_link"
19519 case "(($ac_try" in
19520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19521 *) ac_try_echo=$ac_try;;
19522 esac
19523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19524 (eval "$ac_link") 2>conftest.er1
19525 ac_status=$?
19526 grep -v '^ *+' conftest.er1 >conftest.err
19527 rm -f conftest.er1
19528 cat conftest.err >&5
19529 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19530 (exit $ac_status); } && {
19531 test -z "$ac_c_werror_flag" ||
19532 test ! -s conftest.err
19533 } && test -s conftest$ac_exeext &&
19534 $as_test_x conftest$ac_exeext; then
19535 ac_cv_lib_resolv_res_send=yes
19536 else
19537 echo "$as_me: failed program was:" >&5
19538 sed 's/^/| /' conftest.$ac_ext >&5
19539
19540 ac_cv_lib_resolv_res_send=no
19541 fi
19542
19543 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19544 conftest$ac_exeext conftest.$ac_ext
19545 LIBS=$ac_check_lib_save_LIBS
19546 fi
19547 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19548 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19549 if test $ac_cv_lib_resolv_res_send = yes; then
19550 resolv=yes
19551 else
19552 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19553 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19554 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19555 echo $ECHO_N "(cached) $ECHO_C" >&6
19556 else
19557 ac_check_lib_save_LIBS=$LIBS
19558 LIBS="-lresolv $LIBS"
19559 cat >conftest.$ac_ext <<_ACEOF
19560 /* confdefs.h. */
19561 _ACEOF
19562 cat confdefs.h >>conftest.$ac_ext
19563 cat >>conftest.$ac_ext <<_ACEOF
19564 /* end confdefs.h. */
19565
19566 /* Override any GCC internal prototype to avoid an error.
19567 Use char because int might match the return type of a GCC
19568 builtin and then its argument prototype would still apply. */
19569 #ifdef __cplusplus
19570 extern "C"
19571 #endif
19572 char __res_send ();
19573 int
19574 main ()
19575 {
19576 return __res_send ();
19577 ;
19578 return 0;
19579 }
19580 _ACEOF
19581 rm -f conftest.$ac_objext conftest$ac_exeext
19582 if { (ac_try="$ac_link"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_link") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } && {
19595 test -z "$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 } && test -s conftest$ac_exeext &&
19598 $as_test_x conftest$ac_exeext; then
19599 ac_cv_lib_resolv___res_send=yes
19600 else
19601 echo "$as_me: failed program was:" >&5
19602 sed 's/^/| /' conftest.$ac_ext >&5
19603
19604 ac_cv_lib_resolv___res_send=no
19605 fi
19606
19607 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19608 conftest$ac_exeext conftest.$ac_ext
19609 LIBS=$ac_check_lib_save_LIBS
19610 fi
19611 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19612 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19613 if test $ac_cv_lib_resolv___res_send = yes; then
19614 resolv=yes
19615 fi
19616
19617 fi
19618
19619 fi
19620
19621 fi
19622
19623 if test "$resolv" = yes ; then
19624 RESOLVLIB=-lresolv
19625 else
19626 RESOLVLIB=
19627 fi
19628 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19629 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19630 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19631 echo $ECHO_N "(cached) $ECHO_C" >&6
19632 else
19633 cat >conftest.$ac_ext <<_ACEOF
19634 /* confdefs.h. */
19635 _ACEOF
19636 cat confdefs.h >>conftest.$ac_ext
19637 cat >>conftest.$ac_ext <<_ACEOF
19638 /* end confdefs.h. */
19639 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19640 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19641 #define hes_getmailhost innocuous_hes_getmailhost
19642
19643 /* System header to define __stub macros and hopefully few prototypes,
19644 which can conflict with char hes_getmailhost (); below.
19645 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19646 <limits.h> exists even on freestanding compilers. */
19647
19648 #ifdef __STDC__
19649 # include <limits.h>
19650 #else
19651 # include <assert.h>
19652 #endif
19653
19654 #undef hes_getmailhost
19655
19656 /* Override any GCC internal prototype to avoid an error.
19657 Use char because int might match the return type of a GCC
19658 builtin and then its argument prototype would still apply. */
19659 #ifdef __cplusplus
19660 extern "C"
19661 #endif
19662 char hes_getmailhost ();
19663 /* The GNU C library defines this for functions which it implements
19664 to always fail with ENOSYS. Some functions are actually named
19665 something starting with __ and the normal name is an alias. */
19666 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19667 choke me
19668 #endif
19669
19670 int
19671 main ()
19672 {
19673 return hes_getmailhost ();
19674 ;
19675 return 0;
19676 }
19677 _ACEOF
19678 rm -f conftest.$ac_objext conftest$ac_exeext
19679 if { (ac_try="$ac_link"
19680 case "(($ac_try" in
19681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19682 *) ac_try_echo=$ac_try;;
19683 esac
19684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19685 (eval "$ac_link") 2>conftest.er1
19686 ac_status=$?
19687 grep -v '^ *+' conftest.er1 >conftest.err
19688 rm -f conftest.er1
19689 cat conftest.err >&5
19690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19691 (exit $ac_status); } && {
19692 test -z "$ac_c_werror_flag" ||
19693 test ! -s conftest.err
19694 } && test -s conftest$ac_exeext &&
19695 $as_test_x conftest$ac_exeext; then
19696 ac_cv_func_hes_getmailhost=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_cv_func_hes_getmailhost=no
19702 fi
19703
19704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19705 conftest$ac_exeext conftest.$ac_ext
19706 fi
19707 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19708 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19709 if test $ac_cv_func_hes_getmailhost = yes; then
19710 :
19711 else
19712 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19713 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19714 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19715 echo $ECHO_N "(cached) $ECHO_C" >&6
19716 else
19717 ac_check_lib_save_LIBS=$LIBS
19718 LIBS="-lhesiod $RESOLVLIB $LIBS"
19719 cat >conftest.$ac_ext <<_ACEOF
19720 /* confdefs.h. */
19721 _ACEOF
19722 cat confdefs.h >>conftest.$ac_ext
19723 cat >>conftest.$ac_ext <<_ACEOF
19724 /* end confdefs.h. */
19725
19726 /* Override any GCC internal prototype to avoid an error.
19727 Use char because int might match the return type of a GCC
19728 builtin and then its argument prototype would still apply. */
19729 #ifdef __cplusplus
19730 extern "C"
19731 #endif
19732 char hes_getmailhost ();
19733 int
19734 main ()
19735 {
19736 return hes_getmailhost ();
19737 ;
19738 return 0;
19739 }
19740 _ACEOF
19741 rm -f conftest.$ac_objext conftest$ac_exeext
19742 if { (ac_try="$ac_link"
19743 case "(($ac_try" in
19744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19745 *) ac_try_echo=$ac_try;;
19746 esac
19747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19748 (eval "$ac_link") 2>conftest.er1
19749 ac_status=$?
19750 grep -v '^ *+' conftest.er1 >conftest.err
19751 rm -f conftest.er1
19752 cat conftest.err >&5
19753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19754 (exit $ac_status); } && {
19755 test -z "$ac_c_werror_flag" ||
19756 test ! -s conftest.err
19757 } && test -s conftest$ac_exeext &&
19758 $as_test_x conftest$ac_exeext; then
19759 ac_cv_lib_hesiod_hes_getmailhost=yes
19760 else
19761 echo "$as_me: failed program was:" >&5
19762 sed 's/^/| /' conftest.$ac_ext >&5
19763
19764 ac_cv_lib_hesiod_hes_getmailhost=no
19765 fi
19766
19767 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19768 conftest$ac_exeext conftest.$ac_ext
19769 LIBS=$ac_check_lib_save_LIBS
19770 fi
19771 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19772 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19773 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_LIBHESIOD 1
19777 _ACEOF
19778
19779 else
19780 :
19781 fi
19782
19783 fi
19784
19785 fi
19786
19787 # Do we need libresolv (due to res_init or Hesiod)?
19788 if test "$resolv" = yes ; then
19789
19790 cat >>confdefs.h <<\_ACEOF
19791 #define HAVE_LIBRESOLV 1
19792 _ACEOF
19793
19794 fi
19795
19796 # These tell us which Kerberos-related libraries to use.
19797 if test "${with_kerberos+set}" = set; then
19798
19799 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19800 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19801 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19802 echo $ECHO_N "(cached) $ECHO_C" >&6
19803 else
19804 ac_check_lib_save_LIBS=$LIBS
19805 LIBS="-lcom_err $LIBS"
19806 cat >conftest.$ac_ext <<_ACEOF
19807 /* confdefs.h. */
19808 _ACEOF
19809 cat confdefs.h >>conftest.$ac_ext
19810 cat >>conftest.$ac_ext <<_ACEOF
19811 /* end confdefs.h. */
19812
19813 /* Override any GCC internal prototype to avoid an error.
19814 Use char because int might match the return type of a GCC
19815 builtin and then its argument prototype would still apply. */
19816 #ifdef __cplusplus
19817 extern "C"
19818 #endif
19819 char com_err ();
19820 int
19821 main ()
19822 {
19823 return com_err ();
19824 ;
19825 return 0;
19826 }
19827 _ACEOF
19828 rm -f conftest.$ac_objext conftest$ac_exeext
19829 if { (ac_try="$ac_link"
19830 case "(($ac_try" in
19831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19832 *) ac_try_echo=$ac_try;;
19833 esac
19834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19835 (eval "$ac_link") 2>conftest.er1
19836 ac_status=$?
19837 grep -v '^ *+' conftest.er1 >conftest.err
19838 rm -f conftest.er1
19839 cat conftest.err >&5
19840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19841 (exit $ac_status); } && {
19842 test -z "$ac_c_werror_flag" ||
19843 test ! -s conftest.err
19844 } && test -s conftest$ac_exeext &&
19845 $as_test_x conftest$ac_exeext; then
19846 ac_cv_lib_com_err_com_err=yes
19847 else
19848 echo "$as_me: failed program was:" >&5
19849 sed 's/^/| /' conftest.$ac_ext >&5
19850
19851 ac_cv_lib_com_err_com_err=no
19852 fi
19853
19854 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19855 conftest$ac_exeext conftest.$ac_ext
19856 LIBS=$ac_check_lib_save_LIBS
19857 fi
19858 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19859 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19860 if test $ac_cv_lib_com_err_com_err = yes; then
19861 cat >>confdefs.h <<_ACEOF
19862 #define HAVE_LIBCOM_ERR 1
19863 _ACEOF
19864
19865 LIBS="-lcom_err $LIBS"
19866
19867 fi
19868
19869
19870 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19871 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19872 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19873 echo $ECHO_N "(cached) $ECHO_C" >&6
19874 else
19875 ac_check_lib_save_LIBS=$LIBS
19876 LIBS="-lk5crypto $LIBS"
19877 cat >conftest.$ac_ext <<_ACEOF
19878 /* confdefs.h. */
19879 _ACEOF
19880 cat confdefs.h >>conftest.$ac_ext
19881 cat >>conftest.$ac_ext <<_ACEOF
19882 /* end confdefs.h. */
19883
19884 /* Override any GCC internal prototype to avoid an error.
19885 Use char because int might match the return type of a GCC
19886 builtin and then its argument prototype would still apply. */
19887 #ifdef __cplusplus
19888 extern "C"
19889 #endif
19890 char mit_des_cbc_encrypt ();
19891 int
19892 main ()
19893 {
19894 return mit_des_cbc_encrypt ();
19895 ;
19896 return 0;
19897 }
19898 _ACEOF
19899 rm -f conftest.$ac_objext conftest$ac_exeext
19900 if { (ac_try="$ac_link"
19901 case "(($ac_try" in
19902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19903 *) ac_try_echo=$ac_try;;
19904 esac
19905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19906 (eval "$ac_link") 2>conftest.er1
19907 ac_status=$?
19908 grep -v '^ *+' conftest.er1 >conftest.err
19909 rm -f conftest.er1
19910 cat conftest.err >&5
19911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19912 (exit $ac_status); } && {
19913 test -z "$ac_c_werror_flag" ||
19914 test ! -s conftest.err
19915 } && test -s conftest$ac_exeext &&
19916 $as_test_x conftest$ac_exeext; then
19917 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19918 else
19919 echo "$as_me: failed program was:" >&5
19920 sed 's/^/| /' conftest.$ac_ext >&5
19921
19922 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19923 fi
19924
19925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19926 conftest$ac_exeext conftest.$ac_ext
19927 LIBS=$ac_check_lib_save_LIBS
19928 fi
19929 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19930 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19931 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19932 cat >>confdefs.h <<_ACEOF
19933 #define HAVE_LIBK5CRYPTO 1
19934 _ACEOF
19935
19936 LIBS="-lk5crypto $LIBS"
19937
19938 fi
19939
19940
19941 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19942 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19943 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19944 echo $ECHO_N "(cached) $ECHO_C" >&6
19945 else
19946 ac_check_lib_save_LIBS=$LIBS
19947 LIBS="-lcrypto $LIBS"
19948 cat >conftest.$ac_ext <<_ACEOF
19949 /* confdefs.h. */
19950 _ACEOF
19951 cat confdefs.h >>conftest.$ac_ext
19952 cat >>conftest.$ac_ext <<_ACEOF
19953 /* end confdefs.h. */
19954
19955 /* Override any GCC internal prototype to avoid an error.
19956 Use char because int might match the return type of a GCC
19957 builtin and then its argument prototype would still apply. */
19958 #ifdef __cplusplus
19959 extern "C"
19960 #endif
19961 char mit_des_cbc_encrypt ();
19962 int
19963 main ()
19964 {
19965 return mit_des_cbc_encrypt ();
19966 ;
19967 return 0;
19968 }
19969 _ACEOF
19970 rm -f conftest.$ac_objext conftest$ac_exeext
19971 if { (ac_try="$ac_link"
19972 case "(($ac_try" in
19973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19974 *) ac_try_echo=$ac_try;;
19975 esac
19976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19977 (eval "$ac_link") 2>conftest.er1
19978 ac_status=$?
19979 grep -v '^ *+' conftest.er1 >conftest.err
19980 rm -f conftest.er1
19981 cat conftest.err >&5
19982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19983 (exit $ac_status); } && {
19984 test -z "$ac_c_werror_flag" ||
19985 test ! -s conftest.err
19986 } && test -s conftest$ac_exeext &&
19987 $as_test_x conftest$ac_exeext; then
19988 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19989 else
19990 echo "$as_me: failed program was:" >&5
19991 sed 's/^/| /' conftest.$ac_ext >&5
19992
19993 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19994 fi
19995
19996 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19997 conftest$ac_exeext conftest.$ac_ext
19998 LIBS=$ac_check_lib_save_LIBS
19999 fi
20000 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20001 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20002 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define HAVE_LIBCRYPTO 1
20005 _ACEOF
20006
20007 LIBS="-lcrypto $LIBS"
20008
20009 fi
20010
20011
20012 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20013 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20014 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20015 echo $ECHO_N "(cached) $ECHO_C" >&6
20016 else
20017 ac_check_lib_save_LIBS=$LIBS
20018 LIBS="-lkrb5 $LIBS"
20019 cat >conftest.$ac_ext <<_ACEOF
20020 /* confdefs.h. */
20021 _ACEOF
20022 cat confdefs.h >>conftest.$ac_ext
20023 cat >>conftest.$ac_ext <<_ACEOF
20024 /* end confdefs.h. */
20025
20026 /* Override any GCC internal prototype to avoid an error.
20027 Use char because int might match the return type of a GCC
20028 builtin and then its argument prototype would still apply. */
20029 #ifdef __cplusplus
20030 extern "C"
20031 #endif
20032 char krb5_init_context ();
20033 int
20034 main ()
20035 {
20036 return krb5_init_context ();
20037 ;
20038 return 0;
20039 }
20040 _ACEOF
20041 rm -f conftest.$ac_objext conftest$ac_exeext
20042 if { (ac_try="$ac_link"
20043 case "(($ac_try" in
20044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20045 *) ac_try_echo=$ac_try;;
20046 esac
20047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20048 (eval "$ac_link") 2>conftest.er1
20049 ac_status=$?
20050 grep -v '^ *+' conftest.er1 >conftest.err
20051 rm -f conftest.er1
20052 cat conftest.err >&5
20053 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20054 (exit $ac_status); } && {
20055 test -z "$ac_c_werror_flag" ||
20056 test ! -s conftest.err
20057 } && test -s conftest$ac_exeext &&
20058 $as_test_x conftest$ac_exeext; then
20059 ac_cv_lib_krb5_krb5_init_context=yes
20060 else
20061 echo "$as_me: failed program was:" >&5
20062 sed 's/^/| /' conftest.$ac_ext >&5
20063
20064 ac_cv_lib_krb5_krb5_init_context=no
20065 fi
20066
20067 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20068 conftest$ac_exeext conftest.$ac_ext
20069 LIBS=$ac_check_lib_save_LIBS
20070 fi
20071 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20072 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20073 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20074 cat >>confdefs.h <<_ACEOF
20075 #define HAVE_LIBKRB5 1
20076 _ACEOF
20077
20078 LIBS="-lkrb5 $LIBS"
20079
20080 fi
20081
20082 if test "${with_kerberos5+set}" != set; then
20083
20084 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20085 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20086 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20087 echo $ECHO_N "(cached) $ECHO_C" >&6
20088 else
20089 ac_check_lib_save_LIBS=$LIBS
20090 LIBS="-ldes425 $LIBS"
20091 cat >conftest.$ac_ext <<_ACEOF
20092 /* confdefs.h. */
20093 _ACEOF
20094 cat confdefs.h >>conftest.$ac_ext
20095 cat >>conftest.$ac_ext <<_ACEOF
20096 /* end confdefs.h. */
20097
20098 /* Override any GCC internal prototype to avoid an error.
20099 Use char because int might match the return type of a GCC
20100 builtin and then its argument prototype would still apply. */
20101 #ifdef __cplusplus
20102 extern "C"
20103 #endif
20104 char des_cbc_encrypt ();
20105 int
20106 main ()
20107 {
20108 return des_cbc_encrypt ();
20109 ;
20110 return 0;
20111 }
20112 _ACEOF
20113 rm -f conftest.$ac_objext conftest$ac_exeext
20114 if { (ac_try="$ac_link"
20115 case "(($ac_try" in
20116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20117 *) ac_try_echo=$ac_try;;
20118 esac
20119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20120 (eval "$ac_link") 2>conftest.er1
20121 ac_status=$?
20122 grep -v '^ *+' conftest.er1 >conftest.err
20123 rm -f conftest.er1
20124 cat conftest.err >&5
20125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20126 (exit $ac_status); } && {
20127 test -z "$ac_c_werror_flag" ||
20128 test ! -s conftest.err
20129 } && test -s conftest$ac_exeext &&
20130 $as_test_x conftest$ac_exeext; then
20131 ac_cv_lib_des425_des_cbc_encrypt=yes
20132 else
20133 echo "$as_me: failed program was:" >&5
20134 sed 's/^/| /' conftest.$ac_ext >&5
20135
20136 ac_cv_lib_des425_des_cbc_encrypt=no
20137 fi
20138
20139 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20140 conftest$ac_exeext conftest.$ac_ext
20141 LIBS=$ac_check_lib_save_LIBS
20142 fi
20143 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20144 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20145 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20146 cat >>confdefs.h <<_ACEOF
20147 #define HAVE_LIBDES425 1
20148 _ACEOF
20149
20150 LIBS="-ldes425 $LIBS"
20151
20152 else
20153
20154 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20155 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20156 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 else
20159 ac_check_lib_save_LIBS=$LIBS
20160 LIBS="-ldes $LIBS"
20161 cat >conftest.$ac_ext <<_ACEOF
20162 /* confdefs.h. */
20163 _ACEOF
20164 cat confdefs.h >>conftest.$ac_ext
20165 cat >>conftest.$ac_ext <<_ACEOF
20166 /* end confdefs.h. */
20167
20168 /* Override any GCC internal prototype to avoid an error.
20169 Use char because int might match the return type of a GCC
20170 builtin and then its argument prototype would still apply. */
20171 #ifdef __cplusplus
20172 extern "C"
20173 #endif
20174 char des_cbc_encrypt ();
20175 int
20176 main ()
20177 {
20178 return des_cbc_encrypt ();
20179 ;
20180 return 0;
20181 }
20182 _ACEOF
20183 rm -f conftest.$ac_objext conftest$ac_exeext
20184 if { (ac_try="$ac_link"
20185 case "(($ac_try" in
20186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20187 *) ac_try_echo=$ac_try;;
20188 esac
20189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20190 (eval "$ac_link") 2>conftest.er1
20191 ac_status=$?
20192 grep -v '^ *+' conftest.er1 >conftest.err
20193 rm -f conftest.er1
20194 cat conftest.err >&5
20195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20196 (exit $ac_status); } && {
20197 test -z "$ac_c_werror_flag" ||
20198 test ! -s conftest.err
20199 } && test -s conftest$ac_exeext &&
20200 $as_test_x conftest$ac_exeext; then
20201 ac_cv_lib_des_des_cbc_encrypt=yes
20202 else
20203 echo "$as_me: failed program was:" >&5
20204 sed 's/^/| /' conftest.$ac_ext >&5
20205
20206 ac_cv_lib_des_des_cbc_encrypt=no
20207 fi
20208
20209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20210 conftest$ac_exeext conftest.$ac_ext
20211 LIBS=$ac_check_lib_save_LIBS
20212 fi
20213 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20214 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20215 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20216 cat >>confdefs.h <<_ACEOF
20217 #define HAVE_LIBDES 1
20218 _ACEOF
20219
20220 LIBS="-ldes $LIBS"
20221
20222 fi
20223
20224 fi
20225
20226
20227 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20228 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20229 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20230 echo $ECHO_N "(cached) $ECHO_C" >&6
20231 else
20232 ac_check_lib_save_LIBS=$LIBS
20233 LIBS="-lkrb4 $LIBS"
20234 cat >conftest.$ac_ext <<_ACEOF
20235 /* confdefs.h. */
20236 _ACEOF
20237 cat confdefs.h >>conftest.$ac_ext
20238 cat >>conftest.$ac_ext <<_ACEOF
20239 /* end confdefs.h. */
20240
20241 /* Override any GCC internal prototype to avoid an error.
20242 Use char because int might match the return type of a GCC
20243 builtin and then its argument prototype would still apply. */
20244 #ifdef __cplusplus
20245 extern "C"
20246 #endif
20247 char krb_get_cred ();
20248 int
20249 main ()
20250 {
20251 return krb_get_cred ();
20252 ;
20253 return 0;
20254 }
20255 _ACEOF
20256 rm -f conftest.$ac_objext conftest$ac_exeext
20257 if { (ac_try="$ac_link"
20258 case "(($ac_try" in
20259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20260 *) ac_try_echo=$ac_try;;
20261 esac
20262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20263 (eval "$ac_link") 2>conftest.er1
20264 ac_status=$?
20265 grep -v '^ *+' conftest.er1 >conftest.err
20266 rm -f conftest.er1
20267 cat conftest.err >&5
20268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20269 (exit $ac_status); } && {
20270 test -z "$ac_c_werror_flag" ||
20271 test ! -s conftest.err
20272 } && test -s conftest$ac_exeext &&
20273 $as_test_x conftest$ac_exeext; then
20274 ac_cv_lib_krb4_krb_get_cred=yes
20275 else
20276 echo "$as_me: failed program was:" >&5
20277 sed 's/^/| /' conftest.$ac_ext >&5
20278
20279 ac_cv_lib_krb4_krb_get_cred=no
20280 fi
20281
20282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20283 conftest$ac_exeext conftest.$ac_ext
20284 LIBS=$ac_check_lib_save_LIBS
20285 fi
20286 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20287 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20288 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20289 cat >>confdefs.h <<_ACEOF
20290 #define HAVE_LIBKRB4 1
20291 _ACEOF
20292
20293 LIBS="-lkrb4 $LIBS"
20294
20295 else
20296
20297 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20298 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20299 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20300 echo $ECHO_N "(cached) $ECHO_C" >&6
20301 else
20302 ac_check_lib_save_LIBS=$LIBS
20303 LIBS="-lkrb $LIBS"
20304 cat >conftest.$ac_ext <<_ACEOF
20305 /* confdefs.h. */
20306 _ACEOF
20307 cat confdefs.h >>conftest.$ac_ext
20308 cat >>conftest.$ac_ext <<_ACEOF
20309 /* end confdefs.h. */
20310
20311 /* Override any GCC internal prototype to avoid an error.
20312 Use char because int might match the return type of a GCC
20313 builtin and then its argument prototype would still apply. */
20314 #ifdef __cplusplus
20315 extern "C"
20316 #endif
20317 char krb_get_cred ();
20318 int
20319 main ()
20320 {
20321 return krb_get_cred ();
20322 ;
20323 return 0;
20324 }
20325 _ACEOF
20326 rm -f conftest.$ac_objext conftest$ac_exeext
20327 if { (ac_try="$ac_link"
20328 case "(($ac_try" in
20329 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20330 *) ac_try_echo=$ac_try;;
20331 esac
20332 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20333 (eval "$ac_link") 2>conftest.er1
20334 ac_status=$?
20335 grep -v '^ *+' conftest.er1 >conftest.err
20336 rm -f conftest.er1
20337 cat conftest.err >&5
20338 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20339 (exit $ac_status); } && {
20340 test -z "$ac_c_werror_flag" ||
20341 test ! -s conftest.err
20342 } && test -s conftest$ac_exeext &&
20343 $as_test_x conftest$ac_exeext; then
20344 ac_cv_lib_krb_krb_get_cred=yes
20345 else
20346 echo "$as_me: failed program was:" >&5
20347 sed 's/^/| /' conftest.$ac_ext >&5
20348
20349 ac_cv_lib_krb_krb_get_cred=no
20350 fi
20351
20352 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20353 conftest$ac_exeext conftest.$ac_ext
20354 LIBS=$ac_check_lib_save_LIBS
20355 fi
20356 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20357 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20358 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20359 cat >>confdefs.h <<_ACEOF
20360 #define HAVE_LIBKRB 1
20361 _ACEOF
20362
20363 LIBS="-lkrb $LIBS"
20364
20365 fi
20366
20367 fi
20368
20369 fi
20370
20371 if test "${with_kerberos5+set}" = set; then
20372
20373 for ac_header in krb5.h
20374 do
20375 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20380 echo $ECHO_N "(cached) $ECHO_C" >&6
20381 fi
20382 ac_res=`eval echo '${'$as_ac_Header'}'`
20383 { echo "$as_me:$LINENO: result: $ac_res" >&5
20384 echo "${ECHO_T}$ac_res" >&6; }
20385 else
20386 # Is the header compilable?
20387 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20388 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20389 cat >conftest.$ac_ext <<_ACEOF
20390 /* confdefs.h. */
20391 _ACEOF
20392 cat confdefs.h >>conftest.$ac_ext
20393 cat >>conftest.$ac_ext <<_ACEOF
20394 /* end confdefs.h. */
20395 $ac_includes_default
20396 #include <$ac_header>
20397 _ACEOF
20398 rm -f conftest.$ac_objext
20399 if { (ac_try="$ac_compile"
20400 case "(($ac_try" in
20401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20402 *) ac_try_echo=$ac_try;;
20403 esac
20404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20405 (eval "$ac_compile") 2>conftest.er1
20406 ac_status=$?
20407 grep -v '^ *+' conftest.er1 >conftest.err
20408 rm -f conftest.er1
20409 cat conftest.err >&5
20410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20411 (exit $ac_status); } && {
20412 test -z "$ac_c_werror_flag" ||
20413 test ! -s conftest.err
20414 } && test -s conftest.$ac_objext; then
20415 ac_header_compiler=yes
20416 else
20417 echo "$as_me: failed program was:" >&5
20418 sed 's/^/| /' conftest.$ac_ext >&5
20419
20420 ac_header_compiler=no
20421 fi
20422
20423 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20424 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20425 echo "${ECHO_T}$ac_header_compiler" >&6; }
20426
20427 # Is the header present?
20428 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20429 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20430 cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h. */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h. */
20436 #include <$ac_header>
20437 _ACEOF
20438 if { (ac_try="$ac_cpp conftest.$ac_ext"
20439 case "(($ac_try" in
20440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20441 *) ac_try_echo=$ac_try;;
20442 esac
20443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20444 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20445 ac_status=$?
20446 grep -v '^ *+' conftest.er1 >conftest.err
20447 rm -f conftest.er1
20448 cat conftest.err >&5
20449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20450 (exit $ac_status); } >/dev/null && {
20451 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20452 test ! -s conftest.err
20453 }; then
20454 ac_header_preproc=yes
20455 else
20456 echo "$as_me: failed program was:" >&5
20457 sed 's/^/| /' conftest.$ac_ext >&5
20458
20459 ac_header_preproc=no
20460 fi
20461
20462 rm -f conftest.err conftest.$ac_ext
20463 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20464 echo "${ECHO_T}$ac_header_preproc" >&6; }
20465
20466 # So? What about this header?
20467 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20468 yes:no: )
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20470 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20472 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20473 ac_header_preproc=yes
20474 ;;
20475 no:yes:* )
20476 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20477 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20478 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20479 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20480 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20481 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20482 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20483 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20485 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20487 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20488
20489 ;;
20490 esac
20491 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20492 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20493 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20494 echo $ECHO_N "(cached) $ECHO_C" >&6
20495 else
20496 eval "$as_ac_Header=\$ac_header_preproc"
20497 fi
20498 ac_res=`eval echo '${'$as_ac_Header'}'`
20499 { echo "$as_me:$LINENO: result: $ac_res" >&5
20500 echo "${ECHO_T}$ac_res" >&6; }
20501
20502 fi
20503 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20504 cat >>confdefs.h <<_ACEOF
20505 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20506 _ACEOF
20507
20508 fi
20509
20510 done
20511
20512 else
20513
20514 for ac_header in des.h
20515 do
20516 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20521 echo $ECHO_N "(cached) $ECHO_C" >&6
20522 fi
20523 ac_res=`eval echo '${'$as_ac_Header'}'`
20524 { echo "$as_me:$LINENO: result: $ac_res" >&5
20525 echo "${ECHO_T}$ac_res" >&6; }
20526 else
20527 # Is the header compilable?
20528 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20529 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20530 cat >conftest.$ac_ext <<_ACEOF
20531 /* confdefs.h. */
20532 _ACEOF
20533 cat confdefs.h >>conftest.$ac_ext
20534 cat >>conftest.$ac_ext <<_ACEOF
20535 /* end confdefs.h. */
20536 $ac_includes_default
20537 #include <$ac_header>
20538 _ACEOF
20539 rm -f conftest.$ac_objext
20540 if { (ac_try="$ac_compile"
20541 case "(($ac_try" in
20542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20543 *) ac_try_echo=$ac_try;;
20544 esac
20545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20546 (eval "$ac_compile") 2>conftest.er1
20547 ac_status=$?
20548 grep -v '^ *+' conftest.er1 >conftest.err
20549 rm -f conftest.er1
20550 cat conftest.err >&5
20551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20552 (exit $ac_status); } && {
20553 test -z "$ac_c_werror_flag" ||
20554 test ! -s conftest.err
20555 } && test -s conftest.$ac_objext; then
20556 ac_header_compiler=yes
20557 else
20558 echo "$as_me: failed program was:" >&5
20559 sed 's/^/| /' conftest.$ac_ext >&5
20560
20561 ac_header_compiler=no
20562 fi
20563
20564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20566 echo "${ECHO_T}$ac_header_compiler" >&6; }
20567
20568 # Is the header present?
20569 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20570 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20571 cat >conftest.$ac_ext <<_ACEOF
20572 /* confdefs.h. */
20573 _ACEOF
20574 cat confdefs.h >>conftest.$ac_ext
20575 cat >>conftest.$ac_ext <<_ACEOF
20576 /* end confdefs.h. */
20577 #include <$ac_header>
20578 _ACEOF
20579 if { (ac_try="$ac_cpp conftest.$ac_ext"
20580 case "(($ac_try" in
20581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20582 *) ac_try_echo=$ac_try;;
20583 esac
20584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20586 ac_status=$?
20587 grep -v '^ *+' conftest.er1 >conftest.err
20588 rm -f conftest.er1
20589 cat conftest.err >&5
20590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20591 (exit $ac_status); } >/dev/null && {
20592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20593 test ! -s conftest.err
20594 }; then
20595 ac_header_preproc=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_header_preproc=no
20601 fi
20602
20603 rm -f conftest.err conftest.$ac_ext
20604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20605 echo "${ECHO_T}$ac_header_preproc" >&6; }
20606
20607 # So? What about this header?
20608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20609 yes:no: )
20610 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20611 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20612 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20613 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20614 ac_header_preproc=yes
20615 ;;
20616 no:yes:* )
20617 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20618 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20619 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20620 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20621 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20622 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20623 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20624 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20625 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20626 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20627 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20628 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20629
20630 ;;
20631 esac
20632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20635 echo $ECHO_N "(cached) $ECHO_C" >&6
20636 else
20637 eval "$as_ac_Header=\$ac_header_preproc"
20638 fi
20639 ac_res=`eval echo '${'$as_ac_Header'}'`
20640 { echo "$as_me:$LINENO: result: $ac_res" >&5
20641 echo "${ECHO_T}$ac_res" >&6; }
20642
20643 fi
20644 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20645 cat >>confdefs.h <<_ACEOF
20646 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20647 _ACEOF
20648
20649 else
20650
20651 for ac_header in kerberosIV/des.h
20652 do
20653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20658 echo $ECHO_N "(cached) $ECHO_C" >&6
20659 fi
20660 ac_res=`eval echo '${'$as_ac_Header'}'`
20661 { echo "$as_me:$LINENO: result: $ac_res" >&5
20662 echo "${ECHO_T}$ac_res" >&6; }
20663 else
20664 # Is the header compilable?
20665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20667 cat >conftest.$ac_ext <<_ACEOF
20668 /* confdefs.h. */
20669 _ACEOF
20670 cat confdefs.h >>conftest.$ac_ext
20671 cat >>conftest.$ac_ext <<_ACEOF
20672 /* end confdefs.h. */
20673 $ac_includes_default
20674 #include <$ac_header>
20675 _ACEOF
20676 rm -f conftest.$ac_objext
20677 if { (ac_try="$ac_compile"
20678 case "(($ac_try" in
20679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20680 *) ac_try_echo=$ac_try;;
20681 esac
20682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20683 (eval "$ac_compile") 2>conftest.er1
20684 ac_status=$?
20685 grep -v '^ *+' conftest.er1 >conftest.err
20686 rm -f conftest.er1
20687 cat conftest.err >&5
20688 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20689 (exit $ac_status); } && {
20690 test -z "$ac_c_werror_flag" ||
20691 test ! -s conftest.err
20692 } && test -s conftest.$ac_objext; then
20693 ac_header_compiler=yes
20694 else
20695 echo "$as_me: failed program was:" >&5
20696 sed 's/^/| /' conftest.$ac_ext >&5
20697
20698 ac_header_compiler=no
20699 fi
20700
20701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20703 echo "${ECHO_T}$ac_header_compiler" >&6; }
20704
20705 # Is the header present?
20706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20708 cat >conftest.$ac_ext <<_ACEOF
20709 /* confdefs.h. */
20710 _ACEOF
20711 cat confdefs.h >>conftest.$ac_ext
20712 cat >>conftest.$ac_ext <<_ACEOF
20713 /* end confdefs.h. */
20714 #include <$ac_header>
20715 _ACEOF
20716 if { (ac_try="$ac_cpp conftest.$ac_ext"
20717 case "(($ac_try" in
20718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20719 *) ac_try_echo=$ac_try;;
20720 esac
20721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20722 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20723 ac_status=$?
20724 grep -v '^ *+' conftest.er1 >conftest.err
20725 rm -f conftest.er1
20726 cat conftest.err >&5
20727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20728 (exit $ac_status); } >/dev/null && {
20729 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20730 test ! -s conftest.err
20731 }; then
20732 ac_header_preproc=yes
20733 else
20734 echo "$as_me: failed program was:" >&5
20735 sed 's/^/| /' conftest.$ac_ext >&5
20736
20737 ac_header_preproc=no
20738 fi
20739
20740 rm -f conftest.err conftest.$ac_ext
20741 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20742 echo "${ECHO_T}$ac_header_preproc" >&6; }
20743
20744 # So? What about this header?
20745 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20746 yes:no: )
20747 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20748 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20749 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20750 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20751 ac_header_preproc=yes
20752 ;;
20753 no:yes:* )
20754 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20755 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20756 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20757 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20758 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20759 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20760 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20761 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20763 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20764 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20765 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20766
20767 ;;
20768 esac
20769 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20770 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20771 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20772 echo $ECHO_N "(cached) $ECHO_C" >&6
20773 else
20774 eval "$as_ac_Header=\$ac_header_preproc"
20775 fi
20776 ac_res=`eval echo '${'$as_ac_Header'}'`
20777 { echo "$as_me:$LINENO: result: $ac_res" >&5
20778 echo "${ECHO_T}$ac_res" >&6; }
20779
20780 fi
20781 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20782 cat >>confdefs.h <<_ACEOF
20783 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20784 _ACEOF
20785
20786 else
20787
20788 for ac_header in kerberos/des.h
20789 do
20790 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20795 echo $ECHO_N "(cached) $ECHO_C" >&6
20796 fi
20797 ac_res=`eval echo '${'$as_ac_Header'}'`
20798 { echo "$as_me:$LINENO: result: $ac_res" >&5
20799 echo "${ECHO_T}$ac_res" >&6; }
20800 else
20801 # Is the header compilable?
20802 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20803 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20804 cat >conftest.$ac_ext <<_ACEOF
20805 /* confdefs.h. */
20806 _ACEOF
20807 cat confdefs.h >>conftest.$ac_ext
20808 cat >>conftest.$ac_ext <<_ACEOF
20809 /* end confdefs.h. */
20810 $ac_includes_default
20811 #include <$ac_header>
20812 _ACEOF
20813 rm -f conftest.$ac_objext
20814 if { (ac_try="$ac_compile"
20815 case "(($ac_try" in
20816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20817 *) ac_try_echo=$ac_try;;
20818 esac
20819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20820 (eval "$ac_compile") 2>conftest.er1
20821 ac_status=$?
20822 grep -v '^ *+' conftest.er1 >conftest.err
20823 rm -f conftest.er1
20824 cat conftest.err >&5
20825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20826 (exit $ac_status); } && {
20827 test -z "$ac_c_werror_flag" ||
20828 test ! -s conftest.err
20829 } && test -s conftest.$ac_objext; then
20830 ac_header_compiler=yes
20831 else
20832 echo "$as_me: failed program was:" >&5
20833 sed 's/^/| /' conftest.$ac_ext >&5
20834
20835 ac_header_compiler=no
20836 fi
20837
20838 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20839 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20840 echo "${ECHO_T}$ac_header_compiler" >&6; }
20841
20842 # Is the header present?
20843 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20844 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20845 cat >conftest.$ac_ext <<_ACEOF
20846 /* confdefs.h. */
20847 _ACEOF
20848 cat confdefs.h >>conftest.$ac_ext
20849 cat >>conftest.$ac_ext <<_ACEOF
20850 /* end confdefs.h. */
20851 #include <$ac_header>
20852 _ACEOF
20853 if { (ac_try="$ac_cpp conftest.$ac_ext"
20854 case "(($ac_try" in
20855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20856 *) ac_try_echo=$ac_try;;
20857 esac
20858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20859 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20860 ac_status=$?
20861 grep -v '^ *+' conftest.er1 >conftest.err
20862 rm -f conftest.er1
20863 cat conftest.err >&5
20864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20865 (exit $ac_status); } >/dev/null && {
20866 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20867 test ! -s conftest.err
20868 }; then
20869 ac_header_preproc=yes
20870 else
20871 echo "$as_me: failed program was:" >&5
20872 sed 's/^/| /' conftest.$ac_ext >&5
20873
20874 ac_header_preproc=no
20875 fi
20876
20877 rm -f conftest.err conftest.$ac_ext
20878 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20879 echo "${ECHO_T}$ac_header_preproc" >&6; }
20880
20881 # So? What about this header?
20882 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20883 yes:no: )
20884 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20885 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20886 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20887 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20888 ac_header_preproc=yes
20889 ;;
20890 no:yes:* )
20891 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20892 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20893 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20894 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20895 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20896 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20897 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20898 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20899 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20900 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20901 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20902 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20903
20904 ;;
20905 esac
20906 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20907 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20908 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20909 echo $ECHO_N "(cached) $ECHO_C" >&6
20910 else
20911 eval "$as_ac_Header=\$ac_header_preproc"
20912 fi
20913 ac_res=`eval echo '${'$as_ac_Header'}'`
20914 { echo "$as_me:$LINENO: result: $ac_res" >&5
20915 echo "${ECHO_T}$ac_res" >&6; }
20916
20917 fi
20918 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20919 cat >>confdefs.h <<_ACEOF
20920 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20921 _ACEOF
20922
20923 fi
20924
20925 done
20926
20927 fi
20928
20929 done
20930
20931 fi
20932
20933 done
20934
20935
20936 for ac_header in krb.h
20937 do
20938 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20939 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20940 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20941 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20943 echo $ECHO_N "(cached) $ECHO_C" >&6
20944 fi
20945 ac_res=`eval echo '${'$as_ac_Header'}'`
20946 { echo "$as_me:$LINENO: result: $ac_res" >&5
20947 echo "${ECHO_T}$ac_res" >&6; }
20948 else
20949 # Is the header compilable?
20950 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20951 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20952 cat >conftest.$ac_ext <<_ACEOF
20953 /* confdefs.h. */
20954 _ACEOF
20955 cat confdefs.h >>conftest.$ac_ext
20956 cat >>conftest.$ac_ext <<_ACEOF
20957 /* end confdefs.h. */
20958 $ac_includes_default
20959 #include <$ac_header>
20960 _ACEOF
20961 rm -f conftest.$ac_objext
20962 if { (ac_try="$ac_compile"
20963 case "(($ac_try" in
20964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20965 *) ac_try_echo=$ac_try;;
20966 esac
20967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20968 (eval "$ac_compile") 2>conftest.er1
20969 ac_status=$?
20970 grep -v '^ *+' conftest.er1 >conftest.err
20971 rm -f conftest.er1
20972 cat conftest.err >&5
20973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20974 (exit $ac_status); } && {
20975 test -z "$ac_c_werror_flag" ||
20976 test ! -s conftest.err
20977 } && test -s conftest.$ac_objext; then
20978 ac_header_compiler=yes
20979 else
20980 echo "$as_me: failed program was:" >&5
20981 sed 's/^/| /' conftest.$ac_ext >&5
20982
20983 ac_header_compiler=no
20984 fi
20985
20986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20987 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20988 echo "${ECHO_T}$ac_header_compiler" >&6; }
20989
20990 # Is the header present?
20991 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20992 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20993 cat >conftest.$ac_ext <<_ACEOF
20994 /* confdefs.h. */
20995 _ACEOF
20996 cat confdefs.h >>conftest.$ac_ext
20997 cat >>conftest.$ac_ext <<_ACEOF
20998 /* end confdefs.h. */
20999 #include <$ac_header>
21000 _ACEOF
21001 if { (ac_try="$ac_cpp conftest.$ac_ext"
21002 case "(($ac_try" in
21003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21004 *) ac_try_echo=$ac_try;;
21005 esac
21006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21007 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21008 ac_status=$?
21009 grep -v '^ *+' conftest.er1 >conftest.err
21010 rm -f conftest.er1
21011 cat conftest.err >&5
21012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21013 (exit $ac_status); } >/dev/null && {
21014 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21015 test ! -s conftest.err
21016 }; then
21017 ac_header_preproc=yes
21018 else
21019 echo "$as_me: failed program was:" >&5
21020 sed 's/^/| /' conftest.$ac_ext >&5
21021
21022 ac_header_preproc=no
21023 fi
21024
21025 rm -f conftest.err conftest.$ac_ext
21026 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21027 echo "${ECHO_T}$ac_header_preproc" >&6; }
21028
21029 # So? What about this header?
21030 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21031 yes:no: )
21032 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21033 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21034 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21035 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21036 ac_header_preproc=yes
21037 ;;
21038 no:yes:* )
21039 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21040 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21041 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21042 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21043 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21044 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21045 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21046 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21047 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21048 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21049 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21050 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21051
21052 ;;
21053 esac
21054 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21055 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21056 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21057 echo $ECHO_N "(cached) $ECHO_C" >&6
21058 else
21059 eval "$as_ac_Header=\$ac_header_preproc"
21060 fi
21061 ac_res=`eval echo '${'$as_ac_Header'}'`
21062 { echo "$as_me:$LINENO: result: $ac_res" >&5
21063 echo "${ECHO_T}$ac_res" >&6; }
21064
21065 fi
21066 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21067 cat >>confdefs.h <<_ACEOF
21068 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21069 _ACEOF
21070
21071 else
21072
21073 for ac_header in kerberosIV/krb.h
21074 do
21075 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21076 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 fi
21082 ac_res=`eval echo '${'$as_ac_Header'}'`
21083 { echo "$as_me:$LINENO: result: $ac_res" >&5
21084 echo "${ECHO_T}$ac_res" >&6; }
21085 else
21086 # Is the header compilable?
21087 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21088 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21089 cat >conftest.$ac_ext <<_ACEOF
21090 /* confdefs.h. */
21091 _ACEOF
21092 cat confdefs.h >>conftest.$ac_ext
21093 cat >>conftest.$ac_ext <<_ACEOF
21094 /* end confdefs.h. */
21095 $ac_includes_default
21096 #include <$ac_header>
21097 _ACEOF
21098 rm -f conftest.$ac_objext
21099 if { (ac_try="$ac_compile"
21100 case "(($ac_try" in
21101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21102 *) ac_try_echo=$ac_try;;
21103 esac
21104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21105 (eval "$ac_compile") 2>conftest.er1
21106 ac_status=$?
21107 grep -v '^ *+' conftest.er1 >conftest.err
21108 rm -f conftest.er1
21109 cat conftest.err >&5
21110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21111 (exit $ac_status); } && {
21112 test -z "$ac_c_werror_flag" ||
21113 test ! -s conftest.err
21114 } && test -s conftest.$ac_objext; then
21115 ac_header_compiler=yes
21116 else
21117 echo "$as_me: failed program was:" >&5
21118 sed 's/^/| /' conftest.$ac_ext >&5
21119
21120 ac_header_compiler=no
21121 fi
21122
21123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21124 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21125 echo "${ECHO_T}$ac_header_compiler" >&6; }
21126
21127 # Is the header present?
21128 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21129 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21130 cat >conftest.$ac_ext <<_ACEOF
21131 /* confdefs.h. */
21132 _ACEOF
21133 cat confdefs.h >>conftest.$ac_ext
21134 cat >>conftest.$ac_ext <<_ACEOF
21135 /* end confdefs.h. */
21136 #include <$ac_header>
21137 _ACEOF
21138 if { (ac_try="$ac_cpp conftest.$ac_ext"
21139 case "(($ac_try" in
21140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21141 *) ac_try_echo=$ac_try;;
21142 esac
21143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21144 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21145 ac_status=$?
21146 grep -v '^ *+' conftest.er1 >conftest.err
21147 rm -f conftest.er1
21148 cat conftest.err >&5
21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21150 (exit $ac_status); } >/dev/null && {
21151 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21152 test ! -s conftest.err
21153 }; then
21154 ac_header_preproc=yes
21155 else
21156 echo "$as_me: failed program was:" >&5
21157 sed 's/^/| /' conftest.$ac_ext >&5
21158
21159 ac_header_preproc=no
21160 fi
21161
21162 rm -f conftest.err conftest.$ac_ext
21163 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21164 echo "${ECHO_T}$ac_header_preproc" >&6; }
21165
21166 # So? What about this header?
21167 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21168 yes:no: )
21169 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21170 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21171 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21172 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21173 ac_header_preproc=yes
21174 ;;
21175 no:yes:* )
21176 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21177 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21178 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21179 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21180 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21181 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21182 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21183 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21184 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21185 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21186 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21187 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21188
21189 ;;
21190 esac
21191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21194 echo $ECHO_N "(cached) $ECHO_C" >&6
21195 else
21196 eval "$as_ac_Header=\$ac_header_preproc"
21197 fi
21198 ac_res=`eval echo '${'$as_ac_Header'}'`
21199 { echo "$as_me:$LINENO: result: $ac_res" >&5
21200 echo "${ECHO_T}$ac_res" >&6; }
21201
21202 fi
21203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21204 cat >>confdefs.h <<_ACEOF
21205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21206 _ACEOF
21207
21208 else
21209
21210 for ac_header in kerberos/krb.h
21211 do
21212 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21213 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21214 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21215 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21217 echo $ECHO_N "(cached) $ECHO_C" >&6
21218 fi
21219 ac_res=`eval echo '${'$as_ac_Header'}'`
21220 { echo "$as_me:$LINENO: result: $ac_res" >&5
21221 echo "${ECHO_T}$ac_res" >&6; }
21222 else
21223 # Is the header compilable?
21224 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21225 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21226 cat >conftest.$ac_ext <<_ACEOF
21227 /* confdefs.h. */
21228 _ACEOF
21229 cat confdefs.h >>conftest.$ac_ext
21230 cat >>conftest.$ac_ext <<_ACEOF
21231 /* end confdefs.h. */
21232 $ac_includes_default
21233 #include <$ac_header>
21234 _ACEOF
21235 rm -f conftest.$ac_objext
21236 if { (ac_try="$ac_compile"
21237 case "(($ac_try" in
21238 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21239 *) ac_try_echo=$ac_try;;
21240 esac
21241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21242 (eval "$ac_compile") 2>conftest.er1
21243 ac_status=$?
21244 grep -v '^ *+' conftest.er1 >conftest.err
21245 rm -f conftest.er1
21246 cat conftest.err >&5
21247 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21248 (exit $ac_status); } && {
21249 test -z "$ac_c_werror_flag" ||
21250 test ! -s conftest.err
21251 } && test -s conftest.$ac_objext; then
21252 ac_header_compiler=yes
21253 else
21254 echo "$as_me: failed program was:" >&5
21255 sed 's/^/| /' conftest.$ac_ext >&5
21256
21257 ac_header_compiler=no
21258 fi
21259
21260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21261 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21262 echo "${ECHO_T}$ac_header_compiler" >&6; }
21263
21264 # Is the header present?
21265 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21266 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21267 cat >conftest.$ac_ext <<_ACEOF
21268 /* confdefs.h. */
21269 _ACEOF
21270 cat confdefs.h >>conftest.$ac_ext
21271 cat >>conftest.$ac_ext <<_ACEOF
21272 /* end confdefs.h. */
21273 #include <$ac_header>
21274 _ACEOF
21275 if { (ac_try="$ac_cpp conftest.$ac_ext"
21276 case "(($ac_try" in
21277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21278 *) ac_try_echo=$ac_try;;
21279 esac
21280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21281 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21282 ac_status=$?
21283 grep -v '^ *+' conftest.er1 >conftest.err
21284 rm -f conftest.er1
21285 cat conftest.err >&5
21286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21287 (exit $ac_status); } >/dev/null && {
21288 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21289 test ! -s conftest.err
21290 }; then
21291 ac_header_preproc=yes
21292 else
21293 echo "$as_me: failed program was:" >&5
21294 sed 's/^/| /' conftest.$ac_ext >&5
21295
21296 ac_header_preproc=no
21297 fi
21298
21299 rm -f conftest.err conftest.$ac_ext
21300 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21301 echo "${ECHO_T}$ac_header_preproc" >&6; }
21302
21303 # So? What about this header?
21304 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21305 yes:no: )
21306 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21307 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21308 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21309 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21310 ac_header_preproc=yes
21311 ;;
21312 no:yes:* )
21313 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21314 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21315 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21316 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21317 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21318 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21319 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21320 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21321 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21322 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21323 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21324 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21325
21326 ;;
21327 esac
21328 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21329 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21331 echo $ECHO_N "(cached) $ECHO_C" >&6
21332 else
21333 eval "$as_ac_Header=\$ac_header_preproc"
21334 fi
21335 ac_res=`eval echo '${'$as_ac_Header'}'`
21336 { echo "$as_me:$LINENO: result: $ac_res" >&5
21337 echo "${ECHO_T}$ac_res" >&6; }
21338
21339 fi
21340 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21341 cat >>confdefs.h <<_ACEOF
21342 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21343 _ACEOF
21344
21345 fi
21346
21347 done
21348
21349 fi
21350
21351 done
21352
21353 fi
21354
21355 done
21356
21357 fi
21358
21359 for ac_header in com_err.h
21360 do
21361 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21362 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21366 echo $ECHO_N "(cached) $ECHO_C" >&6
21367 fi
21368 ac_res=`eval echo '${'$as_ac_Header'}'`
21369 { echo "$as_me:$LINENO: result: $ac_res" >&5
21370 echo "${ECHO_T}$ac_res" >&6; }
21371 else
21372 # Is the header compilable?
21373 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21374 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21375 cat >conftest.$ac_ext <<_ACEOF
21376 /* confdefs.h. */
21377 _ACEOF
21378 cat confdefs.h >>conftest.$ac_ext
21379 cat >>conftest.$ac_ext <<_ACEOF
21380 /* end confdefs.h. */
21381 $ac_includes_default
21382 #include <$ac_header>
21383 _ACEOF
21384 rm -f conftest.$ac_objext
21385 if { (ac_try="$ac_compile"
21386 case "(($ac_try" in
21387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21388 *) ac_try_echo=$ac_try;;
21389 esac
21390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21391 (eval "$ac_compile") 2>conftest.er1
21392 ac_status=$?
21393 grep -v '^ *+' conftest.er1 >conftest.err
21394 rm -f conftest.er1
21395 cat conftest.err >&5
21396 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21397 (exit $ac_status); } && {
21398 test -z "$ac_c_werror_flag" ||
21399 test ! -s conftest.err
21400 } && test -s conftest.$ac_objext; then
21401 ac_header_compiler=yes
21402 else
21403 echo "$as_me: failed program was:" >&5
21404 sed 's/^/| /' conftest.$ac_ext >&5
21405
21406 ac_header_compiler=no
21407 fi
21408
21409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21410 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21411 echo "${ECHO_T}$ac_header_compiler" >&6; }
21412
21413 # Is the header present?
21414 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21415 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 #include <$ac_header>
21423 _ACEOF
21424 if { (ac_try="$ac_cpp conftest.$ac_ext"
21425 case "(($ac_try" in
21426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21427 *) ac_try_echo=$ac_try;;
21428 esac
21429 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21430 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21431 ac_status=$?
21432 grep -v '^ *+' conftest.er1 >conftest.err
21433 rm -f conftest.er1
21434 cat conftest.err >&5
21435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21436 (exit $ac_status); } >/dev/null && {
21437 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21438 test ! -s conftest.err
21439 }; then
21440 ac_header_preproc=yes
21441 else
21442 echo "$as_me: failed program was:" >&5
21443 sed 's/^/| /' conftest.$ac_ext >&5
21444
21445 ac_header_preproc=no
21446 fi
21447
21448 rm -f conftest.err conftest.$ac_ext
21449 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21450 echo "${ECHO_T}$ac_header_preproc" >&6; }
21451
21452 # So? What about this header?
21453 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21454 yes:no: )
21455 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21456 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21457 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21458 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21459 ac_header_preproc=yes
21460 ;;
21461 no:yes:* )
21462 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21463 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21464 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21465 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21466 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21467 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21468 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21469 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21470 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21471 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21472 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21473 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21474
21475 ;;
21476 esac
21477 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21478 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 eval "$as_ac_Header=\$ac_header_preproc"
21483 fi
21484 ac_res=`eval echo '${'$as_ac_Header'}'`
21485 { echo "$as_me:$LINENO: result: $ac_res" >&5
21486 echo "${ECHO_T}$ac_res" >&6; }
21487
21488 fi
21489 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21490 cat >>confdefs.h <<_ACEOF
21491 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21492 _ACEOF
21493
21494 fi
21495
21496 done
21497
21498 fi
21499
21500 # Solaris requires -lintl if you want strerror (which calls dgettext)
21501 # to return localized messages.
21502
21503 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21504 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21505 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21506 echo $ECHO_N "(cached) $ECHO_C" >&6
21507 else
21508 ac_check_lib_save_LIBS=$LIBS
21509 LIBS="-lintl $LIBS"
21510 cat >conftest.$ac_ext <<_ACEOF
21511 /* confdefs.h. */
21512 _ACEOF
21513 cat confdefs.h >>conftest.$ac_ext
21514 cat >>conftest.$ac_ext <<_ACEOF
21515 /* end confdefs.h. */
21516
21517 /* Override any GCC internal prototype to avoid an error.
21518 Use char because int might match the return type of a GCC
21519 builtin and then its argument prototype would still apply. */
21520 #ifdef __cplusplus
21521 extern "C"
21522 #endif
21523 char dgettext ();
21524 int
21525 main ()
21526 {
21527 return dgettext ();
21528 ;
21529 return 0;
21530 }
21531 _ACEOF
21532 rm -f conftest.$ac_objext conftest$ac_exeext
21533 if { (ac_try="$ac_link"
21534 case "(($ac_try" in
21535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21536 *) ac_try_echo=$ac_try;;
21537 esac
21538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21539 (eval "$ac_link") 2>conftest.er1
21540 ac_status=$?
21541 grep -v '^ *+' conftest.er1 >conftest.err
21542 rm -f conftest.er1
21543 cat conftest.err >&5
21544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21545 (exit $ac_status); } && {
21546 test -z "$ac_c_werror_flag" ||
21547 test ! -s conftest.err
21548 } && test -s conftest$ac_exeext &&
21549 $as_test_x conftest$ac_exeext; then
21550 ac_cv_lib_intl_dgettext=yes
21551 else
21552 echo "$as_me: failed program was:" >&5
21553 sed 's/^/| /' conftest.$ac_ext >&5
21554
21555 ac_cv_lib_intl_dgettext=no
21556 fi
21557
21558 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21559 conftest$ac_exeext conftest.$ac_ext
21560 LIBS=$ac_check_lib_save_LIBS
21561 fi
21562 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21563 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21564 if test $ac_cv_lib_intl_dgettext = yes; then
21565 cat >>confdefs.h <<_ACEOF
21566 #define HAVE_LIBINTL 1
21567 _ACEOF
21568
21569 LIBS="-lintl $LIBS"
21570
21571 fi
21572
21573
21574 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21575 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21576 if test "${emacs_cv_localtime_cache+set}" = set; then
21577 echo $ECHO_N "(cached) $ECHO_C" >&6
21578 else
21579 if test x$ac_cv_func_tzset = xyes; then
21580 if test "$cross_compiling" = yes; then
21581 # If we have tzset, assume the worst when cross-compiling.
21582 emacs_cv_localtime_cache=yes
21583 else
21584 cat >conftest.$ac_ext <<_ACEOF
21585 /* confdefs.h. */
21586 _ACEOF
21587 cat confdefs.h >>conftest.$ac_ext
21588 cat >>conftest.$ac_ext <<_ACEOF
21589 /* end confdefs.h. */
21590 #include <time.h>
21591 extern char **environ;
21592 unset_TZ ()
21593 {
21594 char **from, **to;
21595 for (to = from = environ; (*to = *from); from++)
21596 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21597 to++;
21598 }
21599 char TZ_GMT0[] = "TZ=GMT0";
21600 char TZ_PST8[] = "TZ=PST8";
21601 main()
21602 {
21603 time_t now = time ((time_t *) 0);
21604 int hour_GMT0, hour_unset;
21605 if (putenv (TZ_GMT0) != 0)
21606 exit (1);
21607 hour_GMT0 = localtime (&now)->tm_hour;
21608 unset_TZ ();
21609 hour_unset = localtime (&now)->tm_hour;
21610 if (putenv (TZ_PST8) != 0)
21611 exit (1);
21612 if (localtime (&now)->tm_hour == hour_GMT0)
21613 exit (1);
21614 unset_TZ ();
21615 if (localtime (&now)->tm_hour != hour_unset)
21616 exit (1);
21617 exit (0);
21618 }
21619 _ACEOF
21620 rm -f conftest$ac_exeext
21621 if { (ac_try="$ac_link"
21622 case "(($ac_try" in
21623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21624 *) ac_try_echo=$ac_try;;
21625 esac
21626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21627 (eval "$ac_link") 2>&5
21628 ac_status=$?
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21631 { (case "(($ac_try" in
21632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21633 *) ac_try_echo=$ac_try;;
21634 esac
21635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21636 (eval "$ac_try") 2>&5
21637 ac_status=$?
21638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21639 (exit $ac_status); }; }; then
21640 emacs_cv_localtime_cache=no
21641 else
21642 echo "$as_me: program exited with status $ac_status" >&5
21643 echo "$as_me: failed program was:" >&5
21644 sed 's/^/| /' conftest.$ac_ext >&5
21645
21646 ( exit $ac_status )
21647 emacs_cv_localtime_cache=yes
21648 fi
21649 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21650 fi
21651
21652
21653 else
21654 # If we lack tzset, report that localtime does not cache TZ,
21655 # since we can't invalidate the cache if we don't have tzset.
21656 emacs_cv_localtime_cache=no
21657 fi
21658 fi
21659 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21660 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21661 if test $emacs_cv_localtime_cache = yes; then
21662
21663 cat >>confdefs.h <<\_ACEOF
21664 #define LOCALTIME_CACHE 1
21665 _ACEOF
21666
21667 fi
21668
21669 if test "x$HAVE_TIMEVAL" = xyes; then
21670
21671 for ac_func in gettimeofday
21672 do
21673 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21674 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21675 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21676 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21677 echo $ECHO_N "(cached) $ECHO_C" >&6
21678 else
21679 cat >conftest.$ac_ext <<_ACEOF
21680 /* confdefs.h. */
21681 _ACEOF
21682 cat confdefs.h >>conftest.$ac_ext
21683 cat >>conftest.$ac_ext <<_ACEOF
21684 /* end confdefs.h. */
21685 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21686 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21687 #define $ac_func innocuous_$ac_func
21688
21689 /* System header to define __stub macros and hopefully few prototypes,
21690 which can conflict with char $ac_func (); below.
21691 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21692 <limits.h> exists even on freestanding compilers. */
21693
21694 #ifdef __STDC__
21695 # include <limits.h>
21696 #else
21697 # include <assert.h>
21698 #endif
21699
21700 #undef $ac_func
21701
21702 /* Override any GCC internal prototype to avoid an error.
21703 Use char because int might match the return type of a GCC
21704 builtin and then its argument prototype would still apply. */
21705 #ifdef __cplusplus
21706 extern "C"
21707 #endif
21708 char $ac_func ();
21709 /* The GNU C library defines this for functions which it implements
21710 to always fail with ENOSYS. Some functions are actually named
21711 something starting with __ and the normal name is an alias. */
21712 #if defined __stub_$ac_func || defined __stub___$ac_func
21713 choke me
21714 #endif
21715
21716 int
21717 main ()
21718 {
21719 return $ac_func ();
21720 ;
21721 return 0;
21722 }
21723 _ACEOF
21724 rm -f conftest.$ac_objext conftest$ac_exeext
21725 if { (ac_try="$ac_link"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_link") 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest$ac_exeext &&
21741 $as_test_x conftest$ac_exeext; then
21742 eval "$as_ac_var=yes"
21743 else
21744 echo "$as_me: failed program was:" >&5
21745 sed 's/^/| /' conftest.$ac_ext >&5
21746
21747 eval "$as_ac_var=no"
21748 fi
21749
21750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21751 conftest$ac_exeext conftest.$ac_ext
21752 fi
21753 ac_res=`eval echo '${'$as_ac_var'}'`
21754 { echo "$as_me:$LINENO: result: $ac_res" >&5
21755 echo "${ECHO_T}$ac_res" >&6; }
21756 if test `eval echo '${'$as_ac_var'}'` = yes; then
21757 cat >>confdefs.h <<_ACEOF
21758 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21759 _ACEOF
21760
21761 fi
21762 done
21763
21764 if test $ac_cv_func_gettimeofday = yes; then
21765 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21766 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21767 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21768 echo $ECHO_N "(cached) $ECHO_C" >&6
21769 else
21770 cat >conftest.$ac_ext <<_ACEOF
21771 /* confdefs.h. */
21772 _ACEOF
21773 cat confdefs.h >>conftest.$ac_ext
21774 cat >>conftest.$ac_ext <<_ACEOF
21775 /* end confdefs.h. */
21776
21777 #ifdef TIME_WITH_SYS_TIME
21778 #include <sys/time.h>
21779 #include <time.h>
21780 #else
21781 #ifdef HAVE_SYS_TIME_H
21782 #include <sys/time.h>
21783 #else
21784 #include <time.h>
21785 #endif
21786 #endif
21787 int
21788 main ()
21789 {
21790 struct timeval time;
21791 gettimeofday (&time, 0);
21792 ;
21793 return 0;
21794 }
21795 _ACEOF
21796 rm -f conftest.$ac_objext
21797 if { (ac_try="$ac_compile"
21798 case "(($ac_try" in
21799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21800 *) ac_try_echo=$ac_try;;
21801 esac
21802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21803 (eval "$ac_compile") 2>conftest.er1
21804 ac_status=$?
21805 grep -v '^ *+' conftest.er1 >conftest.err
21806 rm -f conftest.er1
21807 cat conftest.err >&5
21808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21809 (exit $ac_status); } && {
21810 test -z "$ac_c_werror_flag" ||
21811 test ! -s conftest.err
21812 } && test -s conftest.$ac_objext; then
21813 emacs_cv_gettimeofday_two_arguments=yes
21814 else
21815 echo "$as_me: failed program was:" >&5
21816 sed 's/^/| /' conftest.$ac_ext >&5
21817
21818 emacs_cv_gettimeofday_two_arguments=no
21819 fi
21820
21821 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21822 fi
21823 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21824 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21825 if test $emacs_cv_gettimeofday_two_arguments = no; then
21826
21827 cat >>confdefs.h <<\_ACEOF
21828 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21829 _ACEOF
21830
21831 fi
21832 fi
21833 fi
21834
21835 ok_so_far=yes
21836 { echo "$as_me:$LINENO: checking for socket" >&5
21837 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21838 if test "${ac_cv_func_socket+set}" = set; then
21839 echo $ECHO_N "(cached) $ECHO_C" >&6
21840 else
21841 cat >conftest.$ac_ext <<_ACEOF
21842 /* confdefs.h. */
21843 _ACEOF
21844 cat confdefs.h >>conftest.$ac_ext
21845 cat >>conftest.$ac_ext <<_ACEOF
21846 /* end confdefs.h. */
21847 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21848 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21849 #define socket innocuous_socket
21850
21851 /* System header to define __stub macros and hopefully few prototypes,
21852 which can conflict with char socket (); below.
21853 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21854 <limits.h> exists even on freestanding compilers. */
21855
21856 #ifdef __STDC__
21857 # include <limits.h>
21858 #else
21859 # include <assert.h>
21860 #endif
21861
21862 #undef socket
21863
21864 /* Override any GCC internal prototype to avoid an error.
21865 Use char because int might match the return type of a GCC
21866 builtin and then its argument prototype would still apply. */
21867 #ifdef __cplusplus
21868 extern "C"
21869 #endif
21870 char socket ();
21871 /* The GNU C library defines this for functions which it implements
21872 to always fail with ENOSYS. Some functions are actually named
21873 something starting with __ and the normal name is an alias. */
21874 #if defined __stub_socket || defined __stub___socket
21875 choke me
21876 #endif
21877
21878 int
21879 main ()
21880 {
21881 return socket ();
21882 ;
21883 return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext conftest$ac_exeext
21887 if { (ac_try="$ac_link"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_link") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest$ac_exeext &&
21903 $as_test_x conftest$ac_exeext; then
21904 ac_cv_func_socket=yes
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 ac_cv_func_socket=no
21910 fi
21911
21912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21913 conftest$ac_exeext conftest.$ac_ext
21914 fi
21915 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21916 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21917 if test $ac_cv_func_socket = yes; then
21918 :
21919 else
21920 ok_so_far=no
21921 fi
21922
21923 if test $ok_so_far = yes; then
21924 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21925 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21926 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21927 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21928 echo $ECHO_N "(cached) $ECHO_C" >&6
21929 fi
21930 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21931 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21932 else
21933 # Is the header compilable?
21934 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21935 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21936 cat >conftest.$ac_ext <<_ACEOF
21937 /* confdefs.h. */
21938 _ACEOF
21939 cat confdefs.h >>conftest.$ac_ext
21940 cat >>conftest.$ac_ext <<_ACEOF
21941 /* end confdefs.h. */
21942 $ac_includes_default
21943 #include <netinet/in.h>
21944 _ACEOF
21945 rm -f conftest.$ac_objext
21946 if { (ac_try="$ac_compile"
21947 case "(($ac_try" in
21948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21949 *) ac_try_echo=$ac_try;;
21950 esac
21951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21952 (eval "$ac_compile") 2>conftest.er1
21953 ac_status=$?
21954 grep -v '^ *+' conftest.er1 >conftest.err
21955 rm -f conftest.er1
21956 cat conftest.err >&5
21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21958 (exit $ac_status); } && {
21959 test -z "$ac_c_werror_flag" ||
21960 test ! -s conftest.err
21961 } && test -s conftest.$ac_objext; then
21962 ac_header_compiler=yes
21963 else
21964 echo "$as_me: failed program was:" >&5
21965 sed 's/^/| /' conftest.$ac_ext >&5
21966
21967 ac_header_compiler=no
21968 fi
21969
21970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21972 echo "${ECHO_T}$ac_header_compiler" >&6; }
21973
21974 # Is the header present?
21975 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21976 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21977 cat >conftest.$ac_ext <<_ACEOF
21978 /* confdefs.h. */
21979 _ACEOF
21980 cat confdefs.h >>conftest.$ac_ext
21981 cat >>conftest.$ac_ext <<_ACEOF
21982 /* end confdefs.h. */
21983 #include <netinet/in.h>
21984 _ACEOF
21985 if { (ac_try="$ac_cpp conftest.$ac_ext"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } >/dev/null && {
21998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 }; then
22001 ac_header_preproc=yes
22002 else
22003 echo "$as_me: failed program was:" >&5
22004 sed 's/^/| /' conftest.$ac_ext >&5
22005
22006 ac_header_preproc=no
22007 fi
22008
22009 rm -f conftest.err conftest.$ac_ext
22010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22011 echo "${ECHO_T}$ac_header_preproc" >&6; }
22012
22013 # So? What about this header?
22014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22015 yes:no: )
22016 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22017 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22018 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22019 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22020 ac_header_preproc=yes
22021 ;;
22022 no:yes:* )
22023 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22024 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22025 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22026 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22027 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22028 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22029 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22030 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22032 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22034 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22035
22036 ;;
22037 esac
22038 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22039 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22040 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 ac_cv_header_netinet_in_h=$ac_header_preproc
22044 fi
22045 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22046 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22047
22048 fi
22049 if test $ac_cv_header_netinet_in_h = yes; then
22050 :
22051 else
22052 ok_so_far=no
22053 fi
22054
22055
22056 fi
22057 if test $ok_so_far = yes; then
22058 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22059 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22060 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22061 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22062 echo $ECHO_N "(cached) $ECHO_C" >&6
22063 fi
22064 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22065 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22066 else
22067 # Is the header compilable?
22068 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22069 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22070 cat >conftest.$ac_ext <<_ACEOF
22071 /* confdefs.h. */
22072 _ACEOF
22073 cat confdefs.h >>conftest.$ac_ext
22074 cat >>conftest.$ac_ext <<_ACEOF
22075 /* end confdefs.h. */
22076 $ac_includes_default
22077 #include <arpa/inet.h>
22078 _ACEOF
22079 rm -f conftest.$ac_objext
22080 if { (ac_try="$ac_compile"
22081 case "(($ac_try" in
22082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22083 *) ac_try_echo=$ac_try;;
22084 esac
22085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22086 (eval "$ac_compile") 2>conftest.er1
22087 ac_status=$?
22088 grep -v '^ *+' conftest.er1 >conftest.err
22089 rm -f conftest.er1
22090 cat conftest.err >&5
22091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22092 (exit $ac_status); } && {
22093 test -z "$ac_c_werror_flag" ||
22094 test ! -s conftest.err
22095 } && test -s conftest.$ac_objext; then
22096 ac_header_compiler=yes
22097 else
22098 echo "$as_me: failed program was:" >&5
22099 sed 's/^/| /' conftest.$ac_ext >&5
22100
22101 ac_header_compiler=no
22102 fi
22103
22104 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22105 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22106 echo "${ECHO_T}$ac_header_compiler" >&6; }
22107
22108 # Is the header present?
22109 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22110 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22111 cat >conftest.$ac_ext <<_ACEOF
22112 /* confdefs.h. */
22113 _ACEOF
22114 cat confdefs.h >>conftest.$ac_ext
22115 cat >>conftest.$ac_ext <<_ACEOF
22116 /* end confdefs.h. */
22117 #include <arpa/inet.h>
22118 _ACEOF
22119 if { (ac_try="$ac_cpp conftest.$ac_ext"
22120 case "(($ac_try" in
22121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22122 *) ac_try_echo=$ac_try;;
22123 esac
22124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22125 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22126 ac_status=$?
22127 grep -v '^ *+' conftest.er1 >conftest.err
22128 rm -f conftest.er1
22129 cat conftest.err >&5
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); } >/dev/null && {
22132 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22133 test ! -s conftest.err
22134 }; then
22135 ac_header_preproc=yes
22136 else
22137 echo "$as_me: failed program was:" >&5
22138 sed 's/^/| /' conftest.$ac_ext >&5
22139
22140 ac_header_preproc=no
22141 fi
22142
22143 rm -f conftest.err conftest.$ac_ext
22144 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22145 echo "${ECHO_T}$ac_header_preproc" >&6; }
22146
22147 # So? What about this header?
22148 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22149 yes:no: )
22150 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22151 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22152 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22153 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22154 ac_header_preproc=yes
22155 ;;
22156 no:yes:* )
22157 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22158 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22159 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22160 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22161 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22162 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22163 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22164 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22165 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22166 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22167 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22168 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22169
22170 ;;
22171 esac
22172 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22173 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22174 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22175 echo $ECHO_N "(cached) $ECHO_C" >&6
22176 else
22177 ac_cv_header_arpa_inet_h=$ac_header_preproc
22178 fi
22179 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22180 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22181
22182 fi
22183 if test $ac_cv_header_arpa_inet_h = yes; then
22184 :
22185 else
22186 ok_so_far=no
22187 fi
22188
22189
22190 fi
22191 if test $ok_so_far = yes; then
22192
22193 cat >>confdefs.h <<\_ACEOF
22194 #define HAVE_INET_SOCKETS 1
22195 _ACEOF
22196
22197 fi
22198
22199
22200 for ac_header in sys/ioctl.h
22201 do
22202 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22203 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22204 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22205 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22206 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22207 echo $ECHO_N "(cached) $ECHO_C" >&6
22208 fi
22209 ac_res=`eval echo '${'$as_ac_Header'}'`
22210 { echo "$as_me:$LINENO: result: $ac_res" >&5
22211 echo "${ECHO_T}$ac_res" >&6; }
22212 else
22213 # Is the header compilable?
22214 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22215 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22216 cat >conftest.$ac_ext <<_ACEOF
22217 /* confdefs.h. */
22218 _ACEOF
22219 cat confdefs.h >>conftest.$ac_ext
22220 cat >>conftest.$ac_ext <<_ACEOF
22221 /* end confdefs.h. */
22222 $ac_includes_default
22223 #include <$ac_header>
22224 _ACEOF
22225 rm -f conftest.$ac_objext
22226 if { (ac_try="$ac_compile"
22227 case "(($ac_try" in
22228 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22229 *) ac_try_echo=$ac_try;;
22230 esac
22231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22232 (eval "$ac_compile") 2>conftest.er1
22233 ac_status=$?
22234 grep -v '^ *+' conftest.er1 >conftest.err
22235 rm -f conftest.er1
22236 cat conftest.err >&5
22237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22238 (exit $ac_status); } && {
22239 test -z "$ac_c_werror_flag" ||
22240 test ! -s conftest.err
22241 } && test -s conftest.$ac_objext; then
22242 ac_header_compiler=yes
22243 else
22244 echo "$as_me: failed program was:" >&5
22245 sed 's/^/| /' conftest.$ac_ext >&5
22246
22247 ac_header_compiler=no
22248 fi
22249
22250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22251 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22252 echo "${ECHO_T}$ac_header_compiler" >&6; }
22253
22254 # Is the header present?
22255 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22256 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22257 cat >conftest.$ac_ext <<_ACEOF
22258 /* confdefs.h. */
22259 _ACEOF
22260 cat confdefs.h >>conftest.$ac_ext
22261 cat >>conftest.$ac_ext <<_ACEOF
22262 /* end confdefs.h. */
22263 #include <$ac_header>
22264 _ACEOF
22265 if { (ac_try="$ac_cpp conftest.$ac_ext"
22266 case "(($ac_try" in
22267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22268 *) ac_try_echo=$ac_try;;
22269 esac
22270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22271 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22272 ac_status=$?
22273 grep -v '^ *+' conftest.er1 >conftest.err
22274 rm -f conftest.er1
22275 cat conftest.err >&5
22276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22277 (exit $ac_status); } >/dev/null && {
22278 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22279 test ! -s conftest.err
22280 }; then
22281 ac_header_preproc=yes
22282 else
22283 echo "$as_me: failed program was:" >&5
22284 sed 's/^/| /' conftest.$ac_ext >&5
22285
22286 ac_header_preproc=no
22287 fi
22288
22289 rm -f conftest.err conftest.$ac_ext
22290 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22291 echo "${ECHO_T}$ac_header_preproc" >&6; }
22292
22293 # So? What about this header?
22294 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22295 yes:no: )
22296 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22297 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22298 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22299 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22300 ac_header_preproc=yes
22301 ;;
22302 no:yes:* )
22303 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22304 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22305 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22306 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22307 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22308 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22309 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22310 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22312 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22313 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22314 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22315
22316 ;;
22317 esac
22318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22321 echo $ECHO_N "(cached) $ECHO_C" >&6
22322 else
22323 eval "$as_ac_Header=\$ac_header_preproc"
22324 fi
22325 ac_res=`eval echo '${'$as_ac_Header'}'`
22326 { echo "$as_me:$LINENO: result: $ac_res" >&5
22327 echo "${ECHO_T}$ac_res" >&6; }
22328
22329 fi
22330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22331 cat >>confdefs.h <<_ACEOF
22332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22333 _ACEOF
22334
22335 fi
22336
22337 done
22338
22339
22340 if test -f /usr/lpp/X11/bin/smt.exp; then
22341
22342 cat >>confdefs.h <<\_ACEOF
22343 #define HAVE_AIX_SMT_EXP 1
22344 _ACEOF
22345
22346 fi
22347
22348 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22349 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22350 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22351 { echo "$as_me:$LINENO: result: yes" >&5
22352 echo "${ECHO_T}yes" >&6; }
22353
22354 cat >>confdefs.h <<\_ACEOF
22355 #define HAVE_DEV_PTMX 1
22356 _ACEOF
22357
22358 else
22359 { echo "$as_me:$LINENO: result: no" >&5
22360 echo "${ECHO_T}no" >&6; }
22361 fi
22362
22363 { echo "$as_me:$LINENO: checking for pid_t" >&5
22364 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22365 if test "${ac_cv_type_pid_t+set}" = set; then
22366 echo $ECHO_N "(cached) $ECHO_C" >&6
22367 else
22368 cat >conftest.$ac_ext <<_ACEOF
22369 /* confdefs.h. */
22370 _ACEOF
22371 cat confdefs.h >>conftest.$ac_ext
22372 cat >>conftest.$ac_ext <<_ACEOF
22373 /* end confdefs.h. */
22374 $ac_includes_default
22375 typedef pid_t ac__type_new_;
22376 int
22377 main ()
22378 {
22379 if ((ac__type_new_ *) 0)
22380 return 0;
22381 if (sizeof (ac__type_new_))
22382 return 0;
22383 ;
22384 return 0;
22385 }
22386 _ACEOF
22387 rm -f conftest.$ac_objext
22388 if { (ac_try="$ac_compile"
22389 case "(($ac_try" in
22390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22391 *) ac_try_echo=$ac_try;;
22392 esac
22393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22394 (eval "$ac_compile") 2>conftest.er1
22395 ac_status=$?
22396 grep -v '^ *+' conftest.er1 >conftest.err
22397 rm -f conftest.er1
22398 cat conftest.err >&5
22399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22400 (exit $ac_status); } && {
22401 test -z "$ac_c_werror_flag" ||
22402 test ! -s conftest.err
22403 } && test -s conftest.$ac_objext; then
22404 ac_cv_type_pid_t=yes
22405 else
22406 echo "$as_me: failed program was:" >&5
22407 sed 's/^/| /' conftest.$ac_ext >&5
22408
22409 ac_cv_type_pid_t=no
22410 fi
22411
22412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22413 fi
22414 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22415 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22416 if test $ac_cv_type_pid_t = yes; then
22417 :
22418 else
22419
22420 cat >>confdefs.h <<_ACEOF
22421 #define pid_t int
22422 _ACEOF
22423
22424 fi
22425
22426
22427 for ac_header in vfork.h
22428 do
22429 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22430 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22431 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22432 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22433 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22434 echo $ECHO_N "(cached) $ECHO_C" >&6
22435 fi
22436 ac_res=`eval echo '${'$as_ac_Header'}'`
22437 { echo "$as_me:$LINENO: result: $ac_res" >&5
22438 echo "${ECHO_T}$ac_res" >&6; }
22439 else
22440 # Is the header compilable?
22441 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22442 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22443 cat >conftest.$ac_ext <<_ACEOF
22444 /* confdefs.h. */
22445 _ACEOF
22446 cat confdefs.h >>conftest.$ac_ext
22447 cat >>conftest.$ac_ext <<_ACEOF
22448 /* end confdefs.h. */
22449 $ac_includes_default
22450 #include <$ac_header>
22451 _ACEOF
22452 rm -f conftest.$ac_objext
22453 if { (ac_try="$ac_compile"
22454 case "(($ac_try" in
22455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22456 *) ac_try_echo=$ac_try;;
22457 esac
22458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22459 (eval "$ac_compile") 2>conftest.er1
22460 ac_status=$?
22461 grep -v '^ *+' conftest.er1 >conftest.err
22462 rm -f conftest.er1
22463 cat conftest.err >&5
22464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22465 (exit $ac_status); } && {
22466 test -z "$ac_c_werror_flag" ||
22467 test ! -s conftest.err
22468 } && test -s conftest.$ac_objext; then
22469 ac_header_compiler=yes
22470 else
22471 echo "$as_me: failed program was:" >&5
22472 sed 's/^/| /' conftest.$ac_ext >&5
22473
22474 ac_header_compiler=no
22475 fi
22476
22477 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22478 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22479 echo "${ECHO_T}$ac_header_compiler" >&6; }
22480
22481 # Is the header present?
22482 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22483 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22484 cat >conftest.$ac_ext <<_ACEOF
22485 /* confdefs.h. */
22486 _ACEOF
22487 cat confdefs.h >>conftest.$ac_ext
22488 cat >>conftest.$ac_ext <<_ACEOF
22489 /* end confdefs.h. */
22490 #include <$ac_header>
22491 _ACEOF
22492 if { (ac_try="$ac_cpp conftest.$ac_ext"
22493 case "(($ac_try" in
22494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22495 *) ac_try_echo=$ac_try;;
22496 esac
22497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22498 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22499 ac_status=$?
22500 grep -v '^ *+' conftest.er1 >conftest.err
22501 rm -f conftest.er1
22502 cat conftest.err >&5
22503 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22504 (exit $ac_status); } >/dev/null && {
22505 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22506 test ! -s conftest.err
22507 }; then
22508 ac_header_preproc=yes
22509 else
22510 echo "$as_me: failed program was:" >&5
22511 sed 's/^/| /' conftest.$ac_ext >&5
22512
22513 ac_header_preproc=no
22514 fi
22515
22516 rm -f conftest.err conftest.$ac_ext
22517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22518 echo "${ECHO_T}$ac_header_preproc" >&6; }
22519
22520 # So? What about this header?
22521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22522 yes:no: )
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22525 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22527 ac_header_preproc=yes
22528 ;;
22529 no:yes:* )
22530 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22532 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22533 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22534 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22536 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22537 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22538 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22540 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22542
22543 ;;
22544 esac
22545 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22546 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 else
22550 eval "$as_ac_Header=\$ac_header_preproc"
22551 fi
22552 ac_res=`eval echo '${'$as_ac_Header'}'`
22553 { echo "$as_me:$LINENO: result: $ac_res" >&5
22554 echo "${ECHO_T}$ac_res" >&6; }
22555
22556 fi
22557 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22558 cat >>confdefs.h <<_ACEOF
22559 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22560 _ACEOF
22561
22562 fi
22563
22564 done
22565
22566
22567
22568 for ac_func in fork vfork
22569 do
22570 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22571 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22572 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22573 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22574 echo $ECHO_N "(cached) $ECHO_C" >&6
22575 else
22576 cat >conftest.$ac_ext <<_ACEOF
22577 /* confdefs.h. */
22578 _ACEOF
22579 cat confdefs.h >>conftest.$ac_ext
22580 cat >>conftest.$ac_ext <<_ACEOF
22581 /* end confdefs.h. */
22582 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22583 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22584 #define $ac_func innocuous_$ac_func
22585
22586 /* System header to define __stub macros and hopefully few prototypes,
22587 which can conflict with char $ac_func (); below.
22588 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22589 <limits.h> exists even on freestanding compilers. */
22590
22591 #ifdef __STDC__
22592 # include <limits.h>
22593 #else
22594 # include <assert.h>
22595 #endif
22596
22597 #undef $ac_func
22598
22599 /* Override any GCC internal prototype to avoid an error.
22600 Use char because int might match the return type of a GCC
22601 builtin and then its argument prototype would still apply. */
22602 #ifdef __cplusplus
22603 extern "C"
22604 #endif
22605 char $ac_func ();
22606 /* The GNU C library defines this for functions which it implements
22607 to always fail with ENOSYS. Some functions are actually named
22608 something starting with __ and the normal name is an alias. */
22609 #if defined __stub_$ac_func || defined __stub___$ac_func
22610 choke me
22611 #endif
22612
22613 int
22614 main ()
22615 {
22616 return $ac_func ();
22617 ;
22618 return 0;
22619 }
22620 _ACEOF
22621 rm -f conftest.$ac_objext conftest$ac_exeext
22622 if { (ac_try="$ac_link"
22623 case "(($ac_try" in
22624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22625 *) ac_try_echo=$ac_try;;
22626 esac
22627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22628 (eval "$ac_link") 2>conftest.er1
22629 ac_status=$?
22630 grep -v '^ *+' conftest.er1 >conftest.err
22631 rm -f conftest.er1
22632 cat conftest.err >&5
22633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22634 (exit $ac_status); } && {
22635 test -z "$ac_c_werror_flag" ||
22636 test ! -s conftest.err
22637 } && test -s conftest$ac_exeext &&
22638 $as_test_x conftest$ac_exeext; then
22639 eval "$as_ac_var=yes"
22640 else
22641 echo "$as_me: failed program was:" >&5
22642 sed 's/^/| /' conftest.$ac_ext >&5
22643
22644 eval "$as_ac_var=no"
22645 fi
22646
22647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22648 conftest$ac_exeext conftest.$ac_ext
22649 fi
22650 ac_res=`eval echo '${'$as_ac_var'}'`
22651 { echo "$as_me:$LINENO: result: $ac_res" >&5
22652 echo "${ECHO_T}$ac_res" >&6; }
22653 if test `eval echo '${'$as_ac_var'}'` = yes; then
22654 cat >>confdefs.h <<_ACEOF
22655 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22656 _ACEOF
22657
22658 fi
22659 done
22660
22661 if test "x$ac_cv_func_fork" = xyes; then
22662 { echo "$as_me:$LINENO: checking for working fork" >&5
22663 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22664 if test "${ac_cv_func_fork_works+set}" = set; then
22665 echo $ECHO_N "(cached) $ECHO_C" >&6
22666 else
22667 if test "$cross_compiling" = yes; then
22668 ac_cv_func_fork_works=cross
22669 else
22670 cat >conftest.$ac_ext <<_ACEOF
22671 /* confdefs.h. */
22672 _ACEOF
22673 cat confdefs.h >>conftest.$ac_ext
22674 cat >>conftest.$ac_ext <<_ACEOF
22675 /* end confdefs.h. */
22676 $ac_includes_default
22677 int
22678 main ()
22679 {
22680
22681 /* By Ruediger Kuhlmann. */
22682 return fork () < 0;
22683
22684 ;
22685 return 0;
22686 }
22687 _ACEOF
22688 rm -f conftest$ac_exeext
22689 if { (ac_try="$ac_link"
22690 case "(($ac_try" in
22691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22692 *) ac_try_echo=$ac_try;;
22693 esac
22694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22695 (eval "$ac_link") 2>&5
22696 ac_status=$?
22697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22698 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22699 { (case "(($ac_try" in
22700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22701 *) ac_try_echo=$ac_try;;
22702 esac
22703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22704 (eval "$ac_try") 2>&5
22705 ac_status=$?
22706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22707 (exit $ac_status); }; }; then
22708 ac_cv_func_fork_works=yes
22709 else
22710 echo "$as_me: program exited with status $ac_status" >&5
22711 echo "$as_me: failed program was:" >&5
22712 sed 's/^/| /' conftest.$ac_ext >&5
22713
22714 ( exit $ac_status )
22715 ac_cv_func_fork_works=no
22716 fi
22717 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22718 fi
22719
22720
22721 fi
22722 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22723 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22724
22725 else
22726 ac_cv_func_fork_works=$ac_cv_func_fork
22727 fi
22728 if test "x$ac_cv_func_fork_works" = xcross; then
22729 case $host in
22730 *-*-amigaos* | *-*-msdosdjgpp*)
22731 # Override, as these systems have only a dummy fork() stub
22732 ac_cv_func_fork_works=no
22733 ;;
22734 *)
22735 ac_cv_func_fork_works=yes
22736 ;;
22737 esac
22738 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22739 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22740 fi
22741 ac_cv_func_vfork_works=$ac_cv_func_vfork
22742 if test "x$ac_cv_func_vfork" = xyes; then
22743 { echo "$as_me:$LINENO: checking for working vfork" >&5
22744 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22745 if test "${ac_cv_func_vfork_works+set}" = set; then
22746 echo $ECHO_N "(cached) $ECHO_C" >&6
22747 else
22748 if test "$cross_compiling" = yes; then
22749 ac_cv_func_vfork_works=cross
22750 else
22751 cat >conftest.$ac_ext <<_ACEOF
22752 /* confdefs.h. */
22753 _ACEOF
22754 cat confdefs.h >>conftest.$ac_ext
22755 cat >>conftest.$ac_ext <<_ACEOF
22756 /* end confdefs.h. */
22757 /* Thanks to Paul Eggert for this test. */
22758 $ac_includes_default
22759 #include <sys/wait.h>
22760 #ifdef HAVE_VFORK_H
22761 # include <vfork.h>
22762 #endif
22763 /* On some sparc systems, changes by the child to local and incoming
22764 argument registers are propagated back to the parent. The compiler
22765 is told about this with #include <vfork.h>, but some compilers
22766 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22767 static variable whose address is put into a register that is
22768 clobbered by the vfork. */
22769 static void
22770 #ifdef __cplusplus
22771 sparc_address_test (int arg)
22772 # else
22773 sparc_address_test (arg) int arg;
22774 #endif
22775 {
22776 static pid_t child;
22777 if (!child) {
22778 child = vfork ();
22779 if (child < 0) {
22780 perror ("vfork");
22781 _exit(2);
22782 }
22783 if (!child) {
22784 arg = getpid();
22785 write(-1, "", 0);
22786 _exit (arg);
22787 }
22788 }
22789 }
22790
22791 int
22792 main ()
22793 {
22794 pid_t parent = getpid ();
22795 pid_t child;
22796
22797 sparc_address_test (0);
22798
22799 child = vfork ();
22800
22801 if (child == 0) {
22802 /* Here is another test for sparc vfork register problems. This
22803 test uses lots of local variables, at least as many local
22804 variables as main has allocated so far including compiler
22805 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22806 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22807 reuse the register of parent for one of the local variables,
22808 since it will think that parent can't possibly be used any more
22809 in this routine. Assigning to the local variable will thus
22810 munge parent in the parent process. */
22811 pid_t
22812 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22813 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22814 /* Convince the compiler that p..p7 are live; otherwise, it might
22815 use the same hardware register for all 8 local variables. */
22816 if (p != p1 || p != p2 || p != p3 || p != p4
22817 || p != p5 || p != p6 || p != p7)
22818 _exit(1);
22819
22820 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22821 from child file descriptors. If the child closes a descriptor
22822 before it execs or exits, this munges the parent's descriptor
22823 as well. Test for this by closing stdout in the child. */
22824 _exit(close(fileno(stdout)) != 0);
22825 } else {
22826 int status;
22827 struct stat st;
22828
22829 while (wait(&status) != child)
22830 ;
22831 return (
22832 /* Was there some problem with vforking? */
22833 child < 0
22834
22835 /* Did the child fail? (This shouldn't happen.) */
22836 || status
22837
22838 /* Did the vfork/compiler bug occur? */
22839 || parent != getpid()
22840
22841 /* Did the file descriptor bug occur? */
22842 || fstat(fileno(stdout), &st) != 0
22843 );
22844 }
22845 }
22846 _ACEOF
22847 rm -f conftest$ac_exeext
22848 if { (ac_try="$ac_link"
22849 case "(($ac_try" in
22850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22851 *) ac_try_echo=$ac_try;;
22852 esac
22853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22854 (eval "$ac_link") 2>&5
22855 ac_status=$?
22856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22857 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22858 { (case "(($ac_try" in
22859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22860 *) ac_try_echo=$ac_try;;
22861 esac
22862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22863 (eval "$ac_try") 2>&5
22864 ac_status=$?
22865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22866 (exit $ac_status); }; }; then
22867 ac_cv_func_vfork_works=yes
22868 else
22869 echo "$as_me: program exited with status $ac_status" >&5
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ( exit $ac_status )
22874 ac_cv_func_vfork_works=no
22875 fi
22876 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22877 fi
22878
22879
22880 fi
22881 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22882 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22883
22884 fi;
22885 if test "x$ac_cv_func_fork_works" = xcross; then
22886 ac_cv_func_vfork_works=$ac_cv_func_vfork
22887 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22888 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22889 fi
22890
22891 if test "x$ac_cv_func_vfork_works" = xyes; then
22892
22893 cat >>confdefs.h <<\_ACEOF
22894 #define HAVE_WORKING_VFORK 1
22895 _ACEOF
22896
22897 else
22898
22899 cat >>confdefs.h <<\_ACEOF
22900 #define vfork fork
22901 _ACEOF
22902
22903 fi
22904 if test "x$ac_cv_func_fork_works" = xyes; then
22905
22906 cat >>confdefs.h <<\_ACEOF
22907 #define HAVE_WORKING_FORK 1
22908 _ACEOF
22909
22910 fi
22911
22912
22913 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22914 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22915 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22916 echo $ECHO_N "(cached) $ECHO_C" >&6
22917 else
22918 cat >conftest.$ac_ext <<_ACEOF
22919 /* confdefs.h. */
22920 _ACEOF
22921 cat confdefs.h >>conftest.$ac_ext
22922 cat >>conftest.$ac_ext <<_ACEOF
22923 /* end confdefs.h. */
22924 #include <langinfo.h>
22925 int
22926 main ()
22927 {
22928 char* cs = nl_langinfo(CODESET);
22929 ;
22930 return 0;
22931 }
22932 _ACEOF
22933 rm -f conftest.$ac_objext conftest$ac_exeext
22934 if { (ac_try="$ac_link"
22935 case "(($ac_try" in
22936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22937 *) ac_try_echo=$ac_try;;
22938 esac
22939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22940 (eval "$ac_link") 2>conftest.er1
22941 ac_status=$?
22942 grep -v '^ *+' conftest.er1 >conftest.err
22943 rm -f conftest.er1
22944 cat conftest.err >&5
22945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22946 (exit $ac_status); } && {
22947 test -z "$ac_c_werror_flag" ||
22948 test ! -s conftest.err
22949 } && test -s conftest$ac_exeext &&
22950 $as_test_x conftest$ac_exeext; then
22951 emacs_cv_langinfo_codeset=yes
22952 else
22953 echo "$as_me: failed program was:" >&5
22954 sed 's/^/| /' conftest.$ac_ext >&5
22955
22956 emacs_cv_langinfo_codeset=no
22957 fi
22958
22959 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22960 conftest$ac_exeext conftest.$ac_ext
22961
22962 fi
22963 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22964 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22965 if test $emacs_cv_langinfo_codeset = yes; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_LANGINFO_CODESET 1
22969 _ACEOF
22970
22971 fi
22972
22973 { echo "$as_me:$LINENO: checking for size_t" >&5
22974 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22975 if test "${ac_cv_type_size_t+set}" = set; then
22976 echo $ECHO_N "(cached) $ECHO_C" >&6
22977 else
22978 cat >conftest.$ac_ext <<_ACEOF
22979 /* confdefs.h. */
22980 _ACEOF
22981 cat confdefs.h >>conftest.$ac_ext
22982 cat >>conftest.$ac_ext <<_ACEOF
22983 /* end confdefs.h. */
22984 $ac_includes_default
22985 typedef size_t ac__type_new_;
22986 int
22987 main ()
22988 {
22989 if ((ac__type_new_ *) 0)
22990 return 0;
22991 if (sizeof (ac__type_new_))
22992 return 0;
22993 ;
22994 return 0;
22995 }
22996 _ACEOF
22997 rm -f conftest.$ac_objext
22998 if { (ac_try="$ac_compile"
22999 case "(($ac_try" in
23000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23001 *) ac_try_echo=$ac_try;;
23002 esac
23003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23004 (eval "$ac_compile") 2>conftest.er1
23005 ac_status=$?
23006 grep -v '^ *+' conftest.er1 >conftest.err
23007 rm -f conftest.er1
23008 cat conftest.err >&5
23009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23010 (exit $ac_status); } && {
23011 test -z "$ac_c_werror_flag" ||
23012 test ! -s conftest.err
23013 } && test -s conftest.$ac_objext; then
23014 ac_cv_type_size_t=yes
23015 else
23016 echo "$as_me: failed program was:" >&5
23017 sed 's/^/| /' conftest.$ac_ext >&5
23018
23019 ac_cv_type_size_t=no
23020 fi
23021
23022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23023 fi
23024 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23025 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23026 if test $ac_cv_type_size_t = yes; then
23027
23028 cat >>confdefs.h <<_ACEOF
23029 #define HAVE_SIZE_T 1
23030 _ACEOF
23031
23032
23033 fi
23034
23035
23036 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23037 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23038 if test "${ac_cv_type_mbstate_t+set}" = set; then
23039 echo $ECHO_N "(cached) $ECHO_C" >&6
23040 else
23041 cat >conftest.$ac_ext <<_ACEOF
23042 /* confdefs.h. */
23043 _ACEOF
23044 cat confdefs.h >>conftest.$ac_ext
23045 cat >>conftest.$ac_ext <<_ACEOF
23046 /* end confdefs.h. */
23047 $ac_includes_default
23048 # include <wchar.h>
23049 int
23050 main ()
23051 {
23052 mbstate_t x; return sizeof x;
23053 ;
23054 return 0;
23055 }
23056 _ACEOF
23057 rm -f conftest.$ac_objext
23058 if { (ac_try="$ac_compile"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_compile") 2>conftest.er1
23065 ac_status=$?
23066 grep -v '^ *+' conftest.er1 >conftest.err
23067 rm -f conftest.er1
23068 cat conftest.err >&5
23069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23070 (exit $ac_status); } && {
23071 test -z "$ac_c_werror_flag" ||
23072 test ! -s conftest.err
23073 } && test -s conftest.$ac_objext; then
23074 ac_cv_type_mbstate_t=yes
23075 else
23076 echo "$as_me: failed program was:" >&5
23077 sed 's/^/| /' conftest.$ac_ext >&5
23078
23079 ac_cv_type_mbstate_t=no
23080 fi
23081
23082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23083 fi
23084 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23085 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23086 if test $ac_cv_type_mbstate_t = yes; then
23087
23088 cat >>confdefs.h <<\_ACEOF
23089 #define HAVE_MBSTATE_T 1
23090 _ACEOF
23091
23092 else
23093
23094 cat >>confdefs.h <<\_ACEOF
23095 #define mbstate_t int
23096 _ACEOF
23097
23098 fi
23099
23100 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23101 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23102 if test "${emacs_cv_c_restrict+set}" = set; then
23103 echo $ECHO_N "(cached) $ECHO_C" >&6
23104 else
23105 cat >conftest.$ac_ext <<_ACEOF
23106 /* confdefs.h. */
23107 _ACEOF
23108 cat confdefs.h >>conftest.$ac_ext
23109 cat >>conftest.$ac_ext <<_ACEOF
23110 /* end confdefs.h. */
23111 void fred (int *restrict x);
23112 int
23113 main ()
23114 {
23115
23116 ;
23117 return 0;
23118 }
23119 _ACEOF
23120 rm -f conftest.$ac_objext
23121 if { (ac_try="$ac_compile"
23122 case "(($ac_try" in
23123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23124 *) ac_try_echo=$ac_try;;
23125 esac
23126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23127 (eval "$ac_compile") 2>conftest.er1
23128 ac_status=$?
23129 grep -v '^ *+' conftest.er1 >conftest.err
23130 rm -f conftest.er1
23131 cat conftest.err >&5
23132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23133 (exit $ac_status); } && {
23134 test -z "$ac_c_werror_flag" ||
23135 test ! -s conftest.err
23136 } && test -s conftest.$ac_objext; then
23137 emacs_cv_c_restrict=yes
23138 else
23139 echo "$as_me: failed program was:" >&5
23140 sed 's/^/| /' conftest.$ac_ext >&5
23141
23142 cat >conftest.$ac_ext <<_ACEOF
23143 /* confdefs.h. */
23144 _ACEOF
23145 cat confdefs.h >>conftest.$ac_ext
23146 cat >>conftest.$ac_ext <<_ACEOF
23147 /* end confdefs.h. */
23148 void fred (int *__restrict x);
23149 int
23150 main ()
23151 {
23152
23153 ;
23154 return 0;
23155 }
23156 _ACEOF
23157 rm -f conftest.$ac_objext
23158 if { (ac_try="$ac_compile"
23159 case "(($ac_try" in
23160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23161 *) ac_try_echo=$ac_try;;
23162 esac
23163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23164 (eval "$ac_compile") 2>conftest.er1
23165 ac_status=$?
23166 grep -v '^ *+' conftest.er1 >conftest.err
23167 rm -f conftest.er1
23168 cat conftest.err >&5
23169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23170 (exit $ac_status); } && {
23171 test -z "$ac_c_werror_flag" ||
23172 test ! -s conftest.err
23173 } && test -s conftest.$ac_objext; then
23174 emacs_cv_c_restrict=__restrict
23175 else
23176 echo "$as_me: failed program was:" >&5
23177 sed 's/^/| /' conftest.$ac_ext >&5
23178
23179 emacs_cv_c_restrict=no
23180 fi
23181
23182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23183 fi
23184
23185 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23186 fi
23187 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23188 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23189 case "$emacs_cv_c_restrict" in
23190 yes) emacs_restrict=restrict;;
23191 no) emacs_restrict="";;
23192 *) emacs_restrict="$emacs_cv_c_restrict";;
23193 esac
23194 if test "$emacs_restrict" != __restrict; then
23195
23196 cat >>confdefs.h <<_ACEOF
23197 #define __restrict $emacs_restrict
23198 _ACEOF
23199
23200 fi
23201
23202 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23203 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23204 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23205 echo $ECHO_N "(cached) $ECHO_C" >&6
23206 else
23207 cat >conftest.$ac_ext <<_ACEOF
23208 /* confdefs.h. */
23209 _ACEOF
23210 cat confdefs.h >>conftest.$ac_ext
23211 cat >>conftest.$ac_ext <<_ACEOF
23212 /* end confdefs.h. */
23213 void fred (int x[__restrict]);
23214 int
23215 main ()
23216 {
23217
23218 ;
23219 return 0;
23220 }
23221 _ACEOF
23222 rm -f conftest.$ac_objext
23223 if { (ac_try="$ac_compile"
23224 case "(($ac_try" in
23225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23226 *) ac_try_echo=$ac_try;;
23227 esac
23228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23229 (eval "$ac_compile") 2>conftest.er1
23230 ac_status=$?
23231 grep -v '^ *+' conftest.er1 >conftest.err
23232 rm -f conftest.er1
23233 cat conftest.err >&5
23234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23235 (exit $ac_status); } && {
23236 test -z "$ac_c_werror_flag" ||
23237 test ! -s conftest.err
23238 } && test -s conftest.$ac_objext; then
23239 emacs_cv_c_restrict_arr=yes
23240 else
23241 echo "$as_me: failed program was:" >&5
23242 sed 's/^/| /' conftest.$ac_ext >&5
23243
23244 emacs_cv_c_restrict_arr=no
23245 fi
23246
23247 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23248 fi
23249 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23250 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23251 if test "$emacs_cv_c_restrict_arr" = yes; then
23252
23253 cat >>confdefs.h <<\_ACEOF
23254 #define __restrict_arr __restrict
23255 _ACEOF
23256
23257 fi
23258
23259
23260
23261 # Set up the CFLAGS for real compilation, so we can substitute it.
23262 CFLAGS="$REAL_CFLAGS"
23263 CPPFLAGS="$REAL_CPPFLAGS"
23264
23265 #### Find out which version of Emacs this is.
23266 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23267 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23268 if test x"${version}" = x; then
23269 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23270 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23271 { (exit 1); exit 1; }; }
23272 fi
23273
23274 ### Specify what sort of things we'll be editing into Makefile and config.h.
23275 ### Use configuration here uncanonicalized to avoid exceeding size limits.
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
23310
23311 cat >>confdefs.h <<_ACEOF
23312 #define EMACS_CONFIGURATION "${canonical}"
23313 _ACEOF
23314
23315
23316 cat >>confdefs.h <<_ACEOF
23317 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23318 _ACEOF
23319
23320
23321 cat >>confdefs.h <<_ACEOF
23322 #define config_machfile "${machfile}"
23323 _ACEOF
23324
23325
23326 cat >>confdefs.h <<_ACEOF
23327 #define config_opsysfile "${opsysfile}"
23328 _ACEOF
23329
23330
23331 cat >>confdefs.h <<_ACEOF
23332 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23333 _ACEOF
23334
23335
23336 cat >>confdefs.h <<_ACEOF
23337 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23338 _ACEOF
23339
23340
23341 cat >>confdefs.h <<_ACEOF
23342 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23343 _ACEOF
23344
23345
23346 cat >>confdefs.h <<_ACEOF
23347 #define UNEXEC_SRC ${UNEXEC_SRC}
23348 _ACEOF
23349
23350
23351 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23352
23353 cat >>confdefs.h <<\_ACEOF
23354 #define HAVE_X_WINDOWS 1
23355 _ACEOF
23356
23357 fi
23358 if test "${USE_X_TOOLKIT}" != "none" ; then
23359
23360 cat >>confdefs.h <<\_ACEOF
23361 #define USE_X_TOOLKIT 1
23362 _ACEOF
23363
23364 fi
23365 if test "${HAVE_X11}" = "yes" ; then
23366
23367 cat >>confdefs.h <<\_ACEOF
23368 #define HAVE_X11 1
23369 _ACEOF
23370
23371 fi
23372 if test "${HAVE_XFREE386}" = "yes" ; then
23373
23374 cat >>confdefs.h <<\_ACEOF
23375 #define HAVE_XFREE386 1
23376 _ACEOF
23377
23378 fi
23379 if test "${HAVE_MENUS}" = "yes" ; then
23380
23381 cat >>confdefs.h <<\_ACEOF
23382 #define HAVE_MENUS 1
23383 _ACEOF
23384
23385 fi
23386 if test "${GNU_MALLOC}" = "yes" ; then
23387
23388 cat >>confdefs.h <<\_ACEOF
23389 #define GNU_MALLOC 1
23390 _ACEOF
23391
23392 fi
23393 if test "${REL_ALLOC}" = "yes" ; then
23394
23395 cat >>confdefs.h <<\_ACEOF
23396 #define REL_ALLOC 1
23397 _ACEOF
23398
23399 fi
23400
23401
23402
23403
23404
23405
23406 #### Report on what we decided to do.
23407 #### Report GTK as a toolkit, even if it doesn't use Xt.
23408 #### It makes printing result more understandable as using GTK sets
23409 #### toolkit_scroll_bars to yes by default.
23410 if test "${HAVE_GTK}" = "yes"; then
23411 USE_X_TOOLKIT=GTK
23412 fi
23413
23414 echo "
23415 Configured for \`${canonical}'.
23416
23417 Where should the build process find the source code? ${srcdir}
23418 What operating system and machine description files should Emacs use?
23419 \`${opsysfile}' and \`${machfile}'
23420 What compiler should emacs be built with? ${CC} ${CFLAGS}
23421 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23422 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23423 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23424 What window system should Emacs use? ${window_system}
23425 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23426
23427 if test -n "${x_includes}"; then
23428 echo " Where do we find X Windows header files? ${x_includes}"
23429 else
23430 echo " Where do we find X Windows header files? Standard dirs"
23431 fi
23432 if test -n "${x_libraries}"; then
23433 echo " Where do we find X Windows libraries? ${x_libraries}"
23434 else
23435 echo " Where do we find X Windows libraries? Standard dirs"
23436 fi
23437
23438 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23439 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23440 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23441 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23442 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23443 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23444 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23445 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23446 echo " Does Emacs use -ldbus? ${HAVE_DBUS}"
23447 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23448 echo
23449
23450 if test $USE_XASSERTS = yes; then
23451 echo " Compiling with asserts turned on."
23452 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23453 echo
23454 fi
23455
23456 if test "$USE_X_TOOLKIT" = GTK; then
23457 case "$canonical" in
23458 *cygwin*)
23459 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23460 will probably get a crash on startup. If this happens, please use another
23461 toolkit for Emacs. See etc/PROBLEMS for more information."
23462 ;;
23463 esac
23464 fi
23465
23466
23467 if test "$HAVE_CARBON" = "yes"; then
23468 echo
23469 echo "Warning: The Mac Carbon port is currently unsupported and has
23470 known problems. It is not recommended for use by non-developers.
23471 Read the emacs-devel archives for more information."
23472 echo
23473 fi
23474
23475 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23476 echo "D-Bus integration has been tested for GNU/Linux only."
23477 echo
23478 fi
23479
23480
23481 # Remove any trailing slashes in these variables.
23482 test "${prefix}" != NONE &&
23483 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23484 test "${exec_prefix}" != NONE &&
23485 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23486
23487 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23488 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23489 ## from Makefile.c can correctly provide the arg `-traditional' to the
23490 ## C preprocessor.
23491
23492 cat >conftest.$ac_ext <<_ACEOF
23493 /* confdefs.h. */
23494 _ACEOF
23495 cat confdefs.h >>conftest.$ac_ext
23496 cat >>conftest.$ac_ext <<_ACEOF
23497 /* end confdefs.h. */
23498 yes..yes
23499 _ACEOF
23500 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23501 $EGREP "yes..yes" >/dev/null 2>&1; then
23502 CPP_NEED_TRADITIONAL=no
23503 else
23504 CPP_NEED_TRADITIONAL=yes
23505 fi
23506 rm -f conftest*
23507
23508
23509 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"
23510
23511 ac_config_commands="$ac_config_commands default"
23512
23513 cat >confcache <<\_ACEOF
23514 # This file is a shell script that caches the results of configure
23515 # tests run on this system so they can be shared between configure
23516 # scripts and configure runs, see configure's option --config-cache.
23517 # It is not useful on other systems. If it contains results you don't
23518 # want to keep, you may remove or edit it.
23519 #
23520 # config.status only pays attention to the cache file if you give it
23521 # the --recheck option to rerun configure.
23522 #
23523 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23524 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23525 # following values.
23526
23527 _ACEOF
23528
23529 # The following way of writing the cache mishandles newlines in values,
23530 # but we know of no workaround that is simple, portable, and efficient.
23531 # So, we kill variables containing newlines.
23532 # Ultrix sh set writes to stderr and can't be redirected directly,
23533 # and sets the high bit in the cache file unless we assign to the vars.
23534 (
23535 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23536 eval ac_val=\$$ac_var
23537 case $ac_val in #(
23538 *${as_nl}*)
23539 case $ac_var in #(
23540 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23541 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23542 esac
23543 case $ac_var in #(
23544 _ | IFS | as_nl) ;; #(
23545 *) $as_unset $ac_var ;;
23546 esac ;;
23547 esac
23548 done
23549
23550 (set) 2>&1 |
23551 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23552 *${as_nl}ac_space=\ *)
23553 # `set' does not quote correctly, so add quotes (double-quote
23554 # substitution turns \\\\ into \\, and sed turns \\ into \).
23555 sed -n \
23556 "s/'/'\\\\''/g;
23557 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23558 ;; #(
23559 *)
23560 # `set' quotes correctly as required by POSIX, so do not add quotes.
23561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23562 ;;
23563 esac |
23564 sort
23565 ) |
23566 sed '
23567 /^ac_cv_env_/b end
23568 t clear
23569 :clear
23570 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23571 t end
23572 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23573 :end' >>confcache
23574 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23575 if test -w "$cache_file"; then
23576 test "x$cache_file" != "x/dev/null" &&
23577 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23578 echo "$as_me: updating cache $cache_file" >&6;}
23579 cat confcache >$cache_file
23580 else
23581 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23582 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23583 fi
23584 fi
23585 rm -f confcache
23586
23587 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23588 # Let make expand exec_prefix.
23589 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23590
23591 DEFS=-DHAVE_CONFIG_H
23592
23593 ac_libobjs=
23594 ac_ltlibobjs=
23595 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23596 # 1. Remove the extension, and $U if already installed.
23597 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23598 ac_i=`echo "$ac_i" | sed "$ac_script"`
23599 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23600 # will be set to the directory where LIBOBJS objects are built.
23601 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23602 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23603 done
23604 LIBOBJS=$ac_libobjs
23605
23606 LTLIBOBJS=$ac_ltlibobjs
23607
23608
23609
23610 : ${CONFIG_STATUS=./config.status}
23611 ac_clean_files_save=$ac_clean_files
23612 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23613 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23614 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23615 cat >$CONFIG_STATUS <<_ACEOF
23616 #! $SHELL
23617 # Generated by $as_me.
23618 # Run this file to recreate the current configuration.
23619 # Compiler output produced by configure, useful for debugging
23620 # configure, is in config.log if it exists.
23621
23622 debug=false
23623 ac_cs_recheck=false
23624 ac_cs_silent=false
23625 SHELL=\${CONFIG_SHELL-$SHELL}
23626 _ACEOF
23627
23628 cat >>$CONFIG_STATUS <<\_ACEOF
23629 ## --------------------- ##
23630 ## M4sh Initialization. ##
23631 ## --------------------- ##
23632
23633 # Be more Bourne compatible
23634 DUALCASE=1; export DUALCASE # for MKS sh
23635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23636 emulate sh
23637 NULLCMD=:
23638 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23639 # is contrary to our usage. Disable this feature.
23640 alias -g '${1+"$@"}'='"$@"'
23641 setopt NO_GLOB_SUBST
23642 else
23643 case `(set -o) 2>/dev/null` in
23644 *posix*) set -o posix ;;
23645 esac
23646
23647 fi
23648
23649
23650
23651
23652 # PATH needs CR
23653 # Avoid depending upon Character Ranges.
23654 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23655 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23656 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23657 as_cr_digits='0123456789'
23658 as_cr_alnum=$as_cr_Letters$as_cr_digits
23659
23660 # The user is always right.
23661 if test "${PATH_SEPARATOR+set}" != set; then
23662 echo "#! /bin/sh" >conf$$.sh
23663 echo "exit 0" >>conf$$.sh
23664 chmod +x conf$$.sh
23665 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23666 PATH_SEPARATOR=';'
23667 else
23668 PATH_SEPARATOR=:
23669 fi
23670 rm -f conf$$.sh
23671 fi
23672
23673 # Support unset when possible.
23674 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23675 as_unset=unset
23676 else
23677 as_unset=false
23678 fi
23679
23680
23681 # IFS
23682 # We need space, tab and new line, in precisely that order. Quoting is
23683 # there to prevent editors from complaining about space-tab.
23684 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23685 # splitting by setting IFS to empty value.)
23686 as_nl='
23687 '
23688 IFS=" "" $as_nl"
23689
23690 # Find who we are. Look in the path if we contain no directory separator.
23691 case $0 in
23692 *[\\/]* ) as_myself=$0 ;;
23693 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23694 for as_dir in $PATH
23695 do
23696 IFS=$as_save_IFS
23697 test -z "$as_dir" && as_dir=.
23698 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23699 done
23700 IFS=$as_save_IFS
23701
23702 ;;
23703 esac
23704 # We did not find ourselves, most probably we were run as `sh COMMAND'
23705 # in which case we are not to be found in the path.
23706 if test "x$as_myself" = x; then
23707 as_myself=$0
23708 fi
23709 if test ! -f "$as_myself"; then
23710 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23711 { (exit 1); exit 1; }
23712 fi
23713
23714 # Work around bugs in pre-3.0 UWIN ksh.
23715 for as_var in ENV MAIL MAILPATH
23716 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23717 done
23718 PS1='$ '
23719 PS2='> '
23720 PS4='+ '
23721
23722 # NLS nuisances.
23723 for as_var in \
23724 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23725 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23726 LC_TELEPHONE LC_TIME
23727 do
23728 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23729 eval $as_var=C; export $as_var
23730 else
23731 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23732 fi
23733 done
23734
23735 # Required to use basename.
23736 if expr a : '\(a\)' >/dev/null 2>&1 &&
23737 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23738 as_expr=expr
23739 else
23740 as_expr=false
23741 fi
23742
23743 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23744 as_basename=basename
23745 else
23746 as_basename=false
23747 fi
23748
23749
23750 # Name of the executable.
23751 as_me=`$as_basename -- "$0" ||
23752 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23753 X"$0" : 'X\(//\)$' \| \
23754 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23755 echo X/"$0" |
23756 sed '/^.*\/\([^/][^/]*\)\/*$/{
23757 s//\1/
23758 q
23759 }
23760 /^X\/\(\/\/\)$/{
23761 s//\1/
23762 q
23763 }
23764 /^X\/\(\/\).*/{
23765 s//\1/
23766 q
23767 }
23768 s/.*/./; q'`
23769
23770 # CDPATH.
23771 $as_unset CDPATH
23772
23773
23774
23775 as_lineno_1=$LINENO
23776 as_lineno_2=$LINENO
23777 test "x$as_lineno_1" != "x$as_lineno_2" &&
23778 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23779
23780 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23781 # uniformly replaced by the line number. The first 'sed' inserts a
23782 # line-number line after each line using $LINENO; the second 'sed'
23783 # does the real work. The second script uses 'N' to pair each
23784 # line-number line with the line containing $LINENO, and appends
23785 # trailing '-' during substitution so that $LINENO is not a special
23786 # case at line end.
23787 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23788 # scripts with optimization help from Paolo Bonzini. Blame Lee
23789 # E. McMahon (1931-1989) for sed's syntax. :-)
23790 sed -n '
23791 p
23792 /[$]LINENO/=
23793 ' <$as_myself |
23794 sed '
23795 s/[$]LINENO.*/&-/
23796 t lineno
23797 b
23798 :lineno
23799 N
23800 :loop
23801 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23802 t loop
23803 s/-\n.*//
23804 ' >$as_me.lineno &&
23805 chmod +x "$as_me.lineno" ||
23806 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23807 { (exit 1); exit 1; }; }
23808
23809 # Don't try to exec as it changes $[0], causing all sort of problems
23810 # (the dirname of $[0] is not the place where we might find the
23811 # original and so on. Autoconf is especially sensitive to this).
23812 . "./$as_me.lineno"
23813 # Exit status is that of the last command.
23814 exit
23815 }
23816
23817
23818 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23819 as_dirname=dirname
23820 else
23821 as_dirname=false
23822 fi
23823
23824 ECHO_C= ECHO_N= ECHO_T=
23825 case `echo -n x` in
23826 -n*)
23827 case `echo 'x\c'` in
23828 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23829 *) ECHO_C='\c';;
23830 esac;;
23831 *)
23832 ECHO_N='-n';;
23833 esac
23834
23835 if expr a : '\(a\)' >/dev/null 2>&1 &&
23836 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23837 as_expr=expr
23838 else
23839 as_expr=false
23840 fi
23841
23842 rm -f conf$$ conf$$.exe conf$$.file
23843 if test -d conf$$.dir; then
23844 rm -f conf$$.dir/conf$$.file
23845 else
23846 rm -f conf$$.dir
23847 mkdir conf$$.dir
23848 fi
23849 echo >conf$$.file
23850 if ln -s conf$$.file conf$$ 2>/dev/null; then
23851 as_ln_s='ln -s'
23852 # ... but there are two gotchas:
23853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23855 # In both cases, we have to default to `cp -p'.
23856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23857 as_ln_s='cp -p'
23858 elif ln conf$$.file conf$$ 2>/dev/null; then
23859 as_ln_s=ln
23860 else
23861 as_ln_s='cp -p'
23862 fi
23863 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23864 rmdir conf$$.dir 2>/dev/null
23865
23866 if mkdir -p . 2>/dev/null; then
23867 as_mkdir_p=:
23868 else
23869 test -d ./-p && rmdir ./-p
23870 as_mkdir_p=false
23871 fi
23872
23873 if test -x / >/dev/null 2>&1; then
23874 as_test_x='test -x'
23875 else
23876 if ls -dL / >/dev/null 2>&1; then
23877 as_ls_L_option=L
23878 else
23879 as_ls_L_option=
23880 fi
23881 as_test_x='
23882 eval sh -c '\''
23883 if test -d "$1"; then
23884 test -d "$1/.";
23885 else
23886 case $1 in
23887 -*)set "./$1";;
23888 esac;
23889 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23890 ???[sx]*):;;*)false;;esac;fi
23891 '\'' sh
23892 '
23893 fi
23894 as_executable_p=$as_test_x
23895
23896 # Sed expression to map a string onto a valid CPP name.
23897 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23898
23899 # Sed expression to map a string onto a valid variable name.
23900 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23901
23902
23903 exec 6>&1
23904
23905 # Save the log message, to keep $[0] and so on meaningful, and to
23906 # report actual input values of CONFIG_FILES etc. instead of their
23907 # values after options handling.
23908 ac_log="
23909 This file was extended by emacs $as_me 23.0.50, which was
23910 generated by GNU Autoconf 2.61. Invocation command line was
23911
23912 CONFIG_FILES = $CONFIG_FILES
23913 CONFIG_HEADERS = $CONFIG_HEADERS
23914 CONFIG_LINKS = $CONFIG_LINKS
23915 CONFIG_COMMANDS = $CONFIG_COMMANDS
23916 $ $0 $@
23917
23918 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23919 "
23920
23921 _ACEOF
23922
23923 cat >>$CONFIG_STATUS <<_ACEOF
23924 # Files that config.status was made for.
23925 config_files="$ac_config_files"
23926 config_headers="$ac_config_headers"
23927 config_commands="$ac_config_commands"
23928
23929 _ACEOF
23930
23931 cat >>$CONFIG_STATUS <<\_ACEOF
23932 ac_cs_usage="\
23933 \`$as_me' instantiates files from templates according to the
23934 current configuration.
23935
23936 Usage: $0 [OPTIONS] [FILE]...
23937
23938 -h, --help print this help, then exit
23939 -V, --version print version number and configuration settings, then exit
23940 -q, --quiet do not print progress messages
23941 -d, --debug don't remove temporary files
23942 --recheck update $as_me by reconfiguring in the same conditions
23943 --file=FILE[:TEMPLATE]
23944 instantiate the configuration file FILE
23945 --header=FILE[:TEMPLATE]
23946 instantiate the configuration header FILE
23947
23948 Configuration files:
23949 $config_files
23950
23951 Configuration headers:
23952 $config_headers
23953
23954 Configuration commands:
23955 $config_commands
23956
23957 Report bugs to <bug-autoconf@gnu.org>."
23958
23959 _ACEOF
23960 cat >>$CONFIG_STATUS <<_ACEOF
23961 ac_cs_version="\\
23962 emacs config.status 23.0.50
23963 configured by $0, generated by GNU Autoconf 2.61,
23964 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23965
23966 Copyright (C) 2006 Free Software Foundation, Inc.
23967 This config.status script is free software; the Free Software Foundation
23968 gives unlimited permission to copy, distribute and modify it."
23969
23970 ac_pwd='$ac_pwd'
23971 srcdir='$srcdir'
23972 INSTALL='$INSTALL'
23973 _ACEOF
23974
23975 cat >>$CONFIG_STATUS <<\_ACEOF
23976 # If no file are specified by the user, then we need to provide default
23977 # value. By we need to know if files were specified by the user.
23978 ac_need_defaults=:
23979 while test $# != 0
23980 do
23981 case $1 in
23982 --*=*)
23983 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23984 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23985 ac_shift=:
23986 ;;
23987 *)
23988 ac_option=$1
23989 ac_optarg=$2
23990 ac_shift=shift
23991 ;;
23992 esac
23993
23994 case $ac_option in
23995 # Handling of the options.
23996 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23997 ac_cs_recheck=: ;;
23998 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23999 echo "$ac_cs_version"; exit ;;
24000 --debug | --debu | --deb | --de | --d | -d )
24001 debug=: ;;
24002 --file | --fil | --fi | --f )
24003 $ac_shift
24004 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24005 ac_need_defaults=false;;
24006 --header | --heade | --head | --hea )
24007 $ac_shift
24008 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24009 ac_need_defaults=false;;
24010 --he | --h)
24011 # Conflict between --help and --header
24012 { echo "$as_me: error: ambiguous option: $1
24013 Try \`$0 --help' for more information." >&2
24014 { (exit 1); exit 1; }; };;
24015 --help | --hel | -h )
24016 echo "$ac_cs_usage"; exit ;;
24017 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24018 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24019 ac_cs_silent=: ;;
24020
24021 # This is an error.
24022 -*) { echo "$as_me: error: unrecognized option: $1
24023 Try \`$0 --help' for more information." >&2
24024 { (exit 1); exit 1; }; } ;;
24025
24026 *) ac_config_targets="$ac_config_targets $1"
24027 ac_need_defaults=false ;;
24028
24029 esac
24030 shift
24031 done
24032
24033 ac_configure_extra_args=
24034
24035 if $ac_cs_silent; then
24036 exec 6>/dev/null
24037 ac_configure_extra_args="$ac_configure_extra_args --silent"
24038 fi
24039
24040 _ACEOF
24041 cat >>$CONFIG_STATUS <<_ACEOF
24042 if \$ac_cs_recheck; then
24043 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24044 CONFIG_SHELL=$SHELL
24045 export CONFIG_SHELL
24046 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24047 fi
24048
24049 _ACEOF
24050 cat >>$CONFIG_STATUS <<\_ACEOF
24051 exec 5>>config.log
24052 {
24053 echo
24054 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24055 ## Running $as_me. ##
24056 _ASBOX
24057 echo "$ac_log"
24058 } >&5
24059
24060 _ACEOF
24061 cat >>$CONFIG_STATUS <<_ACEOF
24062 #
24063 # INIT-COMMANDS
24064 #
24065 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24066
24067 _ACEOF
24068
24069 cat >>$CONFIG_STATUS <<\_ACEOF
24070
24071 # Handling of arguments.
24072 for ac_config_target in $ac_config_targets
24073 do
24074 case $ac_config_target in
24075 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24076 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24077 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24078 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24079 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24080 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24081 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24082 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24083 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24084 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24085 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24086 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24087 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24088
24089 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24090 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24091 { (exit 1); exit 1; }; };;
24092 esac
24093 done
24094
24095
24096 # If the user did not use the arguments to specify the items to instantiate,
24097 # then the envvar interface is used. Set only those that are not.
24098 # We use the long form for the default assignment because of an extremely
24099 # bizarre bug on SunOS 4.1.3.
24100 if $ac_need_defaults; then
24101 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24102 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24103 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24104 fi
24105
24106 # Have a temporary directory for convenience. Make it in the build tree
24107 # simply because there is no reason against having it here, and in addition,
24108 # creating and moving files from /tmp can sometimes cause problems.
24109 # Hook for its removal unless debugging.
24110 # Note that there is a small window in which the directory will not be cleaned:
24111 # after its creation but before its name has been assigned to `$tmp'.
24112 $debug ||
24113 {
24114 tmp=
24115 trap 'exit_status=$?
24116 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24117 ' 0
24118 trap '{ (exit 1); exit 1; }' 1 2 13 15
24119 }
24120 # Create a (secure) tmp directory for tmp files.
24121
24122 {
24123 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24124 test -n "$tmp" && test -d "$tmp"
24125 } ||
24126 {
24127 tmp=./conf$$-$RANDOM
24128 (umask 077 && mkdir "$tmp")
24129 } ||
24130 {
24131 echo "$me: cannot create a temporary directory in ." >&2
24132 { (exit 1); exit 1; }
24133 }
24134
24135 #
24136 # Set up the sed scripts for CONFIG_FILES section.
24137 #
24138
24139 # No need to generate the scripts if there are no CONFIG_FILES.
24140 # This happens for instance when ./config.status config.h
24141 if test -n "$CONFIG_FILES"; then
24142
24143 _ACEOF
24144
24145
24146
24147 ac_delim='%!_!# '
24148 for ac_last_try in false false false false false :; do
24149 cat >conf$$subs.sed <<_ACEOF
24150 SHELL!$SHELL$ac_delim
24151 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24152 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24153 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24154 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24155 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24156 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24157 exec_prefix!$exec_prefix$ac_delim
24158 prefix!$prefix$ac_delim
24159 program_transform_name!$program_transform_name$ac_delim
24160 bindir!$bindir$ac_delim
24161 sbindir!$sbindir$ac_delim
24162 libexecdir!$libexecdir$ac_delim
24163 datarootdir!$datarootdir$ac_delim
24164 datadir!$datadir$ac_delim
24165 sysconfdir!$sysconfdir$ac_delim
24166 sharedstatedir!$sharedstatedir$ac_delim
24167 localstatedir!$localstatedir$ac_delim
24168 includedir!$includedir$ac_delim
24169 oldincludedir!$oldincludedir$ac_delim
24170 docdir!$docdir$ac_delim
24171 infodir!$infodir$ac_delim
24172 htmldir!$htmldir$ac_delim
24173 dvidir!$dvidir$ac_delim
24174 pdfdir!$pdfdir$ac_delim
24175 psdir!$psdir$ac_delim
24176 libdir!$libdir$ac_delim
24177 localedir!$localedir$ac_delim
24178 mandir!$mandir$ac_delim
24179 DEFS!$DEFS$ac_delim
24180 ECHO_C!$ECHO_C$ac_delim
24181 ECHO_N!$ECHO_N$ac_delim
24182 ECHO_T!$ECHO_T$ac_delim
24183 LIBS!$LIBS$ac_delim
24184 build_alias!$build_alias$ac_delim
24185 host_alias!$host_alias$ac_delim
24186 target_alias!$target_alias$ac_delim
24187 MAINT!$MAINT$ac_delim
24188 build!$build$ac_delim
24189 build_cpu!$build_cpu$ac_delim
24190 build_vendor!$build_vendor$ac_delim
24191 build_os!$build_os$ac_delim
24192 host!$host$ac_delim
24193 host_cpu!$host_cpu$ac_delim
24194 host_vendor!$host_vendor$ac_delim
24195 host_os!$host_os$ac_delim
24196 CC!$CC$ac_delim
24197 CFLAGS!$CFLAGS$ac_delim
24198 LDFLAGS!$LDFLAGS$ac_delim
24199 CPPFLAGS!$CPPFLAGS$ac_delim
24200 ac_ct_CC!$ac_ct_CC$ac_delim
24201 EXEEXT!$EXEEXT$ac_delim
24202 OBJEXT!$OBJEXT$ac_delim
24203 CPP!$CPP$ac_delim
24204 GREP!$GREP$ac_delim
24205 EGREP!$EGREP$ac_delim
24206 LN_S!$LN_S$ac_delim
24207 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24208 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24209 INSTALL_DATA!$INSTALL_DATA$ac_delim
24210 RANLIB!$RANLIB$ac_delim
24211 INSTALL_INFO!$INSTALL_INFO$ac_delim
24212 GZIP_PROG!$GZIP_PROG$ac_delim
24213 MAKEINFO!$MAKEINFO$ac_delim
24214 LIBSOUND!$LIBSOUND$ac_delim
24215 PKG_CONFIG!$PKG_CONFIG$ac_delim
24216 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24217 ALSA_LIBS!$ALSA_LIBS$ac_delim
24218 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24219 SET_MAKE!$SET_MAKE$ac_delim
24220 XMKMF!$XMKMF$ac_delim
24221 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24222 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24223 RSVG_LIBS!$RSVG_LIBS$ac_delim
24224 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24225 GTK_LIBS!$GTK_LIBS$ac_delim
24226 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24227 DBUS_LIBS!$DBUS_LIBS$ac_delim
24228 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24229 XFT_LIBS!$XFT_LIBS$ac_delim
24230 ALLOCA!$ALLOCA$ac_delim
24231 liblockfile!$liblockfile$ac_delim
24232 LIBOBJS!$LIBOBJS$ac_delim
24233 NEED_SETGID!$NEED_SETGID$ac_delim
24234 KMEM_GROUP!$KMEM_GROUP$ac_delim
24235 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24236 GETOPT_H!$GETOPT_H$ac_delim
24237 GETOPTOBJS!$GETOPTOBJS$ac_delim
24238 version!$version$ac_delim
24239 configuration!$configuration$ac_delim
24240 canonical!$canonical$ac_delim
24241 srcdir!$srcdir$ac_delim
24242 lispdir!$lispdir$ac_delim
24243 locallisppath!$locallisppath$ac_delim
24244 lisppath!$lisppath$ac_delim
24245 x_default_search_path!$x_default_search_path$ac_delim
24246 etcdir!$etcdir$ac_delim
24247 _ACEOF
24248
24249 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24250 break
24251 elif $ac_last_try; then
24252 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24253 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24254 { (exit 1); exit 1; }; }
24255 else
24256 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24257 fi
24258 done
24259
24260 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24261 if test -n "$ac_eof"; then
24262 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24263 ac_eof=`expr $ac_eof + 1`
24264 fi
24265
24266 cat >>$CONFIG_STATUS <<_ACEOF
24267 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24268 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24269 _ACEOF
24270 sed '
24271 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24272 s/^/s,@/; s/!/@,|#_!!_#|/
24273 :n
24274 t n
24275 s/'"$ac_delim"'$/,g/; t
24276 s/$/\\/; p
24277 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24278 ' >>$CONFIG_STATUS <conf$$subs.sed
24279 rm -f conf$$subs.sed
24280 cat >>$CONFIG_STATUS <<_ACEOF
24281 CEOF$ac_eof
24282 _ACEOF
24283
24284
24285 ac_delim='%!_!# '
24286 for ac_last_try in false false false false false :; do
24287 cat >conf$$subs.sed <<_ACEOF
24288 archlibdir!$archlibdir$ac_delim
24289 bitmapdir!$bitmapdir$ac_delim
24290 gamedir!$gamedir$ac_delim
24291 gameuser!$gameuser$ac_delim
24292 c_switch_system!$c_switch_system$ac_delim
24293 c_switch_machine!$c_switch_machine$ac_delim
24294 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24295 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24296 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24297 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24298 machfile!$machfile$ac_delim
24299 opsysfile!$opsysfile$ac_delim
24300 carbon_appdir!$carbon_appdir$ac_delim
24301 LTLIBOBJS!$LTLIBOBJS$ac_delim
24302 _ACEOF
24303
24304 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24305 break
24306 elif $ac_last_try; then
24307 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24308 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24309 { (exit 1); exit 1; }; }
24310 else
24311 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24312 fi
24313 done
24314
24315 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24316 if test -n "$ac_eof"; then
24317 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24318 ac_eof=`expr $ac_eof + 1`
24319 fi
24320
24321 cat >>$CONFIG_STATUS <<_ACEOF
24322 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24323 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24324 _ACEOF
24325 sed '
24326 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24327 s/^/s,@/; s/!/@,|#_!!_#|/
24328 :n
24329 t n
24330 s/'"$ac_delim"'$/,g/; t
24331 s/$/\\/; p
24332 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24333 ' >>$CONFIG_STATUS <conf$$subs.sed
24334 rm -f conf$$subs.sed
24335 cat >>$CONFIG_STATUS <<_ACEOF
24336 :end
24337 s/|#_!!_#|//g
24338 CEOF$ac_eof
24339 _ACEOF
24340
24341
24342 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24343 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24344 # trailing colons and then remove the whole line if VPATH becomes empty
24345 # (actually we leave an empty line to preserve line numbers).
24346 if test "x$srcdir" = x.; then
24347 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24348 s/:*\$(srcdir):*/:/
24349 s/:*\${srcdir}:*/:/
24350 s/:*@srcdir@:*/:/
24351 s/^\([^=]*=[ ]*\):*/\1/
24352 s/:*$//
24353 s/^[^=]*=[ ]*$//
24354 }'
24355 fi
24356
24357 cat >>$CONFIG_STATUS <<\_ACEOF
24358 fi # test -n "$CONFIG_FILES"
24359
24360
24361 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24362 do
24363 case $ac_tag in
24364 :[FHLC]) ac_mode=$ac_tag; continue;;
24365 esac
24366 case $ac_mode$ac_tag in
24367 :[FHL]*:*);;
24368 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24369 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24370 { (exit 1); exit 1; }; };;
24371 :[FH]-) ac_tag=-:-;;
24372 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24373 esac
24374 ac_save_IFS=$IFS
24375 IFS=:
24376 set x $ac_tag
24377 IFS=$ac_save_IFS
24378 shift
24379 ac_file=$1
24380 shift
24381
24382 case $ac_mode in
24383 :L) ac_source=$1;;
24384 :[FH])
24385 ac_file_inputs=
24386 for ac_f
24387 do
24388 case $ac_f in
24389 -) ac_f="$tmp/stdin";;
24390 *) # Look for the file first in the build tree, then in the source tree
24391 # (if the path is not absolute). The absolute path cannot be DOS-style,
24392 # because $ac_f cannot contain `:'.
24393 test -f "$ac_f" ||
24394 case $ac_f in
24395 [\\/$]*) false;;
24396 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24397 esac ||
24398 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24399 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24400 { (exit 1); exit 1; }; };;
24401 esac
24402 ac_file_inputs="$ac_file_inputs $ac_f"
24403 done
24404
24405 # Let's still pretend it is `configure' which instantiates (i.e., don't
24406 # use $as_me), people would be surprised to read:
24407 # /* config.h. Generated by config.status. */
24408 configure_input="Generated from "`IFS=:
24409 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24410 if test x"$ac_file" != x-; then
24411 configure_input="$ac_file. $configure_input"
24412 { echo "$as_me:$LINENO: creating $ac_file" >&5
24413 echo "$as_me: creating $ac_file" >&6;}
24414 fi
24415
24416 case $ac_tag in
24417 *:-:* | *:-) cat >"$tmp/stdin";;
24418 esac
24419 ;;
24420 esac
24421
24422 ac_dir=`$as_dirname -- "$ac_file" ||
24423 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24424 X"$ac_file" : 'X\(//\)[^/]' \| \
24425 X"$ac_file" : 'X\(//\)$' \| \
24426 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24427 echo X"$ac_file" |
24428 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\(\/\/\)[^/].*/{
24433 s//\1/
24434 q
24435 }
24436 /^X\(\/\/\)$/{
24437 s//\1/
24438 q
24439 }
24440 /^X\(\/\).*/{
24441 s//\1/
24442 q
24443 }
24444 s/.*/./; q'`
24445 { as_dir="$ac_dir"
24446 case $as_dir in #(
24447 -*) as_dir=./$as_dir;;
24448 esac
24449 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24450 as_dirs=
24451 while :; do
24452 case $as_dir in #(
24453 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24454 *) as_qdir=$as_dir;;
24455 esac
24456 as_dirs="'$as_qdir' $as_dirs"
24457 as_dir=`$as_dirname -- "$as_dir" ||
24458 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24459 X"$as_dir" : 'X\(//\)[^/]' \| \
24460 X"$as_dir" : 'X\(//\)$' \| \
24461 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24462 echo X"$as_dir" |
24463 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24464 s//\1/
24465 q
24466 }
24467 /^X\(\/\/\)[^/].*/{
24468 s//\1/
24469 q
24470 }
24471 /^X\(\/\/\)$/{
24472 s//\1/
24473 q
24474 }
24475 /^X\(\/\).*/{
24476 s//\1/
24477 q
24478 }
24479 s/.*/./; q'`
24480 test -d "$as_dir" && break
24481 done
24482 test -z "$as_dirs" || eval "mkdir $as_dirs"
24483 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24484 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24485 { (exit 1); exit 1; }; }; }
24486 ac_builddir=.
24487
24488 case "$ac_dir" in
24489 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24490 *)
24491 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24492 # A ".." for each directory in $ac_dir_suffix.
24493 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24494 case $ac_top_builddir_sub in
24495 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24496 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24497 esac ;;
24498 esac
24499 ac_abs_top_builddir=$ac_pwd
24500 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24501 # for backward compatibility:
24502 ac_top_builddir=$ac_top_build_prefix
24503
24504 case $srcdir in
24505 .) # We are building in place.
24506 ac_srcdir=.
24507 ac_top_srcdir=$ac_top_builddir_sub
24508 ac_abs_top_srcdir=$ac_pwd ;;
24509 [\\/]* | ?:[\\/]* ) # Absolute name.
24510 ac_srcdir=$srcdir$ac_dir_suffix;
24511 ac_top_srcdir=$srcdir
24512 ac_abs_top_srcdir=$srcdir ;;
24513 *) # Relative name.
24514 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24515 ac_top_srcdir=$ac_top_build_prefix$srcdir
24516 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24517 esac
24518 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24519
24520
24521 case $ac_mode in
24522 :F)
24523 #
24524 # CONFIG_FILE
24525 #
24526
24527 case $INSTALL in
24528 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24529 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24530 esac
24531 _ACEOF
24532
24533 cat >>$CONFIG_STATUS <<\_ACEOF
24534 # If the template does not know about datarootdir, expand it.
24535 # FIXME: This hack should be removed a few years after 2.60.
24536 ac_datarootdir_hack=; ac_datarootdir_seen=
24537
24538 case `sed -n '/datarootdir/ {
24539 p
24540 q
24541 }
24542 /@datadir@/p
24543 /@docdir@/p
24544 /@infodir@/p
24545 /@localedir@/p
24546 /@mandir@/p
24547 ' $ac_file_inputs` in
24548 *datarootdir*) ac_datarootdir_seen=yes;;
24549 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24550 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24551 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24552 _ACEOF
24553 cat >>$CONFIG_STATUS <<_ACEOF
24554 ac_datarootdir_hack='
24555 s&@datadir@&$datadir&g
24556 s&@docdir@&$docdir&g
24557 s&@infodir@&$infodir&g
24558 s&@localedir@&$localedir&g
24559 s&@mandir@&$mandir&g
24560 s&\\\${datarootdir}&$datarootdir&g' ;;
24561 esac
24562 _ACEOF
24563
24564 # Neutralize VPATH when `$srcdir' = `.'.
24565 # Shell code in configure.ac might set extrasub.
24566 # FIXME: do we really want to maintain this feature?
24567 cat >>$CONFIG_STATUS <<_ACEOF
24568 sed "$ac_vpsub
24569 $extrasub
24570 _ACEOF
24571 cat >>$CONFIG_STATUS <<\_ACEOF
24572 :t
24573 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24574 s&@configure_input@&$configure_input&;t t
24575 s&@top_builddir@&$ac_top_builddir_sub&;t t
24576 s&@srcdir@&$ac_srcdir&;t t
24577 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24578 s&@top_srcdir@&$ac_top_srcdir&;t t
24579 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24580 s&@builddir@&$ac_builddir&;t t
24581 s&@abs_builddir@&$ac_abs_builddir&;t t
24582 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24583 s&@INSTALL@&$ac_INSTALL&;t t
24584 $ac_datarootdir_hack
24585 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24586
24587 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24588 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24589 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24590 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24591 which seems to be undefined. Please make sure it is defined." >&5
24592 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24593 which seems to be undefined. Please make sure it is defined." >&2;}
24594
24595 rm -f "$tmp/stdin"
24596 case $ac_file in
24597 -) cat "$tmp/out"; rm -f "$tmp/out";;
24598 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24599 esac
24600 ;;
24601 :H)
24602 #
24603 # CONFIG_HEADER
24604 #
24605 _ACEOF
24606
24607 # Transform confdefs.h into a sed script `conftest.defines', that
24608 # substitutes the proper values into config.h.in to produce config.h.
24609 rm -f conftest.defines conftest.tail
24610 # First, append a space to every undef/define line, to ease matching.
24611 echo 's/$/ /' >conftest.defines
24612 # Then, protect against being on the right side of a sed subst, or in
24613 # an unquoted here document, in config.status. If some macros were
24614 # called several times there might be several #defines for the same
24615 # symbol, which is useless. But do not sort them, since the last
24616 # AC_DEFINE must be honored.
24617 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24618 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24619 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24620 # PARAMS is the parameter list in the macro definition--in most cases, it's
24621 # just an empty string.
24622 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24623 ac_dB='\\)[ (].*,\\1define\\2'
24624 ac_dC=' '
24625 ac_dD=' ,'
24626
24627 uniq confdefs.h |
24628 sed -n '
24629 t rset
24630 :rset
24631 s/^[ ]*#[ ]*define[ ][ ]*//
24632 t ok
24633 d
24634 :ok
24635 s/[\\&,]/\\&/g
24636 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24637 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24638 ' >>conftest.defines
24639
24640 # Remove the space that was appended to ease matching.
24641 # Then replace #undef with comments. This is necessary, for
24642 # example, in the case of _POSIX_SOURCE, which is predefined and required
24643 # on some systems where configure will not decide to define it.
24644 # (The regexp can be short, since the line contains either #define or #undef.)
24645 echo 's/ $//
24646 s,^[ #]*u.*,/* & */,' >>conftest.defines
24647
24648 # Break up conftest.defines:
24649 ac_max_sed_lines=50
24650
24651 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24652 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24653 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24654 # et cetera.
24655 ac_in='$ac_file_inputs'
24656 ac_out='"$tmp/out1"'
24657 ac_nxt='"$tmp/out2"'
24658
24659 while :
24660 do
24661 # Write a here document:
24662 cat >>$CONFIG_STATUS <<_ACEOF
24663 # First, check the format of the line:
24664 cat >"\$tmp/defines.sed" <<\\CEOF
24665 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24666 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24667 b
24668 :def
24669 _ACEOF
24670 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24671 echo 'CEOF
24672 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24673 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24674 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24675 grep . conftest.tail >/dev/null || break
24676 rm -f conftest.defines
24677 mv conftest.tail conftest.defines
24678 done
24679 rm -f conftest.defines conftest.tail
24680
24681 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24682 cat >>$CONFIG_STATUS <<\_ACEOF
24683 if test x"$ac_file" != x-; then
24684 echo "/* $configure_input */" >"$tmp/config.h"
24685 cat "$ac_result" >>"$tmp/config.h"
24686 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24687 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24688 echo "$as_me: $ac_file is unchanged" >&6;}
24689 else
24690 rm -f $ac_file
24691 mv "$tmp/config.h" $ac_file
24692 fi
24693 else
24694 echo "/* $configure_input */"
24695 cat "$ac_result"
24696 fi
24697 rm -f "$tmp/out12"
24698 ;;
24699
24700 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24701 echo "$as_me: executing $ac_file commands" >&6;}
24702 ;;
24703 esac
24704
24705
24706 case $ac_file$ac_mode in
24707 "default":C)
24708
24709 ### Make the necessary directories, if they don't exist.
24710 for dir in etc lisp ; do
24711 test -d ${dir} || mkdir ${dir}
24712 done
24713
24714 # Build src/Makefile from ${srcdir}/src/Makefile.c
24715 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24716 # This must be done after src/config.h is built, since we rely on that file.
24717
24718 # Now get this: Some word that is part of the ${srcdir} directory name
24719 # or the ${configuration} value might, just might, happen to be an
24720 # identifier like `sun4' or `i386' or something, and be predefined by
24721 # the C preprocessor to some helpful value like 1, or maybe the empty
24722 # string. Needless to say consequent macro substitutions are less
24723 # than conducive to the makefile finding the correct directory.
24724 undefs="`echo $top_srcdir $configuration $canonical |
24725 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24726 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24727 `"
24728
24729 echo creating src/epaths.h
24730 ${MAKE-make} epaths-force
24731
24732 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24733 # `..' to `. .' unless invoked with -traditional
24734
24735 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24736 CPPFLAGS="$CPPFLAGS -traditional"
24737 fi
24738
24739 echo creating lib-src/Makefile
24740 ( cd lib-src
24741 rm -f junk.c junk1.c junk2.c
24742 sed -e '/start of cpp stuff/q' \
24743 < Makefile.c > junk1.c
24744 sed -e '1,/start of cpp stuff/d'\
24745 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24746 < Makefile.c > junk.c
24747 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24748 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24749 cat junk1.c junk2.c > Makefile.new
24750 rm -f junk.c junk1.c junk2.c
24751 chmod 444 Makefile.new
24752 mv -f Makefile.new Makefile
24753 )
24754
24755 echo creating src/Makefile
24756 ( cd src
24757 rm -f junk.c junk1.c junk2.c
24758 sed -e '/start of cpp stuff/q' \
24759 < Makefile.c > junk1.c
24760 sed -e '1,/start of cpp stuff/d'\
24761 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24762 < Makefile.c > junk.c
24763 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24764 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24765 cat junk1.c junk2.c > Makefile.new
24766 rm -f junk.c junk1.c junk2.c
24767 chmod 444 Makefile.new
24768 mv -f Makefile.new Makefile
24769 )
24770
24771 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24772 echo creating src/.gdbinit
24773 echo source $srcdir/src/.gdbinit > src/.gdbinit
24774 fi
24775
24776 # This is how we know whether to re-run configure in certain cases.
24777 touch src/config.stamp
24778
24779 ;;
24780
24781 esac
24782 done # for ac_tag
24783
24784
24785 { (exit 0); exit 0; }
24786 _ACEOF
24787 chmod +x $CONFIG_STATUS
24788 ac_clean_files=$ac_clean_files_save
24789
24790
24791 # configure is writing to config.log, and then calls config.status.
24792 # config.status does its own redirection, appending to config.log.
24793 # Unfortunately, on DOS this fails, as config.log is still kept open
24794 # by configure, so config.status won't be able to write to it; its
24795 # output is simply discarded. So we exec the FD to /dev/null,
24796 # effectively closing config.log, so it can be properly (re)opened and
24797 # appended to by config.status. When coming back to configure, we
24798 # need to make the FD available again.
24799 if test "$no_create" != yes; then
24800 ac_cs_success=:
24801 ac_config_status_args=
24802 test "$silent" = yes &&
24803 ac_config_status_args="$ac_config_status_args --quiet"
24804 exec 5>/dev/null
24805 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24806 exec 5>>config.log
24807 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24808 # would make configure fail if this is the last instruction.
24809 $ac_cs_success || { (exit 1); exit 1; }
24810 fi
24811
24812