]> code.delx.au - gnu-emacs/blob - configure
Merged from emacs@sv.gnu.org
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP
735 XMKMF'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
856
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1062
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1093 ;;
1094
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1119 fi
1120
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1126 do
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1135
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1142
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1151 fi
1152 fi
1153
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156
1157 test "$silent" = yes && exec 6>/dev/null
1158
1159
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1168
1169
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\).*/{
1193 s//\1/
1194 q
1195 }
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1200 fi
1201 else
1202 ac_srcdir_defaulted=no
1203 fi
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1208 fi
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217 fi
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1230
1231 #
1232 # Report the --help message.
1233 #
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1239
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245 Defaults for the options are specified in brackets.
1246
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1263
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1268
1269 For better control, use the options below.
1270
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1292
1293 cat <<\_ACEOF
1294
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1326
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1350
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1427
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1438
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1441
1442 $ $0 $@
1443
1444 _ACEOF
1445 exec 5>>config.log
1446 {
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1451
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468
1469 _ASUNAME
1470
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1479
1480 } >&5
1481
1482 cat >&5 <<_ACEOF
1483
1484
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1488
1489 _ACEOF
1490
1491
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1502 do
1503 for ac_arg
1504 do
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 2)
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1528 ;;
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1531 fi
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 ;;
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1547 {
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1557 (
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1579 *)
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 ;;
1582 esac |
1583 sort
1584 )
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619 fi
1620
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1630 fi
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1638 ' 0
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1643
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1646
1647 # Predefined preprocessor variables.
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1672
1673
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1683 fi
1684 shift
1685 for ac_site_file
1686 do
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1692 fi
1693 done
1694
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1705 fi
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1710 fi
1711
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788
1789
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1802
1803
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1812
1813 gameuser=games
1814
1815
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1819 fi
1820
1821
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1828
1829 else :
1830 fi
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1835
1836 fi
1837
1838
1839
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1854 with_kerberos=yes
1855 cat >>confdefs.h <<\_ACEOF
1856 #define KERBEROS 1
1857 _ACEOF
1858
1859 fi
1860 fi
1861
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1865
1866 fi
1867
1868
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1873 #define HESIOD 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1883 fi
1884
1885
1886
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1891 n | no ) val=no ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1896 * )
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1898 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1899 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1904 ;;
1905 esac
1906 with_x_toolkit=$val
1907
1908 fi
1909
1910
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1913 withval=$with_xpm;
1914 fi
1915
1916
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1919 withval=$with_jpeg;
1920 fi
1921
1922
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1925 withval=$with_tiff;
1926 fi
1927
1928
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1931 withval=$with_gif;
1932 fi
1933
1934
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1937 withval=$with_png;
1938 fi
1939
1940
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1943 withval=$with_gtk;
1944 fi
1945
1946
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1950 fi
1951
1952
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1956 fi
1957
1958
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1961 withval=$with_xim;
1962 fi
1963
1964
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1968 fi
1969
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1973 fi
1974
1975
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1979 else
1980 USE_XASSERTS=no
1981 fi
1982
1983
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1987 else
1988 USE_MAINTAINER_MODE=no
1989 fi
1990
1991 if test $USE_MAINTAINER_MODE = yes; then
1992 MAINT=
1993 else
1994 MAINT=#
1995 fi
1996
1997
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2001 locallisppath=
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2004 fi
2005 fi
2006
2007
2008 #### Make srcdir absolute, if it isn't already. It's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2013 unset CDPATH
2014 case "${srcdir}" in
2015 /* ) ;;
2016 . )
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2023 then
2024 srcdir="$PWD"
2025 else
2026 srcdir="`(cd ${srcdir}; pwd)`"
2027 fi
2028 ;;
2029 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2030 esac
2031
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2047 fi
2048
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2051
2052 ### Canonicalize the configuration name.
2053
2054 ac_aux_dir=
2055 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install-sh -c"
2059 break
2060 elif test -f "$ac_dir/install.sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install.sh -c"
2063 break
2064 elif test -f "$ac_dir/shtool"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/shtool install -c"
2067 break
2068 fi
2069 done
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2074 fi
2075
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083
2084
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2090
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2107
2108 fi
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116 esac
2117 build=$ac_cv_build
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_build
2120 shift
2121 build_cpu=$1
2122 build_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 build_os=$*
2127 IFS=$ac_save_IFS
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129
2130
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138 else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2143 fi
2144
2145 fi
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 case $ac_cv_host in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 host=$ac_cv_host
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_host
2157 shift
2158 host_cpu=$1
2159 host_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 host_os=$*
2164 IFS=$ac_save_IFS
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 canonical=$host
2169 configuration=${host_alias-$host}
2170
2171
2172
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2176
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2185 ###
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2191 ###
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2195
2196 machine='' opsys='' unported=no
2197 case "${canonical}" in
2198
2199 ## FreeBSD ports
2200 *-*-freebsd* )
2201 opsys=freebsd
2202 case "${canonical}" in
2203 alpha*-*-freebsd*) machine=alpha ;;
2204 ia64-*-freebsd*) machine=ia64 ;;
2205 sparc64-*-freebsd*) machine=sparc ;;
2206 powerpc-*-freebsd*) machine=macppc ;;
2207 i[3456]86-*-freebsd*) machine=intel386 ;;
2208 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2209 esac
2210 ;;
2211
2212 ## NetBSD ports
2213 *-*-netbsd* )
2214 opsys=netbsd
2215 if test -f /usr/lib/crti.o; then
2216
2217 cat >>confdefs.h <<\_ACEOF
2218 #define HAVE_CRTIN
2219 _ACEOF
2220
2221 fi
2222
2223 case "${canonical}" in
2224 alpha*-*-netbsd*) machine=alpha ;;
2225 i[3456]86-*-netbsd*) machine=intel386 ;;
2226 m68k-*-netbsd*)
2227 # This is somewhat bogus.
2228 machine=hp9000s300 ;;
2229 mips-*-netbsd*) machine=pmax ;;
2230 mipsel-*-netbsd*) machine=pmax ;;
2231 mipseb-*-netbsd*) machine=pmax ;;
2232 ns32k-*-netbsd*) machine=ns32000 ;;
2233 powerpc-*-netbsd*) machine=macppc ;;
2234 sparc*-*-netbsd*) machine=sparc ;;
2235 vax-*-netbsd*) machine=vax ;;
2236 arm-*-netbsd*) machine=arm ;;
2237 x86_64-*-netbsd*) machine=amdx86-64 ;;
2238 hppa-*-netbsd*) machine=hp800 ;;
2239 shle-*-netbsd*) machine=sh3el ;;
2240 esac
2241 ;;
2242
2243 ## OpenBSD ports
2244 *-*-openbsd* )
2245 opsys=openbsd
2246 case "${canonical}" in
2247 alpha*-*-openbsd*) machine=alpha ;;
2248 i386-*-openbsd*) machine=intel386 ;;
2249 x86_64-*-openbsd*) machine=amdx86-64 ;;
2250 m68k-*-openbsd*) machine=hp9000s300 ;;
2251 mipsel-*-openbsd*) machine=pmax ;;
2252 ns32k-*-openbsd*) machine=ns32000 ;;
2253 sparc-*-openbsd*) machine=sparc ;;
2254 vax-*-openbsd*) machine=vax ;;
2255 esac
2256 ;;
2257
2258 ## LynxOS ports
2259 *-*-lynxos* )
2260 opsys=lynxos
2261 case "${canonical}" in
2262 i[3456]86-*-lynxos*) machine=intel386 ;;
2263 powerpc-*-lynxos*) machine=powerpc ;;
2264 esac
2265 ;;
2266
2267 ## Acorn RISCiX:
2268 arm-acorn-riscix1.1* )
2269 machine=acorn opsys=riscix1-1
2270 ;;
2271 arm-acorn-riscix1.2* | arm-acorn-riscix )
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine=acorn opsys=riscix12
2275 ;;
2276
2277 ## BSDI ports
2278 *-*-bsdi* )
2279 opsys=bsdi
2280 case "${canonical}" in
2281 i[345]86-*-bsdi*) machine=intel386 ;;
2282 sparc-*-bsdi*) machine=sparc ;;
2283 powerpc-*-bsdi*) machine=macppc ;;
2284 esac
2285 case "${canonical}" in
2286 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2287 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2288 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2289 *-*-bsdi3* ) opsys=bsdos3 ;;
2290 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2291 esac
2292 ;;
2293
2294 ## Alliant machines
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2300 fx80-alliant-* )
2301 machine=alliant4 opsys=bsd4-2
2302 ;;
2303 i860-alliant-* )
2304 machine=alliant-2800 opsys=bsd4-3
2305 ;;
2306
2307 ## Alpha (DEC) machines.
2308 alpha*-dec-osf* )
2309 machine=alpha opsys=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2312 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP=/usr/bin/cpp
2318 case "${canonical}" in
2319 alpha*-dec-osf[5-9]*)
2320 opsys=osf5-0 ;;
2321 esac
2322 ;;
2323
2324 alpha*-*-linux-gnu* )
2325 machine=alpha opsys=gnu-linux
2326 ;;
2327
2328 arm*-*-linux-gnu* )
2329 machine=arm opsys=gnu-linux
2330 ;;
2331
2332 ## Altos 3068
2333 m68*-altos-sysv* )
2334 machine=altos opsys=usg5-2
2335 ;;
2336
2337 ## Amdahl UTS
2338 580-amdahl-sysv* )
2339 machine=amdahl opsys=usg5-2-2
2340 ;;
2341
2342 ## Apollo, Domain/OS
2343 m68*-apollo-* )
2344 machine=apollo opsys=bsd4-3
2345 ;;
2346
2347 ## Apple Darwin / Mac OS X
2348 *-apple-darwin* )
2349 case "${canonical}" in
2350 i[3456]86-* ) machine=intel386 ;;
2351 powerpc-* ) machine=powermac ;;
2352 * ) unported=yes ;;
2353 esac
2354 opsys=darwin
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw/include && test -d /sw/lib; then
2359 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2360 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2362 fi
2363 ;;
2364
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2366 we32k-att-sysv* )
2367 machine=att3b opsys=usg5-2-2
2368 ;;
2369
2370 ## AT&T 3b1 - The Mighty Unix PC!
2371 m68*-att-sysv* )
2372 machine=7300 opsys=usg5-2-2
2373 ;;
2374
2375 ## Bull dpx20
2376 rs6000-bull-bosx* )
2377 machine=ibmrs6000 opsys=aix3-2
2378 ;;
2379
2380 ## Bull dpx2
2381 m68*-bull-sysv3* )
2382 machine=dpx2 opsys=usg5-3
2383 ;;
2384
2385 ## Bull sps7
2386 m68*-bull-sysv2* )
2387 machine=sps7 opsys=usg5-2
2388 ;;
2389
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2391
2392 ## Celerity
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd* )
2397 machine=celerity opsys=bsd4-2
2398 ;;
2399
2400 ## Clipper
2401 ## What operating systems does this chip run that Emacs has been
2402 ## tested on?
2403 clipper-* )
2404 machine=clipper
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2407 ;;
2408
2409 ## Compaq Nonstop
2410 mips-compaq-nonstopux* )
2411 machine=nonstopux opsys=nonstopux
2412 ;;
2413
2414 ## Convex
2415 *-convex-bsd* | *-convex-convexos* )
2416 machine=convex opsys=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP="cc -E -P"
2419 ;;
2420
2421 ## Cubix QBx/386
2422 i[3456]86-cubix-sysv* )
2423 machine=intel386 opsys=usg5-3
2424 ;;
2425
2426 ## Cydra 5
2427 cydra*-cydrome-sysv* )
2428 machine=cydra5 opsys=usg5-3
2429 ;;
2430
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2438 machine=aviion opsys=dgux4
2439 ;;
2440 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine=aviion opsys=dgux5-4-3
2444 ;;
2445 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2446 machine=aviion opsys=dgux5-4r2
2447 ;;
2448 m88k-dg-dgux* )
2449 machine=aviion opsys=dgux
2450 ;;
2451
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i[345]86-dg-dguxR4* )
2456 machine=aviion-intel opsys=dgux4
2457 ;;
2458
2459 ## DECstations
2460 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2461 machine=pmax opsys=bsd4-2
2462 ;;
2463 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2464 machine=pmax opsys=bsd4-3
2465 ;;
2466 mips-dec-ultrix* )
2467 machine=pmax opsys=ultrix4-3
2468 ;;
2469 mips-dec-osf* )
2470 machine=pmax opsys=osf1
2471 ;;
2472 mips-dec-mach_bsd4.3* )
2473 machine=pmax opsys=mach-bsd4-3
2474 ;;
2475
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv* | m68000-motorola-sysv* )
2478 machine=delta opsys=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2480 then
2481 if test -s /etc/167config
2482 then CC="gnucc -m68040"
2483 else CC="gnucc -m68881"
2484 fi
2485 else
2486 if test -z "`type gcc | grep 'not found'`"
2487 then CC=gcc
2488 else CC=cc
2489 fi
2490 fi
2491 ;;
2492 m88k-motorola-sysv4* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine=delta88k opsys=usg5-4-2
2498 ;;
2499 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2500 machine=delta88k opsys=usg5-3
2501 ;;
2502
2503 ## Dual machines
2504 m68*-dual-sysv* )
2505 machine=dual opsys=usg5-2
2506 ;;
2507 m68*-dual-uniplus* )
2508 machine=dual opsys=unipl5-2
2509 ;;
2510
2511 ## Elxsi 6400
2512 elxsi-elxsi-sysv* )
2513 machine=elxsi opsys=usg5-2
2514 ;;
2515
2516 ## Encore machines
2517 ns16k-encore-bsd* )
2518 machine=ns16000 opsys=umax
2519 ;;
2520
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2523
2524 ## Gould Power Node and NP1
2525 pn-gould-bsd4.2* )
2526 machine=gould opsys=bsd4-2
2527 ;;
2528 pn-gould-bsd4.3* )
2529 machine=gould opsys=bsd4-3
2530 ;;
2531 np1-gould-bsd* )
2532 machine=gould-np1 opsys=bsd4-3
2533 ;;
2534
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2537 m88k-harris-cxux* )
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2541 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2542 esac
2543 NON_GNU_CPP="/lib/cpp"
2544 ;;
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2546 m68k-harris-cxux* )
2547 machine=nh3000 opsys=cxux
2548 ;;
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix )
2551 machine=nh6000 opsys=powerunix
2552 NON_GNU_CPP="cc -Xo -E -P"
2553 ;;
2554 ## Honeywell XPS100
2555 xps*-honeywell-sysv* )
2556 machine=xps100 opsys=usg5-2
2557 ;;
2558
2559 ## HP 9000 series 200 or 300
2560 m68*-hp-bsd* )
2561 machine=hp9000s300 opsys=bsd4-3
2562 ;;
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2564 m68*-hp-hpux* )
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2569 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2570 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2571 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2572 *) machine=hp9000s300 opsys=hpux ;;
2573 esac
2574 ;;
2575
2576 hppa*-*-linux-gnu* )
2577 machine=hp800 opsys=gnu-linux
2578 ;;
2579
2580 hppa*-*-nextstep* )
2581 machine=hp800 opsys=nextstep
2582 ;;
2583
2584 ## Orion machines
2585 orion-orion-bsd* )
2586 machine=orion opsys=bsd4-2
2587 ;;
2588 clipper-orion-bsd* )
2589 machine=orion105 opsys=bsd4-2
2590 ;;
2591
2592 ## IBM machines
2593 i[3456]86-ibm-aix1.1* )
2594 machine=ibmps2-aix opsys=usg5-2-2
2595 ;;
2596 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2597 machine=ibmps2-aix opsys=usg5-3
2598 ;;
2599 i370-ibm-aix*)
2600 machine=ibm370aix opsys=usg5-3
2601 ;;
2602 s390-*-linux-gnu* )
2603 machine=ibms390 opsys=gnu-linux
2604 ;;
2605 s390x-*-linux-gnu* )
2606 machine=ibms390x opsys=gnu-linux
2607 ;;
2608 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2609 machine=ibmrs6000 opsys=aix3-1
2610 ;;
2611 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2612 machine=ibmrs6000 opsys=aix3-2-5
2613 ;;
2614 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2615 machine=ibmrs6000 opsys=aix4-1
2616 ;;
2617 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2618 machine=ibmrs6000 opsys=aix4-2
2619 ;;
2620 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2621 machine=ibmrs6000 opsys=aix4-2
2622 ;;
2623 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2624 machine=ibmrs6000 opsys=aix4
2625 ;;
2626 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2627 machine=ibmrs6000 opsys=aix4-1
2628 ;;
2629 rs6000-ibm-aix* | powerpc-ibm-aix* )
2630 machine=ibmrs6000 opsys=aix3-2
2631 ;;
2632 romp-ibm-bsd4.3* )
2633 machine=ibmrt opsys=bsd4-3
2634 ;;
2635 romp-ibm-bsd4.2* )
2636 machine=ibmrt opsys=bsd4-2
2637 ;;
2638 romp-ibm-aos4.3* )
2639 machine=ibmrt opsys=bsd4-3
2640 ;;
2641 romp-ibm-aos4.2* )
2642 machine=ibmrt opsys=bsd4-2
2643 ;;
2644 romp-ibm-aos* )
2645 machine=ibmrt opsys=bsd4-3
2646 ;;
2647 romp-ibm-bsd* )
2648 machine=ibmrt opsys=bsd4-3
2649 ;;
2650 romp-ibm-aix* )
2651 machine=ibmrt-aix opsys=usg5-2-2
2652 ;;
2653
2654 ## Integrated Solutions `Optimum V'
2655 m68*-isi-bsd4.2* )
2656 machine=isi-ov opsys=bsd4-2
2657 ;;
2658 m68*-isi-bsd4.3* )
2659 machine=isi-ov opsys=bsd4-3
2660 ;;
2661
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i[3456]86-intsys-sysv* )
2664 machine=is386 opsys=usg5-2-2
2665 ;;
2666
2667 ## Prime EXL
2668 i[3456]86-prime-sysv* )
2669 machine=i386 opsys=usg5-3
2670 ;;
2671
2672 ## Sequent Symmetry running Dynix
2673 i[3456]86-sequent-bsd* )
2674 machine=symmetry opsys=bsd4-3
2675 ;;
2676
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2679 machine=sequent-ptx opsys=ptx4
2680 NON_GNU_CPP=/lib/cpp
2681 ;;
2682
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i[3456]86-sequent-ptx* )
2686 machine=sequent-ptx opsys=ptx
2687 NON_GNU_CPP="/lib/cpp"
2688 ;;
2689
2690 ## ncr machine running svr4.3.
2691 i[3456]86-ncr-sysv4.3 )
2692 machine=ncr386 opsys=usg5-4-3
2693 ;;
2694
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i[3456]86-ncr-sysv* )
2698 machine=ncr386 opsys=usg5-4-2
2699 ;;
2700
2701 ## Intel Paragon OSF/1
2702 i860-intel-osf1* )
2703 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2704 ;;
2705
2706 ## Intel 860
2707 i860-*-sysv4* )
2708 machine=i860 opsys=usg5-4
2709 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2711 ;;
2712
2713 ## Macintosh PowerPC
2714 powerpc*-*-linux-gnu* )
2715 machine=macppc opsys=gnu-linux
2716 ;;
2717
2718 ## Masscomp machines
2719 m68*-masscomp-rtu* )
2720 machine=masscomp opsys=rtu
2721 ;;
2722
2723 ## Megatest machines
2724 m68*-megatest-bsd* )
2725 machine=mega68 opsys=bsd4-2
2726 ;;
2727
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2731
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2739 mips-mips-usg* )
2740 machine=mips4
2741 ## Fall through to the general code at the bottom to decide on the OS.
2742 ;;
2743 mips-mips-riscos4* )
2744 machine=mips4 opsys=bsd4-3
2745 NON_GNU_CC="cc -systype bsd43"
2746 NON_GNU_CPP="cc -systype bsd43 -E"
2747 ;;
2748 mips-mips-riscos5* )
2749 machine=mips4 opsys=riscos5
2750 NON_GNU_CC="cc -systype bsd43"
2751 NON_GNU_CPP="cc -systype bsd43 -E"
2752 ;;
2753 mips-mips-bsd* )
2754 machine=mips opsys=bsd4-3
2755 ;;
2756 mips-mips-* )
2757 machine=mips opsys=usg5-2-2
2758 ;;
2759
2760 ## NeXT
2761 m68*-next-* | m68k-*-nextstep* )
2762 machine=m68k opsys=nextstep
2763 ;;
2764
2765 ## The complete machine from National Semiconductor
2766 ns32k-ns-genix* )
2767 machine=ns32000 opsys=usg5-2
2768 ;;
2769
2770 ## NCR machines
2771 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2772 machine=tower32 opsys=usg5-2-2
2773 ;;
2774 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2775 machine=tower32v3 opsys=usg5-3
2776 ;;
2777
2778 ## NEC EWS4800
2779 mips-nec-sysv4*)
2780 machine=ews4800 opsys=ux4800
2781 ;;
2782
2783 ## Nixdorf Targon 31
2784 m68*-nixdorf-sysv* )
2785 machine=targon31 opsys=usg5-2-2
2786 ;;
2787
2788 ## Nu (TI or LMI)
2789 m68*-nu-sysv* )
2790 machine=nu opsys=usg5-2
2791 ;;
2792
2793 ## Plexus
2794 m68*-plexus-sysv* )
2795 machine=plexus opsys=usg5-2
2796 ;;
2797
2798 ## Pyramid machines
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd* )
2802 machine=pyramid opsys=bsd4-2
2803 ;;
2804
2805 ## Sequent Balance
2806 ns32k-sequent-bsd4.2* )
2807 machine=sequent opsys=bsd4-2
2808 ;;
2809 ns32k-sequent-bsd4.3* )
2810 machine=sequent opsys=bsd4-3
2811 ;;
2812
2813 ## Siemens Nixdorf
2814 mips-siemens-sysv* | mips-sni-sysv*)
2815 machine=mips-siemens opsys=usg5-4
2816 NON_GNU_CC=/usr/ccs/bin/cc
2817 NON_GNU_CPP=/usr/ccs/lib/cpp
2818 ;;
2819
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2822 m68*-sgi-iris3.5* )
2823 machine=irist opsys=iris3-5
2824 ;;
2825 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2826 machine=irist opsys=iris3-6
2827 ;;
2828 ## Iris 4D
2829 mips-sgi-irix3* )
2830 machine=iris4d opsys=irix3-3
2831 ;;
2832 mips-sgi-irix4* )
2833 machine=iris4d opsys=irix4-0
2834 ;;
2835 mips-sgi-irix6.5 )
2836 machine=iris4d opsys=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2842 ;;
2843 mips-sgi-irix6* )
2844 machine=iris4d opsys=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS=-32
2850 ;;
2851 mips-sgi-irix5.[01]* )
2852 machine=iris4d opsys=irix5-0
2853 ;;
2854 mips-sgi-irix5* | mips-sgi-irix* )
2855 machine=iris4d opsys=irix5-2
2856 ;;
2857
2858 ## SONY machines
2859 m68*-sony-bsd4.2* )
2860 machine=news opsys=bsd4-2
2861 ;;
2862 m68*-sony-bsd4.3* )
2863 machine=news opsys=bsd4-3
2864 ;;
2865 m68*-sony-newsos3* | m68*-sony-news3*)
2866 machine=news opsys=bsd4-3
2867 ;;
2868 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2869 machine=news-risc opsys=bsd4-3
2870 ;;
2871 mips-sony-newsos6* )
2872 machine=news-r6 opsys=newsos6
2873 ;;
2874 mips-sony-news* )
2875 machine=news-risc opsys=newsos5
2876 ;;
2877
2878 ## Stride
2879 m68*-stride-sysv* )
2880 machine=stride opsys=usg5-2
2881 ;;
2882
2883 ## Suns
2884 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2885 machine=sparc opsys=gnu-linux
2886 ;;
2887
2888 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2889 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2890 | rs6000-*-solaris2*)
2891 case "${canonical}" in
2892 m68*-sunos1* ) machine=sun1 ;;
2893 m68*-sunos2* ) machine=sun2 ;;
2894 m68* ) machine=sun3 ;;
2895 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2896 i[3456]86-*-* ) machine=intel386 ;;
2897 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2898 powerpcle* ) machine=powerpcle ;;
2899 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2900 sparc* ) machine=sparc ;;
2901 * ) unported=yes ;;
2902 esac
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2906 *-sunos4.0* ) opsys=sunos4-0 ;;
2907 *-sunos4.1.[3-9]*noshare )
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2910 opsys=sunos413
2911 NON_GNU_CPP=/usr/lib/cpp
2912 NON_GCC_TEST_OPTIONS=-Bstatic
2913 GCC_TEST_OPTIONS=-static
2914 ;;
2915 *-sunos4.1.[3-9]* | *-sunos4shr*)
2916 opsys=sunos4shr
2917 NON_GNU_CPP=/usr/lib/cpp
2918 ;;
2919 *-sunos4* | *-sunos )
2920 opsys=sunos4-1
2921 NON_GCC_TEST_OPTIONS=-Bstatic
2922 GCC_TEST_OPTIONS=-static
2923 ;;
2924 *-sunos5.3* | *-solaris2.3* )
2925 opsys=sol2-3
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2927 ;;
2928 *-sunos5.4* | *-solaris2.4* )
2929 opsys=sol2-4
2930 NON_GNU_CPP=/usr/ccs/lib/cpp
2931 RANLIB="ar -ts"
2932 ;;
2933 *-sunos5.5* | *-solaris2.5* )
2934 opsys=sol2-5
2935 NON_GNU_CPP=/usr/ccs/lib/cpp
2936 RANLIB="ar -ts"
2937 ;;
2938 *-sunos5.6* | *-solaris2.6* )
2939 opsys=sol2-6
2940 NON_GNU_CPP=/usr/ccs/lib/cpp
2941 RANLIB="ar -ts"
2942 ;;
2943 *-sunos5* | *-solaris* )
2944 opsys=sol2-6
2945 NON_GNU_CPP=/usr/ccs/lib/cpp
2946 ;;
2947 * ) opsys=bsd4-2 ;;
2948 esac
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* | *-sunos5* )
2952 if [ "x$CC" = x/usr/ucb/cc ]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2955 unset CC
2956 fi
2957 ;;
2958 *) ;;
2959 esac
2960 ;;
2961 sparc-*-nextstep* )
2962 machine=sparc opsys=nextstep
2963 ;;
2964
2965 ## Tadpole 68k
2966 m68*-tadpole-sysv* )
2967 machine=tad68k opsys=usg5-3
2968 ;;
2969
2970 ## Tahoe machines
2971 tahoe-tahoe-bsd4.2* )
2972 machine=tahoe opsys=bsd4-2
2973 ;;
2974 tahoe-tahoe-bsd4.3* )
2975 machine=tahoe opsys=bsd4-3
2976 ;;
2977
2978 ## Tandem Integrity S2
2979 mips-tandem-sysv* )
2980 machine=tandem-s2 opsys=usg5-3
2981 ;;
2982
2983 ## Tektronix XD88
2984 m88k-tektronix-sysv3* )
2985 machine=tekxd88 opsys=usg5-3
2986 ;;
2987
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd* )
2990 machine=ns16000 opsys=bsd4-2
2991 ;;
2992 ## Tektronix 4300
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68*-tektronix-bsd* )
2995 machine=tek4300 opsys=bsd4-3
2996 ;;
2997
2998 ## Titan P2 or P3
2999 ## We seem to have lost the machine-description file titan.h!
3000 titan-titan-sysv* )
3001 machine=titan opsys=usg5-3
3002 ;;
3003
3004 ## Ustation E30 (SS5E)
3005 m68*-unisys-uniplus* )
3006 machine=ustation opsystem=unipl5-2
3007 ;;
3008
3009 ## Vaxen.
3010 vax-dec-* )
3011 machine=vax
3012 case "${canonical}" in
3013 *-bsd4.1* ) opsys=bsd4-1 ;;
3014 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3015 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3016 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3017 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3018 *-vms* ) opsys=vms ;;
3019 * ) unported=yes
3020 esac
3021 ;;
3022
3023 ## Whitechapel MG1
3024 ns16k-whitechapel-* )
3025 machine=mg1
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3028 ;;
3029
3030 ## Wicat
3031 m68*-wicat-sysv* )
3032 machine=wicat opsys=usg5-2
3033 ;;
3034
3035 ## IA-64
3036 ia64*-*-linux* )
3037 machine=ia64 opsys=gnu-linux
3038 ;;
3039
3040 ## Intel 386 machines where we don't care about the manufacturer
3041 i[3456]86-*-* )
3042 machine=intel386
3043 case "${canonical}" in
3044 *-cygwin ) opsys=cygwin ;;
3045 *-darwin* ) opsys=darwin
3046 CPP="${CC-cc} -E -no-cpp-precomp"
3047 ;;
3048 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3049 *-isc2.2* ) opsys=isc2-2 ;;
3050 *-isc4.0* ) opsys=isc4-0 ;;
3051 *-isc4.* ) opsys=isc4-1
3052 GCC_TEST_OPTIONS=-posix
3053 NON_GCC_TEST_OPTIONS=-Xp
3054 ;;
3055 *-isc* ) opsys=isc3-0 ;;
3056 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3057 *-esix* ) opsys=esix ;;
3058 *-xenix* ) opsys=xenix ;;
3059 *-linux-gnu* ) opsys=gnu-linux ;;
3060 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3061 *-sco3.2v5* ) opsys=sco5
3062 NON_GNU_CPP=/lib/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS=" "
3066 ;;
3067 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3068 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3069 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3070 *-386bsd* ) opsys=386bsd ;;
3071 *-nextstep* ) opsys=nextstep ;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3073 esac
3074 ;;
3075
3076 ## m68k Linux-based GNU system
3077 m68k-*-linux-gnu* )
3078 machine=m68k opsys=gnu-linux
3079 ;;
3080
3081 ## Mips Linux-based GNU system
3082 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3083 machine=mips opsys=gnu-linux
3084 ;;
3085
3086 ## UXP/DS
3087 sparc-fujitsu-sysv4* )
3088 machine=sparc opsys=uxpds
3089 NON_GNU_CPP=/usr/ccs/lib/cpp
3090 RANLIB="ar -ts"
3091 ;;
3092
3093 ## UXP/V
3094 f301-fujitsu-uxpv4.1)
3095 machine=f301 opsys=uxpv
3096 ;;
3097
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-*-linux-gnu* )
3100 machine=amdx86-64 opsys=gnu-linux
3101 ;;
3102
3103 * )
3104 unported=yes
3105 ;;
3106 esac
3107
3108 ### If the code above didn't choose an operating system, just choose
3109 ### an operating system based on the configuration name. You really
3110 ### only want to use this when you have no idea what the right
3111 ### operating system is; if you know what operating systems a machine
3112 ### runs, it's cleaner to make it explicit in the case statement
3113 ### above.
3114 if test x"${opsys}" = x; then
3115 case "${canonical}" in
3116 *-gnu* ) opsys=gnu ;;
3117 *-bsd4.[01] ) opsys=bsd4-1 ;;
3118 *-bsd4.2 ) opsys=bsd4-2 ;;
3119 *-bsd4.3 ) opsys=bsd4-3 ;;
3120 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3121 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3122 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3123 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3124 *-sysv4.2uw* ) opsys=unixware ;;
3125 *-sysv5uw* ) opsys=unixware ;;
3126 *-sysv5OpenUNIX* ) opsys=unixware ;;
3127 *-sysv4.1* | *-sysvr4.1* )
3128 NON_GNU_CPP=/usr/lib/cpp
3129 opsys=usg5-4 ;;
3130 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3131 if [ x$NON_GNU_CPP = x ]; then
3132 if [ -f /usr/ccs/lib/cpp ]; then
3133 NON_GNU_CPP=/usr/ccs/lib/cpp
3134 else
3135 NON_GNU_CPP=/lib/cpp
3136 fi
3137 fi
3138 opsys=usg5-4-2 ;;
3139 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3140 * )
3141 unported=yes
3142 ;;
3143 esac
3144 fi
3145
3146
3147
3148 if test $unported = yes; then
3149 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3150 Check \`etc/MACHINES' for recognized configuration names." >&5
3151 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3152 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3153 { (exit 1); exit 1; }; }
3154 fi
3155
3156 machfile="m/${machine}.h"
3157 opsysfile="s/${opsys}.h"
3158
3159
3160 #### Choose a compiler.
3161 test -n "$CC" && cc_specified=yes
3162
3163 # Save the value of CFLAGS that the user specified.
3164 SPECIFIED_CFLAGS="$CFLAGS"
3165
3166 case ${with_gcc} in
3167 "yes" ) CC="gcc" GCC=yes ;;
3168 "no" ) : ${CC=cc} ;;
3169 * )
3170 esac
3171 ac_ext=c
3172 ac_cpp='$CPP $CPPFLAGS'
3173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3176 if test -n "$ac_tool_prefix"; then
3177 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3178 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3179 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3180 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3181 if test "${ac_cv_prog_CC+set}" = set; then
3182 echo $ECHO_N "(cached) $ECHO_C" >&6
3183 else
3184 if test -n "$CC"; then
3185 ac_cv_prog_CC="$CC" # Let the user override the test.
3186 else
3187 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3188 for as_dir in $PATH
3189 do
3190 IFS=$as_save_IFS
3191 test -z "$as_dir" && as_dir=.
3192 for ac_exec_ext in '' $ac_executable_extensions; do
3193 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3194 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3195 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3196 break 2
3197 fi
3198 done
3199 done
3200 IFS=$as_save_IFS
3201
3202 fi
3203 fi
3204 CC=$ac_cv_prog_CC
3205 if test -n "$CC"; then
3206 { echo "$as_me:$LINENO: result: $CC" >&5
3207 echo "${ECHO_T}$CC" >&6; }
3208 else
3209 { echo "$as_me:$LINENO: result: no" >&5
3210 echo "${ECHO_T}no" >&6; }
3211 fi
3212
3213
3214 fi
3215 if test -z "$ac_cv_prog_CC"; then
3216 ac_ct_CC=$CC
3217 # Extract the first word of "gcc", so it can be a program name with args.
3218 set dummy gcc; ac_word=$2
3219 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3220 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3221 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3222 echo $ECHO_N "(cached) $ECHO_C" >&6
3223 else
3224 if test -n "$ac_ct_CC"; then
3225 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3226 else
3227 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3228 for as_dir in $PATH
3229 do
3230 IFS=$as_save_IFS
3231 test -z "$as_dir" && as_dir=.
3232 for ac_exec_ext in '' $ac_executable_extensions; do
3233 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3234 ac_cv_prog_ac_ct_CC="gcc"
3235 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3236 break 2
3237 fi
3238 done
3239 done
3240 IFS=$as_save_IFS
3241
3242 fi
3243 fi
3244 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3245 if test -n "$ac_ct_CC"; then
3246 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3247 echo "${ECHO_T}$ac_ct_CC" >&6; }
3248 else
3249 { echo "$as_me:$LINENO: result: no" >&5
3250 echo "${ECHO_T}no" >&6; }
3251 fi
3252
3253 if test "x$ac_ct_CC" = x; then
3254 CC=""
3255 else
3256 case $cross_compiling:$ac_tool_warned in
3257 yes:)
3258 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3259 whose name does not start with the host triplet. If you think this
3260 configuration is useful to you, please write to autoconf@gnu.org." >&5
3261 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3262 whose name does not start with the host triplet. If you think this
3263 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3264 ac_tool_warned=yes ;;
3265 esac
3266 CC=$ac_ct_CC
3267 fi
3268 else
3269 CC="$ac_cv_prog_CC"
3270 fi
3271
3272 if test -z "$CC"; then
3273 if test -n "$ac_tool_prefix"; then
3274 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3275 set dummy ${ac_tool_prefix}cc; ac_word=$2
3276 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3277 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3278 if test "${ac_cv_prog_CC+set}" = set; then
3279 echo $ECHO_N "(cached) $ECHO_C" >&6
3280 else
3281 if test -n "$CC"; then
3282 ac_cv_prog_CC="$CC" # Let the user override the test.
3283 else
3284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3285 for as_dir in $PATH
3286 do
3287 IFS=$as_save_IFS
3288 test -z "$as_dir" && as_dir=.
3289 for ac_exec_ext in '' $ac_executable_extensions; do
3290 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3291 ac_cv_prog_CC="${ac_tool_prefix}cc"
3292 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3293 break 2
3294 fi
3295 done
3296 done
3297 IFS=$as_save_IFS
3298
3299 fi
3300 fi
3301 CC=$ac_cv_prog_CC
3302 if test -n "$CC"; then
3303 { echo "$as_me:$LINENO: result: $CC" >&5
3304 echo "${ECHO_T}$CC" >&6; }
3305 else
3306 { echo "$as_me:$LINENO: result: no" >&5
3307 echo "${ECHO_T}no" >&6; }
3308 fi
3309
3310
3311 fi
3312 fi
3313 if test -z "$CC"; then
3314 # Extract the first word of "cc", so it can be a program name with args.
3315 set dummy cc; ac_word=$2
3316 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3317 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3318 if test "${ac_cv_prog_CC+set}" = set; then
3319 echo $ECHO_N "(cached) $ECHO_C" >&6
3320 else
3321 if test -n "$CC"; then
3322 ac_cv_prog_CC="$CC" # Let the user override the test.
3323 else
3324 ac_prog_rejected=no
3325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3326 for as_dir in $PATH
3327 do
3328 IFS=$as_save_IFS
3329 test -z "$as_dir" && as_dir=.
3330 for ac_exec_ext in '' $ac_executable_extensions; do
3331 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3332 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3333 ac_prog_rejected=yes
3334 continue
3335 fi
3336 ac_cv_prog_CC="cc"
3337 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3338 break 2
3339 fi
3340 done
3341 done
3342 IFS=$as_save_IFS
3343
3344 if test $ac_prog_rejected = yes; then
3345 # We found a bogon in the path, so make sure we never use it.
3346 set dummy $ac_cv_prog_CC
3347 shift
3348 if test $# != 0; then
3349 # We chose a different compiler from the bogus one.
3350 # However, it has the same basename, so the bogon will be chosen
3351 # first if we set CC to just the basename; use the full file name.
3352 shift
3353 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3354 fi
3355 fi
3356 fi
3357 fi
3358 CC=$ac_cv_prog_CC
3359 if test -n "$CC"; then
3360 { echo "$as_me:$LINENO: result: $CC" >&5
3361 echo "${ECHO_T}$CC" >&6; }
3362 else
3363 { echo "$as_me:$LINENO: result: no" >&5
3364 echo "${ECHO_T}no" >&6; }
3365 fi
3366
3367
3368 fi
3369 if test -z "$CC"; then
3370 if test -n "$ac_tool_prefix"; then
3371 for ac_prog in cl.exe
3372 do
3373 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3374 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3377 if test "${ac_cv_prog_CC+set}" = set; then
3378 echo $ECHO_N "(cached) $ECHO_C" >&6
3379 else
3380 if test -n "$CC"; then
3381 ac_cv_prog_CC="$CC" # Let the user override the test.
3382 else
3383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3384 for as_dir in $PATH
3385 do
3386 IFS=$as_save_IFS
3387 test -z "$as_dir" && as_dir=.
3388 for ac_exec_ext in '' $ac_executable_extensions; do
3389 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3390 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3391 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3392 break 2
3393 fi
3394 done
3395 done
3396 IFS=$as_save_IFS
3397
3398 fi
3399 fi
3400 CC=$ac_cv_prog_CC
3401 if test -n "$CC"; then
3402 { echo "$as_me:$LINENO: result: $CC" >&5
3403 echo "${ECHO_T}$CC" >&6; }
3404 else
3405 { echo "$as_me:$LINENO: result: no" >&5
3406 echo "${ECHO_T}no" >&6; }
3407 fi
3408
3409
3410 test -n "$CC" && break
3411 done
3412 fi
3413 if test -z "$CC"; then
3414 ac_ct_CC=$CC
3415 for ac_prog in cl.exe
3416 do
3417 # Extract the first word of "$ac_prog", so it can be a program name with args.
3418 set dummy $ac_prog; ac_word=$2
3419 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3420 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3421 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3422 echo $ECHO_N "(cached) $ECHO_C" >&6
3423 else
3424 if test -n "$ac_ct_CC"; then
3425 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3426 else
3427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3428 for as_dir in $PATH
3429 do
3430 IFS=$as_save_IFS
3431 test -z "$as_dir" && as_dir=.
3432 for ac_exec_ext in '' $ac_executable_extensions; do
3433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3434 ac_cv_prog_ac_ct_CC="$ac_prog"
3435 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3436 break 2
3437 fi
3438 done
3439 done
3440 IFS=$as_save_IFS
3441
3442 fi
3443 fi
3444 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3445 if test -n "$ac_ct_CC"; then
3446 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3447 echo "${ECHO_T}$ac_ct_CC" >&6; }
3448 else
3449 { echo "$as_me:$LINENO: result: no" >&5
3450 echo "${ECHO_T}no" >&6; }
3451 fi
3452
3453
3454 test -n "$ac_ct_CC" && break
3455 done
3456
3457 if test "x$ac_ct_CC" = x; then
3458 CC=""
3459 else
3460 case $cross_compiling:$ac_tool_warned in
3461 yes:)
3462 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3463 whose name does not start with the host triplet. If you think this
3464 configuration is useful to you, please write to autoconf@gnu.org." >&5
3465 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3466 whose name does not start with the host triplet. If you think this
3467 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3468 ac_tool_warned=yes ;;
3469 esac
3470 CC=$ac_ct_CC
3471 fi
3472 fi
3473
3474 fi
3475
3476
3477 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3478 See \`config.log' for more details." >&5
3479 echo "$as_me: error: no acceptable C compiler found in \$PATH
3480 See \`config.log' for more details." >&2;}
3481 { (exit 1); exit 1; }; }
3482
3483 # Provide some information about the compiler.
3484 echo "$as_me:$LINENO: checking for C compiler version" >&5
3485 ac_compiler=`set X $ac_compile; echo $2`
3486 { (ac_try="$ac_compiler --version >&5"
3487 case "(($ac_try" in
3488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3489 *) ac_try_echo=$ac_try;;
3490 esac
3491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3492 (eval "$ac_compiler --version >&5") 2>&5
3493 ac_status=$?
3494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3495 (exit $ac_status); }
3496 { (ac_try="$ac_compiler -v >&5"
3497 case "(($ac_try" in
3498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3499 *) ac_try_echo=$ac_try;;
3500 esac
3501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3502 (eval "$ac_compiler -v >&5") 2>&5
3503 ac_status=$?
3504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3505 (exit $ac_status); }
3506 { (ac_try="$ac_compiler -V >&5"
3507 case "(($ac_try" in
3508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3509 *) ac_try_echo=$ac_try;;
3510 esac
3511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3512 (eval "$ac_compiler -V >&5") 2>&5
3513 ac_status=$?
3514 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3515 (exit $ac_status); }
3516
3517 cat >conftest.$ac_ext <<_ACEOF
3518 /* confdefs.h. */
3519 _ACEOF
3520 cat confdefs.h >>conftest.$ac_ext
3521 cat >>conftest.$ac_ext <<_ACEOF
3522 /* end confdefs.h. */
3523
3524 int
3525 main ()
3526 {
3527
3528 ;
3529 return 0;
3530 }
3531 _ACEOF
3532 ac_clean_files_save=$ac_clean_files
3533 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3534 # Try to create an executable without -o first, disregard a.out.
3535 # It will help us diagnose broken compilers, and finding out an intuition
3536 # of exeext.
3537 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3538 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3539 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3540 #
3541 # List of possible output files, starting from the most likely.
3542 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3543 # only as a last resort. b.out is created by i960 compilers.
3544 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3545 #
3546 # The IRIX 6 linker writes into existing files which may not be
3547 # executable, retaining their permissions. Remove them first so a
3548 # subsequent execution test works.
3549 ac_rmfiles=
3550 for ac_file in $ac_files
3551 do
3552 case $ac_file in
3553 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3554 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3555 esac
3556 done
3557 rm -f $ac_rmfiles
3558
3559 if { (ac_try="$ac_link_default"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_link_default") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }; then
3569 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3570 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3571 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3572 # so that the user can short-circuit this test for compilers unknown to
3573 # Autoconf.
3574 for ac_file in $ac_files ''
3575 do
3576 test -f "$ac_file" || continue
3577 case $ac_file in
3578 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3579 ;;
3580 [ab].out )
3581 # We found the default executable, but exeext='' is most
3582 # certainly right.
3583 break;;
3584 *.* )
3585 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3586 then :; else
3587 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3588 fi
3589 # We set ac_cv_exeext here because the later test for it is not
3590 # safe: cross compilers may not add the suffix if given an `-o'
3591 # argument, so we may need to know it at that point already.
3592 # Even if this section looks crufty: it has the advantage of
3593 # actually working.
3594 break;;
3595 * )
3596 break;;
3597 esac
3598 done
3599 test "$ac_cv_exeext" = no && ac_cv_exeext=
3600
3601 else
3602 ac_file=''
3603 fi
3604
3605 { echo "$as_me:$LINENO: result: $ac_file" >&5
3606 echo "${ECHO_T}$ac_file" >&6; }
3607 if test -z "$ac_file"; then
3608 echo "$as_me: failed program was:" >&5
3609 sed 's/^/| /' conftest.$ac_ext >&5
3610
3611 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3612 See \`config.log' for more details." >&5
3613 echo "$as_me: error: C compiler cannot create executables
3614 See \`config.log' for more details." >&2;}
3615 { (exit 77); exit 77; }; }
3616 fi
3617
3618 ac_exeext=$ac_cv_exeext
3619
3620 # Check that the compiler produces executables we can run. If not, either
3621 # the compiler is broken, or we cross compile.
3622 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3623 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3624 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3625 # If not cross compiling, check that we can run a simple program.
3626 if test "$cross_compiling" != yes; then
3627 if { ac_try='./$ac_file'
3628 { (case "(($ac_try" in
3629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3630 *) ac_try_echo=$ac_try;;
3631 esac
3632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3633 (eval "$ac_try") 2>&5
3634 ac_status=$?
3635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3636 (exit $ac_status); }; }; then
3637 cross_compiling=no
3638 else
3639 if test "$cross_compiling" = maybe; then
3640 cross_compiling=yes
3641 else
3642 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3643 If you meant to cross compile, use \`--host'.
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: cannot run C compiled programs.
3646 If you meant to cross compile, use \`--host'.
3647 See \`config.log' for more details." >&2;}
3648 { (exit 1); exit 1; }; }
3649 fi
3650 fi
3651 fi
3652 { echo "$as_me:$LINENO: result: yes" >&5
3653 echo "${ECHO_T}yes" >&6; }
3654
3655 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3656 ac_clean_files=$ac_clean_files_save
3657 # Check that the compiler produces executables we can run. If not, either
3658 # the compiler is broken, or we cross compile.
3659 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3660 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3661 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3662 echo "${ECHO_T}$cross_compiling" >&6; }
3663
3664 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3665 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3666 if { (ac_try="$ac_link"
3667 case "(($ac_try" in
3668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3669 *) ac_try_echo=$ac_try;;
3670 esac
3671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3672 (eval "$ac_link") 2>&5
3673 ac_status=$?
3674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3675 (exit $ac_status); }; then
3676 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3677 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3678 # work properly (i.e., refer to `conftest.exe'), while it won't with
3679 # `rm'.
3680 for ac_file in conftest.exe conftest conftest.*; do
3681 test -f "$ac_file" || continue
3682 case $ac_file in
3683 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3684 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3685 break;;
3686 * ) break;;
3687 esac
3688 done
3689 else
3690 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3691 See \`config.log' for more details." >&5
3692 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3693 See \`config.log' for more details." >&2;}
3694 { (exit 1); exit 1; }; }
3695 fi
3696
3697 rm -f conftest$ac_cv_exeext
3698 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3699 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3700
3701 rm -f conftest.$ac_ext
3702 EXEEXT=$ac_cv_exeext
3703 ac_exeext=$EXEEXT
3704 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3705 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3706 if test "${ac_cv_objext+set}" = set; then
3707 echo $ECHO_N "(cached) $ECHO_C" >&6
3708 else
3709 cat >conftest.$ac_ext <<_ACEOF
3710 /* confdefs.h. */
3711 _ACEOF
3712 cat confdefs.h >>conftest.$ac_ext
3713 cat >>conftest.$ac_ext <<_ACEOF
3714 /* end confdefs.h. */
3715
3716 int
3717 main ()
3718 {
3719
3720 ;
3721 return 0;
3722 }
3723 _ACEOF
3724 rm -f conftest.o conftest.obj
3725 if { (ac_try="$ac_compile"
3726 case "(($ac_try" in
3727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3728 *) ac_try_echo=$ac_try;;
3729 esac
3730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3731 (eval "$ac_compile") 2>&5
3732 ac_status=$?
3733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3734 (exit $ac_status); }; then
3735 for ac_file in conftest.o conftest.obj conftest.*; do
3736 test -f "$ac_file" || continue;
3737 case $ac_file in
3738 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3739 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3740 break;;
3741 esac
3742 done
3743 else
3744 echo "$as_me: failed program was:" >&5
3745 sed 's/^/| /' conftest.$ac_ext >&5
3746
3747 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3748 See \`config.log' for more details." >&5
3749 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3750 See \`config.log' for more details." >&2;}
3751 { (exit 1); exit 1; }; }
3752 fi
3753
3754 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3755 fi
3756 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3757 echo "${ECHO_T}$ac_cv_objext" >&6; }
3758 OBJEXT=$ac_cv_objext
3759 ac_objext=$OBJEXT
3760 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3761 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3762 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3763 echo $ECHO_N "(cached) $ECHO_C" >&6
3764 else
3765 cat >conftest.$ac_ext <<_ACEOF
3766 /* confdefs.h. */
3767 _ACEOF
3768 cat confdefs.h >>conftest.$ac_ext
3769 cat >>conftest.$ac_ext <<_ACEOF
3770 /* end confdefs.h. */
3771
3772 int
3773 main ()
3774 {
3775 #ifndef __GNUC__
3776 choke me
3777 #endif
3778
3779 ;
3780 return 0;
3781 }
3782 _ACEOF
3783 rm -f conftest.$ac_objext
3784 if { (ac_try="$ac_compile"
3785 case "(($ac_try" in
3786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3787 *) ac_try_echo=$ac_try;;
3788 esac
3789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3790 (eval "$ac_compile") 2>conftest.er1
3791 ac_status=$?
3792 grep -v '^ *+' conftest.er1 >conftest.err
3793 rm -f conftest.er1
3794 cat conftest.err >&5
3795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3796 (exit $ac_status); } && {
3797 test -z "$ac_c_werror_flag" ||
3798 test ! -s conftest.err
3799 } && test -s conftest.$ac_objext; then
3800 ac_compiler_gnu=yes
3801 else
3802 echo "$as_me: failed program was:" >&5
3803 sed 's/^/| /' conftest.$ac_ext >&5
3804
3805 ac_compiler_gnu=no
3806 fi
3807
3808 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3809 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3810
3811 fi
3812 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3813 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3814 GCC=`test $ac_compiler_gnu = yes && echo yes`
3815 ac_test_CFLAGS=${CFLAGS+set}
3816 ac_save_CFLAGS=$CFLAGS
3817 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3818 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3819 if test "${ac_cv_prog_cc_g+set}" = set; then
3820 echo $ECHO_N "(cached) $ECHO_C" >&6
3821 else
3822 ac_save_c_werror_flag=$ac_c_werror_flag
3823 ac_c_werror_flag=yes
3824 ac_cv_prog_cc_g=no
3825 CFLAGS="-g"
3826 cat >conftest.$ac_ext <<_ACEOF
3827 /* confdefs.h. */
3828 _ACEOF
3829 cat confdefs.h >>conftest.$ac_ext
3830 cat >>conftest.$ac_ext <<_ACEOF
3831 /* end confdefs.h. */
3832
3833 int
3834 main ()
3835 {
3836
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 rm -f conftest.$ac_objext
3842 if { (ac_try="$ac_compile"
3843 case "(($ac_try" in
3844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3845 *) ac_try_echo=$ac_try;;
3846 esac
3847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3848 (eval "$ac_compile") 2>conftest.er1
3849 ac_status=$?
3850 grep -v '^ *+' conftest.er1 >conftest.err
3851 rm -f conftest.er1
3852 cat conftest.err >&5
3853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3854 (exit $ac_status); } && {
3855 test -z "$ac_c_werror_flag" ||
3856 test ! -s conftest.err
3857 } && test -s conftest.$ac_objext; then
3858 ac_cv_prog_cc_g=yes
3859 else
3860 echo "$as_me: failed program was:" >&5
3861 sed 's/^/| /' conftest.$ac_ext >&5
3862
3863 CFLAGS=""
3864 cat >conftest.$ac_ext <<_ACEOF
3865 /* confdefs.h. */
3866 _ACEOF
3867 cat confdefs.h >>conftest.$ac_ext
3868 cat >>conftest.$ac_ext <<_ACEOF
3869 /* end confdefs.h. */
3870
3871 int
3872 main ()
3873 {
3874
3875 ;
3876 return 0;
3877 }
3878 _ACEOF
3879 rm -f conftest.$ac_objext
3880 if { (ac_try="$ac_compile"
3881 case "(($ac_try" in
3882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3883 *) ac_try_echo=$ac_try;;
3884 esac
3885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3886 (eval "$ac_compile") 2>conftest.er1
3887 ac_status=$?
3888 grep -v '^ *+' conftest.er1 >conftest.err
3889 rm -f conftest.er1
3890 cat conftest.err >&5
3891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3892 (exit $ac_status); } && {
3893 test -z "$ac_c_werror_flag" ||
3894 test ! -s conftest.err
3895 } && test -s conftest.$ac_objext; then
3896 :
3897 else
3898 echo "$as_me: failed program was:" >&5
3899 sed 's/^/| /' conftest.$ac_ext >&5
3900
3901 ac_c_werror_flag=$ac_save_c_werror_flag
3902 CFLAGS="-g"
3903 cat >conftest.$ac_ext <<_ACEOF
3904 /* confdefs.h. */
3905 _ACEOF
3906 cat confdefs.h >>conftest.$ac_ext
3907 cat >>conftest.$ac_ext <<_ACEOF
3908 /* end confdefs.h. */
3909
3910 int
3911 main ()
3912 {
3913
3914 ;
3915 return 0;
3916 }
3917 _ACEOF
3918 rm -f conftest.$ac_objext
3919 if { (ac_try="$ac_compile"
3920 case "(($ac_try" in
3921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3922 *) ac_try_echo=$ac_try;;
3923 esac
3924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3925 (eval "$ac_compile") 2>conftest.er1
3926 ac_status=$?
3927 grep -v '^ *+' conftest.er1 >conftest.err
3928 rm -f conftest.er1
3929 cat conftest.err >&5
3930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3931 (exit $ac_status); } && {
3932 test -z "$ac_c_werror_flag" ||
3933 test ! -s conftest.err
3934 } && test -s conftest.$ac_objext; then
3935 ac_cv_prog_cc_g=yes
3936 else
3937 echo "$as_me: failed program was:" >&5
3938 sed 's/^/| /' conftest.$ac_ext >&5
3939
3940
3941 fi
3942
3943 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3944 fi
3945
3946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3947 fi
3948
3949 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3950 ac_c_werror_flag=$ac_save_c_werror_flag
3951 fi
3952 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3953 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3954 if test "$ac_test_CFLAGS" = set; then
3955 CFLAGS=$ac_save_CFLAGS
3956 elif test $ac_cv_prog_cc_g = yes; then
3957 if test "$GCC" = yes; then
3958 CFLAGS="-g -O2"
3959 else
3960 CFLAGS="-g"
3961 fi
3962 else
3963 if test "$GCC" = yes; then
3964 CFLAGS="-O2"
3965 else
3966 CFLAGS=
3967 fi
3968 fi
3969 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3970 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3971 if test "${ac_cv_prog_cc_c89+set}" = set; then
3972 echo $ECHO_N "(cached) $ECHO_C" >&6
3973 else
3974 ac_cv_prog_cc_c89=no
3975 ac_save_CC=$CC
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982 #include <stdarg.h>
3983 #include <stdio.h>
3984 #include <sys/types.h>
3985 #include <sys/stat.h>
3986 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3987 struct buf { int x; };
3988 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3989 static char *e (p, i)
3990 char **p;
3991 int i;
3992 {
3993 return p[i];
3994 }
3995 static char *f (char * (*g) (char **, int), char **p, ...)
3996 {
3997 char *s;
3998 va_list v;
3999 va_start (v,p);
4000 s = g (p, va_arg (v,int));
4001 va_end (v);
4002 return s;
4003 }
4004
4005 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4006 function prototypes and stuff, but not '\xHH' hex character constants.
4007 These don't provoke an error unfortunately, instead are silently treated
4008 as 'x'. The following induces an error, until -std is added to get
4009 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4010 array size at least. It's necessary to write '\x00'==0 to get something
4011 that's true only with -std. */
4012 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4013
4014 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4015 inside strings and character constants. */
4016 #define FOO(x) 'x'
4017 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4018
4019 int test (int i, double x);
4020 struct s1 {int (*f) (int a);};
4021 struct s2 {int (*f) (double a);};
4022 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4023 int argc;
4024 char **argv;
4025 int
4026 main ()
4027 {
4028 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4034 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4035 do
4036 CC="$ac_save_CC $ac_arg"
4037 rm -f conftest.$ac_objext
4038 if { (ac_try="$ac_compile"
4039 case "(($ac_try" in
4040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4041 *) ac_try_echo=$ac_try;;
4042 esac
4043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4044 (eval "$ac_compile") 2>conftest.er1
4045 ac_status=$?
4046 grep -v '^ *+' conftest.er1 >conftest.err
4047 rm -f conftest.er1
4048 cat conftest.err >&5
4049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4050 (exit $ac_status); } && {
4051 test -z "$ac_c_werror_flag" ||
4052 test ! -s conftest.err
4053 } && test -s conftest.$ac_objext; then
4054 ac_cv_prog_cc_c89=$ac_arg
4055 else
4056 echo "$as_me: failed program was:" >&5
4057 sed 's/^/| /' conftest.$ac_ext >&5
4058
4059
4060 fi
4061
4062 rm -f core conftest.err conftest.$ac_objext
4063 test "x$ac_cv_prog_cc_c89" != "xno" && break
4064 done
4065 rm -f conftest.$ac_ext
4066 CC=$ac_save_CC
4067
4068 fi
4069 # AC_CACHE_VAL
4070 case "x$ac_cv_prog_cc_c89" in
4071 x)
4072 { echo "$as_me:$LINENO: result: none needed" >&5
4073 echo "${ECHO_T}none needed" >&6; } ;;
4074 xno)
4075 { echo "$as_me:$LINENO: result: unsupported" >&5
4076 echo "${ECHO_T}unsupported" >&6; } ;;
4077 *)
4078 CC="$CC $ac_cv_prog_cc_c89"
4079 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4080 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4081 esac
4082
4083
4084 ac_ext=c
4085 ac_cpp='$CPP $CPPFLAGS'
4086 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4087 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4088 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4089
4090
4091 # On Suns, sometimes $CPP names a directory.
4092 if test -n "$CPP" && test -d "$CPP"; then
4093 CPP=
4094 fi
4095
4096 #### Some systems specify a CPP to use unless we are using GCC.
4097 #### Now that we know whether we are using GCC, we can decide whether
4098 #### to use that one.
4099 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4100 then
4101 CPP="$NON_GNU_CPP"
4102 fi
4103
4104 #### Some systems specify a CC to use unless we are using GCC.
4105 #### Now that we know whether we are using GCC, we can decide whether
4106 #### to use that one.
4107 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4108 test x$cc_specified != xyes
4109 then
4110 CC="$NON_GNU_CC"
4111 fi
4112
4113 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4114 then
4115 CC="$CC $GCC_TEST_OPTIONS"
4116 fi
4117
4118 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4119 then
4120 CC="$CC $NON_GCC_TEST_OPTIONS"
4121 fi
4122
4123
4124 ac_ext=c
4125 ac_cpp='$CPP $CPPFLAGS'
4126 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4127 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4128 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4129 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4130 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4131 # On Suns, sometimes $CPP names a directory.
4132 if test -n "$CPP" && test -d "$CPP"; then
4133 CPP=
4134 fi
4135 if test -z "$CPP"; then
4136 if test "${ac_cv_prog_CPP+set}" = set; then
4137 echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139 # Double quotes because CPP needs to be expanded
4140 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4141 do
4142 ac_preproc_ok=false
4143 for ac_c_preproc_warn_flag in '' yes
4144 do
4145 # Use a header file that comes with gcc, so configuring glibc
4146 # with a fresh cross-compiler works.
4147 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4148 # <limits.h> exists even on freestanding compilers.
4149 # On the NeXT, cc -E runs the code through the compiler's parser,
4150 # not just through cpp. "Syntax error" is here to catch this case.
4151 cat >conftest.$ac_ext <<_ACEOF
4152 /* confdefs.h. */
4153 _ACEOF
4154 cat confdefs.h >>conftest.$ac_ext
4155 cat >>conftest.$ac_ext <<_ACEOF
4156 /* end confdefs.h. */
4157 #ifdef __STDC__
4158 # include <limits.h>
4159 #else
4160 # include <assert.h>
4161 #endif
4162 Syntax error
4163 _ACEOF
4164 if { (ac_try="$ac_cpp conftest.$ac_ext"
4165 case "(($ac_try" in
4166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4167 *) ac_try_echo=$ac_try;;
4168 esac
4169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4170 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4171 ac_status=$?
4172 grep -v '^ *+' conftest.er1 >conftest.err
4173 rm -f conftest.er1
4174 cat conftest.err >&5
4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4176 (exit $ac_status); } >/dev/null && {
4177 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4178 test ! -s conftest.err
4179 }; then
4180 :
4181 else
4182 echo "$as_me: failed program was:" >&5
4183 sed 's/^/| /' conftest.$ac_ext >&5
4184
4185 # Broken: fails on valid input.
4186 continue
4187 fi
4188
4189 rm -f conftest.err conftest.$ac_ext
4190
4191 # OK, works on sane cases. Now check whether nonexistent headers
4192 # can be detected and how.
4193 cat >conftest.$ac_ext <<_ACEOF
4194 /* confdefs.h. */
4195 _ACEOF
4196 cat confdefs.h >>conftest.$ac_ext
4197 cat >>conftest.$ac_ext <<_ACEOF
4198 /* end confdefs.h. */
4199 #include <ac_nonexistent.h>
4200 _ACEOF
4201 if { (ac_try="$ac_cpp conftest.$ac_ext"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } >/dev/null && {
4214 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 }; then
4217 # Broken: success on invalid input.
4218 continue
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 # Passes both tests.
4224 ac_preproc_ok=:
4225 break
4226 fi
4227
4228 rm -f conftest.err conftest.$ac_ext
4229
4230 done
4231 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4232 rm -f conftest.err conftest.$ac_ext
4233 if $ac_preproc_ok; then
4234 break
4235 fi
4236
4237 done
4238 ac_cv_prog_CPP=$CPP
4239
4240 fi
4241 CPP=$ac_cv_prog_CPP
4242 else
4243 ac_cv_prog_CPP=$CPP
4244 fi
4245 { echo "$as_me:$LINENO: result: $CPP" >&5
4246 echo "${ECHO_T}$CPP" >&6; }
4247 ac_preproc_ok=false
4248 for ac_c_preproc_warn_flag in '' yes
4249 do
4250 # Use a header file that comes with gcc, so configuring glibc
4251 # with a fresh cross-compiler works.
4252 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4253 # <limits.h> exists even on freestanding compilers.
4254 # On the NeXT, cc -E runs the code through the compiler's parser,
4255 # not just through cpp. "Syntax error" is here to catch this case.
4256 cat >conftest.$ac_ext <<_ACEOF
4257 /* confdefs.h. */
4258 _ACEOF
4259 cat confdefs.h >>conftest.$ac_ext
4260 cat >>conftest.$ac_ext <<_ACEOF
4261 /* end confdefs.h. */
4262 #ifdef __STDC__
4263 # include <limits.h>
4264 #else
4265 # include <assert.h>
4266 #endif
4267 Syntax error
4268 _ACEOF
4269 if { (ac_try="$ac_cpp conftest.$ac_ext"
4270 case "(($ac_try" in
4271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4272 *) ac_try_echo=$ac_try;;
4273 esac
4274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4276 ac_status=$?
4277 grep -v '^ *+' conftest.er1 >conftest.err
4278 rm -f conftest.er1
4279 cat conftest.err >&5
4280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4281 (exit $ac_status); } >/dev/null && {
4282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4283 test ! -s conftest.err
4284 }; then
4285 :
4286 else
4287 echo "$as_me: failed program was:" >&5
4288 sed 's/^/| /' conftest.$ac_ext >&5
4289
4290 # Broken: fails on valid input.
4291 continue
4292 fi
4293
4294 rm -f conftest.err conftest.$ac_ext
4295
4296 # OK, works on sane cases. Now check whether nonexistent headers
4297 # can be detected and how.
4298 cat >conftest.$ac_ext <<_ACEOF
4299 /* confdefs.h. */
4300 _ACEOF
4301 cat confdefs.h >>conftest.$ac_ext
4302 cat >>conftest.$ac_ext <<_ACEOF
4303 /* end confdefs.h. */
4304 #include <ac_nonexistent.h>
4305 _ACEOF
4306 if { (ac_try="$ac_cpp conftest.$ac_ext"
4307 case "(($ac_try" in
4308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4309 *) ac_try_echo=$ac_try;;
4310 esac
4311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4312 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4313 ac_status=$?
4314 grep -v '^ *+' conftest.er1 >conftest.err
4315 rm -f conftest.er1
4316 cat conftest.err >&5
4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318 (exit $ac_status); } >/dev/null && {
4319 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4320 test ! -s conftest.err
4321 }; then
4322 # Broken: success on invalid input.
4323 continue
4324 else
4325 echo "$as_me: failed program was:" >&5
4326 sed 's/^/| /' conftest.$ac_ext >&5
4327
4328 # Passes both tests.
4329 ac_preproc_ok=:
4330 break
4331 fi
4332
4333 rm -f conftest.err conftest.$ac_ext
4334
4335 done
4336 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4337 rm -f conftest.err conftest.$ac_ext
4338 if $ac_preproc_ok; then
4339 :
4340 else
4341 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4342 See \`config.log' for more details." >&5
4343 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4344 See \`config.log' for more details." >&2;}
4345 { (exit 1); exit 1; }; }
4346 fi
4347
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4353
4354
4355 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4356 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4357 if test "${ac_cv_path_GREP+set}" = set; then
4358 echo $ECHO_N "(cached) $ECHO_C" >&6
4359 else
4360 # Extract the first word of "grep ggrep" to use in msg output
4361 if test -z "$GREP"; then
4362 set dummy grep ggrep; ac_prog_name=$2
4363 if test "${ac_cv_path_GREP+set}" = set; then
4364 echo $ECHO_N "(cached) $ECHO_C" >&6
4365 else
4366 ac_path_GREP_found=false
4367 # Loop through the user's path and test for each of PROGNAME-LIST
4368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4369 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4370 do
4371 IFS=$as_save_IFS
4372 test -z "$as_dir" && as_dir=.
4373 for ac_prog in grep ggrep; do
4374 for ac_exec_ext in '' $ac_executable_extensions; do
4375 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4376 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4377 # Check for GNU ac_path_GREP and select it if it is found.
4378 # Check for GNU $ac_path_GREP
4379 case `"$ac_path_GREP" --version 2>&1` in
4380 *GNU*)
4381 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4382 *)
4383 ac_count=0
4384 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4385 while :
4386 do
4387 cat "conftest.in" "conftest.in" >"conftest.tmp"
4388 mv "conftest.tmp" "conftest.in"
4389 cp "conftest.in" "conftest.nl"
4390 echo 'GREP' >> "conftest.nl"
4391 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4393 ac_count=`expr $ac_count + 1`
4394 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4395 # Best one so far, save it but keep looking for a better one
4396 ac_cv_path_GREP="$ac_path_GREP"
4397 ac_path_GREP_max=$ac_count
4398 fi
4399 # 10*(2^10) chars as input seems more than enough
4400 test $ac_count -gt 10 && break
4401 done
4402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4403 esac
4404
4405
4406 $ac_path_GREP_found && break 3
4407 done
4408 done
4409
4410 done
4411 IFS=$as_save_IFS
4412
4413
4414 fi
4415
4416 GREP="$ac_cv_path_GREP"
4417 if test -z "$GREP"; then
4418 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4419 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4420 { (exit 1); exit 1; }; }
4421 fi
4422
4423 else
4424 ac_cv_path_GREP=$GREP
4425 fi
4426
4427
4428 fi
4429 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4430 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4431 GREP="$ac_cv_path_GREP"
4432
4433
4434 { echo "$as_me:$LINENO: checking for egrep" >&5
4435 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4436 if test "${ac_cv_path_EGREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4440 then ac_cv_path_EGREP="$GREP -E"
4441 else
4442 # Extract the first word of "egrep" to use in msg output
4443 if test -z "$EGREP"; then
4444 set dummy egrep; ac_prog_name=$2
4445 if test "${ac_cv_path_EGREP+set}" = set; then
4446 echo $ECHO_N "(cached) $ECHO_C" >&6
4447 else
4448 ac_path_EGREP_found=false
4449 # Loop through the user's path and test for each of PROGNAME-LIST
4450 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4451 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4452 do
4453 IFS=$as_save_IFS
4454 test -z "$as_dir" && as_dir=.
4455 for ac_prog in egrep; do
4456 for ac_exec_ext in '' $ac_executable_extensions; do
4457 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4458 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4459 # Check for GNU ac_path_EGREP and select it if it is found.
4460 # Check for GNU $ac_path_EGREP
4461 case `"$ac_path_EGREP" --version 2>&1` in
4462 *GNU*)
4463 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4464 *)
4465 ac_count=0
4466 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4467 while :
4468 do
4469 cat "conftest.in" "conftest.in" >"conftest.tmp"
4470 mv "conftest.tmp" "conftest.in"
4471 cp "conftest.in" "conftest.nl"
4472 echo 'EGREP' >> "conftest.nl"
4473 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4474 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4475 ac_count=`expr $ac_count + 1`
4476 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4477 # Best one so far, save it but keep looking for a better one
4478 ac_cv_path_EGREP="$ac_path_EGREP"
4479 ac_path_EGREP_max=$ac_count
4480 fi
4481 # 10*(2^10) chars as input seems more than enough
4482 test $ac_count -gt 10 && break
4483 done
4484 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4485 esac
4486
4487
4488 $ac_path_EGREP_found && break 3
4489 done
4490 done
4491
4492 done
4493 IFS=$as_save_IFS
4494
4495
4496 fi
4497
4498 EGREP="$ac_cv_path_EGREP"
4499 if test -z "$EGREP"; then
4500 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4501 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4502 { (exit 1); exit 1; }; }
4503 fi
4504
4505 else
4506 ac_cv_path_EGREP=$EGREP
4507 fi
4508
4509
4510 fi
4511 fi
4512 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4513 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4514 EGREP="$ac_cv_path_EGREP"
4515
4516
4517
4518 { echo "$as_me:$LINENO: checking for AIX" >&5
4519 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4520 cat >conftest.$ac_ext <<_ACEOF
4521 /* confdefs.h. */
4522 _ACEOF
4523 cat confdefs.h >>conftest.$ac_ext
4524 cat >>conftest.$ac_ext <<_ACEOF
4525 /* end confdefs.h. */
4526 #ifdef _AIX
4527 yes
4528 #endif
4529
4530 _ACEOF
4531 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4532 $EGREP "yes" >/dev/null 2>&1; then
4533 { echo "$as_me:$LINENO: result: yes" >&5
4534 echo "${ECHO_T}yes" >&6; }
4535 cat >>confdefs.h <<\_ACEOF
4536 #define _ALL_SOURCE 1
4537 _ACEOF
4538
4539 else
4540 { echo "$as_me:$LINENO: result: no" >&5
4541 echo "${ECHO_T}no" >&6; }
4542 fi
4543 rm -f conftest*
4544
4545
4546
4547 cat >>confdefs.h <<\_ACEOF
4548 #define _GNU_SOURCE 1
4549 _ACEOF
4550
4551
4552
4553 ### Use -Wno-pointer-sign if the compiler supports it
4554 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4555 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4556 SAVE_CFLAGS="$CFLAGS"
4557 CFLAGS="$CFLAGS -Wno-pointer-sign"
4558 cat >conftest.$ac_ext <<_ACEOF
4559 /* confdefs.h. */
4560 _ACEOF
4561 cat confdefs.h >>conftest.$ac_ext
4562 cat >>conftest.$ac_ext <<_ACEOF
4563 /* end confdefs.h. */
4564
4565 int
4566 main ()
4567 {
4568
4569 ;
4570 return 0;
4571 }
4572 _ACEOF
4573 rm -f conftest.$ac_objext
4574 if { (ac_try="$ac_compile"
4575 case "(($ac_try" in
4576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4577 *) ac_try_echo=$ac_try;;
4578 esac
4579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4580 (eval "$ac_compile") 2>conftest.er1
4581 ac_status=$?
4582 grep -v '^ *+' conftest.er1 >conftest.err
4583 rm -f conftest.er1
4584 cat conftest.err >&5
4585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4586 (exit $ac_status); } && {
4587 test -z "$ac_c_werror_flag" ||
4588 test ! -s conftest.err
4589 } && test -s conftest.$ac_objext; then
4590 has_option=yes
4591 else
4592 echo "$as_me: failed program was:" >&5
4593 sed 's/^/| /' conftest.$ac_ext >&5
4594
4595 has_option=no
4596 fi
4597
4598 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4599 if test $has_option = yes; then
4600 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4601 fi
4602 { echo "$as_me:$LINENO: result: $has_option" >&5
4603 echo "${ECHO_T}$has_option" >&6; }
4604 CFLAGS="$SAVE_CFLAGS"
4605 unset has_option
4606 unset SAVE_CFLAGS
4607
4608 #### Some other nice autoconf tests.
4609
4610 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4611 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4612 LN_S=$as_ln_s
4613 if test "$LN_S" = "ln -s"; then
4614 { echo "$as_me:$LINENO: result: yes" >&5
4615 echo "${ECHO_T}yes" >&6; }
4616 else
4617 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4618 echo "${ECHO_T}no, using $LN_S" >&6; }
4619 fi
4620
4621 ac_ext=c
4622 ac_cpp='$CPP $CPPFLAGS'
4623 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4624 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4625 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4626 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4627 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4628 # On Suns, sometimes $CPP names a directory.
4629 if test -n "$CPP" && test -d "$CPP"; then
4630 CPP=
4631 fi
4632 if test -z "$CPP"; then
4633 if test "${ac_cv_prog_CPP+set}" = set; then
4634 echo $ECHO_N "(cached) $ECHO_C" >&6
4635 else
4636 # Double quotes because CPP needs to be expanded
4637 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4638 do
4639 ac_preproc_ok=false
4640 for ac_c_preproc_warn_flag in '' yes
4641 do
4642 # Use a header file that comes with gcc, so configuring glibc
4643 # with a fresh cross-compiler works.
4644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4645 # <limits.h> exists even on freestanding compilers.
4646 # On the NeXT, cc -E runs the code through the compiler's parser,
4647 # not just through cpp. "Syntax error" is here to catch this case.
4648 cat >conftest.$ac_ext <<_ACEOF
4649 /* confdefs.h. */
4650 _ACEOF
4651 cat confdefs.h >>conftest.$ac_ext
4652 cat >>conftest.$ac_ext <<_ACEOF
4653 /* end confdefs.h. */
4654 #ifdef __STDC__
4655 # include <limits.h>
4656 #else
4657 # include <assert.h>
4658 #endif
4659 Syntax error
4660 _ACEOF
4661 if { (ac_try="$ac_cpp conftest.$ac_ext"
4662 case "(($ac_try" in
4663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4664 *) ac_try_echo=$ac_try;;
4665 esac
4666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4667 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4668 ac_status=$?
4669 grep -v '^ *+' conftest.er1 >conftest.err
4670 rm -f conftest.er1
4671 cat conftest.err >&5
4672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4673 (exit $ac_status); } >/dev/null && {
4674 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4675 test ! -s conftest.err
4676 }; then
4677 :
4678 else
4679 echo "$as_me: failed program was:" >&5
4680 sed 's/^/| /' conftest.$ac_ext >&5
4681
4682 # Broken: fails on valid input.
4683 continue
4684 fi
4685
4686 rm -f conftest.err conftest.$ac_ext
4687
4688 # OK, works on sane cases. Now check whether nonexistent headers
4689 # can be detected and how.
4690 cat >conftest.$ac_ext <<_ACEOF
4691 /* confdefs.h. */
4692 _ACEOF
4693 cat confdefs.h >>conftest.$ac_ext
4694 cat >>conftest.$ac_ext <<_ACEOF
4695 /* end confdefs.h. */
4696 #include <ac_nonexistent.h>
4697 _ACEOF
4698 if { (ac_try="$ac_cpp conftest.$ac_ext"
4699 case "(($ac_try" in
4700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4701 *) ac_try_echo=$ac_try;;
4702 esac
4703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4704 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4705 ac_status=$?
4706 grep -v '^ *+' conftest.er1 >conftest.err
4707 rm -f conftest.er1
4708 cat conftest.err >&5
4709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4710 (exit $ac_status); } >/dev/null && {
4711 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4712 test ! -s conftest.err
4713 }; then
4714 # Broken: success on invalid input.
4715 continue
4716 else
4717 echo "$as_me: failed program was:" >&5
4718 sed 's/^/| /' conftest.$ac_ext >&5
4719
4720 # Passes both tests.
4721 ac_preproc_ok=:
4722 break
4723 fi
4724
4725 rm -f conftest.err conftest.$ac_ext
4726
4727 done
4728 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4729 rm -f conftest.err conftest.$ac_ext
4730 if $ac_preproc_ok; then
4731 break
4732 fi
4733
4734 done
4735 ac_cv_prog_CPP=$CPP
4736
4737 fi
4738 CPP=$ac_cv_prog_CPP
4739 else
4740 ac_cv_prog_CPP=$CPP
4741 fi
4742 { echo "$as_me:$LINENO: result: $CPP" >&5
4743 echo "${ECHO_T}$CPP" >&6; }
4744 ac_preproc_ok=false
4745 for ac_c_preproc_warn_flag in '' yes
4746 do
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat >conftest.$ac_ext <<_ACEOF
4754 /* confdefs.h. */
4755 _ACEOF
4756 cat confdefs.h >>conftest.$ac_ext
4757 cat >>conftest.$ac_ext <<_ACEOF
4758 /* end confdefs.h. */
4759 #ifdef __STDC__
4760 # include <limits.h>
4761 #else
4762 # include <assert.h>
4763 #endif
4764 Syntax error
4765 _ACEOF
4766 if { (ac_try="$ac_cpp conftest.$ac_ext"
4767 case "(($ac_try" in
4768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4769 *) ac_try_echo=$ac_try;;
4770 esac
4771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4772 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4773 ac_status=$?
4774 grep -v '^ *+' conftest.er1 >conftest.err
4775 rm -f conftest.er1
4776 cat conftest.err >&5
4777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778 (exit $ac_status); } >/dev/null && {
4779 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4780 test ! -s conftest.err
4781 }; then
4782 :
4783 else
4784 echo "$as_me: failed program was:" >&5
4785 sed 's/^/| /' conftest.$ac_ext >&5
4786
4787 # Broken: fails on valid input.
4788 continue
4789 fi
4790
4791 rm -f conftest.err conftest.$ac_ext
4792
4793 # OK, works on sane cases. Now check whether nonexistent headers
4794 # can be detected and how.
4795 cat >conftest.$ac_ext <<_ACEOF
4796 /* confdefs.h. */
4797 _ACEOF
4798 cat confdefs.h >>conftest.$ac_ext
4799 cat >>conftest.$ac_ext <<_ACEOF
4800 /* end confdefs.h. */
4801 #include <ac_nonexistent.h>
4802 _ACEOF
4803 if { (ac_try="$ac_cpp conftest.$ac_ext"
4804 case "(($ac_try" in
4805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4806 *) ac_try_echo=$ac_try;;
4807 esac
4808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4809 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4810 ac_status=$?
4811 grep -v '^ *+' conftest.er1 >conftest.err
4812 rm -f conftest.er1
4813 cat conftest.err >&5
4814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4815 (exit $ac_status); } >/dev/null && {
4816 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4817 test ! -s conftest.err
4818 }; then
4819 # Broken: success on invalid input.
4820 continue
4821 else
4822 echo "$as_me: failed program was:" >&5
4823 sed 's/^/| /' conftest.$ac_ext >&5
4824
4825 # Passes both tests.
4826 ac_preproc_ok=:
4827 break
4828 fi
4829
4830 rm -f conftest.err conftest.$ac_ext
4831
4832 done
4833 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4834 rm -f conftest.err conftest.$ac_ext
4835 if $ac_preproc_ok; then
4836 :
4837 else
4838 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4839 See \`config.log' for more details." >&5
4840 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4841 See \`config.log' for more details." >&2;}
4842 { (exit 1); exit 1; }; }
4843 fi
4844
4845 ac_ext=c
4846 ac_cpp='$CPP $CPPFLAGS'
4847 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4848 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4849 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4850
4851 # Find a good install program. We prefer a C program (faster),
4852 # so one script is as good as another. But avoid the broken or
4853 # incompatible versions:
4854 # SysV /etc/install, /usr/sbin/install
4855 # SunOS /usr/etc/install
4856 # IRIX /sbin/install
4857 # AIX /bin/install
4858 # AmigaOS /C/install, which installs bootblocks on floppy discs
4859 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4860 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4861 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4862 # OS/2's system install, which has a completely different semantic
4863 # ./install, which can be erroneously created by make from ./install.sh.
4864 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4865 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4866 if test -z "$INSTALL"; then
4867 if test "${ac_cv_path_install+set}" = set; then
4868 echo $ECHO_N "(cached) $ECHO_C" >&6
4869 else
4870 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4871 for as_dir in $PATH
4872 do
4873 IFS=$as_save_IFS
4874 test -z "$as_dir" && as_dir=.
4875 # Account for people who put trailing slashes in PATH elements.
4876 case $as_dir/ in
4877 ./ | .// | /cC/* | \
4878 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4879 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4880 /usr/ucb/* ) ;;
4881 *)
4882 # OSF1 and SCO ODT 3.0 have their own names for install.
4883 # Don't use installbsd from OSF since it installs stuff as root
4884 # by default.
4885 for ac_prog in ginstall scoinst install; do
4886 for ac_exec_ext in '' $ac_executable_extensions; do
4887 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4888 if test $ac_prog = install &&
4889 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4890 # AIX install. It has an incompatible calling convention.
4891 :
4892 elif test $ac_prog = install &&
4893 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4894 # program-specific install script used by HP pwplus--don't use.
4895 :
4896 else
4897 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4898 break 3
4899 fi
4900 fi
4901 done
4902 done
4903 ;;
4904 esac
4905 done
4906 IFS=$as_save_IFS
4907
4908
4909 fi
4910 if test "${ac_cv_path_install+set}" = set; then
4911 INSTALL=$ac_cv_path_install
4912 else
4913 # As a last resort, use the slow shell script. Don't cache a
4914 # value for INSTALL within a source directory, because that will
4915 # break other packages using the cache if that directory is
4916 # removed, or if the value is a relative name.
4917 INSTALL=$ac_install_sh
4918 fi
4919 fi
4920 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4921 echo "${ECHO_T}$INSTALL" >&6; }
4922
4923 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4924 # It thinks the first close brace ends the variable substitution.
4925 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4926
4927 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4928
4929 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4930
4931 if test "x$RANLIB" = x; then
4932 if test -n "$ac_tool_prefix"; then
4933 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4934 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4935 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4936 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4937 if test "${ac_cv_prog_RANLIB+set}" = set; then
4938 echo $ECHO_N "(cached) $ECHO_C" >&6
4939 else
4940 if test -n "$RANLIB"; then
4941 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 for ac_exec_ext in '' $ac_executable_extensions; do
4949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4950 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4951 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4952 break 2
4953 fi
4954 done
4955 done
4956 IFS=$as_save_IFS
4957
4958 fi
4959 fi
4960 RANLIB=$ac_cv_prog_RANLIB
4961 if test -n "$RANLIB"; then
4962 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4963 echo "${ECHO_T}$RANLIB" >&6; }
4964 else
4965 { echo "$as_me:$LINENO: result: no" >&5
4966 echo "${ECHO_T}no" >&6; }
4967 fi
4968
4969
4970 fi
4971 if test -z "$ac_cv_prog_RANLIB"; then
4972 ac_ct_RANLIB=$RANLIB
4973 # Extract the first word of "ranlib", so it can be a program name with args.
4974 set dummy ranlib; ac_word=$2
4975 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4976 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4977 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4978 echo $ECHO_N "(cached) $ECHO_C" >&6
4979 else
4980 if test -n "$ac_ct_RANLIB"; then
4981 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4982 else
4983 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4984 for as_dir in $PATH
4985 do
4986 IFS=$as_save_IFS
4987 test -z "$as_dir" && as_dir=.
4988 for ac_exec_ext in '' $ac_executable_extensions; do
4989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4990 ac_cv_prog_ac_ct_RANLIB="ranlib"
4991 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4992 break 2
4993 fi
4994 done
4995 done
4996 IFS=$as_save_IFS
4997
4998 fi
4999 fi
5000 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5001 if test -n "$ac_ct_RANLIB"; then
5002 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5003 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5004 else
5005 { echo "$as_me:$LINENO: result: no" >&5
5006 echo "${ECHO_T}no" >&6; }
5007 fi
5008
5009 if test "x$ac_ct_RANLIB" = x; then
5010 RANLIB=":"
5011 else
5012 case $cross_compiling:$ac_tool_warned in
5013 yes:)
5014 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5015 whose name does not start with the host triplet. If you think this
5016 configuration is useful to you, please write to autoconf@gnu.org." >&5
5017 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5018 whose name does not start with the host triplet. If you think this
5019 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5020 ac_tool_warned=yes ;;
5021 esac
5022 RANLIB=$ac_ct_RANLIB
5023 fi
5024 else
5025 RANLIB="$ac_cv_prog_RANLIB"
5026 fi
5027
5028 fi
5029 # Extract the first word of "install-info", so it can be a program name with args.
5030 set dummy install-info; ac_word=$2
5031 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5032 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5033 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5034 echo $ECHO_N "(cached) $ECHO_C" >&6
5035 else
5036 case $INSTALL_INFO in
5037 [\\/]* | ?:[\\/]*)
5038 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5039 ;;
5040 *)
5041 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5042 for as_dir in $PATH
5043 do
5044 IFS=$as_save_IFS
5045 test -z "$as_dir" && as_dir=.
5046 for ac_exec_ext in '' $ac_executable_extensions; do
5047 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5048 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5049 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5050 break 2
5051 fi
5052 done
5053 done
5054 IFS=$as_save_IFS
5055
5056 ;;
5057 esac
5058 fi
5059 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5060 if test -n "$INSTALL_INFO"; then
5061 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5062 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5063 else
5064 { echo "$as_me:$LINENO: result: no" >&5
5065 echo "${ECHO_T}no" >&6; }
5066 fi
5067
5068
5069 # Extract the first word of "install-info", so it can be a program name with args.
5070 set dummy install-info; ac_word=$2
5071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5073 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5074 echo $ECHO_N "(cached) $ECHO_C" >&6
5075 else
5076 case $INSTALL_INFO in
5077 [\\/]* | ?:[\\/]*)
5078 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5079 ;;
5080 *)
5081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5082 for as_dir in /usr/sbin
5083 do
5084 IFS=$as_save_IFS
5085 test -z "$as_dir" && as_dir=.
5086 for ac_exec_ext in '' $ac_executable_extensions; do
5087 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5088 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5089 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5090 break 2
5091 fi
5092 done
5093 done
5094 IFS=$as_save_IFS
5095
5096 ;;
5097 esac
5098 fi
5099 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5100 if test -n "$INSTALL_INFO"; then
5101 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5102 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5103 else
5104 { echo "$as_me:$LINENO: result: no" >&5
5105 echo "${ECHO_T}no" >&6; }
5106 fi
5107
5108
5109 # Extract the first word of "install-info", so it can be a program name with args.
5110 set dummy install-info; ac_word=$2
5111 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5112 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5113 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5114 echo $ECHO_N "(cached) $ECHO_C" >&6
5115 else
5116 case $INSTALL_INFO in
5117 [\\/]* | ?:[\\/]*)
5118 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5119 ;;
5120 *)
5121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5122 for as_dir in /sbin
5123 do
5124 IFS=$as_save_IFS
5125 test -z "$as_dir" && as_dir=.
5126 for ac_exec_ext in '' $ac_executable_extensions; do
5127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5128 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5129 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5130 break 2
5131 fi
5132 done
5133 done
5134 IFS=$as_save_IFS
5135
5136 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5137 ;;
5138 esac
5139 fi
5140 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5141 if test -n "$INSTALL_INFO"; then
5142 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5143 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5144 else
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150 # Extract the first word of "gzip", so it can be a program name with args.
5151 set dummy gzip; ac_word=$2
5152 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5153 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5154 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5155 echo $ECHO_N "(cached) $ECHO_C" >&6
5156 else
5157 case $GZIP_PROG in
5158 [\\/]* | ?:[\\/]*)
5159 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5160 ;;
5161 *)
5162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5163 for as_dir in $PATH
5164 do
5165 IFS=$as_save_IFS
5166 test -z "$as_dir" && as_dir=.
5167 for ac_exec_ext in '' $ac_executable_extensions; do
5168 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5169 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5170 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5171 break 2
5172 fi
5173 done
5174 done
5175 IFS=$as_save_IFS
5176
5177 ;;
5178 esac
5179 fi
5180 GZIP_PROG=$ac_cv_path_GZIP_PROG
5181 if test -n "$GZIP_PROG"; then
5182 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5183 echo "${ECHO_T}$GZIP_PROG" >&6; }
5184 else
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5187 fi
5188
5189
5190
5191
5192 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5193 then
5194 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5195 fi
5196
5197 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5198 then
5199 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5200 fi
5201
5202
5203 late_LDFLAGS=$LDFLAGS
5204 if test "$GCC" = yes; then
5205 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5206 else
5207 LDFLAGS="$LDFLAGS -znocombreloc"
5208 fi
5209
5210 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5211 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5212 cat >conftest.$ac_ext <<_ACEOF
5213 main(){return 0;}
5214 _ACEOF
5215 rm -f conftest.$ac_objext conftest$ac_exeext
5216 if { (ac_try="$ac_link"
5217 case "(($ac_try" in
5218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5219 *) ac_try_echo=$ac_try;;
5220 esac
5221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5222 (eval "$ac_link") 2>conftest.er1
5223 ac_status=$?
5224 grep -v '^ *+' conftest.er1 >conftest.err
5225 rm -f conftest.er1
5226 cat conftest.err >&5
5227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5228 (exit $ac_status); } && {
5229 test -z "$ac_c_werror_flag" ||
5230 test ! -s conftest.err
5231 } && test -s conftest$ac_exeext &&
5232 $as_test_x conftest$ac_exeext; then
5233 { echo "$as_me:$LINENO: result: yes" >&5
5234 echo "${ECHO_T}yes" >&6; }
5235 else
5236 echo "$as_me: failed program was:" >&5
5237 sed 's/^/| /' conftest.$ac_ext >&5
5238
5239 LDFLAGS=$late_LDFLAGS
5240 { echo "$as_me:$LINENO: result: no" >&5
5241 echo "${ECHO_T}no" >&6; }
5242 fi
5243
5244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5245 conftest$ac_exeext conftest.$ac_ext
5246
5247 #### Extract some information from the operating system and machine files.
5248
5249 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5250 - which libraries the lib-src programs will want, and
5251 - whether the GNU malloc routines are usable..." >&5
5252 echo "$as_me: checking the machine- and system-dependent files to find out
5253 - which libraries the lib-src programs will want, and
5254 - whether the GNU malloc routines are usable..." >&6;}
5255
5256 ### First figure out CFLAGS (which we use for running the compiler here)
5257 ### and REAL_CFLAGS (which we use for real compilation).
5258 ### The two are the same except on a few systems, where they are made
5259 ### different to work around various lossages. For example,
5260 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5261 ### as implying static linking.
5262
5263 ### If the CFLAGS env var is specified, we use that value
5264 ### instead of the default.
5265
5266 ### It's not important that this name contain the PID; you can't run
5267 ### two configures in the same directory and have anything work
5268 ### anyway.
5269 tempcname="conftest.c"
5270
5271 echo '
5272 #include "'${srcdir}'/src/'${opsysfile}'"
5273 #include "'${srcdir}'/src/'${machfile}'"
5274 #ifndef LIBS_MACHINE
5275 #define LIBS_MACHINE
5276 #endif
5277 #ifndef LIBS_SYSTEM
5278 #define LIBS_SYSTEM
5279 #endif
5280 #ifndef C_SWITCH_SYSTEM
5281 #define C_SWITCH_SYSTEM
5282 #endif
5283 #ifndef C_SWITCH_MACHINE
5284 #define C_SWITCH_MACHINE
5285 #endif
5286 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5287 configure___ c_switch_system=C_SWITCH_SYSTEM
5288 configure___ c_switch_machine=C_SWITCH_MACHINE
5289
5290 #ifndef LIB_X11_LIB
5291 #define LIB_X11_LIB -lX11
5292 #endif
5293
5294 #ifndef LIBX11_MACHINE
5295 #define LIBX11_MACHINE
5296 #endif
5297
5298 #ifndef LIBX11_SYSTEM
5299 #define LIBX11_SYSTEM
5300 #endif
5301 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5302
5303 #ifdef UNEXEC
5304 configure___ unexec=UNEXEC
5305 #else
5306 configure___ unexec=unexec.o
5307 #endif
5308
5309 #ifdef SYSTEM_MALLOC
5310 configure___ system_malloc=yes
5311 #else
5312 configure___ system_malloc=no
5313 #endif
5314
5315 #ifdef USE_MMAP_FOR_BUFFERS
5316 configure___ use_mmap_for_buffers=yes
5317 #else
5318 configure___ use_mmap_for_buffers=no
5319 #endif
5320
5321 #ifndef C_DEBUG_SWITCH
5322 #define C_DEBUG_SWITCH -g
5323 #endif
5324
5325 #ifndef C_OPTIMIZE_SWITCH
5326 #ifdef __GNUC__
5327 #define C_OPTIMIZE_SWITCH -O2
5328 #else
5329 #define C_OPTIMIZE_SWITCH -O
5330 #endif
5331 #endif
5332
5333 #ifndef C_WARNINGS_SWITCH
5334 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5335 #endif
5336
5337 #ifndef LD_SWITCH_MACHINE
5338 #define LD_SWITCH_MACHINE
5339 #endif
5340
5341 #ifndef LD_SWITCH_SYSTEM
5342 #define LD_SWITCH_SYSTEM
5343 #endif
5344
5345 #ifndef LD_SWITCH_X_SITE_AUX
5346 #define LD_SWITCH_X_SITE_AUX
5347 #endif
5348
5349 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5350 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5351
5352 #ifdef THIS_IS_CONFIGURE
5353
5354 /* Get the CFLAGS for tests in configure. */
5355 #ifdef __GNUC__
5356 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5357 #else
5358 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5359 #endif
5360
5361 #else /* not THIS_IS_CONFIGURE */
5362
5363 /* Get the CFLAGS for real compilation. */
5364 #ifdef __GNUC__
5365 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5366 #else
5367 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5368 #endif
5369
5370 #endif /* not THIS_IS_CONFIGURE */
5371 ' > ${tempcname}
5372
5373 # The value of CPP is a quoted variable reference, so we need to do this
5374 # to get its actual value...
5375 CPP=`eval "echo $CPP"`
5376 eval `${CPP} -Isrc ${tempcname} \
5377 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5378 if test "x$SPECIFIED_CFLAGS" = x; then
5379 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5380 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5381 else
5382 REAL_CFLAGS="$CFLAGS"
5383 fi
5384 rm ${tempcname}
5385
5386 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5387
5388 ### Make sure subsequent tests use flags consistent with the build flags.
5389
5390 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5391 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5392 else
5393 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5394 fi
5395
5396
5397
5398 # Check whether --enable-largefile was given.
5399 if test "${enable_largefile+set}" = set; then
5400 enableval=$enable_largefile;
5401 fi
5402
5403 if test "$enable_largefile" != no; then
5404
5405 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5406 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5407 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5408 echo $ECHO_N "(cached) $ECHO_C" >&6
5409 else
5410 ac_cv_sys_largefile_CC=no
5411 if test "$GCC" != yes; then
5412 ac_save_CC=$CC
5413 while :; do
5414 # IRIX 6.2 and later do not support large files by default,
5415 # so use the C compiler's -n32 option if that helps.
5416 cat >conftest.$ac_ext <<_ACEOF
5417 /* confdefs.h. */
5418 _ACEOF
5419 cat confdefs.h >>conftest.$ac_ext
5420 cat >>conftest.$ac_ext <<_ACEOF
5421 /* end confdefs.h. */
5422 #include <sys/types.h>
5423 /* Check that off_t can represent 2**63 - 1 correctly.
5424 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5425 since some C++ compilers masquerading as C compilers
5426 incorrectly reject 9223372036854775807. */
5427 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5428 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5429 && LARGE_OFF_T % 2147483647 == 1)
5430 ? 1 : -1];
5431 int
5432 main ()
5433 {
5434
5435 ;
5436 return 0;
5437 }
5438 _ACEOF
5439 rm -f conftest.$ac_objext
5440 if { (ac_try="$ac_compile"
5441 case "(($ac_try" in
5442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5443 *) ac_try_echo=$ac_try;;
5444 esac
5445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5446 (eval "$ac_compile") 2>conftest.er1
5447 ac_status=$?
5448 grep -v '^ *+' conftest.er1 >conftest.err
5449 rm -f conftest.er1
5450 cat conftest.err >&5
5451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5452 (exit $ac_status); } && {
5453 test -z "$ac_c_werror_flag" ||
5454 test ! -s conftest.err
5455 } && test -s conftest.$ac_objext; then
5456 break
5457 else
5458 echo "$as_me: failed program was:" >&5
5459 sed 's/^/| /' conftest.$ac_ext >&5
5460
5461
5462 fi
5463
5464 rm -f core conftest.err conftest.$ac_objext
5465 CC="$CC -n32"
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } && {
5480 test -z "$ac_c_werror_flag" ||
5481 test ! -s conftest.err
5482 } && test -s conftest.$ac_objext; then
5483 ac_cv_sys_largefile_CC=' -n32'; break
5484 else
5485 echo "$as_me: failed program was:" >&5
5486 sed 's/^/| /' conftest.$ac_ext >&5
5487
5488
5489 fi
5490
5491 rm -f core conftest.err conftest.$ac_objext
5492 break
5493 done
5494 CC=$ac_save_CC
5495 rm -f conftest.$ac_ext
5496 fi
5497 fi
5498 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5499 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5500 if test "$ac_cv_sys_largefile_CC" != no; then
5501 CC=$CC$ac_cv_sys_largefile_CC
5502 fi
5503
5504 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5505 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5506 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5507 echo $ECHO_N "(cached) $ECHO_C" >&6
5508 else
5509 while :; do
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5524 ? 1 : -1];
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 ac_cv_sys_file_offset_bits=no; break
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5559 cat >conftest.$ac_ext <<_ACEOF
5560 /* confdefs.h. */
5561 _ACEOF
5562 cat confdefs.h >>conftest.$ac_ext
5563 cat >>conftest.$ac_ext <<_ACEOF
5564 /* end confdefs.h. */
5565 #define _FILE_OFFSET_BITS 64
5566 #include <sys/types.h>
5567 /* Check that off_t can represent 2**63 - 1 correctly.
5568 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5569 since some C++ compilers masquerading as C compilers
5570 incorrectly reject 9223372036854775807. */
5571 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5572 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5573 && LARGE_OFF_T % 2147483647 == 1)
5574 ? 1 : -1];
5575 int
5576 main ()
5577 {
5578
5579 ;
5580 return 0;
5581 }
5582 _ACEOF
5583 rm -f conftest.$ac_objext
5584 if { (ac_try="$ac_compile"
5585 case "(($ac_try" in
5586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5587 *) ac_try_echo=$ac_try;;
5588 esac
5589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5590 (eval "$ac_compile") 2>conftest.er1
5591 ac_status=$?
5592 grep -v '^ *+' conftest.er1 >conftest.err
5593 rm -f conftest.er1
5594 cat conftest.err >&5
5595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5596 (exit $ac_status); } && {
5597 test -z "$ac_c_werror_flag" ||
5598 test ! -s conftest.err
5599 } && test -s conftest.$ac_objext; then
5600 ac_cv_sys_file_offset_bits=64; break
5601 else
5602 echo "$as_me: failed program was:" >&5
5603 sed 's/^/| /' conftest.$ac_ext >&5
5604
5605
5606 fi
5607
5608 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5609 ac_cv_sys_file_offset_bits=unknown
5610 break
5611 done
5612 fi
5613 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5614 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5615 case $ac_cv_sys_file_offset_bits in #(
5616 no | unknown) ;;
5617 *)
5618 cat >>confdefs.h <<_ACEOF
5619 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5620 _ACEOF
5621 ;;
5622 esac
5623 rm -f conftest*
5624 if test $ac_cv_sys_file_offset_bits = unknown; then
5625 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5626 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5627 if test "${ac_cv_sys_large_files+set}" = set; then
5628 echo $ECHO_N "(cached) $ECHO_C" >&6
5629 else
5630 while :; do
5631 cat >conftest.$ac_ext <<_ACEOF
5632 /* confdefs.h. */
5633 _ACEOF
5634 cat confdefs.h >>conftest.$ac_ext
5635 cat >>conftest.$ac_ext <<_ACEOF
5636 /* end confdefs.h. */
5637 #include <sys/types.h>
5638 /* Check that off_t can represent 2**63 - 1 correctly.
5639 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5640 since some C++ compilers masquerading as C compilers
5641 incorrectly reject 9223372036854775807. */
5642 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5643 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5644 && LARGE_OFF_T % 2147483647 == 1)
5645 ? 1 : -1];
5646 int
5647 main ()
5648 {
5649
5650 ;
5651 return 0;
5652 }
5653 _ACEOF
5654 rm -f conftest.$ac_objext
5655 if { (ac_try="$ac_compile"
5656 case "(($ac_try" in
5657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5658 *) ac_try_echo=$ac_try;;
5659 esac
5660 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5661 (eval "$ac_compile") 2>conftest.er1
5662 ac_status=$?
5663 grep -v '^ *+' conftest.er1 >conftest.err
5664 rm -f conftest.er1
5665 cat conftest.err >&5
5666 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5667 (exit $ac_status); } && {
5668 test -z "$ac_c_werror_flag" ||
5669 test ! -s conftest.err
5670 } && test -s conftest.$ac_objext; then
5671 ac_cv_sys_large_files=no; break
5672 else
5673 echo "$as_me: failed program was:" >&5
5674 sed 's/^/| /' conftest.$ac_ext >&5
5675
5676
5677 fi
5678
5679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5680 cat >conftest.$ac_ext <<_ACEOF
5681 /* confdefs.h. */
5682 _ACEOF
5683 cat confdefs.h >>conftest.$ac_ext
5684 cat >>conftest.$ac_ext <<_ACEOF
5685 /* end confdefs.h. */
5686 #define _LARGE_FILES 1
5687 #include <sys/types.h>
5688 /* Check that off_t can represent 2**63 - 1 correctly.
5689 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5690 since some C++ compilers masquerading as C compilers
5691 incorrectly reject 9223372036854775807. */
5692 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5693 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5694 && LARGE_OFF_T % 2147483647 == 1)
5695 ? 1 : -1];
5696 int
5697 main ()
5698 {
5699
5700 ;
5701 return 0;
5702 }
5703 _ACEOF
5704 rm -f conftest.$ac_objext
5705 if { (ac_try="$ac_compile"
5706 case "(($ac_try" in
5707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5708 *) ac_try_echo=$ac_try;;
5709 esac
5710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5711 (eval "$ac_compile") 2>conftest.er1
5712 ac_status=$?
5713 grep -v '^ *+' conftest.er1 >conftest.err
5714 rm -f conftest.er1
5715 cat conftest.err >&5
5716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5717 (exit $ac_status); } && {
5718 test -z "$ac_c_werror_flag" ||
5719 test ! -s conftest.err
5720 } && test -s conftest.$ac_objext; then
5721 ac_cv_sys_large_files=1; break
5722 else
5723 echo "$as_me: failed program was:" >&5
5724 sed 's/^/| /' conftest.$ac_ext >&5
5725
5726
5727 fi
5728
5729 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5730 ac_cv_sys_large_files=unknown
5731 break
5732 done
5733 fi
5734 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5735 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5736 case $ac_cv_sys_large_files in #(
5737 no | unknown) ;;
5738 *)
5739 cat >>confdefs.h <<_ACEOF
5740 #define _LARGE_FILES $ac_cv_sys_large_files
5741 _ACEOF
5742 ;;
5743 esac
5744 rm -f conftest*
5745 fi
5746 fi
5747
5748
5749
5750 ### The standard library on x86-64 GNU/Linux distributions can
5751 ### be located in either /usr/lib64 or /usr/lib.
5752 case "${canonical}" in
5753 x86_64-*-linux-gnu* )
5754 if test -d /usr/lib64; then
5755
5756 cat >>confdefs.h <<\_ACEOF
5757 #define HAVE_X86_64_LIB64_DIR 1
5758 _ACEOF
5759
5760 fi
5761 esac
5762
5763
5764
5765
5766 if test "${with_sound}" != "no"; then
5767 # Sound support for GNU/Linux and the free BSDs.
5768 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5769 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5770 if test "${ac_cv_header_stdc+set}" = set; then
5771 echo $ECHO_N "(cached) $ECHO_C" >&6
5772 else
5773 cat >conftest.$ac_ext <<_ACEOF
5774 /* confdefs.h. */
5775 _ACEOF
5776 cat confdefs.h >>conftest.$ac_ext
5777 cat >>conftest.$ac_ext <<_ACEOF
5778 /* end confdefs.h. */
5779 #include <stdlib.h>
5780 #include <stdarg.h>
5781 #include <string.h>
5782 #include <float.h>
5783
5784 int
5785 main ()
5786 {
5787
5788 ;
5789 return 0;
5790 }
5791 _ACEOF
5792 rm -f conftest.$ac_objext
5793 if { (ac_try="$ac_compile"
5794 case "(($ac_try" in
5795 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5796 *) ac_try_echo=$ac_try;;
5797 esac
5798 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5799 (eval "$ac_compile") 2>conftest.er1
5800 ac_status=$?
5801 grep -v '^ *+' conftest.er1 >conftest.err
5802 rm -f conftest.er1
5803 cat conftest.err >&5
5804 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805 (exit $ac_status); } && {
5806 test -z "$ac_c_werror_flag" ||
5807 test ! -s conftest.err
5808 } && test -s conftest.$ac_objext; then
5809 ac_cv_header_stdc=yes
5810 else
5811 echo "$as_me: failed program was:" >&5
5812 sed 's/^/| /' conftest.$ac_ext >&5
5813
5814 ac_cv_header_stdc=no
5815 fi
5816
5817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5818
5819 if test $ac_cv_header_stdc = yes; then
5820 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #include <string.h>
5828
5829 _ACEOF
5830 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5831 $EGREP "memchr" >/dev/null 2>&1; then
5832 :
5833 else
5834 ac_cv_header_stdc=no
5835 fi
5836 rm -f conftest*
5837
5838 fi
5839
5840 if test $ac_cv_header_stdc = yes; then
5841 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5842 cat >conftest.$ac_ext <<_ACEOF
5843 /* confdefs.h. */
5844 _ACEOF
5845 cat confdefs.h >>conftest.$ac_ext
5846 cat >>conftest.$ac_ext <<_ACEOF
5847 /* end confdefs.h. */
5848 #include <stdlib.h>
5849
5850 _ACEOF
5851 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5852 $EGREP "free" >/dev/null 2>&1; then
5853 :
5854 else
5855 ac_cv_header_stdc=no
5856 fi
5857 rm -f conftest*
5858
5859 fi
5860
5861 if test $ac_cv_header_stdc = yes; then
5862 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5863 if test "$cross_compiling" = yes; then
5864 :
5865 else
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <ctype.h>
5873 #include <stdlib.h>
5874 #if ((' ' & 0x0FF) == 0x020)
5875 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5876 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5877 #else
5878 # define ISLOWER(c) \
5879 (('a' <= (c) && (c) <= 'i') \
5880 || ('j' <= (c) && (c) <= 'r') \
5881 || ('s' <= (c) && (c) <= 'z'))
5882 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5883 #endif
5884
5885 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5886 int
5887 main ()
5888 {
5889 int i;
5890 for (i = 0; i < 256; i++)
5891 if (XOR (islower (i), ISLOWER (i))
5892 || toupper (i) != TOUPPER (i))
5893 return 2;
5894 return 0;
5895 }
5896 _ACEOF
5897 rm -f conftest$ac_exeext
5898 if { (ac_try="$ac_link"
5899 case "(($ac_try" in
5900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5901 *) ac_try_echo=$ac_try;;
5902 esac
5903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5904 (eval "$ac_link") 2>&5
5905 ac_status=$?
5906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5907 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5908 { (case "(($ac_try" in
5909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5910 *) ac_try_echo=$ac_try;;
5911 esac
5912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5913 (eval "$ac_try") 2>&5
5914 ac_status=$?
5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5916 (exit $ac_status); }; }; then
5917 :
5918 else
5919 echo "$as_me: program exited with status $ac_status" >&5
5920 echo "$as_me: failed program was:" >&5
5921 sed 's/^/| /' conftest.$ac_ext >&5
5922
5923 ( exit $ac_status )
5924 ac_cv_header_stdc=no
5925 fi
5926 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5927 fi
5928
5929
5930 fi
5931 fi
5932 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5933 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5934 if test $ac_cv_header_stdc = yes; then
5935
5936 cat >>confdefs.h <<\_ACEOF
5937 #define STDC_HEADERS 1
5938 _ACEOF
5939
5940 fi
5941
5942 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5943
5944
5945
5946
5947
5948
5949
5950
5951
5952 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5953 inttypes.h stdint.h unistd.h
5954 do
5955 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5956 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5957 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5958 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5959 echo $ECHO_N "(cached) $ECHO_C" >&6
5960 else
5961 cat >conftest.$ac_ext <<_ACEOF
5962 /* confdefs.h. */
5963 _ACEOF
5964 cat confdefs.h >>conftest.$ac_ext
5965 cat >>conftest.$ac_ext <<_ACEOF
5966 /* end confdefs.h. */
5967 $ac_includes_default
5968
5969 #include <$ac_header>
5970 _ACEOF
5971 rm -f conftest.$ac_objext
5972 if { (ac_try="$ac_compile"
5973 case "(($ac_try" in
5974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5975 *) ac_try_echo=$ac_try;;
5976 esac
5977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5978 (eval "$ac_compile") 2>conftest.er1
5979 ac_status=$?
5980 grep -v '^ *+' conftest.er1 >conftest.err
5981 rm -f conftest.er1
5982 cat conftest.err >&5
5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5984 (exit $ac_status); } && {
5985 test -z "$ac_c_werror_flag" ||
5986 test ! -s conftest.err
5987 } && test -s conftest.$ac_objext; then
5988 eval "$as_ac_Header=yes"
5989 else
5990 echo "$as_me: failed program was:" >&5
5991 sed 's/^/| /' conftest.$ac_ext >&5
5992
5993 eval "$as_ac_Header=no"
5994 fi
5995
5996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5997 fi
5998 ac_res=`eval echo '${'$as_ac_Header'}'`
5999 { echo "$as_me:$LINENO: result: $ac_res" >&5
6000 echo "${ECHO_T}$ac_res" >&6; }
6001 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6002 cat >>confdefs.h <<_ACEOF
6003 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6004 _ACEOF
6005
6006 fi
6007
6008 done
6009
6010
6011
6012
6013
6014 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6015 do
6016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6018 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6021 echo $ECHO_N "(cached) $ECHO_C" >&6
6022 fi
6023 ac_res=`eval echo '${'$as_ac_Header'}'`
6024 { echo "$as_me:$LINENO: result: $ac_res" >&5
6025 echo "${ECHO_T}$ac_res" >&6; }
6026 else
6027 # Is the header compilable?
6028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6030 cat >conftest.$ac_ext <<_ACEOF
6031 /* confdefs.h. */
6032 _ACEOF
6033 cat confdefs.h >>conftest.$ac_ext
6034 cat >>conftest.$ac_ext <<_ACEOF
6035 /* end confdefs.h. */
6036 $ac_includes_default
6037 #include <$ac_header>
6038 _ACEOF
6039 rm -f conftest.$ac_objext
6040 if { (ac_try="$ac_compile"
6041 case "(($ac_try" in
6042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043 *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046 (eval "$ac_compile") 2>conftest.er1
6047 ac_status=$?
6048 grep -v '^ *+' conftest.er1 >conftest.err
6049 rm -f conftest.er1
6050 cat conftest.err >&5
6051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6052 (exit $ac_status); } && {
6053 test -z "$ac_c_werror_flag" ||
6054 test ! -s conftest.err
6055 } && test -s conftest.$ac_objext; then
6056 ac_header_compiler=yes
6057 else
6058 echo "$as_me: failed program was:" >&5
6059 sed 's/^/| /' conftest.$ac_ext >&5
6060
6061 ac_header_compiler=no
6062 fi
6063
6064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6065 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6066 echo "${ECHO_T}$ac_header_compiler" >&6; }
6067
6068 # Is the header present?
6069 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6070 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6071 cat >conftest.$ac_ext <<_ACEOF
6072 /* confdefs.h. */
6073 _ACEOF
6074 cat confdefs.h >>conftest.$ac_ext
6075 cat >>conftest.$ac_ext <<_ACEOF
6076 /* end confdefs.h. */
6077 #include <$ac_header>
6078 _ACEOF
6079 if { (ac_try="$ac_cpp conftest.$ac_ext"
6080 case "(($ac_try" in
6081 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6082 *) ac_try_echo=$ac_try;;
6083 esac
6084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6085 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6086 ac_status=$?
6087 grep -v '^ *+' conftest.er1 >conftest.err
6088 rm -f conftest.er1
6089 cat conftest.err >&5
6090 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6091 (exit $ac_status); } >/dev/null && {
6092 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6093 test ! -s conftest.err
6094 }; then
6095 ac_header_preproc=yes
6096 else
6097 echo "$as_me: failed program was:" >&5
6098 sed 's/^/| /' conftest.$ac_ext >&5
6099
6100 ac_header_preproc=no
6101 fi
6102
6103 rm -f conftest.err conftest.$ac_ext
6104 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6105 echo "${ECHO_T}$ac_header_preproc" >&6; }
6106
6107 # So? What about this header?
6108 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6109 yes:no: )
6110 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6111 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6112 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6113 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6114 ac_header_preproc=yes
6115 ;;
6116 no:yes:* )
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6118 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6119 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6120 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6121 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6122 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6123 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6124 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6126 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6127 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6128 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6129
6130 ;;
6131 esac
6132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6135 echo $ECHO_N "(cached) $ECHO_C" >&6
6136 else
6137 eval "$as_ac_Header=\$ac_header_preproc"
6138 fi
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6142
6143 fi
6144 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6145 cat >>confdefs.h <<_ACEOF
6146 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6147 _ACEOF
6148
6149 fi
6150
6151 done
6152
6153 # Emulation library used on NetBSD.
6154 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6155 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6156 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6157 echo $ECHO_N "(cached) $ECHO_C" >&6
6158 else
6159 ac_check_lib_save_LIBS=$LIBS
6160 LIBS="-lossaudio $LIBS"
6161 cat >conftest.$ac_ext <<_ACEOF
6162 /* confdefs.h. */
6163 _ACEOF
6164 cat confdefs.h >>conftest.$ac_ext
6165 cat >>conftest.$ac_ext <<_ACEOF
6166 /* end confdefs.h. */
6167
6168 /* Override any GCC internal prototype to avoid an error.
6169 Use char because int might match the return type of a GCC
6170 builtin and then its argument prototype would still apply. */
6171 #ifdef __cplusplus
6172 extern "C"
6173 #endif
6174 char _oss_ioctl ();
6175 int
6176 main ()
6177 {
6178 return _oss_ioctl ();
6179 ;
6180 return 0;
6181 }
6182 _ACEOF
6183 rm -f conftest.$ac_objext conftest$ac_exeext
6184 if { (ac_try="$ac_link"
6185 case "(($ac_try" in
6186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6187 *) ac_try_echo=$ac_try;;
6188 esac
6189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6190 (eval "$ac_link") 2>conftest.er1
6191 ac_status=$?
6192 grep -v '^ *+' conftest.er1 >conftest.err
6193 rm -f conftest.er1
6194 cat conftest.err >&5
6195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6196 (exit $ac_status); } && {
6197 test -z "$ac_c_werror_flag" ||
6198 test ! -s conftest.err
6199 } && test -s conftest$ac_exeext &&
6200 $as_test_x conftest$ac_exeext; then
6201 ac_cv_lib_ossaudio__oss_ioctl=yes
6202 else
6203 echo "$as_me: failed program was:" >&5
6204 sed 's/^/| /' conftest.$ac_ext >&5
6205
6206 ac_cv_lib_ossaudio__oss_ioctl=no
6207 fi
6208
6209 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6210 conftest$ac_exeext conftest.$ac_ext
6211 LIBS=$ac_check_lib_save_LIBS
6212 fi
6213 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6214 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6215 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6216 LIBSOUND=-lossaudio
6217 else
6218 LIBSOUND=
6219 fi
6220
6221
6222
6223 ALSA_REQUIRED=1.0.0
6224 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6225 if test "X${with_pkg_config_prog}" != X; then
6226 PKG_CONFIG="${with_pkg_config_prog}"
6227 fi
6228
6229 succeeded=no
6230
6231 if test -z "$PKG_CONFIG"; then
6232 # Extract the first word of "pkg-config", so it can be a program name with args.
6233 set dummy pkg-config; ac_word=$2
6234 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6235 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6236 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6237 echo $ECHO_N "(cached) $ECHO_C" >&6
6238 else
6239 case $PKG_CONFIG in
6240 [\\/]* | ?:[\\/]*)
6241 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6242 ;;
6243 *)
6244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6245 for as_dir in $PATH
6246 do
6247 IFS=$as_save_IFS
6248 test -z "$as_dir" && as_dir=.
6249 for ac_exec_ext in '' $ac_executable_extensions; do
6250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6251 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6253 break 2
6254 fi
6255 done
6256 done
6257 IFS=$as_save_IFS
6258
6259 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6260 ;;
6261 esac
6262 fi
6263 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6264 if test -n "$PKG_CONFIG"; then
6265 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6266 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6267 else
6268 { echo "$as_me:$LINENO: result: no" >&5
6269 echo "${ECHO_T}no" >&6; }
6270 fi
6271
6272
6273 fi
6274
6275 if test "$PKG_CONFIG" = "no" ; then
6276 HAVE_ALSA=no
6277 else
6278 PKG_CONFIG_MIN_VERSION=0.9.0
6279 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6280 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6281 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6282
6283 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6284 { echo "$as_me:$LINENO: result: yes" >&5
6285 echo "${ECHO_T}yes" >&6; }
6286 succeeded=yes
6287
6288 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6289 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6290 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6291 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6292 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6293
6294 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6295 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6296 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6297 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6298 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6299 else
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 ALSA_CFLAGS=""
6303 ALSA_LIBS=""
6304 ## If we have a custom action on failure, don't print errors, but
6305 ## do set a variable so people can do so.
6306 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6307
6308 fi
6309
6310
6311
6312 else
6313 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6314 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6315 fi
6316 fi
6317
6318 if test $succeeded = yes; then
6319 HAVE_ALSA=yes
6320 else
6321 HAVE_ALSA=no
6322 fi
6323
6324 if test $HAVE_ALSA = yes; then
6325 SAVE_CFLAGS="$CFLAGS"
6326 SAVE_LDFLAGS="$LDFLAGS"
6327 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6328 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6329 cat >conftest.$ac_ext <<_ACEOF
6330 /* confdefs.h. */
6331 _ACEOF
6332 cat confdefs.h >>conftest.$ac_ext
6333 cat >>conftest.$ac_ext <<_ACEOF
6334 /* end confdefs.h. */
6335 #include <asoundlib.h>
6336 int
6337 main ()
6338 {
6339 snd_lib_error_set_handler (0);
6340 ;
6341 return 0;
6342 }
6343 _ACEOF
6344 rm -f conftest.$ac_objext
6345 if { (ac_try="$ac_compile"
6346 case "(($ac_try" in
6347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6348 *) ac_try_echo=$ac_try;;
6349 esac
6350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6351 (eval "$ac_compile") 2>conftest.er1
6352 ac_status=$?
6353 grep -v '^ *+' conftest.er1 >conftest.err
6354 rm -f conftest.er1
6355 cat conftest.err >&5
6356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6357 (exit $ac_status); } && {
6358 test -z "$ac_c_werror_flag" ||
6359 test ! -s conftest.err
6360 } && test -s conftest.$ac_objext; then
6361 emacs_alsa_normal=yes
6362 else
6363 echo "$as_me: failed program was:" >&5
6364 sed 's/^/| /' conftest.$ac_ext >&5
6365
6366 emacs_alsa_normal=no
6367 fi
6368
6369 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6370 if test "$emacs_alsa_normal" != yes; then
6371 cat >conftest.$ac_ext <<_ACEOF
6372 /* confdefs.h. */
6373 _ACEOF
6374 cat confdefs.h >>conftest.$ac_ext
6375 cat >>conftest.$ac_ext <<_ACEOF
6376 /* end confdefs.h. */
6377 #include <alsa/asoundlib.h>
6378 int
6379 main ()
6380 {
6381 snd_lib_error_set_handler (0);
6382 ;
6383 return 0;
6384 }
6385 _ACEOF
6386 rm -f conftest.$ac_objext
6387 if { (ac_try="$ac_compile"
6388 case "(($ac_try" in
6389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6390 *) ac_try_echo=$ac_try;;
6391 esac
6392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6393 (eval "$ac_compile") 2>conftest.er1
6394 ac_status=$?
6395 grep -v '^ *+' conftest.er1 >conftest.err
6396 rm -f conftest.er1
6397 cat conftest.err >&5
6398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6399 (exit $ac_status); } && {
6400 test -z "$ac_c_werror_flag" ||
6401 test ! -s conftest.err
6402 } && test -s conftest.$ac_objext; then
6403 emacs_alsa_subdir=yes
6404 else
6405 echo "$as_me: failed program was:" >&5
6406 sed 's/^/| /' conftest.$ac_ext >&5
6407
6408 emacs_alsa_subdir=no
6409 fi
6410
6411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6412 if test "$emacs_alsa_subdir" != yes; then
6413 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6414 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6415 { (exit 1); exit 1; }; }
6416 fi
6417 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6418 fi
6419
6420 CFLAGS="$SAVE_CFLAGS"
6421 LDFLAGS="$SAVE_LDFLAGS"
6422 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6423 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6424
6425 cat >>confdefs.h <<\_ACEOF
6426 #define HAVE_ALSA 1
6427 _ACEOF
6428
6429
6430 fi
6431
6432 fi
6433
6434
6435
6436
6437
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6460 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6461 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6462 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6463 sys/utsname.h pwd.h
6464 do
6465 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6466 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6467 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6468 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6469 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6470 echo $ECHO_N "(cached) $ECHO_C" >&6
6471 fi
6472 ac_res=`eval echo '${'$as_ac_Header'}'`
6473 { echo "$as_me:$LINENO: result: $ac_res" >&5
6474 echo "${ECHO_T}$ac_res" >&6; }
6475 else
6476 # Is the header compilable?
6477 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6478 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6479 cat >conftest.$ac_ext <<_ACEOF
6480 /* confdefs.h. */
6481 _ACEOF
6482 cat confdefs.h >>conftest.$ac_ext
6483 cat >>conftest.$ac_ext <<_ACEOF
6484 /* end confdefs.h. */
6485 $ac_includes_default
6486 #include <$ac_header>
6487 _ACEOF
6488 rm -f conftest.$ac_objext
6489 if { (ac_try="$ac_compile"
6490 case "(($ac_try" in
6491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6492 *) ac_try_echo=$ac_try;;
6493 esac
6494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6495 (eval "$ac_compile") 2>conftest.er1
6496 ac_status=$?
6497 grep -v '^ *+' conftest.er1 >conftest.err
6498 rm -f conftest.er1
6499 cat conftest.err >&5
6500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6501 (exit $ac_status); } && {
6502 test -z "$ac_c_werror_flag" ||
6503 test ! -s conftest.err
6504 } && test -s conftest.$ac_objext; then
6505 ac_header_compiler=yes
6506 else
6507 echo "$as_me: failed program was:" >&5
6508 sed 's/^/| /' conftest.$ac_ext >&5
6509
6510 ac_header_compiler=no
6511 fi
6512
6513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6514 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6515 echo "${ECHO_T}$ac_header_compiler" >&6; }
6516
6517 # Is the header present?
6518 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6519 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6520 cat >conftest.$ac_ext <<_ACEOF
6521 /* confdefs.h. */
6522 _ACEOF
6523 cat confdefs.h >>conftest.$ac_ext
6524 cat >>conftest.$ac_ext <<_ACEOF
6525 /* end confdefs.h. */
6526 #include <$ac_header>
6527 _ACEOF
6528 if { (ac_try="$ac_cpp conftest.$ac_ext"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } >/dev/null && {
6541 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 }; then
6544 ac_header_preproc=yes
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 ac_header_preproc=no
6550 fi
6551
6552 rm -f conftest.err conftest.$ac_ext
6553 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6554 echo "${ECHO_T}$ac_header_preproc" >&6; }
6555
6556 # So? What about this header?
6557 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6558 yes:no: )
6559 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6560 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6561 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6562 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6563 ac_header_preproc=yes
6564 ;;
6565 no:yes:* )
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6567 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6568 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6569 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6570 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6571 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6572 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6573 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6575 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6576 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6577 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6578
6579 ;;
6580 esac
6581 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6582 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6583 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6584 echo $ECHO_N "(cached) $ECHO_C" >&6
6585 else
6586 eval "$as_ac_Header=\$ac_header_preproc"
6587 fi
6588 ac_res=`eval echo '${'$as_ac_Header'}'`
6589 { echo "$as_me:$LINENO: result: $ac_res" >&5
6590 echo "${ECHO_T}$ac_res" >&6; }
6591
6592 fi
6593 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6594 cat >>confdefs.h <<_ACEOF
6595 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6596 _ACEOF
6597
6598 fi
6599
6600 done
6601
6602
6603 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6604 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6605 cat >conftest.$ac_ext <<_ACEOF
6606 /* confdefs.h. */
6607 _ACEOF
6608 cat confdefs.h >>conftest.$ac_ext
6609 cat >>conftest.$ac_ext <<_ACEOF
6610 /* end confdefs.h. */
6611 #include <sys/personality.h>
6612 int
6613 main ()
6614 {
6615 personality (PER_LINUX32)
6616 ;
6617 return 0;
6618 }
6619 _ACEOF
6620 rm -f conftest.$ac_objext
6621 if { (ac_try="$ac_compile"
6622 case "(($ac_try" in
6623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6624 *) ac_try_echo=$ac_try;;
6625 esac
6626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6627 (eval "$ac_compile") 2>conftest.er1
6628 ac_status=$?
6629 grep -v '^ *+' conftest.er1 >conftest.err
6630 rm -f conftest.er1
6631 cat conftest.err >&5
6632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6633 (exit $ac_status); } && {
6634 test -z "$ac_c_werror_flag" ||
6635 test ! -s conftest.err
6636 } && test -s conftest.$ac_objext; then
6637 emacs_cv_personality_linux32=yes
6638 else
6639 echo "$as_me: failed program was:" >&5
6640 sed 's/^/| /' conftest.$ac_ext >&5
6641
6642 emacs_cv_personality_linux32=no
6643 fi
6644
6645 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6646 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6647 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6648
6649 if test $emacs_cv_personality_linux32 = yes; then
6650
6651 cat >>confdefs.h <<\_ACEOF
6652 #define HAVE_PERSONALITY_LINUX32 1
6653 _ACEOF
6654
6655 fi
6656
6657
6658 for ac_header in term.h
6659 do
6660 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6661 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6662 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6663 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6664 echo $ECHO_N "(cached) $ECHO_C" >&6
6665 else
6666 cat >conftest.$ac_ext <<_ACEOF
6667 /* confdefs.h. */
6668 _ACEOF
6669 cat confdefs.h >>conftest.$ac_ext
6670 cat >>conftest.$ac_ext <<_ACEOF
6671 /* end confdefs.h. */
6672 #include <$ac_header>
6673 _ACEOF
6674 if { (ac_try="$ac_cpp conftest.$ac_ext"
6675 case "(($ac_try" in
6676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6677 *) ac_try_echo=$ac_try;;
6678 esac
6679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6680 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6681 ac_status=$?
6682 grep -v '^ *+' conftest.er1 >conftest.err
6683 rm -f conftest.er1
6684 cat conftest.err >&5
6685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6686 (exit $ac_status); } >/dev/null && {
6687 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6688 test ! -s conftest.err
6689 }; then
6690 eval "$as_ac_Header=yes"
6691 else
6692 echo "$as_me: failed program was:" >&5
6693 sed 's/^/| /' conftest.$ac_ext >&5
6694
6695 eval "$as_ac_Header=no"
6696 fi
6697
6698 rm -f conftest.err conftest.$ac_ext
6699 fi
6700 ac_res=`eval echo '${'$as_ac_Header'}'`
6701 { echo "$as_me:$LINENO: result: $ac_res" >&5
6702 echo "${ECHO_T}$ac_res" >&6; }
6703 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6704 cat >>confdefs.h <<_ACEOF
6705 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6706 _ACEOF
6707
6708 fi
6709
6710 done
6711
6712 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6713 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6714 if test "${ac_cv_header_stdc+set}" = set; then
6715 echo $ECHO_N "(cached) $ECHO_C" >&6
6716 else
6717 cat >conftest.$ac_ext <<_ACEOF
6718 /* confdefs.h. */
6719 _ACEOF
6720 cat confdefs.h >>conftest.$ac_ext
6721 cat >>conftest.$ac_ext <<_ACEOF
6722 /* end confdefs.h. */
6723 #include <stdlib.h>
6724 #include <stdarg.h>
6725 #include <string.h>
6726 #include <float.h>
6727
6728 int
6729 main ()
6730 {
6731
6732 ;
6733 return 0;
6734 }
6735 _ACEOF
6736 rm -f conftest.$ac_objext
6737 if { (ac_try="$ac_compile"
6738 case "(($ac_try" in
6739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6740 *) ac_try_echo=$ac_try;;
6741 esac
6742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6743 (eval "$ac_compile") 2>conftest.er1
6744 ac_status=$?
6745 grep -v '^ *+' conftest.er1 >conftest.err
6746 rm -f conftest.er1
6747 cat conftest.err >&5
6748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6749 (exit $ac_status); } && {
6750 test -z "$ac_c_werror_flag" ||
6751 test ! -s conftest.err
6752 } && test -s conftest.$ac_objext; then
6753 ac_cv_header_stdc=yes
6754 else
6755 echo "$as_me: failed program was:" >&5
6756 sed 's/^/| /' conftest.$ac_ext >&5
6757
6758 ac_cv_header_stdc=no
6759 fi
6760
6761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6762
6763 if test $ac_cv_header_stdc = yes; then
6764 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6765 cat >conftest.$ac_ext <<_ACEOF
6766 /* confdefs.h. */
6767 _ACEOF
6768 cat confdefs.h >>conftest.$ac_ext
6769 cat >>conftest.$ac_ext <<_ACEOF
6770 /* end confdefs.h. */
6771 #include <string.h>
6772
6773 _ACEOF
6774 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6775 $EGREP "memchr" >/dev/null 2>&1; then
6776 :
6777 else
6778 ac_cv_header_stdc=no
6779 fi
6780 rm -f conftest*
6781
6782 fi
6783
6784 if test $ac_cv_header_stdc = yes; then
6785 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6786 cat >conftest.$ac_ext <<_ACEOF
6787 /* confdefs.h. */
6788 _ACEOF
6789 cat confdefs.h >>conftest.$ac_ext
6790 cat >>conftest.$ac_ext <<_ACEOF
6791 /* end confdefs.h. */
6792 #include <stdlib.h>
6793
6794 _ACEOF
6795 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6796 $EGREP "free" >/dev/null 2>&1; then
6797 :
6798 else
6799 ac_cv_header_stdc=no
6800 fi
6801 rm -f conftest*
6802
6803 fi
6804
6805 if test $ac_cv_header_stdc = yes; then
6806 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6807 if test "$cross_compiling" = yes; then
6808 :
6809 else
6810 cat >conftest.$ac_ext <<_ACEOF
6811 /* confdefs.h. */
6812 _ACEOF
6813 cat confdefs.h >>conftest.$ac_ext
6814 cat >>conftest.$ac_ext <<_ACEOF
6815 /* end confdefs.h. */
6816 #include <ctype.h>
6817 #include <stdlib.h>
6818 #if ((' ' & 0x0FF) == 0x020)
6819 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6820 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6821 #else
6822 # define ISLOWER(c) \
6823 (('a' <= (c) && (c) <= 'i') \
6824 || ('j' <= (c) && (c) <= 'r') \
6825 || ('s' <= (c) && (c) <= 'z'))
6826 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6827 #endif
6828
6829 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6830 int
6831 main ()
6832 {
6833 int i;
6834 for (i = 0; i < 256; i++)
6835 if (XOR (islower (i), ISLOWER (i))
6836 || toupper (i) != TOUPPER (i))
6837 return 2;
6838 return 0;
6839 }
6840 _ACEOF
6841 rm -f conftest$ac_exeext
6842 if { (ac_try="$ac_link"
6843 case "(($ac_try" in
6844 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6845 *) ac_try_echo=$ac_try;;
6846 esac
6847 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6848 (eval "$ac_link") 2>&5
6849 ac_status=$?
6850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6851 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6852 { (case "(($ac_try" in
6853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6854 *) ac_try_echo=$ac_try;;
6855 esac
6856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6857 (eval "$ac_try") 2>&5
6858 ac_status=$?
6859 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6860 (exit $ac_status); }; }; then
6861 :
6862 else
6863 echo "$as_me: program exited with status $ac_status" >&5
6864 echo "$as_me: failed program was:" >&5
6865 sed 's/^/| /' conftest.$ac_ext >&5
6866
6867 ( exit $ac_status )
6868 ac_cv_header_stdc=no
6869 fi
6870 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6871 fi
6872
6873
6874 fi
6875 fi
6876 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6877 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6878 if test $ac_cv_header_stdc = yes; then
6879
6880 cat >>confdefs.h <<\_ACEOF
6881 #define STDC_HEADERS 1
6882 _ACEOF
6883
6884 fi
6885
6886 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6887 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6888 if test "${ac_cv_header_time+set}" = set; then
6889 echo $ECHO_N "(cached) $ECHO_C" >&6
6890 else
6891 cat >conftest.$ac_ext <<_ACEOF
6892 /* confdefs.h. */
6893 _ACEOF
6894 cat confdefs.h >>conftest.$ac_ext
6895 cat >>conftest.$ac_ext <<_ACEOF
6896 /* end confdefs.h. */
6897 #include <sys/types.h>
6898 #include <sys/time.h>
6899 #include <time.h>
6900
6901 int
6902 main ()
6903 {
6904 if ((struct tm *) 0)
6905 return 0;
6906 ;
6907 return 0;
6908 }
6909 _ACEOF
6910 rm -f conftest.$ac_objext
6911 if { (ac_try="$ac_compile"
6912 case "(($ac_try" in
6913 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6914 *) ac_try_echo=$ac_try;;
6915 esac
6916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6917 (eval "$ac_compile") 2>conftest.er1
6918 ac_status=$?
6919 grep -v '^ *+' conftest.er1 >conftest.err
6920 rm -f conftest.er1
6921 cat conftest.err >&5
6922 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6923 (exit $ac_status); } && {
6924 test -z "$ac_c_werror_flag" ||
6925 test ! -s conftest.err
6926 } && test -s conftest.$ac_objext; then
6927 ac_cv_header_time=yes
6928 else
6929 echo "$as_me: failed program was:" >&5
6930 sed 's/^/| /' conftest.$ac_ext >&5
6931
6932 ac_cv_header_time=no
6933 fi
6934
6935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6936 fi
6937 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6938 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6939 if test $ac_cv_header_time = yes; then
6940
6941 cat >>confdefs.h <<\_ACEOF
6942 #define TIME_WITH_SYS_TIME 1
6943 _ACEOF
6944
6945 fi
6946
6947 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6948 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6949 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6950 echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952 cat >conftest.$ac_ext <<_ACEOF
6953 /* confdefs.h. */
6954 _ACEOF
6955 cat confdefs.h >>conftest.$ac_ext
6956 cat >>conftest.$ac_ext <<_ACEOF
6957 /* end confdefs.h. */
6958 $ac_includes_default
6959 int
6960 main ()
6961 {
6962 #ifndef sys_siglist
6963 (void) sys_siglist;
6964 #endif
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_have_decl_sys_siglist=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 ac_cv_have_decl_sys_siglist=no
6993 fi
6994
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996 fi
6997 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6998 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6999 if test $ac_cv_have_decl_sys_siglist = yes; then
7000
7001 cat >>confdefs.h <<_ACEOF
7002 #define HAVE_DECL_SYS_SIGLIST 1
7003 _ACEOF
7004
7005
7006 else
7007 cat >>confdefs.h <<_ACEOF
7008 #define HAVE_DECL_SYS_SIGLIST 0
7009 _ACEOF
7010
7011
7012 fi
7013
7014
7015 if test $ac_cv_have_decl_sys_siglist != yes; then
7016 # For Tru64, at least:
7017 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7018 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7019 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7020 echo $ECHO_N "(cached) $ECHO_C" >&6
7021 else
7022 cat >conftest.$ac_ext <<_ACEOF
7023 /* confdefs.h. */
7024 _ACEOF
7025 cat confdefs.h >>conftest.$ac_ext
7026 cat >>conftest.$ac_ext <<_ACEOF
7027 /* end confdefs.h. */
7028 $ac_includes_default
7029 int
7030 main ()
7031 {
7032 #ifndef __sys_siglist
7033 (void) __sys_siglist;
7034 #endif
7035
7036 ;
7037 return 0;
7038 }
7039 _ACEOF
7040 rm -f conftest.$ac_objext
7041 if { (ac_try="$ac_compile"
7042 case "(($ac_try" in
7043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7044 *) ac_try_echo=$ac_try;;
7045 esac
7046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7047 (eval "$ac_compile") 2>conftest.er1
7048 ac_status=$?
7049 grep -v '^ *+' conftest.er1 >conftest.err
7050 rm -f conftest.er1
7051 cat conftest.err >&5
7052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7053 (exit $ac_status); } && {
7054 test -z "$ac_c_werror_flag" ||
7055 test ! -s conftest.err
7056 } && test -s conftest.$ac_objext; then
7057 ac_cv_have_decl___sys_siglist=yes
7058 else
7059 echo "$as_me: failed program was:" >&5
7060 sed 's/^/| /' conftest.$ac_ext >&5
7061
7062 ac_cv_have_decl___sys_siglist=no
7063 fi
7064
7065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7066 fi
7067 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7068 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7069 if test $ac_cv_have_decl___sys_siglist = yes; then
7070
7071 cat >>confdefs.h <<_ACEOF
7072 #define HAVE_DECL___SYS_SIGLIST 1
7073 _ACEOF
7074
7075
7076 else
7077 cat >>confdefs.h <<_ACEOF
7078 #define HAVE_DECL___SYS_SIGLIST 0
7079 _ACEOF
7080
7081
7082 fi
7083
7084
7085 if test $ac_cv_have_decl___sys_siglist = yes; then
7086
7087 cat >>confdefs.h <<\_ACEOF
7088 #define sys_siglist __sys_siglist
7089 _ACEOF
7090
7091 fi
7092 fi
7093 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7094 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7095 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7096 echo $ECHO_N "(cached) $ECHO_C" >&6
7097 else
7098 cat >conftest.$ac_ext <<_ACEOF
7099 /* confdefs.h. */
7100 _ACEOF
7101 cat confdefs.h >>conftest.$ac_ext
7102 cat >>conftest.$ac_ext <<_ACEOF
7103 /* end confdefs.h. */
7104 #include <sys/types.h>
7105 #include <sys/wait.h>
7106 #ifndef WEXITSTATUS
7107 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7108 #endif
7109 #ifndef WIFEXITED
7110 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7111 #endif
7112
7113 int
7114 main ()
7115 {
7116 int s;
7117 wait (&s);
7118 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7119 ;
7120 return 0;
7121 }
7122 _ACEOF
7123 rm -f conftest.$ac_objext
7124 if { (ac_try="$ac_compile"
7125 case "(($ac_try" in
7126 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7127 *) ac_try_echo=$ac_try;;
7128 esac
7129 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7130 (eval "$ac_compile") 2>conftest.er1
7131 ac_status=$?
7132 grep -v '^ *+' conftest.er1 >conftest.err
7133 rm -f conftest.er1
7134 cat conftest.err >&5
7135 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7136 (exit $ac_status); } && {
7137 test -z "$ac_c_werror_flag" ||
7138 test ! -s conftest.err
7139 } && test -s conftest.$ac_objext; then
7140 ac_cv_header_sys_wait_h=yes
7141 else
7142 echo "$as_me: failed program was:" >&5
7143 sed 's/^/| /' conftest.$ac_ext >&5
7144
7145 ac_cv_header_sys_wait_h=no
7146 fi
7147
7148 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7149 fi
7150 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7151 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7152 if test $ac_cv_header_sys_wait_h = yes; then
7153
7154 cat >>confdefs.h <<\_ACEOF
7155 #define HAVE_SYS_WAIT_H 1
7156 _ACEOF
7157
7158 fi
7159
7160
7161 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7162 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7163 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7164 echo $ECHO_N "(cached) $ECHO_C" >&6
7165 else
7166 cat >conftest.$ac_ext <<_ACEOF
7167 /* confdefs.h. */
7168 _ACEOF
7169 cat confdefs.h >>conftest.$ac_ext
7170 cat >>conftest.$ac_ext <<_ACEOF
7171 /* end confdefs.h. */
7172 #ifdef TIME_WITH_SYS_TIME
7173 #include <sys/time.h>
7174 #include <time.h>
7175 #else
7176 #ifdef HAVE_SYS_TIME_H
7177 #include <sys/time.h>
7178 #else
7179 #include <time.h>
7180 #endif
7181 #endif
7182 #ifdef HAVE_UTIME_H
7183 #include <utime.h>
7184 #endif
7185 int
7186 main ()
7187 {
7188 static struct utimbuf x; x.actime = x.modtime;
7189 ;
7190 return 0;
7191 }
7192 _ACEOF
7193 rm -f conftest.$ac_objext
7194 if { (ac_try="$ac_compile"
7195 case "(($ac_try" in
7196 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7197 *) ac_try_echo=$ac_try;;
7198 esac
7199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7200 (eval "$ac_compile") 2>conftest.er1
7201 ac_status=$?
7202 grep -v '^ *+' conftest.er1 >conftest.err
7203 rm -f conftest.er1
7204 cat conftest.err >&5
7205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7206 (exit $ac_status); } && {
7207 test -z "$ac_c_werror_flag" ||
7208 test ! -s conftest.err
7209 } && test -s conftest.$ac_objext; then
7210 emacs_cv_struct_utimbuf=yes
7211 else
7212 echo "$as_me: failed program was:" >&5
7213 sed 's/^/| /' conftest.$ac_ext >&5
7214
7215 emacs_cv_struct_utimbuf=no
7216 fi
7217
7218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7219 fi
7220 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7221 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7222 if test $emacs_cv_struct_utimbuf = yes; then
7223
7224 cat >>confdefs.h <<\_ACEOF
7225 #define HAVE_STRUCT_UTIMBUF 1
7226 _ACEOF
7227
7228 fi
7229
7230 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7231 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7232 if test "${ac_cv_type_signal+set}" = set; then
7233 echo $ECHO_N "(cached) $ECHO_C" >&6
7234 else
7235 cat >conftest.$ac_ext <<_ACEOF
7236 /* confdefs.h. */
7237 _ACEOF
7238 cat confdefs.h >>conftest.$ac_ext
7239 cat >>conftest.$ac_ext <<_ACEOF
7240 /* end confdefs.h. */
7241 #include <sys/types.h>
7242 #include <signal.h>
7243
7244 int
7245 main ()
7246 {
7247 return *(signal (0, 0)) (0) == 1;
7248 ;
7249 return 0;
7250 }
7251 _ACEOF
7252 rm -f conftest.$ac_objext
7253 if { (ac_try="$ac_compile"
7254 case "(($ac_try" in
7255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7256 *) ac_try_echo=$ac_try;;
7257 esac
7258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7259 (eval "$ac_compile") 2>conftest.er1
7260 ac_status=$?
7261 grep -v '^ *+' conftest.er1 >conftest.err
7262 rm -f conftest.er1
7263 cat conftest.err >&5
7264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7265 (exit $ac_status); } && {
7266 test -z "$ac_c_werror_flag" ||
7267 test ! -s conftest.err
7268 } && test -s conftest.$ac_objext; then
7269 ac_cv_type_signal=int
7270 else
7271 echo "$as_me: failed program was:" >&5
7272 sed 's/^/| /' conftest.$ac_ext >&5
7273
7274 ac_cv_type_signal=void
7275 fi
7276
7277 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7278 fi
7279 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7280 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7281
7282 cat >>confdefs.h <<_ACEOF
7283 #define RETSIGTYPE $ac_cv_type_signal
7284 _ACEOF
7285
7286
7287
7288 { echo "$as_me:$LINENO: checking for speed_t" >&5
7289 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7290 if test "${emacs_cv_speed_t+set}" = set; then
7291 echo $ECHO_N "(cached) $ECHO_C" >&6
7292 else
7293 cat >conftest.$ac_ext <<_ACEOF
7294 /* confdefs.h. */
7295 _ACEOF
7296 cat confdefs.h >>conftest.$ac_ext
7297 cat >>conftest.$ac_ext <<_ACEOF
7298 /* end confdefs.h. */
7299 #include <termios.h>
7300 int
7301 main ()
7302 {
7303 speed_t x = 1;
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 test -z "$ac_c_werror_flag" ||
7323 test ! -s conftest.err
7324 } && test -s conftest.$ac_objext; then
7325 emacs_cv_speed_t=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330 emacs_cv_speed_t=no
7331 fi
7332
7333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7334 fi
7335 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7336 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7337 if test $emacs_cv_speed_t = yes; then
7338
7339 cat >>confdefs.h <<\_ACEOF
7340 #define HAVE_SPEED_T 1
7341 _ACEOF
7342
7343 fi
7344
7345 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7346 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7347 if test "${emacs_cv_struct_timeval+set}" = set; then
7348 echo $ECHO_N "(cached) $ECHO_C" >&6
7349 else
7350 cat >conftest.$ac_ext <<_ACEOF
7351 /* confdefs.h. */
7352 _ACEOF
7353 cat confdefs.h >>conftest.$ac_ext
7354 cat >>conftest.$ac_ext <<_ACEOF
7355 /* end confdefs.h. */
7356 #ifdef TIME_WITH_SYS_TIME
7357 #include <sys/time.h>
7358 #include <time.h>
7359 #else
7360 #ifdef HAVE_SYS_TIME_H
7361 #include <sys/time.h>
7362 #else
7363 #include <time.h>
7364 #endif
7365 #endif
7366 int
7367 main ()
7368 {
7369 static struct timeval x; x.tv_sec = x.tv_usec;
7370 ;
7371 return 0;
7372 }
7373 _ACEOF
7374 rm -f conftest.$ac_objext
7375 if { (ac_try="$ac_compile"
7376 case "(($ac_try" in
7377 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7378 *) ac_try_echo=$ac_try;;
7379 esac
7380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7381 (eval "$ac_compile") 2>conftest.er1
7382 ac_status=$?
7383 grep -v '^ *+' conftest.er1 >conftest.err
7384 rm -f conftest.er1
7385 cat conftest.err >&5
7386 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7387 (exit $ac_status); } && {
7388 test -z "$ac_c_werror_flag" ||
7389 test ! -s conftest.err
7390 } && test -s conftest.$ac_objext; then
7391 emacs_cv_struct_timeval=yes
7392 else
7393 echo "$as_me: failed program was:" >&5
7394 sed 's/^/| /' conftest.$ac_ext >&5
7395
7396 emacs_cv_struct_timeval=no
7397 fi
7398
7399 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7400 fi
7401 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7402 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7403 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7404 if test $emacs_cv_struct_timeval = yes; then
7405
7406 cat >>confdefs.h <<\_ACEOF
7407 #define HAVE_TIMEVAL 1
7408 _ACEOF
7409
7410 fi
7411
7412 { echo "$as_me:$LINENO: checking for struct exception" >&5
7413 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7414 if test "${emacs_cv_struct_exception+set}" = set; then
7415 echo $ECHO_N "(cached) $ECHO_C" >&6
7416 else
7417 cat >conftest.$ac_ext <<_ACEOF
7418 /* confdefs.h. */
7419 _ACEOF
7420 cat confdefs.h >>conftest.$ac_ext
7421 cat >>conftest.$ac_ext <<_ACEOF
7422 /* end confdefs.h. */
7423 #include <math.h>
7424 int
7425 main ()
7426 {
7427 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7428 ;
7429 return 0;
7430 }
7431 _ACEOF
7432 rm -f conftest.$ac_objext
7433 if { (ac_try="$ac_compile"
7434 case "(($ac_try" in
7435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7436 *) ac_try_echo=$ac_try;;
7437 esac
7438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7439 (eval "$ac_compile") 2>conftest.er1
7440 ac_status=$?
7441 grep -v '^ *+' conftest.er1 >conftest.err
7442 rm -f conftest.er1
7443 cat conftest.err >&5
7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7445 (exit $ac_status); } && {
7446 test -z "$ac_c_werror_flag" ||
7447 test ! -s conftest.err
7448 } && test -s conftest.$ac_objext; then
7449 emacs_cv_struct_exception=yes
7450 else
7451 echo "$as_me: failed program was:" >&5
7452 sed 's/^/| /' conftest.$ac_ext >&5
7453
7454 emacs_cv_struct_exception=no
7455 fi
7456
7457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7458 fi
7459 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7460 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7461 HAVE_EXCEPTION=$emacs_cv_struct_exception
7462 if test $emacs_cv_struct_exception != yes; then
7463
7464 cat >>confdefs.h <<\_ACEOF
7465 #define NO_MATHERR 1
7466 _ACEOF
7467
7468 fi
7469
7470
7471 for ac_header in sys/socket.h
7472 do
7473 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7475 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7476 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7477 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7478 echo $ECHO_N "(cached) $ECHO_C" >&6
7479 fi
7480 ac_res=`eval echo '${'$as_ac_Header'}'`
7481 { echo "$as_me:$LINENO: result: $ac_res" >&5
7482 echo "${ECHO_T}$ac_res" >&6; }
7483 else
7484 # Is the header compilable?
7485 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7486 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7487 cat >conftest.$ac_ext <<_ACEOF
7488 /* confdefs.h. */
7489 _ACEOF
7490 cat confdefs.h >>conftest.$ac_ext
7491 cat >>conftest.$ac_ext <<_ACEOF
7492 /* end confdefs.h. */
7493 $ac_includes_default
7494 #include <$ac_header>
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 test -z "$ac_c_werror_flag" ||
7511 test ! -s conftest.err
7512 } && test -s conftest.$ac_objext; then
7513 ac_header_compiler=yes
7514 else
7515 echo "$as_me: failed program was:" >&5
7516 sed 's/^/| /' conftest.$ac_ext >&5
7517
7518 ac_header_compiler=no
7519 fi
7520
7521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7522 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7523 echo "${ECHO_T}$ac_header_compiler" >&6; }
7524
7525 # Is the header present?
7526 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7527 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7528 cat >conftest.$ac_ext <<_ACEOF
7529 /* confdefs.h. */
7530 _ACEOF
7531 cat confdefs.h >>conftest.$ac_ext
7532 cat >>conftest.$ac_ext <<_ACEOF
7533 /* end confdefs.h. */
7534 #include <$ac_header>
7535 _ACEOF
7536 if { (ac_try="$ac_cpp conftest.$ac_ext"
7537 case "(($ac_try" in
7538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7539 *) ac_try_echo=$ac_try;;
7540 esac
7541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7542 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7543 ac_status=$?
7544 grep -v '^ *+' conftest.er1 >conftest.err
7545 rm -f conftest.er1
7546 cat conftest.err >&5
7547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7548 (exit $ac_status); } >/dev/null && {
7549 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7550 test ! -s conftest.err
7551 }; then
7552 ac_header_preproc=yes
7553 else
7554 echo "$as_me: failed program was:" >&5
7555 sed 's/^/| /' conftest.$ac_ext >&5
7556
7557 ac_header_preproc=no
7558 fi
7559
7560 rm -f conftest.err conftest.$ac_ext
7561 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7562 echo "${ECHO_T}$ac_header_preproc" >&6; }
7563
7564 # So? What about this header?
7565 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7566 yes:no: )
7567 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7568 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7569 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7570 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7571 ac_header_preproc=yes
7572 ;;
7573 no:yes:* )
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7575 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7576 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7577 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7578 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7579 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7580 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7581 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7582 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7583 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7584 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7585 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7586
7587 ;;
7588 esac
7589 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7590 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7591 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7592 echo $ECHO_N "(cached) $ECHO_C" >&6
7593 else
7594 eval "$as_ac_Header=\$ac_header_preproc"
7595 fi
7596 ac_res=`eval echo '${'$as_ac_Header'}'`
7597 { echo "$as_me:$LINENO: result: $ac_res" >&5
7598 echo "${ECHO_T}$ac_res" >&6; }
7599
7600 fi
7601 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7602 cat >>confdefs.h <<_ACEOF
7603 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7604 _ACEOF
7605
7606 fi
7607
7608 done
7609
7610
7611 for ac_header in net/if.h
7612 do
7613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7617 echo $ECHO_N "(cached) $ECHO_C" >&6
7618 else
7619 cat >conftest.$ac_ext <<_ACEOF
7620 /* confdefs.h. */
7621 _ACEOF
7622 cat confdefs.h >>conftest.$ac_ext
7623 cat >>conftest.$ac_ext <<_ACEOF
7624 /* end confdefs.h. */
7625 $ac_includes_default
7626 #if HAVE_SYS_SOCKET_H
7627 #include <sys/socket.h>
7628 #endif
7629
7630 #include <$ac_header>
7631 _ACEOF
7632 rm -f conftest.$ac_objext
7633 if { (ac_try="$ac_compile"
7634 case "(($ac_try" in
7635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7636 *) ac_try_echo=$ac_try;;
7637 esac
7638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7639 (eval "$ac_compile") 2>conftest.er1
7640 ac_status=$?
7641 grep -v '^ *+' conftest.er1 >conftest.err
7642 rm -f conftest.er1
7643 cat conftest.err >&5
7644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7645 (exit $ac_status); } && {
7646 test -z "$ac_c_werror_flag" ||
7647 test ! -s conftest.err
7648 } && test -s conftest.$ac_objext; then
7649 eval "$as_ac_Header=yes"
7650 else
7651 echo "$as_me: failed program was:" >&5
7652 sed 's/^/| /' conftest.$ac_ext >&5
7653
7654 eval "$as_ac_Header=no"
7655 fi
7656
7657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7658 fi
7659 ac_res=`eval echo '${'$as_ac_Header'}'`
7660 { echo "$as_me:$LINENO: result: $ac_res" >&5
7661 echo "${ECHO_T}$ac_res" >&6; }
7662 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7663 cat >>confdefs.h <<_ACEOF
7664 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7665 _ACEOF
7666
7667 fi
7668
7669 done
7670
7671
7672 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7673 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7674 if test "${ac_cv_struct_tm+set}" = set; then
7675 echo $ECHO_N "(cached) $ECHO_C" >&6
7676 else
7677 cat >conftest.$ac_ext <<_ACEOF
7678 /* confdefs.h. */
7679 _ACEOF
7680 cat confdefs.h >>conftest.$ac_ext
7681 cat >>conftest.$ac_ext <<_ACEOF
7682 /* end confdefs.h. */
7683 #include <sys/types.h>
7684 #include <time.h>
7685
7686 int
7687 main ()
7688 {
7689 struct tm tm;
7690 int *p = &tm.tm_sec;
7691 return !p;
7692 ;
7693 return 0;
7694 }
7695 _ACEOF
7696 rm -f conftest.$ac_objext
7697 if { (ac_try="$ac_compile"
7698 case "(($ac_try" in
7699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7700 *) ac_try_echo=$ac_try;;
7701 esac
7702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7703 (eval "$ac_compile") 2>conftest.er1
7704 ac_status=$?
7705 grep -v '^ *+' conftest.er1 >conftest.err
7706 rm -f conftest.er1
7707 cat conftest.err >&5
7708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7709 (exit $ac_status); } && {
7710 test -z "$ac_c_werror_flag" ||
7711 test ! -s conftest.err
7712 } && test -s conftest.$ac_objext; then
7713 ac_cv_struct_tm=time.h
7714 else
7715 echo "$as_me: failed program was:" >&5
7716 sed 's/^/| /' conftest.$ac_ext >&5
7717
7718 ac_cv_struct_tm=sys/time.h
7719 fi
7720
7721 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7722 fi
7723 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7724 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7725 if test $ac_cv_struct_tm = sys/time.h; then
7726
7727 cat >>confdefs.h <<\_ACEOF
7728 #define TM_IN_SYS_TIME 1
7729 _ACEOF
7730
7731 fi
7732
7733 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7734 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7735 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7736 echo $ECHO_N "(cached) $ECHO_C" >&6
7737 else
7738 cat >conftest.$ac_ext <<_ACEOF
7739 /* confdefs.h. */
7740 _ACEOF
7741 cat confdefs.h >>conftest.$ac_ext
7742 cat >>conftest.$ac_ext <<_ACEOF
7743 /* end confdefs.h. */
7744 #include <sys/types.h>
7745 #include <$ac_cv_struct_tm>
7746
7747
7748 int
7749 main ()
7750 {
7751 static struct tm ac_aggr;
7752 if (ac_aggr.tm_zone)
7753 return 0;
7754 ;
7755 return 0;
7756 }
7757 _ACEOF
7758 rm -f conftest.$ac_objext
7759 if { (ac_try="$ac_compile"
7760 case "(($ac_try" in
7761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7762 *) ac_try_echo=$ac_try;;
7763 esac
7764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7765 (eval "$ac_compile") 2>conftest.er1
7766 ac_status=$?
7767 grep -v '^ *+' conftest.er1 >conftest.err
7768 rm -f conftest.er1
7769 cat conftest.err >&5
7770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7771 (exit $ac_status); } && {
7772 test -z "$ac_c_werror_flag" ||
7773 test ! -s conftest.err
7774 } && test -s conftest.$ac_objext; then
7775 ac_cv_member_struct_tm_tm_zone=yes
7776 else
7777 echo "$as_me: failed program was:" >&5
7778 sed 's/^/| /' conftest.$ac_ext >&5
7779
7780 cat >conftest.$ac_ext <<_ACEOF
7781 /* confdefs.h. */
7782 _ACEOF
7783 cat confdefs.h >>conftest.$ac_ext
7784 cat >>conftest.$ac_ext <<_ACEOF
7785 /* end confdefs.h. */
7786 #include <sys/types.h>
7787 #include <$ac_cv_struct_tm>
7788
7789
7790 int
7791 main ()
7792 {
7793 static struct tm ac_aggr;
7794 if (sizeof ac_aggr.tm_zone)
7795 return 0;
7796 ;
7797 return 0;
7798 }
7799 _ACEOF
7800 rm -f conftest.$ac_objext
7801 if { (ac_try="$ac_compile"
7802 case "(($ac_try" in
7803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7804 *) ac_try_echo=$ac_try;;
7805 esac
7806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7807 (eval "$ac_compile") 2>conftest.er1
7808 ac_status=$?
7809 grep -v '^ *+' conftest.er1 >conftest.err
7810 rm -f conftest.er1
7811 cat conftest.err >&5
7812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7813 (exit $ac_status); } && {
7814 test -z "$ac_c_werror_flag" ||
7815 test ! -s conftest.err
7816 } && test -s conftest.$ac_objext; then
7817 ac_cv_member_struct_tm_tm_zone=yes
7818 else
7819 echo "$as_me: failed program was:" >&5
7820 sed 's/^/| /' conftest.$ac_ext >&5
7821
7822 ac_cv_member_struct_tm_tm_zone=no
7823 fi
7824
7825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7826 fi
7827
7828 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7829 fi
7830 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7831 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7832 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7833
7834 cat >>confdefs.h <<_ACEOF
7835 #define HAVE_STRUCT_TM_TM_ZONE 1
7836 _ACEOF
7837
7838
7839 fi
7840
7841 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7842
7843 cat >>confdefs.h <<\_ACEOF
7844 #define HAVE_TM_ZONE 1
7845 _ACEOF
7846
7847 else
7848 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7849 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7850 if test "${ac_cv_have_decl_tzname+set}" = set; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <time.h>
7860
7861 int
7862 main ()
7863 {
7864 #ifndef tzname
7865 (void) tzname;
7866 #endif
7867
7868 ;
7869 return 0;
7870 }
7871 _ACEOF
7872 rm -f conftest.$ac_objext
7873 if { (ac_try="$ac_compile"
7874 case "(($ac_try" in
7875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7876 *) ac_try_echo=$ac_try;;
7877 esac
7878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7879 (eval "$ac_compile") 2>conftest.er1
7880 ac_status=$?
7881 grep -v '^ *+' conftest.er1 >conftest.err
7882 rm -f conftest.er1
7883 cat conftest.err >&5
7884 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7885 (exit $ac_status); } && {
7886 test -z "$ac_c_werror_flag" ||
7887 test ! -s conftest.err
7888 } && test -s conftest.$ac_objext; then
7889 ac_cv_have_decl_tzname=yes
7890 else
7891 echo "$as_me: failed program was:" >&5
7892 sed 's/^/| /' conftest.$ac_ext >&5
7893
7894 ac_cv_have_decl_tzname=no
7895 fi
7896
7897 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7898 fi
7899 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7900 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7901 if test $ac_cv_have_decl_tzname = yes; then
7902
7903 cat >>confdefs.h <<_ACEOF
7904 #define HAVE_DECL_TZNAME 1
7905 _ACEOF
7906
7907
7908 else
7909 cat >>confdefs.h <<_ACEOF
7910 #define HAVE_DECL_TZNAME 0
7911 _ACEOF
7912
7913
7914 fi
7915
7916
7917 { echo "$as_me:$LINENO: checking for tzname" >&5
7918 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7919 if test "${ac_cv_var_tzname+set}" = set; then
7920 echo $ECHO_N "(cached) $ECHO_C" >&6
7921 else
7922 cat >conftest.$ac_ext <<_ACEOF
7923 /* confdefs.h. */
7924 _ACEOF
7925 cat confdefs.h >>conftest.$ac_ext
7926 cat >>conftest.$ac_ext <<_ACEOF
7927 /* end confdefs.h. */
7928 #include <time.h>
7929 #if !HAVE_DECL_TZNAME
7930 extern char *tzname[];
7931 #endif
7932
7933 int
7934 main ()
7935 {
7936 return tzname[0][0];
7937 ;
7938 return 0;
7939 }
7940 _ACEOF
7941 rm -f conftest.$ac_objext conftest$ac_exeext
7942 if { (ac_try="$ac_link"
7943 case "(($ac_try" in
7944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7945 *) ac_try_echo=$ac_try;;
7946 esac
7947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7948 (eval "$ac_link") 2>conftest.er1
7949 ac_status=$?
7950 grep -v '^ *+' conftest.er1 >conftest.err
7951 rm -f conftest.er1
7952 cat conftest.err >&5
7953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7954 (exit $ac_status); } && {
7955 test -z "$ac_c_werror_flag" ||
7956 test ! -s conftest.err
7957 } && test -s conftest$ac_exeext &&
7958 $as_test_x conftest$ac_exeext; then
7959 ac_cv_var_tzname=yes
7960 else
7961 echo "$as_me: failed program was:" >&5
7962 sed 's/^/| /' conftest.$ac_ext >&5
7963
7964 ac_cv_var_tzname=no
7965 fi
7966
7967 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7968 conftest$ac_exeext conftest.$ac_ext
7969 fi
7970 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7971 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7972 if test $ac_cv_var_tzname = yes; then
7973
7974 cat >>confdefs.h <<\_ACEOF
7975 #define HAVE_TZNAME 1
7976 _ACEOF
7977
7978 fi
7979 fi
7980
7981 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7982 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7983 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7984 echo $ECHO_N "(cached) $ECHO_C" >&6
7985 else
7986 cat >conftest.$ac_ext <<_ACEOF
7987 /* confdefs.h. */
7988 _ACEOF
7989 cat confdefs.h >>conftest.$ac_ext
7990 cat >>conftest.$ac_ext <<_ACEOF
7991 /* end confdefs.h. */
7992 #include <time.h>
7993
7994 int
7995 main ()
7996 {
7997 static struct tm ac_aggr;
7998 if (ac_aggr.tm_gmtoff)
7999 return 0;
8000 ;
8001 return 0;
8002 }
8003 _ACEOF
8004 rm -f conftest.$ac_objext
8005 if { (ac_try="$ac_compile"
8006 case "(($ac_try" in
8007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8008 *) ac_try_echo=$ac_try;;
8009 esac
8010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8011 (eval "$ac_compile") 2>conftest.er1
8012 ac_status=$?
8013 grep -v '^ *+' conftest.er1 >conftest.err
8014 rm -f conftest.er1
8015 cat conftest.err >&5
8016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8017 (exit $ac_status); } && {
8018 test -z "$ac_c_werror_flag" ||
8019 test ! -s conftest.err
8020 } && test -s conftest.$ac_objext; then
8021 ac_cv_member_struct_tm_tm_gmtoff=yes
8022 else
8023 echo "$as_me: failed program was:" >&5
8024 sed 's/^/| /' conftest.$ac_ext >&5
8025
8026 cat >conftest.$ac_ext <<_ACEOF
8027 /* confdefs.h. */
8028 _ACEOF
8029 cat confdefs.h >>conftest.$ac_ext
8030 cat >>conftest.$ac_ext <<_ACEOF
8031 /* end confdefs.h. */
8032 #include <time.h>
8033
8034 int
8035 main ()
8036 {
8037 static struct tm ac_aggr;
8038 if (sizeof ac_aggr.tm_gmtoff)
8039 return 0;
8040 ;
8041 return 0;
8042 }
8043 _ACEOF
8044 rm -f conftest.$ac_objext
8045 if { (ac_try="$ac_compile"
8046 case "(($ac_try" in
8047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8048 *) ac_try_echo=$ac_try;;
8049 esac
8050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8051 (eval "$ac_compile") 2>conftest.er1
8052 ac_status=$?
8053 grep -v '^ *+' conftest.er1 >conftest.err
8054 rm -f conftest.er1
8055 cat conftest.err >&5
8056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8057 (exit $ac_status); } && {
8058 test -z "$ac_c_werror_flag" ||
8059 test ! -s conftest.err
8060 } && test -s conftest.$ac_objext; then
8061 ac_cv_member_struct_tm_tm_gmtoff=yes
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 ac_cv_member_struct_tm_tm_gmtoff=no
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8070 fi
8071
8072 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8073 fi
8074 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8075 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8076 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8077
8078 cat >>confdefs.h <<\_ACEOF
8079 #define HAVE_TM_GMTOFF 1
8080 _ACEOF
8081
8082 fi
8083
8084 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8085 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8086 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8087 echo $ECHO_N "(cached) $ECHO_C" >&6
8088 else
8089 cat >conftest.$ac_ext <<_ACEOF
8090 /* confdefs.h. */
8091 _ACEOF
8092 cat confdefs.h >>conftest.$ac_ext
8093 cat >>conftest.$ac_ext <<_ACEOF
8094 /* end confdefs.h. */
8095 $ac_includes_default
8096 #if HAVE_SYS_SOCKET_H
8097 #include <sys/socket.h>
8098 #endif
8099 #if HAVE_NET_IF_H
8100 #include <net/if.h>
8101 #endif
8102
8103 int
8104 main ()
8105 {
8106 static struct ifreq ac_aggr;
8107 if (ac_aggr.ifr_flags)
8108 return 0;
8109 ;
8110 return 0;
8111 }
8112 _ACEOF
8113 rm -f conftest.$ac_objext
8114 if { (ac_try="$ac_compile"
8115 case "(($ac_try" in
8116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8117 *) ac_try_echo=$ac_try;;
8118 esac
8119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8120 (eval "$ac_compile") 2>conftest.er1
8121 ac_status=$?
8122 grep -v '^ *+' conftest.er1 >conftest.err
8123 rm -f conftest.er1
8124 cat conftest.err >&5
8125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8126 (exit $ac_status); } && {
8127 test -z "$ac_c_werror_flag" ||
8128 test ! -s conftest.err
8129 } && test -s conftest.$ac_objext; then
8130 ac_cv_member_struct_ifreq_ifr_flags=yes
8131 else
8132 echo "$as_me: failed program was:" >&5
8133 sed 's/^/| /' conftest.$ac_ext >&5
8134
8135 cat >conftest.$ac_ext <<_ACEOF
8136 /* confdefs.h. */
8137 _ACEOF
8138 cat confdefs.h >>conftest.$ac_ext
8139 cat >>conftest.$ac_ext <<_ACEOF
8140 /* end confdefs.h. */
8141 $ac_includes_default
8142 #if HAVE_SYS_SOCKET_H
8143 #include <sys/socket.h>
8144 #endif
8145 #if HAVE_NET_IF_H
8146 #include <net/if.h>
8147 #endif
8148
8149 int
8150 main ()
8151 {
8152 static struct ifreq ac_aggr;
8153 if (sizeof ac_aggr.ifr_flags)
8154 return 0;
8155 ;
8156 return 0;
8157 }
8158 _ACEOF
8159 rm -f conftest.$ac_objext
8160 if { (ac_try="$ac_compile"
8161 case "(($ac_try" in
8162 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8163 *) ac_try_echo=$ac_try;;
8164 esac
8165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8166 (eval "$ac_compile") 2>conftest.er1
8167 ac_status=$?
8168 grep -v '^ *+' conftest.er1 >conftest.err
8169 rm -f conftest.er1
8170 cat conftest.err >&5
8171 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8172 (exit $ac_status); } && {
8173 test -z "$ac_c_werror_flag" ||
8174 test ! -s conftest.err
8175 } && test -s conftest.$ac_objext; then
8176 ac_cv_member_struct_ifreq_ifr_flags=yes
8177 else
8178 echo "$as_me: failed program was:" >&5
8179 sed 's/^/| /' conftest.$ac_ext >&5
8180
8181 ac_cv_member_struct_ifreq_ifr_flags=no
8182 fi
8183
8184 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8185 fi
8186
8187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8188 fi
8189 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8190 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8191 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8192
8193 cat >>confdefs.h <<_ACEOF
8194 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8195 _ACEOF
8196
8197
8198 fi
8199 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8200 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8201 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8202 echo $ECHO_N "(cached) $ECHO_C" >&6
8203 else
8204 cat >conftest.$ac_ext <<_ACEOF
8205 /* confdefs.h. */
8206 _ACEOF
8207 cat confdefs.h >>conftest.$ac_ext
8208 cat >>conftest.$ac_ext <<_ACEOF
8209 /* end confdefs.h. */
8210 $ac_includes_default
8211 #if HAVE_SYS_SOCKET_H
8212 #include <sys/socket.h>
8213 #endif
8214 #if HAVE_NET_IF_H
8215 #include <net/if.h>
8216 #endif
8217
8218 int
8219 main ()
8220 {
8221 static struct ifreq ac_aggr;
8222 if (ac_aggr.ifr_hwaddr)
8223 return 0;
8224 ;
8225 return 0;
8226 }
8227 _ACEOF
8228 rm -f conftest.$ac_objext
8229 if { (ac_try="$ac_compile"
8230 case "(($ac_try" in
8231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8232 *) ac_try_echo=$ac_try;;
8233 esac
8234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8235 (eval "$ac_compile") 2>conftest.er1
8236 ac_status=$?
8237 grep -v '^ *+' conftest.er1 >conftest.err
8238 rm -f conftest.er1
8239 cat conftest.err >&5
8240 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8241 (exit $ac_status); } && {
8242 test -z "$ac_c_werror_flag" ||
8243 test ! -s conftest.err
8244 } && test -s conftest.$ac_objext; then
8245 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8246 else
8247 echo "$as_me: failed program was:" >&5
8248 sed 's/^/| /' conftest.$ac_ext >&5
8249
8250 cat >conftest.$ac_ext <<_ACEOF
8251 /* confdefs.h. */
8252 _ACEOF
8253 cat confdefs.h >>conftest.$ac_ext
8254 cat >>conftest.$ac_ext <<_ACEOF
8255 /* end confdefs.h. */
8256 $ac_includes_default
8257 #if HAVE_SYS_SOCKET_H
8258 #include <sys/socket.h>
8259 #endif
8260 #if HAVE_NET_IF_H
8261 #include <net/if.h>
8262 #endif
8263
8264 int
8265 main ()
8266 {
8267 static struct ifreq ac_aggr;
8268 if (sizeof ac_aggr.ifr_hwaddr)
8269 return 0;
8270 ;
8271 return 0;
8272 }
8273 _ACEOF
8274 rm -f conftest.$ac_objext
8275 if { (ac_try="$ac_compile"
8276 case "(($ac_try" in
8277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8278 *) ac_try_echo=$ac_try;;
8279 esac
8280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8281 (eval "$ac_compile") 2>conftest.er1
8282 ac_status=$?
8283 grep -v '^ *+' conftest.er1 >conftest.err
8284 rm -f conftest.er1
8285 cat conftest.err >&5
8286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8287 (exit $ac_status); } && {
8288 test -z "$ac_c_werror_flag" ||
8289 test ! -s conftest.err
8290 } && test -s conftest.$ac_objext; then
8291 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8292 else
8293 echo "$as_me: failed program was:" >&5
8294 sed 's/^/| /' conftest.$ac_ext >&5
8295
8296 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8297 fi
8298
8299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8300 fi
8301
8302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8303 fi
8304 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8305 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8306 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8307
8308 cat >>confdefs.h <<_ACEOF
8309 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8310 _ACEOF
8311
8312
8313 fi
8314 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8315 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8316 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8317 echo $ECHO_N "(cached) $ECHO_C" >&6
8318 else
8319 cat >conftest.$ac_ext <<_ACEOF
8320 /* confdefs.h. */
8321 _ACEOF
8322 cat confdefs.h >>conftest.$ac_ext
8323 cat >>conftest.$ac_ext <<_ACEOF
8324 /* end confdefs.h. */
8325 $ac_includes_default
8326 #if HAVE_SYS_SOCKET_H
8327 #include <sys/socket.h>
8328 #endif
8329 #if HAVE_NET_IF_H
8330 #include <net/if.h>
8331 #endif
8332
8333 int
8334 main ()
8335 {
8336 static struct ifreq ac_aggr;
8337 if (ac_aggr.ifr_netmask)
8338 return 0;
8339 ;
8340 return 0;
8341 }
8342 _ACEOF
8343 rm -f conftest.$ac_objext
8344 if { (ac_try="$ac_compile"
8345 case "(($ac_try" in
8346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8347 *) ac_try_echo=$ac_try;;
8348 esac
8349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8350 (eval "$ac_compile") 2>conftest.er1
8351 ac_status=$?
8352 grep -v '^ *+' conftest.er1 >conftest.err
8353 rm -f conftest.er1
8354 cat conftest.err >&5
8355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8356 (exit $ac_status); } && {
8357 test -z "$ac_c_werror_flag" ||
8358 test ! -s conftest.err
8359 } && test -s conftest.$ac_objext; then
8360 ac_cv_member_struct_ifreq_ifr_netmask=yes
8361 else
8362 echo "$as_me: failed program was:" >&5
8363 sed 's/^/| /' conftest.$ac_ext >&5
8364
8365 cat >conftest.$ac_ext <<_ACEOF
8366 /* confdefs.h. */
8367 _ACEOF
8368 cat confdefs.h >>conftest.$ac_ext
8369 cat >>conftest.$ac_ext <<_ACEOF
8370 /* end confdefs.h. */
8371 $ac_includes_default
8372 #if HAVE_SYS_SOCKET_H
8373 #include <sys/socket.h>
8374 #endif
8375 #if HAVE_NET_IF_H
8376 #include <net/if.h>
8377 #endif
8378
8379 int
8380 main ()
8381 {
8382 static struct ifreq ac_aggr;
8383 if (sizeof ac_aggr.ifr_netmask)
8384 return 0;
8385 ;
8386 return 0;
8387 }
8388 _ACEOF
8389 rm -f conftest.$ac_objext
8390 if { (ac_try="$ac_compile"
8391 case "(($ac_try" in
8392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8393 *) ac_try_echo=$ac_try;;
8394 esac
8395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8396 (eval "$ac_compile") 2>conftest.er1
8397 ac_status=$?
8398 grep -v '^ *+' conftest.er1 >conftest.err
8399 rm -f conftest.er1
8400 cat conftest.err >&5
8401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8402 (exit $ac_status); } && {
8403 test -z "$ac_c_werror_flag" ||
8404 test ! -s conftest.err
8405 } && test -s conftest.$ac_objext; then
8406 ac_cv_member_struct_ifreq_ifr_netmask=yes
8407 else
8408 echo "$as_me: failed program was:" >&5
8409 sed 's/^/| /' conftest.$ac_ext >&5
8410
8411 ac_cv_member_struct_ifreq_ifr_netmask=no
8412 fi
8413
8414 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8415 fi
8416
8417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8418 fi
8419 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8420 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8421 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8422
8423 cat >>confdefs.h <<_ACEOF
8424 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8425 _ACEOF
8426
8427
8428 fi
8429 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8430 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8431 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8432 echo $ECHO_N "(cached) $ECHO_C" >&6
8433 else
8434 cat >conftest.$ac_ext <<_ACEOF
8435 /* confdefs.h. */
8436 _ACEOF
8437 cat confdefs.h >>conftest.$ac_ext
8438 cat >>conftest.$ac_ext <<_ACEOF
8439 /* end confdefs.h. */
8440 $ac_includes_default
8441 #if HAVE_SYS_SOCKET_H
8442 #include <sys/socket.h>
8443 #endif
8444 #if HAVE_NET_IF_H
8445 #include <net/if.h>
8446 #endif
8447
8448 int
8449 main ()
8450 {
8451 static struct ifreq ac_aggr;
8452 if (ac_aggr.ifr_broadaddr)
8453 return 0;
8454 ;
8455 return 0;
8456 }
8457 _ACEOF
8458 rm -f conftest.$ac_objext
8459 if { (ac_try="$ac_compile"
8460 case "(($ac_try" in
8461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8462 *) ac_try_echo=$ac_try;;
8463 esac
8464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8465 (eval "$ac_compile") 2>conftest.er1
8466 ac_status=$?
8467 grep -v '^ *+' conftest.er1 >conftest.err
8468 rm -f conftest.er1
8469 cat conftest.err >&5
8470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8471 (exit $ac_status); } && {
8472 test -z "$ac_c_werror_flag" ||
8473 test ! -s conftest.err
8474 } && test -s conftest.$ac_objext; then
8475 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8476 else
8477 echo "$as_me: failed program was:" >&5
8478 sed 's/^/| /' conftest.$ac_ext >&5
8479
8480 cat >conftest.$ac_ext <<_ACEOF
8481 /* confdefs.h. */
8482 _ACEOF
8483 cat confdefs.h >>conftest.$ac_ext
8484 cat >>conftest.$ac_ext <<_ACEOF
8485 /* end confdefs.h. */
8486 $ac_includes_default
8487 #if HAVE_SYS_SOCKET_H
8488 #include <sys/socket.h>
8489 #endif
8490 #if HAVE_NET_IF_H
8491 #include <net/if.h>
8492 #endif
8493
8494 int
8495 main ()
8496 {
8497 static struct ifreq ac_aggr;
8498 if (sizeof ac_aggr.ifr_broadaddr)
8499 return 0;
8500 ;
8501 return 0;
8502 }
8503 _ACEOF
8504 rm -f conftest.$ac_objext
8505 if { (ac_try="$ac_compile"
8506 case "(($ac_try" in
8507 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8508 *) ac_try_echo=$ac_try;;
8509 esac
8510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8511 (eval "$ac_compile") 2>conftest.er1
8512 ac_status=$?
8513 grep -v '^ *+' conftest.er1 >conftest.err
8514 rm -f conftest.er1
8515 cat conftest.err >&5
8516 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8517 (exit $ac_status); } && {
8518 test -z "$ac_c_werror_flag" ||
8519 test ! -s conftest.err
8520 } && test -s conftest.$ac_objext; then
8521 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8522 else
8523 echo "$as_me: failed program was:" >&5
8524 sed 's/^/| /' conftest.$ac_ext >&5
8525
8526 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8527 fi
8528
8529 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8530 fi
8531
8532 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8533 fi
8534 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8535 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8536 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8537
8538 cat >>confdefs.h <<_ACEOF
8539 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8540 _ACEOF
8541
8542
8543 fi
8544 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8545 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8546 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8547 echo $ECHO_N "(cached) $ECHO_C" >&6
8548 else
8549 cat >conftest.$ac_ext <<_ACEOF
8550 /* confdefs.h. */
8551 _ACEOF
8552 cat confdefs.h >>conftest.$ac_ext
8553 cat >>conftest.$ac_ext <<_ACEOF
8554 /* end confdefs.h. */
8555 $ac_includes_default
8556 #if HAVE_SYS_SOCKET_H
8557 #include <sys/socket.h>
8558 #endif
8559 #if HAVE_NET_IF_H
8560 #include <net/if.h>
8561 #endif
8562
8563 int
8564 main ()
8565 {
8566 static struct ifreq ac_aggr;
8567 if (ac_aggr.ifr_addr)
8568 return 0;
8569 ;
8570 return 0;
8571 }
8572 _ACEOF
8573 rm -f conftest.$ac_objext
8574 if { (ac_try="$ac_compile"
8575 case "(($ac_try" in
8576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8577 *) ac_try_echo=$ac_try;;
8578 esac
8579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8580 (eval "$ac_compile") 2>conftest.er1
8581 ac_status=$?
8582 grep -v '^ *+' conftest.er1 >conftest.err
8583 rm -f conftest.er1
8584 cat conftest.err >&5
8585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8586 (exit $ac_status); } && {
8587 test -z "$ac_c_werror_flag" ||
8588 test ! -s conftest.err
8589 } && test -s conftest.$ac_objext; then
8590 ac_cv_member_struct_ifreq_ifr_addr=yes
8591 else
8592 echo "$as_me: failed program was:" >&5
8593 sed 's/^/| /' conftest.$ac_ext >&5
8594
8595 cat >conftest.$ac_ext <<_ACEOF
8596 /* confdefs.h. */
8597 _ACEOF
8598 cat confdefs.h >>conftest.$ac_ext
8599 cat >>conftest.$ac_ext <<_ACEOF
8600 /* end confdefs.h. */
8601 $ac_includes_default
8602 #if HAVE_SYS_SOCKET_H
8603 #include <sys/socket.h>
8604 #endif
8605 #if HAVE_NET_IF_H
8606 #include <net/if.h>
8607 #endif
8608
8609 int
8610 main ()
8611 {
8612 static struct ifreq ac_aggr;
8613 if (sizeof ac_aggr.ifr_addr)
8614 return 0;
8615 ;
8616 return 0;
8617 }
8618 _ACEOF
8619 rm -f conftest.$ac_objext
8620 if { (ac_try="$ac_compile"
8621 case "(($ac_try" in
8622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8623 *) ac_try_echo=$ac_try;;
8624 esac
8625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8626 (eval "$ac_compile") 2>conftest.er1
8627 ac_status=$?
8628 grep -v '^ *+' conftest.er1 >conftest.err
8629 rm -f conftest.er1
8630 cat conftest.err >&5
8631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8632 (exit $ac_status); } && {
8633 test -z "$ac_c_werror_flag" ||
8634 test ! -s conftest.err
8635 } && test -s conftest.$ac_objext; then
8636 ac_cv_member_struct_ifreq_ifr_addr=yes
8637 else
8638 echo "$as_me: failed program was:" >&5
8639 sed 's/^/| /' conftest.$ac_ext >&5
8640
8641 ac_cv_member_struct_ifreq_ifr_addr=no
8642 fi
8643
8644 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8645 fi
8646
8647 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8648 fi
8649 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8650 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8651 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8652
8653 cat >>confdefs.h <<_ACEOF
8654 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8655 _ACEOF
8656
8657
8658 fi
8659
8660
8661
8662 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8663 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8664 if test "$ac_cv_prog_cc_c89" != no; then
8665 { echo "$as_me:$LINENO: result: yes" >&5
8666 echo "${ECHO_T}yes" >&6; }
8667
8668 cat >>confdefs.h <<\_ACEOF
8669 #define PROTOTYPES 1
8670 _ACEOF
8671
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define __PROTOTYPES 1
8675 _ACEOF
8676
8677 else
8678 { echo "$as_me:$LINENO: result: no" >&5
8679 echo "${ECHO_T}no" >&6; }
8680 fi
8681
8682 { echo "$as_me:$LINENO: checking for working volatile" >&5
8683 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8684 if test "${ac_cv_c_volatile+set}" = set; then
8685 echo $ECHO_N "(cached) $ECHO_C" >&6
8686 else
8687 cat >conftest.$ac_ext <<_ACEOF
8688 /* confdefs.h. */
8689 _ACEOF
8690 cat confdefs.h >>conftest.$ac_ext
8691 cat >>conftest.$ac_ext <<_ACEOF
8692 /* end confdefs.h. */
8693
8694 int
8695 main ()
8696 {
8697
8698 volatile int x;
8699 int * volatile y = (int *) 0;
8700 return !x && !y;
8701 ;
8702 return 0;
8703 }
8704 _ACEOF
8705 rm -f conftest.$ac_objext
8706 if { (ac_try="$ac_compile"
8707 case "(($ac_try" in
8708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8709 *) ac_try_echo=$ac_try;;
8710 esac
8711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8712 (eval "$ac_compile") 2>conftest.er1
8713 ac_status=$?
8714 grep -v '^ *+' conftest.er1 >conftest.err
8715 rm -f conftest.er1
8716 cat conftest.err >&5
8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8718 (exit $ac_status); } && {
8719 test -z "$ac_c_werror_flag" ||
8720 test ! -s conftest.err
8721 } && test -s conftest.$ac_objext; then
8722 ac_cv_c_volatile=yes
8723 else
8724 echo "$as_me: failed program was:" >&5
8725 sed 's/^/| /' conftest.$ac_ext >&5
8726
8727 ac_cv_c_volatile=no
8728 fi
8729
8730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8731 fi
8732 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8733 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8734 if test $ac_cv_c_volatile = no; then
8735
8736 cat >>confdefs.h <<\_ACEOF
8737 #define volatile
8738 _ACEOF
8739
8740 fi
8741
8742 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8743 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8744 if test "${ac_cv_c_const+set}" = set; then
8745 echo $ECHO_N "(cached) $ECHO_C" >&6
8746 else
8747 cat >conftest.$ac_ext <<_ACEOF
8748 /* confdefs.h. */
8749 _ACEOF
8750 cat confdefs.h >>conftest.$ac_ext
8751 cat >>conftest.$ac_ext <<_ACEOF
8752 /* end confdefs.h. */
8753
8754 int
8755 main ()
8756 {
8757 /* FIXME: Include the comments suggested by Paul. */
8758 #ifndef __cplusplus
8759 /* Ultrix mips cc rejects this. */
8760 typedef int charset[2];
8761 const charset cs;
8762 /* SunOS 4.1.1 cc rejects this. */
8763 char const *const *pcpcc;
8764 char **ppc;
8765 /* NEC SVR4.0.2 mips cc rejects this. */
8766 struct point {int x, y;};
8767 static struct point const zero = {0,0};
8768 /* AIX XL C 1.02.0.0 rejects this.
8769 It does not let you subtract one const X* pointer from another in
8770 an arm of an if-expression whose if-part is not a constant
8771 expression */
8772 const char *g = "string";
8773 pcpcc = &g + (g ? g-g : 0);
8774 /* HPUX 7.0 cc rejects these. */
8775 ++pcpcc;
8776 ppc = (char**) pcpcc;
8777 pcpcc = (char const *const *) ppc;
8778 { /* SCO 3.2v4 cc rejects this. */
8779 char *t;
8780 char const *s = 0 ? (char *) 0 : (char const *) 0;
8781
8782 *t++ = 0;
8783 if (s) return 0;
8784 }
8785 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8786 int x[] = {25, 17};
8787 const int *foo = &x[0];
8788 ++foo;
8789 }
8790 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8791 typedef const int *iptr;
8792 iptr p = 0;
8793 ++p;
8794 }
8795 { /* AIX XL C 1.02.0.0 rejects this saying
8796 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8797 struct s { int j; const int *ap[3]; };
8798 struct s *b; b->j = 5;
8799 }
8800 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8801 const int foo = 10;
8802 if (!foo) return 0;
8803 }
8804 return !cs[0] && !zero.x;
8805 #endif
8806
8807 ;
8808 return 0;
8809 }
8810 _ACEOF
8811 rm -f conftest.$ac_objext
8812 if { (ac_try="$ac_compile"
8813 case "(($ac_try" in
8814 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8815 *) ac_try_echo=$ac_try;;
8816 esac
8817 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8818 (eval "$ac_compile") 2>conftest.er1
8819 ac_status=$?
8820 grep -v '^ *+' conftest.er1 >conftest.err
8821 rm -f conftest.er1
8822 cat conftest.err >&5
8823 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8824 (exit $ac_status); } && {
8825 test -z "$ac_c_werror_flag" ||
8826 test ! -s conftest.err
8827 } && test -s conftest.$ac_objext; then
8828 ac_cv_c_const=yes
8829 else
8830 echo "$as_me: failed program was:" >&5
8831 sed 's/^/| /' conftest.$ac_ext >&5
8832
8833 ac_cv_c_const=no
8834 fi
8835
8836 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8837 fi
8838 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8839 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8840 if test $ac_cv_c_const = no; then
8841
8842 cat >>confdefs.h <<\_ACEOF
8843 #define const
8844 _ACEOF
8845
8846 fi
8847
8848 { echo "$as_me:$LINENO: checking for void * support" >&5
8849 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8850 if test "${emacs_cv_void_star+set}" = set; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 cat >conftest.$ac_ext <<_ACEOF
8854 /* confdefs.h. */
8855 _ACEOF
8856 cat confdefs.h >>conftest.$ac_ext
8857 cat >>conftest.$ac_ext <<_ACEOF
8858 /* end confdefs.h. */
8859
8860 int
8861 main ()
8862 {
8863 void * foo;
8864 ;
8865 return 0;
8866 }
8867 _ACEOF
8868 rm -f conftest.$ac_objext
8869 if { (ac_try="$ac_compile"
8870 case "(($ac_try" in
8871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8872 *) ac_try_echo=$ac_try;;
8873 esac
8874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8875 (eval "$ac_compile") 2>conftest.er1
8876 ac_status=$?
8877 grep -v '^ *+' conftest.er1 >conftest.err
8878 rm -f conftest.er1
8879 cat conftest.err >&5
8880 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8881 (exit $ac_status); } && {
8882 test -z "$ac_c_werror_flag" ||
8883 test ! -s conftest.err
8884 } && test -s conftest.$ac_objext; then
8885 emacs_cv_void_star=yes
8886 else
8887 echo "$as_me: failed program was:" >&5
8888 sed 's/^/| /' conftest.$ac_ext >&5
8889
8890 emacs_cv_void_star=no
8891 fi
8892
8893 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8894 fi
8895 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8896 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8897 if test $emacs_cv_void_star = yes; then
8898 cat >>confdefs.h <<\_ACEOF
8899 #define POINTER_TYPE void
8900 _ACEOF
8901
8902 else
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE char
8905 _ACEOF
8906
8907 fi
8908
8909
8910
8911
8912
8913 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8914 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8915 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8916 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8917 echo $ECHO_N "(cached) $ECHO_C" >&6
8918 else
8919 cat >conftest.make <<\_ACEOF
8920 SHELL = /bin/sh
8921 all:
8922 @echo '@@@%%%=$(MAKE)=@@@%%%'
8923 _ACEOF
8924 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8925 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8926 *@@@%%%=?*=@@@%%%*)
8927 eval ac_cv_prog_make_${ac_make}_set=yes;;
8928 *)
8929 eval ac_cv_prog_make_${ac_make}_set=no;;
8930 esac
8931 rm -f conftest.make
8932 fi
8933 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8934 { echo "$as_me:$LINENO: result: yes" >&5
8935 echo "${ECHO_T}yes" >&6; }
8936 SET_MAKE=
8937 else
8938 { echo "$as_me:$LINENO: result: no" >&5
8939 echo "${ECHO_T}no" >&6; }
8940 SET_MAKE="MAKE=${MAKE-make}"
8941 fi
8942
8943
8944 { echo "$as_me:$LINENO: checking for long file names" >&5
8945 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8946 if test "${ac_cv_sys_long_file_names+set}" = set; then
8947 echo $ECHO_N "(cached) $ECHO_C" >&6
8948 else
8949 ac_cv_sys_long_file_names=yes
8950 # Test for long file names in all the places we know might matter:
8951 # . the current directory, where building will happen
8952 # $prefix/lib where we will be installing things
8953 # $exec_prefix/lib likewise
8954 # $TMPDIR if set, where it might want to write temporary files
8955 # /tmp where it might want to write temporary files
8956 # /var/tmp likewise
8957 # /usr/tmp likewise
8958 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8959 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8960 # in the usual case where exec_prefix is '${prefix}'.
8961 case $ac_dir in #(
8962 . | /* | ?:[\\/]*) ;; #(
8963 *) continue;;
8964 esac
8965 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8966 ac_xdir=$ac_dir/cf$$
8967 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8968 ac_tf1=$ac_xdir/conftest9012345
8969 ac_tf2=$ac_xdir/conftest9012346
8970 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8971 ac_cv_sys_long_file_names=no
8972 rm -f -r "$ac_xdir" 2>/dev/null
8973 test $ac_cv_sys_long_file_names = no && break
8974 done
8975 fi
8976 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8977 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8978 if test $ac_cv_sys_long_file_names = yes; then
8979
8980 cat >>confdefs.h <<\_ACEOF
8981 #define HAVE_LONG_FILE_NAMES 1
8982 _ACEOF
8983
8984 fi
8985
8986
8987 #### Choose a window system.
8988
8989 { echo "$as_me:$LINENO: checking for X" >&5
8990 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8991
8992
8993 # Check whether --with-x was given.
8994 if test "${with_x+set}" = set; then
8995 withval=$with_x;
8996 fi
8997
8998 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8999 if test "x$with_x" = xno; then
9000 # The user explicitly disabled X.
9001 have_x=disabled
9002 else
9003 case $x_includes,$x_libraries in #(
9004 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9005 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9006 { (exit 1); exit 1; }; };; #(
9007 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9008 echo $ECHO_N "(cached) $ECHO_C" >&6
9009 else
9010 # One or both of the vars are not set, and there is no cached value.
9011 ac_x_includes=no ac_x_libraries=no
9012 rm -f -r conftest.dir
9013 if mkdir conftest.dir; then
9014 cd conftest.dir
9015 cat >Imakefile <<'_ACEOF'
9016 incroot:
9017 @echo incroot='${INCROOT}'
9018 usrlibdir:
9019 @echo usrlibdir='${USRLIBDIR}'
9020 libdir:
9021 @echo libdir='${LIBDIR}'
9022 _ACEOF
9023 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9024 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9025 for ac_var in incroot usrlibdir libdir; do
9026 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9027 done
9028 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9029 for ac_extension in a so sl; do
9030 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9031 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9032 ac_im_usrlibdir=$ac_im_libdir; break
9033 fi
9034 done
9035 # Screen out bogus values from the imake configuration. They are
9036 # bogus both because they are the default anyway, and because
9037 # using them would break gcc on systems where it needs fixed includes.
9038 case $ac_im_incroot in
9039 /usr/include) ac_x_includes= ;;
9040 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9041 esac
9042 case $ac_im_usrlibdir in
9043 /usr/lib | /lib) ;;
9044 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9045 esac
9046 fi
9047 cd ..
9048 rm -f -r conftest.dir
9049 fi
9050
9051 # Standard set of common directories for X headers.
9052 # Check X11 before X11Rn because it is often a symlink to the current release.
9053 ac_x_header_dirs='
9054 /usr/X11/include
9055 /usr/X11R6/include
9056 /usr/X11R5/include
9057 /usr/X11R4/include
9058
9059 /usr/include/X11
9060 /usr/include/X11R6
9061 /usr/include/X11R5
9062 /usr/include/X11R4
9063
9064 /usr/local/X11/include
9065 /usr/local/X11R6/include
9066 /usr/local/X11R5/include
9067 /usr/local/X11R4/include
9068
9069 /usr/local/include/X11
9070 /usr/local/include/X11R6
9071 /usr/local/include/X11R5
9072 /usr/local/include/X11R4
9073
9074 /usr/X386/include
9075 /usr/x386/include
9076 /usr/XFree86/include/X11
9077
9078 /usr/include
9079 /usr/local/include
9080 /usr/unsupported/include
9081 /usr/athena/include
9082 /usr/local/x11r5/include
9083 /usr/lpp/Xamples/include
9084
9085 /usr/openwin/include
9086 /usr/openwin/share/include'
9087
9088 if test "$ac_x_includes" = no; then
9089 # Guess where to find include files, by looking for Xlib.h.
9090 # First, try using that file with no special directory specified.
9091 cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h. */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h. */
9097 #include <X11/Xlib.h>
9098 _ACEOF
9099 if { (ac_try="$ac_cpp conftest.$ac_ext"
9100 case "(($ac_try" in
9101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9102 *) ac_try_echo=$ac_try;;
9103 esac
9104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9106 ac_status=$?
9107 grep -v '^ *+' conftest.er1 >conftest.err
9108 rm -f conftest.er1
9109 cat conftest.err >&5
9110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9111 (exit $ac_status); } >/dev/null && {
9112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9113 test ! -s conftest.err
9114 }; then
9115 # We can compile using X headers with no special include directory.
9116 ac_x_includes=
9117 else
9118 echo "$as_me: failed program was:" >&5
9119 sed 's/^/| /' conftest.$ac_ext >&5
9120
9121 for ac_dir in $ac_x_header_dirs; do
9122 if test -r "$ac_dir/X11/Xlib.h"; then
9123 ac_x_includes=$ac_dir
9124 break
9125 fi
9126 done
9127 fi
9128
9129 rm -f conftest.err conftest.$ac_ext
9130 fi # $ac_x_includes = no
9131
9132 if test "$ac_x_libraries" = no; then
9133 # Check for the libraries.
9134 # See if we find them without any special options.
9135 # Don't add to $LIBS permanently.
9136 ac_save_LIBS=$LIBS
9137 LIBS="-lX11 $LIBS"
9138 cat >conftest.$ac_ext <<_ACEOF
9139 /* confdefs.h. */
9140 _ACEOF
9141 cat confdefs.h >>conftest.$ac_ext
9142 cat >>conftest.$ac_ext <<_ACEOF
9143 /* end confdefs.h. */
9144 #include <X11/Xlib.h>
9145 int
9146 main ()
9147 {
9148 XrmInitialize ()
9149 ;
9150 return 0;
9151 }
9152 _ACEOF
9153 rm -f conftest.$ac_objext conftest$ac_exeext
9154 if { (ac_try="$ac_link"
9155 case "(($ac_try" in
9156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9157 *) ac_try_echo=$ac_try;;
9158 esac
9159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9160 (eval "$ac_link") 2>conftest.er1
9161 ac_status=$?
9162 grep -v '^ *+' conftest.er1 >conftest.err
9163 rm -f conftest.er1
9164 cat conftest.err >&5
9165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9166 (exit $ac_status); } && {
9167 test -z "$ac_c_werror_flag" ||
9168 test ! -s conftest.err
9169 } && test -s conftest$ac_exeext &&
9170 $as_test_x conftest$ac_exeext; then
9171 LIBS=$ac_save_LIBS
9172 # We can link X programs with no special library path.
9173 ac_x_libraries=
9174 else
9175 echo "$as_me: failed program was:" >&5
9176 sed 's/^/| /' conftest.$ac_ext >&5
9177
9178 LIBS=$ac_save_LIBS
9179 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9180 do
9181 # Don't even attempt the hair of trying to link an X program!
9182 for ac_extension in a so sl; do
9183 if test -r "$ac_dir/libX11.$ac_extension"; then
9184 ac_x_libraries=$ac_dir
9185 break 2
9186 fi
9187 done
9188 done
9189 fi
9190
9191 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9192 conftest$ac_exeext conftest.$ac_ext
9193 fi # $ac_x_libraries = no
9194
9195 case $ac_x_includes,$ac_x_libraries in #(
9196 no,* | *,no | *\'*)
9197 # Didn't find X, or a directory has "'" in its name.
9198 ac_cv_have_x="have_x=no";; #(
9199 *)
9200 # Record where we found X for the cache.
9201 ac_cv_have_x="have_x=yes\
9202 ac_x_includes='$ac_x_includes'\
9203 ac_x_libraries='$ac_x_libraries'"
9204 esac
9205 fi
9206 ;; #(
9207 *) have_x=yes;;
9208 esac
9209 eval "$ac_cv_have_x"
9210 fi # $with_x != no
9211
9212 if test "$have_x" != yes; then
9213 { echo "$as_me:$LINENO: result: $have_x" >&5
9214 echo "${ECHO_T}$have_x" >&6; }
9215 no_x=yes
9216 else
9217 # If each of the values was on the command line, it overrides each guess.
9218 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9219 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9220 # Update the cache value to reflect the command line values.
9221 ac_cv_have_x="have_x=yes\
9222 ac_x_includes='$x_includes'\
9223 ac_x_libraries='$x_libraries'"
9224 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9225 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9226 fi
9227
9228 if test "$no_x" = yes; then
9229 window_system=none
9230 else
9231 window_system=x11
9232 fi
9233
9234 if test "${x_libraries}" != NONE; then
9235 if test -n "${x_libraries}"; then
9236 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9237 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9238 fi
9239 x_default_search_path=""
9240 x_search_path=${x_libraries}
9241 if test -z "${x_search_path}"; then
9242 x_search_path=/usr/lib
9243 fi
9244 for x_library in `echo ${x_search_path}: | \
9245 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9246 x_search_path="\
9247 ${x_library}/X11/%L/%T/%N%C%S:\
9248 ${x_library}/X11/%l/%T/%N%C%S:\
9249 ${x_library}/X11/%T/%N%C%S:\
9250 ${x_library}/X11/%L/%T/%N%S:\
9251 ${x_library}/X11/%l/%T/%N%S:\
9252 ${x_library}/X11/%T/%N%S"
9253 if test x"${x_default_search_path}" = x; then
9254 x_default_search_path=${x_search_path}
9255 else
9256 x_default_search_path="${x_search_path}:${x_default_search_path}"
9257 fi
9258 done
9259 fi
9260 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9261 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9262 fi
9263
9264 if test x"${x_includes}" = x; then
9265 bitmapdir=/usr/include/X11/bitmaps
9266 else
9267 # accumulate include directories that have X11 bitmap subdirectories
9268 bmd_acc="dummyval"
9269 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9270 if test -d "${bmd}/X11/bitmaps"; then
9271 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9272 fi
9273 if test -d "${bmd}/bitmaps"; then
9274 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9275 fi
9276 done
9277 if test ${bmd_acc} != "dummyval"; then
9278 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9279 fi
9280 fi
9281
9282 HAVE_CARBON=no
9283 if test "${with_carbon}" != no; then
9284 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9285 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9286 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9287 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9288 echo $ECHO_N "(cached) $ECHO_C" >&6
9289 fi
9290 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9291 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9292 else
9293 # Is the header compilable?
9294 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9295 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9296 cat >conftest.$ac_ext <<_ACEOF
9297 /* confdefs.h. */
9298 _ACEOF
9299 cat confdefs.h >>conftest.$ac_ext
9300 cat >>conftest.$ac_ext <<_ACEOF
9301 /* end confdefs.h. */
9302 $ac_includes_default
9303 #include <Carbon/Carbon.h>
9304 _ACEOF
9305 rm -f conftest.$ac_objext
9306 if { (ac_try="$ac_compile"
9307 case "(($ac_try" in
9308 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9309 *) ac_try_echo=$ac_try;;
9310 esac
9311 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9312 (eval "$ac_compile") 2>conftest.er1
9313 ac_status=$?
9314 grep -v '^ *+' conftest.er1 >conftest.err
9315 rm -f conftest.er1
9316 cat conftest.err >&5
9317 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9318 (exit $ac_status); } && {
9319 test -z "$ac_c_werror_flag" ||
9320 test ! -s conftest.err
9321 } && test -s conftest.$ac_objext; then
9322 ac_header_compiler=yes
9323 else
9324 echo "$as_me: failed program was:" >&5
9325 sed 's/^/| /' conftest.$ac_ext >&5
9326
9327 ac_header_compiler=no
9328 fi
9329
9330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9331 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9332 echo "${ECHO_T}$ac_header_compiler" >&6; }
9333
9334 # Is the header present?
9335 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9336 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9337 cat >conftest.$ac_ext <<_ACEOF
9338 /* confdefs.h. */
9339 _ACEOF
9340 cat confdefs.h >>conftest.$ac_ext
9341 cat >>conftest.$ac_ext <<_ACEOF
9342 /* end confdefs.h. */
9343 #include <Carbon/Carbon.h>
9344 _ACEOF
9345 if { (ac_try="$ac_cpp conftest.$ac_ext"
9346 case "(($ac_try" in
9347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9348 *) ac_try_echo=$ac_try;;
9349 esac
9350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9351 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9352 ac_status=$?
9353 grep -v '^ *+' conftest.er1 >conftest.err
9354 rm -f conftest.er1
9355 cat conftest.err >&5
9356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9357 (exit $ac_status); } >/dev/null && {
9358 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9359 test ! -s conftest.err
9360 }; then
9361 ac_header_preproc=yes
9362 else
9363 echo "$as_me: failed program was:" >&5
9364 sed 's/^/| /' conftest.$ac_ext >&5
9365
9366 ac_header_preproc=no
9367 fi
9368
9369 rm -f conftest.err conftest.$ac_ext
9370 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9371 echo "${ECHO_T}$ac_header_preproc" >&6; }
9372
9373 # So? What about this header?
9374 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9375 yes:no: )
9376 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9377 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9378 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9379 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9380 ac_header_preproc=yes
9381 ;;
9382 no:yes:* )
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9385 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9386 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9387 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9388 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9389 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9390 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9391 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9392 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9393 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9394 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9395
9396 ;;
9397 esac
9398 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9399 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9400 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9401 echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9404 fi
9405 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9406 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9407
9408 fi
9409 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9410 HAVE_CARBON=yes
9411 fi
9412
9413
9414 fi
9415 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9416 if test "${with_carbon+set}" != set \
9417 && test "${carbon_appdir_x+set}" != set; then
9418 for var in with_x with_x_toolkit with_gtk with_xim \
9419 with_xpm with_jpeg with_tiff with_gif with_png; do
9420 if eval test \"\${$var+set}\" = set; then
9421 HAVE_CARBON=no
9422 break
9423 fi
9424 done
9425 fi
9426 fi
9427 if test "${HAVE_CARBON}" = yes; then
9428 window_system=mac
9429 fi
9430
9431 case "${window_system}" in
9432 x11 )
9433 HAVE_X_WINDOWS=yes
9434 HAVE_X11=yes
9435 case "${with_x_toolkit}" in
9436 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9437 motif ) USE_X_TOOLKIT=MOTIF ;;
9438 gtk ) with_gtk=yes
9439 USE_X_TOOLKIT=none ;;
9440 no ) USE_X_TOOLKIT=none ;;
9441 * ) USE_X_TOOLKIT=maybe ;;
9442 esac
9443 ;;
9444 mac | none )
9445 HAVE_X_WINDOWS=no
9446 HAVE_X11=no
9447 USE_X_TOOLKIT=none
9448 ;;
9449 esac
9450
9451 ### If we're using X11, we should use the X menu package.
9452 HAVE_MENUS=no
9453 case ${HAVE_X11} in
9454 yes ) HAVE_MENUS=yes ;;
9455 esac
9456
9457 if test "${opsys}" = "hpux9"; then
9458 case "${x_libraries}" in
9459 *X11R4* )
9460 opsysfile="s/hpux9-x11r4.h"
9461 ;;
9462 esac
9463 fi
9464
9465 if test "${opsys}" = "hpux9shr"; then
9466 case "${x_libraries}" in
9467 *X11R4* )
9468 opsysfile="s/hpux9shxr4.h"
9469 ;;
9470 esac
9471 fi
9472
9473 ### Compute the unexec source name from the object name.
9474 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9475
9476 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9477 # Assume not, until told otherwise.
9478 GNU_MALLOC=yes
9479 doug_lea_malloc=yes
9480 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9481 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9482 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9483 echo $ECHO_N "(cached) $ECHO_C" >&6
9484 else
9485 cat >conftest.$ac_ext <<_ACEOF
9486 /* confdefs.h. */
9487 _ACEOF
9488 cat confdefs.h >>conftest.$ac_ext
9489 cat >>conftest.$ac_ext <<_ACEOF
9490 /* end confdefs.h. */
9491 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9492 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9493 #define malloc_get_state innocuous_malloc_get_state
9494
9495 /* System header to define __stub macros and hopefully few prototypes,
9496 which can conflict with char malloc_get_state (); below.
9497 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9498 <limits.h> exists even on freestanding compilers. */
9499
9500 #ifdef __STDC__
9501 # include <limits.h>
9502 #else
9503 # include <assert.h>
9504 #endif
9505
9506 #undef malloc_get_state
9507
9508 /* Override any GCC internal prototype to avoid an error.
9509 Use char because int might match the return type of a GCC
9510 builtin and then its argument prototype would still apply. */
9511 #ifdef __cplusplus
9512 extern "C"
9513 #endif
9514 char malloc_get_state ();
9515 /* The GNU C library defines this for functions which it implements
9516 to always fail with ENOSYS. Some functions are actually named
9517 something starting with __ and the normal name is an alias. */
9518 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9519 choke me
9520 #endif
9521
9522 int
9523 main ()
9524 {
9525 return malloc_get_state ();
9526 ;
9527 return 0;
9528 }
9529 _ACEOF
9530 rm -f conftest.$ac_objext conftest$ac_exeext
9531 if { (ac_try="$ac_link"
9532 case "(($ac_try" in
9533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9534 *) ac_try_echo=$ac_try;;
9535 esac
9536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9537 (eval "$ac_link") 2>conftest.er1
9538 ac_status=$?
9539 grep -v '^ *+' conftest.er1 >conftest.err
9540 rm -f conftest.er1
9541 cat conftest.err >&5
9542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9543 (exit $ac_status); } && {
9544 test -z "$ac_c_werror_flag" ||
9545 test ! -s conftest.err
9546 } && test -s conftest$ac_exeext &&
9547 $as_test_x conftest$ac_exeext; then
9548 ac_cv_func_malloc_get_state=yes
9549 else
9550 echo "$as_me: failed program was:" >&5
9551 sed 's/^/| /' conftest.$ac_ext >&5
9552
9553 ac_cv_func_malloc_get_state=no
9554 fi
9555
9556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9557 conftest$ac_exeext conftest.$ac_ext
9558 fi
9559 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9560 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9561 if test $ac_cv_func_malloc_get_state = yes; then
9562 :
9563 else
9564 doug_lea_malloc=no
9565 fi
9566
9567 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9568 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9569 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9570 echo $ECHO_N "(cached) $ECHO_C" >&6
9571 else
9572 cat >conftest.$ac_ext <<_ACEOF
9573 /* confdefs.h. */
9574 _ACEOF
9575 cat confdefs.h >>conftest.$ac_ext
9576 cat >>conftest.$ac_ext <<_ACEOF
9577 /* end confdefs.h. */
9578 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9579 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9580 #define malloc_set_state innocuous_malloc_set_state
9581
9582 /* System header to define __stub macros and hopefully few prototypes,
9583 which can conflict with char malloc_set_state (); below.
9584 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9585 <limits.h> exists even on freestanding compilers. */
9586
9587 #ifdef __STDC__
9588 # include <limits.h>
9589 #else
9590 # include <assert.h>
9591 #endif
9592
9593 #undef malloc_set_state
9594
9595 /* Override any GCC internal prototype to avoid an error.
9596 Use char because int might match the return type of a GCC
9597 builtin and then its argument prototype would still apply. */
9598 #ifdef __cplusplus
9599 extern "C"
9600 #endif
9601 char malloc_set_state ();
9602 /* The GNU C library defines this for functions which it implements
9603 to always fail with ENOSYS. Some functions are actually named
9604 something starting with __ and the normal name is an alias. */
9605 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9606 choke me
9607 #endif
9608
9609 int
9610 main ()
9611 {
9612 return malloc_set_state ();
9613 ;
9614 return 0;
9615 }
9616 _ACEOF
9617 rm -f conftest.$ac_objext conftest$ac_exeext
9618 if { (ac_try="$ac_link"
9619 case "(($ac_try" in
9620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9621 *) ac_try_echo=$ac_try;;
9622 esac
9623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9624 (eval "$ac_link") 2>conftest.er1
9625 ac_status=$?
9626 grep -v '^ *+' conftest.er1 >conftest.err
9627 rm -f conftest.er1
9628 cat conftest.err >&5
9629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9630 (exit $ac_status); } && {
9631 test -z "$ac_c_werror_flag" ||
9632 test ! -s conftest.err
9633 } && test -s conftest$ac_exeext &&
9634 $as_test_x conftest$ac_exeext; then
9635 ac_cv_func_malloc_set_state=yes
9636 else
9637 echo "$as_me: failed program was:" >&5
9638 sed 's/^/| /' conftest.$ac_ext >&5
9639
9640 ac_cv_func_malloc_set_state=no
9641 fi
9642
9643 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9644 conftest$ac_exeext conftest.$ac_ext
9645 fi
9646 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9647 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9648 if test $ac_cv_func_malloc_set_state = yes; then
9649 :
9650 else
9651 doug_lea_malloc=no
9652 fi
9653
9654 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9655 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9656 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9657 echo $ECHO_N "(cached) $ECHO_C" >&6
9658 else
9659 cat >conftest.$ac_ext <<_ACEOF
9660 /* confdefs.h. */
9661 _ACEOF
9662 cat confdefs.h >>conftest.$ac_ext
9663 cat >>conftest.$ac_ext <<_ACEOF
9664 /* end confdefs.h. */
9665 extern void (* __after_morecore_hook)();
9666 int
9667 main ()
9668 {
9669 __after_morecore_hook = 0
9670 ;
9671 return 0;
9672 }
9673 _ACEOF
9674 rm -f conftest.$ac_objext conftest$ac_exeext
9675 if { (ac_try="$ac_link"
9676 case "(($ac_try" in
9677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9678 *) ac_try_echo=$ac_try;;
9679 esac
9680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9681 (eval "$ac_link") 2>conftest.er1
9682 ac_status=$?
9683 grep -v '^ *+' conftest.er1 >conftest.err
9684 rm -f conftest.er1
9685 cat conftest.err >&5
9686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9687 (exit $ac_status); } && {
9688 test -z "$ac_c_werror_flag" ||
9689 test ! -s conftest.err
9690 } && test -s conftest$ac_exeext &&
9691 $as_test_x conftest$ac_exeext; then
9692 emacs_cv_var___after_morecore_hook=yes
9693 else
9694 echo "$as_me: failed program was:" >&5
9695 sed 's/^/| /' conftest.$ac_ext >&5
9696
9697 emacs_cv_var___after_morecore_hook=no
9698 fi
9699
9700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9701 conftest$ac_exeext conftest.$ac_ext
9702 fi
9703 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9704 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9705 if test $emacs_cv_var___after_morecore_hook = no; then
9706 doug_lea_malloc=no
9707 fi
9708 if test "${system_malloc}" = "yes"; then
9709 GNU_MALLOC=no
9710 GNU_MALLOC_reason="
9711 (The GNU allocators don't work with this system configuration.)"
9712 fi
9713 if test "$doug_lea_malloc" = "yes" ; then
9714 if test "$GNU_MALLOC" = yes ; then
9715 GNU_MALLOC_reason="
9716 (Using Doug Lea's new malloc from the GNU C Library.)"
9717 fi
9718
9719 cat >>confdefs.h <<\_ACEOF
9720 #define DOUG_LEA_MALLOC 1
9721 _ACEOF
9722
9723 fi
9724
9725 if test x"${REL_ALLOC}" = x; then
9726 REL_ALLOC=${GNU_MALLOC}
9727 fi
9728
9729
9730
9731
9732 for ac_header in stdlib.h unistd.h
9733 do
9734 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9735 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9736 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9737 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9738 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9739 echo $ECHO_N "(cached) $ECHO_C" >&6
9740 fi
9741 ac_res=`eval echo '${'$as_ac_Header'}'`
9742 { echo "$as_me:$LINENO: result: $ac_res" >&5
9743 echo "${ECHO_T}$ac_res" >&6; }
9744 else
9745 # Is the header compilable?
9746 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9747 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9748 cat >conftest.$ac_ext <<_ACEOF
9749 /* confdefs.h. */
9750 _ACEOF
9751 cat confdefs.h >>conftest.$ac_ext
9752 cat >>conftest.$ac_ext <<_ACEOF
9753 /* end confdefs.h. */
9754 $ac_includes_default
9755 #include <$ac_header>
9756 _ACEOF
9757 rm -f conftest.$ac_objext
9758 if { (ac_try="$ac_compile"
9759 case "(($ac_try" in
9760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9761 *) ac_try_echo=$ac_try;;
9762 esac
9763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9764 (eval "$ac_compile") 2>conftest.er1
9765 ac_status=$?
9766 grep -v '^ *+' conftest.er1 >conftest.err
9767 rm -f conftest.er1
9768 cat conftest.err >&5
9769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9770 (exit $ac_status); } && {
9771 test -z "$ac_c_werror_flag" ||
9772 test ! -s conftest.err
9773 } && test -s conftest.$ac_objext; then
9774 ac_header_compiler=yes
9775 else
9776 echo "$as_me: failed program was:" >&5
9777 sed 's/^/| /' conftest.$ac_ext >&5
9778
9779 ac_header_compiler=no
9780 fi
9781
9782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9783 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9784 echo "${ECHO_T}$ac_header_compiler" >&6; }
9785
9786 # Is the header present?
9787 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9788 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9789 cat >conftest.$ac_ext <<_ACEOF
9790 /* confdefs.h. */
9791 _ACEOF
9792 cat confdefs.h >>conftest.$ac_ext
9793 cat >>conftest.$ac_ext <<_ACEOF
9794 /* end confdefs.h. */
9795 #include <$ac_header>
9796 _ACEOF
9797 if { (ac_try="$ac_cpp conftest.$ac_ext"
9798 case "(($ac_try" in
9799 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9800 *) ac_try_echo=$ac_try;;
9801 esac
9802 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9803 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9804 ac_status=$?
9805 grep -v '^ *+' conftest.er1 >conftest.err
9806 rm -f conftest.er1
9807 cat conftest.err >&5
9808 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9809 (exit $ac_status); } >/dev/null && {
9810 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9811 test ! -s conftest.err
9812 }; then
9813 ac_header_preproc=yes
9814 else
9815 echo "$as_me: failed program was:" >&5
9816 sed 's/^/| /' conftest.$ac_ext >&5
9817
9818 ac_header_preproc=no
9819 fi
9820
9821 rm -f conftest.err conftest.$ac_ext
9822 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9823 echo "${ECHO_T}$ac_header_preproc" >&6; }
9824
9825 # So? What about this header?
9826 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9827 yes:no: )
9828 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9829 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9830 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9831 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9832 ac_header_preproc=yes
9833 ;;
9834 no:yes:* )
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9836 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9837 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9838 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9839 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9840 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9841 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9842 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9843 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9844 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9845 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9846 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9847
9848 ;;
9849 esac
9850 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9851 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9852 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9853 echo $ECHO_N "(cached) $ECHO_C" >&6
9854 else
9855 eval "$as_ac_Header=\$ac_header_preproc"
9856 fi
9857 ac_res=`eval echo '${'$as_ac_Header'}'`
9858 { echo "$as_me:$LINENO: result: $ac_res" >&5
9859 echo "${ECHO_T}$ac_res" >&6; }
9860
9861 fi
9862 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9863 cat >>confdefs.h <<_ACEOF
9864 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9865 _ACEOF
9866
9867 fi
9868
9869 done
9870
9871
9872 for ac_func in getpagesize
9873 do
9874 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9875 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9876 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9877 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9878 echo $ECHO_N "(cached) $ECHO_C" >&6
9879 else
9880 cat >conftest.$ac_ext <<_ACEOF
9881 /* confdefs.h. */
9882 _ACEOF
9883 cat confdefs.h >>conftest.$ac_ext
9884 cat >>conftest.$ac_ext <<_ACEOF
9885 /* end confdefs.h. */
9886 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9887 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9888 #define $ac_func innocuous_$ac_func
9889
9890 /* System header to define __stub macros and hopefully few prototypes,
9891 which can conflict with char $ac_func (); below.
9892 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9893 <limits.h> exists even on freestanding compilers. */
9894
9895 #ifdef __STDC__
9896 # include <limits.h>
9897 #else
9898 # include <assert.h>
9899 #endif
9900
9901 #undef $ac_func
9902
9903 /* Override any GCC internal prototype to avoid an error.
9904 Use char because int might match the return type of a GCC
9905 builtin and then its argument prototype would still apply. */
9906 #ifdef __cplusplus
9907 extern "C"
9908 #endif
9909 char $ac_func ();
9910 /* The GNU C library defines this for functions which it implements
9911 to always fail with ENOSYS. Some functions are actually named
9912 something starting with __ and the normal name is an alias. */
9913 #if defined __stub_$ac_func || defined __stub___$ac_func
9914 choke me
9915 #endif
9916
9917 int
9918 main ()
9919 {
9920 return $ac_func ();
9921 ;
9922 return 0;
9923 }
9924 _ACEOF
9925 rm -f conftest.$ac_objext conftest$ac_exeext
9926 if { (ac_try="$ac_link"
9927 case "(($ac_try" in
9928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9929 *) ac_try_echo=$ac_try;;
9930 esac
9931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9932 (eval "$ac_link") 2>conftest.er1
9933 ac_status=$?
9934 grep -v '^ *+' conftest.er1 >conftest.err
9935 rm -f conftest.er1
9936 cat conftest.err >&5
9937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9938 (exit $ac_status); } && {
9939 test -z "$ac_c_werror_flag" ||
9940 test ! -s conftest.err
9941 } && test -s conftest$ac_exeext &&
9942 $as_test_x conftest$ac_exeext; then
9943 eval "$as_ac_var=yes"
9944 else
9945 echo "$as_me: failed program was:" >&5
9946 sed 's/^/| /' conftest.$ac_ext >&5
9947
9948 eval "$as_ac_var=no"
9949 fi
9950
9951 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9952 conftest$ac_exeext conftest.$ac_ext
9953 fi
9954 ac_res=`eval echo '${'$as_ac_var'}'`
9955 { echo "$as_me:$LINENO: result: $ac_res" >&5
9956 echo "${ECHO_T}$ac_res" >&6; }
9957 if test `eval echo '${'$as_ac_var'}'` = yes; then
9958 cat >>confdefs.h <<_ACEOF
9959 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9960 _ACEOF
9961
9962 fi
9963 done
9964
9965 { echo "$as_me:$LINENO: checking for working mmap" >&5
9966 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9967 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9968 echo $ECHO_N "(cached) $ECHO_C" >&6
9969 else
9970 if test "$cross_compiling" = yes; then
9971 ac_cv_func_mmap_fixed_mapped=no
9972 else
9973 cat >conftest.$ac_ext <<_ACEOF
9974 /* confdefs.h. */
9975 _ACEOF
9976 cat confdefs.h >>conftest.$ac_ext
9977 cat >>conftest.$ac_ext <<_ACEOF
9978 /* end confdefs.h. */
9979 $ac_includes_default
9980 /* malloc might have been renamed as rpl_malloc. */
9981 #undef malloc
9982
9983 /* Thanks to Mike Haertel and Jim Avera for this test.
9984 Here is a matrix of mmap possibilities:
9985 mmap private not fixed
9986 mmap private fixed at somewhere currently unmapped
9987 mmap private fixed at somewhere already mapped
9988 mmap shared not fixed
9989 mmap shared fixed at somewhere currently unmapped
9990 mmap shared fixed at somewhere already mapped
9991 For private mappings, we should verify that changes cannot be read()
9992 back from the file, nor mmap's back from the file at a different
9993 address. (There have been systems where private was not correctly
9994 implemented like the infamous i386 svr4.0, and systems where the
9995 VM page cache was not coherent with the file system buffer cache
9996 like early versions of FreeBSD and possibly contemporary NetBSD.)
9997 For shared mappings, we should conversely verify that changes get
9998 propagated back to all the places they're supposed to be.
9999
10000 Grep wants private fixed already mapped.
10001 The main things grep needs to know about mmap are:
10002 * does it exist and is it safe to write into the mmap'd area
10003 * how to use it (BSD variants) */
10004
10005 #include <fcntl.h>
10006 #include <sys/mman.h>
10007
10008 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10009 char *malloc ();
10010 #endif
10011
10012 /* This mess was copied from the GNU getpagesize.h. */
10013 #ifndef HAVE_GETPAGESIZE
10014 /* Assume that all systems that can run configure have sys/param.h. */
10015 # ifndef HAVE_SYS_PARAM_H
10016 # define HAVE_SYS_PARAM_H 1
10017 # endif
10018
10019 # ifdef _SC_PAGESIZE
10020 # define getpagesize() sysconf(_SC_PAGESIZE)
10021 # else /* no _SC_PAGESIZE */
10022 # ifdef HAVE_SYS_PARAM_H
10023 # include <sys/param.h>
10024 # ifdef EXEC_PAGESIZE
10025 # define getpagesize() EXEC_PAGESIZE
10026 # else /* no EXEC_PAGESIZE */
10027 # ifdef NBPG
10028 # define getpagesize() NBPG * CLSIZE
10029 # ifndef CLSIZE
10030 # define CLSIZE 1
10031 # endif /* no CLSIZE */
10032 # else /* no NBPG */
10033 # ifdef NBPC
10034 # define getpagesize() NBPC
10035 # else /* no NBPC */
10036 # ifdef PAGESIZE
10037 # define getpagesize() PAGESIZE
10038 # endif /* PAGESIZE */
10039 # endif /* no NBPC */
10040 # endif /* no NBPG */
10041 # endif /* no EXEC_PAGESIZE */
10042 # else /* no HAVE_SYS_PARAM_H */
10043 # define getpagesize() 8192 /* punt totally */
10044 # endif /* no HAVE_SYS_PARAM_H */
10045 # endif /* no _SC_PAGESIZE */
10046
10047 #endif /* no HAVE_GETPAGESIZE */
10048
10049 int
10050 main ()
10051 {
10052 char *data, *data2, *data3;
10053 int i, pagesize;
10054 int fd;
10055
10056 pagesize = getpagesize ();
10057
10058 /* First, make a file with some known garbage in it. */
10059 data = (char *) malloc (pagesize);
10060 if (!data)
10061 return 1;
10062 for (i = 0; i < pagesize; ++i)
10063 *(data + i) = rand ();
10064 umask (0);
10065 fd = creat ("conftest.mmap", 0600);
10066 if (fd < 0)
10067 return 1;
10068 if (write (fd, data, pagesize) != pagesize)
10069 return 1;
10070 close (fd);
10071
10072 /* Next, try to mmap the file at a fixed address which already has
10073 something else allocated at it. If we can, also make sure that
10074 we see the same garbage. */
10075 fd = open ("conftest.mmap", O_RDWR);
10076 if (fd < 0)
10077 return 1;
10078 data2 = (char *) malloc (2 * pagesize);
10079 if (!data2)
10080 return 1;
10081 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10082 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10083 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10084 return 1;
10085 for (i = 0; i < pagesize; ++i)
10086 if (*(data + i) != *(data2 + i))
10087 return 1;
10088
10089 /* Finally, make sure that changes to the mapped area do not
10090 percolate back to the file as seen by read(). (This is a bug on
10091 some variants of i386 svr4.0.) */
10092 for (i = 0; i < pagesize; ++i)
10093 *(data2 + i) = *(data2 + i) + 1;
10094 data3 = (char *) malloc (pagesize);
10095 if (!data3)
10096 return 1;
10097 if (read (fd, data3, pagesize) != pagesize)
10098 return 1;
10099 for (i = 0; i < pagesize; ++i)
10100 if (*(data + i) != *(data3 + i))
10101 return 1;
10102 close (fd);
10103 return 0;
10104 }
10105 _ACEOF
10106 rm -f conftest$ac_exeext
10107 if { (ac_try="$ac_link"
10108 case "(($ac_try" in
10109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10110 *) ac_try_echo=$ac_try;;
10111 esac
10112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10113 (eval "$ac_link") 2>&5
10114 ac_status=$?
10115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10116 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10117 { (case "(($ac_try" in
10118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10119 *) ac_try_echo=$ac_try;;
10120 esac
10121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10122 (eval "$ac_try") 2>&5
10123 ac_status=$?
10124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10125 (exit $ac_status); }; }; then
10126 ac_cv_func_mmap_fixed_mapped=yes
10127 else
10128 echo "$as_me: program exited with status $ac_status" >&5
10129 echo "$as_me: failed program was:" >&5
10130 sed 's/^/| /' conftest.$ac_ext >&5
10131
10132 ( exit $ac_status )
10133 ac_cv_func_mmap_fixed_mapped=no
10134 fi
10135 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10136 fi
10137
10138
10139 fi
10140 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10141 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10142 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10143
10144 cat >>confdefs.h <<\_ACEOF
10145 #define HAVE_MMAP 1
10146 _ACEOF
10147
10148 fi
10149 rm -f conftest.mmap
10150
10151 if test $use_mmap_for_buffers = yes; then
10152 REL_ALLOC=no
10153 fi
10154
10155 LIBS="$libsrc_libs $LIBS"
10156
10157
10158 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10159 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10160 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10161 echo $ECHO_N "(cached) $ECHO_C" >&6
10162 else
10163 ac_check_lib_save_LIBS=$LIBS
10164 LIBS="-ldnet $LIBS"
10165 cat >conftest.$ac_ext <<_ACEOF
10166 /* confdefs.h. */
10167 _ACEOF
10168 cat confdefs.h >>conftest.$ac_ext
10169 cat >>conftest.$ac_ext <<_ACEOF
10170 /* end confdefs.h. */
10171
10172 /* Override any GCC internal prototype to avoid an error.
10173 Use char because int might match the return type of a GCC
10174 builtin and then its argument prototype would still apply. */
10175 #ifdef __cplusplus
10176 extern "C"
10177 #endif
10178 char dnet_ntoa ();
10179 int
10180 main ()
10181 {
10182 return dnet_ntoa ();
10183 ;
10184 return 0;
10185 }
10186 _ACEOF
10187 rm -f conftest.$ac_objext conftest$ac_exeext
10188 if { (ac_try="$ac_link"
10189 case "(($ac_try" in
10190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10191 *) ac_try_echo=$ac_try;;
10192 esac
10193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10194 (eval "$ac_link") 2>conftest.er1
10195 ac_status=$?
10196 grep -v '^ *+' conftest.er1 >conftest.err
10197 rm -f conftest.er1
10198 cat conftest.err >&5
10199 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10200 (exit $ac_status); } && {
10201 test -z "$ac_c_werror_flag" ||
10202 test ! -s conftest.err
10203 } && test -s conftest$ac_exeext &&
10204 $as_test_x conftest$ac_exeext; then
10205 ac_cv_lib_dnet_dnet_ntoa=yes
10206 else
10207 echo "$as_me: failed program was:" >&5
10208 sed 's/^/| /' conftest.$ac_ext >&5
10209
10210 ac_cv_lib_dnet_dnet_ntoa=no
10211 fi
10212
10213 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10214 conftest$ac_exeext conftest.$ac_ext
10215 LIBS=$ac_check_lib_save_LIBS
10216 fi
10217 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10218 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10219 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10220 cat >>confdefs.h <<_ACEOF
10221 #define HAVE_LIBDNET 1
10222 _ACEOF
10223
10224 LIBS="-ldnet $LIBS"
10225
10226 fi
10227
10228
10229 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10230 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10231 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10232 echo $ECHO_N "(cached) $ECHO_C" >&6
10233 else
10234 ac_check_lib_save_LIBS=$LIBS
10235 LIBS="-lXbsd $LIBS"
10236 cat >conftest.$ac_ext <<_ACEOF
10237 /* confdefs.h. */
10238 _ACEOF
10239 cat confdefs.h >>conftest.$ac_ext
10240 cat >>conftest.$ac_ext <<_ACEOF
10241 /* end confdefs.h. */
10242
10243
10244 int
10245 main ()
10246 {
10247 return main ();
10248 ;
10249 return 0;
10250 }
10251 _ACEOF
10252 rm -f conftest.$ac_objext conftest$ac_exeext
10253 if { (ac_try="$ac_link"
10254 case "(($ac_try" in
10255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10256 *) ac_try_echo=$ac_try;;
10257 esac
10258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10259 (eval "$ac_link") 2>conftest.er1
10260 ac_status=$?
10261 grep -v '^ *+' conftest.er1 >conftest.err
10262 rm -f conftest.er1
10263 cat conftest.err >&5
10264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10265 (exit $ac_status); } && {
10266 test -z "$ac_c_werror_flag" ||
10267 test ! -s conftest.err
10268 } && test -s conftest$ac_exeext &&
10269 $as_test_x conftest$ac_exeext; then
10270 ac_cv_lib_Xbsd_main=yes
10271 else
10272 echo "$as_me: failed program was:" >&5
10273 sed 's/^/| /' conftest.$ac_ext >&5
10274
10275 ac_cv_lib_Xbsd_main=no
10276 fi
10277
10278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10279 conftest$ac_exeext conftest.$ac_ext
10280 LIBS=$ac_check_lib_save_LIBS
10281 fi
10282 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10283 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10284 if test $ac_cv_lib_Xbsd_main = yes; then
10285 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10286 fi
10287
10288
10289
10290 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10291 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10292 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10293 echo $ECHO_N "(cached) $ECHO_C" >&6
10294 else
10295 ac_check_lib_save_LIBS=$LIBS
10296 LIBS="-lpthreads $LIBS"
10297 cat >conftest.$ac_ext <<_ACEOF
10298 /* confdefs.h. */
10299 _ACEOF
10300 cat confdefs.h >>conftest.$ac_ext
10301 cat >>conftest.$ac_ext <<_ACEOF
10302 /* end confdefs.h. */
10303
10304 /* Override any GCC internal prototype to avoid an error.
10305 Use char because int might match the return type of a GCC
10306 builtin and then its argument prototype would still apply. */
10307 #ifdef __cplusplus
10308 extern "C"
10309 #endif
10310 char cma_open ();
10311 int
10312 main ()
10313 {
10314 return cma_open ();
10315 ;
10316 return 0;
10317 }
10318 _ACEOF
10319 rm -f conftest.$ac_objext conftest$ac_exeext
10320 if { (ac_try="$ac_link"
10321 case "(($ac_try" in
10322 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10323 *) ac_try_echo=$ac_try;;
10324 esac
10325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10326 (eval "$ac_link") 2>conftest.er1
10327 ac_status=$?
10328 grep -v '^ *+' conftest.er1 >conftest.err
10329 rm -f conftest.er1
10330 cat conftest.err >&5
10331 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10332 (exit $ac_status); } && {
10333 test -z "$ac_c_werror_flag" ||
10334 test ! -s conftest.err
10335 } && test -s conftest$ac_exeext &&
10336 $as_test_x conftest$ac_exeext; then
10337 ac_cv_lib_pthreads_cma_open=yes
10338 else
10339 echo "$as_me: failed program was:" >&5
10340 sed 's/^/| /' conftest.$ac_ext >&5
10341
10342 ac_cv_lib_pthreads_cma_open=no
10343 fi
10344
10345 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10348 fi
10349 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10350 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10351 if test $ac_cv_lib_pthreads_cma_open = yes; then
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_LIBPTHREADS 1
10354 _ACEOF
10355
10356 LIBS="-lpthreads $LIBS"
10357
10358 fi
10359
10360
10361 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10362 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10363 if test -d /usr/X386/include; then
10364 HAVE_XFREE386=yes
10365 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10366 else
10367 HAVE_XFREE386=no
10368 fi
10369 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10370 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10371
10372
10373 case ${host_os} in
10374 aix*)
10375 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10376 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10377 if test "${gdb_cv_bigtoc+set}" = set; then
10378 echo $ECHO_N "(cached) $ECHO_C" >&6
10379 else
10380
10381 case $GCC in
10382 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10383 *) gdb_cv_bigtoc=-bbigtoc ;;
10384 esac
10385
10386 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10387 cat >conftest.$ac_ext <<_ACEOF
10388 /* confdefs.h. */
10389 _ACEOF
10390 cat confdefs.h >>conftest.$ac_ext
10391 cat >>conftest.$ac_ext <<_ACEOF
10392 /* end confdefs.h. */
10393
10394 int
10395 main ()
10396 {
10397 int i;
10398 ;
10399 return 0;
10400 }
10401 _ACEOF
10402 rm -f conftest.$ac_objext conftest$ac_exeext
10403 if { (ac_try="$ac_link"
10404 case "(($ac_try" in
10405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10406 *) ac_try_echo=$ac_try;;
10407 esac
10408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10409 (eval "$ac_link") 2>conftest.er1
10410 ac_status=$?
10411 grep -v '^ *+' conftest.er1 >conftest.err
10412 rm -f conftest.er1
10413 cat conftest.err >&5
10414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10415 (exit $ac_status); } && {
10416 test -z "$ac_c_werror_flag" ||
10417 test ! -s conftest.err
10418 } && test -s conftest$ac_exeext &&
10419 $as_test_x conftest$ac_exeext; then
10420 :
10421 else
10422 echo "$as_me: failed program was:" >&5
10423 sed 's/^/| /' conftest.$ac_ext >&5
10424
10425 gdb_cv_bigtoc=
10426 fi
10427
10428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10429 conftest$ac_exeext conftest.$ac_ext
10430
10431 fi
10432 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10433 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10434 ;;
10435 esac
10436
10437 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10438 # used for the tests that follow. We set them back to REAL_CFLAGS and
10439 # REAL_CPPFLAGS later on.
10440
10441 REAL_CPPFLAGS="$CPPFLAGS"
10442
10443 if test "${HAVE_X11}" = "yes"; then
10444 DEFS="$C_SWITCH_X_SITE $DEFS"
10445 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10446 LIBS="$LIBX $LIBS"
10447 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10448 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10449
10450 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10451 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10452 # but it's more convenient here to set LD_RUN_PATH
10453 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10454 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10455 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10456 export LD_RUN_PATH
10457 fi
10458
10459 if test "${opsys}" = "gnu-linux"; then
10460 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10461 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10462 cat >conftest.$ac_ext <<_ACEOF
10463 /* confdefs.h. */
10464 _ACEOF
10465 cat confdefs.h >>conftest.$ac_ext
10466 cat >>conftest.$ac_ext <<_ACEOF
10467 /* end confdefs.h. */
10468
10469 int
10470 main ()
10471 {
10472 XOpenDisplay ("foo");
10473 ;
10474 return 0;
10475 }
10476 _ACEOF
10477 rm -f conftest.$ac_objext conftest$ac_exeext
10478 if { (ac_try="$ac_link"
10479 case "(($ac_try" in
10480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10481 *) ac_try_echo=$ac_try;;
10482 esac
10483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10484 (eval "$ac_link") 2>conftest.er1
10485 ac_status=$?
10486 grep -v '^ *+' conftest.er1 >conftest.err
10487 rm -f conftest.er1
10488 cat conftest.err >&5
10489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10490 (exit $ac_status); } && {
10491 test -z "$ac_c_werror_flag" ||
10492 test ! -s conftest.err
10493 } && test -s conftest$ac_exeext &&
10494 $as_test_x conftest$ac_exeext; then
10495 xlinux_first_failure=no
10496 else
10497 echo "$as_me: failed program was:" >&5
10498 sed 's/^/| /' conftest.$ac_ext >&5
10499
10500 xlinux_first_failure=yes
10501 fi
10502
10503 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10504 conftest$ac_exeext conftest.$ac_ext
10505 if test "${xlinux_first_failure}" = "yes"; then
10506 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10507 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10508 OLD_CPPFLAGS="$CPPFLAGS"
10509 OLD_LIBS="$LIBS"
10510 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10511 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10512 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10513 LIBS="$LIBS -b i486-linuxaout"
10514 cat >conftest.$ac_ext <<_ACEOF
10515 /* confdefs.h. */
10516 _ACEOF
10517 cat confdefs.h >>conftest.$ac_ext
10518 cat >>conftest.$ac_ext <<_ACEOF
10519 /* end confdefs.h. */
10520
10521 int
10522 main ()
10523 {
10524 XOpenDisplay ("foo");
10525 ;
10526 return 0;
10527 }
10528 _ACEOF
10529 rm -f conftest.$ac_objext conftest$ac_exeext
10530 if { (ac_try="$ac_link"
10531 case "(($ac_try" in
10532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10533 *) ac_try_echo=$ac_try;;
10534 esac
10535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10536 (eval "$ac_link") 2>conftest.er1
10537 ac_status=$?
10538 grep -v '^ *+' conftest.er1 >conftest.err
10539 rm -f conftest.er1
10540 cat conftest.err >&5
10541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10542 (exit $ac_status); } && {
10543 test -z "$ac_c_werror_flag" ||
10544 test ! -s conftest.err
10545 } && test -s conftest$ac_exeext &&
10546 $as_test_x conftest$ac_exeext; then
10547 xlinux_second_failure=no
10548 else
10549 echo "$as_me: failed program was:" >&5
10550 sed 's/^/| /' conftest.$ac_ext >&5
10551
10552 xlinux_second_failure=yes
10553 fi
10554
10555 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10556 conftest$ac_exeext conftest.$ac_ext
10557 if test "${xlinux_second_failure}" = "yes"; then
10558 # If we get the same failure with -b, there is no use adding -b.
10559 # So take it out. This plays safe.
10560 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10561 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10562 CPPFLAGS="$OLD_CPPFLAGS"
10563 LIBS="$OLD_LIBS"
10564 { echo "$as_me:$LINENO: result: no" >&5
10565 echo "${ECHO_T}no" >&6; }
10566 else
10567 { echo "$as_me:$LINENO: result: yes" >&5
10568 echo "${ECHO_T}yes" >&6; }
10569 fi
10570 else
10571 { echo "$as_me:$LINENO: result: no" >&5
10572 echo "${ECHO_T}no" >&6; }
10573 fi
10574 fi
10575
10576 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10577 # header files included from there.
10578 { echo "$as_me:$LINENO: checking for Xkb" >&5
10579 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10580 cat >conftest.$ac_ext <<_ACEOF
10581 /* confdefs.h. */
10582 _ACEOF
10583 cat confdefs.h >>conftest.$ac_ext
10584 cat >>conftest.$ac_ext <<_ACEOF
10585 /* end confdefs.h. */
10586 #include <X11/Xlib.h>
10587 #include <X11/XKBlib.h>
10588 int
10589 main ()
10590 {
10591 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10592 ;
10593 return 0;
10594 }
10595 _ACEOF
10596 rm -f conftest.$ac_objext conftest$ac_exeext
10597 if { (ac_try="$ac_link"
10598 case "(($ac_try" in
10599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10600 *) ac_try_echo=$ac_try;;
10601 esac
10602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10603 (eval "$ac_link") 2>conftest.er1
10604 ac_status=$?
10605 grep -v '^ *+' conftest.er1 >conftest.err
10606 rm -f conftest.er1
10607 cat conftest.err >&5
10608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10609 (exit $ac_status); } && {
10610 test -z "$ac_c_werror_flag" ||
10611 test ! -s conftest.err
10612 } && test -s conftest$ac_exeext &&
10613 $as_test_x conftest$ac_exeext; then
10614 emacs_xkb=yes
10615 else
10616 echo "$as_me: failed program was:" >&5
10617 sed 's/^/| /' conftest.$ac_ext >&5
10618
10619 emacs_xkb=no
10620 fi
10621
10622 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10623 conftest$ac_exeext conftest.$ac_ext
10624 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10625 echo "${ECHO_T}$emacs_xkb" >&6; }
10626 if test $emacs_xkb = yes; then
10627
10628 cat >>confdefs.h <<\_ACEOF
10629 #define HAVE_XKBGETKEYBOARD 1
10630 _ACEOF
10631
10632 fi
10633
10634
10635
10636
10637
10638 for ac_func in XrmSetDatabase XScreenResourceString \
10639 XScreenNumberOfScreen XSetWMProtocols
10640 do
10641 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10642 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10643 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10644 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10645 echo $ECHO_N "(cached) $ECHO_C" >&6
10646 else
10647 cat >conftest.$ac_ext <<_ACEOF
10648 /* confdefs.h. */
10649 _ACEOF
10650 cat confdefs.h >>conftest.$ac_ext
10651 cat >>conftest.$ac_ext <<_ACEOF
10652 /* end confdefs.h. */
10653 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10654 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10655 #define $ac_func innocuous_$ac_func
10656
10657 /* System header to define __stub macros and hopefully few prototypes,
10658 which can conflict with char $ac_func (); below.
10659 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10660 <limits.h> exists even on freestanding compilers. */
10661
10662 #ifdef __STDC__
10663 # include <limits.h>
10664 #else
10665 # include <assert.h>
10666 #endif
10667
10668 #undef $ac_func
10669
10670 /* Override any GCC internal prototype to avoid an error.
10671 Use char because int might match the return type of a GCC
10672 builtin and then its argument prototype would still apply. */
10673 #ifdef __cplusplus
10674 extern "C"
10675 #endif
10676 char $ac_func ();
10677 /* The GNU C library defines this for functions which it implements
10678 to always fail with ENOSYS. Some functions are actually named
10679 something starting with __ and the normal name is an alias. */
10680 #if defined __stub_$ac_func || defined __stub___$ac_func
10681 choke me
10682 #endif
10683
10684 int
10685 main ()
10686 {
10687 return $ac_func ();
10688 ;
10689 return 0;
10690 }
10691 _ACEOF
10692 rm -f conftest.$ac_objext conftest$ac_exeext
10693 if { (ac_try="$ac_link"
10694 case "(($ac_try" in
10695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10696 *) ac_try_echo=$ac_try;;
10697 esac
10698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10699 (eval "$ac_link") 2>conftest.er1
10700 ac_status=$?
10701 grep -v '^ *+' conftest.er1 >conftest.err
10702 rm -f conftest.er1
10703 cat conftest.err >&5
10704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10705 (exit $ac_status); } && {
10706 test -z "$ac_c_werror_flag" ||
10707 test ! -s conftest.err
10708 } && test -s conftest$ac_exeext &&
10709 $as_test_x conftest$ac_exeext; then
10710 eval "$as_ac_var=yes"
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 eval "$as_ac_var=no"
10716 fi
10717
10718 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10719 conftest$ac_exeext conftest.$ac_ext
10720 fi
10721 ac_res=`eval echo '${'$as_ac_var'}'`
10722 { echo "$as_me:$LINENO: result: $ac_res" >&5
10723 echo "${ECHO_T}$ac_res" >&6; }
10724 if test `eval echo '${'$as_ac_var'}'` = yes; then
10725 cat >>confdefs.h <<_ACEOF
10726 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10727 _ACEOF
10728
10729 fi
10730 done
10731
10732 fi
10733
10734 if test "${window_system}" = "x11"; then
10735 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10736 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10737 if test "${emacs_cv_x11_version_6+set}" = set; then
10738 echo $ECHO_N "(cached) $ECHO_C" >&6
10739 else
10740 cat >conftest.$ac_ext <<_ACEOF
10741 /* confdefs.h. */
10742 _ACEOF
10743 cat confdefs.h >>conftest.$ac_ext
10744 cat >>conftest.$ac_ext <<_ACEOF
10745 /* end confdefs.h. */
10746 #include <X11/Xlib.h>
10747 int
10748 main ()
10749 {
10750 #if XlibSpecificationRelease < 6
10751 fail;
10752 #endif
10753
10754 ;
10755 return 0;
10756 }
10757 _ACEOF
10758 rm -f conftest.$ac_objext conftest$ac_exeext
10759 if { (ac_try="$ac_link"
10760 case "(($ac_try" in
10761 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10762 *) ac_try_echo=$ac_try;;
10763 esac
10764 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10765 (eval "$ac_link") 2>conftest.er1
10766 ac_status=$?
10767 grep -v '^ *+' conftest.er1 >conftest.err
10768 rm -f conftest.er1
10769 cat conftest.err >&5
10770 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10771 (exit $ac_status); } && {
10772 test -z "$ac_c_werror_flag" ||
10773 test ! -s conftest.err
10774 } && test -s conftest$ac_exeext &&
10775 $as_test_x conftest$ac_exeext; then
10776 emacs_cv_x11_version_6=yes
10777 else
10778 echo "$as_me: failed program was:" >&5
10779 sed 's/^/| /' conftest.$ac_ext >&5
10780
10781 emacs_cv_x11_version_6=no
10782 fi
10783
10784 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10785 conftest$ac_exeext conftest.$ac_ext
10786 fi
10787
10788 if test $emacs_cv_x11_version_6 = yes; then
10789 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10790 echo "${ECHO_T}6 or newer" >&6; }
10791
10792 cat >>confdefs.h <<\_ACEOF
10793 #define HAVE_X11R6 1
10794 _ACEOF
10795
10796 else
10797 { echo "$as_me:$LINENO: result: before 6" >&5
10798 echo "${ECHO_T}before 6" >&6; }
10799 fi
10800 fi
10801
10802 if test "${window_system}" = "x11"; then
10803 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10804 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10805 if test "${emacs_cv_x11_version_5+set}" = set; then
10806 echo $ECHO_N "(cached) $ECHO_C" >&6
10807 else
10808 cat >conftest.$ac_ext <<_ACEOF
10809 /* confdefs.h. */
10810 _ACEOF
10811 cat confdefs.h >>conftest.$ac_ext
10812 cat >>conftest.$ac_ext <<_ACEOF
10813 /* end confdefs.h. */
10814 #include <X11/Xlib.h>
10815 int
10816 main ()
10817 {
10818 #if XlibSpecificationRelease < 5
10819 fail;
10820 #endif
10821
10822 ;
10823 return 0;
10824 }
10825 _ACEOF
10826 rm -f conftest.$ac_objext conftest$ac_exeext
10827 if { (ac_try="$ac_link"
10828 case "(($ac_try" in
10829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10830 *) ac_try_echo=$ac_try;;
10831 esac
10832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10833 (eval "$ac_link") 2>conftest.er1
10834 ac_status=$?
10835 grep -v '^ *+' conftest.er1 >conftest.err
10836 rm -f conftest.er1
10837 cat conftest.err >&5
10838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10839 (exit $ac_status); } && {
10840 test -z "$ac_c_werror_flag" ||
10841 test ! -s conftest.err
10842 } && test -s conftest$ac_exeext &&
10843 $as_test_x conftest$ac_exeext; then
10844 emacs_cv_x11_version_5=yes
10845 else
10846 echo "$as_me: failed program was:" >&5
10847 sed 's/^/| /' conftest.$ac_ext >&5
10848
10849 emacs_cv_x11_version_5=no
10850 fi
10851
10852 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10853 conftest$ac_exeext conftest.$ac_ext
10854 fi
10855
10856 if test $emacs_cv_x11_version_5 = yes; then
10857 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10858 echo "${ECHO_T}5 or newer" >&6; }
10859 HAVE_X11R5=yes
10860
10861 cat >>confdefs.h <<\_ACEOF
10862 #define HAVE_X11R5 1
10863 _ACEOF
10864
10865 else
10866 HAVE_X11R5=no
10867 { echo "$as_me:$LINENO: result: before 5" >&5
10868 echo "${ECHO_T}before 5" >&6; }
10869 fi
10870 fi
10871
10872 HAVE_GTK=no
10873 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10874 USE_X_TOOLKIT=none
10875 fi
10876 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10877 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10878 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10879 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10880 { (exit 1); exit 1; }; };
10881 fi
10882 GLIB_REQUIRED=2.4
10883 GTK_REQUIRED=2.4
10884 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10885
10886 if test "X${with_pkg_config_prog}" != X; then
10887 PKG_CONFIG="${with_pkg_config_prog}"
10888 fi
10889
10890 succeeded=no
10891
10892 if test -z "$PKG_CONFIG"; then
10893 # Extract the first word of "pkg-config", so it can be a program name with args.
10894 set dummy pkg-config; ac_word=$2
10895 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10896 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10897 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10898 echo $ECHO_N "(cached) $ECHO_C" >&6
10899 else
10900 case $PKG_CONFIG in
10901 [\\/]* | ?:[\\/]*)
10902 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10903 ;;
10904 *)
10905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10906 for as_dir in $PATH
10907 do
10908 IFS=$as_save_IFS
10909 test -z "$as_dir" && as_dir=.
10910 for ac_exec_ext in '' $ac_executable_extensions; do
10911 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10912 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10913 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10914 break 2
10915 fi
10916 done
10917 done
10918 IFS=$as_save_IFS
10919
10920 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10921 ;;
10922 esac
10923 fi
10924 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10925 if test -n "$PKG_CONFIG"; then
10926 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10927 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10928 else
10929 { echo "$as_me:$LINENO: result: no" >&5
10930 echo "${ECHO_T}no" >&6; }
10931 fi
10932
10933
10934 fi
10935
10936 if test "$PKG_CONFIG" = "no" ; then
10937 { { echo "$as_me:$LINENO: error:
10938 *** 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
10939 echo "$as_me: error:
10940 *** 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;}
10941 { (exit 1); exit 1; }; }
10942 else
10943 PKG_CONFIG_MIN_VERSION=0.9.0
10944 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10945 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10946 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10947
10948 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10949 { echo "$as_me:$LINENO: result: yes" >&5
10950 echo "${ECHO_T}yes" >&6; }
10951 succeeded=yes
10952
10953 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10954 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10955 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10956 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10957 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10958
10959 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10960 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10961 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10962 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10963 echo "${ECHO_T}$GTK_LIBS" >&6; }
10964 else
10965 { echo "$as_me:$LINENO: result: no" >&5
10966 echo "${ECHO_T}no" >&6; }
10967 GTK_CFLAGS=""
10968 GTK_LIBS=""
10969 ## If we have a custom action on failure, don't print errors, but
10970 ## do set a variable so people can do so.
10971 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10972 echo $GTK_PKG_ERRORS
10973 fi
10974
10975
10976
10977 else
10978 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10979 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10980 fi
10981 fi
10982
10983 if test $succeeded = yes; then
10984 :
10985 else
10986 { { 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
10987 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;}
10988 { (exit 1); exit 1; }; }
10989 fi
10990
10991
10992
10993 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10994 CFLAGS="$CFLAGS $GTK_CFLAGS"
10995 LIBS="$GTK_LIBS $LIBS"
10996 GTK_COMPILES=no
10997
10998 for ac_func in gtk_main
10999 do
11000 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11001 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11002 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11003 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11004 echo $ECHO_N "(cached) $ECHO_C" >&6
11005 else
11006 cat >conftest.$ac_ext <<_ACEOF
11007 /* confdefs.h. */
11008 _ACEOF
11009 cat confdefs.h >>conftest.$ac_ext
11010 cat >>conftest.$ac_ext <<_ACEOF
11011 /* end confdefs.h. */
11012 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11013 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11014 #define $ac_func innocuous_$ac_func
11015
11016 /* System header to define __stub macros and hopefully few prototypes,
11017 which can conflict with char $ac_func (); below.
11018 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11019 <limits.h> exists even on freestanding compilers. */
11020
11021 #ifdef __STDC__
11022 # include <limits.h>
11023 #else
11024 # include <assert.h>
11025 #endif
11026
11027 #undef $ac_func
11028
11029 /* Override any GCC internal prototype to avoid an error.
11030 Use char because int might match the return type of a GCC
11031 builtin and then its argument prototype would still apply. */
11032 #ifdef __cplusplus
11033 extern "C"
11034 #endif
11035 char $ac_func ();
11036 /* The GNU C library defines this for functions which it implements
11037 to always fail with ENOSYS. Some functions are actually named
11038 something starting with __ and the normal name is an alias. */
11039 #if defined __stub_$ac_func || defined __stub___$ac_func
11040 choke me
11041 #endif
11042
11043 int
11044 main ()
11045 {
11046 return $ac_func ();
11047 ;
11048 return 0;
11049 }
11050 _ACEOF
11051 rm -f conftest.$ac_objext conftest$ac_exeext
11052 if { (ac_try="$ac_link"
11053 case "(($ac_try" in
11054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11055 *) ac_try_echo=$ac_try;;
11056 esac
11057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11058 (eval "$ac_link") 2>conftest.er1
11059 ac_status=$?
11060 grep -v '^ *+' conftest.er1 >conftest.err
11061 rm -f conftest.er1
11062 cat conftest.err >&5
11063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11064 (exit $ac_status); } && {
11065 test -z "$ac_c_werror_flag" ||
11066 test ! -s conftest.err
11067 } && test -s conftest$ac_exeext &&
11068 $as_test_x conftest$ac_exeext; then
11069 eval "$as_ac_var=yes"
11070 else
11071 echo "$as_me: failed program was:" >&5
11072 sed 's/^/| /' conftest.$ac_ext >&5
11073
11074 eval "$as_ac_var=no"
11075 fi
11076
11077 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11078 conftest$ac_exeext conftest.$ac_ext
11079 fi
11080 ac_res=`eval echo '${'$as_ac_var'}'`
11081 { echo "$as_me:$LINENO: result: $ac_res" >&5
11082 echo "${ECHO_T}$ac_res" >&6; }
11083 if test `eval echo '${'$as_ac_var'}'` = yes; then
11084 cat >>confdefs.h <<_ACEOF
11085 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11086 _ACEOF
11087 GTK_COMPILES=yes
11088 fi
11089 done
11090
11091 if test "${GTK_COMPILES}" != "yes"; then
11092 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11093 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11094 { (exit 1); exit 1; }; };
11095 fi
11096
11097 HAVE_GTK=yes
11098
11099 cat >>confdefs.h <<\_ACEOF
11100 #define HAVE_GTK 1
11101 _ACEOF
11102
11103 USE_X_TOOLKIT=none
11104
11105 if test "$with_toolkit_scroll_bars" != no; then
11106 with_toolkit_scroll_bars=yes
11107 fi
11108
11109 HAVE_GTK_MULTIDISPLAY=no
11110
11111 HAVE_GTK_FILE_SELECTION=no
11112
11113 for ac_func in gtk_file_selection_new
11114 do
11115 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11116 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11117 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11118 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11119 echo $ECHO_N "(cached) $ECHO_C" >&6
11120 else
11121 cat >conftest.$ac_ext <<_ACEOF
11122 /* confdefs.h. */
11123 _ACEOF
11124 cat confdefs.h >>conftest.$ac_ext
11125 cat >>conftest.$ac_ext <<_ACEOF
11126 /* end confdefs.h. */
11127 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11128 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11129 #define $ac_func innocuous_$ac_func
11130
11131 /* System header to define __stub macros and hopefully few prototypes,
11132 which can conflict with char $ac_func (); below.
11133 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11134 <limits.h> exists even on freestanding compilers. */
11135
11136 #ifdef __STDC__
11137 # include <limits.h>
11138 #else
11139 # include <assert.h>
11140 #endif
11141
11142 #undef $ac_func
11143
11144 /* Override any GCC internal prototype to avoid an error.
11145 Use char because int might match the return type of a GCC
11146 builtin and then its argument prototype would still apply. */
11147 #ifdef __cplusplus
11148 extern "C"
11149 #endif
11150 char $ac_func ();
11151 /* The GNU C library defines this for functions which it implements
11152 to always fail with ENOSYS. Some functions are actually named
11153 something starting with __ and the normal name is an alias. */
11154 #if defined __stub_$ac_func || defined __stub___$ac_func
11155 choke me
11156 #endif
11157
11158 int
11159 main ()
11160 {
11161 return $ac_func ();
11162 ;
11163 return 0;
11164 }
11165 _ACEOF
11166 rm -f conftest.$ac_objext conftest$ac_exeext
11167 if { (ac_try="$ac_link"
11168 case "(($ac_try" in
11169 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11170 *) ac_try_echo=$ac_try;;
11171 esac
11172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11173 (eval "$ac_link") 2>conftest.er1
11174 ac_status=$?
11175 grep -v '^ *+' conftest.er1 >conftest.err
11176 rm -f conftest.er1
11177 cat conftest.err >&5
11178 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11179 (exit $ac_status); } && {
11180 test -z "$ac_c_werror_flag" ||
11181 test ! -s conftest.err
11182 } && test -s conftest$ac_exeext &&
11183 $as_test_x conftest$ac_exeext; then
11184 eval "$as_ac_var=yes"
11185 else
11186 echo "$as_me: failed program was:" >&5
11187 sed 's/^/| /' conftest.$ac_ext >&5
11188
11189 eval "$as_ac_var=no"
11190 fi
11191
11192 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11193 conftest$ac_exeext conftest.$ac_ext
11194 fi
11195 ac_res=`eval echo '${'$as_ac_var'}'`
11196 { echo "$as_me:$LINENO: result: $ac_res" >&5
11197 echo "${ECHO_T}$ac_res" >&6; }
11198 if test `eval echo '${'$as_ac_var'}'` = yes; then
11199 cat >>confdefs.h <<_ACEOF
11200 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11201 _ACEOF
11202 HAVE_GTK_FILE_SELECTION=yes
11203 fi
11204 done
11205
11206
11207 HAVE_GTK_FILE_CHOOSER=no
11208
11209 for ac_func in gtk_file_chooser_dialog_new
11210 do
11211 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11212 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11213 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11214 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11215 echo $ECHO_N "(cached) $ECHO_C" >&6
11216 else
11217 cat >conftest.$ac_ext <<_ACEOF
11218 /* confdefs.h. */
11219 _ACEOF
11220 cat confdefs.h >>conftest.$ac_ext
11221 cat >>conftest.$ac_ext <<_ACEOF
11222 /* end confdefs.h. */
11223 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11224 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11225 #define $ac_func innocuous_$ac_func
11226
11227 /* System header to define __stub macros and hopefully few prototypes,
11228 which can conflict with char $ac_func (); below.
11229 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11230 <limits.h> exists even on freestanding compilers. */
11231
11232 #ifdef __STDC__
11233 # include <limits.h>
11234 #else
11235 # include <assert.h>
11236 #endif
11237
11238 #undef $ac_func
11239
11240 /* Override any GCC internal prototype to avoid an error.
11241 Use char because int might match the return type of a GCC
11242 builtin and then its argument prototype would still apply. */
11243 #ifdef __cplusplus
11244 extern "C"
11245 #endif
11246 char $ac_func ();
11247 /* The GNU C library defines this for functions which it implements
11248 to always fail with ENOSYS. Some functions are actually named
11249 something starting with __ and the normal name is an alias. */
11250 #if defined __stub_$ac_func || defined __stub___$ac_func
11251 choke me
11252 #endif
11253
11254 int
11255 main ()
11256 {
11257 return $ac_func ();
11258 ;
11259 return 0;
11260 }
11261 _ACEOF
11262 rm -f conftest.$ac_objext conftest$ac_exeext
11263 if { (ac_try="$ac_link"
11264 case "(($ac_try" in
11265 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11266 *) ac_try_echo=$ac_try;;
11267 esac
11268 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11269 (eval "$ac_link") 2>conftest.er1
11270 ac_status=$?
11271 grep -v '^ *+' conftest.er1 >conftest.err
11272 rm -f conftest.er1
11273 cat conftest.err >&5
11274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11275 (exit $ac_status); } && {
11276 test -z "$ac_c_werror_flag" ||
11277 test ! -s conftest.err
11278 } && test -s conftest$ac_exeext &&
11279 $as_test_x conftest$ac_exeext; then
11280 eval "$as_ac_var=yes"
11281 else
11282 echo "$as_me: failed program was:" >&5
11283 sed 's/^/| /' conftest.$ac_ext >&5
11284
11285 eval "$as_ac_var=no"
11286 fi
11287
11288 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11289 conftest$ac_exeext conftest.$ac_ext
11290 fi
11291 ac_res=`eval echo '${'$as_ac_var'}'`
11292 { echo "$as_me:$LINENO: result: $ac_res" >&5
11293 echo "${ECHO_T}$ac_res" >&6; }
11294 if test `eval echo '${'$as_ac_var'}'` = yes; then
11295 cat >>confdefs.h <<_ACEOF
11296 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11297 _ACEOF
11298 HAVE_GTK_FILE_CHOOSER=yes
11299 fi
11300 done
11301
11302
11303 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11304 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11305
11306 cat >>confdefs.h <<\_ACEOF
11307 #define HAVE_GTK_FILE_BOTH 1
11308 _ACEOF
11309
11310 fi
11311
11312 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11313 HAVE_GTK_AND_PTHREAD=no
11314
11315 for ac_header in pthread.h
11316 do
11317 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11319 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11320 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11321 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11322 echo $ECHO_N "(cached) $ECHO_C" >&6
11323 fi
11324 ac_res=`eval echo '${'$as_ac_Header'}'`
11325 { echo "$as_me:$LINENO: result: $ac_res" >&5
11326 echo "${ECHO_T}$ac_res" >&6; }
11327 else
11328 # Is the header compilable?
11329 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11330 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11331 cat >conftest.$ac_ext <<_ACEOF
11332 /* confdefs.h. */
11333 _ACEOF
11334 cat confdefs.h >>conftest.$ac_ext
11335 cat >>conftest.$ac_ext <<_ACEOF
11336 /* end confdefs.h. */
11337 $ac_includes_default
11338 #include <$ac_header>
11339 _ACEOF
11340 rm -f conftest.$ac_objext
11341 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
11355 test ! -s conftest.err
11356 } && test -s conftest.$ac_objext; then
11357 ac_header_compiler=yes
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 ac_header_compiler=no
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11366 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11367 echo "${ECHO_T}$ac_header_compiler" >&6; }
11368
11369 # Is the header present?
11370 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11371 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11372 cat >conftest.$ac_ext <<_ACEOF
11373 /* confdefs.h. */
11374 _ACEOF
11375 cat confdefs.h >>conftest.$ac_ext
11376 cat >>conftest.$ac_ext <<_ACEOF
11377 /* end confdefs.h. */
11378 #include <$ac_header>
11379 _ACEOF
11380 if { (ac_try="$ac_cpp conftest.$ac_ext"
11381 case "(($ac_try" in
11382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11383 *) ac_try_echo=$ac_try;;
11384 esac
11385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11386 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11387 ac_status=$?
11388 grep -v '^ *+' conftest.er1 >conftest.err
11389 rm -f conftest.er1
11390 cat conftest.err >&5
11391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11392 (exit $ac_status); } >/dev/null && {
11393 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11394 test ! -s conftest.err
11395 }; then
11396 ac_header_preproc=yes
11397 else
11398 echo "$as_me: failed program was:" >&5
11399 sed 's/^/| /' conftest.$ac_ext >&5
11400
11401 ac_header_preproc=no
11402 fi
11403
11404 rm -f conftest.err conftest.$ac_ext
11405 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11406 echo "${ECHO_T}$ac_header_preproc" >&6; }
11407
11408 # So? What about this header?
11409 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11410 yes:no: )
11411 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11412 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11413 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11414 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11415 ac_header_preproc=yes
11416 ;;
11417 no:yes:* )
11418 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11419 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11420 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11421 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11422 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11423 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11424 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11425 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11426 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11427 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11428 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11429 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11430
11431 ;;
11432 esac
11433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 eval "$as_ac_Header=\$ac_header_preproc"
11439 fi
11440 ac_res=`eval echo '${'$as_ac_Header'}'`
11441 { echo "$as_me:$LINENO: result: $ac_res" >&5
11442 echo "${ECHO_T}$ac_res" >&6; }
11443
11444 fi
11445 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11448 _ACEOF
11449
11450 fi
11451
11452 done
11453
11454 if test "$ac_cv_header_pthread_h"; then
11455 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11456 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11457 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11458 echo $ECHO_N "(cached) $ECHO_C" >&6
11459 else
11460 ac_check_lib_save_LIBS=$LIBS
11461 LIBS="-lpthread $LIBS"
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468
11469 /* Override any GCC internal prototype to avoid an error.
11470 Use char because int might match the return type of a GCC
11471 builtin and then its argument prototype would still apply. */
11472 #ifdef __cplusplus
11473 extern "C"
11474 #endif
11475 char pthread_self ();
11476 int
11477 main ()
11478 {
11479 return pthread_self ();
11480 ;
11481 return 0;
11482 }
11483 _ACEOF
11484 rm -f conftest.$ac_objext conftest$ac_exeext
11485 if { (ac_try="$ac_link"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_link") 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } && {
11498 test -z "$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 } && test -s conftest$ac_exeext &&
11501 $as_test_x conftest$ac_exeext; then
11502 ac_cv_lib_pthread_pthread_self=yes
11503 else
11504 echo "$as_me: failed program was:" >&5
11505 sed 's/^/| /' conftest.$ac_ext >&5
11506
11507 ac_cv_lib_pthread_pthread_self=no
11508 fi
11509
11510 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11511 conftest$ac_exeext conftest.$ac_ext
11512 LIBS=$ac_check_lib_save_LIBS
11513 fi
11514 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11515 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11516 if test $ac_cv_lib_pthread_pthread_self = yes; then
11517 HAVE_GTK_AND_PTHREAD=yes
11518 fi
11519
11520 fi
11521 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11522 GTK_LIBS="$GTK_LIBS -lpthread"
11523
11524 cat >>confdefs.h <<\_ACEOF
11525 #define HAVE_GTK_AND_PTHREAD 1
11526 _ACEOF
11527
11528 fi
11529 fi
11530 fi
11531
11532 ### Link with -lXft if available to work around a bug.
11533 HAVE_XFT=maybe
11534 if test "${HAVE_GTK}" = "yes"; then
11535 if test "X${with_pkg_config_prog}" != X; then
11536 PKG_CONFIG="${with_pkg_config_prog}"
11537 fi
11538
11539
11540 succeeded=no
11541
11542 if test -z "$PKG_CONFIG"; then
11543 # Extract the first word of "pkg-config", so it can be a program name with args.
11544 set dummy pkg-config; ac_word=$2
11545 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11546 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11547 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11548 echo $ECHO_N "(cached) $ECHO_C" >&6
11549 else
11550 case $PKG_CONFIG in
11551 [\\/]* | ?:[\\/]*)
11552 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11553 ;;
11554 *)
11555 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11556 for as_dir in $PATH
11557 do
11558 IFS=$as_save_IFS
11559 test -z "$as_dir" && as_dir=.
11560 for ac_exec_ext in '' $ac_executable_extensions; do
11561 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11562 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11563 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11564 break 2
11565 fi
11566 done
11567 done
11568 IFS=$as_save_IFS
11569
11570 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11571 ;;
11572 esac
11573 fi
11574 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11575 if test -n "$PKG_CONFIG"; then
11576 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11577 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11578 else
11579 { echo "$as_me:$LINENO: result: no" >&5
11580 echo "${ECHO_T}no" >&6; }
11581 fi
11582
11583
11584 fi
11585
11586 if test "$PKG_CONFIG" = "no" ; then
11587 HAVE_XFT=no
11588 else
11589 PKG_CONFIG_MIN_VERSION=0.9.0
11590 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11591 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11592 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11593
11594 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11595 { echo "$as_me:$LINENO: result: yes" >&5
11596 echo "${ECHO_T}yes" >&6; }
11597 succeeded=yes
11598
11599 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11600 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11601 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11602 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11603 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11604
11605 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11606 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11607 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11608 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11609 echo "${ECHO_T}$XFT_LIBS" >&6; }
11610 else
11611 { echo "$as_me:$LINENO: result: no" >&5
11612 echo "${ECHO_T}no" >&6; }
11613 XFT_CFLAGS=""
11614 XFT_LIBS=""
11615 ## If we have a custom action on failure, don't print errors, but
11616 ## do set a variable so people can do so.
11617 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11618
11619 fi
11620
11621
11622
11623 else
11624 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11625 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11626 fi
11627 fi
11628
11629 if test $succeeded = yes; then
11630 :
11631 else
11632 HAVE_XFT=no
11633 fi
11634
11635 if test "$HAVE_XFT" != no; then
11636 OLD_CFLAGS="$CPPFLAGS"
11637 OLD_CFLAGS="$CFLAGS"
11638 OLD_LIBS="$LIBS"
11639 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11640 CFLAGS="$CFLAGS $XFT_CFLAGS"
11641 LIBS="$XFT_LIBS $LIBS"
11642 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11643 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11644 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11645 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11646 echo $ECHO_N "(cached) $ECHO_C" >&6
11647 fi
11648 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11649 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11650 else
11651 # Is the header compilable?
11652 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11653 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11654 cat >conftest.$ac_ext <<_ACEOF
11655 /* confdefs.h. */
11656 _ACEOF
11657 cat confdefs.h >>conftest.$ac_ext
11658 cat >>conftest.$ac_ext <<_ACEOF
11659 /* end confdefs.h. */
11660 $ac_includes_default
11661 #include <X11/Xft/Xft.h>
11662 _ACEOF
11663 rm -f conftest.$ac_objext
11664 if { (ac_try="$ac_compile"
11665 case "(($ac_try" in
11666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11667 *) ac_try_echo=$ac_try;;
11668 esac
11669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11670 (eval "$ac_compile") 2>conftest.er1
11671 ac_status=$?
11672 grep -v '^ *+' conftest.er1 >conftest.err
11673 rm -f conftest.er1
11674 cat conftest.err >&5
11675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11676 (exit $ac_status); } && {
11677 test -z "$ac_c_werror_flag" ||
11678 test ! -s conftest.err
11679 } && test -s conftest.$ac_objext; then
11680 ac_header_compiler=yes
11681 else
11682 echo "$as_me: failed program was:" >&5
11683 sed 's/^/| /' conftest.$ac_ext >&5
11684
11685 ac_header_compiler=no
11686 fi
11687
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11689 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11690 echo "${ECHO_T}$ac_header_compiler" >&6; }
11691
11692 # Is the header present?
11693 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11694 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11695 cat >conftest.$ac_ext <<_ACEOF
11696 /* confdefs.h. */
11697 _ACEOF
11698 cat confdefs.h >>conftest.$ac_ext
11699 cat >>conftest.$ac_ext <<_ACEOF
11700 /* end confdefs.h. */
11701 #include <X11/Xft/Xft.h>
11702 _ACEOF
11703 if { (ac_try="$ac_cpp conftest.$ac_ext"
11704 case "(($ac_try" in
11705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11706 *) ac_try_echo=$ac_try;;
11707 esac
11708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11710 ac_status=$?
11711 grep -v '^ *+' conftest.er1 >conftest.err
11712 rm -f conftest.er1
11713 cat conftest.err >&5
11714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11715 (exit $ac_status); } >/dev/null && {
11716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11717 test ! -s conftest.err
11718 }; then
11719 ac_header_preproc=yes
11720 else
11721 echo "$as_me: failed program was:" >&5
11722 sed 's/^/| /' conftest.$ac_ext >&5
11723
11724 ac_header_preproc=no
11725 fi
11726
11727 rm -f conftest.err conftest.$ac_ext
11728 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11729 echo "${ECHO_T}$ac_header_preproc" >&6; }
11730
11731 # So? What about this header?
11732 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11733 yes:no: )
11734 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11735 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11736 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11737 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11738 ac_header_preproc=yes
11739 ;;
11740 no:yes:* )
11741 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11742 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11743 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11744 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11745 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11746 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11748 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11750 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11752 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11753
11754 ;;
11755 esac
11756 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11757 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11758 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11759 echo $ECHO_N "(cached) $ECHO_C" >&6
11760 else
11761 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11762 fi
11763 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11764 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11765
11766 fi
11767 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11768 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11769 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11770 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11771 echo $ECHO_N "(cached) $ECHO_C" >&6
11772 else
11773 ac_check_lib_save_LIBS=$LIBS
11774 LIBS="-lXft $XFT_LIBS $LIBS"
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781
11782 /* Override any GCC internal prototype to avoid an error.
11783 Use char because int might match the return type of a GCC
11784 builtin and then its argument prototype would still apply. */
11785 #ifdef __cplusplus
11786 extern "C"
11787 #endif
11788 char XftFontOpen ();
11789 int
11790 main ()
11791 {
11792 return XftFontOpen ();
11793 ;
11794 return 0;
11795 }
11796 _ACEOF
11797 rm -f conftest.$ac_objext conftest$ac_exeext
11798 if { (ac_try="$ac_link"
11799 case "(($ac_try" in
11800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11801 *) ac_try_echo=$ac_try;;
11802 esac
11803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11804 (eval "$ac_link") 2>conftest.er1
11805 ac_status=$?
11806 grep -v '^ *+' conftest.er1 >conftest.err
11807 rm -f conftest.er1
11808 cat conftest.err >&5
11809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11810 (exit $ac_status); } && {
11811 test -z "$ac_c_werror_flag" ||
11812 test ! -s conftest.err
11813 } && test -s conftest$ac_exeext &&
11814 $as_test_x conftest$ac_exeext; then
11815 ac_cv_lib_Xft_XftFontOpen=yes
11816 else
11817 echo "$as_me: failed program was:" >&5
11818 sed 's/^/| /' conftest.$ac_ext >&5
11819
11820 ac_cv_lib_Xft_XftFontOpen=no
11821 fi
11822
11823 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11824 conftest$ac_exeext conftest.$ac_ext
11825 LIBS=$ac_check_lib_save_LIBS
11826 fi
11827 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11828 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11829 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11830 HAVE_XFT=yes
11831 fi
11832
11833 fi
11834
11835
11836
11837 if test "${HAVE_XFT}" = "yes"; then
11838
11839 cat >>confdefs.h <<\_ACEOF
11840 #define HAVE_XFT 1
11841 _ACEOF
11842
11843
11844 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11845 else
11846 CFLAGS="$OLD_CPPFLAGS"
11847 CFLAGS="$OLD_CFLAGS"
11848 LIBS="$OLD_LIBS"
11849 fi
11850 fi
11851 fi
11852
11853 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11854 if test x"${HAVE_X11R5}" = xyes; then
11855 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11856 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11857 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11858 echo $ECHO_N "(cached) $ECHO_C" >&6
11859 else
11860 cat >conftest.$ac_ext <<_ACEOF
11861 /* confdefs.h. */
11862 _ACEOF
11863 cat confdefs.h >>conftest.$ac_ext
11864 cat >>conftest.$ac_ext <<_ACEOF
11865 /* end confdefs.h. */
11866
11867 #include <X11/Intrinsic.h>
11868 #include <X11/Xaw/Simple.h>
11869 int
11870 main ()
11871 {
11872
11873 ;
11874 return 0;
11875 }
11876 _ACEOF
11877 rm -f conftest.$ac_objext conftest$ac_exeext
11878 if { (ac_try="$ac_link"
11879 case "(($ac_try" in
11880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11881 *) ac_try_echo=$ac_try;;
11882 esac
11883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11884 (eval "$ac_link") 2>conftest.er1
11885 ac_status=$?
11886 grep -v '^ *+' conftest.er1 >conftest.err
11887 rm -f conftest.er1
11888 cat conftest.err >&5
11889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890 (exit $ac_status); } && {
11891 test -z "$ac_c_werror_flag" ||
11892 test ! -s conftest.err
11893 } && test -s conftest$ac_exeext &&
11894 $as_test_x conftest$ac_exeext; then
11895 emacs_cv_x11_version_5_with_xaw=yes
11896 else
11897 echo "$as_me: failed program was:" >&5
11898 sed 's/^/| /' conftest.$ac_ext >&5
11899
11900 emacs_cv_x11_version_5_with_xaw=no
11901 fi
11902
11903 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11904 conftest$ac_exeext conftest.$ac_ext
11905 fi
11906
11907 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11908 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11909 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11910 USE_X_TOOLKIT=LUCID
11911 else
11912 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11913 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11914 USE_X_TOOLKIT=none
11915 fi
11916 else
11917 USE_X_TOOLKIT=none
11918 fi
11919 fi
11920
11921 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11922
11923 if test "${USE_X_TOOLKIT}" != "none"; then
11924 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11925 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11926 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11927 echo $ECHO_N "(cached) $ECHO_C" >&6
11928 else
11929 cat >conftest.$ac_ext <<_ACEOF
11930 /* confdefs.h. */
11931 _ACEOF
11932 cat confdefs.h >>conftest.$ac_ext
11933 cat >>conftest.$ac_ext <<_ACEOF
11934 /* end confdefs.h. */
11935 #include <X11/Intrinsic.h>
11936 int
11937 main ()
11938 {
11939 #if XtSpecificationRelease < 6
11940 fail;
11941 #endif
11942
11943 ;
11944 return 0;
11945 }
11946 _ACEOF
11947 rm -f conftest.$ac_objext conftest$ac_exeext
11948 if { (ac_try="$ac_link"
11949 case "(($ac_try" in
11950 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11951 *) ac_try_echo=$ac_try;;
11952 esac
11953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11954 (eval "$ac_link") 2>conftest.er1
11955 ac_status=$?
11956 grep -v '^ *+' conftest.er1 >conftest.err
11957 rm -f conftest.er1
11958 cat conftest.err >&5
11959 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11960 (exit $ac_status); } && {
11961 test -z "$ac_c_werror_flag" ||
11962 test ! -s conftest.err
11963 } && test -s conftest$ac_exeext &&
11964 $as_test_x conftest$ac_exeext; then
11965 emacs_cv_x11_toolkit_version_6=yes
11966 else
11967 echo "$as_me: failed program was:" >&5
11968 sed 's/^/| /' conftest.$ac_ext >&5
11969
11970 emacs_cv_x11_toolkit_version_6=no
11971 fi
11972
11973 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11974 conftest$ac_exeext conftest.$ac_ext
11975 fi
11976
11977 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11978 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11979 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11980 echo "${ECHO_T}6 or newer" >&6; }
11981
11982 cat >>confdefs.h <<\_ACEOF
11983 #define HAVE_X11XTR6 1
11984 _ACEOF
11985
11986 else
11987 { echo "$as_me:$LINENO: result: before 6" >&5
11988 echo "${ECHO_T}before 6" >&6; }
11989 fi
11990
11991 OLDLIBS="$LIBS"
11992 if test x$HAVE_X11XTR6 = xyes; then
11993 LIBS="-lXt -lSM -lICE $LIBS"
11994 else
11995 LIBS="-lXt $LIBS"
11996 fi
11997
11998 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11999 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12000 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12001 echo $ECHO_N "(cached) $ECHO_C" >&6
12002 else
12003 ac_check_lib_save_LIBS=$LIBS
12004 LIBS="-lXmu $LIBS"
12005 cat >conftest.$ac_ext <<_ACEOF
12006 /* confdefs.h. */
12007 _ACEOF
12008 cat confdefs.h >>conftest.$ac_ext
12009 cat >>conftest.$ac_ext <<_ACEOF
12010 /* end confdefs.h. */
12011
12012 /* Override any GCC internal prototype to avoid an error.
12013 Use char because int might match the return type of a GCC
12014 builtin and then its argument prototype would still apply. */
12015 #ifdef __cplusplus
12016 extern "C"
12017 #endif
12018 char XmuConvertStandardSelection ();
12019 int
12020 main ()
12021 {
12022 return XmuConvertStandardSelection ();
12023 ;
12024 return 0;
12025 }
12026 _ACEOF
12027 rm -f conftest.$ac_objext conftest$ac_exeext
12028 if { (ac_try="$ac_link"
12029 case "(($ac_try" in
12030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12031 *) ac_try_echo=$ac_try;;
12032 esac
12033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12034 (eval "$ac_link") 2>conftest.er1
12035 ac_status=$?
12036 grep -v '^ *+' conftest.er1 >conftest.err
12037 rm -f conftest.er1
12038 cat conftest.err >&5
12039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12040 (exit $ac_status); } && {
12041 test -z "$ac_c_werror_flag" ||
12042 test ! -s conftest.err
12043 } && test -s conftest$ac_exeext &&
12044 $as_test_x conftest$ac_exeext; then
12045 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12046 else
12047 echo "$as_me: failed program was:" >&5
12048 sed 's/^/| /' conftest.$ac_ext >&5
12049
12050 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12051 fi
12052
12053 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12054 conftest$ac_exeext conftest.$ac_ext
12055 LIBS=$ac_check_lib_save_LIBS
12056 fi
12057 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12058 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12059 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12060 cat >>confdefs.h <<_ACEOF
12061 #define HAVE_LIBXMU 1
12062 _ACEOF
12063
12064 LIBS="-lXmu $LIBS"
12065
12066 fi
12067
12068 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12069 fi
12070
12071 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12072 if test "${HAVE_X11}" = "yes"; then
12073 if test "${USE_X_TOOLKIT}" != "none"; then
12074
12075 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12076 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12077 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12078 echo $ECHO_N "(cached) $ECHO_C" >&6
12079 else
12080 ac_check_lib_save_LIBS=$LIBS
12081 LIBS="-lXext $LIBS"
12082 cat >conftest.$ac_ext <<_ACEOF
12083 /* confdefs.h. */
12084 _ACEOF
12085 cat confdefs.h >>conftest.$ac_ext
12086 cat >>conftest.$ac_ext <<_ACEOF
12087 /* end confdefs.h. */
12088
12089 /* Override any GCC internal prototype to avoid an error.
12090 Use char because int might match the return type of a GCC
12091 builtin and then its argument prototype would still apply. */
12092 #ifdef __cplusplus
12093 extern "C"
12094 #endif
12095 char XShapeQueryExtension ();
12096 int
12097 main ()
12098 {
12099 return XShapeQueryExtension ();
12100 ;
12101 return 0;
12102 }
12103 _ACEOF
12104 rm -f conftest.$ac_objext conftest$ac_exeext
12105 if { (ac_try="$ac_link"
12106 case "(($ac_try" in
12107 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12108 *) ac_try_echo=$ac_try;;
12109 esac
12110 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12111 (eval "$ac_link") 2>conftest.er1
12112 ac_status=$?
12113 grep -v '^ *+' conftest.er1 >conftest.err
12114 rm -f conftest.er1
12115 cat conftest.err >&5
12116 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12117 (exit $ac_status); } && {
12118 test -z "$ac_c_werror_flag" ||
12119 test ! -s conftest.err
12120 } && test -s conftest$ac_exeext &&
12121 $as_test_x conftest$ac_exeext; then
12122 ac_cv_lib_Xext_XShapeQueryExtension=yes
12123 else
12124 echo "$as_me: failed program was:" >&5
12125 sed 's/^/| /' conftest.$ac_ext >&5
12126
12127 ac_cv_lib_Xext_XShapeQueryExtension=no
12128 fi
12129
12130 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12131 conftest$ac_exeext conftest.$ac_ext
12132 LIBS=$ac_check_lib_save_LIBS
12133 fi
12134 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12135 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12136 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12137 cat >>confdefs.h <<_ACEOF
12138 #define HAVE_LIBXEXT 1
12139 _ACEOF
12140
12141 LIBS="-lXext $LIBS"
12142
12143 fi
12144
12145 fi
12146 fi
12147
12148 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12149 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12150 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12151 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12152 echo $ECHO_N "(cached) $ECHO_C" >&6
12153 else
12154 cat >conftest.$ac_ext <<_ACEOF
12155 /* confdefs.h. */
12156 _ACEOF
12157 cat confdefs.h >>conftest.$ac_ext
12158 cat >>conftest.$ac_ext <<_ACEOF
12159 /* end confdefs.h. */
12160 #include <Xm/Xm.h>
12161 int
12162 main ()
12163 {
12164 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12165 int x = 5;
12166 #else
12167 Motif version prior to 2.1.
12168 #endif
12169 ;
12170 return 0;
12171 }
12172 _ACEOF
12173 rm -f conftest.$ac_objext
12174 if { (ac_try="$ac_compile"
12175 case "(($ac_try" in
12176 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12177 *) ac_try_echo=$ac_try;;
12178 esac
12179 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12180 (eval "$ac_compile") 2>conftest.er1
12181 ac_status=$?
12182 grep -v '^ *+' conftest.er1 >conftest.err
12183 rm -f conftest.er1
12184 cat conftest.err >&5
12185 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12186 (exit $ac_status); } && {
12187 test -z "$ac_c_werror_flag" ||
12188 test ! -s conftest.err
12189 } && test -s conftest.$ac_objext; then
12190 emacs_cv_motif_version_2_1=yes
12191 else
12192 echo "$as_me: failed program was:" >&5
12193 sed 's/^/| /' conftest.$ac_ext >&5
12194
12195 emacs_cv_motif_version_2_1=no
12196 fi
12197
12198 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12199 fi
12200 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12201 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12202 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12203 if test $emacs_cv_motif_version_2_1 = yes; then
12204 HAVE_LIBXP=no
12205
12206 cat >>confdefs.h <<\_ACEOF
12207 #define HAVE_MOTIF_2_1 1
12208 _ACEOF
12209
12210 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12211 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12212 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 ac_check_lib_save_LIBS=$LIBS
12216 LIBS="-lXp $LIBS"
12217 cat >conftest.$ac_ext <<_ACEOF
12218 /* confdefs.h. */
12219 _ACEOF
12220 cat confdefs.h >>conftest.$ac_ext
12221 cat >>conftest.$ac_ext <<_ACEOF
12222 /* end confdefs.h. */
12223
12224 /* Override any GCC internal prototype to avoid an error.
12225 Use char because int might match the return type of a GCC
12226 builtin and then its argument prototype would still apply. */
12227 #ifdef __cplusplus
12228 extern "C"
12229 #endif
12230 char XpCreateContext ();
12231 int
12232 main ()
12233 {
12234 return XpCreateContext ();
12235 ;
12236 return 0;
12237 }
12238 _ACEOF
12239 rm -f conftest.$ac_objext conftest$ac_exeext
12240 if { (ac_try="$ac_link"
12241 case "(($ac_try" in
12242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12243 *) ac_try_echo=$ac_try;;
12244 esac
12245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12246 (eval "$ac_link") 2>conftest.er1
12247 ac_status=$?
12248 grep -v '^ *+' conftest.er1 >conftest.err
12249 rm -f conftest.er1
12250 cat conftest.err >&5
12251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12252 (exit $ac_status); } && {
12253 test -z "$ac_c_werror_flag" ||
12254 test ! -s conftest.err
12255 } && test -s conftest$ac_exeext &&
12256 $as_test_x conftest$ac_exeext; then
12257 ac_cv_lib_Xp_XpCreateContext=yes
12258 else
12259 echo "$as_me: failed program was:" >&5
12260 sed 's/^/| /' conftest.$ac_ext >&5
12261
12262 ac_cv_lib_Xp_XpCreateContext=no
12263 fi
12264
12265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12266 conftest$ac_exeext conftest.$ac_ext
12267 LIBS=$ac_check_lib_save_LIBS
12268 fi
12269 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12270 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12271 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12272 HAVE_LIBXP=yes
12273 fi
12274
12275 if test ${HAVE_LIBXP} = yes; then
12276
12277 cat >>confdefs.h <<\_ACEOF
12278 #define HAVE_LIBXP 1
12279 _ACEOF
12280
12281 fi
12282 else
12283 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12284 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12285 if test "${emacs_cv_lesstif+set}" = set; then
12286 echo $ECHO_N "(cached) $ECHO_C" >&6
12287 else
12288 # We put this in CFLAGS temporarily to precede other -I options
12289 # that might be in CFLAGS temporarily.
12290 # We put this in CPPFLAGS where it precedes the other -I options.
12291 OLD_CPPFLAGS=$CPPFLAGS
12292 OLD_CFLAGS=$CFLAGS
12293 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12294 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12295 cat >conftest.$ac_ext <<_ACEOF
12296 /* confdefs.h. */
12297 _ACEOF
12298 cat confdefs.h >>conftest.$ac_ext
12299 cat >>conftest.$ac_ext <<_ACEOF
12300 /* end confdefs.h. */
12301 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12302 int
12303 main ()
12304 {
12305 int x = 5;
12306 ;
12307 return 0;
12308 }
12309 _ACEOF
12310 rm -f conftest.$ac_objext
12311 if { (ac_try="$ac_compile"
12312 case "(($ac_try" in
12313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12314 *) ac_try_echo=$ac_try;;
12315 esac
12316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12317 (eval "$ac_compile") 2>conftest.er1
12318 ac_status=$?
12319 grep -v '^ *+' conftest.er1 >conftest.err
12320 rm -f conftest.er1
12321 cat conftest.err >&5
12322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12323 (exit $ac_status); } && {
12324 test -z "$ac_c_werror_flag" ||
12325 test ! -s conftest.err
12326 } && test -s conftest.$ac_objext; then
12327 emacs_cv_lesstif=yes
12328 else
12329 echo "$as_me: failed program was:" >&5
12330 sed 's/^/| /' conftest.$ac_ext >&5
12331
12332 emacs_cv_lesstif=no
12333 fi
12334
12335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12336 fi
12337 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12338 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12339 if test $emacs_cv_lesstif = yes; then
12340 # Make sure this -I option remains in CPPFLAGS after it is set
12341 # back to REAL_CPPFLAGS.
12342 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12343 # have those other -I options anyway. Ultimately, having this
12344 # directory ultimately in CPPFLAGS will be enough.
12345 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12346 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12347 else
12348 CFLAGS=$OLD_CFLAGS
12349 CPPFLAGS=$OLD_CPPFLAGS
12350 fi
12351 fi
12352 fi
12353
12354 ### Is -lXaw3d available?
12355 HAVE_XAW3D=no
12356 if test "${HAVE_X11}" = "yes"; then
12357 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12358 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12359 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12360 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12361 echo $ECHO_N "(cached) $ECHO_C" >&6
12362 else
12363 cat >conftest.$ac_ext <<_ACEOF
12364 /* confdefs.h. */
12365 _ACEOF
12366 cat confdefs.h >>conftest.$ac_ext
12367 cat >>conftest.$ac_ext <<_ACEOF
12368 /* end confdefs.h. */
12369 #include <X11/Xaw3d/Scrollbar.h>
12370 _ACEOF
12371 if { (ac_try="$ac_cpp conftest.$ac_ext"
12372 case "(($ac_try" in
12373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12374 *) ac_try_echo=$ac_try;;
12375 esac
12376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12377 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12378 ac_status=$?
12379 grep -v '^ *+' conftest.er1 >conftest.err
12380 rm -f conftest.er1
12381 cat conftest.err >&5
12382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12383 (exit $ac_status); } >/dev/null && {
12384 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12385 test ! -s conftest.err
12386 }; then
12387 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12388 else
12389 echo "$as_me: failed program was:" >&5
12390 sed 's/^/| /' conftest.$ac_ext >&5
12391
12392 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12393 fi
12394
12395 rm -f conftest.err conftest.$ac_ext
12396 fi
12397 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12398 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12399 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12400 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12401 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12402 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12403 echo $ECHO_N "(cached) $ECHO_C" >&6
12404 else
12405 ac_check_lib_save_LIBS=$LIBS
12406 LIBS="-lXaw3d $LIBS"
12407 cat >conftest.$ac_ext <<_ACEOF
12408 /* confdefs.h. */
12409 _ACEOF
12410 cat confdefs.h >>conftest.$ac_ext
12411 cat >>conftest.$ac_ext <<_ACEOF
12412 /* end confdefs.h. */
12413
12414 /* Override any GCC internal prototype to avoid an error.
12415 Use char because int might match the return type of a GCC
12416 builtin and then its argument prototype would still apply. */
12417 #ifdef __cplusplus
12418 extern "C"
12419 #endif
12420 char XawScrollbarSetThumb ();
12421 int
12422 main ()
12423 {
12424 return XawScrollbarSetThumb ();
12425 ;
12426 return 0;
12427 }
12428 _ACEOF
12429 rm -f conftest.$ac_objext conftest$ac_exeext
12430 if { (ac_try="$ac_link"
12431 case "(($ac_try" in
12432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12433 *) ac_try_echo=$ac_try;;
12434 esac
12435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12436 (eval "$ac_link") 2>conftest.er1
12437 ac_status=$?
12438 grep -v '^ *+' conftest.er1 >conftest.err
12439 rm -f conftest.er1
12440 cat conftest.err >&5
12441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12442 (exit $ac_status); } && {
12443 test -z "$ac_c_werror_flag" ||
12444 test ! -s conftest.err
12445 } && test -s conftest$ac_exeext &&
12446 $as_test_x conftest$ac_exeext; then
12447 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12448 else
12449 echo "$as_me: failed program was:" >&5
12450 sed 's/^/| /' conftest.$ac_ext >&5
12451
12452 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12453 fi
12454
12455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12456 conftest$ac_exeext conftest.$ac_ext
12457 LIBS=$ac_check_lib_save_LIBS
12458 fi
12459 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12460 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12461 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12462 HAVE_XAW3D=yes
12463 fi
12464
12465 fi
12466
12467
12468 if test "${HAVE_XAW3D}" = "yes"; then
12469
12470 cat >>confdefs.h <<\_ACEOF
12471 #define HAVE_XAW3D 1
12472 _ACEOF
12473
12474 fi
12475 fi
12476 fi
12477
12478
12479
12480 USE_TOOLKIT_SCROLL_BARS=no
12481 if test "${with_toolkit_scroll_bars}" != "no"; then
12482 if test "${USE_X_TOOLKIT}" != "none"; then
12483 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12484 cat >>confdefs.h <<\_ACEOF
12485 #define USE_TOOLKIT_SCROLL_BARS 1
12486 _ACEOF
12487
12488 HAVE_XAW3D=no
12489 USE_TOOLKIT_SCROLL_BARS=yes
12490 elif test "${HAVE_XAW3D}" = "yes"; then
12491 cat >>confdefs.h <<\_ACEOF
12492 #define USE_TOOLKIT_SCROLL_BARS 1
12493 _ACEOF
12494
12495 USE_TOOLKIT_SCROLL_BARS=yes
12496 fi
12497 elif test "${HAVE_GTK}" = "yes"; then
12498 cat >>confdefs.h <<\_ACEOF
12499 #define USE_TOOLKIT_SCROLL_BARS 1
12500 _ACEOF
12501
12502 USE_TOOLKIT_SCROLL_BARS=yes
12503 elif test "${HAVE_CARBON}" = "yes"; then
12504 cat >>confdefs.h <<\_ACEOF
12505 #define USE_TOOLKIT_SCROLL_BARS 1
12506 _ACEOF
12507
12508 USE_TOOLKIT_SCROLL_BARS=yes
12509 fi
12510 fi
12511
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518
12519 #include <X11/Xlib.h>
12520 #include <X11/Xresource.h>
12521 int
12522 main ()
12523 {
12524 XIMProc callback;
12525 ;
12526 return 0;
12527 }
12528 _ACEOF
12529 rm -f conftest.$ac_objext
12530 if { (ac_try="$ac_compile"
12531 case "(($ac_try" in
12532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12533 *) ac_try_echo=$ac_try;;
12534 esac
12535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12536 (eval "$ac_compile") 2>conftest.er1
12537 ac_status=$?
12538 grep -v '^ *+' conftest.er1 >conftest.err
12539 rm -f conftest.er1
12540 cat conftest.err >&5
12541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12542 (exit $ac_status); } && {
12543 test -z "$ac_c_werror_flag" ||
12544 test ! -s conftest.err
12545 } && test -s conftest.$ac_objext; then
12546 HAVE_XIM=yes
12547
12548 cat >>confdefs.h <<\_ACEOF
12549 #define HAVE_XIM 1
12550 _ACEOF
12551
12552 else
12553 echo "$as_me: failed program was:" >&5
12554 sed 's/^/| /' conftest.$ac_ext >&5
12555
12556 HAVE_XIM=no
12557 fi
12558
12559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12560
12561
12562 if test "${with_xim}" != "no"; then
12563
12564 cat >>confdefs.h <<\_ACEOF
12565 #define USE_XIM 1
12566 _ACEOF
12567
12568 fi
12569
12570
12571 if test "${HAVE_XIM}" != "no"; then
12572 late_CFLAGS=$CFLAGS
12573 if test "$GCC" = yes; then
12574 CFLAGS="$CFLAGS --pedantic-errors"
12575 fi
12576 cat >conftest.$ac_ext <<_ACEOF
12577 /* confdefs.h. */
12578 _ACEOF
12579 cat confdefs.h >>conftest.$ac_ext
12580 cat >>conftest.$ac_ext <<_ACEOF
12581 /* end confdefs.h. */
12582
12583 #include <X11/Xlib.h>
12584 #include <X11/Xresource.h>
12585 int
12586 main ()
12587 {
12588 Display *display;
12589 XrmDatabase db;
12590 char *res_name;
12591 char *res_class;
12592 XIMProc callback;
12593 XPointer *client_data;
12594 #ifndef __GNUC__
12595 /* If we're not using GCC, it's probably not XFree86, and this is
12596 probably right, but we can't use something like --pedantic-errors. */
12597 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12598 char*, XIMProc, XPointer*);
12599 #endif
12600 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12601 client_data);
12602 ;
12603 return 0;
12604 }
12605 _ACEOF
12606 rm -f conftest.$ac_objext
12607 if { (ac_try="$ac_compile"
12608 case "(($ac_try" in
12609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12610 *) ac_try_echo=$ac_try;;
12611 esac
12612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12613 (eval "$ac_compile") 2>conftest.er1
12614 ac_status=$?
12615 grep -v '^ *+' conftest.er1 >conftest.err
12616 rm -f conftest.er1
12617 cat conftest.err >&5
12618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12619 (exit $ac_status); } && {
12620 test -z "$ac_c_werror_flag" ||
12621 test ! -s conftest.err
12622 } && test -s conftest.$ac_objext; then
12623 emacs_cv_arg6_star=yes
12624 else
12625 echo "$as_me: failed program was:" >&5
12626 sed 's/^/| /' conftest.$ac_ext >&5
12627
12628
12629 fi
12630
12631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12632
12633 if test "$emacs_cv_arg6_star" = yes; then
12634 cat >>confdefs.h <<\_ACEOF
12635 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12636 _ACEOF
12637
12638 else
12639 cat >>confdefs.h <<\_ACEOF
12640 #define XRegisterIMInstantiateCallback_arg6 XPointer
12641 _ACEOF
12642
12643 fi
12644 CFLAGS=$late_CFLAGS
12645 fi
12646
12647 ### Use -lXpm if available, unless `--with-xpm=no'.
12648 HAVE_XPM=no
12649 if test "${HAVE_X11}" = "yes"; then
12650 if test "${with_xpm}" != "no"; then
12651 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12652 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12653 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12654 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12655 echo $ECHO_N "(cached) $ECHO_C" >&6
12656 fi
12657 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12658 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12659 else
12660 # Is the header compilable?
12661 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12662 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12663 cat >conftest.$ac_ext <<_ACEOF
12664 /* confdefs.h. */
12665 _ACEOF
12666 cat confdefs.h >>conftest.$ac_ext
12667 cat >>conftest.$ac_ext <<_ACEOF
12668 /* end confdefs.h. */
12669 $ac_includes_default
12670 #include <X11/xpm.h>
12671 _ACEOF
12672 rm -f conftest.$ac_objext
12673 if { (ac_try="$ac_compile"
12674 case "(($ac_try" in
12675 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12676 *) ac_try_echo=$ac_try;;
12677 esac
12678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12679 (eval "$ac_compile") 2>conftest.er1
12680 ac_status=$?
12681 grep -v '^ *+' conftest.er1 >conftest.err
12682 rm -f conftest.er1
12683 cat conftest.err >&5
12684 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12685 (exit $ac_status); } && {
12686 test -z "$ac_c_werror_flag" ||
12687 test ! -s conftest.err
12688 } && test -s conftest.$ac_objext; then
12689 ac_header_compiler=yes
12690 else
12691 echo "$as_me: failed program was:" >&5
12692 sed 's/^/| /' conftest.$ac_ext >&5
12693
12694 ac_header_compiler=no
12695 fi
12696
12697 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12698 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12699 echo "${ECHO_T}$ac_header_compiler" >&6; }
12700
12701 # Is the header present?
12702 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12703 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12704 cat >conftest.$ac_ext <<_ACEOF
12705 /* confdefs.h. */
12706 _ACEOF
12707 cat confdefs.h >>conftest.$ac_ext
12708 cat >>conftest.$ac_ext <<_ACEOF
12709 /* end confdefs.h. */
12710 #include <X11/xpm.h>
12711 _ACEOF
12712 if { (ac_try="$ac_cpp conftest.$ac_ext"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } >/dev/null && {
12725 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 }; then
12728 ac_header_preproc=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733 ac_header_preproc=no
12734 fi
12735
12736 rm -f conftest.err conftest.$ac_ext
12737 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12738 echo "${ECHO_T}$ac_header_preproc" >&6; }
12739
12740 # So? What about this header?
12741 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12742 yes:no: )
12743 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12744 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12746 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12747 ac_header_preproc=yes
12748 ;;
12749 no:yes:* )
12750 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12751 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12752 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12753 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12754 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12755 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12756 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12757 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12758 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12759 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12760 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12761 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12762
12763 ;;
12764 esac
12765 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12766 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12767 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12768 echo $ECHO_N "(cached) $ECHO_C" >&6
12769 else
12770 ac_cv_header_X11_xpm_h=$ac_header_preproc
12771 fi
12772 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12773 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12774
12775 fi
12776 if test $ac_cv_header_X11_xpm_h = yes; then
12777 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12778 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lXpm -lX11 $LIBS"
12784 cat >conftest.$ac_ext <<_ACEOF
12785 /* confdefs.h. */
12786 _ACEOF
12787 cat confdefs.h >>conftest.$ac_ext
12788 cat >>conftest.$ac_ext <<_ACEOF
12789 /* end confdefs.h. */
12790
12791 /* Override any GCC internal prototype to avoid an error.
12792 Use char because int might match the return type of a GCC
12793 builtin and then its argument prototype would still apply. */
12794 #ifdef __cplusplus
12795 extern "C"
12796 #endif
12797 char XpmReadFileToPixmap ();
12798 int
12799 main ()
12800 {
12801 return XpmReadFileToPixmap ();
12802 ;
12803 return 0;
12804 }
12805 _ACEOF
12806 rm -f conftest.$ac_objext conftest$ac_exeext
12807 if { (ac_try="$ac_link"
12808 case "(($ac_try" in
12809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12810 *) ac_try_echo=$ac_try;;
12811 esac
12812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12813 (eval "$ac_link") 2>conftest.er1
12814 ac_status=$?
12815 grep -v '^ *+' conftest.er1 >conftest.err
12816 rm -f conftest.er1
12817 cat conftest.err >&5
12818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12819 (exit $ac_status); } && {
12820 test -z "$ac_c_werror_flag" ||
12821 test ! -s conftest.err
12822 } && test -s conftest$ac_exeext &&
12823 $as_test_x conftest$ac_exeext; then
12824 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12830 fi
12831
12832 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12833 conftest$ac_exeext conftest.$ac_ext
12834 LIBS=$ac_check_lib_save_LIBS
12835 fi
12836 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12837 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12838 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12839 HAVE_XPM=yes
12840 fi
12841
12842 fi
12843
12844
12845 if test "${HAVE_XPM}" = "yes"; then
12846 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12847 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12848 cat >conftest.$ac_ext <<_ACEOF
12849 /* confdefs.h. */
12850 _ACEOF
12851 cat confdefs.h >>conftest.$ac_ext
12852 cat >>conftest.$ac_ext <<_ACEOF
12853 /* end confdefs.h. */
12854 #include "X11/xpm.h"
12855 #ifndef XpmReturnAllocPixels
12856 no_return_alloc_pixels
12857 #endif
12858
12859 _ACEOF
12860 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12861 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12862 HAVE_XPM=no
12863 else
12864 HAVE_XPM=yes
12865 fi
12866 rm -f conftest*
12867
12868
12869 if test "${HAVE_XPM}" = "yes"; then
12870 { echo "$as_me:$LINENO: result: yes" >&5
12871 echo "${ECHO_T}yes" >&6; }
12872 else
12873 { echo "$as_me:$LINENO: result: no" >&5
12874 echo "${ECHO_T}no" >&6; }
12875 fi
12876 fi
12877 fi
12878
12879 if test "${HAVE_XPM}" = "yes"; then
12880
12881 cat >>confdefs.h <<\_ACEOF
12882 #define HAVE_XPM 1
12883 _ACEOF
12884
12885 fi
12886 fi
12887
12888 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12889 HAVE_JPEG=no
12890 if test "${HAVE_X11}" = "yes"; then
12891 if test "${with_jpeg}" != "no"; then
12892 if test "${ac_cv_header_jerror_h+set}" = set; then
12893 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12894 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12895 if test "${ac_cv_header_jerror_h+set}" = set; then
12896 echo $ECHO_N "(cached) $ECHO_C" >&6
12897 fi
12898 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12899 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12900 else
12901 # Is the header compilable?
12902 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12903 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12904 cat >conftest.$ac_ext <<_ACEOF
12905 /* confdefs.h. */
12906 _ACEOF
12907 cat confdefs.h >>conftest.$ac_ext
12908 cat >>conftest.$ac_ext <<_ACEOF
12909 /* end confdefs.h. */
12910 $ac_includes_default
12911 #include <jerror.h>
12912 _ACEOF
12913 rm -f conftest.$ac_objext
12914 if { (ac_try="$ac_compile"
12915 case "(($ac_try" in
12916 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12917 *) ac_try_echo=$ac_try;;
12918 esac
12919 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12920 (eval "$ac_compile") 2>conftest.er1
12921 ac_status=$?
12922 grep -v '^ *+' conftest.er1 >conftest.err
12923 rm -f conftest.er1
12924 cat conftest.err >&5
12925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12926 (exit $ac_status); } && {
12927 test -z "$ac_c_werror_flag" ||
12928 test ! -s conftest.err
12929 } && test -s conftest.$ac_objext; then
12930 ac_header_compiler=yes
12931 else
12932 echo "$as_me: failed program was:" >&5
12933 sed 's/^/| /' conftest.$ac_ext >&5
12934
12935 ac_header_compiler=no
12936 fi
12937
12938 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12939 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12940 echo "${ECHO_T}$ac_header_compiler" >&6; }
12941
12942 # Is the header present?
12943 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12944 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12945 cat >conftest.$ac_ext <<_ACEOF
12946 /* confdefs.h. */
12947 _ACEOF
12948 cat confdefs.h >>conftest.$ac_ext
12949 cat >>conftest.$ac_ext <<_ACEOF
12950 /* end confdefs.h. */
12951 #include <jerror.h>
12952 _ACEOF
12953 if { (ac_try="$ac_cpp conftest.$ac_ext"
12954 case "(($ac_try" in
12955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12956 *) ac_try_echo=$ac_try;;
12957 esac
12958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12959 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12960 ac_status=$?
12961 grep -v '^ *+' conftest.er1 >conftest.err
12962 rm -f conftest.er1
12963 cat conftest.err >&5
12964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12965 (exit $ac_status); } >/dev/null && {
12966 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12967 test ! -s conftest.err
12968 }; then
12969 ac_header_preproc=yes
12970 else
12971 echo "$as_me: failed program was:" >&5
12972 sed 's/^/| /' conftest.$ac_ext >&5
12973
12974 ac_header_preproc=no
12975 fi
12976
12977 rm -f conftest.err conftest.$ac_ext
12978 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12979 echo "${ECHO_T}$ac_header_preproc" >&6; }
12980
12981 # So? What about this header?
12982 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12983 yes:no: )
12984 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12985 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12986 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12987 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12988 ac_header_preproc=yes
12989 ;;
12990 no:yes:* )
12991 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12992 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12993 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12994 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12995 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12996 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12997 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12998 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12999 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13000 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13001 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13002 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13003
13004 ;;
13005 esac
13006 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13007 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13008 if test "${ac_cv_header_jerror_h+set}" = set; then
13009 echo $ECHO_N "(cached) $ECHO_C" >&6
13010 else
13011 ac_cv_header_jerror_h=$ac_header_preproc
13012 fi
13013 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13014 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13015
13016 fi
13017 if test $ac_cv_header_jerror_h = yes; then
13018 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13019 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13020 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13021 echo $ECHO_N "(cached) $ECHO_C" >&6
13022 else
13023 ac_check_lib_save_LIBS=$LIBS
13024 LIBS="-ljpeg $LIBS"
13025 cat >conftest.$ac_ext <<_ACEOF
13026 /* confdefs.h. */
13027 _ACEOF
13028 cat confdefs.h >>conftest.$ac_ext
13029 cat >>conftest.$ac_ext <<_ACEOF
13030 /* end confdefs.h. */
13031
13032 /* Override any GCC internal prototype to avoid an error.
13033 Use char because int might match the return type of a GCC
13034 builtin and then its argument prototype would still apply. */
13035 #ifdef __cplusplus
13036 extern "C"
13037 #endif
13038 char jpeg_destroy_compress ();
13039 int
13040 main ()
13041 {
13042 return jpeg_destroy_compress ();
13043 ;
13044 return 0;
13045 }
13046 _ACEOF
13047 rm -f conftest.$ac_objext conftest$ac_exeext
13048 if { (ac_try="$ac_link"
13049 case "(($ac_try" in
13050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13051 *) ac_try_echo=$ac_try;;
13052 esac
13053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13054 (eval "$ac_link") 2>conftest.er1
13055 ac_status=$?
13056 grep -v '^ *+' conftest.er1 >conftest.err
13057 rm -f conftest.er1
13058 cat conftest.err >&5
13059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13060 (exit $ac_status); } && {
13061 test -z "$ac_c_werror_flag" ||
13062 test ! -s conftest.err
13063 } && test -s conftest$ac_exeext &&
13064 $as_test_x conftest$ac_exeext; then
13065 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13066 else
13067 echo "$as_me: failed program was:" >&5
13068 sed 's/^/| /' conftest.$ac_ext >&5
13069
13070 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13071 fi
13072
13073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13074 conftest$ac_exeext conftest.$ac_ext
13075 LIBS=$ac_check_lib_save_LIBS
13076 fi
13077 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13078 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13079 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13080 HAVE_JPEG=yes
13081 fi
13082
13083 fi
13084
13085
13086 fi
13087
13088
13089 if test "${HAVE_JPEG}" = "yes"; then
13090 cat >>confdefs.h <<\_ACEOF
13091 #define HAVE_JPEG 1
13092 _ACEOF
13093
13094 cat >conftest.$ac_ext <<_ACEOF
13095 /* confdefs.h. */
13096 _ACEOF
13097 cat confdefs.h >>conftest.$ac_ext
13098 cat >>conftest.$ac_ext <<_ACEOF
13099 /* end confdefs.h. */
13100 #include <jpeglib.h>
13101 version=JPEG_LIB_VERSION
13102
13103 _ACEOF
13104 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13105 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13106 cat >>confdefs.h <<\_ACEOF
13107 #define HAVE_JPEG 1
13108 _ACEOF
13109
13110 else
13111 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13112 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13113 HAVE_JPEG=no
13114 fi
13115 rm -f conftest*
13116
13117 fi
13118 fi
13119
13120 ### Use -lpng if available, unless `--with-png=no'.
13121 HAVE_PNG=no
13122 if test "${HAVE_X11}" = "yes"; then
13123 if test "${with_png}" != "no"; then
13124 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13125 # in /usr/include/libpng.
13126
13127
13128 for ac_header in png.h libpng/png.h
13129 do
13130 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13132 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13133 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13134 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13135 echo $ECHO_N "(cached) $ECHO_C" >&6
13136 fi
13137 ac_res=`eval echo '${'$as_ac_Header'}'`
13138 { echo "$as_me:$LINENO: result: $ac_res" >&5
13139 echo "${ECHO_T}$ac_res" >&6; }
13140 else
13141 # Is the header compilable?
13142 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13143 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13144 cat >conftest.$ac_ext <<_ACEOF
13145 /* confdefs.h. */
13146 _ACEOF
13147 cat confdefs.h >>conftest.$ac_ext
13148 cat >>conftest.$ac_ext <<_ACEOF
13149 /* end confdefs.h. */
13150 $ac_includes_default
13151 #include <$ac_header>
13152 _ACEOF
13153 rm -f conftest.$ac_objext
13154 if { (ac_try="$ac_compile"
13155 case "(($ac_try" in
13156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13157 *) ac_try_echo=$ac_try;;
13158 esac
13159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13160 (eval "$ac_compile") 2>conftest.er1
13161 ac_status=$?
13162 grep -v '^ *+' conftest.er1 >conftest.err
13163 rm -f conftest.er1
13164 cat conftest.err >&5
13165 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13166 (exit $ac_status); } && {
13167 test -z "$ac_c_werror_flag" ||
13168 test ! -s conftest.err
13169 } && test -s conftest.$ac_objext; then
13170 ac_header_compiler=yes
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_header_compiler=no
13176 fi
13177
13178 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13179 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13180 echo "${ECHO_T}$ac_header_compiler" >&6; }
13181
13182 # Is the header present?
13183 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13184 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13185 cat >conftest.$ac_ext <<_ACEOF
13186 /* confdefs.h. */
13187 _ACEOF
13188 cat confdefs.h >>conftest.$ac_ext
13189 cat >>conftest.$ac_ext <<_ACEOF
13190 /* end confdefs.h. */
13191 #include <$ac_header>
13192 _ACEOF
13193 if { (ac_try="$ac_cpp conftest.$ac_ext"
13194 case "(($ac_try" in
13195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13196 *) ac_try_echo=$ac_try;;
13197 esac
13198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13200 ac_status=$?
13201 grep -v '^ *+' conftest.er1 >conftest.err
13202 rm -f conftest.er1
13203 cat conftest.err >&5
13204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13205 (exit $ac_status); } >/dev/null && {
13206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13207 test ! -s conftest.err
13208 }; then
13209 ac_header_preproc=yes
13210 else
13211 echo "$as_me: failed program was:" >&5
13212 sed 's/^/| /' conftest.$ac_ext >&5
13213
13214 ac_header_preproc=no
13215 fi
13216
13217 rm -f conftest.err conftest.$ac_ext
13218 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13219 echo "${ECHO_T}$ac_header_preproc" >&6; }
13220
13221 # So? What about this header?
13222 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13223 yes:no: )
13224 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13225 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13227 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13228 ac_header_preproc=yes
13229 ;;
13230 no:yes:* )
13231 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13232 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13234 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13236 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13238 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13240 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13241 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13242 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13243
13244 ;;
13245 esac
13246 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13247 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13248 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13249 echo $ECHO_N "(cached) $ECHO_C" >&6
13250 else
13251 eval "$as_ac_Header=\$ac_header_preproc"
13252 fi
13253 ac_res=`eval echo '${'$as_ac_Header'}'`
13254 { echo "$as_me:$LINENO: result: $ac_res" >&5
13255 echo "${ECHO_T}$ac_res" >&6; }
13256
13257 fi
13258 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13259 cat >>confdefs.h <<_ACEOF
13260 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13261 _ACEOF
13262
13263 fi
13264
13265 done
13266
13267 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13268 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13269 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13270 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13271 echo $ECHO_N "(cached) $ECHO_C" >&6
13272 else
13273 ac_check_lib_save_LIBS=$LIBS
13274 LIBS="-lpng -lz -lm $LIBS"
13275 cat >conftest.$ac_ext <<_ACEOF
13276 /* confdefs.h. */
13277 _ACEOF
13278 cat confdefs.h >>conftest.$ac_ext
13279 cat >>conftest.$ac_ext <<_ACEOF
13280 /* end confdefs.h. */
13281
13282 /* Override any GCC internal prototype to avoid an error.
13283 Use char because int might match the return type of a GCC
13284 builtin and then its argument prototype would still apply. */
13285 #ifdef __cplusplus
13286 extern "C"
13287 #endif
13288 char png_get_channels ();
13289 int
13290 main ()
13291 {
13292 return png_get_channels ();
13293 ;
13294 return 0;
13295 }
13296 _ACEOF
13297 rm -f conftest.$ac_objext conftest$ac_exeext
13298 if { (ac_try="$ac_link"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302 esac
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_link") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } && {
13311 test -z "$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 } && test -s conftest$ac_exeext &&
13314 $as_test_x conftest$ac_exeext; then
13315 ac_cv_lib_png_png_get_channels=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ac_cv_lib_png_png_get_channels=no
13321 fi
13322
13323 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13324 conftest$ac_exeext conftest.$ac_ext
13325 LIBS=$ac_check_lib_save_LIBS
13326 fi
13327 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13328 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13329 if test $ac_cv_lib_png_png_get_channels = yes; then
13330 HAVE_PNG=yes
13331 fi
13332
13333 fi
13334 fi
13335
13336 if test "${HAVE_PNG}" = "yes"; then
13337
13338 cat >>confdefs.h <<\_ACEOF
13339 #define HAVE_PNG 1
13340 _ACEOF
13341
13342 fi
13343 fi
13344
13345 ### Use -ltiff if available, unless `--with-tiff=no'.
13346 HAVE_TIFF=no
13347 if test "${HAVE_X11}" = "yes"; then
13348 if test "${with_tiff}" != "no"; then
13349 if test "${ac_cv_header_tiffio_h+set}" = set; then
13350 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13351 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13352 if test "${ac_cv_header_tiffio_h+set}" = set; then
13353 echo $ECHO_N "(cached) $ECHO_C" >&6
13354 fi
13355 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13356 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13357 else
13358 # Is the header compilable?
13359 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13360 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13361 cat >conftest.$ac_ext <<_ACEOF
13362 /* confdefs.h. */
13363 _ACEOF
13364 cat confdefs.h >>conftest.$ac_ext
13365 cat >>conftest.$ac_ext <<_ACEOF
13366 /* end confdefs.h. */
13367 $ac_includes_default
13368 #include <tiffio.h>
13369 _ACEOF
13370 rm -f conftest.$ac_objext
13371 if { (ac_try="$ac_compile"
13372 case "(($ac_try" in
13373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13374 *) ac_try_echo=$ac_try;;
13375 esac
13376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13377 (eval "$ac_compile") 2>conftest.er1
13378 ac_status=$?
13379 grep -v '^ *+' conftest.er1 >conftest.err
13380 rm -f conftest.er1
13381 cat conftest.err >&5
13382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13383 (exit $ac_status); } && {
13384 test -z "$ac_c_werror_flag" ||
13385 test ! -s conftest.err
13386 } && test -s conftest.$ac_objext; then
13387 ac_header_compiler=yes
13388 else
13389 echo "$as_me: failed program was:" >&5
13390 sed 's/^/| /' conftest.$ac_ext >&5
13391
13392 ac_header_compiler=no
13393 fi
13394
13395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13396 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13397 echo "${ECHO_T}$ac_header_compiler" >&6; }
13398
13399 # Is the header present?
13400 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13401 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13402 cat >conftest.$ac_ext <<_ACEOF
13403 /* confdefs.h. */
13404 _ACEOF
13405 cat confdefs.h >>conftest.$ac_ext
13406 cat >>conftest.$ac_ext <<_ACEOF
13407 /* end confdefs.h. */
13408 #include <tiffio.h>
13409 _ACEOF
13410 if { (ac_try="$ac_cpp conftest.$ac_ext"
13411 case "(($ac_try" in
13412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413 *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13417 ac_status=$?
13418 grep -v '^ *+' conftest.er1 >conftest.err
13419 rm -f conftest.er1
13420 cat conftest.err >&5
13421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13422 (exit $ac_status); } >/dev/null && {
13423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13424 test ! -s conftest.err
13425 }; then
13426 ac_header_preproc=yes
13427 else
13428 echo "$as_me: failed program was:" >&5
13429 sed 's/^/| /' conftest.$ac_ext >&5
13430
13431 ac_header_preproc=no
13432 fi
13433
13434 rm -f conftest.err conftest.$ac_ext
13435 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13436 echo "${ECHO_T}$ac_header_preproc" >&6; }
13437
13438 # So? What about this header?
13439 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13440 yes:no: )
13441 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13442 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13443 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13444 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13445 ac_header_preproc=yes
13446 ;;
13447 no:yes:* )
13448 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13449 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13450 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13451 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13452 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13453 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13454 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13455 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13456 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13457 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13458 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13459 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13460
13461 ;;
13462 esac
13463 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13464 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13465 if test "${ac_cv_header_tiffio_h+set}" = set; then
13466 echo $ECHO_N "(cached) $ECHO_C" >&6
13467 else
13468 ac_cv_header_tiffio_h=$ac_header_preproc
13469 fi
13470 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13471 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13472
13473 fi
13474 if test $ac_cv_header_tiffio_h = yes; then
13475 tifflibs="-lz -lm"
13476 # At least one tiff package requires the jpeg library.
13477 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13478 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13479 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13480 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13481 echo $ECHO_N "(cached) $ECHO_C" >&6
13482 else
13483 ac_check_lib_save_LIBS=$LIBS
13484 LIBS="-ltiff $tifflibs $LIBS"
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491
13492 /* Override any GCC internal prototype to avoid an error.
13493 Use char because int might match the return type of a GCC
13494 builtin and then its argument prototype would still apply. */
13495 #ifdef __cplusplus
13496 extern "C"
13497 #endif
13498 char TIFFGetVersion ();
13499 int
13500 main ()
13501 {
13502 return TIFFGetVersion ();
13503 ;
13504 return 0;
13505 }
13506 _ACEOF
13507 rm -f conftest.$ac_objext conftest$ac_exeext
13508 if { (ac_try="$ac_link"
13509 case "(($ac_try" in
13510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13511 *) ac_try_echo=$ac_try;;
13512 esac
13513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13514 (eval "$ac_link") 2>conftest.er1
13515 ac_status=$?
13516 grep -v '^ *+' conftest.er1 >conftest.err
13517 rm -f conftest.er1
13518 cat conftest.err >&5
13519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13520 (exit $ac_status); } && {
13521 test -z "$ac_c_werror_flag" ||
13522 test ! -s conftest.err
13523 } && test -s conftest$ac_exeext &&
13524 $as_test_x conftest$ac_exeext; then
13525 ac_cv_lib_tiff_TIFFGetVersion=yes
13526 else
13527 echo "$as_me: failed program was:" >&5
13528 sed 's/^/| /' conftest.$ac_ext >&5
13529
13530 ac_cv_lib_tiff_TIFFGetVersion=no
13531 fi
13532
13533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13534 conftest$ac_exeext conftest.$ac_ext
13535 LIBS=$ac_check_lib_save_LIBS
13536 fi
13537 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13538 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13539 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13540 HAVE_TIFF=yes
13541 fi
13542
13543 fi
13544
13545
13546 fi
13547
13548 if test "${HAVE_TIFF}" = "yes"; then
13549
13550 cat >>confdefs.h <<\_ACEOF
13551 #define HAVE_TIFF 1
13552 _ACEOF
13553
13554 fi
13555 fi
13556
13557 ### Use -lgif if available, unless `--with-gif=no'.
13558 HAVE_GIF=no
13559 if test "${HAVE_X11}" = "yes"; then
13560 if test "${with_gif}" != "no"; then
13561 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13562 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13563 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13564 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13565 echo $ECHO_N "(cached) $ECHO_C" >&6
13566 fi
13567 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13568 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13569 else
13570 # Is the header compilable?
13571 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13572 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 $ac_includes_default
13580 #include <gif_lib.h>
13581 _ACEOF
13582 rm -f conftest.$ac_objext
13583 if { (ac_try="$ac_compile"
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_compile") 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 test -z "$ac_c_werror_flag" ||
13597 test ! -s conftest.err
13598 } && test -s conftest.$ac_objext; then
13599 ac_header_compiler=yes
13600 else
13601 echo "$as_me: failed program was:" >&5
13602 sed 's/^/| /' conftest.$ac_ext >&5
13603
13604 ac_header_compiler=no
13605 fi
13606
13607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13609 echo "${ECHO_T}$ac_header_compiler" >&6; }
13610
13611 # Is the header present?
13612 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13613 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h. */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h. */
13620 #include <gif_lib.h>
13621 _ACEOF
13622 if { (ac_try="$ac_cpp conftest.$ac_ext"
13623 case "(($ac_try" in
13624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13625 *) ac_try_echo=$ac_try;;
13626 esac
13627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13629 ac_status=$?
13630 grep -v '^ *+' conftest.er1 >conftest.err
13631 rm -f conftest.er1
13632 cat conftest.err >&5
13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13634 (exit $ac_status); } >/dev/null && {
13635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13636 test ! -s conftest.err
13637 }; then
13638 ac_header_preproc=yes
13639 else
13640 echo "$as_me: failed program was:" >&5
13641 sed 's/^/| /' conftest.$ac_ext >&5
13642
13643 ac_header_preproc=no
13644 fi
13645
13646 rm -f conftest.err conftest.$ac_ext
13647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13648 echo "${ECHO_T}$ac_header_preproc" >&6; }
13649
13650 # So? What about this header?
13651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13652 yes:no: )
13653 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13654 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13655 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13656 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13657 ac_header_preproc=yes
13658 ;;
13659 no:yes:* )
13660 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13661 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13662 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13663 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13664 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13665 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13666 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13667 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13668 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13669 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13670 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13671 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13672
13673 ;;
13674 esac
13675 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13676 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13677 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13678 echo $ECHO_N "(cached) $ECHO_C" >&6
13679 else
13680 ac_cv_header_gif_lib_h=$ac_header_preproc
13681 fi
13682 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13683 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13684
13685 fi
13686 if test $ac_cv_header_gif_lib_h = yes; then
13687 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13688 # Earlier versions can crash Emacs.
13689 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13690 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13691 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13692 echo $ECHO_N "(cached) $ECHO_C" >&6
13693 else
13694 ac_check_lib_save_LIBS=$LIBS
13695 LIBS="-lungif $LIBS"
13696 cat >conftest.$ac_ext <<_ACEOF
13697 /* confdefs.h. */
13698 _ACEOF
13699 cat confdefs.h >>conftest.$ac_ext
13700 cat >>conftest.$ac_ext <<_ACEOF
13701 /* end confdefs.h. */
13702
13703 /* Override any GCC internal prototype to avoid an error.
13704 Use char because int might match the return type of a GCC
13705 builtin and then its argument prototype would still apply. */
13706 #ifdef __cplusplus
13707 extern "C"
13708 #endif
13709 char EGifPutExtensionLast ();
13710 int
13711 main ()
13712 {
13713 return EGifPutExtensionLast ();
13714 ;
13715 return 0;
13716 }
13717 _ACEOF
13718 rm -f conftest.$ac_objext conftest$ac_exeext
13719 if { (ac_try="$ac_link"
13720 case "(($ac_try" in
13721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13722 *) ac_try_echo=$ac_try;;
13723 esac
13724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13725 (eval "$ac_link") 2>conftest.er1
13726 ac_status=$?
13727 grep -v '^ *+' conftest.er1 >conftest.err
13728 rm -f conftest.er1
13729 cat conftest.err >&5
13730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13731 (exit $ac_status); } && {
13732 test -z "$ac_c_werror_flag" ||
13733 test ! -s conftest.err
13734 } && test -s conftest$ac_exeext &&
13735 $as_test_x conftest$ac_exeext; then
13736 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ac_cv_lib_ungif_EGifPutExtensionLast=no
13742 fi
13743
13744 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13745 conftest$ac_exeext conftest.$ac_ext
13746 LIBS=$ac_check_lib_save_LIBS
13747 fi
13748 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13749 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13750 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13751 HAVE_GIF=yes
13752 fi
13753
13754 fi
13755
13756
13757 fi
13758
13759 if test "${HAVE_GIF}" = "yes"; then
13760
13761 cat >>confdefs.h <<\_ACEOF
13762 #define HAVE_GIF 1
13763 _ACEOF
13764
13765 fi
13766 fi
13767
13768 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13769 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13770 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13771 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13772 echo $ECHO_N "(cached) $ECHO_C" >&6
13773 fi
13774 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13775 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13776 else
13777 # Is the header compilable?
13778 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13779 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13780 cat >conftest.$ac_ext <<_ACEOF
13781 /* confdefs.h. */
13782 _ACEOF
13783 cat confdefs.h >>conftest.$ac_ext
13784 cat >>conftest.$ac_ext <<_ACEOF
13785 /* end confdefs.h. */
13786 $ac_includes_default
13787 #include <malloc/malloc.h>
13788 _ACEOF
13789 rm -f conftest.$ac_objext
13790 if { (ac_try="$ac_compile"
13791 case "(($ac_try" in
13792 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13793 *) ac_try_echo=$ac_try;;
13794 esac
13795 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13796 (eval "$ac_compile") 2>conftest.er1
13797 ac_status=$?
13798 grep -v '^ *+' conftest.er1 >conftest.err
13799 rm -f conftest.er1
13800 cat conftest.err >&5
13801 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13802 (exit $ac_status); } && {
13803 test -z "$ac_c_werror_flag" ||
13804 test ! -s conftest.err
13805 } && test -s conftest.$ac_objext; then
13806 ac_header_compiler=yes
13807 else
13808 echo "$as_me: failed program was:" >&5
13809 sed 's/^/| /' conftest.$ac_ext >&5
13810
13811 ac_header_compiler=no
13812 fi
13813
13814 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13815 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13816 echo "${ECHO_T}$ac_header_compiler" >&6; }
13817
13818 # Is the header present?
13819 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13820 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13821 cat >conftest.$ac_ext <<_ACEOF
13822 /* confdefs.h. */
13823 _ACEOF
13824 cat confdefs.h >>conftest.$ac_ext
13825 cat >>conftest.$ac_ext <<_ACEOF
13826 /* end confdefs.h. */
13827 #include <malloc/malloc.h>
13828 _ACEOF
13829 if { (ac_try="$ac_cpp conftest.$ac_ext"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } >/dev/null && {
13842 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13843 test ! -s conftest.err
13844 }; then
13845 ac_header_preproc=yes
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_header_preproc=no
13851 fi
13852
13853 rm -f conftest.err conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13855 echo "${ECHO_T}$ac_header_preproc" >&6; }
13856
13857 # So? What about this header?
13858 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13859 yes:no: )
13860 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13861 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13862 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13863 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13864 ac_header_preproc=yes
13865 ;;
13866 no:yes:* )
13867 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13868 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13869 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13870 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13871 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13872 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13873 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13874 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13875 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13876 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13877 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13878 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13879
13880 ;;
13881 esac
13882 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13883 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13884 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13885 echo $ECHO_N "(cached) $ECHO_C" >&6
13886 else
13887 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13888 fi
13889 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13890 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13891
13892 fi
13893 if test $ac_cv_header_malloc_malloc_h = yes; then
13894
13895 cat >>confdefs.h <<\_ACEOF
13896 #define HAVE_MALLOC_MALLOC_H 1
13897 _ACEOF
13898
13899 fi
13900
13901
13902
13903 ### Use Mac OS X Carbon API to implement GUI.
13904 if test "${HAVE_CARBON}" = "yes"; then
13905
13906 cat >>confdefs.h <<\_ACEOF
13907 #define HAVE_CARBON 1
13908 _ACEOF
13909
13910 ## Specify the install directory
13911 carbon_appdir=
13912 if test "${carbon_appdir_x}" != ""; then
13913 case ${carbon_appdir_x} in
13914 y | ye | yes) carbon_appdir=/Applications ;;
13915 * ) carbon_appdir=${carbon_appdir_x} ;;
13916 esac
13917 fi
13918 # We also have mouse menus.
13919 HAVE_MENUS=yes
13920 fi
13921
13922 ### Use session management (-lSM -lICE) if available
13923 HAVE_X_SM=no
13924 if test "${HAVE_X11}" = "yes"; then
13925 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13926 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13927 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13928 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13929 echo $ECHO_N "(cached) $ECHO_C" >&6
13930 fi
13931 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13932 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13933 else
13934 # Is the header compilable?
13935 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13936 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13937 cat >conftest.$ac_ext <<_ACEOF
13938 /* confdefs.h. */
13939 _ACEOF
13940 cat confdefs.h >>conftest.$ac_ext
13941 cat >>conftest.$ac_ext <<_ACEOF
13942 /* end confdefs.h. */
13943 $ac_includes_default
13944 #include <X11/SM/SMlib.h>
13945 _ACEOF
13946 rm -f conftest.$ac_objext
13947 if { (ac_try="$ac_compile"
13948 case "(($ac_try" in
13949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13950 *) ac_try_echo=$ac_try;;
13951 esac
13952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13953 (eval "$ac_compile") 2>conftest.er1
13954 ac_status=$?
13955 grep -v '^ *+' conftest.er1 >conftest.err
13956 rm -f conftest.er1
13957 cat conftest.err >&5
13958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13959 (exit $ac_status); } && {
13960 test -z "$ac_c_werror_flag" ||
13961 test ! -s conftest.err
13962 } && test -s conftest.$ac_objext; then
13963 ac_header_compiler=yes
13964 else
13965 echo "$as_me: failed program was:" >&5
13966 sed 's/^/| /' conftest.$ac_ext >&5
13967
13968 ac_header_compiler=no
13969 fi
13970
13971 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13972 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13973 echo "${ECHO_T}$ac_header_compiler" >&6; }
13974
13975 # Is the header present?
13976 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13977 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13978 cat >conftest.$ac_ext <<_ACEOF
13979 /* confdefs.h. */
13980 _ACEOF
13981 cat confdefs.h >>conftest.$ac_ext
13982 cat >>conftest.$ac_ext <<_ACEOF
13983 /* end confdefs.h. */
13984 #include <X11/SM/SMlib.h>
13985 _ACEOF
13986 if { (ac_try="$ac_cpp conftest.$ac_ext"
13987 case "(($ac_try" in
13988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13989 *) ac_try_echo=$ac_try;;
13990 esac
13991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13992 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13993 ac_status=$?
13994 grep -v '^ *+' conftest.er1 >conftest.err
13995 rm -f conftest.er1
13996 cat conftest.err >&5
13997 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13998 (exit $ac_status); } >/dev/null && {
13999 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14000 test ! -s conftest.err
14001 }; then
14002 ac_header_preproc=yes
14003 else
14004 echo "$as_me: failed program was:" >&5
14005 sed 's/^/| /' conftest.$ac_ext >&5
14006
14007 ac_header_preproc=no
14008 fi
14009
14010 rm -f conftest.err conftest.$ac_ext
14011 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14012 echo "${ECHO_T}$ac_header_preproc" >&6; }
14013
14014 # So? What about this header?
14015 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14016 yes:no: )
14017 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14018 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14019 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14020 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14021 ac_header_preproc=yes
14022 ;;
14023 no:yes:* )
14024 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14025 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14026 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14027 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14028 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14029 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14030 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14031 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14032 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14033 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14034 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14035 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14036
14037 ;;
14038 esac
14039 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14040 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14041 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14042 echo $ECHO_N "(cached) $ECHO_C" >&6
14043 else
14044 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14048
14049 fi
14050 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14051 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14052 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14053 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14054 echo $ECHO_N "(cached) $ECHO_C" >&6
14055 else
14056 ac_check_lib_save_LIBS=$LIBS
14057 LIBS="-lSM -lICE $LIBS"
14058 cat >conftest.$ac_ext <<_ACEOF
14059 /* confdefs.h. */
14060 _ACEOF
14061 cat confdefs.h >>conftest.$ac_ext
14062 cat >>conftest.$ac_ext <<_ACEOF
14063 /* end confdefs.h. */
14064
14065 /* Override any GCC internal prototype to avoid an error.
14066 Use char because int might match the return type of a GCC
14067 builtin and then its argument prototype would still apply. */
14068 #ifdef __cplusplus
14069 extern "C"
14070 #endif
14071 char SmcOpenConnection ();
14072 int
14073 main ()
14074 {
14075 return SmcOpenConnection ();
14076 ;
14077 return 0;
14078 }
14079 _ACEOF
14080 rm -f conftest.$ac_objext conftest$ac_exeext
14081 if { (ac_try="$ac_link"
14082 case "(($ac_try" in
14083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14084 *) ac_try_echo=$ac_try;;
14085 esac
14086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14087 (eval "$ac_link") 2>conftest.er1
14088 ac_status=$?
14089 grep -v '^ *+' conftest.er1 >conftest.err
14090 rm -f conftest.er1
14091 cat conftest.err >&5
14092 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14093 (exit $ac_status); } && {
14094 test -z "$ac_c_werror_flag" ||
14095 test ! -s conftest.err
14096 } && test -s conftest$ac_exeext &&
14097 $as_test_x conftest$ac_exeext; then
14098 ac_cv_lib_SM_SmcOpenConnection=yes
14099 else
14100 echo "$as_me: failed program was:" >&5
14101 sed 's/^/| /' conftest.$ac_ext >&5
14102
14103 ac_cv_lib_SM_SmcOpenConnection=no
14104 fi
14105
14106 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14107 conftest$ac_exeext conftest.$ac_ext
14108 LIBS=$ac_check_lib_save_LIBS
14109 fi
14110 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14111 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14112 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14113 HAVE_X_SM=yes
14114 fi
14115
14116 fi
14117
14118
14119
14120 if test "${HAVE_X_SM}" = "yes"; then
14121
14122 cat >>confdefs.h <<\_ACEOF
14123 #define HAVE_X_SM 1
14124 _ACEOF
14125
14126 case "$LIBS" in
14127 *-lSM*) ;;
14128 *) LIBS="-lSM -lICE $LIBS" ;;
14129 esac
14130 fi
14131 fi
14132
14133 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14134 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14135 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14136 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14137 echo $ECHO_N "(cached) $ECHO_C" >&6
14138 else
14139 cat >conftest.$ac_ext <<_ACEOF
14140 /* confdefs.h. */
14141 _ACEOF
14142 cat confdefs.h >>conftest.$ac_ext
14143 cat >>conftest.$ac_ext <<_ACEOF
14144 /* end confdefs.h. */
14145 #include <netdb.h>
14146 int
14147 main ()
14148 {
14149 return h_errno;
14150 ;
14151 return 0;
14152 }
14153 _ACEOF
14154 rm -f conftest.$ac_objext conftest$ac_exeext
14155 if { (ac_try="$ac_link"
14156 case "(($ac_try" in
14157 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14158 *) ac_try_echo=$ac_try;;
14159 esac
14160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14161 (eval "$ac_link") 2>conftest.er1
14162 ac_status=$?
14163 grep -v '^ *+' conftest.er1 >conftest.err
14164 rm -f conftest.er1
14165 cat conftest.err >&5
14166 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14167 (exit $ac_status); } && {
14168 test -z "$ac_c_werror_flag" ||
14169 test ! -s conftest.err
14170 } && test -s conftest$ac_exeext &&
14171 $as_test_x conftest$ac_exeext; then
14172 emacs_cv_netdb_declares_h_errno=yes
14173 else
14174 echo "$as_me: failed program was:" >&5
14175 sed 's/^/| /' conftest.$ac_ext >&5
14176
14177 emacs_cv_netdb_declares_h_errno=no
14178 fi
14179
14180 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14181 conftest$ac_exeext conftest.$ac_ext
14182 fi
14183 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14184 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14185 if test $emacs_cv_netdb_declares_h_errno = yes; then
14186
14187 cat >>confdefs.h <<\_ACEOF
14188 #define HAVE_H_ERRNO 1
14189 _ACEOF
14190
14191 fi
14192
14193 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14194 # for constant arguments. Useless!
14195 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14196 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14197 if test "${ac_cv_working_alloca_h+set}" = set; then
14198 echo $ECHO_N "(cached) $ECHO_C" >&6
14199 else
14200 cat >conftest.$ac_ext <<_ACEOF
14201 /* confdefs.h. */
14202 _ACEOF
14203 cat confdefs.h >>conftest.$ac_ext
14204 cat >>conftest.$ac_ext <<_ACEOF
14205 /* end confdefs.h. */
14206 #include <alloca.h>
14207 int
14208 main ()
14209 {
14210 char *p = (char *) alloca (2 * sizeof (int));
14211 if (p) return 0;
14212 ;
14213 return 0;
14214 }
14215 _ACEOF
14216 rm -f conftest.$ac_objext conftest$ac_exeext
14217 if { (ac_try="$ac_link"
14218 case "(($ac_try" in
14219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14220 *) ac_try_echo=$ac_try;;
14221 esac
14222 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14223 (eval "$ac_link") 2>conftest.er1
14224 ac_status=$?
14225 grep -v '^ *+' conftest.er1 >conftest.err
14226 rm -f conftest.er1
14227 cat conftest.err >&5
14228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14229 (exit $ac_status); } && {
14230 test -z "$ac_c_werror_flag" ||
14231 test ! -s conftest.err
14232 } && test -s conftest$ac_exeext &&
14233 $as_test_x conftest$ac_exeext; then
14234 ac_cv_working_alloca_h=yes
14235 else
14236 echo "$as_me: failed program was:" >&5
14237 sed 's/^/| /' conftest.$ac_ext >&5
14238
14239 ac_cv_working_alloca_h=no
14240 fi
14241
14242 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14243 conftest$ac_exeext conftest.$ac_ext
14244 fi
14245 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14246 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14247 if test $ac_cv_working_alloca_h = yes; then
14248
14249 cat >>confdefs.h <<\_ACEOF
14250 #define HAVE_ALLOCA_H 1
14251 _ACEOF
14252
14253 fi
14254
14255 { echo "$as_me:$LINENO: checking for alloca" >&5
14256 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14257 if test "${ac_cv_func_alloca_works+set}" = set; then
14258 echo $ECHO_N "(cached) $ECHO_C" >&6
14259 else
14260 cat >conftest.$ac_ext <<_ACEOF
14261 /* confdefs.h. */
14262 _ACEOF
14263 cat confdefs.h >>conftest.$ac_ext
14264 cat >>conftest.$ac_ext <<_ACEOF
14265 /* end confdefs.h. */
14266 #ifdef __GNUC__
14267 # define alloca __builtin_alloca
14268 #else
14269 # ifdef _MSC_VER
14270 # include <malloc.h>
14271 # define alloca _alloca
14272 # else
14273 # ifdef HAVE_ALLOCA_H
14274 # include <alloca.h>
14275 # else
14276 # ifdef _AIX
14277 #pragma alloca
14278 # else
14279 # ifndef alloca /* predefined by HP cc +Olibcalls */
14280 char *alloca ();
14281 # endif
14282 # endif
14283 # endif
14284 # endif
14285 #endif
14286
14287 int
14288 main ()
14289 {
14290 char *p = (char *) alloca (1);
14291 if (p) return 0;
14292 ;
14293 return 0;
14294 }
14295 _ACEOF
14296 rm -f conftest.$ac_objext conftest$ac_exeext
14297 if { (ac_try="$ac_link"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_link") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest$ac_exeext &&
14313 $as_test_x conftest$ac_exeext; then
14314 ac_cv_func_alloca_works=yes
14315 else
14316 echo "$as_me: failed program was:" >&5
14317 sed 's/^/| /' conftest.$ac_ext >&5
14318
14319 ac_cv_func_alloca_works=no
14320 fi
14321
14322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14323 conftest$ac_exeext conftest.$ac_ext
14324 fi
14325 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14326 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14327
14328 if test $ac_cv_func_alloca_works = yes; then
14329
14330 cat >>confdefs.h <<\_ACEOF
14331 #define HAVE_ALLOCA 1
14332 _ACEOF
14333
14334 else
14335 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14336 # that cause trouble. Some versions do not even contain alloca or
14337 # contain a buggy version. If you still want to use their alloca,
14338 # use ar to extract alloca.o from them instead of compiling alloca.c.
14339
14340 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14341
14342 cat >>confdefs.h <<\_ACEOF
14343 #define C_ALLOCA 1
14344 _ACEOF
14345
14346
14347 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14348 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14349 if test "${ac_cv_os_cray+set}" = set; then
14350 echo $ECHO_N "(cached) $ECHO_C" >&6
14351 else
14352 cat >conftest.$ac_ext <<_ACEOF
14353 /* confdefs.h. */
14354 _ACEOF
14355 cat confdefs.h >>conftest.$ac_ext
14356 cat >>conftest.$ac_ext <<_ACEOF
14357 /* end confdefs.h. */
14358 #if defined CRAY && ! defined CRAY2
14359 webecray
14360 #else
14361 wenotbecray
14362 #endif
14363
14364 _ACEOF
14365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14366 $EGREP "webecray" >/dev/null 2>&1; then
14367 ac_cv_os_cray=yes
14368 else
14369 ac_cv_os_cray=no
14370 fi
14371 rm -f conftest*
14372
14373 fi
14374 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14375 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14376 if test $ac_cv_os_cray = yes; then
14377 for ac_func in _getb67 GETB67 getb67; do
14378 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14379 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14380 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14381 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14382 echo $ECHO_N "(cached) $ECHO_C" >&6
14383 else
14384 cat >conftest.$ac_ext <<_ACEOF
14385 /* confdefs.h. */
14386 _ACEOF
14387 cat confdefs.h >>conftest.$ac_ext
14388 cat >>conftest.$ac_ext <<_ACEOF
14389 /* end confdefs.h. */
14390 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14391 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14392 #define $ac_func innocuous_$ac_func
14393
14394 /* System header to define __stub macros and hopefully few prototypes,
14395 which can conflict with char $ac_func (); below.
14396 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14397 <limits.h> exists even on freestanding compilers. */
14398
14399 #ifdef __STDC__
14400 # include <limits.h>
14401 #else
14402 # include <assert.h>
14403 #endif
14404
14405 #undef $ac_func
14406
14407 /* Override any GCC internal prototype to avoid an error.
14408 Use char because int might match the return type of a GCC
14409 builtin and then its argument prototype would still apply. */
14410 #ifdef __cplusplus
14411 extern "C"
14412 #endif
14413 char $ac_func ();
14414 /* The GNU C library defines this for functions which it implements
14415 to always fail with ENOSYS. Some functions are actually named
14416 something starting with __ and the normal name is an alias. */
14417 #if defined __stub_$ac_func || defined __stub___$ac_func
14418 choke me
14419 #endif
14420
14421 int
14422 main ()
14423 {
14424 return $ac_func ();
14425 ;
14426 return 0;
14427 }
14428 _ACEOF
14429 rm -f conftest.$ac_objext conftest$ac_exeext
14430 if { (ac_try="$ac_link"
14431 case "(($ac_try" in
14432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14433 *) ac_try_echo=$ac_try;;
14434 esac
14435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14436 (eval "$ac_link") 2>conftest.er1
14437 ac_status=$?
14438 grep -v '^ *+' conftest.er1 >conftest.err
14439 rm -f conftest.er1
14440 cat conftest.err >&5
14441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14442 (exit $ac_status); } && {
14443 test -z "$ac_c_werror_flag" ||
14444 test ! -s conftest.err
14445 } && test -s conftest$ac_exeext &&
14446 $as_test_x conftest$ac_exeext; then
14447 eval "$as_ac_var=yes"
14448 else
14449 echo "$as_me: failed program was:" >&5
14450 sed 's/^/| /' conftest.$ac_ext >&5
14451
14452 eval "$as_ac_var=no"
14453 fi
14454
14455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14456 conftest$ac_exeext conftest.$ac_ext
14457 fi
14458 ac_res=`eval echo '${'$as_ac_var'}'`
14459 { echo "$as_me:$LINENO: result: $ac_res" >&5
14460 echo "${ECHO_T}$ac_res" >&6; }
14461 if test `eval echo '${'$as_ac_var'}'` = yes; then
14462
14463 cat >>confdefs.h <<_ACEOF
14464 #define CRAY_STACKSEG_END $ac_func
14465 _ACEOF
14466
14467 break
14468 fi
14469
14470 done
14471 fi
14472
14473 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14474 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14475 if test "${ac_cv_c_stack_direction+set}" = set; then
14476 echo $ECHO_N "(cached) $ECHO_C" >&6
14477 else
14478 if test "$cross_compiling" = yes; then
14479 ac_cv_c_stack_direction=0
14480 else
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h. */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h. */
14487 $ac_includes_default
14488 int
14489 find_stack_direction ()
14490 {
14491 static char *addr = 0;
14492 auto char dummy;
14493 if (addr == 0)
14494 {
14495 addr = &dummy;
14496 return find_stack_direction ();
14497 }
14498 else
14499 return (&dummy > addr) ? 1 : -1;
14500 }
14501
14502 int
14503 main ()
14504 {
14505 return find_stack_direction () < 0;
14506 }
14507 _ACEOF
14508 rm -f conftest$ac_exeext
14509 if { (ac_try="$ac_link"
14510 case "(($ac_try" in
14511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14512 *) ac_try_echo=$ac_try;;
14513 esac
14514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14515 (eval "$ac_link") 2>&5
14516 ac_status=$?
14517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14518 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14519 { (case "(($ac_try" in
14520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14521 *) ac_try_echo=$ac_try;;
14522 esac
14523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14524 (eval "$ac_try") 2>&5
14525 ac_status=$?
14526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14527 (exit $ac_status); }; }; then
14528 ac_cv_c_stack_direction=1
14529 else
14530 echo "$as_me: program exited with status $ac_status" >&5
14531 echo "$as_me: failed program was:" >&5
14532 sed 's/^/| /' conftest.$ac_ext >&5
14533
14534 ( exit $ac_status )
14535 ac_cv_c_stack_direction=-1
14536 fi
14537 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14538 fi
14539
14540
14541 fi
14542 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14543 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14544
14545 cat >>confdefs.h <<_ACEOF
14546 #define STACK_DIRECTION $ac_cv_c_stack_direction
14547 _ACEOF
14548
14549
14550 fi
14551
14552
14553 # fmod, logb, and frexp are found in -lm on most systems.
14554 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14555
14556 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14557 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14558 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14559 echo $ECHO_N "(cached) $ECHO_C" >&6
14560 else
14561 ac_check_lib_save_LIBS=$LIBS
14562 LIBS="-lm $LIBS"
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h. */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h. */
14569
14570 /* Override any GCC internal prototype to avoid an error.
14571 Use char because int might match the return type of a GCC
14572 builtin and then its argument prototype would still apply. */
14573 #ifdef __cplusplus
14574 extern "C"
14575 #endif
14576 char sqrt ();
14577 int
14578 main ()
14579 {
14580 return sqrt ();
14581 ;
14582 return 0;
14583 }
14584 _ACEOF
14585 rm -f conftest.$ac_objext conftest$ac_exeext
14586 if { (ac_try="$ac_link"
14587 case "(($ac_try" in
14588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14589 *) ac_try_echo=$ac_try;;
14590 esac
14591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14592 (eval "$ac_link") 2>conftest.er1
14593 ac_status=$?
14594 grep -v '^ *+' conftest.er1 >conftest.err
14595 rm -f conftest.er1
14596 cat conftest.err >&5
14597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14598 (exit $ac_status); } && {
14599 test -z "$ac_c_werror_flag" ||
14600 test ! -s conftest.err
14601 } && test -s conftest$ac_exeext &&
14602 $as_test_x conftest$ac_exeext; then
14603 ac_cv_lib_m_sqrt=yes
14604 else
14605 echo "$as_me: failed program was:" >&5
14606 sed 's/^/| /' conftest.$ac_ext >&5
14607
14608 ac_cv_lib_m_sqrt=no
14609 fi
14610
14611 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14612 conftest$ac_exeext conftest.$ac_ext
14613 LIBS=$ac_check_lib_save_LIBS
14614 fi
14615 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14616 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14617 if test $ac_cv_lib_m_sqrt = yes; then
14618 cat >>confdefs.h <<_ACEOF
14619 #define HAVE_LIBM 1
14620 _ACEOF
14621
14622 LIBS="-lm $LIBS"
14623
14624 fi
14625
14626
14627 # Check for mail-locking functions in a "mail" library. Probably this should
14628 # have the same check as for liblockfile below.
14629
14630 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14631 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14632 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14633 echo $ECHO_N "(cached) $ECHO_C" >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lmail $LIBS"
14637 cat >conftest.$ac_ext <<_ACEOF
14638 /* confdefs.h. */
14639 _ACEOF
14640 cat confdefs.h >>conftest.$ac_ext
14641 cat >>conftest.$ac_ext <<_ACEOF
14642 /* end confdefs.h. */
14643
14644 /* Override any GCC internal prototype to avoid an error.
14645 Use char because int might match the return type of a GCC
14646 builtin and then its argument prototype would still apply. */
14647 #ifdef __cplusplus
14648 extern "C"
14649 #endif
14650 char maillock ();
14651 int
14652 main ()
14653 {
14654 return maillock ();
14655 ;
14656 return 0;
14657 }
14658 _ACEOF
14659 rm -f conftest.$ac_objext conftest$ac_exeext
14660 if { (ac_try="$ac_link"
14661 case "(($ac_try" in
14662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14663 *) ac_try_echo=$ac_try;;
14664 esac
14665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14666 (eval "$ac_link") 2>conftest.er1
14667 ac_status=$?
14668 grep -v '^ *+' conftest.er1 >conftest.err
14669 rm -f conftest.er1
14670 cat conftest.err >&5
14671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14672 (exit $ac_status); } && {
14673 test -z "$ac_c_werror_flag" ||
14674 test ! -s conftest.err
14675 } && test -s conftest$ac_exeext &&
14676 $as_test_x conftest$ac_exeext; then
14677 ac_cv_lib_mail_maillock=yes
14678 else
14679 echo "$as_me: failed program was:" >&5
14680 sed 's/^/| /' conftest.$ac_ext >&5
14681
14682 ac_cv_lib_mail_maillock=no
14683 fi
14684
14685 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14686 conftest$ac_exeext conftest.$ac_ext
14687 LIBS=$ac_check_lib_save_LIBS
14688 fi
14689 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14690 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14691 if test $ac_cv_lib_mail_maillock = yes; then
14692 cat >>confdefs.h <<_ACEOF
14693 #define HAVE_LIBMAIL 1
14694 _ACEOF
14695
14696 LIBS="-lmail $LIBS"
14697
14698 fi
14699
14700
14701 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14702 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14703 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14704 echo $ECHO_N "(cached) $ECHO_C" >&6
14705 else
14706 ac_check_lib_save_LIBS=$LIBS
14707 LIBS="-llockfile $LIBS"
14708 cat >conftest.$ac_ext <<_ACEOF
14709 /* confdefs.h. */
14710 _ACEOF
14711 cat confdefs.h >>conftest.$ac_ext
14712 cat >>conftest.$ac_ext <<_ACEOF
14713 /* end confdefs.h. */
14714
14715 /* Override any GCC internal prototype to avoid an error.
14716 Use char because int might match the return type of a GCC
14717 builtin and then its argument prototype would still apply. */
14718 #ifdef __cplusplus
14719 extern "C"
14720 #endif
14721 char maillock ();
14722 int
14723 main ()
14724 {
14725 return maillock ();
14726 ;
14727 return 0;
14728 }
14729 _ACEOF
14730 rm -f conftest.$ac_objext conftest$ac_exeext
14731 if { (ac_try="$ac_link"
14732 case "(($ac_try" in
14733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14734 *) ac_try_echo=$ac_try;;
14735 esac
14736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14737 (eval "$ac_link") 2>conftest.er1
14738 ac_status=$?
14739 grep -v '^ *+' conftest.er1 >conftest.err
14740 rm -f conftest.er1
14741 cat conftest.err >&5
14742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14743 (exit $ac_status); } && {
14744 test -z "$ac_c_werror_flag" ||
14745 test ! -s conftest.err
14746 } && test -s conftest$ac_exeext &&
14747 $as_test_x conftest$ac_exeext; then
14748 ac_cv_lib_lockfile_maillock=yes
14749 else
14750 echo "$as_me: failed program was:" >&5
14751 sed 's/^/| /' conftest.$ac_ext >&5
14752
14753 ac_cv_lib_lockfile_maillock=no
14754 fi
14755
14756 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14757 conftest$ac_exeext conftest.$ac_ext
14758 LIBS=$ac_check_lib_save_LIBS
14759 fi
14760 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14761 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14762 if test $ac_cv_lib_lockfile_maillock = yes; then
14763 cat >>confdefs.h <<_ACEOF
14764 #define HAVE_LIBLOCKFILE 1
14765 _ACEOF
14766
14767 LIBS="-llockfile $LIBS"
14768
14769 fi
14770
14771 # If we have the shared liblockfile, assume we must use it for mail
14772 # locking (e.g. Debian). If we couldn't link against liblockfile
14773 # (no liblockfile.a installed), ensure that we don't need to.
14774 if test "$ac_cv_lib_lockfile_maillock" = no; then
14775 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14776 set dummy liblockfile.so; ac_word=$2
14777 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14778 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14779 if test "${ac_cv_prog_liblockfile+set}" = set; then
14780 echo $ECHO_N "(cached) $ECHO_C" >&6
14781 else
14782 if test -n "$liblockfile"; then
14783 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14784 else
14785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14786 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14787 for as_dir in $as_dummy
14788 do
14789 IFS=$as_save_IFS
14790 test -z "$as_dir" && as_dir=.
14791 for ac_exec_ext in '' $ac_executable_extensions; do
14792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14793 ac_cv_prog_liblockfile="yes"
14794 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14795 break 2
14796 fi
14797 done
14798 done
14799 IFS=$as_save_IFS
14800
14801 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14802 fi
14803 fi
14804 liblockfile=$ac_cv_prog_liblockfile
14805 if test -n "$liblockfile"; then
14806 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14807 echo "${ECHO_T}$liblockfile" >&6; }
14808 else
14809 { echo "$as_me:$LINENO: result: no" >&5
14810 echo "${ECHO_T}no" >&6; }
14811 fi
14812
14813
14814 if test $ac_cv_prog_liblockfile = yes; then
14815 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14816 This probably means that movemail could lose mail.
14817 There may be a \`development' package to install containing liblockfile." >&5
14818 echo "$as_me: error: Shared liblockfile found but can't link against it.
14819 This probably means that movemail could lose mail.
14820 There may be a \`development' package to install containing liblockfile." >&2;}
14821 { (exit 1); exit 1; }; }
14822 else :
14823 fi
14824 fi
14825
14826 for ac_func in touchlock
14827 do
14828 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14829 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14830 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14831 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14832 echo $ECHO_N "(cached) $ECHO_C" >&6
14833 else
14834 cat >conftest.$ac_ext <<_ACEOF
14835 /* confdefs.h. */
14836 _ACEOF
14837 cat confdefs.h >>conftest.$ac_ext
14838 cat >>conftest.$ac_ext <<_ACEOF
14839 /* end confdefs.h. */
14840 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14841 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14842 #define $ac_func innocuous_$ac_func
14843
14844 /* System header to define __stub macros and hopefully few prototypes,
14845 which can conflict with char $ac_func (); below.
14846 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14847 <limits.h> exists even on freestanding compilers. */
14848
14849 #ifdef __STDC__
14850 # include <limits.h>
14851 #else
14852 # include <assert.h>
14853 #endif
14854
14855 #undef $ac_func
14856
14857 /* Override any GCC internal prototype to avoid an error.
14858 Use char because int might match the return type of a GCC
14859 builtin and then its argument prototype would still apply. */
14860 #ifdef __cplusplus
14861 extern "C"
14862 #endif
14863 char $ac_func ();
14864 /* The GNU C library defines this for functions which it implements
14865 to always fail with ENOSYS. Some functions are actually named
14866 something starting with __ and the normal name is an alias. */
14867 #if defined __stub_$ac_func || defined __stub___$ac_func
14868 choke me
14869 #endif
14870
14871 int
14872 main ()
14873 {
14874 return $ac_func ();
14875 ;
14876 return 0;
14877 }
14878 _ACEOF
14879 rm -f conftest.$ac_objext conftest$ac_exeext
14880 if { (ac_try="$ac_link"
14881 case "(($ac_try" in
14882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14883 *) ac_try_echo=$ac_try;;
14884 esac
14885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14886 (eval "$ac_link") 2>conftest.er1
14887 ac_status=$?
14888 grep -v '^ *+' conftest.er1 >conftest.err
14889 rm -f conftest.er1
14890 cat conftest.err >&5
14891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14892 (exit $ac_status); } && {
14893 test -z "$ac_c_werror_flag" ||
14894 test ! -s conftest.err
14895 } && test -s conftest$ac_exeext &&
14896 $as_test_x conftest$ac_exeext; then
14897 eval "$as_ac_var=yes"
14898 else
14899 echo "$as_me: failed program was:" >&5
14900 sed 's/^/| /' conftest.$ac_ext >&5
14901
14902 eval "$as_ac_var=no"
14903 fi
14904
14905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14906 conftest$ac_exeext conftest.$ac_ext
14907 fi
14908 ac_res=`eval echo '${'$as_ac_var'}'`
14909 { echo "$as_me:$LINENO: result: $ac_res" >&5
14910 echo "${ECHO_T}$ac_res" >&6; }
14911 if test `eval echo '${'$as_ac_var'}'` = yes; then
14912 cat >>confdefs.h <<_ACEOF
14913 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14914 _ACEOF
14915
14916 fi
14917 done
14918
14919
14920 for ac_header in maillock.h
14921 do
14922 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14923 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14924 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14925 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14926 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14927 echo $ECHO_N "(cached) $ECHO_C" >&6
14928 fi
14929 ac_res=`eval echo '${'$as_ac_Header'}'`
14930 { echo "$as_me:$LINENO: result: $ac_res" >&5
14931 echo "${ECHO_T}$ac_res" >&6; }
14932 else
14933 # Is the header compilable?
14934 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14935 echo $ECHO_N "checking $ac_header 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 <$ac_header>
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 test -z "$ac_c_werror_flag" ||
14960 test ! -s conftest.err
14961 } && test -s conftest.$ac_objext; then
14962 ac_header_compiler=yes
14963 else
14964 echo "$as_me: failed program was:" >&5
14965 sed 's/^/| /' conftest.$ac_ext >&5
14966
14967 ac_header_compiler=no
14968 fi
14969
14970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14971 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14972 echo "${ECHO_T}$ac_header_compiler" >&6; }
14973
14974 # Is the header present?
14975 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14976 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14977 cat >conftest.$ac_ext <<_ACEOF
14978 /* confdefs.h. */
14979 _ACEOF
14980 cat confdefs.h >>conftest.$ac_ext
14981 cat >>conftest.$ac_ext <<_ACEOF
14982 /* end confdefs.h. */
14983 #include <$ac_header>
14984 _ACEOF
14985 if { (ac_try="$ac_cpp conftest.$ac_ext"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } >/dev/null && {
14998 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 }; then
15001 ac_header_preproc=yes
15002 else
15003 echo "$as_me: failed program was:" >&5
15004 sed 's/^/| /' conftest.$ac_ext >&5
15005
15006 ac_header_preproc=no
15007 fi
15008
15009 rm -f conftest.err conftest.$ac_ext
15010 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15011 echo "${ECHO_T}$ac_header_preproc" >&6; }
15012
15013 # So? What about this header?
15014 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15015 yes:no: )
15016 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15017 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15018 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15019 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15020 ac_header_preproc=yes
15021 ;;
15022 no:yes:* )
15023 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15024 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15025 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15026 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15027 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15028 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15029 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15030 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15031 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15032 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15033 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15034 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15035
15036 ;;
15037 esac
15038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15041 echo $ECHO_N "(cached) $ECHO_C" >&6
15042 else
15043 eval "$as_ac_Header=\$ac_header_preproc"
15044 fi
15045 ac_res=`eval echo '${'$as_ac_Header'}'`
15046 { echo "$as_me:$LINENO: result: $ac_res" >&5
15047 echo "${ECHO_T}$ac_res" >&6; }
15048
15049 fi
15050 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15051 cat >>confdefs.h <<_ACEOF
15052 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15053 _ACEOF
15054
15055 fi
15056
15057 done
15058
15059
15060
15061
15062
15063
15064
15065
15066
15067
15068
15069
15070
15071
15072
15073
15074
15075
15076
15077
15078
15079
15080
15081
15082
15083
15084
15085
15086
15087
15088
15089
15090
15091
15092
15093
15094
15095
15096
15097
15098
15099
15100
15101
15102
15103
15104
15105
15106
15107
15108
15109
15110
15111
15112
15113
15114
15115
15116
15117
15118
15119
15120
15121
15122
15123
15124
15125
15126
15127
15128
15129 for ac_func in gethostname getdomainname dup2 \
15130 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15131 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15132 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15133 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15134 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15135 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15136 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15137 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15138 do
15139 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15140 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15141 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15142 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 cat >conftest.$ac_ext <<_ACEOF
15146 /* confdefs.h. */
15147 _ACEOF
15148 cat confdefs.h >>conftest.$ac_ext
15149 cat >>conftest.$ac_ext <<_ACEOF
15150 /* end confdefs.h. */
15151 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15152 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15153 #define $ac_func innocuous_$ac_func
15154
15155 /* System header to define __stub macros and hopefully few prototypes,
15156 which can conflict with char $ac_func (); below.
15157 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15158 <limits.h> exists even on freestanding compilers. */
15159
15160 #ifdef __STDC__
15161 # include <limits.h>
15162 #else
15163 # include <assert.h>
15164 #endif
15165
15166 #undef $ac_func
15167
15168 /* Override any GCC internal prototype to avoid an error.
15169 Use char because int might match the return type of a GCC
15170 builtin and then its argument prototype would still apply. */
15171 #ifdef __cplusplus
15172 extern "C"
15173 #endif
15174 char $ac_func ();
15175 /* The GNU C library defines this for functions which it implements
15176 to always fail with ENOSYS. Some functions are actually named
15177 something starting with __ and the normal name is an alias. */
15178 #if defined __stub_$ac_func || defined __stub___$ac_func
15179 choke me
15180 #endif
15181
15182 int
15183 main ()
15184 {
15185 return $ac_func ();
15186 ;
15187 return 0;
15188 }
15189 _ACEOF
15190 rm -f conftest.$ac_objext conftest$ac_exeext
15191 if { (ac_try="$ac_link"
15192 case "(($ac_try" in
15193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15194 *) ac_try_echo=$ac_try;;
15195 esac
15196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15197 (eval "$ac_link") 2>conftest.er1
15198 ac_status=$?
15199 grep -v '^ *+' conftest.er1 >conftest.err
15200 rm -f conftest.er1
15201 cat conftest.err >&5
15202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15203 (exit $ac_status); } && {
15204 test -z "$ac_c_werror_flag" ||
15205 test ! -s conftest.err
15206 } && test -s conftest$ac_exeext &&
15207 $as_test_x conftest$ac_exeext; then
15208 eval "$as_ac_var=yes"
15209 else
15210 echo "$as_me: failed program was:" >&5
15211 sed 's/^/| /' conftest.$ac_ext >&5
15212
15213 eval "$as_ac_var=no"
15214 fi
15215
15216 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15217 conftest$ac_exeext conftest.$ac_ext
15218 fi
15219 ac_res=`eval echo '${'$as_ac_var'}'`
15220 { echo "$as_me:$LINENO: result: $ac_res" >&5
15221 echo "${ECHO_T}$ac_res" >&6; }
15222 if test `eval echo '${'$as_ac_var'}'` = yes; then
15223 cat >>confdefs.h <<_ACEOF
15224 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15225 _ACEOF
15226
15227 fi
15228 done
15229
15230
15231
15232 for ac_header in sys/un.h
15233 do
15234 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15239 echo $ECHO_N "(cached) $ECHO_C" >&6
15240 fi
15241 ac_res=`eval echo '${'$as_ac_Header'}'`
15242 { echo "$as_me:$LINENO: result: $ac_res" >&5
15243 echo "${ECHO_T}$ac_res" >&6; }
15244 else
15245 # Is the header compilable?
15246 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15247 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15248 cat >conftest.$ac_ext <<_ACEOF
15249 /* confdefs.h. */
15250 _ACEOF
15251 cat confdefs.h >>conftest.$ac_ext
15252 cat >>conftest.$ac_ext <<_ACEOF
15253 /* end confdefs.h. */
15254 $ac_includes_default
15255 #include <$ac_header>
15256 _ACEOF
15257 rm -f conftest.$ac_objext
15258 if { (ac_try="$ac_compile"
15259 case "(($ac_try" in
15260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15261 *) ac_try_echo=$ac_try;;
15262 esac
15263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15264 (eval "$ac_compile") 2>conftest.er1
15265 ac_status=$?
15266 grep -v '^ *+' conftest.er1 >conftest.err
15267 rm -f conftest.er1
15268 cat conftest.err >&5
15269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15270 (exit $ac_status); } && {
15271 test -z "$ac_c_werror_flag" ||
15272 test ! -s conftest.err
15273 } && test -s conftest.$ac_objext; then
15274 ac_header_compiler=yes
15275 else
15276 echo "$as_me: failed program was:" >&5
15277 sed 's/^/| /' conftest.$ac_ext >&5
15278
15279 ac_header_compiler=no
15280 fi
15281
15282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15283 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15284 echo "${ECHO_T}$ac_header_compiler" >&6; }
15285
15286 # Is the header present?
15287 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15288 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15289 cat >conftest.$ac_ext <<_ACEOF
15290 /* confdefs.h. */
15291 _ACEOF
15292 cat confdefs.h >>conftest.$ac_ext
15293 cat >>conftest.$ac_ext <<_ACEOF
15294 /* end confdefs.h. */
15295 #include <$ac_header>
15296 _ACEOF
15297 if { (ac_try="$ac_cpp conftest.$ac_ext"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } >/dev/null && {
15310 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 }; then
15313 ac_header_preproc=yes
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 ac_header_preproc=no
15319 fi
15320
15321 rm -f conftest.err conftest.$ac_ext
15322 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15323 echo "${ECHO_T}$ac_header_preproc" >&6; }
15324
15325 # So? What about this header?
15326 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15327 yes:no: )
15328 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15329 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15330 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15331 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15332 ac_header_preproc=yes
15333 ;;
15334 no:yes:* )
15335 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15336 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15337 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15338 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15339 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15340 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15341 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15342 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15343 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15344 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15345 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15346 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15347
15348 ;;
15349 esac
15350 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15351 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15352 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15353 echo $ECHO_N "(cached) $ECHO_C" >&6
15354 else
15355 eval "$as_ac_Header=\$ac_header_preproc"
15356 fi
15357 ac_res=`eval echo '${'$as_ac_Header'}'`
15358 { echo "$as_me:$LINENO: result: $ac_res" >&5
15359 echo "${ECHO_T}$ac_res" >&6; }
15360
15361 fi
15362 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15363 cat >>confdefs.h <<_ACEOF
15364 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15365 _ACEOF
15366
15367 fi
15368
15369 done
15370
15371
15372
15373
15374
15375
15376 for ac_header in $ac_header_list
15377 do
15378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15383 echo $ECHO_N "(cached) $ECHO_C" >&6
15384 fi
15385 ac_res=`eval echo '${'$as_ac_Header'}'`
15386 { echo "$as_me:$LINENO: result: $ac_res" >&5
15387 echo "${ECHO_T}$ac_res" >&6; }
15388 else
15389 # Is the header compilable?
15390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15392 cat >conftest.$ac_ext <<_ACEOF
15393 /* confdefs.h. */
15394 _ACEOF
15395 cat confdefs.h >>conftest.$ac_ext
15396 cat >>conftest.$ac_ext <<_ACEOF
15397 /* end confdefs.h. */
15398 $ac_includes_default
15399 #include <$ac_header>
15400 _ACEOF
15401 rm -f conftest.$ac_objext
15402 if { (ac_try="$ac_compile"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_compile") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } && {
15415 test -z "$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 } && test -s conftest.$ac_objext; then
15418 ac_header_compiler=yes
15419 else
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_compiler=no
15424 fi
15425
15426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15428 echo "${ECHO_T}$ac_header_compiler" >&6; }
15429
15430 # Is the header present?
15431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15433 cat >conftest.$ac_ext <<_ACEOF
15434 /* confdefs.h. */
15435 _ACEOF
15436 cat confdefs.h >>conftest.$ac_ext
15437 cat >>conftest.$ac_ext <<_ACEOF
15438 /* end confdefs.h. */
15439 #include <$ac_header>
15440 _ACEOF
15441 if { (ac_try="$ac_cpp conftest.$ac_ext"
15442 case "(($ac_try" in
15443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15444 *) ac_try_echo=$ac_try;;
15445 esac
15446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15448 ac_status=$?
15449 grep -v '^ *+' conftest.er1 >conftest.err
15450 rm -f conftest.er1
15451 cat conftest.err >&5
15452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15453 (exit $ac_status); } >/dev/null && {
15454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15455 test ! -s conftest.err
15456 }; then
15457 ac_header_preproc=yes
15458 else
15459 echo "$as_me: failed program was:" >&5
15460 sed 's/^/| /' conftest.$ac_ext >&5
15461
15462 ac_header_preproc=no
15463 fi
15464
15465 rm -f conftest.err conftest.$ac_ext
15466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15467 echo "${ECHO_T}$ac_header_preproc" >&6; }
15468
15469 # So? What about this header?
15470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15471 yes:no: )
15472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15476 ac_header_preproc=yes
15477 ;;
15478 no:yes:* )
15479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15491
15492 ;;
15493 esac
15494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15497 echo $ECHO_N "(cached) $ECHO_C" >&6
15498 else
15499 eval "$as_ac_Header=\$ac_header_preproc"
15500 fi
15501 ac_res=`eval echo '${'$as_ac_Header'}'`
15502 { echo "$as_me:$LINENO: result: $ac_res" >&5
15503 echo "${ECHO_T}$ac_res" >&6; }
15504
15505 fi
15506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15507 cat >>confdefs.h <<_ACEOF
15508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15509 _ACEOF
15510
15511 fi
15512
15513 done
15514
15515
15516
15517
15518
15519
15520
15521
15522
15523 for ac_func in $ac_func_list
15524 do
15525 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15526 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15527 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15528 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15529 echo $ECHO_N "(cached) $ECHO_C" >&6
15530 else
15531 cat >conftest.$ac_ext <<_ACEOF
15532 /* confdefs.h. */
15533 _ACEOF
15534 cat confdefs.h >>conftest.$ac_ext
15535 cat >>conftest.$ac_ext <<_ACEOF
15536 /* end confdefs.h. */
15537 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15538 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15539 #define $ac_func innocuous_$ac_func
15540
15541 /* System header to define __stub macros and hopefully few prototypes,
15542 which can conflict with char $ac_func (); below.
15543 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15544 <limits.h> exists even on freestanding compilers. */
15545
15546 #ifdef __STDC__
15547 # include <limits.h>
15548 #else
15549 # include <assert.h>
15550 #endif
15551
15552 #undef $ac_func
15553
15554 /* Override any GCC internal prototype to avoid an error.
15555 Use char because int might match the return type of a GCC
15556 builtin and then its argument prototype would still apply. */
15557 #ifdef __cplusplus
15558 extern "C"
15559 #endif
15560 char $ac_func ();
15561 /* The GNU C library defines this for functions which it implements
15562 to always fail with ENOSYS. Some functions are actually named
15563 something starting with __ and the normal name is an alias. */
15564 #if defined __stub_$ac_func || defined __stub___$ac_func
15565 choke me
15566 #endif
15567
15568 int
15569 main ()
15570 {
15571 return $ac_func ();
15572 ;
15573 return 0;
15574 }
15575 _ACEOF
15576 rm -f conftest.$ac_objext conftest$ac_exeext
15577 if { (ac_try="$ac_link"
15578 case "(($ac_try" in
15579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15580 *) ac_try_echo=$ac_try;;
15581 esac
15582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15583 (eval "$ac_link") 2>conftest.er1
15584 ac_status=$?
15585 grep -v '^ *+' conftest.er1 >conftest.err
15586 rm -f conftest.er1
15587 cat conftest.err >&5
15588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15589 (exit $ac_status); } && {
15590 test -z "$ac_c_werror_flag" ||
15591 test ! -s conftest.err
15592 } && test -s conftest$ac_exeext &&
15593 $as_test_x conftest$ac_exeext; then
15594 eval "$as_ac_var=yes"
15595 else
15596 echo "$as_me: failed program was:" >&5
15597 sed 's/^/| /' conftest.$ac_ext >&5
15598
15599 eval "$as_ac_var=no"
15600 fi
15601
15602 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15603 conftest$ac_exeext conftest.$ac_ext
15604 fi
15605 ac_res=`eval echo '${'$as_ac_var'}'`
15606 { echo "$as_me:$LINENO: result: $ac_res" >&5
15607 echo "${ECHO_T}$ac_res" >&6; }
15608 if test `eval echo '${'$as_ac_var'}'` = yes; then
15609 cat >>confdefs.h <<_ACEOF
15610 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15611 _ACEOF
15612
15613 fi
15614 done
15615
15616
15617
15618
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628
15629
15630
15631
15632 { echo "$as_me:$LINENO: checking for working mktime" >&5
15633 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15634 if test "${ac_cv_func_working_mktime+set}" = set; then
15635 echo $ECHO_N "(cached) $ECHO_C" >&6
15636 else
15637 if test "$cross_compiling" = yes; then
15638 ac_cv_func_working_mktime=no
15639 else
15640 cat >conftest.$ac_ext <<_ACEOF
15641 /* confdefs.h. */
15642 _ACEOF
15643 cat confdefs.h >>conftest.$ac_ext
15644 cat >>conftest.$ac_ext <<_ACEOF
15645 /* end confdefs.h. */
15646 /* Test program from Paul Eggert and Tony Leneis. */
15647 #ifdef TIME_WITH_SYS_TIME
15648 # include <sys/time.h>
15649 # include <time.h>
15650 #else
15651 # ifdef HAVE_SYS_TIME_H
15652 # include <sys/time.h>
15653 # else
15654 # include <time.h>
15655 # endif
15656 #endif
15657
15658 #include <stdlib.h>
15659
15660 #ifdef HAVE_UNISTD_H
15661 # include <unistd.h>
15662 #endif
15663
15664 #ifndef HAVE_ALARM
15665 # define alarm(X) /* empty */
15666 #endif
15667
15668 /* Work around redefinition to rpl_putenv by other config tests. */
15669 #undef putenv
15670
15671 static time_t time_t_max;
15672 static time_t time_t_min;
15673
15674 /* Values we'll use to set the TZ environment variable. */
15675 static char *tz_strings[] = {
15676 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15677 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15678 };
15679 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15680
15681 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15682 Based on a problem report from Andreas Jaeger. */
15683 static int
15684 spring_forward_gap ()
15685 {
15686 /* glibc (up to about 1998-10-07) failed this test. */
15687 struct tm tm;
15688
15689 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15690 instead of "TZ=America/Vancouver" in order to detect the bug even
15691 on systems that don't support the Olson extension, or don't have the
15692 full zoneinfo tables installed. */
15693 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15694
15695 tm.tm_year = 98;
15696 tm.tm_mon = 3;
15697 tm.tm_mday = 5;
15698 tm.tm_hour = 2;
15699 tm.tm_min = 0;
15700 tm.tm_sec = 0;
15701 tm.tm_isdst = -1;
15702 return mktime (&tm) != (time_t) -1;
15703 }
15704
15705 static int
15706 mktime_test1 (now)
15707 time_t now;
15708 {
15709 struct tm *lt;
15710 return ! (lt = localtime (&now)) || mktime (lt) == now;
15711 }
15712
15713 static int
15714 mktime_test (now)
15715 time_t now;
15716 {
15717 return (mktime_test1 (now)
15718 && mktime_test1 ((time_t) (time_t_max - now))
15719 && mktime_test1 ((time_t) (time_t_min + now)));
15720 }
15721
15722 static int
15723 irix_6_4_bug ()
15724 {
15725 /* Based on code from Ariel Faigon. */
15726 struct tm tm;
15727 tm.tm_year = 96;
15728 tm.tm_mon = 3;
15729 tm.tm_mday = 0;
15730 tm.tm_hour = 0;
15731 tm.tm_min = 0;
15732 tm.tm_sec = 0;
15733 tm.tm_isdst = -1;
15734 mktime (&tm);
15735 return tm.tm_mon == 2 && tm.tm_mday == 31;
15736 }
15737
15738 static int
15739 bigtime_test (j)
15740 int j;
15741 {
15742 struct tm tm;
15743 time_t now;
15744 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15745 now = mktime (&tm);
15746 if (now != (time_t) -1)
15747 {
15748 struct tm *lt = localtime (&now);
15749 if (! (lt
15750 && lt->tm_year == tm.tm_year
15751 && lt->tm_mon == tm.tm_mon
15752 && lt->tm_mday == tm.tm_mday
15753 && lt->tm_hour == tm.tm_hour
15754 && lt->tm_min == tm.tm_min
15755 && lt->tm_sec == tm.tm_sec
15756 && lt->tm_yday == tm.tm_yday
15757 && lt->tm_wday == tm.tm_wday
15758 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15759 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15760 return 0;
15761 }
15762 return 1;
15763 }
15764
15765 static int
15766 year_2050_test ()
15767 {
15768 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15769 ignoring leap seconds. */
15770 unsigned long int answer = 2527315200UL;
15771
15772 struct tm tm;
15773 time_t t;
15774 tm.tm_year = 2050 - 1900;
15775 tm.tm_mon = 2 - 1;
15776 tm.tm_mday = 1;
15777 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15778 tm.tm_isdst = -1;
15779
15780 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15781 instead of "TZ=America/Vancouver" in order to detect the bug even
15782 on systems that don't support the Olson extension, or don't have the
15783 full zoneinfo tables installed. */
15784 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15785
15786 t = mktime (&tm);
15787
15788 /* Check that the result is either a failure, or close enough
15789 to the correct answer that we can assume the discrepancy is
15790 due to leap seconds. */
15791 return (t == (time_t) -1
15792 || (0 < t && answer - 120 <= t && t <= answer + 120));
15793 }
15794
15795 int
15796 main ()
15797 {
15798 time_t t, delta;
15799 int i, j;
15800
15801 /* This test makes some buggy mktime implementations loop.
15802 Give up after 60 seconds; a mktime slower than that
15803 isn't worth using anyway. */
15804 alarm (60);
15805
15806 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15807 continue;
15808 time_t_max--;
15809 if ((time_t) -1 < 0)
15810 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15811 continue;
15812 delta = time_t_max / 997; /* a suitable prime number */
15813 for (i = 0; i < N_STRINGS; i++)
15814 {
15815 if (tz_strings[i])
15816 putenv (tz_strings[i]);
15817
15818 for (t = 0; t <= time_t_max - delta; t += delta)
15819 if (! mktime_test (t))
15820 return 1;
15821 if (! (mktime_test ((time_t) 1)
15822 && mktime_test ((time_t) (60 * 60))
15823 && mktime_test ((time_t) (60 * 60 * 24))))
15824 return 1;
15825
15826 for (j = 1; 0 < j; j *= 2)
15827 if (! bigtime_test (j))
15828 return 1;
15829 if (! bigtime_test (j - 1))
15830 return 1;
15831 }
15832 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15833 }
15834 _ACEOF
15835 rm -f conftest$ac_exeext
15836 if { (ac_try="$ac_link"
15837 case "(($ac_try" in
15838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15839 *) ac_try_echo=$ac_try;;
15840 esac
15841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15842 (eval "$ac_link") 2>&5
15843 ac_status=$?
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15846 { (case "(($ac_try" in
15847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15848 *) ac_try_echo=$ac_try;;
15849 esac
15850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15851 (eval "$ac_try") 2>&5
15852 ac_status=$?
15853 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15854 (exit $ac_status); }; }; then
15855 ac_cv_func_working_mktime=yes
15856 else
15857 echo "$as_me: program exited with status $ac_status" >&5
15858 echo "$as_me: failed program was:" >&5
15859 sed 's/^/| /' conftest.$ac_ext >&5
15860
15861 ( exit $ac_status )
15862 ac_cv_func_working_mktime=no
15863 fi
15864 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15865 fi
15866
15867
15868 fi
15869 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15870 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15871 if test $ac_cv_func_working_mktime = no; then
15872 case " $LIBOBJS " in
15873 *" mktime.$ac_objext "* ) ;;
15874 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15875 ;;
15876 esac
15877
15878 fi
15879
15880 if test "$ac_cv_func_working_mktime" = no; then
15881
15882 cat >>confdefs.h <<\_ACEOF
15883 #define BROKEN_MKTIME 1
15884 _ACEOF
15885
15886 fi
15887
15888 ac_have_func=no # yes means we've found a way to get the load average.
15889
15890 # Make sure getloadavg.c is where it belongs, at configure-time.
15891 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15892 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15893 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15894 { (exit 1); exit 1; }; }
15895
15896 ac_save_LIBS=$LIBS
15897
15898 # Check for getloadavg, but be sure not to touch the cache variable.
15899 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15900 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15901 if test "${ac_cv_func_getloadavg+set}" = set; then
15902 echo $ECHO_N "(cached) $ECHO_C" >&6
15903 else
15904 cat >conftest.$ac_ext <<_ACEOF
15905 /* confdefs.h. */
15906 _ACEOF
15907 cat confdefs.h >>conftest.$ac_ext
15908 cat >>conftest.$ac_ext <<_ACEOF
15909 /* end confdefs.h. */
15910 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15911 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15912 #define getloadavg innocuous_getloadavg
15913
15914 /* System header to define __stub macros and hopefully few prototypes,
15915 which can conflict with char getloadavg (); below.
15916 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15917 <limits.h> exists even on freestanding compilers. */
15918
15919 #ifdef __STDC__
15920 # include <limits.h>
15921 #else
15922 # include <assert.h>
15923 #endif
15924
15925 #undef getloadavg
15926
15927 /* Override any GCC internal prototype to avoid an error.
15928 Use char because int might match the return type of a GCC
15929 builtin and then its argument prototype would still apply. */
15930 #ifdef __cplusplus
15931 extern "C"
15932 #endif
15933 char getloadavg ();
15934 /* The GNU C library defines this for functions which it implements
15935 to always fail with ENOSYS. Some functions are actually named
15936 something starting with __ and the normal name is an alias. */
15937 #if defined __stub_getloadavg || defined __stub___getloadavg
15938 choke me
15939 #endif
15940
15941 int
15942 main ()
15943 {
15944 return getloadavg ();
15945 ;
15946 return 0;
15947 }
15948 _ACEOF
15949 rm -f conftest.$ac_objext conftest$ac_exeext
15950 if { (ac_try="$ac_link"
15951 case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_link") 2>conftest.er1
15957 ac_status=$?
15958 grep -v '^ *+' conftest.er1 >conftest.err
15959 rm -f conftest.er1
15960 cat conftest.err >&5
15961 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15962 (exit $ac_status); } && {
15963 test -z "$ac_c_werror_flag" ||
15964 test ! -s conftest.err
15965 } && test -s conftest$ac_exeext &&
15966 $as_test_x conftest$ac_exeext; then
15967 ac_cv_func_getloadavg=yes
15968 else
15969 echo "$as_me: failed program was:" >&5
15970 sed 's/^/| /' conftest.$ac_ext >&5
15971
15972 ac_cv_func_getloadavg=no
15973 fi
15974
15975 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15976 conftest$ac_exeext conftest.$ac_ext
15977 fi
15978 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15979 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15980 if test $ac_cv_func_getloadavg = yes; then
15981 exit 0
15982 else
15983 exit 1
15984 fi
15985 ) && ac_have_func=yes
15986
15987 # On HPUX9, an unprivileged user can get load averages through this function.
15988
15989 for ac_func in pstat_getdynamic
15990 do
15991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16005 #define $ac_func innocuous_$ac_func
16006
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func (); below.
16009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010 <limits.h> exists even on freestanding compilers. */
16011
16012 #ifdef __STDC__
16013 # include <limits.h>
16014 #else
16015 # include <assert.h>
16016 #endif
16017
16018 #undef $ac_func
16019
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16023 #ifdef __cplusplus
16024 extern "C"
16025 #endif
16026 char $ac_func ();
16027 /* The GNU C library defines this for functions which it implements
16028 to always fail with ENOSYS. Some functions are actually named
16029 something starting with __ and the normal name is an alias. */
16030 #if defined __stub_$ac_func || defined __stub___$ac_func
16031 choke me
16032 #endif
16033
16034 int
16035 main ()
16036 {
16037 return $ac_func ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_link") 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_c_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest$ac_exeext &&
16059 $as_test_x conftest$ac_exeext; then
16060 eval "$as_ac_var=yes"
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 eval "$as_ac_var=no"
16066 fi
16067
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069 conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 ac_res=`eval echo '${'$as_ac_var'}'`
16072 { echo "$as_me:$LINENO: result: $ac_res" >&5
16073 echo "${ECHO_T}$ac_res" >&6; }
16074 if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16077 _ACEOF
16078
16079 fi
16080 done
16081
16082
16083 # Solaris has libkstat which does not require root.
16084
16085 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16086 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16087 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16088 echo $ECHO_N "(cached) $ECHO_C" >&6
16089 else
16090 ac_check_lib_save_LIBS=$LIBS
16091 LIBS="-lkstat $LIBS"
16092 cat >conftest.$ac_ext <<_ACEOF
16093 /* confdefs.h. */
16094 _ACEOF
16095 cat confdefs.h >>conftest.$ac_ext
16096 cat >>conftest.$ac_ext <<_ACEOF
16097 /* end confdefs.h. */
16098
16099 /* Override any GCC internal prototype to avoid an error.
16100 Use char because int might match the return type of a GCC
16101 builtin and then its argument prototype would still apply. */
16102 #ifdef __cplusplus
16103 extern "C"
16104 #endif
16105 char kstat_open ();
16106 int
16107 main ()
16108 {
16109 return kstat_open ();
16110 ;
16111 return 0;
16112 }
16113 _ACEOF
16114 rm -f conftest.$ac_objext conftest$ac_exeext
16115 if { (ac_try="$ac_link"
16116 case "(($ac_try" in
16117 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16118 *) ac_try_echo=$ac_try;;
16119 esac
16120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16121 (eval "$ac_link") 2>conftest.er1
16122 ac_status=$?
16123 grep -v '^ *+' conftest.er1 >conftest.err
16124 rm -f conftest.er1
16125 cat conftest.err >&5
16126 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16127 (exit $ac_status); } && {
16128 test -z "$ac_c_werror_flag" ||
16129 test ! -s conftest.err
16130 } && test -s conftest$ac_exeext &&
16131 $as_test_x conftest$ac_exeext; then
16132 ac_cv_lib_kstat_kstat_open=yes
16133 else
16134 echo "$as_me: failed program was:" >&5
16135 sed 's/^/| /' conftest.$ac_ext >&5
16136
16137 ac_cv_lib_kstat_kstat_open=no
16138 fi
16139
16140 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16141 conftest$ac_exeext conftest.$ac_ext
16142 LIBS=$ac_check_lib_save_LIBS
16143 fi
16144 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16145 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16146 if test $ac_cv_lib_kstat_kstat_open = yes; then
16147 cat >>confdefs.h <<_ACEOF
16148 #define HAVE_LIBKSTAT 1
16149 _ACEOF
16150
16151 LIBS="-lkstat $LIBS"
16152
16153 fi
16154
16155 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16156
16157 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16158 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16159 # to get the right answer into the cache.
16160 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16161 if test $ac_have_func = no; then
16162 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16163 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16164 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16165 echo $ECHO_N "(cached) $ECHO_C" >&6
16166 else
16167 ac_check_lib_save_LIBS=$LIBS
16168 LIBS="-lelf $LIBS"
16169 cat >conftest.$ac_ext <<_ACEOF
16170 /* confdefs.h. */
16171 _ACEOF
16172 cat confdefs.h >>conftest.$ac_ext
16173 cat >>conftest.$ac_ext <<_ACEOF
16174 /* end confdefs.h. */
16175
16176 /* Override any GCC internal prototype to avoid an error.
16177 Use char because int might match the return type of a GCC
16178 builtin and then its argument prototype would still apply. */
16179 #ifdef __cplusplus
16180 extern "C"
16181 #endif
16182 char elf_begin ();
16183 int
16184 main ()
16185 {
16186 return elf_begin ();
16187 ;
16188 return 0;
16189 }
16190 _ACEOF
16191 rm -f conftest.$ac_objext conftest$ac_exeext
16192 if { (ac_try="$ac_link"
16193 case "(($ac_try" in
16194 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16195 *) ac_try_echo=$ac_try;;
16196 esac
16197 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16198 (eval "$ac_link") 2>conftest.er1
16199 ac_status=$?
16200 grep -v '^ *+' conftest.er1 >conftest.err
16201 rm -f conftest.er1
16202 cat conftest.err >&5
16203 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16204 (exit $ac_status); } && {
16205 test -z "$ac_c_werror_flag" ||
16206 test ! -s conftest.err
16207 } && test -s conftest$ac_exeext &&
16208 $as_test_x conftest$ac_exeext; then
16209 ac_cv_lib_elf_elf_begin=yes
16210 else
16211 echo "$as_me: failed program was:" >&5
16212 sed 's/^/| /' conftest.$ac_ext >&5
16213
16214 ac_cv_lib_elf_elf_begin=no
16215 fi
16216
16217 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16218 conftest$ac_exeext conftest.$ac_ext
16219 LIBS=$ac_check_lib_save_LIBS
16220 fi
16221 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16222 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16223 if test $ac_cv_lib_elf_elf_begin = yes; then
16224 LIBS="-lelf $LIBS"
16225 fi
16226
16227 fi
16228 if test $ac_have_func = no; then
16229 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16230 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16231 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16232 echo $ECHO_N "(cached) $ECHO_C" >&6
16233 else
16234 ac_check_lib_save_LIBS=$LIBS
16235 LIBS="-lkvm $LIBS"
16236 cat >conftest.$ac_ext <<_ACEOF
16237 /* confdefs.h. */
16238 _ACEOF
16239 cat confdefs.h >>conftest.$ac_ext
16240 cat >>conftest.$ac_ext <<_ACEOF
16241 /* end confdefs.h. */
16242
16243 /* Override any GCC internal prototype to avoid an error.
16244 Use char because int might match the return type of a GCC
16245 builtin and then its argument prototype would still apply. */
16246 #ifdef __cplusplus
16247 extern "C"
16248 #endif
16249 char kvm_open ();
16250 int
16251 main ()
16252 {
16253 return kvm_open ();
16254 ;
16255 return 0;
16256 }
16257 _ACEOF
16258 rm -f conftest.$ac_objext conftest$ac_exeext
16259 if { (ac_try="$ac_link"
16260 case "(($ac_try" in
16261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16262 *) ac_try_echo=$ac_try;;
16263 esac
16264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16265 (eval "$ac_link") 2>conftest.er1
16266 ac_status=$?
16267 grep -v '^ *+' conftest.er1 >conftest.err
16268 rm -f conftest.er1
16269 cat conftest.err >&5
16270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16271 (exit $ac_status); } && {
16272 test -z "$ac_c_werror_flag" ||
16273 test ! -s conftest.err
16274 } && test -s conftest$ac_exeext &&
16275 $as_test_x conftest$ac_exeext; then
16276 ac_cv_lib_kvm_kvm_open=yes
16277 else
16278 echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281 ac_cv_lib_kvm_kvm_open=no
16282 fi
16283
16284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16285 conftest$ac_exeext conftest.$ac_ext
16286 LIBS=$ac_check_lib_save_LIBS
16287 fi
16288 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16289 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16290 if test $ac_cv_lib_kvm_kvm_open = yes; then
16291 LIBS="-lkvm $LIBS"
16292 fi
16293
16294 # Check for the 4.4BSD definition of getloadavg.
16295 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16296 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16297 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16298 echo $ECHO_N "(cached) $ECHO_C" >&6
16299 else
16300 ac_check_lib_save_LIBS=$LIBS
16301 LIBS="-lutil $LIBS"
16302 cat >conftest.$ac_ext <<_ACEOF
16303 /* confdefs.h. */
16304 _ACEOF
16305 cat confdefs.h >>conftest.$ac_ext
16306 cat >>conftest.$ac_ext <<_ACEOF
16307 /* end confdefs.h. */
16308
16309 /* Override any GCC internal prototype to avoid an error.
16310 Use char because int might match the return type of a GCC
16311 builtin and then its argument prototype would still apply. */
16312 #ifdef __cplusplus
16313 extern "C"
16314 #endif
16315 char getloadavg ();
16316 int
16317 main ()
16318 {
16319 return getloadavg ();
16320 ;
16321 return 0;
16322 }
16323 _ACEOF
16324 rm -f conftest.$ac_objext conftest$ac_exeext
16325 if { (ac_try="$ac_link"
16326 case "(($ac_try" in
16327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16328 *) ac_try_echo=$ac_try;;
16329 esac
16330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16331 (eval "$ac_link") 2>conftest.er1
16332 ac_status=$?
16333 grep -v '^ *+' conftest.er1 >conftest.err
16334 rm -f conftest.er1
16335 cat conftest.err >&5
16336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16337 (exit $ac_status); } && {
16338 test -z "$ac_c_werror_flag" ||
16339 test ! -s conftest.err
16340 } && test -s conftest$ac_exeext &&
16341 $as_test_x conftest$ac_exeext; then
16342 ac_cv_lib_util_getloadavg=yes
16343 else
16344 echo "$as_me: failed program was:" >&5
16345 sed 's/^/| /' conftest.$ac_ext >&5
16346
16347 ac_cv_lib_util_getloadavg=no
16348 fi
16349
16350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16351 conftest$ac_exeext conftest.$ac_ext
16352 LIBS=$ac_check_lib_save_LIBS
16353 fi
16354 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16355 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16356 if test $ac_cv_lib_util_getloadavg = yes; then
16357 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16358 fi
16359
16360 fi
16361
16362 if test $ac_have_func = no; then
16363 # There is a commonly available library for RS/6000 AIX.
16364 # Since it is not a standard part of AIX, it might be installed locally.
16365 ac_getloadavg_LIBS=$LIBS
16366 LIBS="-L/usr/local/lib $LIBS"
16367 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16368 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16369 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16370 echo $ECHO_N "(cached) $ECHO_C" >&6
16371 else
16372 ac_check_lib_save_LIBS=$LIBS
16373 LIBS="-lgetloadavg $LIBS"
16374 cat >conftest.$ac_ext <<_ACEOF
16375 /* confdefs.h. */
16376 _ACEOF
16377 cat confdefs.h >>conftest.$ac_ext
16378 cat >>conftest.$ac_ext <<_ACEOF
16379 /* end confdefs.h. */
16380
16381 /* Override any GCC internal prototype to avoid an error.
16382 Use char because int might match the return type of a GCC
16383 builtin and then its argument prototype would still apply. */
16384 #ifdef __cplusplus
16385 extern "C"
16386 #endif
16387 char getloadavg ();
16388 int
16389 main ()
16390 {
16391 return getloadavg ();
16392 ;
16393 return 0;
16394 }
16395 _ACEOF
16396 rm -f conftest.$ac_objext conftest$ac_exeext
16397 if { (ac_try="$ac_link"
16398 case "(($ac_try" in
16399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16400 *) ac_try_echo=$ac_try;;
16401 esac
16402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16403 (eval "$ac_link") 2>conftest.er1
16404 ac_status=$?
16405 grep -v '^ *+' conftest.er1 >conftest.err
16406 rm -f conftest.er1
16407 cat conftest.err >&5
16408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16409 (exit $ac_status); } && {
16410 test -z "$ac_c_werror_flag" ||
16411 test ! -s conftest.err
16412 } && test -s conftest$ac_exeext &&
16413 $as_test_x conftest$ac_exeext; then
16414 ac_cv_lib_getloadavg_getloadavg=yes
16415 else
16416 echo "$as_me: failed program was:" >&5
16417 sed 's/^/| /' conftest.$ac_ext >&5
16418
16419 ac_cv_lib_getloadavg_getloadavg=no
16420 fi
16421
16422 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16423 conftest$ac_exeext conftest.$ac_ext
16424 LIBS=$ac_check_lib_save_LIBS
16425 fi
16426 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16427 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16428 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16429 LIBS="-lgetloadavg $LIBS"
16430 else
16431 LIBS=$ac_getloadavg_LIBS
16432 fi
16433
16434 fi
16435
16436 # Make sure it is really in the library, if we think we found it,
16437 # otherwise set up the replacement function.
16438
16439 for ac_func in getloadavg
16440 do
16441 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16442 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16443 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16444 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16445 echo $ECHO_N "(cached) $ECHO_C" >&6
16446 else
16447 cat >conftest.$ac_ext <<_ACEOF
16448 /* confdefs.h. */
16449 _ACEOF
16450 cat confdefs.h >>conftest.$ac_ext
16451 cat >>conftest.$ac_ext <<_ACEOF
16452 /* end confdefs.h. */
16453 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16454 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16455 #define $ac_func innocuous_$ac_func
16456
16457 /* System header to define __stub macros and hopefully few prototypes,
16458 which can conflict with char $ac_func (); below.
16459 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16460 <limits.h> exists even on freestanding compilers. */
16461
16462 #ifdef __STDC__
16463 # include <limits.h>
16464 #else
16465 # include <assert.h>
16466 #endif
16467
16468 #undef $ac_func
16469
16470 /* Override any GCC internal prototype to avoid an error.
16471 Use char because int might match the return type of a GCC
16472 builtin and then its argument prototype would still apply. */
16473 #ifdef __cplusplus
16474 extern "C"
16475 #endif
16476 char $ac_func ();
16477 /* The GNU C library defines this for functions which it implements
16478 to always fail with ENOSYS. Some functions are actually named
16479 something starting with __ and the normal name is an alias. */
16480 #if defined __stub_$ac_func || defined __stub___$ac_func
16481 choke me
16482 #endif
16483
16484 int
16485 main ()
16486 {
16487 return $ac_func ();
16488 ;
16489 return 0;
16490 }
16491 _ACEOF
16492 rm -f conftest.$ac_objext conftest$ac_exeext
16493 if { (ac_try="$ac_link"
16494 case "(($ac_try" in
16495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16496 *) ac_try_echo=$ac_try;;
16497 esac
16498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16499 (eval "$ac_link") 2>conftest.er1
16500 ac_status=$?
16501 grep -v '^ *+' conftest.er1 >conftest.err
16502 rm -f conftest.er1
16503 cat conftest.err >&5
16504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16505 (exit $ac_status); } && {
16506 test -z "$ac_c_werror_flag" ||
16507 test ! -s conftest.err
16508 } && test -s conftest$ac_exeext &&
16509 $as_test_x conftest$ac_exeext; then
16510 eval "$as_ac_var=yes"
16511 else
16512 echo "$as_me: failed program was:" >&5
16513 sed 's/^/| /' conftest.$ac_ext >&5
16514
16515 eval "$as_ac_var=no"
16516 fi
16517
16518 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16519 conftest$ac_exeext conftest.$ac_ext
16520 fi
16521 ac_res=`eval echo '${'$as_ac_var'}'`
16522 { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16524 if test `eval echo '${'$as_ac_var'}'` = yes; then
16525 cat >>confdefs.h <<_ACEOF
16526 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16527 _ACEOF
16528
16529 else
16530 case " $LIBOBJS " in
16531 *" getloadavg.$ac_objext "* ) ;;
16532 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16533 ;;
16534 esac
16535
16536
16537 cat >>confdefs.h <<\_ACEOF
16538 #define C_GETLOADAVG 1
16539 _ACEOF
16540
16541 # Figure out what our getloadavg.c needs.
16542 ac_have_func=no
16543 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16544 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16545 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16546 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16547 echo $ECHO_N "(cached) $ECHO_C" >&6
16548 fi
16549 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16550 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16551 else
16552 # Is the header compilable?
16553 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16554 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16555 cat >conftest.$ac_ext <<_ACEOF
16556 /* confdefs.h. */
16557 _ACEOF
16558 cat confdefs.h >>conftest.$ac_ext
16559 cat >>conftest.$ac_ext <<_ACEOF
16560 /* end confdefs.h. */
16561 $ac_includes_default
16562 #include <sys/dg_sys_info.h>
16563 _ACEOF
16564 rm -f conftest.$ac_objext
16565 if { (ac_try="$ac_compile"
16566 case "(($ac_try" in
16567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16568 *) ac_try_echo=$ac_try;;
16569 esac
16570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16571 (eval "$ac_compile") 2>conftest.er1
16572 ac_status=$?
16573 grep -v '^ *+' conftest.er1 >conftest.err
16574 rm -f conftest.er1
16575 cat conftest.err >&5
16576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16577 (exit $ac_status); } && {
16578 test -z "$ac_c_werror_flag" ||
16579 test ! -s conftest.err
16580 } && test -s conftest.$ac_objext; then
16581 ac_header_compiler=yes
16582 else
16583 echo "$as_me: failed program was:" >&5
16584 sed 's/^/| /' conftest.$ac_ext >&5
16585
16586 ac_header_compiler=no
16587 fi
16588
16589 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16590 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16591 echo "${ECHO_T}$ac_header_compiler" >&6; }
16592
16593 # Is the header present?
16594 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16595 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16596 cat >conftest.$ac_ext <<_ACEOF
16597 /* confdefs.h. */
16598 _ACEOF
16599 cat confdefs.h >>conftest.$ac_ext
16600 cat >>conftest.$ac_ext <<_ACEOF
16601 /* end confdefs.h. */
16602 #include <sys/dg_sys_info.h>
16603 _ACEOF
16604 if { (ac_try="$ac_cpp conftest.$ac_ext"
16605 case "(($ac_try" in
16606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16607 *) ac_try_echo=$ac_try;;
16608 esac
16609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16610 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16611 ac_status=$?
16612 grep -v '^ *+' conftest.er1 >conftest.err
16613 rm -f conftest.er1
16614 cat conftest.err >&5
16615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16616 (exit $ac_status); } >/dev/null && {
16617 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16618 test ! -s conftest.err
16619 }; 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: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16636 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16637 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16638 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16639 ac_header_preproc=yes
16640 ;;
16641 no:yes:* )
16642 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16643 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16644 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16645 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16646 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16647 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16648 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16649 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16650 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16651 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16652 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16653 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16654
16655 ;;
16656 esac
16657 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16658 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16659 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16660 echo $ECHO_N "(cached) $ECHO_C" >&6
16661 else
16662 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16663 fi
16664 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16665 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16666
16667 fi
16668 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16669 ac_have_func=yes
16670
16671 cat >>confdefs.h <<\_ACEOF
16672 #define DGUX 1
16673 _ACEOF
16674
16675
16676 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16677 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16678 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16679 echo $ECHO_N "(cached) $ECHO_C" >&6
16680 else
16681 ac_check_lib_save_LIBS=$LIBS
16682 LIBS="-ldgc $LIBS"
16683 cat >conftest.$ac_ext <<_ACEOF
16684 /* confdefs.h. */
16685 _ACEOF
16686 cat confdefs.h >>conftest.$ac_ext
16687 cat >>conftest.$ac_ext <<_ACEOF
16688 /* end confdefs.h. */
16689
16690 /* Override any GCC internal prototype to avoid an error.
16691 Use char because int might match the return type of a GCC
16692 builtin and then its argument prototype would still apply. */
16693 #ifdef __cplusplus
16694 extern "C"
16695 #endif
16696 char dg_sys_info ();
16697 int
16698 main ()
16699 {
16700 return dg_sys_info ();
16701 ;
16702 return 0;
16703 }
16704 _ACEOF
16705 rm -f conftest.$ac_objext conftest$ac_exeext
16706 if { (ac_try="$ac_link"
16707 case "(($ac_try" in
16708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16709 *) ac_try_echo=$ac_try;;
16710 esac
16711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16712 (eval "$ac_link") 2>conftest.er1
16713 ac_status=$?
16714 grep -v '^ *+' conftest.er1 >conftest.err
16715 rm -f conftest.er1
16716 cat conftest.err >&5
16717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16718 (exit $ac_status); } && {
16719 test -z "$ac_c_werror_flag" ||
16720 test ! -s conftest.err
16721 } && test -s conftest$ac_exeext &&
16722 $as_test_x conftest$ac_exeext; then
16723 ac_cv_lib_dgc_dg_sys_info=yes
16724 else
16725 echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728 ac_cv_lib_dgc_dg_sys_info=no
16729 fi
16730
16731 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16732 conftest$ac_exeext conftest.$ac_ext
16733 LIBS=$ac_check_lib_save_LIBS
16734 fi
16735 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16736 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16737 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16738 cat >>confdefs.h <<_ACEOF
16739 #define HAVE_LIBDGC 1
16740 _ACEOF
16741
16742 LIBS="-ldgc $LIBS"
16743
16744 fi
16745
16746 fi
16747
16748
16749
16750 if test "${ac_cv_header_locale_h+set}" = set; then
16751 { echo "$as_me:$LINENO: checking for locale.h" >&5
16752 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16753 if test "${ac_cv_header_locale_h+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 fi
16756 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16757 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16758 else
16759 # Is the header compilable?
16760 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16761 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16762 cat >conftest.$ac_ext <<_ACEOF
16763 /* confdefs.h. */
16764 _ACEOF
16765 cat confdefs.h >>conftest.$ac_ext
16766 cat >>conftest.$ac_ext <<_ACEOF
16767 /* end confdefs.h. */
16768 $ac_includes_default
16769 #include <locale.h>
16770 _ACEOF
16771 rm -f conftest.$ac_objext
16772 if { (ac_try="$ac_compile"
16773 case "(($ac_try" in
16774 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16775 *) ac_try_echo=$ac_try;;
16776 esac
16777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16778 (eval "$ac_compile") 2>conftest.er1
16779 ac_status=$?
16780 grep -v '^ *+' conftest.er1 >conftest.err
16781 rm -f conftest.er1
16782 cat conftest.err >&5
16783 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16784 (exit $ac_status); } && {
16785 test -z "$ac_c_werror_flag" ||
16786 test ! -s conftest.err
16787 } && test -s conftest.$ac_objext; then
16788 ac_header_compiler=yes
16789 else
16790 echo "$as_me: failed program was:" >&5
16791 sed 's/^/| /' conftest.$ac_ext >&5
16792
16793 ac_header_compiler=no
16794 fi
16795
16796 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16797 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16798 echo "${ECHO_T}$ac_header_compiler" >&6; }
16799
16800 # Is the header present?
16801 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16802 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809 #include <locale.h>
16810 _ACEOF
16811 if { (ac_try="$ac_cpp conftest.$ac_ext"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } >/dev/null && {
16824 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 }; then
16827 ac_header_preproc=yes
16828 else
16829 echo "$as_me: failed program was:" >&5
16830 sed 's/^/| /' conftest.$ac_ext >&5
16831
16832 ac_header_preproc=no
16833 fi
16834
16835 rm -f conftest.err conftest.$ac_ext
16836 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16837 echo "${ECHO_T}$ac_header_preproc" >&6; }
16838
16839 # So? What about this header?
16840 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16841 yes:no: )
16842 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16843 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16844 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16845 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16846 ac_header_preproc=yes
16847 ;;
16848 no:yes:* )
16849 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16850 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16851 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16852 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16853 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16854 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16855 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16856 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16857 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16858 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16859 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16860 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16861
16862 ;;
16863 esac
16864 { echo "$as_me:$LINENO: checking for locale.h" >&5
16865 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16866 if test "${ac_cv_header_locale_h+set}" = set; then
16867 echo $ECHO_N "(cached) $ECHO_C" >&6
16868 else
16869 ac_cv_header_locale_h=$ac_header_preproc
16870 fi
16871 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16872 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16873
16874 fi
16875
16876
16877
16878 for ac_func in setlocale
16879 do
16880 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16881 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16882 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16883 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16884 echo $ECHO_N "(cached) $ECHO_C" >&6
16885 else
16886 cat >conftest.$ac_ext <<_ACEOF
16887 /* confdefs.h. */
16888 _ACEOF
16889 cat confdefs.h >>conftest.$ac_ext
16890 cat >>conftest.$ac_ext <<_ACEOF
16891 /* end confdefs.h. */
16892 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16893 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16894 #define $ac_func innocuous_$ac_func
16895
16896 /* System header to define __stub macros and hopefully few prototypes,
16897 which can conflict with char $ac_func (); below.
16898 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16899 <limits.h> exists even on freestanding compilers. */
16900
16901 #ifdef __STDC__
16902 # include <limits.h>
16903 #else
16904 # include <assert.h>
16905 #endif
16906
16907 #undef $ac_func
16908
16909 /* Override any GCC internal prototype to avoid an error.
16910 Use char because int might match the return type of a GCC
16911 builtin and then its argument prototype would still apply. */
16912 #ifdef __cplusplus
16913 extern "C"
16914 #endif
16915 char $ac_func ();
16916 /* The GNU C library defines this for functions which it implements
16917 to always fail with ENOSYS. Some functions are actually named
16918 something starting with __ and the normal name is an alias. */
16919 #if defined __stub_$ac_func || defined __stub___$ac_func
16920 choke me
16921 #endif
16922
16923 int
16924 main ()
16925 {
16926 return $ac_func ();
16927 ;
16928 return 0;
16929 }
16930 _ACEOF
16931 rm -f conftest.$ac_objext conftest$ac_exeext
16932 if { (ac_try="$ac_link"
16933 case "(($ac_try" in
16934 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16935 *) ac_try_echo=$ac_try;;
16936 esac
16937 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16938 (eval "$ac_link") 2>conftest.er1
16939 ac_status=$?
16940 grep -v '^ *+' conftest.er1 >conftest.err
16941 rm -f conftest.er1
16942 cat conftest.err >&5
16943 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16944 (exit $ac_status); } && {
16945 test -z "$ac_c_werror_flag" ||
16946 test ! -s conftest.err
16947 } && test -s conftest$ac_exeext &&
16948 $as_test_x conftest$ac_exeext; then
16949 eval "$as_ac_var=yes"
16950 else
16951 echo "$as_me: failed program was:" >&5
16952 sed 's/^/| /' conftest.$ac_ext >&5
16953
16954 eval "$as_ac_var=no"
16955 fi
16956
16957 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16958 conftest$ac_exeext conftest.$ac_ext
16959 fi
16960 ac_res=`eval echo '${'$as_ac_var'}'`
16961 { echo "$as_me:$LINENO: result: $ac_res" >&5
16962 echo "${ECHO_T}$ac_res" >&6; }
16963 if test `eval echo '${'$as_ac_var'}'` = yes; then
16964 cat >>confdefs.h <<_ACEOF
16965 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16966 _ACEOF
16967
16968 fi
16969 done
16970
16971
16972 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16973 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16974 # Irix 4.0.5F has the header but not the library.
16975 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16976 ac_have_func=yes
16977
16978 cat >>confdefs.h <<\_ACEOF
16979 #define SVR4 1
16980 _ACEOF
16981
16982 fi
16983
16984 if test $ac_have_func = no; then
16985 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16986 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16987 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16988 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 fi
16991 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16992 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16993 else
16994 # Is the header compilable?
16995 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16996 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
16997 cat >conftest.$ac_ext <<_ACEOF
16998 /* confdefs.h. */
16999 _ACEOF
17000 cat confdefs.h >>conftest.$ac_ext
17001 cat >>conftest.$ac_ext <<_ACEOF
17002 /* end confdefs.h. */
17003 $ac_includes_default
17004 #include <inq_stats/cpustats.h>
17005 _ACEOF
17006 rm -f conftest.$ac_objext
17007 if { (ac_try="$ac_compile"
17008 case "(($ac_try" in
17009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17010 *) ac_try_echo=$ac_try;;
17011 esac
17012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17013 (eval "$ac_compile") 2>conftest.er1
17014 ac_status=$?
17015 grep -v '^ *+' conftest.er1 >conftest.err
17016 rm -f conftest.er1
17017 cat conftest.err >&5
17018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17019 (exit $ac_status); } && {
17020 test -z "$ac_c_werror_flag" ||
17021 test ! -s conftest.err
17022 } && test -s conftest.$ac_objext; then
17023 ac_header_compiler=yes
17024 else
17025 echo "$as_me: failed program was:" >&5
17026 sed 's/^/| /' conftest.$ac_ext >&5
17027
17028 ac_header_compiler=no
17029 fi
17030
17031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17032 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17033 echo "${ECHO_T}$ac_header_compiler" >&6; }
17034
17035 # Is the header present?
17036 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17037 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17038 cat >conftest.$ac_ext <<_ACEOF
17039 /* confdefs.h. */
17040 _ACEOF
17041 cat confdefs.h >>conftest.$ac_ext
17042 cat >>conftest.$ac_ext <<_ACEOF
17043 /* end confdefs.h. */
17044 #include <inq_stats/cpustats.h>
17045 _ACEOF
17046 if { (ac_try="$ac_cpp conftest.$ac_ext"
17047 case "(($ac_try" in
17048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17049 *) ac_try_echo=$ac_try;;
17050 esac
17051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17052 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17053 ac_status=$?
17054 grep -v '^ *+' conftest.er1 >conftest.err
17055 rm -f conftest.er1
17056 cat conftest.err >&5
17057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17058 (exit $ac_status); } >/dev/null && {
17059 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17060 test ! -s conftest.err
17061 }; then
17062 ac_header_preproc=yes
17063 else
17064 echo "$as_me: failed program was:" >&5
17065 sed 's/^/| /' conftest.$ac_ext >&5
17066
17067 ac_header_preproc=no
17068 fi
17069
17070 rm -f conftest.err conftest.$ac_ext
17071 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17072 echo "${ECHO_T}$ac_header_preproc" >&6; }
17073
17074 # So? What about this header?
17075 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17076 yes:no: )
17077 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17078 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17079 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17080 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17081 ac_header_preproc=yes
17082 ;;
17083 no:yes:* )
17084 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17085 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17086 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17087 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17088 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17089 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17090 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17091 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17092 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17093 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17094 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17095 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17096
17097 ;;
17098 esac
17099 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17100 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17101 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17102 echo $ECHO_N "(cached) $ECHO_C" >&6
17103 else
17104 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17105 fi
17106 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17107 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17108
17109 fi
17110 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17111 ac_have_func=yes
17112
17113 cat >>confdefs.h <<\_ACEOF
17114 #define UMAX 1
17115 _ACEOF
17116
17117
17118 cat >>confdefs.h <<\_ACEOF
17119 #define UMAX4_3 1
17120 _ACEOF
17121
17122 fi
17123
17124
17125 fi
17126
17127 if test $ac_have_func = no; then
17128 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17129 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17130 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17131 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17132 echo $ECHO_N "(cached) $ECHO_C" >&6
17133 fi
17134 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17135 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17136 else
17137 # Is the header compilable?
17138 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17139 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17140 cat >conftest.$ac_ext <<_ACEOF
17141 /* confdefs.h. */
17142 _ACEOF
17143 cat confdefs.h >>conftest.$ac_ext
17144 cat >>conftest.$ac_ext <<_ACEOF
17145 /* end confdefs.h. */
17146 $ac_includes_default
17147 #include <sys/cpustats.h>
17148 _ACEOF
17149 rm -f conftest.$ac_objext
17150 if { (ac_try="$ac_compile"
17151 case "(($ac_try" in
17152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17153 *) ac_try_echo=$ac_try;;
17154 esac
17155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17156 (eval "$ac_compile") 2>conftest.er1
17157 ac_status=$?
17158 grep -v '^ *+' conftest.er1 >conftest.err
17159 rm -f conftest.er1
17160 cat conftest.err >&5
17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17162 (exit $ac_status); } && {
17163 test -z "$ac_c_werror_flag" ||
17164 test ! -s conftest.err
17165 } && test -s conftest.$ac_objext; then
17166 ac_header_compiler=yes
17167 else
17168 echo "$as_me: failed program was:" >&5
17169 sed 's/^/| /' conftest.$ac_ext >&5
17170
17171 ac_header_compiler=no
17172 fi
17173
17174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17175 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17176 echo "${ECHO_T}$ac_header_compiler" >&6; }
17177
17178 # Is the header present?
17179 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17180 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17181 cat >conftest.$ac_ext <<_ACEOF
17182 /* confdefs.h. */
17183 _ACEOF
17184 cat confdefs.h >>conftest.$ac_ext
17185 cat >>conftest.$ac_ext <<_ACEOF
17186 /* end confdefs.h. */
17187 #include <sys/cpustats.h>
17188 _ACEOF
17189 if { (ac_try="$ac_cpp conftest.$ac_ext"
17190 case "(($ac_try" in
17191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17192 *) ac_try_echo=$ac_try;;
17193 esac
17194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17195 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17196 ac_status=$?
17197 grep -v '^ *+' conftest.er1 >conftest.err
17198 rm -f conftest.er1
17199 cat conftest.err >&5
17200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17201 (exit $ac_status); } >/dev/null && {
17202 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17203 test ! -s conftest.err
17204 }; then
17205 ac_header_preproc=yes
17206 else
17207 echo "$as_me: failed program was:" >&5
17208 sed 's/^/| /' conftest.$ac_ext >&5
17209
17210 ac_header_preproc=no
17211 fi
17212
17213 rm -f conftest.err conftest.$ac_ext
17214 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17215 echo "${ECHO_T}$ac_header_preproc" >&6; }
17216
17217 # So? What about this header?
17218 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17219 yes:no: )
17220 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17221 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17222 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17223 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17224 ac_header_preproc=yes
17225 ;;
17226 no:yes:* )
17227 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17228 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17229 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17230 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17231 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17232 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17233 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17234 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17235 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17236 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17237 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17238 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17239
17240 ;;
17241 esac
17242 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17243 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17244 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17245 echo $ECHO_N "(cached) $ECHO_C" >&6
17246 else
17247 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17248 fi
17249 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17250 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17251
17252 fi
17253 if test $ac_cv_header_sys_cpustats_h = yes; then
17254 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17255 #define UMAX 1
17256 _ACEOF
17257
17258 fi
17259
17260
17261 fi
17262
17263 if test $ac_have_func = no; then
17264
17265 for ac_header in mach/mach.h
17266 do
17267 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17268 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17269 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17270 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17271 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17272 echo $ECHO_N "(cached) $ECHO_C" >&6
17273 fi
17274 ac_res=`eval echo '${'$as_ac_Header'}'`
17275 { echo "$as_me:$LINENO: result: $ac_res" >&5
17276 echo "${ECHO_T}$ac_res" >&6; }
17277 else
17278 # Is the header compilable?
17279 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17280 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17281 cat >conftest.$ac_ext <<_ACEOF
17282 /* confdefs.h. */
17283 _ACEOF
17284 cat confdefs.h >>conftest.$ac_ext
17285 cat >>conftest.$ac_ext <<_ACEOF
17286 /* end confdefs.h. */
17287 $ac_includes_default
17288 #include <$ac_header>
17289 _ACEOF
17290 rm -f conftest.$ac_objext
17291 if { (ac_try="$ac_compile"
17292 case "(($ac_try" in
17293 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17294 *) ac_try_echo=$ac_try;;
17295 esac
17296 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17297 (eval "$ac_compile") 2>conftest.er1
17298 ac_status=$?
17299 grep -v '^ *+' conftest.er1 >conftest.err
17300 rm -f conftest.er1
17301 cat conftest.err >&5
17302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17303 (exit $ac_status); } && {
17304 test -z "$ac_c_werror_flag" ||
17305 test ! -s conftest.err
17306 } && test -s conftest.$ac_objext; then
17307 ac_header_compiler=yes
17308 else
17309 echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312 ac_header_compiler=no
17313 fi
17314
17315 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17317 echo "${ECHO_T}$ac_header_compiler" >&6; }
17318
17319 # Is the header present?
17320 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17321 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17322 cat >conftest.$ac_ext <<_ACEOF
17323 /* confdefs.h. */
17324 _ACEOF
17325 cat confdefs.h >>conftest.$ac_ext
17326 cat >>conftest.$ac_ext <<_ACEOF
17327 /* end confdefs.h. */
17328 #include <$ac_header>
17329 _ACEOF
17330 if { (ac_try="$ac_cpp conftest.$ac_ext"
17331 case "(($ac_try" in
17332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17333 *) ac_try_echo=$ac_try;;
17334 esac
17335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17336 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17337 ac_status=$?
17338 grep -v '^ *+' conftest.er1 >conftest.err
17339 rm -f conftest.er1
17340 cat conftest.err >&5
17341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17342 (exit $ac_status); } >/dev/null && {
17343 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17344 test ! -s conftest.err
17345 }; then
17346 ac_header_preproc=yes
17347 else
17348 echo "$as_me: failed program was:" >&5
17349 sed 's/^/| /' conftest.$ac_ext >&5
17350
17351 ac_header_preproc=no
17352 fi
17353
17354 rm -f conftest.err conftest.$ac_ext
17355 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17356 echo "${ECHO_T}$ac_header_preproc" >&6; }
17357
17358 # So? What about this header?
17359 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17360 yes:no: )
17361 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17362 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17364 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17365 ac_header_preproc=yes
17366 ;;
17367 no:yes:* )
17368 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17369 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17370 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17371 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17372 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17373 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17374 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17375 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17376 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17377 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17378 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17379 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17380
17381 ;;
17382 esac
17383 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17384 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17385 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17386 echo $ECHO_N "(cached) $ECHO_C" >&6
17387 else
17388 eval "$as_ac_Header=\$ac_header_preproc"
17389 fi
17390 ac_res=`eval echo '${'$as_ac_Header'}'`
17391 { echo "$as_me:$LINENO: result: $ac_res" >&5
17392 echo "${ECHO_T}$ac_res" >&6; }
17393
17394 fi
17395 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17396 cat >>confdefs.h <<_ACEOF
17397 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17398 _ACEOF
17399
17400 fi
17401
17402 done
17403
17404 fi
17405
17406
17407 for ac_header in nlist.h
17408 do
17409 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17410 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17411 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17412 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17414 echo $ECHO_N "(cached) $ECHO_C" >&6
17415 fi
17416 ac_res=`eval echo '${'$as_ac_Header'}'`
17417 { echo "$as_me:$LINENO: result: $ac_res" >&5
17418 echo "${ECHO_T}$ac_res" >&6; }
17419 else
17420 # Is the header compilable?
17421 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17422 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17423 cat >conftest.$ac_ext <<_ACEOF
17424 /* confdefs.h. */
17425 _ACEOF
17426 cat confdefs.h >>conftest.$ac_ext
17427 cat >>conftest.$ac_ext <<_ACEOF
17428 /* end confdefs.h. */
17429 $ac_includes_default
17430 #include <$ac_header>
17431 _ACEOF
17432 rm -f conftest.$ac_objext
17433 if { (ac_try="$ac_compile"
17434 case "(($ac_try" in
17435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17436 *) ac_try_echo=$ac_try;;
17437 esac
17438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17439 (eval "$ac_compile") 2>conftest.er1
17440 ac_status=$?
17441 grep -v '^ *+' conftest.er1 >conftest.err
17442 rm -f conftest.er1
17443 cat conftest.err >&5
17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17445 (exit $ac_status); } && {
17446 test -z "$ac_c_werror_flag" ||
17447 test ! -s conftest.err
17448 } && test -s conftest.$ac_objext; then
17449 ac_header_compiler=yes
17450 else
17451 echo "$as_me: failed program was:" >&5
17452 sed 's/^/| /' conftest.$ac_ext >&5
17453
17454 ac_header_compiler=no
17455 fi
17456
17457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17459 echo "${ECHO_T}$ac_header_compiler" >&6; }
17460
17461 # Is the header present?
17462 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17463 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17464 cat >conftest.$ac_ext <<_ACEOF
17465 /* confdefs.h. */
17466 _ACEOF
17467 cat confdefs.h >>conftest.$ac_ext
17468 cat >>conftest.$ac_ext <<_ACEOF
17469 /* end confdefs.h. */
17470 #include <$ac_header>
17471 _ACEOF
17472 if { (ac_try="$ac_cpp conftest.$ac_ext"
17473 case "(($ac_try" in
17474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17475 *) ac_try_echo=$ac_try;;
17476 esac
17477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17479 ac_status=$?
17480 grep -v '^ *+' conftest.er1 >conftest.err
17481 rm -f conftest.er1
17482 cat conftest.err >&5
17483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17484 (exit $ac_status); } >/dev/null && {
17485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17486 test ! -s conftest.err
17487 }; then
17488 ac_header_preproc=yes
17489 else
17490 echo "$as_me: failed program was:" >&5
17491 sed 's/^/| /' conftest.$ac_ext >&5
17492
17493 ac_header_preproc=no
17494 fi
17495
17496 rm -f conftest.err conftest.$ac_ext
17497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17498 echo "${ECHO_T}$ac_header_preproc" >&6; }
17499
17500 # So? What about this header?
17501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17502 yes:no: )
17503 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17504 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17505 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17506 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17507 ac_header_preproc=yes
17508 ;;
17509 no:yes:* )
17510 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17511 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17512 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17513 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17514 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17515 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17516 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17517 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17519 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17520 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17521 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17522
17523 ;;
17524 esac
17525 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17526 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17527 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530 eval "$as_ac_Header=\$ac_header_preproc"
17531 fi
17532 ac_res=`eval echo '${'$as_ac_Header'}'`
17533 { echo "$as_me:$LINENO: result: $ac_res" >&5
17534 echo "${ECHO_T}$ac_res" >&6; }
17535
17536 fi
17537 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17538 cat >>confdefs.h <<_ACEOF
17539 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17540 _ACEOF
17541 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17542 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17543 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17544 echo $ECHO_N "(cached) $ECHO_C" >&6
17545 else
17546 cat >conftest.$ac_ext <<_ACEOF
17547 /* confdefs.h. */
17548 _ACEOF
17549 cat confdefs.h >>conftest.$ac_ext
17550 cat >>conftest.$ac_ext <<_ACEOF
17551 /* end confdefs.h. */
17552 #include <nlist.h>
17553
17554 int
17555 main ()
17556 {
17557 static struct nlist ac_aggr;
17558 if (ac_aggr.n_un.n_name)
17559 return 0;
17560 ;
17561 return 0;
17562 }
17563 _ACEOF
17564 rm -f conftest.$ac_objext
17565 if { (ac_try="$ac_compile"
17566 case "(($ac_try" in
17567 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17568 *) ac_try_echo=$ac_try;;
17569 esac
17570 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17571 (eval "$ac_compile") 2>conftest.er1
17572 ac_status=$?
17573 grep -v '^ *+' conftest.er1 >conftest.err
17574 rm -f conftest.er1
17575 cat conftest.err >&5
17576 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17577 (exit $ac_status); } && {
17578 test -z "$ac_c_werror_flag" ||
17579 test ! -s conftest.err
17580 } && test -s conftest.$ac_objext; then
17581 ac_cv_member_struct_nlist_n_un_n_name=yes
17582 else
17583 echo "$as_me: failed program was:" >&5
17584 sed 's/^/| /' conftest.$ac_ext >&5
17585
17586 cat >conftest.$ac_ext <<_ACEOF
17587 /* confdefs.h. */
17588 _ACEOF
17589 cat confdefs.h >>conftest.$ac_ext
17590 cat >>conftest.$ac_ext <<_ACEOF
17591 /* end confdefs.h. */
17592 #include <nlist.h>
17593
17594 int
17595 main ()
17596 {
17597 static struct nlist ac_aggr;
17598 if (sizeof ac_aggr.n_un.n_name)
17599 return 0;
17600 ;
17601 return 0;
17602 }
17603 _ACEOF
17604 rm -f conftest.$ac_objext
17605 if { (ac_try="$ac_compile"
17606 case "(($ac_try" in
17607 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17608 *) ac_try_echo=$ac_try;;
17609 esac
17610 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17611 (eval "$ac_compile") 2>conftest.er1
17612 ac_status=$?
17613 grep -v '^ *+' conftest.er1 >conftest.err
17614 rm -f conftest.er1
17615 cat conftest.err >&5
17616 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17617 (exit $ac_status); } && {
17618 test -z "$ac_c_werror_flag" ||
17619 test ! -s conftest.err
17620 } && test -s conftest.$ac_objext; then
17621 ac_cv_member_struct_nlist_n_un_n_name=yes
17622 else
17623 echo "$as_me: failed program was:" >&5
17624 sed 's/^/| /' conftest.$ac_ext >&5
17625
17626 ac_cv_member_struct_nlist_n_un_n_name=no
17627 fi
17628
17629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 fi
17634 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17635 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17636 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17637
17638 cat >>confdefs.h <<_ACEOF
17639 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17640 _ACEOF
17641
17642
17643 cat >>confdefs.h <<\_ACEOF
17644 #define NLIST_NAME_UNION 1
17645 _ACEOF
17646
17647 fi
17648
17649
17650 fi
17651
17652 done
17653
17654 fi
17655 done
17656
17657
17658 # Some definitions of getloadavg require that the program be installed setgid.
17659 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17660 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17661 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17662 echo $ECHO_N "(cached) $ECHO_C" >&6
17663 else
17664 cat >conftest.$ac_ext <<_ACEOF
17665 /* confdefs.h. */
17666 _ACEOF
17667 cat confdefs.h >>conftest.$ac_ext
17668 cat >>conftest.$ac_ext <<_ACEOF
17669 /* end confdefs.h. */
17670 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17671 #ifdef LDAV_PRIVILEGED
17672 Yowza Am I SETGID yet
17673 #endif
17674 _ACEOF
17675 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17676 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17677 ac_cv_func_getloadavg_setgid=yes
17678 else
17679 ac_cv_func_getloadavg_setgid=no
17680 fi
17681 rm -f conftest*
17682
17683 fi
17684 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17685 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17686 if test $ac_cv_func_getloadavg_setgid = yes; then
17687 NEED_SETGID=true
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define GETLOADAVG_PRIVILEGED 1
17691 _ACEOF
17692
17693 else
17694 NEED_SETGID=false
17695 fi
17696
17697 if test $ac_cv_func_getloadavg_setgid = yes; then
17698 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17699 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17700 if test "${ac_cv_group_kmem+set}" = set; then
17701 echo $ECHO_N "(cached) $ECHO_C" >&6
17702 else
17703 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17704 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17705 # If we got an error (system does not support symlinks), try without -L.
17706 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17707 ac_cv_group_kmem=`echo $ac_ls_output \
17708 | sed -ne 's/[ ][ ]*/ /g;
17709 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17710 / /s/.* //;p;'`
17711
17712 fi
17713 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17714 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17715 KMEM_GROUP=$ac_cv_group_kmem
17716 fi
17717 if test "x$ac_save_LIBS" = x; then
17718 GETLOADAVG_LIBS=$LIBS
17719 else
17720 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17721 fi
17722 LIBS=$ac_save_LIBS
17723
17724
17725
17726 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17727 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17728 if test "${ac_cv_sys_largefile_source+set}" = set; then
17729 echo $ECHO_N "(cached) $ECHO_C" >&6
17730 else
17731 while :; do
17732 cat >conftest.$ac_ext <<_ACEOF
17733 /* confdefs.h. */
17734 _ACEOF
17735 cat confdefs.h >>conftest.$ac_ext
17736 cat >>conftest.$ac_ext <<_ACEOF
17737 /* end confdefs.h. */
17738 #include <sys/types.h> /* for off_t */
17739 #include <stdio.h>
17740 int
17741 main ()
17742 {
17743 int (*fp) (FILE *, off_t, int) = fseeko;
17744 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17745 ;
17746 return 0;
17747 }
17748 _ACEOF
17749 rm -f conftest.$ac_objext conftest$ac_exeext
17750 if { (ac_try="$ac_link"
17751 case "(($ac_try" in
17752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17753 *) ac_try_echo=$ac_try;;
17754 esac
17755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17756 (eval "$ac_link") 2>conftest.er1
17757 ac_status=$?
17758 grep -v '^ *+' conftest.er1 >conftest.err
17759 rm -f conftest.er1
17760 cat conftest.err >&5
17761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17762 (exit $ac_status); } && {
17763 test -z "$ac_c_werror_flag" ||
17764 test ! -s conftest.err
17765 } && test -s conftest$ac_exeext &&
17766 $as_test_x conftest$ac_exeext; then
17767 ac_cv_sys_largefile_source=no; break
17768 else
17769 echo "$as_me: failed program was:" >&5
17770 sed 's/^/| /' conftest.$ac_ext >&5
17771
17772
17773 fi
17774
17775 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17776 conftest$ac_exeext conftest.$ac_ext
17777 cat >conftest.$ac_ext <<_ACEOF
17778 /* confdefs.h. */
17779 _ACEOF
17780 cat confdefs.h >>conftest.$ac_ext
17781 cat >>conftest.$ac_ext <<_ACEOF
17782 /* end confdefs.h. */
17783 #define _LARGEFILE_SOURCE 1
17784 #include <sys/types.h> /* for off_t */
17785 #include <stdio.h>
17786 int
17787 main ()
17788 {
17789 int (*fp) (FILE *, off_t, int) = fseeko;
17790 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
17791 ;
17792 return 0;
17793 }
17794 _ACEOF
17795 rm -f conftest.$ac_objext conftest$ac_exeext
17796 if { (ac_try="$ac_link"
17797 case "(($ac_try" in
17798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17799 *) ac_try_echo=$ac_try;;
17800 esac
17801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17802 (eval "$ac_link") 2>conftest.er1
17803 ac_status=$?
17804 grep -v '^ *+' conftest.er1 >conftest.err
17805 rm -f conftest.er1
17806 cat conftest.err >&5
17807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17808 (exit $ac_status); } && {
17809 test -z "$ac_c_werror_flag" ||
17810 test ! -s conftest.err
17811 } && test -s conftest$ac_exeext &&
17812 $as_test_x conftest$ac_exeext; then
17813 ac_cv_sys_largefile_source=1; break
17814 else
17815 echo "$as_me: failed program was:" >&5
17816 sed 's/^/| /' conftest.$ac_ext >&5
17817
17818
17819 fi
17820
17821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17822 conftest$ac_exeext conftest.$ac_ext
17823 ac_cv_sys_largefile_source=unknown
17824 break
17825 done
17826 fi
17827 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17828 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17829 case $ac_cv_sys_largefile_source in #(
17830 no | unknown) ;;
17831 *)
17832 cat >>confdefs.h <<_ACEOF
17833 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17834 _ACEOF
17835 ;;
17836 esac
17837 rm -f conftest*
17838
17839 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17840 # in glibc 2.1.3, but that breaks too many other things.
17841 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17842 if test $ac_cv_sys_largefile_source != unknown; then
17843
17844 cat >>confdefs.h <<\_ACEOF
17845 #define HAVE_FSEEKO 1
17846 _ACEOF
17847
17848 fi
17849
17850
17851 # Configure getopt.
17852 # getopt.m4 serial 10
17853
17854 # The getopt module assume you want GNU getopt, with getopt_long etc,
17855 # rather than vanilla POSIX getopt. This means your your code should
17856 # always include <getopt.h> for the getopt prototypes.
17857
17858
17859
17860
17861
17862
17863
17864
17865
17866
17867
17868 # Prerequisites of lib/getopt*.
17869
17870
17871
17872
17873 GETOPT_H=
17874
17875 for ac_header in getopt.h
17876 do
17877 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17879 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17880 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17881 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17882 echo $ECHO_N "(cached) $ECHO_C" >&6
17883 fi
17884 ac_res=`eval echo '${'$as_ac_Header'}'`
17885 { echo "$as_me:$LINENO: result: $ac_res" >&5
17886 echo "${ECHO_T}$ac_res" >&6; }
17887 else
17888 # Is the header compilable?
17889 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17890 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17891 cat >conftest.$ac_ext <<_ACEOF
17892 /* confdefs.h. */
17893 _ACEOF
17894 cat confdefs.h >>conftest.$ac_ext
17895 cat >>conftest.$ac_ext <<_ACEOF
17896 /* end confdefs.h. */
17897 $ac_includes_default
17898 #include <$ac_header>
17899 _ACEOF
17900 rm -f conftest.$ac_objext
17901 if { (ac_try="$ac_compile"
17902 case "(($ac_try" in
17903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17904 *) ac_try_echo=$ac_try;;
17905 esac
17906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17907 (eval "$ac_compile") 2>conftest.er1
17908 ac_status=$?
17909 grep -v '^ *+' conftest.er1 >conftest.err
17910 rm -f conftest.er1
17911 cat conftest.err >&5
17912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17913 (exit $ac_status); } && {
17914 test -z "$ac_c_werror_flag" ||
17915 test ! -s conftest.err
17916 } && test -s conftest.$ac_objext; then
17917 ac_header_compiler=yes
17918 else
17919 echo "$as_me: failed program was:" >&5
17920 sed 's/^/| /' conftest.$ac_ext >&5
17921
17922 ac_header_compiler=no
17923 fi
17924
17925 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17926 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17927 echo "${ECHO_T}$ac_header_compiler" >&6; }
17928
17929 # Is the header present?
17930 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17931 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17932 cat >conftest.$ac_ext <<_ACEOF
17933 /* confdefs.h. */
17934 _ACEOF
17935 cat confdefs.h >>conftest.$ac_ext
17936 cat >>conftest.$ac_ext <<_ACEOF
17937 /* end confdefs.h. */
17938 #include <$ac_header>
17939 _ACEOF
17940 if { (ac_try="$ac_cpp conftest.$ac_ext"
17941 case "(($ac_try" in
17942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17943 *) ac_try_echo=$ac_try;;
17944 esac
17945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17946 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17947 ac_status=$?
17948 grep -v '^ *+' conftest.er1 >conftest.err
17949 rm -f conftest.er1
17950 cat conftest.err >&5
17951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17952 (exit $ac_status); } >/dev/null && {
17953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17954 test ! -s conftest.err
17955 }; then
17956 ac_header_preproc=yes
17957 else
17958 echo "$as_me: failed program was:" >&5
17959 sed 's/^/| /' conftest.$ac_ext >&5
17960
17961 ac_header_preproc=no
17962 fi
17963
17964 rm -f conftest.err conftest.$ac_ext
17965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17966 echo "${ECHO_T}$ac_header_preproc" >&6; }
17967
17968 # So? What about this header?
17969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17970 yes:no: )
17971 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17973 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17975 ac_header_preproc=yes
17976 ;;
17977 no:yes:* )
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17980 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17981 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17982 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17985 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17986 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17988 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17990
17991 ;;
17992 esac
17993 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17994 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17995 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17996 echo $ECHO_N "(cached) $ECHO_C" >&6
17997 else
17998 eval "$as_ac_Header=\$ac_header_preproc"
17999 fi
18000 ac_res=`eval echo '${'$as_ac_Header'}'`
18001 { echo "$as_me:$LINENO: result: $ac_res" >&5
18002 echo "${ECHO_T}$ac_res" >&6; }
18003
18004 fi
18005 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18006 cat >>confdefs.h <<_ACEOF
18007 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18008 _ACEOF
18009
18010 else
18011 GETOPT_H=getopt.h
18012 fi
18013
18014 done
18015
18016 if test -z "$GETOPT_H"; then
18017
18018 for ac_func in getopt_long_only
18019 do
18020 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18021 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18022 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18023 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18024 echo $ECHO_N "(cached) $ECHO_C" >&6
18025 else
18026 cat >conftest.$ac_ext <<_ACEOF
18027 /* confdefs.h. */
18028 _ACEOF
18029 cat confdefs.h >>conftest.$ac_ext
18030 cat >>conftest.$ac_ext <<_ACEOF
18031 /* end confdefs.h. */
18032 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18033 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18034 #define $ac_func innocuous_$ac_func
18035
18036 /* System header to define __stub macros and hopefully few prototypes,
18037 which can conflict with char $ac_func (); below.
18038 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18039 <limits.h> exists even on freestanding compilers. */
18040
18041 #ifdef __STDC__
18042 # include <limits.h>
18043 #else
18044 # include <assert.h>
18045 #endif
18046
18047 #undef $ac_func
18048
18049 /* Override any GCC internal prototype to avoid an error.
18050 Use char because int might match the return type of a GCC
18051 builtin and then its argument prototype would still apply. */
18052 #ifdef __cplusplus
18053 extern "C"
18054 #endif
18055 char $ac_func ();
18056 /* The GNU C library defines this for functions which it implements
18057 to always fail with ENOSYS. Some functions are actually named
18058 something starting with __ and the normal name is an alias. */
18059 #if defined __stub_$ac_func || defined __stub___$ac_func
18060 choke me
18061 #endif
18062
18063 int
18064 main ()
18065 {
18066 return $ac_func ();
18067 ;
18068 return 0;
18069 }
18070 _ACEOF
18071 rm -f conftest.$ac_objext conftest$ac_exeext
18072 if { (ac_try="$ac_link"
18073 case "(($ac_try" in
18074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18075 *) ac_try_echo=$ac_try;;
18076 esac
18077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18078 (eval "$ac_link") 2>conftest.er1
18079 ac_status=$?
18080 grep -v '^ *+' conftest.er1 >conftest.err
18081 rm -f conftest.er1
18082 cat conftest.err >&5
18083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18084 (exit $ac_status); } && {
18085 test -z "$ac_c_werror_flag" ||
18086 test ! -s conftest.err
18087 } && test -s conftest$ac_exeext &&
18088 $as_test_x conftest$ac_exeext; then
18089 eval "$as_ac_var=yes"
18090 else
18091 echo "$as_me: failed program was:" >&5
18092 sed 's/^/| /' conftest.$ac_ext >&5
18093
18094 eval "$as_ac_var=no"
18095 fi
18096
18097 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18098 conftest$ac_exeext conftest.$ac_ext
18099 fi
18100 ac_res=`eval echo '${'$as_ac_var'}'`
18101 { echo "$as_me:$LINENO: result: $ac_res" >&5
18102 echo "${ECHO_T}$ac_res" >&6; }
18103 if test `eval echo '${'$as_ac_var'}'` = yes; then
18104 cat >>confdefs.h <<_ACEOF
18105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18106 _ACEOF
18107
18108 else
18109 GETOPT_H=getopt.h
18110 fi
18111 done
18112
18113 fi
18114
18115 if test -z "$GETOPT_H"; then
18116 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18117 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18118 if test "${ac_cv_have_decl_optreset+set}" = set; then
18119 echo $ECHO_N "(cached) $ECHO_C" >&6
18120 else
18121 cat >conftest.$ac_ext <<_ACEOF
18122 /* confdefs.h. */
18123 _ACEOF
18124 cat confdefs.h >>conftest.$ac_ext
18125 cat >>conftest.$ac_ext <<_ACEOF
18126 /* end confdefs.h. */
18127 #include <getopt.h>
18128
18129 int
18130 main ()
18131 {
18132 #ifndef optreset
18133 (void) optreset;
18134 #endif
18135
18136 ;
18137 return 0;
18138 }
18139 _ACEOF
18140 rm -f conftest.$ac_objext
18141 if { (ac_try="$ac_compile"
18142 case "(($ac_try" in
18143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18144 *) ac_try_echo=$ac_try;;
18145 esac
18146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18147 (eval "$ac_compile") 2>conftest.er1
18148 ac_status=$?
18149 grep -v '^ *+' conftest.er1 >conftest.err
18150 rm -f conftest.er1
18151 cat conftest.err >&5
18152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18153 (exit $ac_status); } && {
18154 test -z "$ac_c_werror_flag" ||
18155 test ! -s conftest.err
18156 } && test -s conftest.$ac_objext; then
18157 ac_cv_have_decl_optreset=yes
18158 else
18159 echo "$as_me: failed program was:" >&5
18160 sed 's/^/| /' conftest.$ac_ext >&5
18161
18162 ac_cv_have_decl_optreset=no
18163 fi
18164
18165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18166 fi
18167 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18168 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18169 if test $ac_cv_have_decl_optreset = yes; then
18170 GETOPT_H=getopt.h
18171 fi
18172
18173 fi
18174
18175 if test -z "$GETOPT_H"; then
18176 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18177 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18178 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18179 echo $ECHO_N "(cached) $ECHO_C" >&6
18180 else
18181 if test "$cross_compiling" = yes; then
18182 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18183 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18184 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18185 echo $ECHO_N "(cached) $ECHO_C" >&6
18186 else
18187 cat >conftest.$ac_ext <<_ACEOF
18188 /* confdefs.h. */
18189 _ACEOF
18190 cat confdefs.h >>conftest.$ac_ext
18191 cat >>conftest.$ac_ext <<_ACEOF
18192 /* end confdefs.h. */
18193 #include <getopt.h>
18194
18195 int
18196 main ()
18197 {
18198 #ifndef getopt_clip
18199 (void) getopt_clip;
18200 #endif
18201
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext
18207 if { (ac_try="$ac_compile"
18208 case "(($ac_try" in
18209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18210 *) ac_try_echo=$ac_try;;
18211 esac
18212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18213 (eval "$ac_compile") 2>conftest.er1
18214 ac_status=$?
18215 grep -v '^ *+' conftest.er1 >conftest.err
18216 rm -f conftest.er1
18217 cat conftest.err >&5
18218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18219 (exit $ac_status); } && {
18220 test -z "$ac_c_werror_flag" ||
18221 test ! -s conftest.err
18222 } && test -s conftest.$ac_objext; then
18223 ac_cv_have_decl_getopt_clip=yes
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228 ac_cv_have_decl_getopt_clip=no
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18232 fi
18233 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18234 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18235 if test $ac_cv_have_decl_getopt_clip = yes; then
18236 gl_cv_func_gnu_getopt=no
18237 else
18238 gl_cv_func_gnu_getopt=yes
18239 fi
18240
18241 else
18242 cat >conftest.$ac_ext <<_ACEOF
18243 /* confdefs.h. */
18244 _ACEOF
18245 cat confdefs.h >>conftest.$ac_ext
18246 cat >>conftest.$ac_ext <<_ACEOF
18247 /* end confdefs.h. */
18248 #include <getopt.h>
18249 int
18250 main ()
18251 {
18252
18253 char *myargv[3];
18254 myargv[0] = "conftest";
18255 myargv[1] = "-+";
18256 myargv[2] = 0;
18257 return getopt (2, myargv, "+a") != '?';
18258
18259 ;
18260 return 0;
18261 }
18262 _ACEOF
18263 rm -f conftest$ac_exeext
18264 if { (ac_try="$ac_link"
18265 case "(($ac_try" in
18266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18267 *) ac_try_echo=$ac_try;;
18268 esac
18269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18270 (eval "$ac_link") 2>&5
18271 ac_status=$?
18272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18273 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18274 { (case "(($ac_try" in
18275 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18276 *) ac_try_echo=$ac_try;;
18277 esac
18278 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18279 (eval "$ac_try") 2>&5
18280 ac_status=$?
18281 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18282 (exit $ac_status); }; }; then
18283 gl_cv_func_gnu_getopt=yes
18284 else
18285 echo "$as_me: program exited with status $ac_status" >&5
18286 echo "$as_me: failed program was:" >&5
18287 sed 's/^/| /' conftest.$ac_ext >&5
18288
18289 ( exit $ac_status )
18290 gl_cv_func_gnu_getopt=no
18291 fi
18292 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18293 fi
18294
18295
18296 fi
18297 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18298 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18299 if test "$gl_cv_func_gnu_getopt" = "no"; then
18300 GETOPT_H=getopt.h
18301 fi
18302 fi
18303
18304
18305
18306 if test -n "$GETOPT_H"; then
18307
18308
18309 GETOPT_H=getopt.h
18310
18311 cat >>confdefs.h <<\_ACEOF
18312 #define __GETOPT_PREFIX rpl_
18313 _ACEOF
18314
18315
18316
18317 :
18318 GETOPTOBJS='getopt.o getopt1.o'
18319
18320 fi
18321
18322
18323
18324
18325 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18326 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18327 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18328 echo $ECHO_N "(cached) $ECHO_C" >&6
18329 else
18330 # Use it with a single arg.
18331 cat >conftest.$ac_ext <<_ACEOF
18332 /* confdefs.h. */
18333 _ACEOF
18334 cat confdefs.h >>conftest.$ac_ext
18335 cat >>conftest.$ac_ext <<_ACEOF
18336 /* end confdefs.h. */
18337 $ac_includes_default
18338 int
18339 main ()
18340 {
18341 getpgrp (0);
18342 ;
18343 return 0;
18344 }
18345 _ACEOF
18346 rm -f conftest.$ac_objext
18347 if { (ac_try="$ac_compile"
18348 case "(($ac_try" in
18349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18350 *) ac_try_echo=$ac_try;;
18351 esac
18352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18353 (eval "$ac_compile") 2>conftest.er1
18354 ac_status=$?
18355 grep -v '^ *+' conftest.er1 >conftest.err
18356 rm -f conftest.er1
18357 cat conftest.err >&5
18358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18359 (exit $ac_status); } && {
18360 test -z "$ac_c_werror_flag" ||
18361 test ! -s conftest.err
18362 } && test -s conftest.$ac_objext; then
18363 ac_cv_func_getpgrp_void=no
18364 else
18365 echo "$as_me: failed program was:" >&5
18366 sed 's/^/| /' conftest.$ac_ext >&5
18367
18368 ac_cv_func_getpgrp_void=yes
18369 fi
18370
18371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18372
18373 fi
18374 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18375 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18376 if test $ac_cv_func_getpgrp_void = yes; then
18377
18378 cat >>confdefs.h <<\_ACEOF
18379 #define GETPGRP_VOID 1
18380 _ACEOF
18381
18382 fi
18383
18384
18385
18386 for ac_func in strftime
18387 do
18388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18392 echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394 cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h. */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h. */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18402 #define $ac_func innocuous_$ac_func
18403
18404 /* System header to define __stub macros and hopefully few prototypes,
18405 which can conflict with char $ac_func (); below.
18406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407 <limits.h> exists even on freestanding compilers. */
18408
18409 #ifdef __STDC__
18410 # include <limits.h>
18411 #else
18412 # include <assert.h>
18413 #endif
18414
18415 #undef $ac_func
18416
18417 /* Override any GCC internal prototype to avoid an error.
18418 Use char because int might match the return type of a GCC
18419 builtin and then its argument prototype would still apply. */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char $ac_func ();
18424 /* The GNU C library defines this for functions which it implements
18425 to always fail with ENOSYS. Some functions are actually named
18426 something starting with __ and the normal name is an alias. */
18427 #if defined __stub_$ac_func || defined __stub___$ac_func
18428 choke me
18429 #endif
18430
18431 int
18432 main ()
18433 {
18434 return $ac_func ();
18435 ;
18436 return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443 *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446 (eval "$ac_link") 2>conftest.er1
18447 ac_status=$?
18448 grep -v '^ *+' conftest.er1 >conftest.err
18449 rm -f conftest.er1
18450 cat conftest.err >&5
18451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452 (exit $ac_status); } && {
18453 test -z "$ac_c_werror_flag" ||
18454 test ! -s conftest.err
18455 } && test -s conftest$ac_exeext &&
18456 $as_test_x conftest$ac_exeext; then
18457 eval "$as_ac_var=yes"
18458 else
18459 echo "$as_me: failed program was:" >&5
18460 sed 's/^/| /' conftest.$ac_ext >&5
18461
18462 eval "$as_ac_var=no"
18463 fi
18464
18465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18466 conftest$ac_exeext conftest.$ac_ext
18467 fi
18468 ac_res=`eval echo '${'$as_ac_var'}'`
18469 { echo "$as_me:$LINENO: result: $ac_res" >&5
18470 echo "${ECHO_T}$ac_res" >&6; }
18471 if test `eval echo '${'$as_ac_var'}'` = yes; then
18472 cat >>confdefs.h <<_ACEOF
18473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18474 _ACEOF
18475
18476 else
18477 # strftime is in -lintl on SCO UNIX.
18478 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18479 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18480 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18481 echo $ECHO_N "(cached) $ECHO_C" >&6
18482 else
18483 ac_check_lib_save_LIBS=$LIBS
18484 LIBS="-lintl $LIBS"
18485 cat >conftest.$ac_ext <<_ACEOF
18486 /* confdefs.h. */
18487 _ACEOF
18488 cat confdefs.h >>conftest.$ac_ext
18489 cat >>conftest.$ac_ext <<_ACEOF
18490 /* end confdefs.h. */
18491
18492 /* Override any GCC internal prototype to avoid an error.
18493 Use char because int might match the return type of a GCC
18494 builtin and then its argument prototype would still apply. */
18495 #ifdef __cplusplus
18496 extern "C"
18497 #endif
18498 char strftime ();
18499 int
18500 main ()
18501 {
18502 return strftime ();
18503 ;
18504 return 0;
18505 }
18506 _ACEOF
18507 rm -f conftest.$ac_objext conftest$ac_exeext
18508 if { (ac_try="$ac_link"
18509 case "(($ac_try" in
18510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18511 *) ac_try_echo=$ac_try;;
18512 esac
18513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18514 (eval "$ac_link") 2>conftest.er1
18515 ac_status=$?
18516 grep -v '^ *+' conftest.er1 >conftest.err
18517 rm -f conftest.er1
18518 cat conftest.err >&5
18519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18520 (exit $ac_status); } && {
18521 test -z "$ac_c_werror_flag" ||
18522 test ! -s conftest.err
18523 } && test -s conftest$ac_exeext &&
18524 $as_test_x conftest$ac_exeext; then
18525 ac_cv_lib_intl_strftime=yes
18526 else
18527 echo "$as_me: failed program was:" >&5
18528 sed 's/^/| /' conftest.$ac_ext >&5
18529
18530 ac_cv_lib_intl_strftime=no
18531 fi
18532
18533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18534 conftest$ac_exeext conftest.$ac_ext
18535 LIBS=$ac_check_lib_save_LIBS
18536 fi
18537 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18538 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18539 if test $ac_cv_lib_intl_strftime = yes; then
18540 cat >>confdefs.h <<\_ACEOF
18541 #define HAVE_STRFTIME 1
18542 _ACEOF
18543
18544 LIBS="-lintl $LIBS"
18545 fi
18546
18547 fi
18548 done
18549
18550
18551 # UNIX98 PTYs.
18552
18553 for ac_func in grantpt
18554 do
18555 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18556 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18557 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18558 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18559 echo $ECHO_N "(cached) $ECHO_C" >&6
18560 else
18561 cat >conftest.$ac_ext <<_ACEOF
18562 /* confdefs.h. */
18563 _ACEOF
18564 cat confdefs.h >>conftest.$ac_ext
18565 cat >>conftest.$ac_ext <<_ACEOF
18566 /* end confdefs.h. */
18567 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18568 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18569 #define $ac_func innocuous_$ac_func
18570
18571 /* System header to define __stub macros and hopefully few prototypes,
18572 which can conflict with char $ac_func (); below.
18573 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18574 <limits.h> exists even on freestanding compilers. */
18575
18576 #ifdef __STDC__
18577 # include <limits.h>
18578 #else
18579 # include <assert.h>
18580 #endif
18581
18582 #undef $ac_func
18583
18584 /* Override any GCC internal prototype to avoid an error.
18585 Use char because int might match the return type of a GCC
18586 builtin and then its argument prototype would still apply. */
18587 #ifdef __cplusplus
18588 extern "C"
18589 #endif
18590 char $ac_func ();
18591 /* The GNU C library defines this for functions which it implements
18592 to always fail with ENOSYS. Some functions are actually named
18593 something starting with __ and the normal name is an alias. */
18594 #if defined __stub_$ac_func || defined __stub___$ac_func
18595 choke me
18596 #endif
18597
18598 int
18599 main ()
18600 {
18601 return $ac_func ();
18602 ;
18603 return 0;
18604 }
18605 _ACEOF
18606 rm -f conftest.$ac_objext conftest$ac_exeext
18607 if { (ac_try="$ac_link"
18608 case "(($ac_try" in
18609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18610 *) ac_try_echo=$ac_try;;
18611 esac
18612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18613 (eval "$ac_link") 2>conftest.er1
18614 ac_status=$?
18615 grep -v '^ *+' conftest.er1 >conftest.err
18616 rm -f conftest.er1
18617 cat conftest.err >&5
18618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18619 (exit $ac_status); } && {
18620 test -z "$ac_c_werror_flag" ||
18621 test ! -s conftest.err
18622 } && test -s conftest$ac_exeext &&
18623 $as_test_x conftest$ac_exeext; then
18624 eval "$as_ac_var=yes"
18625 else
18626 echo "$as_me: failed program was:" >&5
18627 sed 's/^/| /' conftest.$ac_ext >&5
18628
18629 eval "$as_ac_var=no"
18630 fi
18631
18632 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18633 conftest$ac_exeext conftest.$ac_ext
18634 fi
18635 ac_res=`eval echo '${'$as_ac_var'}'`
18636 { echo "$as_me:$LINENO: result: $ac_res" >&5
18637 echo "${ECHO_T}$ac_res" >&6; }
18638 if test `eval echo '${'$as_ac_var'}'` = yes; then
18639 cat >>confdefs.h <<_ACEOF
18640 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18641 _ACEOF
18642
18643 fi
18644 done
18645
18646
18647 # PTY-related GNU extensions.
18648
18649 for ac_func in getpt
18650 do
18651 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18652 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18653 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18654 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18655 echo $ECHO_N "(cached) $ECHO_C" >&6
18656 else
18657 cat >conftest.$ac_ext <<_ACEOF
18658 /* confdefs.h. */
18659 _ACEOF
18660 cat confdefs.h >>conftest.$ac_ext
18661 cat >>conftest.$ac_ext <<_ACEOF
18662 /* end confdefs.h. */
18663 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18664 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18665 #define $ac_func innocuous_$ac_func
18666
18667 /* System header to define __stub macros and hopefully few prototypes,
18668 which can conflict with char $ac_func (); below.
18669 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18670 <limits.h> exists even on freestanding compilers. */
18671
18672 #ifdef __STDC__
18673 # include <limits.h>
18674 #else
18675 # include <assert.h>
18676 #endif
18677
18678 #undef $ac_func
18679
18680 /* Override any GCC internal prototype to avoid an error.
18681 Use char because int might match the return type of a GCC
18682 builtin and then its argument prototype would still apply. */
18683 #ifdef __cplusplus
18684 extern "C"
18685 #endif
18686 char $ac_func ();
18687 /* The GNU C library defines this for functions which it implements
18688 to always fail with ENOSYS. Some functions are actually named
18689 something starting with __ and the normal name is an alias. */
18690 #if defined __stub_$ac_func || defined __stub___$ac_func
18691 choke me
18692 #endif
18693
18694 int
18695 main ()
18696 {
18697 return $ac_func ();
18698 ;
18699 return 0;
18700 }
18701 _ACEOF
18702 rm -f conftest.$ac_objext conftest$ac_exeext
18703 if { (ac_try="$ac_link"
18704 case "(($ac_try" in
18705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18706 *) ac_try_echo=$ac_try;;
18707 esac
18708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18709 (eval "$ac_link") 2>conftest.er1
18710 ac_status=$?
18711 grep -v '^ *+' conftest.er1 >conftest.err
18712 rm -f conftest.er1
18713 cat conftest.err >&5
18714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715 (exit $ac_status); } && {
18716 test -z "$ac_c_werror_flag" ||
18717 test ! -s conftest.err
18718 } && test -s conftest$ac_exeext &&
18719 $as_test_x conftest$ac_exeext; then
18720 eval "$as_ac_var=yes"
18721 else
18722 echo "$as_me: failed program was:" >&5
18723 sed 's/^/| /' conftest.$ac_ext >&5
18724
18725 eval "$as_ac_var=no"
18726 fi
18727
18728 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18729 conftest$ac_exeext conftest.$ac_ext
18730 fi
18731 ac_res=`eval echo '${'$as_ac_var'}'`
18732 { echo "$as_me:$LINENO: result: $ac_res" >&5
18733 echo "${ECHO_T}$ac_res" >&6; }
18734 if test `eval echo '${'$as_ac_var'}'` = yes; then
18735 cat >>confdefs.h <<_ACEOF
18736 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18737 _ACEOF
18738
18739 fi
18740 done
18741
18742
18743 # Check this now, so that we will NOT find the above functions in ncurses.
18744 # That is because we have not set up to link ncurses in lib-src.
18745 # It's better to believe a function is not available
18746 # than to expect to find it in ncurses.
18747
18748 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18749 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18750 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18751 echo $ECHO_N "(cached) $ECHO_C" >&6
18752 else
18753 ac_check_lib_save_LIBS=$LIBS
18754 LIBS="-lncurses $LIBS"
18755 cat >conftest.$ac_ext <<_ACEOF
18756 /* confdefs.h. */
18757 _ACEOF
18758 cat confdefs.h >>conftest.$ac_ext
18759 cat >>conftest.$ac_ext <<_ACEOF
18760 /* end confdefs.h. */
18761
18762 /* Override any GCC internal prototype to avoid an error.
18763 Use char because int might match the return type of a GCC
18764 builtin and then its argument prototype would still apply. */
18765 #ifdef __cplusplus
18766 extern "C"
18767 #endif
18768 char tparm ();
18769 int
18770 main ()
18771 {
18772 return tparm ();
18773 ;
18774 return 0;
18775 }
18776 _ACEOF
18777 rm -f conftest.$ac_objext conftest$ac_exeext
18778 if { (ac_try="$ac_link"
18779 case "(($ac_try" in
18780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18781 *) ac_try_echo=$ac_try;;
18782 esac
18783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18784 (eval "$ac_link") 2>conftest.er1
18785 ac_status=$?
18786 grep -v '^ *+' conftest.er1 >conftest.err
18787 rm -f conftest.er1
18788 cat conftest.err >&5
18789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18790 (exit $ac_status); } && {
18791 test -z "$ac_c_werror_flag" ||
18792 test ! -s conftest.err
18793 } && test -s conftest$ac_exeext &&
18794 $as_test_x conftest$ac_exeext; then
18795 ac_cv_lib_ncurses_tparm=yes
18796 else
18797 echo "$as_me: failed program was:" >&5
18798 sed 's/^/| /' conftest.$ac_ext >&5
18799
18800 ac_cv_lib_ncurses_tparm=no
18801 fi
18802
18803 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18804 conftest$ac_exeext conftest.$ac_ext
18805 LIBS=$ac_check_lib_save_LIBS
18806 fi
18807 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18808 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18809 if test $ac_cv_lib_ncurses_tparm = yes; then
18810 cat >>confdefs.h <<_ACEOF
18811 #define HAVE_LIBNCURSES 1
18812 _ACEOF
18813
18814 LIBS="-lncurses $LIBS"
18815
18816 fi
18817
18818
18819 # Do we need the Hesiod library to provide the support routines?
18820 if test "$with_hesiod" = yes ; then
18821 # Don't set $LIBS here -- see comments above.
18822 resolv=no
18823 { echo "$as_me:$LINENO: checking for res_send" >&5
18824 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18825 if test "${ac_cv_func_res_send+set}" = set; then
18826 echo $ECHO_N "(cached) $ECHO_C" >&6
18827 else
18828 cat >conftest.$ac_ext <<_ACEOF
18829 /* confdefs.h. */
18830 _ACEOF
18831 cat confdefs.h >>conftest.$ac_ext
18832 cat >>conftest.$ac_ext <<_ACEOF
18833 /* end confdefs.h. */
18834 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18835 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18836 #define res_send innocuous_res_send
18837
18838 /* System header to define __stub macros and hopefully few prototypes,
18839 which can conflict with char res_send (); below.
18840 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18841 <limits.h> exists even on freestanding compilers. */
18842
18843 #ifdef __STDC__
18844 # include <limits.h>
18845 #else
18846 # include <assert.h>
18847 #endif
18848
18849 #undef res_send
18850
18851 /* Override any GCC internal prototype to avoid an error.
18852 Use char because int might match the return type of a GCC
18853 builtin and then its argument prototype would still apply. */
18854 #ifdef __cplusplus
18855 extern "C"
18856 #endif
18857 char res_send ();
18858 /* The GNU C library defines this for functions which it implements
18859 to always fail with ENOSYS. Some functions are actually named
18860 something starting with __ and the normal name is an alias. */
18861 #if defined __stub_res_send || defined __stub___res_send
18862 choke me
18863 #endif
18864
18865 int
18866 main ()
18867 {
18868 return res_send ();
18869 ;
18870 return 0;
18871 }
18872 _ACEOF
18873 rm -f conftest.$ac_objext conftest$ac_exeext
18874 if { (ac_try="$ac_link"
18875 case "(($ac_try" in
18876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18877 *) ac_try_echo=$ac_try;;
18878 esac
18879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18880 (eval "$ac_link") 2>conftest.er1
18881 ac_status=$?
18882 grep -v '^ *+' conftest.er1 >conftest.err
18883 rm -f conftest.er1
18884 cat conftest.err >&5
18885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18886 (exit $ac_status); } && {
18887 test -z "$ac_c_werror_flag" ||
18888 test ! -s conftest.err
18889 } && test -s conftest$ac_exeext &&
18890 $as_test_x conftest$ac_exeext; then
18891 ac_cv_func_res_send=yes
18892 else
18893 echo "$as_me: failed program was:" >&5
18894 sed 's/^/| /' conftest.$ac_ext >&5
18895
18896 ac_cv_func_res_send=no
18897 fi
18898
18899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18900 conftest$ac_exeext conftest.$ac_ext
18901 fi
18902 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18903 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18904 if test $ac_cv_func_res_send = yes; then
18905 :
18906 else
18907 { echo "$as_me:$LINENO: checking for __res_send" >&5
18908 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18909 if test "${ac_cv_func___res_send+set}" = set; then
18910 echo $ECHO_N "(cached) $ECHO_C" >&6
18911 else
18912 cat >conftest.$ac_ext <<_ACEOF
18913 /* confdefs.h. */
18914 _ACEOF
18915 cat confdefs.h >>conftest.$ac_ext
18916 cat >>conftest.$ac_ext <<_ACEOF
18917 /* end confdefs.h. */
18918 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18919 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18920 #define __res_send innocuous___res_send
18921
18922 /* System header to define __stub macros and hopefully few prototypes,
18923 which can conflict with char __res_send (); below.
18924 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18925 <limits.h> exists even on freestanding compilers. */
18926
18927 #ifdef __STDC__
18928 # include <limits.h>
18929 #else
18930 # include <assert.h>
18931 #endif
18932
18933 #undef __res_send
18934
18935 /* Override any GCC internal prototype to avoid an error.
18936 Use char because int might match the return type of a GCC
18937 builtin and then its argument prototype would still apply. */
18938 #ifdef __cplusplus
18939 extern "C"
18940 #endif
18941 char __res_send ();
18942 /* The GNU C library defines this for functions which it implements
18943 to always fail with ENOSYS. Some functions are actually named
18944 something starting with __ and the normal name is an alias. */
18945 #if defined __stub___res_send || defined __stub_____res_send
18946 choke me
18947 #endif
18948
18949 int
18950 main ()
18951 {
18952 return __res_send ();
18953 ;
18954 return 0;
18955 }
18956 _ACEOF
18957 rm -f conftest.$ac_objext conftest$ac_exeext
18958 if { (ac_try="$ac_link"
18959 case "(($ac_try" in
18960 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18961 *) ac_try_echo=$ac_try;;
18962 esac
18963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18964 (eval "$ac_link") 2>conftest.er1
18965 ac_status=$?
18966 grep -v '^ *+' conftest.er1 >conftest.err
18967 rm -f conftest.er1
18968 cat conftest.err >&5
18969 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18970 (exit $ac_status); } && {
18971 test -z "$ac_c_werror_flag" ||
18972 test ! -s conftest.err
18973 } && test -s conftest$ac_exeext &&
18974 $as_test_x conftest$ac_exeext; then
18975 ac_cv_func___res_send=yes
18976 else
18977 echo "$as_me: failed program was:" >&5
18978 sed 's/^/| /' conftest.$ac_ext >&5
18979
18980 ac_cv_func___res_send=no
18981 fi
18982
18983 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18984 conftest$ac_exeext conftest.$ac_ext
18985 fi
18986 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18987 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18988 if test $ac_cv_func___res_send = yes; then
18989 :
18990 else
18991 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18992 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
18993 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18994 echo $ECHO_N "(cached) $ECHO_C" >&6
18995 else
18996 ac_check_lib_save_LIBS=$LIBS
18997 LIBS="-lresolv $LIBS"
18998 cat >conftest.$ac_ext <<_ACEOF
18999 /* confdefs.h. */
19000 _ACEOF
19001 cat confdefs.h >>conftest.$ac_ext
19002 cat >>conftest.$ac_ext <<_ACEOF
19003 /* end confdefs.h. */
19004
19005 /* Override any GCC internal prototype to avoid an error.
19006 Use char because int might match the return type of a GCC
19007 builtin and then its argument prototype would still apply. */
19008 #ifdef __cplusplus
19009 extern "C"
19010 #endif
19011 char res_send ();
19012 int
19013 main ()
19014 {
19015 return res_send ();
19016 ;
19017 return 0;
19018 }
19019 _ACEOF
19020 rm -f conftest.$ac_objext conftest$ac_exeext
19021 if { (ac_try="$ac_link"
19022 case "(($ac_try" in
19023 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19024 *) ac_try_echo=$ac_try;;
19025 esac
19026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19027 (eval "$ac_link") 2>conftest.er1
19028 ac_status=$?
19029 grep -v '^ *+' conftest.er1 >conftest.err
19030 rm -f conftest.er1
19031 cat conftest.err >&5
19032 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19033 (exit $ac_status); } && {
19034 test -z "$ac_c_werror_flag" ||
19035 test ! -s conftest.err
19036 } && test -s conftest$ac_exeext &&
19037 $as_test_x conftest$ac_exeext; then
19038 ac_cv_lib_resolv_res_send=yes
19039 else
19040 echo "$as_me: failed program was:" >&5
19041 sed 's/^/| /' conftest.$ac_ext >&5
19042
19043 ac_cv_lib_resolv_res_send=no
19044 fi
19045
19046 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19047 conftest$ac_exeext conftest.$ac_ext
19048 LIBS=$ac_check_lib_save_LIBS
19049 fi
19050 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19051 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19052 if test $ac_cv_lib_resolv_res_send = yes; then
19053 resolv=yes
19054 else
19055 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19056 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19057 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19058 echo $ECHO_N "(cached) $ECHO_C" >&6
19059 else
19060 ac_check_lib_save_LIBS=$LIBS
19061 LIBS="-lresolv $LIBS"
19062 cat >conftest.$ac_ext <<_ACEOF
19063 /* confdefs.h. */
19064 _ACEOF
19065 cat confdefs.h >>conftest.$ac_ext
19066 cat >>conftest.$ac_ext <<_ACEOF
19067 /* end confdefs.h. */
19068
19069 /* Override any GCC internal prototype to avoid an error.
19070 Use char because int might match the return type of a GCC
19071 builtin and then its argument prototype would still apply. */
19072 #ifdef __cplusplus
19073 extern "C"
19074 #endif
19075 char __res_send ();
19076 int
19077 main ()
19078 {
19079 return __res_send ();
19080 ;
19081 return 0;
19082 }
19083 _ACEOF
19084 rm -f conftest.$ac_objext conftest$ac_exeext
19085 if { (ac_try="$ac_link"
19086 case "(($ac_try" in
19087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088 *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091 (eval "$ac_link") 2>conftest.er1
19092 ac_status=$?
19093 grep -v '^ *+' conftest.er1 >conftest.err
19094 rm -f conftest.er1
19095 cat conftest.err >&5
19096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19097 (exit $ac_status); } && {
19098 test -z "$ac_c_werror_flag" ||
19099 test ! -s conftest.err
19100 } && test -s conftest$ac_exeext &&
19101 $as_test_x conftest$ac_exeext; then
19102 ac_cv_lib_resolv___res_send=yes
19103 else
19104 echo "$as_me: failed program was:" >&5
19105 sed 's/^/| /' conftest.$ac_ext >&5
19106
19107 ac_cv_lib_resolv___res_send=no
19108 fi
19109
19110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19111 conftest$ac_exeext conftest.$ac_ext
19112 LIBS=$ac_check_lib_save_LIBS
19113 fi
19114 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19115 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19116 if test $ac_cv_lib_resolv___res_send = yes; then
19117 resolv=yes
19118 fi
19119
19120 fi
19121
19122 fi
19123
19124 fi
19125
19126 if test "$resolv" = yes ; then
19127 RESOLVLIB=-lresolv
19128
19129 cat >>confdefs.h <<\_ACEOF
19130 #define HAVE_LIBRESOLV 1
19131 _ACEOF
19132
19133 else
19134 RESOLVLIB=
19135 fi
19136 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19137 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19138 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19139 echo $ECHO_N "(cached) $ECHO_C" >&6
19140 else
19141 cat >conftest.$ac_ext <<_ACEOF
19142 /* confdefs.h. */
19143 _ACEOF
19144 cat confdefs.h >>conftest.$ac_ext
19145 cat >>conftest.$ac_ext <<_ACEOF
19146 /* end confdefs.h. */
19147 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19148 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19149 #define hes_getmailhost innocuous_hes_getmailhost
19150
19151 /* System header to define __stub macros and hopefully few prototypes,
19152 which can conflict with char hes_getmailhost (); below.
19153 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19154 <limits.h> exists even on freestanding compilers. */
19155
19156 #ifdef __STDC__
19157 # include <limits.h>
19158 #else
19159 # include <assert.h>
19160 #endif
19161
19162 #undef hes_getmailhost
19163
19164 /* Override any GCC internal prototype to avoid an error.
19165 Use char because int might match the return type of a GCC
19166 builtin and then its argument prototype would still apply. */
19167 #ifdef __cplusplus
19168 extern "C"
19169 #endif
19170 char hes_getmailhost ();
19171 /* The GNU C library defines this for functions which it implements
19172 to always fail with ENOSYS. Some functions are actually named
19173 something starting with __ and the normal name is an alias. */
19174 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19175 choke me
19176 #endif
19177
19178 int
19179 main ()
19180 {
19181 return hes_getmailhost ();
19182 ;
19183 return 0;
19184 }
19185 _ACEOF
19186 rm -f conftest.$ac_objext conftest$ac_exeext
19187 if { (ac_try="$ac_link"
19188 case "(($ac_try" in
19189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19190 *) ac_try_echo=$ac_try;;
19191 esac
19192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19193 (eval "$ac_link") 2>conftest.er1
19194 ac_status=$?
19195 grep -v '^ *+' conftest.er1 >conftest.err
19196 rm -f conftest.er1
19197 cat conftest.err >&5
19198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19199 (exit $ac_status); } && {
19200 test -z "$ac_c_werror_flag" ||
19201 test ! -s conftest.err
19202 } && test -s conftest$ac_exeext &&
19203 $as_test_x conftest$ac_exeext; then
19204 ac_cv_func_hes_getmailhost=yes
19205 else
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 ac_cv_func_hes_getmailhost=no
19210 fi
19211
19212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19213 conftest$ac_exeext conftest.$ac_ext
19214 fi
19215 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19216 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19217 if test $ac_cv_func_hes_getmailhost = yes; then
19218 :
19219 else
19220 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19221 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19222 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19223 echo $ECHO_N "(cached) $ECHO_C" >&6
19224 else
19225 ac_check_lib_save_LIBS=$LIBS
19226 LIBS="-lhesiod $RESOLVLIB $LIBS"
19227 cat >conftest.$ac_ext <<_ACEOF
19228 /* confdefs.h. */
19229 _ACEOF
19230 cat confdefs.h >>conftest.$ac_ext
19231 cat >>conftest.$ac_ext <<_ACEOF
19232 /* end confdefs.h. */
19233
19234 /* Override any GCC internal prototype to avoid an error.
19235 Use char because int might match the return type of a GCC
19236 builtin and then its argument prototype would still apply. */
19237 #ifdef __cplusplus
19238 extern "C"
19239 #endif
19240 char hes_getmailhost ();
19241 int
19242 main ()
19243 {
19244 return hes_getmailhost ();
19245 ;
19246 return 0;
19247 }
19248 _ACEOF
19249 rm -f conftest.$ac_objext conftest$ac_exeext
19250 if { (ac_try="$ac_link"
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_link") 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); } && {
19263 test -z "$ac_c_werror_flag" ||
19264 test ! -s conftest.err
19265 } && test -s conftest$ac_exeext &&
19266 $as_test_x conftest$ac_exeext; then
19267 ac_cv_lib_hesiod_hes_getmailhost=yes
19268 else
19269 echo "$as_me: failed program was:" >&5
19270 sed 's/^/| /' conftest.$ac_ext >&5
19271
19272 ac_cv_lib_hesiod_hes_getmailhost=no
19273 fi
19274
19275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19276 conftest$ac_exeext conftest.$ac_ext
19277 LIBS=$ac_check_lib_save_LIBS
19278 fi
19279 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19280 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19281 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19282
19283 cat >>confdefs.h <<\_ACEOF
19284 #define HAVE_LIBHESIOD 1
19285 _ACEOF
19286
19287 else
19288 :
19289 fi
19290
19291 fi
19292
19293 fi
19294
19295 # These tell us which Kerberos-related libraries to use.
19296 if test "${with_kerberos+set}" = set; then
19297
19298 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19299 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19300 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303 ac_check_lib_save_LIBS=$LIBS
19304 LIBS="-lcom_err $LIBS"
19305 cat >conftest.$ac_ext <<_ACEOF
19306 /* confdefs.h. */
19307 _ACEOF
19308 cat confdefs.h >>conftest.$ac_ext
19309 cat >>conftest.$ac_ext <<_ACEOF
19310 /* end confdefs.h. */
19311
19312 /* Override any GCC internal prototype to avoid an error.
19313 Use char because int might match the return type of a GCC
19314 builtin and then its argument prototype would still apply. */
19315 #ifdef __cplusplus
19316 extern "C"
19317 #endif
19318 char com_err ();
19319 int
19320 main ()
19321 {
19322 return com_err ();
19323 ;
19324 return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_link") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext &&
19344 $as_test_x conftest$ac_exeext; then
19345 ac_cv_lib_com_err_com_err=yes
19346 else
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 ac_cv_lib_com_err_com_err=no
19351 fi
19352
19353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19354 conftest$ac_exeext conftest.$ac_ext
19355 LIBS=$ac_check_lib_save_LIBS
19356 fi
19357 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19358 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19359 if test $ac_cv_lib_com_err_com_err = yes; then
19360 cat >>confdefs.h <<_ACEOF
19361 #define HAVE_LIBCOM_ERR 1
19362 _ACEOF
19363
19364 LIBS="-lcom_err $LIBS"
19365
19366 fi
19367
19368
19369 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19370 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19371 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19372 echo $ECHO_N "(cached) $ECHO_C" >&6
19373 else
19374 ac_check_lib_save_LIBS=$LIBS
19375 LIBS="-lk5crypto $LIBS"
19376 cat >conftest.$ac_ext <<_ACEOF
19377 /* confdefs.h. */
19378 _ACEOF
19379 cat confdefs.h >>conftest.$ac_ext
19380 cat >>conftest.$ac_ext <<_ACEOF
19381 /* end confdefs.h. */
19382
19383 /* Override any GCC internal prototype to avoid an error.
19384 Use char because int might match the return type of a GCC
19385 builtin and then its argument prototype would still apply. */
19386 #ifdef __cplusplus
19387 extern "C"
19388 #endif
19389 char mit_des_cbc_encrypt ();
19390 int
19391 main ()
19392 {
19393 return mit_des_cbc_encrypt ();
19394 ;
19395 return 0;
19396 }
19397 _ACEOF
19398 rm -f conftest.$ac_objext conftest$ac_exeext
19399 if { (ac_try="$ac_link"
19400 case "(($ac_try" in
19401 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19402 *) ac_try_echo=$ac_try;;
19403 esac
19404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19405 (eval "$ac_link") 2>conftest.er1
19406 ac_status=$?
19407 grep -v '^ *+' conftest.er1 >conftest.err
19408 rm -f conftest.er1
19409 cat conftest.err >&5
19410 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19411 (exit $ac_status); } && {
19412 test -z "$ac_c_werror_flag" ||
19413 test ! -s conftest.err
19414 } && test -s conftest$ac_exeext &&
19415 $as_test_x conftest$ac_exeext; then
19416 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19417 else
19418 echo "$as_me: failed program was:" >&5
19419 sed 's/^/| /' conftest.$ac_ext >&5
19420
19421 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19422 fi
19423
19424 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19425 conftest$ac_exeext conftest.$ac_ext
19426 LIBS=$ac_check_lib_save_LIBS
19427 fi
19428 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19429 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19430 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19431 cat >>confdefs.h <<_ACEOF
19432 #define HAVE_LIBK5CRYPTO 1
19433 _ACEOF
19434
19435 LIBS="-lk5crypto $LIBS"
19436
19437 fi
19438
19439
19440 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19441 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19442 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19443 echo $ECHO_N "(cached) $ECHO_C" >&6
19444 else
19445 ac_check_lib_save_LIBS=$LIBS
19446 LIBS="-lcrypto $LIBS"
19447 cat >conftest.$ac_ext <<_ACEOF
19448 /* confdefs.h. */
19449 _ACEOF
19450 cat confdefs.h >>conftest.$ac_ext
19451 cat >>conftest.$ac_ext <<_ACEOF
19452 /* end confdefs.h. */
19453
19454 /* Override any GCC internal prototype to avoid an error.
19455 Use char because int might match the return type of a GCC
19456 builtin and then its argument prototype would still apply. */
19457 #ifdef __cplusplus
19458 extern "C"
19459 #endif
19460 char mit_des_cbc_encrypt ();
19461 int
19462 main ()
19463 {
19464 return mit_des_cbc_encrypt ();
19465 ;
19466 return 0;
19467 }
19468 _ACEOF
19469 rm -f conftest.$ac_objext conftest$ac_exeext
19470 if { (ac_try="$ac_link"
19471 case "(($ac_try" in
19472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19473 *) ac_try_echo=$ac_try;;
19474 esac
19475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19476 (eval "$ac_link") 2>conftest.er1
19477 ac_status=$?
19478 grep -v '^ *+' conftest.er1 >conftest.err
19479 rm -f conftest.er1
19480 cat conftest.err >&5
19481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19482 (exit $ac_status); } && {
19483 test -z "$ac_c_werror_flag" ||
19484 test ! -s conftest.err
19485 } && test -s conftest$ac_exeext &&
19486 $as_test_x conftest$ac_exeext; then
19487 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19488 else
19489 echo "$as_me: failed program was:" >&5
19490 sed 's/^/| /' conftest.$ac_ext >&5
19491
19492 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19493 fi
19494
19495 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19496 conftest$ac_exeext conftest.$ac_ext
19497 LIBS=$ac_check_lib_save_LIBS
19498 fi
19499 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19500 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19501 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19502 cat >>confdefs.h <<_ACEOF
19503 #define HAVE_LIBCRYPTO 1
19504 _ACEOF
19505
19506 LIBS="-lcrypto $LIBS"
19507
19508 fi
19509
19510
19511 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19512 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19513 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19514 echo $ECHO_N "(cached) $ECHO_C" >&6
19515 else
19516 ac_check_lib_save_LIBS=$LIBS
19517 LIBS="-lkrb5 $LIBS"
19518 cat >conftest.$ac_ext <<_ACEOF
19519 /* confdefs.h. */
19520 _ACEOF
19521 cat confdefs.h >>conftest.$ac_ext
19522 cat >>conftest.$ac_ext <<_ACEOF
19523 /* end confdefs.h. */
19524
19525 /* Override any GCC internal prototype to avoid an error.
19526 Use char because int might match the return type of a GCC
19527 builtin and then its argument prototype would still apply. */
19528 #ifdef __cplusplus
19529 extern "C"
19530 #endif
19531 char krb5_init_context ();
19532 int
19533 main ()
19534 {
19535 return krb5_init_context ();
19536 ;
19537 return 0;
19538 }
19539 _ACEOF
19540 rm -f conftest.$ac_objext conftest$ac_exeext
19541 if { (ac_try="$ac_link"
19542 case "(($ac_try" in
19543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19544 *) ac_try_echo=$ac_try;;
19545 esac
19546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19547 (eval "$ac_link") 2>conftest.er1
19548 ac_status=$?
19549 grep -v '^ *+' conftest.er1 >conftest.err
19550 rm -f conftest.er1
19551 cat conftest.err >&5
19552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19553 (exit $ac_status); } && {
19554 test -z "$ac_c_werror_flag" ||
19555 test ! -s conftest.err
19556 } && test -s conftest$ac_exeext &&
19557 $as_test_x conftest$ac_exeext; then
19558 ac_cv_lib_krb5_krb5_init_context=yes
19559 else
19560 echo "$as_me: failed program was:" >&5
19561 sed 's/^/| /' conftest.$ac_ext >&5
19562
19563 ac_cv_lib_krb5_krb5_init_context=no
19564 fi
19565
19566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19567 conftest$ac_exeext conftest.$ac_ext
19568 LIBS=$ac_check_lib_save_LIBS
19569 fi
19570 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19571 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19572 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19573 cat >>confdefs.h <<_ACEOF
19574 #define HAVE_LIBKRB5 1
19575 _ACEOF
19576
19577 LIBS="-lkrb5 $LIBS"
19578
19579 fi
19580
19581 if test "${with_kerberos5+set}" != set; then
19582
19583 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19584 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19585 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19586 echo $ECHO_N "(cached) $ECHO_C" >&6
19587 else
19588 ac_check_lib_save_LIBS=$LIBS
19589 LIBS="-ldes425 $LIBS"
19590 cat >conftest.$ac_ext <<_ACEOF
19591 /* confdefs.h. */
19592 _ACEOF
19593 cat confdefs.h >>conftest.$ac_ext
19594 cat >>conftest.$ac_ext <<_ACEOF
19595 /* end confdefs.h. */
19596
19597 /* Override any GCC internal prototype to avoid an error.
19598 Use char because int might match the return type of a GCC
19599 builtin and then its argument prototype would still apply. */
19600 #ifdef __cplusplus
19601 extern "C"
19602 #endif
19603 char des_cbc_encrypt ();
19604 int
19605 main ()
19606 {
19607 return des_cbc_encrypt ();
19608 ;
19609 return 0;
19610 }
19611 _ACEOF
19612 rm -f conftest.$ac_objext conftest$ac_exeext
19613 if { (ac_try="$ac_link"
19614 case "(($ac_try" in
19615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19616 *) ac_try_echo=$ac_try;;
19617 esac
19618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19619 (eval "$ac_link") 2>conftest.er1
19620 ac_status=$?
19621 grep -v '^ *+' conftest.er1 >conftest.err
19622 rm -f conftest.er1
19623 cat conftest.err >&5
19624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19625 (exit $ac_status); } && {
19626 test -z "$ac_c_werror_flag" ||
19627 test ! -s conftest.err
19628 } && test -s conftest$ac_exeext &&
19629 $as_test_x conftest$ac_exeext; then
19630 ac_cv_lib_des425_des_cbc_encrypt=yes
19631 else
19632 echo "$as_me: failed program was:" >&5
19633 sed 's/^/| /' conftest.$ac_ext >&5
19634
19635 ac_cv_lib_des425_des_cbc_encrypt=no
19636 fi
19637
19638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19639 conftest$ac_exeext conftest.$ac_ext
19640 LIBS=$ac_check_lib_save_LIBS
19641 fi
19642 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19643 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19644 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19645 cat >>confdefs.h <<_ACEOF
19646 #define HAVE_LIBDES425 1
19647 _ACEOF
19648
19649 LIBS="-ldes425 $LIBS"
19650
19651 else
19652
19653 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19654 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19655 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19656 echo $ECHO_N "(cached) $ECHO_C" >&6
19657 else
19658 ac_check_lib_save_LIBS=$LIBS
19659 LIBS="-ldes $LIBS"
19660 cat >conftest.$ac_ext <<_ACEOF
19661 /* confdefs.h. */
19662 _ACEOF
19663 cat confdefs.h >>conftest.$ac_ext
19664 cat >>conftest.$ac_ext <<_ACEOF
19665 /* end confdefs.h. */
19666
19667 /* Override any GCC internal prototype to avoid an error.
19668 Use char because int might match the return type of a GCC
19669 builtin and then its argument prototype would still apply. */
19670 #ifdef __cplusplus
19671 extern "C"
19672 #endif
19673 char des_cbc_encrypt ();
19674 int
19675 main ()
19676 {
19677 return des_cbc_encrypt ();
19678 ;
19679 return 0;
19680 }
19681 _ACEOF
19682 rm -f conftest.$ac_objext conftest$ac_exeext
19683 if { (ac_try="$ac_link"
19684 case "(($ac_try" in
19685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686 *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689 (eval "$ac_link") 2>conftest.er1
19690 ac_status=$?
19691 grep -v '^ *+' conftest.er1 >conftest.err
19692 rm -f conftest.er1
19693 cat conftest.err >&5
19694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19695 (exit $ac_status); } && {
19696 test -z "$ac_c_werror_flag" ||
19697 test ! -s conftest.err
19698 } && test -s conftest$ac_exeext &&
19699 $as_test_x conftest$ac_exeext; then
19700 ac_cv_lib_des_des_cbc_encrypt=yes
19701 else
19702 echo "$as_me: failed program was:" >&5
19703 sed 's/^/| /' conftest.$ac_ext >&5
19704
19705 ac_cv_lib_des_des_cbc_encrypt=no
19706 fi
19707
19708 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19709 conftest$ac_exeext conftest.$ac_ext
19710 LIBS=$ac_check_lib_save_LIBS
19711 fi
19712 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19713 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19714 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19715 cat >>confdefs.h <<_ACEOF
19716 #define HAVE_LIBDES 1
19717 _ACEOF
19718
19719 LIBS="-ldes $LIBS"
19720
19721 fi
19722
19723 fi
19724
19725
19726 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19727 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19728 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19729 echo $ECHO_N "(cached) $ECHO_C" >&6
19730 else
19731 ac_check_lib_save_LIBS=$LIBS
19732 LIBS="-lkrb4 $LIBS"
19733 cat >conftest.$ac_ext <<_ACEOF
19734 /* confdefs.h. */
19735 _ACEOF
19736 cat confdefs.h >>conftest.$ac_ext
19737 cat >>conftest.$ac_ext <<_ACEOF
19738 /* end confdefs.h. */
19739
19740 /* Override any GCC internal prototype to avoid an error.
19741 Use char because int might match the return type of a GCC
19742 builtin and then its argument prototype would still apply. */
19743 #ifdef __cplusplus
19744 extern "C"
19745 #endif
19746 char krb_get_cred ();
19747 int
19748 main ()
19749 {
19750 return krb_get_cred ();
19751 ;
19752 return 0;
19753 }
19754 _ACEOF
19755 rm -f conftest.$ac_objext conftest$ac_exeext
19756 if { (ac_try="$ac_link"
19757 case "(($ac_try" in
19758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19759 *) ac_try_echo=$ac_try;;
19760 esac
19761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19762 (eval "$ac_link") 2>conftest.er1
19763 ac_status=$?
19764 grep -v '^ *+' conftest.er1 >conftest.err
19765 rm -f conftest.er1
19766 cat conftest.err >&5
19767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19768 (exit $ac_status); } && {
19769 test -z "$ac_c_werror_flag" ||
19770 test ! -s conftest.err
19771 } && test -s conftest$ac_exeext &&
19772 $as_test_x conftest$ac_exeext; then
19773 ac_cv_lib_krb4_krb_get_cred=yes
19774 else
19775 echo "$as_me: failed program was:" >&5
19776 sed 's/^/| /' conftest.$ac_ext >&5
19777
19778 ac_cv_lib_krb4_krb_get_cred=no
19779 fi
19780
19781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19782 conftest$ac_exeext conftest.$ac_ext
19783 LIBS=$ac_check_lib_save_LIBS
19784 fi
19785 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19786 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19787 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19788 cat >>confdefs.h <<_ACEOF
19789 #define HAVE_LIBKRB4 1
19790 _ACEOF
19791
19792 LIBS="-lkrb4 $LIBS"
19793
19794 else
19795
19796 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19797 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19798 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19799 echo $ECHO_N "(cached) $ECHO_C" >&6
19800 else
19801 ac_check_lib_save_LIBS=$LIBS
19802 LIBS="-lkrb $LIBS"
19803 cat >conftest.$ac_ext <<_ACEOF
19804 /* confdefs.h. */
19805 _ACEOF
19806 cat confdefs.h >>conftest.$ac_ext
19807 cat >>conftest.$ac_ext <<_ACEOF
19808 /* end confdefs.h. */
19809
19810 /* Override any GCC internal prototype to avoid an error.
19811 Use char because int might match the return type of a GCC
19812 builtin and then its argument prototype would still apply. */
19813 #ifdef __cplusplus
19814 extern "C"
19815 #endif
19816 char krb_get_cred ();
19817 int
19818 main ()
19819 {
19820 return krb_get_cred ();
19821 ;
19822 return 0;
19823 }
19824 _ACEOF
19825 rm -f conftest.$ac_objext conftest$ac_exeext
19826 if { (ac_try="$ac_link"
19827 case "(($ac_try" in
19828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19829 *) ac_try_echo=$ac_try;;
19830 esac
19831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19832 (eval "$ac_link") 2>conftest.er1
19833 ac_status=$?
19834 grep -v '^ *+' conftest.er1 >conftest.err
19835 rm -f conftest.er1
19836 cat conftest.err >&5
19837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19838 (exit $ac_status); } && {
19839 test -z "$ac_c_werror_flag" ||
19840 test ! -s conftest.err
19841 } && test -s conftest$ac_exeext &&
19842 $as_test_x conftest$ac_exeext; then
19843 ac_cv_lib_krb_krb_get_cred=yes
19844 else
19845 echo "$as_me: failed program was:" >&5
19846 sed 's/^/| /' conftest.$ac_ext >&5
19847
19848 ac_cv_lib_krb_krb_get_cred=no
19849 fi
19850
19851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19852 conftest$ac_exeext conftest.$ac_ext
19853 LIBS=$ac_check_lib_save_LIBS
19854 fi
19855 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19856 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19857 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19858 cat >>confdefs.h <<_ACEOF
19859 #define HAVE_LIBKRB 1
19860 _ACEOF
19861
19862 LIBS="-lkrb $LIBS"
19863
19864 fi
19865
19866 fi
19867
19868 fi
19869
19870 if test "${with_kerberos5+set}" = set; then
19871
19872 for ac_header in krb5.h
19873 do
19874 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19875 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19876 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19877 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19878 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19879 echo $ECHO_N "(cached) $ECHO_C" >&6
19880 fi
19881 ac_res=`eval echo '${'$as_ac_Header'}'`
19882 { echo "$as_me:$LINENO: result: $ac_res" >&5
19883 echo "${ECHO_T}$ac_res" >&6; }
19884 else
19885 # Is the header compilable?
19886 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19887 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19888 cat >conftest.$ac_ext <<_ACEOF
19889 /* confdefs.h. */
19890 _ACEOF
19891 cat confdefs.h >>conftest.$ac_ext
19892 cat >>conftest.$ac_ext <<_ACEOF
19893 /* end confdefs.h. */
19894 $ac_includes_default
19895 #include <$ac_header>
19896 _ACEOF
19897 rm -f conftest.$ac_objext
19898 if { (ac_try="$ac_compile"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_compile") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest.$ac_objext; then
19914 ac_header_compiler=yes
19915 else
19916 echo "$as_me: failed program was:" >&5
19917 sed 's/^/| /' conftest.$ac_ext >&5
19918
19919 ac_header_compiler=no
19920 fi
19921
19922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19924 echo "${ECHO_T}$ac_header_compiler" >&6; }
19925
19926 # Is the header present?
19927 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19928 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19929 cat >conftest.$ac_ext <<_ACEOF
19930 /* confdefs.h. */
19931 _ACEOF
19932 cat confdefs.h >>conftest.$ac_ext
19933 cat >>conftest.$ac_ext <<_ACEOF
19934 /* end confdefs.h. */
19935 #include <$ac_header>
19936 _ACEOF
19937 if { (ac_try="$ac_cpp conftest.$ac_ext"
19938 case "(($ac_try" in
19939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19940 *) ac_try_echo=$ac_try;;
19941 esac
19942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19944 ac_status=$?
19945 grep -v '^ *+' conftest.er1 >conftest.err
19946 rm -f conftest.er1
19947 cat conftest.err >&5
19948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19949 (exit $ac_status); } >/dev/null && {
19950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19951 test ! -s conftest.err
19952 }; then
19953 ac_header_preproc=yes
19954 else
19955 echo "$as_me: failed program was:" >&5
19956 sed 's/^/| /' conftest.$ac_ext >&5
19957
19958 ac_header_preproc=no
19959 fi
19960
19961 rm -f conftest.err conftest.$ac_ext
19962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19963 echo "${ECHO_T}$ac_header_preproc" >&6; }
19964
19965 # So? What about this header?
19966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19967 yes:no: )
19968 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19969 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19970 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19971 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19972 ac_header_preproc=yes
19973 ;;
19974 no:yes:* )
19975 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19976 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19977 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19978 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19979 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19980 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19981 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19982 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19983 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19984 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19985 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19986 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19987
19988 ;;
19989 esac
19990 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19991 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19992 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19993 echo $ECHO_N "(cached) $ECHO_C" >&6
19994 else
19995 eval "$as_ac_Header=\$ac_header_preproc"
19996 fi
19997 ac_res=`eval echo '${'$as_ac_Header'}'`
19998 { echo "$as_me:$LINENO: result: $ac_res" >&5
19999 echo "${ECHO_T}$ac_res" >&6; }
20000
20001 fi
20002 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20003 cat >>confdefs.h <<_ACEOF
20004 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20005 _ACEOF
20006
20007 fi
20008
20009 done
20010
20011 else
20012
20013 for ac_header in des.h
20014 do
20015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20016 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20017 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20018 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20019 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20020 echo $ECHO_N "(cached) $ECHO_C" >&6
20021 fi
20022 ac_res=`eval echo '${'$as_ac_Header'}'`
20023 { echo "$as_me:$LINENO: result: $ac_res" >&5
20024 echo "${ECHO_T}$ac_res" >&6; }
20025 else
20026 # Is the header compilable?
20027 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20028 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20029 cat >conftest.$ac_ext <<_ACEOF
20030 /* confdefs.h. */
20031 _ACEOF
20032 cat confdefs.h >>conftest.$ac_ext
20033 cat >>conftest.$ac_ext <<_ACEOF
20034 /* end confdefs.h. */
20035 $ac_includes_default
20036 #include <$ac_header>
20037 _ACEOF
20038 rm -f conftest.$ac_objext
20039 if { (ac_try="$ac_compile"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_compile") 2>conftest.er1
20046 ac_status=$?
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && {
20052 test -z "$ac_c_werror_flag" ||
20053 test ! -s conftest.err
20054 } && test -s conftest.$ac_objext; then
20055 ac_header_compiler=yes
20056 else
20057 echo "$as_me: failed program was:" >&5
20058 sed 's/^/| /' conftest.$ac_ext >&5
20059
20060 ac_header_compiler=no
20061 fi
20062
20063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20064 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20065 echo "${ECHO_T}$ac_header_compiler" >&6; }
20066
20067 # Is the header present?
20068 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20069 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20070 cat >conftest.$ac_ext <<_ACEOF
20071 /* confdefs.h. */
20072 _ACEOF
20073 cat confdefs.h >>conftest.$ac_ext
20074 cat >>conftest.$ac_ext <<_ACEOF
20075 /* end confdefs.h. */
20076 #include <$ac_header>
20077 _ACEOF
20078 if { (ac_try="$ac_cpp conftest.$ac_ext"
20079 case "(($ac_try" in
20080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20081 *) ac_try_echo=$ac_try;;
20082 esac
20083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20084 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20085 ac_status=$?
20086 grep -v '^ *+' conftest.er1 >conftest.err
20087 rm -f conftest.er1
20088 cat conftest.err >&5
20089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20090 (exit $ac_status); } >/dev/null && {
20091 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20092 test ! -s conftest.err
20093 }; then
20094 ac_header_preproc=yes
20095 else
20096 echo "$as_me: failed program was:" >&5
20097 sed 's/^/| /' conftest.$ac_ext >&5
20098
20099 ac_header_preproc=no
20100 fi
20101
20102 rm -f conftest.err conftest.$ac_ext
20103 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20104 echo "${ECHO_T}$ac_header_preproc" >&6; }
20105
20106 # So? What about this header?
20107 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20108 yes:no: )
20109 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20110 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20111 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20112 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20113 ac_header_preproc=yes
20114 ;;
20115 no:yes:* )
20116 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20117 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20118 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20119 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20120 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20121 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20122 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20123 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20125 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20126 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20127 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20128
20129 ;;
20130 esac
20131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20134 echo $ECHO_N "(cached) $ECHO_C" >&6
20135 else
20136 eval "$as_ac_Header=\$ac_header_preproc"
20137 fi
20138 ac_res=`eval echo '${'$as_ac_Header'}'`
20139 { echo "$as_me:$LINENO: result: $ac_res" >&5
20140 echo "${ECHO_T}$ac_res" >&6; }
20141
20142 fi
20143 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20144 cat >>confdefs.h <<_ACEOF
20145 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20146 _ACEOF
20147
20148 else
20149
20150 for ac_header in kerberosIV/des.h
20151 do
20152 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20153 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20154 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20155 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20157 echo $ECHO_N "(cached) $ECHO_C" >&6
20158 fi
20159 ac_res=`eval echo '${'$as_ac_Header'}'`
20160 { echo "$as_me:$LINENO: result: $ac_res" >&5
20161 echo "${ECHO_T}$ac_res" >&6; }
20162 else
20163 # Is the header compilable?
20164 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20165 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20166 cat >conftest.$ac_ext <<_ACEOF
20167 /* confdefs.h. */
20168 _ACEOF
20169 cat confdefs.h >>conftest.$ac_ext
20170 cat >>conftest.$ac_ext <<_ACEOF
20171 /* end confdefs.h. */
20172 $ac_includes_default
20173 #include <$ac_header>
20174 _ACEOF
20175 rm -f conftest.$ac_objext
20176 if { (ac_try="$ac_compile"
20177 case "(($ac_try" in
20178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20179 *) ac_try_echo=$ac_try;;
20180 esac
20181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20182 (eval "$ac_compile") 2>conftest.er1
20183 ac_status=$?
20184 grep -v '^ *+' conftest.er1 >conftest.err
20185 rm -f conftest.er1
20186 cat conftest.err >&5
20187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20188 (exit $ac_status); } && {
20189 test -z "$ac_c_werror_flag" ||
20190 test ! -s conftest.err
20191 } && test -s conftest.$ac_objext; then
20192 ac_header_compiler=yes
20193 else
20194 echo "$as_me: failed program was:" >&5
20195 sed 's/^/| /' conftest.$ac_ext >&5
20196
20197 ac_header_compiler=no
20198 fi
20199
20200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20201 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20202 echo "${ECHO_T}$ac_header_compiler" >&6; }
20203
20204 # Is the header present?
20205 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20206 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20207 cat >conftest.$ac_ext <<_ACEOF
20208 /* confdefs.h. */
20209 _ACEOF
20210 cat confdefs.h >>conftest.$ac_ext
20211 cat >>conftest.$ac_ext <<_ACEOF
20212 /* end confdefs.h. */
20213 #include <$ac_header>
20214 _ACEOF
20215 if { (ac_try="$ac_cpp conftest.$ac_ext"
20216 case "(($ac_try" in
20217 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20218 *) ac_try_echo=$ac_try;;
20219 esac
20220 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20221 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20222 ac_status=$?
20223 grep -v '^ *+' conftest.er1 >conftest.err
20224 rm -f conftest.er1
20225 cat conftest.err >&5
20226 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20227 (exit $ac_status); } >/dev/null && {
20228 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20229 test ! -s conftest.err
20230 }; then
20231 ac_header_preproc=yes
20232 else
20233 echo "$as_me: failed program was:" >&5
20234 sed 's/^/| /' conftest.$ac_ext >&5
20235
20236 ac_header_preproc=no
20237 fi
20238
20239 rm -f conftest.err conftest.$ac_ext
20240 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20241 echo "${ECHO_T}$ac_header_preproc" >&6; }
20242
20243 # So? What about this header?
20244 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20245 yes:no: )
20246 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20247 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20248 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20249 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20250 ac_header_preproc=yes
20251 ;;
20252 no:yes:* )
20253 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20254 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20255 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20256 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20257 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20258 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20259 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20260 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20262 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20263 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20264 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20265
20266 ;;
20267 esac
20268 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20269 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20270 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20271 echo $ECHO_N "(cached) $ECHO_C" >&6
20272 else
20273 eval "$as_ac_Header=\$ac_header_preproc"
20274 fi
20275 ac_res=`eval echo '${'$as_ac_Header'}'`
20276 { echo "$as_me:$LINENO: result: $ac_res" >&5
20277 echo "${ECHO_T}$ac_res" >&6; }
20278
20279 fi
20280 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20281 cat >>confdefs.h <<_ACEOF
20282 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20283 _ACEOF
20284
20285 else
20286
20287 for ac_header in kerberos/des.h
20288 do
20289 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20290 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20291 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20292 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20293 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20294 echo $ECHO_N "(cached) $ECHO_C" >&6
20295 fi
20296 ac_res=`eval echo '${'$as_ac_Header'}'`
20297 { echo "$as_me:$LINENO: result: $ac_res" >&5
20298 echo "${ECHO_T}$ac_res" >&6; }
20299 else
20300 # Is the header compilable?
20301 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20302 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20303 cat >conftest.$ac_ext <<_ACEOF
20304 /* confdefs.h. */
20305 _ACEOF
20306 cat confdefs.h >>conftest.$ac_ext
20307 cat >>conftest.$ac_ext <<_ACEOF
20308 /* end confdefs.h. */
20309 $ac_includes_default
20310 #include <$ac_header>
20311 _ACEOF
20312 rm -f conftest.$ac_objext
20313 if { (ac_try="$ac_compile"
20314 case "(($ac_try" in
20315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20316 *) ac_try_echo=$ac_try;;
20317 esac
20318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20319 (eval "$ac_compile") 2>conftest.er1
20320 ac_status=$?
20321 grep -v '^ *+' conftest.er1 >conftest.err
20322 rm -f conftest.er1
20323 cat conftest.err >&5
20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20325 (exit $ac_status); } && {
20326 test -z "$ac_c_werror_flag" ||
20327 test ! -s conftest.err
20328 } && test -s conftest.$ac_objext; then
20329 ac_header_compiler=yes
20330 else
20331 echo "$as_me: failed program was:" >&5
20332 sed 's/^/| /' conftest.$ac_ext >&5
20333
20334 ac_header_compiler=no
20335 fi
20336
20337 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20338 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20339 echo "${ECHO_T}$ac_header_compiler" >&6; }
20340
20341 # Is the header present?
20342 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20343 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20344 cat >conftest.$ac_ext <<_ACEOF
20345 /* confdefs.h. */
20346 _ACEOF
20347 cat confdefs.h >>conftest.$ac_ext
20348 cat >>conftest.$ac_ext <<_ACEOF
20349 /* end confdefs.h. */
20350 #include <$ac_header>
20351 _ACEOF
20352 if { (ac_try="$ac_cpp conftest.$ac_ext"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } >/dev/null && {
20365 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 }; then
20368 ac_header_preproc=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 ac_header_preproc=no
20374 fi
20375
20376 rm -f conftest.err conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20378 echo "${ECHO_T}$ac_header_preproc" >&6; }
20379
20380 # So? What about this header?
20381 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20382 yes:no: )
20383 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20384 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20385 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20386 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20387 ac_header_preproc=yes
20388 ;;
20389 no:yes:* )
20390 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20391 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20392 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20393 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20394 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20395 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20396 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20397 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20398 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20399 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20400 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20401 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20402
20403 ;;
20404 esac
20405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410 eval "$as_ac_Header=\$ac_header_preproc"
20411 fi
20412 ac_res=`eval echo '${'$as_ac_Header'}'`
20413 { echo "$as_me:$LINENO: result: $ac_res" >&5
20414 echo "${ECHO_T}$ac_res" >&6; }
20415
20416 fi
20417 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20418 cat >>confdefs.h <<_ACEOF
20419 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20420 _ACEOF
20421
20422 fi
20423
20424 done
20425
20426 fi
20427
20428 done
20429
20430 fi
20431
20432 done
20433
20434
20435 for ac_header in krb.h
20436 do
20437 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20438 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20439 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20440 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20441 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20442 echo $ECHO_N "(cached) $ECHO_C" >&6
20443 fi
20444 ac_res=`eval echo '${'$as_ac_Header'}'`
20445 { echo "$as_me:$LINENO: result: $ac_res" >&5
20446 echo "${ECHO_T}$ac_res" >&6; }
20447 else
20448 # Is the header compilable?
20449 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20450 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20451 cat >conftest.$ac_ext <<_ACEOF
20452 /* confdefs.h. */
20453 _ACEOF
20454 cat confdefs.h >>conftest.$ac_ext
20455 cat >>conftest.$ac_ext <<_ACEOF
20456 /* end confdefs.h. */
20457 $ac_includes_default
20458 #include <$ac_header>
20459 _ACEOF
20460 rm -f conftest.$ac_objext
20461 if { (ac_try="$ac_compile"
20462 case "(($ac_try" in
20463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20464 *) ac_try_echo=$ac_try;;
20465 esac
20466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20467 (eval "$ac_compile") 2>conftest.er1
20468 ac_status=$?
20469 grep -v '^ *+' conftest.er1 >conftest.err
20470 rm -f conftest.er1
20471 cat conftest.err >&5
20472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20473 (exit $ac_status); } && {
20474 test -z "$ac_c_werror_flag" ||
20475 test ! -s conftest.err
20476 } && test -s conftest.$ac_objext; then
20477 ac_header_compiler=yes
20478 else
20479 echo "$as_me: failed program was:" >&5
20480 sed 's/^/| /' conftest.$ac_ext >&5
20481
20482 ac_header_compiler=no
20483 fi
20484
20485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20486 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20487 echo "${ECHO_T}$ac_header_compiler" >&6; }
20488
20489 # Is the header present?
20490 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20491 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20492 cat >conftest.$ac_ext <<_ACEOF
20493 /* confdefs.h. */
20494 _ACEOF
20495 cat confdefs.h >>conftest.$ac_ext
20496 cat >>conftest.$ac_ext <<_ACEOF
20497 /* end confdefs.h. */
20498 #include <$ac_header>
20499 _ACEOF
20500 if { (ac_try="$ac_cpp conftest.$ac_ext"
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_cpp conftest.$ac_ext") 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); } >/dev/null && {
20513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20514 test ! -s conftest.err
20515 }; then
20516 ac_header_preproc=yes
20517 else
20518 echo "$as_me: failed program was:" >&5
20519 sed 's/^/| /' conftest.$ac_ext >&5
20520
20521 ac_header_preproc=no
20522 fi
20523
20524 rm -f conftest.err conftest.$ac_ext
20525 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20526 echo "${ECHO_T}$ac_header_preproc" >&6; }
20527
20528 # So? What about this header?
20529 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20530 yes:no: )
20531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20532 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20534 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20535 ac_header_preproc=yes
20536 ;;
20537 no:yes:* )
20538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20539 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20541 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20543 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20545 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20547 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20549 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20550
20551 ;;
20552 esac
20553 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20554 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20555 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20556 echo $ECHO_N "(cached) $ECHO_C" >&6
20557 else
20558 eval "$as_ac_Header=\$ac_header_preproc"
20559 fi
20560 ac_res=`eval echo '${'$as_ac_Header'}'`
20561 { echo "$as_me:$LINENO: result: $ac_res" >&5
20562 echo "${ECHO_T}$ac_res" >&6; }
20563
20564 fi
20565 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20566 cat >>confdefs.h <<_ACEOF
20567 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20568 _ACEOF
20569
20570 else
20571
20572 for ac_header in kerberosIV/krb.h
20573 do
20574 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20576 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20577 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20578 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20579 echo $ECHO_N "(cached) $ECHO_C" >&6
20580 fi
20581 ac_res=`eval echo '${'$as_ac_Header'}'`
20582 { echo "$as_me:$LINENO: result: $ac_res" >&5
20583 echo "${ECHO_T}$ac_res" >&6; }
20584 else
20585 # Is the header compilable?
20586 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20587 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20588 cat >conftest.$ac_ext <<_ACEOF
20589 /* confdefs.h. */
20590 _ACEOF
20591 cat confdefs.h >>conftest.$ac_ext
20592 cat >>conftest.$ac_ext <<_ACEOF
20593 /* end confdefs.h. */
20594 $ac_includes_default
20595 #include <$ac_header>
20596 _ACEOF
20597 rm -f conftest.$ac_objext
20598 if { (ac_try="$ac_compile"
20599 case "(($ac_try" in
20600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20601 *) ac_try_echo=$ac_try;;
20602 esac
20603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20604 (eval "$ac_compile") 2>conftest.er1
20605 ac_status=$?
20606 grep -v '^ *+' conftest.er1 >conftest.err
20607 rm -f conftest.er1
20608 cat conftest.err >&5
20609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20610 (exit $ac_status); } && {
20611 test -z "$ac_c_werror_flag" ||
20612 test ! -s conftest.err
20613 } && test -s conftest.$ac_objext; then
20614 ac_header_compiler=yes
20615 else
20616 echo "$as_me: failed program was:" >&5
20617 sed 's/^/| /' conftest.$ac_ext >&5
20618
20619 ac_header_compiler=no
20620 fi
20621
20622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20623 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20624 echo "${ECHO_T}$ac_header_compiler" >&6; }
20625
20626 # Is the header present?
20627 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20628 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20629 cat >conftest.$ac_ext <<_ACEOF
20630 /* confdefs.h. */
20631 _ACEOF
20632 cat confdefs.h >>conftest.$ac_ext
20633 cat >>conftest.$ac_ext <<_ACEOF
20634 /* end confdefs.h. */
20635 #include <$ac_header>
20636 _ACEOF
20637 if { (ac_try="$ac_cpp conftest.$ac_ext"
20638 case "(($ac_try" in
20639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20640 *) ac_try_echo=$ac_try;;
20641 esac
20642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20643 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20644 ac_status=$?
20645 grep -v '^ *+' conftest.er1 >conftest.err
20646 rm -f conftest.er1
20647 cat conftest.err >&5
20648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20649 (exit $ac_status); } >/dev/null && {
20650 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20651 test ! -s conftest.err
20652 }; then
20653 ac_header_preproc=yes
20654 else
20655 echo "$as_me: failed program was:" >&5
20656 sed 's/^/| /' conftest.$ac_ext >&5
20657
20658 ac_header_preproc=no
20659 fi
20660
20661 rm -f conftest.err conftest.$ac_ext
20662 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20663 echo "${ECHO_T}$ac_header_preproc" >&6; }
20664
20665 # So? What about this header?
20666 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20667 yes:no: )
20668 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20669 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20670 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20671 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20672 ac_header_preproc=yes
20673 ;;
20674 no:yes:* )
20675 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20676 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20677 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20678 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20680 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20682 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20683 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20684 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20685 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20686 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20687
20688 ;;
20689 esac
20690 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20691 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20692 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20693 echo $ECHO_N "(cached) $ECHO_C" >&6
20694 else
20695 eval "$as_ac_Header=\$ac_header_preproc"
20696 fi
20697 ac_res=`eval echo '${'$as_ac_Header'}'`
20698 { echo "$as_me:$LINENO: result: $ac_res" >&5
20699 echo "${ECHO_T}$ac_res" >&6; }
20700
20701 fi
20702 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20703 cat >>confdefs.h <<_ACEOF
20704 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20705 _ACEOF
20706
20707 else
20708
20709 for ac_header in kerberos/krb.h
20710 do
20711 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20712 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20713 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20714 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20715 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20716 echo $ECHO_N "(cached) $ECHO_C" >&6
20717 fi
20718 ac_res=`eval echo '${'$as_ac_Header'}'`
20719 { echo "$as_me:$LINENO: result: $ac_res" >&5
20720 echo "${ECHO_T}$ac_res" >&6; }
20721 else
20722 # Is the header compilable?
20723 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20724 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20725 cat >conftest.$ac_ext <<_ACEOF
20726 /* confdefs.h. */
20727 _ACEOF
20728 cat confdefs.h >>conftest.$ac_ext
20729 cat >>conftest.$ac_ext <<_ACEOF
20730 /* end confdefs.h. */
20731 $ac_includes_default
20732 #include <$ac_header>
20733 _ACEOF
20734 rm -f conftest.$ac_objext
20735 if { (ac_try="$ac_compile"
20736 case "(($ac_try" in
20737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20738 *) ac_try_echo=$ac_try;;
20739 esac
20740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20741 (eval "$ac_compile") 2>conftest.er1
20742 ac_status=$?
20743 grep -v '^ *+' conftest.er1 >conftest.err
20744 rm -f conftest.er1
20745 cat conftest.err >&5
20746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20747 (exit $ac_status); } && {
20748 test -z "$ac_c_werror_flag" ||
20749 test ! -s conftest.err
20750 } && test -s conftest.$ac_objext; then
20751 ac_header_compiler=yes
20752 else
20753 echo "$as_me: failed program was:" >&5
20754 sed 's/^/| /' conftest.$ac_ext >&5
20755
20756 ac_header_compiler=no
20757 fi
20758
20759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20760 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20761 echo "${ECHO_T}$ac_header_compiler" >&6; }
20762
20763 # Is the header present?
20764 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20765 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20766 cat >conftest.$ac_ext <<_ACEOF
20767 /* confdefs.h. */
20768 _ACEOF
20769 cat confdefs.h >>conftest.$ac_ext
20770 cat >>conftest.$ac_ext <<_ACEOF
20771 /* end confdefs.h. */
20772 #include <$ac_header>
20773 _ACEOF
20774 if { (ac_try="$ac_cpp conftest.$ac_ext"
20775 case "(($ac_try" in
20776 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20777 *) ac_try_echo=$ac_try;;
20778 esac
20779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20780 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20781 ac_status=$?
20782 grep -v '^ *+' conftest.er1 >conftest.err
20783 rm -f conftest.er1
20784 cat conftest.err >&5
20785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20786 (exit $ac_status); } >/dev/null && {
20787 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20788 test ! -s conftest.err
20789 }; then
20790 ac_header_preproc=yes
20791 else
20792 echo "$as_me: failed program was:" >&5
20793 sed 's/^/| /' conftest.$ac_ext >&5
20794
20795 ac_header_preproc=no
20796 fi
20797
20798 rm -f conftest.err conftest.$ac_ext
20799 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20800 echo "${ECHO_T}$ac_header_preproc" >&6; }
20801
20802 # So? What about this header?
20803 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20804 yes:no: )
20805 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20806 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20807 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20808 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20809 ac_header_preproc=yes
20810 ;;
20811 no:yes:* )
20812 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20813 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20814 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20815 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20816 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20817 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20818 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20819 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20821 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20823 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20824
20825 ;;
20826 esac
20827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20830 echo $ECHO_N "(cached) $ECHO_C" >&6
20831 else
20832 eval "$as_ac_Header=\$ac_header_preproc"
20833 fi
20834 ac_res=`eval echo '${'$as_ac_Header'}'`
20835 { echo "$as_me:$LINENO: result: $ac_res" >&5
20836 echo "${ECHO_T}$ac_res" >&6; }
20837
20838 fi
20839 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20840 cat >>confdefs.h <<_ACEOF
20841 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20842 _ACEOF
20843
20844 fi
20845
20846 done
20847
20848 fi
20849
20850 done
20851
20852 fi
20853
20854 done
20855
20856 fi
20857
20858 for ac_header in com_err.h
20859 do
20860 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20865 echo $ECHO_N "(cached) $ECHO_C" >&6
20866 fi
20867 ac_res=`eval echo '${'$as_ac_Header'}'`
20868 { echo "$as_me:$LINENO: result: $ac_res" >&5
20869 echo "${ECHO_T}$ac_res" >&6; }
20870 else
20871 # Is the header compilable?
20872 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20873 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20874 cat >conftest.$ac_ext <<_ACEOF
20875 /* confdefs.h. */
20876 _ACEOF
20877 cat confdefs.h >>conftest.$ac_ext
20878 cat >>conftest.$ac_ext <<_ACEOF
20879 /* end confdefs.h. */
20880 $ac_includes_default
20881 #include <$ac_header>
20882 _ACEOF
20883 rm -f conftest.$ac_objext
20884 if { (ac_try="$ac_compile"
20885 case "(($ac_try" in
20886 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20887 *) ac_try_echo=$ac_try;;
20888 esac
20889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20890 (eval "$ac_compile") 2>conftest.er1
20891 ac_status=$?
20892 grep -v '^ *+' conftest.er1 >conftest.err
20893 rm -f conftest.er1
20894 cat conftest.err >&5
20895 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20896 (exit $ac_status); } && {
20897 test -z "$ac_c_werror_flag" ||
20898 test ! -s conftest.err
20899 } && test -s conftest.$ac_objext; then
20900 ac_header_compiler=yes
20901 else
20902 echo "$as_me: failed program was:" >&5
20903 sed 's/^/| /' conftest.$ac_ext >&5
20904
20905 ac_header_compiler=no
20906 fi
20907
20908 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20909 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20910 echo "${ECHO_T}$ac_header_compiler" >&6; }
20911
20912 # Is the header present?
20913 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20914 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20915 cat >conftest.$ac_ext <<_ACEOF
20916 /* confdefs.h. */
20917 _ACEOF
20918 cat confdefs.h >>conftest.$ac_ext
20919 cat >>conftest.$ac_ext <<_ACEOF
20920 /* end confdefs.h. */
20921 #include <$ac_header>
20922 _ACEOF
20923 if { (ac_try="$ac_cpp conftest.$ac_ext"
20924 case "(($ac_try" in
20925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20926 *) ac_try_echo=$ac_try;;
20927 esac
20928 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20929 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20930 ac_status=$?
20931 grep -v '^ *+' conftest.er1 >conftest.err
20932 rm -f conftest.er1
20933 cat conftest.err >&5
20934 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20935 (exit $ac_status); } >/dev/null && {
20936 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20937 test ! -s conftest.err
20938 }; then
20939 ac_header_preproc=yes
20940 else
20941 echo "$as_me: failed program was:" >&5
20942 sed 's/^/| /' conftest.$ac_ext >&5
20943
20944 ac_header_preproc=no
20945 fi
20946
20947 rm -f conftest.err conftest.$ac_ext
20948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20949 echo "${ECHO_T}$ac_header_preproc" >&6; }
20950
20951 # So? What about this header?
20952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20953 yes:no: )
20954 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20956 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20958 ac_header_preproc=yes
20959 ;;
20960 no:yes:* )
20961 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20963 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20964 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20965 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20967 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20968 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20969 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20971 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20973
20974 ;;
20975 esac
20976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20979 echo $ECHO_N "(cached) $ECHO_C" >&6
20980 else
20981 eval "$as_ac_Header=\$ac_header_preproc"
20982 fi
20983 ac_res=`eval echo '${'$as_ac_Header'}'`
20984 { echo "$as_me:$LINENO: result: $ac_res" >&5
20985 echo "${ECHO_T}$ac_res" >&6; }
20986
20987 fi
20988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20989 cat >>confdefs.h <<_ACEOF
20990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20991 _ACEOF
20992
20993 fi
20994
20995 done
20996
20997 fi
20998
20999 # Solaris requires -lintl if you want strerror (which calls dgettext)
21000 # to return localized messages.
21001
21002 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21003 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21004 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 else
21007 ac_check_lib_save_LIBS=$LIBS
21008 LIBS="-lintl $LIBS"
21009 cat >conftest.$ac_ext <<_ACEOF
21010 /* confdefs.h. */
21011 _ACEOF
21012 cat confdefs.h >>conftest.$ac_ext
21013 cat >>conftest.$ac_ext <<_ACEOF
21014 /* end confdefs.h. */
21015
21016 /* Override any GCC internal prototype to avoid an error.
21017 Use char because int might match the return type of a GCC
21018 builtin and then its argument prototype would still apply. */
21019 #ifdef __cplusplus
21020 extern "C"
21021 #endif
21022 char dgettext ();
21023 int
21024 main ()
21025 {
21026 return dgettext ();
21027 ;
21028 return 0;
21029 }
21030 _ACEOF
21031 rm -f conftest.$ac_objext conftest$ac_exeext
21032 if { (ac_try="$ac_link"
21033 case "(($ac_try" in
21034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21035 *) ac_try_echo=$ac_try;;
21036 esac
21037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21038 (eval "$ac_link") 2>conftest.er1
21039 ac_status=$?
21040 grep -v '^ *+' conftest.er1 >conftest.err
21041 rm -f conftest.er1
21042 cat conftest.err >&5
21043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21044 (exit $ac_status); } && {
21045 test -z "$ac_c_werror_flag" ||
21046 test ! -s conftest.err
21047 } && test -s conftest$ac_exeext &&
21048 $as_test_x conftest$ac_exeext; then
21049 ac_cv_lib_intl_dgettext=yes
21050 else
21051 echo "$as_me: failed program was:" >&5
21052 sed 's/^/| /' conftest.$ac_ext >&5
21053
21054 ac_cv_lib_intl_dgettext=no
21055 fi
21056
21057 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21058 conftest$ac_exeext conftest.$ac_ext
21059 LIBS=$ac_check_lib_save_LIBS
21060 fi
21061 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21062 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21063 if test $ac_cv_lib_intl_dgettext = yes; then
21064 cat >>confdefs.h <<_ACEOF
21065 #define HAVE_LIBINTL 1
21066 _ACEOF
21067
21068 LIBS="-lintl $LIBS"
21069
21070 fi
21071
21072
21073 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21074 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21075 if test "${emacs_cv_localtime_cache+set}" = set; then
21076 echo $ECHO_N "(cached) $ECHO_C" >&6
21077 else
21078 if test x$ac_cv_func_tzset = xyes; then
21079 if test "$cross_compiling" = yes; then
21080 # If we have tzset, assume the worst when cross-compiling.
21081 emacs_cv_localtime_cache=yes
21082 else
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <time.h>
21090 extern char **environ;
21091 unset_TZ ()
21092 {
21093 char **from, **to;
21094 for (to = from = environ; (*to = *from); from++)
21095 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21096 to++;
21097 }
21098 char TZ_GMT0[] = "TZ=GMT0";
21099 char TZ_PST8[] = "TZ=PST8";
21100 main()
21101 {
21102 time_t now = time ((time_t *) 0);
21103 int hour_GMT0, hour_unset;
21104 if (putenv (TZ_GMT0) != 0)
21105 exit (1);
21106 hour_GMT0 = localtime (&now)->tm_hour;
21107 unset_TZ ();
21108 hour_unset = localtime (&now)->tm_hour;
21109 if (putenv (TZ_PST8) != 0)
21110 exit (1);
21111 if (localtime (&now)->tm_hour == hour_GMT0)
21112 exit (1);
21113 unset_TZ ();
21114 if (localtime (&now)->tm_hour != hour_unset)
21115 exit (1);
21116 exit (0);
21117 }
21118 _ACEOF
21119 rm -f conftest$ac_exeext
21120 if { (ac_try="$ac_link"
21121 case "(($ac_try" in
21122 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21123 *) ac_try_echo=$ac_try;;
21124 esac
21125 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21126 (eval "$ac_link") 2>&5
21127 ac_status=$?
21128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21129 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21130 { (case "(($ac_try" in
21131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21132 *) ac_try_echo=$ac_try;;
21133 esac
21134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21135 (eval "$ac_try") 2>&5
21136 ac_status=$?
21137 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21138 (exit $ac_status); }; }; then
21139 emacs_cv_localtime_cache=no
21140 else
21141 echo "$as_me: program exited with status $ac_status" >&5
21142 echo "$as_me: failed program was:" >&5
21143 sed 's/^/| /' conftest.$ac_ext >&5
21144
21145 ( exit $ac_status )
21146 emacs_cv_localtime_cache=yes
21147 fi
21148 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21149 fi
21150
21151
21152 else
21153 # If we lack tzset, report that localtime does not cache TZ,
21154 # since we can't invalidate the cache if we don't have tzset.
21155 emacs_cv_localtime_cache=no
21156 fi
21157 fi
21158 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21159 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21160 if test $emacs_cv_localtime_cache = yes; then
21161
21162 cat >>confdefs.h <<\_ACEOF
21163 #define LOCALTIME_CACHE 1
21164 _ACEOF
21165
21166 fi
21167
21168 if test "x$HAVE_TIMEVAL" = xyes; then
21169
21170 for ac_func in gettimeofday
21171 do
21172 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21173 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21174 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21175 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21185 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21186 #define $ac_func innocuous_$ac_func
21187
21188 /* System header to define __stub macros and hopefully few prototypes,
21189 which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func || defined __stub___$ac_func
21212 choke me
21213 #endif
21214
21215 int
21216 main ()
21217 {
21218 return $ac_func ();
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 test -z "$ac_c_werror_flag" ||
21238 test ! -s conftest.err
21239 } && test -s conftest$ac_exeext &&
21240 $as_test_x conftest$ac_exeext; then
21241 eval "$as_ac_var=yes"
21242 else
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 eval "$as_ac_var=no"
21247 fi
21248
21249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21250 conftest$ac_exeext conftest.$ac_ext
21251 fi
21252 ac_res=`eval echo '${'$as_ac_var'}'`
21253 { echo "$as_me:$LINENO: result: $ac_res" >&5
21254 echo "${ECHO_T}$ac_res" >&6; }
21255 if test `eval echo '${'$as_ac_var'}'` = yes; then
21256 cat >>confdefs.h <<_ACEOF
21257 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21258 _ACEOF
21259
21260 fi
21261 done
21262
21263 if test $ac_cv_func_gettimeofday = yes; then
21264 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21265 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21266 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269 cat >conftest.$ac_ext <<_ACEOF
21270 /* confdefs.h. */
21271 _ACEOF
21272 cat confdefs.h >>conftest.$ac_ext
21273 cat >>conftest.$ac_ext <<_ACEOF
21274 /* end confdefs.h. */
21275
21276 #ifdef TIME_WITH_SYS_TIME
21277 #include <sys/time.h>
21278 #include <time.h>
21279 #else
21280 #ifdef HAVE_SYS_TIME_H
21281 #include <sys/time.h>
21282 #else
21283 #include <time.h>
21284 #endif
21285 #endif
21286 int
21287 main ()
21288 {
21289 struct timeval time;
21290 gettimeofday (&time, 0);
21291 ;
21292 return 0;
21293 }
21294 _ACEOF
21295 rm -f conftest.$ac_objext
21296 if { (ac_try="$ac_compile"
21297 case "(($ac_try" in
21298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21299 *) ac_try_echo=$ac_try;;
21300 esac
21301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21302 (eval "$ac_compile") 2>conftest.er1
21303 ac_status=$?
21304 grep -v '^ *+' conftest.er1 >conftest.err
21305 rm -f conftest.er1
21306 cat conftest.err >&5
21307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21308 (exit $ac_status); } && {
21309 test -z "$ac_c_werror_flag" ||
21310 test ! -s conftest.err
21311 } && test -s conftest.$ac_objext; then
21312 emacs_cv_gettimeofday_two_arguments=yes
21313 else
21314 echo "$as_me: failed program was:" >&5
21315 sed 's/^/| /' conftest.$ac_ext >&5
21316
21317 emacs_cv_gettimeofday_two_arguments=no
21318 fi
21319
21320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21321 fi
21322 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21323 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21324 if test $emacs_cv_gettimeofday_two_arguments = no; then
21325
21326 cat >>confdefs.h <<\_ACEOF
21327 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21328 _ACEOF
21329
21330 fi
21331 fi
21332 fi
21333
21334 ok_so_far=yes
21335 { echo "$as_me:$LINENO: checking for socket" >&5
21336 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21337 if test "${ac_cv_func_socket+set}" = set; then
21338 echo $ECHO_N "(cached) $ECHO_C" >&6
21339 else
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21347 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21348 #define socket innocuous_socket
21349
21350 /* System header to define __stub macros and hopefully few prototypes,
21351 which can conflict with char socket (); below.
21352 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21353 <limits.h> exists even on freestanding compilers. */
21354
21355 #ifdef __STDC__
21356 # include <limits.h>
21357 #else
21358 # include <assert.h>
21359 #endif
21360
21361 #undef socket
21362
21363 /* Override any GCC internal prototype to avoid an error.
21364 Use char because int might match the return type of a GCC
21365 builtin and then its argument prototype would still apply. */
21366 #ifdef __cplusplus
21367 extern "C"
21368 #endif
21369 char socket ();
21370 /* The GNU C library defines this for functions which it implements
21371 to always fail with ENOSYS. Some functions are actually named
21372 something starting with __ and the normal name is an alias. */
21373 #if defined __stub_socket || defined __stub___socket
21374 choke me
21375 #endif
21376
21377 int
21378 main ()
21379 {
21380 return socket ();
21381 ;
21382 return 0;
21383 }
21384 _ACEOF
21385 rm -f conftest.$ac_objext conftest$ac_exeext
21386 if { (ac_try="$ac_link"
21387 case "(($ac_try" in
21388 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21389 *) ac_try_echo=$ac_try;;
21390 esac
21391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21392 (eval "$ac_link") 2>conftest.er1
21393 ac_status=$?
21394 grep -v '^ *+' conftest.er1 >conftest.err
21395 rm -f conftest.er1
21396 cat conftest.err >&5
21397 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21398 (exit $ac_status); } && {
21399 test -z "$ac_c_werror_flag" ||
21400 test ! -s conftest.err
21401 } && test -s conftest$ac_exeext &&
21402 $as_test_x conftest$ac_exeext; then
21403 ac_cv_func_socket=yes
21404 else
21405 echo "$as_me: failed program was:" >&5
21406 sed 's/^/| /' conftest.$ac_ext >&5
21407
21408 ac_cv_func_socket=no
21409 fi
21410
21411 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21412 conftest$ac_exeext conftest.$ac_ext
21413 fi
21414 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21415 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21416 if test $ac_cv_func_socket = yes; then
21417 :
21418 else
21419 ok_so_far=no
21420 fi
21421
21422 if test $ok_so_far = yes; then
21423 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21424 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21425 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21426 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21430 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21431 else
21432 # Is the header compilable?
21433 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21434 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21435 cat >conftest.$ac_ext <<_ACEOF
21436 /* confdefs.h. */
21437 _ACEOF
21438 cat confdefs.h >>conftest.$ac_ext
21439 cat >>conftest.$ac_ext <<_ACEOF
21440 /* end confdefs.h. */
21441 $ac_includes_default
21442 #include <netinet/in.h>
21443 _ACEOF
21444 rm -f conftest.$ac_objext
21445 if { (ac_try="$ac_compile"
21446 case "(($ac_try" in
21447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21448 *) ac_try_echo=$ac_try;;
21449 esac
21450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21451 (eval "$ac_compile") 2>conftest.er1
21452 ac_status=$?
21453 grep -v '^ *+' conftest.er1 >conftest.err
21454 rm -f conftest.er1
21455 cat conftest.err >&5
21456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21457 (exit $ac_status); } && {
21458 test -z "$ac_c_werror_flag" ||
21459 test ! -s conftest.err
21460 } && test -s conftest.$ac_objext; then
21461 ac_header_compiler=yes
21462 else
21463 echo "$as_me: failed program was:" >&5
21464 sed 's/^/| /' conftest.$ac_ext >&5
21465
21466 ac_header_compiler=no
21467 fi
21468
21469 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21470 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21471 echo "${ECHO_T}$ac_header_compiler" >&6; }
21472
21473 # Is the header present?
21474 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21475 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21476 cat >conftest.$ac_ext <<_ACEOF
21477 /* confdefs.h. */
21478 _ACEOF
21479 cat confdefs.h >>conftest.$ac_ext
21480 cat >>conftest.$ac_ext <<_ACEOF
21481 /* end confdefs.h. */
21482 #include <netinet/in.h>
21483 _ACEOF
21484 if { (ac_try="$ac_cpp conftest.$ac_ext"
21485 case "(($ac_try" in
21486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21487 *) ac_try_echo=$ac_try;;
21488 esac
21489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21490 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21491 ac_status=$?
21492 grep -v '^ *+' conftest.er1 >conftest.err
21493 rm -f conftest.er1
21494 cat conftest.err >&5
21495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21496 (exit $ac_status); } >/dev/null && {
21497 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21498 test ! -s conftest.err
21499 }; then
21500 ac_header_preproc=yes
21501 else
21502 echo "$as_me: failed program was:" >&5
21503 sed 's/^/| /' conftest.$ac_ext >&5
21504
21505 ac_header_preproc=no
21506 fi
21507
21508 rm -f conftest.err conftest.$ac_ext
21509 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21510 echo "${ECHO_T}$ac_header_preproc" >&6; }
21511
21512 # So? What about this header?
21513 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21514 yes:no: )
21515 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21516 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21517 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21518 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21519 ac_header_preproc=yes
21520 ;;
21521 no:yes:* )
21522 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21523 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21524 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21525 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21527 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21529 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21531 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21532 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21533 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21534
21535 ;;
21536 esac
21537 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21538 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21539 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21540 echo $ECHO_N "(cached) $ECHO_C" >&6
21541 else
21542 ac_cv_header_netinet_in_h=$ac_header_preproc
21543 fi
21544 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21545 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21546
21547 fi
21548 if test $ac_cv_header_netinet_in_h = yes; then
21549 :
21550 else
21551 ok_so_far=no
21552 fi
21553
21554
21555 fi
21556 if test $ok_so_far = yes; then
21557 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21558 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21559 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21560 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21561 echo $ECHO_N "(cached) $ECHO_C" >&6
21562 fi
21563 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21564 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21565 else
21566 # Is the header compilable?
21567 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21568 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21569 cat >conftest.$ac_ext <<_ACEOF
21570 /* confdefs.h. */
21571 _ACEOF
21572 cat confdefs.h >>conftest.$ac_ext
21573 cat >>conftest.$ac_ext <<_ACEOF
21574 /* end confdefs.h. */
21575 $ac_includes_default
21576 #include <arpa/inet.h>
21577 _ACEOF
21578 rm -f conftest.$ac_objext
21579 if { (ac_try="$ac_compile"
21580 case "(($ac_try" in
21581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21582 *) ac_try_echo=$ac_try;;
21583 esac
21584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21585 (eval "$ac_compile") 2>conftest.er1
21586 ac_status=$?
21587 grep -v '^ *+' conftest.er1 >conftest.err
21588 rm -f conftest.er1
21589 cat conftest.err >&5
21590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21591 (exit $ac_status); } && {
21592 test -z "$ac_c_werror_flag" ||
21593 test ! -s conftest.err
21594 } && test -s conftest.$ac_objext; then
21595 ac_header_compiler=yes
21596 else
21597 echo "$as_me: failed program was:" >&5
21598 sed 's/^/| /' conftest.$ac_ext >&5
21599
21600 ac_header_compiler=no
21601 fi
21602
21603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21604 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21605 echo "${ECHO_T}$ac_header_compiler" >&6; }
21606
21607 # Is the header present?
21608 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21609 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21610 cat >conftest.$ac_ext <<_ACEOF
21611 /* confdefs.h. */
21612 _ACEOF
21613 cat confdefs.h >>conftest.$ac_ext
21614 cat >>conftest.$ac_ext <<_ACEOF
21615 /* end confdefs.h. */
21616 #include <arpa/inet.h>
21617 _ACEOF
21618 if { (ac_try="$ac_cpp conftest.$ac_ext"
21619 case "(($ac_try" in
21620 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21621 *) ac_try_echo=$ac_try;;
21622 esac
21623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21624 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21625 ac_status=$?
21626 grep -v '^ *+' conftest.er1 >conftest.err
21627 rm -f conftest.er1
21628 cat conftest.err >&5
21629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21630 (exit $ac_status); } >/dev/null && {
21631 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21632 test ! -s conftest.err
21633 }; then
21634 ac_header_preproc=yes
21635 else
21636 echo "$as_me: failed program was:" >&5
21637 sed 's/^/| /' conftest.$ac_ext >&5
21638
21639 ac_header_preproc=no
21640 fi
21641
21642 rm -f conftest.err conftest.$ac_ext
21643 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21644 echo "${ECHO_T}$ac_header_preproc" >&6; }
21645
21646 # So? What about this header?
21647 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21648 yes:no: )
21649 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21650 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21651 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21652 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21653 ac_header_preproc=yes
21654 ;;
21655 no:yes:* )
21656 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21657 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21658 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21659 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21660 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21661 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21662 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21663 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21664 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21665 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21666 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21667 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21668
21669 ;;
21670 esac
21671 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21672 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21673 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21674 echo $ECHO_N "(cached) $ECHO_C" >&6
21675 else
21676 ac_cv_header_arpa_inet_h=$ac_header_preproc
21677 fi
21678 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21679 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21680
21681 fi
21682 if test $ac_cv_header_arpa_inet_h = yes; then
21683 :
21684 else
21685 ok_so_far=no
21686 fi
21687
21688
21689 fi
21690 if test $ok_so_far = yes; then
21691
21692 cat >>confdefs.h <<\_ACEOF
21693 #define HAVE_INET_SOCKETS 1
21694 _ACEOF
21695
21696 fi
21697
21698
21699 for ac_header in sys/ioctl.h
21700 do
21701 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21702 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21703 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21704 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21705 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21706 echo $ECHO_N "(cached) $ECHO_C" >&6
21707 fi
21708 ac_res=`eval echo '${'$as_ac_Header'}'`
21709 { echo "$as_me:$LINENO: result: $ac_res" >&5
21710 echo "${ECHO_T}$ac_res" >&6; }
21711 else
21712 # Is the header compilable?
21713 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21714 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21715 cat >conftest.$ac_ext <<_ACEOF
21716 /* confdefs.h. */
21717 _ACEOF
21718 cat confdefs.h >>conftest.$ac_ext
21719 cat >>conftest.$ac_ext <<_ACEOF
21720 /* end confdefs.h. */
21721 $ac_includes_default
21722 #include <$ac_header>
21723 _ACEOF
21724 rm -f conftest.$ac_objext
21725 if { (ac_try="$ac_compile"
21726 case "(($ac_try" in
21727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21728 *) ac_try_echo=$ac_try;;
21729 esac
21730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21731 (eval "$ac_compile") 2>conftest.er1
21732 ac_status=$?
21733 grep -v '^ *+' conftest.er1 >conftest.err
21734 rm -f conftest.er1
21735 cat conftest.err >&5
21736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21737 (exit $ac_status); } && {
21738 test -z "$ac_c_werror_flag" ||
21739 test ! -s conftest.err
21740 } && test -s conftest.$ac_objext; then
21741 ac_header_compiler=yes
21742 else
21743 echo "$as_me: failed program was:" >&5
21744 sed 's/^/| /' conftest.$ac_ext >&5
21745
21746 ac_header_compiler=no
21747 fi
21748
21749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21750 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21751 echo "${ECHO_T}$ac_header_compiler" >&6; }
21752
21753 # Is the header present?
21754 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21755 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21756 cat >conftest.$ac_ext <<_ACEOF
21757 /* confdefs.h. */
21758 _ACEOF
21759 cat confdefs.h >>conftest.$ac_ext
21760 cat >>conftest.$ac_ext <<_ACEOF
21761 /* end confdefs.h. */
21762 #include <$ac_header>
21763 _ACEOF
21764 if { (ac_try="$ac_cpp conftest.$ac_ext"
21765 case "(($ac_try" in
21766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21767 *) ac_try_echo=$ac_try;;
21768 esac
21769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21770 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21771 ac_status=$?
21772 grep -v '^ *+' conftest.er1 >conftest.err
21773 rm -f conftest.er1
21774 cat conftest.err >&5
21775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21776 (exit $ac_status); } >/dev/null && {
21777 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21778 test ! -s conftest.err
21779 }; then
21780 ac_header_preproc=yes
21781 else
21782 echo "$as_me: failed program was:" >&5
21783 sed 's/^/| /' conftest.$ac_ext >&5
21784
21785 ac_header_preproc=no
21786 fi
21787
21788 rm -f conftest.err conftest.$ac_ext
21789 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21790 echo "${ECHO_T}$ac_header_preproc" >&6; }
21791
21792 # So? What about this header?
21793 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21794 yes:no: )
21795 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21796 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21797 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21798 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21799 ac_header_preproc=yes
21800 ;;
21801 no:yes:* )
21802 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21803 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21804 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21805 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21806 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21807 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21808 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21809 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21810 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21811 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21812 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21813 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21814
21815 ;;
21816 esac
21817 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21818 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21819 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21820 echo $ECHO_N "(cached) $ECHO_C" >&6
21821 else
21822 eval "$as_ac_Header=\$ac_header_preproc"
21823 fi
21824 ac_res=`eval echo '${'$as_ac_Header'}'`
21825 { echo "$as_me:$LINENO: result: $ac_res" >&5
21826 echo "${ECHO_T}$ac_res" >&6; }
21827
21828 fi
21829 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21830 cat >>confdefs.h <<_ACEOF
21831 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21832 _ACEOF
21833
21834 fi
21835
21836 done
21837
21838
21839 if test -f /usr/lpp/X11/bin/smt.exp; then
21840
21841 cat >>confdefs.h <<\_ACEOF
21842 #define HAVE_AIX_SMT_EXP 1
21843 _ACEOF
21844
21845 fi
21846
21847 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21848 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21849 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21850 { echo "$as_me:$LINENO: result: yes" >&5
21851 echo "${ECHO_T}yes" >&6; }
21852
21853 cat >>confdefs.h <<\_ACEOF
21854 #define HAVE_DEV_PTMX 1
21855 _ACEOF
21856
21857 else
21858 { echo "$as_me:$LINENO: result: no" >&5
21859 echo "${ECHO_T}no" >&6; }
21860 fi
21861
21862 { echo "$as_me:$LINENO: checking for pid_t" >&5
21863 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21864 if test "${ac_cv_type_pid_t+set}" = set; then
21865 echo $ECHO_N "(cached) $ECHO_C" >&6
21866 else
21867 cat >conftest.$ac_ext <<_ACEOF
21868 /* confdefs.h. */
21869 _ACEOF
21870 cat confdefs.h >>conftest.$ac_ext
21871 cat >>conftest.$ac_ext <<_ACEOF
21872 /* end confdefs.h. */
21873 $ac_includes_default
21874 typedef pid_t ac__type_new_;
21875 int
21876 main ()
21877 {
21878 if ((ac__type_new_ *) 0)
21879 return 0;
21880 if (sizeof (ac__type_new_))
21881 return 0;
21882 ;
21883 return 0;
21884 }
21885 _ACEOF
21886 rm -f conftest.$ac_objext
21887 if { (ac_try="$ac_compile"
21888 case "(($ac_try" in
21889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21890 *) ac_try_echo=$ac_try;;
21891 esac
21892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21893 (eval "$ac_compile") 2>conftest.er1
21894 ac_status=$?
21895 grep -v '^ *+' conftest.er1 >conftest.err
21896 rm -f conftest.er1
21897 cat conftest.err >&5
21898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21899 (exit $ac_status); } && {
21900 test -z "$ac_c_werror_flag" ||
21901 test ! -s conftest.err
21902 } && test -s conftest.$ac_objext; then
21903 ac_cv_type_pid_t=yes
21904 else
21905 echo "$as_me: failed program was:" >&5
21906 sed 's/^/| /' conftest.$ac_ext >&5
21907
21908 ac_cv_type_pid_t=no
21909 fi
21910
21911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21912 fi
21913 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21914 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21915 if test $ac_cv_type_pid_t = yes; then
21916 :
21917 else
21918
21919 cat >>confdefs.h <<_ACEOF
21920 #define pid_t int
21921 _ACEOF
21922
21923 fi
21924
21925
21926 for ac_header in vfork.h
21927 do
21928 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21929 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21930 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21931 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21932 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21933 echo $ECHO_N "(cached) $ECHO_C" >&6
21934 fi
21935 ac_res=`eval echo '${'$as_ac_Header'}'`
21936 { echo "$as_me:$LINENO: result: $ac_res" >&5
21937 echo "${ECHO_T}$ac_res" >&6; }
21938 else
21939 # Is the header compilable?
21940 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21941 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21942 cat >conftest.$ac_ext <<_ACEOF
21943 /* confdefs.h. */
21944 _ACEOF
21945 cat confdefs.h >>conftest.$ac_ext
21946 cat >>conftest.$ac_ext <<_ACEOF
21947 /* end confdefs.h. */
21948 $ac_includes_default
21949 #include <$ac_header>
21950 _ACEOF
21951 rm -f conftest.$ac_objext
21952 if { (ac_try="$ac_compile"
21953 case "(($ac_try" in
21954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21955 *) ac_try_echo=$ac_try;;
21956 esac
21957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21958 (eval "$ac_compile") 2>conftest.er1
21959 ac_status=$?
21960 grep -v '^ *+' conftest.er1 >conftest.err
21961 rm -f conftest.er1
21962 cat conftest.err >&5
21963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21964 (exit $ac_status); } && {
21965 test -z "$ac_c_werror_flag" ||
21966 test ! -s conftest.err
21967 } && test -s conftest.$ac_objext; then
21968 ac_header_compiler=yes
21969 else
21970 echo "$as_me: failed program was:" >&5
21971 sed 's/^/| /' conftest.$ac_ext >&5
21972
21973 ac_header_compiler=no
21974 fi
21975
21976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21977 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21978 echo "${ECHO_T}$ac_header_compiler" >&6; }
21979
21980 # Is the header present?
21981 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21982 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21983 cat >conftest.$ac_ext <<_ACEOF
21984 /* confdefs.h. */
21985 _ACEOF
21986 cat confdefs.h >>conftest.$ac_ext
21987 cat >>conftest.$ac_ext <<_ACEOF
21988 /* end confdefs.h. */
21989 #include <$ac_header>
21990 _ACEOF
21991 if { (ac_try="$ac_cpp conftest.$ac_ext"
21992 case "(($ac_try" in
21993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21994 *) ac_try_echo=$ac_try;;
21995 esac
21996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21997 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21998 ac_status=$?
21999 grep -v '^ *+' conftest.er1 >conftest.err
22000 rm -f conftest.er1
22001 cat conftest.err >&5
22002 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22003 (exit $ac_status); } >/dev/null && {
22004 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22005 test ! -s conftest.err
22006 }; then
22007 ac_header_preproc=yes
22008 else
22009 echo "$as_me: failed program was:" >&5
22010 sed 's/^/| /' conftest.$ac_ext >&5
22011
22012 ac_header_preproc=no
22013 fi
22014
22015 rm -f conftest.err conftest.$ac_ext
22016 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22017 echo "${ECHO_T}$ac_header_preproc" >&6; }
22018
22019 # So? What about this header?
22020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22021 yes:no: )
22022 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22023 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22024 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22025 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22026 ac_header_preproc=yes
22027 ;;
22028 no:yes:* )
22029 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22030 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22031 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22032 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22033 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22034 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22035 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22036 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22038 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22039 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22040 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22041
22042 ;;
22043 esac
22044 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22045 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22046 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22047 echo $ECHO_N "(cached) $ECHO_C" >&6
22048 else
22049 eval "$as_ac_Header=\$ac_header_preproc"
22050 fi
22051 ac_res=`eval echo '${'$as_ac_Header'}'`
22052 { echo "$as_me:$LINENO: result: $ac_res" >&5
22053 echo "${ECHO_T}$ac_res" >&6; }
22054
22055 fi
22056 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22057 cat >>confdefs.h <<_ACEOF
22058 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22059 _ACEOF
22060
22061 fi
22062
22063 done
22064
22065
22066
22067 for ac_func in fork vfork
22068 do
22069 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22070 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22071 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22072 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22073 echo $ECHO_N "(cached) $ECHO_C" >&6
22074 else
22075 cat >conftest.$ac_ext <<_ACEOF
22076 /* confdefs.h. */
22077 _ACEOF
22078 cat confdefs.h >>conftest.$ac_ext
22079 cat >>conftest.$ac_ext <<_ACEOF
22080 /* end confdefs.h. */
22081 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22082 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22083 #define $ac_func innocuous_$ac_func
22084
22085 /* System header to define __stub macros and hopefully few prototypes,
22086 which can conflict with char $ac_func (); below.
22087 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22088 <limits.h> exists even on freestanding compilers. */
22089
22090 #ifdef __STDC__
22091 # include <limits.h>
22092 #else
22093 # include <assert.h>
22094 #endif
22095
22096 #undef $ac_func
22097
22098 /* Override any GCC internal prototype to avoid an error.
22099 Use char because int might match the return type of a GCC
22100 builtin and then its argument prototype would still apply. */
22101 #ifdef __cplusplus
22102 extern "C"
22103 #endif
22104 char $ac_func ();
22105 /* The GNU C library defines this for functions which it implements
22106 to always fail with ENOSYS. Some functions are actually named
22107 something starting with __ and the normal name is an alias. */
22108 #if defined __stub_$ac_func || defined __stub___$ac_func
22109 choke me
22110 #endif
22111
22112 int
22113 main ()
22114 {
22115 return $ac_func ();
22116 ;
22117 return 0;
22118 }
22119 _ACEOF
22120 rm -f conftest.$ac_objext conftest$ac_exeext
22121 if { (ac_try="$ac_link"
22122 case "(($ac_try" in
22123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22124 *) ac_try_echo=$ac_try;;
22125 esac
22126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22127 (eval "$ac_link") 2>conftest.er1
22128 ac_status=$?
22129 grep -v '^ *+' conftest.er1 >conftest.err
22130 rm -f conftest.er1
22131 cat conftest.err >&5
22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22133 (exit $ac_status); } && {
22134 test -z "$ac_c_werror_flag" ||
22135 test ! -s conftest.err
22136 } && test -s conftest$ac_exeext &&
22137 $as_test_x conftest$ac_exeext; then
22138 eval "$as_ac_var=yes"
22139 else
22140 echo "$as_me: failed program was:" >&5
22141 sed 's/^/| /' conftest.$ac_ext >&5
22142
22143 eval "$as_ac_var=no"
22144 fi
22145
22146 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22147 conftest$ac_exeext conftest.$ac_ext
22148 fi
22149 ac_res=`eval echo '${'$as_ac_var'}'`
22150 { echo "$as_me:$LINENO: result: $ac_res" >&5
22151 echo "${ECHO_T}$ac_res" >&6; }
22152 if test `eval echo '${'$as_ac_var'}'` = yes; then
22153 cat >>confdefs.h <<_ACEOF
22154 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22155 _ACEOF
22156
22157 fi
22158 done
22159
22160 if test "x$ac_cv_func_fork" = xyes; then
22161 { echo "$as_me:$LINENO: checking for working fork" >&5
22162 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22163 if test "${ac_cv_func_fork_works+set}" = set; then
22164 echo $ECHO_N "(cached) $ECHO_C" >&6
22165 else
22166 if test "$cross_compiling" = yes; then
22167 ac_cv_func_fork_works=cross
22168 else
22169 cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h. */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22176 int
22177 main ()
22178 {
22179
22180 /* By Ruediger Kuhlmann. */
22181 return fork () < 0;
22182
22183 ;
22184 return 0;
22185 }
22186 _ACEOF
22187 rm -f conftest$ac_exeext
22188 if { (ac_try="$ac_link"
22189 case "(($ac_try" in
22190 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22191 *) ac_try_echo=$ac_try;;
22192 esac
22193 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22194 (eval "$ac_link") 2>&5
22195 ac_status=$?
22196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22197 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22198 { (case "(($ac_try" in
22199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22200 *) ac_try_echo=$ac_try;;
22201 esac
22202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22203 (eval "$ac_try") 2>&5
22204 ac_status=$?
22205 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22206 (exit $ac_status); }; }; then
22207 ac_cv_func_fork_works=yes
22208 else
22209 echo "$as_me: program exited with status $ac_status" >&5
22210 echo "$as_me: failed program was:" >&5
22211 sed 's/^/| /' conftest.$ac_ext >&5
22212
22213 ( exit $ac_status )
22214 ac_cv_func_fork_works=no
22215 fi
22216 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22217 fi
22218
22219
22220 fi
22221 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22222 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22223
22224 else
22225 ac_cv_func_fork_works=$ac_cv_func_fork
22226 fi
22227 if test "x$ac_cv_func_fork_works" = xcross; then
22228 case $host in
22229 *-*-amigaos* | *-*-msdosdjgpp*)
22230 # Override, as these systems have only a dummy fork() stub
22231 ac_cv_func_fork_works=no
22232 ;;
22233 *)
22234 ac_cv_func_fork_works=yes
22235 ;;
22236 esac
22237 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22238 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22239 fi
22240 ac_cv_func_vfork_works=$ac_cv_func_vfork
22241 if test "x$ac_cv_func_vfork" = xyes; then
22242 { echo "$as_me:$LINENO: checking for working vfork" >&5
22243 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22244 if test "${ac_cv_func_vfork_works+set}" = set; then
22245 echo $ECHO_N "(cached) $ECHO_C" >&6
22246 else
22247 if test "$cross_compiling" = yes; then
22248 ac_cv_func_vfork_works=cross
22249 else
22250 cat >conftest.$ac_ext <<_ACEOF
22251 /* confdefs.h. */
22252 _ACEOF
22253 cat confdefs.h >>conftest.$ac_ext
22254 cat >>conftest.$ac_ext <<_ACEOF
22255 /* end confdefs.h. */
22256 /* Thanks to Paul Eggert for this test. */
22257 $ac_includes_default
22258 #include <sys/wait.h>
22259 #ifdef HAVE_VFORK_H
22260 # include <vfork.h>
22261 #endif
22262 /* On some sparc systems, changes by the child to local and incoming
22263 argument registers are propagated back to the parent. The compiler
22264 is told about this with #include <vfork.h>, but some compilers
22265 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22266 static variable whose address is put into a register that is
22267 clobbered by the vfork. */
22268 static void
22269 #ifdef __cplusplus
22270 sparc_address_test (int arg)
22271 # else
22272 sparc_address_test (arg) int arg;
22273 #endif
22274 {
22275 static pid_t child;
22276 if (!child) {
22277 child = vfork ();
22278 if (child < 0) {
22279 perror ("vfork");
22280 _exit(2);
22281 }
22282 if (!child) {
22283 arg = getpid();
22284 write(-1, "", 0);
22285 _exit (arg);
22286 }
22287 }
22288 }
22289
22290 int
22291 main ()
22292 {
22293 pid_t parent = getpid ();
22294 pid_t child;
22295
22296 sparc_address_test (0);
22297
22298 child = vfork ();
22299
22300 if (child == 0) {
22301 /* Here is another test for sparc vfork register problems. This
22302 test uses lots of local variables, at least as many local
22303 variables as main has allocated so far including compiler
22304 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22305 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22306 reuse the register of parent for one of the local variables,
22307 since it will think that parent can't possibly be used any more
22308 in this routine. Assigning to the local variable will thus
22309 munge parent in the parent process. */
22310 pid_t
22311 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22312 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22313 /* Convince the compiler that p..p7 are live; otherwise, it might
22314 use the same hardware register for all 8 local variables. */
22315 if (p != p1 || p != p2 || p != p3 || p != p4
22316 || p != p5 || p != p6 || p != p7)
22317 _exit(1);
22318
22319 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22320 from child file descriptors. If the child closes a descriptor
22321 before it execs or exits, this munges the parent's descriptor
22322 as well. Test for this by closing stdout in the child. */
22323 _exit(close(fileno(stdout)) != 0);
22324 } else {
22325 int status;
22326 struct stat st;
22327
22328 while (wait(&status) != child)
22329 ;
22330 return (
22331 /* Was there some problem with vforking? */
22332 child < 0
22333
22334 /* Did the child fail? (This shouldn't happen.) */
22335 || status
22336
22337 /* Did the vfork/compiler bug occur? */
22338 || parent != getpid()
22339
22340 /* Did the file descriptor bug occur? */
22341 || fstat(fileno(stdout), &st) != 0
22342 );
22343 }
22344 }
22345 _ACEOF
22346 rm -f conftest$ac_exeext
22347 if { (ac_try="$ac_link"
22348 case "(($ac_try" in
22349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22350 *) ac_try_echo=$ac_try;;
22351 esac
22352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22353 (eval "$ac_link") 2>&5
22354 ac_status=$?
22355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22356 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22357 { (case "(($ac_try" in
22358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22359 *) ac_try_echo=$ac_try;;
22360 esac
22361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22362 (eval "$ac_try") 2>&5
22363 ac_status=$?
22364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22365 (exit $ac_status); }; }; then
22366 ac_cv_func_vfork_works=yes
22367 else
22368 echo "$as_me: program exited with status $ac_status" >&5
22369 echo "$as_me: failed program was:" >&5
22370 sed 's/^/| /' conftest.$ac_ext >&5
22371
22372 ( exit $ac_status )
22373 ac_cv_func_vfork_works=no
22374 fi
22375 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22376 fi
22377
22378
22379 fi
22380 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22381 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22382
22383 fi;
22384 if test "x$ac_cv_func_fork_works" = xcross; then
22385 ac_cv_func_vfork_works=$ac_cv_func_vfork
22386 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22387 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22388 fi
22389
22390 if test "x$ac_cv_func_vfork_works" = xyes; then
22391
22392 cat >>confdefs.h <<\_ACEOF
22393 #define HAVE_WORKING_VFORK 1
22394 _ACEOF
22395
22396 else
22397
22398 cat >>confdefs.h <<\_ACEOF
22399 #define vfork fork
22400 _ACEOF
22401
22402 fi
22403 if test "x$ac_cv_func_fork_works" = xyes; then
22404
22405 cat >>confdefs.h <<\_ACEOF
22406 #define HAVE_WORKING_FORK 1
22407 _ACEOF
22408
22409 fi
22410
22411
22412 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22413 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22414 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22415 echo $ECHO_N "(cached) $ECHO_C" >&6
22416 else
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 #include <langinfo.h>
22424 int
22425 main ()
22426 {
22427 char* cs = nl_langinfo(CODESET);
22428 ;
22429 return 0;
22430 }
22431 _ACEOF
22432 rm -f conftest.$ac_objext conftest$ac_exeext
22433 if { (ac_try="$ac_link"
22434 case "(($ac_try" in
22435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22436 *) ac_try_echo=$ac_try;;
22437 esac
22438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22439 (eval "$ac_link") 2>conftest.er1
22440 ac_status=$?
22441 grep -v '^ *+' conftest.er1 >conftest.err
22442 rm -f conftest.er1
22443 cat conftest.err >&5
22444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22445 (exit $ac_status); } && {
22446 test -z "$ac_c_werror_flag" ||
22447 test ! -s conftest.err
22448 } && test -s conftest$ac_exeext &&
22449 $as_test_x conftest$ac_exeext; then
22450 emacs_cv_langinfo_codeset=yes
22451 else
22452 echo "$as_me: failed program was:" >&5
22453 sed 's/^/| /' conftest.$ac_ext >&5
22454
22455 emacs_cv_langinfo_codeset=no
22456 fi
22457
22458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22459 conftest$ac_exeext conftest.$ac_ext
22460
22461 fi
22462 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22463 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22464 if test $emacs_cv_langinfo_codeset = yes; then
22465
22466 cat >>confdefs.h <<\_ACEOF
22467 #define HAVE_LANGINFO_CODESET 1
22468 _ACEOF
22469
22470 fi
22471
22472 { echo "$as_me:$LINENO: checking for size_t" >&5
22473 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22474 if test "${ac_cv_type_size_t+set}" = set; then
22475 echo $ECHO_N "(cached) $ECHO_C" >&6
22476 else
22477 cat >conftest.$ac_ext <<_ACEOF
22478 /* confdefs.h. */
22479 _ACEOF
22480 cat confdefs.h >>conftest.$ac_ext
22481 cat >>conftest.$ac_ext <<_ACEOF
22482 /* end confdefs.h. */
22483 $ac_includes_default
22484 typedef size_t ac__type_new_;
22485 int
22486 main ()
22487 {
22488 if ((ac__type_new_ *) 0)
22489 return 0;
22490 if (sizeof (ac__type_new_))
22491 return 0;
22492 ;
22493 return 0;
22494 }
22495 _ACEOF
22496 rm -f conftest.$ac_objext
22497 if { (ac_try="$ac_compile"
22498 case "(($ac_try" in
22499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22500 *) ac_try_echo=$ac_try;;
22501 esac
22502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22503 (eval "$ac_compile") 2>conftest.er1
22504 ac_status=$?
22505 grep -v '^ *+' conftest.er1 >conftest.err
22506 rm -f conftest.er1
22507 cat conftest.err >&5
22508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22509 (exit $ac_status); } && {
22510 test -z "$ac_c_werror_flag" ||
22511 test ! -s conftest.err
22512 } && test -s conftest.$ac_objext; then
22513 ac_cv_type_size_t=yes
22514 else
22515 echo "$as_me: failed program was:" >&5
22516 sed 's/^/| /' conftest.$ac_ext >&5
22517
22518 ac_cv_type_size_t=no
22519 fi
22520
22521 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22522 fi
22523 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22524 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22525 if test $ac_cv_type_size_t = yes; then
22526
22527 cat >>confdefs.h <<_ACEOF
22528 #define HAVE_SIZE_T 1
22529 _ACEOF
22530
22531
22532 fi
22533
22534
22535 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22536 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22537 if test "${ac_cv_type_mbstate_t+set}" = set; then
22538 echo $ECHO_N "(cached) $ECHO_C" >&6
22539 else
22540 cat >conftest.$ac_ext <<_ACEOF
22541 /* confdefs.h. */
22542 _ACEOF
22543 cat confdefs.h >>conftest.$ac_ext
22544 cat >>conftest.$ac_ext <<_ACEOF
22545 /* end confdefs.h. */
22546 $ac_includes_default
22547 # include <wchar.h>
22548 int
22549 main ()
22550 {
22551 mbstate_t x; return sizeof x;
22552 ;
22553 return 0;
22554 }
22555 _ACEOF
22556 rm -f conftest.$ac_objext
22557 if { (ac_try="$ac_compile"
22558 case "(($ac_try" in
22559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22560 *) ac_try_echo=$ac_try;;
22561 esac
22562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22563 (eval "$ac_compile") 2>conftest.er1
22564 ac_status=$?
22565 grep -v '^ *+' conftest.er1 >conftest.err
22566 rm -f conftest.er1
22567 cat conftest.err >&5
22568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22569 (exit $ac_status); } && {
22570 test -z "$ac_c_werror_flag" ||
22571 test ! -s conftest.err
22572 } && test -s conftest.$ac_objext; then
22573 ac_cv_type_mbstate_t=yes
22574 else
22575 echo "$as_me: failed program was:" >&5
22576 sed 's/^/| /' conftest.$ac_ext >&5
22577
22578 ac_cv_type_mbstate_t=no
22579 fi
22580
22581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22582 fi
22583 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22584 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22585 if test $ac_cv_type_mbstate_t = yes; then
22586
22587 cat >>confdefs.h <<\_ACEOF
22588 #define HAVE_MBSTATE_T 1
22589 _ACEOF
22590
22591 else
22592
22593 cat >>confdefs.h <<\_ACEOF
22594 #define mbstate_t int
22595 _ACEOF
22596
22597 fi
22598
22599 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22600 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22601 if test "${emacs_cv_c_restrict+set}" = set; then
22602 echo $ECHO_N "(cached) $ECHO_C" >&6
22603 else
22604 cat >conftest.$ac_ext <<_ACEOF
22605 /* confdefs.h. */
22606 _ACEOF
22607 cat confdefs.h >>conftest.$ac_ext
22608 cat >>conftest.$ac_ext <<_ACEOF
22609 /* end confdefs.h. */
22610 void fred (int *restrict x);
22611 int
22612 main ()
22613 {
22614
22615 ;
22616 return 0;
22617 }
22618 _ACEOF
22619 rm -f conftest.$ac_objext
22620 if { (ac_try="$ac_compile"
22621 case "(($ac_try" in
22622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22623 *) ac_try_echo=$ac_try;;
22624 esac
22625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22626 (eval "$ac_compile") 2>conftest.er1
22627 ac_status=$?
22628 grep -v '^ *+' conftest.er1 >conftest.err
22629 rm -f conftest.er1
22630 cat conftest.err >&5
22631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22632 (exit $ac_status); } && {
22633 test -z "$ac_c_werror_flag" ||
22634 test ! -s conftest.err
22635 } && test -s conftest.$ac_objext; then
22636 emacs_cv_c_restrict=yes
22637 else
22638 echo "$as_me: failed program was:" >&5
22639 sed 's/^/| /' conftest.$ac_ext >&5
22640
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 void fred (int *__restrict x);
22648 int
22649 main ()
22650 {
22651
22652 ;
22653 return 0;
22654 }
22655 _ACEOF
22656 rm -f conftest.$ac_objext
22657 if { (ac_try="$ac_compile"
22658 case "(($ac_try" in
22659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22660 *) ac_try_echo=$ac_try;;
22661 esac
22662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22663 (eval "$ac_compile") 2>conftest.er1
22664 ac_status=$?
22665 grep -v '^ *+' conftest.er1 >conftest.err
22666 rm -f conftest.er1
22667 cat conftest.err >&5
22668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22669 (exit $ac_status); } && {
22670 test -z "$ac_c_werror_flag" ||
22671 test ! -s conftest.err
22672 } && test -s conftest.$ac_objext; then
22673 emacs_cv_c_restrict=__restrict
22674 else
22675 echo "$as_me: failed program was:" >&5
22676 sed 's/^/| /' conftest.$ac_ext >&5
22677
22678 emacs_cv_c_restrict=no
22679 fi
22680
22681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22682 fi
22683
22684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22685 fi
22686 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22687 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22688 case "$emacs_cv_c_restrict" in
22689 yes) emacs_restrict=restrict;;
22690 no) emacs_restrict="";;
22691 *) emacs_restrict="$emacs_cv_c_restrict";;
22692 esac
22693 if test "$emacs_restrict" != __restrict; then
22694
22695 cat >>confdefs.h <<_ACEOF
22696 #define __restrict $emacs_restrict
22697 _ACEOF
22698
22699 fi
22700
22701 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22702 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22703 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22704 echo $ECHO_N "(cached) $ECHO_C" >&6
22705 else
22706 cat >conftest.$ac_ext <<_ACEOF
22707 /* confdefs.h. */
22708 _ACEOF
22709 cat confdefs.h >>conftest.$ac_ext
22710 cat >>conftest.$ac_ext <<_ACEOF
22711 /* end confdefs.h. */
22712 void fred (int x[__restrict]);
22713 int
22714 main ()
22715 {
22716
22717 ;
22718 return 0;
22719 }
22720 _ACEOF
22721 rm -f conftest.$ac_objext
22722 if { (ac_try="$ac_compile"
22723 case "(($ac_try" in
22724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22725 *) ac_try_echo=$ac_try;;
22726 esac
22727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22728 (eval "$ac_compile") 2>conftest.er1
22729 ac_status=$?
22730 grep -v '^ *+' conftest.er1 >conftest.err
22731 rm -f conftest.er1
22732 cat conftest.err >&5
22733 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22734 (exit $ac_status); } && {
22735 test -z "$ac_c_werror_flag" ||
22736 test ! -s conftest.err
22737 } && test -s conftest.$ac_objext; then
22738 emacs_cv_c_restrict_arr=yes
22739 else
22740 echo "$as_me: failed program was:" >&5
22741 sed 's/^/| /' conftest.$ac_ext >&5
22742
22743 emacs_cv_c_restrict_arr=no
22744 fi
22745
22746 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22747 fi
22748 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22749 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22750 if test "$emacs_cv_c_restrict_arr" = yes; then
22751
22752 cat >>confdefs.h <<\_ACEOF
22753 #define __restrict_arr __restrict
22754 _ACEOF
22755
22756 fi
22757
22758
22759
22760 # Set up the CFLAGS for real compilation, so we can substitute it.
22761 CFLAGS="$REAL_CFLAGS"
22762 CPPFLAGS="$REAL_CPPFLAGS"
22763
22764 #### Find out which version of Emacs this is.
22765 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22766 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22767 if test x"${version}" = x; then
22768 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22769 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22770 { (exit 1); exit 1; }; }
22771 fi
22772
22773 ### Specify what sort of things we'll be editing into Makefile and config.h.
22774 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22775
22776
22777
22778
22779
22780
22781
22782
22783
22784
22785
22786
22787
22788
22789
22790
22791
22792
22793
22794
22795
22796
22797
22798
22799
22800
22801
22802
22803
22804
22805
22806
22807
22808
22809
22810 cat >>confdefs.h <<_ACEOF
22811 #define EMACS_CONFIGURATION "${canonical}"
22812 _ACEOF
22813
22814
22815 cat >>confdefs.h <<_ACEOF
22816 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22817 _ACEOF
22818
22819
22820 cat >>confdefs.h <<_ACEOF
22821 #define config_machfile "${machfile}"
22822 _ACEOF
22823
22824
22825 cat >>confdefs.h <<_ACEOF
22826 #define config_opsysfile "${opsysfile}"
22827 _ACEOF
22828
22829
22830 cat >>confdefs.h <<_ACEOF
22831 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22832 _ACEOF
22833
22834
22835 cat >>confdefs.h <<_ACEOF
22836 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22837 _ACEOF
22838
22839
22840 cat >>confdefs.h <<_ACEOF
22841 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22842 _ACEOF
22843
22844
22845 cat >>confdefs.h <<_ACEOF
22846 #define UNEXEC_SRC ${UNEXEC_SRC}
22847 _ACEOF
22848
22849
22850 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22851
22852 cat >>confdefs.h <<\_ACEOF
22853 #define HAVE_X_WINDOWS 1
22854 _ACEOF
22855
22856 fi
22857 if test "${USE_X_TOOLKIT}" != "none" ; then
22858
22859 cat >>confdefs.h <<\_ACEOF
22860 #define USE_X_TOOLKIT 1
22861 _ACEOF
22862
22863 fi
22864 if test "${HAVE_X11}" = "yes" ; then
22865
22866 cat >>confdefs.h <<\_ACEOF
22867 #define HAVE_X11 1
22868 _ACEOF
22869
22870 fi
22871 if test "${HAVE_XFREE386}" = "yes" ; then
22872
22873 cat >>confdefs.h <<\_ACEOF
22874 #define HAVE_XFREE386 1
22875 _ACEOF
22876
22877 fi
22878 if test "${HAVE_MENUS}" = "yes" ; then
22879
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_MENUS 1
22882 _ACEOF
22883
22884 fi
22885 if test "${GNU_MALLOC}" = "yes" ; then
22886
22887 cat >>confdefs.h <<\_ACEOF
22888 #define GNU_MALLOC 1
22889 _ACEOF
22890
22891 fi
22892 if test "${REL_ALLOC}" = "yes" ; then
22893
22894 cat >>confdefs.h <<\_ACEOF
22895 #define REL_ALLOC 1
22896 _ACEOF
22897
22898 fi
22899
22900
22901
22902
22903
22904 #### Report on what we decided to do.
22905 #### Report GTK as a toolkit, even if it doesn't use Xt.
22906 #### It makes printing result more understandable as using GTK sets
22907 #### toolkit_scroll_bars to yes by default.
22908 if test "${HAVE_GTK}" = "yes"; then
22909 USE_X_TOOLKIT=GTK
22910 fi
22911
22912 echo "
22913 Configured for \`${canonical}'.
22914
22915 Where should the build process find the source code? ${srcdir}
22916 What operating system and machine description files should Emacs use?
22917 \`${opsysfile}' and \`${machfile}'
22918 What compiler should emacs be built with? ${CC} ${CFLAGS}
22919 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22920 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22921 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22922 What window system should Emacs use? ${window_system}
22923 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22924
22925 if test -n "${x_includes}"; then
22926 echo " Where do we find X Windows header files? ${x_includes}"
22927 else
22928 echo " Where do we find X Windows header files? Standard dirs"
22929 fi
22930 if test -n "${x_libraries}"; then
22931 echo " Where do we find X Windows libraries? ${x_libraries}"
22932 else
22933 echo " Where do we find X Windows libraries? Standard dirs"
22934 fi
22935
22936 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22937 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22938 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22939 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22940 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22941 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22942 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22943 echo
22944
22945 if test $USE_XASSERTS = yes; then
22946 echo " Compiling with asserts turned on."
22947 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22948 echo
22949 fi
22950
22951
22952
22953 # Remove any trailing slashes in these variables.
22954 test "${prefix}" != NONE &&
22955 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22956 test "${exec_prefix}" != NONE &&
22957 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22958
22959 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22960 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22961 ## from Makefile.c can correctly provide the arg `-traditional' to the
22962 ## C preprocessor.
22963
22964 cat >conftest.$ac_ext <<_ACEOF
22965 /* confdefs.h. */
22966 _ACEOF
22967 cat confdefs.h >>conftest.$ac_ext
22968 cat >>conftest.$ac_ext <<_ACEOF
22969 /* end confdefs.h. */
22970 yes..yes
22971 _ACEOF
22972 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22973 $EGREP "yes..yes" >/dev/null 2>&1; then
22974 CPP_NEED_TRADITIONAL=no
22975 else
22976 CPP_NEED_TRADITIONAL=yes
22977 fi
22978 rm -f conftest*
22979
22980
22981 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"
22982
22983 ac_config_commands="$ac_config_commands default"
22984
22985 cat >confcache <<\_ACEOF
22986 # This file is a shell script that caches the results of configure
22987 # tests run on this system so they can be shared between configure
22988 # scripts and configure runs, see configure's option --config-cache.
22989 # It is not useful on other systems. If it contains results you don't
22990 # want to keep, you may remove or edit it.
22991 #
22992 # config.status only pays attention to the cache file if you give it
22993 # the --recheck option to rerun configure.
22994 #
22995 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22996 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22997 # following values.
22998
22999 _ACEOF
23000
23001 # The following way of writing the cache mishandles newlines in values,
23002 # but we know of no workaround that is simple, portable, and efficient.
23003 # So, we kill variables containing newlines.
23004 # Ultrix sh set writes to stderr and can't be redirected directly,
23005 # and sets the high bit in the cache file unless we assign to the vars.
23006 (
23007 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23008 eval ac_val=\$$ac_var
23009 case $ac_val in #(
23010 *${as_nl}*)
23011 case $ac_var in #(
23012 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23013 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23014 esac
23015 case $ac_var in #(
23016 _ | IFS | as_nl) ;; #(
23017 *) $as_unset $ac_var ;;
23018 esac ;;
23019 esac
23020 done
23021
23022 (set) 2>&1 |
23023 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23024 *${as_nl}ac_space=\ *)
23025 # `set' does not quote correctly, so add quotes (double-quote
23026 # substitution turns \\\\ into \\, and sed turns \\ into \).
23027 sed -n \
23028 "s/'/'\\\\''/g;
23029 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23030 ;; #(
23031 *)
23032 # `set' quotes correctly as required by POSIX, so do not add quotes.
23033 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23034 ;;
23035 esac |
23036 sort
23037 ) |
23038 sed '
23039 /^ac_cv_env_/b end
23040 t clear
23041 :clear
23042 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23043 t end
23044 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23045 :end' >>confcache
23046 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23047 if test -w "$cache_file"; then
23048 test "x$cache_file" != "x/dev/null" &&
23049 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23050 echo "$as_me: updating cache $cache_file" >&6;}
23051 cat confcache >$cache_file
23052 else
23053 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23054 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23055 fi
23056 fi
23057 rm -f confcache
23058
23059 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23060 # Let make expand exec_prefix.
23061 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23062
23063 DEFS=-DHAVE_CONFIG_H
23064
23065 ac_libobjs=
23066 ac_ltlibobjs=
23067 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23068 # 1. Remove the extension, and $U if already installed.
23069 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23070 ac_i=`echo "$ac_i" | sed "$ac_script"`
23071 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23072 # will be set to the directory where LIBOBJS objects are built.
23073 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23074 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23075 done
23076 LIBOBJS=$ac_libobjs
23077
23078 LTLIBOBJS=$ac_ltlibobjs
23079
23080
23081
23082 : ${CONFIG_STATUS=./config.status}
23083 ac_clean_files_save=$ac_clean_files
23084 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23085 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23086 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23087 cat >$CONFIG_STATUS <<_ACEOF
23088 #! $SHELL
23089 # Generated by $as_me.
23090 # Run this file to recreate the current configuration.
23091 # Compiler output produced by configure, useful for debugging
23092 # configure, is in config.log if it exists.
23093
23094 debug=false
23095 ac_cs_recheck=false
23096 ac_cs_silent=false
23097 SHELL=\${CONFIG_SHELL-$SHELL}
23098 _ACEOF
23099
23100 cat >>$CONFIG_STATUS <<\_ACEOF
23101 ## --------------------- ##
23102 ## M4sh Initialization. ##
23103 ## --------------------- ##
23104
23105 # Be more Bourne compatible
23106 DUALCASE=1; export DUALCASE # for MKS sh
23107 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23108 emulate sh
23109 NULLCMD=:
23110 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23111 # is contrary to our usage. Disable this feature.
23112 alias -g '${1+"$@"}'='"$@"'
23113 setopt NO_GLOB_SUBST
23114 else
23115 case `(set -o) 2>/dev/null` in
23116 *posix*) set -o posix ;;
23117 esac
23118
23119 fi
23120
23121
23122
23123
23124 # PATH needs CR
23125 # Avoid depending upon Character Ranges.
23126 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23127 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23128 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23129 as_cr_digits='0123456789'
23130 as_cr_alnum=$as_cr_Letters$as_cr_digits
23131
23132 # The user is always right.
23133 if test "${PATH_SEPARATOR+set}" != set; then
23134 echo "#! /bin/sh" >conf$$.sh
23135 echo "exit 0" >>conf$$.sh
23136 chmod +x conf$$.sh
23137 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23138 PATH_SEPARATOR=';'
23139 else
23140 PATH_SEPARATOR=:
23141 fi
23142 rm -f conf$$.sh
23143 fi
23144
23145 # Support unset when possible.
23146 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23147 as_unset=unset
23148 else
23149 as_unset=false
23150 fi
23151
23152
23153 # IFS
23154 # We need space, tab and new line, in precisely that order. Quoting is
23155 # there to prevent editors from complaining about space-tab.
23156 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23157 # splitting by setting IFS to empty value.)
23158 as_nl='
23159 '
23160 IFS=" "" $as_nl"
23161
23162 # Find who we are. Look in the path if we contain no directory separator.
23163 case $0 in
23164 *[\\/]* ) as_myself=$0 ;;
23165 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23166 for as_dir in $PATH
23167 do
23168 IFS=$as_save_IFS
23169 test -z "$as_dir" && as_dir=.
23170 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23171 done
23172 IFS=$as_save_IFS
23173
23174 ;;
23175 esac
23176 # We did not find ourselves, most probably we were run as `sh COMMAND'
23177 # in which case we are not to be found in the path.
23178 if test "x$as_myself" = x; then
23179 as_myself=$0
23180 fi
23181 if test ! -f "$as_myself"; then
23182 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23183 { (exit 1); exit 1; }
23184 fi
23185
23186 # Work around bugs in pre-3.0 UWIN ksh.
23187 for as_var in ENV MAIL MAILPATH
23188 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23189 done
23190 PS1='$ '
23191 PS2='> '
23192 PS4='+ '
23193
23194 # NLS nuisances.
23195 for as_var in \
23196 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23197 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23198 LC_TELEPHONE LC_TIME
23199 do
23200 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23201 eval $as_var=C; export $as_var
23202 else
23203 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23204 fi
23205 done
23206
23207 # Required to use basename.
23208 if expr a : '\(a\)' >/dev/null 2>&1 &&
23209 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23210 as_expr=expr
23211 else
23212 as_expr=false
23213 fi
23214
23215 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23216 as_basename=basename
23217 else
23218 as_basename=false
23219 fi
23220
23221
23222 # Name of the executable.
23223 as_me=`$as_basename -- "$0" ||
23224 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23225 X"$0" : 'X\(//\)$' \| \
23226 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23227 echo X/"$0" |
23228 sed '/^.*\/\([^/][^/]*\)\/*$/{
23229 s//\1/
23230 q
23231 }
23232 /^X\/\(\/\/\)$/{
23233 s//\1/
23234 q
23235 }
23236 /^X\/\(\/\).*/{
23237 s//\1/
23238 q
23239 }
23240 s/.*/./; q'`
23241
23242 # CDPATH.
23243 $as_unset CDPATH
23244
23245
23246
23247 as_lineno_1=$LINENO
23248 as_lineno_2=$LINENO
23249 test "x$as_lineno_1" != "x$as_lineno_2" &&
23250 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23251
23252 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23253 # uniformly replaced by the line number. The first 'sed' inserts a
23254 # line-number line after each line using $LINENO; the second 'sed'
23255 # does the real work. The second script uses 'N' to pair each
23256 # line-number line with the line containing $LINENO, and appends
23257 # trailing '-' during substitution so that $LINENO is not a special
23258 # case at line end.
23259 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23260 # scripts with optimization help from Paolo Bonzini. Blame Lee
23261 # E. McMahon (1931-1989) for sed's syntax. :-)
23262 sed -n '
23263 p
23264 /[$]LINENO/=
23265 ' <$as_myself |
23266 sed '
23267 s/[$]LINENO.*/&-/
23268 t lineno
23269 b
23270 :lineno
23271 N
23272 :loop
23273 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23274 t loop
23275 s/-\n.*//
23276 ' >$as_me.lineno &&
23277 chmod +x "$as_me.lineno" ||
23278 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23279 { (exit 1); exit 1; }; }
23280
23281 # Don't try to exec as it changes $[0], causing all sort of problems
23282 # (the dirname of $[0] is not the place where we might find the
23283 # original and so on. Autoconf is especially sensitive to this).
23284 . "./$as_me.lineno"
23285 # Exit status is that of the last command.
23286 exit
23287 }
23288
23289
23290 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23291 as_dirname=dirname
23292 else
23293 as_dirname=false
23294 fi
23295
23296 ECHO_C= ECHO_N= ECHO_T=
23297 case `echo -n x` in
23298 -n*)
23299 case `echo 'x\c'` in
23300 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23301 *) ECHO_C='\c';;
23302 esac;;
23303 *)
23304 ECHO_N='-n';;
23305 esac
23306
23307 if expr a : '\(a\)' >/dev/null 2>&1 &&
23308 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23309 as_expr=expr
23310 else
23311 as_expr=false
23312 fi
23313
23314 rm -f conf$$ conf$$.exe conf$$.file
23315 if test -d conf$$.dir; then
23316 rm -f conf$$.dir/conf$$.file
23317 else
23318 rm -f conf$$.dir
23319 mkdir conf$$.dir
23320 fi
23321 echo >conf$$.file
23322 if ln -s conf$$.file conf$$ 2>/dev/null; then
23323 as_ln_s='ln -s'
23324 # ... but there are two gotchas:
23325 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23326 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23327 # In both cases, we have to default to `cp -p'.
23328 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23329 as_ln_s='cp -p'
23330 elif ln conf$$.file conf$$ 2>/dev/null; then
23331 as_ln_s=ln
23332 else
23333 as_ln_s='cp -p'
23334 fi
23335 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23336 rmdir conf$$.dir 2>/dev/null
23337
23338 if mkdir -p . 2>/dev/null; then
23339 as_mkdir_p=:
23340 else
23341 test -d ./-p && rmdir ./-p
23342 as_mkdir_p=false
23343 fi
23344
23345 if test -x / >/dev/null 2>&1; then
23346 as_test_x='test -x'
23347 else
23348 if ls -dL / >/dev/null 2>&1; then
23349 as_ls_L_option=L
23350 else
23351 as_ls_L_option=
23352 fi
23353 as_test_x='
23354 eval sh -c '\''
23355 if test -d "$1"; then
23356 test -d "$1/.";
23357 else
23358 case $1 in
23359 -*)set "./$1";;
23360 esac;
23361 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23362 ???[sx]*):;;*)false;;esac;fi
23363 '\'' sh
23364 '
23365 fi
23366 as_executable_p=$as_test_x
23367
23368 # Sed expression to map a string onto a valid CPP name.
23369 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23370
23371 # Sed expression to map a string onto a valid variable name.
23372 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23373
23374
23375 exec 6>&1
23376
23377 # Save the log message, to keep $[0] and so on meaningful, and to
23378 # report actual input values of CONFIG_FILES etc. instead of their
23379 # values after options handling.
23380 ac_log="
23381 This file was extended by $as_me, which was
23382 generated by GNU Autoconf 2.61. Invocation command line was
23383
23384 CONFIG_FILES = $CONFIG_FILES
23385 CONFIG_HEADERS = $CONFIG_HEADERS
23386 CONFIG_LINKS = $CONFIG_LINKS
23387 CONFIG_COMMANDS = $CONFIG_COMMANDS
23388 $ $0 $@
23389
23390 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23391 "
23392
23393 _ACEOF
23394
23395 cat >>$CONFIG_STATUS <<_ACEOF
23396 # Files that config.status was made for.
23397 config_files="$ac_config_files"
23398 config_headers="$ac_config_headers"
23399 config_commands="$ac_config_commands"
23400
23401 _ACEOF
23402
23403 cat >>$CONFIG_STATUS <<\_ACEOF
23404 ac_cs_usage="\
23405 \`$as_me' instantiates files from templates according to the
23406 current configuration.
23407
23408 Usage: $0 [OPTIONS] [FILE]...
23409
23410 -h, --help print this help, then exit
23411 -V, --version print version number and configuration settings, then exit
23412 -q, --quiet do not print progress messages
23413 -d, --debug don't remove temporary files
23414 --recheck update $as_me by reconfiguring in the same conditions
23415 --file=FILE[:TEMPLATE]
23416 instantiate the configuration file FILE
23417 --header=FILE[:TEMPLATE]
23418 instantiate the configuration header FILE
23419
23420 Configuration files:
23421 $config_files
23422
23423 Configuration headers:
23424 $config_headers
23425
23426 Configuration commands:
23427 $config_commands
23428
23429 Report bugs to <bug-autoconf@gnu.org>."
23430
23431 _ACEOF
23432 cat >>$CONFIG_STATUS <<_ACEOF
23433 ac_cs_version="\\
23434 config.status
23435 configured by $0, generated by GNU Autoconf 2.61,
23436 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23437
23438 Copyright (C) 2006 Free Software Foundation, Inc.
23439 This config.status script is free software; the Free Software Foundation
23440 gives unlimited permission to copy, distribute and modify it."
23441
23442 ac_pwd='$ac_pwd'
23443 srcdir='$srcdir'
23444 INSTALL='$INSTALL'
23445 _ACEOF
23446
23447 cat >>$CONFIG_STATUS <<\_ACEOF
23448 # If no file are specified by the user, then we need to provide default
23449 # value. By we need to know if files were specified by the user.
23450 ac_need_defaults=:
23451 while test $# != 0
23452 do
23453 case $1 in
23454 --*=*)
23455 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23456 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23457 ac_shift=:
23458 ;;
23459 *)
23460 ac_option=$1
23461 ac_optarg=$2
23462 ac_shift=shift
23463 ;;
23464 esac
23465
23466 case $ac_option in
23467 # Handling of the options.
23468 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23469 ac_cs_recheck=: ;;
23470 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23471 echo "$ac_cs_version"; exit ;;
23472 --debug | --debu | --deb | --de | --d | -d )
23473 debug=: ;;
23474 --file | --fil | --fi | --f )
23475 $ac_shift
23476 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23477 ac_need_defaults=false;;
23478 --header | --heade | --head | --hea )
23479 $ac_shift
23480 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23481 ac_need_defaults=false;;
23482 --he | --h)
23483 # Conflict between --help and --header
23484 { echo "$as_me: error: ambiguous option: $1
23485 Try \`$0 --help' for more information." >&2
23486 { (exit 1); exit 1; }; };;
23487 --help | --hel | -h )
23488 echo "$ac_cs_usage"; exit ;;
23489 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23490 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23491 ac_cs_silent=: ;;
23492
23493 # This is an error.
23494 -*) { echo "$as_me: error: unrecognized option: $1
23495 Try \`$0 --help' for more information." >&2
23496 { (exit 1); exit 1; }; } ;;
23497
23498 *) ac_config_targets="$ac_config_targets $1"
23499 ac_need_defaults=false ;;
23500
23501 esac
23502 shift
23503 done
23504
23505 ac_configure_extra_args=
23506
23507 if $ac_cs_silent; then
23508 exec 6>/dev/null
23509 ac_configure_extra_args="$ac_configure_extra_args --silent"
23510 fi
23511
23512 _ACEOF
23513 cat >>$CONFIG_STATUS <<_ACEOF
23514 if \$ac_cs_recheck; then
23515 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23516 CONFIG_SHELL=$SHELL
23517 export CONFIG_SHELL
23518 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23519 fi
23520
23521 _ACEOF
23522 cat >>$CONFIG_STATUS <<\_ACEOF
23523 exec 5>>config.log
23524 {
23525 echo
23526 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23527 ## Running $as_me. ##
23528 _ASBOX
23529 echo "$ac_log"
23530 } >&5
23531
23532 _ACEOF
23533 cat >>$CONFIG_STATUS <<_ACEOF
23534 #
23535 # INIT-COMMANDS
23536 #
23537 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23538
23539 _ACEOF
23540
23541 cat >>$CONFIG_STATUS <<\_ACEOF
23542
23543 # Handling of arguments.
23544 for ac_config_target in $ac_config_targets
23545 do
23546 case $ac_config_target in
23547 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23548 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23549 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23550 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23551 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23552 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23553 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23554 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23555 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23556 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23557 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23558 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23559
23560 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23561 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23562 { (exit 1); exit 1; }; };;
23563 esac
23564 done
23565
23566
23567 # If the user did not use the arguments to specify the items to instantiate,
23568 # then the envvar interface is used. Set only those that are not.
23569 # We use the long form for the default assignment because of an extremely
23570 # bizarre bug on SunOS 4.1.3.
23571 if $ac_need_defaults; then
23572 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23573 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23574 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23575 fi
23576
23577 # Have a temporary directory for convenience. Make it in the build tree
23578 # simply because there is no reason against having it here, and in addition,
23579 # creating and moving files from /tmp can sometimes cause problems.
23580 # Hook for its removal unless debugging.
23581 # Note that there is a small window in which the directory will not be cleaned:
23582 # after its creation but before its name has been assigned to `$tmp'.
23583 $debug ||
23584 {
23585 tmp=
23586 trap 'exit_status=$?
23587 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23588 ' 0
23589 trap '{ (exit 1); exit 1; }' 1 2 13 15
23590 }
23591 # Create a (secure) tmp directory for tmp files.
23592
23593 {
23594 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23595 test -n "$tmp" && test -d "$tmp"
23596 } ||
23597 {
23598 tmp=./conf$$-$RANDOM
23599 (umask 077 && mkdir "$tmp")
23600 } ||
23601 {
23602 echo "$me: cannot create a temporary directory in ." >&2
23603 { (exit 1); exit 1; }
23604 }
23605
23606 #
23607 # Set up the sed scripts for CONFIG_FILES section.
23608 #
23609
23610 # No need to generate the scripts if there are no CONFIG_FILES.
23611 # This happens for instance when ./config.status config.h
23612 if test -n "$CONFIG_FILES"; then
23613
23614 _ACEOF
23615
23616
23617
23618 ac_delim='%!_!# '
23619 for ac_last_try in false false false false false :; do
23620 cat >conf$$subs.sed <<_ACEOF
23621 SHELL!$SHELL$ac_delim
23622 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23623 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23624 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23625 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23626 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23627 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23628 exec_prefix!$exec_prefix$ac_delim
23629 prefix!$prefix$ac_delim
23630 program_transform_name!$program_transform_name$ac_delim
23631 bindir!$bindir$ac_delim
23632 sbindir!$sbindir$ac_delim
23633 libexecdir!$libexecdir$ac_delim
23634 datarootdir!$datarootdir$ac_delim
23635 datadir!$datadir$ac_delim
23636 sysconfdir!$sysconfdir$ac_delim
23637 sharedstatedir!$sharedstatedir$ac_delim
23638 localstatedir!$localstatedir$ac_delim
23639 includedir!$includedir$ac_delim
23640 oldincludedir!$oldincludedir$ac_delim
23641 docdir!$docdir$ac_delim
23642 infodir!$infodir$ac_delim
23643 htmldir!$htmldir$ac_delim
23644 dvidir!$dvidir$ac_delim
23645 pdfdir!$pdfdir$ac_delim
23646 psdir!$psdir$ac_delim
23647 libdir!$libdir$ac_delim
23648 localedir!$localedir$ac_delim
23649 mandir!$mandir$ac_delim
23650 DEFS!$DEFS$ac_delim
23651 ECHO_C!$ECHO_C$ac_delim
23652 ECHO_N!$ECHO_N$ac_delim
23653 ECHO_T!$ECHO_T$ac_delim
23654 LIBS!$LIBS$ac_delim
23655 build_alias!$build_alias$ac_delim
23656 host_alias!$host_alias$ac_delim
23657 target_alias!$target_alias$ac_delim
23658 MAINT!$MAINT$ac_delim
23659 build!$build$ac_delim
23660 build_cpu!$build_cpu$ac_delim
23661 build_vendor!$build_vendor$ac_delim
23662 build_os!$build_os$ac_delim
23663 host!$host$ac_delim
23664 host_cpu!$host_cpu$ac_delim
23665 host_vendor!$host_vendor$ac_delim
23666 host_os!$host_os$ac_delim
23667 CC!$CC$ac_delim
23668 CFLAGS!$CFLAGS$ac_delim
23669 LDFLAGS!$LDFLAGS$ac_delim
23670 CPPFLAGS!$CPPFLAGS$ac_delim
23671 ac_ct_CC!$ac_ct_CC$ac_delim
23672 EXEEXT!$EXEEXT$ac_delim
23673 OBJEXT!$OBJEXT$ac_delim
23674 CPP!$CPP$ac_delim
23675 GREP!$GREP$ac_delim
23676 EGREP!$EGREP$ac_delim
23677 LN_S!$LN_S$ac_delim
23678 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23679 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23680 INSTALL_DATA!$INSTALL_DATA$ac_delim
23681 RANLIB!$RANLIB$ac_delim
23682 INSTALL_INFO!$INSTALL_INFO$ac_delim
23683 GZIP_PROG!$GZIP_PROG$ac_delim
23684 LIBSOUND!$LIBSOUND$ac_delim
23685 PKG_CONFIG!$PKG_CONFIG$ac_delim
23686 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23687 ALSA_LIBS!$ALSA_LIBS$ac_delim
23688 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23689 SET_MAKE!$SET_MAKE$ac_delim
23690 XMKMF!$XMKMF$ac_delim
23691 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23692 GTK_LIBS!$GTK_LIBS$ac_delim
23693 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23694 XFT_LIBS!$XFT_LIBS$ac_delim
23695 ALLOCA!$ALLOCA$ac_delim
23696 liblockfile!$liblockfile$ac_delim
23697 LIBOBJS!$LIBOBJS$ac_delim
23698 NEED_SETGID!$NEED_SETGID$ac_delim
23699 KMEM_GROUP!$KMEM_GROUP$ac_delim
23700 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23701 GETOPT_H!$GETOPT_H$ac_delim
23702 GETOPTOBJS!$GETOPTOBJS$ac_delim
23703 version!$version$ac_delim
23704 configuration!$configuration$ac_delim
23705 canonical!$canonical$ac_delim
23706 srcdir!$srcdir$ac_delim
23707 lispdir!$lispdir$ac_delim
23708 locallisppath!$locallisppath$ac_delim
23709 lisppath!$lisppath$ac_delim
23710 x_default_search_path!$x_default_search_path$ac_delim
23711 etcdir!$etcdir$ac_delim
23712 archlibdir!$archlibdir$ac_delim
23713 bitmapdir!$bitmapdir$ac_delim
23714 gamedir!$gamedir$ac_delim
23715 gameuser!$gameuser$ac_delim
23716 c_switch_system!$c_switch_system$ac_delim
23717 c_switch_machine!$c_switch_machine$ac_delim
23718 _ACEOF
23719
23720 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23721 break
23722 elif $ac_last_try; then
23723 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23724 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23725 { (exit 1); exit 1; }; }
23726 else
23727 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23728 fi
23729 done
23730
23731 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23732 if test -n "$ac_eof"; then
23733 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23734 ac_eof=`expr $ac_eof + 1`
23735 fi
23736
23737 cat >>$CONFIG_STATUS <<_ACEOF
23738 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23739 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23740 _ACEOF
23741 sed '
23742 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23743 s/^/s,@/; s/!/@,|#_!!_#|/
23744 :n
23745 t n
23746 s/'"$ac_delim"'$/,g/; t
23747 s/$/\\/; p
23748 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23749 ' >>$CONFIG_STATUS <conf$$subs.sed
23750 rm -f conf$$subs.sed
23751 cat >>$CONFIG_STATUS <<_ACEOF
23752 CEOF$ac_eof
23753 _ACEOF
23754
23755
23756 ac_delim='%!_!# '
23757 for ac_last_try in false false false false false :; do
23758 cat >conf$$subs.sed <<_ACEOF
23759 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23760 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23761 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23762 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23763 machfile!$machfile$ac_delim
23764 opsysfile!$opsysfile$ac_delim
23765 carbon_appdir!$carbon_appdir$ac_delim
23766 LTLIBOBJS!$LTLIBOBJS$ac_delim
23767 _ACEOF
23768
23769 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23770 break
23771 elif $ac_last_try; then
23772 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23773 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23774 { (exit 1); exit 1; }; }
23775 else
23776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23777 fi
23778 done
23779
23780 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23781 if test -n "$ac_eof"; then
23782 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23783 ac_eof=`expr $ac_eof + 1`
23784 fi
23785
23786 cat >>$CONFIG_STATUS <<_ACEOF
23787 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23788 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23789 _ACEOF
23790 sed '
23791 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23792 s/^/s,@/; s/!/@,|#_!!_#|/
23793 :n
23794 t n
23795 s/'"$ac_delim"'$/,g/; t
23796 s/$/\\/; p
23797 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23798 ' >>$CONFIG_STATUS <conf$$subs.sed
23799 rm -f conf$$subs.sed
23800 cat >>$CONFIG_STATUS <<_ACEOF
23801 :end
23802 s/|#_!!_#|//g
23803 CEOF$ac_eof
23804 _ACEOF
23805
23806
23807 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23808 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23809 # trailing colons and then remove the whole line if VPATH becomes empty
23810 # (actually we leave an empty line to preserve line numbers).
23811 if test "x$srcdir" = x.; then
23812 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23813 s/:*\$(srcdir):*/:/
23814 s/:*\${srcdir}:*/:/
23815 s/:*@srcdir@:*/:/
23816 s/^\([^=]*=[ ]*\):*/\1/
23817 s/:*$//
23818 s/^[^=]*=[ ]*$//
23819 }'
23820 fi
23821
23822 cat >>$CONFIG_STATUS <<\_ACEOF
23823 fi # test -n "$CONFIG_FILES"
23824
23825
23826 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23827 do
23828 case $ac_tag in
23829 :[FHLC]) ac_mode=$ac_tag; continue;;
23830 esac
23831 case $ac_mode$ac_tag in
23832 :[FHL]*:*);;
23833 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23834 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23835 { (exit 1); exit 1; }; };;
23836 :[FH]-) ac_tag=-:-;;
23837 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23838 esac
23839 ac_save_IFS=$IFS
23840 IFS=:
23841 set x $ac_tag
23842 IFS=$ac_save_IFS
23843 shift
23844 ac_file=$1
23845 shift
23846
23847 case $ac_mode in
23848 :L) ac_source=$1;;
23849 :[FH])
23850 ac_file_inputs=
23851 for ac_f
23852 do
23853 case $ac_f in
23854 -) ac_f="$tmp/stdin";;
23855 *) # Look for the file first in the build tree, then in the source tree
23856 # (if the path is not absolute). The absolute path cannot be DOS-style,
23857 # because $ac_f cannot contain `:'.
23858 test -f "$ac_f" ||
23859 case $ac_f in
23860 [\\/$]*) false;;
23861 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23862 esac ||
23863 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23864 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23865 { (exit 1); exit 1; }; };;
23866 esac
23867 ac_file_inputs="$ac_file_inputs $ac_f"
23868 done
23869
23870 # Let's still pretend it is `configure' which instantiates (i.e., don't
23871 # use $as_me), people would be surprised to read:
23872 # /* config.h. Generated by config.status. */
23873 configure_input="Generated from "`IFS=:
23874 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23875 if test x"$ac_file" != x-; then
23876 configure_input="$ac_file. $configure_input"
23877 { echo "$as_me:$LINENO: creating $ac_file" >&5
23878 echo "$as_me: creating $ac_file" >&6;}
23879 fi
23880
23881 case $ac_tag in
23882 *:-:* | *:-) cat >"$tmp/stdin";;
23883 esac
23884 ;;
23885 esac
23886
23887 ac_dir=`$as_dirname -- "$ac_file" ||
23888 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23889 X"$ac_file" : 'X\(//\)[^/]' \| \
23890 X"$ac_file" : 'X\(//\)$' \| \
23891 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23892 echo X"$ac_file" |
23893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23894 s//\1/
23895 q
23896 }
23897 /^X\(\/\/\)[^/].*/{
23898 s//\1/
23899 q
23900 }
23901 /^X\(\/\/\)$/{
23902 s//\1/
23903 q
23904 }
23905 /^X\(\/\).*/{
23906 s//\1/
23907 q
23908 }
23909 s/.*/./; q'`
23910 { as_dir="$ac_dir"
23911 case $as_dir in #(
23912 -*) as_dir=./$as_dir;;
23913 esac
23914 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23915 as_dirs=
23916 while :; do
23917 case $as_dir in #(
23918 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23919 *) as_qdir=$as_dir;;
23920 esac
23921 as_dirs="'$as_qdir' $as_dirs"
23922 as_dir=`$as_dirname -- "$as_dir" ||
23923 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23924 X"$as_dir" : 'X\(//\)[^/]' \| \
23925 X"$as_dir" : 'X\(//\)$' \| \
23926 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23927 echo X"$as_dir" |
23928 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23929 s//\1/
23930 q
23931 }
23932 /^X\(\/\/\)[^/].*/{
23933 s//\1/
23934 q
23935 }
23936 /^X\(\/\/\)$/{
23937 s//\1/
23938 q
23939 }
23940 /^X\(\/\).*/{
23941 s//\1/
23942 q
23943 }
23944 s/.*/./; q'`
23945 test -d "$as_dir" && break
23946 done
23947 test -z "$as_dirs" || eval "mkdir $as_dirs"
23948 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23949 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23950 { (exit 1); exit 1; }; }; }
23951 ac_builddir=.
23952
23953 case "$ac_dir" in
23954 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23955 *)
23956 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23957 # A ".." for each directory in $ac_dir_suffix.
23958 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23959 case $ac_top_builddir_sub in
23960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23962 esac ;;
23963 esac
23964 ac_abs_top_builddir=$ac_pwd
23965 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23966 # for backward compatibility:
23967 ac_top_builddir=$ac_top_build_prefix
23968
23969 case $srcdir in
23970 .) # We are building in place.
23971 ac_srcdir=.
23972 ac_top_srcdir=$ac_top_builddir_sub
23973 ac_abs_top_srcdir=$ac_pwd ;;
23974 [\\/]* | ?:[\\/]* ) # Absolute name.
23975 ac_srcdir=$srcdir$ac_dir_suffix;
23976 ac_top_srcdir=$srcdir
23977 ac_abs_top_srcdir=$srcdir ;;
23978 *) # Relative name.
23979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23980 ac_top_srcdir=$ac_top_build_prefix$srcdir
23981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23982 esac
23983 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23984
23985
23986 case $ac_mode in
23987 :F)
23988 #
23989 # CONFIG_FILE
23990 #
23991
23992 case $INSTALL in
23993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23995 esac
23996 _ACEOF
23997
23998 cat >>$CONFIG_STATUS <<\_ACEOF
23999 # If the template does not know about datarootdir, expand it.
24000 # FIXME: This hack should be removed a few years after 2.60.
24001 ac_datarootdir_hack=; ac_datarootdir_seen=
24002
24003 case `sed -n '/datarootdir/ {
24004 p
24005 q
24006 }
24007 /@datadir@/p
24008 /@docdir@/p
24009 /@infodir@/p
24010 /@localedir@/p
24011 /@mandir@/p
24012 ' $ac_file_inputs` in
24013 *datarootdir*) ac_datarootdir_seen=yes;;
24014 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24015 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24016 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24017 _ACEOF
24018 cat >>$CONFIG_STATUS <<_ACEOF
24019 ac_datarootdir_hack='
24020 s&@datadir@&$datadir&g
24021 s&@docdir@&$docdir&g
24022 s&@infodir@&$infodir&g
24023 s&@localedir@&$localedir&g
24024 s&@mandir@&$mandir&g
24025 s&\\\${datarootdir}&$datarootdir&g' ;;
24026 esac
24027 _ACEOF
24028
24029 # Neutralize VPATH when `$srcdir' = `.'.
24030 # Shell code in configure.ac might set extrasub.
24031 # FIXME: do we really want to maintain this feature?
24032 cat >>$CONFIG_STATUS <<_ACEOF
24033 sed "$ac_vpsub
24034 $extrasub
24035 _ACEOF
24036 cat >>$CONFIG_STATUS <<\_ACEOF
24037 :t
24038 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24039 s&@configure_input@&$configure_input&;t t
24040 s&@top_builddir@&$ac_top_builddir_sub&;t t
24041 s&@srcdir@&$ac_srcdir&;t t
24042 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24043 s&@top_srcdir@&$ac_top_srcdir&;t t
24044 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24045 s&@builddir@&$ac_builddir&;t t
24046 s&@abs_builddir@&$ac_abs_builddir&;t t
24047 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24048 s&@INSTALL@&$ac_INSTALL&;t t
24049 $ac_datarootdir_hack
24050 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24051
24052 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24053 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24054 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24055 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24056 which seems to be undefined. Please make sure it is defined." >&5
24057 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24058 which seems to be undefined. Please make sure it is defined." >&2;}
24059
24060 rm -f "$tmp/stdin"
24061 case $ac_file in
24062 -) cat "$tmp/out"; rm -f "$tmp/out";;
24063 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24064 esac
24065 ;;
24066 :H)
24067 #
24068 # CONFIG_HEADER
24069 #
24070 _ACEOF
24071
24072 # Transform confdefs.h into a sed script `conftest.defines', that
24073 # substitutes the proper values into config.h.in to produce config.h.
24074 rm -f conftest.defines conftest.tail
24075 # First, append a space to every undef/define line, to ease matching.
24076 echo 's/$/ /' >conftest.defines
24077 # Then, protect against being on the right side of a sed subst, or in
24078 # an unquoted here document, in config.status. If some macros were
24079 # called several times there might be several #defines for the same
24080 # symbol, which is useless. But do not sort them, since the last
24081 # AC_DEFINE must be honored.
24082 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24083 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24084 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24085 # PARAMS is the parameter list in the macro definition--in most cases, it's
24086 # just an empty string.
24087 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24088 ac_dB='\\)[ (].*,\\1define\\2'
24089 ac_dC=' '
24090 ac_dD=' ,'
24091
24092 uniq confdefs.h |
24093 sed -n '
24094 t rset
24095 :rset
24096 s/^[ ]*#[ ]*define[ ][ ]*//
24097 t ok
24098 d
24099 :ok
24100 s/[\\&,]/\\&/g
24101 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24102 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24103 ' >>conftest.defines
24104
24105 # Remove the space that was appended to ease matching.
24106 # Then replace #undef with comments. This is necessary, for
24107 # example, in the case of _POSIX_SOURCE, which is predefined and required
24108 # on some systems where configure will not decide to define it.
24109 # (The regexp can be short, since the line contains either #define or #undef.)
24110 echo 's/ $//
24111 s,^[ #]*u.*,/* & */,' >>conftest.defines
24112
24113 # Break up conftest.defines:
24114 ac_max_sed_lines=50
24115
24116 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24117 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24118 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24119 # et cetera.
24120 ac_in='$ac_file_inputs'
24121 ac_out='"$tmp/out1"'
24122 ac_nxt='"$tmp/out2"'
24123
24124 while :
24125 do
24126 # Write a here document:
24127 cat >>$CONFIG_STATUS <<_ACEOF
24128 # First, check the format of the line:
24129 cat >"\$tmp/defines.sed" <<\\CEOF
24130 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24131 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24132 b
24133 :def
24134 _ACEOF
24135 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24136 echo 'CEOF
24137 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24138 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24139 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24140 grep . conftest.tail >/dev/null || break
24141 rm -f conftest.defines
24142 mv conftest.tail conftest.defines
24143 done
24144 rm -f conftest.defines conftest.tail
24145
24146 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24147 cat >>$CONFIG_STATUS <<\_ACEOF
24148 if test x"$ac_file" != x-; then
24149 echo "/* $configure_input */" >"$tmp/config.h"
24150 cat "$ac_result" >>"$tmp/config.h"
24151 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24152 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24153 echo "$as_me: $ac_file is unchanged" >&6;}
24154 else
24155 rm -f $ac_file
24156 mv "$tmp/config.h" $ac_file
24157 fi
24158 else
24159 echo "/* $configure_input */"
24160 cat "$ac_result"
24161 fi
24162 rm -f "$tmp/out12"
24163 ;;
24164
24165 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24166 echo "$as_me: executing $ac_file commands" >&6;}
24167 ;;
24168 esac
24169
24170
24171 case $ac_file$ac_mode in
24172 "default":C)
24173
24174 ### Make the necessary directories, if they don't exist.
24175 for dir in etc lisp ; do
24176 test -d ${dir} || mkdir ${dir}
24177 done
24178
24179 # Build src/Makefile from ${srcdir}/src/Makefile.c
24180 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24181 # This must be done after src/config.h is built, since we rely on that file.
24182
24183 # Now get this: Some word that is part of the ${srcdir} directory name
24184 # or the ${configuration} value might, just might, happen to be an
24185 # identifier like `sun4' or `i386' or something, and be predefined by
24186 # the C preprocessor to some helpful value like 1, or maybe the empty
24187 # string. Needless to say consequent macro substitutions are less
24188 # than conducive to the makefile finding the correct directory.
24189 undefs="`echo $top_srcdir $configuration $canonical |
24190 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24191 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24192 `"
24193
24194 echo creating src/epaths.h
24195 ${MAKE-make} epaths-force
24196
24197 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24198 # `..' to `. .' unless invoked with -traditional
24199
24200 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24201 CPPFLAGS="$CPPFLAGS -traditional"
24202 fi
24203
24204 echo creating lib-src/Makefile
24205 ( cd lib-src
24206 rm -f junk.c junk1.c junk2.c
24207 sed -e '/start of cpp stuff/q' \
24208 < Makefile.c > junk1.c
24209 sed -e '1,/start of cpp stuff/d'\
24210 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24211 < Makefile.c > junk.c
24212 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24213 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24214 cat junk1.c junk2.c > Makefile.new
24215 rm -f junk.c junk1.c junk2.c
24216 chmod 444 Makefile.new
24217 mv -f Makefile.new Makefile
24218 )
24219
24220 echo creating src/Makefile
24221 ( cd src
24222 rm -f junk.c junk1.c junk2.c
24223 sed -e '/start of cpp stuff/q' \
24224 < Makefile.c > junk1.c
24225 sed -e '1,/start of cpp stuff/d'\
24226 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24227 < Makefile.c > junk.c
24228 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24229 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24230 cat junk1.c junk2.c > Makefile.new
24231 rm -f junk.c junk1.c junk2.c
24232 chmod 444 Makefile.new
24233 mv -f Makefile.new Makefile
24234 )
24235
24236 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24237 echo creating src/.gdbinit
24238 echo source $srcdir/src/.gdbinit > src/.gdbinit
24239 fi
24240
24241 # This is how we know whether to re-run configure in certain cases.
24242 touch src/config.stamp
24243
24244 ;;
24245
24246 esac
24247 done # for ac_tag
24248
24249
24250 { (exit 0); exit 0; }
24251 _ACEOF
24252 chmod +x $CONFIG_STATUS
24253 ac_clean_files=$ac_clean_files_save
24254
24255
24256 # configure is writing to config.log, and then calls config.status.
24257 # config.status does its own redirection, appending to config.log.
24258 # Unfortunately, on DOS this fails, as config.log is still kept open
24259 # by configure, so config.status won't be able to write to it; its
24260 # output is simply discarded. So we exec the FD to /dev/null,
24261 # effectively closing config.log, so it can be properly (re)opened and
24262 # appended to by config.status. When coming back to configure, we
24263 # need to make the FD available again.
24264 if test "$no_create" != yes; then
24265 ac_cs_success=:
24266 ac_config_status_args=
24267 test "$silent" = yes &&
24268 ac_config_status_args="$ac_config_status_args --quiet"
24269 exec 5>/dev/null
24270 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24271 exec 5>>config.log
24272 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24273 # would make configure fail if this is the last instruction.
24274 $ac_cs_success || { (exit 1); exit 1; }
24275 fi
24276
24277