]> code.delx.au - gnu-emacs/blob - configure
* tramp.texi (External transfer methods): Describe new method `scpc'.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be Bourne compatible
14 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
15 emulate sh
16 NULLCMD=:
17 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
18 # is contrary to our usage. Disable this feature.
19 alias -g '${1+"$@"}'='"$@"'
20 setopt NO_GLOB_SUBST
21 else
22 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
23 fi
24 BIN_SH=xpg4; export BIN_SH # for Tru64
25 DUALCASE=1; export DUALCASE # for MKS sh
26
27
28 # PATH needs CR
29 # Avoid depending upon Character Ranges.
30 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
31 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
32 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
33 as_cr_digits='0123456789'
34 as_cr_alnum=$as_cr_Letters$as_cr_digits
35
36 # The user is always right.
37 if test "${PATH_SEPARATOR+set}" != set; then
38 echo "#! /bin/sh" >conf$$.sh
39 echo "exit 0" >>conf$$.sh
40 chmod +x conf$$.sh
41 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
42 PATH_SEPARATOR=';'
43 else
44 PATH_SEPARATOR=:
45 fi
46 rm -f conf$$.sh
47 fi
48
49 # Support unset when possible.
50 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
51 as_unset=unset
52 else
53 as_unset=false
54 fi
55
56
57 # IFS
58 # We need space, tab and new line, in precisely that order. Quoting is
59 # there to prevent editors from complaining about space-tab.
60 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
61 # splitting by setting IFS to empty value.)
62 as_nl='
63 '
64 IFS=" "" $as_nl"
65
66 # Find who we are. Look in the path if we contain no directory separator.
67 case $0 in
68 *[\\/]* ) as_myself=$0 ;;
69 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
70 for as_dir in $PATH
71 do
72 IFS=$as_save_IFS
73 test -z "$as_dir" && as_dir=.
74 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
75 done
76 IFS=$as_save_IFS
77
78 ;;
79 esac
80 # We did not find ourselves, most probably we were run as `sh COMMAND'
81 # in which case we are not to be found in the path.
82 if test "x$as_myself" = x; then
83 as_myself=$0
84 fi
85 if test ! -f "$as_myself"; then
86 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
87 { (exit 1); exit 1; }
88 fi
89
90 # Work around bugs in pre-3.0 UWIN ksh.
91 for as_var in ENV MAIL MAILPATH
92 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
93 done
94 PS1='$ '
95 PS2='> '
96 PS4='+ '
97
98 # NLS nuisances.
99 for as_var in \
100 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
101 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
102 LC_TELEPHONE LC_TIME
103 do
104 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
105 eval $as_var=C; export $as_var
106 else
107 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
108 fi
109 done
110
111 # Required to use basename.
112 if expr a : '\(a\)' >/dev/null 2>&1 &&
113 test "X`expr 00001 : '.*\(...\)'`" = X001; then
114 as_expr=expr
115 else
116 as_expr=false
117 fi
118
119 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
120 as_basename=basename
121 else
122 as_basename=false
123 fi
124
125
126 # Name of the executable.
127 as_me=`$as_basename -- "$0" ||
128 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
129 X"$0" : 'X\(//\)$' \| \
130 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
131 echo X/"$0" |
132 sed '/^.*\/\([^/][^/]*\)\/*$/{
133 s//\1/
134 q
135 }
136 /^X\/\(\/\/\)$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\).*/{
141 s//\1/
142 q
143 }
144 s/.*/./; q'`
145
146 # CDPATH.
147 $as_unset CDPATH
148
149
150 if test "x$CONFIG_SHELL" = x; then
151 if (eval ":") 2>/dev/null; then
152 as_have_required=yes
153 else
154 as_have_required=no
155 fi
156
157 if test $as_have_required = yes && (eval ":
158 (as_func_return () {
159 (exit \$1)
160 }
161 as_func_success () {
162 as_func_return 0
163 }
164 as_func_failure () {
165 as_func_return 1
166 }
167 as_func_ret_success () {
168 return 0
169 }
170 as_func_ret_failure () {
171 return 1
172 }
173
174 exitcode=0
175 if as_func_success; then
176 :
177 else
178 exitcode=1
179 echo as_func_success failed.
180 fi
181
182 if as_func_failure; then
183 exitcode=1
184 echo as_func_failure succeeded.
185 fi
186
187 if as_func_ret_success; then
188 :
189 else
190 exitcode=1
191 echo as_func_ret_success failed.
192 fi
193
194 if as_func_ret_failure; then
195 exitcode=1
196 echo as_func_ret_failure succeeded.
197 fi
198
199 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
200 :
201 else
202 exitcode=1
203 echo positional parameters were not saved.
204 fi
205
206 test \$exitcode = 0) || { (exit 1); exit 1; }
207
208 (
209 as_lineno_1=\$LINENO
210 as_lineno_2=\$LINENO
211 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
212 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
213 ") 2> /dev/null; then
214 :
215 else
216 as_candidate_shells=
217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
218 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 case $as_dir in
223 /*)
224 for as_base in sh bash ksh sh5; do
225 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
226 done;;
227 esac
228 done
229 IFS=$as_save_IFS
230
231
232 for as_shell in $as_candidate_shells $SHELL; do
233 # Try only shells that exist, to save several forks.
234 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
235 { ("$as_shell") 2> /dev/null <<\_ASEOF
236 # Be Bourne compatible
237 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
238 emulate sh
239 NULLCMD=:
240 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
241 # is contrary to our usage. Disable this feature.
242 alias -g '${1+"$@"}'='"$@"'
243 setopt NO_GLOB_SUBST
244 else
245 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
246 fi
247 BIN_SH=xpg4; export BIN_SH # for Tru64
248 DUALCASE=1; export DUALCASE # for MKS sh
249
250 :
251 _ASEOF
252 }; then
253 CONFIG_SHELL=$as_shell
254 as_have_required=yes
255 if { "$as_shell" 2> /dev/null <<\_ASEOF
256 # Be Bourne compatible
257 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
258 emulate sh
259 NULLCMD=:
260 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
261 # is contrary to our usage. Disable this feature.
262 alias -g '${1+"$@"}'='"$@"'
263 setopt NO_GLOB_SUBST
264 else
265 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
266 fi
267 BIN_SH=xpg4; export BIN_SH # for Tru64
268 DUALCASE=1; export DUALCASE # for MKS sh
269
270 :
271 (as_func_return () {
272 (exit $1)
273 }
274 as_func_success () {
275 as_func_return 0
276 }
277 as_func_failure () {
278 as_func_return 1
279 }
280 as_func_ret_success () {
281 return 0
282 }
283 as_func_ret_failure () {
284 return 1
285 }
286
287 exitcode=0
288 if as_func_success; then
289 :
290 else
291 exitcode=1
292 echo as_func_success failed.
293 fi
294
295 if as_func_failure; then
296 exitcode=1
297 echo as_func_failure succeeded.
298 fi
299
300 if as_func_ret_success; then
301 :
302 else
303 exitcode=1
304 echo as_func_ret_success failed.
305 fi
306
307 if as_func_ret_failure; then
308 exitcode=1
309 echo as_func_ret_failure succeeded.
310 fi
311
312 if ( set x; as_func_ret_success y && test x = "$1" ); then
313 :
314 else
315 exitcode=1
316 echo positional parameters were not saved.
317 fi
318
319 test $exitcode = 0) || { (exit 1); exit 1; }
320
321 (
322 as_lineno_1=$LINENO
323 as_lineno_2=$LINENO
324 test "x$as_lineno_1" != "x$as_lineno_2" &&
325 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
326
327 _ASEOF
328 }; then
329 break
330 fi
331
332 fi
333
334 done
335
336 if test "x$CONFIG_SHELL" != x; then
337 for as_var in BASH_ENV ENV
338 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
339 done
340 export CONFIG_SHELL
341 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
342 fi
343
344
345 if test $as_have_required = no; then
346 echo This script requires a shell more modern than all the
347 echo shells that I found on your system. Please install a
348 echo modern shell, or manually run the script under such a
349 echo shell if you do have one.
350 { (exit 1); exit 1; }
351 fi
352
353
354 fi
355
356 fi
357
358
359
360 (eval "as_func_return () {
361 (exit \$1)
362 }
363 as_func_success () {
364 as_func_return 0
365 }
366 as_func_failure () {
367 as_func_return 1
368 }
369 as_func_ret_success () {
370 return 0
371 }
372 as_func_ret_failure () {
373 return 1
374 }
375
376 exitcode=0
377 if as_func_success; then
378 :
379 else
380 exitcode=1
381 echo as_func_success failed.
382 fi
383
384 if as_func_failure; then
385 exitcode=1
386 echo as_func_failure succeeded.
387 fi
388
389 if as_func_ret_success; then
390 :
391 else
392 exitcode=1
393 echo as_func_ret_success failed.
394 fi
395
396 if as_func_ret_failure; then
397 exitcode=1
398 echo as_func_ret_failure succeeded.
399 fi
400
401 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
402 :
403 else
404 exitcode=1
405 echo positional parameters were not saved.
406 fi
407
408 test \$exitcode = 0") || {
409 echo No shell found that supports shell functions.
410 echo Please tell autoconf@gnu.org about your system,
411 echo including any error possibly output before this
412 echo message
413 }
414
415
416
417 as_lineno_1=$LINENO
418 as_lineno_2=$LINENO
419 test "x$as_lineno_1" != "x$as_lineno_2" &&
420 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
421
422 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
423 # uniformly replaced by the line number. The first 'sed' inserts a
424 # line-number line after each line using $LINENO; the second 'sed'
425 # does the real work. The second script uses 'N' to pair each
426 # line-number line with the line containing $LINENO, and appends
427 # trailing '-' during substitution so that $LINENO is not a special
428 # case at line end.
429 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
430 # scripts with optimization help from Paolo Bonzini. Blame Lee
431 # E. McMahon (1931-1989) for sed's syntax. :-)
432 sed -n '
433 p
434 /[$]LINENO/=
435 ' <$as_myself |
436 sed '
437 s/[$]LINENO.*/&-/
438 t lineno
439 b
440 :lineno
441 N
442 :loop
443 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 t loop
445 s/-\n.*//
446 ' >$as_me.lineno &&
447 chmod +x "$as_me.lineno" ||
448 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
449 { (exit 1); exit 1; }; }
450
451 # Don't try to exec as it changes $[0], causing all sort of problems
452 # (the dirname of $[0] is not the place where we might find the
453 # original and so on. Autoconf is especially sensitive to this).
454 . "./$as_me.lineno"
455 # Exit status is that of the last command.
456 exit
457 }
458
459
460 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
461 as_dirname=dirname
462 else
463 as_dirname=false
464 fi
465
466 ECHO_C= ECHO_N= ECHO_T=
467 case `echo -n x` in
468 -n*)
469 case `echo 'x\c'` in
470 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
471 *) ECHO_C='\c';;
472 esac;;
473 *)
474 ECHO_N='-n';;
475 esac
476
477 if expr a : '\(a\)' >/dev/null 2>&1 &&
478 test "X`expr 00001 : '.*\(...\)'`" = X001; then
479 as_expr=expr
480 else
481 as_expr=false
482 fi
483
484 rm -f conf$$ conf$$.exe conf$$.file
485 if test -d conf$$.dir; then
486 rm -f conf$$.dir/conf$$.file
487 else
488 rm -f conf$$.dir
489 mkdir conf$$.dir
490 fi
491 echo >conf$$.file
492 if ln -s conf$$.file conf$$ 2>/dev/null; then
493 as_ln_s='ln -s'
494 # ... but there are two gotchas:
495 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
496 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
497 # In both cases, we have to default to `cp -p'.
498 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
499 as_ln_s='cp -p'
500 elif ln conf$$.file conf$$ 2>/dev/null; then
501 as_ln_s=ln
502 else
503 as_ln_s='cp -p'
504 fi
505 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
506 rmdir conf$$.dir 2>/dev/null
507
508 if mkdir -p . 2>/dev/null; then
509 as_mkdir_p=:
510 else
511 test -d ./-p && rmdir ./-p
512 as_mkdir_p=false
513 fi
514
515 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
516 # systems may use methods other than mode bits to determine executability.
517 cat >conf$$.file <<_ASEOF
518 #! /bin/sh
519 exit 0
520 _ASEOF
521 chmod +x conf$$.file
522 if test -x conf$$.file >/dev/null 2>&1; then
523 as_executable_p="test -x"
524 else
525 as_executable_p=:
526 fi
527 rm -f conf$$.file
528
529 # Sed expression to map a string onto a valid CPP name.
530 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
531
532 # Sed expression to map a string onto a valid variable name.
533 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
534
535
536
537 exec 7<&0 </dev/null 6>&1
538
539 # Name of the host.
540 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
541 # so uname gets run too.
542 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
543
544 #
545 # Initializations.
546 #
547 ac_default_prefix=/usr/local
548 ac_clean_files=
549 ac_config_libobj_dir=.
550 LIBOBJS=
551 cross_compiling=no
552 subdirs=
553 MFLAGS=
554 MAKEFLAGS=
555 SHELL=${CONFIG_SHELL-/bin/sh}
556
557 # Identity of this package.
558 PACKAGE_NAME=
559 PACKAGE_TARNAME=
560 PACKAGE_VERSION=
561 PACKAGE_STRING=
562 PACKAGE_BUGREPORT=
563
564 ac_unique_file="src/lisp.h"
565 ac_config_libobj_dir=src
566 # Factoring default headers for most tests.
567 ac_includes_default="\
568 #include <stdio.h>
569 #if HAVE_SYS_TYPES_H
570 # include <sys/types.h>
571 #endif
572 #if HAVE_SYS_STAT_H
573 # include <sys/stat.h>
574 #endif
575 #if STDC_HEADERS
576 # include <stdlib.h>
577 # include <stddef.h>
578 #else
579 # if HAVE_STDLIB_H
580 # include <stdlib.h>
581 # endif
582 #endif
583 #if HAVE_STRING_H
584 # if !STDC_HEADERS && HAVE_MEMORY_H
585 # include <memory.h>
586 # endif
587 # include <string.h>
588 #endif
589 #if HAVE_STRINGS_H
590 # include <strings.h>
591 #endif
592 #if HAVE_INTTYPES_H
593 # include <inttypes.h>
594 #endif
595 #if HAVE_STDINT_H
596 # include <stdint.h>
597 #endif
598 #if HAVE_UNISTD_H
599 # include <unistd.h>
600 #endif"
601
602 ac_subst_vars='SHELL
603 PATH_SEPARATOR
604 PACKAGE_NAME
605 PACKAGE_TARNAME
606 PACKAGE_VERSION
607 PACKAGE_STRING
608 PACKAGE_BUGREPORT
609 exec_prefix
610 prefix
611 program_transform_name
612 bindir
613 sbindir
614 libexecdir
615 datarootdir
616 datadir
617 sysconfdir
618 sharedstatedir
619 localstatedir
620 includedir
621 oldincludedir
622 docdir
623 infodir
624 htmldir
625 dvidir
626 pdfdir
627 psdir
628 libdir
629 localedir
630 mandir
631 DEFS
632 ECHO_C
633 ECHO_N
634 ECHO_T
635 LIBS
636 build_alias
637 host_alias
638 target_alias
639 MAINT
640 build
641 build_cpu
642 build_vendor
643 build_os
644 host
645 host_cpu
646 host_vendor
647 host_os
648 CC
649 CFLAGS
650 LDFLAGS
651 CPPFLAGS
652 ac_ct_CC
653 EXEEXT
654 OBJEXT
655 CPP
656 GREP
657 EGREP
658 LN_S
659 INSTALL_PROGRAM
660 INSTALL_SCRIPT
661 INSTALL_DATA
662 RANLIB
663 INSTALL_INFO
664 GZIP_PROG
665 LIBSOUND
666 PKG_CONFIG
667 ALSA_CFLAGS
668 ALSA_LIBS
669 CFLAGS_SOUND
670 SET_MAKE
671 XMKMF
672 GTK_CFLAGS
673 GTK_LIBS
674 ALLOCA
675 liblockfile
676 LIBOBJS
677 NEED_SETGID
678 KMEM_GROUP
679 GETLOADAVG_LIBS
680 GETOPT_H
681 GETOPTOBJS
682 version
683 configuration
684 canonical
685 srcdir
686 lispdir
687 locallisppath
688 lisppath
689 x_default_search_path
690 etcdir
691 archlibdir
692 bitmapdir
693 gamedir
694 gameuser
695 c_switch_system
696 c_switch_machine
697 LD_SWITCH_X_SITE
698 LD_SWITCH_X_SITE_AUX
699 C_SWITCH_X_SITE
700 X_TOOLKIT_TYPE
701 machfile
702 opsysfile
703 carbon_appdir
704 LTLIBOBJS'
705 ac_subst_files=''
706 ac_precious_vars='build_alias
707 host_alias
708 target_alias
709 CC
710 CFLAGS
711 LDFLAGS
712 CPPFLAGS
713 CPP
714 XMKMF'
715
716
717 # Initialize some variables set by options.
718 ac_init_help=
719 ac_init_version=false
720 # The variables have the same names as the options, with
721 # dashes changed to underlines.
722 cache_file=/dev/null
723 exec_prefix=NONE
724 no_create=
725 no_recursion=
726 prefix=NONE
727 program_prefix=NONE
728 program_suffix=NONE
729 program_transform_name=s,x,x,
730 silent=
731 site=
732 srcdir=
733 verbose=
734 x_includes=NONE
735 x_libraries=NONE
736
737 # Installation directory options.
738 # These are left unexpanded so users can "make install exec_prefix=/foo"
739 # and all the variables that are supposed to be based on exec_prefix
740 # by default will actually change.
741 # Use braces instead of parens because sh, perl, etc. also accept them.
742 # (The list follows the same order as the GNU Coding Standards.)
743 bindir='${exec_prefix}/bin'
744 sbindir='${exec_prefix}/sbin'
745 libexecdir='${exec_prefix}/libexec'
746 datarootdir='${prefix}/share'
747 datadir='${datarootdir}'
748 sysconfdir='${prefix}/etc'
749 sharedstatedir='${prefix}/com'
750 localstatedir='${prefix}/var'
751 includedir='${prefix}/include'
752 oldincludedir='/usr/include'
753 docdir='${datarootdir}/doc/${PACKAGE}'
754 infodir='${datarootdir}/info'
755 htmldir='${docdir}'
756 dvidir='${docdir}'
757 pdfdir='${docdir}'
758 psdir='${docdir}'
759 libdir='${exec_prefix}/lib'
760 localedir='${datarootdir}/locale'
761 mandir='${datarootdir}/man'
762
763 ac_prev=
764 ac_dashdash=
765 for ac_option
766 do
767 # If the previous option needs an argument, assign it.
768 if test -n "$ac_prev"; then
769 eval $ac_prev=\$ac_option
770 ac_prev=
771 continue
772 fi
773
774 case $ac_option in
775 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
776 *) ac_optarg=yes ;;
777 esac
778
779 # Accept the important Cygnus configure options, so we can diagnose typos.
780
781 case $ac_dashdash$ac_option in
782 --)
783 ac_dashdash=yes ;;
784
785 -bindir | --bindir | --bindi | --bind | --bin | --bi)
786 ac_prev=bindir ;;
787 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
788 bindir=$ac_optarg ;;
789
790 -build | --build | --buil | --bui | --bu)
791 ac_prev=build_alias ;;
792 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
793 build_alias=$ac_optarg ;;
794
795 -cache-file | --cache-file | --cache-fil | --cache-fi \
796 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
797 ac_prev=cache_file ;;
798 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
799 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
800 cache_file=$ac_optarg ;;
801
802 --config-cache | -C)
803 cache_file=config.cache ;;
804
805 -datadir | --datadir | --datadi | --datad)
806 ac_prev=datadir ;;
807 -datadir=* | --datadir=* | --datadi=* | --datad=*)
808 datadir=$ac_optarg ;;
809
810 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
811 | --dataroo | --dataro | --datar)
812 ac_prev=datarootdir ;;
813 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
814 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
815 datarootdir=$ac_optarg ;;
816
817 -disable-* | --disable-*)
818 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
819 # Reject names that are not valid shell variable names.
820 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
821 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
822 { (exit 1); exit 1; }; }
823 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
824 eval enable_$ac_feature=no ;;
825
826 -docdir | --docdir | --docdi | --doc | --do)
827 ac_prev=docdir ;;
828 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
829 docdir=$ac_optarg ;;
830
831 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
832 ac_prev=dvidir ;;
833 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
834 dvidir=$ac_optarg ;;
835
836 -enable-* | --enable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
843 eval enable_$ac_feature=\$ac_optarg ;;
844
845 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
846 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
847 | --exec | --exe | --ex)
848 ac_prev=exec_prefix ;;
849 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
850 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
851 | --exec=* | --exe=* | --ex=*)
852 exec_prefix=$ac_optarg ;;
853
854 -gas | --gas | --ga | --g)
855 # Obsolete; use --with-gas.
856 with_gas=yes ;;
857
858 -help | --help | --hel | --he | -h)
859 ac_init_help=long ;;
860 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
861 ac_init_help=recursive ;;
862 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
863 ac_init_help=short ;;
864
865 -host | --host | --hos | --ho)
866 ac_prev=host_alias ;;
867 -host=* | --host=* | --hos=* | --ho=*)
868 host_alias=$ac_optarg ;;
869
870 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
871 ac_prev=htmldir ;;
872 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
873 | --ht=*)
874 htmldir=$ac_optarg ;;
875
876 -includedir | --includedir | --includedi | --included | --include \
877 | --includ | --inclu | --incl | --inc)
878 ac_prev=includedir ;;
879 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
880 | --includ=* | --inclu=* | --incl=* | --inc=*)
881 includedir=$ac_optarg ;;
882
883 -infodir | --infodir | --infodi | --infod | --info | --inf)
884 ac_prev=infodir ;;
885 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
886 infodir=$ac_optarg ;;
887
888 -libdir | --libdir | --libdi | --libd)
889 ac_prev=libdir ;;
890 -libdir=* | --libdir=* | --libdi=* | --libd=*)
891 libdir=$ac_optarg ;;
892
893 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
894 | --libexe | --libex | --libe)
895 ac_prev=libexecdir ;;
896 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
897 | --libexe=* | --libex=* | --libe=*)
898 libexecdir=$ac_optarg ;;
899
900 -localedir | --localedir | --localedi | --localed | --locale)
901 ac_prev=localedir ;;
902 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
903 localedir=$ac_optarg ;;
904
905 -localstatedir | --localstatedir | --localstatedi | --localstated \
906 | --localstate | --localstat | --localsta | --localst | --locals)
907 ac_prev=localstatedir ;;
908 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
909 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
910 localstatedir=$ac_optarg ;;
911
912 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
913 ac_prev=mandir ;;
914 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
915 mandir=$ac_optarg ;;
916
917 -nfp | --nfp | --nf)
918 # Obsolete; use --without-fp.
919 with_fp=no ;;
920
921 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
922 | --no-cr | --no-c | -n)
923 no_create=yes ;;
924
925 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
926 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
927 no_recursion=yes ;;
928
929 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
930 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
931 | --oldin | --oldi | --old | --ol | --o)
932 ac_prev=oldincludedir ;;
933 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
934 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
935 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
936 oldincludedir=$ac_optarg ;;
937
938 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
939 ac_prev=prefix ;;
940 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
941 prefix=$ac_optarg ;;
942
943 -program-prefix | --program-prefix | --program-prefi | --program-pref \
944 | --program-pre | --program-pr | --program-p)
945 ac_prev=program_prefix ;;
946 -program-prefix=* | --program-prefix=* | --program-prefi=* \
947 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
948 program_prefix=$ac_optarg ;;
949
950 -program-suffix | --program-suffix | --program-suffi | --program-suff \
951 | --program-suf | --program-su | --program-s)
952 ac_prev=program_suffix ;;
953 -program-suffix=* | --program-suffix=* | --program-suffi=* \
954 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
955 program_suffix=$ac_optarg ;;
956
957 -program-transform-name | --program-transform-name \
958 | --program-transform-nam | --program-transform-na \
959 | --program-transform-n | --program-transform- \
960 | --program-transform | --program-transfor \
961 | --program-transfo | --program-transf \
962 | --program-trans | --program-tran \
963 | --progr-tra | --program-tr | --program-t)
964 ac_prev=program_transform_name ;;
965 -program-transform-name=* | --program-transform-name=* \
966 | --program-transform-nam=* | --program-transform-na=* \
967 | --program-transform-n=* | --program-transform-=* \
968 | --program-transform=* | --program-transfor=* \
969 | --program-transfo=* | --program-transf=* \
970 | --program-trans=* | --program-tran=* \
971 | --progr-tra=* | --program-tr=* | --program-t=*)
972 program_transform_name=$ac_optarg ;;
973
974 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
975 ac_prev=pdfdir ;;
976 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
977 pdfdir=$ac_optarg ;;
978
979 -psdir | --psdir | --psdi | --psd | --ps)
980 ac_prev=psdir ;;
981 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
982 psdir=$ac_optarg ;;
983
984 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
985 | -silent | --silent | --silen | --sile | --sil)
986 silent=yes ;;
987
988 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
989 ac_prev=sbindir ;;
990 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
991 | --sbi=* | --sb=*)
992 sbindir=$ac_optarg ;;
993
994 -sharedstatedir | --sharedstatedir | --sharedstatedi \
995 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
996 | --sharedst | --shareds | --shared | --share | --shar \
997 | --sha | --sh)
998 ac_prev=sharedstatedir ;;
999 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1000 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1001 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1002 | --sha=* | --sh=*)
1003 sharedstatedir=$ac_optarg ;;
1004
1005 -site | --site | --sit)
1006 ac_prev=site ;;
1007 -site=* | --site=* | --sit=*)
1008 site=$ac_optarg ;;
1009
1010 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1011 ac_prev=srcdir ;;
1012 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1013 srcdir=$ac_optarg ;;
1014
1015 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1016 | --syscon | --sysco | --sysc | --sys | --sy)
1017 ac_prev=sysconfdir ;;
1018 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1019 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1020 sysconfdir=$ac_optarg ;;
1021
1022 -target | --target | --targe | --targ | --tar | --ta | --t)
1023 ac_prev=target_alias ;;
1024 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1025 target_alias=$ac_optarg ;;
1026
1027 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1028 verbose=yes ;;
1029
1030 -version | --version | --versio | --versi | --vers | -V)
1031 ac_init_version=: ;;
1032
1033 -with-* | --with-*)
1034 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1035 # Reject names that are not valid shell variable names.
1036 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1037 { echo "$as_me: error: invalid package name: $ac_package" >&2
1038 { (exit 1); exit 1; }; }
1039 ac_package=`echo $ac_package| sed 's/-/_/g'`
1040 eval with_$ac_package=\$ac_optarg ;;
1041
1042 -without-* | --without-*)
1043 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1044 # Reject names that are not valid shell variable names.
1045 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1046 { echo "$as_me: error: invalid package name: $ac_package" >&2
1047 { (exit 1); exit 1; }; }
1048 ac_package=`echo $ac_package | sed 's/-/_/g'`
1049 eval with_$ac_package=no ;;
1050
1051 --x)
1052 # Obsolete; use --with-x.
1053 with_x=yes ;;
1054
1055 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1056 | --x-incl | --x-inc | --x-in | --x-i)
1057 ac_prev=x_includes ;;
1058 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1059 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1060 x_includes=$ac_optarg ;;
1061
1062 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1063 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1064 ac_prev=x_libraries ;;
1065 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1066 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1067 x_libraries=$ac_optarg ;;
1068
1069 -*) { echo "$as_me: error: unrecognized option: $ac_option
1070 Try \`$0 --help' for more information." >&2
1071 { (exit 1); exit 1; }; }
1072 ;;
1073
1074 *=*)
1075 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1076 # Reject names that are not valid shell variable names.
1077 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1078 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1079 { (exit 1); exit 1; }; }
1080 eval $ac_envvar=\$ac_optarg
1081 export $ac_envvar ;;
1082
1083 *)
1084 # FIXME: should be removed in autoconf 3.0.
1085 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1086 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1087 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1088 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1089 ;;
1090
1091 esac
1092 done
1093
1094 if test -n "$ac_prev"; then
1095 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1096 { echo "$as_me: error: missing argument to $ac_option" >&2
1097 { (exit 1); exit 1; }; }
1098 fi
1099
1100 # Be sure to have absolute directory names.
1101 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1102 datadir sysconfdir sharedstatedir localstatedir includedir \
1103 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1104 libdir localedir mandir
1105 do
1106 eval ac_val=\$$ac_var
1107 case $ac_val in
1108 [\\/$]* | ?:[\\/]* ) continue;;
1109 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1110 esac
1111 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1112 { (exit 1); exit 1; }; }
1113 done
1114
1115 # There might be people who depend on the old broken behavior: `$host'
1116 # used to hold the argument of --host etc.
1117 # FIXME: To remove some day.
1118 build=$build_alias
1119 host=$host_alias
1120 target=$target_alias
1121
1122 # FIXME: To remove some day.
1123 if test "x$host_alias" != x; then
1124 if test "x$build_alias" = x; then
1125 cross_compiling=maybe
1126 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1127 If a cross compiler is detected then cross compile mode will be used." >&2
1128 elif test "x$build_alias" != "x$host_alias"; then
1129 cross_compiling=yes
1130 fi
1131 fi
1132
1133 ac_tool_prefix=
1134 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1135
1136 test "$silent" = yes && exec 6>/dev/null
1137
1138
1139 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1140 ac_ls_di=`ls -di .` &&
1141 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1142 { echo "$as_me: error: Working directory cannot be determined" >&2
1143 { (exit 1); exit 1; }; }
1144 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1145 { echo "$as_me: error: pwd does not report name of working directory" >&2
1146 { (exit 1); exit 1; }; }
1147
1148
1149 # Find the source files, if location was not specified.
1150 if test -z "$srcdir"; then
1151 ac_srcdir_defaulted=yes
1152 # Try the directory containing this script, then the parent directory.
1153 ac_confdir=`$as_dirname -- "$0" ||
1154 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1155 X"$0" : 'X\(//\)[^/]' \| \
1156 X"$0" : 'X\(//\)$' \| \
1157 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1158 echo X"$0" |
1159 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1160 s//\1/
1161 q
1162 }
1163 /^X\(\/\/\)[^/].*/{
1164 s//\1/
1165 q
1166 }
1167 /^X\(\/\/\)$/{
1168 s//\1/
1169 q
1170 }
1171 /^X\(\/\).*/{
1172 s//\1/
1173 q
1174 }
1175 s/.*/./; q'`
1176 srcdir=$ac_confdir
1177 if test ! -r "$srcdir/$ac_unique_file"; then
1178 srcdir=..
1179 fi
1180 else
1181 ac_srcdir_defaulted=no
1182 fi
1183 if test ! -r "$srcdir/$ac_unique_file"; then
1184 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1185 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1186 { (exit 1); exit 1; }; }
1187 fi
1188 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1189 ac_abs_confdir=`(
1190 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1191 { (exit 1); exit 1; }; }
1192 pwd)`
1193 # When building in place, set srcdir=.
1194 if test "$ac_abs_confdir" = "$ac_pwd"; then
1195 srcdir=.
1196 fi
1197 # Remove unnecessary trailing slashes from srcdir.
1198 # Double slashes in file names in object file debugging info
1199 # mess up M-x gdb in Emacs.
1200 case $srcdir in
1201 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1202 esac
1203 for ac_var in $ac_precious_vars; do
1204 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1205 eval ac_env_${ac_var}_value=\$${ac_var}
1206 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1207 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1208 done
1209
1210 #
1211 # Report the --help message.
1212 #
1213 if test "$ac_init_help" = "long"; then
1214 # Omit some internal or obsolete options to make the list less imposing.
1215 # This message is too long to be a string in the A/UX 3.1 sh.
1216 cat <<_ACEOF
1217 \`configure' configures this package to adapt to many kinds of systems.
1218
1219 Usage: $0 [OPTION]... [VAR=VALUE]...
1220
1221 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1222 VAR=VALUE. See below for descriptions of some of the useful variables.
1223
1224 Defaults for the options are specified in brackets.
1225
1226 Configuration:
1227 -h, --help display this help and exit
1228 --help=short display options specific to this package
1229 --help=recursive display the short help of all the included packages
1230 -V, --version display version information and exit
1231 -q, --quiet, --silent do not print \`checking...' messages
1232 --cache-file=FILE cache test results in FILE [disabled]
1233 -C, --config-cache alias for \`--cache-file=config.cache'
1234 -n, --no-create do not create output files
1235 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1236
1237 Installation directories:
1238 --prefix=PREFIX install architecture-independent files in PREFIX
1239 [$ac_default_prefix]
1240 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1241 [PREFIX]
1242
1243 By default, \`make install' will install all the files in
1244 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1245 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1246 for instance \`--prefix=\$HOME'.
1247
1248 For better control, use the options below.
1249
1250 Fine tuning of the installation directories:
1251 --bindir=DIR user executables [EPREFIX/bin]
1252 --sbindir=DIR system admin executables [EPREFIX/sbin]
1253 --libexecdir=DIR program executables [EPREFIX/libexec]
1254 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1255 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1256 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1257 --libdir=DIR object code libraries [EPREFIX/lib]
1258 --includedir=DIR C header files [PREFIX/include]
1259 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1260 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1261 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1262 --infodir=DIR info documentation [DATAROOTDIR/info]
1263 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1264 --mandir=DIR man documentation [DATAROOTDIR/man]
1265 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1266 --htmldir=DIR html documentation [DOCDIR]
1267 --dvidir=DIR dvi documentation [DOCDIR]
1268 --pdfdir=DIR pdf documentation [DOCDIR]
1269 --psdir=DIR ps documentation [DOCDIR]
1270 _ACEOF
1271
1272 cat <<\_ACEOF
1273
1274 Program names:
1275 --program-prefix=PREFIX prepend PREFIX to installed program names
1276 --program-suffix=SUFFIX append SUFFIX to installed program names
1277 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1278
1279 X features:
1280 --x-includes=DIR X include files are in DIR
1281 --x-libraries=DIR X library files are in DIR
1282
1283 System types:
1284 --build=BUILD configure for building on BUILD [guessed]
1285 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1286 _ACEOF
1287 fi
1288
1289 if test -n "$ac_init_help"; then
1290
1291 cat <<\_ACEOF
1292
1293 Optional Features:
1294 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1295 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1296 --enable-carbon-app[=DIR] [DIR=/Application]
1297 specify install directory for Emacs.app on Mac OS X
1298 --enable-asserts compile code with asserts enabled
1299 --enable-maintainer-mode enable make rules and dependencies not useful
1300 (and sometimes confusing) to the casual installer
1301 --enable-locallisppath=PATH
1302 directories Emacs should search for lisp files
1303 specific to this site
1304 --disable-largefile omit support for large files
1305
1306 Optional Packages:
1307 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1308 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1309 --without-gcc don't use GCC to compile Emacs if GCC is found
1310 --without-pop don't support POP mail retrieval with movemail
1311 --with-kerberos support Kerberos-authenticated POP
1312 --with-kerberos5 support Kerberos version 5 authenticated POP
1313 --with-hesiod support Hesiod to get the POP server host
1314 --without-sound don't compile with sound support
1315 --with-x-toolkit=KIT use an X toolkit
1316 (KIT = yes/lucid/athena/motif/gtk/no)
1317 --with-xpm use -lXpm for displaying XPM images
1318 --with-jpeg use -ljpeg for displaying JPEG images
1319 --with-tiff use -ltiff for displaying TIFF images
1320 --with-gif use -lungif for displaying GIF images
1321 --with-png use -lpng for displaying PNG images
1322 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1323 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1324 --without-toolkit-scroll-bars
1325 don't use Motif or Xaw3d scroll bars
1326 --without-xim don't use X11 XIM
1327 --without-carbon don't use Carbon GUI on Mac OS X
1328 --with-x use the X Window System
1329
1330 Some influential environment variables:
1331 CC C compiler command
1332 CFLAGS C compiler flags
1333 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1334 nonstandard directory <lib dir>
1335 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1336 you have headers in a nonstandard directory <include dir>
1337 CPP C preprocessor
1338 XMKMF Path to xmkmf, Makefile generator for X Window System
1339
1340 Use these variables to override the choices made by `configure' or to help
1341 it to find libraries and programs with nonstandard names/locations.
1342
1343 _ACEOF
1344 ac_status=$?
1345 fi
1346
1347 if test "$ac_init_help" = "recursive"; then
1348 # If there are subdirs, report their specific --help.
1349 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1350 test -d "$ac_dir" || continue
1351 ac_builddir=.
1352
1353 case "$ac_dir" in
1354 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1355 *)
1356 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1357 # A ".." for each directory in $ac_dir_suffix.
1358 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1359 case $ac_top_builddir_sub in
1360 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1361 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1362 esac ;;
1363 esac
1364 ac_abs_top_builddir=$ac_pwd
1365 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1366 # for backward compatibility:
1367 ac_top_builddir=$ac_top_build_prefix
1368
1369 case $srcdir in
1370 .) # We are building in place.
1371 ac_srcdir=.
1372 ac_top_srcdir=$ac_top_builddir_sub
1373 ac_abs_top_srcdir=$ac_pwd ;;
1374 [\\/]* | ?:[\\/]* ) # Absolute name.
1375 ac_srcdir=$srcdir$ac_dir_suffix;
1376 ac_top_srcdir=$srcdir
1377 ac_abs_top_srcdir=$srcdir ;;
1378 *) # Relative name.
1379 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1380 ac_top_srcdir=$ac_top_build_prefix$srcdir
1381 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1382 esac
1383 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1384
1385 cd "$ac_dir" || { ac_status=$?; continue; }
1386 # Check for guested configure.
1387 if test -f "$ac_srcdir/configure.gnu"; then
1388 echo &&
1389 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1390 elif test -f "$ac_srcdir/configure"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure" --help=recursive
1393 else
1394 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1395 fi || ac_status=$?
1396 cd "$ac_pwd" || { ac_status=$?; break; }
1397 done
1398 fi
1399
1400 test -n "$ac_init_help" && exit $ac_status
1401 if $ac_init_version; then
1402 cat <<\_ACEOF
1403 configure
1404 generated by GNU Autoconf 2.60
1405
1406 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1407 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1408 This configure script is free software; the Free Software Foundation
1409 gives unlimited permission to copy, distribute and modify it.
1410 _ACEOF
1411 exit
1412 fi
1413 cat >config.log <<_ACEOF
1414 This file contains any messages produced by compilers while
1415 running configure, to aid debugging if configure makes a mistake.
1416
1417 It was created by $as_me, which was
1418 generated by GNU Autoconf 2.60. Invocation command line was
1419
1420 $ $0 $@
1421
1422 _ACEOF
1423 exec 5>>config.log
1424 {
1425 cat <<_ASUNAME
1426 ## --------- ##
1427 ## Platform. ##
1428 ## --------- ##
1429
1430 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1431 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1432 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1433 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1434 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1435
1436 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1437 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1438
1439 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1440 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1441 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1442 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1443 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1444 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1445 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1446
1447 _ASUNAME
1448
1449 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1450 for as_dir in $PATH
1451 do
1452 IFS=$as_save_IFS
1453 test -z "$as_dir" && as_dir=.
1454 echo "PATH: $as_dir"
1455 done
1456 IFS=$as_save_IFS
1457
1458 } >&5
1459
1460 cat >&5 <<_ACEOF
1461
1462
1463 ## ----------- ##
1464 ## Core tests. ##
1465 ## ----------- ##
1466
1467 _ACEOF
1468
1469
1470 # Keep a trace of the command line.
1471 # Strip out --no-create and --no-recursion so they do not pile up.
1472 # Strip out --silent because we don't want to record it for future runs.
1473 # Also quote any args containing shell meta-characters.
1474 # Make two passes to allow for proper duplicate-argument suppression.
1475 ac_configure_args=
1476 ac_configure_args0=
1477 ac_configure_args1=
1478 ac_must_keep_next=false
1479 for ac_pass in 1 2
1480 do
1481 for ac_arg
1482 do
1483 case $ac_arg in
1484 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1485 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1486 | -silent | --silent | --silen | --sile | --sil)
1487 continue ;;
1488 *\'*)
1489 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1490 esac
1491 case $ac_pass in
1492 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1493 2)
1494 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1495 if test $ac_must_keep_next = true; then
1496 ac_must_keep_next=false # Got value, back to normal.
1497 else
1498 case $ac_arg in
1499 *=* | --config-cache | -C | -disable-* | --disable-* \
1500 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1501 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1502 | -with-* | --with-* | -without-* | --without-* | --x)
1503 case "$ac_configure_args0 " in
1504 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1505 esac
1506 ;;
1507 -* ) ac_must_keep_next=true ;;
1508 esac
1509 fi
1510 ac_configure_args="$ac_configure_args '$ac_arg'"
1511 ;;
1512 esac
1513 done
1514 done
1515 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1516 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1517
1518 # When interrupted or exit'd, cleanup temporary files, and complete
1519 # config.log. We remove comments because anyway the quotes in there
1520 # would cause problems or look ugly.
1521 # WARNING: Use '\'' to represent an apostrophe within the trap.
1522 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1523 trap 'exit_status=$?
1524 # Save into config.log some information that might help in debugging.
1525 {
1526 echo
1527
1528 cat <<\_ASBOX
1529 ## ---------------- ##
1530 ## Cache variables. ##
1531 ## ---------------- ##
1532 _ASBOX
1533 echo
1534 # The following way of writing the cache mishandles newlines in values,
1535 (
1536 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1537 eval ac_val=\$$ac_var
1538 case $ac_val in #(
1539 *${as_nl}*)
1540 case $ac_var in #(
1541 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1542 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1543 esac
1544 case $ac_var in #(
1545 _ | IFS | as_nl) ;; #(
1546 *) $as_unset $ac_var ;;
1547 esac ;;
1548 esac
1549 done
1550 (set) 2>&1 |
1551 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1552 *${as_nl}ac_space=\ *)
1553 sed -n \
1554 "s/'\''/'\''\\\\'\'''\''/g;
1555 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1556 ;; #(
1557 *)
1558 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1559 ;;
1560 esac |
1561 sort
1562 )
1563 echo
1564
1565 cat <<\_ASBOX
1566 ## ----------------- ##
1567 ## Output variables. ##
1568 ## ----------------- ##
1569 _ASBOX
1570 echo
1571 for ac_var in $ac_subst_vars
1572 do
1573 eval ac_val=\$$ac_var
1574 case $ac_val in
1575 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1576 esac
1577 echo "$ac_var='\''$ac_val'\''"
1578 done | sort
1579 echo
1580
1581 if test -n "$ac_subst_files"; then
1582 cat <<\_ASBOX
1583 ## ------------------- ##
1584 ## File substitutions. ##
1585 ## ------------------- ##
1586 _ASBOX
1587 echo
1588 for ac_var in $ac_subst_files
1589 do
1590 eval ac_val=\$$ac_var
1591 case $ac_val in
1592 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1593 esac
1594 echo "$ac_var='\''$ac_val'\''"
1595 done | sort
1596 echo
1597 fi
1598
1599 if test -s confdefs.h; then
1600 cat <<\_ASBOX
1601 ## ----------- ##
1602 ## confdefs.h. ##
1603 ## ----------- ##
1604 _ASBOX
1605 echo
1606 cat confdefs.h
1607 echo
1608 fi
1609 test "$ac_signal" != 0 &&
1610 echo "$as_me: caught signal $ac_signal"
1611 echo "$as_me: exit $exit_status"
1612 } >&5
1613 rm -f core *.core core.conftest.* &&
1614 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1615 exit $exit_status
1616 ' 0
1617 for ac_signal in 1 2 13 15; do
1618 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1619 done
1620 ac_signal=0
1621
1622 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1623 rm -f -r conftest* confdefs.h
1624
1625 # Predefined preprocessor variables.
1626
1627 cat >>confdefs.h <<_ACEOF
1628 #define PACKAGE_NAME "$PACKAGE_NAME"
1629 _ACEOF
1630
1631
1632 cat >>confdefs.h <<_ACEOF
1633 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1634 _ACEOF
1635
1636
1637 cat >>confdefs.h <<_ACEOF
1638 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1639 _ACEOF
1640
1641
1642 cat >>confdefs.h <<_ACEOF
1643 #define PACKAGE_STRING "$PACKAGE_STRING"
1644 _ACEOF
1645
1646
1647 cat >>confdefs.h <<_ACEOF
1648 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1649 _ACEOF
1650
1651
1652 # Let the site file select an alternate cache file if it wants to.
1653 # Prefer explicitly selected file to automatically selected ones.
1654 if test -n "$CONFIG_SITE"; then
1655 set x "$CONFIG_SITE"
1656 elif test "x$prefix" != xNONE; then
1657 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1658 else
1659 set x "$ac_default_prefix/share/config.site" \
1660 "$ac_default_prefix/etc/config.site"
1661 fi
1662 shift
1663 for ac_site_file
1664 do
1665 if test -r "$ac_site_file"; then
1666 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1667 echo "$as_me: loading site script $ac_site_file" >&6;}
1668 sed 's/^/| /' "$ac_site_file" >&5
1669 . "$ac_site_file"
1670 fi
1671 done
1672
1673 if test -r "$cache_file"; then
1674 # Some versions of bash will fail to source /dev/null (special
1675 # files actually), so we avoid doing that.
1676 if test -f "$cache_file"; then
1677 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1678 echo "$as_me: loading cache $cache_file" >&6;}
1679 case $cache_file in
1680 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1681 *) . "./$cache_file";;
1682 esac
1683 fi
1684 else
1685 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1686 echo "$as_me: creating cache $cache_file" >&6;}
1687 >$cache_file
1688 fi
1689
1690 # Check that the precious variables saved in the cache have kept the same
1691 # value.
1692 ac_cache_corrupted=false
1693 for ac_var in $ac_precious_vars; do
1694 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1695 eval ac_new_set=\$ac_env_${ac_var}_set
1696 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1697 eval ac_new_val=\$ac_env_${ac_var}_value
1698 case $ac_old_set,$ac_new_set in
1699 set,)
1700 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1701 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1702 ac_cache_corrupted=: ;;
1703 ,set)
1704 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1705 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1706 ac_cache_corrupted=: ;;
1707 ,);;
1708 *)
1709 if test "x$ac_old_val" != "x$ac_new_val"; then
1710 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1711 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1712 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1713 echo "$as_me: former value: $ac_old_val" >&2;}
1714 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1715 echo "$as_me: current value: $ac_new_val" >&2;}
1716 ac_cache_corrupted=:
1717 fi;;
1718 esac
1719 # Pass precious variables to config.status.
1720 if test "$ac_new_set" = set; then
1721 case $ac_new_val in
1722 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1723 *) ac_arg=$ac_var=$ac_new_val ;;
1724 esac
1725 case " $ac_configure_args " in
1726 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1727 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1728 esac
1729 fi
1730 done
1731 if $ac_cache_corrupted; then
1732 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1733 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1734 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1735 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1736 { (exit 1); exit 1; }; }
1737 fi
1738
1739
1740
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755 ac_ext=c
1756 ac_cpp='$CPP $CPPFLAGS'
1757 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1758 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1759 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1760
1761
1762 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1763
1764
1765 test "$program_prefix" != NONE &&
1766 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1767 # Use a double $ so make ignores it.
1768 test "$program_suffix" != NONE &&
1769 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1770 # Double any \ or $. echo might interpret backslashes.
1771 # By default was `s,x,x', remove it if useless.
1772 cat <<\_ACEOF >conftest.sed
1773 s/[\\$]/&&/g;s/;s,x,x,$//
1774 _ACEOF
1775 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1776 rm -f conftest.sed
1777
1778
1779 lispdir='${datadir}/emacs/${version}/lisp'
1780 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1781 '${datadir}/emacs/site-lisp'
1782 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1783 etcdir='${datadir}/emacs/${version}/etc'
1784 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1785 docdir='${datadir}/emacs/${version}/etc'
1786 gamedir='${localstatedir}/games/emacs'
1787
1788 gameuser=games
1789
1790
1791 # Check whether --with-gcc was given.
1792 if test "${with_gcc+set}" = set; then
1793 withval=$with_gcc;
1794 fi
1795
1796
1797 # Check whether --with-pop was given.
1798 if test "${with_pop+set}" = set; then
1799 withval=$with_pop; if test "$withval" = yes; then
1800 cat >>confdefs.h <<\_ACEOF
1801 #define MAIL_USE_POP 1
1802 _ACEOF
1803
1804 else :
1805 fi
1806 else
1807 cat >>confdefs.h <<\_ACEOF
1808 #define MAIL_USE_POP 1
1809 _ACEOF
1810
1811 fi
1812
1813
1814
1815 # Check whether --with-kerberos was given.
1816 if test "${with_kerberos+set}" = set; then
1817 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1818 #define KERBEROS 1
1819 _ACEOF
1820
1821 fi
1822
1823
1824
1825 # Check whether --with-kerberos5 was given.
1826 if test "${with_kerberos5+set}" = set; then
1827 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1828 if test "${with_kerberos+set}" != set; then
1829 with_kerberos=yes
1830 cat >>confdefs.h <<\_ACEOF
1831 #define KERBEROS 1
1832 _ACEOF
1833
1834 fi
1835 fi
1836
1837 cat >>confdefs.h <<\_ACEOF
1838 #define KERBEROS5 1
1839 _ACEOF
1840
1841 fi
1842
1843
1844 # Check whether --with-hesiod was given.
1845 if test "${with_hesiod+set}" = set; then
1846 withval=$with_hesiod;
1847 cat >>confdefs.h <<\_ACEOF
1848 #define HESIOD 1
1849 _ACEOF
1850
1851 fi
1852
1853
1854
1855 # Check whether --with-sound was given.
1856 if test "${with_sound+set}" = set; then
1857 withval=$with_sound;
1858 fi
1859
1860
1861
1862 # Check whether --with-x-toolkit was given.
1863 if test "${with_x_toolkit+set}" = set; then
1864 withval=$with_x_toolkit; case "${withval}" in
1865 y | ye | yes ) val=athena ;;
1866 n | no ) val=no ;;
1867 l | lu | luc | luci | lucid ) val=lucid ;;
1868 a | at | ath | athe | athen | athena ) val=athena ;;
1869 m | mo | mot | moti | motif ) val=motif ;;
1870 g | gt | gtk ) val=gtk ;;
1871 * )
1872 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1873 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1874 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1875 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1876 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1877 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1878 { (exit 1); exit 1; }; }
1879 ;;
1880 esac
1881 with_x_toolkit=$val
1882
1883 fi
1884
1885
1886 # Check whether --with-xpm was given.
1887 if test "${with_xpm+set}" = set; then
1888 withval=$with_xpm;
1889 fi
1890
1891
1892 # Check whether --with-jpeg was given.
1893 if test "${with_jpeg+set}" = set; then
1894 withval=$with_jpeg;
1895 fi
1896
1897
1898 # Check whether --with-tiff was given.
1899 if test "${with_tiff+set}" = set; then
1900 withval=$with_tiff;
1901 fi
1902
1903
1904 # Check whether --with-gif was given.
1905 if test "${with_gif+set}" = set; then
1906 withval=$with_gif;
1907 fi
1908
1909
1910 # Check whether --with-png was given.
1911 if test "${with_png+set}" = set; then
1912 withval=$with_png;
1913 fi
1914
1915
1916 # Check whether --with-gtk was given.
1917 if test "${with_gtk+set}" = set; then
1918 withval=$with_gtk;
1919 fi
1920
1921
1922 # Check whether --with-pkg-config-prog was given.
1923 if test "${with_pkg_config_prog+set}" = set; then
1924 withval=$with_pkg_config_prog;
1925 fi
1926
1927
1928 # Check whether --with-toolkit-scroll-bars was given.
1929 if test "${with_toolkit_scroll_bars+set}" = set; then
1930 withval=$with_toolkit_scroll_bars;
1931 fi
1932
1933
1934 # Check whether --with-xim was given.
1935 if test "${with_xim+set}" = set; then
1936 withval=$with_xim;
1937 fi
1938
1939
1940 # Check whether --with-carbon was given.
1941 if test "${with_carbon+set}" = set; then
1942 withval=$with_carbon;
1943 fi
1944
1945 # Check whether --enable-carbon-app was given.
1946 if test "${enable_carbon_app+set}" = set; then
1947 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1948 fi
1949
1950
1951 # Check whether --enable-asserts was given.
1952 if test "${enable_asserts+set}" = set; then
1953 enableval=$enable_asserts; USE_XASSERTS=$enableval
1954 else
1955 USE_XASSERTS=no
1956 fi
1957
1958
1959 # Check whether --enable-maintainer-mode was given.
1960 if test "${enable_maintainer_mode+set}" = set; then
1961 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1962 else
1963 USE_MAINTAINER_MODE=no
1964 fi
1965
1966 if test $USE_MAINTAINER_MODE = yes; then
1967 MAINT=
1968 else
1969 MAINT=#
1970 fi
1971
1972
1973 # Check whether --enable-locallisppath was given.
1974 if test "${enable_locallisppath+set}" = set; then
1975 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1976 locallisppath=
1977 elif test "${enableval}" != "yes"; then
1978 locallisppath=${enableval}
1979 fi
1980 fi
1981
1982
1983 #### Make srcdir absolute, if it isn't already. It's important to
1984 #### avoid running the path through pwd unnecessarily, since pwd can
1985 #### give you automounter prefixes, which can go away. We do all this
1986 #### so Emacs can find its files when run uninstalled.
1987 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
1988 unset CDPATH
1989 case "${srcdir}" in
1990 /* ) ;;
1991 . )
1992 ## We may be able to use the $PWD environment variable to make this
1993 ## absolute. But sometimes PWD is inaccurate.
1994 ## Note: we used to use ${PWD} at the end instead of `pwd`,
1995 ## but that tested only for a well-formed and valid PWD,
1996 ## it did not object when PWD was well-formed and valid but just wrong.
1997 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
1998 then
1999 srcdir="$PWD"
2000 else
2001 srcdir="`(cd ${srcdir}; pwd)`"
2002 fi
2003 ;;
2004 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2005 esac
2006
2007 #### Check if the source directory already has a configured system in it.
2008 if test `pwd` != `(cd ${srcdir} && pwd)` \
2009 && test -f "${srcdir}/src/config.h" ; then
2010 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2011 as a build directory right now; it has been configured in its own
2012 right. To configure in another directory as well, you MUST
2013 use GNU make. If you do not have GNU make, then you must
2014 now do \`make distclean' in ${srcdir},
2015 and then run $0 again." >&5
2016 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2017 as a build directory right now; it has been configured in its own
2018 right. To configure in another directory as well, you MUST
2019 use GNU make. If you do not have GNU make, then you must
2020 now do \`make distclean' in ${srcdir},
2021 and then run $0 again." >&2;}
2022 fi
2023
2024 #### Given the configuration name, set machfile and opsysfile to the
2025 #### names of the m/*.h and s/*.h files we should use.
2026
2027 ### Canonicalize the configuration name.
2028
2029 ac_aux_dir=
2030 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2031 if test -f "$ac_dir/install-sh"; then
2032 ac_aux_dir=$ac_dir
2033 ac_install_sh="$ac_aux_dir/install-sh -c"
2034 break
2035 elif test -f "$ac_dir/install.sh"; then
2036 ac_aux_dir=$ac_dir
2037 ac_install_sh="$ac_aux_dir/install.sh -c"
2038 break
2039 elif test -f "$ac_dir/shtool"; then
2040 ac_aux_dir=$ac_dir
2041 ac_install_sh="$ac_aux_dir/shtool install -c"
2042 break
2043 fi
2044 done
2045 if test -z "$ac_aux_dir"; then
2046 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2047 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2048 { (exit 1); exit 1; }; }
2049 fi
2050
2051 # These three variables are undocumented and unsupported,
2052 # and are intended to be withdrawn in a future Autoconf release.
2053 # They can cause serious problems if a builder's source tree is in a directory
2054 # whose full name contains unusual characters.
2055 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2056 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2057 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2058
2059
2060 # Make sure we can run config.sub.
2061 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2062 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2063 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2064 { (exit 1); exit 1; }; }
2065
2066 { echo "$as_me:$LINENO: checking build system type" >&5
2067 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2068 if test "${ac_cv_build+set}" = set; then
2069 echo $ECHO_N "(cached) $ECHO_C" >&6
2070 else
2071 ac_build_alias=$build_alias
2072 test "x$ac_build_alias" = x &&
2073 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2074 test "x$ac_build_alias" = x &&
2075 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2076 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2077 { (exit 1); exit 1; }; }
2078 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2079 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2080 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2081 { (exit 1); exit 1; }; }
2082
2083 fi
2084 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2085 echo "${ECHO_T}$ac_cv_build" >&6; }
2086 case $ac_cv_build in
2087 *-*-*) ;;
2088 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2089 echo "$as_me: error: invalid value of canonical build" >&2;}
2090 { (exit 1); exit 1; }; };;
2091 esac
2092 build=$ac_cv_build
2093 ac_save_IFS=$IFS; IFS='-'
2094 set x $ac_cv_build
2095 shift
2096 build_cpu=$1
2097 build_vendor=$2
2098 shift; shift
2099 # Remember, the first character of IFS is used to create $*,
2100 # except with old shells:
2101 build_os=$*
2102 IFS=$ac_save_IFS
2103 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2104
2105
2106 { echo "$as_me:$LINENO: checking host system type" >&5
2107 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2108 if test "${ac_cv_host+set}" = set; then
2109 echo $ECHO_N "(cached) $ECHO_C" >&6
2110 else
2111 if test "x$host_alias" = x; then
2112 ac_cv_host=$ac_cv_build
2113 else
2114 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2115 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2116 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2117 { (exit 1); exit 1; }; }
2118 fi
2119
2120 fi
2121 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2122 echo "${ECHO_T}$ac_cv_host" >&6; }
2123 case $ac_cv_host in
2124 *-*-*) ;;
2125 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2126 echo "$as_me: error: invalid value of canonical host" >&2;}
2127 { (exit 1); exit 1; }; };;
2128 esac
2129 host=$ac_cv_host
2130 ac_save_IFS=$IFS; IFS='-'
2131 set x $ac_cv_host
2132 shift
2133 host_cpu=$1
2134 host_vendor=$2
2135 shift; shift
2136 # Remember, the first character of IFS is used to create $*,
2137 # except with old shells:
2138 host_os=$*
2139 IFS=$ac_save_IFS
2140 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2141
2142
2143 canonical=$host
2144 configuration=${host_alias-$host}
2145
2146
2147
2148 ### If you add support for a new configuration, add code to this
2149 ### switch statement to recognize your configuration name and select
2150 ### the appropriate operating system and machine description files.
2151
2152 ### You would hope that you could choose an m/*.h file pretty much
2153 ### based on the machine portion of the configuration name, and an s-
2154 ### file based on the operating system portion. However, it turns out
2155 ### that each m/*.h file is pretty manufacturer-specific - for
2156 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2157 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2158 ### machines. So we basically have to have a special case for each
2159 ### configuration name.
2160 ###
2161 ### As far as handling version numbers on operating systems is
2162 ### concerned, make sure things will fail in a fixable way. If
2163 ### /etc/MACHINES doesn't say anything about version numbers, be
2164 ### prepared to handle anything reasonably. If version numbers
2165 ### matter, be sure /etc/MACHINES says something about it.
2166 ###
2167 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2168 ### "System V Release 4"; he writes, "The old convention encouraged
2169 ### confusion between `system' and `release' levels'."
2170
2171 machine='' opsys='' unported=no
2172 case "${canonical}" in
2173
2174 ## FreeBSD ports
2175 *-*-freebsd* )
2176 opsys=freebsd
2177 case "${canonical}" in
2178 alpha*-*-freebsd*) machine=alpha ;;
2179 ia64-*-freebsd*) machine=ia64 ;;
2180 sparc64-*-freebsd*) machine=sparc ;;
2181 powerpc-*-freebsd*) machine=macppc ;;
2182 i[3456]86-*-freebsd*) machine=intel386 ;;
2183 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2184 esac
2185 ;;
2186
2187 ## NetBSD ports
2188 *-*-netbsd* )
2189 opsys=netbsd
2190 if test -f /usr/lib/crti.o; then
2191
2192 cat >>confdefs.h <<\_ACEOF
2193 #define HAVE_CRTIN
2194 _ACEOF
2195
2196 fi
2197
2198 case "${canonical}" in
2199 alpha*-*-netbsd*) machine=alpha ;;
2200 i[3456]86-*-netbsd*) machine=intel386 ;;
2201 m68k-*-netbsd*)
2202 # This is somewhat bogus.
2203 machine=hp9000s300 ;;
2204 powerpc-apple-netbsd*) machine=macppc ;;
2205 mips-*-netbsd*) machine=pmax ;;
2206 mipsel-*-netbsd*) machine=pmax ;;
2207 mipseb-*-netbsd*) machine=pmax ;;
2208 ns32k-*-netbsd*) machine=ns32000 ;;
2209 powerpc-*-netbsd*) machine=macppc ;;
2210 sparc*-*-netbsd*) machine=sparc ;;
2211 vax-*-netbsd*) machine=vax ;;
2212 arm-*-netbsd*) machine=arm ;;
2213 esac
2214 ;;
2215
2216 ## OpenBSD ports
2217 *-*-openbsd* )
2218 opsys=openbsd
2219 case "${canonical}" in
2220 alpha*-*-openbsd*) machine=alpha ;;
2221 i386-*-openbsd*) machine=intel386 ;;
2222 x86_64-*-openbsd*) machine=amdx86-64 ;;
2223 m68k-*-openbsd*) machine=hp9000s300 ;;
2224 mipsel-*-openbsd*) machine=pmax ;;
2225 ns32k-*-openbsd*) machine=ns32000 ;;
2226 sparc-*-openbsd*) machine=sparc ;;
2227 vax-*-openbsd*) machine=vax ;;
2228 esac
2229 ;;
2230
2231 ## LynxOS ports
2232 *-*-lynxos* )
2233 opsys=lynxos
2234 case "${canonical}" in
2235 i[3456]86-*-lynxos*) machine=intel386 ;;
2236 powerpc-*-lynxos*) machine=powerpc ;;
2237 esac
2238 ;;
2239
2240 ## Acorn RISCiX:
2241 arm-acorn-riscix1.1* )
2242 machine=acorn opsys=riscix1-1
2243 ;;
2244 arm-acorn-riscix1.2* | arm-acorn-riscix )
2245 ## This name is riscix12 instead of riscix1.2
2246 ## to avoid a file name conflict on MSDOS.
2247 machine=acorn opsys=riscix12
2248 ;;
2249
2250 ## BSDI ports
2251 *-*-bsdi* )
2252 opsys=bsdi
2253 case "${canonical}" in
2254 i[345]86-*-bsdi*) machine=intel386 ;;
2255 sparc-*-bsdi*) machine=sparc ;;
2256 powerpc-*-bsdi*) machine=macppc ;;
2257 esac
2258 case "${canonical}" in
2259 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2260 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2261 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2262 *-*-bsdi3* ) opsys=bsdos3 ;;
2263 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2264 esac
2265 ;;
2266
2267 ## Alliant machines
2268 ## Strictly speaking, we need the version of the alliant operating
2269 ## system to choose the right machine file, but currently the
2270 ## configuration name doesn't tell us enough to choose the right
2271 ## one; we need to give alliants their own operating system name to
2272 ## do this right. When someone cares, they can help us.
2273 fx80-alliant-* )
2274 machine=alliant4 opsys=bsd4-2
2275 ;;
2276 i860-alliant-* )
2277 machine=alliant-2800 opsys=bsd4-3
2278 ;;
2279
2280 ## Alpha (DEC) machines.
2281 alpha*-dec-osf* )
2282 machine=alpha opsys=osf1
2283 # This is needed to find X11R6.1 libraries for certain tests.
2284 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2285 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2286 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2287 # due to non-traditional preprocessing with the current compiler
2288 # defaults. OSF 4 can also have that compiler version, and there
2289 # seems always to have been a usable /usr/bin/cpp.
2290 NON_GNU_CPP=/usr/bin/cpp
2291 case "${canonical}" in
2292 alpha*-dec-osf[5-9]*)
2293 opsys=osf5-0 ;;
2294 esac
2295 ;;
2296
2297 alpha*-*-linux-gnu* )
2298 machine=alpha opsys=gnu-linux
2299 ;;
2300
2301 arm*-*-linux-gnu* )
2302 machine=arm opsys=gnu-linux
2303 ;;
2304
2305 ## Altos 3068
2306 m68*-altos-sysv* )
2307 machine=altos opsys=usg5-2
2308 ;;
2309
2310 ## Amdahl UTS
2311 580-amdahl-sysv* )
2312 machine=amdahl opsys=usg5-2-2
2313 ;;
2314
2315 ## Apollo, Domain/OS
2316 m68*-apollo-* )
2317 machine=apollo opsys=bsd4-3
2318 ;;
2319
2320 ## AT&T 3b2, 3b5, 3b15, 3b20
2321 we32k-att-sysv* )
2322 machine=att3b opsys=usg5-2-2
2323 ;;
2324
2325 ## AT&T 3b1 - The Mighty Unix PC!
2326 m68*-att-sysv* )
2327 machine=7300 opsys=usg5-2-2
2328 ;;
2329
2330 ## Bull dpx20
2331 rs6000-bull-bosx* )
2332 machine=ibmrs6000 opsys=aix3-2
2333 ;;
2334
2335 ## Bull dpx2
2336 m68*-bull-sysv3* )
2337 machine=dpx2 opsys=usg5-3
2338 ;;
2339
2340 ## Bull sps7
2341 m68*-bull-sysv2* )
2342 machine=sps7 opsys=usg5-2
2343 ;;
2344
2345 ## CCI 5/32, 6/32 -- see "Tahoe".
2346
2347 ## Celerity
2348 ## I don't know what configuration name to use for this; config.sub
2349 ## doesn't seem to know anything about it. Hey, Celerity users, get
2350 ## in touch with us!
2351 celerity-celerity-bsd* )
2352 machine=celerity opsys=bsd4-2
2353 ;;
2354
2355 ## Clipper
2356 ## What operating systems does this chip run that Emacs has been
2357 ## tested on?
2358 clipper-* )
2359 machine=clipper
2360 ## We'll use the catch-all code at the bottom to guess the
2361 ## operating system.
2362 ;;
2363
2364 ## Compaq Nonstop
2365 mips-compaq-nonstopux* )
2366 machine=nonstopux opsys=nonstopux
2367 ;;
2368
2369 ## Convex
2370 *-convex-bsd* | *-convex-convexos* )
2371 machine=convex opsys=bsd4-3
2372 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2373 NON_GNU_CPP="cc -E -P"
2374 ;;
2375
2376 ## Cubix QBx/386
2377 i[3456]86-cubix-sysv* )
2378 machine=intel386 opsys=usg5-3
2379 ;;
2380
2381 ## Cydra 5
2382 cydra*-cydrome-sysv* )
2383 machine=cydra5 opsys=usg5-3
2384 ;;
2385
2386 ## Data General AViiON Machines
2387 ## DG changed naming conventions with the release of 5.4.4.10, they
2388 ## dropped the initial 5.4 but left the intervening R. Because of the
2389 ## R this shouldn't conflict with older versions of the OS (which I
2390 ## think were named like dgux4.*). In addition, DG new AViiONs series
2391 ## uses either Motorola M88k or Intel Pentium CPUs.
2392 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2393 machine=aviion opsys=dgux4
2394 ;;
2395 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2396 ## This name is dgux5-4-3 instead of dgux5-4r3
2397 ## to avoid a file name conflict on MSDOS.
2398 machine=aviion opsys=dgux5-4-3
2399 ;;
2400 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2401 machine=aviion opsys=dgux5-4r2
2402 ;;
2403 m88k-dg-dgux* )
2404 machine=aviion opsys=dgux
2405 ;;
2406
2407 ## Data General AViiON Intel (x86) Machines
2408 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2409 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2410 i[345]86-dg-dguxR4* )
2411 machine=aviion-intel opsys=dgux4
2412 ;;
2413
2414 ## DECstations
2415 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2416 machine=pmax opsys=bsd4-2
2417 ;;
2418 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2419 machine=pmax opsys=bsd4-3
2420 ;;
2421 mips-dec-ultrix* )
2422 machine=pmax opsys=ultrix4-3
2423 ;;
2424 mips-dec-osf* )
2425 machine=pmax opsys=osf1
2426 ;;
2427 mips-dec-mach_bsd4.3* )
2428 machine=pmax opsys=mach-bsd4-3
2429 ;;
2430
2431 ## Motorola Delta machines
2432 m68k-motorola-sysv* | m68000-motorola-sysv* )
2433 machine=delta opsys=usg5-3
2434 if test -z "`type gnucc | grep 'not found'`"
2435 then
2436 if test -s /etc/167config
2437 then CC="gnucc -m68040"
2438 else CC="gnucc -m68881"
2439 fi
2440 else
2441 if test -z "`type gcc | grep 'not found'`"
2442 then CC=gcc
2443 else CC=cc
2444 fi
2445 fi
2446 ;;
2447 m88k-motorola-sysv4* )
2448 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2449 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2450 # I hope there are not other 4.0 versions for this machine
2451 # which really need usg5-4 instead.
2452 machine=delta88k opsys=usg5-4-2
2453 ;;
2454 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2455 machine=delta88k opsys=usg5-3
2456 ;;
2457
2458 ## Dual machines
2459 m68*-dual-sysv* )
2460 machine=dual opsys=usg5-2
2461 ;;
2462 m68*-dual-uniplus* )
2463 machine=dual opsys=unipl5-2
2464 ;;
2465
2466 ## Elxsi 6400
2467 elxsi-elxsi-sysv* )
2468 machine=elxsi opsys=usg5-2
2469 ;;
2470
2471 ## Encore machines
2472 ns16k-encore-bsd* )
2473 machine=ns16000 opsys=umax
2474 ;;
2475
2476 ## The GEC 63 - apparently, this port isn't really finished yet.
2477 # I'm sure we finished off the last of the machines, though. -- fx
2478
2479 ## Gould Power Node and NP1
2480 pn-gould-bsd4.2* )
2481 machine=gould opsys=bsd4-2
2482 ;;
2483 pn-gould-bsd4.3* )
2484 machine=gould opsys=bsd4-3
2485 ;;
2486 np1-gould-bsd* )
2487 machine=gould-np1 opsys=bsd4-3
2488 ;;
2489
2490 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2491 ## as far as Emacs is concerned).
2492 m88k-harris-cxux* )
2493 # Build needs to be different on 7.0 and later releases
2494 case "`uname -r`" in
2495 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2496 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2497 esac
2498 NON_GNU_CPP="/lib/cpp"
2499 ;;
2500 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2501 m68k-harris-cxux* )
2502 machine=nh3000 opsys=cxux
2503 ;;
2504 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2505 powerpc-harris-powerunix )
2506 machine=nh6000 opsys=powerunix
2507 NON_GNU_CPP="cc -Xo -E -P"
2508 ;;
2509 ## SR2001/SR2201 running HI-UX/MPP
2510 hppa1.1-hitachi-hiuxmpp* )
2511 machine=sr2k opsys=hiuxmpp
2512 ;;
2513 hppa1.1-hitachi-hiuxwe2* )
2514 machine=sr2k opsys=hiuxwe2
2515 ;;
2516 ## Honeywell XPS100
2517 xps*-honeywell-sysv* )
2518 machine=xps100 opsys=usg5-2
2519 ;;
2520
2521 ## HP 9000 series 200 or 300
2522 m68*-hp-bsd* )
2523 machine=hp9000s300 opsys=bsd4-3
2524 ;;
2525 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2526 m68*-hp-hpux* )
2527 case "`uname -r`" in
2528 ## Someone's system reports A.B8.05 for this.
2529 ## I wonder what other possibilities there are.
2530 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2531 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2532 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2533 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2534 *) machine=hp9000s300 opsys=hpux ;;
2535 esac
2536 ;;
2537
2538 ## HP 9000 series 700 and 800, running HP/UX
2539 hppa*-hp-hpux7* )
2540 machine=hp800 opsys=hpux
2541 ;;
2542 hppa*-hp-hpux8* )
2543 machine=hp800 opsys=hpux8
2544 ;;
2545 hppa*-hp-hpux9shr* )
2546 machine=hp800 opsys=hpux9shr
2547 ;;
2548 hppa*-hp-hpux9* )
2549 machine=hp800 opsys=hpux9
2550 ;;
2551 hppa*-hp-hpux10.2* )
2552 machine=hp800 opsys=hpux10-20
2553 ;;
2554 hppa*-hp-hpux10* )
2555 machine=hp800 opsys=hpux10
2556 ;;
2557 hppa*-hp-hpux1[1-9]* )
2558 machine=hp800 opsys=hpux11
2559 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2560 ;;
2561
2562 hppa*-*-linux-gnu* )
2563 machine=hp800 opsys=gnu-linux
2564 ;;
2565
2566 ## HP 9000 series 700 and 800, running HP/UX
2567 hppa*-hp-hpux* )
2568 ## Cross-compilation? Nah!
2569 case "`uname -r`" in
2570 ## Someone's system reports A.B8.05 for this.
2571 ## I wonder what other possibilities there are.
2572 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2573 *.08.* ) machine=hp800 opsys=hpux8 ;;
2574 *.09.* ) machine=hp800 opsys=hpux9 ;;
2575 *) machine=hp800 opsys=hpux10 ;;
2576 esac
2577 ;;
2578 hppa*-*-nextstep* )
2579 machine=hp800 opsys=nextstep
2580 ;;
2581
2582 ## Orion machines
2583 orion-orion-bsd* )
2584 machine=orion opsys=bsd4-2
2585 ;;
2586 clipper-orion-bsd* )
2587 machine=orion105 opsys=bsd4-2
2588 ;;
2589
2590 ## IBM machines
2591 i[3456]86-ibm-aix1.1* )
2592 machine=ibmps2-aix opsys=usg5-2-2
2593 ;;
2594 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2595 machine=ibmps2-aix opsys=usg5-3
2596 ;;
2597 i370-ibm-aix*)
2598 machine=ibm370aix opsys=usg5-3
2599 ;;
2600 s390-*-linux-gnu* )
2601 machine=ibms390 opsys=gnu-linux
2602 ;;
2603 s390x-*-linux-gnu* )
2604 machine=ibms390x opsys=gnu-linux
2605 ;;
2606 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2607 machine=ibmrs6000 opsys=aix3-1
2608 ;;
2609 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2610 machine=ibmrs6000 opsys=aix3-2-5
2611 ;;
2612 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2613 machine=ibmrs6000 opsys=aix4-1
2614 ;;
2615 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2616 machine=ibmrs6000 opsys=aix4-2
2617 ;;
2618 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2619 machine=ibmrs6000 opsys=aix4-2
2620 ;;
2621 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2622 machine=ibmrs6000 opsys=aix4
2623 ;;
2624 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2625 machine=ibmrs6000 opsys=aix4-1
2626 ;;
2627 rs6000-ibm-aix* | powerpc-ibm-aix* )
2628 machine=ibmrs6000 opsys=aix3-2
2629 ;;
2630 romp-ibm-bsd4.3* )
2631 machine=ibmrt opsys=bsd4-3
2632 ;;
2633 romp-ibm-bsd4.2* )
2634 machine=ibmrt opsys=bsd4-2
2635 ;;
2636 romp-ibm-aos4.3* )
2637 machine=ibmrt opsys=bsd4-3
2638 ;;
2639 romp-ibm-aos4.2* )
2640 machine=ibmrt opsys=bsd4-2
2641 ;;
2642 romp-ibm-aos* )
2643 machine=ibmrt opsys=bsd4-3
2644 ;;
2645 romp-ibm-bsd* )
2646 machine=ibmrt opsys=bsd4-3
2647 ;;
2648 romp-ibm-aix* )
2649 machine=ibmrt-aix opsys=usg5-2-2
2650 ;;
2651
2652 ## Integrated Solutions `Optimum V'
2653 m68*-isi-bsd4.2* )
2654 machine=isi-ov opsys=bsd4-2
2655 ;;
2656 m68*-isi-bsd4.3* )
2657 machine=isi-ov opsys=bsd4-3
2658 ;;
2659
2660 ## Intel 386 machines where we do care about the manufacturer
2661 i[3456]86-intsys-sysv* )
2662 machine=is386 opsys=usg5-2-2
2663 ;;
2664
2665 ## Prime EXL
2666 i[3456]86-prime-sysv* )
2667 machine=i386 opsys=usg5-3
2668 ;;
2669
2670 ## Sequent Symmetry running Dynix
2671 i[3456]86-sequent-bsd* )
2672 machine=symmetry opsys=bsd4-3
2673 ;;
2674
2675 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2676 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2677 machine=sequent-ptx opsys=ptx4
2678 NON_GNU_CPP=/lib/cpp
2679 ;;
2680
2681 ## Sequent Symmetry running DYNIX/ptx
2682 ## Use the old cpp rather than the newer ANSI one.
2683 i[3456]86-sequent-ptx* )
2684 machine=sequent-ptx opsys=ptx
2685 NON_GNU_CPP="/lib/cpp"
2686 ;;
2687
2688 ## ncr machine running svr4.3.
2689 i[3456]86-ncr-sysv4.3 )
2690 machine=ncr386 opsys=usg5-4-3
2691 ;;
2692
2693 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2694 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2695 i[3456]86-ncr-sysv* )
2696 machine=ncr386 opsys=usg5-4-2
2697 ;;
2698
2699 ## Intel Paragon OSF/1
2700 i860-intel-osf1* )
2701 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2702 ;;
2703
2704 ## Intel 860
2705 i860-*-sysv4* )
2706 machine=i860 opsys=usg5-4
2707 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2708 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2709 ;;
2710
2711 ## Macintosh PowerPC
2712 powerpc*-*-linux-gnu* )
2713 machine=macppc opsys=gnu-linux
2714 ;;
2715
2716 ## Masscomp machines
2717 m68*-masscomp-rtu* )
2718 machine=masscomp opsys=rtu
2719 ;;
2720
2721 ## Megatest machines
2722 m68*-megatest-bsd* )
2723 machine=mega68 opsys=bsd4-2
2724 ;;
2725
2726 ## Workstations sold by MIPS
2727 ## This is not necessarily all workstations using the MIPS processor -
2728 ## Irises are produced by SGI, and DECstations by DEC.
2729
2730 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2731 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2732 ## it gives for choosing between the alternatives seems to be "Use
2733 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2734 ## the BSD world." I'll assume that these are instructions for
2735 ## handling two odd situations, and that every other situation
2736 ## should use mips.h and usg5-2-2, they being listed first.
2737 mips-mips-usg* )
2738 machine=mips4
2739 ## Fall through to the general code at the bottom to decide on the OS.
2740 ;;
2741 mips-mips-riscos4* )
2742 machine=mips4 opsys=bsd4-3
2743 NON_GNU_CC="cc -systype bsd43"
2744 NON_GNU_CPP="cc -systype bsd43 -E"
2745 ;;
2746 mips-mips-riscos5* )
2747 machine=mips4 opsys=riscos5
2748 NON_GNU_CC="cc -systype bsd43"
2749 NON_GNU_CPP="cc -systype bsd43 -E"
2750 ;;
2751 mips-mips-bsd* )
2752 machine=mips opsys=bsd4-3
2753 ;;
2754 mips-mips-* )
2755 machine=mips opsys=usg5-2-2
2756 ;;
2757
2758 ## NeXT
2759 m68*-next-* | m68k-*-nextstep* )
2760 machine=m68k opsys=nextstep
2761 ;;
2762
2763 ## The complete machine from National Semiconductor
2764 ns32k-ns-genix* )
2765 machine=ns32000 opsys=usg5-2
2766 ;;
2767
2768 ## NCR machines
2769 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2770 machine=tower32 opsys=usg5-2-2
2771 ;;
2772 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2773 machine=tower32v3 opsys=usg5-3
2774 ;;
2775
2776 ## NEC EWS4800
2777 mips-nec-sysv4*)
2778 machine=ews4800 opsys=ux4800
2779 ;;
2780
2781 ## Nixdorf Targon 31
2782 m68*-nixdorf-sysv* )
2783 machine=targon31 opsys=usg5-2-2
2784 ;;
2785
2786 ## Nu (TI or LMI)
2787 m68*-nu-sysv* )
2788 machine=nu opsys=usg5-2
2789 ;;
2790
2791 ## Plexus
2792 m68*-plexus-sysv* )
2793 machine=plexus opsys=usg5-2
2794 ;;
2795
2796 ## Pyramid machines
2797 ## I don't really have any idea what sort of processor the Pyramid has,
2798 ## so I'm assuming it is its own architecture.
2799 pyramid-pyramid-bsd* )
2800 machine=pyramid opsys=bsd4-2
2801 ;;
2802
2803 ## Sequent Balance
2804 ns32k-sequent-bsd4.2* )
2805 machine=sequent opsys=bsd4-2
2806 ;;
2807 ns32k-sequent-bsd4.3* )
2808 machine=sequent opsys=bsd4-3
2809 ;;
2810
2811 ## Siemens Nixdorf
2812 mips-siemens-sysv* | mips-sni-sysv*)
2813 machine=mips-siemens opsys=usg5-4
2814 NON_GNU_CC=/usr/ccs/bin/cc
2815 NON_GNU_CPP=/usr/ccs/lib/cpp
2816 ;;
2817
2818 ## Silicon Graphics machines
2819 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2820 m68*-sgi-iris3.5* )
2821 machine=irist opsys=iris3-5
2822 ;;
2823 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2824 machine=irist opsys=iris3-6
2825 ;;
2826 ## Iris 4D
2827 mips-sgi-irix3* )
2828 machine=iris4d opsys=irix3-3
2829 ;;
2830 mips-sgi-irix4* )
2831 machine=iris4d opsys=irix4-0
2832 ;;
2833 mips-sgi-irix6.5 )
2834 machine=iris4d opsys=irix6-5
2835 # Without defining _LANGUAGE_C, things get masked out in the headers
2836 # so that, for instance, grepping for `free' in stdlib.h fails and
2837 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2838 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2839 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2840 ;;
2841 mips-sgi-irix6* )
2842 machine=iris4d opsys=irix6-0
2843 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2844 # but presumably it does no harm.
2845 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2846 # -32 probably isn't necessary in later v.6s -- anyone know which?
2847 NON_GCC_TEST_OPTIONS=-32
2848 ;;
2849 mips-sgi-irix5.[01]* )
2850 machine=iris4d opsys=irix5-0
2851 ;;
2852 mips-sgi-irix5* | mips-sgi-irix* )
2853 machine=iris4d opsys=irix5-2
2854 ;;
2855
2856 ## SONY machines
2857 m68*-sony-bsd4.2* )
2858 machine=news opsys=bsd4-2
2859 ;;
2860 m68*-sony-bsd4.3* )
2861 machine=news opsys=bsd4-3
2862 ;;
2863 m68*-sony-newsos3* | m68*-sony-news3*)
2864 machine=news opsys=bsd4-3
2865 ;;
2866 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2867 machine=news-risc opsys=bsd4-3
2868 ;;
2869 mips-sony-newsos6* )
2870 machine=news-r6 opsys=newsos6
2871 ;;
2872 mips-sony-news* )
2873 machine=news-risc opsys=newsos5
2874 ;;
2875
2876 ## Stride
2877 m68*-stride-sysv* )
2878 machine=stride opsys=usg5-2
2879 ;;
2880
2881 ## Suns
2882 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2883 machine=sparc opsys=gnu-linux
2884 ;;
2885
2886 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2887 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2888 | rs6000-*-solaris2*)
2889 case "${canonical}" in
2890 m68*-sunos1* ) machine=sun1 ;;
2891 m68*-sunos2* ) machine=sun2 ;;
2892 m68* ) machine=sun3 ;;
2893 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2894 i[3456]86-*-* ) machine=intel386 ;;
2895 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2896 powerpcle* ) machine=powerpcle ;;
2897 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2898 sparc* ) machine=sparc ;;
2899 * ) unported=yes ;;
2900 esac
2901 case "${canonical}" in
2902 ## The Sun386 didn't get past 4.0.
2903 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2904 *-sunos4.0* ) opsys=sunos4-0 ;;
2905 *-sunos4.1.[3-9]*noshare )
2906 ## This name is sunos413 instead of sunos4-1-3
2907 ## to avoid a file name conflict on MSDOS.
2908 opsys=sunos413
2909 NON_GNU_CPP=/usr/lib/cpp
2910 NON_GCC_TEST_OPTIONS=-Bstatic
2911 GCC_TEST_OPTIONS=-static
2912 ;;
2913 *-sunos4.1.[3-9]* | *-sunos4shr*)
2914 opsys=sunos4shr
2915 NON_GNU_CPP=/usr/lib/cpp
2916 ;;
2917 *-sunos4* | *-sunos )
2918 opsys=sunos4-1
2919 NON_GCC_TEST_OPTIONS=-Bstatic
2920 GCC_TEST_OPTIONS=-static
2921 ;;
2922 *-sunos5.3* | *-solaris2.3* )
2923 opsys=sol2-3
2924 NON_GNU_CPP=/usr/ccs/lib/cpp
2925 ;;
2926 *-sunos5.4* | *-solaris2.4* )
2927 opsys=sol2-4
2928 NON_GNU_CPP=/usr/ccs/lib/cpp
2929 RANLIB="ar -ts"
2930 ;;
2931 *-sunos5.5* | *-solaris2.5* )
2932 opsys=sol2-5
2933 NON_GNU_CPP=/usr/ccs/lib/cpp
2934 RANLIB="ar -ts"
2935 ;;
2936 *-sunos5.6* | *-solaris2.6* )
2937 opsys=sol2-6
2938 NON_GNU_CPP=/usr/ccs/lib/cpp
2939 RANLIB="ar -ts"
2940 ;;
2941 *-sunos5* | *-solaris* )
2942 opsys=sol2-6
2943 NON_GNU_CPP=/usr/ccs/lib/cpp
2944 ;;
2945 * ) opsys=bsd4-2 ;;
2946 esac
2947 ## Watch out for a compiler that we know will not work.
2948 case "${canonical}" in
2949 *-solaris* | *-sunos5* )
2950 if [ "x$CC" = x/usr/ucb/cc ]; then
2951 ## /usr/ucb/cc doesn't work;
2952 ## we should find some other compiler that does work.
2953 unset CC
2954 fi
2955 ;;
2956 *) ;;
2957 esac
2958 ;;
2959 sparc-*-nextstep* )
2960 machine=sparc opsys=nextstep
2961 ;;
2962
2963 ## Tadpole 68k
2964 m68*-tadpole-sysv* )
2965 machine=tad68k opsys=usg5-3
2966 ;;
2967
2968 ## Tahoe machines
2969 tahoe-tahoe-bsd4.2* )
2970 machine=tahoe opsys=bsd4-2
2971 ;;
2972 tahoe-tahoe-bsd4.3* )
2973 machine=tahoe opsys=bsd4-3
2974 ;;
2975
2976 ## Tandem Integrity S2
2977 mips-tandem-sysv* )
2978 machine=tandem-s2 opsys=usg5-3
2979 ;;
2980
2981 ## Tektronix XD88
2982 m88k-tektronix-sysv3* )
2983 machine=tekxd88 opsys=usg5-3
2984 ;;
2985
2986 ## Tektronix 16000 box (6130?)
2987 ns16k-tektronix-bsd* )
2988 machine=ns16000 opsys=bsd4-2
2989 ;;
2990 ## Tektronix 4300
2991 ## src/m/tek4300.h hints that this is a m68k machine.
2992 m68*-tektronix-bsd* )
2993 machine=tek4300 opsys=bsd4-3
2994 ;;
2995
2996 ## Titan P2 or P3
2997 ## We seem to have lost the machine-description file titan.h!
2998 titan-titan-sysv* )
2999 machine=titan opsys=usg5-3
3000 ;;
3001
3002 ## Ustation E30 (SS5E)
3003 m68*-unisys-uniplus* )
3004 machine=ustation opsystem=unipl5-2
3005 ;;
3006
3007 ## Vaxen.
3008 vax-dec-* )
3009 machine=vax
3010 case "${canonical}" in
3011 *-bsd4.1* ) opsys=bsd4-1 ;;
3012 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3013 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3014 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3015 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3016 *-vms* ) opsys=vms ;;
3017 * ) unported=yes
3018 esac
3019 ;;
3020
3021 ## Whitechapel MG1
3022 ns16k-whitechapel-* )
3023 machine=mg1
3024 ## We don't know what sort of OS runs on these; we'll let the
3025 ## operating system guessing code below try.
3026 ;;
3027
3028 ## Wicat
3029 m68*-wicat-sysv* )
3030 machine=wicat opsys=usg5-2
3031 ;;
3032
3033 ## IA-64
3034 ia64*-*-linux* )
3035 machine=ia64 opsys=gnu-linux
3036 ;;
3037
3038 ## Intel 386 machines where we don't care about the manufacturer
3039 i[3456]86-*-* )
3040 machine=intel386
3041 case "${canonical}" in
3042 *-cygwin ) opsys=cygwin ;;
3043 *-darwin* ) opsys=darwin
3044 CPP="${CC-cc} -E -no-cpp-precomp"
3045 ;;
3046 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3047 *-isc2.2* ) opsys=isc2-2 ;;
3048 *-isc4.0* ) opsys=isc4-0 ;;
3049 *-isc4.* ) opsys=isc4-1
3050 GCC_TEST_OPTIONS=-posix
3051 NON_GCC_TEST_OPTIONS=-Xp
3052 ;;
3053 *-isc* ) opsys=isc3-0 ;;
3054 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3055 *-esix* ) opsys=esix ;;
3056 *-xenix* ) opsys=xenix ;;
3057 *-linux-gnu* ) opsys=gnu-linux ;;
3058 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3059 *-sco3.2v5* ) opsys=sco5
3060 NON_GNU_CPP=/lib/cpp
3061 # Prevent -belf from being passed to $CPP.
3062 # /lib/cpp does not accept it.
3063 OVERRIDE_CPPFLAGS=" "
3064 ;;
3065 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3066 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3067 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3068 *-386bsd* ) opsys=386bsd ;;
3069 *-nextstep* ) opsys=nextstep ;;
3070 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3071 esac
3072 ;;
3073
3074 ## m68k Linux-based GNU system
3075 m68k-*-linux-gnu* )
3076 machine=m68k opsys=gnu-linux
3077 ;;
3078
3079 ## Mips Linux-based GNU system
3080 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3081 machine=mips opsys=gnu-linux
3082 ;;
3083
3084 ## UXP/DS
3085 sparc-fujitsu-sysv4* )
3086 machine=sparc opsys=uxpds
3087 NON_GNU_CPP=/usr/ccs/lib/cpp
3088 RANLIB="ar -ts"
3089 ;;
3090
3091 ## UXP/V
3092 f301-fujitsu-uxpv4.1)
3093 machine=f301 opsys=uxpv
3094 ;;
3095
3096 ## Darwin / Mac OS X
3097 powerpc-apple-darwin* )
3098 machine=powermac opsys=darwin
3099 # Define CPP as follows to make autoconf work correctly.
3100 CPP="${CC-cc} -E -no-cpp-precomp"
3101 # Use fink packages if available.
3102 if test -d /sw/include && test -d /sw/lib; then
3103 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3104 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3105 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3106 fi
3107 ;;
3108
3109 ## AMD x86-64 Linux-based GNU system
3110 x86_64-*-linux-gnu* )
3111 machine=amdx86-64 opsys=gnu-linux
3112 ;;
3113
3114 * )
3115 unported=yes
3116 ;;
3117 esac
3118
3119 ### If the code above didn't choose an operating system, just choose
3120 ### an operating system based on the configuration name. You really
3121 ### only want to use this when you have no idea what the right
3122 ### operating system is; if you know what operating systems a machine
3123 ### runs, it's cleaner to make it explicit in the case statement
3124 ### above.
3125 if test x"${opsys}" = x; then
3126 case "${canonical}" in
3127 *-gnu* ) opsys=gnu ;;
3128 *-bsd4.[01] ) opsys=bsd4-1 ;;
3129 *-bsd4.2 ) opsys=bsd4-2 ;;
3130 *-bsd4.3 ) opsys=bsd4-3 ;;
3131 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3132 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3133 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3134 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3135 *-sysv4.2uw* ) opsys=unixware ;;
3136 *-sysv5uw* ) opsys=unixware ;;
3137 *-sysv5OpenUNIX* ) opsys=unixware ;;
3138 *-sysv4.1* | *-sysvr4.1* )
3139 NON_GNU_CPP=/usr/lib/cpp
3140 opsys=usg5-4 ;;
3141 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3142 if [ x$NON_GNU_CPP = x ]; then
3143 if [ -f /usr/ccs/lib/cpp ]; then
3144 NON_GNU_CPP=/usr/ccs/lib/cpp
3145 else
3146 NON_GNU_CPP=/lib/cpp
3147 fi
3148 fi
3149 opsys=usg5-4-2 ;;
3150 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3151 * )
3152 unported=yes
3153 ;;
3154 esac
3155 fi
3156
3157
3158
3159 if test $unported = yes; then
3160 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3161 Check \`etc/MACHINES' for recognized configuration names." >&5
3162 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3163 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3164 { (exit 1); exit 1; }; }
3165 fi
3166
3167 machfile="m/${machine}.h"
3168 opsysfile="s/${opsys}.h"
3169
3170
3171 #### Choose a compiler.
3172 test -n "$CC" && cc_specified=yes
3173
3174 # Save the value of CFLAGS that the user specified.
3175 SPECIFIED_CFLAGS="$CFLAGS"
3176
3177 case ${with_gcc} in
3178 "yes" ) CC="gcc" GCC=yes ;;
3179 "no" ) : ${CC=cc} ;;
3180 * )
3181 esac
3182 ac_ext=c
3183 ac_cpp='$CPP $CPPFLAGS'
3184 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3185 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3186 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3187 if test -n "$ac_tool_prefix"; then
3188 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3189 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3190 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3191 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3192 if test "${ac_cv_prog_CC+set}" = set; then
3193 echo $ECHO_N "(cached) $ECHO_C" >&6
3194 else
3195 if test -n "$CC"; then
3196 ac_cv_prog_CC="$CC" # Let the user override the test.
3197 else
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3200 do
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3205 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3206 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3208 fi
3209 done
3210 done
3211 IFS=$as_save_IFS
3212
3213 fi
3214 fi
3215 CC=$ac_cv_prog_CC
3216 if test -n "$CC"; then
3217 { echo "$as_me:$LINENO: result: $CC" >&5
3218 echo "${ECHO_T}$CC" >&6; }
3219 else
3220 { echo "$as_me:$LINENO: result: no" >&5
3221 echo "${ECHO_T}no" >&6; }
3222 fi
3223
3224
3225 fi
3226 if test -z "$ac_cv_prog_CC"; then
3227 ac_ct_CC=$CC
3228 # Extract the first word of "gcc", so it can be a program name with args.
3229 set dummy gcc; ac_word=$2
3230 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3231 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3232 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3233 echo $ECHO_N "(cached) $ECHO_C" >&6
3234 else
3235 if test -n "$ac_ct_CC"; then
3236 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3237 else
3238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3239 for as_dir in $PATH
3240 do
3241 IFS=$as_save_IFS
3242 test -z "$as_dir" && as_dir=.
3243 for ac_exec_ext in '' $ac_executable_extensions; do
3244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3245 ac_cv_prog_ac_ct_CC="gcc"
3246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3247 break 2
3248 fi
3249 done
3250 done
3251 IFS=$as_save_IFS
3252
3253 fi
3254 fi
3255 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3256 if test -n "$ac_ct_CC"; then
3257 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3258 echo "${ECHO_T}$ac_ct_CC" >&6; }
3259 else
3260 { echo "$as_me:$LINENO: result: no" >&5
3261 echo "${ECHO_T}no" >&6; }
3262 fi
3263
3264 if test "x$ac_ct_CC" = x; then
3265 CC=""
3266 else
3267 case $cross_compiling:$ac_tool_warned in
3268 yes:)
3269 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3270 whose name does not start with the host triplet. If you think this
3271 configuration is useful to you, please write to autoconf@gnu.org." >&5
3272 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3273 whose name does not start with the host triplet. If you think this
3274 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3275 ac_tool_warned=yes ;;
3276 esac
3277 CC=$ac_ct_CC
3278 fi
3279 else
3280 CC="$ac_cv_prog_CC"
3281 fi
3282
3283 if test -z "$CC"; then
3284 if test -n "$ac_tool_prefix"; then
3285 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3286 set dummy ${ac_tool_prefix}cc; ac_word=$2
3287 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3288 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3289 if test "${ac_cv_prog_CC+set}" = set; then
3290 echo $ECHO_N "(cached) $ECHO_C" >&6
3291 else
3292 if test -n "$CC"; then
3293 ac_cv_prog_CC="$CC" # Let the user override the test.
3294 else
3295 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3296 for as_dir in $PATH
3297 do
3298 IFS=$as_save_IFS
3299 test -z "$as_dir" && as_dir=.
3300 for ac_exec_ext in '' $ac_executable_extensions; do
3301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3302 ac_cv_prog_CC="${ac_tool_prefix}cc"
3303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3304 break 2
3305 fi
3306 done
3307 done
3308 IFS=$as_save_IFS
3309
3310 fi
3311 fi
3312 CC=$ac_cv_prog_CC
3313 if test -n "$CC"; then
3314 { echo "$as_me:$LINENO: result: $CC" >&5
3315 echo "${ECHO_T}$CC" >&6; }
3316 else
3317 { echo "$as_me:$LINENO: result: no" >&5
3318 echo "${ECHO_T}no" >&6; }
3319 fi
3320
3321
3322 fi
3323 fi
3324 if test -z "$CC"; then
3325 # Extract the first word of "cc", so it can be a program name with args.
3326 set dummy cc; ac_word=$2
3327 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3328 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3329 if test "${ac_cv_prog_CC+set}" = set; then
3330 echo $ECHO_N "(cached) $ECHO_C" >&6
3331 else
3332 if test -n "$CC"; then
3333 ac_cv_prog_CC="$CC" # Let the user override the test.
3334 else
3335 ac_prog_rejected=no
3336 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3337 for as_dir in $PATH
3338 do
3339 IFS=$as_save_IFS
3340 test -z "$as_dir" && as_dir=.
3341 for ac_exec_ext in '' $ac_executable_extensions; do
3342 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3343 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3344 ac_prog_rejected=yes
3345 continue
3346 fi
3347 ac_cv_prog_CC="cc"
3348 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3349 break 2
3350 fi
3351 done
3352 done
3353 IFS=$as_save_IFS
3354
3355 if test $ac_prog_rejected = yes; then
3356 # We found a bogon in the path, so make sure we never use it.
3357 set dummy $ac_cv_prog_CC
3358 shift
3359 if test $# != 0; then
3360 # We chose a different compiler from the bogus one.
3361 # However, it has the same basename, so the bogon will be chosen
3362 # first if we set CC to just the basename; use the full file name.
3363 shift
3364 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3365 fi
3366 fi
3367 fi
3368 fi
3369 CC=$ac_cv_prog_CC
3370 if test -n "$CC"; then
3371 { echo "$as_me:$LINENO: result: $CC" >&5
3372 echo "${ECHO_T}$CC" >&6; }
3373 else
3374 { echo "$as_me:$LINENO: result: no" >&5
3375 echo "${ECHO_T}no" >&6; }
3376 fi
3377
3378
3379 fi
3380 if test -z "$CC"; then
3381 if test -n "$ac_tool_prefix"; then
3382 for ac_prog in cl.exe
3383 do
3384 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3385 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3388 if test "${ac_cv_prog_CC+set}" = set; then
3389 echo $ECHO_N "(cached) $ECHO_C" >&6
3390 else
3391 if test -n "$CC"; then
3392 ac_cv_prog_CC="$CC" # Let the user override the test.
3393 else
3394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3395 for as_dir in $PATH
3396 do
3397 IFS=$as_save_IFS
3398 test -z "$as_dir" && as_dir=.
3399 for ac_exec_ext in '' $ac_executable_extensions; do
3400 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3401 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3402 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3403 break 2
3404 fi
3405 done
3406 done
3407 IFS=$as_save_IFS
3408
3409 fi
3410 fi
3411 CC=$ac_cv_prog_CC
3412 if test -n "$CC"; then
3413 { echo "$as_me:$LINENO: result: $CC" >&5
3414 echo "${ECHO_T}$CC" >&6; }
3415 else
3416 { echo "$as_me:$LINENO: result: no" >&5
3417 echo "${ECHO_T}no" >&6; }
3418 fi
3419
3420
3421 test -n "$CC" && break
3422 done
3423 fi
3424 if test -z "$CC"; then
3425 ac_ct_CC=$CC
3426 for ac_prog in cl.exe
3427 do
3428 # Extract the first word of "$ac_prog", so it can be a program name with args.
3429 set dummy $ac_prog; ac_word=$2
3430 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3431 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3432 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3433 echo $ECHO_N "(cached) $ECHO_C" >&6
3434 else
3435 if test -n "$ac_ct_CC"; then
3436 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3437 else
3438 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3439 for as_dir in $PATH
3440 do
3441 IFS=$as_save_IFS
3442 test -z "$as_dir" && as_dir=.
3443 for ac_exec_ext in '' $ac_executable_extensions; do
3444 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3445 ac_cv_prog_ac_ct_CC="$ac_prog"
3446 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3447 break 2
3448 fi
3449 done
3450 done
3451 IFS=$as_save_IFS
3452
3453 fi
3454 fi
3455 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3456 if test -n "$ac_ct_CC"; then
3457 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3458 echo "${ECHO_T}$ac_ct_CC" >&6; }
3459 else
3460 { echo "$as_me:$LINENO: result: no" >&5
3461 echo "${ECHO_T}no" >&6; }
3462 fi
3463
3464
3465 test -n "$ac_ct_CC" && break
3466 done
3467
3468 if test "x$ac_ct_CC" = x; then
3469 CC=""
3470 else
3471 case $cross_compiling:$ac_tool_warned in
3472 yes:)
3473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3474 whose name does not start with the host triplet. If you think this
3475 configuration is useful to you, please write to autoconf@gnu.org." >&5
3476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3477 whose name does not start with the host triplet. If you think this
3478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3479 ac_tool_warned=yes ;;
3480 esac
3481 CC=$ac_ct_CC
3482 fi
3483 fi
3484
3485 fi
3486
3487
3488 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3489 See \`config.log' for more details." >&5
3490 echo "$as_me: error: no acceptable C compiler found in \$PATH
3491 See \`config.log' for more details." >&2;}
3492 { (exit 1); exit 1; }; }
3493
3494 # Provide some information about the compiler.
3495 echo "$as_me:$LINENO: checking for C compiler version" >&5
3496 ac_compiler=`set X $ac_compile; echo $2`
3497 { (ac_try="$ac_compiler --version >&5"
3498 case "(($ac_try" in
3499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3500 *) ac_try_echo=$ac_try;;
3501 esac
3502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3503 (eval "$ac_compiler --version >&5") 2>&5
3504 ac_status=$?
3505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3506 (exit $ac_status); }
3507 { (ac_try="$ac_compiler -v >&5"
3508 case "(($ac_try" in
3509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3510 *) ac_try_echo=$ac_try;;
3511 esac
3512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3513 (eval "$ac_compiler -v >&5") 2>&5
3514 ac_status=$?
3515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3516 (exit $ac_status); }
3517 { (ac_try="$ac_compiler -V >&5"
3518 case "(($ac_try" in
3519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3520 *) ac_try_echo=$ac_try;;
3521 esac
3522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3523 (eval "$ac_compiler -V >&5") 2>&5
3524 ac_status=$?
3525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3526 (exit $ac_status); }
3527
3528 cat >conftest.$ac_ext <<_ACEOF
3529 /* confdefs.h. */
3530 _ACEOF
3531 cat confdefs.h >>conftest.$ac_ext
3532 cat >>conftest.$ac_ext <<_ACEOF
3533 /* end confdefs.h. */
3534
3535 int
3536 main ()
3537 {
3538
3539 ;
3540 return 0;
3541 }
3542 _ACEOF
3543 ac_clean_files_save=$ac_clean_files
3544 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3545 # Try to create an executable without -o first, disregard a.out.
3546 # It will help us diagnose broken compilers, and finding out an intuition
3547 # of exeext.
3548 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3549 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3550 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3551 #
3552 # List of possible output files, starting from the most likely.
3553 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3554 # only as a last resort. b.out is created by i960 compilers.
3555 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3556 #
3557 # The IRIX 6 linker writes into existing files which may not be
3558 # executable, retaining their permissions. Remove them first so a
3559 # subsequent execution test works.
3560 ac_rmfiles=
3561 for ac_file in $ac_files
3562 do
3563 case $ac_file in
3564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3565 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3566 esac
3567 done
3568 rm -f $ac_rmfiles
3569
3570 if { (ac_try="$ac_link_default"
3571 case "(($ac_try" in
3572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3573 *) ac_try_echo=$ac_try;;
3574 esac
3575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3576 (eval "$ac_link_default") 2>&5
3577 ac_status=$?
3578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3579 (exit $ac_status); }; then
3580 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3581 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3582 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3583 # so that the user can short-circuit this test for compilers unknown to
3584 # Autoconf.
3585 for ac_file in $ac_files
3586 do
3587 test -f "$ac_file" || continue
3588 case $ac_file in
3589 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3590 ;;
3591 [ab].out )
3592 # We found the default executable, but exeext='' is most
3593 # certainly right.
3594 break;;
3595 *.* )
3596 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3597 then :; else
3598 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3599 fi
3600 # We set ac_cv_exeext here because the later test for it is not
3601 # safe: cross compilers may not add the suffix if given an `-o'
3602 # argument, so we may need to know it at that point already.
3603 # Even if this section looks crufty: it has the advantage of
3604 # actually working.
3605 break;;
3606 * )
3607 break;;
3608 esac
3609 done
3610 test "$ac_cv_exeext" = no && ac_cv_exeext=
3611
3612 else
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C compiler cannot create executables
3619 See \`config.log' for more details." >&2;}
3620 { (exit 77); exit 77; }; }
3621 fi
3622
3623 ac_exeext=$ac_cv_exeext
3624 { echo "$as_me:$LINENO: result: $ac_file" >&5
3625 echo "${ECHO_T}$ac_file" >&6; }
3626
3627 # Check that the compiler produces executables we can run. If not, either
3628 # the compiler is broken, or we cross compile.
3629 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3630 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3631 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3632 # If not cross compiling, check that we can run a simple program.
3633 if test "$cross_compiling" != yes; then
3634 if { ac_try='./$ac_file'
3635 { (case "(($ac_try" in
3636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3637 *) ac_try_echo=$ac_try;;
3638 esac
3639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3640 (eval "$ac_try") 2>&5
3641 ac_status=$?
3642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3643 (exit $ac_status); }; }; then
3644 cross_compiling=no
3645 else
3646 if test "$cross_compiling" = maybe; then
3647 cross_compiling=yes
3648 else
3649 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3650 If you meant to cross compile, use \`--host'.
3651 See \`config.log' for more details." >&5
3652 echo "$as_me: error: cannot run C compiled programs.
3653 If you meant to cross compile, use \`--host'.
3654 See \`config.log' for more details." >&2;}
3655 { (exit 1); exit 1; }; }
3656 fi
3657 fi
3658 fi
3659 { echo "$as_me:$LINENO: result: yes" >&5
3660 echo "${ECHO_T}yes" >&6; }
3661
3662 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3663 ac_clean_files=$ac_clean_files_save
3664 # Check that the compiler produces executables we can run. If not, either
3665 # the compiler is broken, or we cross compile.
3666 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3667 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3668 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3669 echo "${ECHO_T}$cross_compiling" >&6; }
3670
3671 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3672 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3673 if { (ac_try="$ac_link"
3674 case "(($ac_try" in
3675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3676 *) ac_try_echo=$ac_try;;
3677 esac
3678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3679 (eval "$ac_link") 2>&5
3680 ac_status=$?
3681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3682 (exit $ac_status); }; then
3683 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3684 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3685 # work properly (i.e., refer to `conftest.exe'), while it won't with
3686 # `rm'.
3687 for ac_file in conftest.exe conftest conftest.*; do
3688 test -f "$ac_file" || continue
3689 case $ac_file in
3690 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3691 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3692 break;;
3693 * ) break;;
3694 esac
3695 done
3696 else
3697 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." >&5
3699 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3700 See \`config.log' for more details." >&2;}
3701 { (exit 1); exit 1; }; }
3702 fi
3703
3704 rm -f conftest$ac_cv_exeext
3705 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3706 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3707
3708 rm -f conftest.$ac_ext
3709 EXEEXT=$ac_cv_exeext
3710 ac_exeext=$EXEEXT
3711 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3712 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3713 if test "${ac_cv_objext+set}" = set; then
3714 echo $ECHO_N "(cached) $ECHO_C" >&6
3715 else
3716 cat >conftest.$ac_ext <<_ACEOF
3717 /* confdefs.h. */
3718 _ACEOF
3719 cat confdefs.h >>conftest.$ac_ext
3720 cat >>conftest.$ac_ext <<_ACEOF
3721 /* end confdefs.h. */
3722
3723 int
3724 main ()
3725 {
3726
3727 ;
3728 return 0;
3729 }
3730 _ACEOF
3731 rm -f conftest.o conftest.obj
3732 if { (ac_try="$ac_compile"
3733 case "(($ac_try" in
3734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3735 *) ac_try_echo=$ac_try;;
3736 esac
3737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3738 (eval "$ac_compile") 2>&5
3739 ac_status=$?
3740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3741 (exit $ac_status); }; then
3742 for ac_file in conftest.o conftest.obj conftest.*; do
3743 test -f "$ac_file" || continue;
3744 case $ac_file in
3745 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3746 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3747 break;;
3748 esac
3749 done
3750 else
3751 echo "$as_me: failed program was:" >&5
3752 sed 's/^/| /' conftest.$ac_ext >&5
3753
3754 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." >&5
3756 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3757 See \`config.log' for more details." >&2;}
3758 { (exit 1); exit 1; }; }
3759 fi
3760
3761 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3762 fi
3763 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3764 echo "${ECHO_T}$ac_cv_objext" >&6; }
3765 OBJEXT=$ac_cv_objext
3766 ac_objext=$OBJEXT
3767 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3768 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3769 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3770 echo $ECHO_N "(cached) $ECHO_C" >&6
3771 else
3772 cat >conftest.$ac_ext <<_ACEOF
3773 /* confdefs.h. */
3774 _ACEOF
3775 cat confdefs.h >>conftest.$ac_ext
3776 cat >>conftest.$ac_ext <<_ACEOF
3777 /* end confdefs.h. */
3778
3779 int
3780 main ()
3781 {
3782 #ifndef __GNUC__
3783 choke me
3784 #endif
3785
3786 ;
3787 return 0;
3788 }
3789 _ACEOF
3790 rm -f conftest.$ac_objext
3791 if { (ac_try="$ac_compile"
3792 case "(($ac_try" in
3793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3794 *) ac_try_echo=$ac_try;;
3795 esac
3796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3797 (eval "$ac_compile") 2>conftest.er1
3798 ac_status=$?
3799 grep -v '^ *+' conftest.er1 >conftest.err
3800 rm -f conftest.er1
3801 cat conftest.err >&5
3802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3803 (exit $ac_status); } &&
3804 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3805 { (case "(($ac_try" in
3806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3807 *) ac_try_echo=$ac_try;;
3808 esac
3809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3810 (eval "$ac_try") 2>&5
3811 ac_status=$?
3812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3813 (exit $ac_status); }; } &&
3814 { ac_try='test -s conftest.$ac_objext'
3815 { (case "(($ac_try" in
3816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3817 *) ac_try_echo=$ac_try;;
3818 esac
3819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3820 (eval "$ac_try") 2>&5
3821 ac_status=$?
3822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3823 (exit $ac_status); }; }; then
3824 ac_compiler_gnu=yes
3825 else
3826 echo "$as_me: failed program was:" >&5
3827 sed 's/^/| /' conftest.$ac_ext >&5
3828
3829 ac_compiler_gnu=no
3830 fi
3831
3832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3833 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3834
3835 fi
3836 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3837 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3838 GCC=`test $ac_compiler_gnu = yes && echo yes`
3839 ac_test_CFLAGS=${CFLAGS+set}
3840 ac_save_CFLAGS=$CFLAGS
3841 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3842 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3843 if test "${ac_cv_prog_cc_g+set}" = set; then
3844 echo $ECHO_N "(cached) $ECHO_C" >&6
3845 else
3846 ac_save_c_werror_flag=$ac_c_werror_flag
3847 ac_c_werror_flag=yes
3848 ac_cv_prog_cc_g=no
3849 CFLAGS="-g"
3850 cat >conftest.$ac_ext <<_ACEOF
3851 /* confdefs.h. */
3852 _ACEOF
3853 cat confdefs.h >>conftest.$ac_ext
3854 cat >>conftest.$ac_ext <<_ACEOF
3855 /* end confdefs.h. */
3856
3857 int
3858 main ()
3859 {
3860
3861 ;
3862 return 0;
3863 }
3864 _ACEOF
3865 rm -f conftest.$ac_objext
3866 if { (ac_try="$ac_compile"
3867 case "(($ac_try" in
3868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3869 *) ac_try_echo=$ac_try;;
3870 esac
3871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3872 (eval "$ac_compile") 2>conftest.er1
3873 ac_status=$?
3874 grep -v '^ *+' conftest.er1 >conftest.err
3875 rm -f conftest.er1
3876 cat conftest.err >&5
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); } &&
3879 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3880 { (case "(($ac_try" in
3881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3882 *) ac_try_echo=$ac_try;;
3883 esac
3884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3885 (eval "$ac_try") 2>&5
3886 ac_status=$?
3887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3888 (exit $ac_status); }; } &&
3889 { ac_try='test -s conftest.$ac_objext'
3890 { (case "(($ac_try" in
3891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3892 *) ac_try_echo=$ac_try;;
3893 esac
3894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3895 (eval "$ac_try") 2>&5
3896 ac_status=$?
3897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3898 (exit $ac_status); }; }; then
3899 ac_cv_prog_cc_g=yes
3900 else
3901 echo "$as_me: failed program was:" >&5
3902 sed 's/^/| /' conftest.$ac_ext >&5
3903
3904 CFLAGS=""
3905 cat >conftest.$ac_ext <<_ACEOF
3906 /* confdefs.h. */
3907 _ACEOF
3908 cat confdefs.h >>conftest.$ac_ext
3909 cat >>conftest.$ac_ext <<_ACEOF
3910 /* end confdefs.h. */
3911
3912 int
3913 main ()
3914 {
3915
3916 ;
3917 return 0;
3918 }
3919 _ACEOF
3920 rm -f conftest.$ac_objext
3921 if { (ac_try="$ac_compile"
3922 case "(($ac_try" in
3923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3924 *) ac_try_echo=$ac_try;;
3925 esac
3926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3927 (eval "$ac_compile") 2>conftest.er1
3928 ac_status=$?
3929 grep -v '^ *+' conftest.er1 >conftest.err
3930 rm -f conftest.er1
3931 cat conftest.err >&5
3932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3933 (exit $ac_status); } &&
3934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3935 { (case "(($ac_try" in
3936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3937 *) ac_try_echo=$ac_try;;
3938 esac
3939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3940 (eval "$ac_try") 2>&5
3941 ac_status=$?
3942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943 (exit $ac_status); }; } &&
3944 { ac_try='test -s conftest.$ac_objext'
3945 { (case "(($ac_try" in
3946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3947 *) ac_try_echo=$ac_try;;
3948 esac
3949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3950 (eval "$ac_try") 2>&5
3951 ac_status=$?
3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3953 (exit $ac_status); }; }; then
3954 :
3955 else
3956 echo "$as_me: failed program was:" >&5
3957 sed 's/^/| /' conftest.$ac_ext >&5
3958
3959 ac_c_werror_flag=$ac_save_c_werror_flag
3960 CFLAGS="-g"
3961 cat >conftest.$ac_ext <<_ACEOF
3962 /* confdefs.h. */
3963 _ACEOF
3964 cat confdefs.h >>conftest.$ac_ext
3965 cat >>conftest.$ac_ext <<_ACEOF
3966 /* end confdefs.h. */
3967
3968 int
3969 main ()
3970 {
3971
3972 ;
3973 return 0;
3974 }
3975 _ACEOF
3976 rm -f conftest.$ac_objext
3977 if { (ac_try="$ac_compile"
3978 case "(($ac_try" in
3979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3980 *) ac_try_echo=$ac_try;;
3981 esac
3982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3983 (eval "$ac_compile") 2>conftest.er1
3984 ac_status=$?
3985 grep -v '^ *+' conftest.er1 >conftest.err
3986 rm -f conftest.er1
3987 cat conftest.err >&5
3988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3989 (exit $ac_status); } &&
3990 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3991 { (case "(($ac_try" in
3992 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3993 *) ac_try_echo=$ac_try;;
3994 esac
3995 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3996 (eval "$ac_try") 2>&5
3997 ac_status=$?
3998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3999 (exit $ac_status); }; } &&
4000 { ac_try='test -s conftest.$ac_objext'
4001 { (case "(($ac_try" in
4002 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4003 *) ac_try_echo=$ac_try;;
4004 esac
4005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4006 (eval "$ac_try") 2>&5
4007 ac_status=$?
4008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4009 (exit $ac_status); }; }; then
4010 ac_cv_prog_cc_g=yes
4011 else
4012 echo "$as_me: failed program was:" >&5
4013 sed 's/^/| /' conftest.$ac_ext >&5
4014
4015
4016 fi
4017
4018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4019 fi
4020
4021 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4022 fi
4023
4024 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4025 ac_c_werror_flag=$ac_save_c_werror_flag
4026 fi
4027 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4028 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4029 if test "$ac_test_CFLAGS" = set; then
4030 CFLAGS=$ac_save_CFLAGS
4031 elif test $ac_cv_prog_cc_g = yes; then
4032 if test "$GCC" = yes; then
4033 CFLAGS="-g -O2"
4034 else
4035 CFLAGS="-g"
4036 fi
4037 else
4038 if test "$GCC" = yes; then
4039 CFLAGS="-O2"
4040 else
4041 CFLAGS=
4042 fi
4043 fi
4044 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4045 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4046 if test "${ac_cv_prog_cc_c89+set}" = set; then
4047 echo $ECHO_N "(cached) $ECHO_C" >&6
4048 else
4049 ac_cv_prog_cc_c89=no
4050 ac_save_CC=$CC
4051 cat >conftest.$ac_ext <<_ACEOF
4052 /* confdefs.h. */
4053 _ACEOF
4054 cat confdefs.h >>conftest.$ac_ext
4055 cat >>conftest.$ac_ext <<_ACEOF
4056 /* end confdefs.h. */
4057 #include <stdarg.h>
4058 #include <stdio.h>
4059 #include <sys/types.h>
4060 #include <sys/stat.h>
4061 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4062 struct buf { int x; };
4063 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4064 static char *e (p, i)
4065 char **p;
4066 int i;
4067 {
4068 return p[i];
4069 }
4070 static char *f (char * (*g) (char **, int), char **p, ...)
4071 {
4072 char *s;
4073 va_list v;
4074 va_start (v,p);
4075 s = g (p, va_arg (v,int));
4076 va_end (v);
4077 return s;
4078 }
4079
4080 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4081 function prototypes and stuff, but not '\xHH' hex character constants.
4082 These don't provoke an error unfortunately, instead are silently treated
4083 as 'x'. The following induces an error, until -std is added to get
4084 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4085 array size at least. It's necessary to write '\x00'==0 to get something
4086 that's true only with -std. */
4087 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4088
4089 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4090 inside strings and character constants. */
4091 #define FOO(x) 'x'
4092 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4093
4094 int test (int i, double x);
4095 struct s1 {int (*f) (int a);};
4096 struct s2 {int (*f) (double a);};
4097 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4098 int argc;
4099 char **argv;
4100 int
4101 main ()
4102 {
4103 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4104 ;
4105 return 0;
4106 }
4107 _ACEOF
4108 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4109 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4110 do
4111 CC="$ac_save_CC $ac_arg"
4112 rm -f conftest.$ac_objext
4113 if { (ac_try="$ac_compile"
4114 case "(($ac_try" in
4115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4116 *) ac_try_echo=$ac_try;;
4117 esac
4118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4119 (eval "$ac_compile") 2>conftest.er1
4120 ac_status=$?
4121 grep -v '^ *+' conftest.er1 >conftest.err
4122 rm -f conftest.er1
4123 cat conftest.err >&5
4124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4125 (exit $ac_status); } &&
4126 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4127 { (case "(($ac_try" in
4128 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4129 *) ac_try_echo=$ac_try;;
4130 esac
4131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4132 (eval "$ac_try") 2>&5
4133 ac_status=$?
4134 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4135 (exit $ac_status); }; } &&
4136 { ac_try='test -s conftest.$ac_objext'
4137 { (case "(($ac_try" in
4138 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4139 *) ac_try_echo=$ac_try;;
4140 esac
4141 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4142 (eval "$ac_try") 2>&5
4143 ac_status=$?
4144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4145 (exit $ac_status); }; }; then
4146 ac_cv_prog_cc_c89=$ac_arg
4147 else
4148 echo "$as_me: failed program was:" >&5
4149 sed 's/^/| /' conftest.$ac_ext >&5
4150
4151
4152 fi
4153
4154 rm -f core conftest.err conftest.$ac_objext
4155 test "x$ac_cv_prog_cc_c89" != "xno" && break
4156 done
4157 rm -f conftest.$ac_ext
4158 CC=$ac_save_CC
4159
4160 fi
4161 # AC_CACHE_VAL
4162 case "x$ac_cv_prog_cc_c89" in
4163 x)
4164 { echo "$as_me:$LINENO: result: none needed" >&5
4165 echo "${ECHO_T}none needed" >&6; } ;;
4166 xno)
4167 { echo "$as_me:$LINENO: result: unsupported" >&5
4168 echo "${ECHO_T}unsupported" >&6; } ;;
4169 *)
4170 CC="$CC $ac_cv_prog_cc_c89"
4171 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4172 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4173 esac
4174
4175
4176 ac_ext=c
4177 ac_cpp='$CPP $CPPFLAGS'
4178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4181
4182
4183 # On Suns, sometimes $CPP names a directory.
4184 if test -n "$CPP" && test -d "$CPP"; then
4185 CPP=
4186 fi
4187
4188 #### Some systems specify a CPP to use unless we are using GCC.
4189 #### Now that we know whether we are using GCC, we can decide whether
4190 #### to use that one.
4191 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4192 then
4193 CPP="$NON_GNU_CPP"
4194 fi
4195
4196 #### Some systems specify a CC to use unless we are using GCC.
4197 #### Now that we know whether we are using GCC, we can decide whether
4198 #### to use that one.
4199 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4200 test x$cc_specified != xyes
4201 then
4202 CC="$NON_GNU_CC"
4203 fi
4204
4205 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4206 then
4207 CC="$CC $GCC_TEST_OPTIONS"
4208 fi
4209
4210 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4211 then
4212 CC="$CC $NON_GCC_TEST_OPTIONS"
4213 fi
4214
4215
4216 ac_ext=c
4217 ac_cpp='$CPP $CPPFLAGS'
4218 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4219 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4220 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4221 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4222 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4223 # On Suns, sometimes $CPP names a directory.
4224 if test -n "$CPP" && test -d "$CPP"; then
4225 CPP=
4226 fi
4227 if test -z "$CPP"; then
4228 if test "${ac_cv_prog_CPP+set}" = set; then
4229 echo $ECHO_N "(cached) $ECHO_C" >&6
4230 else
4231 # Double quotes because CPP needs to be expanded
4232 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4233 do
4234 ac_preproc_ok=false
4235 for ac_c_preproc_warn_flag in '' yes
4236 do
4237 # Use a header file that comes with gcc, so configuring glibc
4238 # with a fresh cross-compiler works.
4239 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4240 # <limits.h> exists even on freestanding compilers.
4241 # On the NeXT, cc -E runs the code through the compiler's parser,
4242 # not just through cpp. "Syntax error" is here to catch this case.
4243 cat >conftest.$ac_ext <<_ACEOF
4244 /* confdefs.h. */
4245 _ACEOF
4246 cat confdefs.h >>conftest.$ac_ext
4247 cat >>conftest.$ac_ext <<_ACEOF
4248 /* end confdefs.h. */
4249 #ifdef __STDC__
4250 # include <limits.h>
4251 #else
4252 # include <assert.h>
4253 #endif
4254 Syntax error
4255 _ACEOF
4256 if { (ac_try="$ac_cpp conftest.$ac_ext"
4257 case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4263 ac_status=$?
4264 grep -v '^ *+' conftest.er1 >conftest.err
4265 rm -f conftest.er1
4266 cat conftest.err >&5
4267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4268 (exit $ac_status); } >/dev/null; then
4269 if test -s conftest.err; then
4270 ac_cpp_err=$ac_c_preproc_warn_flag
4271 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4272 else
4273 ac_cpp_err=
4274 fi
4275 else
4276 ac_cpp_err=yes
4277 fi
4278 if test -z "$ac_cpp_err"; then
4279 :
4280 else
4281 echo "$as_me: failed program was:" >&5
4282 sed 's/^/| /' conftest.$ac_ext >&5
4283
4284 # Broken: fails on valid input.
4285 continue
4286 fi
4287
4288 rm -f conftest.err conftest.$ac_ext
4289
4290 # OK, works on sane cases. Now check whether nonexistent headers
4291 # can be detected and how.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #include <ac_nonexistent.h>
4299 _ACEOF
4300 if { (ac_try="$ac_cpp conftest.$ac_ext"
4301 case "(($ac_try" in
4302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4303 *) ac_try_echo=$ac_try;;
4304 esac
4305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4306 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4307 ac_status=$?
4308 grep -v '^ *+' conftest.er1 >conftest.err
4309 rm -f conftest.er1
4310 cat conftest.err >&5
4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312 (exit $ac_status); } >/dev/null; then
4313 if test -s conftest.err; then
4314 ac_cpp_err=$ac_c_preproc_warn_flag
4315 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4316 else
4317 ac_cpp_err=
4318 fi
4319 else
4320 ac_cpp_err=yes
4321 fi
4322 if test -z "$ac_cpp_err"; then
4323 # Broken: success on invalid input.
4324 continue
4325 else
4326 echo "$as_me: failed program was:" >&5
4327 sed 's/^/| /' conftest.$ac_ext >&5
4328
4329 # Passes both tests.
4330 ac_preproc_ok=:
4331 break
4332 fi
4333
4334 rm -f conftest.err conftest.$ac_ext
4335
4336 done
4337 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4338 rm -f conftest.err conftest.$ac_ext
4339 if $ac_preproc_ok; then
4340 break
4341 fi
4342
4343 done
4344 ac_cv_prog_CPP=$CPP
4345
4346 fi
4347 CPP=$ac_cv_prog_CPP
4348 else
4349 ac_cv_prog_CPP=$CPP
4350 fi
4351 { echo "$as_me:$LINENO: result: $CPP" >&5
4352 echo "${ECHO_T}$CPP" >&6; }
4353 ac_preproc_ok=false
4354 for ac_c_preproc_warn_flag in '' yes
4355 do
4356 # Use a header file that comes with gcc, so configuring glibc
4357 # with a fresh cross-compiler works.
4358 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4359 # <limits.h> exists even on freestanding compilers.
4360 # On the NeXT, cc -E runs the code through the compiler's parser,
4361 # not just through cpp. "Syntax error" is here to catch this case.
4362 cat >conftest.$ac_ext <<_ACEOF
4363 /* confdefs.h. */
4364 _ACEOF
4365 cat confdefs.h >>conftest.$ac_ext
4366 cat >>conftest.$ac_ext <<_ACEOF
4367 /* end confdefs.h. */
4368 #ifdef __STDC__
4369 # include <limits.h>
4370 #else
4371 # include <assert.h>
4372 #endif
4373 Syntax error
4374 _ACEOF
4375 if { (ac_try="$ac_cpp conftest.$ac_ext"
4376 case "(($ac_try" in
4377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4378 *) ac_try_echo=$ac_try;;
4379 esac
4380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4381 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4382 ac_status=$?
4383 grep -v '^ *+' conftest.er1 >conftest.err
4384 rm -f conftest.er1
4385 cat conftest.err >&5
4386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4387 (exit $ac_status); } >/dev/null; then
4388 if test -s conftest.err; then
4389 ac_cpp_err=$ac_c_preproc_warn_flag
4390 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4391 else
4392 ac_cpp_err=
4393 fi
4394 else
4395 ac_cpp_err=yes
4396 fi
4397 if test -z "$ac_cpp_err"; then
4398 :
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 # Broken: fails on valid input.
4404 continue
4405 fi
4406
4407 rm -f conftest.err conftest.$ac_ext
4408
4409 # OK, works on sane cases. Now check whether nonexistent headers
4410 # can be detected and how.
4411 cat >conftest.$ac_ext <<_ACEOF
4412 /* confdefs.h. */
4413 _ACEOF
4414 cat confdefs.h >>conftest.$ac_ext
4415 cat >>conftest.$ac_ext <<_ACEOF
4416 /* end confdefs.h. */
4417 #include <ac_nonexistent.h>
4418 _ACEOF
4419 if { (ac_try="$ac_cpp conftest.$ac_ext"
4420 case "(($ac_try" in
4421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4422 *) ac_try_echo=$ac_try;;
4423 esac
4424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4425 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4426 ac_status=$?
4427 grep -v '^ *+' conftest.er1 >conftest.err
4428 rm -f conftest.er1
4429 cat conftest.err >&5
4430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4431 (exit $ac_status); } >/dev/null; then
4432 if test -s conftest.err; then
4433 ac_cpp_err=$ac_c_preproc_warn_flag
4434 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4435 else
4436 ac_cpp_err=
4437 fi
4438 else
4439 ac_cpp_err=yes
4440 fi
4441 if test -z "$ac_cpp_err"; then
4442 # Broken: success on invalid input.
4443 continue
4444 else
4445 echo "$as_me: failed program was:" >&5
4446 sed 's/^/| /' conftest.$ac_ext >&5
4447
4448 # Passes both tests.
4449 ac_preproc_ok=:
4450 break
4451 fi
4452
4453 rm -f conftest.err conftest.$ac_ext
4454
4455 done
4456 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4457 rm -f conftest.err conftest.$ac_ext
4458 if $ac_preproc_ok; then
4459 :
4460 else
4461 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4462 See \`config.log' for more details." >&5
4463 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4464 See \`config.log' for more details." >&2;}
4465 { (exit 1); exit 1; }; }
4466 fi
4467
4468 ac_ext=c
4469 ac_cpp='$CPP $CPPFLAGS'
4470 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4471 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4472 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4473
4474
4475 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4476 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4477 if test "${ac_cv_path_GREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 # Extract the first word of "grep ggrep" to use in msg output
4481 if test -z "$GREP"; then
4482 set dummy grep ggrep; ac_prog_name=$2
4483 if test "${ac_cv_path_GREP+set}" = set; then
4484 echo $ECHO_N "(cached) $ECHO_C" >&6
4485 else
4486 ac_path_GREP_found=false
4487 # Loop through the user's path and test for each of PROGNAME-LIST
4488 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4489 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4490 do
4491 IFS=$as_save_IFS
4492 test -z "$as_dir" && as_dir=.
4493 for ac_prog in grep ggrep; do
4494 for ac_exec_ext in '' $ac_executable_extensions; do
4495 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4496 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4497 # Check for GNU ac_path_GREP and select it if it is found.
4498 # Check for GNU $ac_path_GREP
4499 case `"$ac_path_GREP" --version 2>&1` in
4500 *GNU*)
4501 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4502 *)
4503 ac_count=0
4504 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4505 while :
4506 do
4507 cat "conftest.in" "conftest.in" >"conftest.tmp"
4508 mv "conftest.tmp" "conftest.in"
4509 cp "conftest.in" "conftest.nl"
4510 echo 'GREP' >> "conftest.nl"
4511 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4512 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4513 ac_count=`expr $ac_count + 1`
4514 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4515 # Best one so far, save it but keep looking for a better one
4516 ac_cv_path_GREP="$ac_path_GREP"
4517 ac_path_GREP_max=$ac_count
4518 fi
4519 # 10*(2^10) chars as input seems more than enough
4520 test $ac_count -gt 10 && break
4521 done
4522 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4523 esac
4524
4525
4526 $ac_path_GREP_found && break 3
4527 done
4528 done
4529
4530 done
4531 IFS=$as_save_IFS
4532
4533
4534 fi
4535
4536 GREP="$ac_cv_path_GREP"
4537 if test -z "$GREP"; then
4538 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4539 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4540 { (exit 1); exit 1; }; }
4541 fi
4542
4543 else
4544 ac_cv_path_GREP=$GREP
4545 fi
4546
4547
4548 fi
4549 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4550 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4551 GREP="$ac_cv_path_GREP"
4552
4553
4554 { echo "$as_me:$LINENO: checking for egrep" >&5
4555 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4556 if test "${ac_cv_path_EGREP+set}" = set; then
4557 echo $ECHO_N "(cached) $ECHO_C" >&6
4558 else
4559 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4560 then ac_cv_path_EGREP="$GREP -E"
4561 else
4562 # Extract the first word of "egrep" to use in msg output
4563 if test -z "$EGREP"; then
4564 set dummy egrep; ac_prog_name=$2
4565 if test "${ac_cv_path_EGREP+set}" = set; then
4566 echo $ECHO_N "(cached) $ECHO_C" >&6
4567 else
4568 ac_path_EGREP_found=false
4569 # Loop through the user's path and test for each of PROGNAME-LIST
4570 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4571 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4572 do
4573 IFS=$as_save_IFS
4574 test -z "$as_dir" && as_dir=.
4575 for ac_prog in egrep; do
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4578 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4579 # Check for GNU ac_path_EGREP and select it if it is found.
4580 # Check for GNU $ac_path_EGREP
4581 case `"$ac_path_EGREP" --version 2>&1` in
4582 *GNU*)
4583 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4584 *)
4585 ac_count=0
4586 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4587 while :
4588 do
4589 cat "conftest.in" "conftest.in" >"conftest.tmp"
4590 mv "conftest.tmp" "conftest.in"
4591 cp "conftest.in" "conftest.nl"
4592 echo 'EGREP' >> "conftest.nl"
4593 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4594 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4595 ac_count=`expr $ac_count + 1`
4596 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4597 # Best one so far, save it but keep looking for a better one
4598 ac_cv_path_EGREP="$ac_path_EGREP"
4599 ac_path_EGREP_max=$ac_count
4600 fi
4601 # 10*(2^10) chars as input seems more than enough
4602 test $ac_count -gt 10 && break
4603 done
4604 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4605 esac
4606
4607
4608 $ac_path_EGREP_found && break 3
4609 done
4610 done
4611
4612 done
4613 IFS=$as_save_IFS
4614
4615
4616 fi
4617
4618 EGREP="$ac_cv_path_EGREP"
4619 if test -z "$EGREP"; then
4620 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4621 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4622 { (exit 1); exit 1; }; }
4623 fi
4624
4625 else
4626 ac_cv_path_EGREP=$EGREP
4627 fi
4628
4629
4630 fi
4631 fi
4632 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4633 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4634 EGREP="$ac_cv_path_EGREP"
4635
4636
4637
4638 { echo "$as_me:$LINENO: checking for AIX" >&5
4639 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4640 cat >conftest.$ac_ext <<_ACEOF
4641 /* confdefs.h. */
4642 _ACEOF
4643 cat confdefs.h >>conftest.$ac_ext
4644 cat >>conftest.$ac_ext <<_ACEOF
4645 /* end confdefs.h. */
4646 #ifdef _AIX
4647 yes
4648 #endif
4649
4650 _ACEOF
4651 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4652 $EGREP "yes" >/dev/null 2>&1; then
4653 { echo "$as_me:$LINENO: result: yes" >&5
4654 echo "${ECHO_T}yes" >&6; }
4655 cat >>confdefs.h <<\_ACEOF
4656 #define _ALL_SOURCE 1
4657 _ACEOF
4658
4659 else
4660 { echo "$as_me:$LINENO: result: no" >&5
4661 echo "${ECHO_T}no" >&6; }
4662 fi
4663 rm -f conftest*
4664
4665
4666
4667 cat >>confdefs.h <<\_ACEOF
4668 #define _GNU_SOURCE 1
4669 _ACEOF
4670
4671
4672
4673 ### Use -Wno-pointer-sign if the compiler supports it
4674 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4675 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4676 SAVE_CFLAGS="$CFLAGS"
4677 CFLAGS="$CFLAGS -Wno-pointer-sign"
4678 cat >conftest.$ac_ext <<_ACEOF
4679 /* confdefs.h. */
4680 _ACEOF
4681 cat confdefs.h >>conftest.$ac_ext
4682 cat >>conftest.$ac_ext <<_ACEOF
4683 /* end confdefs.h. */
4684
4685 int
4686 main ()
4687 {
4688
4689 ;
4690 return 0;
4691 }
4692 _ACEOF
4693 rm -f conftest.$ac_objext
4694 if { (ac_try="$ac_compile"
4695 case "(($ac_try" in
4696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4697 *) ac_try_echo=$ac_try;;
4698 esac
4699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4700 (eval "$ac_compile") 2>conftest.er1
4701 ac_status=$?
4702 grep -v '^ *+' conftest.er1 >conftest.err
4703 rm -f conftest.er1
4704 cat conftest.err >&5
4705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4706 (exit $ac_status); } &&
4707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4708 { (case "(($ac_try" in
4709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4710 *) ac_try_echo=$ac_try;;
4711 esac
4712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4713 (eval "$ac_try") 2>&5
4714 ac_status=$?
4715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4716 (exit $ac_status); }; } &&
4717 { ac_try='test -s conftest.$ac_objext'
4718 { (case "(($ac_try" in
4719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4720 *) ac_try_echo=$ac_try;;
4721 esac
4722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4723 (eval "$ac_try") 2>&5
4724 ac_status=$?
4725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4726 (exit $ac_status); }; }; then
4727 has_option=yes
4728 else
4729 echo "$as_me: failed program was:" >&5
4730 sed 's/^/| /' conftest.$ac_ext >&5
4731
4732 has_option=no
4733 fi
4734
4735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4736 if test $has_option = yes; then
4737 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4738 fi
4739 { echo "$as_me:$LINENO: result: $has_option" >&5
4740 echo "${ECHO_T}$has_option" >&6; }
4741 CFLAGS="$SAVE_CFLAGS"
4742 unset has_option
4743 unset SAVE_CFLAGS
4744
4745 #### Some other nice autoconf tests.
4746
4747 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4748 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4749 LN_S=$as_ln_s
4750 if test "$LN_S" = "ln -s"; then
4751 { echo "$as_me:$LINENO: result: yes" >&5
4752 echo "${ECHO_T}yes" >&6; }
4753 else
4754 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4755 echo "${ECHO_T}no, using $LN_S" >&6; }
4756 fi
4757
4758 ac_ext=c
4759 ac_cpp='$CPP $CPPFLAGS'
4760 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4761 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4762 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4763 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4764 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4765 # On Suns, sometimes $CPP names a directory.
4766 if test -n "$CPP" && test -d "$CPP"; then
4767 CPP=
4768 fi
4769 if test -z "$CPP"; then
4770 if test "${ac_cv_prog_CPP+set}" = set; then
4771 echo $ECHO_N "(cached) $ECHO_C" >&6
4772 else
4773 # Double quotes because CPP needs to be expanded
4774 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4775 do
4776 ac_preproc_ok=false
4777 for ac_c_preproc_warn_flag in '' yes
4778 do
4779 # Use a header file that comes with gcc, so configuring glibc
4780 # with a fresh cross-compiler works.
4781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 # <limits.h> exists even on freestanding compilers.
4783 # On the NeXT, cc -E runs the code through the compiler's parser,
4784 # not just through cpp. "Syntax error" is here to catch this case.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #ifdef __STDC__
4792 # include <limits.h>
4793 #else
4794 # include <assert.h>
4795 #endif
4796 Syntax error
4797 _ACEOF
4798 if { (ac_try="$ac_cpp conftest.$ac_ext"
4799 case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null; then
4811 if test -s conftest.err; then
4812 ac_cpp_err=$ac_c_preproc_warn_flag
4813 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4814 else
4815 ac_cpp_err=
4816 fi
4817 else
4818 ac_cpp_err=yes
4819 fi
4820 if test -z "$ac_cpp_err"; then
4821 :
4822 else
4823 echo "$as_me: failed program was:" >&5
4824 sed 's/^/| /' conftest.$ac_ext >&5
4825
4826 # Broken: fails on valid input.
4827 continue
4828 fi
4829
4830 rm -f conftest.err conftest.$ac_ext
4831
4832 # OK, works on sane cases. Now check whether nonexistent headers
4833 # can be detected and how.
4834 cat >conftest.$ac_ext <<_ACEOF
4835 /* confdefs.h. */
4836 _ACEOF
4837 cat confdefs.h >>conftest.$ac_ext
4838 cat >>conftest.$ac_ext <<_ACEOF
4839 /* end confdefs.h. */
4840 #include <ac_nonexistent.h>
4841 _ACEOF
4842 if { (ac_try="$ac_cpp conftest.$ac_ext"
4843 case "(($ac_try" in
4844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4845 *) ac_try_echo=$ac_try;;
4846 esac
4847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4848 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4849 ac_status=$?
4850 grep -v '^ *+' conftest.er1 >conftest.err
4851 rm -f conftest.er1
4852 cat conftest.err >&5
4853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4854 (exit $ac_status); } >/dev/null; then
4855 if test -s conftest.err; then
4856 ac_cpp_err=$ac_c_preproc_warn_flag
4857 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4858 else
4859 ac_cpp_err=
4860 fi
4861 else
4862 ac_cpp_err=yes
4863 fi
4864 if test -z "$ac_cpp_err"; then
4865 # Broken: success on invalid input.
4866 continue
4867 else
4868 echo "$as_me: failed program was:" >&5
4869 sed 's/^/| /' conftest.$ac_ext >&5
4870
4871 # Passes both tests.
4872 ac_preproc_ok=:
4873 break
4874 fi
4875
4876 rm -f conftest.err conftest.$ac_ext
4877
4878 done
4879 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4880 rm -f conftest.err conftest.$ac_ext
4881 if $ac_preproc_ok; then
4882 break
4883 fi
4884
4885 done
4886 ac_cv_prog_CPP=$CPP
4887
4888 fi
4889 CPP=$ac_cv_prog_CPP
4890 else
4891 ac_cv_prog_CPP=$CPP
4892 fi
4893 { echo "$as_me:$LINENO: result: $CPP" >&5
4894 echo "${ECHO_T}$CPP" >&6; }
4895 ac_preproc_ok=false
4896 for ac_c_preproc_warn_flag in '' yes
4897 do
4898 # Use a header file that comes with gcc, so configuring glibc
4899 # with a fresh cross-compiler works.
4900 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4901 # <limits.h> exists even on freestanding compilers.
4902 # On the NeXT, cc -E runs the code through the compiler's parser,
4903 # not just through cpp. "Syntax error" is here to catch this case.
4904 cat >conftest.$ac_ext <<_ACEOF
4905 /* confdefs.h. */
4906 _ACEOF
4907 cat confdefs.h >>conftest.$ac_ext
4908 cat >>conftest.$ac_ext <<_ACEOF
4909 /* end confdefs.h. */
4910 #ifdef __STDC__
4911 # include <limits.h>
4912 #else
4913 # include <assert.h>
4914 #endif
4915 Syntax error
4916 _ACEOF
4917 if { (ac_try="$ac_cpp conftest.$ac_ext"
4918 case "(($ac_try" in
4919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4920 *) ac_try_echo=$ac_try;;
4921 esac
4922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4923 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4924 ac_status=$?
4925 grep -v '^ *+' conftest.er1 >conftest.err
4926 rm -f conftest.er1
4927 cat conftest.err >&5
4928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4929 (exit $ac_status); } >/dev/null; then
4930 if test -s conftest.err; then
4931 ac_cpp_err=$ac_c_preproc_warn_flag
4932 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4933 else
4934 ac_cpp_err=
4935 fi
4936 else
4937 ac_cpp_err=yes
4938 fi
4939 if test -z "$ac_cpp_err"; then
4940 :
4941 else
4942 echo "$as_me: failed program was:" >&5
4943 sed 's/^/| /' conftest.$ac_ext >&5
4944
4945 # Broken: fails on valid input.
4946 continue
4947 fi
4948
4949 rm -f conftest.err conftest.$ac_ext
4950
4951 # OK, works on sane cases. Now check whether nonexistent headers
4952 # can be detected and how.
4953 cat >conftest.$ac_ext <<_ACEOF
4954 /* confdefs.h. */
4955 _ACEOF
4956 cat confdefs.h >>conftest.$ac_ext
4957 cat >>conftest.$ac_ext <<_ACEOF
4958 /* end confdefs.h. */
4959 #include <ac_nonexistent.h>
4960 _ACEOF
4961 if { (ac_try="$ac_cpp conftest.$ac_ext"
4962 case "(($ac_try" in
4963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4964 *) ac_try_echo=$ac_try;;
4965 esac
4966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4968 ac_status=$?
4969 grep -v '^ *+' conftest.er1 >conftest.err
4970 rm -f conftest.er1
4971 cat conftest.err >&5
4972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4973 (exit $ac_status); } >/dev/null; then
4974 if test -s conftest.err; then
4975 ac_cpp_err=$ac_c_preproc_warn_flag
4976 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4977 else
4978 ac_cpp_err=
4979 fi
4980 else
4981 ac_cpp_err=yes
4982 fi
4983 if test -z "$ac_cpp_err"; then
4984 # Broken: success on invalid input.
4985 continue
4986 else
4987 echo "$as_me: failed program was:" >&5
4988 sed 's/^/| /' conftest.$ac_ext >&5
4989
4990 # Passes both tests.
4991 ac_preproc_ok=:
4992 break
4993 fi
4994
4995 rm -f conftest.err conftest.$ac_ext
4996
4997 done
4998 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4999 rm -f conftest.err conftest.$ac_ext
5000 if $ac_preproc_ok; then
5001 :
5002 else
5003 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5004 See \`config.log' for more details." >&5
5005 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5006 See \`config.log' for more details." >&2;}
5007 { (exit 1); exit 1; }; }
5008 fi
5009
5010 ac_ext=c
5011 ac_cpp='$CPP $CPPFLAGS'
5012 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5013 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5014 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5015
5016 # Find a good install program. We prefer a C program (faster),
5017 # so one script is as good as another. But avoid the broken or
5018 # incompatible versions:
5019 # SysV /etc/install, /usr/sbin/install
5020 # SunOS /usr/etc/install
5021 # IRIX /sbin/install
5022 # AIX /bin/install
5023 # AmigaOS /C/install, which installs bootblocks on floppy discs
5024 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5025 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5026 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5027 # OS/2's system install, which has a completely different semantic
5028 # ./install, which can be erroneously created by make from ./install.sh.
5029 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5030 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5031 if test -z "$INSTALL"; then
5032 if test "${ac_cv_path_install+set}" = set; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5036 for as_dir in $PATH
5037 do
5038 IFS=$as_save_IFS
5039 test -z "$as_dir" && as_dir=.
5040 # Account for people who put trailing slashes in PATH elements.
5041 case $as_dir/ in
5042 ./ | .// | /cC/* | \
5043 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5044 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5045 /usr/ucb/* ) ;;
5046 *)
5047 # OSF1 and SCO ODT 3.0 have their own names for install.
5048 # Don't use installbsd from OSF since it installs stuff as root
5049 # by default.
5050 for ac_prog in ginstall scoinst install; do
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
5053 if test $ac_prog = install &&
5054 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5055 # AIX install. It has an incompatible calling convention.
5056 :
5057 elif test $ac_prog = install &&
5058 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5059 # program-specific install script used by HP pwplus--don't use.
5060 :
5061 else
5062 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5063 break 3
5064 fi
5065 fi
5066 done
5067 done
5068 ;;
5069 esac
5070 done
5071 IFS=$as_save_IFS
5072
5073
5074 fi
5075 if test "${ac_cv_path_install+set}" = set; then
5076 INSTALL=$ac_cv_path_install
5077 else
5078 # As a last resort, use the slow shell script. Don't cache a
5079 # value for INSTALL within a source directory, because that will
5080 # break other packages using the cache if that directory is
5081 # removed, or if the value is a relative name.
5082 INSTALL=$ac_install_sh
5083 fi
5084 fi
5085 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5086 echo "${ECHO_T}$INSTALL" >&6; }
5087
5088 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5089 # It thinks the first close brace ends the variable substitution.
5090 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5091
5092 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5093
5094 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5095
5096 if test "x$RANLIB" = x; then
5097 if test -n "$ac_tool_prefix"; then
5098 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5099 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5100 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5101 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5102 if test "${ac_cv_prog_RANLIB+set}" = set; then
5103 echo $ECHO_N "(cached) $ECHO_C" >&6
5104 else
5105 if test -n "$RANLIB"; then
5106 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5107 else
5108 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5109 for as_dir in $PATH
5110 do
5111 IFS=$as_save_IFS
5112 test -z "$as_dir" && as_dir=.
5113 for ac_exec_ext in '' $ac_executable_extensions; do
5114 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5115 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5116 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5117 break 2
5118 fi
5119 done
5120 done
5121 IFS=$as_save_IFS
5122
5123 fi
5124 fi
5125 RANLIB=$ac_cv_prog_RANLIB
5126 if test -n "$RANLIB"; then
5127 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5128 echo "${ECHO_T}$RANLIB" >&6; }
5129 else
5130 { echo "$as_me:$LINENO: result: no" >&5
5131 echo "${ECHO_T}no" >&6; }
5132 fi
5133
5134
5135 fi
5136 if test -z "$ac_cv_prog_RANLIB"; then
5137 ac_ct_RANLIB=$RANLIB
5138 # Extract the first word of "ranlib", so it can be a program name with args.
5139 set dummy ranlib; ac_word=$2
5140 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5141 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5142 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5143 echo $ECHO_N "(cached) $ECHO_C" >&6
5144 else
5145 if test -n "$ac_ct_RANLIB"; then
5146 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5147 else
5148 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5149 for as_dir in $PATH
5150 do
5151 IFS=$as_save_IFS
5152 test -z "$as_dir" && as_dir=.
5153 for ac_exec_ext in '' $ac_executable_extensions; do
5154 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5155 ac_cv_prog_ac_ct_RANLIB="ranlib"
5156 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5157 break 2
5158 fi
5159 done
5160 done
5161 IFS=$as_save_IFS
5162
5163 fi
5164 fi
5165 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5166 if test -n "$ac_ct_RANLIB"; then
5167 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5168 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5169 else
5170 { echo "$as_me:$LINENO: result: no" >&5
5171 echo "${ECHO_T}no" >&6; }
5172 fi
5173
5174 if test "x$ac_ct_RANLIB" = x; then
5175 RANLIB=":"
5176 else
5177 case $cross_compiling:$ac_tool_warned in
5178 yes:)
5179 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5180 whose name does not start with the host triplet. If you think this
5181 configuration is useful to you, please write to autoconf@gnu.org." >&5
5182 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5183 whose name does not start with the host triplet. If you think this
5184 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5185 ac_tool_warned=yes ;;
5186 esac
5187 RANLIB=$ac_ct_RANLIB
5188 fi
5189 else
5190 RANLIB="$ac_cv_prog_RANLIB"
5191 fi
5192
5193 fi
5194 # Extract the first word of "install-info", so it can be a program name with args.
5195 set dummy install-info; ac_word=$2
5196 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5197 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5198 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5199 echo $ECHO_N "(cached) $ECHO_C" >&6
5200 else
5201 case $INSTALL_INFO in
5202 [\\/]* | ?:[\\/]*)
5203 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5204 ;;
5205 *)
5206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5207 for as_dir in $PATH
5208 do
5209 IFS=$as_save_IFS
5210 test -z "$as_dir" && as_dir=.
5211 for ac_exec_ext in '' $ac_executable_extensions; do
5212 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5213 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5214 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5215 break 2
5216 fi
5217 done
5218 done
5219 IFS=$as_save_IFS
5220
5221 ;;
5222 esac
5223 fi
5224 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5225 if test -n "$INSTALL_INFO"; then
5226 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5227 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5228 else
5229 { echo "$as_me:$LINENO: result: no" >&5
5230 echo "${ECHO_T}no" >&6; }
5231 fi
5232
5233
5234 # Extract the first word of "install-info", so it can be a program name with args.
5235 set dummy install-info; ac_word=$2
5236 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5237 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5238 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5239 echo $ECHO_N "(cached) $ECHO_C" >&6
5240 else
5241 case $INSTALL_INFO in
5242 [\\/]* | ?:[\\/]*)
5243 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5244 ;;
5245 *)
5246 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5247 for as_dir in /usr/sbin
5248 do
5249 IFS=$as_save_IFS
5250 test -z "$as_dir" && as_dir=.
5251 for ac_exec_ext in '' $ac_executable_extensions; do
5252 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5253 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5254 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5255 break 2
5256 fi
5257 done
5258 done
5259 IFS=$as_save_IFS
5260
5261 ;;
5262 esac
5263 fi
5264 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5265 if test -n "$INSTALL_INFO"; then
5266 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5267 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5268 else
5269 { echo "$as_me:$LINENO: result: no" >&5
5270 echo "${ECHO_T}no" >&6; }
5271 fi
5272
5273
5274 # Extract the first word of "install-info", so it can be a program name with args.
5275 set dummy install-info; ac_word=$2
5276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5278 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 else
5281 case $INSTALL_INFO in
5282 [\\/]* | ?:[\\/]*)
5283 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5284 ;;
5285 *)
5286 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5287 for as_dir in /sbin
5288 do
5289 IFS=$as_save_IFS
5290 test -z "$as_dir" && as_dir=.
5291 for ac_exec_ext in '' $ac_executable_extensions; do
5292 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5293 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5294 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5295 break 2
5296 fi
5297 done
5298 done
5299 IFS=$as_save_IFS
5300
5301 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5302 ;;
5303 esac
5304 fi
5305 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5306 if test -n "$INSTALL_INFO"; then
5307 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5308 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5309 else
5310 { echo "$as_me:$LINENO: result: no" >&5
5311 echo "${ECHO_T}no" >&6; }
5312 fi
5313
5314
5315 # Extract the first word of "gzip", so it can be a program name with args.
5316 set dummy gzip; ac_word=$2
5317 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5318 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5319 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5320 echo $ECHO_N "(cached) $ECHO_C" >&6
5321 else
5322 case $GZIP_PROG in
5323 [\\/]* | ?:[\\/]*)
5324 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5325 ;;
5326 *)
5327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5328 for as_dir in $PATH
5329 do
5330 IFS=$as_save_IFS
5331 test -z "$as_dir" && as_dir=.
5332 for ac_exec_ext in '' $ac_executable_extensions; do
5333 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5334 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5335 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5336 break 2
5337 fi
5338 done
5339 done
5340 IFS=$as_save_IFS
5341
5342 ;;
5343 esac
5344 fi
5345 GZIP_PROG=$ac_cv_path_GZIP_PROG
5346 if test -n "$GZIP_PROG"; then
5347 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5348 echo "${ECHO_T}$GZIP_PROG" >&6; }
5349 else
5350 { echo "$as_me:$LINENO: result: no" >&5
5351 echo "${ECHO_T}no" >&6; }
5352 fi
5353
5354
5355
5356
5357 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5358 then
5359 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5360 fi
5361
5362 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5363 then
5364 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5365 fi
5366
5367
5368 late_LDFLAGS=$LDFLAGS
5369 if test "$GCC" = yes; then
5370 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5371 else
5372 LDFLAGS="$LDFLAGS -znocombreloc"
5373 fi
5374
5375 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5376 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5377 cat >conftest.$ac_ext <<_ACEOF
5378 main(){return 0;}
5379 _ACEOF
5380 rm -f conftest.$ac_objext conftest$ac_exeext
5381 if { (ac_try="$ac_link"
5382 case "(($ac_try" in
5383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5384 *) ac_try_echo=$ac_try;;
5385 esac
5386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5387 (eval "$ac_link") 2>conftest.er1
5388 ac_status=$?
5389 grep -v '^ *+' conftest.er1 >conftest.err
5390 rm -f conftest.er1
5391 cat conftest.err >&5
5392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5393 (exit $ac_status); } &&
5394 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5395 { (case "(($ac_try" in
5396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5397 *) ac_try_echo=$ac_try;;
5398 esac
5399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5400 (eval "$ac_try") 2>&5
5401 ac_status=$?
5402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5403 (exit $ac_status); }; } &&
5404 { ac_try='test -s conftest$ac_exeext'
5405 { (case "(($ac_try" in
5406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5407 *) ac_try_echo=$ac_try;;
5408 esac
5409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5410 (eval "$ac_try") 2>&5
5411 ac_status=$?
5412 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5413 (exit $ac_status); }; }; then
5414 { echo "$as_me:$LINENO: result: yes" >&5
5415 echo "${ECHO_T}yes" >&6; }
5416 else
5417 echo "$as_me: failed program was:" >&5
5418 sed 's/^/| /' conftest.$ac_ext >&5
5419
5420 LDFLAGS=$late_LDFLAGS
5421 { echo "$as_me:$LINENO: result: no" >&5
5422 echo "${ECHO_T}no" >&6; }
5423 fi
5424
5425 rm -f core conftest.err conftest.$ac_objext \
5426 conftest$ac_exeext conftest.$ac_ext
5427
5428 #### Extract some information from the operating system and machine files.
5429
5430 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5431 - which libraries the lib-src programs will want, and
5432 - whether the GNU malloc routines are usable..." >&5
5433 echo "$as_me: checking the machine- and system-dependent files to find out
5434 - which libraries the lib-src programs will want, and
5435 - whether the GNU malloc routines are usable..." >&6;}
5436
5437 ### First figure out CFLAGS (which we use for running the compiler here)
5438 ### and REAL_CFLAGS (which we use for real compilation).
5439 ### The two are the same except on a few systems, where they are made
5440 ### different to work around various lossages. For example,
5441 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5442 ### as implying static linking.
5443
5444 ### If the CFLAGS env var is specified, we use that value
5445 ### instead of the default.
5446
5447 ### It's not important that this name contain the PID; you can't run
5448 ### two configures in the same directory and have anything work
5449 ### anyway.
5450 tempcname="conftest.c"
5451
5452 echo '
5453 #include "'${srcdir}'/src/'${opsysfile}'"
5454 #include "'${srcdir}'/src/'${machfile}'"
5455 #ifndef LIBS_MACHINE
5456 #define LIBS_MACHINE
5457 #endif
5458 #ifndef LIBS_SYSTEM
5459 #define LIBS_SYSTEM
5460 #endif
5461 #ifndef C_SWITCH_SYSTEM
5462 #define C_SWITCH_SYSTEM
5463 #endif
5464 #ifndef C_SWITCH_MACHINE
5465 #define C_SWITCH_MACHINE
5466 #endif
5467 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5468 configure___ c_switch_system=C_SWITCH_SYSTEM
5469 configure___ c_switch_machine=C_SWITCH_MACHINE
5470
5471 #ifndef LIB_X11_LIB
5472 #define LIB_X11_LIB -lX11
5473 #endif
5474
5475 #ifndef LIBX11_MACHINE
5476 #define LIBX11_MACHINE
5477 #endif
5478
5479 #ifndef LIBX11_SYSTEM
5480 #define LIBX11_SYSTEM
5481 #endif
5482 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5483
5484 #ifdef UNEXEC
5485 configure___ unexec=UNEXEC
5486 #else
5487 configure___ unexec=unexec.o
5488 #endif
5489
5490 #ifdef SYSTEM_MALLOC
5491 configure___ system_malloc=yes
5492 #else
5493 configure___ system_malloc=no
5494 #endif
5495
5496 #ifdef USE_MMAP_FOR_BUFFERS
5497 configure___ use_mmap_for_buffers=yes
5498 #else
5499 configure___ use_mmap_for_buffers=no
5500 #endif
5501
5502 #ifndef C_DEBUG_SWITCH
5503 #define C_DEBUG_SWITCH -g
5504 #endif
5505
5506 #ifndef C_OPTIMIZE_SWITCH
5507 #ifdef __GNUC__
5508 #define C_OPTIMIZE_SWITCH -O2
5509 #else
5510 #define C_OPTIMIZE_SWITCH -O
5511 #endif
5512 #endif
5513
5514 #ifndef C_WARNINGS_SWITCH
5515 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5516 #endif
5517
5518 #ifndef LD_SWITCH_MACHINE
5519 #define LD_SWITCH_MACHINE
5520 #endif
5521
5522 #ifndef LD_SWITCH_SYSTEM
5523 #define LD_SWITCH_SYSTEM
5524 #endif
5525
5526 #ifndef LD_SWITCH_X_SITE_AUX
5527 #define LD_SWITCH_X_SITE_AUX
5528 #endif
5529
5530 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5531 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5532
5533 #ifdef THIS_IS_CONFIGURE
5534
5535 /* Get the CFLAGS for tests in configure. */
5536 #ifdef __GNUC__
5537 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5538 #else
5539 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5540 #endif
5541
5542 #else /* not THIS_IS_CONFIGURE */
5543
5544 /* Get the CFLAGS for real compilation. */
5545 #ifdef __GNUC__
5546 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5547 #else
5548 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5549 #endif
5550
5551 #endif /* not THIS_IS_CONFIGURE */
5552 ' > ${tempcname}
5553
5554 # The value of CPP is a quoted variable reference, so we need to do this
5555 # to get its actual value...
5556 CPP=`eval "echo $CPP"`
5557 eval `${CPP} -Isrc ${tempcname} \
5558 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5559 if test "x$SPECIFIED_CFLAGS" = x; then
5560 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5561 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5562 else
5563 REAL_CFLAGS="$CFLAGS"
5564 fi
5565 rm ${tempcname}
5566
5567 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5568
5569 ### Make sure subsequent tests use flags consistent with the build flags.
5570
5571 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5572 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5573 else
5574 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5575 fi
5576
5577
5578
5579 # Check whether --enable-largefile was given.
5580 if test "${enable_largefile+set}" = set; then
5581 enableval=$enable_largefile;
5582 fi
5583
5584 if test "$enable_largefile" != no; then
5585
5586 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5587 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5588 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5589 echo $ECHO_N "(cached) $ECHO_C" >&6
5590 else
5591 ac_cv_sys_largefile_CC=no
5592 if test "$GCC" != yes; then
5593 ac_save_CC=$CC
5594 while :; do
5595 # IRIX 6.2 and later do not support large files by default,
5596 # so use the C compiler's -n32 option if that helps.
5597 cat >conftest.$ac_ext <<_ACEOF
5598 /* confdefs.h. */
5599 _ACEOF
5600 cat confdefs.h >>conftest.$ac_ext
5601 cat >>conftest.$ac_ext <<_ACEOF
5602 /* end confdefs.h. */
5603 #include <sys/types.h>
5604 /* Check that off_t can represent 2**63 - 1 correctly.
5605 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5606 since some C++ compilers masquerading as C compilers
5607 incorrectly reject 9223372036854775807. */
5608 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5609 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5610 && LARGE_OFF_T % 2147483647 == 1)
5611 ? 1 : -1];
5612 int
5613 main ()
5614 {
5615
5616 ;
5617 return 0;
5618 }
5619 _ACEOF
5620 rm -f conftest.$ac_objext
5621 if { (ac_try="$ac_compile"
5622 case "(($ac_try" in
5623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5624 *) ac_try_echo=$ac_try;;
5625 esac
5626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5627 (eval "$ac_compile") 2>conftest.er1
5628 ac_status=$?
5629 grep -v '^ *+' conftest.er1 >conftest.err
5630 rm -f conftest.er1
5631 cat conftest.err >&5
5632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5633 (exit $ac_status); } &&
5634 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5635 { (case "(($ac_try" in
5636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5637 *) ac_try_echo=$ac_try;;
5638 esac
5639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5640 (eval "$ac_try") 2>&5
5641 ac_status=$?
5642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5643 (exit $ac_status); }; } &&
5644 { ac_try='test -s conftest.$ac_objext'
5645 { (case "(($ac_try" in
5646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5647 *) ac_try_echo=$ac_try;;
5648 esac
5649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5650 (eval "$ac_try") 2>&5
5651 ac_status=$?
5652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5653 (exit $ac_status); }; }; then
5654 break
5655 else
5656 echo "$as_me: failed program was:" >&5
5657 sed 's/^/| /' conftest.$ac_ext >&5
5658
5659
5660 fi
5661
5662 rm -f core conftest.err conftest.$ac_objext
5663 CC="$CC -n32"
5664 rm -f conftest.$ac_objext
5665 if { (ac_try="$ac_compile"
5666 case "(($ac_try" in
5667 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5668 *) ac_try_echo=$ac_try;;
5669 esac
5670 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5671 (eval "$ac_compile") 2>conftest.er1
5672 ac_status=$?
5673 grep -v '^ *+' conftest.er1 >conftest.err
5674 rm -f conftest.er1
5675 cat conftest.err >&5
5676 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5677 (exit $ac_status); } &&
5678 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5679 { (case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_try") 2>&5
5685 ac_status=$?
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); }; } &&
5688 { ac_try='test -s conftest.$ac_objext'
5689 { (case "(($ac_try" in
5690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5691 *) ac_try_echo=$ac_try;;
5692 esac
5693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5694 (eval "$ac_try") 2>&5
5695 ac_status=$?
5696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5697 (exit $ac_status); }; }; then
5698 ac_cv_sys_largefile_CC=' -n32'; break
5699 else
5700 echo "$as_me: failed program was:" >&5
5701 sed 's/^/| /' conftest.$ac_ext >&5
5702
5703
5704 fi
5705
5706 rm -f core conftest.err conftest.$ac_objext
5707 break
5708 done
5709 CC=$ac_save_CC
5710 rm -f conftest.$ac_ext
5711 fi
5712 fi
5713 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5714 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5715 if test "$ac_cv_sys_largefile_CC" != no; then
5716 CC=$CC$ac_cv_sys_largefile_CC
5717 fi
5718
5719 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5720 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5721 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 while :; do
5725 ac_cv_sys_file_offset_bits=no
5726 cat >conftest.$ac_ext <<_ACEOF
5727 /* confdefs.h. */
5728 _ACEOF
5729 cat confdefs.h >>conftest.$ac_ext
5730 cat >>conftest.$ac_ext <<_ACEOF
5731 /* end confdefs.h. */
5732 #include <sys/types.h>
5733 /* Check that off_t can represent 2**63 - 1 correctly.
5734 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5735 since some C++ compilers masquerading as C compilers
5736 incorrectly reject 9223372036854775807. */
5737 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5738 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5739 && LARGE_OFF_T % 2147483647 == 1)
5740 ? 1 : -1];
5741 int
5742 main ()
5743 {
5744
5745 ;
5746 return 0;
5747 }
5748 _ACEOF
5749 rm -f conftest.$ac_objext
5750 if { (ac_try="$ac_compile"
5751 case "(($ac_try" in
5752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5753 *) ac_try_echo=$ac_try;;
5754 esac
5755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5756 (eval "$ac_compile") 2>conftest.er1
5757 ac_status=$?
5758 grep -v '^ *+' conftest.er1 >conftest.err
5759 rm -f conftest.er1
5760 cat conftest.err >&5
5761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5762 (exit $ac_status); } &&
5763 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5764 { (case "(($ac_try" in
5765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5766 *) ac_try_echo=$ac_try;;
5767 esac
5768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5769 (eval "$ac_try") 2>&5
5770 ac_status=$?
5771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5772 (exit $ac_status); }; } &&
5773 { ac_try='test -s conftest.$ac_objext'
5774 { (case "(($ac_try" in
5775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5776 *) ac_try_echo=$ac_try;;
5777 esac
5778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5779 (eval "$ac_try") 2>&5
5780 ac_status=$?
5781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5782 (exit $ac_status); }; }; then
5783 break
5784 else
5785 echo "$as_me: failed program was:" >&5
5786 sed 's/^/| /' conftest.$ac_ext >&5
5787
5788
5789 fi
5790
5791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5792 cat >conftest.$ac_ext <<_ACEOF
5793 /* confdefs.h. */
5794 _ACEOF
5795 cat confdefs.h >>conftest.$ac_ext
5796 cat >>conftest.$ac_ext <<_ACEOF
5797 /* end confdefs.h. */
5798 #define _FILE_OFFSET_BITS 64
5799 #include <sys/types.h>
5800 /* Check that off_t can represent 2**63 - 1 correctly.
5801 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5802 since some C++ compilers masquerading as C compilers
5803 incorrectly reject 9223372036854775807. */
5804 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5805 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5806 && LARGE_OFF_T % 2147483647 == 1)
5807 ? 1 : -1];
5808 int
5809 main ()
5810 {
5811
5812 ;
5813 return 0;
5814 }
5815 _ACEOF
5816 rm -f conftest.$ac_objext
5817 if { (ac_try="$ac_compile"
5818 case "(($ac_try" in
5819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5820 *) ac_try_echo=$ac_try;;
5821 esac
5822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5823 (eval "$ac_compile") 2>conftest.er1
5824 ac_status=$?
5825 grep -v '^ *+' conftest.er1 >conftest.err
5826 rm -f conftest.er1
5827 cat conftest.err >&5
5828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5829 (exit $ac_status); } &&
5830 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5831 { (case "(($ac_try" in
5832 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5833 *) ac_try_echo=$ac_try;;
5834 esac
5835 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5836 (eval "$ac_try") 2>&5
5837 ac_status=$?
5838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5839 (exit $ac_status); }; } &&
5840 { ac_try='test -s conftest.$ac_objext'
5841 { (case "(($ac_try" in
5842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5843 *) ac_try_echo=$ac_try;;
5844 esac
5845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5846 (eval "$ac_try") 2>&5
5847 ac_status=$?
5848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5849 (exit $ac_status); }; }; then
5850 ac_cv_sys_file_offset_bits=64; break
5851 else
5852 echo "$as_me: failed program was:" >&5
5853 sed 's/^/| /' conftest.$ac_ext >&5
5854
5855
5856 fi
5857
5858 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5859 break
5860 done
5861 fi
5862 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5863 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5864 if test "$ac_cv_sys_file_offset_bits" != no; then
5865
5866 cat >>confdefs.h <<_ACEOF
5867 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5868 _ACEOF
5869
5870 fi
5871 rm -f conftest*
5872 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5873 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5874 if test "${ac_cv_sys_large_files+set}" = set; then
5875 echo $ECHO_N "(cached) $ECHO_C" >&6
5876 else
5877 while :; do
5878 ac_cv_sys_large_files=no
5879 cat >conftest.$ac_ext <<_ACEOF
5880 /* confdefs.h. */
5881 _ACEOF
5882 cat confdefs.h >>conftest.$ac_ext
5883 cat >>conftest.$ac_ext <<_ACEOF
5884 /* end confdefs.h. */
5885 #include <sys/types.h>
5886 /* Check that off_t can represent 2**63 - 1 correctly.
5887 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5888 since some C++ compilers masquerading as C compilers
5889 incorrectly reject 9223372036854775807. */
5890 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5891 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5892 && LARGE_OFF_T % 2147483647 == 1)
5893 ? 1 : -1];
5894 int
5895 main ()
5896 {
5897
5898 ;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest.$ac_objext
5903 if { (ac_try="$ac_compile"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_compile") 2>conftest.er1
5910 ac_status=$?
5911 grep -v '^ *+' conftest.er1 >conftest.err
5912 rm -f conftest.er1
5913 cat conftest.err >&5
5914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5915 (exit $ac_status); } &&
5916 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5917 { (case "(($ac_try" in
5918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919 *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922 (eval "$ac_try") 2>&5
5923 ac_status=$?
5924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5925 (exit $ac_status); }; } &&
5926 { ac_try='test -s conftest.$ac_objext'
5927 { (case "(($ac_try" in
5928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5929 *) ac_try_echo=$ac_try;;
5930 esac
5931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5932 (eval "$ac_try") 2>&5
5933 ac_status=$?
5934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5935 (exit $ac_status); }; }; then
5936 break
5937 else
5938 echo "$as_me: failed program was:" >&5
5939 sed 's/^/| /' conftest.$ac_ext >&5
5940
5941
5942 fi
5943
5944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5945 cat >conftest.$ac_ext <<_ACEOF
5946 /* confdefs.h. */
5947 _ACEOF
5948 cat confdefs.h >>conftest.$ac_ext
5949 cat >>conftest.$ac_ext <<_ACEOF
5950 /* end confdefs.h. */
5951 #define _LARGE_FILES 1
5952 #include <sys/types.h>
5953 /* Check that off_t can represent 2**63 - 1 correctly.
5954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5955 since some C++ compilers masquerading as C compilers
5956 incorrectly reject 9223372036854775807. */
5957 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5959 && LARGE_OFF_T % 2147483647 == 1)
5960 ? 1 : -1];
5961 int
5962 main ()
5963 {
5964
5965 ;
5966 return 0;
5967 }
5968 _ACEOF
5969 rm -f conftest.$ac_objext
5970 if { (ac_try="$ac_compile"
5971 case "(($ac_try" in
5972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5973 *) ac_try_echo=$ac_try;;
5974 esac
5975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5976 (eval "$ac_compile") 2>conftest.er1
5977 ac_status=$?
5978 grep -v '^ *+' conftest.er1 >conftest.err
5979 rm -f conftest.er1
5980 cat conftest.err >&5
5981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5982 (exit $ac_status); } &&
5983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5984 { (case "(($ac_try" in
5985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5986 *) ac_try_echo=$ac_try;;
5987 esac
5988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5989 (eval "$ac_try") 2>&5
5990 ac_status=$?
5991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5992 (exit $ac_status); }; } &&
5993 { ac_try='test -s conftest.$ac_objext'
5994 { (case "(($ac_try" in
5995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5996 *) ac_try_echo=$ac_try;;
5997 esac
5998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5999 (eval "$ac_try") 2>&5
6000 ac_status=$?
6001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6002 (exit $ac_status); }; }; then
6003 ac_cv_sys_large_files=1; break
6004 else
6005 echo "$as_me: failed program was:" >&5
6006 sed 's/^/| /' conftest.$ac_ext >&5
6007
6008
6009 fi
6010
6011 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6012 break
6013 done
6014 fi
6015 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
6016 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
6017 if test "$ac_cv_sys_large_files" != no; then
6018
6019 cat >>confdefs.h <<_ACEOF
6020 #define _LARGE_FILES $ac_cv_sys_large_files
6021 _ACEOF
6022
6023 fi
6024 rm -f conftest*
6025 fi
6026
6027
6028
6029 ### The standard library on x86-64 GNU/Linux distributions can
6030 ### be located in either /usr/lib64 or /usr/lib.
6031 case "${canonical}" in
6032 x86_64-*-linux-gnu* )
6033 if test -d /usr/lib64; then
6034
6035 cat >>confdefs.h <<\_ACEOF
6036 #define HAVE_X86_64_LIB64_DIR 1
6037 _ACEOF
6038
6039 fi
6040 esac
6041
6042
6043
6044
6045 if test "${with_sound}" != "no"; then
6046 # Sound support for GNU/Linux and the free BSDs.
6047 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6048 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6049 if test "${ac_cv_header_stdc+set}" = set; then
6050 echo $ECHO_N "(cached) $ECHO_C" >&6
6051 else
6052 cat >conftest.$ac_ext <<_ACEOF
6053 /* confdefs.h. */
6054 _ACEOF
6055 cat confdefs.h >>conftest.$ac_ext
6056 cat >>conftest.$ac_ext <<_ACEOF
6057 /* end confdefs.h. */
6058 #include <stdlib.h>
6059 #include <stdarg.h>
6060 #include <string.h>
6061 #include <float.h>
6062
6063 int
6064 main ()
6065 {
6066
6067 ;
6068 return 0;
6069 }
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } &&
6085 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6086 { (case "(($ac_try" in
6087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6088 *) ac_try_echo=$ac_try;;
6089 esac
6090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6091 (eval "$ac_try") 2>&5
6092 ac_status=$?
6093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6094 (exit $ac_status); }; } &&
6095 { ac_try='test -s conftest.$ac_objext'
6096 { (case "(($ac_try" in
6097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6098 *) ac_try_echo=$ac_try;;
6099 esac
6100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6101 (eval "$ac_try") 2>&5
6102 ac_status=$?
6103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6104 (exit $ac_status); }; }; then
6105 ac_cv_header_stdc=yes
6106 else
6107 echo "$as_me: failed program was:" >&5
6108 sed 's/^/| /' conftest.$ac_ext >&5
6109
6110 ac_cv_header_stdc=no
6111 fi
6112
6113 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6114
6115 if test $ac_cv_header_stdc = yes; then
6116 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6117 cat >conftest.$ac_ext <<_ACEOF
6118 /* confdefs.h. */
6119 _ACEOF
6120 cat confdefs.h >>conftest.$ac_ext
6121 cat >>conftest.$ac_ext <<_ACEOF
6122 /* end confdefs.h. */
6123 #include <string.h>
6124
6125 _ACEOF
6126 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6127 $EGREP "memchr" >/dev/null 2>&1; then
6128 :
6129 else
6130 ac_cv_header_stdc=no
6131 fi
6132 rm -f conftest*
6133
6134 fi
6135
6136 if test $ac_cv_header_stdc = yes; then
6137 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6138 cat >conftest.$ac_ext <<_ACEOF
6139 /* confdefs.h. */
6140 _ACEOF
6141 cat confdefs.h >>conftest.$ac_ext
6142 cat >>conftest.$ac_ext <<_ACEOF
6143 /* end confdefs.h. */
6144 #include <stdlib.h>
6145
6146 _ACEOF
6147 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6148 $EGREP "free" >/dev/null 2>&1; then
6149 :
6150 else
6151 ac_cv_header_stdc=no
6152 fi
6153 rm -f conftest*
6154
6155 fi
6156
6157 if test $ac_cv_header_stdc = yes; then
6158 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6159 if test "$cross_compiling" = yes; then
6160 :
6161 else
6162 cat >conftest.$ac_ext <<_ACEOF
6163 /* confdefs.h. */
6164 _ACEOF
6165 cat confdefs.h >>conftest.$ac_ext
6166 cat >>conftest.$ac_ext <<_ACEOF
6167 /* end confdefs.h. */
6168 #include <ctype.h>
6169 #include <stdlib.h>
6170 #if ((' ' & 0x0FF) == 0x020)
6171 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6172 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6173 #else
6174 # define ISLOWER(c) \
6175 (('a' <= (c) && (c) <= 'i') \
6176 || ('j' <= (c) && (c) <= 'r') \
6177 || ('s' <= (c) && (c) <= 'z'))
6178 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6179 #endif
6180
6181 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6182 int
6183 main ()
6184 {
6185 int i;
6186 for (i = 0; i < 256; i++)
6187 if (XOR (islower (i), ISLOWER (i))
6188 || toupper (i) != TOUPPER (i))
6189 return 2;
6190 return 0;
6191 }
6192 _ACEOF
6193 rm -f conftest$ac_exeext
6194 if { (ac_try="$ac_link"
6195 case "(($ac_try" in
6196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6197 *) ac_try_echo=$ac_try;;
6198 esac
6199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6200 (eval "$ac_link") 2>&5
6201 ac_status=$?
6202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6203 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6204 { (case "(($ac_try" in
6205 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6206 *) ac_try_echo=$ac_try;;
6207 esac
6208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6209 (eval "$ac_try") 2>&5
6210 ac_status=$?
6211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6212 (exit $ac_status); }; }; then
6213 :
6214 else
6215 echo "$as_me: program exited with status $ac_status" >&5
6216 echo "$as_me: failed program was:" >&5
6217 sed 's/^/| /' conftest.$ac_ext >&5
6218
6219 ( exit $ac_status )
6220 ac_cv_header_stdc=no
6221 fi
6222 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6223 fi
6224
6225
6226 fi
6227 fi
6228 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6229 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6230 if test $ac_cv_header_stdc = yes; then
6231
6232 cat >>confdefs.h <<\_ACEOF
6233 #define STDC_HEADERS 1
6234 _ACEOF
6235
6236 fi
6237
6238 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6239
6240
6241
6242
6243
6244
6245
6246
6247
6248 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6249 inttypes.h stdint.h unistd.h
6250 do
6251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6252 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6253 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6255 echo $ECHO_N "(cached) $ECHO_C" >&6
6256 else
6257 cat >conftest.$ac_ext <<_ACEOF
6258 /* confdefs.h. */
6259 _ACEOF
6260 cat confdefs.h >>conftest.$ac_ext
6261 cat >>conftest.$ac_ext <<_ACEOF
6262 /* end confdefs.h. */
6263 $ac_includes_default
6264
6265 #include <$ac_header>
6266 _ACEOF
6267 rm -f conftest.$ac_objext
6268 if { (ac_try="$ac_compile"
6269 case "(($ac_try" in
6270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6271 *) ac_try_echo=$ac_try;;
6272 esac
6273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6274 (eval "$ac_compile") 2>conftest.er1
6275 ac_status=$?
6276 grep -v '^ *+' conftest.er1 >conftest.err
6277 rm -f conftest.er1
6278 cat conftest.err >&5
6279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6280 (exit $ac_status); } &&
6281 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6282 { (case "(($ac_try" in
6283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6284 *) ac_try_echo=$ac_try;;
6285 esac
6286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6287 (eval "$ac_try") 2>&5
6288 ac_status=$?
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); }; } &&
6291 { ac_try='test -s conftest.$ac_objext'
6292 { (case "(($ac_try" in
6293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6294 *) ac_try_echo=$ac_try;;
6295 esac
6296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6297 (eval "$ac_try") 2>&5
6298 ac_status=$?
6299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6300 (exit $ac_status); }; }; then
6301 eval "$as_ac_Header=yes"
6302 else
6303 echo "$as_me: failed program was:" >&5
6304 sed 's/^/| /' conftest.$ac_ext >&5
6305
6306 eval "$as_ac_Header=no"
6307 fi
6308
6309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6310 fi
6311 ac_res=`eval echo '${'$as_ac_Header'}'`
6312 { echo "$as_me:$LINENO: result: $ac_res" >&5
6313 echo "${ECHO_T}$ac_res" >&6; }
6314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6315 cat >>confdefs.h <<_ACEOF
6316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6317 _ACEOF
6318
6319 fi
6320
6321 done
6322
6323
6324
6325
6326
6327 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6328 do
6329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6334 echo $ECHO_N "(cached) $ECHO_C" >&6
6335 fi
6336 ac_res=`eval echo '${'$as_ac_Header'}'`
6337 { echo "$as_me:$LINENO: result: $ac_res" >&5
6338 echo "${ECHO_T}$ac_res" >&6; }
6339 else
6340 # Is the header compilable?
6341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6343 cat >conftest.$ac_ext <<_ACEOF
6344 /* confdefs.h. */
6345 _ACEOF
6346 cat confdefs.h >>conftest.$ac_ext
6347 cat >>conftest.$ac_ext <<_ACEOF
6348 /* end confdefs.h. */
6349 $ac_includes_default
6350 #include <$ac_header>
6351 _ACEOF
6352 rm -f conftest.$ac_objext
6353 if { (ac_try="$ac_compile"
6354 case "(($ac_try" in
6355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356 *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359 (eval "$ac_compile") 2>conftest.er1
6360 ac_status=$?
6361 grep -v '^ *+' conftest.er1 >conftest.err
6362 rm -f conftest.er1
6363 cat conftest.err >&5
6364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6365 (exit $ac_status); } &&
6366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6367 { (case "(($ac_try" in
6368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6369 *) ac_try_echo=$ac_try;;
6370 esac
6371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6372 (eval "$ac_try") 2>&5
6373 ac_status=$?
6374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6375 (exit $ac_status); }; } &&
6376 { ac_try='test -s conftest.$ac_objext'
6377 { (case "(($ac_try" in
6378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6379 *) ac_try_echo=$ac_try;;
6380 esac
6381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6382 (eval "$ac_try") 2>&5
6383 ac_status=$?
6384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6385 (exit $ac_status); }; }; then
6386 ac_header_compiler=yes
6387 else
6388 echo "$as_me: failed program was:" >&5
6389 sed 's/^/| /' conftest.$ac_ext >&5
6390
6391 ac_header_compiler=no
6392 fi
6393
6394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6396 echo "${ECHO_T}$ac_header_compiler" >&6; }
6397
6398 # Is the header present?
6399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6401 cat >conftest.$ac_ext <<_ACEOF
6402 /* confdefs.h. */
6403 _ACEOF
6404 cat confdefs.h >>conftest.$ac_ext
6405 cat >>conftest.$ac_ext <<_ACEOF
6406 /* end confdefs.h. */
6407 #include <$ac_header>
6408 _ACEOF
6409 if { (ac_try="$ac_cpp conftest.$ac_ext"
6410 case "(($ac_try" in
6411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6412 *) ac_try_echo=$ac_try;;
6413 esac
6414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6416 ac_status=$?
6417 grep -v '^ *+' conftest.er1 >conftest.err
6418 rm -f conftest.er1
6419 cat conftest.err >&5
6420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6421 (exit $ac_status); } >/dev/null; then
6422 if test -s conftest.err; then
6423 ac_cpp_err=$ac_c_preproc_warn_flag
6424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6425 else
6426 ac_cpp_err=
6427 fi
6428 else
6429 ac_cpp_err=yes
6430 fi
6431 if test -z "$ac_cpp_err"; then
6432 ac_header_preproc=yes
6433 else
6434 echo "$as_me: failed program was:" >&5
6435 sed 's/^/| /' conftest.$ac_ext >&5
6436
6437 ac_header_preproc=no
6438 fi
6439
6440 rm -f conftest.err conftest.$ac_ext
6441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6442 echo "${ECHO_T}$ac_header_preproc" >&6; }
6443
6444 # So? What about this header?
6445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6446 yes:no: )
6447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6451 ac_header_preproc=yes
6452 ;;
6453 no:yes:* )
6454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6466
6467 ;;
6468 esac
6469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 eval "$as_ac_Header=\$ac_header_preproc"
6475 fi
6476 ac_res=`eval echo '${'$as_ac_Header'}'`
6477 { echo "$as_me:$LINENO: result: $ac_res" >&5
6478 echo "${ECHO_T}$ac_res" >&6; }
6479
6480 fi
6481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6482 cat >>confdefs.h <<_ACEOF
6483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6484 _ACEOF
6485
6486 fi
6487
6488 done
6489
6490 # Emulation library used on NetBSD.
6491 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6492 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6493 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6494 echo $ECHO_N "(cached) $ECHO_C" >&6
6495 else
6496 ac_check_lib_save_LIBS=$LIBS
6497 LIBS="-lossaudio $LIBS"
6498 cat >conftest.$ac_ext <<_ACEOF
6499 /* confdefs.h. */
6500 _ACEOF
6501 cat confdefs.h >>conftest.$ac_ext
6502 cat >>conftest.$ac_ext <<_ACEOF
6503 /* end confdefs.h. */
6504
6505 /* Override any GCC internal prototype to avoid an error.
6506 Use char because int might match the return type of a GCC
6507 builtin and then its argument prototype would still apply. */
6508 #ifdef __cplusplus
6509 extern "C"
6510 #endif
6511 char _oss_ioctl ();
6512 int
6513 main ()
6514 {
6515 return _oss_ioctl ();
6516 ;
6517 return 0;
6518 }
6519 _ACEOF
6520 rm -f conftest.$ac_objext conftest$ac_exeext
6521 if { (ac_try="$ac_link"
6522 case "(($ac_try" in
6523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6524 *) ac_try_echo=$ac_try;;
6525 esac
6526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6527 (eval "$ac_link") 2>conftest.er1
6528 ac_status=$?
6529 grep -v '^ *+' conftest.er1 >conftest.err
6530 rm -f conftest.er1
6531 cat conftest.err >&5
6532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6533 (exit $ac_status); } &&
6534 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6535 { (case "(($ac_try" in
6536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6537 *) ac_try_echo=$ac_try;;
6538 esac
6539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6540 (eval "$ac_try") 2>&5
6541 ac_status=$?
6542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6543 (exit $ac_status); }; } &&
6544 { ac_try='test -s conftest$ac_exeext'
6545 { (case "(($ac_try" in
6546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6547 *) ac_try_echo=$ac_try;;
6548 esac
6549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6550 (eval "$ac_try") 2>&5
6551 ac_status=$?
6552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6553 (exit $ac_status); }; }; then
6554 ac_cv_lib_ossaudio__oss_ioctl=yes
6555 else
6556 echo "$as_me: failed program was:" >&5
6557 sed 's/^/| /' conftest.$ac_ext >&5
6558
6559 ac_cv_lib_ossaudio__oss_ioctl=no
6560 fi
6561
6562 rm -f core conftest.err conftest.$ac_objext \
6563 conftest$ac_exeext conftest.$ac_ext
6564 LIBS=$ac_check_lib_save_LIBS
6565 fi
6566 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6567 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6568 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6569 LIBSOUND=-lossaudio
6570 else
6571 LIBSOUND=
6572 fi
6573
6574
6575
6576 ALSA_REQUIRED=1.0.0
6577 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6578 if test "X${with_pkg_config_prog}" != X; then
6579 PKG_CONFIG="${with_pkg_config_prog}"
6580 fi
6581
6582 succeeded=no
6583
6584 if test -z "$PKG_CONFIG"; then
6585 # Extract the first word of "pkg-config", so it can be a program name with args.
6586 set dummy pkg-config; ac_word=$2
6587 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6588 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6589 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6590 echo $ECHO_N "(cached) $ECHO_C" >&6
6591 else
6592 case $PKG_CONFIG in
6593 [\\/]* | ?:[\\/]*)
6594 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6595 ;;
6596 *)
6597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6598 for as_dir in $PATH
6599 do
6600 IFS=$as_save_IFS
6601 test -z "$as_dir" && as_dir=.
6602 for ac_exec_ext in '' $ac_executable_extensions; do
6603 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6604 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6605 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6606 break 2
6607 fi
6608 done
6609 done
6610 IFS=$as_save_IFS
6611
6612 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6613 ;;
6614 esac
6615 fi
6616 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6617 if test -n "$PKG_CONFIG"; then
6618 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6619 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6620 else
6621 { echo "$as_me:$LINENO: result: no" >&5
6622 echo "${ECHO_T}no" >&6; }
6623 fi
6624
6625
6626 fi
6627
6628 if test "$PKG_CONFIG" = "no" ; then
6629 HAVE_ALSA=no
6630 else
6631 PKG_CONFIG_MIN_VERSION=0.9.0
6632 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6633 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6634 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6635
6636 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6637 { echo "$as_me:$LINENO: result: yes" >&5
6638 echo "${ECHO_T}yes" >&6; }
6639 succeeded=yes
6640
6641 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6642 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6643 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6644 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6645 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6646
6647 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6648 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6649 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6650 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6651 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6652 else
6653 { echo "$as_me:$LINENO: result: no" >&5
6654 echo "${ECHO_T}no" >&6; }
6655 ALSA_CFLAGS=""
6656 ALSA_LIBS=""
6657 ## If we have a custom action on failure, don't print errors, but
6658 ## do set a variable so people can do so.
6659 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6660
6661 fi
6662
6663
6664
6665 else
6666 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6667 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6668 fi
6669 fi
6670
6671 if test $succeeded = yes; then
6672 HAVE_ALSA=yes
6673 else
6674 HAVE_ALSA=no
6675 fi
6676
6677 if test $HAVE_ALSA = yes; then
6678 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6679 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6680
6681 cat >>confdefs.h <<\_ACEOF
6682 #define HAVE_ALSA 1
6683 _ACEOF
6684
6685 fi
6686
6687 fi
6688
6689
6690
6691
6692
6693
6694
6695
6696
6697
6698
6699
6700
6701
6702
6703
6704
6705
6706
6707
6708
6709
6710
6711
6712
6713
6714 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6715 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6716 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6717 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6718 sys/utsname.h pwd.h
6719 do
6720 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6721 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6725 echo $ECHO_N "(cached) $ECHO_C" >&6
6726 fi
6727 ac_res=`eval echo '${'$as_ac_Header'}'`
6728 { echo "$as_me:$LINENO: result: $ac_res" >&5
6729 echo "${ECHO_T}$ac_res" >&6; }
6730 else
6731 # Is the header compilable?
6732 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6733 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6734 cat >conftest.$ac_ext <<_ACEOF
6735 /* confdefs.h. */
6736 _ACEOF
6737 cat confdefs.h >>conftest.$ac_ext
6738 cat >>conftest.$ac_ext <<_ACEOF
6739 /* end confdefs.h. */
6740 $ac_includes_default
6741 #include <$ac_header>
6742 _ACEOF
6743 rm -f conftest.$ac_objext
6744 if { (ac_try="$ac_compile"
6745 case "(($ac_try" in
6746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6747 *) ac_try_echo=$ac_try;;
6748 esac
6749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6750 (eval "$ac_compile") 2>conftest.er1
6751 ac_status=$?
6752 grep -v '^ *+' conftest.er1 >conftest.err
6753 rm -f conftest.er1
6754 cat conftest.err >&5
6755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6756 (exit $ac_status); } &&
6757 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6758 { (case "(($ac_try" in
6759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6760 *) ac_try_echo=$ac_try;;
6761 esac
6762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6763 (eval "$ac_try") 2>&5
6764 ac_status=$?
6765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6766 (exit $ac_status); }; } &&
6767 { ac_try='test -s conftest.$ac_objext'
6768 { (case "(($ac_try" in
6769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6770 *) ac_try_echo=$ac_try;;
6771 esac
6772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6773 (eval "$ac_try") 2>&5
6774 ac_status=$?
6775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6776 (exit $ac_status); }; }; then
6777 ac_header_compiler=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 ac_header_compiler=no
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6787 echo "${ECHO_T}$ac_header_compiler" >&6; }
6788
6789 # Is the header present?
6790 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6791 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6792 cat >conftest.$ac_ext <<_ACEOF
6793 /* confdefs.h. */
6794 _ACEOF
6795 cat confdefs.h >>conftest.$ac_ext
6796 cat >>conftest.$ac_ext <<_ACEOF
6797 /* end confdefs.h. */
6798 #include <$ac_header>
6799 _ACEOF
6800 if { (ac_try="$ac_cpp conftest.$ac_ext"
6801 case "(($ac_try" in
6802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6803 *) ac_try_echo=$ac_try;;
6804 esac
6805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6806 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6807 ac_status=$?
6808 grep -v '^ *+' conftest.er1 >conftest.err
6809 rm -f conftest.er1
6810 cat conftest.err >&5
6811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6812 (exit $ac_status); } >/dev/null; then
6813 if test -s conftest.err; then
6814 ac_cpp_err=$ac_c_preproc_warn_flag
6815 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6816 else
6817 ac_cpp_err=
6818 fi
6819 else
6820 ac_cpp_err=yes
6821 fi
6822 if test -z "$ac_cpp_err"; then
6823 ac_header_preproc=yes
6824 else
6825 echo "$as_me: failed program was:" >&5
6826 sed 's/^/| /' conftest.$ac_ext >&5
6827
6828 ac_header_preproc=no
6829 fi
6830
6831 rm -f conftest.err conftest.$ac_ext
6832 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6833 echo "${ECHO_T}$ac_header_preproc" >&6; }
6834
6835 # So? What about this header?
6836 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6837 yes:no: )
6838 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6839 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6840 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6841 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6842 ac_header_preproc=yes
6843 ;;
6844 no:yes:* )
6845 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6846 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6847 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6848 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6849 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6850 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6851 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6852 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6853 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6854 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6855 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6856 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6857
6858 ;;
6859 esac
6860 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6861 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6862 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6863 echo $ECHO_N "(cached) $ECHO_C" >&6
6864 else
6865 eval "$as_ac_Header=\$ac_header_preproc"
6866 fi
6867 ac_res=`eval echo '${'$as_ac_Header'}'`
6868 { echo "$as_me:$LINENO: result: $ac_res" >&5
6869 echo "${ECHO_T}$ac_res" >&6; }
6870
6871 fi
6872 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6873 cat >>confdefs.h <<_ACEOF
6874 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6875 _ACEOF
6876
6877 fi
6878
6879 done
6880
6881
6882 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6883 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6884 cat >conftest.$ac_ext <<_ACEOF
6885 /* confdefs.h. */
6886 _ACEOF
6887 cat confdefs.h >>conftest.$ac_ext
6888 cat >>conftest.$ac_ext <<_ACEOF
6889 /* end confdefs.h. */
6890 #include <sys/personality.h>
6891 int
6892 main ()
6893 {
6894 personality (PER_LINUX32)
6895 ;
6896 return 0;
6897 }
6898 _ACEOF
6899 rm -f conftest.$ac_objext
6900 if { (ac_try="$ac_compile"
6901 case "(($ac_try" in
6902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6903 *) ac_try_echo=$ac_try;;
6904 esac
6905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6906 (eval "$ac_compile") 2>conftest.er1
6907 ac_status=$?
6908 grep -v '^ *+' conftest.er1 >conftest.err
6909 rm -f conftest.er1
6910 cat conftest.err >&5
6911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6912 (exit $ac_status); } &&
6913 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6914 { (case "(($ac_try" in
6915 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6916 *) ac_try_echo=$ac_try;;
6917 esac
6918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6919 (eval "$ac_try") 2>&5
6920 ac_status=$?
6921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6922 (exit $ac_status); }; } &&
6923 { ac_try='test -s conftest.$ac_objext'
6924 { (case "(($ac_try" in
6925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6926 *) ac_try_echo=$ac_try;;
6927 esac
6928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6929 (eval "$ac_try") 2>&5
6930 ac_status=$?
6931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6932 (exit $ac_status); }; }; then
6933 emacs_cv_personality_linux32=yes
6934 else
6935 echo "$as_me: failed program was:" >&5
6936 sed 's/^/| /' conftest.$ac_ext >&5
6937
6938 emacs_cv_personality_linux32=no
6939 fi
6940
6941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6942 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6943 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6944
6945 if test $emacs_cv_personality_linux32 = yes; then
6946
6947 cat >>confdefs.h <<\_ACEOF
6948 #define HAVE_PERSONALITY_LINUX32 1
6949 _ACEOF
6950
6951 fi
6952
6953
6954 for ac_header in term.h
6955 do
6956 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6957 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6958 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6959 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6960 echo $ECHO_N "(cached) $ECHO_C" >&6
6961 else
6962 cat >conftest.$ac_ext <<_ACEOF
6963 /* confdefs.h. */
6964 _ACEOF
6965 cat confdefs.h >>conftest.$ac_ext
6966 cat >>conftest.$ac_ext <<_ACEOF
6967 /* end confdefs.h. */
6968 #include <$ac_header>
6969 _ACEOF
6970 if { (ac_try="$ac_cpp conftest.$ac_ext"
6971 case "(($ac_try" in
6972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6973 *) ac_try_echo=$ac_try;;
6974 esac
6975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6976 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6977 ac_status=$?
6978 grep -v '^ *+' conftest.er1 >conftest.err
6979 rm -f conftest.er1
6980 cat conftest.err >&5
6981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6982 (exit $ac_status); } >/dev/null; then
6983 if test -s conftest.err; then
6984 ac_cpp_err=$ac_c_preproc_warn_flag
6985 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
6986 else
6987 ac_cpp_err=
6988 fi
6989 else
6990 ac_cpp_err=yes
6991 fi
6992 if test -z "$ac_cpp_err"; then
6993 eval "$as_ac_Header=yes"
6994 else
6995 echo "$as_me: failed program was:" >&5
6996 sed 's/^/| /' conftest.$ac_ext >&5
6997
6998 eval "$as_ac_Header=no"
6999 fi
7000
7001 rm -f conftest.err conftest.$ac_ext
7002 fi
7003 ac_res=`eval echo '${'$as_ac_Header'}'`
7004 { echo "$as_me:$LINENO: result: $ac_res" >&5
7005 echo "${ECHO_T}$ac_res" >&6; }
7006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7007 cat >>confdefs.h <<_ACEOF
7008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7009 _ACEOF
7010
7011 fi
7012
7013 done
7014
7015 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
7016 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
7017 if test "${ac_cv_header_stdc+set}" = set; then
7018 echo $ECHO_N "(cached) $ECHO_C" >&6
7019 else
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <stdlib.h>
7027 #include <stdarg.h>
7028 #include <string.h>
7029 #include <float.h>
7030
7031 int
7032 main ()
7033 {
7034
7035 ;
7036 return 0;
7037 }
7038 _ACEOF
7039 rm -f conftest.$ac_objext
7040 if { (ac_try="$ac_compile"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_compile") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } &&
7053 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7054 { (case "(($ac_try" in
7055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7056 *) ac_try_echo=$ac_try;;
7057 esac
7058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7059 (eval "$ac_try") 2>&5
7060 ac_status=$?
7061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7062 (exit $ac_status); }; } &&
7063 { ac_try='test -s conftest.$ac_objext'
7064 { (case "(($ac_try" in
7065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7066 *) ac_try_echo=$ac_try;;
7067 esac
7068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7069 (eval "$ac_try") 2>&5
7070 ac_status=$?
7071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7072 (exit $ac_status); }; }; then
7073 ac_cv_header_stdc=yes
7074 else
7075 echo "$as_me: failed program was:" >&5
7076 sed 's/^/| /' conftest.$ac_ext >&5
7077
7078 ac_cv_header_stdc=no
7079 fi
7080
7081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7082
7083 if test $ac_cv_header_stdc = yes; then
7084 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7085 cat >conftest.$ac_ext <<_ACEOF
7086 /* confdefs.h. */
7087 _ACEOF
7088 cat confdefs.h >>conftest.$ac_ext
7089 cat >>conftest.$ac_ext <<_ACEOF
7090 /* end confdefs.h. */
7091 #include <string.h>
7092
7093 _ACEOF
7094 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7095 $EGREP "memchr" >/dev/null 2>&1; then
7096 :
7097 else
7098 ac_cv_header_stdc=no
7099 fi
7100 rm -f conftest*
7101
7102 fi
7103
7104 if test $ac_cv_header_stdc = yes; then
7105 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7106 cat >conftest.$ac_ext <<_ACEOF
7107 /* confdefs.h. */
7108 _ACEOF
7109 cat confdefs.h >>conftest.$ac_ext
7110 cat >>conftest.$ac_ext <<_ACEOF
7111 /* end confdefs.h. */
7112 #include <stdlib.h>
7113
7114 _ACEOF
7115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7116 $EGREP "free" >/dev/null 2>&1; then
7117 :
7118 else
7119 ac_cv_header_stdc=no
7120 fi
7121 rm -f conftest*
7122
7123 fi
7124
7125 if test $ac_cv_header_stdc = yes; then
7126 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7127 if test "$cross_compiling" = yes; then
7128 :
7129 else
7130 cat >conftest.$ac_ext <<_ACEOF
7131 /* confdefs.h. */
7132 _ACEOF
7133 cat confdefs.h >>conftest.$ac_ext
7134 cat >>conftest.$ac_ext <<_ACEOF
7135 /* end confdefs.h. */
7136 #include <ctype.h>
7137 #include <stdlib.h>
7138 #if ((' ' & 0x0FF) == 0x020)
7139 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7140 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7141 #else
7142 # define ISLOWER(c) \
7143 (('a' <= (c) && (c) <= 'i') \
7144 || ('j' <= (c) && (c) <= 'r') \
7145 || ('s' <= (c) && (c) <= 'z'))
7146 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7147 #endif
7148
7149 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7150 int
7151 main ()
7152 {
7153 int i;
7154 for (i = 0; i < 256; i++)
7155 if (XOR (islower (i), ISLOWER (i))
7156 || toupper (i) != TOUPPER (i))
7157 return 2;
7158 return 0;
7159 }
7160 _ACEOF
7161 rm -f conftest$ac_exeext
7162 if { (ac_try="$ac_link"
7163 case "(($ac_try" in
7164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7165 *) ac_try_echo=$ac_try;;
7166 esac
7167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7168 (eval "$ac_link") 2>&5
7169 ac_status=$?
7170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7172 { (case "(($ac_try" in
7173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7174 *) ac_try_echo=$ac_try;;
7175 esac
7176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7177 (eval "$ac_try") 2>&5
7178 ac_status=$?
7179 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7180 (exit $ac_status); }; }; then
7181 :
7182 else
7183 echo "$as_me: program exited with status $ac_status" >&5
7184 echo "$as_me: failed program was:" >&5
7185 sed 's/^/| /' conftest.$ac_ext >&5
7186
7187 ( exit $ac_status )
7188 ac_cv_header_stdc=no
7189 fi
7190 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7191 fi
7192
7193
7194 fi
7195 fi
7196 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7197 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7198 if test $ac_cv_header_stdc = yes; then
7199
7200 cat >>confdefs.h <<\_ACEOF
7201 #define STDC_HEADERS 1
7202 _ACEOF
7203
7204 fi
7205
7206 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7207 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7208 if test "${ac_cv_header_time+set}" = set; then
7209 echo $ECHO_N "(cached) $ECHO_C" >&6
7210 else
7211 cat >conftest.$ac_ext <<_ACEOF
7212 /* confdefs.h. */
7213 _ACEOF
7214 cat confdefs.h >>conftest.$ac_ext
7215 cat >>conftest.$ac_ext <<_ACEOF
7216 /* end confdefs.h. */
7217 #include <sys/types.h>
7218 #include <sys/time.h>
7219 #include <time.h>
7220
7221 int
7222 main ()
7223 {
7224 if ((struct tm *) 0)
7225 return 0;
7226 ;
7227 return 0;
7228 }
7229 _ACEOF
7230 rm -f conftest.$ac_objext
7231 if { (ac_try="$ac_compile"
7232 case "(($ac_try" in
7233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7234 *) ac_try_echo=$ac_try;;
7235 esac
7236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7237 (eval "$ac_compile") 2>conftest.er1
7238 ac_status=$?
7239 grep -v '^ *+' conftest.er1 >conftest.err
7240 rm -f conftest.er1
7241 cat conftest.err >&5
7242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7243 (exit $ac_status); } &&
7244 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7245 { (case "(($ac_try" in
7246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7247 *) ac_try_echo=$ac_try;;
7248 esac
7249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7250 (eval "$ac_try") 2>&5
7251 ac_status=$?
7252 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7253 (exit $ac_status); }; } &&
7254 { ac_try='test -s conftest.$ac_objext'
7255 { (case "(($ac_try" in
7256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7257 *) ac_try_echo=$ac_try;;
7258 esac
7259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7260 (eval "$ac_try") 2>&5
7261 ac_status=$?
7262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7263 (exit $ac_status); }; }; then
7264 ac_cv_header_time=yes
7265 else
7266 echo "$as_me: failed program was:" >&5
7267 sed 's/^/| /' conftest.$ac_ext >&5
7268
7269 ac_cv_header_time=no
7270 fi
7271
7272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7273 fi
7274 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7275 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7276 if test $ac_cv_header_time = yes; then
7277
7278 cat >>confdefs.h <<\_ACEOF
7279 #define TIME_WITH_SYS_TIME 1
7280 _ACEOF
7281
7282 fi
7283
7284 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7285 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7286 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7287 echo $ECHO_N "(cached) $ECHO_C" >&6
7288 else
7289 cat >conftest.$ac_ext <<_ACEOF
7290 /* confdefs.h. */
7291 _ACEOF
7292 cat confdefs.h >>conftest.$ac_ext
7293 cat >>conftest.$ac_ext <<_ACEOF
7294 /* end confdefs.h. */
7295 $ac_includes_default
7296 int
7297 main ()
7298 {
7299 #ifndef sys_siglist
7300 char *p = (char *) sys_siglist;
7301 return !p;
7302 #endif
7303
7304 ;
7305 return 0;
7306 }
7307 _ACEOF
7308 rm -f conftest.$ac_objext
7309 if { (ac_try="$ac_compile"
7310 case "(($ac_try" in
7311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7312 *) ac_try_echo=$ac_try;;
7313 esac
7314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7315 (eval "$ac_compile") 2>conftest.er1
7316 ac_status=$?
7317 grep -v '^ *+' conftest.er1 >conftest.err
7318 rm -f conftest.er1
7319 cat conftest.err >&5
7320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7321 (exit $ac_status); } &&
7322 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7323 { (case "(($ac_try" in
7324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7325 *) ac_try_echo=$ac_try;;
7326 esac
7327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7328 (eval "$ac_try") 2>&5
7329 ac_status=$?
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); }; } &&
7332 { ac_try='test -s conftest.$ac_objext'
7333 { (case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_try") 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; }; then
7342 ac_cv_have_decl_sys_siglist=yes
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_cv_have_decl_sys_siglist=no
7348 fi
7349
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7353 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7354 if test $ac_cv_have_decl_sys_siglist = yes; then
7355
7356 cat >>confdefs.h <<_ACEOF
7357 #define HAVE_DECL_SYS_SIGLIST 1
7358 _ACEOF
7359
7360
7361 else
7362 cat >>confdefs.h <<_ACEOF
7363 #define HAVE_DECL_SYS_SIGLIST 0
7364 _ACEOF
7365
7366
7367 fi
7368
7369
7370 if test $ac_cv_have_decl_sys_siglist != yes; then
7371 # For Tru64, at least:
7372 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7373 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7374 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7375 echo $ECHO_N "(cached) $ECHO_C" >&6
7376 else
7377 cat >conftest.$ac_ext <<_ACEOF
7378 /* confdefs.h. */
7379 _ACEOF
7380 cat confdefs.h >>conftest.$ac_ext
7381 cat >>conftest.$ac_ext <<_ACEOF
7382 /* end confdefs.h. */
7383 $ac_includes_default
7384 int
7385 main ()
7386 {
7387 #ifndef __sys_siglist
7388 char *p = (char *) __sys_siglist;
7389 return !p;
7390 #endif
7391
7392 ;
7393 return 0;
7394 }
7395 _ACEOF
7396 rm -f conftest.$ac_objext
7397 if { (ac_try="$ac_compile"
7398 case "(($ac_try" in
7399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7400 *) ac_try_echo=$ac_try;;
7401 esac
7402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7403 (eval "$ac_compile") 2>conftest.er1
7404 ac_status=$?
7405 grep -v '^ *+' conftest.er1 >conftest.err
7406 rm -f conftest.er1
7407 cat conftest.err >&5
7408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7409 (exit $ac_status); } &&
7410 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7411 { (case "(($ac_try" in
7412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7413 *) ac_try_echo=$ac_try;;
7414 esac
7415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7416 (eval "$ac_try") 2>&5
7417 ac_status=$?
7418 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7419 (exit $ac_status); }; } &&
7420 { ac_try='test -s conftest.$ac_objext'
7421 { (case "(($ac_try" in
7422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7423 *) ac_try_echo=$ac_try;;
7424 esac
7425 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7426 (eval "$ac_try") 2>&5
7427 ac_status=$?
7428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7429 (exit $ac_status); }; }; then
7430 ac_cv_have_decl___sys_siglist=yes
7431 else
7432 echo "$as_me: failed program was:" >&5
7433 sed 's/^/| /' conftest.$ac_ext >&5
7434
7435 ac_cv_have_decl___sys_siglist=no
7436 fi
7437
7438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7439 fi
7440 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7441 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7442 if test $ac_cv_have_decl___sys_siglist = yes; then
7443
7444 cat >>confdefs.h <<_ACEOF
7445 #define HAVE_DECL___SYS_SIGLIST 1
7446 _ACEOF
7447
7448
7449 else
7450 cat >>confdefs.h <<_ACEOF
7451 #define HAVE_DECL___SYS_SIGLIST 0
7452 _ACEOF
7453
7454
7455 fi
7456
7457
7458 if test $ac_cv_have_decl___sys_siglist = yes; then
7459
7460 cat >>confdefs.h <<\_ACEOF
7461 #define sys_siglist __sys_siglist
7462 _ACEOF
7463
7464 fi
7465 fi
7466 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7467 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7468 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7469 echo $ECHO_N "(cached) $ECHO_C" >&6
7470 else
7471 cat >conftest.$ac_ext <<_ACEOF
7472 /* confdefs.h. */
7473 _ACEOF
7474 cat confdefs.h >>conftest.$ac_ext
7475 cat >>conftest.$ac_ext <<_ACEOF
7476 /* end confdefs.h. */
7477 #include <sys/types.h>
7478 #include <sys/wait.h>
7479 #ifndef WEXITSTATUS
7480 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7481 #endif
7482 #ifndef WIFEXITED
7483 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7484 #endif
7485
7486 int
7487 main ()
7488 {
7489 int s;
7490 wait (&s);
7491 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7492 ;
7493 return 0;
7494 }
7495 _ACEOF
7496 rm -f conftest.$ac_objext
7497 if { (ac_try="$ac_compile"
7498 case "(($ac_try" in
7499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7500 *) ac_try_echo=$ac_try;;
7501 esac
7502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7503 (eval "$ac_compile") 2>conftest.er1
7504 ac_status=$?
7505 grep -v '^ *+' conftest.er1 >conftest.err
7506 rm -f conftest.er1
7507 cat conftest.err >&5
7508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7509 (exit $ac_status); } &&
7510 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7511 { (case "(($ac_try" in
7512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7513 *) ac_try_echo=$ac_try;;
7514 esac
7515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7516 (eval "$ac_try") 2>&5
7517 ac_status=$?
7518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7519 (exit $ac_status); }; } &&
7520 { ac_try='test -s conftest.$ac_objext'
7521 { (case "(($ac_try" in
7522 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7523 *) ac_try_echo=$ac_try;;
7524 esac
7525 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7526 (eval "$ac_try") 2>&5
7527 ac_status=$?
7528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7529 (exit $ac_status); }; }; then
7530 ac_cv_header_sys_wait_h=yes
7531 else
7532 echo "$as_me: failed program was:" >&5
7533 sed 's/^/| /' conftest.$ac_ext >&5
7534
7535 ac_cv_header_sys_wait_h=no
7536 fi
7537
7538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7539 fi
7540 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7541 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7542 if test $ac_cv_header_sys_wait_h = yes; then
7543
7544 cat >>confdefs.h <<\_ACEOF
7545 #define HAVE_SYS_WAIT_H 1
7546 _ACEOF
7547
7548 fi
7549
7550
7551 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7552 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7553 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7554 echo $ECHO_N "(cached) $ECHO_C" >&6
7555 else
7556 cat >conftest.$ac_ext <<_ACEOF
7557 /* confdefs.h. */
7558 _ACEOF
7559 cat confdefs.h >>conftest.$ac_ext
7560 cat >>conftest.$ac_ext <<_ACEOF
7561 /* end confdefs.h. */
7562 #ifdef TIME_WITH_SYS_TIME
7563 #include <sys/time.h>
7564 #include <time.h>
7565 #else
7566 #ifdef HAVE_SYS_TIME_H
7567 #include <sys/time.h>
7568 #else
7569 #include <time.h>
7570 #endif
7571 #endif
7572 #ifdef HAVE_UTIME_H
7573 #include <utime.h>
7574 #endif
7575 int
7576 main ()
7577 {
7578 static struct utimbuf x; x.actime = x.modtime;
7579 ;
7580 return 0;
7581 }
7582 _ACEOF
7583 rm -f conftest.$ac_objext
7584 if { (ac_try="$ac_compile"
7585 case "(($ac_try" in
7586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7587 *) ac_try_echo=$ac_try;;
7588 esac
7589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7590 (eval "$ac_compile") 2>conftest.er1
7591 ac_status=$?
7592 grep -v '^ *+' conftest.er1 >conftest.err
7593 rm -f conftest.er1
7594 cat conftest.err >&5
7595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7596 (exit $ac_status); } &&
7597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7598 { (case "(($ac_try" in
7599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7600 *) ac_try_echo=$ac_try;;
7601 esac
7602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7603 (eval "$ac_try") 2>&5
7604 ac_status=$?
7605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7606 (exit $ac_status); }; } &&
7607 { ac_try='test -s conftest.$ac_objext'
7608 { (case "(($ac_try" in
7609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7610 *) ac_try_echo=$ac_try;;
7611 esac
7612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7613 (eval "$ac_try") 2>&5
7614 ac_status=$?
7615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7616 (exit $ac_status); }; }; then
7617 emacs_cv_struct_utimbuf=yes
7618 else
7619 echo "$as_me: failed program was:" >&5
7620 sed 's/^/| /' conftest.$ac_ext >&5
7621
7622 emacs_cv_struct_utimbuf=no
7623 fi
7624
7625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7626 fi
7627 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7628 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7629 if test $emacs_cv_struct_utimbuf = yes; then
7630
7631 cat >>confdefs.h <<\_ACEOF
7632 #define HAVE_STRUCT_UTIMBUF 1
7633 _ACEOF
7634
7635 fi
7636
7637 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7638 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7639 if test "${ac_cv_type_signal+set}" = set; then
7640 echo $ECHO_N "(cached) $ECHO_C" >&6
7641 else
7642 cat >conftest.$ac_ext <<_ACEOF
7643 /* confdefs.h. */
7644 _ACEOF
7645 cat confdefs.h >>conftest.$ac_ext
7646 cat >>conftest.$ac_ext <<_ACEOF
7647 /* end confdefs.h. */
7648 #include <sys/types.h>
7649 #include <signal.h>
7650
7651 int
7652 main ()
7653 {
7654 return *(signal (0, 0)) (0) == 1;
7655 ;
7656 return 0;
7657 }
7658 _ACEOF
7659 rm -f conftest.$ac_objext
7660 if { (ac_try="$ac_compile"
7661 case "(($ac_try" in
7662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7663 *) ac_try_echo=$ac_try;;
7664 esac
7665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7666 (eval "$ac_compile") 2>conftest.er1
7667 ac_status=$?
7668 grep -v '^ *+' conftest.er1 >conftest.err
7669 rm -f conftest.er1
7670 cat conftest.err >&5
7671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7672 (exit $ac_status); } &&
7673 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7674 { (case "(($ac_try" in
7675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7676 *) ac_try_echo=$ac_try;;
7677 esac
7678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7679 (eval "$ac_try") 2>&5
7680 ac_status=$?
7681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7682 (exit $ac_status); }; } &&
7683 { ac_try='test -s conftest.$ac_objext'
7684 { (case "(($ac_try" in
7685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7686 *) ac_try_echo=$ac_try;;
7687 esac
7688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7689 (eval "$ac_try") 2>&5
7690 ac_status=$?
7691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7692 (exit $ac_status); }; }; then
7693 ac_cv_type_signal=int
7694 else
7695 echo "$as_me: failed program was:" >&5
7696 sed 's/^/| /' conftest.$ac_ext >&5
7697
7698 ac_cv_type_signal=void
7699 fi
7700
7701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7702 fi
7703 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7704 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7705
7706 cat >>confdefs.h <<_ACEOF
7707 #define RETSIGTYPE $ac_cv_type_signal
7708 _ACEOF
7709
7710
7711
7712 { echo "$as_me:$LINENO: checking for speed_t" >&5
7713 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7714 if test "${emacs_cv_speed_t+set}" = set; then
7715 echo $ECHO_N "(cached) $ECHO_C" >&6
7716 else
7717 cat >conftest.$ac_ext <<_ACEOF
7718 /* confdefs.h. */
7719 _ACEOF
7720 cat confdefs.h >>conftest.$ac_ext
7721 cat >>conftest.$ac_ext <<_ACEOF
7722 /* end confdefs.h. */
7723 #include <termios.h>
7724 int
7725 main ()
7726 {
7727 speed_t x = 1;
7728 ;
7729 return 0;
7730 }
7731 _ACEOF
7732 rm -f conftest.$ac_objext
7733 if { (ac_try="$ac_compile"
7734 case "(($ac_try" in
7735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7736 *) ac_try_echo=$ac_try;;
7737 esac
7738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7739 (eval "$ac_compile") 2>conftest.er1
7740 ac_status=$?
7741 grep -v '^ *+' conftest.er1 >conftest.err
7742 rm -f conftest.er1
7743 cat conftest.err >&5
7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7745 (exit $ac_status); } &&
7746 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7747 { (case "(($ac_try" in
7748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7749 *) ac_try_echo=$ac_try;;
7750 esac
7751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7752 (eval "$ac_try") 2>&5
7753 ac_status=$?
7754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7755 (exit $ac_status); }; } &&
7756 { ac_try='test -s conftest.$ac_objext'
7757 { (case "(($ac_try" in
7758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7759 *) ac_try_echo=$ac_try;;
7760 esac
7761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7762 (eval "$ac_try") 2>&5
7763 ac_status=$?
7764 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7765 (exit $ac_status); }; }; then
7766 emacs_cv_speed_t=yes
7767 else
7768 echo "$as_me: failed program was:" >&5
7769 sed 's/^/| /' conftest.$ac_ext >&5
7770
7771 emacs_cv_speed_t=no
7772 fi
7773
7774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7775 fi
7776 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7777 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7778 if test $emacs_cv_speed_t = yes; then
7779
7780 cat >>confdefs.h <<\_ACEOF
7781 #define HAVE_SPEED_T 1
7782 _ACEOF
7783
7784 fi
7785
7786 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7787 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7788 if test "${emacs_cv_struct_timeval+set}" = set; then
7789 echo $ECHO_N "(cached) $ECHO_C" >&6
7790 else
7791 cat >conftest.$ac_ext <<_ACEOF
7792 /* confdefs.h. */
7793 _ACEOF
7794 cat confdefs.h >>conftest.$ac_ext
7795 cat >>conftest.$ac_ext <<_ACEOF
7796 /* end confdefs.h. */
7797 #ifdef TIME_WITH_SYS_TIME
7798 #include <sys/time.h>
7799 #include <time.h>
7800 #else
7801 #ifdef HAVE_SYS_TIME_H
7802 #include <sys/time.h>
7803 #else
7804 #include <time.h>
7805 #endif
7806 #endif
7807 int
7808 main ()
7809 {
7810 static struct timeval x; x.tv_sec = x.tv_usec;
7811 ;
7812 return 0;
7813 }
7814 _ACEOF
7815 rm -f conftest.$ac_objext
7816 if { (ac_try="$ac_compile"
7817 case "(($ac_try" in
7818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7819 *) ac_try_echo=$ac_try;;
7820 esac
7821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7822 (eval "$ac_compile") 2>conftest.er1
7823 ac_status=$?
7824 grep -v '^ *+' conftest.er1 >conftest.err
7825 rm -f conftest.er1
7826 cat conftest.err >&5
7827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7828 (exit $ac_status); } &&
7829 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7830 { (case "(($ac_try" in
7831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7832 *) ac_try_echo=$ac_try;;
7833 esac
7834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7835 (eval "$ac_try") 2>&5
7836 ac_status=$?
7837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7838 (exit $ac_status); }; } &&
7839 { ac_try='test -s conftest.$ac_objext'
7840 { (case "(($ac_try" in
7841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7842 *) ac_try_echo=$ac_try;;
7843 esac
7844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7845 (eval "$ac_try") 2>&5
7846 ac_status=$?
7847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7848 (exit $ac_status); }; }; then
7849 emacs_cv_struct_timeval=yes
7850 else
7851 echo "$as_me: failed program was:" >&5
7852 sed 's/^/| /' conftest.$ac_ext >&5
7853
7854 emacs_cv_struct_timeval=no
7855 fi
7856
7857 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7858 fi
7859 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7860 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7861 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7862 if test $emacs_cv_struct_timeval = yes; then
7863
7864 cat >>confdefs.h <<\_ACEOF
7865 #define HAVE_TIMEVAL 1
7866 _ACEOF
7867
7868 fi
7869
7870 { echo "$as_me:$LINENO: checking for struct exception" >&5
7871 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7872 if test "${emacs_cv_struct_exception+set}" = set; then
7873 echo $ECHO_N "(cached) $ECHO_C" >&6
7874 else
7875 cat >conftest.$ac_ext <<_ACEOF
7876 /* confdefs.h. */
7877 _ACEOF
7878 cat confdefs.h >>conftest.$ac_ext
7879 cat >>conftest.$ac_ext <<_ACEOF
7880 /* end confdefs.h. */
7881 #include <math.h>
7882 int
7883 main ()
7884 {
7885 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7886 ;
7887 return 0;
7888 }
7889 _ACEOF
7890 rm -f conftest.$ac_objext
7891 if { (ac_try="$ac_compile"
7892 case "(($ac_try" in
7893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7894 *) ac_try_echo=$ac_try;;
7895 esac
7896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7897 (eval "$ac_compile") 2>conftest.er1
7898 ac_status=$?
7899 grep -v '^ *+' conftest.er1 >conftest.err
7900 rm -f conftest.er1
7901 cat conftest.err >&5
7902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7903 (exit $ac_status); } &&
7904 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7905 { (case "(($ac_try" in
7906 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7907 *) ac_try_echo=$ac_try;;
7908 esac
7909 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7910 (eval "$ac_try") 2>&5
7911 ac_status=$?
7912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7913 (exit $ac_status); }; } &&
7914 { ac_try='test -s conftest.$ac_objext'
7915 { (case "(($ac_try" in
7916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7917 *) ac_try_echo=$ac_try;;
7918 esac
7919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7920 (eval "$ac_try") 2>&5
7921 ac_status=$?
7922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7923 (exit $ac_status); }; }; then
7924 emacs_cv_struct_exception=yes
7925 else
7926 echo "$as_me: failed program was:" >&5
7927 sed 's/^/| /' conftest.$ac_ext >&5
7928
7929 emacs_cv_struct_exception=no
7930 fi
7931
7932 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7933 fi
7934 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7935 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7936 HAVE_EXCEPTION=$emacs_cv_struct_exception
7937 if test $emacs_cv_struct_exception != yes; then
7938
7939 cat >>confdefs.h <<\_ACEOF
7940 #define NO_MATHERR 1
7941 _ACEOF
7942
7943 fi
7944
7945
7946 for ac_header in sys/socket.h
7947 do
7948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7950 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7951 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7952 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7953 echo $ECHO_N "(cached) $ECHO_C" >&6
7954 fi
7955 ac_res=`eval echo '${'$as_ac_Header'}'`
7956 { echo "$as_me:$LINENO: result: $ac_res" >&5
7957 echo "${ECHO_T}$ac_res" >&6; }
7958 else
7959 # Is the header compilable?
7960 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7961 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7962 cat >conftest.$ac_ext <<_ACEOF
7963 /* confdefs.h. */
7964 _ACEOF
7965 cat confdefs.h >>conftest.$ac_ext
7966 cat >>conftest.$ac_ext <<_ACEOF
7967 /* end confdefs.h. */
7968 $ac_includes_default
7969 #include <$ac_header>
7970 _ACEOF
7971 rm -f conftest.$ac_objext
7972 if { (ac_try="$ac_compile"
7973 case "(($ac_try" in
7974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7975 *) ac_try_echo=$ac_try;;
7976 esac
7977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7978 (eval "$ac_compile") 2>conftest.er1
7979 ac_status=$?
7980 grep -v '^ *+' conftest.er1 >conftest.err
7981 rm -f conftest.er1
7982 cat conftest.err >&5
7983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7984 (exit $ac_status); } &&
7985 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
7986 { (case "(($ac_try" in
7987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7988 *) ac_try_echo=$ac_try;;
7989 esac
7990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7991 (eval "$ac_try") 2>&5
7992 ac_status=$?
7993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7994 (exit $ac_status); }; } &&
7995 { ac_try='test -s conftest.$ac_objext'
7996 { (case "(($ac_try" in
7997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7998 *) ac_try_echo=$ac_try;;
7999 esac
8000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8001 (eval "$ac_try") 2>&5
8002 ac_status=$?
8003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8004 (exit $ac_status); }; }; then
8005 ac_header_compiler=yes
8006 else
8007 echo "$as_me: failed program was:" >&5
8008 sed 's/^/| /' conftest.$ac_ext >&5
8009
8010 ac_header_compiler=no
8011 fi
8012
8013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8014 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
8015 echo "${ECHO_T}$ac_header_compiler" >&6; }
8016
8017 # Is the header present?
8018 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
8019 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
8020 cat >conftest.$ac_ext <<_ACEOF
8021 /* confdefs.h. */
8022 _ACEOF
8023 cat confdefs.h >>conftest.$ac_ext
8024 cat >>conftest.$ac_ext <<_ACEOF
8025 /* end confdefs.h. */
8026 #include <$ac_header>
8027 _ACEOF
8028 if { (ac_try="$ac_cpp conftest.$ac_ext"
8029 case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } >/dev/null; then
8041 if test -s conftest.err; then
8042 ac_cpp_err=$ac_c_preproc_warn_flag
8043 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
8044 else
8045 ac_cpp_err=
8046 fi
8047 else
8048 ac_cpp_err=yes
8049 fi
8050 if test -z "$ac_cpp_err"; then
8051 ac_header_preproc=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_header_preproc=no
8057 fi
8058
8059 rm -f conftest.err conftest.$ac_ext
8060 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
8061 echo "${ECHO_T}$ac_header_preproc" >&6; }
8062
8063 # So? What about this header?
8064 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
8065 yes:no: )
8066 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
8067 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
8068 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
8069 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
8070 ac_header_preproc=yes
8071 ;;
8072 no:yes:* )
8073 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
8074 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
8075 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
8076 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
8077 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
8078 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
8079 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
8080 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
8081 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
8082 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
8083 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
8084 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
8085
8086 ;;
8087 esac
8088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8091 echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093 eval "$as_ac_Header=\$ac_header_preproc"
8094 fi
8095 ac_res=`eval echo '${'$as_ac_Header'}'`
8096 { echo "$as_me:$LINENO: result: $ac_res" >&5
8097 echo "${ECHO_T}$ac_res" >&6; }
8098
8099 fi
8100 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8101 cat >>confdefs.h <<_ACEOF
8102 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8103 _ACEOF
8104
8105 fi
8106
8107 done
8108
8109
8110 for ac_header in net/if.h
8111 do
8112 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
8113 { echo "$as_me:$LINENO: checking for $ac_header" >&5
8114 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
8115 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
8116 echo $ECHO_N "(cached) $ECHO_C" >&6
8117 else
8118 cat >conftest.$ac_ext <<_ACEOF
8119 /* confdefs.h. */
8120 _ACEOF
8121 cat confdefs.h >>conftest.$ac_ext
8122 cat >>conftest.$ac_ext <<_ACEOF
8123 /* end confdefs.h. */
8124 $ac_includes_default
8125 #if HAVE_SYS_SOCKET_H
8126 #include <sys/socket.h>
8127 #endif
8128
8129 #include <$ac_header>
8130 _ACEOF
8131 rm -f conftest.$ac_objext
8132 if { (ac_try="$ac_compile"
8133 case "(($ac_try" in
8134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8135 *) ac_try_echo=$ac_try;;
8136 esac
8137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8138 (eval "$ac_compile") 2>conftest.er1
8139 ac_status=$?
8140 grep -v '^ *+' conftest.er1 >conftest.err
8141 rm -f conftest.er1
8142 cat conftest.err >&5
8143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8144 (exit $ac_status); } &&
8145 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
8152 ac_status=$?
8153 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8154 (exit $ac_status); }; } &&
8155 { ac_try='test -s conftest.$ac_objext'
8156 { (case "(($ac_try" in
8157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8158 *) ac_try_echo=$ac_try;;
8159 esac
8160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8161 (eval "$ac_try") 2>&5
8162 ac_status=$?
8163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8164 (exit $ac_status); }; }; then
8165 eval "$as_ac_Header=yes"
8166 else
8167 echo "$as_me: failed program was:" >&5
8168 sed 's/^/| /' conftest.$ac_ext >&5
8169
8170 eval "$as_ac_Header=no"
8171 fi
8172
8173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8174 fi
8175 ac_res=`eval echo '${'$as_ac_Header'}'`
8176 { echo "$as_me:$LINENO: result: $ac_res" >&5
8177 echo "${ECHO_T}$ac_res" >&6; }
8178 if test `eval echo '${'$as_ac_Header'}'` = yes; then
8179 cat >>confdefs.h <<_ACEOF
8180 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
8181 _ACEOF
8182
8183 fi
8184
8185 done
8186
8187
8188 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
8189 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
8190 if test "${ac_cv_struct_tm+set}" = set; then
8191 echo $ECHO_N "(cached) $ECHO_C" >&6
8192 else
8193 cat >conftest.$ac_ext <<_ACEOF
8194 /* confdefs.h. */
8195 _ACEOF
8196 cat confdefs.h >>conftest.$ac_ext
8197 cat >>conftest.$ac_ext <<_ACEOF
8198 /* end confdefs.h. */
8199 #include <sys/types.h>
8200 #include <time.h>
8201
8202 int
8203 main ()
8204 {
8205 struct tm *tp; tp->tm_sec;
8206 ;
8207 return 0;
8208 }
8209 _ACEOF
8210 rm -f conftest.$ac_objext
8211 if { (ac_try="$ac_compile"
8212 case "(($ac_try" in
8213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8214 *) ac_try_echo=$ac_try;;
8215 esac
8216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8217 (eval "$ac_compile") 2>conftest.er1
8218 ac_status=$?
8219 grep -v '^ *+' conftest.er1 >conftest.err
8220 rm -f conftest.er1
8221 cat conftest.err >&5
8222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8223 (exit $ac_status); } &&
8224 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8225 { (case "(($ac_try" in
8226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8227 *) ac_try_echo=$ac_try;;
8228 esac
8229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8230 (eval "$ac_try") 2>&5
8231 ac_status=$?
8232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8233 (exit $ac_status); }; } &&
8234 { ac_try='test -s conftest.$ac_objext'
8235 { (case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_try") 2>&5
8241 ac_status=$?
8242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8243 (exit $ac_status); }; }; then
8244 ac_cv_struct_tm=time.h
8245 else
8246 echo "$as_me: failed program was:" >&5
8247 sed 's/^/| /' conftest.$ac_ext >&5
8248
8249 ac_cv_struct_tm=sys/time.h
8250 fi
8251
8252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8253 fi
8254 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
8255 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
8256 if test $ac_cv_struct_tm = sys/time.h; then
8257
8258 cat >>confdefs.h <<\_ACEOF
8259 #define TM_IN_SYS_TIME 1
8260 _ACEOF
8261
8262 fi
8263
8264 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
8265 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
8266 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
8267 echo $ECHO_N "(cached) $ECHO_C" >&6
8268 else
8269 cat >conftest.$ac_ext <<_ACEOF
8270 /* confdefs.h. */
8271 _ACEOF
8272 cat confdefs.h >>conftest.$ac_ext
8273 cat >>conftest.$ac_ext <<_ACEOF
8274 /* end confdefs.h. */
8275 #include <sys/types.h>
8276 #include <$ac_cv_struct_tm>
8277
8278
8279 int
8280 main ()
8281 {
8282 static struct tm ac_aggr;
8283 if (ac_aggr.tm_zone)
8284 return 0;
8285 ;
8286 return 0;
8287 }
8288 _ACEOF
8289 rm -f conftest.$ac_objext
8290 if { (ac_try="$ac_compile"
8291 case "(($ac_try" in
8292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8293 *) ac_try_echo=$ac_try;;
8294 esac
8295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8296 (eval "$ac_compile") 2>conftest.er1
8297 ac_status=$?
8298 grep -v '^ *+' conftest.er1 >conftest.err
8299 rm -f conftest.er1
8300 cat conftest.err >&5
8301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8302 (exit $ac_status); } &&
8303 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8304 { (case "(($ac_try" in
8305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8306 *) ac_try_echo=$ac_try;;
8307 esac
8308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8309 (eval "$ac_try") 2>&5
8310 ac_status=$?
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); }; } &&
8313 { ac_try='test -s conftest.$ac_objext'
8314 { (case "(($ac_try" in
8315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8316 *) ac_try_echo=$ac_try;;
8317 esac
8318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8319 (eval "$ac_try") 2>&5
8320 ac_status=$?
8321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8322 (exit $ac_status); }; }; then
8323 ac_cv_member_struct_tm_tm_zone=yes
8324 else
8325 echo "$as_me: failed program was:" >&5
8326 sed 's/^/| /' conftest.$ac_ext >&5
8327
8328 cat >conftest.$ac_ext <<_ACEOF
8329 /* confdefs.h. */
8330 _ACEOF
8331 cat confdefs.h >>conftest.$ac_ext
8332 cat >>conftest.$ac_ext <<_ACEOF
8333 /* end confdefs.h. */
8334 #include <sys/types.h>
8335 #include <$ac_cv_struct_tm>
8336
8337
8338 int
8339 main ()
8340 {
8341 static struct tm ac_aggr;
8342 if (sizeof ac_aggr.tm_zone)
8343 return 0;
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } &&
8362 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8363 { (case "(($ac_try" in
8364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8365 *) ac_try_echo=$ac_try;;
8366 esac
8367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8368 (eval "$ac_try") 2>&5
8369 ac_status=$?
8370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8371 (exit $ac_status); }; } &&
8372 { ac_try='test -s conftest.$ac_objext'
8373 { (case "(($ac_try" in
8374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8375 *) ac_try_echo=$ac_try;;
8376 esac
8377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8378 (eval "$ac_try") 2>&5
8379 ac_status=$?
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); }; }; then
8382 ac_cv_member_struct_tm_tm_zone=yes
8383 else
8384 echo "$as_me: failed program was:" >&5
8385 sed 's/^/| /' conftest.$ac_ext >&5
8386
8387 ac_cv_member_struct_tm_tm_zone=no
8388 fi
8389
8390 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8396 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8397 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8398
8399 cat >>confdefs.h <<_ACEOF
8400 #define HAVE_STRUCT_TM_TM_ZONE 1
8401 _ACEOF
8402
8403
8404 fi
8405
8406 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8407
8408 cat >>confdefs.h <<\_ACEOF
8409 #define HAVE_TM_ZONE 1
8410 _ACEOF
8411
8412 else
8413 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8414 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8415 if test "${ac_cv_have_decl_tzname+set}" = set; then
8416 echo $ECHO_N "(cached) $ECHO_C" >&6
8417 else
8418 cat >conftest.$ac_ext <<_ACEOF
8419 /* confdefs.h. */
8420 _ACEOF
8421 cat confdefs.h >>conftest.$ac_ext
8422 cat >>conftest.$ac_ext <<_ACEOF
8423 /* end confdefs.h. */
8424 #include <time.h>
8425
8426 int
8427 main ()
8428 {
8429 #ifndef tzname
8430 char *p = (char *) tzname;
8431 return !p;
8432 #endif
8433
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } &&
8452 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8453 { (case "(($ac_try" in
8454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8455 *) ac_try_echo=$ac_try;;
8456 esac
8457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8458 (eval "$ac_try") 2>&5
8459 ac_status=$?
8460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8461 (exit $ac_status); }; } &&
8462 { ac_try='test -s conftest.$ac_objext'
8463 { (case "(($ac_try" in
8464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8465 *) ac_try_echo=$ac_try;;
8466 esac
8467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8468 (eval "$ac_try") 2>&5
8469 ac_status=$?
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); }; }; then
8472 ac_cv_have_decl_tzname=yes
8473 else
8474 echo "$as_me: failed program was:" >&5
8475 sed 's/^/| /' conftest.$ac_ext >&5
8476
8477 ac_cv_have_decl_tzname=no
8478 fi
8479
8480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8481 fi
8482 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8483 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8484 if test $ac_cv_have_decl_tzname = yes; then
8485
8486 cat >>confdefs.h <<_ACEOF
8487 #define HAVE_DECL_TZNAME 1
8488 _ACEOF
8489
8490
8491 else
8492 cat >>confdefs.h <<_ACEOF
8493 #define HAVE_DECL_TZNAME 0
8494 _ACEOF
8495
8496
8497 fi
8498
8499
8500 { echo "$as_me:$LINENO: checking for tzname" >&5
8501 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8502 if test "${ac_cv_var_tzname+set}" = set; then
8503 echo $ECHO_N "(cached) $ECHO_C" >&6
8504 else
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 #include <time.h>
8512 #if !HAVE_DECL_TZNAME
8513 extern char *tzname[];
8514 #endif
8515
8516 int
8517 main ()
8518 {
8519 return tzname[0][0];
8520 ;
8521 return 0;
8522 }
8523 _ACEOF
8524 rm -f conftest.$ac_objext conftest$ac_exeext
8525 if { (ac_try="$ac_link"
8526 case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_link") 2>conftest.er1
8532 ac_status=$?
8533 grep -v '^ *+' conftest.er1 >conftest.err
8534 rm -f conftest.er1
8535 cat conftest.err >&5
8536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8537 (exit $ac_status); } &&
8538 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8539 { (case "(($ac_try" in
8540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8541 *) ac_try_echo=$ac_try;;
8542 esac
8543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8544 (eval "$ac_try") 2>&5
8545 ac_status=$?
8546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8547 (exit $ac_status); }; } &&
8548 { ac_try='test -s conftest$ac_exeext'
8549 { (case "(($ac_try" in
8550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8551 *) ac_try_echo=$ac_try;;
8552 esac
8553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8554 (eval "$ac_try") 2>&5
8555 ac_status=$?
8556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8557 (exit $ac_status); }; }; then
8558 ac_cv_var_tzname=yes
8559 else
8560 echo "$as_me: failed program was:" >&5
8561 sed 's/^/| /' conftest.$ac_ext >&5
8562
8563 ac_cv_var_tzname=no
8564 fi
8565
8566 rm -f core conftest.err conftest.$ac_objext \
8567 conftest$ac_exeext conftest.$ac_ext
8568 fi
8569 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8570 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8571 if test $ac_cv_var_tzname = yes; then
8572
8573 cat >>confdefs.h <<\_ACEOF
8574 #define HAVE_TZNAME 1
8575 _ACEOF
8576
8577 fi
8578 fi
8579
8580 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8581 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8582 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8583 echo $ECHO_N "(cached) $ECHO_C" >&6
8584 else
8585 cat >conftest.$ac_ext <<_ACEOF
8586 /* confdefs.h. */
8587 _ACEOF
8588 cat confdefs.h >>conftest.$ac_ext
8589 cat >>conftest.$ac_ext <<_ACEOF
8590 /* end confdefs.h. */
8591 #include <time.h>
8592
8593 int
8594 main ()
8595 {
8596 static struct tm ac_aggr;
8597 if (ac_aggr.tm_gmtoff)
8598 return 0;
8599 ;
8600 return 0;
8601 }
8602 _ACEOF
8603 rm -f conftest.$ac_objext
8604 if { (ac_try="$ac_compile"
8605 case "(($ac_try" in
8606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8607 *) ac_try_echo=$ac_try;;
8608 esac
8609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8610 (eval "$ac_compile") 2>conftest.er1
8611 ac_status=$?
8612 grep -v '^ *+' conftest.er1 >conftest.err
8613 rm -f conftest.er1
8614 cat conftest.err >&5
8615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8616 (exit $ac_status); } &&
8617 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8618 { (case "(($ac_try" in
8619 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8620 *) ac_try_echo=$ac_try;;
8621 esac
8622 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8623 (eval "$ac_try") 2>&5
8624 ac_status=$?
8625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8626 (exit $ac_status); }; } &&
8627 { ac_try='test -s conftest.$ac_objext'
8628 { (case "(($ac_try" in
8629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8630 *) ac_try_echo=$ac_try;;
8631 esac
8632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8633 (eval "$ac_try") 2>&5
8634 ac_status=$?
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); }; }; then
8637 ac_cv_member_struct_tm_tm_gmtoff=yes
8638 else
8639 echo "$as_me: failed program was:" >&5
8640 sed 's/^/| /' conftest.$ac_ext >&5
8641
8642 cat >conftest.$ac_ext <<_ACEOF
8643 /* confdefs.h. */
8644 _ACEOF
8645 cat confdefs.h >>conftest.$ac_ext
8646 cat >>conftest.$ac_ext <<_ACEOF
8647 /* end confdefs.h. */
8648 #include <time.h>
8649
8650 int
8651 main ()
8652 {
8653 static struct tm ac_aggr;
8654 if (sizeof ac_aggr.tm_gmtoff)
8655 return 0;
8656 ;
8657 return 0;
8658 }
8659 _ACEOF
8660 rm -f conftest.$ac_objext
8661 if { (ac_try="$ac_compile"
8662 case "(($ac_try" in
8663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8664 *) ac_try_echo=$ac_try;;
8665 esac
8666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8667 (eval "$ac_compile") 2>conftest.er1
8668 ac_status=$?
8669 grep -v '^ *+' conftest.er1 >conftest.err
8670 rm -f conftest.er1
8671 cat conftest.err >&5
8672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8673 (exit $ac_status); } &&
8674 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8675 { (case "(($ac_try" in
8676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8677 *) ac_try_echo=$ac_try;;
8678 esac
8679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8680 (eval "$ac_try") 2>&5
8681 ac_status=$?
8682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8683 (exit $ac_status); }; } &&
8684 { ac_try='test -s conftest.$ac_objext'
8685 { (case "(($ac_try" in
8686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8687 *) ac_try_echo=$ac_try;;
8688 esac
8689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8690 (eval "$ac_try") 2>&5
8691 ac_status=$?
8692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8693 (exit $ac_status); }; }; then
8694 ac_cv_member_struct_tm_tm_gmtoff=yes
8695 else
8696 echo "$as_me: failed program was:" >&5
8697 sed 's/^/| /' conftest.$ac_ext >&5
8698
8699 ac_cv_member_struct_tm_tm_gmtoff=no
8700 fi
8701
8702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8703 fi
8704
8705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8706 fi
8707 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8708 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8709 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8710
8711 cat >>confdefs.h <<\_ACEOF
8712 #define HAVE_TM_GMTOFF 1
8713 _ACEOF
8714
8715 fi
8716
8717 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8718 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8719 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8720 echo $ECHO_N "(cached) $ECHO_C" >&6
8721 else
8722 cat >conftest.$ac_ext <<_ACEOF
8723 /* confdefs.h. */
8724 _ACEOF
8725 cat confdefs.h >>conftest.$ac_ext
8726 cat >>conftest.$ac_ext <<_ACEOF
8727 /* end confdefs.h. */
8728 $ac_includes_default
8729 #if HAVE_SYS_SOCKET_H
8730 #include <sys/socket.h>
8731 #endif
8732 #if HAVE_NET_IF_H
8733 #include <net/if.h>
8734 #endif
8735
8736 int
8737 main ()
8738 {
8739 static struct ifreq ac_aggr;
8740 if (ac_aggr.ifr_flags)
8741 return 0;
8742 ;
8743 return 0;
8744 }
8745 _ACEOF
8746 rm -f conftest.$ac_objext
8747 if { (ac_try="$ac_compile"
8748 case "(($ac_try" in
8749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8750 *) ac_try_echo=$ac_try;;
8751 esac
8752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8753 (eval "$ac_compile") 2>conftest.er1
8754 ac_status=$?
8755 grep -v '^ *+' conftest.er1 >conftest.err
8756 rm -f conftest.er1
8757 cat conftest.err >&5
8758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8759 (exit $ac_status); } &&
8760 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8761 { (case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_try") 2>&5
8767 ac_status=$?
8768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8769 (exit $ac_status); }; } &&
8770 { ac_try='test -s conftest.$ac_objext'
8771 { (case "(($ac_try" in
8772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8773 *) ac_try_echo=$ac_try;;
8774 esac
8775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8776 (eval "$ac_try") 2>&5
8777 ac_status=$?
8778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8779 (exit $ac_status); }; }; then
8780 ac_cv_member_struct_ifreq_ifr_flags=yes
8781 else
8782 echo "$as_me: failed program was:" >&5
8783 sed 's/^/| /' conftest.$ac_ext >&5
8784
8785 cat >conftest.$ac_ext <<_ACEOF
8786 /* confdefs.h. */
8787 _ACEOF
8788 cat confdefs.h >>conftest.$ac_ext
8789 cat >>conftest.$ac_ext <<_ACEOF
8790 /* end confdefs.h. */
8791 $ac_includes_default
8792 #if HAVE_SYS_SOCKET_H
8793 #include <sys/socket.h>
8794 #endif
8795 #if HAVE_NET_IF_H
8796 #include <net/if.h>
8797 #endif
8798
8799 int
8800 main ()
8801 {
8802 static struct ifreq ac_aggr;
8803 if (sizeof ac_aggr.ifr_flags)
8804 return 0;
8805 ;
8806 return 0;
8807 }
8808 _ACEOF
8809 rm -f conftest.$ac_objext
8810 if { (ac_try="$ac_compile"
8811 case "(($ac_try" in
8812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8813 *) ac_try_echo=$ac_try;;
8814 esac
8815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8816 (eval "$ac_compile") 2>conftest.er1
8817 ac_status=$?
8818 grep -v '^ *+' conftest.er1 >conftest.err
8819 rm -f conftest.er1
8820 cat conftest.err >&5
8821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8822 (exit $ac_status); } &&
8823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8824 { (case "(($ac_try" in
8825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8826 *) ac_try_echo=$ac_try;;
8827 esac
8828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8829 (eval "$ac_try") 2>&5
8830 ac_status=$?
8831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8832 (exit $ac_status); }; } &&
8833 { ac_try='test -s conftest.$ac_objext'
8834 { (case "(($ac_try" in
8835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836 *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839 (eval "$ac_try") 2>&5
8840 ac_status=$?
8841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8842 (exit $ac_status); }; }; then
8843 ac_cv_member_struct_ifreq_ifr_flags=yes
8844 else
8845 echo "$as_me: failed program was:" >&5
8846 sed 's/^/| /' conftest.$ac_ext >&5
8847
8848 ac_cv_member_struct_ifreq_ifr_flags=no
8849 fi
8850
8851 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8852 fi
8853
8854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8855 fi
8856 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8857 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8858 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8859
8860 cat >>confdefs.h <<_ACEOF
8861 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8862 _ACEOF
8863
8864
8865 fi
8866 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8867 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8868 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8869 echo $ECHO_N "(cached) $ECHO_C" >&6
8870 else
8871 cat >conftest.$ac_ext <<_ACEOF
8872 /* confdefs.h. */
8873 _ACEOF
8874 cat confdefs.h >>conftest.$ac_ext
8875 cat >>conftest.$ac_ext <<_ACEOF
8876 /* end confdefs.h. */
8877 $ac_includes_default
8878 #if HAVE_SYS_SOCKET_H
8879 #include <sys/socket.h>
8880 #endif
8881 #if HAVE_NET_IF_H
8882 #include <net/if.h>
8883 #endif
8884
8885 int
8886 main ()
8887 {
8888 static struct ifreq ac_aggr;
8889 if (ac_aggr.ifr_hwaddr)
8890 return 0;
8891 ;
8892 return 0;
8893 }
8894 _ACEOF
8895 rm -f conftest.$ac_objext
8896 if { (ac_try="$ac_compile"
8897 case "(($ac_try" in
8898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8899 *) ac_try_echo=$ac_try;;
8900 esac
8901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8902 (eval "$ac_compile") 2>conftest.er1
8903 ac_status=$?
8904 grep -v '^ *+' conftest.er1 >conftest.err
8905 rm -f conftest.er1
8906 cat conftest.err >&5
8907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8908 (exit $ac_status); } &&
8909 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8910 { (case "(($ac_try" in
8911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8912 *) ac_try_echo=$ac_try;;
8913 esac
8914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8915 (eval "$ac_try") 2>&5
8916 ac_status=$?
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); }; } &&
8919 { ac_try='test -s conftest.$ac_objext'
8920 { (case "(($ac_try" in
8921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8922 *) ac_try_echo=$ac_try;;
8923 esac
8924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8925 (eval "$ac_try") 2>&5
8926 ac_status=$?
8927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8928 (exit $ac_status); }; }; then
8929 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8930 else
8931 echo "$as_me: failed program was:" >&5
8932 sed 's/^/| /' conftest.$ac_ext >&5
8933
8934 cat >conftest.$ac_ext <<_ACEOF
8935 /* confdefs.h. */
8936 _ACEOF
8937 cat confdefs.h >>conftest.$ac_ext
8938 cat >>conftest.$ac_ext <<_ACEOF
8939 /* end confdefs.h. */
8940 $ac_includes_default
8941 #if HAVE_SYS_SOCKET_H
8942 #include <sys/socket.h>
8943 #endif
8944 #if HAVE_NET_IF_H
8945 #include <net/if.h>
8946 #endif
8947
8948 int
8949 main ()
8950 {
8951 static struct ifreq ac_aggr;
8952 if (sizeof ac_aggr.ifr_hwaddr)
8953 return 0;
8954 ;
8955 return 0;
8956 }
8957 _ACEOF
8958 rm -f conftest.$ac_objext
8959 if { (ac_try="$ac_compile"
8960 case "(($ac_try" in
8961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8962 *) ac_try_echo=$ac_try;;
8963 esac
8964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8965 (eval "$ac_compile") 2>conftest.er1
8966 ac_status=$?
8967 grep -v '^ *+' conftest.er1 >conftest.err
8968 rm -f conftest.er1
8969 cat conftest.err >&5
8970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8971 (exit $ac_status); } &&
8972 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8973 { (case "(($ac_try" in
8974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8975 *) ac_try_echo=$ac_try;;
8976 esac
8977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8978 (eval "$ac_try") 2>&5
8979 ac_status=$?
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 (exit $ac_status); }; } &&
8982 { ac_try='test -s conftest.$ac_objext'
8983 { (case "(($ac_try" in
8984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8985 *) ac_try_echo=$ac_try;;
8986 esac
8987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8988 (eval "$ac_try") 2>&5
8989 ac_status=$?
8990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8991 (exit $ac_status); }; }; then
8992 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8993 else
8994 echo "$as_me: failed program was:" >&5
8995 sed 's/^/| /' conftest.$ac_ext >&5
8996
8997 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8998 fi
8999
9000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9001 fi
9002
9003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9004 fi
9005 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
9006 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
9007 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
9008
9009 cat >>confdefs.h <<_ACEOF
9010 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
9011 _ACEOF
9012
9013
9014 fi
9015 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
9016 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
9017 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
9018 echo $ECHO_N "(cached) $ECHO_C" >&6
9019 else
9020 cat >conftest.$ac_ext <<_ACEOF
9021 /* confdefs.h. */
9022 _ACEOF
9023 cat confdefs.h >>conftest.$ac_ext
9024 cat >>conftest.$ac_ext <<_ACEOF
9025 /* end confdefs.h. */
9026 $ac_includes_default
9027 #if HAVE_SYS_SOCKET_H
9028 #include <sys/socket.h>
9029 #endif
9030 #if HAVE_NET_IF_H
9031 #include <net/if.h>
9032 #endif
9033
9034 int
9035 main ()
9036 {
9037 static struct ifreq ac_aggr;
9038 if (ac_aggr.ifr_netmask)
9039 return 0;
9040 ;
9041 return 0;
9042 }
9043 _ACEOF
9044 rm -f conftest.$ac_objext
9045 if { (ac_try="$ac_compile"
9046 case "(($ac_try" in
9047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048 *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051 (eval "$ac_compile") 2>conftest.er1
9052 ac_status=$?
9053 grep -v '^ *+' conftest.er1 >conftest.err
9054 rm -f conftest.er1
9055 cat conftest.err >&5
9056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9057 (exit $ac_status); } &&
9058 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9059 { (case "(($ac_try" in
9060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9061 *) ac_try_echo=$ac_try;;
9062 esac
9063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9064 (eval "$ac_try") 2>&5
9065 ac_status=$?
9066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9067 (exit $ac_status); }; } &&
9068 { ac_try='test -s conftest.$ac_objext'
9069 { (case "(($ac_try" in
9070 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9071 *) ac_try_echo=$ac_try;;
9072 esac
9073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9074 (eval "$ac_try") 2>&5
9075 ac_status=$?
9076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9077 (exit $ac_status); }; }; then
9078 ac_cv_member_struct_ifreq_ifr_netmask=yes
9079 else
9080 echo "$as_me: failed program was:" >&5
9081 sed 's/^/| /' conftest.$ac_ext >&5
9082
9083 cat >conftest.$ac_ext <<_ACEOF
9084 /* confdefs.h. */
9085 _ACEOF
9086 cat confdefs.h >>conftest.$ac_ext
9087 cat >>conftest.$ac_ext <<_ACEOF
9088 /* end confdefs.h. */
9089 $ac_includes_default
9090 #if HAVE_SYS_SOCKET_H
9091 #include <sys/socket.h>
9092 #endif
9093 #if HAVE_NET_IF_H
9094 #include <net/if.h>
9095 #endif
9096
9097 int
9098 main ()
9099 {
9100 static struct ifreq ac_aggr;
9101 if (sizeof ac_aggr.ifr_netmask)
9102 return 0;
9103 ;
9104 return 0;
9105 }
9106 _ACEOF
9107 rm -f conftest.$ac_objext
9108 if { (ac_try="$ac_compile"
9109 case "(($ac_try" in
9110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9111 *) ac_try_echo=$ac_try;;
9112 esac
9113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9114 (eval "$ac_compile") 2>conftest.er1
9115 ac_status=$?
9116 grep -v '^ *+' conftest.er1 >conftest.err
9117 rm -f conftest.er1
9118 cat conftest.err >&5
9119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9120 (exit $ac_status); } &&
9121 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9122 { (case "(($ac_try" in
9123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9124 *) ac_try_echo=$ac_try;;
9125 esac
9126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9127 (eval "$ac_try") 2>&5
9128 ac_status=$?
9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9130 (exit $ac_status); }; } &&
9131 { ac_try='test -s conftest.$ac_objext'
9132 { (case "(($ac_try" in
9133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9134 *) ac_try_echo=$ac_try;;
9135 esac
9136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9137 (eval "$ac_try") 2>&5
9138 ac_status=$?
9139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9140 (exit $ac_status); }; }; then
9141 ac_cv_member_struct_ifreq_ifr_netmask=yes
9142 else
9143 echo "$as_me: failed program was:" >&5
9144 sed 's/^/| /' conftest.$ac_ext >&5
9145
9146 ac_cv_member_struct_ifreq_ifr_netmask=no
9147 fi
9148
9149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9150 fi
9151
9152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9153 fi
9154 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
9155 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
9156 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
9157
9158 cat >>confdefs.h <<_ACEOF
9159 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
9160 _ACEOF
9161
9162
9163 fi
9164 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
9165 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
9166 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
9167 echo $ECHO_N "(cached) $ECHO_C" >&6
9168 else
9169 cat >conftest.$ac_ext <<_ACEOF
9170 /* confdefs.h. */
9171 _ACEOF
9172 cat confdefs.h >>conftest.$ac_ext
9173 cat >>conftest.$ac_ext <<_ACEOF
9174 /* end confdefs.h. */
9175 $ac_includes_default
9176 #if HAVE_SYS_SOCKET_H
9177 #include <sys/socket.h>
9178 #endif
9179 #if HAVE_NET_IF_H
9180 #include <net/if.h>
9181 #endif
9182
9183 int
9184 main ()
9185 {
9186 static struct ifreq ac_aggr;
9187 if (ac_aggr.ifr_broadaddr)
9188 return 0;
9189 ;
9190 return 0;
9191 }
9192 _ACEOF
9193 rm -f conftest.$ac_objext
9194 if { (ac_try="$ac_compile"
9195 case "(($ac_try" in
9196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9197 *) ac_try_echo=$ac_try;;
9198 esac
9199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9200 (eval "$ac_compile") 2>conftest.er1
9201 ac_status=$?
9202 grep -v '^ *+' conftest.er1 >conftest.err
9203 rm -f conftest.er1
9204 cat conftest.err >&5
9205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9206 (exit $ac_status); } &&
9207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9208 { (case "(($ac_try" in
9209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9210 *) ac_try_echo=$ac_try;;
9211 esac
9212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9213 (eval "$ac_try") 2>&5
9214 ac_status=$?
9215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9216 (exit $ac_status); }; } &&
9217 { ac_try='test -s conftest.$ac_objext'
9218 { (case "(($ac_try" in
9219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9220 *) ac_try_echo=$ac_try;;
9221 esac
9222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9223 (eval "$ac_try") 2>&5
9224 ac_status=$?
9225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9226 (exit $ac_status); }; }; then
9227 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9228 else
9229 echo "$as_me: failed program was:" >&5
9230 sed 's/^/| /' conftest.$ac_ext >&5
9231
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 $ac_includes_default
9239 #if HAVE_SYS_SOCKET_H
9240 #include <sys/socket.h>
9241 #endif
9242 #if HAVE_NET_IF_H
9243 #include <net/if.h>
9244 #endif
9245
9246 int
9247 main ()
9248 {
9249 static struct ifreq ac_aggr;
9250 if (sizeof ac_aggr.ifr_broadaddr)
9251 return 0;
9252 ;
9253 return 0;
9254 }
9255 _ACEOF
9256 rm -f conftest.$ac_objext
9257 if { (ac_try="$ac_compile"
9258 case "(($ac_try" in
9259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9260 *) ac_try_echo=$ac_try;;
9261 esac
9262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9263 (eval "$ac_compile") 2>conftest.er1
9264 ac_status=$?
9265 grep -v '^ *+' conftest.er1 >conftest.err
9266 rm -f conftest.er1
9267 cat conftest.err >&5
9268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9269 (exit $ac_status); } &&
9270 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9271 { (case "(($ac_try" in
9272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9273 *) ac_try_echo=$ac_try;;
9274 esac
9275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9276 (eval "$ac_try") 2>&5
9277 ac_status=$?
9278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9279 (exit $ac_status); }; } &&
9280 { ac_try='test -s conftest.$ac_objext'
9281 { (case "(($ac_try" in
9282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9283 *) ac_try_echo=$ac_try;;
9284 esac
9285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9286 (eval "$ac_try") 2>&5
9287 ac_status=$?
9288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9289 (exit $ac_status); }; }; then
9290 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
9291 else
9292 echo "$as_me: failed program was:" >&5
9293 sed 's/^/| /' conftest.$ac_ext >&5
9294
9295 ac_cv_member_struct_ifreq_ifr_broadaddr=no
9296 fi
9297
9298 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9299 fi
9300
9301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9302 fi
9303 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
9304 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
9305 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
9306
9307 cat >>confdefs.h <<_ACEOF
9308 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
9309 _ACEOF
9310
9311
9312 fi
9313 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
9314 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
9315 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
9316 echo $ECHO_N "(cached) $ECHO_C" >&6
9317 else
9318 cat >conftest.$ac_ext <<_ACEOF
9319 /* confdefs.h. */
9320 _ACEOF
9321 cat confdefs.h >>conftest.$ac_ext
9322 cat >>conftest.$ac_ext <<_ACEOF
9323 /* end confdefs.h. */
9324 $ac_includes_default
9325 #if HAVE_SYS_SOCKET_H
9326 #include <sys/socket.h>
9327 #endif
9328 #if HAVE_NET_IF_H
9329 #include <net/if.h>
9330 #endif
9331
9332 int
9333 main ()
9334 {
9335 static struct ifreq ac_aggr;
9336 if (ac_aggr.ifr_addr)
9337 return 0;
9338 ;
9339 return 0;
9340 }
9341 _ACEOF
9342 rm -f conftest.$ac_objext
9343 if { (ac_try="$ac_compile"
9344 case "(($ac_try" in
9345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9346 *) ac_try_echo=$ac_try;;
9347 esac
9348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9349 (eval "$ac_compile") 2>conftest.er1
9350 ac_status=$?
9351 grep -v '^ *+' conftest.er1 >conftest.err
9352 rm -f conftest.er1
9353 cat conftest.err >&5
9354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9355 (exit $ac_status); } &&
9356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9357 { (case "(($ac_try" in
9358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9359 *) ac_try_echo=$ac_try;;
9360 esac
9361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9362 (eval "$ac_try") 2>&5
9363 ac_status=$?
9364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9365 (exit $ac_status); }; } &&
9366 { ac_try='test -s conftest.$ac_objext'
9367 { (case "(($ac_try" in
9368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9369 *) ac_try_echo=$ac_try;;
9370 esac
9371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9372 (eval "$ac_try") 2>&5
9373 ac_status=$?
9374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9375 (exit $ac_status); }; }; then
9376 ac_cv_member_struct_ifreq_ifr_addr=yes
9377 else
9378 echo "$as_me: failed program was:" >&5
9379 sed 's/^/| /' conftest.$ac_ext >&5
9380
9381 cat >conftest.$ac_ext <<_ACEOF
9382 /* confdefs.h. */
9383 _ACEOF
9384 cat confdefs.h >>conftest.$ac_ext
9385 cat >>conftest.$ac_ext <<_ACEOF
9386 /* end confdefs.h. */
9387 $ac_includes_default
9388 #if HAVE_SYS_SOCKET_H
9389 #include <sys/socket.h>
9390 #endif
9391 #if HAVE_NET_IF_H
9392 #include <net/if.h>
9393 #endif
9394
9395 int
9396 main ()
9397 {
9398 static struct ifreq ac_aggr;
9399 if (sizeof ac_aggr.ifr_addr)
9400 return 0;
9401 ;
9402 return 0;
9403 }
9404 _ACEOF
9405 rm -f conftest.$ac_objext
9406 if { (ac_try="$ac_compile"
9407 case "(($ac_try" in
9408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9409 *) ac_try_echo=$ac_try;;
9410 esac
9411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9412 (eval "$ac_compile") 2>conftest.er1
9413 ac_status=$?
9414 grep -v '^ *+' conftest.er1 >conftest.err
9415 rm -f conftest.er1
9416 cat conftest.err >&5
9417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9418 (exit $ac_status); } &&
9419 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9420 { (case "(($ac_try" in
9421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9422 *) ac_try_echo=$ac_try;;
9423 esac
9424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9425 (eval "$ac_try") 2>&5
9426 ac_status=$?
9427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9428 (exit $ac_status); }; } &&
9429 { ac_try='test -s conftest.$ac_objext'
9430 { (case "(($ac_try" in
9431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9432 *) ac_try_echo=$ac_try;;
9433 esac
9434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9435 (eval "$ac_try") 2>&5
9436 ac_status=$?
9437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9438 (exit $ac_status); }; }; then
9439 ac_cv_member_struct_ifreq_ifr_addr=yes
9440 else
9441 echo "$as_me: failed program was:" >&5
9442 sed 's/^/| /' conftest.$ac_ext >&5
9443
9444 ac_cv_member_struct_ifreq_ifr_addr=no
9445 fi
9446
9447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9448 fi
9449
9450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9451 fi
9452 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
9453 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
9454 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
9455
9456 cat >>confdefs.h <<_ACEOF
9457 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
9458 _ACEOF
9459
9460
9461 fi
9462
9463
9464
9465 { echo "$as_me:$LINENO: checking for function prototypes" >&5
9466 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
9467 if test "$ac_cv_prog_cc_c89" != no; then
9468 { echo "$as_me:$LINENO: result: yes" >&5
9469 echo "${ECHO_T}yes" >&6; }
9470
9471 cat >>confdefs.h <<\_ACEOF
9472 #define PROTOTYPES 1
9473 _ACEOF
9474
9475
9476 cat >>confdefs.h <<\_ACEOF
9477 #define __PROTOTYPES 1
9478 _ACEOF
9479
9480 else
9481 { echo "$as_me:$LINENO: result: no" >&5
9482 echo "${ECHO_T}no" >&6; }
9483 fi
9484
9485 { echo "$as_me:$LINENO: checking for working volatile" >&5
9486 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
9487 if test "${ac_cv_c_volatile+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496
9497 int
9498 main ()
9499 {
9500
9501 volatile int x;
9502 int * volatile y = (int *) 0;
9503 return !x && !y;
9504 ;
9505 return 0;
9506 }
9507 _ACEOF
9508 rm -f conftest.$ac_objext
9509 if { (ac_try="$ac_compile"
9510 case "(($ac_try" in
9511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9512 *) ac_try_echo=$ac_try;;
9513 esac
9514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9515 (eval "$ac_compile") 2>conftest.er1
9516 ac_status=$?
9517 grep -v '^ *+' conftest.er1 >conftest.err
9518 rm -f conftest.er1
9519 cat conftest.err >&5
9520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9521 (exit $ac_status); } &&
9522 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9523 { (case "(($ac_try" in
9524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9525 *) ac_try_echo=$ac_try;;
9526 esac
9527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9528 (eval "$ac_try") 2>&5
9529 ac_status=$?
9530 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9531 (exit $ac_status); }; } &&
9532 { ac_try='test -s conftest.$ac_objext'
9533 { (case "(($ac_try" in
9534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9535 *) ac_try_echo=$ac_try;;
9536 esac
9537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9538 (eval "$ac_try") 2>&5
9539 ac_status=$?
9540 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9541 (exit $ac_status); }; }; then
9542 ac_cv_c_volatile=yes
9543 else
9544 echo "$as_me: failed program was:" >&5
9545 sed 's/^/| /' conftest.$ac_ext >&5
9546
9547 ac_cv_c_volatile=no
9548 fi
9549
9550 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9551 fi
9552 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
9553 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
9554 if test $ac_cv_c_volatile = no; then
9555
9556 cat >>confdefs.h <<\_ACEOF
9557 #define volatile
9558 _ACEOF
9559
9560 fi
9561
9562 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9563 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9564 if test "${ac_cv_c_const+set}" = set; then
9565 echo $ECHO_N "(cached) $ECHO_C" >&6
9566 else
9567 cat >conftest.$ac_ext <<_ACEOF
9568 /* confdefs.h. */
9569 _ACEOF
9570 cat confdefs.h >>conftest.$ac_ext
9571 cat >>conftest.$ac_ext <<_ACEOF
9572 /* end confdefs.h. */
9573
9574 int
9575 main ()
9576 {
9577 /* FIXME: Include the comments suggested by Paul. */
9578 #ifndef __cplusplus
9579 /* Ultrix mips cc rejects this. */
9580 typedef int charset[2];
9581 const charset x;
9582 /* SunOS 4.1.1 cc rejects this. */
9583 char const *const *ccp;
9584 char **p;
9585 /* NEC SVR4.0.2 mips cc rejects this. */
9586 struct point {int x, y;};
9587 static struct point const zero = {0,0};
9588 /* AIX XL C 1.02.0.0 rejects this.
9589 It does not let you subtract one const X* pointer from another in
9590 an arm of an if-expression whose if-part is not a constant
9591 expression */
9592 const char *g = "string";
9593 ccp = &g + (g ? g-g : 0);
9594 /* HPUX 7.0 cc rejects these. */
9595 ++ccp;
9596 p = (char**) ccp;
9597 ccp = (char const *const *) p;
9598 { /* SCO 3.2v4 cc rejects this. */
9599 char *t;
9600 char const *s = 0 ? (char *) 0 : (char const *) 0;
9601
9602 *t++ = 0;
9603 if (s) return 0;
9604 }
9605 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9606 int x[] = {25, 17};
9607 const int *foo = &x[0];
9608 ++foo;
9609 }
9610 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9611 typedef const int *iptr;
9612 iptr p = 0;
9613 ++p;
9614 }
9615 { /* AIX XL C 1.02.0.0 rejects this saying
9616 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9617 struct s { int j; const int *ap[3]; };
9618 struct s *b; b->j = 5;
9619 }
9620 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9621 const int foo = 10;
9622 if (!foo) return 0;
9623 }
9624 return !x[0] && !zero.x;
9625 #endif
9626
9627 ;
9628 return 0;
9629 }
9630 _ACEOF
9631 rm -f conftest.$ac_objext
9632 if { (ac_try="$ac_compile"
9633 case "(($ac_try" in
9634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9635 *) ac_try_echo=$ac_try;;
9636 esac
9637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9638 (eval "$ac_compile") 2>conftest.er1
9639 ac_status=$?
9640 grep -v '^ *+' conftest.er1 >conftest.err
9641 rm -f conftest.er1
9642 cat conftest.err >&5
9643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9644 (exit $ac_status); } &&
9645 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9646 { (case "(($ac_try" in
9647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9648 *) ac_try_echo=$ac_try;;
9649 esac
9650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9651 (eval "$ac_try") 2>&5
9652 ac_status=$?
9653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9654 (exit $ac_status); }; } &&
9655 { ac_try='test -s conftest.$ac_objext'
9656 { (case "(($ac_try" in
9657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9658 *) ac_try_echo=$ac_try;;
9659 esac
9660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9661 (eval "$ac_try") 2>&5
9662 ac_status=$?
9663 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9664 (exit $ac_status); }; }; then
9665 ac_cv_c_const=yes
9666 else
9667 echo "$as_me: failed program was:" >&5
9668 sed 's/^/| /' conftest.$ac_ext >&5
9669
9670 ac_cv_c_const=no
9671 fi
9672
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9674 fi
9675 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9676 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9677 if test $ac_cv_c_const = no; then
9678
9679 cat >>confdefs.h <<\_ACEOF
9680 #define const
9681 _ACEOF
9682
9683 fi
9684
9685 { echo "$as_me:$LINENO: checking for void * support" >&5
9686 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9687 if test "${emacs_cv_void_star+set}" = set; then
9688 echo $ECHO_N "(cached) $ECHO_C" >&6
9689 else
9690 cat >conftest.$ac_ext <<_ACEOF
9691 /* confdefs.h. */
9692 _ACEOF
9693 cat confdefs.h >>conftest.$ac_ext
9694 cat >>conftest.$ac_ext <<_ACEOF
9695 /* end confdefs.h. */
9696
9697 int
9698 main ()
9699 {
9700 void * foo;
9701 ;
9702 return 0;
9703 }
9704 _ACEOF
9705 rm -f conftest.$ac_objext
9706 if { (ac_try="$ac_compile"
9707 case "(($ac_try" in
9708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9709 *) ac_try_echo=$ac_try;;
9710 esac
9711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9712 (eval "$ac_compile") 2>conftest.er1
9713 ac_status=$?
9714 grep -v '^ *+' conftest.er1 >conftest.err
9715 rm -f conftest.er1
9716 cat conftest.err >&5
9717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9718 (exit $ac_status); } &&
9719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9720 { (case "(($ac_try" in
9721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9722 *) ac_try_echo=$ac_try;;
9723 esac
9724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9725 (eval "$ac_try") 2>&5
9726 ac_status=$?
9727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9728 (exit $ac_status); }; } &&
9729 { ac_try='test -s conftest.$ac_objext'
9730 { (case "(($ac_try" in
9731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9732 *) ac_try_echo=$ac_try;;
9733 esac
9734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9735 (eval "$ac_try") 2>&5
9736 ac_status=$?
9737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9738 (exit $ac_status); }; }; then
9739 emacs_cv_void_star=yes
9740 else
9741 echo "$as_me: failed program was:" >&5
9742 sed 's/^/| /' conftest.$ac_ext >&5
9743
9744 emacs_cv_void_star=no
9745 fi
9746
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9748 fi
9749 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9750 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9751 if test $emacs_cv_void_star = yes; then
9752 cat >>confdefs.h <<\_ACEOF
9753 #define POINTER_TYPE void
9754 _ACEOF
9755
9756 else
9757 cat >>confdefs.h <<\_ACEOF
9758 #define POINTER_TYPE char
9759 _ACEOF
9760
9761 fi
9762
9763
9764
9765
9766
9767 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9768 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9769 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9770 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9771 echo $ECHO_N "(cached) $ECHO_C" >&6
9772 else
9773 cat >conftest.make <<\_ACEOF
9774 SHELL = /bin/sh
9775 all:
9776 @echo '@@@%%%=$(MAKE)=@@@%%%'
9777 _ACEOF
9778 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9779 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9780 *@@@%%%=?*=@@@%%%*)
9781 eval ac_cv_prog_make_${ac_make}_set=yes;;
9782 *)
9783 eval ac_cv_prog_make_${ac_make}_set=no;;
9784 esac
9785 rm -f conftest.make
9786 fi
9787 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9788 { echo "$as_me:$LINENO: result: yes" >&5
9789 echo "${ECHO_T}yes" >&6; }
9790 SET_MAKE=
9791 else
9792 { echo "$as_me:$LINENO: result: no" >&5
9793 echo "${ECHO_T}no" >&6; }
9794 SET_MAKE="MAKE=${MAKE-make}"
9795 fi
9796
9797
9798 { echo "$as_me:$LINENO: checking for long file names" >&5
9799 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9800 if test "${ac_cv_sys_long_file_names+set}" = set; then
9801 echo $ECHO_N "(cached) $ECHO_C" >&6
9802 else
9803 ac_cv_sys_long_file_names=yes
9804 # Test for long file names in all the places we know might matter:
9805 # . the current directory, where building will happen
9806 # $prefix/lib where we will be installing things
9807 # $exec_prefix/lib likewise
9808 # $TMPDIR if set, where it might want to write temporary files
9809 # /tmp where it might want to write temporary files
9810 # /var/tmp likewise
9811 # /usr/tmp likewise
9812 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9813 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9814 # in the usual case where exec_prefix is '${prefix}'.
9815 case $ac_dir in #(
9816 . | /* | ?:[\\/]*) ;; #(
9817 *) continue;;
9818 esac
9819 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9820 ac_xdir=$ac_dir/cf$$
9821 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9822 ac_tf1=$ac_xdir/conftest9012345
9823 ac_tf2=$ac_xdir/conftest9012346
9824 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9825 ac_cv_sys_long_file_names=no
9826 rm -f -r "$ac_xdir" 2>/dev/null
9827 test $ac_cv_sys_long_file_names = no && break
9828 done
9829 fi
9830 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9831 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9832 if test $ac_cv_sys_long_file_names = yes; then
9833
9834 cat >>confdefs.h <<\_ACEOF
9835 #define HAVE_LONG_FILE_NAMES 1
9836 _ACEOF
9837
9838 fi
9839
9840
9841 #### Choose a window system.
9842
9843 { echo "$as_me:$LINENO: checking for X" >&5
9844 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9845
9846
9847 # Check whether --with-x was given.
9848 if test "${with_x+set}" = set; then
9849 withval=$with_x;
9850 fi
9851
9852 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9853 if test "x$with_x" = xno; then
9854 # The user explicitly disabled X.
9855 have_x=disabled
9856 else
9857 case $x_includes,$x_libraries in #(
9858 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9859 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9860 { (exit 1); exit 1; }; };; #(
9861 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9862 echo $ECHO_N "(cached) $ECHO_C" >&6
9863 else
9864 # One or both of the vars are not set, and there is no cached value.
9865 ac_x_includes=no ac_x_libraries=no
9866 rm -f -r conftest.dir
9867 if mkdir conftest.dir; then
9868 cd conftest.dir
9869 cat >Imakefile <<'_ACEOF'
9870 incroot:
9871 @echo incroot='${INCROOT}'
9872 usrlibdir:
9873 @echo usrlibdir='${USRLIBDIR}'
9874 libdir:
9875 @echo libdir='${LIBDIR}'
9876 _ACEOF
9877 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9878 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9879 for ac_var in incroot usrlibdir libdir; do
9880 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9881 done
9882 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9883 for ac_extension in a so sl; do
9884 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9885 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9886 ac_im_usrlibdir=$ac_im_libdir; break
9887 fi
9888 done
9889 # Screen out bogus values from the imake configuration. They are
9890 # bogus both because they are the default anyway, and because
9891 # using them would break gcc on systems where it needs fixed includes.
9892 case $ac_im_incroot in
9893 /usr/include) ac_x_includes= ;;
9894 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9895 esac
9896 case $ac_im_usrlibdir in
9897 /usr/lib | /lib) ;;
9898 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9899 esac
9900 fi
9901 cd ..
9902 rm -f -r conftest.dir
9903 fi
9904
9905 # Standard set of common directories for X headers.
9906 # Check X11 before X11Rn because it is often a symlink to the current release.
9907 ac_x_header_dirs='
9908 /usr/X11/include
9909 /usr/X11R6/include
9910 /usr/X11R5/include
9911 /usr/X11R4/include
9912
9913 /usr/include/X11
9914 /usr/include/X11R6
9915 /usr/include/X11R5
9916 /usr/include/X11R4
9917
9918 /usr/local/X11/include
9919 /usr/local/X11R6/include
9920 /usr/local/X11R5/include
9921 /usr/local/X11R4/include
9922
9923 /usr/local/include/X11
9924 /usr/local/include/X11R6
9925 /usr/local/include/X11R5
9926 /usr/local/include/X11R4
9927
9928 /usr/X386/include
9929 /usr/x386/include
9930 /usr/XFree86/include/X11
9931
9932 /usr/include
9933 /usr/local/include
9934 /usr/unsupported/include
9935 /usr/athena/include
9936 /usr/local/x11r5/include
9937 /usr/lpp/Xamples/include
9938
9939 /usr/openwin/include
9940 /usr/openwin/share/include'
9941
9942 if test "$ac_x_includes" = no; then
9943 # Guess where to find include files, by looking for Xlib.h.
9944 # First, try using that file with no special directory specified.
9945 cat >conftest.$ac_ext <<_ACEOF
9946 /* confdefs.h. */
9947 _ACEOF
9948 cat confdefs.h >>conftest.$ac_ext
9949 cat >>conftest.$ac_ext <<_ACEOF
9950 /* end confdefs.h. */
9951 #include <X11/Xlib.h>
9952 _ACEOF
9953 if { (ac_try="$ac_cpp conftest.$ac_ext"
9954 case "(($ac_try" in
9955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9956 *) ac_try_echo=$ac_try;;
9957 esac
9958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9960 ac_status=$?
9961 grep -v '^ *+' conftest.er1 >conftest.err
9962 rm -f conftest.er1
9963 cat conftest.err >&5
9964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9965 (exit $ac_status); } >/dev/null; then
9966 if test -s conftest.err; then
9967 ac_cpp_err=$ac_c_preproc_warn_flag
9968 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9969 else
9970 ac_cpp_err=
9971 fi
9972 else
9973 ac_cpp_err=yes
9974 fi
9975 if test -z "$ac_cpp_err"; then
9976 # We can compile using X headers with no special include directory.
9977 ac_x_includes=
9978 else
9979 echo "$as_me: failed program was:" >&5
9980 sed 's/^/| /' conftest.$ac_ext >&5
9981
9982 for ac_dir in $ac_x_header_dirs; do
9983 if test -r "$ac_dir/X11/Xlib.h"; then
9984 ac_x_includes=$ac_dir
9985 break
9986 fi
9987 done
9988 fi
9989
9990 rm -f conftest.err conftest.$ac_ext
9991 fi # $ac_x_includes = no
9992
9993 if test "$ac_x_libraries" = no; then
9994 # Check for the libraries.
9995 # See if we find them without any special options.
9996 # Don't add to $LIBS permanently.
9997 ac_save_LIBS=$LIBS
9998 LIBS="-lXt $LIBS"
9999 cat >conftest.$ac_ext <<_ACEOF
10000 /* confdefs.h. */
10001 _ACEOF
10002 cat confdefs.h >>conftest.$ac_ext
10003 cat >>conftest.$ac_ext <<_ACEOF
10004 /* end confdefs.h. */
10005 #include <X11/Xlib.h>
10006 int
10007 main ()
10008 {
10009 XrmInitialize ()
10010 ;
10011 return 0;
10012 }
10013 _ACEOF
10014 rm -f conftest.$ac_objext conftest$ac_exeext
10015 if { (ac_try="$ac_link"
10016 case "(($ac_try" in
10017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10018 *) ac_try_echo=$ac_try;;
10019 esac
10020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10021 (eval "$ac_link") 2>conftest.er1
10022 ac_status=$?
10023 grep -v '^ *+' conftest.er1 >conftest.err
10024 rm -f conftest.er1
10025 cat conftest.err >&5
10026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10027 (exit $ac_status); } &&
10028 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10029 { (case "(($ac_try" in
10030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10031 *) ac_try_echo=$ac_try;;
10032 esac
10033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10034 (eval "$ac_try") 2>&5
10035 ac_status=$?
10036 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10037 (exit $ac_status); }; } &&
10038 { ac_try='test -s conftest$ac_exeext'
10039 { (case "(($ac_try" in
10040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10041 *) ac_try_echo=$ac_try;;
10042 esac
10043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10044 (eval "$ac_try") 2>&5
10045 ac_status=$?
10046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10047 (exit $ac_status); }; }; then
10048 LIBS=$ac_save_LIBS
10049 # We can link X programs with no special library path.
10050 ac_x_libraries=
10051 else
10052 echo "$as_me: failed program was:" >&5
10053 sed 's/^/| /' conftest.$ac_ext >&5
10054
10055 LIBS=$ac_save_LIBS
10056 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
10057 do
10058 # Don't even attempt the hair of trying to link an X program!
10059 for ac_extension in a so sl; do
10060 if test -r "$ac_dir/libXt.$ac_extension"; then
10061 ac_x_libraries=$ac_dir
10062 break 2
10063 fi
10064 done
10065 done
10066 fi
10067
10068 rm -f core conftest.err conftest.$ac_objext \
10069 conftest$ac_exeext conftest.$ac_ext
10070 fi # $ac_x_libraries = no
10071
10072 case $ac_x_includes,$ac_x_libraries in #(
10073 no,* | *,no | *\'*)
10074 # Didn't find X, or a directory has "'" in its name.
10075 ac_cv_have_x="have_x=no";; #(
10076 *)
10077 # Record where we found X for the cache.
10078 ac_cv_have_x="have_x=yes\
10079 ac_x_includes='$ac_x_includes'\
10080 ac_x_libraries='$ac_x_libraries'"
10081 esac
10082 fi
10083 ;; #(
10084 *) have_x=yes;;
10085 esac
10086 eval "$ac_cv_have_x"
10087 fi # $with_x != no
10088
10089 if test "$have_x" != yes; then
10090 { echo "$as_me:$LINENO: result: $have_x" >&5
10091 echo "${ECHO_T}$have_x" >&6; }
10092 no_x=yes
10093 else
10094 # If each of the values was on the command line, it overrides each guess.
10095 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
10096 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
10097 # Update the cache value to reflect the command line values.
10098 ac_cv_have_x="have_x=yes\
10099 ac_x_includes='$x_includes'\
10100 ac_x_libraries='$x_libraries'"
10101 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
10102 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
10103 fi
10104
10105 if test "$no_x" = yes; then
10106 window_system=none
10107 else
10108 window_system=x11
10109 fi
10110
10111 if test "${x_libraries}" != NONE; then
10112 if test -n "${x_libraries}"; then
10113 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
10114 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
10115 fi
10116 x_default_search_path=""
10117 x_search_path=${x_libraries}
10118 if test -z "${x_search_path}"; then
10119 x_search_path=/usr/lib
10120 fi
10121 for x_library in `echo ${x_search_path}: | \
10122 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
10123 x_search_path="\
10124 ${x_library}/X11/%L/%T/%N%C%S:\
10125 ${x_library}/X11/%l/%T/%N%C%S:\
10126 ${x_library}/X11/%T/%N%C%S:\
10127 ${x_library}/X11/%L/%T/%N%S:\
10128 ${x_library}/X11/%l/%T/%N%S:\
10129 ${x_library}/X11/%T/%N%S"
10130 if test x"${x_default_search_path}" = x; then
10131 x_default_search_path=${x_search_path}
10132 else
10133 x_default_search_path="${x_search_path}:${x_default_search_path}"
10134 fi
10135 done
10136 fi
10137 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
10138 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
10139 fi
10140
10141 if test x"${x_includes}" = x; then
10142 bitmapdir=/usr/include/X11/bitmaps
10143 else
10144 # accumulate include directories that have X11 bitmap subdirectories
10145 bmd_acc="dummyval"
10146 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
10147 if test -d "${bmd}/X11/bitmaps"; then
10148 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
10149 fi
10150 if test -d "${bmd}/bitmaps"; then
10151 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
10152 fi
10153 done
10154 if test ${bmd_acc} != "dummyval"; then
10155 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
10156 fi
10157 fi
10158
10159 HAVE_CARBON=no
10160 if test "${with_carbon}" != no; then
10161 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10162 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10163 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10164 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10165 echo $ECHO_N "(cached) $ECHO_C" >&6
10166 fi
10167 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10168 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10169 else
10170 # Is the header compilable?
10171 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
10172 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
10173 cat >conftest.$ac_ext <<_ACEOF
10174 /* confdefs.h. */
10175 _ACEOF
10176 cat confdefs.h >>conftest.$ac_ext
10177 cat >>conftest.$ac_ext <<_ACEOF
10178 /* end confdefs.h. */
10179 $ac_includes_default
10180 #include <Carbon/Carbon.h>
10181 _ACEOF
10182 rm -f conftest.$ac_objext
10183 if { (ac_try="$ac_compile"
10184 case "(($ac_try" in
10185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10186 *) ac_try_echo=$ac_try;;
10187 esac
10188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10189 (eval "$ac_compile") 2>conftest.er1
10190 ac_status=$?
10191 grep -v '^ *+' conftest.er1 >conftest.err
10192 rm -f conftest.er1
10193 cat conftest.err >&5
10194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10195 (exit $ac_status); } &&
10196 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10197 { (case "(($ac_try" in
10198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10199 *) ac_try_echo=$ac_try;;
10200 esac
10201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10202 (eval "$ac_try") 2>&5
10203 ac_status=$?
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); }; } &&
10206 { ac_try='test -s conftest.$ac_objext'
10207 { (case "(($ac_try" in
10208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10209 *) ac_try_echo=$ac_try;;
10210 esac
10211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10212 (eval "$ac_try") 2>&5
10213 ac_status=$?
10214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10215 (exit $ac_status); }; }; then
10216 ac_header_compiler=yes
10217 else
10218 echo "$as_me: failed program was:" >&5
10219 sed 's/^/| /' conftest.$ac_ext >&5
10220
10221 ac_header_compiler=no
10222 fi
10223
10224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10226 echo "${ECHO_T}$ac_header_compiler" >&6; }
10227
10228 # Is the header present?
10229 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
10230 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237 #include <Carbon/Carbon.h>
10238 _ACEOF
10239 if { (ac_try="$ac_cpp conftest.$ac_ext"
10240 case "(($ac_try" in
10241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10242 *) ac_try_echo=$ac_try;;
10243 esac
10244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10246 ac_status=$?
10247 grep -v '^ *+' conftest.er1 >conftest.err
10248 rm -f conftest.er1
10249 cat conftest.err >&5
10250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10251 (exit $ac_status); } >/dev/null; then
10252 if test -s conftest.err; then
10253 ac_cpp_err=$ac_c_preproc_warn_flag
10254 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10255 else
10256 ac_cpp_err=
10257 fi
10258 else
10259 ac_cpp_err=yes
10260 fi
10261 if test -z "$ac_cpp_err"; then
10262 ac_header_preproc=yes
10263 else
10264 echo "$as_me: failed program was:" >&5
10265 sed 's/^/| /' conftest.$ac_ext >&5
10266
10267 ac_header_preproc=no
10268 fi
10269
10270 rm -f conftest.err conftest.$ac_ext
10271 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10272 echo "${ECHO_T}$ac_header_preproc" >&6; }
10273
10274 # So? What about this header?
10275 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10276 yes:no: )
10277 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
10278 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
10279 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
10280 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
10281 ac_header_preproc=yes
10282 ;;
10283 no:yes:* )
10284 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
10285 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
10286 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
10287 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
10288 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
10289 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
10290 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
10291 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
10292 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
10293 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
10294 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
10295 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
10296
10297 ;;
10298 esac
10299 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
10300 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
10301 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
10302 echo $ECHO_N "(cached) $ECHO_C" >&6
10303 else
10304 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
10305 fi
10306 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
10307 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
10308
10309 fi
10310 if test $ac_cv_header_Carbon_Carbon_h = yes; then
10311 HAVE_CARBON=yes
10312 fi
10313
10314
10315 fi
10316 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
10317 if test "${with_carbon+set}" != set \
10318 && test "${carbon_appdir_x+set}" != set; then
10319 for var in with_x with_x_toolkit with_gtk with_xim \
10320 with_xpm with_jpeg with_tiff with_gif with_png; do
10321 if eval test \"\${$var+set}\" = set; then
10322 HAVE_CARBON=no
10323 break
10324 fi
10325 done
10326 fi
10327 fi
10328 if test "${HAVE_CARBON}" = yes; then
10329 window_system=mac
10330 fi
10331
10332 case "${window_system}" in
10333 x11 )
10334 HAVE_X_WINDOWS=yes
10335 HAVE_X11=yes
10336 case "${with_x_toolkit}" in
10337 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
10338 motif ) USE_X_TOOLKIT=MOTIF ;;
10339 gtk ) with_gtk=yes
10340 USE_X_TOOLKIT=none ;;
10341 no ) USE_X_TOOLKIT=none ;;
10342 * ) USE_X_TOOLKIT=maybe ;;
10343 esac
10344 ;;
10345 mac | none )
10346 HAVE_X_WINDOWS=no
10347 HAVE_X11=no
10348 USE_X_TOOLKIT=none
10349 ;;
10350 esac
10351
10352 ### If we're using X11, we should use the X menu package.
10353 HAVE_MENUS=no
10354 case ${HAVE_X11} in
10355 yes ) HAVE_MENUS=yes ;;
10356 esac
10357
10358 if test "${opsys}" = "hpux9"; then
10359 case "${x_libraries}" in
10360 *X11R4* )
10361 opsysfile="s/hpux9-x11r4.h"
10362 ;;
10363 esac
10364 fi
10365
10366 if test "${opsys}" = "hpux9shr"; then
10367 case "${x_libraries}" in
10368 *X11R4* )
10369 opsysfile="s/hpux9shxr4.h"
10370 ;;
10371 esac
10372 fi
10373
10374 ### Compute the unexec source name from the object name.
10375 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
10376
10377 # Do the opsystem or machine files prohibit the use of the GNU malloc?
10378 # Assume not, until told otherwise.
10379 GNU_MALLOC=yes
10380 doug_lea_malloc=yes
10381 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
10382 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
10383 if test "${ac_cv_func_malloc_get_state+set}" = set; then
10384 echo $ECHO_N "(cached) $ECHO_C" >&6
10385 else
10386 cat >conftest.$ac_ext <<_ACEOF
10387 /* confdefs.h. */
10388 _ACEOF
10389 cat confdefs.h >>conftest.$ac_ext
10390 cat >>conftest.$ac_ext <<_ACEOF
10391 /* end confdefs.h. */
10392 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
10393 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10394 #define malloc_get_state innocuous_malloc_get_state
10395
10396 /* System header to define __stub macros and hopefully few prototypes,
10397 which can conflict with char malloc_get_state (); below.
10398 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10399 <limits.h> exists even on freestanding compilers. */
10400
10401 #ifdef __STDC__
10402 # include <limits.h>
10403 #else
10404 # include <assert.h>
10405 #endif
10406
10407 #undef malloc_get_state
10408
10409 /* Override any GCC internal prototype to avoid an error.
10410 Use char because int might match the return type of a GCC
10411 builtin and then its argument prototype would still apply. */
10412 #ifdef __cplusplus
10413 extern "C"
10414 #endif
10415 char malloc_get_state ();
10416 /* The GNU C library defines this for functions which it implements
10417 to always fail with ENOSYS. Some functions are actually named
10418 something starting with __ and the normal name is an alias. */
10419 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
10420 choke me
10421 #endif
10422
10423 int
10424 main ()
10425 {
10426 return malloc_get_state ();
10427 ;
10428 return 0;
10429 }
10430 _ACEOF
10431 rm -f conftest.$ac_objext conftest$ac_exeext
10432 if { (ac_try="$ac_link"
10433 case "(($ac_try" in
10434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10435 *) ac_try_echo=$ac_try;;
10436 esac
10437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10438 (eval "$ac_link") 2>conftest.er1
10439 ac_status=$?
10440 grep -v '^ *+' conftest.er1 >conftest.err
10441 rm -f conftest.er1
10442 cat conftest.err >&5
10443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10444 (exit $ac_status); } &&
10445 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10446 { (case "(($ac_try" in
10447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10448 *) ac_try_echo=$ac_try;;
10449 esac
10450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10451 (eval "$ac_try") 2>&5
10452 ac_status=$?
10453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10454 (exit $ac_status); }; } &&
10455 { ac_try='test -s conftest$ac_exeext'
10456 { (case "(($ac_try" in
10457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10458 *) ac_try_echo=$ac_try;;
10459 esac
10460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10461 (eval "$ac_try") 2>&5
10462 ac_status=$?
10463 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10464 (exit $ac_status); }; }; then
10465 ac_cv_func_malloc_get_state=yes
10466 else
10467 echo "$as_me: failed program was:" >&5
10468 sed 's/^/| /' conftest.$ac_ext >&5
10469
10470 ac_cv_func_malloc_get_state=no
10471 fi
10472
10473 rm -f core conftest.err conftest.$ac_objext \
10474 conftest$ac_exeext conftest.$ac_ext
10475 fi
10476 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
10477 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
10478 if test $ac_cv_func_malloc_get_state = yes; then
10479 :
10480 else
10481 doug_lea_malloc=no
10482 fi
10483
10484 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
10485 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
10486 if test "${ac_cv_func_malloc_set_state+set}" = set; then
10487 echo $ECHO_N "(cached) $ECHO_C" >&6
10488 else
10489 cat >conftest.$ac_ext <<_ACEOF
10490 /* confdefs.h. */
10491 _ACEOF
10492 cat confdefs.h >>conftest.$ac_ext
10493 cat >>conftest.$ac_ext <<_ACEOF
10494 /* end confdefs.h. */
10495 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
10496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10497 #define malloc_set_state innocuous_malloc_set_state
10498
10499 /* System header to define __stub macros and hopefully few prototypes,
10500 which can conflict with char malloc_set_state (); below.
10501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10502 <limits.h> exists even on freestanding compilers. */
10503
10504 #ifdef __STDC__
10505 # include <limits.h>
10506 #else
10507 # include <assert.h>
10508 #endif
10509
10510 #undef malloc_set_state
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char malloc_set_state ();
10519 /* The GNU C library defines this for functions which it implements
10520 to always fail with ENOSYS. Some functions are actually named
10521 something starting with __ and the normal name is an alias. */
10522 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
10523 choke me
10524 #endif
10525
10526 int
10527 main ()
10528 {
10529 return malloc_set_state ();
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } &&
10548 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10549 { (case "(($ac_try" in
10550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10551 *) ac_try_echo=$ac_try;;
10552 esac
10553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10554 (eval "$ac_try") 2>&5
10555 ac_status=$?
10556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10557 (exit $ac_status); }; } &&
10558 { ac_try='test -s conftest$ac_exeext'
10559 { (case "(($ac_try" in
10560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10561 *) ac_try_echo=$ac_try;;
10562 esac
10563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10564 (eval "$ac_try") 2>&5
10565 ac_status=$?
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); }; }; then
10568 ac_cv_func_malloc_set_state=yes
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 ac_cv_func_malloc_set_state=no
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext \
10577 conftest$ac_exeext conftest.$ac_ext
10578 fi
10579 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
10580 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
10581 if test $ac_cv_func_malloc_set_state = yes; then
10582 :
10583 else
10584 doug_lea_malloc=no
10585 fi
10586
10587 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
10588 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
10589 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
10590 echo $ECHO_N "(cached) $ECHO_C" >&6
10591 else
10592 cat >conftest.$ac_ext <<_ACEOF
10593 /* confdefs.h. */
10594 _ACEOF
10595 cat confdefs.h >>conftest.$ac_ext
10596 cat >>conftest.$ac_ext <<_ACEOF
10597 /* end confdefs.h. */
10598 extern void (* __after_morecore_hook)();
10599 int
10600 main ()
10601 {
10602 __after_morecore_hook = 0
10603 ;
10604 return 0;
10605 }
10606 _ACEOF
10607 rm -f conftest.$ac_objext conftest$ac_exeext
10608 if { (ac_try="$ac_link"
10609 case "(($ac_try" in
10610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10611 *) ac_try_echo=$ac_try;;
10612 esac
10613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10614 (eval "$ac_link") 2>conftest.er1
10615 ac_status=$?
10616 grep -v '^ *+' conftest.er1 >conftest.err
10617 rm -f conftest.er1
10618 cat conftest.err >&5
10619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10620 (exit $ac_status); } &&
10621 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10622 { (case "(($ac_try" in
10623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10624 *) ac_try_echo=$ac_try;;
10625 esac
10626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10627 (eval "$ac_try") 2>&5
10628 ac_status=$?
10629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10630 (exit $ac_status); }; } &&
10631 { ac_try='test -s conftest$ac_exeext'
10632 { (case "(($ac_try" in
10633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10634 *) ac_try_echo=$ac_try;;
10635 esac
10636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10637 (eval "$ac_try") 2>&5
10638 ac_status=$?
10639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10640 (exit $ac_status); }; }; then
10641 emacs_cv_var___after_morecore_hook=yes
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 emacs_cv_var___after_morecore_hook=no
10647 fi
10648
10649 rm -f core conftest.err conftest.$ac_objext \
10650 conftest$ac_exeext conftest.$ac_ext
10651 fi
10652 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10653 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10654 if test $emacs_cv_var___after_morecore_hook = no; then
10655 doug_lea_malloc=no
10656 fi
10657 if test "${system_malloc}" = "yes"; then
10658 GNU_MALLOC=no
10659 GNU_MALLOC_reason="
10660 (The GNU allocators don't work with this system configuration.)"
10661 fi
10662 if test "$doug_lea_malloc" = "yes" ; then
10663 if test "$GNU_MALLOC" = yes ; then
10664 GNU_MALLOC_reason="
10665 (Using Doug Lea's new malloc from the GNU C Library.)"
10666 fi
10667
10668 cat >>confdefs.h <<\_ACEOF
10669 #define DOUG_LEA_MALLOC 1
10670 _ACEOF
10671
10672 fi
10673
10674 if test x"${REL_ALLOC}" = x; then
10675 REL_ALLOC=${GNU_MALLOC}
10676 fi
10677
10678
10679
10680
10681 for ac_header in stdlib.h unistd.h
10682 do
10683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10685 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10688 echo $ECHO_N "(cached) $ECHO_C" >&6
10689 fi
10690 ac_res=`eval echo '${'$as_ac_Header'}'`
10691 { echo "$as_me:$LINENO: result: $ac_res" >&5
10692 echo "${ECHO_T}$ac_res" >&6; }
10693 else
10694 # Is the header compilable?
10695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10697 cat >conftest.$ac_ext <<_ACEOF
10698 /* confdefs.h. */
10699 _ACEOF
10700 cat confdefs.h >>conftest.$ac_ext
10701 cat >>conftest.$ac_ext <<_ACEOF
10702 /* end confdefs.h. */
10703 $ac_includes_default
10704 #include <$ac_header>
10705 _ACEOF
10706 rm -f conftest.$ac_objext
10707 if { (ac_try="$ac_compile"
10708 case "(($ac_try" in
10709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10710 *) ac_try_echo=$ac_try;;
10711 esac
10712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10713 (eval "$ac_compile") 2>conftest.er1
10714 ac_status=$?
10715 grep -v '^ *+' conftest.er1 >conftest.err
10716 rm -f conftest.er1
10717 cat conftest.err >&5
10718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10719 (exit $ac_status); } &&
10720 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10721 { (case "(($ac_try" in
10722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10723 *) ac_try_echo=$ac_try;;
10724 esac
10725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10726 (eval "$ac_try") 2>&5
10727 ac_status=$?
10728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10729 (exit $ac_status); }; } &&
10730 { ac_try='test -s conftest.$ac_objext'
10731 { (case "(($ac_try" in
10732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10733 *) ac_try_echo=$ac_try;;
10734 esac
10735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10736 (eval "$ac_try") 2>&5
10737 ac_status=$?
10738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10739 (exit $ac_status); }; }; then
10740 ac_header_compiler=yes
10741 else
10742 echo "$as_me: failed program was:" >&5
10743 sed 's/^/| /' conftest.$ac_ext >&5
10744
10745 ac_header_compiler=no
10746 fi
10747
10748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10750 echo "${ECHO_T}$ac_header_compiler" >&6; }
10751
10752 # Is the header present?
10753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10755 cat >conftest.$ac_ext <<_ACEOF
10756 /* confdefs.h. */
10757 _ACEOF
10758 cat confdefs.h >>conftest.$ac_ext
10759 cat >>conftest.$ac_ext <<_ACEOF
10760 /* end confdefs.h. */
10761 #include <$ac_header>
10762 _ACEOF
10763 if { (ac_try="$ac_cpp conftest.$ac_ext"
10764 case "(($ac_try" in
10765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10766 *) ac_try_echo=$ac_try;;
10767 esac
10768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10769 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10770 ac_status=$?
10771 grep -v '^ *+' conftest.er1 >conftest.err
10772 rm -f conftest.er1
10773 cat conftest.err >&5
10774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10775 (exit $ac_status); } >/dev/null; then
10776 if test -s conftest.err; then
10777 ac_cpp_err=$ac_c_preproc_warn_flag
10778 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
10779 else
10780 ac_cpp_err=
10781 fi
10782 else
10783 ac_cpp_err=yes
10784 fi
10785 if test -z "$ac_cpp_err"; then
10786 ac_header_preproc=yes
10787 else
10788 echo "$as_me: failed program was:" >&5
10789 sed 's/^/| /' conftest.$ac_ext >&5
10790
10791 ac_header_preproc=no
10792 fi
10793
10794 rm -f conftest.err conftest.$ac_ext
10795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10796 echo "${ECHO_T}$ac_header_preproc" >&6; }
10797
10798 # So? What about this header?
10799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10800 yes:no: )
10801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10805 ac_header_preproc=yes
10806 ;;
10807 no:yes:* )
10808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10820
10821 ;;
10822 esac
10823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10826 echo $ECHO_N "(cached) $ECHO_C" >&6
10827 else
10828 eval "$as_ac_Header=\$ac_header_preproc"
10829 fi
10830 ac_res=`eval echo '${'$as_ac_Header'}'`
10831 { echo "$as_me:$LINENO: result: $ac_res" >&5
10832 echo "${ECHO_T}$ac_res" >&6; }
10833
10834 fi
10835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10836 cat >>confdefs.h <<_ACEOF
10837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10838 _ACEOF
10839
10840 fi
10841
10842 done
10843
10844
10845 for ac_func in getpagesize
10846 do
10847 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10848 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10849 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10850 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10851 echo $ECHO_N "(cached) $ECHO_C" >&6
10852 else
10853 cat >conftest.$ac_ext <<_ACEOF
10854 /* confdefs.h. */
10855 _ACEOF
10856 cat confdefs.h >>conftest.$ac_ext
10857 cat >>conftest.$ac_ext <<_ACEOF
10858 /* end confdefs.h. */
10859 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10860 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10861 #define $ac_func innocuous_$ac_func
10862
10863 /* System header to define __stub macros and hopefully few prototypes,
10864 which can conflict with char $ac_func (); below.
10865 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10866 <limits.h> exists even on freestanding compilers. */
10867
10868 #ifdef __STDC__
10869 # include <limits.h>
10870 #else
10871 # include <assert.h>
10872 #endif
10873
10874 #undef $ac_func
10875
10876 /* Override any GCC internal prototype to avoid an error.
10877 Use char because int might match the return type of a GCC
10878 builtin and then its argument prototype would still apply. */
10879 #ifdef __cplusplus
10880 extern "C"
10881 #endif
10882 char $ac_func ();
10883 /* The GNU C library defines this for functions which it implements
10884 to always fail with ENOSYS. Some functions are actually named
10885 something starting with __ and the normal name is an alias. */
10886 #if defined __stub_$ac_func || defined __stub___$ac_func
10887 choke me
10888 #endif
10889
10890 int
10891 main ()
10892 {
10893 return $ac_func ();
10894 ;
10895 return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } &&
10912 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10913 { (case "(($ac_try" in
10914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10915 *) ac_try_echo=$ac_try;;
10916 esac
10917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10918 (eval "$ac_try") 2>&5
10919 ac_status=$?
10920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10921 (exit $ac_status); }; } &&
10922 { ac_try='test -s conftest$ac_exeext'
10923 { (case "(($ac_try" in
10924 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10925 *) ac_try_echo=$ac_try;;
10926 esac
10927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10928 (eval "$ac_try") 2>&5
10929 ac_status=$?
10930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10931 (exit $ac_status); }; }; then
10932 eval "$as_ac_var=yes"
10933 else
10934 echo "$as_me: failed program was:" >&5
10935 sed 's/^/| /' conftest.$ac_ext >&5
10936
10937 eval "$as_ac_var=no"
10938 fi
10939
10940 rm -f core conftest.err conftest.$ac_objext \
10941 conftest$ac_exeext conftest.$ac_ext
10942 fi
10943 ac_res=`eval echo '${'$as_ac_var'}'`
10944 { echo "$as_me:$LINENO: result: $ac_res" >&5
10945 echo "${ECHO_T}$ac_res" >&6; }
10946 if test `eval echo '${'$as_ac_var'}'` = yes; then
10947 cat >>confdefs.h <<_ACEOF
10948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10949 _ACEOF
10950
10951 fi
10952 done
10953
10954 { echo "$as_me:$LINENO: checking for working mmap" >&5
10955 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10956 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10957 echo $ECHO_N "(cached) $ECHO_C" >&6
10958 else
10959 if test "$cross_compiling" = yes; then
10960 ac_cv_func_mmap_fixed_mapped=no
10961 else
10962 cat >conftest.$ac_ext <<_ACEOF
10963 /* confdefs.h. */
10964 _ACEOF
10965 cat confdefs.h >>conftest.$ac_ext
10966 cat >>conftest.$ac_ext <<_ACEOF
10967 /* end confdefs.h. */
10968 $ac_includes_default
10969 /* malloc might have been renamed as rpl_malloc. */
10970 #undef malloc
10971
10972 /* Thanks to Mike Haertel and Jim Avera for this test.
10973 Here is a matrix of mmap possibilities:
10974 mmap private not fixed
10975 mmap private fixed at somewhere currently unmapped
10976 mmap private fixed at somewhere already mapped
10977 mmap shared not fixed
10978 mmap shared fixed at somewhere currently unmapped
10979 mmap shared fixed at somewhere already mapped
10980 For private mappings, we should verify that changes cannot be read()
10981 back from the file, nor mmap's back from the file at a different
10982 address. (There have been systems where private was not correctly
10983 implemented like the infamous i386 svr4.0, and systems where the
10984 VM page cache was not coherent with the file system buffer cache
10985 like early versions of FreeBSD and possibly contemporary NetBSD.)
10986 For shared mappings, we should conversely verify that changes get
10987 propagated back to all the places they're supposed to be.
10988
10989 Grep wants private fixed already mapped.
10990 The main things grep needs to know about mmap are:
10991 * does it exist and is it safe to write into the mmap'd area
10992 * how to use it (BSD variants) */
10993
10994 #include <fcntl.h>
10995 #include <sys/mman.h>
10996
10997 #if !STDC_HEADERS && !HAVE_STDLIB_H
10998 char *malloc ();
10999 #endif
11000
11001 /* This mess was copied from the GNU getpagesize.h. */
11002 #if !HAVE_GETPAGESIZE
11003 /* Assume that all systems that can run configure have sys/param.h. */
11004 # if !HAVE_SYS_PARAM_H
11005 # define HAVE_SYS_PARAM_H 1
11006 # endif
11007
11008 # ifdef _SC_PAGESIZE
11009 # define getpagesize() sysconf(_SC_PAGESIZE)
11010 # else /* no _SC_PAGESIZE */
11011 # if HAVE_SYS_PARAM_H
11012 # include <sys/param.h>
11013 # ifdef EXEC_PAGESIZE
11014 # define getpagesize() EXEC_PAGESIZE
11015 # else /* no EXEC_PAGESIZE */
11016 # ifdef NBPG
11017 # define getpagesize() NBPG * CLSIZE
11018 # ifndef CLSIZE
11019 # define CLSIZE 1
11020 # endif /* no CLSIZE */
11021 # else /* no NBPG */
11022 # ifdef NBPC
11023 # define getpagesize() NBPC
11024 # else /* no NBPC */
11025 # ifdef PAGESIZE
11026 # define getpagesize() PAGESIZE
11027 # endif /* PAGESIZE */
11028 # endif /* no NBPC */
11029 # endif /* no NBPG */
11030 # endif /* no EXEC_PAGESIZE */
11031 # else /* no HAVE_SYS_PARAM_H */
11032 # define getpagesize() 8192 /* punt totally */
11033 # endif /* no HAVE_SYS_PARAM_H */
11034 # endif /* no _SC_PAGESIZE */
11035
11036 #endif /* no HAVE_GETPAGESIZE */
11037
11038 int
11039 main ()
11040 {
11041 char *data, *data2, *data3;
11042 int i, pagesize;
11043 int fd;
11044
11045 pagesize = getpagesize ();
11046
11047 /* First, make a file with some known garbage in it. */
11048 data = (char *) malloc (pagesize);
11049 if (!data)
11050 return 1;
11051 for (i = 0; i < pagesize; ++i)
11052 *(data + i) = rand ();
11053 umask (0);
11054 fd = creat ("conftest.mmap", 0600);
11055 if (fd < 0)
11056 return 1;
11057 if (write (fd, data, pagesize) != pagesize)
11058 return 1;
11059 close (fd);
11060
11061 /* Next, try to mmap the file at a fixed address which already has
11062 something else allocated at it. If we can, also make sure that
11063 we see the same garbage. */
11064 fd = open ("conftest.mmap", O_RDWR);
11065 if (fd < 0)
11066 return 1;
11067 data2 = (char *) malloc (2 * pagesize);
11068 if (!data2)
11069 return 1;
11070 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
11071 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
11072 MAP_PRIVATE | MAP_FIXED, fd, 0L))
11073 return 1;
11074 for (i = 0; i < pagesize; ++i)
11075 if (*(data + i) != *(data2 + i))
11076 return 1;
11077
11078 /* Finally, make sure that changes to the mapped area do not
11079 percolate back to the file as seen by read(). (This is a bug on
11080 some variants of i386 svr4.0.) */
11081 for (i = 0; i < pagesize; ++i)
11082 *(data2 + i) = *(data2 + i) + 1;
11083 data3 = (char *) malloc (pagesize);
11084 if (!data3)
11085 return 1;
11086 if (read (fd, data3, pagesize) != pagesize)
11087 return 1;
11088 for (i = 0; i < pagesize; ++i)
11089 if (*(data + i) != *(data3 + i))
11090 return 1;
11091 close (fd);
11092 return 0;
11093 }
11094 _ACEOF
11095 rm -f conftest$ac_exeext
11096 if { (ac_try="$ac_link"
11097 case "(($ac_try" in
11098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11099 *) ac_try_echo=$ac_try;;
11100 esac
11101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11102 (eval "$ac_link") 2>&5
11103 ac_status=$?
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
11106 { (case "(($ac_try" in
11107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11108 *) ac_try_echo=$ac_try;;
11109 esac
11110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11111 (eval "$ac_try") 2>&5
11112 ac_status=$?
11113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114 (exit $ac_status); }; }; then
11115 ac_cv_func_mmap_fixed_mapped=yes
11116 else
11117 echo "$as_me: program exited with status $ac_status" >&5
11118 echo "$as_me: failed program was:" >&5
11119 sed 's/^/| /' conftest.$ac_ext >&5
11120
11121 ( exit $ac_status )
11122 ac_cv_func_mmap_fixed_mapped=no
11123 fi
11124 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
11125 fi
11126
11127
11128 fi
11129 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
11130 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
11131 if test $ac_cv_func_mmap_fixed_mapped = yes; then
11132
11133 cat >>confdefs.h <<\_ACEOF
11134 #define HAVE_MMAP 1
11135 _ACEOF
11136
11137 fi
11138 rm -f conftest.mmap
11139
11140 if test $use_mmap_for_buffers = yes; then
11141 REL_ALLOC=no
11142 fi
11143
11144 LIBS="$libsrc_libs $LIBS"
11145
11146
11147 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
11148 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
11149 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
11150 echo $ECHO_N "(cached) $ECHO_C" >&6
11151 else
11152 ac_check_lib_save_LIBS=$LIBS
11153 LIBS="-ldnet $LIBS"
11154 cat >conftest.$ac_ext <<_ACEOF
11155 /* confdefs.h. */
11156 _ACEOF
11157 cat confdefs.h >>conftest.$ac_ext
11158 cat >>conftest.$ac_ext <<_ACEOF
11159 /* end confdefs.h. */
11160
11161 /* Override any GCC internal prototype to avoid an error.
11162 Use char because int might match the return type of a GCC
11163 builtin and then its argument prototype would still apply. */
11164 #ifdef __cplusplus
11165 extern "C"
11166 #endif
11167 char dnet_ntoa ();
11168 int
11169 main ()
11170 {
11171 return dnet_ntoa ();
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 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11191 { (case "(($ac_try" in
11192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11193 *) ac_try_echo=$ac_try;;
11194 esac
11195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11196 (eval "$ac_try") 2>&5
11197 ac_status=$?
11198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11199 (exit $ac_status); }; } &&
11200 { ac_try='test -s conftest$ac_exeext'
11201 { (case "(($ac_try" in
11202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11203 *) ac_try_echo=$ac_try;;
11204 esac
11205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11206 (eval "$ac_try") 2>&5
11207 ac_status=$?
11208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11209 (exit $ac_status); }; }; then
11210 ac_cv_lib_dnet_dnet_ntoa=yes
11211 else
11212 echo "$as_me: failed program was:" >&5
11213 sed 's/^/| /' conftest.$ac_ext >&5
11214
11215 ac_cv_lib_dnet_dnet_ntoa=no
11216 fi
11217
11218 rm -f core conftest.err conftest.$ac_objext \
11219 conftest$ac_exeext conftest.$ac_ext
11220 LIBS=$ac_check_lib_save_LIBS
11221 fi
11222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
11223 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
11224 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
11225 cat >>confdefs.h <<_ACEOF
11226 #define HAVE_LIBDNET 1
11227 _ACEOF
11228
11229 LIBS="-ldnet $LIBS"
11230
11231 fi
11232
11233
11234 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
11235 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
11236 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
11237 echo $ECHO_N "(cached) $ECHO_C" >&6
11238 else
11239 ac_check_lib_save_LIBS=$LIBS
11240 LIBS="-lXbsd $LIBS"
11241 cat >conftest.$ac_ext <<_ACEOF
11242 /* confdefs.h. */
11243 _ACEOF
11244 cat confdefs.h >>conftest.$ac_ext
11245 cat >>conftest.$ac_ext <<_ACEOF
11246 /* end confdefs.h. */
11247
11248
11249 int
11250 main ()
11251 {
11252 return main ();
11253 ;
11254 return 0;
11255 }
11256 _ACEOF
11257 rm -f conftest.$ac_objext conftest$ac_exeext
11258 if { (ac_try="$ac_link"
11259 case "(($ac_try" in
11260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11261 *) ac_try_echo=$ac_try;;
11262 esac
11263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11264 (eval "$ac_link") 2>conftest.er1
11265 ac_status=$?
11266 grep -v '^ *+' conftest.er1 >conftest.err
11267 rm -f conftest.er1
11268 cat conftest.err >&5
11269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11270 (exit $ac_status); } &&
11271 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11272 { (case "(($ac_try" in
11273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11274 *) ac_try_echo=$ac_try;;
11275 esac
11276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11277 (eval "$ac_try") 2>&5
11278 ac_status=$?
11279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11280 (exit $ac_status); }; } &&
11281 { ac_try='test -s conftest$ac_exeext'
11282 { (case "(($ac_try" in
11283 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11284 *) ac_try_echo=$ac_try;;
11285 esac
11286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11287 (eval "$ac_try") 2>&5
11288 ac_status=$?
11289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11290 (exit $ac_status); }; }; then
11291 ac_cv_lib_Xbsd_main=yes
11292 else
11293 echo "$as_me: failed program was:" >&5
11294 sed 's/^/| /' conftest.$ac_ext >&5
11295
11296 ac_cv_lib_Xbsd_main=no
11297 fi
11298
11299 rm -f core conftest.err conftest.$ac_objext \
11300 conftest$ac_exeext conftest.$ac_ext
11301 LIBS=$ac_check_lib_save_LIBS
11302 fi
11303 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
11304 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
11305 if test $ac_cv_lib_Xbsd_main = yes; then
11306 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
11307 fi
11308
11309
11310
11311 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
11312 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
11313 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
11314 echo $ECHO_N "(cached) $ECHO_C" >&6
11315 else
11316 ac_check_lib_save_LIBS=$LIBS
11317 LIBS="-lpthreads $LIBS"
11318 cat >conftest.$ac_ext <<_ACEOF
11319 /* confdefs.h. */
11320 _ACEOF
11321 cat confdefs.h >>conftest.$ac_ext
11322 cat >>conftest.$ac_ext <<_ACEOF
11323 /* end confdefs.h. */
11324
11325 /* Override any GCC internal prototype to avoid an error.
11326 Use char because int might match the return type of a GCC
11327 builtin and then its argument prototype would still apply. */
11328 #ifdef __cplusplus
11329 extern "C"
11330 #endif
11331 char cma_open ();
11332 int
11333 main ()
11334 {
11335 return cma_open ();
11336 ;
11337 return 0;
11338 }
11339 _ACEOF
11340 rm -f conftest.$ac_objext conftest$ac_exeext
11341 if { (ac_try="$ac_link"
11342 case "(($ac_try" in
11343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11344 *) ac_try_echo=$ac_try;;
11345 esac
11346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11347 (eval "$ac_link") 2>conftest.er1
11348 ac_status=$?
11349 grep -v '^ *+' conftest.er1 >conftest.err
11350 rm -f conftest.er1
11351 cat conftest.err >&5
11352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11353 (exit $ac_status); } &&
11354 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11355 { (case "(($ac_try" in
11356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11357 *) ac_try_echo=$ac_try;;
11358 esac
11359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11360 (eval "$ac_try") 2>&5
11361 ac_status=$?
11362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11363 (exit $ac_status); }; } &&
11364 { ac_try='test -s conftest$ac_exeext'
11365 { (case "(($ac_try" in
11366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11367 *) ac_try_echo=$ac_try;;
11368 esac
11369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11370 (eval "$ac_try") 2>&5
11371 ac_status=$?
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); }; }; then
11374 ac_cv_lib_pthreads_cma_open=yes
11375 else
11376 echo "$as_me: failed program was:" >&5
11377 sed 's/^/| /' conftest.$ac_ext >&5
11378
11379 ac_cv_lib_pthreads_cma_open=no
11380 fi
11381
11382 rm -f core conftest.err conftest.$ac_objext \
11383 conftest$ac_exeext conftest.$ac_ext
11384 LIBS=$ac_check_lib_save_LIBS
11385 fi
11386 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
11387 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
11388 if test $ac_cv_lib_pthreads_cma_open = yes; then
11389 cat >>confdefs.h <<_ACEOF
11390 #define HAVE_LIBPTHREADS 1
11391 _ACEOF
11392
11393 LIBS="-lpthreads $LIBS"
11394
11395 fi
11396
11397
11398 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
11399 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
11400 if test -d /usr/X386/include; then
11401 HAVE_XFREE386=yes
11402 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
11403 else
11404 HAVE_XFREE386=no
11405 fi
11406 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
11407 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
11408
11409
11410 case ${host_os} in
11411 aix*)
11412 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
11413 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
11414 if test "${gdb_cv_bigtoc+set}" = set; then
11415 echo $ECHO_N "(cached) $ECHO_C" >&6
11416 else
11417
11418 case $GCC in
11419 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
11420 *) gdb_cv_bigtoc=-bbigtoc ;;
11421 esac
11422
11423 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
11424 cat >conftest.$ac_ext <<_ACEOF
11425 /* confdefs.h. */
11426 _ACEOF
11427 cat confdefs.h >>conftest.$ac_ext
11428 cat >>conftest.$ac_ext <<_ACEOF
11429 /* end confdefs.h. */
11430
11431 int
11432 main ()
11433 {
11434 int i;
11435 ;
11436 return 0;
11437 }
11438 _ACEOF
11439 rm -f conftest.$ac_objext conftest$ac_exeext
11440 if { (ac_try="$ac_link"
11441 case "(($ac_try" in
11442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11443 *) ac_try_echo=$ac_try;;
11444 esac
11445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11446 (eval "$ac_link") 2>conftest.er1
11447 ac_status=$?
11448 grep -v '^ *+' conftest.er1 >conftest.err
11449 rm -f conftest.er1
11450 cat conftest.err >&5
11451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11452 (exit $ac_status); } &&
11453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11454 { (case "(($ac_try" in
11455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11456 *) ac_try_echo=$ac_try;;
11457 esac
11458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11459 (eval "$ac_try") 2>&5
11460 ac_status=$?
11461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11462 (exit $ac_status); }; } &&
11463 { ac_try='test -s conftest$ac_exeext'
11464 { (case "(($ac_try" in
11465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11466 *) ac_try_echo=$ac_try;;
11467 esac
11468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11469 (eval "$ac_try") 2>&5
11470 ac_status=$?
11471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11472 (exit $ac_status); }; }; then
11473 :
11474 else
11475 echo "$as_me: failed program was:" >&5
11476 sed 's/^/| /' conftest.$ac_ext >&5
11477
11478 gdb_cv_bigtoc=
11479 fi
11480
11481 rm -f core conftest.err conftest.$ac_objext \
11482 conftest$ac_exeext conftest.$ac_ext
11483
11484 fi
11485 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
11486 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
11487 ;;
11488 esac
11489
11490 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
11491 # used for the tests that follow. We set them back to REAL_CFLAGS and
11492 # REAL_CPPFLAGS later on.
11493
11494 REAL_CPPFLAGS="$CPPFLAGS"
11495
11496 if test "${HAVE_X11}" = "yes"; then
11497 DEFS="$C_SWITCH_X_SITE $DEFS"
11498 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
11499 LIBS="$LIBX $LIBS"
11500 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
11501 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
11502
11503 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
11504 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
11505 # but it's more convenient here to set LD_RUN_PATH
11506 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
11507 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
11508 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
11509 export LD_RUN_PATH
11510 fi
11511
11512 if test "${opsys}" = "gnu-linux"; then
11513 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
11514 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
11515 cat >conftest.$ac_ext <<_ACEOF
11516 /* confdefs.h. */
11517 _ACEOF
11518 cat confdefs.h >>conftest.$ac_ext
11519 cat >>conftest.$ac_ext <<_ACEOF
11520 /* end confdefs.h. */
11521
11522 int
11523 main ()
11524 {
11525 XOpenDisplay ("foo");
11526 ;
11527 return 0;
11528 }
11529 _ACEOF
11530 rm -f conftest.$ac_objext conftest$ac_exeext
11531 if { (ac_try="$ac_link"
11532 case "(($ac_try" in
11533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11534 *) ac_try_echo=$ac_try;;
11535 esac
11536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11537 (eval "$ac_link") 2>conftest.er1
11538 ac_status=$?
11539 grep -v '^ *+' conftest.er1 >conftest.err
11540 rm -f conftest.er1
11541 cat conftest.err >&5
11542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11543 (exit $ac_status); } &&
11544 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11545 { (case "(($ac_try" in
11546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11547 *) ac_try_echo=$ac_try;;
11548 esac
11549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11550 (eval "$ac_try") 2>&5
11551 ac_status=$?
11552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11553 (exit $ac_status); }; } &&
11554 { ac_try='test -s conftest$ac_exeext'
11555 { (case "(($ac_try" in
11556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11557 *) ac_try_echo=$ac_try;;
11558 esac
11559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11560 (eval "$ac_try") 2>&5
11561 ac_status=$?
11562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11563 (exit $ac_status); }; }; then
11564 xlinux_first_failure=no
11565 else
11566 echo "$as_me: failed program was:" >&5
11567 sed 's/^/| /' conftest.$ac_ext >&5
11568
11569 xlinux_first_failure=yes
11570 fi
11571
11572 rm -f core conftest.err conftest.$ac_objext \
11573 conftest$ac_exeext conftest.$ac_ext
11574 if test "${xlinux_first_failure}" = "yes"; then
11575 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
11576 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
11577 OLD_CPPFLAGS="$CPPFLAGS"
11578 OLD_LIBS="$LIBS"
11579 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
11580 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
11581 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
11582 LIBS="$LIBS -b i486-linuxaout"
11583 cat >conftest.$ac_ext <<_ACEOF
11584 /* confdefs.h. */
11585 _ACEOF
11586 cat confdefs.h >>conftest.$ac_ext
11587 cat >>conftest.$ac_ext <<_ACEOF
11588 /* end confdefs.h. */
11589
11590 int
11591 main ()
11592 {
11593 XOpenDisplay ("foo");
11594 ;
11595 return 0;
11596 }
11597 _ACEOF
11598 rm -f conftest.$ac_objext conftest$ac_exeext
11599 if { (ac_try="$ac_link"
11600 case "(($ac_try" in
11601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11602 *) ac_try_echo=$ac_try;;
11603 esac
11604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11605 (eval "$ac_link") 2>conftest.er1
11606 ac_status=$?
11607 grep -v '^ *+' conftest.er1 >conftest.err
11608 rm -f conftest.er1
11609 cat conftest.err >&5
11610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11611 (exit $ac_status); } &&
11612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11613 { (case "(($ac_try" in
11614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11615 *) ac_try_echo=$ac_try;;
11616 esac
11617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11618 (eval "$ac_try") 2>&5
11619 ac_status=$?
11620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11621 (exit $ac_status); }; } &&
11622 { ac_try='test -s conftest$ac_exeext'
11623 { (case "(($ac_try" in
11624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11625 *) ac_try_echo=$ac_try;;
11626 esac
11627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11628 (eval "$ac_try") 2>&5
11629 ac_status=$?
11630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11631 (exit $ac_status); }; }; then
11632 xlinux_second_failure=no
11633 else
11634 echo "$as_me: failed program was:" >&5
11635 sed 's/^/| /' conftest.$ac_ext >&5
11636
11637 xlinux_second_failure=yes
11638 fi
11639
11640 rm -f core conftest.err conftest.$ac_objext \
11641 conftest$ac_exeext conftest.$ac_ext
11642 if test "${xlinux_second_failure}" = "yes"; then
11643 # If we get the same failure with -b, there is no use adding -b.
11644 # So take it out. This plays safe.
11645 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
11646 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
11647 CPPFLAGS="$OLD_CPPFLAGS"
11648 LIBS="$OLD_LIBS"
11649 { echo "$as_me:$LINENO: result: no" >&5
11650 echo "${ECHO_T}no" >&6; }
11651 else
11652 { echo "$as_me:$LINENO: result: yes" >&5
11653 echo "${ECHO_T}yes" >&6; }
11654 fi
11655 else
11656 { echo "$as_me:$LINENO: result: no" >&5
11657 echo "${ECHO_T}no" >&6; }
11658 fi
11659 fi
11660
11661 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
11662 # header files included from there.
11663 { echo "$as_me:$LINENO: checking for Xkb" >&5
11664 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
11665 cat >conftest.$ac_ext <<_ACEOF
11666 /* confdefs.h. */
11667 _ACEOF
11668 cat confdefs.h >>conftest.$ac_ext
11669 cat >>conftest.$ac_ext <<_ACEOF
11670 /* end confdefs.h. */
11671 #include <X11/Xlib.h>
11672 #include <X11/XKBlib.h>
11673 int
11674 main ()
11675 {
11676 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
11677 ;
11678 return 0;
11679 }
11680 _ACEOF
11681 rm -f conftest.$ac_objext conftest$ac_exeext
11682 if { (ac_try="$ac_link"
11683 case "(($ac_try" in
11684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11685 *) ac_try_echo=$ac_try;;
11686 esac
11687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11688 (eval "$ac_link") 2>conftest.er1
11689 ac_status=$?
11690 grep -v '^ *+' conftest.er1 >conftest.err
11691 rm -f conftest.er1
11692 cat conftest.err >&5
11693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11694 (exit $ac_status); } &&
11695 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11696 { (case "(($ac_try" in
11697 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11698 *) ac_try_echo=$ac_try;;
11699 esac
11700 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11701 (eval "$ac_try") 2>&5
11702 ac_status=$?
11703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11704 (exit $ac_status); }; } &&
11705 { ac_try='test -s conftest$ac_exeext'
11706 { (case "(($ac_try" in
11707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11708 *) ac_try_echo=$ac_try;;
11709 esac
11710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11711 (eval "$ac_try") 2>&5
11712 ac_status=$?
11713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11714 (exit $ac_status); }; }; then
11715 emacs_xkb=yes
11716 else
11717 echo "$as_me: failed program was:" >&5
11718 sed 's/^/| /' conftest.$ac_ext >&5
11719
11720 emacs_xkb=no
11721 fi
11722
11723 rm -f core conftest.err conftest.$ac_objext \
11724 conftest$ac_exeext conftest.$ac_ext
11725 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
11726 echo "${ECHO_T}$emacs_xkb" >&6; }
11727 if test $emacs_xkb = yes; then
11728
11729 cat >>confdefs.h <<\_ACEOF
11730 #define HAVE_XKBGETKEYBOARD 1
11731 _ACEOF
11732
11733 fi
11734
11735
11736
11737
11738
11739 for ac_func in XrmSetDatabase XScreenResourceString \
11740 XScreenNumberOfScreen XSetWMProtocols
11741 do
11742 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11743 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11744 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11745 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11746 echo $ECHO_N "(cached) $ECHO_C" >&6
11747 else
11748 cat >conftest.$ac_ext <<_ACEOF
11749 /* confdefs.h. */
11750 _ACEOF
11751 cat confdefs.h >>conftest.$ac_ext
11752 cat >>conftest.$ac_ext <<_ACEOF
11753 /* end confdefs.h. */
11754 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11755 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11756 #define $ac_func innocuous_$ac_func
11757
11758 /* System header to define __stub macros and hopefully few prototypes,
11759 which can conflict with char $ac_func (); below.
11760 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11761 <limits.h> exists even on freestanding compilers. */
11762
11763 #ifdef __STDC__
11764 # include <limits.h>
11765 #else
11766 # include <assert.h>
11767 #endif
11768
11769 #undef $ac_func
11770
11771 /* Override any GCC internal prototype to avoid an error.
11772 Use char because int might match the return type of a GCC
11773 builtin and then its argument prototype would still apply. */
11774 #ifdef __cplusplus
11775 extern "C"
11776 #endif
11777 char $ac_func ();
11778 /* The GNU C library defines this for functions which it implements
11779 to always fail with ENOSYS. Some functions are actually named
11780 something starting with __ and the normal name is an alias. */
11781 #if defined __stub_$ac_func || defined __stub___$ac_func
11782 choke me
11783 #endif
11784
11785 int
11786 main ()
11787 {
11788 return $ac_func ();
11789 ;
11790 return 0;
11791 }
11792 _ACEOF
11793 rm -f conftest.$ac_objext conftest$ac_exeext
11794 if { (ac_try="$ac_link"
11795 case "(($ac_try" in
11796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11797 *) ac_try_echo=$ac_try;;
11798 esac
11799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11800 (eval "$ac_link") 2>conftest.er1
11801 ac_status=$?
11802 grep -v '^ *+' conftest.er1 >conftest.err
11803 rm -f conftest.er1
11804 cat conftest.err >&5
11805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11806 (exit $ac_status); } &&
11807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11808 { (case "(($ac_try" in
11809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11810 *) ac_try_echo=$ac_try;;
11811 esac
11812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11813 (eval "$ac_try") 2>&5
11814 ac_status=$?
11815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11816 (exit $ac_status); }; } &&
11817 { ac_try='test -s conftest$ac_exeext'
11818 { (case "(($ac_try" in
11819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11820 *) ac_try_echo=$ac_try;;
11821 esac
11822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11823 (eval "$ac_try") 2>&5
11824 ac_status=$?
11825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11826 (exit $ac_status); }; }; then
11827 eval "$as_ac_var=yes"
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 eval "$as_ac_var=no"
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext \
11836 conftest$ac_exeext conftest.$ac_ext
11837 fi
11838 ac_res=`eval echo '${'$as_ac_var'}'`
11839 { echo "$as_me:$LINENO: result: $ac_res" >&5
11840 echo "${ECHO_T}$ac_res" >&6; }
11841 if test `eval echo '${'$as_ac_var'}'` = yes; then
11842 cat >>confdefs.h <<_ACEOF
11843 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11844 _ACEOF
11845
11846 fi
11847 done
11848
11849 fi
11850
11851 if test "${window_system}" = "x11"; then
11852 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11853 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11854 if test "${emacs_cv_x11_version_6+set}" = set; then
11855 echo $ECHO_N "(cached) $ECHO_C" >&6
11856 else
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863 #include <X11/Xlib.h>
11864 int
11865 main ()
11866 {
11867 #if XlibSpecificationRelease < 6
11868 fail;
11869 #endif
11870
11871 ;
11872 return 0;
11873 }
11874 _ACEOF
11875 rm -f conftest.$ac_objext conftest$ac_exeext
11876 if { (ac_try="$ac_link"
11877 case "(($ac_try" in
11878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11879 *) ac_try_echo=$ac_try;;
11880 esac
11881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11882 (eval "$ac_link") 2>conftest.er1
11883 ac_status=$?
11884 grep -v '^ *+' conftest.er1 >conftest.err
11885 rm -f conftest.er1
11886 cat conftest.err >&5
11887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11888 (exit $ac_status); } &&
11889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11890 { (case "(($ac_try" in
11891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11892 *) ac_try_echo=$ac_try;;
11893 esac
11894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11895 (eval "$ac_try") 2>&5
11896 ac_status=$?
11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11898 (exit $ac_status); }; } &&
11899 { ac_try='test -s conftest$ac_exeext'
11900 { (case "(($ac_try" in
11901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11902 *) ac_try_echo=$ac_try;;
11903 esac
11904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11905 (eval "$ac_try") 2>&5
11906 ac_status=$?
11907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11908 (exit $ac_status); }; }; then
11909 emacs_cv_x11_version_6=yes
11910 else
11911 echo "$as_me: failed program was:" >&5
11912 sed 's/^/| /' conftest.$ac_ext >&5
11913
11914 emacs_cv_x11_version_6=no
11915 fi
11916
11917 rm -f core conftest.err conftest.$ac_objext \
11918 conftest$ac_exeext conftest.$ac_ext
11919 fi
11920
11921 if test $emacs_cv_x11_version_6 = yes; then
11922 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11923 echo "${ECHO_T}6 or newer" >&6; }
11924
11925 cat >>confdefs.h <<\_ACEOF
11926 #define HAVE_X11R6 1
11927 _ACEOF
11928
11929 else
11930 { echo "$as_me:$LINENO: result: before 6" >&5
11931 echo "${ECHO_T}before 6" >&6; }
11932 fi
11933 fi
11934
11935 if test "${window_system}" = "x11"; then
11936 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11937 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11938 if test "${emacs_cv_x11_version_5+set}" = set; then
11939 echo $ECHO_N "(cached) $ECHO_C" >&6
11940 else
11941 cat >conftest.$ac_ext <<_ACEOF
11942 /* confdefs.h. */
11943 _ACEOF
11944 cat confdefs.h >>conftest.$ac_ext
11945 cat >>conftest.$ac_ext <<_ACEOF
11946 /* end confdefs.h. */
11947 #include <X11/Xlib.h>
11948 int
11949 main ()
11950 {
11951 #if XlibSpecificationRelease < 5
11952 fail;
11953 #endif
11954
11955 ;
11956 return 0;
11957 }
11958 _ACEOF
11959 rm -f conftest.$ac_objext conftest$ac_exeext
11960 if { (ac_try="$ac_link"
11961 case "(($ac_try" in
11962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11963 *) ac_try_echo=$ac_try;;
11964 esac
11965 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11966 (eval "$ac_link") 2>conftest.er1
11967 ac_status=$?
11968 grep -v '^ *+' conftest.er1 >conftest.err
11969 rm -f conftest.er1
11970 cat conftest.err >&5
11971 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11972 (exit $ac_status); } &&
11973 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11974 { (case "(($ac_try" in
11975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11976 *) ac_try_echo=$ac_try;;
11977 esac
11978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11979 (eval "$ac_try") 2>&5
11980 ac_status=$?
11981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11982 (exit $ac_status); }; } &&
11983 { ac_try='test -s conftest$ac_exeext'
11984 { (case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_try") 2>&5
11990 ac_status=$?
11991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11992 (exit $ac_status); }; }; then
11993 emacs_cv_x11_version_5=yes
11994 else
11995 echo "$as_me: failed program was:" >&5
11996 sed 's/^/| /' conftest.$ac_ext >&5
11997
11998 emacs_cv_x11_version_5=no
11999 fi
12000
12001 rm -f core conftest.err conftest.$ac_objext \
12002 conftest$ac_exeext conftest.$ac_ext
12003 fi
12004
12005 if test $emacs_cv_x11_version_5 = yes; then
12006 { echo "$as_me:$LINENO: result: 5 or newer" >&5
12007 echo "${ECHO_T}5 or newer" >&6; }
12008 HAVE_X11R5=yes
12009
12010 cat >>confdefs.h <<\_ACEOF
12011 #define HAVE_X11R5 1
12012 _ACEOF
12013
12014 else
12015 HAVE_X11R5=no
12016 { echo "$as_me:$LINENO: result: before 5" >&5
12017 echo "${ECHO_T}before 5" >&6; }
12018 fi
12019 fi
12020
12021 HAVE_GTK=no
12022 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
12023 USE_X_TOOLKIT=none
12024 fi
12025 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
12026 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
12027 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
12028 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
12029 { (exit 1); exit 1; }; };
12030 fi
12031 GLIB_REQUIRED=2.4
12032 GTK_REQUIRED=2.4
12033 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
12034
12035 if test "X${with_pkg_config_prog}" != X; then
12036 PKG_CONFIG="${with_pkg_config_prog}"
12037 fi
12038
12039 succeeded=no
12040
12041 if test -z "$PKG_CONFIG"; then
12042 # Extract the first word of "pkg-config", so it can be a program name with args.
12043 set dummy pkg-config; ac_word=$2
12044 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12045 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12046 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12047 echo $ECHO_N "(cached) $ECHO_C" >&6
12048 else
12049 case $PKG_CONFIG in
12050 [\\/]* | ?:[\\/]*)
12051 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12052 ;;
12053 *)
12054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12055 for as_dir in $PATH
12056 do
12057 IFS=$as_save_IFS
12058 test -z "$as_dir" && as_dir=.
12059 for ac_exec_ext in '' $ac_executable_extensions; do
12060 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
12061 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12062 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12063 break 2
12064 fi
12065 done
12066 done
12067 IFS=$as_save_IFS
12068
12069 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12070 ;;
12071 esac
12072 fi
12073 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12074 if test -n "$PKG_CONFIG"; then
12075 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12076 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12077 else
12078 { echo "$as_me:$LINENO: result: no" >&5
12079 echo "${ECHO_T}no" >&6; }
12080 fi
12081
12082
12083 fi
12084
12085 if test "$PKG_CONFIG" = "no" ; then
12086 { { echo "$as_me:$LINENO: error:
12087 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
12088 echo "$as_me: error:
12089 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
12090 { (exit 1); exit 1; }; }
12091 else
12092 PKG_CONFIG_MIN_VERSION=0.9.0
12093 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12094 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
12095 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
12096
12097 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
12098 { echo "$as_me:$LINENO: result: yes" >&5
12099 echo "${ECHO_T}yes" >&6; }
12100 succeeded=yes
12101
12102 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
12103 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
12104 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
12105 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
12106 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
12107
12108 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
12109 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
12110 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
12111 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
12112 echo "${ECHO_T}$GTK_LIBS" >&6; }
12113 else
12114 { echo "$as_me:$LINENO: result: no" >&5
12115 echo "${ECHO_T}no" >&6; }
12116 GTK_CFLAGS=""
12117 GTK_LIBS=""
12118 ## If we have a custom action on failure, don't print errors, but
12119 ## do set a variable so people can do so.
12120 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
12121 echo $GTK_PKG_ERRORS
12122 fi
12123
12124
12125
12126 else
12127 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12128 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12129 fi
12130 fi
12131
12132 if test $succeeded = yes; then
12133 :
12134 else
12135 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
12136 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
12137 { (exit 1); exit 1; }; }
12138 fi
12139
12140
12141
12142 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
12143 CFLAGS="$CFLAGS $GTK_CFLAGS"
12144 LIBS="$GTK_LIBS $LIBS"
12145 GTK_COMPILES=no
12146
12147 for ac_func in gtk_main
12148 do
12149 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12150 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12151 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12152 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12153 echo $ECHO_N "(cached) $ECHO_C" >&6
12154 else
12155 cat >conftest.$ac_ext <<_ACEOF
12156 /* confdefs.h. */
12157 _ACEOF
12158 cat confdefs.h >>conftest.$ac_ext
12159 cat >>conftest.$ac_ext <<_ACEOF
12160 /* end confdefs.h. */
12161 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12162 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12163 #define $ac_func innocuous_$ac_func
12164
12165 /* System header to define __stub macros and hopefully few prototypes,
12166 which can conflict with char $ac_func (); below.
12167 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12168 <limits.h> exists even on freestanding compilers. */
12169
12170 #ifdef __STDC__
12171 # include <limits.h>
12172 #else
12173 # include <assert.h>
12174 #endif
12175
12176 #undef $ac_func
12177
12178 /* Override any GCC internal prototype to avoid an error.
12179 Use char because int might match the return type of a GCC
12180 builtin and then its argument prototype would still apply. */
12181 #ifdef __cplusplus
12182 extern "C"
12183 #endif
12184 char $ac_func ();
12185 /* The GNU C library defines this for functions which it implements
12186 to always fail with ENOSYS. Some functions are actually named
12187 something starting with __ and the normal name is an alias. */
12188 #if defined __stub_$ac_func || defined __stub___$ac_func
12189 choke me
12190 #endif
12191
12192 int
12193 main ()
12194 {
12195 return $ac_func ();
12196 ;
12197 return 0;
12198 }
12199 _ACEOF
12200 rm -f conftest.$ac_objext conftest$ac_exeext
12201 if { (ac_try="$ac_link"
12202 case "(($ac_try" in
12203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12204 *) ac_try_echo=$ac_try;;
12205 esac
12206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12207 (eval "$ac_link") 2>conftest.er1
12208 ac_status=$?
12209 grep -v '^ *+' conftest.er1 >conftest.err
12210 rm -f conftest.er1
12211 cat conftest.err >&5
12212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12213 (exit $ac_status); } &&
12214 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12215 { (case "(($ac_try" in
12216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12217 *) ac_try_echo=$ac_try;;
12218 esac
12219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12220 (eval "$ac_try") 2>&5
12221 ac_status=$?
12222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12223 (exit $ac_status); }; } &&
12224 { ac_try='test -s conftest$ac_exeext'
12225 { (case "(($ac_try" in
12226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12227 *) ac_try_echo=$ac_try;;
12228 esac
12229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12230 (eval "$ac_try") 2>&5
12231 ac_status=$?
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); }; }; then
12234 eval "$as_ac_var=yes"
12235 else
12236 echo "$as_me: failed program was:" >&5
12237 sed 's/^/| /' conftest.$ac_ext >&5
12238
12239 eval "$as_ac_var=no"
12240 fi
12241
12242 rm -f core conftest.err conftest.$ac_objext \
12243 conftest$ac_exeext conftest.$ac_ext
12244 fi
12245 ac_res=`eval echo '${'$as_ac_var'}'`
12246 { echo "$as_me:$LINENO: result: $ac_res" >&5
12247 echo "${ECHO_T}$ac_res" >&6; }
12248 if test `eval echo '${'$as_ac_var'}'` = yes; then
12249 cat >>confdefs.h <<_ACEOF
12250 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12251 _ACEOF
12252 GTK_COMPILES=yes
12253 fi
12254 done
12255
12256 if test "${GTK_COMPILES}" != "yes"; then
12257 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
12258 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
12259 { (exit 1); exit 1; }; };
12260 fi
12261
12262 HAVE_GTK=yes
12263
12264 cat >>confdefs.h <<\_ACEOF
12265 #define HAVE_GTK 1
12266 _ACEOF
12267
12268 USE_X_TOOLKIT=none
12269
12270 if test "$with_toolkit_scroll_bars" != no; then
12271 with_toolkit_scroll_bars=yes
12272 fi
12273
12274 HAVE_GTK_MULTIDISPLAY=no
12275
12276 for ac_func in gdk_display_open
12277 do
12278 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12279 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12280 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12281 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12282 echo $ECHO_N "(cached) $ECHO_C" >&6
12283 else
12284 cat >conftest.$ac_ext <<_ACEOF
12285 /* confdefs.h. */
12286 _ACEOF
12287 cat confdefs.h >>conftest.$ac_ext
12288 cat >>conftest.$ac_ext <<_ACEOF
12289 /* end confdefs.h. */
12290 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12291 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12292 #define $ac_func innocuous_$ac_func
12293
12294 /* System header to define __stub macros and hopefully few prototypes,
12295 which can conflict with char $ac_func (); below.
12296 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12297 <limits.h> exists even on freestanding compilers. */
12298
12299 #ifdef __STDC__
12300 # include <limits.h>
12301 #else
12302 # include <assert.h>
12303 #endif
12304
12305 #undef $ac_func
12306
12307 /* Override any GCC internal prototype to avoid an error.
12308 Use char because int might match the return type of a GCC
12309 builtin and then its argument prototype would still apply. */
12310 #ifdef __cplusplus
12311 extern "C"
12312 #endif
12313 char $ac_func ();
12314 /* The GNU C library defines this for functions which it implements
12315 to always fail with ENOSYS. Some functions are actually named
12316 something starting with __ and the normal name is an alias. */
12317 #if defined __stub_$ac_func || defined __stub___$ac_func
12318 choke me
12319 #endif
12320
12321 int
12322 main ()
12323 {
12324 return $ac_func ();
12325 ;
12326 return 0;
12327 }
12328 _ACEOF
12329 rm -f conftest.$ac_objext conftest$ac_exeext
12330 if { (ac_try="$ac_link"
12331 case "(($ac_try" in
12332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12333 *) ac_try_echo=$ac_try;;
12334 esac
12335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12336 (eval "$ac_link") 2>conftest.er1
12337 ac_status=$?
12338 grep -v '^ *+' conftest.er1 >conftest.err
12339 rm -f conftest.er1
12340 cat conftest.err >&5
12341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12342 (exit $ac_status); } &&
12343 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12344 { (case "(($ac_try" in
12345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12346 *) ac_try_echo=$ac_try;;
12347 esac
12348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12349 (eval "$ac_try") 2>&5
12350 ac_status=$?
12351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12352 (exit $ac_status); }; } &&
12353 { ac_try='test -s conftest$ac_exeext'
12354 { (case "(($ac_try" in
12355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12356 *) ac_try_echo=$ac_try;;
12357 esac
12358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12359 (eval "$ac_try") 2>&5
12360 ac_status=$?
12361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12362 (exit $ac_status); }; }; then
12363 eval "$as_ac_var=yes"
12364 else
12365 echo "$as_me: failed program was:" >&5
12366 sed 's/^/| /' conftest.$ac_ext >&5
12367
12368 eval "$as_ac_var=no"
12369 fi
12370
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 fi
12374 ac_res=`eval echo '${'$as_ac_var'}'`
12375 { echo "$as_me:$LINENO: result: $ac_res" >&5
12376 echo "${ECHO_T}$ac_res" >&6; }
12377 if test `eval echo '${'$as_ac_var'}'` = yes; then
12378 cat >>confdefs.h <<_ACEOF
12379 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12380 _ACEOF
12381 HAVE_GTK_MULTIDISPLAY=yes
12382 fi
12383 done
12384
12385 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
12386
12387 cat >>confdefs.h <<\_ACEOF
12388 #define HAVE_GTK_MULTIDISPLAY 1
12389 _ACEOF
12390
12391 fi
12392 HAVE_GTK_FILE_SELECTION=no
12393
12394 for ac_func in gtk_file_selection_new
12395 do
12396 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12397 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12398 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12399 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12400 echo $ECHO_N "(cached) $ECHO_C" >&6
12401 else
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h. */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h. */
12408 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12409 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12410 #define $ac_func innocuous_$ac_func
12411
12412 /* System header to define __stub macros and hopefully few prototypes,
12413 which can conflict with char $ac_func (); below.
12414 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12415 <limits.h> exists even on freestanding compilers. */
12416
12417 #ifdef __STDC__
12418 # include <limits.h>
12419 #else
12420 # include <assert.h>
12421 #endif
12422
12423 #undef $ac_func
12424
12425 /* Override any GCC internal prototype to avoid an error.
12426 Use char because int might match the return type of a GCC
12427 builtin and then its argument prototype would still apply. */
12428 #ifdef __cplusplus
12429 extern "C"
12430 #endif
12431 char $ac_func ();
12432 /* The GNU C library defines this for functions which it implements
12433 to always fail with ENOSYS. Some functions are actually named
12434 something starting with __ and the normal name is an alias. */
12435 #if defined __stub_$ac_func || defined __stub___$ac_func
12436 choke me
12437 #endif
12438
12439 int
12440 main ()
12441 {
12442 return $ac_func ();
12443 ;
12444 return 0;
12445 }
12446 _ACEOF
12447 rm -f conftest.$ac_objext conftest$ac_exeext
12448 if { (ac_try="$ac_link"
12449 case "(($ac_try" in
12450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12451 *) ac_try_echo=$ac_try;;
12452 esac
12453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12454 (eval "$ac_link") 2>conftest.er1
12455 ac_status=$?
12456 grep -v '^ *+' conftest.er1 >conftest.err
12457 rm -f conftest.er1
12458 cat conftest.err >&5
12459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12460 (exit $ac_status); } &&
12461 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12462 { (case "(($ac_try" in
12463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12464 *) ac_try_echo=$ac_try;;
12465 esac
12466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12467 (eval "$ac_try") 2>&5
12468 ac_status=$?
12469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12470 (exit $ac_status); }; } &&
12471 { ac_try='test -s conftest$ac_exeext'
12472 { (case "(($ac_try" in
12473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12474 *) ac_try_echo=$ac_try;;
12475 esac
12476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12477 (eval "$ac_try") 2>&5
12478 ac_status=$?
12479 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480 (exit $ac_status); }; }; then
12481 eval "$as_ac_var=yes"
12482 else
12483 echo "$as_me: failed program was:" >&5
12484 sed 's/^/| /' conftest.$ac_ext >&5
12485
12486 eval "$as_ac_var=no"
12487 fi
12488
12489 rm -f core conftest.err conftest.$ac_objext \
12490 conftest$ac_exeext conftest.$ac_ext
12491 fi
12492 ac_res=`eval echo '${'$as_ac_var'}'`
12493 { echo "$as_me:$LINENO: result: $ac_res" >&5
12494 echo "${ECHO_T}$ac_res" >&6; }
12495 if test `eval echo '${'$as_ac_var'}'` = yes; then
12496 cat >>confdefs.h <<_ACEOF
12497 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12498 _ACEOF
12499 HAVE_GTK_FILE_SELECTION=yes
12500 fi
12501 done
12502
12503
12504 HAVE_GTK_FILE_CHOOSER=no
12505
12506 for ac_func in gtk_file_chooser_dialog_new
12507 do
12508 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12509 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12510 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12511 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12512 echo $ECHO_N "(cached) $ECHO_C" >&6
12513 else
12514 cat >conftest.$ac_ext <<_ACEOF
12515 /* confdefs.h. */
12516 _ACEOF
12517 cat confdefs.h >>conftest.$ac_ext
12518 cat >>conftest.$ac_ext <<_ACEOF
12519 /* end confdefs.h. */
12520 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12521 For example, HP-UX 11i <limits.h> declares gettimeofday. */
12522 #define $ac_func innocuous_$ac_func
12523
12524 /* System header to define __stub macros and hopefully few prototypes,
12525 which can conflict with char $ac_func (); below.
12526 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12527 <limits.h> exists even on freestanding compilers. */
12528
12529 #ifdef __STDC__
12530 # include <limits.h>
12531 #else
12532 # include <assert.h>
12533 #endif
12534
12535 #undef $ac_func
12536
12537 /* Override any GCC internal prototype to avoid an error.
12538 Use char because int might match the return type of a GCC
12539 builtin and then its argument prototype would still apply. */
12540 #ifdef __cplusplus
12541 extern "C"
12542 #endif
12543 char $ac_func ();
12544 /* The GNU C library defines this for functions which it implements
12545 to always fail with ENOSYS. Some functions are actually named
12546 something starting with __ and the normal name is an alias. */
12547 #if defined __stub_$ac_func || defined __stub___$ac_func
12548 choke me
12549 #endif
12550
12551 int
12552 main ()
12553 {
12554 return $ac_func ();
12555 ;
12556 return 0;
12557 }
12558 _ACEOF
12559 rm -f conftest.$ac_objext conftest$ac_exeext
12560 if { (ac_try="$ac_link"
12561 case "(($ac_try" in
12562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12563 *) ac_try_echo=$ac_try;;
12564 esac
12565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12566 (eval "$ac_link") 2>conftest.er1
12567 ac_status=$?
12568 grep -v '^ *+' conftest.er1 >conftest.err
12569 rm -f conftest.er1
12570 cat conftest.err >&5
12571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12572 (exit $ac_status); } &&
12573 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12574 { (case "(($ac_try" in
12575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12576 *) ac_try_echo=$ac_try;;
12577 esac
12578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12579 (eval "$ac_try") 2>&5
12580 ac_status=$?
12581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12582 (exit $ac_status); }; } &&
12583 { ac_try='test -s conftest$ac_exeext'
12584 { (case "(($ac_try" in
12585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12586 *) ac_try_echo=$ac_try;;
12587 esac
12588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12589 (eval "$ac_try") 2>&5
12590 ac_status=$?
12591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12592 (exit $ac_status); }; }; then
12593 eval "$as_ac_var=yes"
12594 else
12595 echo "$as_me: failed program was:" >&5
12596 sed 's/^/| /' conftest.$ac_ext >&5
12597
12598 eval "$as_ac_var=no"
12599 fi
12600
12601 rm -f core conftest.err conftest.$ac_objext \
12602 conftest$ac_exeext conftest.$ac_ext
12603 fi
12604 ac_res=`eval echo '${'$as_ac_var'}'`
12605 { echo "$as_me:$LINENO: result: $ac_res" >&5
12606 echo "${ECHO_T}$ac_res" >&6; }
12607 if test `eval echo '${'$as_ac_var'}'` = yes; then
12608 cat >>confdefs.h <<_ACEOF
12609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12610 _ACEOF
12611 HAVE_GTK_FILE_CHOOSER=yes
12612 fi
12613 done
12614
12615
12616 if test "$HAVE_GTK_FILE_SELECTION" = yes \
12617 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12618
12619 cat >>confdefs.h <<\_ACEOF
12620 #define HAVE_GTK_FILE_BOTH 1
12621 _ACEOF
12622
12623 fi
12624
12625 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
12626 HAVE_GTK_AND_PTHREAD=no
12627
12628 for ac_header in pthread.h
12629 do
12630 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12632 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12633 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12635 echo $ECHO_N "(cached) $ECHO_C" >&6
12636 fi
12637 ac_res=`eval echo '${'$as_ac_Header'}'`
12638 { echo "$as_me:$LINENO: result: $ac_res" >&5
12639 echo "${ECHO_T}$ac_res" >&6; }
12640 else
12641 # Is the header compilable?
12642 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12643 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12644 cat >conftest.$ac_ext <<_ACEOF
12645 /* confdefs.h. */
12646 _ACEOF
12647 cat confdefs.h >>conftest.$ac_ext
12648 cat >>conftest.$ac_ext <<_ACEOF
12649 /* end confdefs.h. */
12650 $ac_includes_default
12651 #include <$ac_header>
12652 _ACEOF
12653 rm -f conftest.$ac_objext
12654 if { (ac_try="$ac_compile"
12655 case "(($ac_try" in
12656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12657 *) ac_try_echo=$ac_try;;
12658 esac
12659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12660 (eval "$ac_compile") 2>conftest.er1
12661 ac_status=$?
12662 grep -v '^ *+' conftest.er1 >conftest.err
12663 rm -f conftest.er1
12664 cat conftest.err >&5
12665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12666 (exit $ac_status); } &&
12667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12668 { (case "(($ac_try" in
12669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12670 *) ac_try_echo=$ac_try;;
12671 esac
12672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12673 (eval "$ac_try") 2>&5
12674 ac_status=$?
12675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12676 (exit $ac_status); }; } &&
12677 { ac_try='test -s conftest.$ac_objext'
12678 { (case "(($ac_try" in
12679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12680 *) ac_try_echo=$ac_try;;
12681 esac
12682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12683 (eval "$ac_try") 2>&5
12684 ac_status=$?
12685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12686 (exit $ac_status); }; }; then
12687 ac_header_compiler=yes
12688 else
12689 echo "$as_me: failed program was:" >&5
12690 sed 's/^/| /' conftest.$ac_ext >&5
12691
12692 ac_header_compiler=no
12693 fi
12694
12695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12696 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12697 echo "${ECHO_T}$ac_header_compiler" >&6; }
12698
12699 # Is the header present?
12700 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12701 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12702 cat >conftest.$ac_ext <<_ACEOF
12703 /* confdefs.h. */
12704 _ACEOF
12705 cat confdefs.h >>conftest.$ac_ext
12706 cat >>conftest.$ac_ext <<_ACEOF
12707 /* end confdefs.h. */
12708 #include <$ac_header>
12709 _ACEOF
12710 if { (ac_try="$ac_cpp conftest.$ac_ext"
12711 case "(($ac_try" in
12712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12713 *) ac_try_echo=$ac_try;;
12714 esac
12715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12716 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12717 ac_status=$?
12718 grep -v '^ *+' conftest.er1 >conftest.err
12719 rm -f conftest.er1
12720 cat conftest.err >&5
12721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12722 (exit $ac_status); } >/dev/null; then
12723 if test -s conftest.err; then
12724 ac_cpp_err=$ac_c_preproc_warn_flag
12725 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12726 else
12727 ac_cpp_err=
12728 fi
12729 else
12730 ac_cpp_err=yes
12731 fi
12732 if test -z "$ac_cpp_err"; then
12733 ac_header_preproc=yes
12734 else
12735 echo "$as_me: failed program was:" >&5
12736 sed 's/^/| /' conftest.$ac_ext >&5
12737
12738 ac_header_preproc=no
12739 fi
12740
12741 rm -f conftest.err conftest.$ac_ext
12742 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12743 echo "${ECHO_T}$ac_header_preproc" >&6; }
12744
12745 # So? What about this header?
12746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12747 yes:no: )
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12752 ac_header_preproc=yes
12753 ;;
12754 no:yes:* )
12755 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12757 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12758 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12759 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12761 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12762 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12763 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12765 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12767
12768 ;;
12769 esac
12770 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12771 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12772 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 eval "$as_ac_Header=\$ac_header_preproc"
12776 fi
12777 ac_res=`eval echo '${'$as_ac_Header'}'`
12778 { echo "$as_me:$LINENO: result: $ac_res" >&5
12779 echo "${ECHO_T}$ac_res" >&6; }
12780
12781 fi
12782 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12783 cat >>confdefs.h <<_ACEOF
12784 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12785 _ACEOF
12786
12787 fi
12788
12789 done
12790
12791 if test "$ac_cv_header_pthread_h"; then
12792 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
12793 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
12794 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
12795 echo $ECHO_N "(cached) $ECHO_C" >&6
12796 else
12797 ac_check_lib_save_LIBS=$LIBS
12798 LIBS="-lpthread $LIBS"
12799 cat >conftest.$ac_ext <<_ACEOF
12800 /* confdefs.h. */
12801 _ACEOF
12802 cat confdefs.h >>conftest.$ac_ext
12803 cat >>conftest.$ac_ext <<_ACEOF
12804 /* end confdefs.h. */
12805
12806 /* Override any GCC internal prototype to avoid an error.
12807 Use char because int might match the return type of a GCC
12808 builtin and then its argument prototype would still apply. */
12809 #ifdef __cplusplus
12810 extern "C"
12811 #endif
12812 char pthread_self ();
12813 int
12814 main ()
12815 {
12816 return pthread_self ();
12817 ;
12818 return 0;
12819 }
12820 _ACEOF
12821 rm -f conftest.$ac_objext conftest$ac_exeext
12822 if { (ac_try="$ac_link"
12823 case "(($ac_try" in
12824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12825 *) ac_try_echo=$ac_try;;
12826 esac
12827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12828 (eval "$ac_link") 2>conftest.er1
12829 ac_status=$?
12830 grep -v '^ *+' conftest.er1 >conftest.err
12831 rm -f conftest.er1
12832 cat conftest.err >&5
12833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12834 (exit $ac_status); } &&
12835 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12836 { (case "(($ac_try" in
12837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12838 *) ac_try_echo=$ac_try;;
12839 esac
12840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12841 (eval "$ac_try") 2>&5
12842 ac_status=$?
12843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12844 (exit $ac_status); }; } &&
12845 { ac_try='test -s conftest$ac_exeext'
12846 { (case "(($ac_try" in
12847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12848 *) ac_try_echo=$ac_try;;
12849 esac
12850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12851 (eval "$ac_try") 2>&5
12852 ac_status=$?
12853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12854 (exit $ac_status); }; }; then
12855 ac_cv_lib_pthread_pthread_self=yes
12856 else
12857 echo "$as_me: failed program was:" >&5
12858 sed 's/^/| /' conftest.$ac_ext >&5
12859
12860 ac_cv_lib_pthread_pthread_self=no
12861 fi
12862
12863 rm -f core conftest.err conftest.$ac_objext \
12864 conftest$ac_exeext conftest.$ac_ext
12865 LIBS=$ac_check_lib_save_LIBS
12866 fi
12867 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
12868 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
12869 if test $ac_cv_lib_pthread_pthread_self = yes; then
12870 HAVE_GTK_AND_PTHREAD=yes
12871 fi
12872
12873 fi
12874 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
12875 GTK_LIBS="$GTK_LIBS -lpthread"
12876
12877 cat >>confdefs.h <<\_ACEOF
12878 #define HAVE_GTK_AND_PTHREAD 1
12879 _ACEOF
12880
12881 fi
12882 fi
12883 fi
12884
12885 if test x"${USE_X_TOOLKIT}" = xmaybe; then
12886 if test x"${HAVE_X11R5}" = xyes; then
12887 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
12888 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
12889 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
12890 echo $ECHO_N "(cached) $ECHO_C" >&6
12891 else
12892 cat >conftest.$ac_ext <<_ACEOF
12893 /* confdefs.h. */
12894 _ACEOF
12895 cat confdefs.h >>conftest.$ac_ext
12896 cat >>conftest.$ac_ext <<_ACEOF
12897 /* end confdefs.h. */
12898
12899 #include <X11/Intrinsic.h>
12900 #include <X11/Xaw/Simple.h>
12901 int
12902 main ()
12903 {
12904
12905 ;
12906 return 0;
12907 }
12908 _ACEOF
12909 rm -f conftest.$ac_objext conftest$ac_exeext
12910 if { (ac_try="$ac_link"
12911 case "(($ac_try" in
12912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12913 *) ac_try_echo=$ac_try;;
12914 esac
12915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12916 (eval "$ac_link") 2>conftest.er1
12917 ac_status=$?
12918 grep -v '^ *+' conftest.er1 >conftest.err
12919 rm -f conftest.er1
12920 cat conftest.err >&5
12921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12922 (exit $ac_status); } &&
12923 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12924 { (case "(($ac_try" in
12925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12926 *) ac_try_echo=$ac_try;;
12927 esac
12928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12929 (eval "$ac_try") 2>&5
12930 ac_status=$?
12931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12932 (exit $ac_status); }; } &&
12933 { ac_try='test -s conftest$ac_exeext'
12934 { (case "(($ac_try" in
12935 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12936 *) ac_try_echo=$ac_try;;
12937 esac
12938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12939 (eval "$ac_try") 2>&5
12940 ac_status=$?
12941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12942 (exit $ac_status); }; }; then
12943 emacs_cv_x11_version_5_with_xaw=yes
12944 else
12945 echo "$as_me: failed program was:" >&5
12946 sed 's/^/| /' conftest.$ac_ext >&5
12947
12948 emacs_cv_x11_version_5_with_xaw=no
12949 fi
12950
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 fi
12954
12955 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12956 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12957 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12958 USE_X_TOOLKIT=LUCID
12959 else
12960 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12961 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12962 USE_X_TOOLKIT=none
12963 fi
12964 else
12965 USE_X_TOOLKIT=none
12966 fi
12967 fi
12968
12969 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12970
12971 if test "${USE_X_TOOLKIT}" != "none"; then
12972 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12973 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12974 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 cat >conftest.$ac_ext <<_ACEOF
12978 /* confdefs.h. */
12979 _ACEOF
12980 cat confdefs.h >>conftest.$ac_ext
12981 cat >>conftest.$ac_ext <<_ACEOF
12982 /* end confdefs.h. */
12983 #include <X11/Intrinsic.h>
12984 int
12985 main ()
12986 {
12987 #if XtSpecificationRelease < 6
12988 fail;
12989 #endif
12990
12991 ;
12992 return 0;
12993 }
12994 _ACEOF
12995 rm -f conftest.$ac_objext conftest$ac_exeext
12996 if { (ac_try="$ac_link"
12997 case "(($ac_try" in
12998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12999 *) ac_try_echo=$ac_try;;
13000 esac
13001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13002 (eval "$ac_link") 2>conftest.er1
13003 ac_status=$?
13004 grep -v '^ *+' conftest.er1 >conftest.err
13005 rm -f conftest.er1
13006 cat conftest.err >&5
13007 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13008 (exit $ac_status); } &&
13009 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13010 { (case "(($ac_try" in
13011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13012 *) ac_try_echo=$ac_try;;
13013 esac
13014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13015 (eval "$ac_try") 2>&5
13016 ac_status=$?
13017 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13018 (exit $ac_status); }; } &&
13019 { ac_try='test -s conftest$ac_exeext'
13020 { (case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_try") 2>&5
13026 ac_status=$?
13027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13028 (exit $ac_status); }; }; then
13029 emacs_cv_x11_toolkit_version_6=yes
13030 else
13031 echo "$as_me: failed program was:" >&5
13032 sed 's/^/| /' conftest.$ac_ext >&5
13033
13034 emacs_cv_x11_toolkit_version_6=no
13035 fi
13036
13037 rm -f core conftest.err conftest.$ac_objext \
13038 conftest$ac_exeext conftest.$ac_ext
13039 fi
13040
13041 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
13042 if test $emacs_cv_x11_toolkit_version_6 = yes; then
13043 { echo "$as_me:$LINENO: result: 6 or newer" >&5
13044 echo "${ECHO_T}6 or newer" >&6; }
13045
13046 cat >>confdefs.h <<\_ACEOF
13047 #define HAVE_X11XTR6 1
13048 _ACEOF
13049
13050 else
13051 { echo "$as_me:$LINENO: result: before 6" >&5
13052 echo "${ECHO_T}before 6" >&6; }
13053 fi
13054
13055 OLDLIBS="$LIBS"
13056 if test x$HAVE_X11XTR6 = xyes; then
13057 LIBS="-lXt -lSM -lICE $LIBS"
13058 else
13059 LIBS="-lXt $LIBS"
13060 fi
13061
13062 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
13063 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
13064 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
13065 echo $ECHO_N "(cached) $ECHO_C" >&6
13066 else
13067 ac_check_lib_save_LIBS=$LIBS
13068 LIBS="-lXmu $LIBS"
13069 cat >conftest.$ac_ext <<_ACEOF
13070 /* confdefs.h. */
13071 _ACEOF
13072 cat confdefs.h >>conftest.$ac_ext
13073 cat >>conftest.$ac_ext <<_ACEOF
13074 /* end confdefs.h. */
13075
13076 /* Override any GCC internal prototype to avoid an error.
13077 Use char because int might match the return type of a GCC
13078 builtin and then its argument prototype would still apply. */
13079 #ifdef __cplusplus
13080 extern "C"
13081 #endif
13082 char XmuConvertStandardSelection ();
13083 int
13084 main ()
13085 {
13086 return XmuConvertStandardSelection ();
13087 ;
13088 return 0;
13089 }
13090 _ACEOF
13091 rm -f conftest.$ac_objext conftest$ac_exeext
13092 if { (ac_try="$ac_link"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_link") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } &&
13105 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13106 { (case "(($ac_try" in
13107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13108 *) ac_try_echo=$ac_try;;
13109 esac
13110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13111 (eval "$ac_try") 2>&5
13112 ac_status=$?
13113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13114 (exit $ac_status); }; } &&
13115 { ac_try='test -s conftest$ac_exeext'
13116 { (case "(($ac_try" in
13117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13118 *) ac_try_echo=$ac_try;;
13119 esac
13120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13121 (eval "$ac_try") 2>&5
13122 ac_status=$?
13123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13124 (exit $ac_status); }; }; then
13125 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
13126 else
13127 echo "$as_me: failed program was:" >&5
13128 sed 's/^/| /' conftest.$ac_ext >&5
13129
13130 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
13131 fi
13132
13133 rm -f core conftest.err conftest.$ac_objext \
13134 conftest$ac_exeext conftest.$ac_ext
13135 LIBS=$ac_check_lib_save_LIBS
13136 fi
13137 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
13138 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
13139 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
13140 cat >>confdefs.h <<_ACEOF
13141 #define HAVE_LIBXMU 1
13142 _ACEOF
13143
13144 LIBS="-lXmu $LIBS"
13145
13146 fi
13147
13148 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
13149 fi
13150
13151 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
13152 if test "${HAVE_X11}" = "yes"; then
13153 if test "${USE_X_TOOLKIT}" != "none"; then
13154
13155 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
13156 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
13157 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
13158 echo $ECHO_N "(cached) $ECHO_C" >&6
13159 else
13160 ac_check_lib_save_LIBS=$LIBS
13161 LIBS="-lXext $LIBS"
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168
13169 /* Override any GCC internal prototype to avoid an error.
13170 Use char because int might match the return type of a GCC
13171 builtin and then its argument prototype would still apply. */
13172 #ifdef __cplusplus
13173 extern "C"
13174 #endif
13175 char XShapeQueryExtension ();
13176 int
13177 main ()
13178 {
13179 return XShapeQueryExtension ();
13180 ;
13181 return 0;
13182 }
13183 _ACEOF
13184 rm -f conftest.$ac_objext conftest$ac_exeext
13185 if { (ac_try="$ac_link"
13186 case "(($ac_try" in
13187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13188 *) ac_try_echo=$ac_try;;
13189 esac
13190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13191 (eval "$ac_link") 2>conftest.er1
13192 ac_status=$?
13193 grep -v '^ *+' conftest.er1 >conftest.err
13194 rm -f conftest.er1
13195 cat conftest.err >&5
13196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13197 (exit $ac_status); } &&
13198 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13199 { (case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_try") 2>&5
13205 ac_status=$?
13206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13207 (exit $ac_status); }; } &&
13208 { ac_try='test -s conftest$ac_exeext'
13209 { (case "(($ac_try" in
13210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13211 *) ac_try_echo=$ac_try;;
13212 esac
13213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13214 (eval "$ac_try") 2>&5
13215 ac_status=$?
13216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13217 (exit $ac_status); }; }; then
13218 ac_cv_lib_Xext_XShapeQueryExtension=yes
13219 else
13220 echo "$as_me: failed program was:" >&5
13221 sed 's/^/| /' conftest.$ac_ext >&5
13222
13223 ac_cv_lib_Xext_XShapeQueryExtension=no
13224 fi
13225
13226 rm -f core conftest.err conftest.$ac_objext \
13227 conftest$ac_exeext conftest.$ac_ext
13228 LIBS=$ac_check_lib_save_LIBS
13229 fi
13230 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
13231 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
13232 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
13233 cat >>confdefs.h <<_ACEOF
13234 #define HAVE_LIBXEXT 1
13235 _ACEOF
13236
13237 LIBS="-lXext $LIBS"
13238
13239 fi
13240
13241 fi
13242 fi
13243
13244 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13245 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
13246 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
13247 if test "${emacs_cv_motif_version_2_1+set}" = set; then
13248 echo $ECHO_N "(cached) $ECHO_C" >&6
13249 else
13250 cat >conftest.$ac_ext <<_ACEOF
13251 /* confdefs.h. */
13252 _ACEOF
13253 cat confdefs.h >>conftest.$ac_ext
13254 cat >>conftest.$ac_ext <<_ACEOF
13255 /* end confdefs.h. */
13256 #include <Xm/Xm.h>
13257 int
13258 main ()
13259 {
13260 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
13261 int x = 5;
13262 #else
13263 Motif version prior to 2.1.
13264 #endif
13265 ;
13266 return 0;
13267 }
13268 _ACEOF
13269 rm -f conftest.$ac_objext
13270 if { (ac_try="$ac_compile"
13271 case "(($ac_try" in
13272 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13273 *) ac_try_echo=$ac_try;;
13274 esac
13275 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13276 (eval "$ac_compile") 2>conftest.er1
13277 ac_status=$?
13278 grep -v '^ *+' conftest.er1 >conftest.err
13279 rm -f conftest.er1
13280 cat conftest.err >&5
13281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13282 (exit $ac_status); } &&
13283 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13284 { (case "(($ac_try" in
13285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13286 *) ac_try_echo=$ac_try;;
13287 esac
13288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13289 (eval "$ac_try") 2>&5
13290 ac_status=$?
13291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13292 (exit $ac_status); }; } &&
13293 { ac_try='test -s conftest.$ac_objext'
13294 { (case "(($ac_try" in
13295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13296 *) ac_try_echo=$ac_try;;
13297 esac
13298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13299 (eval "$ac_try") 2>&5
13300 ac_status=$?
13301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302 (exit $ac_status); }; }; then
13303 emacs_cv_motif_version_2_1=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 emacs_cv_motif_version_2_1=no
13309 fi
13310
13311 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13312 fi
13313 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
13314 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
13315 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
13316 if test $emacs_cv_motif_version_2_1 = yes; then
13317 HAVE_LIBXP=no
13318
13319 cat >>confdefs.h <<\_ACEOF
13320 #define HAVE_MOTIF_2_1 1
13321 _ACEOF
13322
13323 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
13324 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
13325 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
13326 echo $ECHO_N "(cached) $ECHO_C" >&6
13327 else
13328 ac_check_lib_save_LIBS=$LIBS
13329 LIBS="-lXp $LIBS"
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336
13337 /* Override any GCC internal prototype to avoid an error.
13338 Use char because int might match the return type of a GCC
13339 builtin and then its argument prototype would still apply. */
13340 #ifdef __cplusplus
13341 extern "C"
13342 #endif
13343 char XpCreateContext ();
13344 int
13345 main ()
13346 {
13347 return XpCreateContext ();
13348 ;
13349 return 0;
13350 }
13351 _ACEOF
13352 rm -f conftest.$ac_objext conftest$ac_exeext
13353 if { (ac_try="$ac_link"
13354 case "(($ac_try" in
13355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13356 *) ac_try_echo=$ac_try;;
13357 esac
13358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13359 (eval "$ac_link") 2>conftest.er1
13360 ac_status=$?
13361 grep -v '^ *+' conftest.er1 >conftest.err
13362 rm -f conftest.er1
13363 cat conftest.err >&5
13364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13365 (exit $ac_status); } &&
13366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13367 { (case "(($ac_try" in
13368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13369 *) ac_try_echo=$ac_try;;
13370 esac
13371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13372 (eval "$ac_try") 2>&5
13373 ac_status=$?
13374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13375 (exit $ac_status); }; } &&
13376 { ac_try='test -s conftest$ac_exeext'
13377 { (case "(($ac_try" in
13378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13379 *) ac_try_echo=$ac_try;;
13380 esac
13381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13382 (eval "$ac_try") 2>&5
13383 ac_status=$?
13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13385 (exit $ac_status); }; }; then
13386 ac_cv_lib_Xp_XpCreateContext=yes
13387 else
13388 echo "$as_me: failed program was:" >&5
13389 sed 's/^/| /' conftest.$ac_ext >&5
13390
13391 ac_cv_lib_Xp_XpCreateContext=no
13392 fi
13393
13394 rm -f core conftest.err conftest.$ac_objext \
13395 conftest$ac_exeext conftest.$ac_ext
13396 LIBS=$ac_check_lib_save_LIBS
13397 fi
13398 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
13399 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
13400 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
13401 HAVE_LIBXP=yes
13402 fi
13403
13404 if test ${HAVE_LIBXP} = yes; then
13405
13406 cat >>confdefs.h <<\_ACEOF
13407 #define HAVE_LIBXP 1
13408 _ACEOF
13409
13410 fi
13411 else
13412 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
13413 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
13414 if test "${emacs_cv_lesstif+set}" = set; then
13415 echo $ECHO_N "(cached) $ECHO_C" >&6
13416 else
13417 # We put this in CFLAGS temporarily to precede other -I options
13418 # that might be in CFLAGS temporarily.
13419 # We put this in CPPFLAGS where it precedes the other -I options.
13420 OLD_CPPFLAGS=$CPPFLAGS
13421 OLD_CFLAGS=$CFLAGS
13422 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
13423 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
13431 int
13432 main ()
13433 {
13434 int x = 5;
13435 ;
13436 return 0;
13437 }
13438 _ACEOF
13439 rm -f conftest.$ac_objext
13440 if { (ac_try="$ac_compile"
13441 case "(($ac_try" in
13442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13443 *) ac_try_echo=$ac_try;;
13444 esac
13445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13446 (eval "$ac_compile") 2>conftest.er1
13447 ac_status=$?
13448 grep -v '^ *+' conftest.er1 >conftest.err
13449 rm -f conftest.er1
13450 cat conftest.err >&5
13451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13452 (exit $ac_status); } &&
13453 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13454 { (case "(($ac_try" in
13455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13456 *) ac_try_echo=$ac_try;;
13457 esac
13458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13459 (eval "$ac_try") 2>&5
13460 ac_status=$?
13461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13462 (exit $ac_status); }; } &&
13463 { ac_try='test -s conftest.$ac_objext'
13464 { (case "(($ac_try" in
13465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13466 *) ac_try_echo=$ac_try;;
13467 esac
13468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13469 (eval "$ac_try") 2>&5
13470 ac_status=$?
13471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13472 (exit $ac_status); }; }; then
13473 emacs_cv_lesstif=yes
13474 else
13475 echo "$as_me: failed program was:" >&5
13476 sed 's/^/| /' conftest.$ac_ext >&5
13477
13478 emacs_cv_lesstif=no
13479 fi
13480
13481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13482 fi
13483 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
13484 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
13485 if test $emacs_cv_lesstif = yes; then
13486 # Make sure this -I option remains in CPPFLAGS after it is set
13487 # back to REAL_CPPFLAGS.
13488 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
13489 # have those other -I options anyway. Ultimately, having this
13490 # directory ultimately in CPPFLAGS will be enough.
13491 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
13492 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
13493 else
13494 CFLAGS=$OLD_CFLAGS
13495 CPPFLAGS=$OLD_CPPFLAGS
13496 fi
13497 fi
13498 fi
13499
13500 ### Is -lXaw3d available?
13501 HAVE_XAW3D=no
13502 if test "${HAVE_X11}" = "yes"; then
13503 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
13504 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
13505 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
13506 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
13507 echo $ECHO_N "(cached) $ECHO_C" >&6
13508 else
13509 cat >conftest.$ac_ext <<_ACEOF
13510 /* confdefs.h. */
13511 _ACEOF
13512 cat confdefs.h >>conftest.$ac_ext
13513 cat >>conftest.$ac_ext <<_ACEOF
13514 /* end confdefs.h. */
13515 #include <X11/Xaw3d/Scrollbar.h>
13516 _ACEOF
13517 if { (ac_try="$ac_cpp conftest.$ac_ext"
13518 case "(($ac_try" in
13519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13520 *) ac_try_echo=$ac_try;;
13521 esac
13522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13524 ac_status=$?
13525 grep -v '^ *+' conftest.er1 >conftest.err
13526 rm -f conftest.er1
13527 cat conftest.err >&5
13528 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13529 (exit $ac_status); } >/dev/null; then
13530 if test -s conftest.err; then
13531 ac_cpp_err=$ac_c_preproc_warn_flag
13532 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13533 else
13534 ac_cpp_err=
13535 fi
13536 else
13537 ac_cpp_err=yes
13538 fi
13539 if test -z "$ac_cpp_err"; then
13540 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
13541 else
13542 echo "$as_me: failed program was:" >&5
13543 sed 's/^/| /' conftest.$ac_ext >&5
13544
13545 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
13546 fi
13547
13548 rm -f conftest.err conftest.$ac_ext
13549 fi
13550 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
13551 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
13552 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
13553 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
13554 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
13555 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
13556 echo $ECHO_N "(cached) $ECHO_C" >&6
13557 else
13558 ac_check_lib_save_LIBS=$LIBS
13559 LIBS="-lXaw3d $LIBS"
13560 cat >conftest.$ac_ext <<_ACEOF
13561 /* confdefs.h. */
13562 _ACEOF
13563 cat confdefs.h >>conftest.$ac_ext
13564 cat >>conftest.$ac_ext <<_ACEOF
13565 /* end confdefs.h. */
13566
13567 /* Override any GCC internal prototype to avoid an error.
13568 Use char because int might match the return type of a GCC
13569 builtin and then its argument prototype would still apply. */
13570 #ifdef __cplusplus
13571 extern "C"
13572 #endif
13573 char XawScrollbarSetThumb ();
13574 int
13575 main ()
13576 {
13577 return XawScrollbarSetThumb ();
13578 ;
13579 return 0;
13580 }
13581 _ACEOF
13582 rm -f conftest.$ac_objext conftest$ac_exeext
13583 if { (ac_try="$ac_link"
13584 case "(($ac_try" in
13585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13586 *) ac_try_echo=$ac_try;;
13587 esac
13588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13589 (eval "$ac_link") 2>conftest.er1
13590 ac_status=$?
13591 grep -v '^ *+' conftest.er1 >conftest.err
13592 rm -f conftest.er1
13593 cat conftest.err >&5
13594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13595 (exit $ac_status); } &&
13596 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13597 { (case "(($ac_try" in
13598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13599 *) ac_try_echo=$ac_try;;
13600 esac
13601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13602 (eval "$ac_try") 2>&5
13603 ac_status=$?
13604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13605 (exit $ac_status); }; } &&
13606 { ac_try='test -s conftest$ac_exeext'
13607 { (case "(($ac_try" in
13608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13609 *) ac_try_echo=$ac_try;;
13610 esac
13611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13612 (eval "$ac_try") 2>&5
13613 ac_status=$?
13614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13615 (exit $ac_status); }; }; then
13616 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
13617 else
13618 echo "$as_me: failed program was:" >&5
13619 sed 's/^/| /' conftest.$ac_ext >&5
13620
13621 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
13622 fi
13623
13624 rm -f core conftest.err conftest.$ac_objext \
13625 conftest$ac_exeext conftest.$ac_ext
13626 LIBS=$ac_check_lib_save_LIBS
13627 fi
13628 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
13629 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
13630 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
13631 HAVE_XAW3D=yes
13632 fi
13633
13634 fi
13635
13636
13637 if test "${HAVE_XAW3D}" = "yes"; then
13638
13639 cat >>confdefs.h <<\_ACEOF
13640 #define HAVE_XAW3D 1
13641 _ACEOF
13642
13643 fi
13644 fi
13645 fi
13646
13647
13648
13649 USE_TOOLKIT_SCROLL_BARS=no
13650 if test "${with_toolkit_scroll_bars}" != "no"; then
13651 if test "${USE_X_TOOLKIT}" != "none"; then
13652 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13653 cat >>confdefs.h <<\_ACEOF
13654 #define USE_TOOLKIT_SCROLL_BARS 1
13655 _ACEOF
13656
13657 HAVE_XAW3D=no
13658 USE_TOOLKIT_SCROLL_BARS=yes
13659 elif test "${HAVE_XAW3D}" = "yes"; then
13660 cat >>confdefs.h <<\_ACEOF
13661 #define USE_TOOLKIT_SCROLL_BARS 1
13662 _ACEOF
13663
13664 USE_TOOLKIT_SCROLL_BARS=yes
13665 fi
13666 elif test "${HAVE_GTK}" = "yes"; then
13667 cat >>confdefs.h <<\_ACEOF
13668 #define USE_TOOLKIT_SCROLL_BARS 1
13669 _ACEOF
13670
13671 USE_TOOLKIT_SCROLL_BARS=yes
13672 elif test "${HAVE_CARBON}" = "yes"; then
13673 cat >>confdefs.h <<\_ACEOF
13674 #define USE_TOOLKIT_SCROLL_BARS 1
13675 _ACEOF
13676
13677 USE_TOOLKIT_SCROLL_BARS=yes
13678 fi
13679 fi
13680
13681 cat >conftest.$ac_ext <<_ACEOF
13682 /* confdefs.h. */
13683 _ACEOF
13684 cat confdefs.h >>conftest.$ac_ext
13685 cat >>conftest.$ac_ext <<_ACEOF
13686 /* end confdefs.h. */
13687
13688 #include <X11/Xlib.h>
13689 #include <X11/Xresource.h>
13690 int
13691 main ()
13692 {
13693 XIMProc callback;
13694 ;
13695 return 0;
13696 }
13697 _ACEOF
13698 rm -f conftest.$ac_objext
13699 if { (ac_try="$ac_compile"
13700 case "(($ac_try" in
13701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13702 *) ac_try_echo=$ac_try;;
13703 esac
13704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13705 (eval "$ac_compile") 2>conftest.er1
13706 ac_status=$?
13707 grep -v '^ *+' conftest.er1 >conftest.err
13708 rm -f conftest.er1
13709 cat conftest.err >&5
13710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13711 (exit $ac_status); } &&
13712 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13713 { (case "(($ac_try" in
13714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13715 *) ac_try_echo=$ac_try;;
13716 esac
13717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13718 (eval "$ac_try") 2>&5
13719 ac_status=$?
13720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13721 (exit $ac_status); }; } &&
13722 { ac_try='test -s conftest.$ac_objext'
13723 { (case "(($ac_try" in
13724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13725 *) ac_try_echo=$ac_try;;
13726 esac
13727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13728 (eval "$ac_try") 2>&5
13729 ac_status=$?
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); }; }; then
13732 HAVE_XIM=yes
13733
13734 cat >>confdefs.h <<\_ACEOF
13735 #define HAVE_XIM 1
13736 _ACEOF
13737
13738 else
13739 echo "$as_me: failed program was:" >&5
13740 sed 's/^/| /' conftest.$ac_ext >&5
13741
13742 HAVE_XIM=no
13743 fi
13744
13745 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13746
13747
13748 if test "${with_xim}" != "no"; then
13749
13750 cat >>confdefs.h <<\_ACEOF
13751 #define USE_XIM 1
13752 _ACEOF
13753
13754 fi
13755
13756
13757 if test "${HAVE_XIM}" != "no"; then
13758 late_CFLAGS=$CFLAGS
13759 if test "$GCC" = yes; then
13760 CFLAGS="$CFLAGS --pedantic-errors"
13761 fi
13762 cat >conftest.$ac_ext <<_ACEOF
13763 /* confdefs.h. */
13764 _ACEOF
13765 cat confdefs.h >>conftest.$ac_ext
13766 cat >>conftest.$ac_ext <<_ACEOF
13767 /* end confdefs.h. */
13768
13769 #include <X11/Xlib.h>
13770 #include <X11/Xresource.h>
13771 int
13772 main ()
13773 {
13774 Display *display;
13775 XrmDatabase db;
13776 char *res_name;
13777 char *res_class;
13778 XIMProc callback;
13779 XPointer *client_data;
13780 #ifndef __GNUC__
13781 /* If we're not using GCC, it's probably not XFree86, and this is
13782 probably right, but we can't use something like --pedantic-errors. */
13783 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13784 char*, XIMProc, XPointer*);
13785 #endif
13786 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13787 client_data);
13788 ;
13789 return 0;
13790 }
13791 _ACEOF
13792 rm -f conftest.$ac_objext
13793 if { (ac_try="$ac_compile"
13794 case "(($ac_try" in
13795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13796 *) ac_try_echo=$ac_try;;
13797 esac
13798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13799 (eval "$ac_compile") 2>conftest.er1
13800 ac_status=$?
13801 grep -v '^ *+' conftest.er1 >conftest.err
13802 rm -f conftest.er1
13803 cat conftest.err >&5
13804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13805 (exit $ac_status); } &&
13806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13807 { (case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_try") 2>&5
13813 ac_status=$?
13814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13815 (exit $ac_status); }; } &&
13816 { ac_try='test -s conftest.$ac_objext'
13817 { (case "(($ac_try" in
13818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13819 *) ac_try_echo=$ac_try;;
13820 esac
13821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13822 (eval "$ac_try") 2>&5
13823 ac_status=$?
13824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13825 (exit $ac_status); }; }; then
13826 emacs_cv_arg6_star=yes
13827 else
13828 echo "$as_me: failed program was:" >&5
13829 sed 's/^/| /' conftest.$ac_ext >&5
13830
13831
13832 fi
13833
13834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13835
13836 if test "$emacs_cv_arg6_star" = yes; then
13837 cat >>confdefs.h <<\_ACEOF
13838 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13839 _ACEOF
13840
13841 else
13842 cat >>confdefs.h <<\_ACEOF
13843 #define XRegisterIMInstantiateCallback_arg6 XPointer
13844 _ACEOF
13845
13846 fi
13847 CFLAGS=$late_CFLAGS
13848 fi
13849
13850 ### Use -lXpm if available, unless `--with-xpm=no'.
13851 HAVE_XPM=no
13852 if test "${HAVE_X11}" = "yes"; then
13853 if test "${with_xpm}" != "no"; then
13854 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13855 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13856 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13857 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13858 echo $ECHO_N "(cached) $ECHO_C" >&6
13859 fi
13860 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13861 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13862 else
13863 # Is the header compilable?
13864 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13865 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13866 cat >conftest.$ac_ext <<_ACEOF
13867 /* confdefs.h. */
13868 _ACEOF
13869 cat confdefs.h >>conftest.$ac_ext
13870 cat >>conftest.$ac_ext <<_ACEOF
13871 /* end confdefs.h. */
13872 $ac_includes_default
13873 #include <X11/xpm.h>
13874 _ACEOF
13875 rm -f conftest.$ac_objext
13876 if { (ac_try="$ac_compile"
13877 case "(($ac_try" in
13878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13879 *) ac_try_echo=$ac_try;;
13880 esac
13881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13882 (eval "$ac_compile") 2>conftest.er1
13883 ac_status=$?
13884 grep -v '^ *+' conftest.er1 >conftest.err
13885 rm -f conftest.er1
13886 cat conftest.err >&5
13887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13888 (exit $ac_status); } &&
13889 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13890 { (case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_try") 2>&5
13896 ac_status=$?
13897 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13898 (exit $ac_status); }; } &&
13899 { ac_try='test -s conftest.$ac_objext'
13900 { (case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_try") 2>&5
13906 ac_status=$?
13907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13908 (exit $ac_status); }; }; then
13909 ac_header_compiler=yes
13910 else
13911 echo "$as_me: failed program was:" >&5
13912 sed 's/^/| /' conftest.$ac_ext >&5
13913
13914 ac_header_compiler=no
13915 fi
13916
13917 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13918 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13919 echo "${ECHO_T}$ac_header_compiler" >&6; }
13920
13921 # Is the header present?
13922 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13923 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13924 cat >conftest.$ac_ext <<_ACEOF
13925 /* confdefs.h. */
13926 _ACEOF
13927 cat confdefs.h >>conftest.$ac_ext
13928 cat >>conftest.$ac_ext <<_ACEOF
13929 /* end confdefs.h. */
13930 #include <X11/xpm.h>
13931 _ACEOF
13932 if { (ac_try="$ac_cpp conftest.$ac_ext"
13933 case "(($ac_try" in
13934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13935 *) ac_try_echo=$ac_try;;
13936 esac
13937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13938 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13939 ac_status=$?
13940 grep -v '^ *+' conftest.er1 >conftest.err
13941 rm -f conftest.er1
13942 cat conftest.err >&5
13943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13944 (exit $ac_status); } >/dev/null; then
13945 if test -s conftest.err; then
13946 ac_cpp_err=$ac_c_preproc_warn_flag
13947 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
13948 else
13949 ac_cpp_err=
13950 fi
13951 else
13952 ac_cpp_err=yes
13953 fi
13954 if test -z "$ac_cpp_err"; then
13955 ac_header_preproc=yes
13956 else
13957 echo "$as_me: failed program was:" >&5
13958 sed 's/^/| /' conftest.$ac_ext >&5
13959
13960 ac_header_preproc=no
13961 fi
13962
13963 rm -f conftest.err conftest.$ac_ext
13964 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13965 echo "${ECHO_T}$ac_header_preproc" >&6; }
13966
13967 # So? What about this header?
13968 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13969 yes:no: )
13970 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13971 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13972 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13973 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13974 ac_header_preproc=yes
13975 ;;
13976 no:yes:* )
13977 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13978 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13980 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13982 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13984 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13986 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13987 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13988 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13989
13990 ;;
13991 esac
13992 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13993 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13994 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13995 echo $ECHO_N "(cached) $ECHO_C" >&6
13996 else
13997 ac_cv_header_X11_xpm_h=$ac_header_preproc
13998 fi
13999 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
14000 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
14001
14002 fi
14003 if test $ac_cv_header_X11_xpm_h = yes; then
14004 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
14005 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
14006 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
14007 echo $ECHO_N "(cached) $ECHO_C" >&6
14008 else
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-lXpm -lX11 $LIBS"
14011 cat >conftest.$ac_ext <<_ACEOF
14012 /* confdefs.h. */
14013 _ACEOF
14014 cat confdefs.h >>conftest.$ac_ext
14015 cat >>conftest.$ac_ext <<_ACEOF
14016 /* end confdefs.h. */
14017
14018 /* Override any GCC internal prototype to avoid an error.
14019 Use char because int might match the return type of a GCC
14020 builtin and then its argument prototype would still apply. */
14021 #ifdef __cplusplus
14022 extern "C"
14023 #endif
14024 char XpmReadFileToPixmap ();
14025 int
14026 main ()
14027 {
14028 return XpmReadFileToPixmap ();
14029 ;
14030 return 0;
14031 }
14032 _ACEOF
14033 rm -f conftest.$ac_objext conftest$ac_exeext
14034 if { (ac_try="$ac_link"
14035 case "(($ac_try" in
14036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14037 *) ac_try_echo=$ac_try;;
14038 esac
14039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14040 (eval "$ac_link") 2>conftest.er1
14041 ac_status=$?
14042 grep -v '^ *+' conftest.er1 >conftest.err
14043 rm -f conftest.er1
14044 cat conftest.err >&5
14045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14046 (exit $ac_status); } &&
14047 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14048 { (case "(($ac_try" in
14049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14050 *) ac_try_echo=$ac_try;;
14051 esac
14052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14053 (eval "$ac_try") 2>&5
14054 ac_status=$?
14055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14056 (exit $ac_status); }; } &&
14057 { ac_try='test -s conftest$ac_exeext'
14058 { (case "(($ac_try" in
14059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14060 *) ac_try_echo=$ac_try;;
14061 esac
14062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14063 (eval "$ac_try") 2>&5
14064 ac_status=$?
14065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14066 (exit $ac_status); }; }; then
14067 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
14068 else
14069 echo "$as_me: failed program was:" >&5
14070 sed 's/^/| /' conftest.$ac_ext >&5
14071
14072 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
14073 fi
14074
14075 rm -f core conftest.err conftest.$ac_objext \
14076 conftest$ac_exeext conftest.$ac_ext
14077 LIBS=$ac_check_lib_save_LIBS
14078 fi
14079 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
14080 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
14081 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
14082 HAVE_XPM=yes
14083 fi
14084
14085 fi
14086
14087
14088 if test "${HAVE_XPM}" = "yes"; then
14089 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
14090 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
14091 cat >conftest.$ac_ext <<_ACEOF
14092 /* confdefs.h. */
14093 _ACEOF
14094 cat confdefs.h >>conftest.$ac_ext
14095 cat >>conftest.$ac_ext <<_ACEOF
14096 /* end confdefs.h. */
14097 #include "X11/xpm.h"
14098 #ifndef XpmReturnAllocPixels
14099 no_return_alloc_pixels
14100 #endif
14101
14102 _ACEOF
14103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14104 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
14105 HAVE_XPM=no
14106 else
14107 HAVE_XPM=yes
14108 fi
14109 rm -f conftest*
14110
14111
14112 if test "${HAVE_XPM}" = "yes"; then
14113 { echo "$as_me:$LINENO: result: yes" >&5
14114 echo "${ECHO_T}yes" >&6; }
14115 else
14116 { echo "$as_me:$LINENO: result: no" >&5
14117 echo "${ECHO_T}no" >&6; }
14118 fi
14119 fi
14120 fi
14121
14122 if test "${HAVE_XPM}" = "yes"; then
14123
14124 cat >>confdefs.h <<\_ACEOF
14125 #define HAVE_XPM 1
14126 _ACEOF
14127
14128 fi
14129 fi
14130
14131 ### Use -ljpeg if available, unless `--with-jpeg=no'.
14132 HAVE_JPEG=no
14133 if test "${HAVE_X11}" = "yes"; then
14134 if test "${with_jpeg}" != "no"; then
14135 if test "${ac_cv_header_jerror_h+set}" = set; then
14136 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14137 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14138 if test "${ac_cv_header_jerror_h+set}" = set; then
14139 echo $ECHO_N "(cached) $ECHO_C" >&6
14140 fi
14141 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14142 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14143 else
14144 # Is the header compilable?
14145 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
14146 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
14147 cat >conftest.$ac_ext <<_ACEOF
14148 /* confdefs.h. */
14149 _ACEOF
14150 cat confdefs.h >>conftest.$ac_ext
14151 cat >>conftest.$ac_ext <<_ACEOF
14152 /* end confdefs.h. */
14153 $ac_includes_default
14154 #include <jerror.h>
14155 _ACEOF
14156 rm -f conftest.$ac_objext
14157 if { (ac_try="$ac_compile"
14158 case "(($ac_try" in
14159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14160 *) ac_try_echo=$ac_try;;
14161 esac
14162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14163 (eval "$ac_compile") 2>conftest.er1
14164 ac_status=$?
14165 grep -v '^ *+' conftest.er1 >conftest.err
14166 rm -f conftest.er1
14167 cat conftest.err >&5
14168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14169 (exit $ac_status); } &&
14170 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14171 { (case "(($ac_try" in
14172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14173 *) ac_try_echo=$ac_try;;
14174 esac
14175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14176 (eval "$ac_try") 2>&5
14177 ac_status=$?
14178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14179 (exit $ac_status); }; } &&
14180 { ac_try='test -s conftest.$ac_objext'
14181 { (case "(($ac_try" in
14182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14183 *) ac_try_echo=$ac_try;;
14184 esac
14185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14186 (eval "$ac_try") 2>&5
14187 ac_status=$?
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); }; }; then
14190 ac_header_compiler=yes
14191 else
14192 echo "$as_me: failed program was:" >&5
14193 sed 's/^/| /' conftest.$ac_ext >&5
14194
14195 ac_header_compiler=no
14196 fi
14197
14198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14199 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14200 echo "${ECHO_T}$ac_header_compiler" >&6; }
14201
14202 # Is the header present?
14203 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
14204 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
14205 cat >conftest.$ac_ext <<_ACEOF
14206 /* confdefs.h. */
14207 _ACEOF
14208 cat confdefs.h >>conftest.$ac_ext
14209 cat >>conftest.$ac_ext <<_ACEOF
14210 /* end confdefs.h. */
14211 #include <jerror.h>
14212 _ACEOF
14213 if { (ac_try="$ac_cpp conftest.$ac_ext"
14214 case "(($ac_try" in
14215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14216 *) ac_try_echo=$ac_try;;
14217 esac
14218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14219 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14220 ac_status=$?
14221 grep -v '^ *+' conftest.er1 >conftest.err
14222 rm -f conftest.er1
14223 cat conftest.err >&5
14224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14225 (exit $ac_status); } >/dev/null; then
14226 if test -s conftest.err; then
14227 ac_cpp_err=$ac_c_preproc_warn_flag
14228 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14229 else
14230 ac_cpp_err=
14231 fi
14232 else
14233 ac_cpp_err=yes
14234 fi
14235 if test -z "$ac_cpp_err"; then
14236 ac_header_preproc=yes
14237 else
14238 echo "$as_me: failed program was:" >&5
14239 sed 's/^/| /' conftest.$ac_ext >&5
14240
14241 ac_header_preproc=no
14242 fi
14243
14244 rm -f conftest.err conftest.$ac_ext
14245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14246 echo "${ECHO_T}$ac_header_preproc" >&6; }
14247
14248 # So? What about this header?
14249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14250 yes:no: )
14251 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
14252 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14253 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
14254 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
14255 ac_header_preproc=yes
14256 ;;
14257 no:yes:* )
14258 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
14259 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
14260 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
14261 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
14262 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
14263 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
14264 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
14265 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
14266 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
14267 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
14268 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
14269 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
14270
14271 ;;
14272 esac
14273 { echo "$as_me:$LINENO: checking for jerror.h" >&5
14274 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
14275 if test "${ac_cv_header_jerror_h+set}" = set; then
14276 echo $ECHO_N "(cached) $ECHO_C" >&6
14277 else
14278 ac_cv_header_jerror_h=$ac_header_preproc
14279 fi
14280 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
14281 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
14282
14283 fi
14284 if test $ac_cv_header_jerror_h = yes; then
14285 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
14286 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
14287 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
14288 echo $ECHO_N "(cached) $ECHO_C" >&6
14289 else
14290 ac_check_lib_save_LIBS=$LIBS
14291 LIBS="-ljpeg $LIBS"
14292 cat >conftest.$ac_ext <<_ACEOF
14293 /* confdefs.h. */
14294 _ACEOF
14295 cat confdefs.h >>conftest.$ac_ext
14296 cat >>conftest.$ac_ext <<_ACEOF
14297 /* end confdefs.h. */
14298
14299 /* Override any GCC internal prototype to avoid an error.
14300 Use char because int might match the return type of a GCC
14301 builtin and then its argument prototype would still apply. */
14302 #ifdef __cplusplus
14303 extern "C"
14304 #endif
14305 char jpeg_destroy_compress ();
14306 int
14307 main ()
14308 {
14309 return jpeg_destroy_compress ();
14310 ;
14311 return 0;
14312 }
14313 _ACEOF
14314 rm -f conftest.$ac_objext conftest$ac_exeext
14315 if { (ac_try="$ac_link"
14316 case "(($ac_try" in
14317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14318 *) ac_try_echo=$ac_try;;
14319 esac
14320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14321 (eval "$ac_link") 2>conftest.er1
14322 ac_status=$?
14323 grep -v '^ *+' conftest.er1 >conftest.err
14324 rm -f conftest.er1
14325 cat conftest.err >&5
14326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14327 (exit $ac_status); } &&
14328 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14329 { (case "(($ac_try" in
14330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14331 *) ac_try_echo=$ac_try;;
14332 esac
14333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14334 (eval "$ac_try") 2>&5
14335 ac_status=$?
14336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14337 (exit $ac_status); }; } &&
14338 { ac_try='test -s conftest$ac_exeext'
14339 { (case "(($ac_try" in
14340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14341 *) ac_try_echo=$ac_try;;
14342 esac
14343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14344 (eval "$ac_try") 2>&5
14345 ac_status=$?
14346 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14347 (exit $ac_status); }; }; then
14348 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
14349 else
14350 echo "$as_me: failed program was:" >&5
14351 sed 's/^/| /' conftest.$ac_ext >&5
14352
14353 ac_cv_lib_jpeg_jpeg_destroy_compress=no
14354 fi
14355
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS
14359 fi
14360 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
14361 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
14362 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
14363 HAVE_JPEG=yes
14364 fi
14365
14366 fi
14367
14368
14369 fi
14370
14371
14372 if test "${HAVE_JPEG}" = "yes"; then
14373 cat >>confdefs.h <<\_ACEOF
14374 #define HAVE_JPEG 1
14375 _ACEOF
14376
14377 cat >conftest.$ac_ext <<_ACEOF
14378 /* confdefs.h. */
14379 _ACEOF
14380 cat confdefs.h >>conftest.$ac_ext
14381 cat >>conftest.$ac_ext <<_ACEOF
14382 /* end confdefs.h. */
14383 #include <jpeglib.h>
14384 version=JPEG_LIB_VERSION
14385
14386 _ACEOF
14387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14388 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
14389 cat >>confdefs.h <<\_ACEOF
14390 #define HAVE_JPEG 1
14391 _ACEOF
14392
14393 else
14394 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
14395 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
14396 HAVE_JPEG=no
14397 fi
14398 rm -f conftest*
14399
14400 fi
14401 fi
14402
14403 ### Use -lpng if available, unless `--with-png=no'.
14404 HAVE_PNG=no
14405 if test "${HAVE_X11}" = "yes"; then
14406 if test "${with_png}" != "no"; then
14407 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
14408 # in /usr/include/libpng.
14409
14410
14411 for ac_header in png.h libpng/png.h
14412 do
14413 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14414 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14415 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14416 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14417 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14418 echo $ECHO_N "(cached) $ECHO_C" >&6
14419 fi
14420 ac_res=`eval echo '${'$as_ac_Header'}'`
14421 { echo "$as_me:$LINENO: result: $ac_res" >&5
14422 echo "${ECHO_T}$ac_res" >&6; }
14423 else
14424 # Is the header compilable?
14425 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14426 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14427 cat >conftest.$ac_ext <<_ACEOF
14428 /* confdefs.h. */
14429 _ACEOF
14430 cat confdefs.h >>conftest.$ac_ext
14431 cat >>conftest.$ac_ext <<_ACEOF
14432 /* end confdefs.h. */
14433 $ac_includes_default
14434 #include <$ac_header>
14435 _ACEOF
14436 rm -f conftest.$ac_objext
14437 if { (ac_try="$ac_compile"
14438 case "(($ac_try" in
14439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14440 *) ac_try_echo=$ac_try;;
14441 esac
14442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14443 (eval "$ac_compile") 2>conftest.er1
14444 ac_status=$?
14445 grep -v '^ *+' conftest.er1 >conftest.err
14446 rm -f conftest.er1
14447 cat conftest.err >&5
14448 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14449 (exit $ac_status); } &&
14450 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14451 { (case "(($ac_try" in
14452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14453 *) ac_try_echo=$ac_try;;
14454 esac
14455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14456 (eval "$ac_try") 2>&5
14457 ac_status=$?
14458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14459 (exit $ac_status); }; } &&
14460 { ac_try='test -s conftest.$ac_objext'
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_try") 2>&5
14467 ac_status=$?
14468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14469 (exit $ac_status); }; }; then
14470 ac_header_compiler=yes
14471 else
14472 echo "$as_me: failed program was:" >&5
14473 sed 's/^/| /' conftest.$ac_ext >&5
14474
14475 ac_header_compiler=no
14476 fi
14477
14478 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14479 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14480 echo "${ECHO_T}$ac_header_compiler" >&6; }
14481
14482 # Is the header present?
14483 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14484 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14485 cat >conftest.$ac_ext <<_ACEOF
14486 /* confdefs.h. */
14487 _ACEOF
14488 cat confdefs.h >>conftest.$ac_ext
14489 cat >>conftest.$ac_ext <<_ACEOF
14490 /* end confdefs.h. */
14491 #include <$ac_header>
14492 _ACEOF
14493 if { (ac_try="$ac_cpp conftest.$ac_ext"
14494 case "(($ac_try" in
14495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14496 *) ac_try_echo=$ac_try;;
14497 esac
14498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14499 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14500 ac_status=$?
14501 grep -v '^ *+' conftest.er1 >conftest.err
14502 rm -f conftest.er1
14503 cat conftest.err >&5
14504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14505 (exit $ac_status); } >/dev/null; then
14506 if test -s conftest.err; then
14507 ac_cpp_err=$ac_c_preproc_warn_flag
14508 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14509 else
14510 ac_cpp_err=
14511 fi
14512 else
14513 ac_cpp_err=yes
14514 fi
14515 if test -z "$ac_cpp_err"; then
14516 ac_header_preproc=yes
14517 else
14518 echo "$as_me: failed program was:" >&5
14519 sed 's/^/| /' conftest.$ac_ext >&5
14520
14521 ac_header_preproc=no
14522 fi
14523
14524 rm -f conftest.err conftest.$ac_ext
14525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14526 echo "${ECHO_T}$ac_header_preproc" >&6; }
14527
14528 # So? What about this header?
14529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14530 yes:no: )
14531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14535 ac_header_preproc=yes
14536 ;;
14537 no:yes:* )
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14550
14551 ;;
14552 esac
14553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14556 echo $ECHO_N "(cached) $ECHO_C" >&6
14557 else
14558 eval "$as_ac_Header=\$ac_header_preproc"
14559 fi
14560 ac_res=`eval echo '${'$as_ac_Header'}'`
14561 { echo "$as_me:$LINENO: result: $ac_res" >&5
14562 echo "${ECHO_T}$ac_res" >&6; }
14563
14564 fi
14565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14566 cat >>confdefs.h <<_ACEOF
14567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14568 _ACEOF
14569
14570 fi
14571
14572 done
14573
14574 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
14575 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
14576 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
14577 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
14578 echo $ECHO_N "(cached) $ECHO_C" >&6
14579 else
14580 ac_check_lib_save_LIBS=$LIBS
14581 LIBS="-lpng -lz -lm $LIBS"
14582 cat >conftest.$ac_ext <<_ACEOF
14583 /* confdefs.h. */
14584 _ACEOF
14585 cat confdefs.h >>conftest.$ac_ext
14586 cat >>conftest.$ac_ext <<_ACEOF
14587 /* end confdefs.h. */
14588
14589 /* Override any GCC internal prototype to avoid an error.
14590 Use char because int might match the return type of a GCC
14591 builtin and then its argument prototype would still apply. */
14592 #ifdef __cplusplus
14593 extern "C"
14594 #endif
14595 char png_get_channels ();
14596 int
14597 main ()
14598 {
14599 return png_get_channels ();
14600 ;
14601 return 0;
14602 }
14603 _ACEOF
14604 rm -f conftest.$ac_objext conftest$ac_exeext
14605 if { (ac_try="$ac_link"
14606 case "(($ac_try" in
14607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14608 *) ac_try_echo=$ac_try;;
14609 esac
14610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14611 (eval "$ac_link") 2>conftest.er1
14612 ac_status=$?
14613 grep -v '^ *+' conftest.er1 >conftest.err
14614 rm -f conftest.er1
14615 cat conftest.err >&5
14616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14617 (exit $ac_status); } &&
14618 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14619 { (case "(($ac_try" in
14620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14621 *) ac_try_echo=$ac_try;;
14622 esac
14623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14624 (eval "$ac_try") 2>&5
14625 ac_status=$?
14626 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14627 (exit $ac_status); }; } &&
14628 { ac_try='test -s conftest$ac_exeext'
14629 { (case "(($ac_try" in
14630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14631 *) ac_try_echo=$ac_try;;
14632 esac
14633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14634 (eval "$ac_try") 2>&5
14635 ac_status=$?
14636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14637 (exit $ac_status); }; }; then
14638 ac_cv_lib_png_png_get_channels=yes
14639 else
14640 echo "$as_me: failed program was:" >&5
14641 sed 's/^/| /' conftest.$ac_ext >&5
14642
14643 ac_cv_lib_png_png_get_channels=no
14644 fi
14645
14646 rm -f core conftest.err conftest.$ac_objext \
14647 conftest$ac_exeext conftest.$ac_ext
14648 LIBS=$ac_check_lib_save_LIBS
14649 fi
14650 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
14651 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
14652 if test $ac_cv_lib_png_png_get_channels = yes; then
14653 HAVE_PNG=yes
14654 fi
14655
14656 fi
14657 fi
14658
14659 if test "${HAVE_PNG}" = "yes"; then
14660
14661 cat >>confdefs.h <<\_ACEOF
14662 #define HAVE_PNG 1
14663 _ACEOF
14664
14665 fi
14666 fi
14667
14668 ### Use -ltiff if available, unless `--with-tiff=no'.
14669 HAVE_TIFF=no
14670 if test "${HAVE_X11}" = "yes"; then
14671 if test "${with_tiff}" != "no"; then
14672 if test "${ac_cv_header_tiffio_h+set}" = set; then
14673 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14674 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14675 if test "${ac_cv_header_tiffio_h+set}" = set; then
14676 echo $ECHO_N "(cached) $ECHO_C" >&6
14677 fi
14678 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14679 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14680 else
14681 # Is the header compilable?
14682 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
14683 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
14684 cat >conftest.$ac_ext <<_ACEOF
14685 /* confdefs.h. */
14686 _ACEOF
14687 cat confdefs.h >>conftest.$ac_ext
14688 cat >>conftest.$ac_ext <<_ACEOF
14689 /* end confdefs.h. */
14690 $ac_includes_default
14691 #include <tiffio.h>
14692 _ACEOF
14693 rm -f conftest.$ac_objext
14694 if { (ac_try="$ac_compile"
14695 case "(($ac_try" in
14696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14697 *) ac_try_echo=$ac_try;;
14698 esac
14699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14700 (eval "$ac_compile") 2>conftest.er1
14701 ac_status=$?
14702 grep -v '^ *+' conftest.er1 >conftest.err
14703 rm -f conftest.er1
14704 cat conftest.err >&5
14705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14706 (exit $ac_status); } &&
14707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14708 { (case "(($ac_try" in
14709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14710 *) ac_try_echo=$ac_try;;
14711 esac
14712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14713 (eval "$ac_try") 2>&5
14714 ac_status=$?
14715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14716 (exit $ac_status); }; } &&
14717 { ac_try='test -s conftest.$ac_objext'
14718 { (case "(($ac_try" in
14719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14720 *) ac_try_echo=$ac_try;;
14721 esac
14722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14723 (eval "$ac_try") 2>&5
14724 ac_status=$?
14725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14726 (exit $ac_status); }; }; then
14727 ac_header_compiler=yes
14728 else
14729 echo "$as_me: failed program was:" >&5
14730 sed 's/^/| /' conftest.$ac_ext >&5
14731
14732 ac_header_compiler=no
14733 fi
14734
14735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14736 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14737 echo "${ECHO_T}$ac_header_compiler" >&6; }
14738
14739 # Is the header present?
14740 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
14741 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748 #include <tiffio.h>
14749 _ACEOF
14750 if { (ac_try="$ac_cpp conftest.$ac_ext"
14751 case "(($ac_try" in
14752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14753 *) ac_try_echo=$ac_try;;
14754 esac
14755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14756 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14757 ac_status=$?
14758 grep -v '^ *+' conftest.er1 >conftest.err
14759 rm -f conftest.er1
14760 cat conftest.err >&5
14761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14762 (exit $ac_status); } >/dev/null; then
14763 if test -s conftest.err; then
14764 ac_cpp_err=$ac_c_preproc_warn_flag
14765 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14766 else
14767 ac_cpp_err=
14768 fi
14769 else
14770 ac_cpp_err=yes
14771 fi
14772 if test -z "$ac_cpp_err"; then
14773 ac_header_preproc=yes
14774 else
14775 echo "$as_me: failed program was:" >&5
14776 sed 's/^/| /' conftest.$ac_ext >&5
14777
14778 ac_header_preproc=no
14779 fi
14780
14781 rm -f conftest.err conftest.$ac_ext
14782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14783 echo "${ECHO_T}$ac_header_preproc" >&6; }
14784
14785 # So? What about this header?
14786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14787 yes:no: )
14788 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
14789 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14790 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
14791 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
14792 ac_header_preproc=yes
14793 ;;
14794 no:yes:* )
14795 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
14796 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
14797 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
14798 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
14799 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
14800 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
14801 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
14802 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
14803 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
14804 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
14805 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
14806 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
14807
14808 ;;
14809 esac
14810 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
14811 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
14812 if test "${ac_cv_header_tiffio_h+set}" = set; then
14813 echo $ECHO_N "(cached) $ECHO_C" >&6
14814 else
14815 ac_cv_header_tiffio_h=$ac_header_preproc
14816 fi
14817 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
14818 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
14819
14820 fi
14821 if test $ac_cv_header_tiffio_h = yes; then
14822 tifflibs="-lz -lm"
14823 # At least one tiff package requires the jpeg library.
14824 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14825 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14826 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14827 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14828 echo $ECHO_N "(cached) $ECHO_C" >&6
14829 else
14830 ac_check_lib_save_LIBS=$LIBS
14831 LIBS="-ltiff $tifflibs $LIBS"
14832 cat >conftest.$ac_ext <<_ACEOF
14833 /* confdefs.h. */
14834 _ACEOF
14835 cat confdefs.h >>conftest.$ac_ext
14836 cat >>conftest.$ac_ext <<_ACEOF
14837 /* end confdefs.h. */
14838
14839 /* Override any GCC internal prototype to avoid an error.
14840 Use char because int might match the return type of a GCC
14841 builtin and then its argument prototype would still apply. */
14842 #ifdef __cplusplus
14843 extern "C"
14844 #endif
14845 char TIFFGetVersion ();
14846 int
14847 main ()
14848 {
14849 return TIFFGetVersion ();
14850 ;
14851 return 0;
14852 }
14853 _ACEOF
14854 rm -f conftest.$ac_objext conftest$ac_exeext
14855 if { (ac_try="$ac_link"
14856 case "(($ac_try" in
14857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14858 *) ac_try_echo=$ac_try;;
14859 esac
14860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14861 (eval "$ac_link") 2>conftest.er1
14862 ac_status=$?
14863 grep -v '^ *+' conftest.er1 >conftest.err
14864 rm -f conftest.er1
14865 cat conftest.err >&5
14866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14867 (exit $ac_status); } &&
14868 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14869 { (case "(($ac_try" in
14870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14871 *) ac_try_echo=$ac_try;;
14872 esac
14873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14874 (eval "$ac_try") 2>&5
14875 ac_status=$?
14876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14877 (exit $ac_status); }; } &&
14878 { ac_try='test -s conftest$ac_exeext'
14879 { (case "(($ac_try" in
14880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14881 *) ac_try_echo=$ac_try;;
14882 esac
14883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14884 (eval "$ac_try") 2>&5
14885 ac_status=$?
14886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14887 (exit $ac_status); }; }; then
14888 ac_cv_lib_tiff_TIFFGetVersion=yes
14889 else
14890 echo "$as_me: failed program was:" >&5
14891 sed 's/^/| /' conftest.$ac_ext >&5
14892
14893 ac_cv_lib_tiff_TIFFGetVersion=no
14894 fi
14895
14896 rm -f core conftest.err conftest.$ac_objext \
14897 conftest$ac_exeext conftest.$ac_ext
14898 LIBS=$ac_check_lib_save_LIBS
14899 fi
14900 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14901 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14902 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14903 HAVE_TIFF=yes
14904 fi
14905
14906 fi
14907
14908
14909 fi
14910
14911 if test "${HAVE_TIFF}" = "yes"; then
14912
14913 cat >>confdefs.h <<\_ACEOF
14914 #define HAVE_TIFF 1
14915 _ACEOF
14916
14917 fi
14918 fi
14919
14920 ### Use -lgif if available, unless `--with-gif=no'.
14921 HAVE_GIF=no
14922 if test "${HAVE_X11}" = "yes"; then
14923 if test "${with_gif}" != "no"; then
14924 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14925 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14926 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14927 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14928 echo $ECHO_N "(cached) $ECHO_C" >&6
14929 fi
14930 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14931 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14932 else
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14935 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h. */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h. */
14942 $ac_includes_default
14943 #include <gif_lib.h>
14944 _ACEOF
14945 rm -f conftest.$ac_objext
14946 if { (ac_try="$ac_compile"
14947 case "(($ac_try" in
14948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14949 *) ac_try_echo=$ac_try;;
14950 esac
14951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14952 (eval "$ac_compile") 2>conftest.er1
14953 ac_status=$?
14954 grep -v '^ *+' conftest.er1 >conftest.err
14955 rm -f conftest.er1
14956 cat conftest.err >&5
14957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14958 (exit $ac_status); } &&
14959 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14960 { (case "(($ac_try" in
14961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14962 *) ac_try_echo=$ac_try;;
14963 esac
14964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14965 (eval "$ac_try") 2>&5
14966 ac_status=$?
14967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14968 (exit $ac_status); }; } &&
14969 { ac_try='test -s conftest.$ac_objext'
14970 { (case "(($ac_try" in
14971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14972 *) ac_try_echo=$ac_try;;
14973 esac
14974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14975 (eval "$ac_try") 2>&5
14976 ac_status=$?
14977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978 (exit $ac_status); }; }; then
14979 ac_header_compiler=yes
14980 else
14981 echo "$as_me: failed program was:" >&5
14982 sed 's/^/| /' conftest.$ac_ext >&5
14983
14984 ac_header_compiler=no
14985 fi
14986
14987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14988 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14989 echo "${ECHO_T}$ac_header_compiler" >&6; }
14990
14991 # Is the header present?
14992 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14993 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14994 cat >conftest.$ac_ext <<_ACEOF
14995 /* confdefs.h. */
14996 _ACEOF
14997 cat confdefs.h >>conftest.$ac_ext
14998 cat >>conftest.$ac_ext <<_ACEOF
14999 /* end confdefs.h. */
15000 #include <gif_lib.h>
15001 _ACEOF
15002 if { (ac_try="$ac_cpp conftest.$ac_ext"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } >/dev/null; then
15015 if test -s conftest.err; then
15016 ac_cpp_err=$ac_c_preproc_warn_flag
15017 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15018 else
15019 ac_cpp_err=
15020 fi
15021 else
15022 ac_cpp_err=yes
15023 fi
15024 if test -z "$ac_cpp_err"; then
15025 ac_header_preproc=yes
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 ac_header_preproc=no
15031 fi
15032
15033 rm -f conftest.err conftest.$ac_ext
15034 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15035 echo "${ECHO_T}$ac_header_preproc" >&6; }
15036
15037 # So? What about this header?
15038 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15039 yes:no: )
15040 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15041 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15042 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
15043 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
15044 ac_header_preproc=yes
15045 ;;
15046 no:yes:* )
15047 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
15048 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
15049 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
15050 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
15051 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
15052 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
15053 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
15054 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15055 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
15056 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
15057 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
15058 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
15059
15060 ;;
15061 esac
15062 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
15063 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
15064 if test "${ac_cv_header_gif_lib_h+set}" = set; then
15065 echo $ECHO_N "(cached) $ECHO_C" >&6
15066 else
15067 ac_cv_header_gif_lib_h=$ac_header_preproc
15068 fi
15069 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
15070 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
15071
15072 fi
15073 if test $ac_cv_header_gif_lib_h = yes; then
15074 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
15075 # Earlier versions can crash Emacs.
15076 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
15077 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
15078 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
15079 echo $ECHO_N "(cached) $ECHO_C" >&6
15080 else
15081 ac_check_lib_save_LIBS=$LIBS
15082 LIBS="-lungif $LIBS"
15083 cat >conftest.$ac_ext <<_ACEOF
15084 /* confdefs.h. */
15085 _ACEOF
15086 cat confdefs.h >>conftest.$ac_ext
15087 cat >>conftest.$ac_ext <<_ACEOF
15088 /* end confdefs.h. */
15089
15090 /* Override any GCC internal prototype to avoid an error.
15091 Use char because int might match the return type of a GCC
15092 builtin and then its argument prototype would still apply. */
15093 #ifdef __cplusplus
15094 extern "C"
15095 #endif
15096 char EGifPutExtensionLast ();
15097 int
15098 main ()
15099 {
15100 return EGifPutExtensionLast ();
15101 ;
15102 return 0;
15103 }
15104 _ACEOF
15105 rm -f conftest.$ac_objext conftest$ac_exeext
15106 if { (ac_try="$ac_link"
15107 case "(($ac_try" in
15108 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109 *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112 (eval "$ac_link") 2>conftest.er1
15113 ac_status=$?
15114 grep -v '^ *+' conftest.er1 >conftest.err
15115 rm -f conftest.er1
15116 cat conftest.err >&5
15117 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15118 (exit $ac_status); } &&
15119 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15120 { (case "(($ac_try" in
15121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15122 *) ac_try_echo=$ac_try;;
15123 esac
15124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15125 (eval "$ac_try") 2>&5
15126 ac_status=$?
15127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15128 (exit $ac_status); }; } &&
15129 { ac_try='test -s conftest$ac_exeext'
15130 { (case "(($ac_try" in
15131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15132 *) ac_try_echo=$ac_try;;
15133 esac
15134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15135 (eval "$ac_try") 2>&5
15136 ac_status=$?
15137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15138 (exit $ac_status); }; }; then
15139 ac_cv_lib_ungif_EGifPutExtensionLast=yes
15140 else
15141 echo "$as_me: failed program was:" >&5
15142 sed 's/^/| /' conftest.$ac_ext >&5
15143
15144 ac_cv_lib_ungif_EGifPutExtensionLast=no
15145 fi
15146
15147 rm -f core conftest.err conftest.$ac_objext \
15148 conftest$ac_exeext conftest.$ac_ext
15149 LIBS=$ac_check_lib_save_LIBS
15150 fi
15151 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
15152 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
15153 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
15154 HAVE_GIF=yes
15155 fi
15156
15157 fi
15158
15159
15160 fi
15161
15162 if test "${HAVE_GIF}" = "yes"; then
15163
15164 cat >>confdefs.h <<\_ACEOF
15165 #define HAVE_GIF 1
15166 _ACEOF
15167
15168 fi
15169 fi
15170
15171 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15172 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15173 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15174 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15175 echo $ECHO_N "(cached) $ECHO_C" >&6
15176 fi
15177 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15178 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15179 else
15180 # Is the header compilable?
15181 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
15182 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
15183 cat >conftest.$ac_ext <<_ACEOF
15184 /* confdefs.h. */
15185 _ACEOF
15186 cat confdefs.h >>conftest.$ac_ext
15187 cat >>conftest.$ac_ext <<_ACEOF
15188 /* end confdefs.h. */
15189 $ac_includes_default
15190 #include <malloc/malloc.h>
15191 _ACEOF
15192 rm -f conftest.$ac_objext
15193 if { (ac_try="$ac_compile"
15194 case "(($ac_try" in
15195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15196 *) ac_try_echo=$ac_try;;
15197 esac
15198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15199 (eval "$ac_compile") 2>conftest.er1
15200 ac_status=$?
15201 grep -v '^ *+' conftest.er1 >conftest.err
15202 rm -f conftest.er1
15203 cat conftest.err >&5
15204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15205 (exit $ac_status); } &&
15206 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15207 { (case "(($ac_try" in
15208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15209 *) ac_try_echo=$ac_try;;
15210 esac
15211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15212 (eval "$ac_try") 2>&5
15213 ac_status=$?
15214 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15215 (exit $ac_status); }; } &&
15216 { ac_try='test -s conftest.$ac_objext'
15217 { (case "(($ac_try" in
15218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15219 *) ac_try_echo=$ac_try;;
15220 esac
15221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15222 (eval "$ac_try") 2>&5
15223 ac_status=$?
15224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15225 (exit $ac_status); }; }; then
15226 ac_header_compiler=yes
15227 else
15228 echo "$as_me: failed program was:" >&5
15229 sed 's/^/| /' conftest.$ac_ext >&5
15230
15231 ac_header_compiler=no
15232 fi
15233
15234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15236 echo "${ECHO_T}$ac_header_compiler" >&6; }
15237
15238 # Is the header present?
15239 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
15240 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
15241 cat >conftest.$ac_ext <<_ACEOF
15242 /* confdefs.h. */
15243 _ACEOF
15244 cat confdefs.h >>conftest.$ac_ext
15245 cat >>conftest.$ac_ext <<_ACEOF
15246 /* end confdefs.h. */
15247 #include <malloc/malloc.h>
15248 _ACEOF
15249 if { (ac_try="$ac_cpp conftest.$ac_ext"
15250 case "(($ac_try" in
15251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15252 *) ac_try_echo=$ac_try;;
15253 esac
15254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15256 ac_status=$?
15257 grep -v '^ *+' conftest.er1 >conftest.err
15258 rm -f conftest.er1
15259 cat conftest.err >&5
15260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15261 (exit $ac_status); } >/dev/null; then
15262 if test -s conftest.err; then
15263 ac_cpp_err=$ac_c_preproc_warn_flag
15264 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15265 else
15266 ac_cpp_err=
15267 fi
15268 else
15269 ac_cpp_err=yes
15270 fi
15271 if test -z "$ac_cpp_err"; then
15272 ac_header_preproc=yes
15273 else
15274 echo "$as_me: failed program was:" >&5
15275 sed 's/^/| /' conftest.$ac_ext >&5
15276
15277 ac_header_preproc=no
15278 fi
15279
15280 rm -f conftest.err conftest.$ac_ext
15281 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15282 echo "${ECHO_T}$ac_header_preproc" >&6; }
15283
15284 # So? What about this header?
15285 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15286 yes:no: )
15287 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
15288 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15289 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
15290 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
15291 ac_header_preproc=yes
15292 ;;
15293 no:yes:* )
15294 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
15295 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
15296 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
15297 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
15298 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
15299 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
15300 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
15301 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
15302 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
15303 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
15304 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
15305 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
15306
15307 ;;
15308 esac
15309 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
15310 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
15311 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
15312 echo $ECHO_N "(cached) $ECHO_C" >&6
15313 else
15314 ac_cv_header_malloc_malloc_h=$ac_header_preproc
15315 fi
15316 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
15317 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
15318
15319 fi
15320 if test $ac_cv_header_malloc_malloc_h = yes; then
15321
15322 cat >>confdefs.h <<\_ACEOF
15323 #define HAVE_MALLOC_MALLOC_H 1
15324 _ACEOF
15325
15326 fi
15327
15328
15329
15330 ### Use Mac OS X Carbon API to implement GUI.
15331 if test "${HAVE_CARBON}" = "yes"; then
15332
15333 cat >>confdefs.h <<\_ACEOF
15334 #define HAVE_CARBON 1
15335 _ACEOF
15336
15337 ## Specify the install directory
15338 carbon_appdir=
15339 if test "${carbon_appdir_x}" != ""; then
15340 case ${carbon_appdir_x} in
15341 y | ye | yes) carbon_appdir=/Applications ;;
15342 * ) carbon_appdir=${carbon_appdir_x} ;;
15343 esac
15344 fi
15345 # We also have mouse menus.
15346 HAVE_MENUS=yes
15347 fi
15348
15349 ### Use session management (-lSM -lICE) if available
15350 HAVE_X_SM=no
15351 if test "${HAVE_X11}" = "yes"; then
15352 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15353 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15354 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15355 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15356 echo $ECHO_N "(cached) $ECHO_C" >&6
15357 fi
15358 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15359 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15360 else
15361 # Is the header compilable?
15362 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
15363 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
15364 cat >conftest.$ac_ext <<_ACEOF
15365 /* confdefs.h. */
15366 _ACEOF
15367 cat confdefs.h >>conftest.$ac_ext
15368 cat >>conftest.$ac_ext <<_ACEOF
15369 /* end confdefs.h. */
15370 $ac_includes_default
15371 #include <X11/SM/SMlib.h>
15372 _ACEOF
15373 rm -f conftest.$ac_objext
15374 if { (ac_try="$ac_compile"
15375 case "(($ac_try" in
15376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15377 *) ac_try_echo=$ac_try;;
15378 esac
15379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15380 (eval "$ac_compile") 2>conftest.er1
15381 ac_status=$?
15382 grep -v '^ *+' conftest.er1 >conftest.err
15383 rm -f conftest.er1
15384 cat conftest.err >&5
15385 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15386 (exit $ac_status); } &&
15387 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15388 { (case "(($ac_try" in
15389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15390 *) ac_try_echo=$ac_try;;
15391 esac
15392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15393 (eval "$ac_try") 2>&5
15394 ac_status=$?
15395 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15396 (exit $ac_status); }; } &&
15397 { ac_try='test -s conftest.$ac_objext'
15398 { (case "(($ac_try" in
15399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15400 *) ac_try_echo=$ac_try;;
15401 esac
15402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15403 (eval "$ac_try") 2>&5
15404 ac_status=$?
15405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15406 (exit $ac_status); }; }; then
15407 ac_header_compiler=yes
15408 else
15409 echo "$as_me: failed program was:" >&5
15410 sed 's/^/| /' conftest.$ac_ext >&5
15411
15412 ac_header_compiler=no
15413 fi
15414
15415 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15417 echo "${ECHO_T}$ac_header_compiler" >&6; }
15418
15419 # Is the header present?
15420 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
15421 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
15422 cat >conftest.$ac_ext <<_ACEOF
15423 /* confdefs.h. */
15424 _ACEOF
15425 cat confdefs.h >>conftest.$ac_ext
15426 cat >>conftest.$ac_ext <<_ACEOF
15427 /* end confdefs.h. */
15428 #include <X11/SM/SMlib.h>
15429 _ACEOF
15430 if { (ac_try="$ac_cpp conftest.$ac_ext"
15431 case "(($ac_try" in
15432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15433 *) ac_try_echo=$ac_try;;
15434 esac
15435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15436 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15437 ac_status=$?
15438 grep -v '^ *+' conftest.er1 >conftest.err
15439 rm -f conftest.er1
15440 cat conftest.err >&5
15441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15442 (exit $ac_status); } >/dev/null; then
15443 if test -s conftest.err; then
15444 ac_cpp_err=$ac_c_preproc_warn_flag
15445 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15446 else
15447 ac_cpp_err=
15448 fi
15449 else
15450 ac_cpp_err=yes
15451 fi
15452 if test -z "$ac_cpp_err"; then
15453 ac_header_preproc=yes
15454 else
15455 echo "$as_me: failed program was:" >&5
15456 sed 's/^/| /' conftest.$ac_ext >&5
15457
15458 ac_header_preproc=no
15459 fi
15460
15461 rm -f conftest.err conftest.$ac_ext
15462 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15463 echo "${ECHO_T}$ac_header_preproc" >&6; }
15464
15465 # So? What about this header?
15466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15467 yes:no: )
15468 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
15469 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
15470 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
15471 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
15472 ac_header_preproc=yes
15473 ;;
15474 no:yes:* )
15475 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
15476 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
15477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
15478 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
15479 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
15480 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
15482 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
15484 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
15486 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
15487
15488 ;;
15489 esac
15490 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
15491 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
15492 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
15493 echo $ECHO_N "(cached) $ECHO_C" >&6
15494 else
15495 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
15496 fi
15497 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
15498 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
15499
15500 fi
15501 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
15502 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
15503 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
15504 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
15505 echo $ECHO_N "(cached) $ECHO_C" >&6
15506 else
15507 ac_check_lib_save_LIBS=$LIBS
15508 LIBS="-lSM -lICE $LIBS"
15509 cat >conftest.$ac_ext <<_ACEOF
15510 /* confdefs.h. */
15511 _ACEOF
15512 cat confdefs.h >>conftest.$ac_ext
15513 cat >>conftest.$ac_ext <<_ACEOF
15514 /* end confdefs.h. */
15515
15516 /* Override any GCC internal prototype to avoid an error.
15517 Use char because int might match the return type of a GCC
15518 builtin and then its argument prototype would still apply. */
15519 #ifdef __cplusplus
15520 extern "C"
15521 #endif
15522 char SmcOpenConnection ();
15523 int
15524 main ()
15525 {
15526 return SmcOpenConnection ();
15527 ;
15528 return 0;
15529 }
15530 _ACEOF
15531 rm -f conftest.$ac_objext conftest$ac_exeext
15532 if { (ac_try="$ac_link"
15533 case "(($ac_try" in
15534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15535 *) ac_try_echo=$ac_try;;
15536 esac
15537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15538 (eval "$ac_link") 2>conftest.er1
15539 ac_status=$?
15540 grep -v '^ *+' conftest.er1 >conftest.err
15541 rm -f conftest.er1
15542 cat conftest.err >&5
15543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15544 (exit $ac_status); } &&
15545 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15546 { (case "(($ac_try" in
15547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15548 *) ac_try_echo=$ac_try;;
15549 esac
15550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15551 (eval "$ac_try") 2>&5
15552 ac_status=$?
15553 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15554 (exit $ac_status); }; } &&
15555 { ac_try='test -s conftest$ac_exeext'
15556 { (case "(($ac_try" in
15557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15558 *) ac_try_echo=$ac_try;;
15559 esac
15560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15561 (eval "$ac_try") 2>&5
15562 ac_status=$?
15563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15564 (exit $ac_status); }; }; then
15565 ac_cv_lib_SM_SmcOpenConnection=yes
15566 else
15567 echo "$as_me: failed program was:" >&5
15568 sed 's/^/| /' conftest.$ac_ext >&5
15569
15570 ac_cv_lib_SM_SmcOpenConnection=no
15571 fi
15572
15573 rm -f core conftest.err conftest.$ac_objext \
15574 conftest$ac_exeext conftest.$ac_ext
15575 LIBS=$ac_check_lib_save_LIBS
15576 fi
15577 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
15578 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
15579 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
15580 HAVE_X_SM=yes
15581 fi
15582
15583 fi
15584
15585
15586
15587 if test "${HAVE_X_SM}" = "yes"; then
15588
15589 cat >>confdefs.h <<\_ACEOF
15590 #define HAVE_X_SM 1
15591 _ACEOF
15592
15593 case "$LIBS" in
15594 *-lSM*) ;;
15595 *) LIBS="-lSM -lICE $LIBS" ;;
15596 esac
15597 fi
15598 fi
15599
15600 # If netdb.h doesn't declare h_errno, we must declare it by hand.
15601 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
15602 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
15603 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
15604 echo $ECHO_N "(cached) $ECHO_C" >&6
15605 else
15606 cat >conftest.$ac_ext <<_ACEOF
15607 /* confdefs.h. */
15608 _ACEOF
15609 cat confdefs.h >>conftest.$ac_ext
15610 cat >>conftest.$ac_ext <<_ACEOF
15611 /* end confdefs.h. */
15612 #include <netdb.h>
15613 int
15614 main ()
15615 {
15616 return h_errno;
15617 ;
15618 return 0;
15619 }
15620 _ACEOF
15621 rm -f conftest.$ac_objext conftest$ac_exeext
15622 if { (ac_try="$ac_link"
15623 case "(($ac_try" in
15624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15625 *) ac_try_echo=$ac_try;;
15626 esac
15627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15628 (eval "$ac_link") 2>conftest.er1
15629 ac_status=$?
15630 grep -v '^ *+' conftest.er1 >conftest.err
15631 rm -f conftest.er1
15632 cat conftest.err >&5
15633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15634 (exit $ac_status); } &&
15635 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15636 { (case "(($ac_try" in
15637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15638 *) ac_try_echo=$ac_try;;
15639 esac
15640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15641 (eval "$ac_try") 2>&5
15642 ac_status=$?
15643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15644 (exit $ac_status); }; } &&
15645 { ac_try='test -s conftest$ac_exeext'
15646 { (case "(($ac_try" in
15647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15648 *) ac_try_echo=$ac_try;;
15649 esac
15650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15651 (eval "$ac_try") 2>&5
15652 ac_status=$?
15653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15654 (exit $ac_status); }; }; then
15655 emacs_cv_netdb_declares_h_errno=yes
15656 else
15657 echo "$as_me: failed program was:" >&5
15658 sed 's/^/| /' conftest.$ac_ext >&5
15659
15660 emacs_cv_netdb_declares_h_errno=no
15661 fi
15662
15663 rm -f core conftest.err conftest.$ac_objext \
15664 conftest$ac_exeext conftest.$ac_ext
15665 fi
15666 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15667 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15668 if test $emacs_cv_netdb_declares_h_errno = yes; then
15669
15670 cat >>confdefs.h <<\_ACEOF
15671 #define HAVE_H_ERRNO 1
15672 _ACEOF
15673
15674 fi
15675
15676 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15677 # for constant arguments. Useless!
15678 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15679 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15680 if test "${ac_cv_working_alloca_h+set}" = set; then
15681 echo $ECHO_N "(cached) $ECHO_C" >&6
15682 else
15683 cat >conftest.$ac_ext <<_ACEOF
15684 /* confdefs.h. */
15685 _ACEOF
15686 cat confdefs.h >>conftest.$ac_ext
15687 cat >>conftest.$ac_ext <<_ACEOF
15688 /* end confdefs.h. */
15689 #include <alloca.h>
15690 int
15691 main ()
15692 {
15693 char *p = (char *) alloca (2 * sizeof (int));
15694 if (p) return 0;
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } &&
15713 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15714 { (case "(($ac_try" in
15715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15716 *) ac_try_echo=$ac_try;;
15717 esac
15718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15719 (eval "$ac_try") 2>&5
15720 ac_status=$?
15721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15722 (exit $ac_status); }; } &&
15723 { ac_try='test -s conftest$ac_exeext'
15724 { (case "(($ac_try" in
15725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15726 *) ac_try_echo=$ac_try;;
15727 esac
15728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15729 (eval "$ac_try") 2>&5
15730 ac_status=$?
15731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732 (exit $ac_status); }; }; then
15733 ac_cv_working_alloca_h=yes
15734 else
15735 echo "$as_me: failed program was:" >&5
15736 sed 's/^/| /' conftest.$ac_ext >&5
15737
15738 ac_cv_working_alloca_h=no
15739 fi
15740
15741 rm -f core conftest.err conftest.$ac_objext \
15742 conftest$ac_exeext conftest.$ac_ext
15743 fi
15744 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15745 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15746 if test $ac_cv_working_alloca_h = yes; then
15747
15748 cat >>confdefs.h <<\_ACEOF
15749 #define HAVE_ALLOCA_H 1
15750 _ACEOF
15751
15752 fi
15753
15754 { echo "$as_me:$LINENO: checking for alloca" >&5
15755 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15756 if test "${ac_cv_func_alloca_works+set}" = set; then
15757 echo $ECHO_N "(cached) $ECHO_C" >&6
15758 else
15759 cat >conftest.$ac_ext <<_ACEOF
15760 /* confdefs.h. */
15761 _ACEOF
15762 cat confdefs.h >>conftest.$ac_ext
15763 cat >>conftest.$ac_ext <<_ACEOF
15764 /* end confdefs.h. */
15765 #ifdef __GNUC__
15766 # define alloca __builtin_alloca
15767 #else
15768 # ifdef _MSC_VER
15769 # include <malloc.h>
15770 # define alloca _alloca
15771 # else
15772 # if HAVE_ALLOCA_H
15773 # include <alloca.h>
15774 # else
15775 # ifdef _AIX
15776 #pragma alloca
15777 # else
15778 # ifndef alloca /* predefined by HP cc +Olibcalls */
15779 char *alloca ();
15780 # endif
15781 # endif
15782 # endif
15783 # endif
15784 #endif
15785
15786 int
15787 main ()
15788 {
15789 char *p = (char *) alloca (1);
15790 if (p) return 0;
15791 ;
15792 return 0;
15793 }
15794 _ACEOF
15795 rm -f conftest.$ac_objext conftest$ac_exeext
15796 if { (ac_try="$ac_link"
15797 case "(($ac_try" in
15798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15799 *) ac_try_echo=$ac_try;;
15800 esac
15801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15802 (eval "$ac_link") 2>conftest.er1
15803 ac_status=$?
15804 grep -v '^ *+' conftest.er1 >conftest.err
15805 rm -f conftest.er1
15806 cat conftest.err >&5
15807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15808 (exit $ac_status); } &&
15809 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15810 { (case "(($ac_try" in
15811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15812 *) ac_try_echo=$ac_try;;
15813 esac
15814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15815 (eval "$ac_try") 2>&5
15816 ac_status=$?
15817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15818 (exit $ac_status); }; } &&
15819 { ac_try='test -s conftest$ac_exeext'
15820 { (case "(($ac_try" in
15821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15822 *) ac_try_echo=$ac_try;;
15823 esac
15824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15825 (eval "$ac_try") 2>&5
15826 ac_status=$?
15827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15828 (exit $ac_status); }; }; then
15829 ac_cv_func_alloca_works=yes
15830 else
15831 echo "$as_me: failed program was:" >&5
15832 sed 's/^/| /' conftest.$ac_ext >&5
15833
15834 ac_cv_func_alloca_works=no
15835 fi
15836
15837 rm -f core conftest.err conftest.$ac_objext \
15838 conftest$ac_exeext conftest.$ac_ext
15839 fi
15840 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15841 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15842
15843 if test $ac_cv_func_alloca_works = yes; then
15844
15845 cat >>confdefs.h <<\_ACEOF
15846 #define HAVE_ALLOCA 1
15847 _ACEOF
15848
15849 else
15850 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15851 # that cause trouble. Some versions do not even contain alloca or
15852 # contain a buggy version. If you still want to use their alloca,
15853 # use ar to extract alloca.o from them instead of compiling alloca.c.
15854
15855 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15856
15857 cat >>confdefs.h <<\_ACEOF
15858 #define C_ALLOCA 1
15859 _ACEOF
15860
15861
15862 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15863 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15864 if test "${ac_cv_os_cray+set}" = set; then
15865 echo $ECHO_N "(cached) $ECHO_C" >&6
15866 else
15867 cat >conftest.$ac_ext <<_ACEOF
15868 /* confdefs.h. */
15869 _ACEOF
15870 cat confdefs.h >>conftest.$ac_ext
15871 cat >>conftest.$ac_ext <<_ACEOF
15872 /* end confdefs.h. */
15873 #if defined CRAY && ! defined CRAY2
15874 webecray
15875 #else
15876 wenotbecray
15877 #endif
15878
15879 _ACEOF
15880 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15881 $EGREP "webecray" >/dev/null 2>&1; then
15882 ac_cv_os_cray=yes
15883 else
15884 ac_cv_os_cray=no
15885 fi
15886 rm -f conftest*
15887
15888 fi
15889 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15890 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15891 if test $ac_cv_os_cray = yes; then
15892 for ac_func in _getb67 GETB67 getb67; do
15893 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15894 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15895 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15896 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15897 echo $ECHO_N "(cached) $ECHO_C" >&6
15898 else
15899 cat >conftest.$ac_ext <<_ACEOF
15900 /* confdefs.h. */
15901 _ACEOF
15902 cat confdefs.h >>conftest.$ac_ext
15903 cat >>conftest.$ac_ext <<_ACEOF
15904 /* end confdefs.h. */
15905 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15906 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15907 #define $ac_func innocuous_$ac_func
15908
15909 /* System header to define __stub macros and hopefully few prototypes,
15910 which can conflict with char $ac_func (); below.
15911 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15912 <limits.h> exists even on freestanding compilers. */
15913
15914 #ifdef __STDC__
15915 # include <limits.h>
15916 #else
15917 # include <assert.h>
15918 #endif
15919
15920 #undef $ac_func
15921
15922 /* Override any GCC internal prototype to avoid an error.
15923 Use char because int might match the return type of a GCC
15924 builtin and then its argument prototype would still apply. */
15925 #ifdef __cplusplus
15926 extern "C"
15927 #endif
15928 char $ac_func ();
15929 /* The GNU C library defines this for functions which it implements
15930 to always fail with ENOSYS. Some functions are actually named
15931 something starting with __ and the normal name is an alias. */
15932 #if defined __stub_$ac_func || defined __stub___$ac_func
15933 choke me
15934 #endif
15935
15936 int
15937 main ()
15938 {
15939 return $ac_func ();
15940 ;
15941 return 0;
15942 }
15943 _ACEOF
15944 rm -f conftest.$ac_objext conftest$ac_exeext
15945 if { (ac_try="$ac_link"
15946 case "(($ac_try" in
15947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15948 *) ac_try_echo=$ac_try;;
15949 esac
15950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15951 (eval "$ac_link") 2>conftest.er1
15952 ac_status=$?
15953 grep -v '^ *+' conftest.er1 >conftest.err
15954 rm -f conftest.er1
15955 cat conftest.err >&5
15956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15957 (exit $ac_status); } &&
15958 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15959 { (case "(($ac_try" in
15960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15961 *) ac_try_echo=$ac_try;;
15962 esac
15963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15964 (eval "$ac_try") 2>&5
15965 ac_status=$?
15966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15967 (exit $ac_status); }; } &&
15968 { ac_try='test -s conftest$ac_exeext'
15969 { (case "(($ac_try" in
15970 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15971 *) ac_try_echo=$ac_try;;
15972 esac
15973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15974 (eval "$ac_try") 2>&5
15975 ac_status=$?
15976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15977 (exit $ac_status); }; }; 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 \
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
15994 cat >>confdefs.h <<_ACEOF
15995 #define CRAY_STACKSEG_END $ac_func
15996 _ACEOF
15997
15998 break
15999 fi
16000
16001 done
16002 fi
16003
16004 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
16005 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
16006 if test "${ac_cv_c_stack_direction+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 if test "$cross_compiling" = yes; then
16010 ac_cv_c_stack_direction=0
16011 else
16012 cat >conftest.$ac_ext <<_ACEOF
16013 /* confdefs.h. */
16014 _ACEOF
16015 cat confdefs.h >>conftest.$ac_ext
16016 cat >>conftest.$ac_ext <<_ACEOF
16017 /* end confdefs.h. */
16018 $ac_includes_default
16019 int
16020 find_stack_direction ()
16021 {
16022 static char *addr = 0;
16023 auto char dummy;
16024 if (addr == 0)
16025 {
16026 addr = &dummy;
16027 return find_stack_direction ();
16028 }
16029 else
16030 return (&dummy > addr) ? 1 : -1;
16031 }
16032
16033 int
16034 main ()
16035 {
16036 return find_stack_direction () < 0;
16037 }
16038 _ACEOF
16039 rm -f conftest$ac_exeext
16040 if { (ac_try="$ac_link"
16041 case "(($ac_try" in
16042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16043 *) ac_try_echo=$ac_try;;
16044 esac
16045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16046 (eval "$ac_link") 2>&5
16047 ac_status=$?
16048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16049 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16050 { (case "(($ac_try" in
16051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16052 *) ac_try_echo=$ac_try;;
16053 esac
16054 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16055 (eval "$ac_try") 2>&5
16056 ac_status=$?
16057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16058 (exit $ac_status); }; }; then
16059 ac_cv_c_stack_direction=1
16060 else
16061 echo "$as_me: program exited with status $ac_status" >&5
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 ( exit $ac_status )
16066 ac_cv_c_stack_direction=-1
16067 fi
16068 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16069 fi
16070
16071
16072 fi
16073 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
16074 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
16075
16076 cat >>confdefs.h <<_ACEOF
16077 #define STACK_DIRECTION $ac_cv_c_stack_direction
16078 _ACEOF
16079
16080
16081 fi
16082
16083
16084 # fmod, logb, and frexp are found in -lm on most systems.
16085 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
16086
16087 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
16088 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
16089 if test "${ac_cv_lib_m_sqrt+set}" = set; then
16090 echo $ECHO_N "(cached) $ECHO_C" >&6
16091 else
16092 ac_check_lib_save_LIBS=$LIBS
16093 LIBS="-lm $LIBS"
16094 cat >conftest.$ac_ext <<_ACEOF
16095 /* confdefs.h. */
16096 _ACEOF
16097 cat confdefs.h >>conftest.$ac_ext
16098 cat >>conftest.$ac_ext <<_ACEOF
16099 /* end confdefs.h. */
16100
16101 /* Override any GCC internal prototype to avoid an error.
16102 Use char because int might match the return type of a GCC
16103 builtin and then its argument prototype would still apply. */
16104 #ifdef __cplusplus
16105 extern "C"
16106 #endif
16107 char sqrt ();
16108 int
16109 main ()
16110 {
16111 return sqrt ();
16112 ;
16113 return 0;
16114 }
16115 _ACEOF
16116 rm -f conftest.$ac_objext conftest$ac_exeext
16117 if { (ac_try="$ac_link"
16118 case "(($ac_try" in
16119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16120 *) ac_try_echo=$ac_try;;
16121 esac
16122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16123 (eval "$ac_link") 2>conftest.er1
16124 ac_status=$?
16125 grep -v '^ *+' conftest.er1 >conftest.err
16126 rm -f conftest.er1
16127 cat conftest.err >&5
16128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16129 (exit $ac_status); } &&
16130 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16131 { (case "(($ac_try" in
16132 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16133 *) ac_try_echo=$ac_try;;
16134 esac
16135 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16136 (eval "$ac_try") 2>&5
16137 ac_status=$?
16138 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16139 (exit $ac_status); }; } &&
16140 { ac_try='test -s conftest$ac_exeext'
16141 { (case "(($ac_try" in
16142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16143 *) ac_try_echo=$ac_try;;
16144 esac
16145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16146 (eval "$ac_try") 2>&5
16147 ac_status=$?
16148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16149 (exit $ac_status); }; }; then
16150 ac_cv_lib_m_sqrt=yes
16151 else
16152 echo "$as_me: failed program was:" >&5
16153 sed 's/^/| /' conftest.$ac_ext >&5
16154
16155 ac_cv_lib_m_sqrt=no
16156 fi
16157
16158 rm -f core conftest.err conftest.$ac_objext \
16159 conftest$ac_exeext conftest.$ac_ext
16160 LIBS=$ac_check_lib_save_LIBS
16161 fi
16162 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
16163 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
16164 if test $ac_cv_lib_m_sqrt = yes; then
16165 cat >>confdefs.h <<_ACEOF
16166 #define HAVE_LIBM 1
16167 _ACEOF
16168
16169 LIBS="-lm $LIBS"
16170
16171 fi
16172
16173
16174 # Check for mail-locking functions in a "mail" library. Probably this should
16175 # have the same check as for liblockfile below.
16176
16177 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
16178 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
16179 if test "${ac_cv_lib_mail_maillock+set}" = set; then
16180 echo $ECHO_N "(cached) $ECHO_C" >&6
16181 else
16182 ac_check_lib_save_LIBS=$LIBS
16183 LIBS="-lmail $LIBS"
16184 cat >conftest.$ac_ext <<_ACEOF
16185 /* confdefs.h. */
16186 _ACEOF
16187 cat confdefs.h >>conftest.$ac_ext
16188 cat >>conftest.$ac_ext <<_ACEOF
16189 /* end confdefs.h. */
16190
16191 /* Override any GCC internal prototype to avoid an error.
16192 Use char because int might match the return type of a GCC
16193 builtin and then its argument prototype would still apply. */
16194 #ifdef __cplusplus
16195 extern "C"
16196 #endif
16197 char maillock ();
16198 int
16199 main ()
16200 {
16201 return maillock ();
16202 ;
16203 return 0;
16204 }
16205 _ACEOF
16206 rm -f conftest.$ac_objext conftest$ac_exeext
16207 if { (ac_try="$ac_link"
16208 case "(($ac_try" in
16209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16210 *) ac_try_echo=$ac_try;;
16211 esac
16212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16213 (eval "$ac_link") 2>conftest.er1
16214 ac_status=$?
16215 grep -v '^ *+' conftest.er1 >conftest.err
16216 rm -f conftest.er1
16217 cat conftest.err >&5
16218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219 (exit $ac_status); } &&
16220 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
16227 ac_status=$?
16228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229 (exit $ac_status); }; } &&
16230 { ac_try='test -s conftest$ac_exeext'
16231 { (case "(($ac_try" in
16232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16233 *) ac_try_echo=$ac_try;;
16234 esac
16235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16236 (eval "$ac_try") 2>&5
16237 ac_status=$?
16238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16239 (exit $ac_status); }; }; then
16240 ac_cv_lib_mail_maillock=yes
16241 else
16242 echo "$as_me: failed program was:" >&5
16243 sed 's/^/| /' conftest.$ac_ext >&5
16244
16245 ac_cv_lib_mail_maillock=no
16246 fi
16247
16248 rm -f core conftest.err conftest.$ac_objext \
16249 conftest$ac_exeext conftest.$ac_ext
16250 LIBS=$ac_check_lib_save_LIBS
16251 fi
16252 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
16253 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
16254 if test $ac_cv_lib_mail_maillock = yes; then
16255 cat >>confdefs.h <<_ACEOF
16256 #define HAVE_LIBMAIL 1
16257 _ACEOF
16258
16259 LIBS="-lmail $LIBS"
16260
16261 fi
16262
16263
16264 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
16265 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
16266 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
16267 echo $ECHO_N "(cached) $ECHO_C" >&6
16268 else
16269 ac_check_lib_save_LIBS=$LIBS
16270 LIBS="-llockfile $LIBS"
16271 cat >conftest.$ac_ext <<_ACEOF
16272 /* confdefs.h. */
16273 _ACEOF
16274 cat confdefs.h >>conftest.$ac_ext
16275 cat >>conftest.$ac_ext <<_ACEOF
16276 /* end confdefs.h. */
16277
16278 /* Override any GCC internal prototype to avoid an error.
16279 Use char because int might match the return type of a GCC
16280 builtin and then its argument prototype would still apply. */
16281 #ifdef __cplusplus
16282 extern "C"
16283 #endif
16284 char maillock ();
16285 int
16286 main ()
16287 {
16288 return maillock ();
16289 ;
16290 return 0;
16291 }
16292 _ACEOF
16293 rm -f conftest.$ac_objext conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>conftest.er1
16301 ac_status=$?
16302 grep -v '^ *+' conftest.er1 >conftest.err
16303 rm -f conftest.er1
16304 cat conftest.err >&5
16305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16306 (exit $ac_status); } &&
16307 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16308 { (case "(($ac_try" in
16309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16310 *) ac_try_echo=$ac_try;;
16311 esac
16312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16313 (eval "$ac_try") 2>&5
16314 ac_status=$?
16315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16316 (exit $ac_status); }; } &&
16317 { ac_try='test -s conftest$ac_exeext'
16318 { (case "(($ac_try" in
16319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16320 *) ac_try_echo=$ac_try;;
16321 esac
16322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16323 (eval "$ac_try") 2>&5
16324 ac_status=$?
16325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16326 (exit $ac_status); }; }; then
16327 ac_cv_lib_lockfile_maillock=yes
16328 else
16329 echo "$as_me: failed program was:" >&5
16330 sed 's/^/| /' conftest.$ac_ext >&5
16331
16332 ac_cv_lib_lockfile_maillock=no
16333 fi
16334
16335 rm -f core conftest.err conftest.$ac_objext \
16336 conftest$ac_exeext conftest.$ac_ext
16337 LIBS=$ac_check_lib_save_LIBS
16338 fi
16339 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
16340 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
16341 if test $ac_cv_lib_lockfile_maillock = yes; then
16342 cat >>confdefs.h <<_ACEOF
16343 #define HAVE_LIBLOCKFILE 1
16344 _ACEOF
16345
16346 LIBS="-llockfile $LIBS"
16347
16348 fi
16349
16350 # If we have the shared liblockfile, assume we must use it for mail
16351 # locking (e.g. Debian). If we couldn't link against liblockfile
16352 # (no liblockfile.a installed), ensure that we don't need to.
16353 if test "$ac_cv_lib_lockfile_maillock" = no; then
16354 # Extract the first word of "liblockfile.so", so it can be a program name with args.
16355 set dummy liblockfile.so; ac_word=$2
16356 { echo "$as_me:$LINENO: checking for $ac_word" >&5
16357 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
16358 if test "${ac_cv_prog_liblockfile+set}" = set; then
16359 echo $ECHO_N "(cached) $ECHO_C" >&6
16360 else
16361 if test -n "$liblockfile"; then
16362 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
16363 else
16364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
16365 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
16366 for as_dir in $as_dummy
16367 do
16368 IFS=$as_save_IFS
16369 test -z "$as_dir" && as_dir=.
16370 for ac_exec_ext in '' $ac_executable_extensions; do
16371 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
16372 ac_cv_prog_liblockfile="yes"
16373 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
16374 break 2
16375 fi
16376 done
16377 done
16378 IFS=$as_save_IFS
16379
16380 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
16381 fi
16382 fi
16383 liblockfile=$ac_cv_prog_liblockfile
16384 if test -n "$liblockfile"; then
16385 { echo "$as_me:$LINENO: result: $liblockfile" >&5
16386 echo "${ECHO_T}$liblockfile" >&6; }
16387 else
16388 { echo "$as_me:$LINENO: result: no" >&5
16389 echo "${ECHO_T}no" >&6; }
16390 fi
16391
16392
16393 if test $ac_cv_prog_liblockfile = yes; then
16394 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
16395 This probably means that movemail could lose mail.
16396 There may be a \`development' package to install containing liblockfile." >&5
16397 echo "$as_me: error: Shared liblockfile found but can't link against it.
16398 This probably means that movemail could lose mail.
16399 There may be a \`development' package to install containing liblockfile." >&2;}
16400 { (exit 1); exit 1; }; }
16401 else :
16402 fi
16403 fi
16404
16405 for ac_func in touchlock
16406 do
16407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16411 echo $ECHO_N "(cached) $ECHO_C" >&6
16412 else
16413 cat >conftest.$ac_ext <<_ACEOF
16414 /* confdefs.h. */
16415 _ACEOF
16416 cat confdefs.h >>conftest.$ac_ext
16417 cat >>conftest.$ac_ext <<_ACEOF
16418 /* end confdefs.h. */
16419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16420 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16421 #define $ac_func innocuous_$ac_func
16422
16423 /* System header to define __stub macros and hopefully few prototypes,
16424 which can conflict with char $ac_func (); below.
16425 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16426 <limits.h> exists even on freestanding compilers. */
16427
16428 #ifdef __STDC__
16429 # include <limits.h>
16430 #else
16431 # include <assert.h>
16432 #endif
16433
16434 #undef $ac_func
16435
16436 /* Override any GCC internal prototype to avoid an error.
16437 Use char because int might match the return type of a GCC
16438 builtin and then its argument prototype would still apply. */
16439 #ifdef __cplusplus
16440 extern "C"
16441 #endif
16442 char $ac_func ();
16443 /* The GNU C library defines this for functions which it implements
16444 to always fail with ENOSYS. Some functions are actually named
16445 something starting with __ and the normal name is an alias. */
16446 #if defined __stub_$ac_func || defined __stub___$ac_func
16447 choke me
16448 #endif
16449
16450 int
16451 main ()
16452 {
16453 return $ac_func ();
16454 ;
16455 return 0;
16456 }
16457 _ACEOF
16458 rm -f conftest.$ac_objext conftest$ac_exeext
16459 if { (ac_try="$ac_link"
16460 case "(($ac_try" in
16461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16462 *) ac_try_echo=$ac_try;;
16463 esac
16464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16465 (eval "$ac_link") 2>conftest.er1
16466 ac_status=$?
16467 grep -v '^ *+' conftest.er1 >conftest.err
16468 rm -f conftest.er1
16469 cat conftest.err >&5
16470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16471 (exit $ac_status); } &&
16472 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16473 { (case "(($ac_try" in
16474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16475 *) ac_try_echo=$ac_try;;
16476 esac
16477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16478 (eval "$ac_try") 2>&5
16479 ac_status=$?
16480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16481 (exit $ac_status); }; } &&
16482 { ac_try='test -s conftest$ac_exeext'
16483 { (case "(($ac_try" in
16484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16485 *) ac_try_echo=$ac_try;;
16486 esac
16487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16488 (eval "$ac_try") 2>&5
16489 ac_status=$?
16490 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16491 (exit $ac_status); }; }; then
16492 eval "$as_ac_var=yes"
16493 else
16494 echo "$as_me: failed program was:" >&5
16495 sed 's/^/| /' conftest.$ac_ext >&5
16496
16497 eval "$as_ac_var=no"
16498 fi
16499
16500 rm -f core conftest.err conftest.$ac_objext \
16501 conftest$ac_exeext conftest.$ac_ext
16502 fi
16503 ac_res=`eval echo '${'$as_ac_var'}'`
16504 { echo "$as_me:$LINENO: result: $ac_res" >&5
16505 echo "${ECHO_T}$ac_res" >&6; }
16506 if test `eval echo '${'$as_ac_var'}'` = yes; then
16507 cat >>confdefs.h <<_ACEOF
16508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16509 _ACEOF
16510
16511 fi
16512 done
16513
16514
16515 for ac_header in maillock.h
16516 do
16517 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16522 echo $ECHO_N "(cached) $ECHO_C" >&6
16523 fi
16524 ac_res=`eval echo '${'$as_ac_Header'}'`
16525 { echo "$as_me:$LINENO: result: $ac_res" >&5
16526 echo "${ECHO_T}$ac_res" >&6; }
16527 else
16528 # Is the header compilable?
16529 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16530 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16531 cat >conftest.$ac_ext <<_ACEOF
16532 /* confdefs.h. */
16533 _ACEOF
16534 cat confdefs.h >>conftest.$ac_ext
16535 cat >>conftest.$ac_ext <<_ACEOF
16536 /* end confdefs.h. */
16537 $ac_includes_default
16538 #include <$ac_header>
16539 _ACEOF
16540 rm -f conftest.$ac_objext
16541 if { (ac_try="$ac_compile"
16542 case "(($ac_try" in
16543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16544 *) ac_try_echo=$ac_try;;
16545 esac
16546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16547 (eval "$ac_compile") 2>conftest.er1
16548 ac_status=$?
16549 grep -v '^ *+' conftest.er1 >conftest.err
16550 rm -f conftest.er1
16551 cat conftest.err >&5
16552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553 (exit $ac_status); } &&
16554 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16555 { (case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_try") 2>&5
16561 ac_status=$?
16562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16563 (exit $ac_status); }; } &&
16564 { ac_try='test -s conftest.$ac_objext'
16565 { (case "(($ac_try" in
16566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16567 *) ac_try_echo=$ac_try;;
16568 esac
16569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16570 (eval "$ac_try") 2>&5
16571 ac_status=$?
16572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16573 (exit $ac_status); }; }; then
16574 ac_header_compiler=yes
16575 else
16576 echo "$as_me: failed program was:" >&5
16577 sed 's/^/| /' conftest.$ac_ext >&5
16578
16579 ac_header_compiler=no
16580 fi
16581
16582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16583 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16584 echo "${ECHO_T}$ac_header_compiler" >&6; }
16585
16586 # Is the header present?
16587 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16588 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16589 cat >conftest.$ac_ext <<_ACEOF
16590 /* confdefs.h. */
16591 _ACEOF
16592 cat confdefs.h >>conftest.$ac_ext
16593 cat >>conftest.$ac_ext <<_ACEOF
16594 /* end confdefs.h. */
16595 #include <$ac_header>
16596 _ACEOF
16597 if { (ac_try="$ac_cpp conftest.$ac_ext"
16598 case "(($ac_try" in
16599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16600 *) ac_try_echo=$ac_try;;
16601 esac
16602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16603 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16604 ac_status=$?
16605 grep -v '^ *+' conftest.er1 >conftest.err
16606 rm -f conftest.er1
16607 cat conftest.err >&5
16608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16609 (exit $ac_status); } >/dev/null; then
16610 if test -s conftest.err; then
16611 ac_cpp_err=$ac_c_preproc_warn_flag
16612 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16613 else
16614 ac_cpp_err=
16615 fi
16616 else
16617 ac_cpp_err=yes
16618 fi
16619 if test -z "$ac_cpp_err"; then
16620 ac_header_preproc=yes
16621 else
16622 echo "$as_me: failed program was:" >&5
16623 sed 's/^/| /' conftest.$ac_ext >&5
16624
16625 ac_header_preproc=no
16626 fi
16627
16628 rm -f conftest.err conftest.$ac_ext
16629 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16630 echo "${ECHO_T}$ac_header_preproc" >&6; }
16631
16632 # So? What about this header?
16633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16634 yes:no: )
16635 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16636 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16638 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16639 ac_header_preproc=yes
16640 ;;
16641 no:yes:* )
16642 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16643 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16645 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16647 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16649 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16651 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16653 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16654
16655 ;;
16656 esac
16657 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16658 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16659 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662 eval "$as_ac_Header=\$ac_header_preproc"
16663 fi
16664 ac_res=`eval echo '${'$as_ac_Header'}'`
16665 { echo "$as_me:$LINENO: result: $ac_res" >&5
16666 echo "${ECHO_T}$ac_res" >&6; }
16667
16668 fi
16669 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16670 cat >>confdefs.h <<_ACEOF
16671 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16672 _ACEOF
16673
16674 fi
16675
16676 done
16677
16678
16679
16680
16681
16682
16683
16684
16685
16686
16687
16688
16689
16690
16691
16692
16693
16694
16695
16696
16697
16698
16699
16700
16701
16702
16703
16704
16705
16706
16707
16708
16709
16710
16711
16712
16713
16714
16715
16716
16717
16718
16719
16720
16721
16722
16723
16724
16725
16726
16727
16728
16729
16730
16731
16732
16733
16734
16735
16736
16737
16738
16739
16740
16741
16742
16743
16744
16745
16746
16747
16748 for ac_func in gethostname getdomainname dup2 \
16749 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
16750 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
16751 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
16752 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
16753 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
16754 sendto recvfrom getsockopt setsockopt getsockname getpeername \
16755 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
16756 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
16757 do
16758 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16759 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16760 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16761 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16762 echo $ECHO_N "(cached) $ECHO_C" >&6
16763 else
16764 cat >conftest.$ac_ext <<_ACEOF
16765 /* confdefs.h. */
16766 _ACEOF
16767 cat confdefs.h >>conftest.$ac_ext
16768 cat >>conftest.$ac_ext <<_ACEOF
16769 /* end confdefs.h. */
16770 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16771 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16772 #define $ac_func innocuous_$ac_func
16773
16774 /* System header to define __stub macros and hopefully few prototypes,
16775 which can conflict with char $ac_func (); below.
16776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16777 <limits.h> exists even on freestanding compilers. */
16778
16779 #ifdef __STDC__
16780 # include <limits.h>
16781 #else
16782 # include <assert.h>
16783 #endif
16784
16785 #undef $ac_func
16786
16787 /* Override any GCC internal prototype to avoid an error.
16788 Use char because int might match the return type of a GCC
16789 builtin and then its argument prototype would still apply. */
16790 #ifdef __cplusplus
16791 extern "C"
16792 #endif
16793 char $ac_func ();
16794 /* The GNU C library defines this for functions which it implements
16795 to always fail with ENOSYS. Some functions are actually named
16796 something starting with __ and the normal name is an alias. */
16797 #if defined __stub_$ac_func || defined __stub___$ac_func
16798 choke me
16799 #endif
16800
16801 int
16802 main ()
16803 {
16804 return $ac_func ();
16805 ;
16806 return 0;
16807 }
16808 _ACEOF
16809 rm -f conftest.$ac_objext conftest$ac_exeext
16810 if { (ac_try="$ac_link"
16811 case "(($ac_try" in
16812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16813 *) ac_try_echo=$ac_try;;
16814 esac
16815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16816 (eval "$ac_link") 2>conftest.er1
16817 ac_status=$?
16818 grep -v '^ *+' conftest.er1 >conftest.err
16819 rm -f conftest.er1
16820 cat conftest.err >&5
16821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16822 (exit $ac_status); } &&
16823 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16824 { (case "(($ac_try" in
16825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16826 *) ac_try_echo=$ac_try;;
16827 esac
16828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16829 (eval "$ac_try") 2>&5
16830 ac_status=$?
16831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16832 (exit $ac_status); }; } &&
16833 { ac_try='test -s conftest$ac_exeext'
16834 { (case "(($ac_try" in
16835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16836 *) ac_try_echo=$ac_try;;
16837 esac
16838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16839 (eval "$ac_try") 2>&5
16840 ac_status=$?
16841 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16842 (exit $ac_status); }; }; then
16843 eval "$as_ac_var=yes"
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 eval "$as_ac_var=no"
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext \
16852 conftest$ac_exeext conftest.$ac_ext
16853 fi
16854 ac_res=`eval echo '${'$as_ac_var'}'`
16855 { echo "$as_me:$LINENO: result: $ac_res" >&5
16856 echo "${ECHO_T}$ac_res" >&6; }
16857 if test `eval echo '${'$as_ac_var'}'` = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16860 _ACEOF
16861
16862 fi
16863 done
16864
16865
16866
16867 for ac_header in sys/un.h
16868 do
16869 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16870 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16871 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16872 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16873 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16874 echo $ECHO_N "(cached) $ECHO_C" >&6
16875 fi
16876 ac_res=`eval echo '${'$as_ac_Header'}'`
16877 { echo "$as_me:$LINENO: result: $ac_res" >&5
16878 echo "${ECHO_T}$ac_res" >&6; }
16879 else
16880 # Is the header compilable?
16881 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16882 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16883 cat >conftest.$ac_ext <<_ACEOF
16884 /* confdefs.h. */
16885 _ACEOF
16886 cat confdefs.h >>conftest.$ac_ext
16887 cat >>conftest.$ac_ext <<_ACEOF
16888 /* end confdefs.h. */
16889 $ac_includes_default
16890 #include <$ac_header>
16891 _ACEOF
16892 rm -f conftest.$ac_objext
16893 if { (ac_try="$ac_compile"
16894 case "(($ac_try" in
16895 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16896 *) ac_try_echo=$ac_try;;
16897 esac
16898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16899 (eval "$ac_compile") 2>conftest.er1
16900 ac_status=$?
16901 grep -v '^ *+' conftest.er1 >conftest.err
16902 rm -f conftest.er1
16903 cat conftest.err >&5
16904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16905 (exit $ac_status); } &&
16906 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16907 { (case "(($ac_try" in
16908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16909 *) ac_try_echo=$ac_try;;
16910 esac
16911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16912 (eval "$ac_try") 2>&5
16913 ac_status=$?
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); }; } &&
16916 { ac_try='test -s conftest.$ac_objext'
16917 { (case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_try") 2>&5
16923 ac_status=$?
16924 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16925 (exit $ac_status); }; }; then
16926 ac_header_compiler=yes
16927 else
16928 echo "$as_me: failed program was:" >&5
16929 sed 's/^/| /' conftest.$ac_ext >&5
16930
16931 ac_header_compiler=no
16932 fi
16933
16934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16936 echo "${ECHO_T}$ac_header_compiler" >&6; }
16937
16938 # Is the header present?
16939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16941 cat >conftest.$ac_ext <<_ACEOF
16942 /* confdefs.h. */
16943 _ACEOF
16944 cat confdefs.h >>conftest.$ac_ext
16945 cat >>conftest.$ac_ext <<_ACEOF
16946 /* end confdefs.h. */
16947 #include <$ac_header>
16948 _ACEOF
16949 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null; then
16962 if test -s conftest.err; then
16963 ac_cpp_err=$ac_c_preproc_warn_flag
16964 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16965 else
16966 ac_cpp_err=
16967 fi
16968 else
16969 ac_cpp_err=yes
16970 fi
16971 if test -z "$ac_cpp_err"; then
16972 ac_header_preproc=yes
16973 else
16974 echo "$as_me: failed program was:" >&5
16975 sed 's/^/| /' conftest.$ac_ext >&5
16976
16977 ac_header_preproc=no
16978 fi
16979
16980 rm -f conftest.err conftest.$ac_ext
16981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16982 echo "${ECHO_T}$ac_header_preproc" >&6; }
16983
16984 # So? What about this header?
16985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16986 yes:no: )
16987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16991 ac_header_preproc=yes
16992 ;;
16993 no:yes:* )
16994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17006
17007 ;;
17008 esac
17009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17012 echo $ECHO_N "(cached) $ECHO_C" >&6
17013 else
17014 eval "$as_ac_Header=\$ac_header_preproc"
17015 fi
17016 ac_res=`eval echo '${'$as_ac_Header'}'`
17017 { echo "$as_me:$LINENO: result: $ac_res" >&5
17018 echo "${ECHO_T}$ac_res" >&6; }
17019
17020 fi
17021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17022 cat >>confdefs.h <<_ACEOF
17023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17024 _ACEOF
17025
17026 fi
17027
17028 done
17029
17030
17031
17032
17033
17034 for ac_header in stdlib.h sys/time.h unistd.h
17035 do
17036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17041 echo $ECHO_N "(cached) $ECHO_C" >&6
17042 fi
17043 ac_res=`eval echo '${'$as_ac_Header'}'`
17044 { echo "$as_me:$LINENO: result: $ac_res" >&5
17045 echo "${ECHO_T}$ac_res" >&6; }
17046 else
17047 # Is the header compilable?
17048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17050 cat >conftest.$ac_ext <<_ACEOF
17051 /* confdefs.h. */
17052 _ACEOF
17053 cat confdefs.h >>conftest.$ac_ext
17054 cat >>conftest.$ac_ext <<_ACEOF
17055 /* end confdefs.h. */
17056 $ac_includes_default
17057 #include <$ac_header>
17058 _ACEOF
17059 rm -f conftest.$ac_objext
17060 if { (ac_try="$ac_compile"
17061 case "(($ac_try" in
17062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17063 *) ac_try_echo=$ac_try;;
17064 esac
17065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17066 (eval "$ac_compile") 2>conftest.er1
17067 ac_status=$?
17068 grep -v '^ *+' conftest.er1 >conftest.err
17069 rm -f conftest.er1
17070 cat conftest.err >&5
17071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072 (exit $ac_status); } &&
17073 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17074 { (case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_try") 2>&5
17080 ac_status=$?
17081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17082 (exit $ac_status); }; } &&
17083 { ac_try='test -s conftest.$ac_objext'
17084 { (case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_try") 2>&5
17090 ac_status=$?
17091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17092 (exit $ac_status); }; }; then
17093 ac_header_compiler=yes
17094 else
17095 echo "$as_me: failed program was:" >&5
17096 sed 's/^/| /' conftest.$ac_ext >&5
17097
17098 ac_header_compiler=no
17099 fi
17100
17101 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17102 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17103 echo "${ECHO_T}$ac_header_compiler" >&6; }
17104
17105 # Is the header present?
17106 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17107 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17108 cat >conftest.$ac_ext <<_ACEOF
17109 /* confdefs.h. */
17110 _ACEOF
17111 cat confdefs.h >>conftest.$ac_ext
17112 cat >>conftest.$ac_ext <<_ACEOF
17113 /* end confdefs.h. */
17114 #include <$ac_header>
17115 _ACEOF
17116 if { (ac_try="$ac_cpp conftest.$ac_ext"
17117 case "(($ac_try" in
17118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17119 *) ac_try_echo=$ac_try;;
17120 esac
17121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17122 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17123 ac_status=$?
17124 grep -v '^ *+' conftest.er1 >conftest.err
17125 rm -f conftest.er1
17126 cat conftest.err >&5
17127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17128 (exit $ac_status); } >/dev/null; then
17129 if test -s conftest.err; then
17130 ac_cpp_err=$ac_c_preproc_warn_flag
17131 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17132 else
17133 ac_cpp_err=
17134 fi
17135 else
17136 ac_cpp_err=yes
17137 fi
17138 if test -z "$ac_cpp_err"; then
17139 ac_header_preproc=yes
17140 else
17141 echo "$as_me: failed program was:" >&5
17142 sed 's/^/| /' conftest.$ac_ext >&5
17143
17144 ac_header_preproc=no
17145 fi
17146
17147 rm -f conftest.err conftest.$ac_ext
17148 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17149 echo "${ECHO_T}$ac_header_preproc" >&6; }
17150
17151 # So? What about this header?
17152 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17153 yes:no: )
17154 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17155 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17156 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17157 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17158 ac_header_preproc=yes
17159 ;;
17160 no:yes:* )
17161 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17162 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17163 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17164 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17165 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17166 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17167 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17168 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17169 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17170 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17171 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17172 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17173
17174 ;;
17175 esac
17176 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17177 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17178 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17179 echo $ECHO_N "(cached) $ECHO_C" >&6
17180 else
17181 eval "$as_ac_Header=\$ac_header_preproc"
17182 fi
17183 ac_res=`eval echo '${'$as_ac_Header'}'`
17184 { echo "$as_me:$LINENO: result: $ac_res" >&5
17185 echo "${ECHO_T}$ac_res" >&6; }
17186
17187 fi
17188 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17189 cat >>confdefs.h <<_ACEOF
17190 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17191 _ACEOF
17192
17193 fi
17194
17195 done
17196
17197
17198 for ac_func in alarm
17199 do
17200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17204 echo $ECHO_N "(cached) $ECHO_C" >&6
17205 else
17206 cat >conftest.$ac_ext <<_ACEOF
17207 /* confdefs.h. */
17208 _ACEOF
17209 cat confdefs.h >>conftest.$ac_ext
17210 cat >>conftest.$ac_ext <<_ACEOF
17211 /* end confdefs.h. */
17212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17214 #define $ac_func innocuous_$ac_func
17215
17216 /* System header to define __stub macros and hopefully few prototypes,
17217 which can conflict with char $ac_func (); below.
17218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17219 <limits.h> exists even on freestanding compilers. */
17220
17221 #ifdef __STDC__
17222 # include <limits.h>
17223 #else
17224 # include <assert.h>
17225 #endif
17226
17227 #undef $ac_func
17228
17229 /* Override any GCC internal prototype to avoid an error.
17230 Use char because int might match the return type of a GCC
17231 builtin and then its argument prototype would still apply. */
17232 #ifdef __cplusplus
17233 extern "C"
17234 #endif
17235 char $ac_func ();
17236 /* The GNU C library defines this for functions which it implements
17237 to always fail with ENOSYS. Some functions are actually named
17238 something starting with __ and the normal name is an alias. */
17239 #if defined __stub_$ac_func || defined __stub___$ac_func
17240 choke me
17241 #endif
17242
17243 int
17244 main ()
17245 {
17246 return $ac_func ();
17247 ;
17248 return 0;
17249 }
17250 _ACEOF
17251 rm -f conftest.$ac_objext conftest$ac_exeext
17252 if { (ac_try="$ac_link"
17253 case "(($ac_try" in
17254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17255 *) ac_try_echo=$ac_try;;
17256 esac
17257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17258 (eval "$ac_link") 2>conftest.er1
17259 ac_status=$?
17260 grep -v '^ *+' conftest.er1 >conftest.err
17261 rm -f conftest.er1
17262 cat conftest.err >&5
17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17264 (exit $ac_status); } &&
17265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17266 { (case "(($ac_try" in
17267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17268 *) ac_try_echo=$ac_try;;
17269 esac
17270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17271 (eval "$ac_try") 2>&5
17272 ac_status=$?
17273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17274 (exit $ac_status); }; } &&
17275 { ac_try='test -s conftest$ac_exeext'
17276 { (case "(($ac_try" in
17277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17278 *) ac_try_echo=$ac_try;;
17279 esac
17280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17281 (eval "$ac_try") 2>&5
17282 ac_status=$?
17283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17284 (exit $ac_status); }; }; then
17285 eval "$as_ac_var=yes"
17286 else
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 eval "$as_ac_var=no"
17291 fi
17292
17293 rm -f core conftest.err conftest.$ac_objext \
17294 conftest$ac_exeext conftest.$ac_ext
17295 fi
17296 ac_res=`eval echo '${'$as_ac_var'}'`
17297 { echo "$as_me:$LINENO: result: $ac_res" >&5
17298 echo "${ECHO_T}$ac_res" >&6; }
17299 if test `eval echo '${'$as_ac_var'}'` = yes; then
17300 cat >>confdefs.h <<_ACEOF
17301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17302 _ACEOF
17303
17304 fi
17305 done
17306
17307 { echo "$as_me:$LINENO: checking for working mktime" >&5
17308 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
17309 if test "${ac_cv_func_working_mktime+set}" = set; then
17310 echo $ECHO_N "(cached) $ECHO_C" >&6
17311 else
17312 if test "$cross_compiling" = yes; then
17313 ac_cv_func_working_mktime=no
17314 else
17315 cat >conftest.$ac_ext <<_ACEOF
17316 /* confdefs.h. */
17317 _ACEOF
17318 cat confdefs.h >>conftest.$ac_ext
17319 cat >>conftest.$ac_ext <<_ACEOF
17320 /* end confdefs.h. */
17321 /* Test program from Paul Eggert and Tony Leneis. */
17322 #if TIME_WITH_SYS_TIME
17323 # include <sys/time.h>
17324 # include <time.h>
17325 #else
17326 # if HAVE_SYS_TIME_H
17327 # include <sys/time.h>
17328 # else
17329 # include <time.h>
17330 # endif
17331 #endif
17332
17333 #if HAVE_STDLIB_H
17334 # include <stdlib.h>
17335 #endif
17336
17337 #if HAVE_UNISTD_H
17338 # include <unistd.h>
17339 #endif
17340
17341 #if !HAVE_ALARM
17342 # define alarm(X) /* empty */
17343 #endif
17344
17345 /* Work around redefinition to rpl_putenv by other config tests. */
17346 #undef putenv
17347
17348 static time_t time_t_max;
17349 static time_t time_t_min;
17350
17351 /* Values we'll use to set the TZ environment variable. */
17352 static char *tz_strings[] = {
17353 (char *) 0, "TZ=GMT0", "TZ=JST-9",
17354 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
17355 };
17356 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
17357
17358 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
17359 Based on a problem report from Andreas Jaeger. */
17360 static int
17361 spring_forward_gap ()
17362 {
17363 /* glibc (up to about 1998-10-07) failed this test. */
17364 struct tm tm;
17365
17366 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
17367 instead of "TZ=America/Vancouver" in order to detect the bug even
17368 on systems that don't support the Olson extension, or don't have the
17369 full zoneinfo tables installed. */
17370 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
17371
17372 tm.tm_year = 98;
17373 tm.tm_mon = 3;
17374 tm.tm_mday = 5;
17375 tm.tm_hour = 2;
17376 tm.tm_min = 0;
17377 tm.tm_sec = 0;
17378 tm.tm_isdst = -1;
17379 return mktime (&tm) != (time_t) -1;
17380 }
17381
17382 static int
17383 mktime_test1 (now)
17384 time_t now;
17385 {
17386 struct tm *lt;
17387 return ! (lt = localtime (&now)) || mktime (lt) == now;
17388 }
17389
17390 static int
17391 mktime_test (now)
17392 time_t now;
17393 {
17394 return (mktime_test1 (now)
17395 && mktime_test1 ((time_t) (time_t_max - now))
17396 && mktime_test1 ((time_t) (time_t_min + now)));
17397 }
17398
17399 static int
17400 irix_6_4_bug ()
17401 {
17402 /* Based on code from Ariel Faigon. */
17403 struct tm tm;
17404 tm.tm_year = 96;
17405 tm.tm_mon = 3;
17406 tm.tm_mday = 0;
17407 tm.tm_hour = 0;
17408 tm.tm_min = 0;
17409 tm.tm_sec = 0;
17410 tm.tm_isdst = -1;
17411 mktime (&tm);
17412 return tm.tm_mon == 2 && tm.tm_mday == 31;
17413 }
17414
17415 static int
17416 bigtime_test (j)
17417 int j;
17418 {
17419 struct tm tm;
17420 time_t now;
17421 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
17422 now = mktime (&tm);
17423 if (now != (time_t) -1)
17424 {
17425 struct tm *lt = localtime (&now);
17426 if (! (lt
17427 && lt->tm_year == tm.tm_year
17428 && lt->tm_mon == tm.tm_mon
17429 && lt->tm_mday == tm.tm_mday
17430 && lt->tm_hour == tm.tm_hour
17431 && lt->tm_min == tm.tm_min
17432 && lt->tm_sec == tm.tm_sec
17433 && lt->tm_yday == tm.tm_yday
17434 && lt->tm_wday == tm.tm_wday
17435 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
17436 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
17437 return 0;
17438 }
17439 return 1;
17440 }
17441
17442 int
17443 main ()
17444 {
17445 time_t t, delta;
17446 int i, j;
17447
17448 /* This test makes some buggy mktime implementations loop.
17449 Give up after 60 seconds; a mktime slower than that
17450 isn't worth using anyway. */
17451 alarm (60);
17452
17453 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
17454 continue;
17455 time_t_max--;
17456 if ((time_t) -1 < 0)
17457 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
17458 continue;
17459 delta = time_t_max / 997; /* a suitable prime number */
17460 for (i = 0; i < N_STRINGS; i++)
17461 {
17462 if (tz_strings[i])
17463 putenv (tz_strings[i]);
17464
17465 for (t = 0; t <= time_t_max - delta; t += delta)
17466 if (! mktime_test (t))
17467 return 1;
17468 if (! (mktime_test ((time_t) 1)
17469 && mktime_test ((time_t) (60 * 60))
17470 && mktime_test ((time_t) (60 * 60 * 24))))
17471 return 1;
17472
17473 for (j = 1; 0 < j; j *= 2)
17474 if (! bigtime_test (j))
17475 return 1;
17476 if (! bigtime_test (j - 1))
17477 return 1;
17478 }
17479 return ! (irix_6_4_bug () && spring_forward_gap ());
17480 }
17481 _ACEOF
17482 rm -f conftest$ac_exeext
17483 if { (ac_try="$ac_link"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_link") 2>&5
17490 ac_status=$?
17491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17492 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17493 { (case "(($ac_try" in
17494 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17495 *) ac_try_echo=$ac_try;;
17496 esac
17497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17498 (eval "$ac_try") 2>&5
17499 ac_status=$?
17500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17501 (exit $ac_status); }; }; then
17502 ac_cv_func_working_mktime=yes
17503 else
17504 echo "$as_me: program exited with status $ac_status" >&5
17505 echo "$as_me: failed program was:" >&5
17506 sed 's/^/| /' conftest.$ac_ext >&5
17507
17508 ( exit $ac_status )
17509 ac_cv_func_working_mktime=no
17510 fi
17511 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17512 fi
17513
17514
17515 fi
17516 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
17517 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
17518 if test $ac_cv_func_working_mktime = no; then
17519 case " $LIBOBJS " in
17520 *" mktime.$ac_objext "* ) ;;
17521 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
17522 ;;
17523 esac
17524
17525 fi
17526
17527 if test "$ac_cv_func_working_mktime" = no; then
17528
17529 cat >>confdefs.h <<\_ACEOF
17530 #define BROKEN_MKTIME 1
17531 _ACEOF
17532
17533 fi
17534
17535 ac_have_func=no # yes means we've found a way to get the load average.
17536
17537 # Make sure getloadavg.c is where it belongs, at configure-time.
17538 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
17539 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
17540 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
17541 { (exit 1); exit 1; }; }
17542
17543 ac_save_LIBS=$LIBS
17544
17545 # Check for getloadavg, but be sure not to touch the cache variable.
17546 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
17547 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
17548 if test "${ac_cv_func_getloadavg+set}" = set; then
17549 echo $ECHO_N "(cached) $ECHO_C" >&6
17550 else
17551 cat >conftest.$ac_ext <<_ACEOF
17552 /* confdefs.h. */
17553 _ACEOF
17554 cat confdefs.h >>conftest.$ac_ext
17555 cat >>conftest.$ac_ext <<_ACEOF
17556 /* end confdefs.h. */
17557 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
17558 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17559 #define getloadavg innocuous_getloadavg
17560
17561 /* System header to define __stub macros and hopefully few prototypes,
17562 which can conflict with char getloadavg (); below.
17563 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17564 <limits.h> exists even on freestanding compilers. */
17565
17566 #ifdef __STDC__
17567 # include <limits.h>
17568 #else
17569 # include <assert.h>
17570 #endif
17571
17572 #undef getloadavg
17573
17574 /* Override any GCC internal prototype to avoid an error.
17575 Use char because int might match the return type of a GCC
17576 builtin and then its argument prototype would still apply. */
17577 #ifdef __cplusplus
17578 extern "C"
17579 #endif
17580 char getloadavg ();
17581 /* The GNU C library defines this for functions which it implements
17582 to always fail with ENOSYS. Some functions are actually named
17583 something starting with __ and the normal name is an alias. */
17584 #if defined __stub_getloadavg || defined __stub___getloadavg
17585 choke me
17586 #endif
17587
17588 int
17589 main ()
17590 {
17591 return getloadavg ();
17592 ;
17593 return 0;
17594 }
17595 _ACEOF
17596 rm -f conftest.$ac_objext conftest$ac_exeext
17597 if { (ac_try="$ac_link"
17598 case "(($ac_try" in
17599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17600 *) ac_try_echo=$ac_try;;
17601 esac
17602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17603 (eval "$ac_link") 2>conftest.er1
17604 ac_status=$?
17605 grep -v '^ *+' conftest.er1 >conftest.err
17606 rm -f conftest.er1
17607 cat conftest.err >&5
17608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17609 (exit $ac_status); } &&
17610 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17611 { (case "(($ac_try" in
17612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17613 *) ac_try_echo=$ac_try;;
17614 esac
17615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17616 (eval "$ac_try") 2>&5
17617 ac_status=$?
17618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17619 (exit $ac_status); }; } &&
17620 { ac_try='test -s conftest$ac_exeext'
17621 { (case "(($ac_try" in
17622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17623 *) ac_try_echo=$ac_try;;
17624 esac
17625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17626 (eval "$ac_try") 2>&5
17627 ac_status=$?
17628 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17629 (exit $ac_status); }; }; then
17630 ac_cv_func_getloadavg=yes
17631 else
17632 echo "$as_me: failed program was:" >&5
17633 sed 's/^/| /' conftest.$ac_ext >&5
17634
17635 ac_cv_func_getloadavg=no
17636 fi
17637
17638 rm -f core conftest.err conftest.$ac_objext \
17639 conftest$ac_exeext conftest.$ac_ext
17640 fi
17641 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
17642 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
17643 if test $ac_cv_func_getloadavg = yes; then
17644 exit 0
17645 else
17646 exit 1
17647 fi
17648 ) && ac_have_func=yes
17649
17650 # On HPUX9, an unprivileged user can get load averages through this function.
17651
17652 for ac_func in pstat_getdynamic
17653 do
17654 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17655 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17656 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17657 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17658 echo $ECHO_N "(cached) $ECHO_C" >&6
17659 else
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17667 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17668 #define $ac_func innocuous_$ac_func
17669
17670 /* System header to define __stub macros and hopefully few prototypes,
17671 which can conflict with char $ac_func (); below.
17672 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17673 <limits.h> exists even on freestanding compilers. */
17674
17675 #ifdef __STDC__
17676 # include <limits.h>
17677 #else
17678 # include <assert.h>
17679 #endif
17680
17681 #undef $ac_func
17682
17683 /* Override any GCC internal prototype to avoid an error.
17684 Use char because int might match the return type of a GCC
17685 builtin and then its argument prototype would still apply. */
17686 #ifdef __cplusplus
17687 extern "C"
17688 #endif
17689 char $ac_func ();
17690 /* The GNU C library defines this for functions which it implements
17691 to always fail with ENOSYS. Some functions are actually named
17692 something starting with __ and the normal name is an alias. */
17693 #if defined __stub_$ac_func || defined __stub___$ac_func
17694 choke me
17695 #endif
17696
17697 int
17698 main ()
17699 {
17700 return $ac_func ();
17701 ;
17702 return 0;
17703 }
17704 _ACEOF
17705 rm -f conftest.$ac_objext conftest$ac_exeext
17706 if { (ac_try="$ac_link"
17707 case "(($ac_try" in
17708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17709 *) ac_try_echo=$ac_try;;
17710 esac
17711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17712 (eval "$ac_link") 2>conftest.er1
17713 ac_status=$?
17714 grep -v '^ *+' conftest.er1 >conftest.err
17715 rm -f conftest.er1
17716 cat conftest.err >&5
17717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17718 (exit $ac_status); } &&
17719 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17720 { (case "(($ac_try" in
17721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722 *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725 (eval "$ac_try") 2>&5
17726 ac_status=$?
17727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17728 (exit $ac_status); }; } &&
17729 { ac_try='test -s conftest$ac_exeext'
17730 { (case "(($ac_try" in
17731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17732 *) ac_try_echo=$ac_try;;
17733 esac
17734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17735 (eval "$ac_try") 2>&5
17736 ac_status=$?
17737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17738 (exit $ac_status); }; }; then
17739 eval "$as_ac_var=yes"
17740 else
17741 echo "$as_me: failed program was:" >&5
17742 sed 's/^/| /' conftest.$ac_ext >&5
17743
17744 eval "$as_ac_var=no"
17745 fi
17746
17747 rm -f core conftest.err conftest.$ac_objext \
17748 conftest$ac_exeext conftest.$ac_ext
17749 fi
17750 ac_res=`eval echo '${'$as_ac_var'}'`
17751 { echo "$as_me:$LINENO: result: $ac_res" >&5
17752 echo "${ECHO_T}$ac_res" >&6; }
17753 if test `eval echo '${'$as_ac_var'}'` = yes; then
17754 cat >>confdefs.h <<_ACEOF
17755 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17756 _ACEOF
17757
17758 fi
17759 done
17760
17761
17762 # Solaris has libkstat which does not require root.
17763
17764 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
17765 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
17766 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 ac_check_lib_save_LIBS=$LIBS
17770 LIBS="-lkstat $LIBS"
17771 cat >conftest.$ac_ext <<_ACEOF
17772 /* confdefs.h. */
17773 _ACEOF
17774 cat confdefs.h >>conftest.$ac_ext
17775 cat >>conftest.$ac_ext <<_ACEOF
17776 /* end confdefs.h. */
17777
17778 /* Override any GCC internal prototype to avoid an error.
17779 Use char because int might match the return type of a GCC
17780 builtin and then its argument prototype would still apply. */
17781 #ifdef __cplusplus
17782 extern "C"
17783 #endif
17784 char kstat_open ();
17785 int
17786 main ()
17787 {
17788 return kstat_open ();
17789 ;
17790 return 0;
17791 }
17792 _ACEOF
17793 rm -f conftest.$ac_objext conftest$ac_exeext
17794 if { (ac_try="$ac_link"
17795 case "(($ac_try" in
17796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17797 *) ac_try_echo=$ac_try;;
17798 esac
17799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17800 (eval "$ac_link") 2>conftest.er1
17801 ac_status=$?
17802 grep -v '^ *+' conftest.er1 >conftest.err
17803 rm -f conftest.er1
17804 cat conftest.err >&5
17805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17806 (exit $ac_status); } &&
17807 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17808 { (case "(($ac_try" in
17809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17810 *) ac_try_echo=$ac_try;;
17811 esac
17812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17813 (eval "$ac_try") 2>&5
17814 ac_status=$?
17815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17816 (exit $ac_status); }; } &&
17817 { ac_try='test -s conftest$ac_exeext'
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_try") 2>&5
17824 ac_status=$?
17825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17826 (exit $ac_status); }; }; then
17827 ac_cv_lib_kstat_kstat_open=yes
17828 else
17829 echo "$as_me: failed program was:" >&5
17830 sed 's/^/| /' conftest.$ac_ext >&5
17831
17832 ac_cv_lib_kstat_kstat_open=no
17833 fi
17834
17835 rm -f core conftest.err conftest.$ac_objext \
17836 conftest$ac_exeext conftest.$ac_ext
17837 LIBS=$ac_check_lib_save_LIBS
17838 fi
17839 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
17840 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
17841 if test $ac_cv_lib_kstat_kstat_open = yes; then
17842 cat >>confdefs.h <<_ACEOF
17843 #define HAVE_LIBKSTAT 1
17844 _ACEOF
17845
17846 LIBS="-lkstat $LIBS"
17847
17848 fi
17849
17850 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17851
17852 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17853 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17854 # to get the right answer into the cache.
17855 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17856 if test $ac_have_func = no; then
17857 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17858 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17859 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17860 echo $ECHO_N "(cached) $ECHO_C" >&6
17861 else
17862 ac_check_lib_save_LIBS=$LIBS
17863 LIBS="-lelf $LIBS"
17864 cat >conftest.$ac_ext <<_ACEOF
17865 /* confdefs.h. */
17866 _ACEOF
17867 cat confdefs.h >>conftest.$ac_ext
17868 cat >>conftest.$ac_ext <<_ACEOF
17869 /* end confdefs.h. */
17870
17871 /* Override any GCC internal prototype to avoid an error.
17872 Use char because int might match the return type of a GCC
17873 builtin and then its argument prototype would still apply. */
17874 #ifdef __cplusplus
17875 extern "C"
17876 #endif
17877 char elf_begin ();
17878 int
17879 main ()
17880 {
17881 return elf_begin ();
17882 ;
17883 return 0;
17884 }
17885 _ACEOF
17886 rm -f conftest.$ac_objext conftest$ac_exeext
17887 if { (ac_try="$ac_link"
17888 case "(($ac_try" in
17889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17890 *) ac_try_echo=$ac_try;;
17891 esac
17892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17893 (eval "$ac_link") 2>conftest.er1
17894 ac_status=$?
17895 grep -v '^ *+' conftest.er1 >conftest.err
17896 rm -f conftest.er1
17897 cat conftest.err >&5
17898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17899 (exit $ac_status); } &&
17900 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17901 { (case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_try") 2>&5
17907 ac_status=$?
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); }; } &&
17910 { ac_try='test -s conftest$ac_exeext'
17911 { (case "(($ac_try" in
17912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17913 *) ac_try_echo=$ac_try;;
17914 esac
17915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17916 (eval "$ac_try") 2>&5
17917 ac_status=$?
17918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17919 (exit $ac_status); }; }; then
17920 ac_cv_lib_elf_elf_begin=yes
17921 else
17922 echo "$as_me: failed program was:" >&5
17923 sed 's/^/| /' conftest.$ac_ext >&5
17924
17925 ac_cv_lib_elf_elf_begin=no
17926 fi
17927
17928 rm -f core conftest.err conftest.$ac_objext \
17929 conftest$ac_exeext conftest.$ac_ext
17930 LIBS=$ac_check_lib_save_LIBS
17931 fi
17932 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17934 if test $ac_cv_lib_elf_elf_begin = yes; then
17935 LIBS="-lelf $LIBS"
17936 fi
17937
17938 fi
17939 if test $ac_have_func = no; then
17940 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17941 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17942 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17943 echo $ECHO_N "(cached) $ECHO_C" >&6
17944 else
17945 ac_check_lib_save_LIBS=$LIBS
17946 LIBS="-lkvm $LIBS"
17947 cat >conftest.$ac_ext <<_ACEOF
17948 /* confdefs.h. */
17949 _ACEOF
17950 cat confdefs.h >>conftest.$ac_ext
17951 cat >>conftest.$ac_ext <<_ACEOF
17952 /* end confdefs.h. */
17953
17954 /* Override any GCC internal prototype to avoid an error.
17955 Use char because int might match the return type of a GCC
17956 builtin and then its argument prototype would still apply. */
17957 #ifdef __cplusplus
17958 extern "C"
17959 #endif
17960 char kvm_open ();
17961 int
17962 main ()
17963 {
17964 return kvm_open ();
17965 ;
17966 return 0;
17967 }
17968 _ACEOF
17969 rm -f conftest.$ac_objext conftest$ac_exeext
17970 if { (ac_try="$ac_link"
17971 case "(($ac_try" in
17972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17973 *) ac_try_echo=$ac_try;;
17974 esac
17975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17976 (eval "$ac_link") 2>conftest.er1
17977 ac_status=$?
17978 grep -v '^ *+' conftest.er1 >conftest.err
17979 rm -f conftest.er1
17980 cat conftest.err >&5
17981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17982 (exit $ac_status); } &&
17983 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17984 { (case "(($ac_try" in
17985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17986 *) ac_try_echo=$ac_try;;
17987 esac
17988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17989 (eval "$ac_try") 2>&5
17990 ac_status=$?
17991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17992 (exit $ac_status); }; } &&
17993 { ac_try='test -s conftest$ac_exeext'
17994 { (case "(($ac_try" in
17995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17996 *) ac_try_echo=$ac_try;;
17997 esac
17998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17999 (eval "$ac_try") 2>&5
18000 ac_status=$?
18001 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18002 (exit $ac_status); }; }; then
18003 ac_cv_lib_kvm_kvm_open=yes
18004 else
18005 echo "$as_me: failed program was:" >&5
18006 sed 's/^/| /' conftest.$ac_ext >&5
18007
18008 ac_cv_lib_kvm_kvm_open=no
18009 fi
18010
18011 rm -f core conftest.err conftest.$ac_objext \
18012 conftest$ac_exeext conftest.$ac_ext
18013 LIBS=$ac_check_lib_save_LIBS
18014 fi
18015 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
18016 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
18017 if test $ac_cv_lib_kvm_kvm_open = yes; then
18018 LIBS="-lkvm $LIBS"
18019 fi
18020
18021 # Check for the 4.4BSD definition of getloadavg.
18022 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
18023 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
18024 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
18025 echo $ECHO_N "(cached) $ECHO_C" >&6
18026 else
18027 ac_check_lib_save_LIBS=$LIBS
18028 LIBS="-lutil $LIBS"
18029 cat >conftest.$ac_ext <<_ACEOF
18030 /* confdefs.h. */
18031 _ACEOF
18032 cat confdefs.h >>conftest.$ac_ext
18033 cat >>conftest.$ac_ext <<_ACEOF
18034 /* end confdefs.h. */
18035
18036 /* Override any GCC internal prototype to avoid an error.
18037 Use char because int might match the return type of a GCC
18038 builtin and then its argument prototype would still apply. */
18039 #ifdef __cplusplus
18040 extern "C"
18041 #endif
18042 char getloadavg ();
18043 int
18044 main ()
18045 {
18046 return getloadavg ();
18047 ;
18048 return 0;
18049 }
18050 _ACEOF
18051 rm -f conftest.$ac_objext conftest$ac_exeext
18052 if { (ac_try="$ac_link"
18053 case "(($ac_try" in
18054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18055 *) ac_try_echo=$ac_try;;
18056 esac
18057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18058 (eval "$ac_link") 2>conftest.er1
18059 ac_status=$?
18060 grep -v '^ *+' conftest.er1 >conftest.err
18061 rm -f conftest.er1
18062 cat conftest.err >&5
18063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18064 (exit $ac_status); } &&
18065 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18066 { (case "(($ac_try" in
18067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18068 *) ac_try_echo=$ac_try;;
18069 esac
18070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18071 (eval "$ac_try") 2>&5
18072 ac_status=$?
18073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18074 (exit $ac_status); }; } &&
18075 { ac_try='test -s conftest$ac_exeext'
18076 { (case "(($ac_try" in
18077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18078 *) ac_try_echo=$ac_try;;
18079 esac
18080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18081 (eval "$ac_try") 2>&5
18082 ac_status=$?
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); }; }; then
18085 ac_cv_lib_util_getloadavg=yes
18086 else
18087 echo "$as_me: failed program was:" >&5
18088 sed 's/^/| /' conftest.$ac_ext >&5
18089
18090 ac_cv_lib_util_getloadavg=no
18091 fi
18092
18093 rm -f core conftest.err conftest.$ac_objext \
18094 conftest$ac_exeext conftest.$ac_ext
18095 LIBS=$ac_check_lib_save_LIBS
18096 fi
18097 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
18098 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
18099 if test $ac_cv_lib_util_getloadavg = yes; then
18100 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
18101 fi
18102
18103 fi
18104
18105 if test $ac_have_func = no; then
18106 # There is a commonly available library for RS/6000 AIX.
18107 # Since it is not a standard part of AIX, it might be installed locally.
18108 ac_getloadavg_LIBS=$LIBS
18109 LIBS="-L/usr/local/lib $LIBS"
18110 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
18111 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
18112 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
18113 echo $ECHO_N "(cached) $ECHO_C" >&6
18114 else
18115 ac_check_lib_save_LIBS=$LIBS
18116 LIBS="-lgetloadavg $LIBS"
18117 cat >conftest.$ac_ext <<_ACEOF
18118 /* confdefs.h. */
18119 _ACEOF
18120 cat confdefs.h >>conftest.$ac_ext
18121 cat >>conftest.$ac_ext <<_ACEOF
18122 /* end confdefs.h. */
18123
18124 /* Override any GCC internal prototype to avoid an error.
18125 Use char because int might match the return type of a GCC
18126 builtin and then its argument prototype would still apply. */
18127 #ifdef __cplusplus
18128 extern "C"
18129 #endif
18130 char getloadavg ();
18131 int
18132 main ()
18133 {
18134 return getloadavg ();
18135 ;
18136 return 0;
18137 }
18138 _ACEOF
18139 rm -f conftest.$ac_objext conftest$ac_exeext
18140 if { (ac_try="$ac_link"
18141 case "(($ac_try" in
18142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18143 *) ac_try_echo=$ac_try;;
18144 esac
18145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18146 (eval "$ac_link") 2>conftest.er1
18147 ac_status=$?
18148 grep -v '^ *+' conftest.er1 >conftest.err
18149 rm -f conftest.er1
18150 cat conftest.err >&5
18151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18152 (exit $ac_status); } &&
18153 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18154 { (case "(($ac_try" in
18155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18156 *) ac_try_echo=$ac_try;;
18157 esac
18158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18159 (eval "$ac_try") 2>&5
18160 ac_status=$?
18161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18162 (exit $ac_status); }; } &&
18163 { ac_try='test -s conftest$ac_exeext'
18164 { (case "(($ac_try" in
18165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18166 *) ac_try_echo=$ac_try;;
18167 esac
18168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18169 (eval "$ac_try") 2>&5
18170 ac_status=$?
18171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18172 (exit $ac_status); }; }; then
18173 ac_cv_lib_getloadavg_getloadavg=yes
18174 else
18175 echo "$as_me: failed program was:" >&5
18176 sed 's/^/| /' conftest.$ac_ext >&5
18177
18178 ac_cv_lib_getloadavg_getloadavg=no
18179 fi
18180
18181 rm -f core conftest.err conftest.$ac_objext \
18182 conftest$ac_exeext conftest.$ac_ext
18183 LIBS=$ac_check_lib_save_LIBS
18184 fi
18185 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
18186 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
18187 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
18188 LIBS="-lgetloadavg $LIBS"
18189 else
18190 LIBS=$ac_getloadavg_LIBS
18191 fi
18192
18193 fi
18194
18195 # Make sure it is really in the library, if we think we found it,
18196 # otherwise set up the replacement function.
18197
18198 for ac_func in getloadavg
18199 do
18200 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18201 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18202 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18203 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18204 echo $ECHO_N "(cached) $ECHO_C" >&6
18205 else
18206 cat >conftest.$ac_ext <<_ACEOF
18207 /* confdefs.h. */
18208 _ACEOF
18209 cat confdefs.h >>conftest.$ac_ext
18210 cat >>conftest.$ac_ext <<_ACEOF
18211 /* end confdefs.h. */
18212 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18213 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18214 #define $ac_func innocuous_$ac_func
18215
18216 /* System header to define __stub macros and hopefully few prototypes,
18217 which can conflict with char $ac_func (); below.
18218 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18219 <limits.h> exists even on freestanding compilers. */
18220
18221 #ifdef __STDC__
18222 # include <limits.h>
18223 #else
18224 # include <assert.h>
18225 #endif
18226
18227 #undef $ac_func
18228
18229 /* Override any GCC internal prototype to avoid an error.
18230 Use char because int might match the return type of a GCC
18231 builtin and then its argument prototype would still apply. */
18232 #ifdef __cplusplus
18233 extern "C"
18234 #endif
18235 char $ac_func ();
18236 /* The GNU C library defines this for functions which it implements
18237 to always fail with ENOSYS. Some functions are actually named
18238 something starting with __ and the normal name is an alias. */
18239 #if defined __stub_$ac_func || defined __stub___$ac_func
18240 choke me
18241 #endif
18242
18243 int
18244 main ()
18245 {
18246 return $ac_func ();
18247 ;
18248 return 0;
18249 }
18250 _ACEOF
18251 rm -f conftest.$ac_objext conftest$ac_exeext
18252 if { (ac_try="$ac_link"
18253 case "(($ac_try" in
18254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18255 *) ac_try_echo=$ac_try;;
18256 esac
18257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18258 (eval "$ac_link") 2>conftest.er1
18259 ac_status=$?
18260 grep -v '^ *+' conftest.er1 >conftest.err
18261 rm -f conftest.er1
18262 cat conftest.err >&5
18263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18264 (exit $ac_status); } &&
18265 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18266 { (case "(($ac_try" in
18267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18268 *) ac_try_echo=$ac_try;;
18269 esac
18270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18271 (eval "$ac_try") 2>&5
18272 ac_status=$?
18273 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18274 (exit $ac_status); }; } &&
18275 { ac_try='test -s conftest$ac_exeext'
18276 { (case "(($ac_try" in
18277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18278 *) ac_try_echo=$ac_try;;
18279 esac
18280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18281 (eval "$ac_try") 2>&5
18282 ac_status=$?
18283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18284 (exit $ac_status); }; }; then
18285 eval "$as_ac_var=yes"
18286 else
18287 echo "$as_me: failed program was:" >&5
18288 sed 's/^/| /' conftest.$ac_ext >&5
18289
18290 eval "$as_ac_var=no"
18291 fi
18292
18293 rm -f core conftest.err conftest.$ac_objext \
18294 conftest$ac_exeext conftest.$ac_ext
18295 fi
18296 ac_res=`eval echo '${'$as_ac_var'}'`
18297 { echo "$as_me:$LINENO: result: $ac_res" >&5
18298 echo "${ECHO_T}$ac_res" >&6; }
18299 if test `eval echo '${'$as_ac_var'}'` = yes; then
18300 cat >>confdefs.h <<_ACEOF
18301 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18302 _ACEOF
18303
18304 else
18305 case " $LIBOBJS " in
18306 *" getloadavg.$ac_objext "* ) ;;
18307 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
18308 ;;
18309 esac
18310
18311
18312 cat >>confdefs.h <<\_ACEOF
18313 #define C_GETLOADAVG 1
18314 _ACEOF
18315
18316 # Figure out what our getloadavg.c needs.
18317 ac_have_func=no
18318 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18319 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18320 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18321 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18322 echo $ECHO_N "(cached) $ECHO_C" >&6
18323 fi
18324 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18325 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18326 else
18327 # Is the header compilable?
18328 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
18329 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
18330 cat >conftest.$ac_ext <<_ACEOF
18331 /* confdefs.h. */
18332 _ACEOF
18333 cat confdefs.h >>conftest.$ac_ext
18334 cat >>conftest.$ac_ext <<_ACEOF
18335 /* end confdefs.h. */
18336 $ac_includes_default
18337 #include <sys/dg_sys_info.h>
18338 _ACEOF
18339 rm -f conftest.$ac_objext
18340 if { (ac_try="$ac_compile"
18341 case "(($ac_try" in
18342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18343 *) ac_try_echo=$ac_try;;
18344 esac
18345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18346 (eval "$ac_compile") 2>conftest.er1
18347 ac_status=$?
18348 grep -v '^ *+' conftest.er1 >conftest.err
18349 rm -f conftest.er1
18350 cat conftest.err >&5
18351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18352 (exit $ac_status); } &&
18353 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18354 { (case "(($ac_try" in
18355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18356 *) ac_try_echo=$ac_try;;
18357 esac
18358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18359 (eval "$ac_try") 2>&5
18360 ac_status=$?
18361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18362 (exit $ac_status); }; } &&
18363 { ac_try='test -s conftest.$ac_objext'
18364 { (case "(($ac_try" in
18365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18366 *) ac_try_echo=$ac_try;;
18367 esac
18368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18369 (eval "$ac_try") 2>&5
18370 ac_status=$?
18371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18372 (exit $ac_status); }; }; then
18373 ac_header_compiler=yes
18374 else
18375 echo "$as_me: failed program was:" >&5
18376 sed 's/^/| /' conftest.$ac_ext >&5
18377
18378 ac_header_compiler=no
18379 fi
18380
18381 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18382 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18383 echo "${ECHO_T}$ac_header_compiler" >&6; }
18384
18385 # Is the header present?
18386 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
18387 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
18388 cat >conftest.$ac_ext <<_ACEOF
18389 /* confdefs.h. */
18390 _ACEOF
18391 cat confdefs.h >>conftest.$ac_ext
18392 cat >>conftest.$ac_ext <<_ACEOF
18393 /* end confdefs.h. */
18394 #include <sys/dg_sys_info.h>
18395 _ACEOF
18396 if { (ac_try="$ac_cpp conftest.$ac_ext"
18397 case "(($ac_try" in
18398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18399 *) ac_try_echo=$ac_try;;
18400 esac
18401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18402 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18403 ac_status=$?
18404 grep -v '^ *+' conftest.er1 >conftest.err
18405 rm -f conftest.er1
18406 cat conftest.err >&5
18407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18408 (exit $ac_status); } >/dev/null; then
18409 if test -s conftest.err; then
18410 ac_cpp_err=$ac_c_preproc_warn_flag
18411 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18412 else
18413 ac_cpp_err=
18414 fi
18415 else
18416 ac_cpp_err=yes
18417 fi
18418 if test -z "$ac_cpp_err"; then
18419 ac_header_preproc=yes
18420 else
18421 echo "$as_me: failed program was:" >&5
18422 sed 's/^/| /' conftest.$ac_ext >&5
18423
18424 ac_header_preproc=no
18425 fi
18426
18427 rm -f conftest.err conftest.$ac_ext
18428 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18429 echo "${ECHO_T}$ac_header_preproc" >&6; }
18430
18431 # So? What about this header?
18432 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18433 yes:no: )
18434 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
18435 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
18437 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
18438 ac_header_preproc=yes
18439 ;;
18440 no:yes:* )
18441 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
18442 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
18443 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
18444 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
18445 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
18446 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
18447 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
18448 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
18449 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
18450 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
18451 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
18452 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
18453
18454 ;;
18455 esac
18456 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
18457 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
18458 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
18459 echo $ECHO_N "(cached) $ECHO_C" >&6
18460 else
18461 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
18462 fi
18463 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
18464 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
18465
18466 fi
18467 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
18468 ac_have_func=yes
18469
18470 cat >>confdefs.h <<\_ACEOF
18471 #define DGUX 1
18472 _ACEOF
18473
18474
18475 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
18476 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
18477 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 ac_check_lib_save_LIBS=$LIBS
18481 LIBS="-ldgc $LIBS"
18482 cat >conftest.$ac_ext <<_ACEOF
18483 /* confdefs.h. */
18484 _ACEOF
18485 cat confdefs.h >>conftest.$ac_ext
18486 cat >>conftest.$ac_ext <<_ACEOF
18487 /* end confdefs.h. */
18488
18489 /* Override any GCC internal prototype to avoid an error.
18490 Use char because int might match the return type of a GCC
18491 builtin and then its argument prototype would still apply. */
18492 #ifdef __cplusplus
18493 extern "C"
18494 #endif
18495 char dg_sys_info ();
18496 int
18497 main ()
18498 {
18499 return dg_sys_info ();
18500 ;
18501 return 0;
18502 }
18503 _ACEOF
18504 rm -f conftest.$ac_objext conftest$ac_exeext
18505 if { (ac_try="$ac_link"
18506 case "(($ac_try" in
18507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18508 *) ac_try_echo=$ac_try;;
18509 esac
18510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18511 (eval "$ac_link") 2>conftest.er1
18512 ac_status=$?
18513 grep -v '^ *+' conftest.er1 >conftest.err
18514 rm -f conftest.er1
18515 cat conftest.err >&5
18516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18517 (exit $ac_status); } &&
18518 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18519 { (case "(($ac_try" in
18520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18521 *) ac_try_echo=$ac_try;;
18522 esac
18523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18524 (eval "$ac_try") 2>&5
18525 ac_status=$?
18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18527 (exit $ac_status); }; } &&
18528 { ac_try='test -s conftest$ac_exeext'
18529 { (case "(($ac_try" in
18530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18531 *) ac_try_echo=$ac_try;;
18532 esac
18533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18534 (eval "$ac_try") 2>&5
18535 ac_status=$?
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); }; }; then
18538 ac_cv_lib_dgc_dg_sys_info=yes
18539 else
18540 echo "$as_me: failed program was:" >&5
18541 sed 's/^/| /' conftest.$ac_ext >&5
18542
18543 ac_cv_lib_dgc_dg_sys_info=no
18544 fi
18545
18546 rm -f core conftest.err conftest.$ac_objext \
18547 conftest$ac_exeext conftest.$ac_ext
18548 LIBS=$ac_check_lib_save_LIBS
18549 fi
18550 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
18551 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
18552 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
18553 cat >>confdefs.h <<_ACEOF
18554 #define HAVE_LIBDGC 1
18555 _ACEOF
18556
18557 LIBS="-ldgc $LIBS"
18558
18559 fi
18560
18561 fi
18562
18563
18564
18565 if test "${ac_cv_header_locale_h+set}" = set; then
18566 { echo "$as_me:$LINENO: checking for locale.h" >&5
18567 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18568 if test "${ac_cv_header_locale_h+set}" = set; then
18569 echo $ECHO_N "(cached) $ECHO_C" >&6
18570 fi
18571 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18572 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18573 else
18574 # Is the header compilable?
18575 { echo "$as_me:$LINENO: checking locale.h usability" >&5
18576 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
18577 cat >conftest.$ac_ext <<_ACEOF
18578 /* confdefs.h. */
18579 _ACEOF
18580 cat confdefs.h >>conftest.$ac_ext
18581 cat >>conftest.$ac_ext <<_ACEOF
18582 /* end confdefs.h. */
18583 $ac_includes_default
18584 #include <locale.h>
18585 _ACEOF
18586 rm -f conftest.$ac_objext
18587 if { (ac_try="$ac_compile"
18588 case "(($ac_try" in
18589 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18590 *) ac_try_echo=$ac_try;;
18591 esac
18592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18593 (eval "$ac_compile") 2>conftest.er1
18594 ac_status=$?
18595 grep -v '^ *+' conftest.er1 >conftest.err
18596 rm -f conftest.er1
18597 cat conftest.err >&5
18598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18599 (exit $ac_status); } &&
18600 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18601 { (case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_try") 2>&5
18607 ac_status=$?
18608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18609 (exit $ac_status); }; } &&
18610 { ac_try='test -s conftest.$ac_objext'
18611 { (case "(($ac_try" in
18612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18613 *) ac_try_echo=$ac_try;;
18614 esac
18615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18616 (eval "$ac_try") 2>&5
18617 ac_status=$?
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); }; }; then
18620 ac_header_compiler=yes
18621 else
18622 echo "$as_me: failed program was:" >&5
18623 sed 's/^/| /' conftest.$ac_ext >&5
18624
18625 ac_header_compiler=no
18626 fi
18627
18628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18629 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18630 echo "${ECHO_T}$ac_header_compiler" >&6; }
18631
18632 # Is the header present?
18633 { echo "$as_me:$LINENO: checking locale.h presence" >&5
18634 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
18635 cat >conftest.$ac_ext <<_ACEOF
18636 /* confdefs.h. */
18637 _ACEOF
18638 cat confdefs.h >>conftest.$ac_ext
18639 cat >>conftest.$ac_ext <<_ACEOF
18640 /* end confdefs.h. */
18641 #include <locale.h>
18642 _ACEOF
18643 if { (ac_try="$ac_cpp conftest.$ac_ext"
18644 case "(($ac_try" in
18645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18646 *) ac_try_echo=$ac_try;;
18647 esac
18648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18649 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18650 ac_status=$?
18651 grep -v '^ *+' conftest.er1 >conftest.err
18652 rm -f conftest.er1
18653 cat conftest.err >&5
18654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18655 (exit $ac_status); } >/dev/null; then
18656 if test -s conftest.err; then
18657 ac_cpp_err=$ac_c_preproc_warn_flag
18658 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18659 else
18660 ac_cpp_err=
18661 fi
18662 else
18663 ac_cpp_err=yes
18664 fi
18665 if test -z "$ac_cpp_err"; then
18666 ac_header_preproc=yes
18667 else
18668 echo "$as_me: failed program was:" >&5
18669 sed 's/^/| /' conftest.$ac_ext >&5
18670
18671 ac_header_preproc=no
18672 fi
18673
18674 rm -f conftest.err conftest.$ac_ext
18675 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18676 echo "${ECHO_T}$ac_header_preproc" >&6; }
18677
18678 # So? What about this header?
18679 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18680 yes:no: )
18681 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
18682 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18683 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
18684 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
18685 ac_header_preproc=yes
18686 ;;
18687 no:yes:* )
18688 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
18689 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
18690 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
18691 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
18692 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
18693 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
18694 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
18695 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
18696 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
18697 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
18698 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
18699 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
18700
18701 ;;
18702 esac
18703 { echo "$as_me:$LINENO: checking for locale.h" >&5
18704 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
18705 if test "${ac_cv_header_locale_h+set}" = set; then
18706 echo $ECHO_N "(cached) $ECHO_C" >&6
18707 else
18708 ac_cv_header_locale_h=$ac_header_preproc
18709 fi
18710 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
18711 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
18712
18713 fi
18714
18715
18716
18717 for ac_func in setlocale
18718 do
18719 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18720 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18721 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18722 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18723 echo $ECHO_N "(cached) $ECHO_C" >&6
18724 else
18725 cat >conftest.$ac_ext <<_ACEOF
18726 /* confdefs.h. */
18727 _ACEOF
18728 cat confdefs.h >>conftest.$ac_ext
18729 cat >>conftest.$ac_ext <<_ACEOF
18730 /* end confdefs.h. */
18731 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18732 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18733 #define $ac_func innocuous_$ac_func
18734
18735 /* System header to define __stub macros and hopefully few prototypes,
18736 which can conflict with char $ac_func (); below.
18737 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18738 <limits.h> exists even on freestanding compilers. */
18739
18740 #ifdef __STDC__
18741 # include <limits.h>
18742 #else
18743 # include <assert.h>
18744 #endif
18745
18746 #undef $ac_func
18747
18748 /* Override any GCC internal prototype to avoid an error.
18749 Use char because int might match the return type of a GCC
18750 builtin and then its argument prototype would still apply. */
18751 #ifdef __cplusplus
18752 extern "C"
18753 #endif
18754 char $ac_func ();
18755 /* The GNU C library defines this for functions which it implements
18756 to always fail with ENOSYS. Some functions are actually named
18757 something starting with __ and the normal name is an alias. */
18758 #if defined __stub_$ac_func || defined __stub___$ac_func
18759 choke me
18760 #endif
18761
18762 int
18763 main ()
18764 {
18765 return $ac_func ();
18766 ;
18767 return 0;
18768 }
18769 _ACEOF
18770 rm -f conftest.$ac_objext conftest$ac_exeext
18771 if { (ac_try="$ac_link"
18772 case "(($ac_try" in
18773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18774 *) ac_try_echo=$ac_try;;
18775 esac
18776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18777 (eval "$ac_link") 2>conftest.er1
18778 ac_status=$?
18779 grep -v '^ *+' conftest.er1 >conftest.err
18780 rm -f conftest.er1
18781 cat conftest.err >&5
18782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18783 (exit $ac_status); } &&
18784 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18785 { (case "(($ac_try" in
18786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18787 *) ac_try_echo=$ac_try;;
18788 esac
18789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18790 (eval "$ac_try") 2>&5
18791 ac_status=$?
18792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18793 (exit $ac_status); }; } &&
18794 { ac_try='test -s conftest$ac_exeext'
18795 { (case "(($ac_try" in
18796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18797 *) ac_try_echo=$ac_try;;
18798 esac
18799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18800 (eval "$ac_try") 2>&5
18801 ac_status=$?
18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18803 (exit $ac_status); }; }; then
18804 eval "$as_ac_var=yes"
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 eval "$as_ac_var=no"
18810 fi
18811
18812 rm -f core conftest.err conftest.$ac_objext \
18813 conftest$ac_exeext conftest.$ac_ext
18814 fi
18815 ac_res=`eval echo '${'$as_ac_var'}'`
18816 { echo "$as_me:$LINENO: result: $ac_res" >&5
18817 echo "${ECHO_T}$ac_res" >&6; }
18818 if test `eval echo '${'$as_ac_var'}'` = yes; then
18819 cat >>confdefs.h <<_ACEOF
18820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18821 _ACEOF
18822
18823 fi
18824 done
18825
18826
18827 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
18828 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
18829 # Irix 4.0.5F has the header but not the library.
18830 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
18831 ac_have_func=yes
18832
18833 cat >>confdefs.h <<\_ACEOF
18834 #define SVR4 1
18835 _ACEOF
18836
18837 fi
18838
18839 if test $ac_have_func = no; then
18840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18841 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18842 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18843 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 fi
18846 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18847 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18848 else
18849 # Is the header compilable?
18850 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
18851 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
18852 cat >conftest.$ac_ext <<_ACEOF
18853 /* confdefs.h. */
18854 _ACEOF
18855 cat confdefs.h >>conftest.$ac_ext
18856 cat >>conftest.$ac_ext <<_ACEOF
18857 /* end confdefs.h. */
18858 $ac_includes_default
18859 #include <inq_stats/cpustats.h>
18860 _ACEOF
18861 rm -f conftest.$ac_objext
18862 if { (ac_try="$ac_compile"
18863 case "(($ac_try" in
18864 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18865 *) ac_try_echo=$ac_try;;
18866 esac
18867 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18868 (eval "$ac_compile") 2>conftest.er1
18869 ac_status=$?
18870 grep -v '^ *+' conftest.er1 >conftest.err
18871 rm -f conftest.er1
18872 cat conftest.err >&5
18873 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18874 (exit $ac_status); } &&
18875 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18876 { (case "(($ac_try" in
18877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18878 *) ac_try_echo=$ac_try;;
18879 esac
18880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18881 (eval "$ac_try") 2>&5
18882 ac_status=$?
18883 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18884 (exit $ac_status); }; } &&
18885 { ac_try='test -s conftest.$ac_objext'
18886 { (case "(($ac_try" in
18887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18888 *) ac_try_echo=$ac_try;;
18889 esac
18890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18891 (eval "$ac_try") 2>&5
18892 ac_status=$?
18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18894 (exit $ac_status); }; }; then
18895 ac_header_compiler=yes
18896 else
18897 echo "$as_me: failed program was:" >&5
18898 sed 's/^/| /' conftest.$ac_ext >&5
18899
18900 ac_header_compiler=no
18901 fi
18902
18903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18904 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18905 echo "${ECHO_T}$ac_header_compiler" >&6; }
18906
18907 # Is the header present?
18908 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
18909 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
18910 cat >conftest.$ac_ext <<_ACEOF
18911 /* confdefs.h. */
18912 _ACEOF
18913 cat confdefs.h >>conftest.$ac_ext
18914 cat >>conftest.$ac_ext <<_ACEOF
18915 /* end confdefs.h. */
18916 #include <inq_stats/cpustats.h>
18917 _ACEOF
18918 if { (ac_try="$ac_cpp conftest.$ac_ext"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } >/dev/null; then
18931 if test -s conftest.err; then
18932 ac_cpp_err=$ac_c_preproc_warn_flag
18933 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
18934 else
18935 ac_cpp_err=
18936 fi
18937 else
18938 ac_cpp_err=yes
18939 fi
18940 if test -z "$ac_cpp_err"; then
18941 ac_header_preproc=yes
18942 else
18943 echo "$as_me: failed program was:" >&5
18944 sed 's/^/| /' conftest.$ac_ext >&5
18945
18946 ac_header_preproc=no
18947 fi
18948
18949 rm -f conftest.err conftest.$ac_ext
18950 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18951 echo "${ECHO_T}$ac_header_preproc" >&6; }
18952
18953 # So? What about this header?
18954 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18955 yes:no: )
18956 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18957 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18958 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
18959 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
18960 ac_header_preproc=yes
18961 ;;
18962 no:yes:* )
18963 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
18964 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
18965 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
18966 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
18967 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
18968 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
18969 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18970 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18971 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
18972 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
18973 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
18974 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
18975
18976 ;;
18977 esac
18978 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
18979 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
18980 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
18981 echo $ECHO_N "(cached) $ECHO_C" >&6
18982 else
18983 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
18984 fi
18985 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
18986 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
18987
18988 fi
18989 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
18990 ac_have_func=yes
18991
18992 cat >>confdefs.h <<\_ACEOF
18993 #define UMAX 1
18994 _ACEOF
18995
18996
18997 cat >>confdefs.h <<\_ACEOF
18998 #define UMAX4_3 1
18999 _ACEOF
19000
19001 fi
19002
19003
19004 fi
19005
19006 if test $ac_have_func = no; then
19007 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19008 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19009 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19010 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 fi
19013 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19014 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19015 else
19016 # Is the header compilable?
19017 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
19018 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
19019 cat >conftest.$ac_ext <<_ACEOF
19020 /* confdefs.h. */
19021 _ACEOF
19022 cat confdefs.h >>conftest.$ac_ext
19023 cat >>conftest.$ac_ext <<_ACEOF
19024 /* end confdefs.h. */
19025 $ac_includes_default
19026 #include <sys/cpustats.h>
19027 _ACEOF
19028 rm -f conftest.$ac_objext
19029 if { (ac_try="$ac_compile"
19030 case "(($ac_try" in
19031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19032 *) ac_try_echo=$ac_try;;
19033 esac
19034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19035 (eval "$ac_compile") 2>conftest.er1
19036 ac_status=$?
19037 grep -v '^ *+' conftest.er1 >conftest.err
19038 rm -f conftest.er1
19039 cat conftest.err >&5
19040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19041 (exit $ac_status); } &&
19042 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19043 { (case "(($ac_try" in
19044 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19045 *) ac_try_echo=$ac_try;;
19046 esac
19047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19048 (eval "$ac_try") 2>&5
19049 ac_status=$?
19050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19051 (exit $ac_status); }; } &&
19052 { ac_try='test -s conftest.$ac_objext'
19053 { (case "(($ac_try" in
19054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19055 *) ac_try_echo=$ac_try;;
19056 esac
19057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19058 (eval "$ac_try") 2>&5
19059 ac_status=$?
19060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19061 (exit $ac_status); }; }; then
19062 ac_header_compiler=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_header_compiler=no
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19071 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19072 echo "${ECHO_T}$ac_header_compiler" >&6; }
19073
19074 # Is the header present?
19075 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
19076 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
19077 cat >conftest.$ac_ext <<_ACEOF
19078 /* confdefs.h. */
19079 _ACEOF
19080 cat confdefs.h >>conftest.$ac_ext
19081 cat >>conftest.$ac_ext <<_ACEOF
19082 /* end confdefs.h. */
19083 #include <sys/cpustats.h>
19084 _ACEOF
19085 if { (ac_try="$ac_cpp conftest.$ac_ext"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } >/dev/null; then
19098 if test -s conftest.err; then
19099 ac_cpp_err=$ac_c_preproc_warn_flag
19100 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19101 else
19102 ac_cpp_err=
19103 fi
19104 else
19105 ac_cpp_err=yes
19106 fi
19107 if test -z "$ac_cpp_err"; then
19108 ac_header_preproc=yes
19109 else
19110 echo "$as_me: failed program was:" >&5
19111 sed 's/^/| /' conftest.$ac_ext >&5
19112
19113 ac_header_preproc=no
19114 fi
19115
19116 rm -f conftest.err conftest.$ac_ext
19117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19118 echo "${ECHO_T}$ac_header_preproc" >&6; }
19119
19120 # So? What about this header?
19121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19122 yes:no: )
19123 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
19124 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
19125 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
19126 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
19127 ac_header_preproc=yes
19128 ;;
19129 no:yes:* )
19130 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
19131 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
19132 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
19133 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
19134 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
19135 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
19136 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
19137 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
19138 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
19139 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
19140 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
19141 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
19142
19143 ;;
19144 esac
19145 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
19146 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
19147 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
19148 echo $ECHO_N "(cached) $ECHO_C" >&6
19149 else
19150 ac_cv_header_sys_cpustats_h=$ac_header_preproc
19151 fi
19152 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
19153 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
19154
19155 fi
19156 if test $ac_cv_header_sys_cpustats_h = yes; then
19157 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
19158 #define UMAX 1
19159 _ACEOF
19160
19161 fi
19162
19163
19164 fi
19165
19166 if test $ac_have_func = no; then
19167
19168 for ac_header in mach/mach.h
19169 do
19170 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19171 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19172 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19173 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19175 echo $ECHO_N "(cached) $ECHO_C" >&6
19176 fi
19177 ac_res=`eval echo '${'$as_ac_Header'}'`
19178 { echo "$as_me:$LINENO: result: $ac_res" >&5
19179 echo "${ECHO_T}$ac_res" >&6; }
19180 else
19181 # Is the header compilable?
19182 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19183 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19184 cat >conftest.$ac_ext <<_ACEOF
19185 /* confdefs.h. */
19186 _ACEOF
19187 cat confdefs.h >>conftest.$ac_ext
19188 cat >>conftest.$ac_ext <<_ACEOF
19189 /* end confdefs.h. */
19190 $ac_includes_default
19191 #include <$ac_header>
19192 _ACEOF
19193 rm -f conftest.$ac_objext
19194 if { (ac_try="$ac_compile"
19195 case "(($ac_try" in
19196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19197 *) ac_try_echo=$ac_try;;
19198 esac
19199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19200 (eval "$ac_compile") 2>conftest.er1
19201 ac_status=$?
19202 grep -v '^ *+' conftest.er1 >conftest.err
19203 rm -f conftest.er1
19204 cat conftest.err >&5
19205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19206 (exit $ac_status); } &&
19207 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19208 { (case "(($ac_try" in
19209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19210 *) ac_try_echo=$ac_try;;
19211 esac
19212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19213 (eval "$ac_try") 2>&5
19214 ac_status=$?
19215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19216 (exit $ac_status); }; } &&
19217 { ac_try='test -s conftest.$ac_objext'
19218 { (case "(($ac_try" in
19219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19220 *) ac_try_echo=$ac_try;;
19221 esac
19222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19223 (eval "$ac_try") 2>&5
19224 ac_status=$?
19225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19226 (exit $ac_status); }; }; then
19227 ac_header_compiler=yes
19228 else
19229 echo "$as_me: failed program was:" >&5
19230 sed 's/^/| /' conftest.$ac_ext >&5
19231
19232 ac_header_compiler=no
19233 fi
19234
19235 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19236 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19237 echo "${ECHO_T}$ac_header_compiler" >&6; }
19238
19239 # Is the header present?
19240 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19241 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 #include <$ac_header>
19249 _ACEOF
19250 if { (ac_try="$ac_cpp conftest.$ac_ext"
19251 case "(($ac_try" in
19252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253 *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19257 ac_status=$?
19258 grep -v '^ *+' conftest.er1 >conftest.err
19259 rm -f conftest.er1
19260 cat conftest.err >&5
19261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19262 (exit $ac_status); } >/dev/null; then
19263 if test -s conftest.err; then
19264 ac_cpp_err=$ac_c_preproc_warn_flag
19265 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19266 else
19267 ac_cpp_err=
19268 fi
19269 else
19270 ac_cpp_err=yes
19271 fi
19272 if test -z "$ac_cpp_err"; then
19273 ac_header_preproc=yes
19274 else
19275 echo "$as_me: failed program was:" >&5
19276 sed 's/^/| /' conftest.$ac_ext >&5
19277
19278 ac_header_preproc=no
19279 fi
19280
19281 rm -f conftest.err conftest.$ac_ext
19282 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19283 echo "${ECHO_T}$ac_header_preproc" >&6; }
19284
19285 # So? What about this header?
19286 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19287 yes:no: )
19288 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19289 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19290 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19291 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19292 ac_header_preproc=yes
19293 ;;
19294 no:yes:* )
19295 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19296 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19297 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19298 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19299 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19300 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19301 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19302 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19303 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19304 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19305 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19306 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19307
19308 ;;
19309 esac
19310 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19311 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19312 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19313 echo $ECHO_N "(cached) $ECHO_C" >&6
19314 else
19315 eval "$as_ac_Header=\$ac_header_preproc"
19316 fi
19317 ac_res=`eval echo '${'$as_ac_Header'}'`
19318 { echo "$as_me:$LINENO: result: $ac_res" >&5
19319 echo "${ECHO_T}$ac_res" >&6; }
19320
19321 fi
19322 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19323 cat >>confdefs.h <<_ACEOF
19324 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19325 _ACEOF
19326
19327 fi
19328
19329 done
19330
19331 fi
19332
19333
19334 for ac_header in nlist.h
19335 do
19336 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19337 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19338 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19339 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19341 echo $ECHO_N "(cached) $ECHO_C" >&6
19342 fi
19343 ac_res=`eval echo '${'$as_ac_Header'}'`
19344 { echo "$as_me:$LINENO: result: $ac_res" >&5
19345 echo "${ECHO_T}$ac_res" >&6; }
19346 else
19347 # Is the header compilable?
19348 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19349 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19350 cat >conftest.$ac_ext <<_ACEOF
19351 /* confdefs.h. */
19352 _ACEOF
19353 cat confdefs.h >>conftest.$ac_ext
19354 cat >>conftest.$ac_ext <<_ACEOF
19355 /* end confdefs.h. */
19356 $ac_includes_default
19357 #include <$ac_header>
19358 _ACEOF
19359 rm -f conftest.$ac_objext
19360 if { (ac_try="$ac_compile"
19361 case "(($ac_try" in
19362 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19363 *) ac_try_echo=$ac_try;;
19364 esac
19365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19366 (eval "$ac_compile") 2>conftest.er1
19367 ac_status=$?
19368 grep -v '^ *+' conftest.er1 >conftest.err
19369 rm -f conftest.er1
19370 cat conftest.err >&5
19371 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19372 (exit $ac_status); } &&
19373 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19374 { (case "(($ac_try" in
19375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19376 *) ac_try_echo=$ac_try;;
19377 esac
19378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19379 (eval "$ac_try") 2>&5
19380 ac_status=$?
19381 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19382 (exit $ac_status); }; } &&
19383 { ac_try='test -s conftest.$ac_objext'
19384 { (case "(($ac_try" in
19385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19386 *) ac_try_echo=$ac_try;;
19387 esac
19388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19389 (eval "$ac_try") 2>&5
19390 ac_status=$?
19391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19392 (exit $ac_status); }; }; then
19393 ac_header_compiler=yes
19394 else
19395 echo "$as_me: failed program was:" >&5
19396 sed 's/^/| /' conftest.$ac_ext >&5
19397
19398 ac_header_compiler=no
19399 fi
19400
19401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19402 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19403 echo "${ECHO_T}$ac_header_compiler" >&6; }
19404
19405 # Is the header present?
19406 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19407 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19408 cat >conftest.$ac_ext <<_ACEOF
19409 /* confdefs.h. */
19410 _ACEOF
19411 cat confdefs.h >>conftest.$ac_ext
19412 cat >>conftest.$ac_ext <<_ACEOF
19413 /* end confdefs.h. */
19414 #include <$ac_header>
19415 _ACEOF
19416 if { (ac_try="$ac_cpp conftest.$ac_ext"
19417 case "(($ac_try" in
19418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19419 *) ac_try_echo=$ac_try;;
19420 esac
19421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19422 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19423 ac_status=$?
19424 grep -v '^ *+' conftest.er1 >conftest.err
19425 rm -f conftest.er1
19426 cat conftest.err >&5
19427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19428 (exit $ac_status); } >/dev/null; then
19429 if test -s conftest.err; then
19430 ac_cpp_err=$ac_c_preproc_warn_flag
19431 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19432 else
19433 ac_cpp_err=
19434 fi
19435 else
19436 ac_cpp_err=yes
19437 fi
19438 if test -z "$ac_cpp_err"; then
19439 ac_header_preproc=yes
19440 else
19441 echo "$as_me: failed program was:" >&5
19442 sed 's/^/| /' conftest.$ac_ext >&5
19443
19444 ac_header_preproc=no
19445 fi
19446
19447 rm -f conftest.err conftest.$ac_ext
19448 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19449 echo "${ECHO_T}$ac_header_preproc" >&6; }
19450
19451 # So? What about this header?
19452 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19453 yes:no: )
19454 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19455 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19456 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19457 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19458 ac_header_preproc=yes
19459 ;;
19460 no:yes:* )
19461 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19462 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19463 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19464 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19465 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19466 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19467 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19468 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19469 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19470 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19471 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19472 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19473
19474 ;;
19475 esac
19476 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19477 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19478 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19479 echo $ECHO_N "(cached) $ECHO_C" >&6
19480 else
19481 eval "$as_ac_Header=\$ac_header_preproc"
19482 fi
19483 ac_res=`eval echo '${'$as_ac_Header'}'`
19484 { echo "$as_me:$LINENO: result: $ac_res" >&5
19485 echo "${ECHO_T}$ac_res" >&6; }
19486
19487 fi
19488 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19489 cat >>confdefs.h <<_ACEOF
19490 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19491 _ACEOF
19492 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
19493 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
19494 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
19495 echo $ECHO_N "(cached) $ECHO_C" >&6
19496 else
19497 cat >conftest.$ac_ext <<_ACEOF
19498 /* confdefs.h. */
19499 _ACEOF
19500 cat confdefs.h >>conftest.$ac_ext
19501 cat >>conftest.$ac_ext <<_ACEOF
19502 /* end confdefs.h. */
19503 #include <nlist.h>
19504
19505 int
19506 main ()
19507 {
19508 static struct nlist ac_aggr;
19509 if (ac_aggr.n_un.n_name)
19510 return 0;
19511 ;
19512 return 0;
19513 }
19514 _ACEOF
19515 rm -f conftest.$ac_objext
19516 if { (ac_try="$ac_compile"
19517 case "(($ac_try" in
19518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19519 *) ac_try_echo=$ac_try;;
19520 esac
19521 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19522 (eval "$ac_compile") 2>conftest.er1
19523 ac_status=$?
19524 grep -v '^ *+' conftest.er1 >conftest.err
19525 rm -f conftest.er1
19526 cat conftest.err >&5
19527 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19528 (exit $ac_status); } &&
19529 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19530 { (case "(($ac_try" in
19531 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19532 *) ac_try_echo=$ac_try;;
19533 esac
19534 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19535 (eval "$ac_try") 2>&5
19536 ac_status=$?
19537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19538 (exit $ac_status); }; } &&
19539 { ac_try='test -s conftest.$ac_objext'
19540 { (case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_try") 2>&5
19546 ac_status=$?
19547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19548 (exit $ac_status); }; }; then
19549 ac_cv_member_struct_nlist_n_un_n_name=yes
19550 else
19551 echo "$as_me: failed program was:" >&5
19552 sed 's/^/| /' conftest.$ac_ext >&5
19553
19554 cat >conftest.$ac_ext <<_ACEOF
19555 /* confdefs.h. */
19556 _ACEOF
19557 cat confdefs.h >>conftest.$ac_ext
19558 cat >>conftest.$ac_ext <<_ACEOF
19559 /* end confdefs.h. */
19560 #include <nlist.h>
19561
19562 int
19563 main ()
19564 {
19565 static struct nlist ac_aggr;
19566 if (sizeof ac_aggr.n_un.n_name)
19567 return 0;
19568 ;
19569 return 0;
19570 }
19571 _ACEOF
19572 rm -f conftest.$ac_objext
19573 if { (ac_try="$ac_compile"
19574 case "(($ac_try" in
19575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19576 *) ac_try_echo=$ac_try;;
19577 esac
19578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19579 (eval "$ac_compile") 2>conftest.er1
19580 ac_status=$?
19581 grep -v '^ *+' conftest.er1 >conftest.err
19582 rm -f conftest.er1
19583 cat conftest.err >&5
19584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19585 (exit $ac_status); } &&
19586 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19587 { (case "(($ac_try" in
19588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589 *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592 (eval "$ac_try") 2>&5
19593 ac_status=$?
19594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19595 (exit $ac_status); }; } &&
19596 { ac_try='test -s conftest.$ac_objext'
19597 { (case "(($ac_try" in
19598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19599 *) ac_try_echo=$ac_try;;
19600 esac
19601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19602 (eval "$ac_try") 2>&5
19603 ac_status=$?
19604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19605 (exit $ac_status); }; }; then
19606 ac_cv_member_struct_nlist_n_un_n_name=yes
19607 else
19608 echo "$as_me: failed program was:" >&5
19609 sed 's/^/| /' conftest.$ac_ext >&5
19610
19611 ac_cv_member_struct_nlist_n_un_n_name=no
19612 fi
19613
19614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19615 fi
19616
19617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19618 fi
19619 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
19620 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
19621 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
19622
19623 cat >>confdefs.h <<_ACEOF
19624 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
19625 _ACEOF
19626
19627
19628 cat >>confdefs.h <<\_ACEOF
19629 #define NLIST_NAME_UNION 1
19630 _ACEOF
19631
19632 fi
19633
19634
19635 fi
19636
19637 done
19638
19639 fi
19640 done
19641
19642
19643 # Some definitions of getloadavg require that the program be installed setgid.
19644 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
19645 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
19646 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
19647 echo $ECHO_N "(cached) $ECHO_C" >&6
19648 else
19649 cat >conftest.$ac_ext <<_ACEOF
19650 /* confdefs.h. */
19651 _ACEOF
19652 cat confdefs.h >>conftest.$ac_ext
19653 cat >>conftest.$ac_ext <<_ACEOF
19654 /* end confdefs.h. */
19655 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
19656 #ifdef LDAV_PRIVILEGED
19657 Yowza Am I SETGID yet
19658 #endif
19659 _ACEOF
19660 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
19661 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
19662 ac_cv_func_getloadavg_setgid=yes
19663 else
19664 ac_cv_func_getloadavg_setgid=no
19665 fi
19666 rm -f conftest*
19667
19668 fi
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
19670 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
19671 if test $ac_cv_func_getloadavg_setgid = yes; then
19672 NEED_SETGID=true
19673
19674 cat >>confdefs.h <<\_ACEOF
19675 #define GETLOADAVG_PRIVILEGED 1
19676 _ACEOF
19677
19678 else
19679 NEED_SETGID=false
19680 fi
19681
19682 if test $ac_cv_func_getloadavg_setgid = yes; then
19683 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
19684 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
19685 if test "${ac_cv_group_kmem+set}" = set; then
19686 echo $ECHO_N "(cached) $ECHO_C" >&6
19687 else
19688 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
19689 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
19690 # If we got an error (system does not support symlinks), try without -L.
19691 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
19692 ac_cv_group_kmem=`echo $ac_ls_output \
19693 | sed -ne 's/[ ][ ]*/ /g;
19694 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
19695 / /s/.* //;p;'`
19696
19697 fi
19698 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
19699 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
19700 KMEM_GROUP=$ac_cv_group_kmem
19701 fi
19702 if test "x$ac_save_LIBS" = x; then
19703 GETLOADAVG_LIBS=$LIBS
19704 else
19705 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
19706 fi
19707 LIBS=$ac_save_LIBS
19708
19709
19710
19711 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
19712 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
19713 if test "${ac_cv_sys_largefile_source+set}" = set; then
19714 echo $ECHO_N "(cached) $ECHO_C" >&6
19715 else
19716 while :; do
19717 ac_cv_sys_largefile_source=no
19718 cat >conftest.$ac_ext <<_ACEOF
19719 /* confdefs.h. */
19720 _ACEOF
19721 cat confdefs.h >>conftest.$ac_ext
19722 cat >>conftest.$ac_ext <<_ACEOF
19723 /* end confdefs.h. */
19724 #include <stdio.h>
19725 int
19726 main ()
19727 {
19728 return !fseeko;
19729 ;
19730 return 0;
19731 }
19732 _ACEOF
19733 rm -f conftest.$ac_objext
19734 if { (ac_try="$ac_compile"
19735 case "(($ac_try" in
19736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19737 *) ac_try_echo=$ac_try;;
19738 esac
19739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19740 (eval "$ac_compile") 2>conftest.er1
19741 ac_status=$?
19742 grep -v '^ *+' conftest.er1 >conftest.err
19743 rm -f conftest.er1
19744 cat conftest.err >&5
19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19746 (exit $ac_status); } &&
19747 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19748 { (case "(($ac_try" in
19749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19750 *) ac_try_echo=$ac_try;;
19751 esac
19752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19753 (eval "$ac_try") 2>&5
19754 ac_status=$?
19755 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19756 (exit $ac_status); }; } &&
19757 { ac_try='test -s conftest.$ac_objext'
19758 { (case "(($ac_try" in
19759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19760 *) ac_try_echo=$ac_try;;
19761 esac
19762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19763 (eval "$ac_try") 2>&5
19764 ac_status=$?
19765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19766 (exit $ac_status); }; }; then
19767 break
19768 else
19769 echo "$as_me: failed program was:" >&5
19770 sed 's/^/| /' conftest.$ac_ext >&5
19771
19772
19773 fi
19774
19775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19776 cat >conftest.$ac_ext <<_ACEOF
19777 /* confdefs.h. */
19778 _ACEOF
19779 cat confdefs.h >>conftest.$ac_ext
19780 cat >>conftest.$ac_ext <<_ACEOF
19781 /* end confdefs.h. */
19782 #define _LARGEFILE_SOURCE 1
19783 #include <stdio.h>
19784 int
19785 main ()
19786 {
19787 return !fseeko;
19788 ;
19789 return 0;
19790 }
19791 _ACEOF
19792 rm -f conftest.$ac_objext
19793 if { (ac_try="$ac_compile"
19794 case "(($ac_try" in
19795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19796 *) ac_try_echo=$ac_try;;
19797 esac
19798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19799 (eval "$ac_compile") 2>conftest.er1
19800 ac_status=$?
19801 grep -v '^ *+' conftest.er1 >conftest.err
19802 rm -f conftest.er1
19803 cat conftest.err >&5
19804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19805 (exit $ac_status); } &&
19806 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19807 { (case "(($ac_try" in
19808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19809 *) ac_try_echo=$ac_try;;
19810 esac
19811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19812 (eval "$ac_try") 2>&5
19813 ac_status=$?
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); }; } &&
19816 { ac_try='test -s conftest.$ac_objext'
19817 { (case "(($ac_try" in
19818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19819 *) ac_try_echo=$ac_try;;
19820 esac
19821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19822 (eval "$ac_try") 2>&5
19823 ac_status=$?
19824 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19825 (exit $ac_status); }; }; then
19826 ac_cv_sys_largefile_source=1; break
19827 else
19828 echo "$as_me: failed program was:" >&5
19829 sed 's/^/| /' conftest.$ac_ext >&5
19830
19831
19832 fi
19833
19834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19835 break
19836 done
19837 fi
19838 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
19839 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
19840 if test "$ac_cv_sys_largefile_source" != no; then
19841
19842 cat >>confdefs.h <<_ACEOF
19843 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
19844 _ACEOF
19845
19846 fi
19847 rm -f conftest*
19848
19849 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
19850 # in glibc 2.1.3, but that breaks too many other things.
19851 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
19852 { echo "$as_me:$LINENO: checking for fseeko" >&5
19853 echo $ECHO_N "checking for fseeko... $ECHO_C" >&6; }
19854 if test "${ac_cv_func_fseeko+set}" = set; then
19855 echo $ECHO_N "(cached) $ECHO_C" >&6
19856 else
19857 cat >conftest.$ac_ext <<_ACEOF
19858 /* confdefs.h. */
19859 _ACEOF
19860 cat confdefs.h >>conftest.$ac_ext
19861 cat >>conftest.$ac_ext <<_ACEOF
19862 /* end confdefs.h. */
19863 #include <stdio.h>
19864 int
19865 main ()
19866 {
19867 return fseeko && fseeko (stdin, 0, 0);
19868 ;
19869 return 0;
19870 }
19871 _ACEOF
19872 rm -f conftest.$ac_objext conftest$ac_exeext
19873 if { (ac_try="$ac_link"
19874 case "(($ac_try" in
19875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19876 *) ac_try_echo=$ac_try;;
19877 esac
19878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19879 (eval "$ac_link") 2>conftest.er1
19880 ac_status=$?
19881 grep -v '^ *+' conftest.er1 >conftest.err
19882 rm -f conftest.er1
19883 cat conftest.err >&5
19884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19885 (exit $ac_status); } &&
19886 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19887 { (case "(($ac_try" in
19888 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19889 *) ac_try_echo=$ac_try;;
19890 esac
19891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19892 (eval "$ac_try") 2>&5
19893 ac_status=$?
19894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19895 (exit $ac_status); }; } &&
19896 { ac_try='test -s conftest$ac_exeext'
19897 { (case "(($ac_try" in
19898 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19899 *) ac_try_echo=$ac_try;;
19900 esac
19901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19902 (eval "$ac_try") 2>&5
19903 ac_status=$?
19904 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19905 (exit $ac_status); }; }; then
19906 ac_cv_func_fseeko=yes
19907 else
19908 echo "$as_me: failed program was:" >&5
19909 sed 's/^/| /' conftest.$ac_ext >&5
19910
19911 ac_cv_func_fseeko=no
19912 fi
19913
19914 rm -f core conftest.err conftest.$ac_objext \
19915 conftest$ac_exeext conftest.$ac_ext
19916 fi
19917 { echo "$as_me:$LINENO: result: $ac_cv_func_fseeko" >&5
19918 echo "${ECHO_T}$ac_cv_func_fseeko" >&6; }
19919 if test $ac_cv_func_fseeko = yes; then
19920
19921 cat >>confdefs.h <<\_ACEOF
19922 #define HAVE_FSEEKO 1
19923 _ACEOF
19924
19925 fi
19926
19927
19928 # Configure getopt.
19929 # getopt.m4 serial 10
19930
19931 # The getopt module assume you want GNU getopt, with getopt_long etc,
19932 # rather than vanilla POSIX getopt. This means your your code should
19933 # always include <getopt.h> for the getopt prototypes.
19934
19935
19936
19937
19938
19939
19940
19941
19942
19943
19944
19945 # Prerequisites of lib/getopt*.
19946
19947
19948
19949
19950 GETOPT_H=
19951
19952 for ac_header in getopt.h
19953 do
19954 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19955 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19959 echo $ECHO_N "(cached) $ECHO_C" >&6
19960 fi
19961 ac_res=`eval echo '${'$as_ac_Header'}'`
19962 { echo "$as_me:$LINENO: result: $ac_res" >&5
19963 echo "${ECHO_T}$ac_res" >&6; }
19964 else
19965 # Is the header compilable?
19966 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19967 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19968 cat >conftest.$ac_ext <<_ACEOF
19969 /* confdefs.h. */
19970 _ACEOF
19971 cat confdefs.h >>conftest.$ac_ext
19972 cat >>conftest.$ac_ext <<_ACEOF
19973 /* end confdefs.h. */
19974 $ac_includes_default
19975 #include <$ac_header>
19976 _ACEOF
19977 rm -f conftest.$ac_objext
19978 if { (ac_try="$ac_compile"
19979 case "(($ac_try" in
19980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19981 *) ac_try_echo=$ac_try;;
19982 esac
19983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19984 (eval "$ac_compile") 2>conftest.er1
19985 ac_status=$?
19986 grep -v '^ *+' conftest.er1 >conftest.err
19987 rm -f conftest.er1
19988 cat conftest.err >&5
19989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19990 (exit $ac_status); } &&
19991 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19992 { (case "(($ac_try" in
19993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19994 *) ac_try_echo=$ac_try;;
19995 esac
19996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19997 (eval "$ac_try") 2>&5
19998 ac_status=$?
19999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20000 (exit $ac_status); }; } &&
20001 { ac_try='test -s conftest.$ac_objext'
20002 { (case "(($ac_try" in
20003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20004 *) ac_try_echo=$ac_try;;
20005 esac
20006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20007 (eval "$ac_try") 2>&5
20008 ac_status=$?
20009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20010 (exit $ac_status); }; }; then
20011 ac_header_compiler=yes
20012 else
20013 echo "$as_me: failed program was:" >&5
20014 sed 's/^/| /' conftest.$ac_ext >&5
20015
20016 ac_header_compiler=no
20017 fi
20018
20019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20020 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20021 echo "${ECHO_T}$ac_header_compiler" >&6; }
20022
20023 # Is the header present?
20024 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20025 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20026 cat >conftest.$ac_ext <<_ACEOF
20027 /* confdefs.h. */
20028 _ACEOF
20029 cat confdefs.h >>conftest.$ac_ext
20030 cat >>conftest.$ac_ext <<_ACEOF
20031 /* end confdefs.h. */
20032 #include <$ac_header>
20033 _ACEOF
20034 if { (ac_try="$ac_cpp conftest.$ac_ext"
20035 case "(($ac_try" in
20036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20037 *) ac_try_echo=$ac_try;;
20038 esac
20039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20040 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20041 ac_status=$?
20042 grep -v '^ *+' conftest.er1 >conftest.err
20043 rm -f conftest.er1
20044 cat conftest.err >&5
20045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20046 (exit $ac_status); } >/dev/null; then
20047 if test -s conftest.err; then
20048 ac_cpp_err=$ac_c_preproc_warn_flag
20049 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
20050 else
20051 ac_cpp_err=
20052 fi
20053 else
20054 ac_cpp_err=yes
20055 fi
20056 if test -z "$ac_cpp_err"; then
20057 ac_header_preproc=yes
20058 else
20059 echo "$as_me: failed program was:" >&5
20060 sed 's/^/| /' conftest.$ac_ext >&5
20061
20062 ac_header_preproc=no
20063 fi
20064
20065 rm -f conftest.err conftest.$ac_ext
20066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20067 echo "${ECHO_T}$ac_header_preproc" >&6; }
20068
20069 # So? What about this header?
20070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20071 yes:no: )
20072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20076 ac_header_preproc=yes
20077 ;;
20078 no:yes:* )
20079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20091
20092 ;;
20093 esac
20094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20097 echo $ECHO_N "(cached) $ECHO_C" >&6
20098 else
20099 eval "$as_ac_Header=\$ac_header_preproc"
20100 fi
20101 ac_res=`eval echo '${'$as_ac_Header'}'`
20102 { echo "$as_me:$LINENO: result: $ac_res" >&5
20103 echo "${ECHO_T}$ac_res" >&6; }
20104
20105 fi
20106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20107 cat >>confdefs.h <<_ACEOF
20108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20109 _ACEOF
20110
20111 else
20112 GETOPT_H=getopt.h
20113 fi
20114
20115 done
20116
20117 if test -z "$GETOPT_H"; then
20118
20119 for ac_func in getopt_long_only
20120 do
20121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20125 echo $ECHO_N "(cached) $ECHO_C" >&6
20126 else
20127 cat >conftest.$ac_ext <<_ACEOF
20128 /* confdefs.h. */
20129 _ACEOF
20130 cat confdefs.h >>conftest.$ac_ext
20131 cat >>conftest.$ac_ext <<_ACEOF
20132 /* end confdefs.h. */
20133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20135 #define $ac_func innocuous_$ac_func
20136
20137 /* System header to define __stub macros and hopefully few prototypes,
20138 which can conflict with char $ac_func (); below.
20139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20140 <limits.h> exists even on freestanding compilers. */
20141
20142 #ifdef __STDC__
20143 # include <limits.h>
20144 #else
20145 # include <assert.h>
20146 #endif
20147
20148 #undef $ac_func
20149
20150 /* Override any GCC internal prototype to avoid an error.
20151 Use char because int might match the return type of a GCC
20152 builtin and then its argument prototype would still apply. */
20153 #ifdef __cplusplus
20154 extern "C"
20155 #endif
20156 char $ac_func ();
20157 /* The GNU C library defines this for functions which it implements
20158 to always fail with ENOSYS. Some functions are actually named
20159 something starting with __ and the normal name is an alias. */
20160 #if defined __stub_$ac_func || defined __stub___$ac_func
20161 choke me
20162 #endif
20163
20164 int
20165 main ()
20166 {
20167 return $ac_func ();
20168 ;
20169 return 0;
20170 }
20171 _ACEOF
20172 rm -f conftest.$ac_objext conftest$ac_exeext
20173 if { (ac_try="$ac_link"
20174 case "(($ac_try" in
20175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20176 *) ac_try_echo=$ac_try;;
20177 esac
20178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20179 (eval "$ac_link") 2>conftest.er1
20180 ac_status=$?
20181 grep -v '^ *+' conftest.er1 >conftest.err
20182 rm -f conftest.er1
20183 cat conftest.err >&5
20184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20185 (exit $ac_status); } &&
20186 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20187 { (case "(($ac_try" in
20188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20189 *) ac_try_echo=$ac_try;;
20190 esac
20191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20192 (eval "$ac_try") 2>&5
20193 ac_status=$?
20194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20195 (exit $ac_status); }; } &&
20196 { ac_try='test -s conftest$ac_exeext'
20197 { (case "(($ac_try" in
20198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20199 *) ac_try_echo=$ac_try;;
20200 esac
20201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20202 (eval "$ac_try") 2>&5
20203 ac_status=$?
20204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20205 (exit $ac_status); }; }; then
20206 eval "$as_ac_var=yes"
20207 else
20208 echo "$as_me: failed program was:" >&5
20209 sed 's/^/| /' conftest.$ac_ext >&5
20210
20211 eval "$as_ac_var=no"
20212 fi
20213
20214 rm -f core conftest.err conftest.$ac_objext \
20215 conftest$ac_exeext conftest.$ac_ext
20216 fi
20217 ac_res=`eval echo '${'$as_ac_var'}'`
20218 { echo "$as_me:$LINENO: result: $ac_res" >&5
20219 echo "${ECHO_T}$ac_res" >&6; }
20220 if test `eval echo '${'$as_ac_var'}'` = yes; then
20221 cat >>confdefs.h <<_ACEOF
20222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20223 _ACEOF
20224
20225 else
20226 GETOPT_H=getopt.h
20227 fi
20228 done
20229
20230 fi
20231
20232 if test -z "$GETOPT_H"; then
20233 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
20234 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
20235 if test "${ac_cv_have_decl_optreset+set}" = set; then
20236 echo $ECHO_N "(cached) $ECHO_C" >&6
20237 else
20238 cat >conftest.$ac_ext <<_ACEOF
20239 /* confdefs.h. */
20240 _ACEOF
20241 cat confdefs.h >>conftest.$ac_ext
20242 cat >>conftest.$ac_ext <<_ACEOF
20243 /* end confdefs.h. */
20244 #include <getopt.h>
20245
20246 int
20247 main ()
20248 {
20249 #ifndef optreset
20250 char *p = (char *) optreset;
20251 return !p;
20252 #endif
20253
20254 ;
20255 return 0;
20256 }
20257 _ACEOF
20258 rm -f conftest.$ac_objext
20259 if { (ac_try="$ac_compile"
20260 case "(($ac_try" in
20261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20262 *) ac_try_echo=$ac_try;;
20263 esac
20264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20265 (eval "$ac_compile") 2>conftest.er1
20266 ac_status=$?
20267 grep -v '^ *+' conftest.er1 >conftest.err
20268 rm -f conftest.er1
20269 cat conftest.err >&5
20270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271 (exit $ac_status); } &&
20272 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20273 { (case "(($ac_try" in
20274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275 *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278 (eval "$ac_try") 2>&5
20279 ac_status=$?
20280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281 (exit $ac_status); }; } &&
20282 { ac_try='test -s conftest.$ac_objext'
20283 { (case "(($ac_try" in
20284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20285 *) ac_try_echo=$ac_try;;
20286 esac
20287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20288 (eval "$ac_try") 2>&5
20289 ac_status=$?
20290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20291 (exit $ac_status); }; }; then
20292 ac_cv_have_decl_optreset=yes
20293 else
20294 echo "$as_me: failed program was:" >&5
20295 sed 's/^/| /' conftest.$ac_ext >&5
20296
20297 ac_cv_have_decl_optreset=no
20298 fi
20299
20300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20301 fi
20302 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
20303 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
20304 if test $ac_cv_have_decl_optreset = yes; then
20305 GETOPT_H=getopt.h
20306 fi
20307
20308 fi
20309
20310 if test -z "$GETOPT_H"; then
20311 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
20312 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
20313 if test "${gl_cv_func_gnu_getopt+set}" = set; then
20314 echo $ECHO_N "(cached) $ECHO_C" >&6
20315 else
20316 if test "$cross_compiling" = yes; then
20317 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
20318 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
20319 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
20320 echo $ECHO_N "(cached) $ECHO_C" >&6
20321 else
20322 cat >conftest.$ac_ext <<_ACEOF
20323 /* confdefs.h. */
20324 _ACEOF
20325 cat confdefs.h >>conftest.$ac_ext
20326 cat >>conftest.$ac_ext <<_ACEOF
20327 /* end confdefs.h. */
20328 #include <getopt.h>
20329
20330 int
20331 main ()
20332 {
20333 #ifndef getopt_clip
20334 char *p = (char *) getopt_clip;
20335 return !p;
20336 #endif
20337
20338 ;
20339 return 0;
20340 }
20341 _ACEOF
20342 rm -f conftest.$ac_objext
20343 if { (ac_try="$ac_compile"
20344 case "(($ac_try" in
20345 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20346 *) ac_try_echo=$ac_try;;
20347 esac
20348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20349 (eval "$ac_compile") 2>conftest.er1
20350 ac_status=$?
20351 grep -v '^ *+' conftest.er1 >conftest.err
20352 rm -f conftest.er1
20353 cat conftest.err >&5
20354 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20355 (exit $ac_status); } &&
20356 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20357 { (case "(($ac_try" in
20358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20359 *) ac_try_echo=$ac_try;;
20360 esac
20361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20362 (eval "$ac_try") 2>&5
20363 ac_status=$?
20364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20365 (exit $ac_status); }; } &&
20366 { ac_try='test -s conftest.$ac_objext'
20367 { (case "(($ac_try" in
20368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20369 *) ac_try_echo=$ac_try;;
20370 esac
20371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20372 (eval "$ac_try") 2>&5
20373 ac_status=$?
20374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20375 (exit $ac_status); }; }; then
20376 ac_cv_have_decl_getopt_clip=yes
20377 else
20378 echo "$as_me: failed program was:" >&5
20379 sed 's/^/| /' conftest.$ac_ext >&5
20380
20381 ac_cv_have_decl_getopt_clip=no
20382 fi
20383
20384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20385 fi
20386 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
20387 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
20388 if test $ac_cv_have_decl_getopt_clip = yes; then
20389 gl_cv_func_gnu_getopt=no
20390 else
20391 gl_cv_func_gnu_getopt=yes
20392 fi
20393
20394 else
20395 cat >conftest.$ac_ext <<_ACEOF
20396 /* confdefs.h. */
20397 _ACEOF
20398 cat confdefs.h >>conftest.$ac_ext
20399 cat >>conftest.$ac_ext <<_ACEOF
20400 /* end confdefs.h. */
20401 #include <getopt.h>
20402 int
20403 main ()
20404 {
20405
20406 char *myargv[3];
20407 myargv[0] = "conftest";
20408 myargv[1] = "-+";
20409 myargv[2] = 0;
20410 return getopt (2, myargv, "+a") != '?';
20411
20412 ;
20413 return 0;
20414 }
20415 _ACEOF
20416 rm -f conftest$ac_exeext
20417 if { (ac_try="$ac_link"
20418 case "(($ac_try" in
20419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20420 *) ac_try_echo=$ac_try;;
20421 esac
20422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20423 (eval "$ac_link") 2>&5
20424 ac_status=$?
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20427 { (case "(($ac_try" in
20428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20429 *) ac_try_echo=$ac_try;;
20430 esac
20431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20432 (eval "$ac_try") 2>&5
20433 ac_status=$?
20434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20435 (exit $ac_status); }; }; then
20436 gl_cv_func_gnu_getopt=yes
20437 else
20438 echo "$as_me: program exited with status $ac_status" >&5
20439 echo "$as_me: failed program was:" >&5
20440 sed 's/^/| /' conftest.$ac_ext >&5
20441
20442 ( exit $ac_status )
20443 gl_cv_func_gnu_getopt=no
20444 fi
20445 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20446 fi
20447
20448
20449 fi
20450 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
20451 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
20452 if test "$gl_cv_func_gnu_getopt" = "no"; then
20453 GETOPT_H=getopt.h
20454 fi
20455 fi
20456
20457
20458
20459 if test -n "$GETOPT_H"; then
20460
20461
20462 GETOPT_H=getopt.h
20463
20464 cat >>confdefs.h <<\_ACEOF
20465 #define __GETOPT_PREFIX rpl_
20466 _ACEOF
20467
20468
20469
20470 :
20471 GETOPTOBJS='getopt.o getopt1.o'
20472
20473 fi
20474
20475
20476
20477
20478 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
20479 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
20480 if test "${ac_cv_func_getpgrp_void+set}" = set; then
20481 echo $ECHO_N "(cached) $ECHO_C" >&6
20482 else
20483 # Use it with a single arg.
20484 cat >conftest.$ac_ext <<_ACEOF
20485 /* confdefs.h. */
20486 _ACEOF
20487 cat confdefs.h >>conftest.$ac_ext
20488 cat >>conftest.$ac_ext <<_ACEOF
20489 /* end confdefs.h. */
20490 $ac_includes_default
20491 int
20492 main ()
20493 {
20494 getpgrp (0);
20495 ;
20496 return 0;
20497 }
20498 _ACEOF
20499 rm -f conftest.$ac_objext
20500 if { (ac_try="$ac_compile"
20501 case "(($ac_try" in
20502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20503 *) ac_try_echo=$ac_try;;
20504 esac
20505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20506 (eval "$ac_compile") 2>conftest.er1
20507 ac_status=$?
20508 grep -v '^ *+' conftest.er1 >conftest.err
20509 rm -f conftest.er1
20510 cat conftest.err >&5
20511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20512 (exit $ac_status); } &&
20513 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20514 { (case "(($ac_try" in
20515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20516 *) ac_try_echo=$ac_try;;
20517 esac
20518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20519 (eval "$ac_try") 2>&5
20520 ac_status=$?
20521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20522 (exit $ac_status); }; } &&
20523 { ac_try='test -s conftest.$ac_objext'
20524 { (case "(($ac_try" in
20525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20526 *) ac_try_echo=$ac_try;;
20527 esac
20528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20529 (eval "$ac_try") 2>&5
20530 ac_status=$?
20531 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20532 (exit $ac_status); }; }; then
20533 ac_cv_func_getpgrp_void=no
20534 else
20535 echo "$as_me: failed program was:" >&5
20536 sed 's/^/| /' conftest.$ac_ext >&5
20537
20538 ac_cv_func_getpgrp_void=yes
20539 fi
20540
20541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20542
20543 fi
20544 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
20545 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
20546 if test $ac_cv_func_getpgrp_void = yes; then
20547
20548 cat >>confdefs.h <<\_ACEOF
20549 #define GETPGRP_VOID 1
20550 _ACEOF
20551
20552 fi
20553
20554
20555
20556 for ac_func in strftime
20557 do
20558 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20559 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20560 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20561 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20562 echo $ECHO_N "(cached) $ECHO_C" >&6
20563 else
20564 cat >conftest.$ac_ext <<_ACEOF
20565 /* confdefs.h. */
20566 _ACEOF
20567 cat confdefs.h >>conftest.$ac_ext
20568 cat >>conftest.$ac_ext <<_ACEOF
20569 /* end confdefs.h. */
20570 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20571 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20572 #define $ac_func innocuous_$ac_func
20573
20574 /* System header to define __stub macros and hopefully few prototypes,
20575 which can conflict with char $ac_func (); below.
20576 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20577 <limits.h> exists even on freestanding compilers. */
20578
20579 #ifdef __STDC__
20580 # include <limits.h>
20581 #else
20582 # include <assert.h>
20583 #endif
20584
20585 #undef $ac_func
20586
20587 /* Override any GCC internal prototype to avoid an error.
20588 Use char because int might match the return type of a GCC
20589 builtin and then its argument prototype would still apply. */
20590 #ifdef __cplusplus
20591 extern "C"
20592 #endif
20593 char $ac_func ();
20594 /* The GNU C library defines this for functions which it implements
20595 to always fail with ENOSYS. Some functions are actually named
20596 something starting with __ and the normal name is an alias. */
20597 #if defined __stub_$ac_func || defined __stub___$ac_func
20598 choke me
20599 #endif
20600
20601 int
20602 main ()
20603 {
20604 return $ac_func ();
20605 ;
20606 return 0;
20607 }
20608 _ACEOF
20609 rm -f conftest.$ac_objext conftest$ac_exeext
20610 if { (ac_try="$ac_link"
20611 case "(($ac_try" in
20612 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20613 *) ac_try_echo=$ac_try;;
20614 esac
20615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20616 (eval "$ac_link") 2>conftest.er1
20617 ac_status=$?
20618 grep -v '^ *+' conftest.er1 >conftest.err
20619 rm -f conftest.er1
20620 cat conftest.err >&5
20621 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20622 (exit $ac_status); } &&
20623 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20624 { (case "(($ac_try" in
20625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20626 *) ac_try_echo=$ac_try;;
20627 esac
20628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20629 (eval "$ac_try") 2>&5
20630 ac_status=$?
20631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20632 (exit $ac_status); }; } &&
20633 { ac_try='test -s conftest$ac_exeext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 eval "$as_ac_var=yes"
20644 else
20645 echo "$as_me: failed program was:" >&5
20646 sed 's/^/| /' conftest.$ac_ext >&5
20647
20648 eval "$as_ac_var=no"
20649 fi
20650
20651 rm -f core conftest.err conftest.$ac_objext \
20652 conftest$ac_exeext conftest.$ac_ext
20653 fi
20654 ac_res=`eval echo '${'$as_ac_var'}'`
20655 { echo "$as_me:$LINENO: result: $ac_res" >&5
20656 echo "${ECHO_T}$ac_res" >&6; }
20657 if test `eval echo '${'$as_ac_var'}'` = yes; then
20658 cat >>confdefs.h <<_ACEOF
20659 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20660 _ACEOF
20661
20662 else
20663 # strftime is in -lintl on SCO UNIX.
20664 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
20665 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
20666 if test "${ac_cv_lib_intl_strftime+set}" = set; then
20667 echo $ECHO_N "(cached) $ECHO_C" >&6
20668 else
20669 ac_check_lib_save_LIBS=$LIBS
20670 LIBS="-lintl $LIBS"
20671 cat >conftest.$ac_ext <<_ACEOF
20672 /* confdefs.h. */
20673 _ACEOF
20674 cat confdefs.h >>conftest.$ac_ext
20675 cat >>conftest.$ac_ext <<_ACEOF
20676 /* end confdefs.h. */
20677
20678 /* Override any GCC internal prototype to avoid an error.
20679 Use char because int might match the return type of a GCC
20680 builtin and then its argument prototype would still apply. */
20681 #ifdef __cplusplus
20682 extern "C"
20683 #endif
20684 char strftime ();
20685 int
20686 main ()
20687 {
20688 return strftime ();
20689 ;
20690 return 0;
20691 }
20692 _ACEOF
20693 rm -f conftest.$ac_objext conftest$ac_exeext
20694 if { (ac_try="$ac_link"
20695 case "(($ac_try" in
20696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20697 *) ac_try_echo=$ac_try;;
20698 esac
20699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20700 (eval "$ac_link") 2>conftest.er1
20701 ac_status=$?
20702 grep -v '^ *+' conftest.er1 >conftest.err
20703 rm -f conftest.er1
20704 cat conftest.err >&5
20705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20706 (exit $ac_status); } &&
20707 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20708 { (case "(($ac_try" in
20709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20710 *) ac_try_echo=$ac_try;;
20711 esac
20712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20713 (eval "$ac_try") 2>&5
20714 ac_status=$?
20715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20716 (exit $ac_status); }; } &&
20717 { ac_try='test -s conftest$ac_exeext'
20718 { (case "(($ac_try" in
20719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20720 *) ac_try_echo=$ac_try;;
20721 esac
20722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20723 (eval "$ac_try") 2>&5
20724 ac_status=$?
20725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20726 (exit $ac_status); }; }; then
20727 ac_cv_lib_intl_strftime=yes
20728 else
20729 echo "$as_me: failed program was:" >&5
20730 sed 's/^/| /' conftest.$ac_ext >&5
20731
20732 ac_cv_lib_intl_strftime=no
20733 fi
20734
20735 rm -f core conftest.err conftest.$ac_objext \
20736 conftest$ac_exeext conftest.$ac_ext
20737 LIBS=$ac_check_lib_save_LIBS
20738 fi
20739 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
20740 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
20741 if test $ac_cv_lib_intl_strftime = yes; then
20742 cat >>confdefs.h <<\_ACEOF
20743 #define HAVE_STRFTIME 1
20744 _ACEOF
20745
20746 LIBS="-lintl $LIBS"
20747 fi
20748
20749 fi
20750 done
20751
20752
20753 # UNIX98 PTYs.
20754
20755 for ac_func in grantpt
20756 do
20757 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20758 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20759 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20760 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20761 echo $ECHO_N "(cached) $ECHO_C" >&6
20762 else
20763 cat >conftest.$ac_ext <<_ACEOF
20764 /* confdefs.h. */
20765 _ACEOF
20766 cat confdefs.h >>conftest.$ac_ext
20767 cat >>conftest.$ac_ext <<_ACEOF
20768 /* end confdefs.h. */
20769 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20770 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20771 #define $ac_func innocuous_$ac_func
20772
20773 /* System header to define __stub macros and hopefully few prototypes,
20774 which can conflict with char $ac_func (); below.
20775 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20776 <limits.h> exists even on freestanding compilers. */
20777
20778 #ifdef __STDC__
20779 # include <limits.h>
20780 #else
20781 # include <assert.h>
20782 #endif
20783
20784 #undef $ac_func
20785
20786 /* Override any GCC internal prototype to avoid an error.
20787 Use char because int might match the return type of a GCC
20788 builtin and then its argument prototype would still apply. */
20789 #ifdef __cplusplus
20790 extern "C"
20791 #endif
20792 char $ac_func ();
20793 /* The GNU C library defines this for functions which it implements
20794 to always fail with ENOSYS. Some functions are actually named
20795 something starting with __ and the normal name is an alias. */
20796 #if defined __stub_$ac_func || defined __stub___$ac_func
20797 choke me
20798 #endif
20799
20800 int
20801 main ()
20802 {
20803 return $ac_func ();
20804 ;
20805 return 0;
20806 }
20807 _ACEOF
20808 rm -f conftest.$ac_objext conftest$ac_exeext
20809 if { (ac_try="$ac_link"
20810 case "(($ac_try" in
20811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20812 *) ac_try_echo=$ac_try;;
20813 esac
20814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20815 (eval "$ac_link") 2>conftest.er1
20816 ac_status=$?
20817 grep -v '^ *+' conftest.er1 >conftest.err
20818 rm -f conftest.er1
20819 cat conftest.err >&5
20820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20821 (exit $ac_status); } &&
20822 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20823 { (case "(($ac_try" in
20824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20825 *) ac_try_echo=$ac_try;;
20826 esac
20827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20828 (eval "$ac_try") 2>&5
20829 ac_status=$?
20830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20831 (exit $ac_status); }; } &&
20832 { ac_try='test -s conftest$ac_exeext'
20833 { (case "(($ac_try" in
20834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20835 *) ac_try_echo=$ac_try;;
20836 esac
20837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20838 (eval "$ac_try") 2>&5
20839 ac_status=$?
20840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20841 (exit $ac_status); }; }; then
20842 eval "$as_ac_var=yes"
20843 else
20844 echo "$as_me: failed program was:" >&5
20845 sed 's/^/| /' conftest.$ac_ext >&5
20846
20847 eval "$as_ac_var=no"
20848 fi
20849
20850 rm -f core conftest.err conftest.$ac_objext \
20851 conftest$ac_exeext conftest.$ac_ext
20852 fi
20853 ac_res=`eval echo '${'$as_ac_var'}'`
20854 { echo "$as_me:$LINENO: result: $ac_res" >&5
20855 echo "${ECHO_T}$ac_res" >&6; }
20856 if test `eval echo '${'$as_ac_var'}'` = yes; then
20857 cat >>confdefs.h <<_ACEOF
20858 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20859 _ACEOF
20860
20861 fi
20862 done
20863
20864
20865 # PTY-related GNU extensions.
20866
20867 for ac_func in getpt
20868 do
20869 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20870 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20871 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20872 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20873 echo $ECHO_N "(cached) $ECHO_C" >&6
20874 else
20875 cat >conftest.$ac_ext <<_ACEOF
20876 /* confdefs.h. */
20877 _ACEOF
20878 cat confdefs.h >>conftest.$ac_ext
20879 cat >>conftest.$ac_ext <<_ACEOF
20880 /* end confdefs.h. */
20881 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20882 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20883 #define $ac_func innocuous_$ac_func
20884
20885 /* System header to define __stub macros and hopefully few prototypes,
20886 which can conflict with char $ac_func (); below.
20887 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20888 <limits.h> exists even on freestanding compilers. */
20889
20890 #ifdef __STDC__
20891 # include <limits.h>
20892 #else
20893 # include <assert.h>
20894 #endif
20895
20896 #undef $ac_func
20897
20898 /* Override any GCC internal prototype to avoid an error.
20899 Use char because int might match the return type of a GCC
20900 builtin and then its argument prototype would still apply. */
20901 #ifdef __cplusplus
20902 extern "C"
20903 #endif
20904 char $ac_func ();
20905 /* The GNU C library defines this for functions which it implements
20906 to always fail with ENOSYS. Some functions are actually named
20907 something starting with __ and the normal name is an alias. */
20908 #if defined __stub_$ac_func || defined __stub___$ac_func
20909 choke me
20910 #endif
20911
20912 int
20913 main ()
20914 {
20915 return $ac_func ();
20916 ;
20917 return 0;
20918 }
20919 _ACEOF
20920 rm -f conftest.$ac_objext conftest$ac_exeext
20921 if { (ac_try="$ac_link"
20922 case "(($ac_try" in
20923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20924 *) ac_try_echo=$ac_try;;
20925 esac
20926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20927 (eval "$ac_link") 2>conftest.er1
20928 ac_status=$?
20929 grep -v '^ *+' conftest.er1 >conftest.err
20930 rm -f conftest.er1
20931 cat conftest.err >&5
20932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20933 (exit $ac_status); } &&
20934 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20935 { (case "(($ac_try" in
20936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20937 *) ac_try_echo=$ac_try;;
20938 esac
20939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20940 (eval "$ac_try") 2>&5
20941 ac_status=$?
20942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20943 (exit $ac_status); }; } &&
20944 { ac_try='test -s conftest$ac_exeext'
20945 { (case "(($ac_try" in
20946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20947 *) ac_try_echo=$ac_try;;
20948 esac
20949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20950 (eval "$ac_try") 2>&5
20951 ac_status=$?
20952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20953 (exit $ac_status); }; }; then
20954 eval "$as_ac_var=yes"
20955 else
20956 echo "$as_me: failed program was:" >&5
20957 sed 's/^/| /' conftest.$ac_ext >&5
20958
20959 eval "$as_ac_var=no"
20960 fi
20961
20962 rm -f core conftest.err conftest.$ac_objext \
20963 conftest$ac_exeext conftest.$ac_ext
20964 fi
20965 ac_res=`eval echo '${'$as_ac_var'}'`
20966 { echo "$as_me:$LINENO: result: $ac_res" >&5
20967 echo "${ECHO_T}$ac_res" >&6; }
20968 if test `eval echo '${'$as_ac_var'}'` = yes; then
20969 cat >>confdefs.h <<_ACEOF
20970 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20971 _ACEOF
20972
20973 fi
20974 done
20975
20976
20977 # Check this now, so that we will NOT find the above functions in ncurses.
20978 # That is because we have not set up to link ncurses in lib-src.
20979 # It's better to believe a function is not available
20980 # than to expect to find it in ncurses.
20981
20982 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
20983 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
20984 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 else
20987 ac_check_lib_save_LIBS=$LIBS
20988 LIBS="-lncurses $LIBS"
20989 cat >conftest.$ac_ext <<_ACEOF
20990 /* confdefs.h. */
20991 _ACEOF
20992 cat confdefs.h >>conftest.$ac_ext
20993 cat >>conftest.$ac_ext <<_ACEOF
20994 /* end confdefs.h. */
20995
20996 /* Override any GCC internal prototype to avoid an error.
20997 Use char because int might match the return type of a GCC
20998 builtin and then its argument prototype would still apply. */
20999 #ifdef __cplusplus
21000 extern "C"
21001 #endif
21002 char tparm ();
21003 int
21004 main ()
21005 {
21006 return tparm ();
21007 ;
21008 return 0;
21009 }
21010 _ACEOF
21011 rm -f conftest.$ac_objext conftest$ac_exeext
21012 if { (ac_try="$ac_link"
21013 case "(($ac_try" in
21014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21015 *) ac_try_echo=$ac_try;;
21016 esac
21017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21018 (eval "$ac_link") 2>conftest.er1
21019 ac_status=$?
21020 grep -v '^ *+' conftest.er1 >conftest.err
21021 rm -f conftest.er1
21022 cat conftest.err >&5
21023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21024 (exit $ac_status); } &&
21025 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21026 { (case "(($ac_try" in
21027 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21028 *) ac_try_echo=$ac_try;;
21029 esac
21030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21031 (eval "$ac_try") 2>&5
21032 ac_status=$?
21033 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21034 (exit $ac_status); }; } &&
21035 { ac_try='test -s conftest$ac_exeext'
21036 { (case "(($ac_try" in
21037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21038 *) ac_try_echo=$ac_try;;
21039 esac
21040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21041 (eval "$ac_try") 2>&5
21042 ac_status=$?
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); }; }; then
21045 ac_cv_lib_ncurses_tparm=yes
21046 else
21047 echo "$as_me: failed program was:" >&5
21048 sed 's/^/| /' conftest.$ac_ext >&5
21049
21050 ac_cv_lib_ncurses_tparm=no
21051 fi
21052
21053 rm -f core conftest.err conftest.$ac_objext \
21054 conftest$ac_exeext conftest.$ac_ext
21055 LIBS=$ac_check_lib_save_LIBS
21056 fi
21057 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
21058 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
21059 if test $ac_cv_lib_ncurses_tparm = yes; then
21060 cat >>confdefs.h <<_ACEOF
21061 #define HAVE_LIBNCURSES 1
21062 _ACEOF
21063
21064 LIBS="-lncurses $LIBS"
21065
21066 fi
21067
21068
21069 # Do we need the Hesiod library to provide the support routines?
21070 if test "$with_hesiod" = yes ; then
21071 # Don't set $LIBS here -- see comments above.
21072 resolv=no
21073 { echo "$as_me:$LINENO: checking for res_send" >&5
21074 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
21075 if test "${ac_cv_func_res_send+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078 cat >conftest.$ac_ext <<_ACEOF
21079 /* confdefs.h. */
21080 _ACEOF
21081 cat confdefs.h >>conftest.$ac_ext
21082 cat >>conftest.$ac_ext <<_ACEOF
21083 /* end confdefs.h. */
21084 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
21085 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21086 #define res_send innocuous_res_send
21087
21088 /* System header to define __stub macros and hopefully few prototypes,
21089 which can conflict with char res_send (); below.
21090 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21091 <limits.h> exists even on freestanding compilers. */
21092
21093 #ifdef __STDC__
21094 # include <limits.h>
21095 #else
21096 # include <assert.h>
21097 #endif
21098
21099 #undef res_send
21100
21101 /* Override any GCC internal prototype to avoid an error.
21102 Use char because int might match the return type of a GCC
21103 builtin and then its argument prototype would still apply. */
21104 #ifdef __cplusplus
21105 extern "C"
21106 #endif
21107 char res_send ();
21108 /* The GNU C library defines this for functions which it implements
21109 to always fail with ENOSYS. Some functions are actually named
21110 something starting with __ and the normal name is an alias. */
21111 #if defined __stub_res_send || defined __stub___res_send
21112 choke me
21113 #endif
21114
21115 int
21116 main ()
21117 {
21118 return res_send ();
21119 ;
21120 return 0;
21121 }
21122 _ACEOF
21123 rm -f conftest.$ac_objext conftest$ac_exeext
21124 if { (ac_try="$ac_link"
21125 case "(($ac_try" in
21126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21127 *) ac_try_echo=$ac_try;;
21128 esac
21129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21130 (eval "$ac_link") 2>conftest.er1
21131 ac_status=$?
21132 grep -v '^ *+' conftest.er1 >conftest.err
21133 rm -f conftest.er1
21134 cat conftest.err >&5
21135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21136 (exit $ac_status); } &&
21137 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21138 { (case "(($ac_try" in
21139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21140 *) ac_try_echo=$ac_try;;
21141 esac
21142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21143 (eval "$ac_try") 2>&5
21144 ac_status=$?
21145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21146 (exit $ac_status); }; } &&
21147 { ac_try='test -s conftest$ac_exeext'
21148 { (case "(($ac_try" in
21149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21150 *) ac_try_echo=$ac_try;;
21151 esac
21152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21153 (eval "$ac_try") 2>&5
21154 ac_status=$?
21155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21156 (exit $ac_status); }; }; then
21157 ac_cv_func_res_send=yes
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 ac_cv_func_res_send=no
21163 fi
21164
21165 rm -f core conftest.err conftest.$ac_objext \
21166 conftest$ac_exeext conftest.$ac_ext
21167 fi
21168 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
21169 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
21170 if test $ac_cv_func_res_send = yes; then
21171 :
21172 else
21173 { echo "$as_me:$LINENO: checking for __res_send" >&5
21174 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
21175 if test "${ac_cv_func___res_send+set}" = set; then
21176 echo $ECHO_N "(cached) $ECHO_C" >&6
21177 else
21178 cat >conftest.$ac_ext <<_ACEOF
21179 /* confdefs.h. */
21180 _ACEOF
21181 cat confdefs.h >>conftest.$ac_ext
21182 cat >>conftest.$ac_ext <<_ACEOF
21183 /* end confdefs.h. */
21184 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define __res_send innocuous___res_send
21187
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char __res_send (); below.
21190 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21191 <limits.h> exists even on freestanding compilers. */
21192
21193 #ifdef __STDC__
21194 # include <limits.h>
21195 #else
21196 # include <assert.h>
21197 #endif
21198
21199 #undef __res_send
21200
21201 /* Override any GCC internal prototype to avoid an error.
21202 Use char because int might match the return type of a GCC
21203 builtin and then its argument prototype would still apply. */
21204 #ifdef __cplusplus
21205 extern "C"
21206 #endif
21207 char __res_send ();
21208 /* The GNU C library defines this for functions which it implements
21209 to always fail with ENOSYS. Some functions are actually named
21210 something starting with __ and the normal name is an alias. */
21211 #if defined __stub___res_send || defined __stub_____res_send
21212 choke me
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 return __res_send ();
21219 ;
21220 return 0;
21221 }
21222 _ACEOF
21223 rm -f conftest.$ac_objext conftest$ac_exeext
21224 if { (ac_try="$ac_link"
21225 case "(($ac_try" in
21226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21227 *) ac_try_echo=$ac_try;;
21228 esac
21229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21230 (eval "$ac_link") 2>conftest.er1
21231 ac_status=$?
21232 grep -v '^ *+' conftest.er1 >conftest.err
21233 rm -f conftest.er1
21234 cat conftest.err >&5
21235 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21236 (exit $ac_status); } &&
21237 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21238 { (case "(($ac_try" in
21239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21240 *) ac_try_echo=$ac_try;;
21241 esac
21242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21243 (eval "$ac_try") 2>&5
21244 ac_status=$?
21245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21246 (exit $ac_status); }; } &&
21247 { ac_try='test -s conftest$ac_exeext'
21248 { (case "(($ac_try" in
21249 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21250 *) ac_try_echo=$ac_try;;
21251 esac
21252 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21253 (eval "$ac_try") 2>&5
21254 ac_status=$?
21255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21256 (exit $ac_status); }; }; then
21257 ac_cv_func___res_send=yes
21258 else
21259 echo "$as_me: failed program was:" >&5
21260 sed 's/^/| /' conftest.$ac_ext >&5
21261
21262 ac_cv_func___res_send=no
21263 fi
21264
21265 rm -f core conftest.err conftest.$ac_objext \
21266 conftest$ac_exeext conftest.$ac_ext
21267 fi
21268 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
21269 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
21270 if test $ac_cv_func___res_send = yes; then
21271 :
21272 else
21273 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
21274 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
21275 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
21276 echo $ECHO_N "(cached) $ECHO_C" >&6
21277 else
21278 ac_check_lib_save_LIBS=$LIBS
21279 LIBS="-lresolv $LIBS"
21280 cat >conftest.$ac_ext <<_ACEOF
21281 /* confdefs.h. */
21282 _ACEOF
21283 cat confdefs.h >>conftest.$ac_ext
21284 cat >>conftest.$ac_ext <<_ACEOF
21285 /* end confdefs.h. */
21286
21287 /* Override any GCC internal prototype to avoid an error.
21288 Use char because int might match the return type of a GCC
21289 builtin and then its argument prototype would still apply. */
21290 #ifdef __cplusplus
21291 extern "C"
21292 #endif
21293 char res_send ();
21294 int
21295 main ()
21296 {
21297 return res_send ();
21298 ;
21299 return 0;
21300 }
21301 _ACEOF
21302 rm -f conftest.$ac_objext conftest$ac_exeext
21303 if { (ac_try="$ac_link"
21304 case "(($ac_try" in
21305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21306 *) ac_try_echo=$ac_try;;
21307 esac
21308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21309 (eval "$ac_link") 2>conftest.er1
21310 ac_status=$?
21311 grep -v '^ *+' conftest.er1 >conftest.err
21312 rm -f conftest.er1
21313 cat conftest.err >&5
21314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21315 (exit $ac_status); } &&
21316 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21317 { (case "(($ac_try" in
21318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21319 *) ac_try_echo=$ac_try;;
21320 esac
21321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21322 (eval "$ac_try") 2>&5
21323 ac_status=$?
21324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21325 (exit $ac_status); }; } &&
21326 { ac_try='test -s conftest$ac_exeext'
21327 { (case "(($ac_try" in
21328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21329 *) ac_try_echo=$ac_try;;
21330 esac
21331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21332 (eval "$ac_try") 2>&5
21333 ac_status=$?
21334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21335 (exit $ac_status); }; }; then
21336 ac_cv_lib_resolv_res_send=yes
21337 else
21338 echo "$as_me: failed program was:" >&5
21339 sed 's/^/| /' conftest.$ac_ext >&5
21340
21341 ac_cv_lib_resolv_res_send=no
21342 fi
21343
21344 rm -f core conftest.err conftest.$ac_objext \
21345 conftest$ac_exeext conftest.$ac_ext
21346 LIBS=$ac_check_lib_save_LIBS
21347 fi
21348 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
21349 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
21350 if test $ac_cv_lib_resolv_res_send = yes; then
21351 resolv=yes
21352 else
21353 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
21354 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
21355 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
21356 echo $ECHO_N "(cached) $ECHO_C" >&6
21357 else
21358 ac_check_lib_save_LIBS=$LIBS
21359 LIBS="-lresolv $LIBS"
21360 cat >conftest.$ac_ext <<_ACEOF
21361 /* confdefs.h. */
21362 _ACEOF
21363 cat confdefs.h >>conftest.$ac_ext
21364 cat >>conftest.$ac_ext <<_ACEOF
21365 /* end confdefs.h. */
21366
21367 /* Override any GCC internal prototype to avoid an error.
21368 Use char because int might match the return type of a GCC
21369 builtin and then its argument prototype would still apply. */
21370 #ifdef __cplusplus
21371 extern "C"
21372 #endif
21373 char __res_send ();
21374 int
21375 main ()
21376 {
21377 return __res_send ();
21378 ;
21379 return 0;
21380 }
21381 _ACEOF
21382 rm -f conftest.$ac_objext conftest$ac_exeext
21383 if { (ac_try="$ac_link"
21384 case "(($ac_try" in
21385 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21386 *) ac_try_echo=$ac_try;;
21387 esac
21388 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21389 (eval "$ac_link") 2>conftest.er1
21390 ac_status=$?
21391 grep -v '^ *+' conftest.er1 >conftest.err
21392 rm -f conftest.er1
21393 cat conftest.err >&5
21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21395 (exit $ac_status); } &&
21396 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21397 { (case "(($ac_try" in
21398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21399 *) ac_try_echo=$ac_try;;
21400 esac
21401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21402 (eval "$ac_try") 2>&5
21403 ac_status=$?
21404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21405 (exit $ac_status); }; } &&
21406 { ac_try='test -s conftest$ac_exeext'
21407 { (case "(($ac_try" in
21408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21409 *) ac_try_echo=$ac_try;;
21410 esac
21411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21412 (eval "$ac_try") 2>&5
21413 ac_status=$?
21414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21415 (exit $ac_status); }; }; then
21416 ac_cv_lib_resolv___res_send=yes
21417 else
21418 echo "$as_me: failed program was:" >&5
21419 sed 's/^/| /' conftest.$ac_ext >&5
21420
21421 ac_cv_lib_resolv___res_send=no
21422 fi
21423
21424 rm -f core conftest.err conftest.$ac_objext \
21425 conftest$ac_exeext conftest.$ac_ext
21426 LIBS=$ac_check_lib_save_LIBS
21427 fi
21428 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
21429 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
21430 if test $ac_cv_lib_resolv___res_send = yes; then
21431 resolv=yes
21432 fi
21433
21434 fi
21435
21436 fi
21437
21438 fi
21439
21440 if test "$resolv" = yes ; then
21441 RESOLVLIB=-lresolv
21442
21443 cat >>confdefs.h <<\_ACEOF
21444 #define HAVE_LIBRESOLV 1
21445 _ACEOF
21446
21447 else
21448 RESOLVLIB=
21449 fi
21450 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
21451 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
21452 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
21453 echo $ECHO_N "(cached) $ECHO_C" >&6
21454 else
21455 cat >conftest.$ac_ext <<_ACEOF
21456 /* confdefs.h. */
21457 _ACEOF
21458 cat confdefs.h >>conftest.$ac_ext
21459 cat >>conftest.$ac_ext <<_ACEOF
21460 /* end confdefs.h. */
21461 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
21462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21463 #define hes_getmailhost innocuous_hes_getmailhost
21464
21465 /* System header to define __stub macros and hopefully few prototypes,
21466 which can conflict with char hes_getmailhost (); below.
21467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21468 <limits.h> exists even on freestanding compilers. */
21469
21470 #ifdef __STDC__
21471 # include <limits.h>
21472 #else
21473 # include <assert.h>
21474 #endif
21475
21476 #undef hes_getmailhost
21477
21478 /* Override any GCC internal prototype to avoid an error.
21479 Use char because int might match the return type of a GCC
21480 builtin and then its argument prototype would still apply. */
21481 #ifdef __cplusplus
21482 extern "C"
21483 #endif
21484 char hes_getmailhost ();
21485 /* The GNU C library defines this for functions which it implements
21486 to always fail with ENOSYS. Some functions are actually named
21487 something starting with __ and the normal name is an alias. */
21488 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
21489 choke me
21490 #endif
21491
21492 int
21493 main ()
21494 {
21495 return hes_getmailhost ();
21496 ;
21497 return 0;
21498 }
21499 _ACEOF
21500 rm -f conftest.$ac_objext conftest$ac_exeext
21501 if { (ac_try="$ac_link"
21502 case "(($ac_try" in
21503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21504 *) ac_try_echo=$ac_try;;
21505 esac
21506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21507 (eval "$ac_link") 2>conftest.er1
21508 ac_status=$?
21509 grep -v '^ *+' conftest.er1 >conftest.err
21510 rm -f conftest.er1
21511 cat conftest.err >&5
21512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21513 (exit $ac_status); } &&
21514 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21515 { (case "(($ac_try" in
21516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21517 *) ac_try_echo=$ac_try;;
21518 esac
21519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21520 (eval "$ac_try") 2>&5
21521 ac_status=$?
21522 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21523 (exit $ac_status); }; } &&
21524 { ac_try='test -s conftest$ac_exeext'
21525 { (case "(($ac_try" in
21526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21527 *) ac_try_echo=$ac_try;;
21528 esac
21529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21530 (eval "$ac_try") 2>&5
21531 ac_status=$?
21532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21533 (exit $ac_status); }; }; then
21534 ac_cv_func_hes_getmailhost=yes
21535 else
21536 echo "$as_me: failed program was:" >&5
21537 sed 's/^/| /' conftest.$ac_ext >&5
21538
21539 ac_cv_func_hes_getmailhost=no
21540 fi
21541
21542 rm -f core conftest.err conftest.$ac_objext \
21543 conftest$ac_exeext conftest.$ac_ext
21544 fi
21545 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
21546 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
21547 if test $ac_cv_func_hes_getmailhost = yes; then
21548 :
21549 else
21550 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
21551 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
21552 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
21553 echo $ECHO_N "(cached) $ECHO_C" >&6
21554 else
21555 ac_check_lib_save_LIBS=$LIBS
21556 LIBS="-lhesiod $RESOLVLIB $LIBS"
21557 cat >conftest.$ac_ext <<_ACEOF
21558 /* confdefs.h. */
21559 _ACEOF
21560 cat confdefs.h >>conftest.$ac_ext
21561 cat >>conftest.$ac_ext <<_ACEOF
21562 /* end confdefs.h. */
21563
21564 /* Override any GCC internal prototype to avoid an error.
21565 Use char because int might match the return type of a GCC
21566 builtin and then its argument prototype would still apply. */
21567 #ifdef __cplusplus
21568 extern "C"
21569 #endif
21570 char hes_getmailhost ();
21571 int
21572 main ()
21573 {
21574 return hes_getmailhost ();
21575 ;
21576 return 0;
21577 }
21578 _ACEOF
21579 rm -f conftest.$ac_objext conftest$ac_exeext
21580 if { (ac_try="$ac_link"
21581 case "(($ac_try" in
21582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21583 *) ac_try_echo=$ac_try;;
21584 esac
21585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21586 (eval "$ac_link") 2>conftest.er1
21587 ac_status=$?
21588 grep -v '^ *+' conftest.er1 >conftest.err
21589 rm -f conftest.er1
21590 cat conftest.err >&5
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); } &&
21593 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21594 { (case "(($ac_try" in
21595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21596 *) ac_try_echo=$ac_try;;
21597 esac
21598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21599 (eval "$ac_try") 2>&5
21600 ac_status=$?
21601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21602 (exit $ac_status); }; } &&
21603 { ac_try='test -s conftest$ac_exeext'
21604 { (case "(($ac_try" in
21605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21606 *) ac_try_echo=$ac_try;;
21607 esac
21608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21609 (eval "$ac_try") 2>&5
21610 ac_status=$?
21611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21612 (exit $ac_status); }; }; then
21613 ac_cv_lib_hesiod_hes_getmailhost=yes
21614 else
21615 echo "$as_me: failed program was:" >&5
21616 sed 's/^/| /' conftest.$ac_ext >&5
21617
21618 ac_cv_lib_hesiod_hes_getmailhost=no
21619 fi
21620
21621 rm -f core conftest.err conftest.$ac_objext \
21622 conftest$ac_exeext conftest.$ac_ext
21623 LIBS=$ac_check_lib_save_LIBS
21624 fi
21625 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
21626 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
21627 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
21628
21629 cat >>confdefs.h <<\_ACEOF
21630 #define HAVE_LIBHESIOD 1
21631 _ACEOF
21632
21633 else
21634 :
21635 fi
21636
21637 fi
21638
21639 fi
21640
21641 # These tell us which Kerberos-related libraries to use.
21642 if test "${with_kerberos+set}" = set; then
21643
21644 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
21645 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
21646 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
21647 echo $ECHO_N "(cached) $ECHO_C" >&6
21648 else
21649 ac_check_lib_save_LIBS=$LIBS
21650 LIBS="-lcom_err $LIBS"
21651 cat >conftest.$ac_ext <<_ACEOF
21652 /* confdefs.h. */
21653 _ACEOF
21654 cat confdefs.h >>conftest.$ac_ext
21655 cat >>conftest.$ac_ext <<_ACEOF
21656 /* end confdefs.h. */
21657
21658 /* Override any GCC internal prototype to avoid an error.
21659 Use char because int might match the return type of a GCC
21660 builtin and then its argument prototype would still apply. */
21661 #ifdef __cplusplus
21662 extern "C"
21663 #endif
21664 char com_err ();
21665 int
21666 main ()
21667 {
21668 return com_err ();
21669 ;
21670 return 0;
21671 }
21672 _ACEOF
21673 rm -f conftest.$ac_objext conftest$ac_exeext
21674 if { (ac_try="$ac_link"
21675 case "(($ac_try" in
21676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21677 *) ac_try_echo=$ac_try;;
21678 esac
21679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21680 (eval "$ac_link") 2>conftest.er1
21681 ac_status=$?
21682 grep -v '^ *+' conftest.er1 >conftest.err
21683 rm -f conftest.er1
21684 cat conftest.err >&5
21685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21686 (exit $ac_status); } &&
21687 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21688 { (case "(($ac_try" in
21689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21690 *) ac_try_echo=$ac_try;;
21691 esac
21692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21693 (eval "$ac_try") 2>&5
21694 ac_status=$?
21695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21696 (exit $ac_status); }; } &&
21697 { ac_try='test -s conftest$ac_exeext'
21698 { (case "(($ac_try" in
21699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21700 *) ac_try_echo=$ac_try;;
21701 esac
21702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21703 (eval "$ac_try") 2>&5
21704 ac_status=$?
21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21706 (exit $ac_status); }; }; then
21707 ac_cv_lib_com_err_com_err=yes
21708 else
21709 echo "$as_me: failed program was:" >&5
21710 sed 's/^/| /' conftest.$ac_ext >&5
21711
21712 ac_cv_lib_com_err_com_err=no
21713 fi
21714
21715 rm -f core conftest.err conftest.$ac_objext \
21716 conftest$ac_exeext conftest.$ac_ext
21717 LIBS=$ac_check_lib_save_LIBS
21718 fi
21719 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
21720 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
21721 if test $ac_cv_lib_com_err_com_err = yes; then
21722 cat >>confdefs.h <<_ACEOF
21723 #define HAVE_LIBCOM_ERR 1
21724 _ACEOF
21725
21726 LIBS="-lcom_err $LIBS"
21727
21728 fi
21729
21730
21731 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
21732 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
21733 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
21734 echo $ECHO_N "(cached) $ECHO_C" >&6
21735 else
21736 ac_check_lib_save_LIBS=$LIBS
21737 LIBS="-lk5crypto $LIBS"
21738 cat >conftest.$ac_ext <<_ACEOF
21739 /* confdefs.h. */
21740 _ACEOF
21741 cat confdefs.h >>conftest.$ac_ext
21742 cat >>conftest.$ac_ext <<_ACEOF
21743 /* end confdefs.h. */
21744
21745 /* Override any GCC internal prototype to avoid an error.
21746 Use char because int might match the return type of a GCC
21747 builtin and then its argument prototype would still apply. */
21748 #ifdef __cplusplus
21749 extern "C"
21750 #endif
21751 char mit_des_cbc_encrypt ();
21752 int
21753 main ()
21754 {
21755 return mit_des_cbc_encrypt ();
21756 ;
21757 return 0;
21758 }
21759 _ACEOF
21760 rm -f conftest.$ac_objext conftest$ac_exeext
21761 if { (ac_try="$ac_link"
21762 case "(($ac_try" in
21763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21764 *) ac_try_echo=$ac_try;;
21765 esac
21766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21767 (eval "$ac_link") 2>conftest.er1
21768 ac_status=$?
21769 grep -v '^ *+' conftest.er1 >conftest.err
21770 rm -f conftest.er1
21771 cat conftest.err >&5
21772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21773 (exit $ac_status); } &&
21774 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21775 { (case "(($ac_try" in
21776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21777 *) ac_try_echo=$ac_try;;
21778 esac
21779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21780 (eval "$ac_try") 2>&5
21781 ac_status=$?
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); }; } &&
21784 { ac_try='test -s conftest$ac_exeext'
21785 { (case "(($ac_try" in
21786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21787 *) ac_try_echo=$ac_try;;
21788 esac
21789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21790 (eval "$ac_try") 2>&5
21791 ac_status=$?
21792 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21793 (exit $ac_status); }; }; then
21794 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
21795 else
21796 echo "$as_me: failed program was:" >&5
21797 sed 's/^/| /' conftest.$ac_ext >&5
21798
21799 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
21800 fi
21801
21802 rm -f core conftest.err conftest.$ac_objext \
21803 conftest$ac_exeext conftest.$ac_ext
21804 LIBS=$ac_check_lib_save_LIBS
21805 fi
21806 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
21807 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
21808 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
21809 cat >>confdefs.h <<_ACEOF
21810 #define HAVE_LIBK5CRYPTO 1
21811 _ACEOF
21812
21813 LIBS="-lk5crypto $LIBS"
21814
21815 fi
21816
21817
21818 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
21819 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
21820 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
21821 echo $ECHO_N "(cached) $ECHO_C" >&6
21822 else
21823 ac_check_lib_save_LIBS=$LIBS
21824 LIBS="-lcrypto $LIBS"
21825 cat >conftest.$ac_ext <<_ACEOF
21826 /* confdefs.h. */
21827 _ACEOF
21828 cat confdefs.h >>conftest.$ac_ext
21829 cat >>conftest.$ac_ext <<_ACEOF
21830 /* end confdefs.h. */
21831
21832 /* Override any GCC internal prototype to avoid an error.
21833 Use char because int might match the return type of a GCC
21834 builtin and then its argument prototype would still apply. */
21835 #ifdef __cplusplus
21836 extern "C"
21837 #endif
21838 char mit_des_cbc_encrypt ();
21839 int
21840 main ()
21841 {
21842 return mit_des_cbc_encrypt ();
21843 ;
21844 return 0;
21845 }
21846 _ACEOF
21847 rm -f conftest.$ac_objext conftest$ac_exeext
21848 if { (ac_try="$ac_link"
21849 case "(($ac_try" in
21850 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21851 *) ac_try_echo=$ac_try;;
21852 esac
21853 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21854 (eval "$ac_link") 2>conftest.er1
21855 ac_status=$?
21856 grep -v '^ *+' conftest.er1 >conftest.err
21857 rm -f conftest.er1
21858 cat conftest.err >&5
21859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21860 (exit $ac_status); } &&
21861 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21862 { (case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_try") 2>&5
21868 ac_status=$?
21869 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21870 (exit $ac_status); }; } &&
21871 { ac_try='test -s conftest$ac_exeext'
21872 { (case "(($ac_try" in
21873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21874 *) ac_try_echo=$ac_try;;
21875 esac
21876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21877 (eval "$ac_try") 2>&5
21878 ac_status=$?
21879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21880 (exit $ac_status); }; }; then
21881 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
21887 fi
21888
21889 rm -f core conftest.err conftest.$ac_objext \
21890 conftest$ac_exeext conftest.$ac_ext
21891 LIBS=$ac_check_lib_save_LIBS
21892 fi
21893 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
21894 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
21895 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
21896 cat >>confdefs.h <<_ACEOF
21897 #define HAVE_LIBCRYPTO 1
21898 _ACEOF
21899
21900 LIBS="-lcrypto $LIBS"
21901
21902 fi
21903
21904
21905 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
21906 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
21907 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
21908 echo $ECHO_N "(cached) $ECHO_C" >&6
21909 else
21910 ac_check_lib_save_LIBS=$LIBS
21911 LIBS="-lkrb5 $LIBS"
21912 cat >conftest.$ac_ext <<_ACEOF
21913 /* confdefs.h. */
21914 _ACEOF
21915 cat confdefs.h >>conftest.$ac_ext
21916 cat >>conftest.$ac_ext <<_ACEOF
21917 /* end confdefs.h. */
21918
21919 /* Override any GCC internal prototype to avoid an error.
21920 Use char because int might match the return type of a GCC
21921 builtin and then its argument prototype would still apply. */
21922 #ifdef __cplusplus
21923 extern "C"
21924 #endif
21925 char krb5_init_context ();
21926 int
21927 main ()
21928 {
21929 return krb5_init_context ();
21930 ;
21931 return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest.$ac_objext conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } &&
21948 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
21949 { (case "(($ac_try" in
21950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21951 *) ac_try_echo=$ac_try;;
21952 esac
21953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21954 (eval "$ac_try") 2>&5
21955 ac_status=$?
21956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21957 (exit $ac_status); }; } &&
21958 { ac_try='test -s conftest$ac_exeext'
21959 { (case "(($ac_try" in
21960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21961 *) ac_try_echo=$ac_try;;
21962 esac
21963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21964 (eval "$ac_try") 2>&5
21965 ac_status=$?
21966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21967 (exit $ac_status); }; }; then
21968 ac_cv_lib_krb5_krb5_init_context=yes
21969 else
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_cv_lib_krb5_krb5_init_context=no
21974 fi
21975
21976 rm -f core conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21979 fi
21980 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
21981 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
21982 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
21983 cat >>confdefs.h <<_ACEOF
21984 #define HAVE_LIBKRB5 1
21985 _ACEOF
21986
21987 LIBS="-lkrb5 $LIBS"
21988
21989 fi
21990
21991 if test "${with_kerberos5+set}" != set; then
21992
21993 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
21994 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
21995 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
21996 echo $ECHO_N "(cached) $ECHO_C" >&6
21997 else
21998 ac_check_lib_save_LIBS=$LIBS
21999 LIBS="-ldes425 $LIBS"
22000 cat >conftest.$ac_ext <<_ACEOF
22001 /* confdefs.h. */
22002 _ACEOF
22003 cat confdefs.h >>conftest.$ac_ext
22004 cat >>conftest.$ac_ext <<_ACEOF
22005 /* end confdefs.h. */
22006
22007 /* Override any GCC internal prototype to avoid an error.
22008 Use char because int might match the return type of a GCC
22009 builtin and then its argument prototype would still apply. */
22010 #ifdef __cplusplus
22011 extern "C"
22012 #endif
22013 char des_cbc_encrypt ();
22014 int
22015 main ()
22016 {
22017 return des_cbc_encrypt ();
22018 ;
22019 return 0;
22020 }
22021 _ACEOF
22022 rm -f conftest.$ac_objext conftest$ac_exeext
22023 if { (ac_try="$ac_link"
22024 case "(($ac_try" in
22025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22026 *) ac_try_echo=$ac_try;;
22027 esac
22028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22029 (eval "$ac_link") 2>conftest.er1
22030 ac_status=$?
22031 grep -v '^ *+' conftest.er1 >conftest.err
22032 rm -f conftest.er1
22033 cat conftest.err >&5
22034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22035 (exit $ac_status); } &&
22036 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22037 { (case "(($ac_try" in
22038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22039 *) ac_try_echo=$ac_try;;
22040 esac
22041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22042 (eval "$ac_try") 2>&5
22043 ac_status=$?
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); }; } &&
22046 { ac_try='test -s conftest$ac_exeext'
22047 { (case "(($ac_try" in
22048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22049 *) ac_try_echo=$ac_try;;
22050 esac
22051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22052 (eval "$ac_try") 2>&5
22053 ac_status=$?
22054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22055 (exit $ac_status); }; }; then
22056 ac_cv_lib_des425_des_cbc_encrypt=yes
22057 else
22058 echo "$as_me: failed program was:" >&5
22059 sed 's/^/| /' conftest.$ac_ext >&5
22060
22061 ac_cv_lib_des425_des_cbc_encrypt=no
22062 fi
22063
22064 rm -f core conftest.err conftest.$ac_objext \
22065 conftest$ac_exeext conftest.$ac_ext
22066 LIBS=$ac_check_lib_save_LIBS
22067 fi
22068 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
22069 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
22070 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
22071 cat >>confdefs.h <<_ACEOF
22072 #define HAVE_LIBDES425 1
22073 _ACEOF
22074
22075 LIBS="-ldes425 $LIBS"
22076
22077 else
22078
22079 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
22080 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
22081 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
22082 echo $ECHO_N "(cached) $ECHO_C" >&6
22083 else
22084 ac_check_lib_save_LIBS=$LIBS
22085 LIBS="-ldes $LIBS"
22086 cat >conftest.$ac_ext <<_ACEOF
22087 /* confdefs.h. */
22088 _ACEOF
22089 cat confdefs.h >>conftest.$ac_ext
22090 cat >>conftest.$ac_ext <<_ACEOF
22091 /* end confdefs.h. */
22092
22093 /* Override any GCC internal prototype to avoid an error.
22094 Use char because int might match the return type of a GCC
22095 builtin and then its argument prototype would still apply. */
22096 #ifdef __cplusplus
22097 extern "C"
22098 #endif
22099 char des_cbc_encrypt ();
22100 int
22101 main ()
22102 {
22103 return des_cbc_encrypt ();
22104 ;
22105 return 0;
22106 }
22107 _ACEOF
22108 rm -f conftest.$ac_objext conftest$ac_exeext
22109 if { (ac_try="$ac_link"
22110 case "(($ac_try" in
22111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22112 *) ac_try_echo=$ac_try;;
22113 esac
22114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22115 (eval "$ac_link") 2>conftest.er1
22116 ac_status=$?
22117 grep -v '^ *+' conftest.er1 >conftest.err
22118 rm -f conftest.er1
22119 cat conftest.err >&5
22120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22121 (exit $ac_status); } &&
22122 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22123 { (case "(($ac_try" in
22124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22125 *) ac_try_echo=$ac_try;;
22126 esac
22127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22128 (eval "$ac_try") 2>&5
22129 ac_status=$?
22130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22131 (exit $ac_status); }; } &&
22132 { ac_try='test -s conftest$ac_exeext'
22133 { (case "(($ac_try" in
22134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22135 *) ac_try_echo=$ac_try;;
22136 esac
22137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22138 (eval "$ac_try") 2>&5
22139 ac_status=$?
22140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22141 (exit $ac_status); }; }; then
22142 ac_cv_lib_des_des_cbc_encrypt=yes
22143 else
22144 echo "$as_me: failed program was:" >&5
22145 sed 's/^/| /' conftest.$ac_ext >&5
22146
22147 ac_cv_lib_des_des_cbc_encrypt=no
22148 fi
22149
22150 rm -f core conftest.err conftest.$ac_objext \
22151 conftest$ac_exeext conftest.$ac_ext
22152 LIBS=$ac_check_lib_save_LIBS
22153 fi
22154 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
22155 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
22156 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
22157 cat >>confdefs.h <<_ACEOF
22158 #define HAVE_LIBDES 1
22159 _ACEOF
22160
22161 LIBS="-ldes $LIBS"
22162
22163 fi
22164
22165 fi
22166
22167
22168 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
22169 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
22170 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
22171 echo $ECHO_N "(cached) $ECHO_C" >&6
22172 else
22173 ac_check_lib_save_LIBS=$LIBS
22174 LIBS="-lkrb4 $LIBS"
22175 cat >conftest.$ac_ext <<_ACEOF
22176 /* confdefs.h. */
22177 _ACEOF
22178 cat confdefs.h >>conftest.$ac_ext
22179 cat >>conftest.$ac_ext <<_ACEOF
22180 /* end confdefs.h. */
22181
22182 /* Override any GCC internal prototype to avoid an error.
22183 Use char because int might match the return type of a GCC
22184 builtin and then its argument prototype would still apply. */
22185 #ifdef __cplusplus
22186 extern "C"
22187 #endif
22188 char krb_get_cred ();
22189 int
22190 main ()
22191 {
22192 return krb_get_cred ();
22193 ;
22194 return 0;
22195 }
22196 _ACEOF
22197 rm -f conftest.$ac_objext conftest$ac_exeext
22198 if { (ac_try="$ac_link"
22199 case "(($ac_try" in
22200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22201 *) ac_try_echo=$ac_try;;
22202 esac
22203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22204 (eval "$ac_link") 2>conftest.er1
22205 ac_status=$?
22206 grep -v '^ *+' conftest.er1 >conftest.err
22207 rm -f conftest.er1
22208 cat conftest.err >&5
22209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22210 (exit $ac_status); } &&
22211 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22212 { (case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215 esac
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_try") 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); }; } &&
22221 { ac_try='test -s conftest$ac_exeext'
22222 { (case "(($ac_try" in
22223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22224 *) ac_try_echo=$ac_try;;
22225 esac
22226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22227 (eval "$ac_try") 2>&5
22228 ac_status=$?
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); }; }; then
22231 ac_cv_lib_krb4_krb_get_cred=yes
22232 else
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ac_cv_lib_krb4_krb_get_cred=no
22237 fi
22238
22239 rm -f core conftest.err conftest.$ac_objext \
22240 conftest$ac_exeext conftest.$ac_ext
22241 LIBS=$ac_check_lib_save_LIBS
22242 fi
22243 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
22244 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
22245 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
22246 cat >>confdefs.h <<_ACEOF
22247 #define HAVE_LIBKRB4 1
22248 _ACEOF
22249
22250 LIBS="-lkrb4 $LIBS"
22251
22252 else
22253
22254 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
22255 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
22256 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
22257 echo $ECHO_N "(cached) $ECHO_C" >&6
22258 else
22259 ac_check_lib_save_LIBS=$LIBS
22260 LIBS="-lkrb $LIBS"
22261 cat >conftest.$ac_ext <<_ACEOF
22262 /* confdefs.h. */
22263 _ACEOF
22264 cat confdefs.h >>conftest.$ac_ext
22265 cat >>conftest.$ac_ext <<_ACEOF
22266 /* end confdefs.h. */
22267
22268 /* Override any GCC internal prototype to avoid an error.
22269 Use char because int might match the return type of a GCC
22270 builtin and then its argument prototype would still apply. */
22271 #ifdef __cplusplus
22272 extern "C"
22273 #endif
22274 char krb_get_cred ();
22275 int
22276 main ()
22277 {
22278 return krb_get_cred ();
22279 ;
22280 return 0;
22281 }
22282 _ACEOF
22283 rm -f conftest.$ac_objext conftest$ac_exeext
22284 if { (ac_try="$ac_link"
22285 case "(($ac_try" in
22286 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22287 *) ac_try_echo=$ac_try;;
22288 esac
22289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22290 (eval "$ac_link") 2>conftest.er1
22291 ac_status=$?
22292 grep -v '^ *+' conftest.er1 >conftest.err
22293 rm -f conftest.er1
22294 cat conftest.err >&5
22295 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22296 (exit $ac_status); } &&
22297 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22298 { (case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22301 esac
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_try") 2>&5
22304 ac_status=$?
22305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22306 (exit $ac_status); }; } &&
22307 { ac_try='test -s conftest$ac_exeext'
22308 { (case "(($ac_try" in
22309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22310 *) ac_try_echo=$ac_try;;
22311 esac
22312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22313 (eval "$ac_try") 2>&5
22314 ac_status=$?
22315 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22316 (exit $ac_status); }; }; then
22317 ac_cv_lib_krb_krb_get_cred=yes
22318 else
22319 echo "$as_me: failed program was:" >&5
22320 sed 's/^/| /' conftest.$ac_ext >&5
22321
22322 ac_cv_lib_krb_krb_get_cred=no
22323 fi
22324
22325 rm -f core conftest.err conftest.$ac_objext \
22326 conftest$ac_exeext conftest.$ac_ext
22327 LIBS=$ac_check_lib_save_LIBS
22328 fi
22329 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
22330 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
22331 if test $ac_cv_lib_krb_krb_get_cred = yes; then
22332 cat >>confdefs.h <<_ACEOF
22333 #define HAVE_LIBKRB 1
22334 _ACEOF
22335
22336 LIBS="-lkrb $LIBS"
22337
22338 fi
22339
22340 fi
22341
22342 fi
22343
22344 if test "${with_kerberos5+set}" = set; then
22345
22346 for ac_header in krb5.h
22347 do
22348 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22353 echo $ECHO_N "(cached) $ECHO_C" >&6
22354 fi
22355 ac_res=`eval echo '${'$as_ac_Header'}'`
22356 { echo "$as_me:$LINENO: result: $ac_res" >&5
22357 echo "${ECHO_T}$ac_res" >&6; }
22358 else
22359 # Is the header compilable?
22360 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22361 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22362 cat >conftest.$ac_ext <<_ACEOF
22363 /* confdefs.h. */
22364 _ACEOF
22365 cat confdefs.h >>conftest.$ac_ext
22366 cat >>conftest.$ac_ext <<_ACEOF
22367 /* end confdefs.h. */
22368 $ac_includes_default
22369 #include <$ac_header>
22370 _ACEOF
22371 rm -f conftest.$ac_objext
22372 if { (ac_try="$ac_compile"
22373 case "(($ac_try" in
22374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22375 *) ac_try_echo=$ac_try;;
22376 esac
22377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22378 (eval "$ac_compile") 2>conftest.er1
22379 ac_status=$?
22380 grep -v '^ *+' conftest.er1 >conftest.err
22381 rm -f conftest.er1
22382 cat conftest.err >&5
22383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22384 (exit $ac_status); } &&
22385 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22386 { (case "(($ac_try" in
22387 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22388 *) ac_try_echo=$ac_try;;
22389 esac
22390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22391 (eval "$ac_try") 2>&5
22392 ac_status=$?
22393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22394 (exit $ac_status); }; } &&
22395 { ac_try='test -s conftest.$ac_objext'
22396 { (case "(($ac_try" in
22397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22398 *) ac_try_echo=$ac_try;;
22399 esac
22400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22401 (eval "$ac_try") 2>&5
22402 ac_status=$?
22403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22404 (exit $ac_status); }; }; then
22405 ac_header_compiler=yes
22406 else
22407 echo "$as_me: failed program was:" >&5
22408 sed 's/^/| /' conftest.$ac_ext >&5
22409
22410 ac_header_compiler=no
22411 fi
22412
22413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22414 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22415 echo "${ECHO_T}$ac_header_compiler" >&6; }
22416
22417 # Is the header present?
22418 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22419 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22420 cat >conftest.$ac_ext <<_ACEOF
22421 /* confdefs.h. */
22422 _ACEOF
22423 cat confdefs.h >>conftest.$ac_ext
22424 cat >>conftest.$ac_ext <<_ACEOF
22425 /* end confdefs.h. */
22426 #include <$ac_header>
22427 _ACEOF
22428 if { (ac_try="$ac_cpp conftest.$ac_ext"
22429 case "(($ac_try" in
22430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22431 *) ac_try_echo=$ac_try;;
22432 esac
22433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22434 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22435 ac_status=$?
22436 grep -v '^ *+' conftest.er1 >conftest.err
22437 rm -f conftest.er1
22438 cat conftest.err >&5
22439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22440 (exit $ac_status); } >/dev/null; then
22441 if test -s conftest.err; then
22442 ac_cpp_err=$ac_c_preproc_warn_flag
22443 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22444 else
22445 ac_cpp_err=
22446 fi
22447 else
22448 ac_cpp_err=yes
22449 fi
22450 if test -z "$ac_cpp_err"; then
22451 ac_header_preproc=yes
22452 else
22453 echo "$as_me: failed program was:" >&5
22454 sed 's/^/| /' conftest.$ac_ext >&5
22455
22456 ac_header_preproc=no
22457 fi
22458
22459 rm -f conftest.err conftest.$ac_ext
22460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22461 echo "${ECHO_T}$ac_header_preproc" >&6; }
22462
22463 # So? What about this header?
22464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22465 yes:no: )
22466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22470 ac_header_preproc=yes
22471 ;;
22472 no:yes:* )
22473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22485
22486 ;;
22487 esac
22488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22491 echo $ECHO_N "(cached) $ECHO_C" >&6
22492 else
22493 eval "$as_ac_Header=\$ac_header_preproc"
22494 fi
22495 ac_res=`eval echo '${'$as_ac_Header'}'`
22496 { echo "$as_me:$LINENO: result: $ac_res" >&5
22497 echo "${ECHO_T}$ac_res" >&6; }
22498
22499 fi
22500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22501 cat >>confdefs.h <<_ACEOF
22502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22503 _ACEOF
22504
22505 fi
22506
22507 done
22508
22509 else
22510
22511 for ac_header in des.h
22512 do
22513 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22514 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22518 echo $ECHO_N "(cached) $ECHO_C" >&6
22519 fi
22520 ac_res=`eval echo '${'$as_ac_Header'}'`
22521 { echo "$as_me:$LINENO: result: $ac_res" >&5
22522 echo "${ECHO_T}$ac_res" >&6; }
22523 else
22524 # Is the header compilable?
22525 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22526 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22527 cat >conftest.$ac_ext <<_ACEOF
22528 /* confdefs.h. */
22529 _ACEOF
22530 cat confdefs.h >>conftest.$ac_ext
22531 cat >>conftest.$ac_ext <<_ACEOF
22532 /* end confdefs.h. */
22533 $ac_includes_default
22534 #include <$ac_header>
22535 _ACEOF
22536 rm -f conftest.$ac_objext
22537 if { (ac_try="$ac_compile"
22538 case "(($ac_try" in
22539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22540 *) ac_try_echo=$ac_try;;
22541 esac
22542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22543 (eval "$ac_compile") 2>conftest.er1
22544 ac_status=$?
22545 grep -v '^ *+' conftest.er1 >conftest.err
22546 rm -f conftest.er1
22547 cat conftest.err >&5
22548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22549 (exit $ac_status); } &&
22550 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22551 { (case "(($ac_try" in
22552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22553 *) ac_try_echo=$ac_try;;
22554 esac
22555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22556 (eval "$ac_try") 2>&5
22557 ac_status=$?
22558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22559 (exit $ac_status); }; } &&
22560 { ac_try='test -s conftest.$ac_objext'
22561 { (case "(($ac_try" in
22562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22563 *) ac_try_echo=$ac_try;;
22564 esac
22565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22566 (eval "$ac_try") 2>&5
22567 ac_status=$?
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); }; }; then
22570 ac_header_compiler=yes
22571 else
22572 echo "$as_me: failed program was:" >&5
22573 sed 's/^/| /' conftest.$ac_ext >&5
22574
22575 ac_header_compiler=no
22576 fi
22577
22578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22579 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22580 echo "${ECHO_T}$ac_header_compiler" >&6; }
22581
22582 # Is the header present?
22583 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22584 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22585 cat >conftest.$ac_ext <<_ACEOF
22586 /* confdefs.h. */
22587 _ACEOF
22588 cat confdefs.h >>conftest.$ac_ext
22589 cat >>conftest.$ac_ext <<_ACEOF
22590 /* end confdefs.h. */
22591 #include <$ac_header>
22592 _ACEOF
22593 if { (ac_try="$ac_cpp conftest.$ac_ext"
22594 case "(($ac_try" in
22595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22596 *) ac_try_echo=$ac_try;;
22597 esac
22598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22599 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22600 ac_status=$?
22601 grep -v '^ *+' conftest.er1 >conftest.err
22602 rm -f conftest.er1
22603 cat conftest.err >&5
22604 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22605 (exit $ac_status); } >/dev/null; then
22606 if test -s conftest.err; then
22607 ac_cpp_err=$ac_c_preproc_warn_flag
22608 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22609 else
22610 ac_cpp_err=
22611 fi
22612 else
22613 ac_cpp_err=yes
22614 fi
22615 if test -z "$ac_cpp_err"; then
22616 ac_header_preproc=yes
22617 else
22618 echo "$as_me: failed program was:" >&5
22619 sed 's/^/| /' conftest.$ac_ext >&5
22620
22621 ac_header_preproc=no
22622 fi
22623
22624 rm -f conftest.err conftest.$ac_ext
22625 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22626 echo "${ECHO_T}$ac_header_preproc" >&6; }
22627
22628 # So? What about this header?
22629 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22630 yes:no: )
22631 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22632 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22633 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22634 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22635 ac_header_preproc=yes
22636 ;;
22637 no:yes:* )
22638 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22639 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22640 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22641 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22642 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22643 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22644 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22645 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22646 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22647 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22648 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22649 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22650
22651 ;;
22652 esac
22653 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22654 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22655 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22656 echo $ECHO_N "(cached) $ECHO_C" >&6
22657 else
22658 eval "$as_ac_Header=\$ac_header_preproc"
22659 fi
22660 ac_res=`eval echo '${'$as_ac_Header'}'`
22661 { echo "$as_me:$LINENO: result: $ac_res" >&5
22662 echo "${ECHO_T}$ac_res" >&6; }
22663
22664 fi
22665 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22666 cat >>confdefs.h <<_ACEOF
22667 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22668 _ACEOF
22669
22670 else
22671
22672 for ac_header in kerberosIV/des.h
22673 do
22674 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22675 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22676 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22677 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22678 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22679 echo $ECHO_N "(cached) $ECHO_C" >&6
22680 fi
22681 ac_res=`eval echo '${'$as_ac_Header'}'`
22682 { echo "$as_me:$LINENO: result: $ac_res" >&5
22683 echo "${ECHO_T}$ac_res" >&6; }
22684 else
22685 # Is the header compilable?
22686 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22687 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22688 cat >conftest.$ac_ext <<_ACEOF
22689 /* confdefs.h. */
22690 _ACEOF
22691 cat confdefs.h >>conftest.$ac_ext
22692 cat >>conftest.$ac_ext <<_ACEOF
22693 /* end confdefs.h. */
22694 $ac_includes_default
22695 #include <$ac_header>
22696 _ACEOF
22697 rm -f conftest.$ac_objext
22698 if { (ac_try="$ac_compile"
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_compile") 2>conftest.er1
22705 ac_status=$?
22706 grep -v '^ *+' conftest.er1 >conftest.err
22707 rm -f conftest.er1
22708 cat conftest.err >&5
22709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22710 (exit $ac_status); } &&
22711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22712 { (case "(($ac_try" in
22713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22714 *) ac_try_echo=$ac_try;;
22715 esac
22716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22717 (eval "$ac_try") 2>&5
22718 ac_status=$?
22719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22720 (exit $ac_status); }; } &&
22721 { ac_try='test -s conftest.$ac_objext'
22722 { (case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_try") 2>&5
22728 ac_status=$?
22729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22730 (exit $ac_status); }; }; then
22731 ac_header_compiler=yes
22732 else
22733 echo "$as_me: failed program was:" >&5
22734 sed 's/^/| /' conftest.$ac_ext >&5
22735
22736 ac_header_compiler=no
22737 fi
22738
22739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22740 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22741 echo "${ECHO_T}$ac_header_compiler" >&6; }
22742
22743 # Is the header present?
22744 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22745 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22746 cat >conftest.$ac_ext <<_ACEOF
22747 /* confdefs.h. */
22748 _ACEOF
22749 cat confdefs.h >>conftest.$ac_ext
22750 cat >>conftest.$ac_ext <<_ACEOF
22751 /* end confdefs.h. */
22752 #include <$ac_header>
22753 _ACEOF
22754 if { (ac_try="$ac_cpp conftest.$ac_ext"
22755 case "(($ac_try" in
22756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22757 *) ac_try_echo=$ac_try;;
22758 esac
22759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22760 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22761 ac_status=$?
22762 grep -v '^ *+' conftest.er1 >conftest.err
22763 rm -f conftest.er1
22764 cat conftest.err >&5
22765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22766 (exit $ac_status); } >/dev/null; then
22767 if test -s conftest.err; then
22768 ac_cpp_err=$ac_c_preproc_warn_flag
22769 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22770 else
22771 ac_cpp_err=
22772 fi
22773 else
22774 ac_cpp_err=yes
22775 fi
22776 if test -z "$ac_cpp_err"; then
22777 ac_header_preproc=yes
22778 else
22779 echo "$as_me: failed program was:" >&5
22780 sed 's/^/| /' conftest.$ac_ext >&5
22781
22782 ac_header_preproc=no
22783 fi
22784
22785 rm -f conftest.err conftest.$ac_ext
22786 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22787 echo "${ECHO_T}$ac_header_preproc" >&6; }
22788
22789 # So? What about this header?
22790 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22791 yes:no: )
22792 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22793 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22794 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22795 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22796 ac_header_preproc=yes
22797 ;;
22798 no:yes:* )
22799 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22800 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22801 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22802 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22803 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22804 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22805 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22806 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22808 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22809 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22810 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22811
22812 ;;
22813 esac
22814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22817 echo $ECHO_N "(cached) $ECHO_C" >&6
22818 else
22819 eval "$as_ac_Header=\$ac_header_preproc"
22820 fi
22821 ac_res=`eval echo '${'$as_ac_Header'}'`
22822 { echo "$as_me:$LINENO: result: $ac_res" >&5
22823 echo "${ECHO_T}$ac_res" >&6; }
22824
22825 fi
22826 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22827 cat >>confdefs.h <<_ACEOF
22828 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22829 _ACEOF
22830
22831 else
22832
22833 for ac_header in kerberos/des.h
22834 do
22835 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22836 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22837 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22838 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22839 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22840 echo $ECHO_N "(cached) $ECHO_C" >&6
22841 fi
22842 ac_res=`eval echo '${'$as_ac_Header'}'`
22843 { echo "$as_me:$LINENO: result: $ac_res" >&5
22844 echo "${ECHO_T}$ac_res" >&6; }
22845 else
22846 # Is the header compilable?
22847 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22848 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22849 cat >conftest.$ac_ext <<_ACEOF
22850 /* confdefs.h. */
22851 _ACEOF
22852 cat confdefs.h >>conftest.$ac_ext
22853 cat >>conftest.$ac_ext <<_ACEOF
22854 /* end confdefs.h. */
22855 $ac_includes_default
22856 #include <$ac_header>
22857 _ACEOF
22858 rm -f conftest.$ac_objext
22859 if { (ac_try="$ac_compile"
22860 case "(($ac_try" in
22861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22862 *) ac_try_echo=$ac_try;;
22863 esac
22864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22865 (eval "$ac_compile") 2>conftest.er1
22866 ac_status=$?
22867 grep -v '^ *+' conftest.er1 >conftest.err
22868 rm -f conftest.er1
22869 cat conftest.err >&5
22870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22871 (exit $ac_status); } &&
22872 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
22873 { (case "(($ac_try" in
22874 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22875 *) ac_try_echo=$ac_try;;
22876 esac
22877 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22878 (eval "$ac_try") 2>&5
22879 ac_status=$?
22880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22881 (exit $ac_status); }; } &&
22882 { ac_try='test -s conftest.$ac_objext'
22883 { (case "(($ac_try" in
22884 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22885 *) ac_try_echo=$ac_try;;
22886 esac
22887 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22888 (eval "$ac_try") 2>&5
22889 ac_status=$?
22890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22891 (exit $ac_status); }; }; then
22892 ac_header_compiler=yes
22893 else
22894 echo "$as_me: failed program was:" >&5
22895 sed 's/^/| /' conftest.$ac_ext >&5
22896
22897 ac_header_compiler=no
22898 fi
22899
22900 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22901 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22902 echo "${ECHO_T}$ac_header_compiler" >&6; }
22903
22904 # Is the header present?
22905 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22906 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h. */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 #include <$ac_header>
22914 _ACEOF
22915 if { (ac_try="$ac_cpp conftest.$ac_ext"
22916 case "(($ac_try" in
22917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22918 *) ac_try_echo=$ac_try;;
22919 esac
22920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22921 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22922 ac_status=$?
22923 grep -v '^ *+' conftest.er1 >conftest.err
22924 rm -f conftest.er1
22925 cat conftest.err >&5
22926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22927 (exit $ac_status); } >/dev/null; then
22928 if test -s conftest.err; then
22929 ac_cpp_err=$ac_c_preproc_warn_flag
22930 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
22931 else
22932 ac_cpp_err=
22933 fi
22934 else
22935 ac_cpp_err=yes
22936 fi
22937 if test -z "$ac_cpp_err"; then
22938 ac_header_preproc=yes
22939 else
22940 echo "$as_me: failed program was:" >&5
22941 sed 's/^/| /' conftest.$ac_ext >&5
22942
22943 ac_header_preproc=no
22944 fi
22945
22946 rm -f conftest.err conftest.$ac_ext
22947 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22948 echo "${ECHO_T}$ac_header_preproc" >&6; }
22949
22950 # So? What about this header?
22951 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22952 yes:no: )
22953 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22954 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22955 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22956 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22957 ac_header_preproc=yes
22958 ;;
22959 no:yes:* )
22960 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22961 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22962 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22963 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22964 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22965 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22966 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22967 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22968 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22969 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22970 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22971 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22972
22973 ;;
22974 esac
22975 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22976 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22977 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22978 echo $ECHO_N "(cached) $ECHO_C" >&6
22979 else
22980 eval "$as_ac_Header=\$ac_header_preproc"
22981 fi
22982 ac_res=`eval echo '${'$as_ac_Header'}'`
22983 { echo "$as_me:$LINENO: result: $ac_res" >&5
22984 echo "${ECHO_T}$ac_res" >&6; }
22985
22986 fi
22987 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22988 cat >>confdefs.h <<_ACEOF
22989 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22990 _ACEOF
22991
22992 fi
22993
22994 done
22995
22996 fi
22997
22998 done
22999
23000 fi
23001
23002 done
23003
23004
23005 for ac_header in krb.h
23006 do
23007 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23008 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 fi
23014 ac_res=`eval echo '${'$as_ac_Header'}'`
23015 { echo "$as_me:$LINENO: result: $ac_res" >&5
23016 echo "${ECHO_T}$ac_res" >&6; }
23017 else
23018 # Is the header compilable?
23019 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23020 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23021 cat >conftest.$ac_ext <<_ACEOF
23022 /* confdefs.h. */
23023 _ACEOF
23024 cat confdefs.h >>conftest.$ac_ext
23025 cat >>conftest.$ac_ext <<_ACEOF
23026 /* end confdefs.h. */
23027 $ac_includes_default
23028 #include <$ac_header>
23029 _ACEOF
23030 rm -f conftest.$ac_objext
23031 if { (ac_try="$ac_compile"
23032 case "(($ac_try" in
23033 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23034 *) ac_try_echo=$ac_try;;
23035 esac
23036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23037 (eval "$ac_compile") 2>conftest.er1
23038 ac_status=$?
23039 grep -v '^ *+' conftest.er1 >conftest.err
23040 rm -f conftest.er1
23041 cat conftest.err >&5
23042 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23043 (exit $ac_status); } &&
23044 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23045 { (case "(($ac_try" in
23046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23047 *) ac_try_echo=$ac_try;;
23048 esac
23049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23050 (eval "$ac_try") 2>&5
23051 ac_status=$?
23052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23053 (exit $ac_status); }; } &&
23054 { ac_try='test -s conftest.$ac_objext'
23055 { (case "(($ac_try" in
23056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23057 *) ac_try_echo=$ac_try;;
23058 esac
23059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23060 (eval "$ac_try") 2>&5
23061 ac_status=$?
23062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23063 (exit $ac_status); }; }; then
23064 ac_header_compiler=yes
23065 else
23066 echo "$as_me: failed program was:" >&5
23067 sed 's/^/| /' conftest.$ac_ext >&5
23068
23069 ac_header_compiler=no
23070 fi
23071
23072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23073 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23074 echo "${ECHO_T}$ac_header_compiler" >&6; }
23075
23076 # Is the header present?
23077 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23078 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 #include <$ac_header>
23086 _ACEOF
23087 if { (ac_try="$ac_cpp conftest.$ac_ext"
23088 case "(($ac_try" in
23089 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23090 *) ac_try_echo=$ac_try;;
23091 esac
23092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23093 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23094 ac_status=$?
23095 grep -v '^ *+' conftest.er1 >conftest.err
23096 rm -f conftest.er1
23097 cat conftest.err >&5
23098 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23099 (exit $ac_status); } >/dev/null; then
23100 if test -s conftest.err; then
23101 ac_cpp_err=$ac_c_preproc_warn_flag
23102 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23103 else
23104 ac_cpp_err=
23105 fi
23106 else
23107 ac_cpp_err=yes
23108 fi
23109 if test -z "$ac_cpp_err"; then
23110 ac_header_preproc=yes
23111 else
23112 echo "$as_me: failed program was:" >&5
23113 sed 's/^/| /' conftest.$ac_ext >&5
23114
23115 ac_header_preproc=no
23116 fi
23117
23118 rm -f conftest.err conftest.$ac_ext
23119 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23120 echo "${ECHO_T}$ac_header_preproc" >&6; }
23121
23122 # So? What about this header?
23123 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23124 yes:no: )
23125 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23126 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23127 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23128 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23129 ac_header_preproc=yes
23130 ;;
23131 no:yes:* )
23132 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23133 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23134 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23135 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23136 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23137 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23138 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23139 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23140 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23141 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23142 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23143 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23144
23145 ;;
23146 esac
23147 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23148 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23150 echo $ECHO_N "(cached) $ECHO_C" >&6
23151 else
23152 eval "$as_ac_Header=\$ac_header_preproc"
23153 fi
23154 ac_res=`eval echo '${'$as_ac_Header'}'`
23155 { echo "$as_me:$LINENO: result: $ac_res" >&5
23156 echo "${ECHO_T}$ac_res" >&6; }
23157
23158 fi
23159 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23160 cat >>confdefs.h <<_ACEOF
23161 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23162 _ACEOF
23163
23164 else
23165
23166 for ac_header in kerberosIV/krb.h
23167 do
23168 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23170 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23171 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23172 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23173 echo $ECHO_N "(cached) $ECHO_C" >&6
23174 fi
23175 ac_res=`eval echo '${'$as_ac_Header'}'`
23176 { echo "$as_me:$LINENO: result: $ac_res" >&5
23177 echo "${ECHO_T}$ac_res" >&6; }
23178 else
23179 # Is the header compilable?
23180 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23181 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23182 cat >conftest.$ac_ext <<_ACEOF
23183 /* confdefs.h. */
23184 _ACEOF
23185 cat confdefs.h >>conftest.$ac_ext
23186 cat >>conftest.$ac_ext <<_ACEOF
23187 /* end confdefs.h. */
23188 $ac_includes_default
23189 #include <$ac_header>
23190 _ACEOF
23191 rm -f conftest.$ac_objext
23192 if { (ac_try="$ac_compile"
23193 case "(($ac_try" in
23194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23195 *) ac_try_echo=$ac_try;;
23196 esac
23197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23198 (eval "$ac_compile") 2>conftest.er1
23199 ac_status=$?
23200 grep -v '^ *+' conftest.er1 >conftest.err
23201 rm -f conftest.er1
23202 cat conftest.err >&5
23203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23204 (exit $ac_status); } &&
23205 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23206 { (case "(($ac_try" in
23207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23208 *) ac_try_echo=$ac_try;;
23209 esac
23210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23211 (eval "$ac_try") 2>&5
23212 ac_status=$?
23213 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23214 (exit $ac_status); }; } &&
23215 { ac_try='test -s conftest.$ac_objext'
23216 { (case "(($ac_try" in
23217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23218 *) ac_try_echo=$ac_try;;
23219 esac
23220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23221 (eval "$ac_try") 2>&5
23222 ac_status=$?
23223 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23224 (exit $ac_status); }; }; then
23225 ac_header_compiler=yes
23226 else
23227 echo "$as_me: failed program was:" >&5
23228 sed 's/^/| /' conftest.$ac_ext >&5
23229
23230 ac_header_compiler=no
23231 fi
23232
23233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23234 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23235 echo "${ECHO_T}$ac_header_compiler" >&6; }
23236
23237 # Is the header present?
23238 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23239 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23240 cat >conftest.$ac_ext <<_ACEOF
23241 /* confdefs.h. */
23242 _ACEOF
23243 cat confdefs.h >>conftest.$ac_ext
23244 cat >>conftest.$ac_ext <<_ACEOF
23245 /* end confdefs.h. */
23246 #include <$ac_header>
23247 _ACEOF
23248 if { (ac_try="$ac_cpp conftest.$ac_ext"
23249 case "(($ac_try" in
23250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23251 *) ac_try_echo=$ac_try;;
23252 esac
23253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23254 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23255 ac_status=$?
23256 grep -v '^ *+' conftest.er1 >conftest.err
23257 rm -f conftest.er1
23258 cat conftest.err >&5
23259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23260 (exit $ac_status); } >/dev/null; then
23261 if test -s conftest.err; then
23262 ac_cpp_err=$ac_c_preproc_warn_flag
23263 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23264 else
23265 ac_cpp_err=
23266 fi
23267 else
23268 ac_cpp_err=yes
23269 fi
23270 if test -z "$ac_cpp_err"; then
23271 ac_header_preproc=yes
23272 else
23273 echo "$as_me: failed program was:" >&5
23274 sed 's/^/| /' conftest.$ac_ext >&5
23275
23276 ac_header_preproc=no
23277 fi
23278
23279 rm -f conftest.err conftest.$ac_ext
23280 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23281 echo "${ECHO_T}$ac_header_preproc" >&6; }
23282
23283 # So? What about this header?
23284 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23285 yes:no: )
23286 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23287 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23288 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23289 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23290 ac_header_preproc=yes
23291 ;;
23292 no:yes:* )
23293 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23294 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23295 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23296 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23297 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23298 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23299 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23300 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23301 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23302 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23303 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23304 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23305
23306 ;;
23307 esac
23308 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23309 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23310 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23311 echo $ECHO_N "(cached) $ECHO_C" >&6
23312 else
23313 eval "$as_ac_Header=\$ac_header_preproc"
23314 fi
23315 ac_res=`eval echo '${'$as_ac_Header'}'`
23316 { echo "$as_me:$LINENO: result: $ac_res" >&5
23317 echo "${ECHO_T}$ac_res" >&6; }
23318
23319 fi
23320 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23321 cat >>confdefs.h <<_ACEOF
23322 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23323 _ACEOF
23324
23325 else
23326
23327 for ac_header in kerberos/krb.h
23328 do
23329 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23330 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23334 echo $ECHO_N "(cached) $ECHO_C" >&6
23335 fi
23336 ac_res=`eval echo '${'$as_ac_Header'}'`
23337 { echo "$as_me:$LINENO: result: $ac_res" >&5
23338 echo "${ECHO_T}$ac_res" >&6; }
23339 else
23340 # Is the header compilable?
23341 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23342 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23343 cat >conftest.$ac_ext <<_ACEOF
23344 /* confdefs.h. */
23345 _ACEOF
23346 cat confdefs.h >>conftest.$ac_ext
23347 cat >>conftest.$ac_ext <<_ACEOF
23348 /* end confdefs.h. */
23349 $ac_includes_default
23350 #include <$ac_header>
23351 _ACEOF
23352 rm -f conftest.$ac_objext
23353 if { (ac_try="$ac_compile"
23354 case "(($ac_try" in
23355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23356 *) ac_try_echo=$ac_try;;
23357 esac
23358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23359 (eval "$ac_compile") 2>conftest.er1
23360 ac_status=$?
23361 grep -v '^ *+' conftest.er1 >conftest.err
23362 rm -f conftest.er1
23363 cat conftest.err >&5
23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23365 (exit $ac_status); } &&
23366 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23367 { (case "(($ac_try" in
23368 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23369 *) ac_try_echo=$ac_try;;
23370 esac
23371 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23372 (eval "$ac_try") 2>&5
23373 ac_status=$?
23374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23375 (exit $ac_status); }; } &&
23376 { ac_try='test -s conftest.$ac_objext'
23377 { (case "(($ac_try" in
23378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23379 *) ac_try_echo=$ac_try;;
23380 esac
23381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23382 (eval "$ac_try") 2>&5
23383 ac_status=$?
23384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23385 (exit $ac_status); }; }; then
23386 ac_header_compiler=yes
23387 else
23388 echo "$as_me: failed program was:" >&5
23389 sed 's/^/| /' conftest.$ac_ext >&5
23390
23391 ac_header_compiler=no
23392 fi
23393
23394 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23395 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23396 echo "${ECHO_T}$ac_header_compiler" >&6; }
23397
23398 # Is the header present?
23399 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23400 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23401 cat >conftest.$ac_ext <<_ACEOF
23402 /* confdefs.h. */
23403 _ACEOF
23404 cat confdefs.h >>conftest.$ac_ext
23405 cat >>conftest.$ac_ext <<_ACEOF
23406 /* end confdefs.h. */
23407 #include <$ac_header>
23408 _ACEOF
23409 if { (ac_try="$ac_cpp conftest.$ac_ext"
23410 case "(($ac_try" in
23411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23412 *) ac_try_echo=$ac_try;;
23413 esac
23414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23415 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23416 ac_status=$?
23417 grep -v '^ *+' conftest.er1 >conftest.err
23418 rm -f conftest.er1
23419 cat conftest.err >&5
23420 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23421 (exit $ac_status); } >/dev/null; then
23422 if test -s conftest.err; then
23423 ac_cpp_err=$ac_c_preproc_warn_flag
23424 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23425 else
23426 ac_cpp_err=
23427 fi
23428 else
23429 ac_cpp_err=yes
23430 fi
23431 if test -z "$ac_cpp_err"; then
23432 ac_header_preproc=yes
23433 else
23434 echo "$as_me: failed program was:" >&5
23435 sed 's/^/| /' conftest.$ac_ext >&5
23436
23437 ac_header_preproc=no
23438 fi
23439
23440 rm -f conftest.err conftest.$ac_ext
23441 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23442 echo "${ECHO_T}$ac_header_preproc" >&6; }
23443
23444 # So? What about this header?
23445 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23446 yes:no: )
23447 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23448 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23449 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23450 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23451 ac_header_preproc=yes
23452 ;;
23453 no:yes:* )
23454 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23455 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23456 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23457 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23458 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23459 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23460 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23461 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23462 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23463 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23464 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23465 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23466
23467 ;;
23468 esac
23469 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23470 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23472 echo $ECHO_N "(cached) $ECHO_C" >&6
23473 else
23474 eval "$as_ac_Header=\$ac_header_preproc"
23475 fi
23476 ac_res=`eval echo '${'$as_ac_Header'}'`
23477 { echo "$as_me:$LINENO: result: $ac_res" >&5
23478 echo "${ECHO_T}$ac_res" >&6; }
23479
23480 fi
23481 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23482 cat >>confdefs.h <<_ACEOF
23483 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23484 _ACEOF
23485
23486 fi
23487
23488 done
23489
23490 fi
23491
23492 done
23493
23494 fi
23495
23496 done
23497
23498 fi
23499
23500 for ac_header in com_err.h
23501 do
23502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
23503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23504 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23507 echo $ECHO_N "(cached) $ECHO_C" >&6
23508 fi
23509 ac_res=`eval echo '${'$as_ac_Header'}'`
23510 { echo "$as_me:$LINENO: result: $ac_res" >&5
23511 echo "${ECHO_T}$ac_res" >&6; }
23512 else
23513 # Is the header compilable?
23514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
23515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
23516 cat >conftest.$ac_ext <<_ACEOF
23517 /* confdefs.h. */
23518 _ACEOF
23519 cat confdefs.h >>conftest.$ac_ext
23520 cat >>conftest.$ac_ext <<_ACEOF
23521 /* end confdefs.h. */
23522 $ac_includes_default
23523 #include <$ac_header>
23524 _ACEOF
23525 rm -f conftest.$ac_objext
23526 if { (ac_try="$ac_compile"
23527 case "(($ac_try" in
23528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23529 *) ac_try_echo=$ac_try;;
23530 esac
23531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23532 (eval "$ac_compile") 2>conftest.er1
23533 ac_status=$?
23534 grep -v '^ *+' conftest.er1 >conftest.err
23535 rm -f conftest.er1
23536 cat conftest.err >&5
23537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23538 (exit $ac_status); } &&
23539 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23540 { (case "(($ac_try" in
23541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23542 *) ac_try_echo=$ac_try;;
23543 esac
23544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23545 (eval "$ac_try") 2>&5
23546 ac_status=$?
23547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23548 (exit $ac_status); }; } &&
23549 { ac_try='test -s conftest.$ac_objext'
23550 { (case "(($ac_try" in
23551 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23552 *) ac_try_echo=$ac_try;;
23553 esac
23554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23555 (eval "$ac_try") 2>&5
23556 ac_status=$?
23557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23558 (exit $ac_status); }; }; then
23559 ac_header_compiler=yes
23560 else
23561 echo "$as_me: failed program was:" >&5
23562 sed 's/^/| /' conftest.$ac_ext >&5
23563
23564 ac_header_compiler=no
23565 fi
23566
23567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
23569 echo "${ECHO_T}$ac_header_compiler" >&6; }
23570
23571 # Is the header present?
23572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
23573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
23574 cat >conftest.$ac_ext <<_ACEOF
23575 /* confdefs.h. */
23576 _ACEOF
23577 cat confdefs.h >>conftest.$ac_ext
23578 cat >>conftest.$ac_ext <<_ACEOF
23579 /* end confdefs.h. */
23580 #include <$ac_header>
23581 _ACEOF
23582 if { (ac_try="$ac_cpp conftest.$ac_ext"
23583 case "(($ac_try" in
23584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23585 *) ac_try_echo=$ac_try;;
23586 esac
23587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
23589 ac_status=$?
23590 grep -v '^ *+' conftest.er1 >conftest.err
23591 rm -f conftest.er1
23592 cat conftest.err >&5
23593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23594 (exit $ac_status); } >/dev/null; then
23595 if test -s conftest.err; then
23596 ac_cpp_err=$ac_c_preproc_warn_flag
23597 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
23598 else
23599 ac_cpp_err=
23600 fi
23601 else
23602 ac_cpp_err=yes
23603 fi
23604 if test -z "$ac_cpp_err"; then
23605 ac_header_preproc=yes
23606 else
23607 echo "$as_me: failed program was:" >&5
23608 sed 's/^/| /' conftest.$ac_ext >&5
23609
23610 ac_header_preproc=no
23611 fi
23612
23613 rm -f conftest.err conftest.$ac_ext
23614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
23615 echo "${ECHO_T}$ac_header_preproc" >&6; }
23616
23617 # So? What about this header?
23618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
23619 yes:no: )
23620 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
23621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
23622 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
23623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
23624 ac_header_preproc=yes
23625 ;;
23626 no:yes:* )
23627 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
23628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
23629 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
23630 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
23631 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
23632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23633 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23634 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23637 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23639
23640 ;;
23641 esac
23642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23645 echo $ECHO_N "(cached) $ECHO_C" >&6
23646 else
23647 eval "$as_ac_Header=\$ac_header_preproc"
23648 fi
23649 ac_res=`eval echo '${'$as_ac_Header'}'`
23650 { echo "$as_me:$LINENO: result: $ac_res" >&5
23651 echo "${ECHO_T}$ac_res" >&6; }
23652
23653 fi
23654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23655 cat >>confdefs.h <<_ACEOF
23656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23657 _ACEOF
23658
23659 fi
23660
23661 done
23662
23663 fi
23664
23665 # Solaris requires -lintl if you want strerror (which calls dgettext)
23666 # to return localized messages.
23667
23668 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
23669 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
23670 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
23671 echo $ECHO_N "(cached) $ECHO_C" >&6
23672 else
23673 ac_check_lib_save_LIBS=$LIBS
23674 LIBS="-lintl $LIBS"
23675 cat >conftest.$ac_ext <<_ACEOF
23676 /* confdefs.h. */
23677 _ACEOF
23678 cat confdefs.h >>conftest.$ac_ext
23679 cat >>conftest.$ac_ext <<_ACEOF
23680 /* end confdefs.h. */
23681
23682 /* Override any GCC internal prototype to avoid an error.
23683 Use char because int might match the return type of a GCC
23684 builtin and then its argument prototype would still apply. */
23685 #ifdef __cplusplus
23686 extern "C"
23687 #endif
23688 char dgettext ();
23689 int
23690 main ()
23691 {
23692 return dgettext ();
23693 ;
23694 return 0;
23695 }
23696 _ACEOF
23697 rm -f conftest.$ac_objext conftest$ac_exeext
23698 if { (ac_try="$ac_link"
23699 case "(($ac_try" in
23700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23701 *) ac_try_echo=$ac_try;;
23702 esac
23703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23704 (eval "$ac_link") 2>conftest.er1
23705 ac_status=$?
23706 grep -v '^ *+' conftest.er1 >conftest.err
23707 rm -f conftest.er1
23708 cat conftest.err >&5
23709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23710 (exit $ac_status); } &&
23711 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23712 { (case "(($ac_try" in
23713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23714 *) ac_try_echo=$ac_try;;
23715 esac
23716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23717 (eval "$ac_try") 2>&5
23718 ac_status=$?
23719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23720 (exit $ac_status); }; } &&
23721 { ac_try='test -s conftest$ac_exeext'
23722 { (case "(($ac_try" in
23723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23724 *) ac_try_echo=$ac_try;;
23725 esac
23726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23727 (eval "$ac_try") 2>&5
23728 ac_status=$?
23729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23730 (exit $ac_status); }; }; then
23731 ac_cv_lib_intl_dgettext=yes
23732 else
23733 echo "$as_me: failed program was:" >&5
23734 sed 's/^/| /' conftest.$ac_ext >&5
23735
23736 ac_cv_lib_intl_dgettext=no
23737 fi
23738
23739 rm -f core conftest.err conftest.$ac_objext \
23740 conftest$ac_exeext conftest.$ac_ext
23741 LIBS=$ac_check_lib_save_LIBS
23742 fi
23743 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
23744 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
23745 if test $ac_cv_lib_intl_dgettext = yes; then
23746 cat >>confdefs.h <<_ACEOF
23747 #define HAVE_LIBINTL 1
23748 _ACEOF
23749
23750 LIBS="-lintl $LIBS"
23751
23752 fi
23753
23754
23755 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
23756 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
23757 if test "${emacs_cv_localtime_cache+set}" = set; then
23758 echo $ECHO_N "(cached) $ECHO_C" >&6
23759 else
23760 if test x$ac_cv_func_tzset = xyes; then
23761 if test "$cross_compiling" = yes; then
23762 # If we have tzset, assume the worst when cross-compiling.
23763 emacs_cv_localtime_cache=yes
23764 else
23765 cat >conftest.$ac_ext <<_ACEOF
23766 /* confdefs.h. */
23767 _ACEOF
23768 cat confdefs.h >>conftest.$ac_ext
23769 cat >>conftest.$ac_ext <<_ACEOF
23770 /* end confdefs.h. */
23771 #include <time.h>
23772 extern char **environ;
23773 unset_TZ ()
23774 {
23775 char **from, **to;
23776 for (to = from = environ; (*to = *from); from++)
23777 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
23778 to++;
23779 }
23780 char TZ_GMT0[] = "TZ=GMT0";
23781 char TZ_PST8[] = "TZ=PST8";
23782 main()
23783 {
23784 time_t now = time ((time_t *) 0);
23785 int hour_GMT0, hour_unset;
23786 if (putenv (TZ_GMT0) != 0)
23787 exit (1);
23788 hour_GMT0 = localtime (&now)->tm_hour;
23789 unset_TZ ();
23790 hour_unset = localtime (&now)->tm_hour;
23791 if (putenv (TZ_PST8) != 0)
23792 exit (1);
23793 if (localtime (&now)->tm_hour == hour_GMT0)
23794 exit (1);
23795 unset_TZ ();
23796 if (localtime (&now)->tm_hour != hour_unset)
23797 exit (1);
23798 exit (0);
23799 }
23800 _ACEOF
23801 rm -f conftest$ac_exeext
23802 if { (ac_try="$ac_link"
23803 case "(($ac_try" in
23804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23805 *) ac_try_echo=$ac_try;;
23806 esac
23807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23808 (eval "$ac_link") 2>&5
23809 ac_status=$?
23810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23811 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23812 { (case "(($ac_try" in
23813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23814 *) ac_try_echo=$ac_try;;
23815 esac
23816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23817 (eval "$ac_try") 2>&5
23818 ac_status=$?
23819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23820 (exit $ac_status); }; }; then
23821 emacs_cv_localtime_cache=no
23822 else
23823 echo "$as_me: program exited with status $ac_status" >&5
23824 echo "$as_me: failed program was:" >&5
23825 sed 's/^/| /' conftest.$ac_ext >&5
23826
23827 ( exit $ac_status )
23828 emacs_cv_localtime_cache=yes
23829 fi
23830 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23831 fi
23832
23833
23834 else
23835 # If we lack tzset, report that localtime does not cache TZ,
23836 # since we can't invalidate the cache if we don't have tzset.
23837 emacs_cv_localtime_cache=no
23838 fi
23839 fi
23840 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
23841 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
23842 if test $emacs_cv_localtime_cache = yes; then
23843
23844 cat >>confdefs.h <<\_ACEOF
23845 #define LOCALTIME_CACHE 1
23846 _ACEOF
23847
23848 fi
23849
23850 if test "x$HAVE_TIMEVAL" = xyes; then
23851
23852 for ac_func in gettimeofday
23853 do
23854 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23855 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23856 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23857 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23858 echo $ECHO_N "(cached) $ECHO_C" >&6
23859 else
23860 cat >conftest.$ac_ext <<_ACEOF
23861 /* confdefs.h. */
23862 _ACEOF
23863 cat confdefs.h >>conftest.$ac_ext
23864 cat >>conftest.$ac_ext <<_ACEOF
23865 /* end confdefs.h. */
23866 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23867 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23868 #define $ac_func innocuous_$ac_func
23869
23870 /* System header to define __stub macros and hopefully few prototypes,
23871 which can conflict with char $ac_func (); below.
23872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23873 <limits.h> exists even on freestanding compilers. */
23874
23875 #ifdef __STDC__
23876 # include <limits.h>
23877 #else
23878 # include <assert.h>
23879 #endif
23880
23881 #undef $ac_func
23882
23883 /* Override any GCC internal prototype to avoid an error.
23884 Use char because int might match the return type of a GCC
23885 builtin and then its argument prototype would still apply. */
23886 #ifdef __cplusplus
23887 extern "C"
23888 #endif
23889 char $ac_func ();
23890 /* The GNU C library defines this for functions which it implements
23891 to always fail with ENOSYS. Some functions are actually named
23892 something starting with __ and the normal name is an alias. */
23893 #if defined __stub_$ac_func || defined __stub___$ac_func
23894 choke me
23895 #endif
23896
23897 int
23898 main ()
23899 {
23900 return $ac_func ();
23901 ;
23902 return 0;
23903 }
23904 _ACEOF
23905 rm -f conftest.$ac_objext conftest$ac_exeext
23906 if { (ac_try="$ac_link"
23907 case "(($ac_try" in
23908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23909 *) ac_try_echo=$ac_try;;
23910 esac
23911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23912 (eval "$ac_link") 2>conftest.er1
23913 ac_status=$?
23914 grep -v '^ *+' conftest.er1 >conftest.err
23915 rm -f conftest.er1
23916 cat conftest.err >&5
23917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23918 (exit $ac_status); } &&
23919 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
23920 { (case "(($ac_try" in
23921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23922 *) ac_try_echo=$ac_try;;
23923 esac
23924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23925 (eval "$ac_try") 2>&5
23926 ac_status=$?
23927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23928 (exit $ac_status); }; } &&
23929 { ac_try='test -s conftest$ac_exeext'
23930 { (case "(($ac_try" in
23931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23932 *) ac_try_echo=$ac_try;;
23933 esac
23934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23935 (eval "$ac_try") 2>&5
23936 ac_status=$?
23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23938 (exit $ac_status); }; }; then
23939 eval "$as_ac_var=yes"
23940 else
23941 echo "$as_me: failed program was:" >&5
23942 sed 's/^/| /' conftest.$ac_ext >&5
23943
23944 eval "$as_ac_var=no"
23945 fi
23946
23947 rm -f core conftest.err conftest.$ac_objext \
23948 conftest$ac_exeext conftest.$ac_ext
23949 fi
23950 ac_res=`eval echo '${'$as_ac_var'}'`
23951 { echo "$as_me:$LINENO: result: $ac_res" >&5
23952 echo "${ECHO_T}$ac_res" >&6; }
23953 if test `eval echo '${'$as_ac_var'}'` = yes; then
23954 cat >>confdefs.h <<_ACEOF
23955 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23956 _ACEOF
23957
23958 fi
23959 done
23960
23961 if test $ac_cv_func_gettimeofday = yes; then
23962 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
23963 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
23964 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
23965 echo $ECHO_N "(cached) $ECHO_C" >&6
23966 else
23967 cat >conftest.$ac_ext <<_ACEOF
23968 /* confdefs.h. */
23969 _ACEOF
23970 cat confdefs.h >>conftest.$ac_ext
23971 cat >>conftest.$ac_ext <<_ACEOF
23972 /* end confdefs.h. */
23973
23974 #ifdef TIME_WITH_SYS_TIME
23975 #include <sys/time.h>
23976 #include <time.h>
23977 #else
23978 #ifdef HAVE_SYS_TIME_H
23979 #include <sys/time.h>
23980 #else
23981 #include <time.h>
23982 #endif
23983 #endif
23984 int
23985 main ()
23986 {
23987 struct timeval time;
23988 gettimeofday (&time, 0);
23989 ;
23990 return 0;
23991 }
23992 _ACEOF
23993 rm -f conftest.$ac_objext
23994 if { (ac_try="$ac_compile"
23995 case "(($ac_try" in
23996 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23997 *) ac_try_echo=$ac_try;;
23998 esac
23999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24000 (eval "$ac_compile") 2>conftest.er1
24001 ac_status=$?
24002 grep -v '^ *+' conftest.er1 >conftest.err
24003 rm -f conftest.er1
24004 cat conftest.err >&5
24005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24006 (exit $ac_status); } &&
24007 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24008 { (case "(($ac_try" in
24009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24010 *) ac_try_echo=$ac_try;;
24011 esac
24012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24013 (eval "$ac_try") 2>&5
24014 ac_status=$?
24015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24016 (exit $ac_status); }; } &&
24017 { ac_try='test -s conftest.$ac_objext'
24018 { (case "(($ac_try" in
24019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24020 *) ac_try_echo=$ac_try;;
24021 esac
24022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24023 (eval "$ac_try") 2>&5
24024 ac_status=$?
24025 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24026 (exit $ac_status); }; }; then
24027 emacs_cv_gettimeofday_two_arguments=yes
24028 else
24029 echo "$as_me: failed program was:" >&5
24030 sed 's/^/| /' conftest.$ac_ext >&5
24031
24032 emacs_cv_gettimeofday_two_arguments=no
24033 fi
24034
24035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24036 fi
24037 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
24038 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
24039 if test $emacs_cv_gettimeofday_two_arguments = no; then
24040
24041 cat >>confdefs.h <<\_ACEOF
24042 #define GETTIMEOFDAY_ONE_ARGUMENT 1
24043 _ACEOF
24044
24045 fi
24046 fi
24047 fi
24048
24049 ok_so_far=yes
24050 { echo "$as_me:$LINENO: checking for socket" >&5
24051 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
24052 if test "${ac_cv_func_socket+set}" = set; then
24053 echo $ECHO_N "(cached) $ECHO_C" >&6
24054 else
24055 cat >conftest.$ac_ext <<_ACEOF
24056 /* confdefs.h. */
24057 _ACEOF
24058 cat confdefs.h >>conftest.$ac_ext
24059 cat >>conftest.$ac_ext <<_ACEOF
24060 /* end confdefs.h. */
24061 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
24062 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24063 #define socket innocuous_socket
24064
24065 /* System header to define __stub macros and hopefully few prototypes,
24066 which can conflict with char socket (); below.
24067 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24068 <limits.h> exists even on freestanding compilers. */
24069
24070 #ifdef __STDC__
24071 # include <limits.h>
24072 #else
24073 # include <assert.h>
24074 #endif
24075
24076 #undef socket
24077
24078 /* Override any GCC internal prototype to avoid an error.
24079 Use char because int might match the return type of a GCC
24080 builtin and then its argument prototype would still apply. */
24081 #ifdef __cplusplus
24082 extern "C"
24083 #endif
24084 char socket ();
24085 /* The GNU C library defines this for functions which it implements
24086 to always fail with ENOSYS. Some functions are actually named
24087 something starting with __ and the normal name is an alias. */
24088 #if defined __stub_socket || defined __stub___socket
24089 choke me
24090 #endif
24091
24092 int
24093 main ()
24094 {
24095 return socket ();
24096 ;
24097 return 0;
24098 }
24099 _ACEOF
24100 rm -f conftest.$ac_objext conftest$ac_exeext
24101 if { (ac_try="$ac_link"
24102 case "(($ac_try" in
24103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24104 *) ac_try_echo=$ac_try;;
24105 esac
24106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24107 (eval "$ac_link") 2>conftest.er1
24108 ac_status=$?
24109 grep -v '^ *+' conftest.er1 >conftest.err
24110 rm -f conftest.er1
24111 cat conftest.err >&5
24112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24113 (exit $ac_status); } &&
24114 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24115 { (case "(($ac_try" in
24116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24117 *) ac_try_echo=$ac_try;;
24118 esac
24119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24120 (eval "$ac_try") 2>&5
24121 ac_status=$?
24122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24123 (exit $ac_status); }; } &&
24124 { ac_try='test -s conftest$ac_exeext'
24125 { (case "(($ac_try" in
24126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24127 *) ac_try_echo=$ac_try;;
24128 esac
24129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24130 (eval "$ac_try") 2>&5
24131 ac_status=$?
24132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24133 (exit $ac_status); }; }; then
24134 ac_cv_func_socket=yes
24135 else
24136 echo "$as_me: failed program was:" >&5
24137 sed 's/^/| /' conftest.$ac_ext >&5
24138
24139 ac_cv_func_socket=no
24140 fi
24141
24142 rm -f core conftest.err conftest.$ac_objext \
24143 conftest$ac_exeext conftest.$ac_ext
24144 fi
24145 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
24146 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
24147 if test $ac_cv_func_socket = yes; then
24148 :
24149 else
24150 ok_so_far=no
24151 fi
24152
24153 if test $ok_so_far = yes; then
24154 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24155 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24156 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
24157 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24158 echo $ECHO_N "(cached) $ECHO_C" >&6
24159 fi
24160 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24161 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24162 else
24163 # Is the header compilable?
24164 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
24165 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
24166 cat >conftest.$ac_ext <<_ACEOF
24167 /* confdefs.h. */
24168 _ACEOF
24169 cat confdefs.h >>conftest.$ac_ext
24170 cat >>conftest.$ac_ext <<_ACEOF
24171 /* end confdefs.h. */
24172 $ac_includes_default
24173 #include <netinet/in.h>
24174 _ACEOF
24175 rm -f conftest.$ac_objext
24176 if { (ac_try="$ac_compile"
24177 case "(($ac_try" in
24178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24179 *) ac_try_echo=$ac_try;;
24180 esac
24181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24182 (eval "$ac_compile") 2>conftest.er1
24183 ac_status=$?
24184 grep -v '^ *+' conftest.er1 >conftest.err
24185 rm -f conftest.er1
24186 cat conftest.err >&5
24187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24188 (exit $ac_status); } &&
24189 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24190 { (case "(($ac_try" in
24191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24192 *) ac_try_echo=$ac_try;;
24193 esac
24194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24195 (eval "$ac_try") 2>&5
24196 ac_status=$?
24197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24198 (exit $ac_status); }; } &&
24199 { ac_try='test -s conftest.$ac_objext'
24200 { (case "(($ac_try" in
24201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24202 *) ac_try_echo=$ac_try;;
24203 esac
24204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24205 (eval "$ac_try") 2>&5
24206 ac_status=$?
24207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24208 (exit $ac_status); }; }; then
24209 ac_header_compiler=yes
24210 else
24211 echo "$as_me: failed program was:" >&5
24212 sed 's/^/| /' conftest.$ac_ext >&5
24213
24214 ac_header_compiler=no
24215 fi
24216
24217 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24218 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24219 echo "${ECHO_T}$ac_header_compiler" >&6; }
24220
24221 # Is the header present?
24222 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
24223 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
24224 cat >conftest.$ac_ext <<_ACEOF
24225 /* confdefs.h. */
24226 _ACEOF
24227 cat confdefs.h >>conftest.$ac_ext
24228 cat >>conftest.$ac_ext <<_ACEOF
24229 /* end confdefs.h. */
24230 #include <netinet/in.h>
24231 _ACEOF
24232 if { (ac_try="$ac_cpp conftest.$ac_ext"
24233 case "(($ac_try" in
24234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24235 *) ac_try_echo=$ac_try;;
24236 esac
24237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24238 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24239 ac_status=$?
24240 grep -v '^ *+' conftest.er1 >conftest.err
24241 rm -f conftest.er1
24242 cat conftest.err >&5
24243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24244 (exit $ac_status); } >/dev/null; then
24245 if test -s conftest.err; then
24246 ac_cpp_err=$ac_c_preproc_warn_flag
24247 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24248 else
24249 ac_cpp_err=
24250 fi
24251 else
24252 ac_cpp_err=yes
24253 fi
24254 if test -z "$ac_cpp_err"; then
24255 ac_header_preproc=yes
24256 else
24257 echo "$as_me: failed program was:" >&5
24258 sed 's/^/| /' conftest.$ac_ext >&5
24259
24260 ac_header_preproc=no
24261 fi
24262
24263 rm -f conftest.err conftest.$ac_ext
24264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24265 echo "${ECHO_T}$ac_header_preproc" >&6; }
24266
24267 # So? What about this header?
24268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24269 yes:no: )
24270 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
24271 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24272 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
24273 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
24274 ac_header_preproc=yes
24275 ;;
24276 no:yes:* )
24277 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
24278 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
24279 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
24280 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
24281 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
24282 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
24283 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
24284 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
24285 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
24286 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
24287 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
24288 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
24289
24290 ;;
24291 esac
24292 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
24293 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
24294 if test "${ac_cv_header_netinet_in_h+set}" = set; then
24295 echo $ECHO_N "(cached) $ECHO_C" >&6
24296 else
24297 ac_cv_header_netinet_in_h=$ac_header_preproc
24298 fi
24299 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
24300 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
24301
24302 fi
24303 if test $ac_cv_header_netinet_in_h = yes; then
24304 :
24305 else
24306 ok_so_far=no
24307 fi
24308
24309
24310 fi
24311 if test $ok_so_far = yes; then
24312 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24313 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24314 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
24315 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24316 echo $ECHO_N "(cached) $ECHO_C" >&6
24317 fi
24318 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24319 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24320 else
24321 # Is the header compilable?
24322 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
24323 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
24324 cat >conftest.$ac_ext <<_ACEOF
24325 /* confdefs.h. */
24326 _ACEOF
24327 cat confdefs.h >>conftest.$ac_ext
24328 cat >>conftest.$ac_ext <<_ACEOF
24329 /* end confdefs.h. */
24330 $ac_includes_default
24331 #include <arpa/inet.h>
24332 _ACEOF
24333 rm -f conftest.$ac_objext
24334 if { (ac_try="$ac_compile"
24335 case "(($ac_try" in
24336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24337 *) ac_try_echo=$ac_try;;
24338 esac
24339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24340 (eval "$ac_compile") 2>conftest.er1
24341 ac_status=$?
24342 grep -v '^ *+' conftest.er1 >conftest.err
24343 rm -f conftest.er1
24344 cat conftest.err >&5
24345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24346 (exit $ac_status); } &&
24347 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24348 { (case "(($ac_try" in
24349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24350 *) ac_try_echo=$ac_try;;
24351 esac
24352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24353 (eval "$ac_try") 2>&5
24354 ac_status=$?
24355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24356 (exit $ac_status); }; } &&
24357 { ac_try='test -s conftest.$ac_objext'
24358 { (case "(($ac_try" in
24359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24360 *) ac_try_echo=$ac_try;;
24361 esac
24362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24363 (eval "$ac_try") 2>&5
24364 ac_status=$?
24365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24366 (exit $ac_status); }; }; then
24367 ac_header_compiler=yes
24368 else
24369 echo "$as_me: failed program was:" >&5
24370 sed 's/^/| /' conftest.$ac_ext >&5
24371
24372 ac_header_compiler=no
24373 fi
24374
24375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24376 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24377 echo "${ECHO_T}$ac_header_compiler" >&6; }
24378
24379 # Is the header present?
24380 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
24381 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
24382 cat >conftest.$ac_ext <<_ACEOF
24383 /* confdefs.h. */
24384 _ACEOF
24385 cat confdefs.h >>conftest.$ac_ext
24386 cat >>conftest.$ac_ext <<_ACEOF
24387 /* end confdefs.h. */
24388 #include <arpa/inet.h>
24389 _ACEOF
24390 if { (ac_try="$ac_cpp conftest.$ac_ext"
24391 case "(($ac_try" in
24392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24393 *) ac_try_echo=$ac_try;;
24394 esac
24395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24396 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24397 ac_status=$?
24398 grep -v '^ *+' conftest.er1 >conftest.err
24399 rm -f conftest.er1
24400 cat conftest.err >&5
24401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24402 (exit $ac_status); } >/dev/null; then
24403 if test -s conftest.err; then
24404 ac_cpp_err=$ac_c_preproc_warn_flag
24405 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24406 else
24407 ac_cpp_err=
24408 fi
24409 else
24410 ac_cpp_err=yes
24411 fi
24412 if test -z "$ac_cpp_err"; then
24413 ac_header_preproc=yes
24414 else
24415 echo "$as_me: failed program was:" >&5
24416 sed 's/^/| /' conftest.$ac_ext >&5
24417
24418 ac_header_preproc=no
24419 fi
24420
24421 rm -f conftest.err conftest.$ac_ext
24422 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24423 echo "${ECHO_T}$ac_header_preproc" >&6; }
24424
24425 # So? What about this header?
24426 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24427 yes:no: )
24428 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
24429 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
24430 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
24431 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
24432 ac_header_preproc=yes
24433 ;;
24434 no:yes:* )
24435 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
24436 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
24437 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
24438 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
24439 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
24440 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
24441 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
24442 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
24443 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
24444 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
24445 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
24446 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
24447
24448 ;;
24449 esac
24450 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
24451 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
24452 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
24453 echo $ECHO_N "(cached) $ECHO_C" >&6
24454 else
24455 ac_cv_header_arpa_inet_h=$ac_header_preproc
24456 fi
24457 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
24458 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
24459
24460 fi
24461 if test $ac_cv_header_arpa_inet_h = yes; then
24462 :
24463 else
24464 ok_so_far=no
24465 fi
24466
24467
24468 fi
24469 if test $ok_so_far = yes; then
24470
24471 cat >>confdefs.h <<\_ACEOF
24472 #define HAVE_INET_SOCKETS 1
24473 _ACEOF
24474
24475 fi
24476
24477
24478 for ac_header in sys/ioctl.h
24479 do
24480 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24481 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24482 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24483 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24485 echo $ECHO_N "(cached) $ECHO_C" >&6
24486 fi
24487 ac_res=`eval echo '${'$as_ac_Header'}'`
24488 { echo "$as_me:$LINENO: result: $ac_res" >&5
24489 echo "${ECHO_T}$ac_res" >&6; }
24490 else
24491 # Is the header compilable?
24492 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24493 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24494 cat >conftest.$ac_ext <<_ACEOF
24495 /* confdefs.h. */
24496 _ACEOF
24497 cat confdefs.h >>conftest.$ac_ext
24498 cat >>conftest.$ac_ext <<_ACEOF
24499 /* end confdefs.h. */
24500 $ac_includes_default
24501 #include <$ac_header>
24502 _ACEOF
24503 rm -f conftest.$ac_objext
24504 if { (ac_try="$ac_compile"
24505 case "(($ac_try" in
24506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24507 *) ac_try_echo=$ac_try;;
24508 esac
24509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24510 (eval "$ac_compile") 2>conftest.er1
24511 ac_status=$?
24512 grep -v '^ *+' conftest.er1 >conftest.err
24513 rm -f conftest.er1
24514 cat conftest.err >&5
24515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24516 (exit $ac_status); } &&
24517 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24518 { (case "(($ac_try" in
24519 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24520 *) ac_try_echo=$ac_try;;
24521 esac
24522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24523 (eval "$ac_try") 2>&5
24524 ac_status=$?
24525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24526 (exit $ac_status); }; } &&
24527 { ac_try='test -s conftest.$ac_objext'
24528 { (case "(($ac_try" in
24529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24530 *) ac_try_echo=$ac_try;;
24531 esac
24532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24533 (eval "$ac_try") 2>&5
24534 ac_status=$?
24535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24536 (exit $ac_status); }; }; then
24537 ac_header_compiler=yes
24538 else
24539 echo "$as_me: failed program was:" >&5
24540 sed 's/^/| /' conftest.$ac_ext >&5
24541
24542 ac_header_compiler=no
24543 fi
24544
24545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24546 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24547 echo "${ECHO_T}$ac_header_compiler" >&6; }
24548
24549 # Is the header present?
24550 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24551 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24552 cat >conftest.$ac_ext <<_ACEOF
24553 /* confdefs.h. */
24554 _ACEOF
24555 cat confdefs.h >>conftest.$ac_ext
24556 cat >>conftest.$ac_ext <<_ACEOF
24557 /* end confdefs.h. */
24558 #include <$ac_header>
24559 _ACEOF
24560 if { (ac_try="$ac_cpp conftest.$ac_ext"
24561 case "(($ac_try" in
24562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24563 *) ac_try_echo=$ac_try;;
24564 esac
24565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24566 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24567 ac_status=$?
24568 grep -v '^ *+' conftest.er1 >conftest.err
24569 rm -f conftest.er1
24570 cat conftest.err >&5
24571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24572 (exit $ac_status); } >/dev/null; then
24573 if test -s conftest.err; then
24574 ac_cpp_err=$ac_c_preproc_warn_flag
24575 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24576 else
24577 ac_cpp_err=
24578 fi
24579 else
24580 ac_cpp_err=yes
24581 fi
24582 if test -z "$ac_cpp_err"; then
24583 ac_header_preproc=yes
24584 else
24585 echo "$as_me: failed program was:" >&5
24586 sed 's/^/| /' conftest.$ac_ext >&5
24587
24588 ac_header_preproc=no
24589 fi
24590
24591 rm -f conftest.err conftest.$ac_ext
24592 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24593 echo "${ECHO_T}$ac_header_preproc" >&6; }
24594
24595 # So? What about this header?
24596 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24597 yes:no: )
24598 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24599 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24600 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24601 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24602 ac_header_preproc=yes
24603 ;;
24604 no:yes:* )
24605 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24606 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24607 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24608 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24609 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24610 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24611 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24612 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24613 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24614 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24615 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24616 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24617
24618 ;;
24619 esac
24620 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24621 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24622 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24623 echo $ECHO_N "(cached) $ECHO_C" >&6
24624 else
24625 eval "$as_ac_Header=\$ac_header_preproc"
24626 fi
24627 ac_res=`eval echo '${'$as_ac_Header'}'`
24628 { echo "$as_me:$LINENO: result: $ac_res" >&5
24629 echo "${ECHO_T}$ac_res" >&6; }
24630
24631 fi
24632 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24633 cat >>confdefs.h <<_ACEOF
24634 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24635 _ACEOF
24636
24637 fi
24638
24639 done
24640
24641
24642 if test -f /usr/lpp/X11/bin/smt.exp; then
24643
24644 cat >>confdefs.h <<\_ACEOF
24645 #define HAVE_AIX_SMT_EXP 1
24646 _ACEOF
24647
24648 fi
24649
24650 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
24651 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
24652 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
24653 { echo "$as_me:$LINENO: result: yes" >&5
24654 echo "${ECHO_T}yes" >&6; }
24655
24656 cat >>confdefs.h <<\_ACEOF
24657 #define HAVE_DEV_PTMX 1
24658 _ACEOF
24659
24660 else
24661 { echo "$as_me:$LINENO: result: no" >&5
24662 echo "${ECHO_T}no" >&6; }
24663 fi
24664
24665 { echo "$as_me:$LINENO: checking for pid_t" >&5
24666 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
24667 if test "${ac_cv_type_pid_t+set}" = set; then
24668 echo $ECHO_N "(cached) $ECHO_C" >&6
24669 else
24670 cat >conftest.$ac_ext <<_ACEOF
24671 /* confdefs.h. */
24672 _ACEOF
24673 cat confdefs.h >>conftest.$ac_ext
24674 cat >>conftest.$ac_ext <<_ACEOF
24675 /* end confdefs.h. */
24676 $ac_includes_default
24677 typedef pid_t ac__type_new_;
24678 int
24679 main ()
24680 {
24681 if ((ac__type_new_ *) 0)
24682 return 0;
24683 if (sizeof (ac__type_new_))
24684 return 0;
24685 ;
24686 return 0;
24687 }
24688 _ACEOF
24689 rm -f conftest.$ac_objext
24690 if { (ac_try="$ac_compile"
24691 case "(($ac_try" in
24692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24693 *) ac_try_echo=$ac_try;;
24694 esac
24695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24696 (eval "$ac_compile") 2>conftest.er1
24697 ac_status=$?
24698 grep -v '^ *+' conftest.er1 >conftest.err
24699 rm -f conftest.er1
24700 cat conftest.err >&5
24701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24702 (exit $ac_status); } &&
24703 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24704 { (case "(($ac_try" in
24705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24706 *) ac_try_echo=$ac_try;;
24707 esac
24708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24709 (eval "$ac_try") 2>&5
24710 ac_status=$?
24711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24712 (exit $ac_status); }; } &&
24713 { ac_try='test -s conftest.$ac_objext'
24714 { (case "(($ac_try" in
24715 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24716 *) ac_try_echo=$ac_try;;
24717 esac
24718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24719 (eval "$ac_try") 2>&5
24720 ac_status=$?
24721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24722 (exit $ac_status); }; }; then
24723 ac_cv_type_pid_t=yes
24724 else
24725 echo "$as_me: failed program was:" >&5
24726 sed 's/^/| /' conftest.$ac_ext >&5
24727
24728 ac_cv_type_pid_t=no
24729 fi
24730
24731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24732 fi
24733 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
24734 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
24735 if test $ac_cv_type_pid_t = yes; then
24736 :
24737 else
24738
24739 cat >>confdefs.h <<_ACEOF
24740 #define pid_t int
24741 _ACEOF
24742
24743 fi
24744
24745
24746 for ac_header in vfork.h
24747 do
24748 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
24749 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24750 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24751 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24752 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24753 echo $ECHO_N "(cached) $ECHO_C" >&6
24754 fi
24755 ac_res=`eval echo '${'$as_ac_Header'}'`
24756 { echo "$as_me:$LINENO: result: $ac_res" >&5
24757 echo "${ECHO_T}$ac_res" >&6; }
24758 else
24759 # Is the header compilable?
24760 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
24761 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
24762 cat >conftest.$ac_ext <<_ACEOF
24763 /* confdefs.h. */
24764 _ACEOF
24765 cat confdefs.h >>conftest.$ac_ext
24766 cat >>conftest.$ac_ext <<_ACEOF
24767 /* end confdefs.h. */
24768 $ac_includes_default
24769 #include <$ac_header>
24770 _ACEOF
24771 rm -f conftest.$ac_objext
24772 if { (ac_try="$ac_compile"
24773 case "(($ac_try" in
24774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24775 *) ac_try_echo=$ac_try;;
24776 esac
24777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24778 (eval "$ac_compile") 2>conftest.er1
24779 ac_status=$?
24780 grep -v '^ *+' conftest.er1 >conftest.err
24781 rm -f conftest.er1
24782 cat conftest.err >&5
24783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24784 (exit $ac_status); } &&
24785 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24786 { (case "(($ac_try" in
24787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24788 *) ac_try_echo=$ac_try;;
24789 esac
24790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24791 (eval "$ac_try") 2>&5
24792 ac_status=$?
24793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24794 (exit $ac_status); }; } &&
24795 { ac_try='test -s conftest.$ac_objext'
24796 { (case "(($ac_try" in
24797 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24798 *) ac_try_echo=$ac_try;;
24799 esac
24800 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24801 (eval "$ac_try") 2>&5
24802 ac_status=$?
24803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24804 (exit $ac_status); }; }; then
24805 ac_header_compiler=yes
24806 else
24807 echo "$as_me: failed program was:" >&5
24808 sed 's/^/| /' conftest.$ac_ext >&5
24809
24810 ac_header_compiler=no
24811 fi
24812
24813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
24814 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
24815 echo "${ECHO_T}$ac_header_compiler" >&6; }
24816
24817 # Is the header present?
24818 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
24819 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
24820 cat >conftest.$ac_ext <<_ACEOF
24821 /* confdefs.h. */
24822 _ACEOF
24823 cat confdefs.h >>conftest.$ac_ext
24824 cat >>conftest.$ac_ext <<_ACEOF
24825 /* end confdefs.h. */
24826 #include <$ac_header>
24827 _ACEOF
24828 if { (ac_try="$ac_cpp conftest.$ac_ext"
24829 case "(($ac_try" in
24830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24831 *) ac_try_echo=$ac_try;;
24832 esac
24833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24834 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
24835 ac_status=$?
24836 grep -v '^ *+' conftest.er1 >conftest.err
24837 rm -f conftest.er1
24838 cat conftest.err >&5
24839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24840 (exit $ac_status); } >/dev/null; then
24841 if test -s conftest.err; then
24842 ac_cpp_err=$ac_c_preproc_warn_flag
24843 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
24844 else
24845 ac_cpp_err=
24846 fi
24847 else
24848 ac_cpp_err=yes
24849 fi
24850 if test -z "$ac_cpp_err"; then
24851 ac_header_preproc=yes
24852 else
24853 echo "$as_me: failed program was:" >&5
24854 sed 's/^/| /' conftest.$ac_ext >&5
24855
24856 ac_header_preproc=no
24857 fi
24858
24859 rm -f conftest.err conftest.$ac_ext
24860 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
24861 echo "${ECHO_T}$ac_header_preproc" >&6; }
24862
24863 # So? What about this header?
24864 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
24865 yes:no: )
24866 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
24867 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
24868 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
24869 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
24870 ac_header_preproc=yes
24871 ;;
24872 no:yes:* )
24873 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
24874 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
24875 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
24876 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
24877 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
24878 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
24879 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
24880 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
24881 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
24882 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
24883 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
24884 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
24885
24886 ;;
24887 esac
24888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
24889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
24890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
24891 echo $ECHO_N "(cached) $ECHO_C" >&6
24892 else
24893 eval "$as_ac_Header=\$ac_header_preproc"
24894 fi
24895 ac_res=`eval echo '${'$as_ac_Header'}'`
24896 { echo "$as_me:$LINENO: result: $ac_res" >&5
24897 echo "${ECHO_T}$ac_res" >&6; }
24898
24899 fi
24900 if test `eval echo '${'$as_ac_Header'}'` = yes; then
24901 cat >>confdefs.h <<_ACEOF
24902 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
24903 _ACEOF
24904
24905 fi
24906
24907 done
24908
24909
24910
24911 for ac_func in fork vfork
24912 do
24913 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
24914 { echo "$as_me:$LINENO: checking for $ac_func" >&5
24915 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
24916 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
24917 echo $ECHO_N "(cached) $ECHO_C" >&6
24918 else
24919 cat >conftest.$ac_ext <<_ACEOF
24920 /* confdefs.h. */
24921 _ACEOF
24922 cat confdefs.h >>conftest.$ac_ext
24923 cat >>conftest.$ac_ext <<_ACEOF
24924 /* end confdefs.h. */
24925 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
24926 For example, HP-UX 11i <limits.h> declares gettimeofday. */
24927 #define $ac_func innocuous_$ac_func
24928
24929 /* System header to define __stub macros and hopefully few prototypes,
24930 which can conflict with char $ac_func (); below.
24931 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
24932 <limits.h> exists even on freestanding compilers. */
24933
24934 #ifdef __STDC__
24935 # include <limits.h>
24936 #else
24937 # include <assert.h>
24938 #endif
24939
24940 #undef $ac_func
24941
24942 /* Override any GCC internal prototype to avoid an error.
24943 Use char because int might match the return type of a GCC
24944 builtin and then its argument prototype would still apply. */
24945 #ifdef __cplusplus
24946 extern "C"
24947 #endif
24948 char $ac_func ();
24949 /* The GNU C library defines this for functions which it implements
24950 to always fail with ENOSYS. Some functions are actually named
24951 something starting with __ and the normal name is an alias. */
24952 #if defined __stub_$ac_func || defined __stub___$ac_func
24953 choke me
24954 #endif
24955
24956 int
24957 main ()
24958 {
24959 return $ac_func ();
24960 ;
24961 return 0;
24962 }
24963 _ACEOF
24964 rm -f conftest.$ac_objext conftest$ac_exeext
24965 if { (ac_try="$ac_link"
24966 case "(($ac_try" in
24967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24968 *) ac_try_echo=$ac_try;;
24969 esac
24970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24971 (eval "$ac_link") 2>conftest.er1
24972 ac_status=$?
24973 grep -v '^ *+' conftest.er1 >conftest.err
24974 rm -f conftest.er1
24975 cat conftest.err >&5
24976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24977 (exit $ac_status); } &&
24978 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
24979 { (case "(($ac_try" in
24980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24981 *) ac_try_echo=$ac_try;;
24982 esac
24983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24984 (eval "$ac_try") 2>&5
24985 ac_status=$?
24986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24987 (exit $ac_status); }; } &&
24988 { ac_try='test -s conftest$ac_exeext'
24989 { (case "(($ac_try" in
24990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
24991 *) ac_try_echo=$ac_try;;
24992 esac
24993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
24994 (eval "$ac_try") 2>&5
24995 ac_status=$?
24996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
24997 (exit $ac_status); }; }; then
24998 eval "$as_ac_var=yes"
24999 else
25000 echo "$as_me: failed program was:" >&5
25001 sed 's/^/| /' conftest.$ac_ext >&5
25002
25003 eval "$as_ac_var=no"
25004 fi
25005
25006 rm -f core conftest.err conftest.$ac_objext \
25007 conftest$ac_exeext conftest.$ac_ext
25008 fi
25009 ac_res=`eval echo '${'$as_ac_var'}'`
25010 { echo "$as_me:$LINENO: result: $ac_res" >&5
25011 echo "${ECHO_T}$ac_res" >&6; }
25012 if test `eval echo '${'$as_ac_var'}'` = yes; then
25013 cat >>confdefs.h <<_ACEOF
25014 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
25015 _ACEOF
25016
25017 fi
25018 done
25019
25020 if test "x$ac_cv_func_fork" = xyes; then
25021 { echo "$as_me:$LINENO: checking for working fork" >&5
25022 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
25023 if test "${ac_cv_func_fork_works+set}" = set; then
25024 echo $ECHO_N "(cached) $ECHO_C" >&6
25025 else
25026 if test "$cross_compiling" = yes; then
25027 ac_cv_func_fork_works=cross
25028 else
25029 cat >conftest.$ac_ext <<_ACEOF
25030 /* confdefs.h. */
25031 _ACEOF
25032 cat confdefs.h >>conftest.$ac_ext
25033 cat >>conftest.$ac_ext <<_ACEOF
25034 /* end confdefs.h. */
25035 $ac_includes_default
25036 int
25037 main ()
25038 {
25039
25040 /* By Ruediger Kuhlmann. */
25041 return fork () < 0;
25042
25043 ;
25044 return 0;
25045 }
25046 _ACEOF
25047 rm -f conftest$ac_exeext
25048 if { (ac_try="$ac_link"
25049 case "(($ac_try" in
25050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25051 *) ac_try_echo=$ac_try;;
25052 esac
25053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25054 (eval "$ac_link") 2>&5
25055 ac_status=$?
25056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25057 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25058 { (case "(($ac_try" in
25059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25060 *) ac_try_echo=$ac_try;;
25061 esac
25062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25063 (eval "$ac_try") 2>&5
25064 ac_status=$?
25065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25066 (exit $ac_status); }; }; then
25067 ac_cv_func_fork_works=yes
25068 else
25069 echo "$as_me: program exited with status $ac_status" >&5
25070 echo "$as_me: failed program was:" >&5
25071 sed 's/^/| /' conftest.$ac_ext >&5
25072
25073 ( exit $ac_status )
25074 ac_cv_func_fork_works=no
25075 fi
25076 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25077 fi
25078
25079
25080 fi
25081 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
25082 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
25083
25084 else
25085 ac_cv_func_fork_works=$ac_cv_func_fork
25086 fi
25087 if test "x$ac_cv_func_fork_works" = xcross; then
25088 case $host in
25089 *-*-amigaos* | *-*-msdosdjgpp*)
25090 # Override, as these systems have only a dummy fork() stub
25091 ac_cv_func_fork_works=no
25092 ;;
25093 *)
25094 ac_cv_func_fork_works=yes
25095 ;;
25096 esac
25097 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
25098 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
25099 fi
25100 ac_cv_func_vfork_works=$ac_cv_func_vfork
25101 if test "x$ac_cv_func_vfork" = xyes; then
25102 { echo "$as_me:$LINENO: checking for working vfork" >&5
25103 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
25104 if test "${ac_cv_func_vfork_works+set}" = set; then
25105 echo $ECHO_N "(cached) $ECHO_C" >&6
25106 else
25107 if test "$cross_compiling" = yes; then
25108 ac_cv_func_vfork_works=cross
25109 else
25110 cat >conftest.$ac_ext <<_ACEOF
25111 /* confdefs.h. */
25112 _ACEOF
25113 cat confdefs.h >>conftest.$ac_ext
25114 cat >>conftest.$ac_ext <<_ACEOF
25115 /* end confdefs.h. */
25116 /* Thanks to Paul Eggert for this test. */
25117 $ac_includes_default
25118 #include <sys/wait.h>
25119 #if HAVE_VFORK_H
25120 # include <vfork.h>
25121 #endif
25122 /* On some sparc systems, changes by the child to local and incoming
25123 argument registers are propagated back to the parent. The compiler
25124 is told about this with #include <vfork.h>, but some compilers
25125 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
25126 static variable whose address is put into a register that is
25127 clobbered by the vfork. */
25128 static void
25129 #ifdef __cplusplus
25130 sparc_address_test (int arg)
25131 # else
25132 sparc_address_test (arg) int arg;
25133 #endif
25134 {
25135 static pid_t child;
25136 if (!child) {
25137 child = vfork ();
25138 if (child < 0) {
25139 perror ("vfork");
25140 _exit(2);
25141 }
25142 if (!child) {
25143 arg = getpid();
25144 write(-1, "", 0);
25145 _exit (arg);
25146 }
25147 }
25148 }
25149
25150 int
25151 main ()
25152 {
25153 pid_t parent = getpid ();
25154 pid_t child;
25155
25156 sparc_address_test (0);
25157
25158 child = vfork ();
25159
25160 if (child == 0) {
25161 /* Here is another test for sparc vfork register problems. This
25162 test uses lots of local variables, at least as many local
25163 variables as main has allocated so far including compiler
25164 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
25165 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
25166 reuse the register of parent for one of the local variables,
25167 since it will think that parent can't possibly be used any more
25168 in this routine. Assigning to the local variable will thus
25169 munge parent in the parent process. */
25170 pid_t
25171 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
25172 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
25173 /* Convince the compiler that p..p7 are live; otherwise, it might
25174 use the same hardware register for all 8 local variables. */
25175 if (p != p1 || p != p2 || p != p3 || p != p4
25176 || p != p5 || p != p6 || p != p7)
25177 _exit(1);
25178
25179 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
25180 from child file descriptors. If the child closes a descriptor
25181 before it execs or exits, this munges the parent's descriptor
25182 as well. Test for this by closing stdout in the child. */
25183 _exit(close(fileno(stdout)) != 0);
25184 } else {
25185 int status;
25186 struct stat st;
25187
25188 while (wait(&status) != child)
25189 ;
25190 return (
25191 /* Was there some problem with vforking? */
25192 child < 0
25193
25194 /* Did the child fail? (This shouldn't happen.) */
25195 || status
25196
25197 /* Did the vfork/compiler bug occur? */
25198 || parent != getpid()
25199
25200 /* Did the file descriptor bug occur? */
25201 || fstat(fileno(stdout), &st) != 0
25202 );
25203 }
25204 }
25205 _ACEOF
25206 rm -f conftest$ac_exeext
25207 if { (ac_try="$ac_link"
25208 case "(($ac_try" in
25209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25210 *) ac_try_echo=$ac_try;;
25211 esac
25212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25213 (eval "$ac_link") 2>&5
25214 ac_status=$?
25215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25216 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
25217 { (case "(($ac_try" in
25218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25219 *) ac_try_echo=$ac_try;;
25220 esac
25221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25222 (eval "$ac_try") 2>&5
25223 ac_status=$?
25224 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25225 (exit $ac_status); }; }; then
25226 ac_cv_func_vfork_works=yes
25227 else
25228 echo "$as_me: program exited with status $ac_status" >&5
25229 echo "$as_me: failed program was:" >&5
25230 sed 's/^/| /' conftest.$ac_ext >&5
25231
25232 ( exit $ac_status )
25233 ac_cv_func_vfork_works=no
25234 fi
25235 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
25236 fi
25237
25238
25239 fi
25240 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
25241 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
25242
25243 fi;
25244 if test "x$ac_cv_func_fork_works" = xcross; then
25245 ac_cv_func_vfork_works=$ac_cv_func_vfork
25246 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
25247 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
25248 fi
25249
25250 if test "x$ac_cv_func_vfork_works" = xyes; then
25251
25252 cat >>confdefs.h <<\_ACEOF
25253 #define HAVE_WORKING_VFORK 1
25254 _ACEOF
25255
25256 else
25257
25258 cat >>confdefs.h <<\_ACEOF
25259 #define vfork fork
25260 _ACEOF
25261
25262 fi
25263 if test "x$ac_cv_func_fork_works" = xyes; then
25264
25265 cat >>confdefs.h <<\_ACEOF
25266 #define HAVE_WORKING_FORK 1
25267 _ACEOF
25268
25269 fi
25270
25271
25272 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
25273 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
25274 if test "${emacs_cv_langinfo_codeset+set}" = set; then
25275 echo $ECHO_N "(cached) $ECHO_C" >&6
25276 else
25277 cat >conftest.$ac_ext <<_ACEOF
25278 /* confdefs.h. */
25279 _ACEOF
25280 cat confdefs.h >>conftest.$ac_ext
25281 cat >>conftest.$ac_ext <<_ACEOF
25282 /* end confdefs.h. */
25283 #include <langinfo.h>
25284 int
25285 main ()
25286 {
25287 char* cs = nl_langinfo(CODESET);
25288 ;
25289 return 0;
25290 }
25291 _ACEOF
25292 rm -f conftest.$ac_objext conftest$ac_exeext
25293 if { (ac_try="$ac_link"
25294 case "(($ac_try" in
25295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25296 *) ac_try_echo=$ac_try;;
25297 esac
25298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25299 (eval "$ac_link") 2>conftest.er1
25300 ac_status=$?
25301 grep -v '^ *+' conftest.er1 >conftest.err
25302 rm -f conftest.er1
25303 cat conftest.err >&5
25304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25305 (exit $ac_status); } &&
25306 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25307 { (case "(($ac_try" in
25308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25309 *) ac_try_echo=$ac_try;;
25310 esac
25311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25312 (eval "$ac_try") 2>&5
25313 ac_status=$?
25314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25315 (exit $ac_status); }; } &&
25316 { ac_try='test -s conftest$ac_exeext'
25317 { (case "(($ac_try" in
25318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25319 *) ac_try_echo=$ac_try;;
25320 esac
25321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25322 (eval "$ac_try") 2>&5
25323 ac_status=$?
25324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25325 (exit $ac_status); }; }; then
25326 emacs_cv_langinfo_codeset=yes
25327 else
25328 echo "$as_me: failed program was:" >&5
25329 sed 's/^/| /' conftest.$ac_ext >&5
25330
25331 emacs_cv_langinfo_codeset=no
25332 fi
25333
25334 rm -f core conftest.err conftest.$ac_objext \
25335 conftest$ac_exeext conftest.$ac_ext
25336
25337 fi
25338 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
25339 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
25340 if test $emacs_cv_langinfo_codeset = yes; then
25341
25342 cat >>confdefs.h <<\_ACEOF
25343 #define HAVE_LANGINFO_CODESET 1
25344 _ACEOF
25345
25346 fi
25347
25348 { echo "$as_me:$LINENO: checking for size_t" >&5
25349 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
25350 if test "${ac_cv_type_size_t+set}" = set; then
25351 echo $ECHO_N "(cached) $ECHO_C" >&6
25352 else
25353 cat >conftest.$ac_ext <<_ACEOF
25354 /* confdefs.h. */
25355 _ACEOF
25356 cat confdefs.h >>conftest.$ac_ext
25357 cat >>conftest.$ac_ext <<_ACEOF
25358 /* end confdefs.h. */
25359 $ac_includes_default
25360 typedef size_t ac__type_new_;
25361 int
25362 main ()
25363 {
25364 if ((ac__type_new_ *) 0)
25365 return 0;
25366 if (sizeof (ac__type_new_))
25367 return 0;
25368 ;
25369 return 0;
25370 }
25371 _ACEOF
25372 rm -f conftest.$ac_objext
25373 if { (ac_try="$ac_compile"
25374 case "(($ac_try" in
25375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25376 *) ac_try_echo=$ac_try;;
25377 esac
25378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25379 (eval "$ac_compile") 2>conftest.er1
25380 ac_status=$?
25381 grep -v '^ *+' conftest.er1 >conftest.err
25382 rm -f conftest.er1
25383 cat conftest.err >&5
25384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25385 (exit $ac_status); } &&
25386 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25387 { (case "(($ac_try" in
25388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25389 *) ac_try_echo=$ac_try;;
25390 esac
25391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25392 (eval "$ac_try") 2>&5
25393 ac_status=$?
25394 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25395 (exit $ac_status); }; } &&
25396 { ac_try='test -s conftest.$ac_objext'
25397 { (case "(($ac_try" in
25398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25399 *) ac_try_echo=$ac_try;;
25400 esac
25401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25402 (eval "$ac_try") 2>&5
25403 ac_status=$?
25404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25405 (exit $ac_status); }; }; then
25406 ac_cv_type_size_t=yes
25407 else
25408 echo "$as_me: failed program was:" >&5
25409 sed 's/^/| /' conftest.$ac_ext >&5
25410
25411 ac_cv_type_size_t=no
25412 fi
25413
25414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25415 fi
25416 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
25417 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
25418 if test $ac_cv_type_size_t = yes; then
25419
25420 cat >>confdefs.h <<_ACEOF
25421 #define HAVE_SIZE_T 1
25422 _ACEOF
25423
25424
25425 fi
25426
25427
25428 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
25429 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
25430 if test "${ac_cv_type_mbstate_t+set}" = set; then
25431 echo $ECHO_N "(cached) $ECHO_C" >&6
25432 else
25433 cat >conftest.$ac_ext <<_ACEOF
25434 /* confdefs.h. */
25435 _ACEOF
25436 cat confdefs.h >>conftest.$ac_ext
25437 cat >>conftest.$ac_ext <<_ACEOF
25438 /* end confdefs.h. */
25439 $ac_includes_default
25440 # include <wchar.h>
25441 int
25442 main ()
25443 {
25444 mbstate_t x; return sizeof x;
25445 ;
25446 return 0;
25447 }
25448 _ACEOF
25449 rm -f conftest.$ac_objext
25450 if { (ac_try="$ac_compile"
25451 case "(($ac_try" in
25452 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25453 *) ac_try_echo=$ac_try;;
25454 esac
25455 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25456 (eval "$ac_compile") 2>conftest.er1
25457 ac_status=$?
25458 grep -v '^ *+' conftest.er1 >conftest.err
25459 rm -f conftest.er1
25460 cat conftest.err >&5
25461 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25462 (exit $ac_status); } &&
25463 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25464 { (case "(($ac_try" in
25465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25466 *) ac_try_echo=$ac_try;;
25467 esac
25468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25469 (eval "$ac_try") 2>&5
25470 ac_status=$?
25471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25472 (exit $ac_status); }; } &&
25473 { ac_try='test -s conftest.$ac_objext'
25474 { (case "(($ac_try" in
25475 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25476 *) ac_try_echo=$ac_try;;
25477 esac
25478 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25479 (eval "$ac_try") 2>&5
25480 ac_status=$?
25481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25482 (exit $ac_status); }; }; then
25483 ac_cv_type_mbstate_t=yes
25484 else
25485 echo "$as_me: failed program was:" >&5
25486 sed 's/^/| /' conftest.$ac_ext >&5
25487
25488 ac_cv_type_mbstate_t=no
25489 fi
25490
25491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25492 fi
25493 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
25494 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
25495 if test $ac_cv_type_mbstate_t = yes; then
25496
25497 cat >>confdefs.h <<\_ACEOF
25498 #define HAVE_MBSTATE_T 1
25499 _ACEOF
25500
25501 else
25502
25503 cat >>confdefs.h <<\_ACEOF
25504 #define mbstate_t int
25505 _ACEOF
25506
25507 fi
25508
25509 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
25510 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
25511 if test "${emacs_cv_c_restrict+set}" = set; then
25512 echo $ECHO_N "(cached) $ECHO_C" >&6
25513 else
25514 cat >conftest.$ac_ext <<_ACEOF
25515 /* confdefs.h. */
25516 _ACEOF
25517 cat confdefs.h >>conftest.$ac_ext
25518 cat >>conftest.$ac_ext <<_ACEOF
25519 /* end confdefs.h. */
25520 void fred (int *restrict x);
25521 int
25522 main ()
25523 {
25524
25525 ;
25526 return 0;
25527 }
25528 _ACEOF
25529 rm -f conftest.$ac_objext
25530 if { (ac_try="$ac_compile"
25531 case "(($ac_try" in
25532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25533 *) ac_try_echo=$ac_try;;
25534 esac
25535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25536 (eval "$ac_compile") 2>conftest.er1
25537 ac_status=$?
25538 grep -v '^ *+' conftest.er1 >conftest.err
25539 rm -f conftest.er1
25540 cat conftest.err >&5
25541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25542 (exit $ac_status); } &&
25543 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25544 { (case "(($ac_try" in
25545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25546 *) ac_try_echo=$ac_try;;
25547 esac
25548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25549 (eval "$ac_try") 2>&5
25550 ac_status=$?
25551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25552 (exit $ac_status); }; } &&
25553 { ac_try='test -s conftest.$ac_objext'
25554 { (case "(($ac_try" in
25555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25556 *) ac_try_echo=$ac_try;;
25557 esac
25558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25559 (eval "$ac_try") 2>&5
25560 ac_status=$?
25561 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25562 (exit $ac_status); }; }; then
25563 emacs_cv_c_restrict=yes
25564 else
25565 echo "$as_me: failed program was:" >&5
25566 sed 's/^/| /' conftest.$ac_ext >&5
25567
25568 cat >conftest.$ac_ext <<_ACEOF
25569 /* confdefs.h. */
25570 _ACEOF
25571 cat confdefs.h >>conftest.$ac_ext
25572 cat >>conftest.$ac_ext <<_ACEOF
25573 /* end confdefs.h. */
25574 void fred (int *__restrict x);
25575 int
25576 main ()
25577 {
25578
25579 ;
25580 return 0;
25581 }
25582 _ACEOF
25583 rm -f conftest.$ac_objext
25584 if { (ac_try="$ac_compile"
25585 case "(($ac_try" in
25586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25587 *) ac_try_echo=$ac_try;;
25588 esac
25589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25590 (eval "$ac_compile") 2>conftest.er1
25591 ac_status=$?
25592 grep -v '^ *+' conftest.er1 >conftest.err
25593 rm -f conftest.er1
25594 cat conftest.err >&5
25595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25596 (exit $ac_status); } &&
25597 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25598 { (case "(($ac_try" in
25599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25600 *) ac_try_echo=$ac_try;;
25601 esac
25602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25603 (eval "$ac_try") 2>&5
25604 ac_status=$?
25605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25606 (exit $ac_status); }; } &&
25607 { ac_try='test -s conftest.$ac_objext'
25608 { (case "(($ac_try" in
25609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25610 *) ac_try_echo=$ac_try;;
25611 esac
25612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25613 (eval "$ac_try") 2>&5
25614 ac_status=$?
25615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25616 (exit $ac_status); }; }; then
25617 emacs_cv_c_restrict=__restrict
25618 else
25619 echo "$as_me: failed program was:" >&5
25620 sed 's/^/| /' conftest.$ac_ext >&5
25621
25622 emacs_cv_c_restrict=no
25623 fi
25624
25625 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25626 fi
25627
25628 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25629 fi
25630 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
25631 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
25632 case "$emacs_cv_c_restrict" in
25633 yes) emacs_restrict=restrict;;
25634 no) emacs_restrict="";;
25635 *) emacs_restrict="$emacs_cv_c_restrict";;
25636 esac
25637 if test "$emacs_restrict" != __restrict; then
25638
25639 cat >>confdefs.h <<_ACEOF
25640 #define __restrict $emacs_restrict
25641 _ACEOF
25642
25643 fi
25644
25645 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
25646 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
25647 if test "${emacs_cv_c_restrict_arr+set}" = set; then
25648 echo $ECHO_N "(cached) $ECHO_C" >&6
25649 else
25650 cat >conftest.$ac_ext <<_ACEOF
25651 /* confdefs.h. */
25652 _ACEOF
25653 cat confdefs.h >>conftest.$ac_ext
25654 cat >>conftest.$ac_ext <<_ACEOF
25655 /* end confdefs.h. */
25656 void fred (int x[__restrict]);
25657 int
25658 main ()
25659 {
25660
25661 ;
25662 return 0;
25663 }
25664 _ACEOF
25665 rm -f conftest.$ac_objext
25666 if { (ac_try="$ac_compile"
25667 case "(($ac_try" in
25668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25669 *) ac_try_echo=$ac_try;;
25670 esac
25671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25672 (eval "$ac_compile") 2>conftest.er1
25673 ac_status=$?
25674 grep -v '^ *+' conftest.er1 >conftest.err
25675 rm -f conftest.er1
25676 cat conftest.err >&5
25677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25678 (exit $ac_status); } &&
25679 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
25680 { (case "(($ac_try" in
25681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25682 *) ac_try_echo=$ac_try;;
25683 esac
25684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25685 (eval "$ac_try") 2>&5
25686 ac_status=$?
25687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25688 (exit $ac_status); }; } &&
25689 { ac_try='test -s conftest.$ac_objext'
25690 { (case "(($ac_try" in
25691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
25692 *) ac_try_echo=$ac_try;;
25693 esac
25694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
25695 (eval "$ac_try") 2>&5
25696 ac_status=$?
25697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
25698 (exit $ac_status); }; }; then
25699 emacs_cv_c_restrict_arr=yes
25700 else
25701 echo "$as_me: failed program was:" >&5
25702 sed 's/^/| /' conftest.$ac_ext >&5
25703
25704 emacs_cv_c_restrict_arr=no
25705 fi
25706
25707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
25708 fi
25709 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
25710 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
25711 if test "$emacs_cv_c_restrict_arr" = yes; then
25712
25713 cat >>confdefs.h <<\_ACEOF
25714 #define __restrict_arr __restrict
25715 _ACEOF
25716
25717 fi
25718
25719
25720
25721 # Set up the CFLAGS for real compilation, so we can substitute it.
25722 CFLAGS="$REAL_CFLAGS"
25723 CPPFLAGS="$REAL_CPPFLAGS"
25724
25725 #### Find out which version of Emacs this is.
25726 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
25727 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
25728 if test x"${version}" = x; then
25729 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
25730 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
25731 { (exit 1); exit 1; }; }
25732 fi
25733
25734 ### Specify what sort of things we'll be editing into Makefile and config.h.
25735 ### Use configuration here uncanonicalized to avoid exceeding size limits.
25736
25737
25738
25739
25740
25741
25742
25743
25744
25745
25746
25747
25748
25749
25750
25751
25752
25753
25754
25755
25756
25757
25758
25759
25760
25761
25762
25763
25764
25765
25766
25767
25768
25769
25770
25771 cat >>confdefs.h <<_ACEOF
25772 #define EMACS_CONFIGURATION "${canonical}"
25773 _ACEOF
25774
25775
25776 cat >>confdefs.h <<_ACEOF
25777 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
25778 _ACEOF
25779
25780
25781 cat >>confdefs.h <<_ACEOF
25782 #define config_machfile "${machfile}"
25783 _ACEOF
25784
25785
25786 cat >>confdefs.h <<_ACEOF
25787 #define config_opsysfile "${opsysfile}"
25788 _ACEOF
25789
25790
25791 cat >>confdefs.h <<_ACEOF
25792 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
25793 _ACEOF
25794
25795
25796 cat >>confdefs.h <<_ACEOF
25797 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
25798 _ACEOF
25799
25800
25801 cat >>confdefs.h <<_ACEOF
25802 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
25803 _ACEOF
25804
25805
25806 cat >>confdefs.h <<_ACEOF
25807 #define UNEXEC_SRC ${UNEXEC_SRC}
25808 _ACEOF
25809
25810
25811 if test "${HAVE_X_WINDOWS}" = "yes" ; then
25812
25813 cat >>confdefs.h <<\_ACEOF
25814 #define HAVE_X_WINDOWS 1
25815 _ACEOF
25816
25817 fi
25818 if test "${USE_X_TOOLKIT}" != "none" ; then
25819
25820 cat >>confdefs.h <<\_ACEOF
25821 #define USE_X_TOOLKIT 1
25822 _ACEOF
25823
25824 fi
25825 if test "${HAVE_X11}" = "yes" ; then
25826
25827 cat >>confdefs.h <<\_ACEOF
25828 #define HAVE_X11 1
25829 _ACEOF
25830
25831 fi
25832 if test "${HAVE_XFREE386}" = "yes" ; then
25833
25834 cat >>confdefs.h <<\_ACEOF
25835 #define HAVE_XFREE386 1
25836 _ACEOF
25837
25838 fi
25839 if test "${HAVE_MENUS}" = "yes" ; then
25840
25841 cat >>confdefs.h <<\_ACEOF
25842 #define HAVE_MENUS 1
25843 _ACEOF
25844
25845 fi
25846 if test "${GNU_MALLOC}" = "yes" ; then
25847
25848 cat >>confdefs.h <<\_ACEOF
25849 #define GNU_MALLOC 1
25850 _ACEOF
25851
25852 fi
25853 if test "${REL_ALLOC}" = "yes" ; then
25854
25855 cat >>confdefs.h <<\_ACEOF
25856 #define REL_ALLOC 1
25857 _ACEOF
25858
25859 fi
25860
25861
25862
25863
25864
25865 #### Report on what we decided to do.
25866 #### Report GTK as a toolkit, even if it doesn't use Xt.
25867 #### It makes printing result more understandable as using GTK sets
25868 #### toolkit_scroll_bars to yes by default.
25869 if test "${HAVE_GTK}" = "yes"; then
25870 USE_X_TOOLKIT=GTK
25871 fi
25872
25873 echo "
25874 Configured for \`${canonical}'.
25875
25876 Where should the build process find the source code? ${srcdir}
25877 What operating system and machine description files should Emacs use?
25878 \`${opsysfile}' and \`${machfile}'
25879 What compiler should emacs be built with? ${CC} ${CFLAGS}
25880 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
25881 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
25882 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
25883 What window system should Emacs use? ${window_system}
25884 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
25885
25886 if test -n "${x_includes}"; then
25887 echo " Where do we find X Windows header files? ${x_includes}"
25888 else
25889 echo " Where do we find X Windows header files? Standard dirs"
25890 fi
25891 if test -n "${x_libraries}"; then
25892 echo " Where do we find X Windows libraries? ${x_libraries}"
25893 else
25894 echo " Where do we find X Windows libraries? Standard dirs"
25895 fi
25896
25897 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
25898 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
25899 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
25900 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
25901 echo " Does Emacs use -lungif? ${HAVE_GIF}"
25902 echo " Does Emacs use -lpng? ${HAVE_PNG}"
25903 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
25904 echo
25905
25906 if test $USE_XASSERTS = yes; then
25907 echo " Compiling with asserts turned on."
25908 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
25909 echo
25910 fi
25911
25912
25913
25914 # Remove any trailing slashes in these variables.
25915 test "${prefix}" != NONE &&
25916 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
25917 test "${exec_prefix}" != NONE &&
25918 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
25919
25920 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
25921 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
25922 ## from Makefile.c can correctly provide the arg `-traditional' to the
25923 ## C preprocessor.
25924
25925 cat >conftest.$ac_ext <<_ACEOF
25926 /* confdefs.h. */
25927 _ACEOF
25928 cat confdefs.h >>conftest.$ac_ext
25929 cat >>conftest.$ac_ext <<_ACEOF
25930 /* end confdefs.h. */
25931 yes..yes
25932 _ACEOF
25933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
25934 $EGREP "yes..yes" >/dev/null 2>&1; then
25935 CPP_NEED_TRADITIONAL=no
25936 else
25937 CPP_NEED_TRADITIONAL=yes
25938 fi
25939 rm -f conftest*
25940
25941
25942 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile man/Makefile lwlib/Makefile src/Makefile.c:src/Makefile.in lisp/Makefile lispref/Makefile lispintro/Makefile leim/Makefile"
25943
25944 ac_config_commands="$ac_config_commands default"
25945
25946 cat >confcache <<\_ACEOF
25947 # This file is a shell script that caches the results of configure
25948 # tests run on this system so they can be shared between configure
25949 # scripts and configure runs, see configure's option --config-cache.
25950 # It is not useful on other systems. If it contains results you don't
25951 # want to keep, you may remove or edit it.
25952 #
25953 # config.status only pays attention to the cache file if you give it
25954 # the --recheck option to rerun configure.
25955 #
25956 # `ac_cv_env_foo' variables (set or unset) will be overridden when
25957 # loading this file, other *unset* `ac_cv_foo' will be assigned the
25958 # following values.
25959
25960 _ACEOF
25961
25962 # The following way of writing the cache mishandles newlines in values,
25963 # but we know of no workaround that is simple, portable, and efficient.
25964 # So, we kill variables containing newlines.
25965 # Ultrix sh set writes to stderr and can't be redirected directly,
25966 # and sets the high bit in the cache file unless we assign to the vars.
25967 (
25968 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
25969 eval ac_val=\$$ac_var
25970 case $ac_val in #(
25971 *${as_nl}*)
25972 case $ac_var in #(
25973 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
25974 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
25975 esac
25976 case $ac_var in #(
25977 _ | IFS | as_nl) ;; #(
25978 *) $as_unset $ac_var ;;
25979 esac ;;
25980 esac
25981 done
25982
25983 (set) 2>&1 |
25984 case $as_nl`(ac_space=' '; set) 2>&1` in #(
25985 *${as_nl}ac_space=\ *)
25986 # `set' does not quote correctly, so add quotes (double-quote
25987 # substitution turns \\\\ into \\, and sed turns \\ into \).
25988 sed -n \
25989 "s/'/'\\\\''/g;
25990 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
25991 ;; #(
25992 *)
25993 # `set' quotes correctly as required by POSIX, so do not add quotes.
25994 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
25995 ;;
25996 esac |
25997 sort
25998 ) |
25999 sed '
26000 /^ac_cv_env_/b end
26001 t clear
26002 :clear
26003 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
26004 t end
26005 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
26006 :end' >>confcache
26007 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
26008 if test -w "$cache_file"; then
26009 test "x$cache_file" != "x/dev/null" &&
26010 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
26011 echo "$as_me: updating cache $cache_file" >&6;}
26012 cat confcache >$cache_file
26013 else
26014 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
26015 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
26016 fi
26017 fi
26018 rm -f confcache
26019
26020 test "x$prefix" = xNONE && prefix=$ac_default_prefix
26021 # Let make expand exec_prefix.
26022 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
26023
26024 DEFS=-DHAVE_CONFIG_H
26025
26026 ac_libobjs=
26027 ac_ltlibobjs=
26028 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
26029 # 1. Remove the extension, and $U if already installed.
26030 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
26031 ac_i=`echo "$ac_i" | sed "$ac_script"`
26032 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
26033 # will be set to the directory where LIBOBJS objects are built.
26034 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
26035 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
26036 done
26037 LIBOBJS=$ac_libobjs
26038
26039 LTLIBOBJS=$ac_ltlibobjs
26040
26041
26042
26043 : ${CONFIG_STATUS=./config.status}
26044 ac_clean_files_save=$ac_clean_files
26045 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
26046 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
26047 echo "$as_me: creating $CONFIG_STATUS" >&6;}
26048 cat >$CONFIG_STATUS <<_ACEOF
26049 #! $SHELL
26050 # Generated by $as_me.
26051 # Run this file to recreate the current configuration.
26052 # Compiler output produced by configure, useful for debugging
26053 # configure, is in config.log if it exists.
26054
26055 debug=false
26056 ac_cs_recheck=false
26057 ac_cs_silent=false
26058 SHELL=\${CONFIG_SHELL-$SHELL}
26059 _ACEOF
26060
26061 cat >>$CONFIG_STATUS <<\_ACEOF
26062 ## --------------------- ##
26063 ## M4sh Initialization. ##
26064 ## --------------------- ##
26065
26066 # Be Bourne compatible
26067 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
26068 emulate sh
26069 NULLCMD=:
26070 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
26071 # is contrary to our usage. Disable this feature.
26072 alias -g '${1+"$@"}'='"$@"'
26073 setopt NO_GLOB_SUBST
26074 else
26075 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
26076 fi
26077 BIN_SH=xpg4; export BIN_SH # for Tru64
26078 DUALCASE=1; export DUALCASE # for MKS sh
26079
26080
26081 # PATH needs CR
26082 # Avoid depending upon Character Ranges.
26083 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
26084 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
26085 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
26086 as_cr_digits='0123456789'
26087 as_cr_alnum=$as_cr_Letters$as_cr_digits
26088
26089 # The user is always right.
26090 if test "${PATH_SEPARATOR+set}" != set; then
26091 echo "#! /bin/sh" >conf$$.sh
26092 echo "exit 0" >>conf$$.sh
26093 chmod +x conf$$.sh
26094 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
26095 PATH_SEPARATOR=';'
26096 else
26097 PATH_SEPARATOR=:
26098 fi
26099 rm -f conf$$.sh
26100 fi
26101
26102 # Support unset when possible.
26103 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26104 as_unset=unset
26105 else
26106 as_unset=false
26107 fi
26108
26109
26110 # IFS
26111 # We need space, tab and new line, in precisely that order. Quoting is
26112 # there to prevent editors from complaining about space-tab.
26113 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
26114 # splitting by setting IFS to empty value.)
26115 as_nl='
26116 '
26117 IFS=" "" $as_nl"
26118
26119 # Find who we are. Look in the path if we contain no directory separator.
26120 case $0 in
26121 *[\\/]* ) as_myself=$0 ;;
26122 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
26123 for as_dir in $PATH
26124 do
26125 IFS=$as_save_IFS
26126 test -z "$as_dir" && as_dir=.
26127 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
26128 done
26129 IFS=$as_save_IFS
26130
26131 ;;
26132 esac
26133 # We did not find ourselves, most probably we were run as `sh COMMAND'
26134 # in which case we are not to be found in the path.
26135 if test "x$as_myself" = x; then
26136 as_myself=$0
26137 fi
26138 if test ! -f "$as_myself"; then
26139 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
26140 { (exit 1); exit 1; }
26141 fi
26142
26143 # Work around bugs in pre-3.0 UWIN ksh.
26144 for as_var in ENV MAIL MAILPATH
26145 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26146 done
26147 PS1='$ '
26148 PS2='> '
26149 PS4='+ '
26150
26151 # NLS nuisances.
26152 for as_var in \
26153 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
26154 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
26155 LC_TELEPHONE LC_TIME
26156 do
26157 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
26158 eval $as_var=C; export $as_var
26159 else
26160 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
26161 fi
26162 done
26163
26164 # Required to use basename.
26165 if expr a : '\(a\)' >/dev/null 2>&1 &&
26166 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26167 as_expr=expr
26168 else
26169 as_expr=false
26170 fi
26171
26172 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
26173 as_basename=basename
26174 else
26175 as_basename=false
26176 fi
26177
26178
26179 # Name of the executable.
26180 as_me=`$as_basename -- "$0" ||
26181 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
26182 X"$0" : 'X\(//\)$' \| \
26183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
26184 echo X/"$0" |
26185 sed '/^.*\/\([^/][^/]*\)\/*$/{
26186 s//\1/
26187 q
26188 }
26189 /^X\/\(\/\/\)$/{
26190 s//\1/
26191 q
26192 }
26193 /^X\/\(\/\).*/{
26194 s//\1/
26195 q
26196 }
26197 s/.*/./; q'`
26198
26199 # CDPATH.
26200 $as_unset CDPATH
26201
26202
26203
26204 as_lineno_1=$LINENO
26205 as_lineno_2=$LINENO
26206 test "x$as_lineno_1" != "x$as_lineno_2" &&
26207 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
26208
26209 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
26210 # uniformly replaced by the line number. The first 'sed' inserts a
26211 # line-number line after each line using $LINENO; the second 'sed'
26212 # does the real work. The second script uses 'N' to pair each
26213 # line-number line with the line containing $LINENO, and appends
26214 # trailing '-' during substitution so that $LINENO is not a special
26215 # case at line end.
26216 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
26217 # scripts with optimization help from Paolo Bonzini. Blame Lee
26218 # E. McMahon (1931-1989) for sed's syntax. :-)
26219 sed -n '
26220 p
26221 /[$]LINENO/=
26222 ' <$as_myself |
26223 sed '
26224 s/[$]LINENO.*/&-/
26225 t lineno
26226 b
26227 :lineno
26228 N
26229 :loop
26230 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
26231 t loop
26232 s/-\n.*//
26233 ' >$as_me.lineno &&
26234 chmod +x "$as_me.lineno" ||
26235 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
26236 { (exit 1); exit 1; }; }
26237
26238 # Don't try to exec as it changes $[0], causing all sort of problems
26239 # (the dirname of $[0] is not the place where we might find the
26240 # original and so on. Autoconf is especially sensitive to this).
26241 . "./$as_me.lineno"
26242 # Exit status is that of the last command.
26243 exit
26244 }
26245
26246
26247 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
26248 as_dirname=dirname
26249 else
26250 as_dirname=false
26251 fi
26252
26253 ECHO_C= ECHO_N= ECHO_T=
26254 case `echo -n x` in
26255 -n*)
26256 case `echo 'x\c'` in
26257 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
26258 *) ECHO_C='\c';;
26259 esac;;
26260 *)
26261 ECHO_N='-n';;
26262 esac
26263
26264 if expr a : '\(a\)' >/dev/null 2>&1 &&
26265 test "X`expr 00001 : '.*\(...\)'`" = X001; then
26266 as_expr=expr
26267 else
26268 as_expr=false
26269 fi
26270
26271 rm -f conf$$ conf$$.exe conf$$.file
26272 if test -d conf$$.dir; then
26273 rm -f conf$$.dir/conf$$.file
26274 else
26275 rm -f conf$$.dir
26276 mkdir conf$$.dir
26277 fi
26278 echo >conf$$.file
26279 if ln -s conf$$.file conf$$ 2>/dev/null; then
26280 as_ln_s='ln -s'
26281 # ... but there are two gotchas:
26282 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
26283 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
26284 # In both cases, we have to default to `cp -p'.
26285 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
26286 as_ln_s='cp -p'
26287 elif ln conf$$.file conf$$ 2>/dev/null; then
26288 as_ln_s=ln
26289 else
26290 as_ln_s='cp -p'
26291 fi
26292 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
26293 rmdir conf$$.dir 2>/dev/null
26294
26295 if mkdir -p . 2>/dev/null; then
26296 as_mkdir_p=:
26297 else
26298 test -d ./-p && rmdir ./-p
26299 as_mkdir_p=false
26300 fi
26301
26302 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
26303 # systems may use methods other than mode bits to determine executability.
26304 cat >conf$$.file <<_ASEOF
26305 #! /bin/sh
26306 exit 0
26307 _ASEOF
26308 chmod +x conf$$.file
26309 if test -x conf$$.file >/dev/null 2>&1; then
26310 as_executable_p="test -x"
26311 else
26312 as_executable_p=:
26313 fi
26314 rm -f conf$$.file
26315
26316 # Sed expression to map a string onto a valid CPP name.
26317 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
26318
26319 # Sed expression to map a string onto a valid variable name.
26320 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
26321
26322
26323 exec 6>&1
26324
26325 # Save the log message, to keep $[0] and so on meaningful, and to
26326 # report actual input values of CONFIG_FILES etc. instead of their
26327 # values after options handling.
26328 ac_log="
26329 This file was extended by $as_me, which was
26330 generated by GNU Autoconf 2.60. Invocation command line was
26331
26332 CONFIG_FILES = $CONFIG_FILES
26333 CONFIG_HEADERS = $CONFIG_HEADERS
26334 CONFIG_LINKS = $CONFIG_LINKS
26335 CONFIG_COMMANDS = $CONFIG_COMMANDS
26336 $ $0 $@
26337
26338 on `(hostname || uname -n) 2>/dev/null | sed 1q`
26339 "
26340
26341 _ACEOF
26342
26343 cat >>$CONFIG_STATUS <<_ACEOF
26344 # Files that config.status was made for.
26345 config_files="$ac_config_files"
26346 config_headers="$ac_config_headers"
26347 config_commands="$ac_config_commands"
26348
26349 _ACEOF
26350
26351 cat >>$CONFIG_STATUS <<\_ACEOF
26352 ac_cs_usage="\
26353 \`$as_me' instantiates files from templates according to the
26354 current configuration.
26355
26356 Usage: $0 [OPTIONS] [FILE]...
26357
26358 -h, --help print this help, then exit
26359 -V, --version print version number, then exit
26360 -q, --quiet do not print progress messages
26361 -d, --debug don't remove temporary files
26362 --recheck update $as_me by reconfiguring in the same conditions
26363 --file=FILE[:TEMPLATE]
26364 instantiate the configuration file FILE
26365 --header=FILE[:TEMPLATE]
26366 instantiate the configuration header FILE
26367
26368 Configuration files:
26369 $config_files
26370
26371 Configuration headers:
26372 $config_headers
26373
26374 Configuration commands:
26375 $config_commands
26376
26377 Report bugs to <bug-autoconf@gnu.org>."
26378
26379 _ACEOF
26380 cat >>$CONFIG_STATUS <<_ACEOF
26381 ac_cs_version="\\
26382 config.status
26383 configured by $0, generated by GNU Autoconf 2.60,
26384 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
26385
26386 Copyright (C) 2006 Free Software Foundation, Inc.
26387 This config.status script is free software; the Free Software Foundation
26388 gives unlimited permission to copy, distribute and modify it."
26389
26390 ac_pwd='$ac_pwd'
26391 srcdir='$srcdir'
26392 INSTALL='$INSTALL'
26393 _ACEOF
26394
26395 cat >>$CONFIG_STATUS <<\_ACEOF
26396 # If no file are specified by the user, then we need to provide default
26397 # value. By we need to know if files were specified by the user.
26398 ac_need_defaults=:
26399 while test $# != 0
26400 do
26401 case $1 in
26402 --*=*)
26403 ac_option=`expr "X$1" : 'X\([^=]*\)='`
26404 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
26405 ac_shift=:
26406 ;;
26407 *)
26408 ac_option=$1
26409 ac_optarg=$2
26410 ac_shift=shift
26411 ;;
26412 esac
26413
26414 case $ac_option in
26415 # Handling of the options.
26416 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
26417 ac_cs_recheck=: ;;
26418 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
26419 echo "$ac_cs_version"; exit ;;
26420 --debug | --debu | --deb | --de | --d | -d )
26421 debug=: ;;
26422 --file | --fil | --fi | --f )
26423 $ac_shift
26424 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
26425 ac_need_defaults=false;;
26426 --header | --heade | --head | --hea )
26427 $ac_shift
26428 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
26429 ac_need_defaults=false;;
26430 --he | --h)
26431 # Conflict between --help and --header
26432 { echo "$as_me: error: ambiguous option: $1
26433 Try \`$0 --help' for more information." >&2
26434 { (exit 1); exit 1; }; };;
26435 --help | --hel | -h )
26436 echo "$ac_cs_usage"; exit ;;
26437 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
26438 | -silent | --silent | --silen | --sile | --sil | --si | --s)
26439 ac_cs_silent=: ;;
26440
26441 # This is an error.
26442 -*) { echo "$as_me: error: unrecognized option: $1
26443 Try \`$0 --help' for more information." >&2
26444 { (exit 1); exit 1; }; } ;;
26445
26446 *) ac_config_targets="$ac_config_targets $1"
26447 ac_need_defaults=false ;;
26448
26449 esac
26450 shift
26451 done
26452
26453 ac_configure_extra_args=
26454
26455 if $ac_cs_silent; then
26456 exec 6>/dev/null
26457 ac_configure_extra_args="$ac_configure_extra_args --silent"
26458 fi
26459
26460 _ACEOF
26461 cat >>$CONFIG_STATUS <<_ACEOF
26462 if \$ac_cs_recheck; then
26463 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
26464 CONFIG_SHELL=$SHELL
26465 export CONFIG_SHELL
26466 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
26467 fi
26468
26469 _ACEOF
26470 cat >>$CONFIG_STATUS <<\_ACEOF
26471 exec 5>>config.log
26472 {
26473 echo
26474 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
26475 ## Running $as_me. ##
26476 _ASBOX
26477 echo "$ac_log"
26478 } >&5
26479
26480 _ACEOF
26481 cat >>$CONFIG_STATUS <<_ACEOF
26482 #
26483 # INIT-COMMANDS
26484 #
26485 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
26486
26487 _ACEOF
26488
26489 cat >>$CONFIG_STATUS <<\_ACEOF
26490
26491 # Handling of arguments.
26492 for ac_config_target in $ac_config_targets
26493 do
26494 case $ac_config_target in
26495 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
26496 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
26497 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
26498 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
26499 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
26500 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
26501 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
26502 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
26503 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
26504 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
26505 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
26506 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
26507
26508 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
26509 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
26510 { (exit 1); exit 1; }; };;
26511 esac
26512 done
26513
26514
26515 # If the user did not use the arguments to specify the items to instantiate,
26516 # then the envvar interface is used. Set only those that are not.
26517 # We use the long form for the default assignment because of an extremely
26518 # bizarre bug on SunOS 4.1.3.
26519 if $ac_need_defaults; then
26520 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
26521 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
26522 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
26523 fi
26524
26525 # Have a temporary directory for convenience. Make it in the build tree
26526 # simply because there is no reason against having it here, and in addition,
26527 # creating and moving files from /tmp can sometimes cause problems.
26528 # Hook for its removal unless debugging.
26529 # Note that there is a small window in which the directory will not be cleaned:
26530 # after its creation but before its name has been assigned to `$tmp'.
26531 $debug ||
26532 {
26533 tmp=
26534 trap 'exit_status=$?
26535 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
26536 ' 0
26537 trap '{ (exit 1); exit 1; }' 1 2 13 15
26538 }
26539 # Create a (secure) tmp directory for tmp files.
26540
26541 {
26542 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
26543 test -n "$tmp" && test -d "$tmp"
26544 } ||
26545 {
26546 tmp=./conf$$-$RANDOM
26547 (umask 077 && mkdir "$tmp")
26548 } ||
26549 {
26550 echo "$me: cannot create a temporary directory in ." >&2
26551 { (exit 1); exit 1; }
26552 }
26553
26554 #
26555 # Set up the sed scripts for CONFIG_FILES section.
26556 #
26557
26558 # No need to generate the scripts if there are no CONFIG_FILES.
26559 # This happens for instance when ./config.status config.h
26560 if test -n "$CONFIG_FILES"; then
26561
26562 _ACEOF
26563
26564
26565
26566 ac_delim='%!_!# '
26567 for ac_last_try in false false false false false :; do
26568 cat >conf$$subs.sed <<_ACEOF
26569 SHELL!$SHELL$ac_delim
26570 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
26571 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
26572 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
26573 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
26574 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
26575 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
26576 exec_prefix!$exec_prefix$ac_delim
26577 prefix!$prefix$ac_delim
26578 program_transform_name!$program_transform_name$ac_delim
26579 bindir!$bindir$ac_delim
26580 sbindir!$sbindir$ac_delim
26581 libexecdir!$libexecdir$ac_delim
26582 datarootdir!$datarootdir$ac_delim
26583 datadir!$datadir$ac_delim
26584 sysconfdir!$sysconfdir$ac_delim
26585 sharedstatedir!$sharedstatedir$ac_delim
26586 localstatedir!$localstatedir$ac_delim
26587 includedir!$includedir$ac_delim
26588 oldincludedir!$oldincludedir$ac_delim
26589 docdir!$docdir$ac_delim
26590 infodir!$infodir$ac_delim
26591 htmldir!$htmldir$ac_delim
26592 dvidir!$dvidir$ac_delim
26593 pdfdir!$pdfdir$ac_delim
26594 psdir!$psdir$ac_delim
26595 libdir!$libdir$ac_delim
26596 localedir!$localedir$ac_delim
26597 mandir!$mandir$ac_delim
26598 DEFS!$DEFS$ac_delim
26599 ECHO_C!$ECHO_C$ac_delim
26600 ECHO_N!$ECHO_N$ac_delim
26601 ECHO_T!$ECHO_T$ac_delim
26602 LIBS!$LIBS$ac_delim
26603 build_alias!$build_alias$ac_delim
26604 host_alias!$host_alias$ac_delim
26605 target_alias!$target_alias$ac_delim
26606 MAINT!$MAINT$ac_delim
26607 build!$build$ac_delim
26608 build_cpu!$build_cpu$ac_delim
26609 build_vendor!$build_vendor$ac_delim
26610 build_os!$build_os$ac_delim
26611 host!$host$ac_delim
26612 host_cpu!$host_cpu$ac_delim
26613 host_vendor!$host_vendor$ac_delim
26614 host_os!$host_os$ac_delim
26615 CC!$CC$ac_delim
26616 CFLAGS!$CFLAGS$ac_delim
26617 LDFLAGS!$LDFLAGS$ac_delim
26618 CPPFLAGS!$CPPFLAGS$ac_delim
26619 ac_ct_CC!$ac_ct_CC$ac_delim
26620 EXEEXT!$EXEEXT$ac_delim
26621 OBJEXT!$OBJEXT$ac_delim
26622 CPP!$CPP$ac_delim
26623 GREP!$GREP$ac_delim
26624 EGREP!$EGREP$ac_delim
26625 LN_S!$LN_S$ac_delim
26626 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
26627 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
26628 INSTALL_DATA!$INSTALL_DATA$ac_delim
26629 RANLIB!$RANLIB$ac_delim
26630 INSTALL_INFO!$INSTALL_INFO$ac_delim
26631 GZIP_PROG!$GZIP_PROG$ac_delim
26632 LIBSOUND!$LIBSOUND$ac_delim
26633 PKG_CONFIG!$PKG_CONFIG$ac_delim
26634 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
26635 ALSA_LIBS!$ALSA_LIBS$ac_delim
26636 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
26637 SET_MAKE!$SET_MAKE$ac_delim
26638 XMKMF!$XMKMF$ac_delim
26639 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
26640 GTK_LIBS!$GTK_LIBS$ac_delim
26641 ALLOCA!$ALLOCA$ac_delim
26642 liblockfile!$liblockfile$ac_delim
26643 LIBOBJS!$LIBOBJS$ac_delim
26644 NEED_SETGID!$NEED_SETGID$ac_delim
26645 KMEM_GROUP!$KMEM_GROUP$ac_delim
26646 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
26647 GETOPT_H!$GETOPT_H$ac_delim
26648 GETOPTOBJS!$GETOPTOBJS$ac_delim
26649 version!$version$ac_delim
26650 configuration!$configuration$ac_delim
26651 canonical!$canonical$ac_delim
26652 srcdir!$srcdir$ac_delim
26653 lispdir!$lispdir$ac_delim
26654 locallisppath!$locallisppath$ac_delim
26655 lisppath!$lisppath$ac_delim
26656 x_default_search_path!$x_default_search_path$ac_delim
26657 etcdir!$etcdir$ac_delim
26658 archlibdir!$archlibdir$ac_delim
26659 bitmapdir!$bitmapdir$ac_delim
26660 gamedir!$gamedir$ac_delim
26661 gameuser!$gameuser$ac_delim
26662 c_switch_system!$c_switch_system$ac_delim
26663 c_switch_machine!$c_switch_machine$ac_delim
26664 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
26665 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
26666 _ACEOF
26667
26668 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
26669 break
26670 elif $ac_last_try; then
26671 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26672 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26673 { (exit 1); exit 1; }; }
26674 else
26675 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26676 fi
26677 done
26678
26679 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26680 if test -n "$ac_eof"; then
26681 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26682 ac_eof=`expr $ac_eof + 1`
26683 fi
26684
26685 cat >>$CONFIG_STATUS <<_ACEOF
26686 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
26687 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26688 _ACEOF
26689 sed '
26690 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26691 s/^/s,@/; s/!/@,|#_!!_#|/
26692 :n
26693 t n
26694 s/'"$ac_delim"'$/,g/; t
26695 s/$/\\/; p
26696 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26697 ' >>$CONFIG_STATUS <conf$$subs.sed
26698 rm -f conf$$subs.sed
26699 cat >>$CONFIG_STATUS <<_ACEOF
26700 CEOF$ac_eof
26701 _ACEOF
26702
26703
26704 ac_delim='%!_!# '
26705 for ac_last_try in false false false false false :; do
26706 cat >conf$$subs.sed <<_ACEOF
26707 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
26708 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
26709 machfile!$machfile$ac_delim
26710 opsysfile!$opsysfile$ac_delim
26711 carbon_appdir!$carbon_appdir$ac_delim
26712 LTLIBOBJS!$LTLIBOBJS$ac_delim
26713 _ACEOF
26714
26715 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
26716 break
26717 elif $ac_last_try; then
26718 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
26719 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
26720 { (exit 1); exit 1; }; }
26721 else
26722 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
26723 fi
26724 done
26725
26726 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
26727 if test -n "$ac_eof"; then
26728 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
26729 ac_eof=`expr $ac_eof + 1`
26730 fi
26731
26732 cat >>$CONFIG_STATUS <<_ACEOF
26733 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
26734 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
26735 _ACEOF
26736 sed '
26737 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
26738 s/^/s,@/; s/!/@,|#_!!_#|/
26739 :n
26740 t n
26741 s/'"$ac_delim"'$/,g/; t
26742 s/$/\\/; p
26743 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
26744 ' >>$CONFIG_STATUS <conf$$subs.sed
26745 rm -f conf$$subs.sed
26746 cat >>$CONFIG_STATUS <<_ACEOF
26747 :end
26748 s/|#_!!_#|//g
26749 CEOF$ac_eof
26750 _ACEOF
26751
26752
26753 # VPATH may cause trouble with some makes, so we remove $(srcdir),
26754 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
26755 # trailing colons and then remove the whole line if VPATH becomes empty
26756 # (actually we leave an empty line to preserve line numbers).
26757 if test "x$srcdir" = x.; then
26758 ac_vpsub='/^[ ]*VPATH[ ]*=/{
26759 s/:*\$(srcdir):*/:/
26760 s/:*\${srcdir}:*/:/
26761 s/:*@srcdir@:*/:/
26762 s/^\([^=]*=[ ]*\):*/\1/
26763 s/:*$//
26764 s/^[^=]*=[ ]*$//
26765 }'
26766 fi
26767
26768 cat >>$CONFIG_STATUS <<\_ACEOF
26769 fi # test -n "$CONFIG_FILES"
26770
26771
26772 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
26773 do
26774 case $ac_tag in
26775 :[FHLC]) ac_mode=$ac_tag; continue;;
26776 esac
26777 case $ac_mode$ac_tag in
26778 :[FHL]*:*);;
26779 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
26780 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
26781 { (exit 1); exit 1; }; };;
26782 :[FH]-) ac_tag=-:-;;
26783 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
26784 esac
26785 ac_save_IFS=$IFS
26786 IFS=:
26787 set x $ac_tag
26788 IFS=$ac_save_IFS
26789 shift
26790 ac_file=$1
26791 shift
26792
26793 case $ac_mode in
26794 :L) ac_source=$1;;
26795 :[FH])
26796 ac_file_inputs=
26797 for ac_f
26798 do
26799 case $ac_f in
26800 -) ac_f="$tmp/stdin";;
26801 *) # Look for the file first in the build tree, then in the source tree
26802 # (if the path is not absolute). The absolute path cannot be DOS-style,
26803 # because $ac_f cannot contain `:'.
26804 test -f "$ac_f" ||
26805 case $ac_f in
26806 [\\/$]*) false;;
26807 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
26808 esac ||
26809 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
26810 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
26811 { (exit 1); exit 1; }; };;
26812 esac
26813 ac_file_inputs="$ac_file_inputs $ac_f"
26814 done
26815
26816 # Let's still pretend it is `configure' which instantiates (i.e., don't
26817 # use $as_me), people would be surprised to read:
26818 # /* config.h. Generated by config.status. */
26819 configure_input="Generated from "`IFS=:
26820 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
26821 if test x"$ac_file" != x-; then
26822 configure_input="$ac_file. $configure_input"
26823 { echo "$as_me:$LINENO: creating $ac_file" >&5
26824 echo "$as_me: creating $ac_file" >&6;}
26825 fi
26826
26827 case $ac_tag in
26828 *:-:* | *:-) cat >"$tmp/stdin";;
26829 esac
26830 ;;
26831 esac
26832
26833 ac_dir=`$as_dirname -- "$ac_file" ||
26834 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26835 X"$ac_file" : 'X\(//\)[^/]' \| \
26836 X"$ac_file" : 'X\(//\)$' \| \
26837 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
26838 echo X"$ac_file" |
26839 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26840 s//\1/
26841 q
26842 }
26843 /^X\(\/\/\)[^/].*/{
26844 s//\1/
26845 q
26846 }
26847 /^X\(\/\/\)$/{
26848 s//\1/
26849 q
26850 }
26851 /^X\(\/\).*/{
26852 s//\1/
26853 q
26854 }
26855 s/.*/./; q'`
26856 { as_dir="$ac_dir"
26857 case $as_dir in #(
26858 -*) as_dir=./$as_dir;;
26859 esac
26860 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
26861 as_dirs=
26862 while :; do
26863 case $as_dir in #(
26864 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
26865 *) as_qdir=$as_dir;;
26866 esac
26867 as_dirs="'$as_qdir' $as_dirs"
26868 as_dir=`$as_dirname -- "$as_dir" ||
26869 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
26870 X"$as_dir" : 'X\(//\)[^/]' \| \
26871 X"$as_dir" : 'X\(//\)$' \| \
26872 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
26873 echo X"$as_dir" |
26874 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
26875 s//\1/
26876 q
26877 }
26878 /^X\(\/\/\)[^/].*/{
26879 s//\1/
26880 q
26881 }
26882 /^X\(\/\/\)$/{
26883 s//\1/
26884 q
26885 }
26886 /^X\(\/\).*/{
26887 s//\1/
26888 q
26889 }
26890 s/.*/./; q'`
26891 test -d "$as_dir" && break
26892 done
26893 test -z "$as_dirs" || eval "mkdir $as_dirs"
26894 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
26895 echo "$as_me: error: cannot create directory $as_dir" >&2;}
26896 { (exit 1); exit 1; }; }; }
26897 ac_builddir=.
26898
26899 case "$ac_dir" in
26900 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
26901 *)
26902 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
26903 # A ".." for each directory in $ac_dir_suffix.
26904 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
26905 case $ac_top_builddir_sub in
26906 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
26907 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
26908 esac ;;
26909 esac
26910 ac_abs_top_builddir=$ac_pwd
26911 ac_abs_builddir=$ac_pwd$ac_dir_suffix
26912 # for backward compatibility:
26913 ac_top_builddir=$ac_top_build_prefix
26914
26915 case $srcdir in
26916 .) # We are building in place.
26917 ac_srcdir=.
26918 ac_top_srcdir=$ac_top_builddir_sub
26919 ac_abs_top_srcdir=$ac_pwd ;;
26920 [\\/]* | ?:[\\/]* ) # Absolute name.
26921 ac_srcdir=$srcdir$ac_dir_suffix;
26922 ac_top_srcdir=$srcdir
26923 ac_abs_top_srcdir=$srcdir ;;
26924 *) # Relative name.
26925 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
26926 ac_top_srcdir=$ac_top_build_prefix$srcdir
26927 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
26928 esac
26929 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
26930
26931
26932 case $ac_mode in
26933 :F)
26934 #
26935 # CONFIG_FILE
26936 #
26937
26938 case $INSTALL in
26939 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
26940 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
26941 esac
26942 _ACEOF
26943
26944 cat >>$CONFIG_STATUS <<\_ACEOF
26945 # If the template does not know about datarootdir, expand it.
26946 # FIXME: This hack should be removed a few years after 2.60.
26947 ac_datarootdir_hack=; ac_datarootdir_seen=
26948
26949 case `sed -n '/datarootdir/ {
26950 p
26951 q
26952 }
26953 /@datadir@/p
26954 /@docdir@/p
26955 /@infodir@/p
26956 /@localedir@/p
26957 /@mandir@/p
26958 ' $ac_file_inputs` in
26959 *datarootdir*) ac_datarootdir_seen=yes;;
26960 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
26961 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
26962 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
26963 _ACEOF
26964 cat >>$CONFIG_STATUS <<_ACEOF
26965 ac_datarootdir_hack='
26966 s&@datadir@&$datadir&g
26967 s&@docdir@&$docdir&g
26968 s&@infodir@&$infodir&g
26969 s&@localedir@&$localedir&g
26970 s&@mandir@&$mandir&g
26971 s&\\\${datarootdir}&$datarootdir&g' ;;
26972 esac
26973 _ACEOF
26974
26975 # Neutralize VPATH when `$srcdir' = `.'.
26976 # Shell code in configure.ac might set extrasub.
26977 # FIXME: do we really want to maintain this feature?
26978 cat >>$CONFIG_STATUS <<_ACEOF
26979 sed "$ac_vpsub
26980 $extrasub
26981 _ACEOF
26982 cat >>$CONFIG_STATUS <<\_ACEOF
26983 :t
26984 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
26985 s&@configure_input@&$configure_input&;t t
26986 s&@top_builddir@&$ac_top_builddir_sub&;t t
26987 s&@srcdir@&$ac_srcdir&;t t
26988 s&@abs_srcdir@&$ac_abs_srcdir&;t t
26989 s&@top_srcdir@&$ac_top_srcdir&;t t
26990 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
26991 s&@builddir@&$ac_builddir&;t t
26992 s&@abs_builddir@&$ac_abs_builddir&;t t
26993 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
26994 s&@INSTALL@&$ac_INSTALL&;t t
26995 $ac_datarootdir_hack
26996 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
26997
26998 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
26999 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
27000 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
27001 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27002 which seems to be undefined. Please make sure it is defined." >&5
27003 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
27004 which seems to be undefined. Please make sure it is defined." >&2;}
27005
27006 rm -f "$tmp/stdin"
27007 case $ac_file in
27008 -) cat "$tmp/out"; rm -f "$tmp/out";;
27009 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
27010 esac
27011 ;;
27012 :H)
27013 #
27014 # CONFIG_HEADER
27015 #
27016 _ACEOF
27017
27018 # Transform confdefs.h into a sed script `conftest.defines', that
27019 # substitutes the proper values into config.h.in to produce config.h.
27020 rm -f conftest.defines conftest.tail
27021 # First, append a space to every undef/define line, to ease matching.
27022 echo 's/$/ /' >conftest.defines
27023 # Then, protect against being on the right side of a sed subst, or in
27024 # an unquoted here document, in config.status. If some macros were
27025 # called several times there might be several #defines for the same
27026 # symbol, which is useless. But do not sort them, since the last
27027 # AC_DEFINE must be honored.
27028 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
27029 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
27030 # NAME is the cpp macro being defined, VALUE is the value it is being given.
27031 # PARAMS is the parameter list in the macro definition--in most cases, it's
27032 # just an empty string.
27033 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
27034 ac_dB='\\)[ (].*,\\1define\\2'
27035 ac_dC=' '
27036 ac_dD=' ,'
27037
27038 uniq confdefs.h |
27039 sed -n '
27040 t rset
27041 :rset
27042 s/^[ ]*#[ ]*define[ ][ ]*//
27043 t ok
27044 d
27045 :ok
27046 s/[\\&,]/\\&/g
27047 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
27048 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
27049 ' >>conftest.defines
27050
27051 # Remove the space that was appended to ease matching.
27052 # Then replace #undef with comments. This is necessary, for
27053 # example, in the case of _POSIX_SOURCE, which is predefined and required
27054 # on some systems where configure will not decide to define it.
27055 # (The regexp can be short, since the line contains either #define or #undef.)
27056 echo 's/ $//
27057 s,^[ #]*u.*,/* & */,' >>conftest.defines
27058
27059 # Break up conftest.defines:
27060 ac_max_sed_lines=50
27061
27062 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
27063 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
27064 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
27065 # et cetera.
27066 ac_in='$ac_file_inputs'
27067 ac_out='"$tmp/out1"'
27068 ac_nxt='"$tmp/out2"'
27069
27070 while :
27071 do
27072 # Write a here document:
27073 cat >>$CONFIG_STATUS <<_ACEOF
27074 # First, check the format of the line:
27075 cat >"\$tmp/defines.sed" <<\\CEOF
27076 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
27077 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
27078 b
27079 :def
27080 _ACEOF
27081 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
27082 echo 'CEOF
27083 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
27084 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
27085 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
27086 grep . conftest.tail >/dev/null || break
27087 rm -f conftest.defines
27088 mv conftest.tail conftest.defines
27089 done
27090 rm -f conftest.defines conftest.tail
27091
27092 echo "ac_result=$ac_in" >>$CONFIG_STATUS
27093 cat >>$CONFIG_STATUS <<\_ACEOF
27094 if test x"$ac_file" != x-; then
27095 echo "/* $configure_input */" >"$tmp/config.h"
27096 cat "$ac_result" >>"$tmp/config.h"
27097 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
27098 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
27099 echo "$as_me: $ac_file is unchanged" >&6;}
27100 else
27101 rm -f $ac_file
27102 mv "$tmp/config.h" $ac_file
27103 fi
27104 else
27105 echo "/* $configure_input */"
27106 cat "$ac_result"
27107 fi
27108 rm -f "$tmp/out12"
27109 ;;
27110
27111 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
27112 echo "$as_me: executing $ac_file commands" >&6;}
27113 ;;
27114 esac
27115
27116
27117 case $ac_file$ac_mode in
27118 "default":C)
27119
27120 ### Make the necessary directories, if they don't exist.
27121 for dir in etc lisp ; do
27122 test -d ${dir} || mkdir ${dir}
27123 done
27124
27125 # Build src/Makefile from ${srcdir}/src/Makefile.c
27126 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
27127 # This must be done after src/config.h is built, since we rely on that file.
27128
27129 # Now get this: Some word that is part of the ${srcdir} directory name
27130 # or the ${configuration} value might, just might, happen to be an
27131 # identifier like `sun4' or `i386' or something, and be predefined by
27132 # the C preprocessor to some helpful value like 1, or maybe the empty
27133 # string. Needless to say consequent macro substitutions are less
27134 # than conducive to the makefile finding the correct directory.
27135 undefs="`echo $top_srcdir $configuration $canonical |
27136 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
27137 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
27138 `"
27139
27140 echo creating src/epaths.h
27141 ${MAKE-make} epaths-force
27142
27143 # As of 2000-11-19, newest development versions of GNU cpp preprocess
27144 # `..' to `. .' unless invoked with -traditional
27145
27146 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
27147 CPPFLAGS="$CPPFLAGS -traditional"
27148 fi
27149
27150 echo creating lib-src/Makefile
27151 ( cd lib-src
27152 rm -f junk.c junk1.c junk2.c
27153 sed -e '/start of cpp stuff/q' \
27154 < Makefile.c > junk1.c
27155 sed -e '1,/start of cpp stuff/d'\
27156 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27157 < Makefile.c > junk.c
27158 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27159 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27160 cat junk1.c junk2.c > Makefile.new
27161 rm -f junk.c junk1.c junk2.c
27162 chmod 444 Makefile.new
27163 mv -f Makefile.new Makefile
27164 )
27165
27166 echo creating src/Makefile
27167 ( cd src
27168 rm -f junk.c junk1.c junk2.c
27169 sed -e '/start of cpp stuff/q' \
27170 < Makefile.c > junk1.c
27171 sed -e '1,/start of cpp stuff/d'\
27172 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
27173 < Makefile.c > junk.c
27174 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
27175 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
27176 cat junk1.c junk2.c > Makefile.new
27177 rm -f junk.c junk1.c junk2.c
27178 chmod 444 Makefile.new
27179 mv -f Makefile.new Makefile
27180 )
27181
27182 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
27183 echo creating src/.gdbinit
27184 echo source $srcdir/src/.gdbinit > src/.gdbinit
27185 fi
27186
27187 # This is how we know whether to re-run configure in certain cases.
27188 touch src/config.stamp
27189
27190 ;;
27191
27192 esac
27193 done # for ac_tag
27194
27195
27196 { (exit 0); exit 0; }
27197 _ACEOF
27198 chmod +x $CONFIG_STATUS
27199 ac_clean_files=$ac_clean_files_save
27200
27201
27202 # configure is writing to config.log, and then calls config.status.
27203 # config.status does its own redirection, appending to config.log.
27204 # Unfortunately, on DOS this fails, as config.log is still kept open
27205 # by configure, so config.status won't be able to write to it; its
27206 # output is simply discarded. So we exec the FD to /dev/null,
27207 # effectively closing config.log, so it can be properly (re)opened and
27208 # appended to by config.status. When coming back to configure, we
27209 # need to make the FD available again.
27210 if test "$no_create" != yes; then
27211 ac_cs_success=:
27212 ac_config_status_args=
27213 test "$silent" = yes &&
27214 ac_config_status_args="$ac_config_status_args --quiet"
27215 exec 5>/dev/null
27216 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
27217 exec 5>>config.log
27218 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
27219 # would make configure fail if this is the last instruction.
27220 $ac_cs_success || { (exit 1); exit 1; }
27221 fi
27222
27223