Merged from emacs@sv.gnu.org. Last-minute emacsclient rewrites be damned!
[bpt/emacs.git] / 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 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 GTK_CFLAGS
690 GTK_LIBS
691 ALLOCA
692 liblockfile
693 LIBOBJS
694 NEED_SETGID
695 KMEM_GROUP
696 GETLOADAVG_LIBS
697 GETOPT_H
698 GETOPTOBJS
699 version
700 configuration
701 canonical
702 srcdir
703 lispdir
704 locallisppath
705 lisppath
706 x_default_search_path
707 etcdir
708 archlibdir
709 bitmapdir
710 gamedir
711 gameuser
712 c_switch_system
713 c_switch_machine
714 LD_SWITCH_X_SITE
715 LD_SWITCH_X_SITE_AUX
716 C_SWITCH_X_SITE
717 X_TOOLKIT_TYPE
718 machfile
719 opsysfile
720 carbon_appdir
721 LTLIBOBJS'
722 ac_subst_files=''
723 ac_precious_vars='build_alias
724 host_alias
725 target_alias
726 CC
727 CFLAGS
728 LDFLAGS
729 LIBS
730 CPPFLAGS
731 CPP
732 XMKMF'
733
734
735 # Initialize some variables set by options.
736 ac_init_help=
737 ac_init_version=false
738 # The variables have the same names as the options, with
739 # dashes changed to underlines.
740 cache_file=/dev/null
741 exec_prefix=NONE
742 no_create=
743 no_recursion=
744 prefix=NONE
745 program_prefix=NONE
746 program_suffix=NONE
747 program_transform_name=s,x,x,
748 silent=
749 site=
750 srcdir=
751 verbose=
752 x_includes=NONE
753 x_libraries=NONE
754
755 # Installation directory options.
756 # These are left unexpanded so users can "make install exec_prefix=/foo"
757 # and all the variables that are supposed to be based on exec_prefix
758 # by default will actually change.
759 # Use braces instead of parens because sh, perl, etc. also accept them.
760 # (The list follows the same order as the GNU Coding Standards.)
761 bindir='${exec_prefix}/bin'
762 sbindir='${exec_prefix}/sbin'
763 libexecdir='${exec_prefix}/libexec'
764 datarootdir='${prefix}/share'
765 datadir='${datarootdir}'
766 sysconfdir='${prefix}/etc'
767 sharedstatedir='${prefix}/com'
768 localstatedir='${prefix}/var'
769 includedir='${prefix}/include'
770 oldincludedir='/usr/include'
771 docdir='${datarootdir}/doc/${PACKAGE}'
772 infodir='${datarootdir}/info'
773 htmldir='${docdir}'
774 dvidir='${docdir}'
775 pdfdir='${docdir}'
776 psdir='${docdir}'
777 libdir='${exec_prefix}/lib'
778 localedir='${datarootdir}/locale'
779 mandir='${datarootdir}/man'
780
781 ac_prev=
782 ac_dashdash=
783 for ac_option
784 do
785 # If the previous option needs an argument, assign it.
786 if test -n "$ac_prev"; then
787 eval $ac_prev=\$ac_option
788 ac_prev=
789 continue
790 fi
791
792 case $ac_option in
793 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
794 *) ac_optarg=yes ;;
795 esac
796
797 # Accept the important Cygnus configure options, so we can diagnose typos.
798
799 case $ac_dashdash$ac_option in
800 --)
801 ac_dashdash=yes ;;
802
803 -bindir | --bindir | --bindi | --bind | --bin | --bi)
804 ac_prev=bindir ;;
805 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
806 bindir=$ac_optarg ;;
807
808 -build | --build | --buil | --bui | --bu)
809 ac_prev=build_alias ;;
810 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
811 build_alias=$ac_optarg ;;
812
813 -cache-file | --cache-file | --cache-fil | --cache-fi \
814 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
815 ac_prev=cache_file ;;
816 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
817 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
818 cache_file=$ac_optarg ;;
819
820 --config-cache | -C)
821 cache_file=config.cache ;;
822
823 -datadir | --datadir | --datadi | --datad)
824 ac_prev=datadir ;;
825 -datadir=* | --datadir=* | --datadi=* | --datad=*)
826 datadir=$ac_optarg ;;
827
828 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
829 | --dataroo | --dataro | --datar)
830 ac_prev=datarootdir ;;
831 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
832 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
833 datarootdir=$ac_optarg ;;
834
835 -disable-* | --disable-*)
836 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
837 # Reject names that are not valid shell variable names.
838 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
839 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
840 { (exit 1); exit 1; }; }
841 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
842 eval enable_$ac_feature=no ;;
843
844 -docdir | --docdir | --docdi | --doc | --do)
845 ac_prev=docdir ;;
846 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
847 docdir=$ac_optarg ;;
848
849 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
850 ac_prev=dvidir ;;
851 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
852 dvidir=$ac_optarg ;;
853
854 -enable-* | --enable-*)
855 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
856 # Reject names that are not valid shell variable names.
857 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
858 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
859 { (exit 1); exit 1; }; }
860 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
861 eval enable_$ac_feature=\$ac_optarg ;;
862
863 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
864 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
865 | --exec | --exe | --ex)
866 ac_prev=exec_prefix ;;
867 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
868 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
869 | --exec=* | --exe=* | --ex=*)
870 exec_prefix=$ac_optarg ;;
871
872 -gas | --gas | --ga | --g)
873 # Obsolete; use --with-gas.
874 with_gas=yes ;;
875
876 -help | --help | --hel | --he | -h)
877 ac_init_help=long ;;
878 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
879 ac_init_help=recursive ;;
880 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
881 ac_init_help=short ;;
882
883 -host | --host | --hos | --ho)
884 ac_prev=host_alias ;;
885 -host=* | --host=* | --hos=* | --ho=*)
886 host_alias=$ac_optarg ;;
887
888 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
889 ac_prev=htmldir ;;
890 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
891 | --ht=*)
892 htmldir=$ac_optarg ;;
893
894 -includedir | --includedir | --includedi | --included | --include \
895 | --includ | --inclu | --incl | --inc)
896 ac_prev=includedir ;;
897 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
898 | --includ=* | --inclu=* | --incl=* | --inc=*)
899 includedir=$ac_optarg ;;
900
901 -infodir | --infodir | --infodi | --infod | --info | --inf)
902 ac_prev=infodir ;;
903 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
904 infodir=$ac_optarg ;;
905
906 -libdir | --libdir | --libdi | --libd)
907 ac_prev=libdir ;;
908 -libdir=* | --libdir=* | --libdi=* | --libd=*)
909 libdir=$ac_optarg ;;
910
911 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
912 | --libexe | --libex | --libe)
913 ac_prev=libexecdir ;;
914 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
915 | --libexe=* | --libex=* | --libe=*)
916 libexecdir=$ac_optarg ;;
917
918 -localedir | --localedir | --localedi | --localed | --locale)
919 ac_prev=localedir ;;
920 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
921 localedir=$ac_optarg ;;
922
923 -localstatedir | --localstatedir | --localstatedi | --localstated \
924 | --localstate | --localstat | --localsta | --localst | --locals)
925 ac_prev=localstatedir ;;
926 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
927 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
928 localstatedir=$ac_optarg ;;
929
930 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
931 ac_prev=mandir ;;
932 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
933 mandir=$ac_optarg ;;
934
935 -nfp | --nfp | --nf)
936 # Obsolete; use --without-fp.
937 with_fp=no ;;
938
939 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
940 | --no-cr | --no-c | -n)
941 no_create=yes ;;
942
943 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
944 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
945 no_recursion=yes ;;
946
947 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
948 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
949 | --oldin | --oldi | --old | --ol | --o)
950 ac_prev=oldincludedir ;;
951 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
952 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
953 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
954 oldincludedir=$ac_optarg ;;
955
956 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
957 ac_prev=prefix ;;
958 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
959 prefix=$ac_optarg ;;
960
961 -program-prefix | --program-prefix | --program-prefi | --program-pref \
962 | --program-pre | --program-pr | --program-p)
963 ac_prev=program_prefix ;;
964 -program-prefix=* | --program-prefix=* | --program-prefi=* \
965 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
966 program_prefix=$ac_optarg ;;
967
968 -program-suffix | --program-suffix | --program-suffi | --program-suff \
969 | --program-suf | --program-su | --program-s)
970 ac_prev=program_suffix ;;
971 -program-suffix=* | --program-suffix=* | --program-suffi=* \
972 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
973 program_suffix=$ac_optarg ;;
974
975 -program-transform-name | --program-transform-name \
976 | --program-transform-nam | --program-transform-na \
977 | --program-transform-n | --program-transform- \
978 | --program-transform | --program-transfor \
979 | --program-transfo | --program-transf \
980 | --program-trans | --program-tran \
981 | --progr-tra | --program-tr | --program-t)
982 ac_prev=program_transform_name ;;
983 -program-transform-name=* | --program-transform-name=* \
984 | --program-transform-nam=* | --program-transform-na=* \
985 | --program-transform-n=* | --program-transform-=* \
986 | --program-transform=* | --program-transfor=* \
987 | --program-transfo=* | --program-transf=* \
988 | --program-trans=* | --program-tran=* \
989 | --progr-tra=* | --program-tr=* | --program-t=*)
990 program_transform_name=$ac_optarg ;;
991
992 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
993 ac_prev=pdfdir ;;
994 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
995 pdfdir=$ac_optarg ;;
996
997 -psdir | --psdir | --psdi | --psd | --ps)
998 ac_prev=psdir ;;
999 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1000 psdir=$ac_optarg ;;
1001
1002 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1003 | -silent | --silent | --silen | --sile | --sil)
1004 silent=yes ;;
1005
1006 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1007 ac_prev=sbindir ;;
1008 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1009 | --sbi=* | --sb=*)
1010 sbindir=$ac_optarg ;;
1011
1012 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1013 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1014 | --sharedst | --shareds | --shared | --share | --shar \
1015 | --sha | --sh)
1016 ac_prev=sharedstatedir ;;
1017 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1018 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1019 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1020 | --sha=* | --sh=*)
1021 sharedstatedir=$ac_optarg ;;
1022
1023 -site | --site | --sit)
1024 ac_prev=site ;;
1025 -site=* | --site=* | --sit=*)
1026 site=$ac_optarg ;;
1027
1028 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1029 ac_prev=srcdir ;;
1030 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1031 srcdir=$ac_optarg ;;
1032
1033 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1034 | --syscon | --sysco | --sysc | --sys | --sy)
1035 ac_prev=sysconfdir ;;
1036 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1037 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1038 sysconfdir=$ac_optarg ;;
1039
1040 -target | --target | --targe | --targ | --tar | --ta | --t)
1041 ac_prev=target_alias ;;
1042 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1043 target_alias=$ac_optarg ;;
1044
1045 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1046 verbose=yes ;;
1047
1048 -version | --version | --versio | --versi | --vers | -V)
1049 ac_init_version=: ;;
1050
1051 -with-* | --with-*)
1052 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1053 # Reject names that are not valid shell variable names.
1054 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1055 { echo "$as_me: error: invalid package name: $ac_package" >&2
1056 { (exit 1); exit 1; }; }
1057 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1058 eval with_$ac_package=\$ac_optarg ;;
1059
1060 -without-* | --without-*)
1061 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1062 # Reject names that are not valid shell variable names.
1063 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1064 { echo "$as_me: error: invalid package name: $ac_package" >&2
1065 { (exit 1); exit 1; }; }
1066 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1067 eval with_$ac_package=no ;;
1068
1069 --x)
1070 # Obsolete; use --with-x.
1071 with_x=yes ;;
1072
1073 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1074 | --x-incl | --x-inc | --x-in | --x-i)
1075 ac_prev=x_includes ;;
1076 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1077 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1078 x_includes=$ac_optarg ;;
1079
1080 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1081 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1082 ac_prev=x_libraries ;;
1083 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1084 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1085 x_libraries=$ac_optarg ;;
1086
1087 -*) { echo "$as_me: error: unrecognized option: $ac_option
1088 Try \`$0 --help' for more information." >&2
1089 { (exit 1); exit 1; }; }
1090 ;;
1091
1092 *=*)
1093 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1094 # Reject names that are not valid shell variable names.
1095 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1096 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1097 { (exit 1); exit 1; }; }
1098 eval $ac_envvar=\$ac_optarg
1099 export $ac_envvar ;;
1100
1101 *)
1102 # FIXME: should be removed in autoconf 3.0.
1103 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1104 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1105 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1106 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1107 ;;
1108
1109 esac
1110 done
1111
1112 if test -n "$ac_prev"; then
1113 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1114 { echo "$as_me: error: missing argument to $ac_option" >&2
1115 { (exit 1); exit 1; }; }
1116 fi
1117
1118 # Be sure to have absolute directory names.
1119 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1120 datadir sysconfdir sharedstatedir localstatedir includedir \
1121 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1122 libdir localedir mandir
1123 do
1124 eval ac_val=\$$ac_var
1125 case $ac_val in
1126 [\\/$]* | ?:[\\/]* ) continue;;
1127 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1128 esac
1129 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1130 { (exit 1); exit 1; }; }
1131 done
1132
1133 # There might be people who depend on the old broken behavior: `$host'
1134 # used to hold the argument of --host etc.
1135 # FIXME: To remove some day.
1136 build=$build_alias
1137 host=$host_alias
1138 target=$target_alias
1139
1140 # FIXME: To remove some day.
1141 if test "x$host_alias" != x; then
1142 if test "x$build_alias" = x; then
1143 cross_compiling=maybe
1144 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1145 If a cross compiler is detected then cross compile mode will be used." >&2
1146 elif test "x$build_alias" != "x$host_alias"; then
1147 cross_compiling=yes
1148 fi
1149 fi
1150
1151 ac_tool_prefix=
1152 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1153
1154 test "$silent" = yes && exec 6>/dev/null
1155
1156
1157 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1158 ac_ls_di=`ls -di .` &&
1159 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1160 { echo "$as_me: error: Working directory cannot be determined" >&2
1161 { (exit 1); exit 1; }; }
1162 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1163 { echo "$as_me: error: pwd does not report name of working directory" >&2
1164 { (exit 1); exit 1; }; }
1165
1166
1167 # Find the source files, if location was not specified.
1168 if test -z "$srcdir"; then
1169 ac_srcdir_defaulted=yes
1170 # Try the directory containing this script, then the parent directory.
1171 ac_confdir=`$as_dirname -- "$0" ||
1172 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1173 X"$0" : 'X\(//\)[^/]' \| \
1174 X"$0" : 'X\(//\)$' \| \
1175 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1176 echo X"$0" |
1177 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1178 s//\1/
1179 q
1180 }
1181 /^X\(\/\/\)[^/].*/{
1182 s//\1/
1183 q
1184 }
1185 /^X\(\/\/\)$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\).*/{
1190 s//\1/
1191 q
1192 }
1193 s/.*/./; q'`
1194 srcdir=$ac_confdir
1195 if test ! -r "$srcdir/$ac_unique_file"; then
1196 srcdir=..
1197 fi
1198 else
1199 ac_srcdir_defaulted=no
1200 fi
1201 if test ! -r "$srcdir/$ac_unique_file"; then
1202 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1203 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1204 { (exit 1); exit 1; }; }
1205 fi
1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1207 ac_abs_confdir=`(
1208 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1209 { (exit 1); exit 1; }; }
1210 pwd)`
1211 # When building in place, set srcdir=.
1212 if test "$ac_abs_confdir" = "$ac_pwd"; then
1213 srcdir=.
1214 fi
1215 # Remove unnecessary trailing slashes from srcdir.
1216 # Double slashes in file names in object file debugging info
1217 # mess up M-x gdb in Emacs.
1218 case $srcdir in
1219 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 esac
1221 for ac_var in $ac_precious_vars; do
1222 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1223 eval ac_env_${ac_var}_value=\$${ac_var}
1224 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1225 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1226 done
1227
1228 #
1229 # Report the --help message.
1230 #
1231 if test "$ac_init_help" = "long"; then
1232 # Omit some internal or obsolete options to make the list less imposing.
1233 # This message is too long to be a string in the A/UX 3.1 sh.
1234 cat <<_ACEOF
1235 \`configure' configures this package to adapt to many kinds of systems.
1236
1237 Usage: $0 [OPTION]... [VAR=VALUE]...
1238
1239 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1240 VAR=VALUE. See below for descriptions of some of the useful variables.
1241
1242 Defaults for the options are specified in brackets.
1243
1244 Configuration:
1245 -h, --help display this help and exit
1246 --help=short display options specific to this package
1247 --help=recursive display the short help of all the included packages
1248 -V, --version display version information and exit
1249 -q, --quiet, --silent do not print \`checking...' messages
1250 --cache-file=FILE cache test results in FILE [disabled]
1251 -C, --config-cache alias for \`--cache-file=config.cache'
1252 -n, --no-create do not create output files
1253 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254
1255 Installation directories:
1256 --prefix=PREFIX install architecture-independent files in PREFIX
1257 [$ac_default_prefix]
1258 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1259 [PREFIX]
1260
1261 By default, \`make install' will install all the files in
1262 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1263 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1264 for instance \`--prefix=\$HOME'.
1265
1266 For better control, use the options below.
1267
1268 Fine tuning of the installation directories:
1269 --bindir=DIR user executables [EPREFIX/bin]
1270 --sbindir=DIR system admin executables [EPREFIX/sbin]
1271 --libexecdir=DIR program executables [EPREFIX/libexec]
1272 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1273 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1274 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1275 --libdir=DIR object code libraries [EPREFIX/lib]
1276 --includedir=DIR C header files [PREFIX/include]
1277 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1278 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1279 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1280 --infodir=DIR info documentation [DATAROOTDIR/info]
1281 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1282 --mandir=DIR man documentation [DATAROOTDIR/man]
1283 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1284 --htmldir=DIR html documentation [DOCDIR]
1285 --dvidir=DIR dvi documentation [DOCDIR]
1286 --pdfdir=DIR pdf documentation [DOCDIR]
1287 --psdir=DIR ps documentation [DOCDIR]
1288 _ACEOF
1289
1290 cat <<\_ACEOF
1291
1292 Program names:
1293 --program-prefix=PREFIX prepend PREFIX to installed program names
1294 --program-suffix=SUFFIX append SUFFIX to installed program names
1295 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1296
1297 X features:
1298 --x-includes=DIR X include files are in DIR
1299 --x-libraries=DIR X library files are in DIR
1300
1301 System types:
1302 --build=BUILD configure for building on BUILD [guessed]
1303 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1304 _ACEOF
1305 fi
1306
1307 if test -n "$ac_init_help"; then
1308
1309 cat <<\_ACEOF
1310
1311 Optional Features:
1312 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1313 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1314 --enable-carbon-app[=DIR] [DIR=/Application]
1315 specify install directory for Emacs.app on Mac OS X
1316 --enable-asserts compile code with asserts enabled
1317 --enable-maintainer-mode enable make rules and dependencies not useful
1318 (and sometimes confusing) to the casual installer
1319 --enable-locallisppath=PATH
1320 directories Emacs should search for lisp files
1321 specific to this site
1322 --disable-largefile omit support for large files
1323
1324 Optional Packages:
1325 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1326 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1327 --without-gcc don't use GCC to compile Emacs if GCC is found
1328 --without-pop don't support POP mail retrieval with movemail
1329 --with-kerberos support Kerberos-authenticated POP
1330 --with-kerberos5 support Kerberos version 5 authenticated POP
1331 --with-hesiod support Hesiod to get the POP server host
1332 --without-sound don't compile with sound support
1333 --with-x-toolkit=KIT use an X toolkit
1334 (KIT = yes/lucid/athena/motif/gtk/no)
1335 --with-xpm use -lXpm for displaying XPM images
1336 --with-jpeg use -ljpeg for displaying JPEG images
1337 --with-tiff use -ltiff for displaying TIFF images
1338 --with-gif use -lungif for displaying GIF images
1339 --with-png use -lpng for displaying PNG images
1340 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1341 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1342 --without-toolkit-scroll-bars
1343 don't use Motif or Xaw3d scroll bars
1344 --without-xim don't use X11 XIM
1345 --without-carbon don't use Carbon GUI on Mac OS X
1346 --with-x use the X Window System
1347
1348 Some influential environment variables:
1349 CC C compiler command
1350 CFLAGS C compiler flags
1351 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1352 nonstandard directory <lib dir>
1353 LIBS libraries to pass to the linker, e.g. -l<library>
1354 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1355 you have headers in a nonstandard directory <include dir>
1356 CPP C preprocessor
1357 XMKMF Path to xmkmf, Makefile generator for X Window System
1358
1359 Use these variables to override the choices made by `configure' or to help
1360 it to find libraries and programs with nonstandard names/locations.
1361
1362 _ACEOF
1363 ac_status=$?
1364 fi
1365
1366 if test "$ac_init_help" = "recursive"; then
1367 # If there are subdirs, report their specific --help.
1368 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1369 test -d "$ac_dir" || continue
1370 ac_builddir=.
1371
1372 case "$ac_dir" in
1373 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1374 *)
1375 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1376 # A ".." for each directory in $ac_dir_suffix.
1377 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1378 case $ac_top_builddir_sub in
1379 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1380 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1381 esac ;;
1382 esac
1383 ac_abs_top_builddir=$ac_pwd
1384 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1385 # for backward compatibility:
1386 ac_top_builddir=$ac_top_build_prefix
1387
1388 case $srcdir in
1389 .) # We are building in place.
1390 ac_srcdir=.
1391 ac_top_srcdir=$ac_top_builddir_sub
1392 ac_abs_top_srcdir=$ac_pwd ;;
1393 [\\/]* | ?:[\\/]* ) # Absolute name.
1394 ac_srcdir=$srcdir$ac_dir_suffix;
1395 ac_top_srcdir=$srcdir
1396 ac_abs_top_srcdir=$srcdir ;;
1397 *) # Relative name.
1398 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1399 ac_top_srcdir=$ac_top_build_prefix$srcdir
1400 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1401 esac
1402 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1403
1404 cd "$ac_dir" || { ac_status=$?; continue; }
1405 # Check for guested configure.
1406 if test -f "$ac_srcdir/configure.gnu"; then
1407 echo &&
1408 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1409 elif test -f "$ac_srcdir/configure"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure" --help=recursive
1412 else
1413 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1414 fi || ac_status=$?
1415 cd "$ac_pwd" || { ac_status=$?; break; }
1416 done
1417 fi
1418
1419 test -n "$ac_init_help" && exit $ac_status
1420 if $ac_init_version; then
1421 cat <<\_ACEOF
1422 configure
1423 generated by GNU Autoconf 2.61
1424
1425 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1426 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1427 This configure script is free software; the Free Software Foundation
1428 gives unlimited permission to copy, distribute and modify it.
1429 _ACEOF
1430 exit
1431 fi
1432 cat >config.log <<_ACEOF
1433 This file contains any messages produced by compilers while
1434 running configure, to aid debugging if configure makes a mistake.
1435
1436 It was created by $as_me, which was
1437 generated by GNU Autoconf 2.61. Invocation command line was
1438
1439 $ $0 $@
1440
1441 _ACEOF
1442 exec 5>>config.log
1443 {
1444 cat <<_ASUNAME
1445 ## --------- ##
1446 ## Platform. ##
1447 ## --------- ##
1448
1449 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1450 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1451 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1452 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1453 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1454
1455 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1456 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1457
1458 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1459 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1460 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1461 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1462 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1463 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1464 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1465
1466 _ASUNAME
1467
1468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1469 for as_dir in $PATH
1470 do
1471 IFS=$as_save_IFS
1472 test -z "$as_dir" && as_dir=.
1473 echo "PATH: $as_dir"
1474 done
1475 IFS=$as_save_IFS
1476
1477 } >&5
1478
1479 cat >&5 <<_ACEOF
1480
1481
1482 ## ----------- ##
1483 ## Core tests. ##
1484 ## ----------- ##
1485
1486 _ACEOF
1487
1488
1489 # Keep a trace of the command line.
1490 # Strip out --no-create and --no-recursion so they do not pile up.
1491 # Strip out --silent because we don't want to record it for future runs.
1492 # Also quote any args containing shell meta-characters.
1493 # Make two passes to allow for proper duplicate-argument suppression.
1494 ac_configure_args=
1495 ac_configure_args0=
1496 ac_configure_args1=
1497 ac_must_keep_next=false
1498 for ac_pass in 1 2
1499 do
1500 for ac_arg
1501 do
1502 case $ac_arg in
1503 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1504 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1505 | -silent | --silent | --silen | --sile | --sil)
1506 continue ;;
1507 *\'*)
1508 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1509 esac
1510 case $ac_pass in
1511 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1512 2)
1513 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1514 if test $ac_must_keep_next = true; then
1515 ac_must_keep_next=false # Got value, back to normal.
1516 else
1517 case $ac_arg in
1518 *=* | --config-cache | -C | -disable-* | --disable-* \
1519 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1520 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1521 | -with-* | --with-* | -without-* | --without-* | --x)
1522 case "$ac_configure_args0 " in
1523 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1524 esac
1525 ;;
1526 -* ) ac_must_keep_next=true ;;
1527 esac
1528 fi
1529 ac_configure_args="$ac_configure_args '$ac_arg'"
1530 ;;
1531 esac
1532 done
1533 done
1534 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1535 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1536
1537 # When interrupted or exit'd, cleanup temporary files, and complete
1538 # config.log. We remove comments because anyway the quotes in there
1539 # would cause problems or look ugly.
1540 # WARNING: Use '\'' to represent an apostrophe within the trap.
1541 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1542 trap 'exit_status=$?
1543 # Save into config.log some information that might help in debugging.
1544 {
1545 echo
1546
1547 cat <<\_ASBOX
1548 ## ---------------- ##
1549 ## Cache variables. ##
1550 ## ---------------- ##
1551 _ASBOX
1552 echo
1553 # The following way of writing the cache mishandles newlines in values,
1554 (
1555 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1556 eval ac_val=\$$ac_var
1557 case $ac_val in #(
1558 *${as_nl}*)
1559 case $ac_var in #(
1560 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1561 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1562 esac
1563 case $ac_var in #(
1564 _ | IFS | as_nl) ;; #(
1565 *) $as_unset $ac_var ;;
1566 esac ;;
1567 esac
1568 done
1569 (set) 2>&1 |
1570 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1571 *${as_nl}ac_space=\ *)
1572 sed -n \
1573 "s/'\''/'\''\\\\'\'''\''/g;
1574 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1575 ;; #(
1576 *)
1577 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1578 ;;
1579 esac |
1580 sort
1581 )
1582 echo
1583
1584 cat <<\_ASBOX
1585 ## ----------------- ##
1586 ## Output variables. ##
1587 ## ----------------- ##
1588 _ASBOX
1589 echo
1590 for ac_var in $ac_subst_vars
1591 do
1592 eval ac_val=\$$ac_var
1593 case $ac_val in
1594 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1595 esac
1596 echo "$ac_var='\''$ac_val'\''"
1597 done | sort
1598 echo
1599
1600 if test -n "$ac_subst_files"; then
1601 cat <<\_ASBOX
1602 ## ------------------- ##
1603 ## File substitutions. ##
1604 ## ------------------- ##
1605 _ASBOX
1606 echo
1607 for ac_var in $ac_subst_files
1608 do
1609 eval ac_val=\$$ac_var
1610 case $ac_val in
1611 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1612 esac
1613 echo "$ac_var='\''$ac_val'\''"
1614 done | sort
1615 echo
1616 fi
1617
1618 if test -s confdefs.h; then
1619 cat <<\_ASBOX
1620 ## ----------- ##
1621 ## confdefs.h. ##
1622 ## ----------- ##
1623 _ASBOX
1624 echo
1625 cat confdefs.h
1626 echo
1627 fi
1628 test "$ac_signal" != 0 &&
1629 echo "$as_me: caught signal $ac_signal"
1630 echo "$as_me: exit $exit_status"
1631 } >&5
1632 rm -f core *.core core.conftest.* &&
1633 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1634 exit $exit_status
1635 ' 0
1636 for ac_signal in 1 2 13 15; do
1637 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1638 done
1639 ac_signal=0
1640
1641 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1642 rm -f -r conftest* confdefs.h
1643
1644 # Predefined preprocessor variables.
1645
1646 cat >>confdefs.h <<_ACEOF
1647 #define PACKAGE_NAME "$PACKAGE_NAME"
1648 _ACEOF
1649
1650
1651 cat >>confdefs.h <<_ACEOF
1652 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1653 _ACEOF
1654
1655
1656 cat >>confdefs.h <<_ACEOF
1657 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1658 _ACEOF
1659
1660
1661 cat >>confdefs.h <<_ACEOF
1662 #define PACKAGE_STRING "$PACKAGE_STRING"
1663 _ACEOF
1664
1665
1666 cat >>confdefs.h <<_ACEOF
1667 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1668 _ACEOF
1669
1670
1671 # Let the site file select an alternate cache file if it wants to.
1672 # Prefer explicitly selected file to automatically selected ones.
1673 if test -n "$CONFIG_SITE"; then
1674 set x "$CONFIG_SITE"
1675 elif test "x$prefix" != xNONE; then
1676 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1677 else
1678 set x "$ac_default_prefix/share/config.site" \
1679 "$ac_default_prefix/etc/config.site"
1680 fi
1681 shift
1682 for ac_site_file
1683 do
1684 if test -r "$ac_site_file"; then
1685 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1686 echo "$as_me: loading site script $ac_site_file" >&6;}
1687 sed 's/^/| /' "$ac_site_file" >&5
1688 . "$ac_site_file"
1689 fi
1690 done
1691
1692 if test -r "$cache_file"; then
1693 # Some versions of bash will fail to source /dev/null (special
1694 # files actually), so we avoid doing that.
1695 if test -f "$cache_file"; then
1696 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1697 echo "$as_me: loading cache $cache_file" >&6;}
1698 case $cache_file in
1699 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1700 *) . "./$cache_file";;
1701 esac
1702 fi
1703 else
1704 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1705 echo "$as_me: creating cache $cache_file" >&6;}
1706 >$cache_file
1707 fi
1708
1709 ac_header_list="$ac_header_list sys/time.h"
1710 ac_header_list="$ac_header_list unistd.h"
1711 ac_func_list="$ac_func_list alarm"
1712 # Check that the precious variables saved in the cache have kept the same
1713 # value.
1714 ac_cache_corrupted=false
1715 for ac_var in $ac_precious_vars; do
1716 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1717 eval ac_new_set=\$ac_env_${ac_var}_set
1718 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1719 eval ac_new_val=\$ac_env_${ac_var}_value
1720 case $ac_old_set,$ac_new_set in
1721 set,)
1722 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1723 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1724 ac_cache_corrupted=: ;;
1725 ,set)
1726 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1727 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1728 ac_cache_corrupted=: ;;
1729 ,);;
1730 *)
1731 if test "x$ac_old_val" != "x$ac_new_val"; then
1732 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1733 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1734 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1735 echo "$as_me: former value: $ac_old_val" >&2;}
1736 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1737 echo "$as_me: current value: $ac_new_val" >&2;}
1738 ac_cache_corrupted=:
1739 fi;;
1740 esac
1741 # Pass precious variables to config.status.
1742 if test "$ac_new_set" = set; then
1743 case $ac_new_val in
1744 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1745 *) ac_arg=$ac_var=$ac_new_val ;;
1746 esac
1747 case " $ac_configure_args " in
1748 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1749 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1750 esac
1751 fi
1752 done
1753 if $ac_cache_corrupted; then
1754 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1755 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1756 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1757 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1758 { (exit 1); exit 1; }; }
1759 fi
1760
1761
1762
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777 ac_ext=c
1778 ac_cpp='$CPP $CPPFLAGS'
1779 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1780 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1781 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1782
1783
1784 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1785
1786
1787 test "$program_prefix" != NONE &&
1788 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1789 # Use a double $ so make ignores it.
1790 test "$program_suffix" != NONE &&
1791 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1792 # Double any \ or $. echo might interpret backslashes.
1793 # By default was `s,x,x', remove it if useless.
1794 cat <<\_ACEOF >conftest.sed
1795 s/[\\$]/&&/g;s/;s,x,x,$//
1796 _ACEOF
1797 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1798 rm -f conftest.sed
1799
1800
1801 lispdir='${datadir}/emacs/${version}/lisp'
1802 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1803 '${datadir}/emacs/site-lisp'
1804 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1805 etcdir='${datadir}/emacs/${version}/etc'
1806 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1807 docdir='${datadir}/emacs/${version}/etc'
1808 gamedir='${localstatedir}/games/emacs'
1809
1810 gameuser=games
1811
1812
1813 # Check whether --with-gcc was given.
1814 if test "${with_gcc+set}" = set; then
1815 withval=$with_gcc;
1816 fi
1817
1818
1819 # Check whether --with-pop was given.
1820 if test "${with_pop+set}" = set; then
1821 withval=$with_pop; if test "$withval" = yes; then
1822 cat >>confdefs.h <<\_ACEOF
1823 #define MAIL_USE_POP 1
1824 _ACEOF
1825
1826 else :
1827 fi
1828 else
1829 cat >>confdefs.h <<\_ACEOF
1830 #define MAIL_USE_POP 1
1831 _ACEOF
1832
1833 fi
1834
1835
1836
1837 # Check whether --with-kerberos was given.
1838 if test "${with_kerberos+set}" = set; then
1839 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1840 #define KERBEROS 1
1841 _ACEOF
1842
1843 fi
1844
1845
1846
1847 # Check whether --with-kerberos5 was given.
1848 if test "${with_kerberos5+set}" = set; then
1849 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1850 if test "${with_kerberos+set}" != set; then
1851 with_kerberos=yes
1852 cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857 fi
1858
1859 cat >>confdefs.h <<\_ACEOF
1860 #define KERBEROS5 1
1861 _ACEOF
1862
1863 fi
1864
1865
1866 # Check whether --with-hesiod was given.
1867 if test "${with_hesiod+set}" = set; then
1868 withval=$with_hesiod;
1869 cat >>confdefs.h <<\_ACEOF
1870 #define HESIOD 1
1871 _ACEOF
1872
1873 fi
1874
1875
1876
1877 # Check whether --with-sound was given.
1878 if test "${with_sound+set}" = set; then
1879 withval=$with_sound;
1880 fi
1881
1882
1883
1884 # Check whether --with-x-toolkit was given.
1885 if test "${with_x_toolkit+set}" = set; then
1886 withval=$with_x_toolkit; case "${withval}" in
1887 y | ye | yes ) val=athena ;;
1888 n | no ) val=no ;;
1889 l | lu | luc | luci | lucid ) val=lucid ;;
1890 a | at | ath | athe | athen | athena ) val=athena ;;
1891 m | mo | mot | moti | motif ) val=motif ;;
1892 g | gt | gtk ) val=gtk ;;
1893 * )
1894 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1895 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1896 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1897 echo "$as_me: 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." >&2;}
1900 { (exit 1); exit 1; }; }
1901 ;;
1902 esac
1903 with_x_toolkit=$val
1904
1905 fi
1906
1907
1908 # Check whether --with-xpm was given.
1909 if test "${with_xpm+set}" = set; then
1910 withval=$with_xpm;
1911 fi
1912
1913
1914 # Check whether --with-jpeg was given.
1915 if test "${with_jpeg+set}" = set; then
1916 withval=$with_jpeg;
1917 fi
1918
1919
1920 # Check whether --with-tiff was given.
1921 if test "${with_tiff+set}" = set; then
1922 withval=$with_tiff;
1923 fi
1924
1925
1926 # Check whether --with-gif was given.
1927 if test "${with_gif+set}" = set; then
1928 withval=$with_gif;
1929 fi
1930
1931
1932 # Check whether --with-png was given.
1933 if test "${with_png+set}" = set; then
1934 withval=$with_png;
1935 fi
1936
1937
1938 # Check whether --with-gtk was given.
1939 if test "${with_gtk+set}" = set; then
1940 withval=$with_gtk;
1941 fi
1942
1943
1944 # Check whether --with-pkg-config-prog was given.
1945 if test "${with_pkg_config_prog+set}" = set; then
1946 withval=$with_pkg_config_prog;
1947 fi
1948
1949
1950 # Check whether --with-toolkit-scroll-bars was given.
1951 if test "${with_toolkit_scroll_bars+set}" = set; then
1952 withval=$with_toolkit_scroll_bars;
1953 fi
1954
1955
1956 # Check whether --with-xim was given.
1957 if test "${with_xim+set}" = set; then
1958 withval=$with_xim;
1959 fi
1960
1961
1962 # Check whether --with-carbon was given.
1963 if test "${with_carbon+set}" = set; then
1964 withval=$with_carbon;
1965 fi
1966
1967 # Check whether --enable-carbon-app was given.
1968 if test "${enable_carbon_app+set}" = set; then
1969 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1970 fi
1971
1972
1973 # Check whether --enable-asserts was given.
1974 if test "${enable_asserts+set}" = set; then
1975 enableval=$enable_asserts; USE_XASSERTS=$enableval
1976 else
1977 USE_XASSERTS=no
1978 fi
1979
1980
1981 # Check whether --enable-maintainer-mode was given.
1982 if test "${enable_maintainer_mode+set}" = set; then
1983 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1984 else
1985 USE_MAINTAINER_MODE=no
1986 fi
1987
1988 if test $USE_MAINTAINER_MODE = yes; then
1989 MAINT=
1990 else
1991 MAINT=#
1992 fi
1993
1994
1995 # Check whether --enable-locallisppath was given.
1996 if test "${enable_locallisppath+set}" = set; then
1997 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
1998 locallisppath=
1999 elif test "${enableval}" != "yes"; then
2000 locallisppath=${enableval}
2001 fi
2002 fi
2003
2004
2005 #### Make srcdir absolute, if it isn't already. It's important to
2006 #### avoid running the path through pwd unnecessarily, since pwd can
2007 #### give you automounter prefixes, which can go away. We do all this
2008 #### so Emacs can find its files when run uninstalled.
2009 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2010 unset CDPATH
2011 case "${srcdir}" in
2012 /* ) ;;
2013 . )
2014 ## We may be able to use the $PWD environment variable to make this
2015 ## absolute. But sometimes PWD is inaccurate.
2016 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2017 ## but that tested only for a well-formed and valid PWD,
2018 ## it did not object when PWD was well-formed and valid but just wrong.
2019 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2020 then
2021 srcdir="$PWD"
2022 else
2023 srcdir="`(cd ${srcdir}; pwd)`"
2024 fi
2025 ;;
2026 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2027 esac
2028
2029 #### Check if the source directory already has a configured system in it.
2030 if test `pwd` != `(cd ${srcdir} && pwd)` \
2031 && test -f "${srcdir}/src/config.h" ; then
2032 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2033 as a build directory right now; it has been configured in its own
2034 right. To configure in another directory as well, you MUST
2035 use GNU make. If you do not have GNU make, then you must
2036 now do \`make distclean' in ${srcdir},
2037 and then run $0 again." >&5
2038 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2039 as a build directory right now; it has been configured in its own
2040 right. To configure in another directory as well, you MUST
2041 use GNU make. If you do not have GNU make, then you must
2042 now do \`make distclean' in ${srcdir},
2043 and then run $0 again." >&2;}
2044 fi
2045
2046 #### Given the configuration name, set machfile and opsysfile to the
2047 #### names of the m/*.h and s/*.h files we should use.
2048
2049 ### Canonicalize the configuration name.
2050
2051 ac_aux_dir=
2052 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2053 if test -f "$ac_dir/install-sh"; then
2054 ac_aux_dir=$ac_dir
2055 ac_install_sh="$ac_aux_dir/install-sh -c"
2056 break
2057 elif test -f "$ac_dir/install.sh"; then
2058 ac_aux_dir=$ac_dir
2059 ac_install_sh="$ac_aux_dir/install.sh -c"
2060 break
2061 elif test -f "$ac_dir/shtool"; then
2062 ac_aux_dir=$ac_dir
2063 ac_install_sh="$ac_aux_dir/shtool install -c"
2064 break
2065 fi
2066 done
2067 if test -z "$ac_aux_dir"; then
2068 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2069 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2070 { (exit 1); exit 1; }; }
2071 fi
2072
2073 # These three variables are undocumented and unsupported,
2074 # and are intended to be withdrawn in a future Autoconf release.
2075 # They can cause serious problems if a builder's source tree is in a directory
2076 # whose full name contains unusual characters.
2077 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2078 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2079 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2080
2081
2082 # Make sure we can run config.sub.
2083 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2084 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2085 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2086 { (exit 1); exit 1; }; }
2087
2088 { echo "$as_me:$LINENO: checking build system type" >&5
2089 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2090 if test "${ac_cv_build+set}" = set; then
2091 echo $ECHO_N "(cached) $ECHO_C" >&6
2092 else
2093 ac_build_alias=$build_alias
2094 test "x$ac_build_alias" = x &&
2095 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2096 test "x$ac_build_alias" = x &&
2097 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2098 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2099 { (exit 1); exit 1; }; }
2100 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2101 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2102 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2103 { (exit 1); exit 1; }; }
2104
2105 fi
2106 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2107 echo "${ECHO_T}$ac_cv_build" >&6; }
2108 case $ac_cv_build in
2109 *-*-*) ;;
2110 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2111 echo "$as_me: error: invalid value of canonical build" >&2;}
2112 { (exit 1); exit 1; }; };;
2113 esac
2114 build=$ac_cv_build
2115 ac_save_IFS=$IFS; IFS='-'
2116 set x $ac_cv_build
2117 shift
2118 build_cpu=$1
2119 build_vendor=$2
2120 shift; shift
2121 # Remember, the first character of IFS is used to create $*,
2122 # except with old shells:
2123 build_os=$*
2124 IFS=$ac_save_IFS
2125 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2126
2127
2128 { echo "$as_me:$LINENO: checking host system type" >&5
2129 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2130 if test "${ac_cv_host+set}" = set; then
2131 echo $ECHO_N "(cached) $ECHO_C" >&6
2132 else
2133 if test "x$host_alias" = x; then
2134 ac_cv_host=$ac_cv_build
2135 else
2136 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2137 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2138 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2139 { (exit 1); exit 1; }; }
2140 fi
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2144 echo "${ECHO_T}$ac_cv_host" >&6; }
2145 case $ac_cv_host in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2148 echo "$as_me: error: invalid value of canonical host" >&2;}
2149 { (exit 1); exit 1; }; };;
2150 esac
2151 host=$ac_cv_host
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_host
2154 shift
2155 host_cpu=$1
2156 host_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 host_os=$*
2161 IFS=$ac_save_IFS
2162 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 canonical=$host
2166 configuration=${host_alias-$host}
2167
2168
2169
2170 ### If you add support for a new configuration, add code to this
2171 ### switch statement to recognize your configuration name and select
2172 ### the appropriate operating system and machine description files.
2173
2174 ### You would hope that you could choose an m/*.h file pretty much
2175 ### based on the machine portion of the configuration name, and an s-
2176 ### file based on the operating system portion. However, it turns out
2177 ### that each m/*.h file is pretty manufacturer-specific - for
2178 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2179 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2180 ### machines. So we basically have to have a special case for each
2181 ### configuration name.
2182 ###
2183 ### As far as handling version numbers on operating systems is
2184 ### concerned, make sure things will fail in a fixable way. If
2185 ### /etc/MACHINES doesn't say anything about version numbers, be
2186 ### prepared to handle anything reasonably. If version numbers
2187 ### matter, be sure /etc/MACHINES says something about it.
2188 ###
2189 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2190 ### "System V Release 4"; he writes, "The old convention encouraged
2191 ### confusion between `system' and `release' levels'."
2192
2193 machine='' opsys='' unported=no
2194 case "${canonical}" in
2195
2196 ## FreeBSD ports
2197 *-*-freebsd* )
2198 opsys=freebsd
2199 case "${canonical}" in
2200 alpha*-*-freebsd*) machine=alpha ;;
2201 ia64-*-freebsd*) machine=ia64 ;;
2202 sparc64-*-freebsd*) machine=sparc ;;
2203 powerpc-*-freebsd*) machine=macppc ;;
2204 i[3456]86-*-freebsd*) machine=intel386 ;;
2205 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2206 esac
2207 ;;
2208
2209 ## NetBSD ports
2210 *-*-netbsd* )
2211 opsys=netbsd
2212 if test -f /usr/lib/crti.o; then
2213
2214 cat >>confdefs.h <<\_ACEOF
2215 #define HAVE_CRTIN
2216 _ACEOF
2217
2218 fi
2219
2220 case "${canonical}" in
2221 alpha*-*-netbsd*) machine=alpha ;;
2222 i[3456]86-*-netbsd*) machine=intel386 ;;
2223 m68k-*-netbsd*)
2224 # This is somewhat bogus.
2225 machine=hp9000s300 ;;
2226 powerpc-apple-netbsd*) machine=macppc ;;
2227 mips-*-netbsd*) machine=pmax ;;
2228 mipsel-*-netbsd*) machine=pmax ;;
2229 mipseb-*-netbsd*) machine=pmax ;;
2230 ns32k-*-netbsd*) machine=ns32000 ;;
2231 powerpc-*-netbsd*) machine=macppc ;;
2232 sparc*-*-netbsd*) machine=sparc ;;
2233 vax-*-netbsd*) machine=vax ;;
2234 arm-*-netbsd*) machine=arm ;;
2235 esac
2236 ;;
2237
2238 ## OpenBSD ports
2239 *-*-openbsd* )
2240 opsys=openbsd
2241 case "${canonical}" in
2242 alpha*-*-openbsd*) machine=alpha ;;
2243 i386-*-openbsd*) machine=intel386 ;;
2244 x86_64-*-openbsd*) machine=amdx86-64 ;;
2245 m68k-*-openbsd*) machine=hp9000s300 ;;
2246 mipsel-*-openbsd*) machine=pmax ;;
2247 ns32k-*-openbsd*) machine=ns32000 ;;
2248 sparc-*-openbsd*) machine=sparc ;;
2249 vax-*-openbsd*) machine=vax ;;
2250 esac
2251 ;;
2252
2253 ## LynxOS ports
2254 *-*-lynxos* )
2255 opsys=lynxos
2256 case "${canonical}" in
2257 i[3456]86-*-lynxos*) machine=intel386 ;;
2258 powerpc-*-lynxos*) machine=powerpc ;;
2259 esac
2260 ;;
2261
2262 ## Acorn RISCiX:
2263 arm-acorn-riscix1.1* )
2264 machine=acorn opsys=riscix1-1
2265 ;;
2266 arm-acorn-riscix1.2* | arm-acorn-riscix )
2267 ## This name is riscix12 instead of riscix1.2
2268 ## to avoid a file name conflict on MSDOS.
2269 machine=acorn opsys=riscix12
2270 ;;
2271
2272 ## BSDI ports
2273 *-*-bsdi* )
2274 opsys=bsdi
2275 case "${canonical}" in
2276 i[345]86-*-bsdi*) machine=intel386 ;;
2277 sparc-*-bsdi*) machine=sparc ;;
2278 powerpc-*-bsdi*) machine=macppc ;;
2279 esac
2280 case "${canonical}" in
2281 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2282 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2283 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2284 *-*-bsdi3* ) opsys=bsdos3 ;;
2285 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2286 esac
2287 ;;
2288
2289 ## Alliant machines
2290 ## Strictly speaking, we need the version of the alliant operating
2291 ## system to choose the right machine file, but currently the
2292 ## configuration name doesn't tell us enough to choose the right
2293 ## one; we need to give alliants their own operating system name to
2294 ## do this right. When someone cares, they can help us.
2295 fx80-alliant-* )
2296 machine=alliant4 opsys=bsd4-2
2297 ;;
2298 i860-alliant-* )
2299 machine=alliant-2800 opsys=bsd4-3
2300 ;;
2301
2302 ## Alpha (DEC) machines.
2303 alpha*-dec-osf* )
2304 machine=alpha opsys=osf1
2305 # This is needed to find X11R6.1 libraries for certain tests.
2306 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2307 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2308 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2309 # due to non-traditional preprocessing with the current compiler
2310 # defaults. OSF 4 can also have that compiler version, and there
2311 # seems always to have been a usable /usr/bin/cpp.
2312 NON_GNU_CPP=/usr/bin/cpp
2313 case "${canonical}" in
2314 alpha*-dec-osf[5-9]*)
2315 opsys=osf5-0 ;;
2316 esac
2317 ;;
2318
2319 alpha*-*-linux-gnu* )
2320 machine=alpha opsys=gnu-linux
2321 ;;
2322
2323 arm*-*-linux-gnu* )
2324 machine=arm opsys=gnu-linux
2325 ;;
2326
2327 ## Altos 3068
2328 m68*-altos-sysv* )
2329 machine=altos opsys=usg5-2
2330 ;;
2331
2332 ## Amdahl UTS
2333 580-amdahl-sysv* )
2334 machine=amdahl opsys=usg5-2-2
2335 ;;
2336
2337 ## Apollo, Domain/OS
2338 m68*-apollo-* )
2339 machine=apollo opsys=bsd4-3
2340 ;;
2341
2342 ## AT&T 3b2, 3b5, 3b15, 3b20
2343 we32k-att-sysv* )
2344 machine=att3b opsys=usg5-2-2
2345 ;;
2346
2347 ## AT&T 3b1 - The Mighty Unix PC!
2348 m68*-att-sysv* )
2349 machine=7300 opsys=usg5-2-2
2350 ;;
2351
2352 ## Bull dpx20
2353 rs6000-bull-bosx* )
2354 machine=ibmrs6000 opsys=aix3-2
2355 ;;
2356
2357 ## Bull dpx2
2358 m68*-bull-sysv3* )
2359 machine=dpx2 opsys=usg5-3
2360 ;;
2361
2362 ## Bull sps7
2363 m68*-bull-sysv2* )
2364 machine=sps7 opsys=usg5-2
2365 ;;
2366
2367 ## CCI 5/32, 6/32 -- see "Tahoe".
2368
2369 ## Celerity
2370 ## I don't know what configuration name to use for this; config.sub
2371 ## doesn't seem to know anything about it. Hey, Celerity users, get
2372 ## in touch with us!
2373 celerity-celerity-bsd* )
2374 machine=celerity opsys=bsd4-2
2375 ;;
2376
2377 ## Clipper
2378 ## What operating systems does this chip run that Emacs has been
2379 ## tested on?
2380 clipper-* )
2381 machine=clipper
2382 ## We'll use the catch-all code at the bottom to guess the
2383 ## operating system.
2384 ;;
2385
2386 ## Compaq Nonstop
2387 mips-compaq-nonstopux* )
2388 machine=nonstopux opsys=nonstopux
2389 ;;
2390
2391 ## Convex
2392 *-convex-bsd* | *-convex-convexos* )
2393 machine=convex opsys=bsd4-3
2394 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2395 NON_GNU_CPP="cc -E -P"
2396 ;;
2397
2398 ## Cubix QBx/386
2399 i[3456]86-cubix-sysv* )
2400 machine=intel386 opsys=usg5-3
2401 ;;
2402
2403 ## Cydra 5
2404 cydra*-cydrome-sysv* )
2405 machine=cydra5 opsys=usg5-3
2406 ;;
2407
2408 ## Data General AViiON Machines
2409 ## DG changed naming conventions with the release of 5.4.4.10, they
2410 ## dropped the initial 5.4 but left the intervening R. Because of the
2411 ## R this shouldn't conflict with older versions of the OS (which I
2412 ## think were named like dgux4.*). In addition, DG new AViiONs series
2413 ## uses either Motorola M88k or Intel Pentium CPUs.
2414 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2415 machine=aviion opsys=dgux4
2416 ;;
2417 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2418 ## This name is dgux5-4-3 instead of dgux5-4r3
2419 ## to avoid a file name conflict on MSDOS.
2420 machine=aviion opsys=dgux5-4-3
2421 ;;
2422 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2423 machine=aviion opsys=dgux5-4r2
2424 ;;
2425 m88k-dg-dgux* )
2426 machine=aviion opsys=dgux
2427 ;;
2428
2429 ## Data General AViiON Intel (x86) Machines
2430 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2431 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2432 i[345]86-dg-dguxR4* )
2433 machine=aviion-intel opsys=dgux4
2434 ;;
2435
2436 ## DECstations
2437 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2438 machine=pmax opsys=bsd4-2
2439 ;;
2440 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2441 machine=pmax opsys=bsd4-3
2442 ;;
2443 mips-dec-ultrix* )
2444 machine=pmax opsys=ultrix4-3
2445 ;;
2446 mips-dec-osf* )
2447 machine=pmax opsys=osf1
2448 ;;
2449 mips-dec-mach_bsd4.3* )
2450 machine=pmax opsys=mach-bsd4-3
2451 ;;
2452
2453 ## Motorola Delta machines
2454 m68k-motorola-sysv* | m68000-motorola-sysv* )
2455 machine=delta opsys=usg5-3
2456 if test -z "`type gnucc | grep 'not found'`"
2457 then
2458 if test -s /etc/167config
2459 then CC="gnucc -m68040"
2460 else CC="gnucc -m68881"
2461 fi
2462 else
2463 if test -z "`type gcc | grep 'not found'`"
2464 then CC=gcc
2465 else CC=cc
2466 fi
2467 fi
2468 ;;
2469 m88k-motorola-sysv4* )
2470 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2471 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2472 # I hope there are not other 4.0 versions for this machine
2473 # which really need usg5-4 instead.
2474 machine=delta88k opsys=usg5-4-2
2475 ;;
2476 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2477 machine=delta88k opsys=usg5-3
2478 ;;
2479
2480 ## Dual machines
2481 m68*-dual-sysv* )
2482 machine=dual opsys=usg5-2
2483 ;;
2484 m68*-dual-uniplus* )
2485 machine=dual opsys=unipl5-2
2486 ;;
2487
2488 ## Elxsi 6400
2489 elxsi-elxsi-sysv* )
2490 machine=elxsi opsys=usg5-2
2491 ;;
2492
2493 ## Encore machines
2494 ns16k-encore-bsd* )
2495 machine=ns16000 opsys=umax
2496 ;;
2497
2498 ## The GEC 63 - apparently, this port isn't really finished yet.
2499 # I'm sure we finished off the last of the machines, though. -- fx
2500
2501 ## Gould Power Node and NP1
2502 pn-gould-bsd4.2* )
2503 machine=gould opsys=bsd4-2
2504 ;;
2505 pn-gould-bsd4.3* )
2506 machine=gould opsys=bsd4-3
2507 ;;
2508 np1-gould-bsd* )
2509 machine=gould-np1 opsys=bsd4-3
2510 ;;
2511
2512 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2513 ## as far as Emacs is concerned).
2514 m88k-harris-cxux* )
2515 # Build needs to be different on 7.0 and later releases
2516 case "`uname -r`" in
2517 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2518 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2519 esac
2520 NON_GNU_CPP="/lib/cpp"
2521 ;;
2522 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2523 m68k-harris-cxux* )
2524 machine=nh3000 opsys=cxux
2525 ;;
2526 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2527 powerpc-harris-powerunix )
2528 machine=nh6000 opsys=powerunix
2529 NON_GNU_CPP="cc -Xo -E -P"
2530 ;;
2531 ## SR2001/SR2201 running HI-UX/MPP
2532 hppa1.1-hitachi-hiuxmpp* )
2533 machine=sr2k opsys=hiuxmpp
2534 ;;
2535 hppa1.1-hitachi-hiuxwe2* )
2536 machine=sr2k opsys=hiuxwe2
2537 ;;
2538 ## Honeywell XPS100
2539 xps*-honeywell-sysv* )
2540 machine=xps100 opsys=usg5-2
2541 ;;
2542
2543 ## HP 9000 series 200 or 300
2544 m68*-hp-bsd* )
2545 machine=hp9000s300 opsys=bsd4-3
2546 ;;
2547 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2548 m68*-hp-hpux* )
2549 case "`uname -r`" in
2550 ## Someone's system reports A.B8.05 for this.
2551 ## I wonder what other possibilities there are.
2552 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2553 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2554 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2555 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2556 *) machine=hp9000s300 opsys=hpux ;;
2557 esac
2558 ;;
2559
2560 ## HP 9000 series 700 and 800, running HP/UX
2561 hppa*-hp-hpux7* )
2562 machine=hp800 opsys=hpux
2563 ;;
2564 hppa*-hp-hpux8* )
2565 machine=hp800 opsys=hpux8
2566 ;;
2567 hppa*-hp-hpux9shr* )
2568 machine=hp800 opsys=hpux9shr
2569 ;;
2570 hppa*-hp-hpux9* )
2571 machine=hp800 opsys=hpux9
2572 ;;
2573 hppa*-hp-hpux10.2* )
2574 machine=hp800 opsys=hpux10-20
2575 ;;
2576 hppa*-hp-hpux10* )
2577 machine=hp800 opsys=hpux10
2578 ;;
2579 hppa*-hp-hpux1[1-9]* )
2580 machine=hp800 opsys=hpux11
2581 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2582 ;;
2583
2584 hppa*-*-linux-gnu* )
2585 machine=hp800 opsys=gnu-linux
2586 ;;
2587
2588 ## HP 9000 series 700 and 800, running HP/UX
2589 hppa*-hp-hpux* )
2590 ## Cross-compilation? Nah!
2591 case "`uname -r`" in
2592 ## Someone's system reports A.B8.05 for this.
2593 ## I wonder what other possibilities there are.
2594 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2595 *.08.* ) machine=hp800 opsys=hpux8 ;;
2596 *.09.* ) machine=hp800 opsys=hpux9 ;;
2597 *) machine=hp800 opsys=hpux10 ;;
2598 esac
2599 ;;
2600 hppa*-*-nextstep* )
2601 machine=hp800 opsys=nextstep
2602 ;;
2603
2604 ## Orion machines
2605 orion-orion-bsd* )
2606 machine=orion opsys=bsd4-2
2607 ;;
2608 clipper-orion-bsd* )
2609 machine=orion105 opsys=bsd4-2
2610 ;;
2611
2612 ## IBM machines
2613 i[3456]86-ibm-aix1.1* )
2614 machine=ibmps2-aix opsys=usg5-2-2
2615 ;;
2616 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2617 machine=ibmps2-aix opsys=usg5-3
2618 ;;
2619 i370-ibm-aix*)
2620 machine=ibm370aix opsys=usg5-3
2621 ;;
2622 s390-*-linux-gnu* )
2623 machine=ibms390 opsys=gnu-linux
2624 ;;
2625 s390x-*-linux-gnu* )
2626 machine=ibms390x opsys=gnu-linux
2627 ;;
2628 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2629 machine=ibmrs6000 opsys=aix3-1
2630 ;;
2631 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2632 machine=ibmrs6000 opsys=aix3-2-5
2633 ;;
2634 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2635 machine=ibmrs6000 opsys=aix4-1
2636 ;;
2637 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2638 machine=ibmrs6000 opsys=aix4-2
2639 ;;
2640 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2641 machine=ibmrs6000 opsys=aix4-2
2642 ;;
2643 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2644 machine=ibmrs6000 opsys=aix4
2645 ;;
2646 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2647 machine=ibmrs6000 opsys=aix4-1
2648 ;;
2649 rs6000-ibm-aix* | powerpc-ibm-aix* )
2650 machine=ibmrs6000 opsys=aix3-2
2651 ;;
2652 romp-ibm-bsd4.3* )
2653 machine=ibmrt opsys=bsd4-3
2654 ;;
2655 romp-ibm-bsd4.2* )
2656 machine=ibmrt opsys=bsd4-2
2657 ;;
2658 romp-ibm-aos4.3* )
2659 machine=ibmrt opsys=bsd4-3
2660 ;;
2661 romp-ibm-aos4.2* )
2662 machine=ibmrt opsys=bsd4-2
2663 ;;
2664 romp-ibm-aos* )
2665 machine=ibmrt opsys=bsd4-3
2666 ;;
2667 romp-ibm-bsd* )
2668 machine=ibmrt opsys=bsd4-3
2669 ;;
2670 romp-ibm-aix* )
2671 machine=ibmrt-aix opsys=usg5-2-2
2672 ;;
2673
2674 ## Integrated Solutions `Optimum V'
2675 m68*-isi-bsd4.2* )
2676 machine=isi-ov opsys=bsd4-2
2677 ;;
2678 m68*-isi-bsd4.3* )
2679 machine=isi-ov opsys=bsd4-3
2680 ;;
2681
2682 ## Intel 386 machines where we do care about the manufacturer
2683 i[3456]86-intsys-sysv* )
2684 machine=is386 opsys=usg5-2-2
2685 ;;
2686
2687 ## Prime EXL
2688 i[3456]86-prime-sysv* )
2689 machine=i386 opsys=usg5-3
2690 ;;
2691
2692 ## Sequent Symmetry running Dynix
2693 i[3456]86-sequent-bsd* )
2694 machine=symmetry opsys=bsd4-3
2695 ;;
2696
2697 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2698 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2699 machine=sequent-ptx opsys=ptx4
2700 NON_GNU_CPP=/lib/cpp
2701 ;;
2702
2703 ## Sequent Symmetry running DYNIX/ptx
2704 ## Use the old cpp rather than the newer ANSI one.
2705 i[3456]86-sequent-ptx* )
2706 machine=sequent-ptx opsys=ptx
2707 NON_GNU_CPP="/lib/cpp"
2708 ;;
2709
2710 ## ncr machine running svr4.3.
2711 i[3456]86-ncr-sysv4.3 )
2712 machine=ncr386 opsys=usg5-4-3
2713 ;;
2714
2715 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2716 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2717 i[3456]86-ncr-sysv* )
2718 machine=ncr386 opsys=usg5-4-2
2719 ;;
2720
2721 ## Intel Paragon OSF/1
2722 i860-intel-osf1* )
2723 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2724 ;;
2725
2726 ## Intel 860
2727 i860-*-sysv4* )
2728 machine=i860 opsys=usg5-4
2729 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2730 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2731 ;;
2732
2733 ## Macintosh PowerPC
2734 powerpc*-*-linux-gnu* )
2735 machine=macppc opsys=gnu-linux
2736 ;;
2737
2738 ## Masscomp machines
2739 m68*-masscomp-rtu* )
2740 machine=masscomp opsys=rtu
2741 ;;
2742
2743 ## Megatest machines
2744 m68*-megatest-bsd* )
2745 machine=mega68 opsys=bsd4-2
2746 ;;
2747
2748 ## Workstations sold by MIPS
2749 ## This is not necessarily all workstations using the MIPS processor -
2750 ## Irises are produced by SGI, and DECstations by DEC.
2751
2752 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2753 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2754 ## it gives for choosing between the alternatives seems to be "Use
2755 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2756 ## the BSD world." I'll assume that these are instructions for
2757 ## handling two odd situations, and that every other situation
2758 ## should use mips.h and usg5-2-2, they being listed first.
2759 mips-mips-usg* )
2760 machine=mips4
2761 ## Fall through to the general code at the bottom to decide on the OS.
2762 ;;
2763 mips-mips-riscos4* )
2764 machine=mips4 opsys=bsd4-3
2765 NON_GNU_CC="cc -systype bsd43"
2766 NON_GNU_CPP="cc -systype bsd43 -E"
2767 ;;
2768 mips-mips-riscos5* )
2769 machine=mips4 opsys=riscos5
2770 NON_GNU_CC="cc -systype bsd43"
2771 NON_GNU_CPP="cc -systype bsd43 -E"
2772 ;;
2773 mips-mips-bsd* )
2774 machine=mips opsys=bsd4-3
2775 ;;
2776 mips-mips-* )
2777 machine=mips opsys=usg5-2-2
2778 ;;
2779
2780 ## NeXT
2781 m68*-next-* | m68k-*-nextstep* )
2782 machine=m68k opsys=nextstep
2783 ;;
2784
2785 ## The complete machine from National Semiconductor
2786 ns32k-ns-genix* )
2787 machine=ns32000 opsys=usg5-2
2788 ;;
2789
2790 ## NCR machines
2791 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2792 machine=tower32 opsys=usg5-2-2
2793 ;;
2794 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2795 machine=tower32v3 opsys=usg5-3
2796 ;;
2797
2798 ## NEC EWS4800
2799 mips-nec-sysv4*)
2800 machine=ews4800 opsys=ux4800
2801 ;;
2802
2803 ## Nixdorf Targon 31
2804 m68*-nixdorf-sysv* )
2805 machine=targon31 opsys=usg5-2-2
2806 ;;
2807
2808 ## Nu (TI or LMI)
2809 m68*-nu-sysv* )
2810 machine=nu opsys=usg5-2
2811 ;;
2812
2813 ## Plexus
2814 m68*-plexus-sysv* )
2815 machine=plexus opsys=usg5-2
2816 ;;
2817
2818 ## Pyramid machines
2819 ## I don't really have any idea what sort of processor the Pyramid has,
2820 ## so I'm assuming it is its own architecture.
2821 pyramid-pyramid-bsd* )
2822 machine=pyramid opsys=bsd4-2
2823 ;;
2824
2825 ## Sequent Balance
2826 ns32k-sequent-bsd4.2* )
2827 machine=sequent opsys=bsd4-2
2828 ;;
2829 ns32k-sequent-bsd4.3* )
2830 machine=sequent opsys=bsd4-3
2831 ;;
2832
2833 ## Siemens Nixdorf
2834 mips-siemens-sysv* | mips-sni-sysv*)
2835 machine=mips-siemens opsys=usg5-4
2836 NON_GNU_CC=/usr/ccs/bin/cc
2837 NON_GNU_CPP=/usr/ccs/lib/cpp
2838 ;;
2839
2840 ## Silicon Graphics machines
2841 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2842 m68*-sgi-iris3.5* )
2843 machine=irist opsys=iris3-5
2844 ;;
2845 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2846 machine=irist opsys=iris3-6
2847 ;;
2848 ## Iris 4D
2849 mips-sgi-irix3* )
2850 machine=iris4d opsys=irix3-3
2851 ;;
2852 mips-sgi-irix4* )
2853 machine=iris4d opsys=irix4-0
2854 ;;
2855 mips-sgi-irix6.5 )
2856 machine=iris4d opsys=irix6-5
2857 # Without defining _LANGUAGE_C, things get masked out in the headers
2858 # so that, for instance, grepping for `free' in stdlib.h fails and
2859 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2860 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2861 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2862 ;;
2863 mips-sgi-irix6* )
2864 machine=iris4d opsys=irix6-0
2865 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2866 # but presumably it does no harm.
2867 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2868 # -32 probably isn't necessary in later v.6s -- anyone know which?
2869 NON_GCC_TEST_OPTIONS=-32
2870 ;;
2871 mips-sgi-irix5.[01]* )
2872 machine=iris4d opsys=irix5-0
2873 ;;
2874 mips-sgi-irix5* | mips-sgi-irix* )
2875 machine=iris4d opsys=irix5-2
2876 ;;
2877
2878 ## SONY machines
2879 m68*-sony-bsd4.2* )
2880 machine=news opsys=bsd4-2
2881 ;;
2882 m68*-sony-bsd4.3* )
2883 machine=news opsys=bsd4-3
2884 ;;
2885 m68*-sony-newsos3* | m68*-sony-news3*)
2886 machine=news opsys=bsd4-3
2887 ;;
2888 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2889 machine=news-risc opsys=bsd4-3
2890 ;;
2891 mips-sony-newsos6* )
2892 machine=news-r6 opsys=newsos6
2893 ;;
2894 mips-sony-news* )
2895 machine=news-risc opsys=newsos5
2896 ;;
2897
2898 ## Stride
2899 m68*-stride-sysv* )
2900 machine=stride opsys=usg5-2
2901 ;;
2902
2903 ## Suns
2904 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2905 machine=sparc opsys=gnu-linux
2906 ;;
2907
2908 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2909 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2910 | rs6000-*-solaris2*)
2911 case "${canonical}" in
2912 m68*-sunos1* ) machine=sun1 ;;
2913 m68*-sunos2* ) machine=sun2 ;;
2914 m68* ) machine=sun3 ;;
2915 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2916 i[3456]86-*-* ) machine=intel386 ;;
2917 powerpcle* ) machine=powerpcle ;;
2918 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2919 sparc* ) machine=sparc ;;
2920 * ) unported=yes ;;
2921 esac
2922 case "${canonical}" in
2923 ## The Sun386 didn't get past 4.0.
2924 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2925 *-sunos4.0* ) opsys=sunos4-0 ;;
2926 *-sunos4.1.[3-9]*noshare )
2927 ## This name is sunos413 instead of sunos4-1-3
2928 ## to avoid a file name conflict on MSDOS.
2929 opsys=sunos413
2930 NON_GNU_CPP=/usr/lib/cpp
2931 NON_GCC_TEST_OPTIONS=-Bstatic
2932 GCC_TEST_OPTIONS=-static
2933 ;;
2934 *-sunos4.1.[3-9]* | *-sunos4shr*)
2935 opsys=sunos4shr
2936 NON_GNU_CPP=/usr/lib/cpp
2937 ;;
2938 *-sunos4* | *-sunos )
2939 opsys=sunos4-1
2940 NON_GCC_TEST_OPTIONS=-Bstatic
2941 GCC_TEST_OPTIONS=-static
2942 ;;
2943 *-sunos5.3* | *-solaris2.3* )
2944 opsys=sol2-3
2945 NON_GNU_CPP=/usr/ccs/lib/cpp
2946 ;;
2947 *-sunos5.4* | *-solaris2.4* )
2948 opsys=sol2-4
2949 NON_GNU_CPP=/usr/ccs/lib/cpp
2950 RANLIB="ar -ts"
2951 ;;
2952 *-sunos5.5* | *-solaris2.5* )
2953 opsys=sol2-5
2954 NON_GNU_CPP=/usr/ccs/lib/cpp
2955 RANLIB="ar -ts"
2956 ;;
2957 *-sunos5.6* | *-solaris2.6* )
2958 opsys=sol2-6
2959 NON_GNU_CPP=/usr/ccs/lib/cpp
2960 RANLIB="ar -ts"
2961 ;;
2962 *-sunos5* | *-solaris* )
2963 opsys=sol2-6
2964 NON_GNU_CPP=/usr/ccs/lib/cpp
2965 ;;
2966 * ) opsys=bsd4-2 ;;
2967 esac
2968 ## Watch out for a compiler that we know will not work.
2969 case "${canonical}" in
2970 *-solaris* | *-sunos5* )
2971 if [ "x$CC" = x/usr/ucb/cc ]; then
2972 ## /usr/ucb/cc doesn't work;
2973 ## we should find some other compiler that does work.
2974 unset CC
2975 fi
2976 ;;
2977 *) ;;
2978 esac
2979 ;;
2980 sparc-*-nextstep* )
2981 machine=sparc opsys=nextstep
2982 ;;
2983
2984 ## Tadpole 68k
2985 m68*-tadpole-sysv* )
2986 machine=tad68k opsys=usg5-3
2987 ;;
2988
2989 ## Tahoe machines
2990 tahoe-tahoe-bsd4.2* )
2991 machine=tahoe opsys=bsd4-2
2992 ;;
2993 tahoe-tahoe-bsd4.3* )
2994 machine=tahoe opsys=bsd4-3
2995 ;;
2996
2997 ## Tandem Integrity S2
2998 mips-tandem-sysv* )
2999 machine=tandem-s2 opsys=usg5-3
3000 ;;
3001
3002 ## Tektronix XD88
3003 m88k-tektronix-sysv3* )
3004 machine=tekxd88 opsys=usg5-3
3005 ;;
3006
3007 ## Tektronix 16000 box (6130?)
3008 ns16k-tektronix-bsd* )
3009 machine=ns16000 opsys=bsd4-2
3010 ;;
3011 ## Tektronix 4300
3012 ## src/m/tek4300.h hints that this is a m68k machine.
3013 m68*-tektronix-bsd* )
3014 machine=tek4300 opsys=bsd4-3
3015 ;;
3016
3017 ## Titan P2 or P3
3018 ## We seem to have lost the machine-description file titan.h!
3019 titan-titan-sysv* )
3020 machine=titan opsys=usg5-3
3021 ;;
3022
3023 ## Ustation E30 (SS5E)
3024 m68*-unisys-uniplus* )
3025 machine=ustation opsystem=unipl5-2
3026 ;;
3027
3028 ## Vaxen.
3029 vax-dec-* )
3030 machine=vax
3031 case "${canonical}" in
3032 *-bsd4.1* ) opsys=bsd4-1 ;;
3033 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3034 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3035 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3036 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3037 *-vms* ) opsys=vms ;;
3038 * ) unported=yes
3039 esac
3040 ;;
3041
3042 ## Whitechapel MG1
3043 ns16k-whitechapel-* )
3044 machine=mg1
3045 ## We don't know what sort of OS runs on these; we'll let the
3046 ## operating system guessing code below try.
3047 ;;
3048
3049 ## Wicat
3050 m68*-wicat-sysv* )
3051 machine=wicat opsys=usg5-2
3052 ;;
3053
3054 ## IA-64
3055 ia64*-*-linux* )
3056 machine=ia64 opsys=gnu-linux
3057 ;;
3058
3059 ## Intel 386 machines where we don't care about the manufacturer
3060 i[3456]86-*-* )
3061 machine=intel386
3062 case "${canonical}" in
3063 *-cygwin ) opsys=cygwin ;;
3064 *-darwin* ) opsys=darwin
3065 CPP="${CC-cc} -E -no-cpp-precomp"
3066 ;;
3067 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3068 *-isc2.2* ) opsys=isc2-2 ;;
3069 *-isc4.0* ) opsys=isc4-0 ;;
3070 *-isc4.* ) opsys=isc4-1
3071 GCC_TEST_OPTIONS=-posix
3072 NON_GCC_TEST_OPTIONS=-Xp
3073 ;;
3074 *-isc* ) opsys=isc3-0 ;;
3075 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3076 *-esix* ) opsys=esix ;;
3077 *-xenix* ) opsys=xenix ;;
3078 *-linux-gnu* ) opsys=gnu-linux ;;
3079 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3080 *-sco3.2v5* ) opsys=sco5
3081 NON_GNU_CPP=/lib/cpp
3082 # Prevent -belf from being passed to $CPP.
3083 # /lib/cpp does not accept it.
3084 OVERRIDE_CPPFLAGS=" "
3085 ;;
3086 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3087 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3088 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3089 *-386bsd* ) opsys=386bsd ;;
3090 *-nextstep* ) opsys=nextstep ;;
3091 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3092 esac
3093 ;;
3094
3095 ## m68k Linux-based GNU system
3096 m68k-*-linux-gnu* )
3097 machine=m68k opsys=gnu-linux
3098 ;;
3099
3100 ## Mips Linux-based GNU system
3101 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3102 machine=mips opsys=gnu-linux
3103 ;;
3104
3105 ## UXP/DS
3106 sparc-fujitsu-sysv4* )
3107 machine=sparc opsys=uxpds
3108 NON_GNU_CPP=/usr/ccs/lib/cpp
3109 RANLIB="ar -ts"
3110 ;;
3111
3112 ## UXP/V
3113 f301-fujitsu-uxpv4.1)
3114 machine=f301 opsys=uxpv
3115 ;;
3116
3117 ## Darwin / Mac OS X
3118 powerpc-apple-darwin* )
3119 machine=powermac opsys=darwin
3120 # Define CPP as follows to make autoconf work correctly.
3121 CPP="${CC-cc} -E -no-cpp-precomp"
3122 # Use fink packages if available.
3123 if test -d /sw/include && test -d /sw/lib; then
3124 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
3125 CPP="${CPP} ${GCC_TEST_OPTIONS}"
3126 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
3127 fi
3128 ;;
3129
3130 ## AMD x86-64 Linux-based GNU system
3131 x86_64-*-linux-gnu* )
3132 machine=amdx86-64 opsys=gnu-linux
3133 ;;
3134
3135 * )
3136 unported=yes
3137 ;;
3138 esac
3139
3140 ### If the code above didn't choose an operating system, just choose
3141 ### an operating system based on the configuration name. You really
3142 ### only want to use this when you have no idea what the right
3143 ### operating system is; if you know what operating systems a machine
3144 ### runs, it's cleaner to make it explicit in the case statement
3145 ### above.
3146 if test x"${opsys}" = x; then
3147 case "${canonical}" in
3148 *-gnu* ) opsys=gnu ;;
3149 *-bsd4.[01] ) opsys=bsd4-1 ;;
3150 *-bsd4.2 ) opsys=bsd4-2 ;;
3151 *-bsd4.3 ) opsys=bsd4-3 ;;
3152 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3153 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3154 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3155 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3156 *-sysv4.2uw* ) opsys=unixware ;;
3157 *-sysv5uw* ) opsys=unixware ;;
3158 *-sysv5OpenUNIX* ) opsys=unixware ;;
3159 *-sysv4.1* | *-sysvr4.1* )
3160 NON_GNU_CPP=/usr/lib/cpp
3161 opsys=usg5-4 ;;
3162 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3163 if [ x$NON_GNU_CPP = x ]; then
3164 if [ -f /usr/ccs/lib/cpp ]; then
3165 NON_GNU_CPP=/usr/ccs/lib/cpp
3166 else
3167 NON_GNU_CPP=/lib/cpp
3168 fi
3169 fi
3170 opsys=usg5-4-2 ;;
3171 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3172 * )
3173 unported=yes
3174 ;;
3175 esac
3176 fi
3177
3178
3179
3180 if test $unported = yes; then
3181 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3182 Check \`etc/MACHINES' for recognized configuration names." >&5
3183 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3184 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3185 { (exit 1); exit 1; }; }
3186 fi
3187
3188 machfile="m/${machine}.h"
3189 opsysfile="s/${opsys}.h"
3190
3191
3192 #### Choose a compiler.
3193 test -n "$CC" && cc_specified=yes
3194
3195 # Save the value of CFLAGS that the user specified.
3196 SPECIFIED_CFLAGS="$CFLAGS"
3197
3198 case ${with_gcc} in
3199 "yes" ) CC="gcc" GCC=yes ;;
3200 "no" ) : ${CC=cc} ;;
3201 * )
3202 esac
3203 ac_ext=c
3204 ac_cpp='$CPP $CPPFLAGS'
3205 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3206 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3207 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3208 if test -n "$ac_tool_prefix"; then
3209 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3210 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3213 if test "${ac_cv_prog_CC+set}" = set; then
3214 echo $ECHO_N "(cached) $ECHO_C" >&6
3215 else
3216 if test -n "$CC"; then
3217 ac_cv_prog_CC="$CC" # Let the user override the test.
3218 else
3219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3220 for as_dir in $PATH
3221 do
3222 IFS=$as_save_IFS
3223 test -z "$as_dir" && as_dir=.
3224 for ac_exec_ext in '' $ac_executable_extensions; do
3225 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3226 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3227 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3228 break 2
3229 fi
3230 done
3231 done
3232 IFS=$as_save_IFS
3233
3234 fi
3235 fi
3236 CC=$ac_cv_prog_CC
3237 if test -n "$CC"; then
3238 { echo "$as_me:$LINENO: result: $CC" >&5
3239 echo "${ECHO_T}$CC" >&6; }
3240 else
3241 { echo "$as_me:$LINENO: result: no" >&5
3242 echo "${ECHO_T}no" >&6; }
3243 fi
3244
3245
3246 fi
3247 if test -z "$ac_cv_prog_CC"; then
3248 ac_ct_CC=$CC
3249 # Extract the first word of "gcc", so it can be a program name with args.
3250 set dummy gcc; ac_word=$2
3251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3254 echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256 if test -n "$ac_ct_CC"; then
3257 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3258 else
3259 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3260 for as_dir in $PATH
3261 do
3262 IFS=$as_save_IFS
3263 test -z "$as_dir" && as_dir=.
3264 for ac_exec_ext in '' $ac_executable_extensions; do
3265 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3266 ac_cv_prog_ac_ct_CC="gcc"
3267 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3268 break 2
3269 fi
3270 done
3271 done
3272 IFS=$as_save_IFS
3273
3274 fi
3275 fi
3276 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3277 if test -n "$ac_ct_CC"; then
3278 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3279 echo "${ECHO_T}$ac_ct_CC" >&6; }
3280 else
3281 { echo "$as_me:$LINENO: result: no" >&5
3282 echo "${ECHO_T}no" >&6; }
3283 fi
3284
3285 if test "x$ac_ct_CC" = x; then
3286 CC=""
3287 else
3288 case $cross_compiling:$ac_tool_warned in
3289 yes:)
3290 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3291 whose name does not start with the host triplet. If you think this
3292 configuration is useful to you, please write to autoconf@gnu.org." >&5
3293 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3294 whose name does not start with the host triplet. If you think this
3295 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3296 ac_tool_warned=yes ;;
3297 esac
3298 CC=$ac_ct_CC
3299 fi
3300 else
3301 CC="$ac_cv_prog_CC"
3302 fi
3303
3304 if test -z "$CC"; then
3305 if test -n "$ac_tool_prefix"; then
3306 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3307 set dummy ${ac_tool_prefix}cc; ac_word=$2
3308 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3309 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3310 if test "${ac_cv_prog_CC+set}" = set; then
3311 echo $ECHO_N "(cached) $ECHO_C" >&6
3312 else
3313 if test -n "$CC"; then
3314 ac_cv_prog_CC="$CC" # Let the user override the test.
3315 else
3316 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3317 for as_dir in $PATH
3318 do
3319 IFS=$as_save_IFS
3320 test -z "$as_dir" && as_dir=.
3321 for ac_exec_ext in '' $ac_executable_extensions; do
3322 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3323 ac_cv_prog_CC="${ac_tool_prefix}cc"
3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3325 break 2
3326 fi
3327 done
3328 done
3329 IFS=$as_save_IFS
3330
3331 fi
3332 fi
3333 CC=$ac_cv_prog_CC
3334 if test -n "$CC"; then
3335 { echo "$as_me:$LINENO: result: $CC" >&5
3336 echo "${ECHO_T}$CC" >&6; }
3337 else
3338 { echo "$as_me:$LINENO: result: no" >&5
3339 echo "${ECHO_T}no" >&6; }
3340 fi
3341
3342
3343 fi
3344 fi
3345 if test -z "$CC"; then
3346 # Extract the first word of "cc", so it can be a program name with args.
3347 set dummy cc; ac_word=$2
3348 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3349 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3350 if test "${ac_cv_prog_CC+set}" = set; then
3351 echo $ECHO_N "(cached) $ECHO_C" >&6
3352 else
3353 if test -n "$CC"; then
3354 ac_cv_prog_CC="$CC" # Let the user override the test.
3355 else
3356 ac_prog_rejected=no
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3365 ac_prog_rejected=yes
3366 continue
3367 fi
3368 ac_cv_prog_CC="cc"
3369 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3370 break 2
3371 fi
3372 done
3373 done
3374 IFS=$as_save_IFS
3375
3376 if test $ac_prog_rejected = yes; then
3377 # We found a bogon in the path, so make sure we never use it.
3378 set dummy $ac_cv_prog_CC
3379 shift
3380 if test $# != 0; then
3381 # We chose a different compiler from the bogus one.
3382 # However, it has the same basename, so the bogon will be chosen
3383 # first if we set CC to just the basename; use the full file name.
3384 shift
3385 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3386 fi
3387 fi
3388 fi
3389 fi
3390 CC=$ac_cv_prog_CC
3391 if test -n "$CC"; then
3392 { echo "$as_me:$LINENO: result: $CC" >&5
3393 echo "${ECHO_T}$CC" >&6; }
3394 else
3395 { echo "$as_me:$LINENO: result: no" >&5
3396 echo "${ECHO_T}no" >&6; }
3397 fi
3398
3399
3400 fi
3401 if test -z "$CC"; then
3402 if test -n "$ac_tool_prefix"; then
3403 for ac_prog in cl.exe
3404 do
3405 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3406 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3407 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3408 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3409 if test "${ac_cv_prog_CC+set}" = set; then
3410 echo $ECHO_N "(cached) $ECHO_C" >&6
3411 else
3412 if test -n "$CC"; then
3413 ac_cv_prog_CC="$CC" # Let the user override the test.
3414 else
3415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3416 for as_dir in $PATH
3417 do
3418 IFS=$as_save_IFS
3419 test -z "$as_dir" && as_dir=.
3420 for ac_exec_ext in '' $ac_executable_extensions; do
3421 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3422 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3423 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3424 break 2
3425 fi
3426 done
3427 done
3428 IFS=$as_save_IFS
3429
3430 fi
3431 fi
3432 CC=$ac_cv_prog_CC
3433 if test -n "$CC"; then
3434 { echo "$as_me:$LINENO: result: $CC" >&5
3435 echo "${ECHO_T}$CC" >&6; }
3436 else
3437 { echo "$as_me:$LINENO: result: no" >&5
3438 echo "${ECHO_T}no" >&6; }
3439 fi
3440
3441
3442 test -n "$CC" && break
3443 done
3444 fi
3445 if test -z "$CC"; then
3446 ac_ct_CC=$CC
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_prog", so it can be a program name with args.
3450 set dummy $ac_prog; ac_word=$2
3451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -n "$ac_ct_CC"; then
3457 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_ac_ct_CC="$ac_prog"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3477 if test -n "$ac_ct_CC"; then
3478 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3479 echo "${ECHO_T}$ac_ct_CC" >&6; }
3480 else
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3483 fi
3484
3485
3486 test -n "$ac_ct_CC" && break
3487 done
3488
3489 if test "x$ac_ct_CC" = x; then
3490 CC=""
3491 else
3492 case $cross_compiling:$ac_tool_warned in
3493 yes:)
3494 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3495 whose name does not start with the host triplet. If you think this
3496 configuration is useful to you, please write to autoconf@gnu.org." >&5
3497 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3498 whose name does not start with the host triplet. If you think this
3499 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3500 ac_tool_warned=yes ;;
3501 esac
3502 CC=$ac_ct_CC
3503 fi
3504 fi
3505
3506 fi
3507
3508
3509 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3510 See \`config.log' for more details." >&5
3511 echo "$as_me: error: no acceptable C compiler found in \$PATH
3512 See \`config.log' for more details." >&2;}
3513 { (exit 1); exit 1; }; }
3514
3515 # Provide some information about the compiler.
3516 echo "$as_me:$LINENO: checking for C compiler version" >&5
3517 ac_compiler=`set X $ac_compile; echo $2`
3518 { (ac_try="$ac_compiler --version >&5"
3519 case "(($ac_try" in
3520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3521 *) ac_try_echo=$ac_try;;
3522 esac
3523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3524 (eval "$ac_compiler --version >&5") 2>&5
3525 ac_status=$?
3526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3527 (exit $ac_status); }
3528 { (ac_try="$ac_compiler -v >&5"
3529 case "(($ac_try" in
3530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3531 *) ac_try_echo=$ac_try;;
3532 esac
3533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3534 (eval "$ac_compiler -v >&5") 2>&5
3535 ac_status=$?
3536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3537 (exit $ac_status); }
3538 { (ac_try="$ac_compiler -V >&5"
3539 case "(($ac_try" in
3540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3541 *) ac_try_echo=$ac_try;;
3542 esac
3543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3544 (eval "$ac_compiler -V >&5") 2>&5
3545 ac_status=$?
3546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3547 (exit $ac_status); }
3548
3549 cat >conftest.$ac_ext <<_ACEOF
3550 /* confdefs.h. */
3551 _ACEOF
3552 cat confdefs.h >>conftest.$ac_ext
3553 cat >>conftest.$ac_ext <<_ACEOF
3554 /* end confdefs.h. */
3555
3556 int
3557 main ()
3558 {
3559
3560 ;
3561 return 0;
3562 }
3563 _ACEOF
3564 ac_clean_files_save=$ac_clean_files
3565 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3566 # Try to create an executable without -o first, disregard a.out.
3567 # It will help us diagnose broken compilers, and finding out an intuition
3568 # of exeext.
3569 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3570 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3571 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3572 #
3573 # List of possible output files, starting from the most likely.
3574 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3575 # only as a last resort. b.out is created by i960 compilers.
3576 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3577 #
3578 # The IRIX 6 linker writes into existing files which may not be
3579 # executable, retaining their permissions. Remove them first so a
3580 # subsequent execution test works.
3581 ac_rmfiles=
3582 for ac_file in $ac_files
3583 do
3584 case $ac_file in
3585 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3586 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3587 esac
3588 done
3589 rm -f $ac_rmfiles
3590
3591 if { (ac_try="$ac_link_default"
3592 case "(($ac_try" in
3593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3594 *) ac_try_echo=$ac_try;;
3595 esac
3596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3597 (eval "$ac_link_default") 2>&5
3598 ac_status=$?
3599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3600 (exit $ac_status); }; then
3601 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3602 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3603 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3604 # so that the user can short-circuit this test for compilers unknown to
3605 # Autoconf.
3606 for ac_file in $ac_files ''
3607 do
3608 test -f "$ac_file" || continue
3609 case $ac_file in
3610 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3611 ;;
3612 [ab].out )
3613 # We found the default executable, but exeext='' is most
3614 # certainly right.
3615 break;;
3616 *.* )
3617 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3618 then :; else
3619 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3620 fi
3621 # We set ac_cv_exeext here because the later test for it is not
3622 # safe: cross compilers may not add the suffix if given an `-o'
3623 # argument, so we may need to know it at that point already.
3624 # Even if this section looks crufty: it has the advantage of
3625 # actually working.
3626 break;;
3627 * )
3628 break;;
3629 esac
3630 done
3631 test "$ac_cv_exeext" = no && ac_cv_exeext=
3632
3633 else
3634 ac_file=''
3635 fi
3636
3637 { echo "$as_me:$LINENO: result: $ac_file" >&5
3638 echo "${ECHO_T}$ac_file" >&6; }
3639 if test -z "$ac_file"; then
3640 echo "$as_me: failed program was:" >&5
3641 sed 's/^/| /' conftest.$ac_ext >&5
3642
3643 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3644 See \`config.log' for more details." >&5
3645 echo "$as_me: error: C compiler cannot create executables
3646 See \`config.log' for more details." >&2;}
3647 { (exit 77); exit 77; }; }
3648 fi
3649
3650 ac_exeext=$ac_cv_exeext
3651
3652 # Check that the compiler produces executables we can run. If not, either
3653 # the compiler is broken, or we cross compile.
3654 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3655 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3656 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3657 # If not cross compiling, check that we can run a simple program.
3658 if test "$cross_compiling" != yes; then
3659 if { ac_try='./$ac_file'
3660 { (case "(($ac_try" in
3661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3662 *) ac_try_echo=$ac_try;;
3663 esac
3664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3665 (eval "$ac_try") 2>&5
3666 ac_status=$?
3667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3668 (exit $ac_status); }; }; then
3669 cross_compiling=no
3670 else
3671 if test "$cross_compiling" = maybe; then
3672 cross_compiling=yes
3673 else
3674 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3675 If you meant to cross compile, use \`--host'.
3676 See \`config.log' for more details." >&5
3677 echo "$as_me: error: cannot run C compiled programs.
3678 If you meant to cross compile, use \`--host'.
3679 See \`config.log' for more details." >&2;}
3680 { (exit 1); exit 1; }; }
3681 fi
3682 fi
3683 fi
3684 { echo "$as_me:$LINENO: result: yes" >&5
3685 echo "${ECHO_T}yes" >&6; }
3686
3687 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3688 ac_clean_files=$ac_clean_files_save
3689 # Check that the compiler produces executables we can run. If not, either
3690 # the compiler is broken, or we cross compile.
3691 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3692 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3693 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3694 echo "${ECHO_T}$cross_compiling" >&6; }
3695
3696 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3697 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3698 if { (ac_try="$ac_link"
3699 case "(($ac_try" in
3700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3701 *) ac_try_echo=$ac_try;;
3702 esac
3703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3704 (eval "$ac_link") 2>&5
3705 ac_status=$?
3706 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3707 (exit $ac_status); }; then
3708 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3709 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3710 # work properly (i.e., refer to `conftest.exe'), while it won't with
3711 # `rm'.
3712 for ac_file in conftest.exe conftest conftest.*; do
3713 test -f "$ac_file" || continue
3714 case $ac_file in
3715 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3716 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3717 break;;
3718 * ) break;;
3719 esac
3720 done
3721 else
3722 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3723 See \`config.log' for more details." >&5
3724 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3725 See \`config.log' for more details." >&2;}
3726 { (exit 1); exit 1; }; }
3727 fi
3728
3729 rm -f conftest$ac_cv_exeext
3730 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3731 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3732
3733 rm -f conftest.$ac_ext
3734 EXEEXT=$ac_cv_exeext
3735 ac_exeext=$EXEEXT
3736 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3737 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3738 if test "${ac_cv_objext+set}" = set; then
3739 echo $ECHO_N "(cached) $ECHO_C" >&6
3740 else
3741 cat >conftest.$ac_ext <<_ACEOF
3742 /* confdefs.h. */
3743 _ACEOF
3744 cat confdefs.h >>conftest.$ac_ext
3745 cat >>conftest.$ac_ext <<_ACEOF
3746 /* end confdefs.h. */
3747
3748 int
3749 main ()
3750 {
3751
3752 ;
3753 return 0;
3754 }
3755 _ACEOF
3756 rm -f conftest.o conftest.obj
3757 if { (ac_try="$ac_compile"
3758 case "(($ac_try" in
3759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3760 *) ac_try_echo=$ac_try;;
3761 esac
3762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3763 (eval "$ac_compile") 2>&5
3764 ac_status=$?
3765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3766 (exit $ac_status); }; then
3767 for ac_file in conftest.o conftest.obj conftest.*; do
3768 test -f "$ac_file" || continue;
3769 case $ac_file in
3770 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3771 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3772 break;;
3773 esac
3774 done
3775 else
3776 echo "$as_me: failed program was:" >&5
3777 sed 's/^/| /' conftest.$ac_ext >&5
3778
3779 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3780 See \`config.log' for more details." >&5
3781 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3782 See \`config.log' for more details." >&2;}
3783 { (exit 1); exit 1; }; }
3784 fi
3785
3786 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3787 fi
3788 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3789 echo "${ECHO_T}$ac_cv_objext" >&6; }
3790 OBJEXT=$ac_cv_objext
3791 ac_objext=$OBJEXT
3792 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3793 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3794 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3795 echo $ECHO_N "(cached) $ECHO_C" >&6
3796 else
3797 cat >conftest.$ac_ext <<_ACEOF
3798 /* confdefs.h. */
3799 _ACEOF
3800 cat confdefs.h >>conftest.$ac_ext
3801 cat >>conftest.$ac_ext <<_ACEOF
3802 /* end confdefs.h. */
3803
3804 int
3805 main ()
3806 {
3807 #ifndef __GNUC__
3808 choke me
3809 #endif
3810
3811 ;
3812 return 0;
3813 }
3814 _ACEOF
3815 rm -f conftest.$ac_objext
3816 if { (ac_try="$ac_compile"
3817 case "(($ac_try" in
3818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3819 *) ac_try_echo=$ac_try;;
3820 esac
3821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3822 (eval "$ac_compile") 2>conftest.er1
3823 ac_status=$?
3824 grep -v '^ *+' conftest.er1 >conftest.err
3825 rm -f conftest.er1
3826 cat conftest.err >&5
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); } && {
3829 test -z "$ac_c_werror_flag" ||
3830 test ! -s conftest.err
3831 } && test -s conftest.$ac_objext; then
3832 ac_compiler_gnu=yes
3833 else
3834 echo "$as_me: failed program was:" >&5
3835 sed 's/^/| /' conftest.$ac_ext >&5
3836
3837 ac_compiler_gnu=no
3838 fi
3839
3840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3841 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3842
3843 fi
3844 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3845 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3846 GCC=`test $ac_compiler_gnu = yes && echo yes`
3847 ac_test_CFLAGS=${CFLAGS+set}
3848 ac_save_CFLAGS=$CFLAGS
3849 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3850 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3851 if test "${ac_cv_prog_cc_g+set}" = set; then
3852 echo $ECHO_N "(cached) $ECHO_C" >&6
3853 else
3854 ac_save_c_werror_flag=$ac_c_werror_flag
3855 ac_c_werror_flag=yes
3856 ac_cv_prog_cc_g=no
3857 CFLAGS="-g"
3858 cat >conftest.$ac_ext <<_ACEOF
3859 /* confdefs.h. */
3860 _ACEOF
3861 cat confdefs.h >>conftest.$ac_ext
3862 cat >>conftest.$ac_ext <<_ACEOF
3863 /* end confdefs.h. */
3864
3865 int
3866 main ()
3867 {
3868
3869 ;
3870 return 0;
3871 }
3872 _ACEOF
3873 rm -f conftest.$ac_objext
3874 if { (ac_try="$ac_compile"
3875 case "(($ac_try" in
3876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3877 *) ac_try_echo=$ac_try;;
3878 esac
3879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3880 (eval "$ac_compile") 2>conftest.er1
3881 ac_status=$?
3882 grep -v '^ *+' conftest.er1 >conftest.err
3883 rm -f conftest.er1
3884 cat conftest.err >&5
3885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3886 (exit $ac_status); } && {
3887 test -z "$ac_c_werror_flag" ||
3888 test ! -s conftest.err
3889 } && test -s conftest.$ac_objext; then
3890 ac_cv_prog_cc_g=yes
3891 else
3892 echo "$as_me: failed program was:" >&5
3893 sed 's/^/| /' conftest.$ac_ext >&5
3894
3895 CFLAGS=""
3896 cat >conftest.$ac_ext <<_ACEOF
3897 /* confdefs.h. */
3898 _ACEOF
3899 cat confdefs.h >>conftest.$ac_ext
3900 cat >>conftest.$ac_ext <<_ACEOF
3901 /* end confdefs.h. */
3902
3903 int
3904 main ()
3905 {
3906
3907 ;
3908 return 0;
3909 }
3910 _ACEOF
3911 rm -f conftest.$ac_objext
3912 if { (ac_try="$ac_compile"
3913 case "(($ac_try" in
3914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3915 *) ac_try_echo=$ac_try;;
3916 esac
3917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3918 (eval "$ac_compile") 2>conftest.er1
3919 ac_status=$?
3920 grep -v '^ *+' conftest.er1 >conftest.err
3921 rm -f conftest.er1
3922 cat conftest.err >&5
3923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3924 (exit $ac_status); } && {
3925 test -z "$ac_c_werror_flag" ||
3926 test ! -s conftest.err
3927 } && test -s conftest.$ac_objext; then
3928 :
3929 else
3930 echo "$as_me: failed program was:" >&5
3931 sed 's/^/| /' conftest.$ac_ext >&5
3932
3933 ac_c_werror_flag=$ac_save_c_werror_flag
3934 CFLAGS="-g"
3935 cat >conftest.$ac_ext <<_ACEOF
3936 /* confdefs.h. */
3937 _ACEOF
3938 cat confdefs.h >>conftest.$ac_ext
3939 cat >>conftest.$ac_ext <<_ACEOF
3940 /* end confdefs.h. */
3941
3942 int
3943 main ()
3944 {
3945
3946 ;
3947 return 0;
3948 }
3949 _ACEOF
3950 rm -f conftest.$ac_objext
3951 if { (ac_try="$ac_compile"
3952 case "(($ac_try" in
3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3954 *) ac_try_echo=$ac_try;;
3955 esac
3956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3957 (eval "$ac_compile") 2>conftest.er1
3958 ac_status=$?
3959 grep -v '^ *+' conftest.er1 >conftest.err
3960 rm -f conftest.er1
3961 cat conftest.err >&5
3962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3963 (exit $ac_status); } && {
3964 test -z "$ac_c_werror_flag" ||
3965 test ! -s conftest.err
3966 } && test -s conftest.$ac_objext; then
3967 ac_cv_prog_cc_g=yes
3968 else
3969 echo "$as_me: failed program was:" >&5
3970 sed 's/^/| /' conftest.$ac_ext >&5
3971
3972
3973 fi
3974
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3976 fi
3977
3978 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3979 fi
3980
3981 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 ac_c_werror_flag=$ac_save_c_werror_flag
3983 fi
3984 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3985 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3986 if test "$ac_test_CFLAGS" = set; then
3987 CFLAGS=$ac_save_CFLAGS
3988 elif test $ac_cv_prog_cc_g = yes; then
3989 if test "$GCC" = yes; then
3990 CFLAGS="-g -O2"
3991 else
3992 CFLAGS="-g"
3993 fi
3994 else
3995 if test "$GCC" = yes; then
3996 CFLAGS="-O2"
3997 else
3998 CFLAGS=
3999 fi
4000 fi
4001 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4002 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4003 if test "${ac_cv_prog_cc_c89+set}" = set; then
4004 echo $ECHO_N "(cached) $ECHO_C" >&6
4005 else
4006 ac_cv_prog_cc_c89=no
4007 ac_save_CC=$CC
4008 cat >conftest.$ac_ext <<_ACEOF
4009 /* confdefs.h. */
4010 _ACEOF
4011 cat confdefs.h >>conftest.$ac_ext
4012 cat >>conftest.$ac_ext <<_ACEOF
4013 /* end confdefs.h. */
4014 #include <stdarg.h>
4015 #include <stdio.h>
4016 #include <sys/types.h>
4017 #include <sys/stat.h>
4018 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4019 struct buf { int x; };
4020 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4021 static char *e (p, i)
4022 char **p;
4023 int i;
4024 {
4025 return p[i];
4026 }
4027 static char *f (char * (*g) (char **, int), char **p, ...)
4028 {
4029 char *s;
4030 va_list v;
4031 va_start (v,p);
4032 s = g (p, va_arg (v,int));
4033 va_end (v);
4034 return s;
4035 }
4036
4037 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4038 function prototypes and stuff, but not '\xHH' hex character constants.
4039 These don't provoke an error unfortunately, instead are silently treated
4040 as 'x'. The following induces an error, until -std is added to get
4041 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4042 array size at least. It's necessary to write '\x00'==0 to get something
4043 that's true only with -std. */
4044 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4045
4046 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4047 inside strings and character constants. */
4048 #define FOO(x) 'x'
4049 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4050
4051 int test (int i, double x);
4052 struct s1 {int (*f) (int a);};
4053 struct s2 {int (*f) (double a);};
4054 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4055 int argc;
4056 char **argv;
4057 int
4058 main ()
4059 {
4060 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4061 ;
4062 return 0;
4063 }
4064 _ACEOF
4065 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4066 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4067 do
4068 CC="$ac_save_CC $ac_arg"
4069 rm -f conftest.$ac_objext
4070 if { (ac_try="$ac_compile"
4071 case "(($ac_try" in
4072 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4073 *) ac_try_echo=$ac_try;;
4074 esac
4075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4076 (eval "$ac_compile") 2>conftest.er1
4077 ac_status=$?
4078 grep -v '^ *+' conftest.er1 >conftest.err
4079 rm -f conftest.er1
4080 cat conftest.err >&5
4081 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4082 (exit $ac_status); } && {
4083 test -z "$ac_c_werror_flag" ||
4084 test ! -s conftest.err
4085 } && test -s conftest.$ac_objext; then
4086 ac_cv_prog_cc_c89=$ac_arg
4087 else
4088 echo "$as_me: failed program was:" >&5
4089 sed 's/^/| /' conftest.$ac_ext >&5
4090
4091
4092 fi
4093
4094 rm -f core conftest.err conftest.$ac_objext
4095 test "x$ac_cv_prog_cc_c89" != "xno" && break
4096 done
4097 rm -f conftest.$ac_ext
4098 CC=$ac_save_CC
4099
4100 fi
4101 # AC_CACHE_VAL
4102 case "x$ac_cv_prog_cc_c89" in
4103 x)
4104 { echo "$as_me:$LINENO: result: none needed" >&5
4105 echo "${ECHO_T}none needed" >&6; } ;;
4106 xno)
4107 { echo "$as_me:$LINENO: result: unsupported" >&5
4108 echo "${ECHO_T}unsupported" >&6; } ;;
4109 *)
4110 CC="$CC $ac_cv_prog_cc_c89"
4111 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4112 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4113 esac
4114
4115
4116 ac_ext=c
4117 ac_cpp='$CPP $CPPFLAGS'
4118 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4121
4122
4123 # On Suns, sometimes $CPP names a directory.
4124 if test -n "$CPP" && test -d "$CPP"; then
4125 CPP=
4126 fi
4127
4128 #### Some systems specify a CPP to use unless we are using GCC.
4129 #### Now that we know whether we are using GCC, we can decide whether
4130 #### to use that one.
4131 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4132 then
4133 CPP="$NON_GNU_CPP"
4134 fi
4135
4136 #### Some systems specify a CC to use unless we are using GCC.
4137 #### Now that we know whether we are using GCC, we can decide whether
4138 #### to use that one.
4139 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4140 test x$cc_specified != xyes
4141 then
4142 CC="$NON_GNU_CC"
4143 fi
4144
4145 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4146 then
4147 CC="$CC $GCC_TEST_OPTIONS"
4148 fi
4149
4150 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4151 then
4152 CC="$CC $NON_GCC_TEST_OPTIONS"
4153 fi
4154
4155
4156 ac_ext=c
4157 ac_cpp='$CPP $CPPFLAGS'
4158 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4159 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4160 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4161 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4162 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4163 # On Suns, sometimes $CPP names a directory.
4164 if test -n "$CPP" && test -d "$CPP"; then
4165 CPP=
4166 fi
4167 if test -z "$CPP"; then
4168 if test "${ac_cv_prog_CPP+set}" = set; then
4169 echo $ECHO_N "(cached) $ECHO_C" >&6
4170 else
4171 # Double quotes because CPP needs to be expanded
4172 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4173 do
4174 ac_preproc_ok=false
4175 for ac_c_preproc_warn_flag in '' yes
4176 do
4177 # Use a header file that comes with gcc, so configuring glibc
4178 # with a fresh cross-compiler works.
4179 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4180 # <limits.h> exists even on freestanding compilers.
4181 # On the NeXT, cc -E runs the code through the compiler's parser,
4182 # not just through cpp. "Syntax error" is here to catch this case.
4183 cat >conftest.$ac_ext <<_ACEOF
4184 /* confdefs.h. */
4185 _ACEOF
4186 cat confdefs.h >>conftest.$ac_ext
4187 cat >>conftest.$ac_ext <<_ACEOF
4188 /* end confdefs.h. */
4189 #ifdef __STDC__
4190 # include <limits.h>
4191 #else
4192 # include <assert.h>
4193 #endif
4194 Syntax error
4195 _ACEOF
4196 if { (ac_try="$ac_cpp conftest.$ac_ext"
4197 case "(($ac_try" in
4198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4199 *) ac_try_echo=$ac_try;;
4200 esac
4201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4202 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4203 ac_status=$?
4204 grep -v '^ *+' conftest.er1 >conftest.err
4205 rm -f conftest.er1
4206 cat conftest.err >&5
4207 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4208 (exit $ac_status); } >/dev/null && {
4209 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4210 test ! -s conftest.err
4211 }; then
4212 :
4213 else
4214 echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 # Broken: fails on valid input.
4218 continue
4219 fi
4220
4221 rm -f conftest.err conftest.$ac_ext
4222
4223 # OK, works on sane cases. Now check whether nonexistent headers
4224 # can be detected and how.
4225 cat >conftest.$ac_ext <<_ACEOF
4226 /* confdefs.h. */
4227 _ACEOF
4228 cat confdefs.h >>conftest.$ac_ext
4229 cat >>conftest.$ac_ext <<_ACEOF
4230 /* end confdefs.h. */
4231 #include <ac_nonexistent.h>
4232 _ACEOF
4233 if { (ac_try="$ac_cpp conftest.$ac_ext"
4234 case "(($ac_try" in
4235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4236 *) ac_try_echo=$ac_try;;
4237 esac
4238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4239 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4240 ac_status=$?
4241 grep -v '^ *+' conftest.er1 >conftest.err
4242 rm -f conftest.er1
4243 cat conftest.err >&5
4244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4245 (exit $ac_status); } >/dev/null && {
4246 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4247 test ! -s conftest.err
4248 }; then
4249 # Broken: success on invalid input.
4250 continue
4251 else
4252 echo "$as_me: failed program was:" >&5
4253 sed 's/^/| /' conftest.$ac_ext >&5
4254
4255 # Passes both tests.
4256 ac_preproc_ok=:
4257 break
4258 fi
4259
4260 rm -f conftest.err conftest.$ac_ext
4261
4262 done
4263 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4264 rm -f conftest.err conftest.$ac_ext
4265 if $ac_preproc_ok; then
4266 break
4267 fi
4268
4269 done
4270 ac_cv_prog_CPP=$CPP
4271
4272 fi
4273 CPP=$ac_cv_prog_CPP
4274 else
4275 ac_cv_prog_CPP=$CPP
4276 fi
4277 { echo "$as_me:$LINENO: result: $CPP" >&5
4278 echo "${ECHO_T}$CPP" >&6; }
4279 ac_preproc_ok=false
4280 for ac_c_preproc_warn_flag in '' yes
4281 do
4282 # Use a header file that comes with gcc, so configuring glibc
4283 # with a fresh cross-compiler works.
4284 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4285 # <limits.h> exists even on freestanding compilers.
4286 # On the NeXT, cc -E runs the code through the compiler's parser,
4287 # not just through cpp. "Syntax error" is here to catch this case.
4288 cat >conftest.$ac_ext <<_ACEOF
4289 /* confdefs.h. */
4290 _ACEOF
4291 cat confdefs.h >>conftest.$ac_ext
4292 cat >>conftest.$ac_ext <<_ACEOF
4293 /* end confdefs.h. */
4294 #ifdef __STDC__
4295 # include <limits.h>
4296 #else
4297 # include <assert.h>
4298 #endif
4299 Syntax error
4300 _ACEOF
4301 if { (ac_try="$ac_cpp conftest.$ac_ext"
4302 case "(($ac_try" in
4303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4304 *) ac_try_echo=$ac_try;;
4305 esac
4306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4307 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4308 ac_status=$?
4309 grep -v '^ *+' conftest.er1 >conftest.err
4310 rm -f conftest.er1
4311 cat conftest.err >&5
4312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4313 (exit $ac_status); } >/dev/null && {
4314 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4315 test ! -s conftest.err
4316 }; then
4317 :
4318 else
4319 echo "$as_me: failed program was:" >&5
4320 sed 's/^/| /' conftest.$ac_ext >&5
4321
4322 # Broken: fails on valid input.
4323 continue
4324 fi
4325
4326 rm -f conftest.err conftest.$ac_ext
4327
4328 # OK, works on sane cases. Now check whether nonexistent headers
4329 # can be detected and how.
4330 cat >conftest.$ac_ext <<_ACEOF
4331 /* confdefs.h. */
4332 _ACEOF
4333 cat confdefs.h >>conftest.$ac_ext
4334 cat >>conftest.$ac_ext <<_ACEOF
4335 /* end confdefs.h. */
4336 #include <ac_nonexistent.h>
4337 _ACEOF
4338 if { (ac_try="$ac_cpp conftest.$ac_ext"
4339 case "(($ac_try" in
4340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4341 *) ac_try_echo=$ac_try;;
4342 esac
4343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4345 ac_status=$?
4346 grep -v '^ *+' conftest.er1 >conftest.err
4347 rm -f conftest.er1
4348 cat conftest.err >&5
4349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4350 (exit $ac_status); } >/dev/null && {
4351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4352 test ! -s conftest.err
4353 }; then
4354 # Broken: success on invalid input.
4355 continue
4356 else
4357 echo "$as_me: failed program was:" >&5
4358 sed 's/^/| /' conftest.$ac_ext >&5
4359
4360 # Passes both tests.
4361 ac_preproc_ok=:
4362 break
4363 fi
4364
4365 rm -f conftest.err conftest.$ac_ext
4366
4367 done
4368 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4369 rm -f conftest.err conftest.$ac_ext
4370 if $ac_preproc_ok; then
4371 :
4372 else
4373 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4374 See \`config.log' for more details." >&5
4375 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4376 See \`config.log' for more details." >&2;}
4377 { (exit 1); exit 1; }; }
4378 fi
4379
4380 ac_ext=c
4381 ac_cpp='$CPP $CPPFLAGS'
4382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4385
4386
4387 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4388 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4389 if test "${ac_cv_path_GREP+set}" = set; then
4390 echo $ECHO_N "(cached) $ECHO_C" >&6
4391 else
4392 # Extract the first word of "grep ggrep" to use in msg output
4393 if test -z "$GREP"; then
4394 set dummy grep ggrep; ac_prog_name=$2
4395 if test "${ac_cv_path_GREP+set}" = set; then
4396 echo $ECHO_N "(cached) $ECHO_C" >&6
4397 else
4398 ac_path_GREP_found=false
4399 # Loop through the user's path and test for each of PROGNAME-LIST
4400 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4401 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4402 do
4403 IFS=$as_save_IFS
4404 test -z "$as_dir" && as_dir=.
4405 for ac_prog in grep ggrep; do
4406 for ac_exec_ext in '' $ac_executable_extensions; do
4407 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4408 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4409 # Check for GNU ac_path_GREP and select it if it is found.
4410 # Check for GNU $ac_path_GREP
4411 case `"$ac_path_GREP" --version 2>&1` in
4412 *GNU*)
4413 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4414 *)
4415 ac_count=0
4416 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4417 while :
4418 do
4419 cat "conftest.in" "conftest.in" >"conftest.tmp"
4420 mv "conftest.tmp" "conftest.in"
4421 cp "conftest.in" "conftest.nl"
4422 echo 'GREP' >> "conftest.nl"
4423 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4424 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4425 ac_count=`expr $ac_count + 1`
4426 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4427 # Best one so far, save it but keep looking for a better one
4428 ac_cv_path_GREP="$ac_path_GREP"
4429 ac_path_GREP_max=$ac_count
4430 fi
4431 # 10*(2^10) chars as input seems more than enough
4432 test $ac_count -gt 10 && break
4433 done
4434 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4435 esac
4436
4437
4438 $ac_path_GREP_found && break 3
4439 done
4440 done
4441
4442 done
4443 IFS=$as_save_IFS
4444
4445
4446 fi
4447
4448 GREP="$ac_cv_path_GREP"
4449 if test -z "$GREP"; then
4450 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4451 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4452 { (exit 1); exit 1; }; }
4453 fi
4454
4455 else
4456 ac_cv_path_GREP=$GREP
4457 fi
4458
4459
4460 fi
4461 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4462 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4463 GREP="$ac_cv_path_GREP"
4464
4465
4466 { echo "$as_me:$LINENO: checking for egrep" >&5
4467 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4468 if test "${ac_cv_path_EGREP+set}" = set; then
4469 echo $ECHO_N "(cached) $ECHO_C" >&6
4470 else
4471 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4472 then ac_cv_path_EGREP="$GREP -E"
4473 else
4474 # Extract the first word of "egrep" to use in msg output
4475 if test -z "$EGREP"; then
4476 set dummy egrep; ac_prog_name=$2
4477 if test "${ac_cv_path_EGREP+set}" = set; then
4478 echo $ECHO_N "(cached) $ECHO_C" >&6
4479 else
4480 ac_path_EGREP_found=false
4481 # Loop through the user's path and test for each of PROGNAME-LIST
4482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4483 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4484 do
4485 IFS=$as_save_IFS
4486 test -z "$as_dir" && as_dir=.
4487 for ac_prog in egrep; do
4488 for ac_exec_ext in '' $ac_executable_extensions; do
4489 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4490 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4491 # Check for GNU ac_path_EGREP and select it if it is found.
4492 # Check for GNU $ac_path_EGREP
4493 case `"$ac_path_EGREP" --version 2>&1` in
4494 *GNU*)
4495 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4496 *)
4497 ac_count=0
4498 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4499 while :
4500 do
4501 cat "conftest.in" "conftest.in" >"conftest.tmp"
4502 mv "conftest.tmp" "conftest.in"
4503 cp "conftest.in" "conftest.nl"
4504 echo 'EGREP' >> "conftest.nl"
4505 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4506 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4507 ac_count=`expr $ac_count + 1`
4508 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4509 # Best one so far, save it but keep looking for a better one
4510 ac_cv_path_EGREP="$ac_path_EGREP"
4511 ac_path_EGREP_max=$ac_count
4512 fi
4513 # 10*(2^10) chars as input seems more than enough
4514 test $ac_count -gt 10 && break
4515 done
4516 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4517 esac
4518
4519
4520 $ac_path_EGREP_found && break 3
4521 done
4522 done
4523
4524 done
4525 IFS=$as_save_IFS
4526
4527
4528 fi
4529
4530 EGREP="$ac_cv_path_EGREP"
4531 if test -z "$EGREP"; then
4532 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4533 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4534 { (exit 1); exit 1; }; }
4535 fi
4536
4537 else
4538 ac_cv_path_EGREP=$EGREP
4539 fi
4540
4541
4542 fi
4543 fi
4544 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4545 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4546 EGREP="$ac_cv_path_EGREP"
4547
4548
4549
4550 { echo "$as_me:$LINENO: checking for AIX" >&5
4551 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4552 cat >conftest.$ac_ext <<_ACEOF
4553 /* confdefs.h. */
4554 _ACEOF
4555 cat confdefs.h >>conftest.$ac_ext
4556 cat >>conftest.$ac_ext <<_ACEOF
4557 /* end confdefs.h. */
4558 #ifdef _AIX
4559 yes
4560 #endif
4561
4562 _ACEOF
4563 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4564 $EGREP "yes" >/dev/null 2>&1; then
4565 { echo "$as_me:$LINENO: result: yes" >&5
4566 echo "${ECHO_T}yes" >&6; }
4567 cat >>confdefs.h <<\_ACEOF
4568 #define _ALL_SOURCE 1
4569 _ACEOF
4570
4571 else
4572 { echo "$as_me:$LINENO: result: no" >&5
4573 echo "${ECHO_T}no" >&6; }
4574 fi
4575 rm -f conftest*
4576
4577
4578
4579 cat >>confdefs.h <<\_ACEOF
4580 #define _GNU_SOURCE 1
4581 _ACEOF
4582
4583
4584
4585 ### Use -Wno-pointer-sign if the compiler supports it
4586 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4587 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4588 SAVE_CFLAGS="$CFLAGS"
4589 CFLAGS="$CFLAGS -Wno-pointer-sign"
4590 cat >conftest.$ac_ext <<_ACEOF
4591 /* confdefs.h. */
4592 _ACEOF
4593 cat confdefs.h >>conftest.$ac_ext
4594 cat >>conftest.$ac_ext <<_ACEOF
4595 /* end confdefs.h. */
4596
4597 int
4598 main ()
4599 {
4600
4601 ;
4602 return 0;
4603 }
4604 _ACEOF
4605 rm -f conftest.$ac_objext
4606 if { (ac_try="$ac_compile"
4607 case "(($ac_try" in
4608 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4609 *) ac_try_echo=$ac_try;;
4610 esac
4611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4612 (eval "$ac_compile") 2>conftest.er1
4613 ac_status=$?
4614 grep -v '^ *+' conftest.er1 >conftest.err
4615 rm -f conftest.er1
4616 cat conftest.err >&5
4617 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4618 (exit $ac_status); } && {
4619 test -z "$ac_c_werror_flag" ||
4620 test ! -s conftest.err
4621 } && test -s conftest.$ac_objext; then
4622 has_option=yes
4623 else
4624 echo "$as_me: failed program was:" >&5
4625 sed 's/^/| /' conftest.$ac_ext >&5
4626
4627 has_option=no
4628 fi
4629
4630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4631 if test $has_option = yes; then
4632 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4633 fi
4634 { echo "$as_me:$LINENO: result: $has_option" >&5
4635 echo "${ECHO_T}$has_option" >&6; }
4636 CFLAGS="$SAVE_CFLAGS"
4637 unset has_option
4638 unset SAVE_CFLAGS
4639
4640 #### Some other nice autoconf tests.
4641
4642 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4643 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4644 LN_S=$as_ln_s
4645 if test "$LN_S" = "ln -s"; then
4646 { echo "$as_me:$LINENO: result: yes" >&5
4647 echo "${ECHO_T}yes" >&6; }
4648 else
4649 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4650 echo "${ECHO_T}no, using $LN_S" >&6; }
4651 fi
4652
4653 ac_ext=c
4654 ac_cpp='$CPP $CPPFLAGS'
4655 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4656 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4657 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4658 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4659 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4660 # On Suns, sometimes $CPP names a directory.
4661 if test -n "$CPP" && test -d "$CPP"; then
4662 CPP=
4663 fi
4664 if test -z "$CPP"; then
4665 if test "${ac_cv_prog_CPP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 # Double quotes because CPP needs to be expanded
4669 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4670 do
4671 ac_preproc_ok=false
4672 for ac_c_preproc_warn_flag in '' yes
4673 do
4674 # Use a header file that comes with gcc, so configuring glibc
4675 # with a fresh cross-compiler works.
4676 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4677 # <limits.h> exists even on freestanding compilers.
4678 # On the NeXT, cc -E runs the code through the compiler's parser,
4679 # not just through cpp. "Syntax error" is here to catch this case.
4680 cat >conftest.$ac_ext <<_ACEOF
4681 /* confdefs.h. */
4682 _ACEOF
4683 cat confdefs.h >>conftest.$ac_ext
4684 cat >>conftest.$ac_ext <<_ACEOF
4685 /* end confdefs.h. */
4686 #ifdef __STDC__
4687 # include <limits.h>
4688 #else
4689 # include <assert.h>
4690 #endif
4691 Syntax error
4692 _ACEOF
4693 if { (ac_try="$ac_cpp conftest.$ac_ext"
4694 case "(($ac_try" in
4695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4696 *) ac_try_echo=$ac_try;;
4697 esac
4698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4699 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4700 ac_status=$?
4701 grep -v '^ *+' conftest.er1 >conftest.err
4702 rm -f conftest.er1
4703 cat conftest.err >&5
4704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4705 (exit $ac_status); } >/dev/null && {
4706 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4707 test ! -s conftest.err
4708 }; then
4709 :
4710 else
4711 echo "$as_me: failed program was:" >&5
4712 sed 's/^/| /' conftest.$ac_ext >&5
4713
4714 # Broken: fails on valid input.
4715 continue
4716 fi
4717
4718 rm -f conftest.err conftest.$ac_ext
4719
4720 # OK, works on sane cases. Now check whether nonexistent headers
4721 # can be detected and how.
4722 cat >conftest.$ac_ext <<_ACEOF
4723 /* confdefs.h. */
4724 _ACEOF
4725 cat confdefs.h >>conftest.$ac_ext
4726 cat >>conftest.$ac_ext <<_ACEOF
4727 /* end confdefs.h. */
4728 #include <ac_nonexistent.h>
4729 _ACEOF
4730 if { (ac_try="$ac_cpp conftest.$ac_ext"
4731 case "(($ac_try" in
4732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4733 *) ac_try_echo=$ac_try;;
4734 esac
4735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4736 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4737 ac_status=$?
4738 grep -v '^ *+' conftest.er1 >conftest.err
4739 rm -f conftest.er1
4740 cat conftest.err >&5
4741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4742 (exit $ac_status); } >/dev/null && {
4743 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4744 test ! -s conftest.err
4745 }; then
4746 # Broken: success on invalid input.
4747 continue
4748 else
4749 echo "$as_me: failed program was:" >&5
4750 sed 's/^/| /' conftest.$ac_ext >&5
4751
4752 # Passes both tests.
4753 ac_preproc_ok=:
4754 break
4755 fi
4756
4757 rm -f conftest.err conftest.$ac_ext
4758
4759 done
4760 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4761 rm -f conftest.err conftest.$ac_ext
4762 if $ac_preproc_ok; then
4763 break
4764 fi
4765
4766 done
4767 ac_cv_prog_CPP=$CPP
4768
4769 fi
4770 CPP=$ac_cv_prog_CPP
4771 else
4772 ac_cv_prog_CPP=$CPP
4773 fi
4774 { echo "$as_me:$LINENO: result: $CPP" >&5
4775 echo "${ECHO_T}$CPP" >&6; }
4776 ac_preproc_ok=false
4777 for ac_c_preproc_warn_flag in '' yes
4778 do
4779 # Use a header file that comes with gcc, so configuring glibc
4780 # with a fresh cross-compiler works.
4781 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4782 # <limits.h> exists even on freestanding compilers.
4783 # On the NeXT, cc -E runs the code through the compiler's parser,
4784 # not just through cpp. "Syntax error" is here to catch this case.
4785 cat >conftest.$ac_ext <<_ACEOF
4786 /* confdefs.h. */
4787 _ACEOF
4788 cat confdefs.h >>conftest.$ac_ext
4789 cat >>conftest.$ac_ext <<_ACEOF
4790 /* end confdefs.h. */
4791 #ifdef __STDC__
4792 # include <limits.h>
4793 #else
4794 # include <assert.h>
4795 #endif
4796 Syntax error
4797 _ACEOF
4798 if { (ac_try="$ac_cpp conftest.$ac_ext"
4799 case "(($ac_try" in
4800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4801 *) ac_try_echo=$ac_try;;
4802 esac
4803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4804 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4805 ac_status=$?
4806 grep -v '^ *+' conftest.er1 >conftest.err
4807 rm -f conftest.er1
4808 cat conftest.err >&5
4809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4810 (exit $ac_status); } >/dev/null && {
4811 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4812 test ! -s conftest.err
4813 }; then
4814 :
4815 else
4816 echo "$as_me: failed program was:" >&5
4817 sed 's/^/| /' conftest.$ac_ext >&5
4818
4819 # Broken: fails on valid input.
4820 continue
4821 fi
4822
4823 rm -f conftest.err conftest.$ac_ext
4824
4825 # OK, works on sane cases. Now check whether nonexistent headers
4826 # can be detected and how.
4827 cat >conftest.$ac_ext <<_ACEOF
4828 /* confdefs.h. */
4829 _ACEOF
4830 cat confdefs.h >>conftest.$ac_ext
4831 cat >>conftest.$ac_ext <<_ACEOF
4832 /* end confdefs.h. */
4833 #include <ac_nonexistent.h>
4834 _ACEOF
4835 if { (ac_try="$ac_cpp conftest.$ac_ext"
4836 case "(($ac_try" in
4837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4838 *) ac_try_echo=$ac_try;;
4839 esac
4840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4841 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4842 ac_status=$?
4843 grep -v '^ *+' conftest.er1 >conftest.err
4844 rm -f conftest.er1
4845 cat conftest.err >&5
4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4847 (exit $ac_status); } >/dev/null && {
4848 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4849 test ! -s conftest.err
4850 }; then
4851 # Broken: success on invalid input.
4852 continue
4853 else
4854 echo "$as_me: failed program was:" >&5
4855 sed 's/^/| /' conftest.$ac_ext >&5
4856
4857 # Passes both tests.
4858 ac_preproc_ok=:
4859 break
4860 fi
4861
4862 rm -f conftest.err conftest.$ac_ext
4863
4864 done
4865 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4866 rm -f conftest.err conftest.$ac_ext
4867 if $ac_preproc_ok; then
4868 :
4869 else
4870 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4871 See \`config.log' for more details." >&5
4872 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4873 See \`config.log' for more details." >&2;}
4874 { (exit 1); exit 1; }; }
4875 fi
4876
4877 ac_ext=c
4878 ac_cpp='$CPP $CPPFLAGS'
4879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4882
4883 # Find a good install program. We prefer a C program (faster),
4884 # so one script is as good as another. But avoid the broken or
4885 # incompatible versions:
4886 # SysV /etc/install, /usr/sbin/install
4887 # SunOS /usr/etc/install
4888 # IRIX /sbin/install
4889 # AIX /bin/install
4890 # AmigaOS /C/install, which installs bootblocks on floppy discs
4891 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4892 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4893 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4894 # OS/2's system install, which has a completely different semantic
4895 # ./install, which can be erroneously created by make from ./install.sh.
4896 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4897 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4898 if test -z "$INSTALL"; then
4899 if test "${ac_cv_path_install+set}" = set; then
4900 echo $ECHO_N "(cached) $ECHO_C" >&6
4901 else
4902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4903 for as_dir in $PATH
4904 do
4905 IFS=$as_save_IFS
4906 test -z "$as_dir" && as_dir=.
4907 # Account for people who put trailing slashes in PATH elements.
4908 case $as_dir/ in
4909 ./ | .// | /cC/* | \
4910 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4911 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4912 /usr/ucb/* ) ;;
4913 *)
4914 # OSF1 and SCO ODT 3.0 have their own names for install.
4915 # Don't use installbsd from OSF since it installs stuff as root
4916 # by default.
4917 for ac_prog in ginstall scoinst install; do
4918 for ac_exec_ext in '' $ac_executable_extensions; do
4919 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4920 if test $ac_prog = install &&
4921 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4922 # AIX install. It has an incompatible calling convention.
4923 :
4924 elif test $ac_prog = install &&
4925 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4926 # program-specific install script used by HP pwplus--don't use.
4927 :
4928 else
4929 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4930 break 3
4931 fi
4932 fi
4933 done
4934 done
4935 ;;
4936 esac
4937 done
4938 IFS=$as_save_IFS
4939
4940
4941 fi
4942 if test "${ac_cv_path_install+set}" = set; then
4943 INSTALL=$ac_cv_path_install
4944 else
4945 # As a last resort, use the slow shell script. Don't cache a
4946 # value for INSTALL within a source directory, because that will
4947 # break other packages using the cache if that directory is
4948 # removed, or if the value is a relative name.
4949 INSTALL=$ac_install_sh
4950 fi
4951 fi
4952 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4953 echo "${ECHO_T}$INSTALL" >&6; }
4954
4955 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4956 # It thinks the first close brace ends the variable substitution.
4957 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4958
4959 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4960
4961 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4962
4963 if test "x$RANLIB" = x; then
4964 if test -n "$ac_tool_prefix"; then
4965 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4966 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4967 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4968 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4969 if test "${ac_cv_prog_RANLIB+set}" = set; then
4970 echo $ECHO_N "(cached) $ECHO_C" >&6
4971 else
4972 if test -n "$RANLIB"; then
4973 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4974 else
4975 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4976 for as_dir in $PATH
4977 do
4978 IFS=$as_save_IFS
4979 test -z "$as_dir" && as_dir=.
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4982 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4983 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4984 break 2
4985 fi
4986 done
4987 done
4988 IFS=$as_save_IFS
4989
4990 fi
4991 fi
4992 RANLIB=$ac_cv_prog_RANLIB
4993 if test -n "$RANLIB"; then
4994 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4995 echo "${ECHO_T}$RANLIB" >&6; }
4996 else
4997 { echo "$as_me:$LINENO: result: no" >&5
4998 echo "${ECHO_T}no" >&6; }
4999 fi
5000
5001
5002 fi
5003 if test -z "$ac_cv_prog_RANLIB"; then
5004 ac_ct_RANLIB=$RANLIB
5005 # Extract the first word of "ranlib", so it can be a program name with args.
5006 set dummy ranlib; ac_word=$2
5007 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5008 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5009 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5010 echo $ECHO_N "(cached) $ECHO_C" >&6
5011 else
5012 if test -n "$ac_ct_RANLIB"; then
5013 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5014 else
5015 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5016 for as_dir in $PATH
5017 do
5018 IFS=$as_save_IFS
5019 test -z "$as_dir" && as_dir=.
5020 for ac_exec_ext in '' $ac_executable_extensions; do
5021 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5022 ac_cv_prog_ac_ct_RANLIB="ranlib"
5023 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5024 break 2
5025 fi
5026 done
5027 done
5028 IFS=$as_save_IFS
5029
5030 fi
5031 fi
5032 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5033 if test -n "$ac_ct_RANLIB"; then
5034 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5035 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5036 else
5037 { echo "$as_me:$LINENO: result: no" >&5
5038 echo "${ECHO_T}no" >&6; }
5039 fi
5040
5041 if test "x$ac_ct_RANLIB" = x; then
5042 RANLIB=":"
5043 else
5044 case $cross_compiling:$ac_tool_warned in
5045 yes:)
5046 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5047 whose name does not start with the host triplet. If you think this
5048 configuration is useful to you, please write to autoconf@gnu.org." >&5
5049 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5050 whose name does not start with the host triplet. If you think this
5051 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5052 ac_tool_warned=yes ;;
5053 esac
5054 RANLIB=$ac_ct_RANLIB
5055 fi
5056 else
5057 RANLIB="$ac_cv_prog_RANLIB"
5058 fi
5059
5060 fi
5061 # Extract the first word of "install-info", so it can be a program name with args.
5062 set dummy install-info; ac_word=$2
5063 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5064 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5065 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5066 echo $ECHO_N "(cached) $ECHO_C" >&6
5067 else
5068 case $INSTALL_INFO in
5069 [\\/]* | ?:[\\/]*)
5070 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5071 ;;
5072 *)
5073 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5074 for as_dir in $PATH
5075 do
5076 IFS=$as_save_IFS
5077 test -z "$as_dir" && as_dir=.
5078 for ac_exec_ext in '' $ac_executable_extensions; do
5079 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5080 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5081 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5082 break 2
5083 fi
5084 done
5085 done
5086 IFS=$as_save_IFS
5087
5088 ;;
5089 esac
5090 fi
5091 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5092 if test -n "$INSTALL_INFO"; then
5093 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5094 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5095 else
5096 { echo "$as_me:$LINENO: result: no" >&5
5097 echo "${ECHO_T}no" >&6; }
5098 fi
5099
5100
5101 # Extract the first word of "install-info", so it can be a program name with args.
5102 set dummy install-info; ac_word=$2
5103 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5104 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5105 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5106 echo $ECHO_N "(cached) $ECHO_C" >&6
5107 else
5108 case $INSTALL_INFO in
5109 [\\/]* | ?:[\\/]*)
5110 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5111 ;;
5112 *)
5113 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5114 for as_dir in /usr/sbin
5115 do
5116 IFS=$as_save_IFS
5117 test -z "$as_dir" && as_dir=.
5118 for ac_exec_ext in '' $ac_executable_extensions; do
5119 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5120 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5121 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5122 break 2
5123 fi
5124 done
5125 done
5126 IFS=$as_save_IFS
5127
5128 ;;
5129 esac
5130 fi
5131 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5132 if test -n "$INSTALL_INFO"; then
5133 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5134 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5135 else
5136 { echo "$as_me:$LINENO: result: no" >&5
5137 echo "${ECHO_T}no" >&6; }
5138 fi
5139
5140
5141 # Extract the first word of "install-info", so it can be a program name with args.
5142 set dummy install-info; ac_word=$2
5143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5145 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5146 echo $ECHO_N "(cached) $ECHO_C" >&6
5147 else
5148 case $INSTALL_INFO in
5149 [\\/]* | ?:[\\/]*)
5150 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5151 ;;
5152 *)
5153 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5154 for as_dir in /sbin
5155 do
5156 IFS=$as_save_IFS
5157 test -z "$as_dir" && as_dir=.
5158 for ac_exec_ext in '' $ac_executable_extensions; do
5159 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5160 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5161 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5162 break 2
5163 fi
5164 done
5165 done
5166 IFS=$as_save_IFS
5167
5168 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5169 ;;
5170 esac
5171 fi
5172 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5176 else
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5179 fi
5180
5181
5182 # Extract the first word of "gzip", so it can be a program name with args.
5183 set dummy gzip; ac_word=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 case $GZIP_PROG in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5192 ;;
5193 *)
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in $PATH
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 ;;
5210 esac
5211 fi
5212 GZIP_PROG=$ac_cv_path_GZIP_PROG
5213 if test -n "$GZIP_PROG"; then
5214 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5215 echo "${ECHO_T}$GZIP_PROG" >&6; }
5216 else
5217 { echo "$as_me:$LINENO: result: no" >&5
5218 echo "${ECHO_T}no" >&6; }
5219 fi
5220
5221
5222
5223
5224 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5225 then
5226 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5227 fi
5228
5229 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5230 then
5231 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5232 fi
5233
5234
5235 late_LDFLAGS=$LDFLAGS
5236 if test "$GCC" = yes; then
5237 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5238 else
5239 LDFLAGS="$LDFLAGS -znocombreloc"
5240 fi
5241
5242 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5243 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5244 cat >conftest.$ac_ext <<_ACEOF
5245 main(){return 0;}
5246 _ACEOF
5247 rm -f conftest.$ac_objext conftest$ac_exeext
5248 if { (ac_try="$ac_link"
5249 case "(($ac_try" in
5250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5251 *) ac_try_echo=$ac_try;;
5252 esac
5253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5254 (eval "$ac_link") 2>conftest.er1
5255 ac_status=$?
5256 grep -v '^ *+' conftest.er1 >conftest.err
5257 rm -f conftest.er1
5258 cat conftest.err >&5
5259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5260 (exit $ac_status); } && {
5261 test -z "$ac_c_werror_flag" ||
5262 test ! -s conftest.err
5263 } && test -s conftest$ac_exeext &&
5264 $as_test_x conftest$ac_exeext; then
5265 { echo "$as_me:$LINENO: result: yes" >&5
5266 echo "${ECHO_T}yes" >&6; }
5267 else
5268 echo "$as_me: failed program was:" >&5
5269 sed 's/^/| /' conftest.$ac_ext >&5
5270
5271 LDFLAGS=$late_LDFLAGS
5272 { echo "$as_me:$LINENO: result: no" >&5
5273 echo "${ECHO_T}no" >&6; }
5274 fi
5275
5276 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5277 conftest$ac_exeext conftest.$ac_ext
5278
5279 #### Extract some information from the operating system and machine files.
5280
5281 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5282 - which libraries the lib-src programs will want, and
5283 - whether the GNU malloc routines are usable..." >&5
5284 echo "$as_me: checking the machine- and system-dependent files to find out
5285 - which libraries the lib-src programs will want, and
5286 - whether the GNU malloc routines are usable..." >&6;}
5287
5288 ### First figure out CFLAGS (which we use for running the compiler here)
5289 ### and REAL_CFLAGS (which we use for real compilation).
5290 ### The two are the same except on a few systems, where they are made
5291 ### different to work around various lossages. For example,
5292 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5293 ### as implying static linking.
5294
5295 ### If the CFLAGS env var is specified, we use that value
5296 ### instead of the default.
5297
5298 ### It's not important that this name contain the PID; you can't run
5299 ### two configures in the same directory and have anything work
5300 ### anyway.
5301 tempcname="conftest.c"
5302
5303 echo '
5304 #include "'${srcdir}'/src/'${opsysfile}'"
5305 #include "'${srcdir}'/src/'${machfile}'"
5306 #ifndef LIBS_MACHINE
5307 #define LIBS_MACHINE
5308 #endif
5309 #ifndef LIBS_SYSTEM
5310 #define LIBS_SYSTEM
5311 #endif
5312 #ifndef C_SWITCH_SYSTEM
5313 #define C_SWITCH_SYSTEM
5314 #endif
5315 #ifndef C_SWITCH_MACHINE
5316 #define C_SWITCH_MACHINE
5317 #endif
5318 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5319 configure___ c_switch_system=C_SWITCH_SYSTEM
5320 configure___ c_switch_machine=C_SWITCH_MACHINE
5321
5322 #ifndef LIB_X11_LIB
5323 #define LIB_X11_LIB -lX11
5324 #endif
5325
5326 #ifndef LIBX11_MACHINE
5327 #define LIBX11_MACHINE
5328 #endif
5329
5330 #ifndef LIBX11_SYSTEM
5331 #define LIBX11_SYSTEM
5332 #endif
5333 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5334
5335 #ifdef UNEXEC
5336 configure___ unexec=UNEXEC
5337 #else
5338 configure___ unexec=unexec.o
5339 #endif
5340
5341 #ifdef SYSTEM_MALLOC
5342 configure___ system_malloc=yes
5343 #else
5344 configure___ system_malloc=no
5345 #endif
5346
5347 #ifdef USE_MMAP_FOR_BUFFERS
5348 configure___ use_mmap_for_buffers=yes
5349 #else
5350 configure___ use_mmap_for_buffers=no
5351 #endif
5352
5353 #ifndef C_DEBUG_SWITCH
5354 #define C_DEBUG_SWITCH -g
5355 #endif
5356
5357 #ifndef C_OPTIMIZE_SWITCH
5358 #ifdef __GNUC__
5359 #define C_OPTIMIZE_SWITCH -O2
5360 #else
5361 #define C_OPTIMIZE_SWITCH -O
5362 #endif
5363 #endif
5364
5365 #ifndef C_WARNINGS_SWITCH
5366 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5367 #endif
5368
5369 #ifndef LD_SWITCH_MACHINE
5370 #define LD_SWITCH_MACHINE
5371 #endif
5372
5373 #ifndef LD_SWITCH_SYSTEM
5374 #define LD_SWITCH_SYSTEM
5375 #endif
5376
5377 #ifndef LD_SWITCH_X_SITE_AUX
5378 #define LD_SWITCH_X_SITE_AUX
5379 #endif
5380
5381 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5382 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5383
5384 #ifdef THIS_IS_CONFIGURE
5385
5386 /* Get the CFLAGS for tests in configure. */
5387 #ifdef __GNUC__
5388 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5389 #else
5390 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5391 #endif
5392
5393 #else /* not THIS_IS_CONFIGURE */
5394
5395 /* Get the CFLAGS for real compilation. */
5396 #ifdef __GNUC__
5397 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5398 #else
5399 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5400 #endif
5401
5402 #endif /* not THIS_IS_CONFIGURE */
5403 ' > ${tempcname}
5404
5405 # The value of CPP is a quoted variable reference, so we need to do this
5406 # to get its actual value...
5407 CPP=`eval "echo $CPP"`
5408 eval `${CPP} -Isrc ${tempcname} \
5409 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5410 if test "x$SPECIFIED_CFLAGS" = x; then
5411 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5412 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5413 else
5414 REAL_CFLAGS="$CFLAGS"
5415 fi
5416 rm ${tempcname}
5417
5418 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5419
5420 ### Make sure subsequent tests use flags consistent with the build flags.
5421
5422 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5423 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5424 else
5425 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5426 fi
5427
5428
5429
5430 # Check whether --enable-largefile was given.
5431 if test "${enable_largefile+set}" = set; then
5432 enableval=$enable_largefile;
5433 fi
5434
5435 if test "$enable_largefile" != no; then
5436
5437 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5438 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5439 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5440 echo $ECHO_N "(cached) $ECHO_C" >&6
5441 else
5442 ac_cv_sys_largefile_CC=no
5443 if test "$GCC" != yes; then
5444 ac_save_CC=$CC
5445 while :; do
5446 # IRIX 6.2 and later do not support large files by default,
5447 # so use the C compiler's -n32 option if that helps.
5448 cat >conftest.$ac_ext <<_ACEOF
5449 /* confdefs.h. */
5450 _ACEOF
5451 cat confdefs.h >>conftest.$ac_ext
5452 cat >>conftest.$ac_ext <<_ACEOF
5453 /* end confdefs.h. */
5454 #include <sys/types.h>
5455 /* Check that off_t can represent 2**63 - 1 correctly.
5456 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5457 since some C++ compilers masquerading as C compilers
5458 incorrectly reject 9223372036854775807. */
5459 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5460 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5461 && LARGE_OFF_T % 2147483647 == 1)
5462 ? 1 : -1];
5463 int
5464 main ()
5465 {
5466
5467 ;
5468 return 0;
5469 }
5470 _ACEOF
5471 rm -f conftest.$ac_objext
5472 if { (ac_try="$ac_compile"
5473 case "(($ac_try" in
5474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5475 *) ac_try_echo=$ac_try;;
5476 esac
5477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5478 (eval "$ac_compile") 2>conftest.er1
5479 ac_status=$?
5480 grep -v '^ *+' conftest.er1 >conftest.err
5481 rm -f conftest.er1
5482 cat conftest.err >&5
5483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5484 (exit $ac_status); } && {
5485 test -z "$ac_c_werror_flag" ||
5486 test ! -s conftest.err
5487 } && test -s conftest.$ac_objext; then
5488 break
5489 else
5490 echo "$as_me: failed program was:" >&5
5491 sed 's/^/| /' conftest.$ac_ext >&5
5492
5493
5494 fi
5495
5496 rm -f core conftest.err conftest.$ac_objext
5497 CC="$CC -n32"
5498 rm -f conftest.$ac_objext
5499 if { (ac_try="$ac_compile"
5500 case "(($ac_try" in
5501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5502 *) ac_try_echo=$ac_try;;
5503 esac
5504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5505 (eval "$ac_compile") 2>conftest.er1
5506 ac_status=$?
5507 grep -v '^ *+' conftest.er1 >conftest.err
5508 rm -f conftest.er1
5509 cat conftest.err >&5
5510 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5511 (exit $ac_status); } && {
5512 test -z "$ac_c_werror_flag" ||
5513 test ! -s conftest.err
5514 } && test -s conftest.$ac_objext; then
5515 ac_cv_sys_largefile_CC=' -n32'; break
5516 else
5517 echo "$as_me: failed program was:" >&5
5518 sed 's/^/| /' conftest.$ac_ext >&5
5519
5520
5521 fi
5522
5523 rm -f core conftest.err conftest.$ac_objext
5524 break
5525 done
5526 CC=$ac_save_CC
5527 rm -f conftest.$ac_ext
5528 fi
5529 fi
5530 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5531 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5532 if test "$ac_cv_sys_largefile_CC" != no; then
5533 CC=$CC$ac_cv_sys_largefile_CC
5534 fi
5535
5536 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5537 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5538 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5539 echo $ECHO_N "(cached) $ECHO_C" >&6
5540 else
5541 while :; do
5542 cat >conftest.$ac_ext <<_ACEOF
5543 /* confdefs.h. */
5544 _ACEOF
5545 cat confdefs.h >>conftest.$ac_ext
5546 cat >>conftest.$ac_ext <<_ACEOF
5547 /* end confdefs.h. */
5548 #include <sys/types.h>
5549 /* Check that off_t can represent 2**63 - 1 correctly.
5550 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5551 since some C++ compilers masquerading as C compilers
5552 incorrectly reject 9223372036854775807. */
5553 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5554 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5555 && LARGE_OFF_T % 2147483647 == 1)
5556 ? 1 : -1];
5557 int
5558 main ()
5559 {
5560
5561 ;
5562 return 0;
5563 }
5564 _ACEOF
5565 rm -f conftest.$ac_objext
5566 if { (ac_try="$ac_compile"
5567 case "(($ac_try" in
5568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5569 *) ac_try_echo=$ac_try;;
5570 esac
5571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5572 (eval "$ac_compile") 2>conftest.er1
5573 ac_status=$?
5574 grep -v '^ *+' conftest.er1 >conftest.err
5575 rm -f conftest.er1
5576 cat conftest.err >&5
5577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5578 (exit $ac_status); } && {
5579 test -z "$ac_c_werror_flag" ||
5580 test ! -s conftest.err
5581 } && test -s conftest.$ac_objext; then
5582 ac_cv_sys_file_offset_bits=no; break
5583 else
5584 echo "$as_me: failed program was:" >&5
5585 sed 's/^/| /' conftest.$ac_ext >&5
5586
5587
5588 fi
5589
5590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5591 cat >conftest.$ac_ext <<_ACEOF
5592 /* confdefs.h. */
5593 _ACEOF
5594 cat confdefs.h >>conftest.$ac_ext
5595 cat >>conftest.$ac_ext <<_ACEOF
5596 /* end confdefs.h. */
5597 #define _FILE_OFFSET_BITS 64
5598 #include <sys/types.h>
5599 /* Check that off_t can represent 2**63 - 1 correctly.
5600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5601 since some C++ compilers masquerading as C compilers
5602 incorrectly reject 9223372036854775807. */
5603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5605 && LARGE_OFF_T % 2147483647 == 1)
5606 ? 1 : -1];
5607 int
5608 main ()
5609 {
5610
5611 ;
5612 return 0;
5613 }
5614 _ACEOF
5615 rm -f conftest.$ac_objext
5616 if { (ac_try="$ac_compile"
5617 case "(($ac_try" in
5618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5619 *) ac_try_echo=$ac_try;;
5620 esac
5621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5622 (eval "$ac_compile") 2>conftest.er1
5623 ac_status=$?
5624 grep -v '^ *+' conftest.er1 >conftest.err
5625 rm -f conftest.er1
5626 cat conftest.err >&5
5627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5628 (exit $ac_status); } && {
5629 test -z "$ac_c_werror_flag" ||
5630 test ! -s conftest.err
5631 } && test -s conftest.$ac_objext; then
5632 ac_cv_sys_file_offset_bits=64; break
5633 else
5634 echo "$as_me: failed program was:" >&5
5635 sed 's/^/| /' conftest.$ac_ext >&5
5636
5637
5638 fi
5639
5640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5641 ac_cv_sys_file_offset_bits=unknown
5642 break
5643 done
5644 fi
5645 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5646 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5647 case $ac_cv_sys_file_offset_bits in #(
5648 no | unknown) ;;
5649 *)
5650 cat >>confdefs.h <<_ACEOF
5651 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5652 _ACEOF
5653 ;;
5654 esac
5655 rm -f conftest*
5656 if test $ac_cv_sys_file_offset_bits = unknown; then
5657 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5658 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5659 if test "${ac_cv_sys_large_files+set}" = set; then
5660 echo $ECHO_N "(cached) $ECHO_C" >&6
5661 else
5662 while :; do
5663 cat >conftest.$ac_ext <<_ACEOF
5664 /* confdefs.h. */
5665 _ACEOF
5666 cat confdefs.h >>conftest.$ac_ext
5667 cat >>conftest.$ac_ext <<_ACEOF
5668 /* end confdefs.h. */
5669 #include <sys/types.h>
5670 /* Check that off_t can represent 2**63 - 1 correctly.
5671 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5672 since some C++ compilers masquerading as C compilers
5673 incorrectly reject 9223372036854775807. */
5674 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5675 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5676 && LARGE_OFF_T % 2147483647 == 1)
5677 ? 1 : -1];
5678 int
5679 main ()
5680 {
5681
5682 ;
5683 return 0;
5684 }
5685 _ACEOF
5686 rm -f conftest.$ac_objext
5687 if { (ac_try="$ac_compile"
5688 case "(($ac_try" in
5689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5690 *) ac_try_echo=$ac_try;;
5691 esac
5692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5693 (eval "$ac_compile") 2>conftest.er1
5694 ac_status=$?
5695 grep -v '^ *+' conftest.er1 >conftest.err
5696 rm -f conftest.er1
5697 cat conftest.err >&5
5698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5699 (exit $ac_status); } && {
5700 test -z "$ac_c_werror_flag" ||
5701 test ! -s conftest.err
5702 } && test -s conftest.$ac_objext; then
5703 ac_cv_sys_large_files=no; break
5704 else
5705 echo "$as_me: failed program was:" >&5
5706 sed 's/^/| /' conftest.$ac_ext >&5
5707
5708
5709 fi
5710
5711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5712 cat >conftest.$ac_ext <<_ACEOF
5713 /* confdefs.h. */
5714 _ACEOF
5715 cat confdefs.h >>conftest.$ac_ext
5716 cat >>conftest.$ac_ext <<_ACEOF
5717 /* end confdefs.h. */
5718 #define _LARGE_FILES 1
5719 #include <sys/types.h>
5720 /* Check that off_t can represent 2**63 - 1 correctly.
5721 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5722 since some C++ compilers masquerading as C compilers
5723 incorrectly reject 9223372036854775807. */
5724 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5725 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5726 && LARGE_OFF_T % 2147483647 == 1)
5727 ? 1 : -1];
5728 int
5729 main ()
5730 {
5731
5732 ;
5733 return 0;
5734 }
5735 _ACEOF
5736 rm -f conftest.$ac_objext
5737 if { (ac_try="$ac_compile"
5738 case "(($ac_try" in
5739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5740 *) ac_try_echo=$ac_try;;
5741 esac
5742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5743 (eval "$ac_compile") 2>conftest.er1
5744 ac_status=$?
5745 grep -v '^ *+' conftest.er1 >conftest.err
5746 rm -f conftest.er1
5747 cat conftest.err >&5
5748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5749 (exit $ac_status); } && {
5750 test -z "$ac_c_werror_flag" ||
5751 test ! -s conftest.err
5752 } && test -s conftest.$ac_objext; then
5753 ac_cv_sys_large_files=1; break
5754 else
5755 echo "$as_me: failed program was:" >&5
5756 sed 's/^/| /' conftest.$ac_ext >&5
5757
5758
5759 fi
5760
5761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5762 ac_cv_sys_large_files=unknown
5763 break
5764 done
5765 fi
5766 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5767 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5768 case $ac_cv_sys_large_files in #(
5769 no | unknown) ;;
5770 *)
5771 cat >>confdefs.h <<_ACEOF
5772 #define _LARGE_FILES $ac_cv_sys_large_files
5773 _ACEOF
5774 ;;
5775 esac
5776 rm -f conftest*
5777 fi
5778 fi
5779
5780
5781
5782 ### The standard library on x86-64 GNU/Linux distributions can
5783 ### be located in either /usr/lib64 or /usr/lib.
5784 case "${canonical}" in
5785 x86_64-*-linux-gnu* )
5786 if test -d /usr/lib64; then
5787
5788 cat >>confdefs.h <<\_ACEOF
5789 #define HAVE_X86_64_LIB64_DIR 1
5790 _ACEOF
5791
5792 fi
5793 esac
5794
5795
5796
5797
5798 if test "${with_sound}" != "no"; then
5799 # Sound support for GNU/Linux and the free BSDs.
5800 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5801 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5802 if test "${ac_cv_header_stdc+set}" = set; then
5803 echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805 cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h. */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h. */
5811 #include <stdlib.h>
5812 #include <stdarg.h>
5813 #include <string.h>
5814 #include <float.h>
5815
5816 int
5817 main ()
5818 {
5819
5820 ;
5821 return 0;
5822 }
5823 _ACEOF
5824 rm -f conftest.$ac_objext
5825 if { (ac_try="$ac_compile"
5826 case "(($ac_try" in
5827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5828 *) ac_try_echo=$ac_try;;
5829 esac
5830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5831 (eval "$ac_compile") 2>conftest.er1
5832 ac_status=$?
5833 grep -v '^ *+' conftest.er1 >conftest.err
5834 rm -f conftest.er1
5835 cat conftest.err >&5
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); } && {
5838 test -z "$ac_c_werror_flag" ||
5839 test ! -s conftest.err
5840 } && test -s conftest.$ac_objext; then
5841 ac_cv_header_stdc=yes
5842 else
5843 echo "$as_me: failed program was:" >&5
5844 sed 's/^/| /' conftest.$ac_ext >&5
5845
5846 ac_cv_header_stdc=no
5847 fi
5848
5849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5850
5851 if test $ac_cv_header_stdc = yes; then
5852 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <string.h>
5860
5861 _ACEOF
5862 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5863 $EGREP "memchr" >/dev/null 2>&1; then
5864 :
5865 else
5866 ac_cv_header_stdc=no
5867 fi
5868 rm -f conftest*
5869
5870 fi
5871
5872 if test $ac_cv_header_stdc = yes; then
5873 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5874 cat >conftest.$ac_ext <<_ACEOF
5875 /* confdefs.h. */
5876 _ACEOF
5877 cat confdefs.h >>conftest.$ac_ext
5878 cat >>conftest.$ac_ext <<_ACEOF
5879 /* end confdefs.h. */
5880 #include <stdlib.h>
5881
5882 _ACEOF
5883 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5884 $EGREP "free" >/dev/null 2>&1; then
5885 :
5886 else
5887 ac_cv_header_stdc=no
5888 fi
5889 rm -f conftest*
5890
5891 fi
5892
5893 if test $ac_cv_header_stdc = yes; then
5894 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5895 if test "$cross_compiling" = yes; then
5896 :
5897 else
5898 cat >conftest.$ac_ext <<_ACEOF
5899 /* confdefs.h. */
5900 _ACEOF
5901 cat confdefs.h >>conftest.$ac_ext
5902 cat >>conftest.$ac_ext <<_ACEOF
5903 /* end confdefs.h. */
5904 #include <ctype.h>
5905 #include <stdlib.h>
5906 #if ((' ' & 0x0FF) == 0x020)
5907 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5908 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5909 #else
5910 # define ISLOWER(c) \
5911 (('a' <= (c) && (c) <= 'i') \
5912 || ('j' <= (c) && (c) <= 'r') \
5913 || ('s' <= (c) && (c) <= 'z'))
5914 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5915 #endif
5916
5917 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5918 int
5919 main ()
5920 {
5921 int i;
5922 for (i = 0; i < 256; i++)
5923 if (XOR (islower (i), ISLOWER (i))
5924 || toupper (i) != TOUPPER (i))
5925 return 2;
5926 return 0;
5927 }
5928 _ACEOF
5929 rm -f conftest$ac_exeext
5930 if { (ac_try="$ac_link"
5931 case "(($ac_try" in
5932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5933 *) ac_try_echo=$ac_try;;
5934 esac
5935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5936 (eval "$ac_link") 2>&5
5937 ac_status=$?
5938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5939 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5940 { (case "(($ac_try" in
5941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942 *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945 (eval "$ac_try") 2>&5
5946 ac_status=$?
5947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948 (exit $ac_status); }; }; then
5949 :
5950 else
5951 echo "$as_me: program exited with status $ac_status" >&5
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ( exit $ac_status )
5956 ac_cv_header_stdc=no
5957 fi
5958 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5959 fi
5960
5961
5962 fi
5963 fi
5964 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5965 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5966 if test $ac_cv_header_stdc = yes; then
5967
5968 cat >>confdefs.h <<\_ACEOF
5969 #define STDC_HEADERS 1
5970 _ACEOF
5971
5972 fi
5973
5974 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5975
5976
5977
5978
5979
5980
5981
5982
5983
5984 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5985 inttypes.h stdint.h unistd.h
5986 do
5987 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5988 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5989 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5990 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5991 echo $ECHO_N "(cached) $ECHO_C" >&6
5992 else
5993 cat >conftest.$ac_ext <<_ACEOF
5994 /* confdefs.h. */
5995 _ACEOF
5996 cat confdefs.h >>conftest.$ac_ext
5997 cat >>conftest.$ac_ext <<_ACEOF
5998 /* end confdefs.h. */
5999 $ac_includes_default
6000
6001 #include <$ac_header>
6002 _ACEOF
6003 rm -f conftest.$ac_objext
6004 if { (ac_try="$ac_compile"
6005 case "(($ac_try" in
6006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6007 *) ac_try_echo=$ac_try;;
6008 esac
6009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6010 (eval "$ac_compile") 2>conftest.er1
6011 ac_status=$?
6012 grep -v '^ *+' conftest.er1 >conftest.err
6013 rm -f conftest.er1
6014 cat conftest.err >&5
6015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6016 (exit $ac_status); } && {
6017 test -z "$ac_c_werror_flag" ||
6018 test ! -s conftest.err
6019 } && test -s conftest.$ac_objext; then
6020 eval "$as_ac_Header=yes"
6021 else
6022 echo "$as_me: failed program was:" >&5
6023 sed 's/^/| /' conftest.$ac_ext >&5
6024
6025 eval "$as_ac_Header=no"
6026 fi
6027
6028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6029 fi
6030 ac_res=`eval echo '${'$as_ac_Header'}'`
6031 { echo "$as_me:$LINENO: result: $ac_res" >&5
6032 echo "${ECHO_T}$ac_res" >&6; }
6033 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6034 cat >>confdefs.h <<_ACEOF
6035 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6036 _ACEOF
6037
6038 fi
6039
6040 done
6041
6042
6043
6044
6045
6046 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6047 do
6048 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6049 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 fi
6055 ac_res=`eval echo '${'$as_ac_Header'}'`
6056 { echo "$as_me:$LINENO: result: $ac_res" >&5
6057 echo "${ECHO_T}$ac_res" >&6; }
6058 else
6059 # Is the header compilable?
6060 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6061 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6062 cat >conftest.$ac_ext <<_ACEOF
6063 /* confdefs.h. */
6064 _ACEOF
6065 cat confdefs.h >>conftest.$ac_ext
6066 cat >>conftest.$ac_ext <<_ACEOF
6067 /* end confdefs.h. */
6068 $ac_includes_default
6069 #include <$ac_header>
6070 _ACEOF
6071 rm -f conftest.$ac_objext
6072 if { (ac_try="$ac_compile"
6073 case "(($ac_try" in
6074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6075 *) ac_try_echo=$ac_try;;
6076 esac
6077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6078 (eval "$ac_compile") 2>conftest.er1
6079 ac_status=$?
6080 grep -v '^ *+' conftest.er1 >conftest.err
6081 rm -f conftest.er1
6082 cat conftest.err >&5
6083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6084 (exit $ac_status); } && {
6085 test -z "$ac_c_werror_flag" ||
6086 test ! -s conftest.err
6087 } && test -s conftest.$ac_objext; then
6088 ac_header_compiler=yes
6089 else
6090 echo "$as_me: failed program was:" >&5
6091 sed 's/^/| /' conftest.$ac_ext >&5
6092
6093 ac_header_compiler=no
6094 fi
6095
6096 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6097 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6098 echo "${ECHO_T}$ac_header_compiler" >&6; }
6099
6100 # Is the header present?
6101 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6102 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 #include <$ac_header>
6110 _ACEOF
6111 if { (ac_try="$ac_cpp conftest.$ac_ext"
6112 case "(($ac_try" in
6113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6114 *) ac_try_echo=$ac_try;;
6115 esac
6116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6117 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6118 ac_status=$?
6119 grep -v '^ *+' conftest.er1 >conftest.err
6120 rm -f conftest.er1
6121 cat conftest.err >&5
6122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6123 (exit $ac_status); } >/dev/null && {
6124 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6125 test ! -s conftest.err
6126 }; then
6127 ac_header_preproc=yes
6128 else
6129 echo "$as_me: failed program was:" >&5
6130 sed 's/^/| /' conftest.$ac_ext >&5
6131
6132 ac_header_preproc=no
6133 fi
6134
6135 rm -f conftest.err conftest.$ac_ext
6136 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6137 echo "${ECHO_T}$ac_header_preproc" >&6; }
6138
6139 # So? What about this header?
6140 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6141 yes:no: )
6142 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6143 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6144 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6145 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6146 ac_header_preproc=yes
6147 ;;
6148 no:yes:* )
6149 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6150 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6151 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6152 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6153 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6154 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6155 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6156 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6157 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6158 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6159 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6160 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6161
6162 ;;
6163 esac
6164 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6165 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6167 echo $ECHO_N "(cached) $ECHO_C" >&6
6168 else
6169 eval "$as_ac_Header=\$ac_header_preproc"
6170 fi
6171 ac_res=`eval echo '${'$as_ac_Header'}'`
6172 { echo "$as_me:$LINENO: result: $ac_res" >&5
6173 echo "${ECHO_T}$ac_res" >&6; }
6174
6175 fi
6176 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6177 cat >>confdefs.h <<_ACEOF
6178 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6179 _ACEOF
6180
6181 fi
6182
6183 done
6184
6185 # Emulation library used on NetBSD.
6186 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6187 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6188 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6189 echo $ECHO_N "(cached) $ECHO_C" >&6
6190 else
6191 ac_check_lib_save_LIBS=$LIBS
6192 LIBS="-lossaudio $LIBS"
6193 cat >conftest.$ac_ext <<_ACEOF
6194 /* confdefs.h. */
6195 _ACEOF
6196 cat confdefs.h >>conftest.$ac_ext
6197 cat >>conftest.$ac_ext <<_ACEOF
6198 /* end confdefs.h. */
6199
6200 /* Override any GCC internal prototype to avoid an error.
6201 Use char because int might match the return type of a GCC
6202 builtin and then its argument prototype would still apply. */
6203 #ifdef __cplusplus
6204 extern "C"
6205 #endif
6206 char _oss_ioctl ();
6207 int
6208 main ()
6209 {
6210 return _oss_ioctl ();
6211 ;
6212 return 0;
6213 }
6214 _ACEOF
6215 rm -f conftest.$ac_objext conftest$ac_exeext
6216 if { (ac_try="$ac_link"
6217 case "(($ac_try" in
6218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6219 *) ac_try_echo=$ac_try;;
6220 esac
6221 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6222 (eval "$ac_link") 2>conftest.er1
6223 ac_status=$?
6224 grep -v '^ *+' conftest.er1 >conftest.err
6225 rm -f conftest.er1
6226 cat conftest.err >&5
6227 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6228 (exit $ac_status); } && {
6229 test -z "$ac_c_werror_flag" ||
6230 test ! -s conftest.err
6231 } && test -s conftest$ac_exeext &&
6232 $as_test_x conftest$ac_exeext; then
6233 ac_cv_lib_ossaudio__oss_ioctl=yes
6234 else
6235 echo "$as_me: failed program was:" >&5
6236 sed 's/^/| /' conftest.$ac_ext >&5
6237
6238 ac_cv_lib_ossaudio__oss_ioctl=no
6239 fi
6240
6241 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6242 conftest$ac_exeext conftest.$ac_ext
6243 LIBS=$ac_check_lib_save_LIBS
6244 fi
6245 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6246 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6247 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6248 LIBSOUND=-lossaudio
6249 else
6250 LIBSOUND=
6251 fi
6252
6253
6254
6255 ALSA_REQUIRED=1.0.0
6256 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6257 if test "X${with_pkg_config_prog}" != X; then
6258 PKG_CONFIG="${with_pkg_config_prog}"
6259 fi
6260
6261 succeeded=no
6262
6263 if test -z "$PKG_CONFIG"; then
6264 # Extract the first word of "pkg-config", so it can be a program name with args.
6265 set dummy pkg-config; ac_word=$2
6266 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6267 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6268 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6269 echo $ECHO_N "(cached) $ECHO_C" >&6
6270 else
6271 case $PKG_CONFIG in
6272 [\\/]* | ?:[\\/]*)
6273 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6274 ;;
6275 *)
6276 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6277 for as_dir in $PATH
6278 do
6279 IFS=$as_save_IFS
6280 test -z "$as_dir" && as_dir=.
6281 for ac_exec_ext in '' $ac_executable_extensions; do
6282 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6283 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6284 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6285 break 2
6286 fi
6287 done
6288 done
6289 IFS=$as_save_IFS
6290
6291 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6292 ;;
6293 esac
6294 fi
6295 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6296 if test -n "$PKG_CONFIG"; then
6297 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6298 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6299 else
6300 { echo "$as_me:$LINENO: result: no" >&5
6301 echo "${ECHO_T}no" >&6; }
6302 fi
6303
6304
6305 fi
6306
6307 if test "$PKG_CONFIG" = "no" ; then
6308 HAVE_ALSA=no
6309 else
6310 PKG_CONFIG_MIN_VERSION=0.9.0
6311 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6312 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6313 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6314
6315 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6316 { echo "$as_me:$LINENO: result: yes" >&5
6317 echo "${ECHO_T}yes" >&6; }
6318 succeeded=yes
6319
6320 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6321 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6322 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6323 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6324 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6325
6326 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6327 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6328 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6329 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6330 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6331 else
6332 { echo "$as_me:$LINENO: result: no" >&5
6333 echo "${ECHO_T}no" >&6; }
6334 ALSA_CFLAGS=""
6335 ALSA_LIBS=""
6336 ## If we have a custom action on failure, don't print errors, but
6337 ## do set a variable so people can do so.
6338 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6339
6340 fi
6341
6342
6343
6344 else
6345 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6346 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6347 fi
6348 fi
6349
6350 if test $succeeded = yes; then
6351 HAVE_ALSA=yes
6352 else
6353 HAVE_ALSA=no
6354 fi
6355
6356 if test $HAVE_ALSA = yes; then
6357 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6358 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6359
6360 cat >>confdefs.h <<\_ACEOF
6361 #define HAVE_ALSA 1
6362 _ACEOF
6363
6364 fi
6365
6366 fi
6367
6368
6369
6370
6371
6372
6373
6374
6375
6376
6377
6378
6379
6380
6381
6382
6383
6384
6385
6386
6387
6388
6389
6390
6391
6392
6393 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6394 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6395 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6396 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6397 sys/utsname.h pwd.h
6398 do
6399 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6400 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6404 echo $ECHO_N "(cached) $ECHO_C" >&6
6405 fi
6406 ac_res=`eval echo '${'$as_ac_Header'}'`
6407 { echo "$as_me:$LINENO: result: $ac_res" >&5
6408 echo "${ECHO_T}$ac_res" >&6; }
6409 else
6410 # Is the header compilable?
6411 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6412 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6413 cat >conftest.$ac_ext <<_ACEOF
6414 /* confdefs.h. */
6415 _ACEOF
6416 cat confdefs.h >>conftest.$ac_ext
6417 cat >>conftest.$ac_ext <<_ACEOF
6418 /* end confdefs.h. */
6419 $ac_includes_default
6420 #include <$ac_header>
6421 _ACEOF
6422 rm -f conftest.$ac_objext
6423 if { (ac_try="$ac_compile"
6424 case "(($ac_try" in
6425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6426 *) ac_try_echo=$ac_try;;
6427 esac
6428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6429 (eval "$ac_compile") 2>conftest.er1
6430 ac_status=$?
6431 grep -v '^ *+' conftest.er1 >conftest.err
6432 rm -f conftest.er1
6433 cat conftest.err >&5
6434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6435 (exit $ac_status); } && {
6436 test -z "$ac_c_werror_flag" ||
6437 test ! -s conftest.err
6438 } && test -s conftest.$ac_objext; then
6439 ac_header_compiler=yes
6440 else
6441 echo "$as_me: failed program was:" >&5
6442 sed 's/^/| /' conftest.$ac_ext >&5
6443
6444 ac_header_compiler=no
6445 fi
6446
6447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6449 echo "${ECHO_T}$ac_header_compiler" >&6; }
6450
6451 # Is the header present?
6452 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6453 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6454 cat >conftest.$ac_ext <<_ACEOF
6455 /* confdefs.h. */
6456 _ACEOF
6457 cat confdefs.h >>conftest.$ac_ext
6458 cat >>conftest.$ac_ext <<_ACEOF
6459 /* end confdefs.h. */
6460 #include <$ac_header>
6461 _ACEOF
6462 if { (ac_try="$ac_cpp conftest.$ac_ext"
6463 case "(($ac_try" in
6464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6465 *) ac_try_echo=$ac_try;;
6466 esac
6467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6469 ac_status=$?
6470 grep -v '^ *+' conftest.er1 >conftest.err
6471 rm -f conftest.er1
6472 cat conftest.err >&5
6473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6474 (exit $ac_status); } >/dev/null && {
6475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6476 test ! -s conftest.err
6477 }; then
6478 ac_header_preproc=yes
6479 else
6480 echo "$as_me: failed program was:" >&5
6481 sed 's/^/| /' conftest.$ac_ext >&5
6482
6483 ac_header_preproc=no
6484 fi
6485
6486 rm -f conftest.err conftest.$ac_ext
6487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6488 echo "${ECHO_T}$ac_header_preproc" >&6; }
6489
6490 # So? What about this header?
6491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6492 yes:no: )
6493 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6494 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6495 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6496 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6497 ac_header_preproc=yes
6498 ;;
6499 no:yes:* )
6500 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6501 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6502 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6503 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6504 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6505 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6506 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6507 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6509 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6510 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6511 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6512
6513 ;;
6514 esac
6515 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6516 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6517 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6518 echo $ECHO_N "(cached) $ECHO_C" >&6
6519 else
6520 eval "$as_ac_Header=\$ac_header_preproc"
6521 fi
6522 ac_res=`eval echo '${'$as_ac_Header'}'`
6523 { echo "$as_me:$LINENO: result: $ac_res" >&5
6524 echo "${ECHO_T}$ac_res" >&6; }
6525
6526 fi
6527 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6528 cat >>confdefs.h <<_ACEOF
6529 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6530 _ACEOF
6531
6532 fi
6533
6534 done
6535
6536
6537 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6538 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6539 cat >conftest.$ac_ext <<_ACEOF
6540 /* confdefs.h. */
6541 _ACEOF
6542 cat confdefs.h >>conftest.$ac_ext
6543 cat >>conftest.$ac_ext <<_ACEOF
6544 /* end confdefs.h. */
6545 #include <sys/personality.h>
6546 int
6547 main ()
6548 {
6549 personality (PER_LINUX32)
6550 ;
6551 return 0;
6552 }
6553 _ACEOF
6554 rm -f conftest.$ac_objext
6555 if { (ac_try="$ac_compile"
6556 case "(($ac_try" in
6557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6558 *) ac_try_echo=$ac_try;;
6559 esac
6560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6561 (eval "$ac_compile") 2>conftest.er1
6562 ac_status=$?
6563 grep -v '^ *+' conftest.er1 >conftest.err
6564 rm -f conftest.er1
6565 cat conftest.err >&5
6566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567 (exit $ac_status); } && {
6568 test -z "$ac_c_werror_flag" ||
6569 test ! -s conftest.err
6570 } && test -s conftest.$ac_objext; then
6571 emacs_cv_personality_linux32=yes
6572 else
6573 echo "$as_me: failed program was:" >&5
6574 sed 's/^/| /' conftest.$ac_ext >&5
6575
6576 emacs_cv_personality_linux32=no
6577 fi
6578
6579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6580 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6581 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6582
6583 if test $emacs_cv_personality_linux32 = yes; then
6584
6585 cat >>confdefs.h <<\_ACEOF
6586 #define HAVE_PERSONALITY_LINUX32 1
6587 _ACEOF
6588
6589 fi
6590
6591
6592 for ac_header in term.h
6593 do
6594 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6595 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6596 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6597 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6598 echo $ECHO_N "(cached) $ECHO_C" >&6
6599 else
6600 cat >conftest.$ac_ext <<_ACEOF
6601 /* confdefs.h. */
6602 _ACEOF
6603 cat confdefs.h >>conftest.$ac_ext
6604 cat >>conftest.$ac_ext <<_ACEOF
6605 /* end confdefs.h. */
6606 #include <$ac_header>
6607 _ACEOF
6608 if { (ac_try="$ac_cpp conftest.$ac_ext"
6609 case "(($ac_try" in
6610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6611 *) ac_try_echo=$ac_try;;
6612 esac
6613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6615 ac_status=$?
6616 grep -v '^ *+' conftest.er1 >conftest.err
6617 rm -f conftest.er1
6618 cat conftest.err >&5
6619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6620 (exit $ac_status); } >/dev/null && {
6621 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6622 test ! -s conftest.err
6623 }; then
6624 eval "$as_ac_Header=yes"
6625 else
6626 echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629 eval "$as_ac_Header=no"
6630 fi
6631
6632 rm -f conftest.err conftest.$ac_ext
6633 fi
6634 ac_res=`eval echo '${'$as_ac_Header'}'`
6635 { echo "$as_me:$LINENO: result: $ac_res" >&5
6636 echo "${ECHO_T}$ac_res" >&6; }
6637 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6638 cat >>confdefs.h <<_ACEOF
6639 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6640 _ACEOF
6641
6642 fi
6643
6644 done
6645
6646 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6647 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6648 if test "${ac_cv_header_stdc+set}" = set; then
6649 echo $ECHO_N "(cached) $ECHO_C" >&6
6650 else
6651 cat >conftest.$ac_ext <<_ACEOF
6652 /* confdefs.h. */
6653 _ACEOF
6654 cat confdefs.h >>conftest.$ac_ext
6655 cat >>conftest.$ac_ext <<_ACEOF
6656 /* end confdefs.h. */
6657 #include <stdlib.h>
6658 #include <stdarg.h>
6659 #include <string.h>
6660 #include <float.h>
6661
6662 int
6663 main ()
6664 {
6665
6666 ;
6667 return 0;
6668 }
6669 _ACEOF
6670 rm -f conftest.$ac_objext
6671 if { (ac_try="$ac_compile"
6672 case "(($ac_try" in
6673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6674 *) ac_try_echo=$ac_try;;
6675 esac
6676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6677 (eval "$ac_compile") 2>conftest.er1
6678 ac_status=$?
6679 grep -v '^ *+' conftest.er1 >conftest.err
6680 rm -f conftest.er1
6681 cat conftest.err >&5
6682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6683 (exit $ac_status); } && {
6684 test -z "$ac_c_werror_flag" ||
6685 test ! -s conftest.err
6686 } && test -s conftest.$ac_objext; then
6687 ac_cv_header_stdc=yes
6688 else
6689 echo "$as_me: failed program was:" >&5
6690 sed 's/^/| /' conftest.$ac_ext >&5
6691
6692 ac_cv_header_stdc=no
6693 fi
6694
6695 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6696
6697 if test $ac_cv_header_stdc = yes; then
6698 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <string.h>
6706
6707 _ACEOF
6708 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6709 $EGREP "memchr" >/dev/null 2>&1; then
6710 :
6711 else
6712 ac_cv_header_stdc=no
6713 fi
6714 rm -f conftest*
6715
6716 fi
6717
6718 if test $ac_cv_header_stdc = yes; then
6719 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6720 cat >conftest.$ac_ext <<_ACEOF
6721 /* confdefs.h. */
6722 _ACEOF
6723 cat confdefs.h >>conftest.$ac_ext
6724 cat >>conftest.$ac_ext <<_ACEOF
6725 /* end confdefs.h. */
6726 #include <stdlib.h>
6727
6728 _ACEOF
6729 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6730 $EGREP "free" >/dev/null 2>&1; then
6731 :
6732 else
6733 ac_cv_header_stdc=no
6734 fi
6735 rm -f conftest*
6736
6737 fi
6738
6739 if test $ac_cv_header_stdc = yes; then
6740 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6741 if test "$cross_compiling" = yes; then
6742 :
6743 else
6744 cat >conftest.$ac_ext <<_ACEOF
6745 /* confdefs.h. */
6746 _ACEOF
6747 cat confdefs.h >>conftest.$ac_ext
6748 cat >>conftest.$ac_ext <<_ACEOF
6749 /* end confdefs.h. */
6750 #include <ctype.h>
6751 #include <stdlib.h>
6752 #if ((' ' & 0x0FF) == 0x020)
6753 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6754 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6755 #else
6756 # define ISLOWER(c) \
6757 (('a' <= (c) && (c) <= 'i') \
6758 || ('j' <= (c) && (c) <= 'r') \
6759 || ('s' <= (c) && (c) <= 'z'))
6760 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6761 #endif
6762
6763 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6764 int
6765 main ()
6766 {
6767 int i;
6768 for (i = 0; i < 256; i++)
6769 if (XOR (islower (i), ISLOWER (i))
6770 || toupper (i) != TOUPPER (i))
6771 return 2;
6772 return 0;
6773 }
6774 _ACEOF
6775 rm -f conftest$ac_exeext
6776 if { (ac_try="$ac_link"
6777 case "(($ac_try" in
6778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6779 *) ac_try_echo=$ac_try;;
6780 esac
6781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6782 (eval "$ac_link") 2>&5
6783 ac_status=$?
6784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6785 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6786 { (case "(($ac_try" in
6787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6788 *) ac_try_echo=$ac_try;;
6789 esac
6790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6791 (eval "$ac_try") 2>&5
6792 ac_status=$?
6793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6794 (exit $ac_status); }; }; then
6795 :
6796 else
6797 echo "$as_me: program exited with status $ac_status" >&5
6798 echo "$as_me: failed program was:" >&5
6799 sed 's/^/| /' conftest.$ac_ext >&5
6800
6801 ( exit $ac_status )
6802 ac_cv_header_stdc=no
6803 fi
6804 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6805 fi
6806
6807
6808 fi
6809 fi
6810 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6811 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6812 if test $ac_cv_header_stdc = yes; then
6813
6814 cat >>confdefs.h <<\_ACEOF
6815 #define STDC_HEADERS 1
6816 _ACEOF
6817
6818 fi
6819
6820 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6821 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6822 if test "${ac_cv_header_time+set}" = set; then
6823 echo $ECHO_N "(cached) $ECHO_C" >&6
6824 else
6825 cat >conftest.$ac_ext <<_ACEOF
6826 /* confdefs.h. */
6827 _ACEOF
6828 cat confdefs.h >>conftest.$ac_ext
6829 cat >>conftest.$ac_ext <<_ACEOF
6830 /* end confdefs.h. */
6831 #include <sys/types.h>
6832 #include <sys/time.h>
6833 #include <time.h>
6834
6835 int
6836 main ()
6837 {
6838 if ((struct tm *) 0)
6839 return 0;
6840 ;
6841 return 0;
6842 }
6843 _ACEOF
6844 rm -f conftest.$ac_objext
6845 if { (ac_try="$ac_compile"
6846 case "(($ac_try" in
6847 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6848 *) ac_try_echo=$ac_try;;
6849 esac
6850 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6851 (eval "$ac_compile") 2>conftest.er1
6852 ac_status=$?
6853 grep -v '^ *+' conftest.er1 >conftest.err
6854 rm -f conftest.er1
6855 cat conftest.err >&5
6856 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6857 (exit $ac_status); } && {
6858 test -z "$ac_c_werror_flag" ||
6859 test ! -s conftest.err
6860 } && test -s conftest.$ac_objext; then
6861 ac_cv_header_time=yes
6862 else
6863 echo "$as_me: failed program was:" >&5
6864 sed 's/^/| /' conftest.$ac_ext >&5
6865
6866 ac_cv_header_time=no
6867 fi
6868
6869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6870 fi
6871 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6872 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6873 if test $ac_cv_header_time = yes; then
6874
6875 cat >>confdefs.h <<\_ACEOF
6876 #define TIME_WITH_SYS_TIME 1
6877 _ACEOF
6878
6879 fi
6880
6881 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6882 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6883 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6884 echo $ECHO_N "(cached) $ECHO_C" >&6
6885 else
6886 cat >conftest.$ac_ext <<_ACEOF
6887 /* confdefs.h. */
6888 _ACEOF
6889 cat confdefs.h >>conftest.$ac_ext
6890 cat >>conftest.$ac_ext <<_ACEOF
6891 /* end confdefs.h. */
6892 $ac_includes_default
6893 int
6894 main ()
6895 {
6896 #ifndef sys_siglist
6897 (void) sys_siglist;
6898 #endif
6899
6900 ;
6901 return 0;
6902 }
6903 _ACEOF
6904 rm -f conftest.$ac_objext
6905 if { (ac_try="$ac_compile"
6906 case "(($ac_try" in
6907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6908 *) ac_try_echo=$ac_try;;
6909 esac
6910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6911 (eval "$ac_compile") 2>conftest.er1
6912 ac_status=$?
6913 grep -v '^ *+' conftest.er1 >conftest.err
6914 rm -f conftest.er1
6915 cat conftest.err >&5
6916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6917 (exit $ac_status); } && {
6918 test -z "$ac_c_werror_flag" ||
6919 test ! -s conftest.err
6920 } && test -s conftest.$ac_objext; then
6921 ac_cv_have_decl_sys_siglist=yes
6922 else
6923 echo "$as_me: failed program was:" >&5
6924 sed 's/^/| /' conftest.$ac_ext >&5
6925
6926 ac_cv_have_decl_sys_siglist=no
6927 fi
6928
6929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6930 fi
6931 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
6932 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
6933 if test $ac_cv_have_decl_sys_siglist = yes; then
6934
6935 cat >>confdefs.h <<_ACEOF
6936 #define HAVE_DECL_SYS_SIGLIST 1
6937 _ACEOF
6938
6939
6940 else
6941 cat >>confdefs.h <<_ACEOF
6942 #define HAVE_DECL_SYS_SIGLIST 0
6943 _ACEOF
6944
6945
6946 fi
6947
6948
6949 if test $ac_cv_have_decl_sys_siglist != yes; then
6950 # For Tru64, at least:
6951 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
6952 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
6953 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
6954 echo $ECHO_N "(cached) $ECHO_C" >&6
6955 else
6956 cat >conftest.$ac_ext <<_ACEOF
6957 /* confdefs.h. */
6958 _ACEOF
6959 cat confdefs.h >>conftest.$ac_ext
6960 cat >>conftest.$ac_ext <<_ACEOF
6961 /* end confdefs.h. */
6962 $ac_includes_default
6963 int
6964 main ()
6965 {
6966 #ifndef __sys_siglist
6967 (void) __sys_siglist;
6968 #endif
6969
6970 ;
6971 return 0;
6972 }
6973 _ACEOF
6974 rm -f conftest.$ac_objext
6975 if { (ac_try="$ac_compile"
6976 case "(($ac_try" in
6977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6978 *) ac_try_echo=$ac_try;;
6979 esac
6980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6981 (eval "$ac_compile") 2>conftest.er1
6982 ac_status=$?
6983 grep -v '^ *+' conftest.er1 >conftest.err
6984 rm -f conftest.er1
6985 cat conftest.err >&5
6986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6987 (exit $ac_status); } && {
6988 test -z "$ac_c_werror_flag" ||
6989 test ! -s conftest.err
6990 } && test -s conftest.$ac_objext; then
6991 ac_cv_have_decl___sys_siglist=yes
6992 else
6993 echo "$as_me: failed program was:" >&5
6994 sed 's/^/| /' conftest.$ac_ext >&5
6995
6996 ac_cv_have_decl___sys_siglist=no
6997 fi
6998
6999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7000 fi
7001 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7002 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7003 if test $ac_cv_have_decl___sys_siglist = yes; then
7004
7005 cat >>confdefs.h <<_ACEOF
7006 #define HAVE_DECL___SYS_SIGLIST 1
7007 _ACEOF
7008
7009
7010 else
7011 cat >>confdefs.h <<_ACEOF
7012 #define HAVE_DECL___SYS_SIGLIST 0
7013 _ACEOF
7014
7015
7016 fi
7017
7018
7019 if test $ac_cv_have_decl___sys_siglist = yes; then
7020
7021 cat >>confdefs.h <<\_ACEOF
7022 #define sys_siglist __sys_siglist
7023 _ACEOF
7024
7025 fi
7026 fi
7027 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7028 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7029 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7030 echo $ECHO_N "(cached) $ECHO_C" >&6
7031 else
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <sys/types.h>
7039 #include <sys/wait.h>
7040 #ifndef WEXITSTATUS
7041 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7042 #endif
7043 #ifndef WIFEXITED
7044 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7045 #endif
7046
7047 int
7048 main ()
7049 {
7050 int s;
7051 wait (&s);
7052 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7053 ;
7054 return 0;
7055 }
7056 _ACEOF
7057 rm -f conftest.$ac_objext
7058 if { (ac_try="$ac_compile"
7059 case "(($ac_try" in
7060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7061 *) ac_try_echo=$ac_try;;
7062 esac
7063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7064 (eval "$ac_compile") 2>conftest.er1
7065 ac_status=$?
7066 grep -v '^ *+' conftest.er1 >conftest.err
7067 rm -f conftest.er1
7068 cat conftest.err >&5
7069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7070 (exit $ac_status); } && {
7071 test -z "$ac_c_werror_flag" ||
7072 test ! -s conftest.err
7073 } && test -s conftest.$ac_objext; then
7074 ac_cv_header_sys_wait_h=yes
7075 else
7076 echo "$as_me: failed program was:" >&5
7077 sed 's/^/| /' conftest.$ac_ext >&5
7078
7079 ac_cv_header_sys_wait_h=no
7080 fi
7081
7082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7083 fi
7084 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7085 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7086 if test $ac_cv_header_sys_wait_h = yes; then
7087
7088 cat >>confdefs.h <<\_ACEOF
7089 #define HAVE_SYS_WAIT_H 1
7090 _ACEOF
7091
7092 fi
7093
7094
7095 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7096 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7097 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7098 echo $ECHO_N "(cached) $ECHO_C" >&6
7099 else
7100 cat >conftest.$ac_ext <<_ACEOF
7101 /* confdefs.h. */
7102 _ACEOF
7103 cat confdefs.h >>conftest.$ac_ext
7104 cat >>conftest.$ac_ext <<_ACEOF
7105 /* end confdefs.h. */
7106 #ifdef TIME_WITH_SYS_TIME
7107 #include <sys/time.h>
7108 #include <time.h>
7109 #else
7110 #ifdef HAVE_SYS_TIME_H
7111 #include <sys/time.h>
7112 #else
7113 #include <time.h>
7114 #endif
7115 #endif
7116 #ifdef HAVE_UTIME_H
7117 #include <utime.h>
7118 #endif
7119 int
7120 main ()
7121 {
7122 static struct utimbuf x; x.actime = x.modtime;
7123 ;
7124 return 0;
7125 }
7126 _ACEOF
7127 rm -f conftest.$ac_objext
7128 if { (ac_try="$ac_compile"
7129 case "(($ac_try" in
7130 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7131 *) ac_try_echo=$ac_try;;
7132 esac
7133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7134 (eval "$ac_compile") 2>conftest.er1
7135 ac_status=$?
7136 grep -v '^ *+' conftest.er1 >conftest.err
7137 rm -f conftest.er1
7138 cat conftest.err >&5
7139 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7140 (exit $ac_status); } && {
7141 test -z "$ac_c_werror_flag" ||
7142 test ! -s conftest.err
7143 } && test -s conftest.$ac_objext; then
7144 emacs_cv_struct_utimbuf=yes
7145 else
7146 echo "$as_me: failed program was:" >&5
7147 sed 's/^/| /' conftest.$ac_ext >&5
7148
7149 emacs_cv_struct_utimbuf=no
7150 fi
7151
7152 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7153 fi
7154 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7155 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7156 if test $emacs_cv_struct_utimbuf = yes; then
7157
7158 cat >>confdefs.h <<\_ACEOF
7159 #define HAVE_STRUCT_UTIMBUF 1
7160 _ACEOF
7161
7162 fi
7163
7164 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7165 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7166 if test "${ac_cv_type_signal+set}" = set; then
7167 echo $ECHO_N "(cached) $ECHO_C" >&6
7168 else
7169 cat >conftest.$ac_ext <<_ACEOF
7170 /* confdefs.h. */
7171 _ACEOF
7172 cat confdefs.h >>conftest.$ac_ext
7173 cat >>conftest.$ac_ext <<_ACEOF
7174 /* end confdefs.h. */
7175 #include <sys/types.h>
7176 #include <signal.h>
7177
7178 int
7179 main ()
7180 {
7181 return *(signal (0, 0)) (0) == 1;
7182 ;
7183 return 0;
7184 }
7185 _ACEOF
7186 rm -f conftest.$ac_objext
7187 if { (ac_try="$ac_compile"
7188 case "(($ac_try" in
7189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7190 *) ac_try_echo=$ac_try;;
7191 esac
7192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7193 (eval "$ac_compile") 2>conftest.er1
7194 ac_status=$?
7195 grep -v '^ *+' conftest.er1 >conftest.err
7196 rm -f conftest.er1
7197 cat conftest.err >&5
7198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7199 (exit $ac_status); } && {
7200 test -z "$ac_c_werror_flag" ||
7201 test ! -s conftest.err
7202 } && test -s conftest.$ac_objext; then
7203 ac_cv_type_signal=int
7204 else
7205 echo "$as_me: failed program was:" >&5
7206 sed 's/^/| /' conftest.$ac_ext >&5
7207
7208 ac_cv_type_signal=void
7209 fi
7210
7211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7212 fi
7213 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7214 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7215
7216 cat >>confdefs.h <<_ACEOF
7217 #define RETSIGTYPE $ac_cv_type_signal
7218 _ACEOF
7219
7220
7221
7222 { echo "$as_me:$LINENO: checking for speed_t" >&5
7223 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7224 if test "${emacs_cv_speed_t+set}" = set; then
7225 echo $ECHO_N "(cached) $ECHO_C" >&6
7226 else
7227 cat >conftest.$ac_ext <<_ACEOF
7228 /* confdefs.h. */
7229 _ACEOF
7230 cat confdefs.h >>conftest.$ac_ext
7231 cat >>conftest.$ac_ext <<_ACEOF
7232 /* end confdefs.h. */
7233 #include <termios.h>
7234 int
7235 main ()
7236 {
7237 speed_t x = 1;
7238 ;
7239 return 0;
7240 }
7241 _ACEOF
7242 rm -f conftest.$ac_objext
7243 if { (ac_try="$ac_compile"
7244 case "(($ac_try" in
7245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7246 *) ac_try_echo=$ac_try;;
7247 esac
7248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7249 (eval "$ac_compile") 2>conftest.er1
7250 ac_status=$?
7251 grep -v '^ *+' conftest.er1 >conftest.err
7252 rm -f conftest.er1
7253 cat conftest.err >&5
7254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7255 (exit $ac_status); } && {
7256 test -z "$ac_c_werror_flag" ||
7257 test ! -s conftest.err
7258 } && test -s conftest.$ac_objext; then
7259 emacs_cv_speed_t=yes
7260 else
7261 echo "$as_me: failed program was:" >&5
7262 sed 's/^/| /' conftest.$ac_ext >&5
7263
7264 emacs_cv_speed_t=no
7265 fi
7266
7267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7268 fi
7269 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7270 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7271 if test $emacs_cv_speed_t = yes; then
7272
7273 cat >>confdefs.h <<\_ACEOF
7274 #define HAVE_SPEED_T 1
7275 _ACEOF
7276
7277 fi
7278
7279 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7280 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7281 if test "${emacs_cv_struct_timeval+set}" = set; then
7282 echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284 cat >conftest.$ac_ext <<_ACEOF
7285 /* confdefs.h. */
7286 _ACEOF
7287 cat confdefs.h >>conftest.$ac_ext
7288 cat >>conftest.$ac_ext <<_ACEOF
7289 /* end confdefs.h. */
7290 #ifdef TIME_WITH_SYS_TIME
7291 #include <sys/time.h>
7292 #include <time.h>
7293 #else
7294 #ifdef HAVE_SYS_TIME_H
7295 #include <sys/time.h>
7296 #else
7297 #include <time.h>
7298 #endif
7299 #endif
7300 int
7301 main ()
7302 {
7303 static struct timeval x; x.tv_sec = x.tv_usec;
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_struct_timeval=yes
7326 else
7327 echo "$as_me: failed program was:" >&5
7328 sed 's/^/| /' conftest.$ac_ext >&5
7329
7330 emacs_cv_struct_timeval=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_struct_timeval" >&5
7336 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7337 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7338 if test $emacs_cv_struct_timeval = yes; then
7339
7340 cat >>confdefs.h <<\_ACEOF
7341 #define HAVE_TIMEVAL 1
7342 _ACEOF
7343
7344 fi
7345
7346 { echo "$as_me:$LINENO: checking for struct exception" >&5
7347 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7348 if test "${emacs_cv_struct_exception+set}" = set; then
7349 echo $ECHO_N "(cached) $ECHO_C" >&6
7350 else
7351 cat >conftest.$ac_ext <<_ACEOF
7352 /* confdefs.h. */
7353 _ACEOF
7354 cat confdefs.h >>conftest.$ac_ext
7355 cat >>conftest.$ac_ext <<_ACEOF
7356 /* end confdefs.h. */
7357 #include <math.h>
7358 int
7359 main ()
7360 {
7361 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7362 ;
7363 return 0;
7364 }
7365 _ACEOF
7366 rm -f conftest.$ac_objext
7367 if { (ac_try="$ac_compile"
7368 case "(($ac_try" in
7369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7370 *) ac_try_echo=$ac_try;;
7371 esac
7372 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7373 (eval "$ac_compile") 2>conftest.er1
7374 ac_status=$?
7375 grep -v '^ *+' conftest.er1 >conftest.err
7376 rm -f conftest.er1
7377 cat conftest.err >&5
7378 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7379 (exit $ac_status); } && {
7380 test -z "$ac_c_werror_flag" ||
7381 test ! -s conftest.err
7382 } && test -s conftest.$ac_objext; then
7383 emacs_cv_struct_exception=yes
7384 else
7385 echo "$as_me: failed program was:" >&5
7386 sed 's/^/| /' conftest.$ac_ext >&5
7387
7388 emacs_cv_struct_exception=no
7389 fi
7390
7391 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7392 fi
7393 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7394 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7395 HAVE_EXCEPTION=$emacs_cv_struct_exception
7396 if test $emacs_cv_struct_exception != yes; then
7397
7398 cat >>confdefs.h <<\_ACEOF
7399 #define NO_MATHERR 1
7400 _ACEOF
7401
7402 fi
7403
7404
7405 for ac_header in sys/socket.h
7406 do
7407 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7408 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7409 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7410 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7411 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7412 echo $ECHO_N "(cached) $ECHO_C" >&6
7413 fi
7414 ac_res=`eval echo '${'$as_ac_Header'}'`
7415 { echo "$as_me:$LINENO: result: $ac_res" >&5
7416 echo "${ECHO_T}$ac_res" >&6; }
7417 else
7418 # Is the header compilable?
7419 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7420 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7421 cat >conftest.$ac_ext <<_ACEOF
7422 /* confdefs.h. */
7423 _ACEOF
7424 cat confdefs.h >>conftest.$ac_ext
7425 cat >>conftest.$ac_ext <<_ACEOF
7426 /* end confdefs.h. */
7427 $ac_includes_default
7428 #include <$ac_header>
7429 _ACEOF
7430 rm -f conftest.$ac_objext
7431 if { (ac_try="$ac_compile"
7432 case "(($ac_try" in
7433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7434 *) ac_try_echo=$ac_try;;
7435 esac
7436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7437 (eval "$ac_compile") 2>conftest.er1
7438 ac_status=$?
7439 grep -v '^ *+' conftest.er1 >conftest.err
7440 rm -f conftest.er1
7441 cat conftest.err >&5
7442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7443 (exit $ac_status); } && {
7444 test -z "$ac_c_werror_flag" ||
7445 test ! -s conftest.err
7446 } && test -s conftest.$ac_objext; then
7447 ac_header_compiler=yes
7448 else
7449 echo "$as_me: failed program was:" >&5
7450 sed 's/^/| /' conftest.$ac_ext >&5
7451
7452 ac_header_compiler=no
7453 fi
7454
7455 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7456 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7457 echo "${ECHO_T}$ac_header_compiler" >&6; }
7458
7459 # Is the header present?
7460 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7461 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7462 cat >conftest.$ac_ext <<_ACEOF
7463 /* confdefs.h. */
7464 _ACEOF
7465 cat confdefs.h >>conftest.$ac_ext
7466 cat >>conftest.$ac_ext <<_ACEOF
7467 /* end confdefs.h. */
7468 #include <$ac_header>
7469 _ACEOF
7470 if { (ac_try="$ac_cpp conftest.$ac_ext"
7471 case "(($ac_try" in
7472 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7473 *) ac_try_echo=$ac_try;;
7474 esac
7475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7476 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7477 ac_status=$?
7478 grep -v '^ *+' conftest.er1 >conftest.err
7479 rm -f conftest.er1
7480 cat conftest.err >&5
7481 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7482 (exit $ac_status); } >/dev/null && {
7483 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7484 test ! -s conftest.err
7485 }; then
7486 ac_header_preproc=yes
7487 else
7488 echo "$as_me: failed program was:" >&5
7489 sed 's/^/| /' conftest.$ac_ext >&5
7490
7491 ac_header_preproc=no
7492 fi
7493
7494 rm -f conftest.err conftest.$ac_ext
7495 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7496 echo "${ECHO_T}$ac_header_preproc" >&6; }
7497
7498 # So? What about this header?
7499 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7500 yes:no: )
7501 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7502 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7503 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7504 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7505 ac_header_preproc=yes
7506 ;;
7507 no:yes:* )
7508 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7509 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7510 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7511 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7512 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7513 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7514 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7515 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7516 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7517 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7518 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7519 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7520
7521 ;;
7522 esac
7523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7526 echo $ECHO_N "(cached) $ECHO_C" >&6
7527 else
7528 eval "$as_ac_Header=\$ac_header_preproc"
7529 fi
7530 ac_res=`eval echo '${'$as_ac_Header'}'`
7531 { echo "$as_me:$LINENO: result: $ac_res" >&5
7532 echo "${ECHO_T}$ac_res" >&6; }
7533
7534 fi
7535 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7536 cat >>confdefs.h <<_ACEOF
7537 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7538 _ACEOF
7539
7540 fi
7541
7542 done
7543
7544
7545 for ac_header in net/if.h
7546 do
7547 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 else
7553 cat >conftest.$ac_ext <<_ACEOF
7554 /* confdefs.h. */
7555 _ACEOF
7556 cat confdefs.h >>conftest.$ac_ext
7557 cat >>conftest.$ac_ext <<_ACEOF
7558 /* end confdefs.h. */
7559 $ac_includes_default
7560 #if HAVE_SYS_SOCKET_H
7561 #include <sys/socket.h>
7562 #endif
7563
7564 #include <$ac_header>
7565 _ACEOF
7566 rm -f conftest.$ac_objext
7567 if { (ac_try="$ac_compile"
7568 case "(($ac_try" in
7569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7570 *) ac_try_echo=$ac_try;;
7571 esac
7572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7573 (eval "$ac_compile") 2>conftest.er1
7574 ac_status=$?
7575 grep -v '^ *+' conftest.er1 >conftest.err
7576 rm -f conftest.er1
7577 cat conftest.err >&5
7578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7579 (exit $ac_status); } && {
7580 test -z "$ac_c_werror_flag" ||
7581 test ! -s conftest.err
7582 } && test -s conftest.$ac_objext; then
7583 eval "$as_ac_Header=yes"
7584 else
7585 echo "$as_me: failed program was:" >&5
7586 sed 's/^/| /' conftest.$ac_ext >&5
7587
7588 eval "$as_ac_Header=no"
7589 fi
7590
7591 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7592 fi
7593 ac_res=`eval echo '${'$as_ac_Header'}'`
7594 { echo "$as_me:$LINENO: result: $ac_res" >&5
7595 echo "${ECHO_T}$ac_res" >&6; }
7596 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7597 cat >>confdefs.h <<_ACEOF
7598 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7599 _ACEOF
7600
7601 fi
7602
7603 done
7604
7605
7606 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7607 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7608 if test "${ac_cv_struct_tm+set}" = set; then
7609 echo $ECHO_N "(cached) $ECHO_C" >&6
7610 else
7611 cat >conftest.$ac_ext <<_ACEOF
7612 /* confdefs.h. */
7613 _ACEOF
7614 cat confdefs.h >>conftest.$ac_ext
7615 cat >>conftest.$ac_ext <<_ACEOF
7616 /* end confdefs.h. */
7617 #include <sys/types.h>
7618 #include <time.h>
7619
7620 int
7621 main ()
7622 {
7623 struct tm tm;
7624 int *p = &tm.tm_sec;
7625 return !p;
7626 ;
7627 return 0;
7628 }
7629 _ACEOF
7630 rm -f conftest.$ac_objext
7631 if { (ac_try="$ac_compile"
7632 case "(($ac_try" in
7633 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7634 *) ac_try_echo=$ac_try;;
7635 esac
7636 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7637 (eval "$ac_compile") 2>conftest.er1
7638 ac_status=$?
7639 grep -v '^ *+' conftest.er1 >conftest.err
7640 rm -f conftest.er1
7641 cat conftest.err >&5
7642 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7643 (exit $ac_status); } && {
7644 test -z "$ac_c_werror_flag" ||
7645 test ! -s conftest.err
7646 } && test -s conftest.$ac_objext; then
7647 ac_cv_struct_tm=time.h
7648 else
7649 echo "$as_me: failed program was:" >&5
7650 sed 's/^/| /' conftest.$ac_ext >&5
7651
7652 ac_cv_struct_tm=sys/time.h
7653 fi
7654
7655 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7656 fi
7657 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7658 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7659 if test $ac_cv_struct_tm = sys/time.h; then
7660
7661 cat >>confdefs.h <<\_ACEOF
7662 #define TM_IN_SYS_TIME 1
7663 _ACEOF
7664
7665 fi
7666
7667 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7668 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7669 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7670 echo $ECHO_N "(cached) $ECHO_C" >&6
7671 else
7672 cat >conftest.$ac_ext <<_ACEOF
7673 /* confdefs.h. */
7674 _ACEOF
7675 cat confdefs.h >>conftest.$ac_ext
7676 cat >>conftest.$ac_ext <<_ACEOF
7677 /* end confdefs.h. */
7678 #include <sys/types.h>
7679 #include <$ac_cv_struct_tm>
7680
7681
7682 int
7683 main ()
7684 {
7685 static struct tm ac_aggr;
7686 if (ac_aggr.tm_zone)
7687 return 0;
7688 ;
7689 return 0;
7690 }
7691 _ACEOF
7692 rm -f conftest.$ac_objext
7693 if { (ac_try="$ac_compile"
7694 case "(($ac_try" in
7695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7696 *) ac_try_echo=$ac_try;;
7697 esac
7698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7699 (eval "$ac_compile") 2>conftest.er1
7700 ac_status=$?
7701 grep -v '^ *+' conftest.er1 >conftest.err
7702 rm -f conftest.er1
7703 cat conftest.err >&5
7704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7705 (exit $ac_status); } && {
7706 test -z "$ac_c_werror_flag" ||
7707 test ! -s conftest.err
7708 } && test -s conftest.$ac_objext; then
7709 ac_cv_member_struct_tm_tm_zone=yes
7710 else
7711 echo "$as_me: failed program was:" >&5
7712 sed 's/^/| /' conftest.$ac_ext >&5
7713
7714 cat >conftest.$ac_ext <<_ACEOF
7715 /* confdefs.h. */
7716 _ACEOF
7717 cat confdefs.h >>conftest.$ac_ext
7718 cat >>conftest.$ac_ext <<_ACEOF
7719 /* end confdefs.h. */
7720 #include <sys/types.h>
7721 #include <$ac_cv_struct_tm>
7722
7723
7724 int
7725 main ()
7726 {
7727 static struct tm ac_aggr;
7728 if (sizeof ac_aggr.tm_zone)
7729 return 0;
7730 ;
7731 return 0;
7732 }
7733 _ACEOF
7734 rm -f conftest.$ac_objext
7735 if { (ac_try="$ac_compile"
7736 case "(($ac_try" in
7737 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7738 *) ac_try_echo=$ac_try;;
7739 esac
7740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7741 (eval "$ac_compile") 2>conftest.er1
7742 ac_status=$?
7743 grep -v '^ *+' conftest.er1 >conftest.err
7744 rm -f conftest.er1
7745 cat conftest.err >&5
7746 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7747 (exit $ac_status); } && {
7748 test -z "$ac_c_werror_flag" ||
7749 test ! -s conftest.err
7750 } && test -s conftest.$ac_objext; then
7751 ac_cv_member_struct_tm_tm_zone=yes
7752 else
7753 echo "$as_me: failed program was:" >&5
7754 sed 's/^/| /' conftest.$ac_ext >&5
7755
7756 ac_cv_member_struct_tm_tm_zone=no
7757 fi
7758
7759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7760 fi
7761
7762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7763 fi
7764 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7765 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7766 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7767
7768 cat >>confdefs.h <<_ACEOF
7769 #define HAVE_STRUCT_TM_TM_ZONE 1
7770 _ACEOF
7771
7772
7773 fi
7774
7775 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7776
7777 cat >>confdefs.h <<\_ACEOF
7778 #define HAVE_TM_ZONE 1
7779 _ACEOF
7780
7781 else
7782 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7783 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7784 if test "${ac_cv_have_decl_tzname+set}" = set; then
7785 echo $ECHO_N "(cached) $ECHO_C" >&6
7786 else
7787 cat >conftest.$ac_ext <<_ACEOF
7788 /* confdefs.h. */
7789 _ACEOF
7790 cat confdefs.h >>conftest.$ac_ext
7791 cat >>conftest.$ac_ext <<_ACEOF
7792 /* end confdefs.h. */
7793 #include <time.h>
7794
7795 int
7796 main ()
7797 {
7798 #ifndef tzname
7799 (void) tzname;
7800 #endif
7801
7802 ;
7803 return 0;
7804 }
7805 _ACEOF
7806 rm -f conftest.$ac_objext
7807 if { (ac_try="$ac_compile"
7808 case "(($ac_try" in
7809 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7810 *) ac_try_echo=$ac_try;;
7811 esac
7812 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7813 (eval "$ac_compile") 2>conftest.er1
7814 ac_status=$?
7815 grep -v '^ *+' conftest.er1 >conftest.err
7816 rm -f conftest.er1
7817 cat conftest.err >&5
7818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7819 (exit $ac_status); } && {
7820 test -z "$ac_c_werror_flag" ||
7821 test ! -s conftest.err
7822 } && test -s conftest.$ac_objext; then
7823 ac_cv_have_decl_tzname=yes
7824 else
7825 echo "$as_me: failed program was:" >&5
7826 sed 's/^/| /' conftest.$ac_ext >&5
7827
7828 ac_cv_have_decl_tzname=no
7829 fi
7830
7831 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7832 fi
7833 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7834 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7835 if test $ac_cv_have_decl_tzname = yes; then
7836
7837 cat >>confdefs.h <<_ACEOF
7838 #define HAVE_DECL_TZNAME 1
7839 _ACEOF
7840
7841
7842 else
7843 cat >>confdefs.h <<_ACEOF
7844 #define HAVE_DECL_TZNAME 0
7845 _ACEOF
7846
7847
7848 fi
7849
7850
7851 { echo "$as_me:$LINENO: checking for tzname" >&5
7852 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7853 if test "${ac_cv_var_tzname+set}" = set; then
7854 echo $ECHO_N "(cached) $ECHO_C" >&6
7855 else
7856 cat >conftest.$ac_ext <<_ACEOF
7857 /* confdefs.h. */
7858 _ACEOF
7859 cat confdefs.h >>conftest.$ac_ext
7860 cat >>conftest.$ac_ext <<_ACEOF
7861 /* end confdefs.h. */
7862 #include <time.h>
7863 #if !HAVE_DECL_TZNAME
7864 extern char *tzname[];
7865 #endif
7866
7867 int
7868 main ()
7869 {
7870 return tzname[0][0];
7871 ;
7872 return 0;
7873 }
7874 _ACEOF
7875 rm -f conftest.$ac_objext conftest$ac_exeext
7876 if { (ac_try="$ac_link"
7877 case "(($ac_try" in
7878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7879 *) ac_try_echo=$ac_try;;
7880 esac
7881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7882 (eval "$ac_link") 2>conftest.er1
7883 ac_status=$?
7884 grep -v '^ *+' conftest.er1 >conftest.err
7885 rm -f conftest.er1
7886 cat conftest.err >&5
7887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7888 (exit $ac_status); } && {
7889 test -z "$ac_c_werror_flag" ||
7890 test ! -s conftest.err
7891 } && test -s conftest$ac_exeext &&
7892 $as_test_x conftest$ac_exeext; then
7893 ac_cv_var_tzname=yes
7894 else
7895 echo "$as_me: failed program was:" >&5
7896 sed 's/^/| /' conftest.$ac_ext >&5
7897
7898 ac_cv_var_tzname=no
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7902 conftest$ac_exeext conftest.$ac_ext
7903 fi
7904 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7905 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7906 if test $ac_cv_var_tzname = yes; then
7907
7908 cat >>confdefs.h <<\_ACEOF
7909 #define HAVE_TZNAME 1
7910 _ACEOF
7911
7912 fi
7913 fi
7914
7915 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7916 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7917 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7918 echo $ECHO_N "(cached) $ECHO_C" >&6
7919 else
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <time.h>
7927
7928 int
7929 main ()
7930 {
7931 static struct tm ac_aggr;
7932 if (ac_aggr.tm_gmtoff)
7933 return 0;
7934 ;
7935 return 0;
7936 }
7937 _ACEOF
7938 rm -f conftest.$ac_objext
7939 if { (ac_try="$ac_compile"
7940 case "(($ac_try" in
7941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7942 *) ac_try_echo=$ac_try;;
7943 esac
7944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7945 (eval "$ac_compile") 2>conftest.er1
7946 ac_status=$?
7947 grep -v '^ *+' conftest.er1 >conftest.err
7948 rm -f conftest.er1
7949 cat conftest.err >&5
7950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7951 (exit $ac_status); } && {
7952 test -z "$ac_c_werror_flag" ||
7953 test ! -s conftest.err
7954 } && test -s conftest.$ac_objext; then
7955 ac_cv_member_struct_tm_tm_gmtoff=yes
7956 else
7957 echo "$as_me: failed program was:" >&5
7958 sed 's/^/| /' conftest.$ac_ext >&5
7959
7960 cat >conftest.$ac_ext <<_ACEOF
7961 /* confdefs.h. */
7962 _ACEOF
7963 cat confdefs.h >>conftest.$ac_ext
7964 cat >>conftest.$ac_ext <<_ACEOF
7965 /* end confdefs.h. */
7966 #include <time.h>
7967
7968 int
7969 main ()
7970 {
7971 static struct tm ac_aggr;
7972 if (sizeof ac_aggr.tm_gmtoff)
7973 return 0;
7974 ;
7975 return 0;
7976 }
7977 _ACEOF
7978 rm -f conftest.$ac_objext
7979 if { (ac_try="$ac_compile"
7980 case "(($ac_try" in
7981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7982 *) ac_try_echo=$ac_try;;
7983 esac
7984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7985 (eval "$ac_compile") 2>conftest.er1
7986 ac_status=$?
7987 grep -v '^ *+' conftest.er1 >conftest.err
7988 rm -f conftest.er1
7989 cat conftest.err >&5
7990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7991 (exit $ac_status); } && {
7992 test -z "$ac_c_werror_flag" ||
7993 test ! -s conftest.err
7994 } && test -s conftest.$ac_objext; then
7995 ac_cv_member_struct_tm_tm_gmtoff=yes
7996 else
7997 echo "$as_me: failed program was:" >&5
7998 sed 's/^/| /' conftest.$ac_ext >&5
7999
8000 ac_cv_member_struct_tm_tm_gmtoff=no
8001 fi
8002
8003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8004 fi
8005
8006 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8007 fi
8008 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8009 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8010 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8011
8012 cat >>confdefs.h <<\_ACEOF
8013 #define HAVE_TM_GMTOFF 1
8014 _ACEOF
8015
8016 fi
8017
8018 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8019 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8020 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8021 echo $ECHO_N "(cached) $ECHO_C" >&6
8022 else
8023 cat >conftest.$ac_ext <<_ACEOF
8024 /* confdefs.h. */
8025 _ACEOF
8026 cat confdefs.h >>conftest.$ac_ext
8027 cat >>conftest.$ac_ext <<_ACEOF
8028 /* end confdefs.h. */
8029 $ac_includes_default
8030 #if HAVE_SYS_SOCKET_H
8031 #include <sys/socket.h>
8032 #endif
8033 #if HAVE_NET_IF_H
8034 #include <net/if.h>
8035 #endif
8036
8037 int
8038 main ()
8039 {
8040 static struct ifreq ac_aggr;
8041 if (ac_aggr.ifr_flags)
8042 return 0;
8043 ;
8044 return 0;
8045 }
8046 _ACEOF
8047 rm -f conftest.$ac_objext
8048 if { (ac_try="$ac_compile"
8049 case "(($ac_try" in
8050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8051 *) ac_try_echo=$ac_try;;
8052 esac
8053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8054 (eval "$ac_compile") 2>conftest.er1
8055 ac_status=$?
8056 grep -v '^ *+' conftest.er1 >conftest.err
8057 rm -f conftest.er1
8058 cat conftest.err >&5
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); } && {
8061 test -z "$ac_c_werror_flag" ||
8062 test ! -s conftest.err
8063 } && test -s conftest.$ac_objext; then
8064 ac_cv_member_struct_ifreq_ifr_flags=yes
8065 else
8066 echo "$as_me: failed program was:" >&5
8067 sed 's/^/| /' conftest.$ac_ext >&5
8068
8069 cat >conftest.$ac_ext <<_ACEOF
8070 /* confdefs.h. */
8071 _ACEOF
8072 cat confdefs.h >>conftest.$ac_ext
8073 cat >>conftest.$ac_ext <<_ACEOF
8074 /* end confdefs.h. */
8075 $ac_includes_default
8076 #if HAVE_SYS_SOCKET_H
8077 #include <sys/socket.h>
8078 #endif
8079 #if HAVE_NET_IF_H
8080 #include <net/if.h>
8081 #endif
8082
8083 int
8084 main ()
8085 {
8086 static struct ifreq ac_aggr;
8087 if (sizeof ac_aggr.ifr_flags)
8088 return 0;
8089 ;
8090 return 0;
8091 }
8092 _ACEOF
8093 rm -f conftest.$ac_objext
8094 if { (ac_try="$ac_compile"
8095 case "(($ac_try" in
8096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8097 *) ac_try_echo=$ac_try;;
8098 esac
8099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8100 (eval "$ac_compile") 2>conftest.er1
8101 ac_status=$?
8102 grep -v '^ *+' conftest.er1 >conftest.err
8103 rm -f conftest.er1
8104 cat conftest.err >&5
8105 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8106 (exit $ac_status); } && {
8107 test -z "$ac_c_werror_flag" ||
8108 test ! -s conftest.err
8109 } && test -s conftest.$ac_objext; then
8110 ac_cv_member_struct_ifreq_ifr_flags=yes
8111 else
8112 echo "$as_me: failed program was:" >&5
8113 sed 's/^/| /' conftest.$ac_ext >&5
8114
8115 ac_cv_member_struct_ifreq_ifr_flags=no
8116 fi
8117
8118 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8119 fi
8120
8121 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8122 fi
8123 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8124 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8125 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8126
8127 cat >>confdefs.h <<_ACEOF
8128 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8129 _ACEOF
8130
8131
8132 fi
8133 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8134 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8135 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8136 echo $ECHO_N "(cached) $ECHO_C" >&6
8137 else
8138 cat >conftest.$ac_ext <<_ACEOF
8139 /* confdefs.h. */
8140 _ACEOF
8141 cat confdefs.h >>conftest.$ac_ext
8142 cat >>conftest.$ac_ext <<_ACEOF
8143 /* end confdefs.h. */
8144 $ac_includes_default
8145 #if HAVE_SYS_SOCKET_H
8146 #include <sys/socket.h>
8147 #endif
8148 #if HAVE_NET_IF_H
8149 #include <net/if.h>
8150 #endif
8151
8152 int
8153 main ()
8154 {
8155 static struct ifreq ac_aggr;
8156 if (ac_aggr.ifr_hwaddr)
8157 return 0;
8158 ;
8159 return 0;
8160 }
8161 _ACEOF
8162 rm -f conftest.$ac_objext
8163 if { (ac_try="$ac_compile"
8164 case "(($ac_try" in
8165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8166 *) ac_try_echo=$ac_try;;
8167 esac
8168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8169 (eval "$ac_compile") 2>conftest.er1
8170 ac_status=$?
8171 grep -v '^ *+' conftest.er1 >conftest.err
8172 rm -f conftest.er1
8173 cat conftest.err >&5
8174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8175 (exit $ac_status); } && {
8176 test -z "$ac_c_werror_flag" ||
8177 test ! -s conftest.err
8178 } && test -s conftest.$ac_objext; then
8179 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8180 else
8181 echo "$as_me: failed program was:" >&5
8182 sed 's/^/| /' conftest.$ac_ext >&5
8183
8184 cat >conftest.$ac_ext <<_ACEOF
8185 /* confdefs.h. */
8186 _ACEOF
8187 cat confdefs.h >>conftest.$ac_ext
8188 cat >>conftest.$ac_ext <<_ACEOF
8189 /* end confdefs.h. */
8190 $ac_includes_default
8191 #if HAVE_SYS_SOCKET_H
8192 #include <sys/socket.h>
8193 #endif
8194 #if HAVE_NET_IF_H
8195 #include <net/if.h>
8196 #endif
8197
8198 int
8199 main ()
8200 {
8201 static struct ifreq ac_aggr;
8202 if (sizeof ac_aggr.ifr_hwaddr)
8203 return 0;
8204 ;
8205 return 0;
8206 }
8207 _ACEOF
8208 rm -f conftest.$ac_objext
8209 if { (ac_try="$ac_compile"
8210 case "(($ac_try" in
8211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8212 *) ac_try_echo=$ac_try;;
8213 esac
8214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8215 (eval "$ac_compile") 2>conftest.er1
8216 ac_status=$?
8217 grep -v '^ *+' conftest.er1 >conftest.err
8218 rm -f conftest.er1
8219 cat conftest.err >&5
8220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8221 (exit $ac_status); } && {
8222 test -z "$ac_c_werror_flag" ||
8223 test ! -s conftest.err
8224 } && test -s conftest.$ac_objext; then
8225 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8226 else
8227 echo "$as_me: failed program was:" >&5
8228 sed 's/^/| /' conftest.$ac_ext >&5
8229
8230 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8231 fi
8232
8233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8234 fi
8235
8236 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8237 fi
8238 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8239 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8240 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8241
8242 cat >>confdefs.h <<_ACEOF
8243 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8244 _ACEOF
8245
8246
8247 fi
8248 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8249 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8250 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8251 echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253 cat >conftest.$ac_ext <<_ACEOF
8254 /* confdefs.h. */
8255 _ACEOF
8256 cat confdefs.h >>conftest.$ac_ext
8257 cat >>conftest.$ac_ext <<_ACEOF
8258 /* end confdefs.h. */
8259 $ac_includes_default
8260 #if HAVE_SYS_SOCKET_H
8261 #include <sys/socket.h>
8262 #endif
8263 #if HAVE_NET_IF_H
8264 #include <net/if.h>
8265 #endif
8266
8267 int
8268 main ()
8269 {
8270 static struct ifreq ac_aggr;
8271 if (ac_aggr.ifr_netmask)
8272 return 0;
8273 ;
8274 return 0;
8275 }
8276 _ACEOF
8277 rm -f conftest.$ac_objext
8278 if { (ac_try="$ac_compile"
8279 case "(($ac_try" in
8280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8281 *) ac_try_echo=$ac_try;;
8282 esac
8283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8284 (eval "$ac_compile") 2>conftest.er1
8285 ac_status=$?
8286 grep -v '^ *+' conftest.er1 >conftest.err
8287 rm -f conftest.er1
8288 cat conftest.err >&5
8289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8290 (exit $ac_status); } && {
8291 test -z "$ac_c_werror_flag" ||
8292 test ! -s conftest.err
8293 } && test -s conftest.$ac_objext; then
8294 ac_cv_member_struct_ifreq_ifr_netmask=yes
8295 else
8296 echo "$as_me: failed program was:" >&5
8297 sed 's/^/| /' conftest.$ac_ext >&5
8298
8299 cat >conftest.$ac_ext <<_ACEOF
8300 /* confdefs.h. */
8301 _ACEOF
8302 cat confdefs.h >>conftest.$ac_ext
8303 cat >>conftest.$ac_ext <<_ACEOF
8304 /* end confdefs.h. */
8305 $ac_includes_default
8306 #if HAVE_SYS_SOCKET_H
8307 #include <sys/socket.h>
8308 #endif
8309 #if HAVE_NET_IF_H
8310 #include <net/if.h>
8311 #endif
8312
8313 int
8314 main ()
8315 {
8316 static struct ifreq ac_aggr;
8317 if (sizeof ac_aggr.ifr_netmask)
8318 return 0;
8319 ;
8320 return 0;
8321 }
8322 _ACEOF
8323 rm -f conftest.$ac_objext
8324 if { (ac_try="$ac_compile"
8325 case "(($ac_try" in
8326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8327 *) ac_try_echo=$ac_try;;
8328 esac
8329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8330 (eval "$ac_compile") 2>conftest.er1
8331 ac_status=$?
8332 grep -v '^ *+' conftest.er1 >conftest.err
8333 rm -f conftest.er1
8334 cat conftest.err >&5
8335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8336 (exit $ac_status); } && {
8337 test -z "$ac_c_werror_flag" ||
8338 test ! -s conftest.err
8339 } && test -s conftest.$ac_objext; then
8340 ac_cv_member_struct_ifreq_ifr_netmask=yes
8341 else
8342 echo "$as_me: failed program was:" >&5
8343 sed 's/^/| /' conftest.$ac_ext >&5
8344
8345 ac_cv_member_struct_ifreq_ifr_netmask=no
8346 fi
8347
8348 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8349 fi
8350
8351 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8352 fi
8353 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8354 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8355 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8356
8357 cat >>confdefs.h <<_ACEOF
8358 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8359 _ACEOF
8360
8361
8362 fi
8363 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8364 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8365 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8366 echo $ECHO_N "(cached) $ECHO_C" >&6
8367 else
8368 cat >conftest.$ac_ext <<_ACEOF
8369 /* confdefs.h. */
8370 _ACEOF
8371 cat confdefs.h >>conftest.$ac_ext
8372 cat >>conftest.$ac_ext <<_ACEOF
8373 /* end confdefs.h. */
8374 $ac_includes_default
8375 #if HAVE_SYS_SOCKET_H
8376 #include <sys/socket.h>
8377 #endif
8378 #if HAVE_NET_IF_H
8379 #include <net/if.h>
8380 #endif
8381
8382 int
8383 main ()
8384 {
8385 static struct ifreq ac_aggr;
8386 if (ac_aggr.ifr_broadaddr)
8387 return 0;
8388 ;
8389 return 0;
8390 }
8391 _ACEOF
8392 rm -f conftest.$ac_objext
8393 if { (ac_try="$ac_compile"
8394 case "(($ac_try" in
8395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8396 *) ac_try_echo=$ac_try;;
8397 esac
8398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8399 (eval "$ac_compile") 2>conftest.er1
8400 ac_status=$?
8401 grep -v '^ *+' conftest.er1 >conftest.err
8402 rm -f conftest.er1
8403 cat conftest.err >&5
8404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8405 (exit $ac_status); } && {
8406 test -z "$ac_c_werror_flag" ||
8407 test ! -s conftest.err
8408 } && test -s conftest.$ac_objext; then
8409 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8410 else
8411 echo "$as_me: failed program was:" >&5
8412 sed 's/^/| /' conftest.$ac_ext >&5
8413
8414 cat >conftest.$ac_ext <<_ACEOF
8415 /* confdefs.h. */
8416 _ACEOF
8417 cat confdefs.h >>conftest.$ac_ext
8418 cat >>conftest.$ac_ext <<_ACEOF
8419 /* end confdefs.h. */
8420 $ac_includes_default
8421 #if HAVE_SYS_SOCKET_H
8422 #include <sys/socket.h>
8423 #endif
8424 #if HAVE_NET_IF_H
8425 #include <net/if.h>
8426 #endif
8427
8428 int
8429 main ()
8430 {
8431 static struct ifreq ac_aggr;
8432 if (sizeof ac_aggr.ifr_broadaddr)
8433 return 0;
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest.$ac_objext
8439 if { (ac_try="$ac_compile"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_compile") 2>conftest.er1
8446 ac_status=$?
8447 grep -v '^ *+' conftest.er1 >conftest.err
8448 rm -f conftest.er1
8449 cat conftest.err >&5
8450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8451 (exit $ac_status); } && {
8452 test -z "$ac_c_werror_flag" ||
8453 test ! -s conftest.err
8454 } && test -s conftest.$ac_objext; then
8455 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8456 else
8457 echo "$as_me: failed program was:" >&5
8458 sed 's/^/| /' conftest.$ac_ext >&5
8459
8460 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8461 fi
8462
8463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8464 fi
8465
8466 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8467 fi
8468 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8469 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8470 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8471
8472 cat >>confdefs.h <<_ACEOF
8473 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8474 _ACEOF
8475
8476
8477 fi
8478 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8479 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8480 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8481 echo $ECHO_N "(cached) $ECHO_C" >&6
8482 else
8483 cat >conftest.$ac_ext <<_ACEOF
8484 /* confdefs.h. */
8485 _ACEOF
8486 cat confdefs.h >>conftest.$ac_ext
8487 cat >>conftest.$ac_ext <<_ACEOF
8488 /* end confdefs.h. */
8489 $ac_includes_default
8490 #if HAVE_SYS_SOCKET_H
8491 #include <sys/socket.h>
8492 #endif
8493 #if HAVE_NET_IF_H
8494 #include <net/if.h>
8495 #endif
8496
8497 int
8498 main ()
8499 {
8500 static struct ifreq ac_aggr;
8501 if (ac_aggr.ifr_addr)
8502 return 0;
8503 ;
8504 return 0;
8505 }
8506 _ACEOF
8507 rm -f conftest.$ac_objext
8508 if { (ac_try="$ac_compile"
8509 case "(($ac_try" in
8510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8511 *) ac_try_echo=$ac_try;;
8512 esac
8513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8514 (eval "$ac_compile") 2>conftest.er1
8515 ac_status=$?
8516 grep -v '^ *+' conftest.er1 >conftest.err
8517 rm -f conftest.er1
8518 cat conftest.err >&5
8519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8520 (exit $ac_status); } && {
8521 test -z "$ac_c_werror_flag" ||
8522 test ! -s conftest.err
8523 } && test -s conftest.$ac_objext; then
8524 ac_cv_member_struct_ifreq_ifr_addr=yes
8525 else
8526 echo "$as_me: failed program was:" >&5
8527 sed 's/^/| /' conftest.$ac_ext >&5
8528
8529 cat >conftest.$ac_ext <<_ACEOF
8530 /* confdefs.h. */
8531 _ACEOF
8532 cat confdefs.h >>conftest.$ac_ext
8533 cat >>conftest.$ac_ext <<_ACEOF
8534 /* end confdefs.h. */
8535 $ac_includes_default
8536 #if HAVE_SYS_SOCKET_H
8537 #include <sys/socket.h>
8538 #endif
8539 #if HAVE_NET_IF_H
8540 #include <net/if.h>
8541 #endif
8542
8543 int
8544 main ()
8545 {
8546 static struct ifreq ac_aggr;
8547 if (sizeof ac_aggr.ifr_addr)
8548 return 0;
8549 ;
8550 return 0;
8551 }
8552 _ACEOF
8553 rm -f conftest.$ac_objext
8554 if { (ac_try="$ac_compile"
8555 case "(($ac_try" in
8556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8557 *) ac_try_echo=$ac_try;;
8558 esac
8559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8560 (eval "$ac_compile") 2>conftest.er1
8561 ac_status=$?
8562 grep -v '^ *+' conftest.er1 >conftest.err
8563 rm -f conftest.er1
8564 cat conftest.err >&5
8565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8566 (exit $ac_status); } && {
8567 test -z "$ac_c_werror_flag" ||
8568 test ! -s conftest.err
8569 } && test -s conftest.$ac_objext; then
8570 ac_cv_member_struct_ifreq_ifr_addr=yes
8571 else
8572 echo "$as_me: failed program was:" >&5
8573 sed 's/^/| /' conftest.$ac_ext >&5
8574
8575 ac_cv_member_struct_ifreq_ifr_addr=no
8576 fi
8577
8578 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8579 fi
8580
8581 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8582 fi
8583 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8584 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8585 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8586
8587 cat >>confdefs.h <<_ACEOF
8588 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8589 _ACEOF
8590
8591
8592 fi
8593
8594
8595
8596 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8597 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8598 if test "$ac_cv_prog_cc_c89" != no; then
8599 { echo "$as_me:$LINENO: result: yes" >&5
8600 echo "${ECHO_T}yes" >&6; }
8601
8602 cat >>confdefs.h <<\_ACEOF
8603 #define PROTOTYPES 1
8604 _ACEOF
8605
8606
8607 cat >>confdefs.h <<\_ACEOF
8608 #define __PROTOTYPES 1
8609 _ACEOF
8610
8611 else
8612 { echo "$as_me:$LINENO: result: no" >&5
8613 echo "${ECHO_T}no" >&6; }
8614 fi
8615
8616 { echo "$as_me:$LINENO: checking for working volatile" >&5
8617 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8618 if test "${ac_cv_c_volatile+set}" = set; then
8619 echo $ECHO_N "(cached) $ECHO_C" >&6
8620 else
8621 cat >conftest.$ac_ext <<_ACEOF
8622 /* confdefs.h. */
8623 _ACEOF
8624 cat confdefs.h >>conftest.$ac_ext
8625 cat >>conftest.$ac_ext <<_ACEOF
8626 /* end confdefs.h. */
8627
8628 int
8629 main ()
8630 {
8631
8632 volatile int x;
8633 int * volatile y = (int *) 0;
8634 return !x && !y;
8635 ;
8636 return 0;
8637 }
8638 _ACEOF
8639 rm -f conftest.$ac_objext
8640 if { (ac_try="$ac_compile"
8641 case "(($ac_try" in
8642 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8643 *) ac_try_echo=$ac_try;;
8644 esac
8645 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8646 (eval "$ac_compile") 2>conftest.er1
8647 ac_status=$?
8648 grep -v '^ *+' conftest.er1 >conftest.err
8649 rm -f conftest.er1
8650 cat conftest.err >&5
8651 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8652 (exit $ac_status); } && {
8653 test -z "$ac_c_werror_flag" ||
8654 test ! -s conftest.err
8655 } && test -s conftest.$ac_objext; then
8656 ac_cv_c_volatile=yes
8657 else
8658 echo "$as_me: failed program was:" >&5
8659 sed 's/^/| /' conftest.$ac_ext >&5
8660
8661 ac_cv_c_volatile=no
8662 fi
8663
8664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8665 fi
8666 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8667 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8668 if test $ac_cv_c_volatile = no; then
8669
8670 cat >>confdefs.h <<\_ACEOF
8671 #define volatile
8672 _ACEOF
8673
8674 fi
8675
8676 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8677 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8678 if test "${ac_cv_c_const+set}" = set; then
8679 echo $ECHO_N "(cached) $ECHO_C" >&6
8680 else
8681 cat >conftest.$ac_ext <<_ACEOF
8682 /* confdefs.h. */
8683 _ACEOF
8684 cat confdefs.h >>conftest.$ac_ext
8685 cat >>conftest.$ac_ext <<_ACEOF
8686 /* end confdefs.h. */
8687
8688 int
8689 main ()
8690 {
8691 /* FIXME: Include the comments suggested by Paul. */
8692 #ifndef __cplusplus
8693 /* Ultrix mips cc rejects this. */
8694 typedef int charset[2];
8695 const charset cs;
8696 /* SunOS 4.1.1 cc rejects this. */
8697 char const *const *pcpcc;
8698 char **ppc;
8699 /* NEC SVR4.0.2 mips cc rejects this. */
8700 struct point {int x, y;};
8701 static struct point const zero = {0,0};
8702 /* AIX XL C 1.02.0.0 rejects this.
8703 It does not let you subtract one const X* pointer from another in
8704 an arm of an if-expression whose if-part is not a constant
8705 expression */
8706 const char *g = "string";
8707 pcpcc = &g + (g ? g-g : 0);
8708 /* HPUX 7.0 cc rejects these. */
8709 ++pcpcc;
8710 ppc = (char**) pcpcc;
8711 pcpcc = (char const *const *) ppc;
8712 { /* SCO 3.2v4 cc rejects this. */
8713 char *t;
8714 char const *s = 0 ? (char *) 0 : (char const *) 0;
8715
8716 *t++ = 0;
8717 if (s) return 0;
8718 }
8719 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8720 int x[] = {25, 17};
8721 const int *foo = &x[0];
8722 ++foo;
8723 }
8724 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8725 typedef const int *iptr;
8726 iptr p = 0;
8727 ++p;
8728 }
8729 { /* AIX XL C 1.02.0.0 rejects this saying
8730 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8731 struct s { int j; const int *ap[3]; };
8732 struct s *b; b->j = 5;
8733 }
8734 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8735 const int foo = 10;
8736 if (!foo) return 0;
8737 }
8738 return !cs[0] && !zero.x;
8739 #endif
8740
8741 ;
8742 return 0;
8743 }
8744 _ACEOF
8745 rm -f conftest.$ac_objext
8746 if { (ac_try="$ac_compile"
8747 case "(($ac_try" in
8748 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8749 *) ac_try_echo=$ac_try;;
8750 esac
8751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8752 (eval "$ac_compile") 2>conftest.er1
8753 ac_status=$?
8754 grep -v '^ *+' conftest.er1 >conftest.err
8755 rm -f conftest.er1
8756 cat conftest.err >&5
8757 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8758 (exit $ac_status); } && {
8759 test -z "$ac_c_werror_flag" ||
8760 test ! -s conftest.err
8761 } && test -s conftest.$ac_objext; then
8762 ac_cv_c_const=yes
8763 else
8764 echo "$as_me: failed program was:" >&5
8765 sed 's/^/| /' conftest.$ac_ext >&5
8766
8767 ac_cv_c_const=no
8768 fi
8769
8770 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8771 fi
8772 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8773 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8774 if test $ac_cv_c_const = no; then
8775
8776 cat >>confdefs.h <<\_ACEOF
8777 #define const
8778 _ACEOF
8779
8780 fi
8781
8782 { echo "$as_me:$LINENO: checking for void * support" >&5
8783 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8784 if test "${emacs_cv_void_star+set}" = set; then
8785 echo $ECHO_N "(cached) $ECHO_C" >&6
8786 else
8787 cat >conftest.$ac_ext <<_ACEOF
8788 /* confdefs.h. */
8789 _ACEOF
8790 cat confdefs.h >>conftest.$ac_ext
8791 cat >>conftest.$ac_ext <<_ACEOF
8792 /* end confdefs.h. */
8793
8794 int
8795 main ()
8796 {
8797 void * foo;
8798 ;
8799 return 0;
8800 }
8801 _ACEOF
8802 rm -f conftest.$ac_objext
8803 if { (ac_try="$ac_compile"
8804 case "(($ac_try" in
8805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8806 *) ac_try_echo=$ac_try;;
8807 esac
8808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8809 (eval "$ac_compile") 2>conftest.er1
8810 ac_status=$?
8811 grep -v '^ *+' conftest.er1 >conftest.err
8812 rm -f conftest.er1
8813 cat conftest.err >&5
8814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8815 (exit $ac_status); } && {
8816 test -z "$ac_c_werror_flag" ||
8817 test ! -s conftest.err
8818 } && test -s conftest.$ac_objext; then
8819 emacs_cv_void_star=yes
8820 else
8821 echo "$as_me: failed program was:" >&5
8822 sed 's/^/| /' conftest.$ac_ext >&5
8823
8824 emacs_cv_void_star=no
8825 fi
8826
8827 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8828 fi
8829 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8830 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8831 if test $emacs_cv_void_star = yes; then
8832 cat >>confdefs.h <<\_ACEOF
8833 #define POINTER_TYPE void
8834 _ACEOF
8835
8836 else
8837 cat >>confdefs.h <<\_ACEOF
8838 #define POINTER_TYPE char
8839 _ACEOF
8840
8841 fi
8842
8843
8844
8845
8846
8847 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8848 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8849 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8850 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8851 echo $ECHO_N "(cached) $ECHO_C" >&6
8852 else
8853 cat >conftest.make <<\_ACEOF
8854 SHELL = /bin/sh
8855 all:
8856 @echo '@@@%%%=$(MAKE)=@@@%%%'
8857 _ACEOF
8858 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8859 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8860 *@@@%%%=?*=@@@%%%*)
8861 eval ac_cv_prog_make_${ac_make}_set=yes;;
8862 *)
8863 eval ac_cv_prog_make_${ac_make}_set=no;;
8864 esac
8865 rm -f conftest.make
8866 fi
8867 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8868 { echo "$as_me:$LINENO: result: yes" >&5
8869 echo "${ECHO_T}yes" >&6; }
8870 SET_MAKE=
8871 else
8872 { echo "$as_me:$LINENO: result: no" >&5
8873 echo "${ECHO_T}no" >&6; }
8874 SET_MAKE="MAKE=${MAKE-make}"
8875 fi
8876
8877
8878 { echo "$as_me:$LINENO: checking for long file names" >&5
8879 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8880 if test "${ac_cv_sys_long_file_names+set}" = set; then
8881 echo $ECHO_N "(cached) $ECHO_C" >&6
8882 else
8883 ac_cv_sys_long_file_names=yes
8884 # Test for long file names in all the places we know might matter:
8885 # . the current directory, where building will happen
8886 # $prefix/lib where we will be installing things
8887 # $exec_prefix/lib likewise
8888 # $TMPDIR if set, where it might want to write temporary files
8889 # /tmp where it might want to write temporary files
8890 # /var/tmp likewise
8891 # /usr/tmp likewise
8892 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8893 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8894 # in the usual case where exec_prefix is '${prefix}'.
8895 case $ac_dir in #(
8896 . | /* | ?:[\\/]*) ;; #(
8897 *) continue;;
8898 esac
8899 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8900 ac_xdir=$ac_dir/cf$$
8901 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8902 ac_tf1=$ac_xdir/conftest9012345
8903 ac_tf2=$ac_xdir/conftest9012346
8904 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8905 ac_cv_sys_long_file_names=no
8906 rm -f -r "$ac_xdir" 2>/dev/null
8907 test $ac_cv_sys_long_file_names = no && break
8908 done
8909 fi
8910 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8911 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8912 if test $ac_cv_sys_long_file_names = yes; then
8913
8914 cat >>confdefs.h <<\_ACEOF
8915 #define HAVE_LONG_FILE_NAMES 1
8916 _ACEOF
8917
8918 fi
8919
8920
8921 #### Choose a window system.
8922
8923 { echo "$as_me:$LINENO: checking for X" >&5
8924 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8925
8926
8927 # Check whether --with-x was given.
8928 if test "${with_x+set}" = set; then
8929 withval=$with_x;
8930 fi
8931
8932 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
8933 if test "x$with_x" = xno; then
8934 # The user explicitly disabled X.
8935 have_x=disabled
8936 else
8937 case $x_includes,$x_libraries in #(
8938 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
8939 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
8940 { (exit 1); exit 1; }; };; #(
8941 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
8942 echo $ECHO_N "(cached) $ECHO_C" >&6
8943 else
8944 # One or both of the vars are not set, and there is no cached value.
8945 ac_x_includes=no ac_x_libraries=no
8946 rm -f -r conftest.dir
8947 if mkdir conftest.dir; then
8948 cd conftest.dir
8949 cat >Imakefile <<'_ACEOF'
8950 incroot:
8951 @echo incroot='${INCROOT}'
8952 usrlibdir:
8953 @echo usrlibdir='${USRLIBDIR}'
8954 libdir:
8955 @echo libdir='${LIBDIR}'
8956 _ACEOF
8957 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
8958 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8959 for ac_var in incroot usrlibdir libdir; do
8960 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
8961 done
8962 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
8963 for ac_extension in a so sl; do
8964 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
8965 test -f "$ac_im_libdir/libX11.$ac_extension"; then
8966 ac_im_usrlibdir=$ac_im_libdir; break
8967 fi
8968 done
8969 # Screen out bogus values from the imake configuration. They are
8970 # bogus both because they are the default anyway, and because
8971 # using them would break gcc on systems where it needs fixed includes.
8972 case $ac_im_incroot in
8973 /usr/include) ac_x_includes= ;;
8974 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
8975 esac
8976 case $ac_im_usrlibdir in
8977 /usr/lib | /lib) ;;
8978 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
8979 esac
8980 fi
8981 cd ..
8982 rm -f -r conftest.dir
8983 fi
8984
8985 # Standard set of common directories for X headers.
8986 # Check X11 before X11Rn because it is often a symlink to the current release.
8987 ac_x_header_dirs='
8988 /usr/X11/include
8989 /usr/X11R6/include
8990 /usr/X11R5/include
8991 /usr/X11R4/include
8992
8993 /usr/include/X11
8994 /usr/include/X11R6
8995 /usr/include/X11R5
8996 /usr/include/X11R4
8997
8998 /usr/local/X11/include
8999 /usr/local/X11R6/include
9000 /usr/local/X11R5/include
9001 /usr/local/X11R4/include
9002
9003 /usr/local/include/X11
9004 /usr/local/include/X11R6
9005 /usr/local/include/X11R5
9006 /usr/local/include/X11R4
9007
9008 /usr/X386/include
9009 /usr/x386/include
9010 /usr/XFree86/include/X11
9011
9012 /usr/include
9013 /usr/local/include
9014 /usr/unsupported/include
9015 /usr/athena/include
9016 /usr/local/x11r5/include
9017 /usr/lpp/Xamples/include
9018
9019 /usr/openwin/include
9020 /usr/openwin/share/include'
9021
9022 if test "$ac_x_includes" = no; then
9023 # Guess where to find include files, by looking for Xlib.h.
9024 # First, try using that file with no special directory specified.
9025 cat >conftest.$ac_ext <<_ACEOF
9026 /* confdefs.h. */
9027 _ACEOF
9028 cat confdefs.h >>conftest.$ac_ext
9029 cat >>conftest.$ac_ext <<_ACEOF
9030 /* end confdefs.h. */
9031 #include <X11/Xlib.h>
9032 _ACEOF
9033 if { (ac_try="$ac_cpp conftest.$ac_ext"
9034 case "(($ac_try" in
9035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9036 *) ac_try_echo=$ac_try;;
9037 esac
9038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9039 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9040 ac_status=$?
9041 grep -v '^ *+' conftest.er1 >conftest.err
9042 rm -f conftest.er1
9043 cat conftest.err >&5
9044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9045 (exit $ac_status); } >/dev/null && {
9046 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9047 test ! -s conftest.err
9048 }; then
9049 # We can compile using X headers with no special include directory.
9050 ac_x_includes=
9051 else
9052 echo "$as_me: failed program was:" >&5
9053 sed 's/^/| /' conftest.$ac_ext >&5
9054
9055 for ac_dir in $ac_x_header_dirs; do
9056 if test -r "$ac_dir/X11/Xlib.h"; then
9057 ac_x_includes=$ac_dir
9058 break
9059 fi
9060 done
9061 fi
9062
9063 rm -f conftest.err conftest.$ac_ext
9064 fi # $ac_x_includes = no
9065
9066 if test "$ac_x_libraries" = no; then
9067 # Check for the libraries.
9068 # See if we find them without any special options.
9069 # Don't add to $LIBS permanently.
9070 ac_save_LIBS=$LIBS
9071 LIBS="-lX11 $LIBS"
9072 cat >conftest.$ac_ext <<_ACEOF
9073 /* confdefs.h. */
9074 _ACEOF
9075 cat confdefs.h >>conftest.$ac_ext
9076 cat >>conftest.$ac_ext <<_ACEOF
9077 /* end confdefs.h. */
9078 #include <X11/Xlib.h>
9079 int
9080 main ()
9081 {
9082 XrmInitialize ()
9083 ;
9084 return 0;
9085 }
9086 _ACEOF
9087 rm -f conftest.$ac_objext conftest$ac_exeext
9088 if { (ac_try="$ac_link"
9089 case "(($ac_try" in
9090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9091 *) ac_try_echo=$ac_try;;
9092 esac
9093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9094 (eval "$ac_link") 2>conftest.er1
9095 ac_status=$?
9096 grep -v '^ *+' conftest.er1 >conftest.err
9097 rm -f conftest.er1
9098 cat conftest.err >&5
9099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9100 (exit $ac_status); } && {
9101 test -z "$ac_c_werror_flag" ||
9102 test ! -s conftest.err
9103 } && test -s conftest$ac_exeext &&
9104 $as_test_x conftest$ac_exeext; then
9105 LIBS=$ac_save_LIBS
9106 # We can link X programs with no special library path.
9107 ac_x_libraries=
9108 else
9109 echo "$as_me: failed program was:" >&5
9110 sed 's/^/| /' conftest.$ac_ext >&5
9111
9112 LIBS=$ac_save_LIBS
9113 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9114 do
9115 # Don't even attempt the hair of trying to link an X program!
9116 for ac_extension in a so sl; do
9117 if test -r "$ac_dir/libX11.$ac_extension"; then
9118 ac_x_libraries=$ac_dir
9119 break 2
9120 fi
9121 done
9122 done
9123 fi
9124
9125 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9126 conftest$ac_exeext conftest.$ac_ext
9127 fi # $ac_x_libraries = no
9128
9129 case $ac_x_includes,$ac_x_libraries in #(
9130 no,* | *,no | *\'*)
9131 # Didn't find X, or a directory has "'" in its name.
9132 ac_cv_have_x="have_x=no";; #(
9133 *)
9134 # Record where we found X for the cache.
9135 ac_cv_have_x="have_x=yes\
9136 ac_x_includes='$ac_x_includes'\
9137 ac_x_libraries='$ac_x_libraries'"
9138 esac
9139 fi
9140 ;; #(
9141 *) have_x=yes;;
9142 esac
9143 eval "$ac_cv_have_x"
9144 fi # $with_x != no
9145
9146 if test "$have_x" != yes; then
9147 { echo "$as_me:$LINENO: result: $have_x" >&5
9148 echo "${ECHO_T}$have_x" >&6; }
9149 no_x=yes
9150 else
9151 # If each of the values was on the command line, it overrides each guess.
9152 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9153 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9154 # Update the cache value to reflect the command line values.
9155 ac_cv_have_x="have_x=yes\
9156 ac_x_includes='$x_includes'\
9157 ac_x_libraries='$x_libraries'"
9158 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9159 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9160 fi
9161
9162 if test "$no_x" = yes; then
9163 window_system=none
9164 else
9165 window_system=x11
9166 fi
9167
9168 if test "${x_libraries}" != NONE; then
9169 if test -n "${x_libraries}"; then
9170 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9171 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9172 fi
9173 x_default_search_path=""
9174 x_search_path=${x_libraries}
9175 if test -z "${x_search_path}"; then
9176 x_search_path=/usr/lib
9177 fi
9178 for x_library in `echo ${x_search_path}: | \
9179 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9180 x_search_path="\
9181 ${x_library}/X11/%L/%T/%N%C%S:\
9182 ${x_library}/X11/%l/%T/%N%C%S:\
9183 ${x_library}/X11/%T/%N%C%S:\
9184 ${x_library}/X11/%L/%T/%N%S:\
9185 ${x_library}/X11/%l/%T/%N%S:\
9186 ${x_library}/X11/%T/%N%S"
9187 if test x"${x_default_search_path}" = x; then
9188 x_default_search_path=${x_search_path}
9189 else
9190 x_default_search_path="${x_search_path}:${x_default_search_path}"
9191 fi
9192 done
9193 fi
9194 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9195 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9196 fi
9197
9198 if test x"${x_includes}" = x; then
9199 bitmapdir=/usr/include/X11/bitmaps
9200 else
9201 # accumulate include directories that have X11 bitmap subdirectories
9202 bmd_acc="dummyval"
9203 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9204 if test -d "${bmd}/X11/bitmaps"; then
9205 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9206 fi
9207 if test -d "${bmd}/bitmaps"; then
9208 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9209 fi
9210 done
9211 if test ${bmd_acc} != "dummyval"; then
9212 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9213 fi
9214 fi
9215
9216 HAVE_CARBON=no
9217 if test "${with_carbon}" != no; then
9218 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9219 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9220 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9221 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9222 echo $ECHO_N "(cached) $ECHO_C" >&6
9223 fi
9224 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9225 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9226 else
9227 # Is the header compilable?
9228 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9229 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9230 cat >conftest.$ac_ext <<_ACEOF
9231 /* confdefs.h. */
9232 _ACEOF
9233 cat confdefs.h >>conftest.$ac_ext
9234 cat >>conftest.$ac_ext <<_ACEOF
9235 /* end confdefs.h. */
9236 $ac_includes_default
9237 #include <Carbon/Carbon.h>
9238 _ACEOF
9239 rm -f conftest.$ac_objext
9240 if { (ac_try="$ac_compile"
9241 case "(($ac_try" in
9242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9243 *) ac_try_echo=$ac_try;;
9244 esac
9245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9246 (eval "$ac_compile") 2>conftest.er1
9247 ac_status=$?
9248 grep -v '^ *+' conftest.er1 >conftest.err
9249 rm -f conftest.er1
9250 cat conftest.err >&5
9251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9252 (exit $ac_status); } && {
9253 test -z "$ac_c_werror_flag" ||
9254 test ! -s conftest.err
9255 } && test -s conftest.$ac_objext; then
9256 ac_header_compiler=yes
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 ac_header_compiler=no
9262 fi
9263
9264 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9265 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9266 echo "${ECHO_T}$ac_header_compiler" >&6; }
9267
9268 # Is the header present?
9269 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9270 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9271 cat >conftest.$ac_ext <<_ACEOF
9272 /* confdefs.h. */
9273 _ACEOF
9274 cat confdefs.h >>conftest.$ac_ext
9275 cat >>conftest.$ac_ext <<_ACEOF
9276 /* end confdefs.h. */
9277 #include <Carbon/Carbon.h>
9278 _ACEOF
9279 if { (ac_try="$ac_cpp conftest.$ac_ext"
9280 case "(($ac_try" in
9281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9282 *) ac_try_echo=$ac_try;;
9283 esac
9284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9285 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9286 ac_status=$?
9287 grep -v '^ *+' conftest.er1 >conftest.err
9288 rm -f conftest.er1
9289 cat conftest.err >&5
9290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9291 (exit $ac_status); } >/dev/null && {
9292 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9293 test ! -s conftest.err
9294 }; then
9295 ac_header_preproc=yes
9296 else
9297 echo "$as_me: failed program was:" >&5
9298 sed 's/^/| /' conftest.$ac_ext >&5
9299
9300 ac_header_preproc=no
9301 fi
9302
9303 rm -f conftest.err conftest.$ac_ext
9304 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9305 echo "${ECHO_T}$ac_header_preproc" >&6; }
9306
9307 # So? What about this header?
9308 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9309 yes:no: )
9310 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9311 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9312 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9313 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9314 ac_header_preproc=yes
9315 ;;
9316 no:yes:* )
9317 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9318 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9319 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9320 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9321 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9322 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9323 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9324 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9325 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9326 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9327 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9328 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9329
9330 ;;
9331 esac
9332 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9333 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9334 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9335 echo $ECHO_N "(cached) $ECHO_C" >&6
9336 else
9337 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9338 fi
9339 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9340 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9341
9342 fi
9343 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9344 HAVE_CARBON=yes
9345 fi
9346
9347
9348 fi
9349 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9350 if test "${with_carbon+set}" != set \
9351 && test "${carbon_appdir_x+set}" != set; then
9352 for var in with_x with_x_toolkit with_gtk with_xim \
9353 with_xpm with_jpeg with_tiff with_gif with_png; do
9354 if eval test \"\${$var+set}\" = set; then
9355 HAVE_CARBON=no
9356 break
9357 fi
9358 done
9359 fi
9360 fi
9361 if test "${HAVE_CARBON}" = yes; then
9362 window_system=mac
9363 fi
9364
9365 case "${window_system}" in
9366 x11 )
9367 HAVE_X_WINDOWS=yes
9368 HAVE_X11=yes
9369 case "${with_x_toolkit}" in
9370 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9371 motif ) USE_X_TOOLKIT=MOTIF ;;
9372 gtk ) with_gtk=yes
9373 USE_X_TOOLKIT=none ;;
9374 no ) USE_X_TOOLKIT=none ;;
9375 * ) USE_X_TOOLKIT=maybe ;;
9376 esac
9377 ;;
9378 mac | none )
9379 HAVE_X_WINDOWS=no
9380 HAVE_X11=no
9381 USE_X_TOOLKIT=none
9382 ;;
9383 esac
9384
9385 ### If we're using X11, we should use the X menu package.
9386 HAVE_MENUS=no
9387 case ${HAVE_X11} in
9388 yes ) HAVE_MENUS=yes ;;
9389 esac
9390
9391 if test "${opsys}" = "hpux9"; then
9392 case "${x_libraries}" in
9393 *X11R4* )
9394 opsysfile="s/hpux9-x11r4.h"
9395 ;;
9396 esac
9397 fi
9398
9399 if test "${opsys}" = "hpux9shr"; then
9400 case "${x_libraries}" in
9401 *X11R4* )
9402 opsysfile="s/hpux9shxr4.h"
9403 ;;
9404 esac
9405 fi
9406
9407 ### Compute the unexec source name from the object name.
9408 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9409
9410 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9411 # Assume not, until told otherwise.
9412 GNU_MALLOC=yes
9413 doug_lea_malloc=yes
9414 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9415 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9416 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9417 echo $ECHO_N "(cached) $ECHO_C" >&6
9418 else
9419 cat >conftest.$ac_ext <<_ACEOF
9420 /* confdefs.h. */
9421 _ACEOF
9422 cat confdefs.h >>conftest.$ac_ext
9423 cat >>conftest.$ac_ext <<_ACEOF
9424 /* end confdefs.h. */
9425 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9426 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9427 #define malloc_get_state innocuous_malloc_get_state
9428
9429 /* System header to define __stub macros and hopefully few prototypes,
9430 which can conflict with char malloc_get_state (); below.
9431 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9432 <limits.h> exists even on freestanding compilers. */
9433
9434 #ifdef __STDC__
9435 # include <limits.h>
9436 #else
9437 # include <assert.h>
9438 #endif
9439
9440 #undef malloc_get_state
9441
9442 /* Override any GCC internal prototype to avoid an error.
9443 Use char because int might match the return type of a GCC
9444 builtin and then its argument prototype would still apply. */
9445 #ifdef __cplusplus
9446 extern "C"
9447 #endif
9448 char malloc_get_state ();
9449 /* The GNU C library defines this for functions which it implements
9450 to always fail with ENOSYS. Some functions are actually named
9451 something starting with __ and the normal name is an alias. */
9452 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9453 choke me
9454 #endif
9455
9456 int
9457 main ()
9458 {
9459 return malloc_get_state ();
9460 ;
9461 return 0;
9462 }
9463 _ACEOF
9464 rm -f conftest.$ac_objext conftest$ac_exeext
9465 if { (ac_try="$ac_link"
9466 case "(($ac_try" in
9467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9468 *) ac_try_echo=$ac_try;;
9469 esac
9470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9471 (eval "$ac_link") 2>conftest.er1
9472 ac_status=$?
9473 grep -v '^ *+' conftest.er1 >conftest.err
9474 rm -f conftest.er1
9475 cat conftest.err >&5
9476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9477 (exit $ac_status); } && {
9478 test -z "$ac_c_werror_flag" ||
9479 test ! -s conftest.err
9480 } && test -s conftest$ac_exeext &&
9481 $as_test_x conftest$ac_exeext; then
9482 ac_cv_func_malloc_get_state=yes
9483 else
9484 echo "$as_me: failed program was:" >&5
9485 sed 's/^/| /' conftest.$ac_ext >&5
9486
9487 ac_cv_func_malloc_get_state=no
9488 fi
9489
9490 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9491 conftest$ac_exeext conftest.$ac_ext
9492 fi
9493 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9494 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9495 if test $ac_cv_func_malloc_get_state = yes; then
9496 :
9497 else
9498 doug_lea_malloc=no
9499 fi
9500
9501 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9502 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9503 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9504 echo $ECHO_N "(cached) $ECHO_C" >&6
9505 else
9506 cat >conftest.$ac_ext <<_ACEOF
9507 /* confdefs.h. */
9508 _ACEOF
9509 cat confdefs.h >>conftest.$ac_ext
9510 cat >>conftest.$ac_ext <<_ACEOF
9511 /* end confdefs.h. */
9512 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9513 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9514 #define malloc_set_state innocuous_malloc_set_state
9515
9516 /* System header to define __stub macros and hopefully few prototypes,
9517 which can conflict with char malloc_set_state (); below.
9518 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9519 <limits.h> exists even on freestanding compilers. */
9520
9521 #ifdef __STDC__
9522 # include <limits.h>
9523 #else
9524 # include <assert.h>
9525 #endif
9526
9527 #undef malloc_set_state
9528
9529 /* Override any GCC internal prototype to avoid an error.
9530 Use char because int might match the return type of a GCC
9531 builtin and then its argument prototype would still apply. */
9532 #ifdef __cplusplus
9533 extern "C"
9534 #endif
9535 char malloc_set_state ();
9536 /* The GNU C library defines this for functions which it implements
9537 to always fail with ENOSYS. Some functions are actually named
9538 something starting with __ and the normal name is an alias. */
9539 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9540 choke me
9541 #endif
9542
9543 int
9544 main ()
9545 {
9546 return malloc_set_state ();
9547 ;
9548 return 0;
9549 }
9550 _ACEOF
9551 rm -f conftest.$ac_objext conftest$ac_exeext
9552 if { (ac_try="$ac_link"
9553 case "(($ac_try" in
9554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9555 *) ac_try_echo=$ac_try;;
9556 esac
9557 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9558 (eval "$ac_link") 2>conftest.er1
9559 ac_status=$?
9560 grep -v '^ *+' conftest.er1 >conftest.err
9561 rm -f conftest.er1
9562 cat conftest.err >&5
9563 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9564 (exit $ac_status); } && {
9565 test -z "$ac_c_werror_flag" ||
9566 test ! -s conftest.err
9567 } && test -s conftest$ac_exeext &&
9568 $as_test_x conftest$ac_exeext; then
9569 ac_cv_func_malloc_set_state=yes
9570 else
9571 echo "$as_me: failed program was:" >&5
9572 sed 's/^/| /' conftest.$ac_ext >&5
9573
9574 ac_cv_func_malloc_set_state=no
9575 fi
9576
9577 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9578 conftest$ac_exeext conftest.$ac_ext
9579 fi
9580 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9581 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9582 if test $ac_cv_func_malloc_set_state = yes; then
9583 :
9584 else
9585 doug_lea_malloc=no
9586 fi
9587
9588 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9589 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9590 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9591 echo $ECHO_N "(cached) $ECHO_C" >&6
9592 else
9593 cat >conftest.$ac_ext <<_ACEOF
9594 /* confdefs.h. */
9595 _ACEOF
9596 cat confdefs.h >>conftest.$ac_ext
9597 cat >>conftest.$ac_ext <<_ACEOF
9598 /* end confdefs.h. */
9599 extern void (* __after_morecore_hook)();
9600 int
9601 main ()
9602 {
9603 __after_morecore_hook = 0
9604 ;
9605 return 0;
9606 }
9607 _ACEOF
9608 rm -f conftest.$ac_objext conftest$ac_exeext
9609 if { (ac_try="$ac_link"
9610 case "(($ac_try" in
9611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9612 *) ac_try_echo=$ac_try;;
9613 esac
9614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9615 (eval "$ac_link") 2>conftest.er1
9616 ac_status=$?
9617 grep -v '^ *+' conftest.er1 >conftest.err
9618 rm -f conftest.er1
9619 cat conftest.err >&5
9620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9621 (exit $ac_status); } && {
9622 test -z "$ac_c_werror_flag" ||
9623 test ! -s conftest.err
9624 } && test -s conftest$ac_exeext &&
9625 $as_test_x conftest$ac_exeext; then
9626 emacs_cv_var___after_morecore_hook=yes
9627 else
9628 echo "$as_me: failed program was:" >&5
9629 sed 's/^/| /' conftest.$ac_ext >&5
9630
9631 emacs_cv_var___after_morecore_hook=no
9632 fi
9633
9634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9635 conftest$ac_exeext conftest.$ac_ext
9636 fi
9637 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9638 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9639 if test $emacs_cv_var___after_morecore_hook = no; then
9640 doug_lea_malloc=no
9641 fi
9642 if test "${system_malloc}" = "yes"; then
9643 GNU_MALLOC=no
9644 GNU_MALLOC_reason="
9645 (The GNU allocators don't work with this system configuration.)"
9646 fi
9647 if test "$doug_lea_malloc" = "yes" ; then
9648 if test "$GNU_MALLOC" = yes ; then
9649 GNU_MALLOC_reason="
9650 (Using Doug Lea's new malloc from the GNU C Library.)"
9651 fi
9652
9653 cat >>confdefs.h <<\_ACEOF
9654 #define DOUG_LEA_MALLOC 1
9655 _ACEOF
9656
9657 fi
9658
9659 if test x"${REL_ALLOC}" = x; then
9660 REL_ALLOC=${GNU_MALLOC}
9661 fi
9662
9663
9664
9665
9666 for ac_header in stdlib.h unistd.h
9667 do
9668 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9669 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9670 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9671 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9672 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9673 echo $ECHO_N "(cached) $ECHO_C" >&6
9674 fi
9675 ac_res=`eval echo '${'$as_ac_Header'}'`
9676 { echo "$as_me:$LINENO: result: $ac_res" >&5
9677 echo "${ECHO_T}$ac_res" >&6; }
9678 else
9679 # Is the header compilable?
9680 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9681 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9682 cat >conftest.$ac_ext <<_ACEOF
9683 /* confdefs.h. */
9684 _ACEOF
9685 cat confdefs.h >>conftest.$ac_ext
9686 cat >>conftest.$ac_ext <<_ACEOF
9687 /* end confdefs.h. */
9688 $ac_includes_default
9689 #include <$ac_header>
9690 _ACEOF
9691 rm -f conftest.$ac_objext
9692 if { (ac_try="$ac_compile"
9693 case "(($ac_try" in
9694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9695 *) ac_try_echo=$ac_try;;
9696 esac
9697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9698 (eval "$ac_compile") 2>conftest.er1
9699 ac_status=$?
9700 grep -v '^ *+' conftest.er1 >conftest.err
9701 rm -f conftest.er1
9702 cat conftest.err >&5
9703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9704 (exit $ac_status); } && {
9705 test -z "$ac_c_werror_flag" ||
9706 test ! -s conftest.err
9707 } && test -s conftest.$ac_objext; then
9708 ac_header_compiler=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_header_compiler=no
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9717 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9718 echo "${ECHO_T}$ac_header_compiler" >&6; }
9719
9720 # Is the header present?
9721 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9722 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9723 cat >conftest.$ac_ext <<_ACEOF
9724 /* confdefs.h. */
9725 _ACEOF
9726 cat confdefs.h >>conftest.$ac_ext
9727 cat >>conftest.$ac_ext <<_ACEOF
9728 /* end confdefs.h. */
9729 #include <$ac_header>
9730 _ACEOF
9731 if { (ac_try="$ac_cpp conftest.$ac_ext"
9732 case "(($ac_try" in
9733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9734 *) ac_try_echo=$ac_try;;
9735 esac
9736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9737 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9738 ac_status=$?
9739 grep -v '^ *+' conftest.er1 >conftest.err
9740 rm -f conftest.er1
9741 cat conftest.err >&5
9742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9743 (exit $ac_status); } >/dev/null && {
9744 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9745 test ! -s conftest.err
9746 }; then
9747 ac_header_preproc=yes
9748 else
9749 echo "$as_me: failed program was:" >&5
9750 sed 's/^/| /' conftest.$ac_ext >&5
9751
9752 ac_header_preproc=no
9753 fi
9754
9755 rm -f conftest.err conftest.$ac_ext
9756 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9757 echo "${ECHO_T}$ac_header_preproc" >&6; }
9758
9759 # So? What about this header?
9760 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9761 yes:no: )
9762 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9763 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9764 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9765 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9766 ac_header_preproc=yes
9767 ;;
9768 no:yes:* )
9769 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9770 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9771 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9772 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9773 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9774 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9775 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9776 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9777 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9778 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9779 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9780 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9781
9782 ;;
9783 esac
9784 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9785 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9786 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9787 echo $ECHO_N "(cached) $ECHO_C" >&6
9788 else
9789 eval "$as_ac_Header=\$ac_header_preproc"
9790 fi
9791 ac_res=`eval echo '${'$as_ac_Header'}'`
9792 { echo "$as_me:$LINENO: result: $ac_res" >&5
9793 echo "${ECHO_T}$ac_res" >&6; }
9794
9795 fi
9796 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9797 cat >>confdefs.h <<_ACEOF
9798 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9799 _ACEOF
9800
9801 fi
9802
9803 done
9804
9805
9806 for ac_func in getpagesize
9807 do
9808 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9809 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9810 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 else
9814 cat >conftest.$ac_ext <<_ACEOF
9815 /* confdefs.h. */
9816 _ACEOF
9817 cat confdefs.h >>conftest.$ac_ext
9818 cat >>conftest.$ac_ext <<_ACEOF
9819 /* end confdefs.h. */
9820 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9821 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9822 #define $ac_func innocuous_$ac_func
9823
9824 /* System header to define __stub macros and hopefully few prototypes,
9825 which can conflict with char $ac_func (); below.
9826 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9827 <limits.h> exists even on freestanding compilers. */
9828
9829 #ifdef __STDC__
9830 # include <limits.h>
9831 #else
9832 # include <assert.h>
9833 #endif
9834
9835 #undef $ac_func
9836
9837 /* Override any GCC internal prototype to avoid an error.
9838 Use char because int might match the return type of a GCC
9839 builtin and then its argument prototype would still apply. */
9840 #ifdef __cplusplus
9841 extern "C"
9842 #endif
9843 char $ac_func ();
9844 /* The GNU C library defines this for functions which it implements
9845 to always fail with ENOSYS. Some functions are actually named
9846 something starting with __ and the normal name is an alias. */
9847 #if defined __stub_$ac_func || defined __stub___$ac_func
9848 choke me
9849 #endif
9850
9851 int
9852 main ()
9853 {
9854 return $ac_func ();
9855 ;
9856 return 0;
9857 }
9858 _ACEOF
9859 rm -f conftest.$ac_objext conftest$ac_exeext
9860 if { (ac_try="$ac_link"
9861 case "(($ac_try" in
9862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9863 *) ac_try_echo=$ac_try;;
9864 esac
9865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9866 (eval "$ac_link") 2>conftest.er1
9867 ac_status=$?
9868 grep -v '^ *+' conftest.er1 >conftest.err
9869 rm -f conftest.er1
9870 cat conftest.err >&5
9871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9872 (exit $ac_status); } && {
9873 test -z "$ac_c_werror_flag" ||
9874 test ! -s conftest.err
9875 } && test -s conftest$ac_exeext &&
9876 $as_test_x conftest$ac_exeext; then
9877 eval "$as_ac_var=yes"
9878 else
9879 echo "$as_me: failed program was:" >&5
9880 sed 's/^/| /' conftest.$ac_ext >&5
9881
9882 eval "$as_ac_var=no"
9883 fi
9884
9885 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9886 conftest$ac_exeext conftest.$ac_ext
9887 fi
9888 ac_res=`eval echo '${'$as_ac_var'}'`
9889 { echo "$as_me:$LINENO: result: $ac_res" >&5
9890 echo "${ECHO_T}$ac_res" >&6; }
9891 if test `eval echo '${'$as_ac_var'}'` = yes; then
9892 cat >>confdefs.h <<_ACEOF
9893 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9894 _ACEOF
9895
9896 fi
9897 done
9898
9899 { echo "$as_me:$LINENO: checking for working mmap" >&5
9900 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9901 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9902 echo $ECHO_N "(cached) $ECHO_C" >&6
9903 else
9904 if test "$cross_compiling" = yes; then
9905 ac_cv_func_mmap_fixed_mapped=no
9906 else
9907 cat >conftest.$ac_ext <<_ACEOF
9908 /* confdefs.h. */
9909 _ACEOF
9910 cat confdefs.h >>conftest.$ac_ext
9911 cat >>conftest.$ac_ext <<_ACEOF
9912 /* end confdefs.h. */
9913 $ac_includes_default
9914 /* malloc might have been renamed as rpl_malloc. */
9915 #undef malloc
9916
9917 /* Thanks to Mike Haertel and Jim Avera for this test.
9918 Here is a matrix of mmap possibilities:
9919 mmap private not fixed
9920 mmap private fixed at somewhere currently unmapped
9921 mmap private fixed at somewhere already mapped
9922 mmap shared not fixed
9923 mmap shared fixed at somewhere currently unmapped
9924 mmap shared fixed at somewhere already mapped
9925 For private mappings, we should verify that changes cannot be read()
9926 back from the file, nor mmap's back from the file at a different
9927 address. (There have been systems where private was not correctly
9928 implemented like the infamous i386 svr4.0, and systems where the
9929 VM page cache was not coherent with the file system buffer cache
9930 like early versions of FreeBSD and possibly contemporary NetBSD.)
9931 For shared mappings, we should conversely verify that changes get
9932 propagated back to all the places they're supposed to be.
9933
9934 Grep wants private fixed already mapped.
9935 The main things grep needs to know about mmap are:
9936 * does it exist and is it safe to write into the mmap'd area
9937 * how to use it (BSD variants) */
9938
9939 #include <fcntl.h>
9940 #include <sys/mman.h>
9941
9942 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
9943 char *malloc ();
9944 #endif
9945
9946 /* This mess was copied from the GNU getpagesize.h. */
9947 #ifndef HAVE_GETPAGESIZE
9948 /* Assume that all systems that can run configure have sys/param.h. */
9949 # ifndef HAVE_SYS_PARAM_H
9950 # define HAVE_SYS_PARAM_H 1
9951 # endif
9952
9953 # ifdef _SC_PAGESIZE
9954 # define getpagesize() sysconf(_SC_PAGESIZE)
9955 # else /* no _SC_PAGESIZE */
9956 # ifdef HAVE_SYS_PARAM_H
9957 # include <sys/param.h>
9958 # ifdef EXEC_PAGESIZE
9959 # define getpagesize() EXEC_PAGESIZE
9960 # else /* no EXEC_PAGESIZE */
9961 # ifdef NBPG
9962 # define getpagesize() NBPG * CLSIZE
9963 # ifndef CLSIZE
9964 # define CLSIZE 1
9965 # endif /* no CLSIZE */
9966 # else /* no NBPG */
9967 # ifdef NBPC
9968 # define getpagesize() NBPC
9969 # else /* no NBPC */
9970 # ifdef PAGESIZE
9971 # define getpagesize() PAGESIZE
9972 # endif /* PAGESIZE */
9973 # endif /* no NBPC */
9974 # endif /* no NBPG */
9975 # endif /* no EXEC_PAGESIZE */
9976 # else /* no HAVE_SYS_PARAM_H */
9977 # define getpagesize() 8192 /* punt totally */
9978 # endif /* no HAVE_SYS_PARAM_H */
9979 # endif /* no _SC_PAGESIZE */
9980
9981 #endif /* no HAVE_GETPAGESIZE */
9982
9983 int
9984 main ()
9985 {
9986 char *data, *data2, *data3;
9987 int i, pagesize;
9988 int fd;
9989
9990 pagesize = getpagesize ();
9991
9992 /* First, make a file with some known garbage in it. */
9993 data = (char *) malloc (pagesize);
9994 if (!data)
9995 return 1;
9996 for (i = 0; i < pagesize; ++i)
9997 *(data + i) = rand ();
9998 umask (0);
9999 fd = creat ("conftest.mmap", 0600);
10000 if (fd < 0)
10001 return 1;
10002 if (write (fd, data, pagesize) != pagesize)
10003 return 1;
10004 close (fd);
10005
10006 /* Next, try to mmap the file at a fixed address which already has
10007 something else allocated at it. If we can, also make sure that
10008 we see the same garbage. */
10009 fd = open ("conftest.mmap", O_RDWR);
10010 if (fd < 0)
10011 return 1;
10012 data2 = (char *) malloc (2 * pagesize);
10013 if (!data2)
10014 return 1;
10015 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10016 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10017 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10018 return 1;
10019 for (i = 0; i < pagesize; ++i)
10020 if (*(data + i) != *(data2 + i))
10021 return 1;
10022
10023 /* Finally, make sure that changes to the mapped area do not
10024 percolate back to the file as seen by read(). (This is a bug on
10025 some variants of i386 svr4.0.) */
10026 for (i = 0; i < pagesize; ++i)
10027 *(data2 + i) = *(data2 + i) + 1;
10028 data3 = (char *) malloc (pagesize);
10029 if (!data3)
10030 return 1;
10031 if (read (fd, data3, pagesize) != pagesize)
10032 return 1;
10033 for (i = 0; i < pagesize; ++i)
10034 if (*(data + i) != *(data3 + i))
10035 return 1;
10036 close (fd);
10037 return 0;
10038 }
10039 _ACEOF
10040 rm -f conftest$ac_exeext
10041 if { (ac_try="$ac_link"
10042 case "(($ac_try" in
10043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10044 *) ac_try_echo=$ac_try;;
10045 esac
10046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10047 (eval "$ac_link") 2>&5
10048 ac_status=$?
10049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10050 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10051 { (case "(($ac_try" in
10052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10053 *) ac_try_echo=$ac_try;;
10054 esac
10055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10056 (eval "$ac_try") 2>&5
10057 ac_status=$?
10058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10059 (exit $ac_status); }; }; then
10060 ac_cv_func_mmap_fixed_mapped=yes
10061 else
10062 echo "$as_me: program exited with status $ac_status" >&5
10063 echo "$as_me: failed program was:" >&5
10064 sed 's/^/| /' conftest.$ac_ext >&5
10065
10066 ( exit $ac_status )
10067 ac_cv_func_mmap_fixed_mapped=no
10068 fi
10069 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10070 fi
10071
10072
10073 fi
10074 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10075 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10076 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10077
10078 cat >>confdefs.h <<\_ACEOF
10079 #define HAVE_MMAP 1
10080 _ACEOF
10081
10082 fi
10083 rm -f conftest.mmap
10084
10085 if test $use_mmap_for_buffers = yes; then
10086 REL_ALLOC=no
10087 fi
10088
10089 LIBS="$libsrc_libs $LIBS"
10090
10091
10092 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10093 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10094 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10095 echo $ECHO_N "(cached) $ECHO_C" >&6
10096 else
10097 ac_check_lib_save_LIBS=$LIBS
10098 LIBS="-ldnet $LIBS"
10099 cat >conftest.$ac_ext <<_ACEOF
10100 /* confdefs.h. */
10101 _ACEOF
10102 cat confdefs.h >>conftest.$ac_ext
10103 cat >>conftest.$ac_ext <<_ACEOF
10104 /* end confdefs.h. */
10105
10106 /* Override any GCC internal prototype to avoid an error.
10107 Use char because int might match the return type of a GCC
10108 builtin and then its argument prototype would still apply. */
10109 #ifdef __cplusplus
10110 extern "C"
10111 #endif
10112 char dnet_ntoa ();
10113 int
10114 main ()
10115 {
10116 return dnet_ntoa ();
10117 ;
10118 return 0;
10119 }
10120 _ACEOF
10121 rm -f conftest.$ac_objext conftest$ac_exeext
10122 if { (ac_try="$ac_link"
10123 case "(($ac_try" in
10124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10125 *) ac_try_echo=$ac_try;;
10126 esac
10127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10128 (eval "$ac_link") 2>conftest.er1
10129 ac_status=$?
10130 grep -v '^ *+' conftest.er1 >conftest.err
10131 rm -f conftest.er1
10132 cat conftest.err >&5
10133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10134 (exit $ac_status); } && {
10135 test -z "$ac_c_werror_flag" ||
10136 test ! -s conftest.err
10137 } && test -s conftest$ac_exeext &&
10138 $as_test_x conftest$ac_exeext; then
10139 ac_cv_lib_dnet_dnet_ntoa=yes
10140 else
10141 echo "$as_me: failed program was:" >&5
10142 sed 's/^/| /' conftest.$ac_ext >&5
10143
10144 ac_cv_lib_dnet_dnet_ntoa=no
10145 fi
10146
10147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10148 conftest$ac_exeext conftest.$ac_ext
10149 LIBS=$ac_check_lib_save_LIBS
10150 fi
10151 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10152 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10153 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10154 cat >>confdefs.h <<_ACEOF
10155 #define HAVE_LIBDNET 1
10156 _ACEOF
10157
10158 LIBS="-ldnet $LIBS"
10159
10160 fi
10161
10162
10163 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10164 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10165 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-lXbsd $LIBS"
10170 cat >conftest.$ac_ext <<_ACEOF
10171 /* confdefs.h. */
10172 _ACEOF
10173 cat confdefs.h >>conftest.$ac_ext
10174 cat >>conftest.$ac_ext <<_ACEOF
10175 /* end confdefs.h. */
10176
10177
10178 int
10179 main ()
10180 {
10181 return main ();
10182 ;
10183 return 0;
10184 }
10185 _ACEOF
10186 rm -f conftest.$ac_objext conftest$ac_exeext
10187 if { (ac_try="$ac_link"
10188 case "(($ac_try" in
10189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10190 *) ac_try_echo=$ac_try;;
10191 esac
10192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10193 (eval "$ac_link") 2>conftest.er1
10194 ac_status=$?
10195 grep -v '^ *+' conftest.er1 >conftest.err
10196 rm -f conftest.er1
10197 cat conftest.err >&5
10198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10199 (exit $ac_status); } && {
10200 test -z "$ac_c_werror_flag" ||
10201 test ! -s conftest.err
10202 } && test -s conftest$ac_exeext &&
10203 $as_test_x conftest$ac_exeext; then
10204 ac_cv_lib_Xbsd_main=yes
10205 else
10206 echo "$as_me: failed program was:" >&5
10207 sed 's/^/| /' conftest.$ac_ext >&5
10208
10209 ac_cv_lib_Xbsd_main=no
10210 fi
10211
10212 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10213 conftest$ac_exeext conftest.$ac_ext
10214 LIBS=$ac_check_lib_save_LIBS
10215 fi
10216 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10217 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10218 if test $ac_cv_lib_Xbsd_main = yes; then
10219 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10220 fi
10221
10222
10223
10224 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10225 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10226 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10227 echo $ECHO_N "(cached) $ECHO_C" >&6
10228 else
10229 ac_check_lib_save_LIBS=$LIBS
10230 LIBS="-lpthreads $LIBS"
10231 cat >conftest.$ac_ext <<_ACEOF
10232 /* confdefs.h. */
10233 _ACEOF
10234 cat confdefs.h >>conftest.$ac_ext
10235 cat >>conftest.$ac_ext <<_ACEOF
10236 /* end confdefs.h. */
10237
10238 /* Override any GCC internal prototype to avoid an error.
10239 Use char because int might match the return type of a GCC
10240 builtin and then its argument prototype would still apply. */
10241 #ifdef __cplusplus
10242 extern "C"
10243 #endif
10244 char cma_open ();
10245 int
10246 main ()
10247 {
10248 return cma_open ();
10249 ;
10250 return 0;
10251 }
10252 _ACEOF
10253 rm -f conftest.$ac_objext conftest$ac_exeext
10254 if { (ac_try="$ac_link"
10255 case "(($ac_try" in
10256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10257 *) ac_try_echo=$ac_try;;
10258 esac
10259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10260 (eval "$ac_link") 2>conftest.er1
10261 ac_status=$?
10262 grep -v '^ *+' conftest.er1 >conftest.err
10263 rm -f conftest.er1
10264 cat conftest.err >&5
10265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10266 (exit $ac_status); } && {
10267 test -z "$ac_c_werror_flag" ||
10268 test ! -s conftest.err
10269 } && test -s conftest$ac_exeext &&
10270 $as_test_x conftest$ac_exeext; then
10271 ac_cv_lib_pthreads_cma_open=yes
10272 else
10273 echo "$as_me: failed program was:" >&5
10274 sed 's/^/| /' conftest.$ac_ext >&5
10275
10276 ac_cv_lib_pthreads_cma_open=no
10277 fi
10278
10279 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10280 conftest$ac_exeext conftest.$ac_ext
10281 LIBS=$ac_check_lib_save_LIBS
10282 fi
10283 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10284 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10285 if test $ac_cv_lib_pthreads_cma_open = yes; then
10286 cat >>confdefs.h <<_ACEOF
10287 #define HAVE_LIBPTHREADS 1
10288 _ACEOF
10289
10290 LIBS="-lpthreads $LIBS"
10291
10292 fi
10293
10294
10295 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10296 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10297 if test -d /usr/X386/include; then
10298 HAVE_XFREE386=yes
10299 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10300 else
10301 HAVE_XFREE386=no
10302 fi
10303 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10304 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10305
10306
10307 case ${host_os} in
10308 aix*)
10309 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10310 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10311 if test "${gdb_cv_bigtoc+set}" = set; then
10312 echo $ECHO_N "(cached) $ECHO_C" >&6
10313 else
10314
10315 case $GCC in
10316 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10317 *) gdb_cv_bigtoc=-bbigtoc ;;
10318 esac
10319
10320 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10321 cat >conftest.$ac_ext <<_ACEOF
10322 /* confdefs.h. */
10323 _ACEOF
10324 cat confdefs.h >>conftest.$ac_ext
10325 cat >>conftest.$ac_ext <<_ACEOF
10326 /* end confdefs.h. */
10327
10328 int
10329 main ()
10330 {
10331 int i;
10332 ;
10333 return 0;
10334 }
10335 _ACEOF
10336 rm -f conftest.$ac_objext conftest$ac_exeext
10337 if { (ac_try="$ac_link"
10338 case "(($ac_try" in
10339 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10340 *) ac_try_echo=$ac_try;;
10341 esac
10342 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10343 (eval "$ac_link") 2>conftest.er1
10344 ac_status=$?
10345 grep -v '^ *+' conftest.er1 >conftest.err
10346 rm -f conftest.er1
10347 cat conftest.err >&5
10348 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10349 (exit $ac_status); } && {
10350 test -z "$ac_c_werror_flag" ||
10351 test ! -s conftest.err
10352 } && test -s conftest$ac_exeext &&
10353 $as_test_x conftest$ac_exeext; then
10354 :
10355 else
10356 echo "$as_me: failed program was:" >&5
10357 sed 's/^/| /' conftest.$ac_ext >&5
10358
10359 gdb_cv_bigtoc=
10360 fi
10361
10362 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10363 conftest$ac_exeext conftest.$ac_ext
10364
10365 fi
10366 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10367 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10368 ;;
10369 esac
10370
10371 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10372 # used for the tests that follow. We set them back to REAL_CFLAGS and
10373 # REAL_CPPFLAGS later on.
10374
10375 REAL_CPPFLAGS="$CPPFLAGS"
10376
10377 if test "${HAVE_X11}" = "yes"; then
10378 DEFS="$C_SWITCH_X_SITE $DEFS"
10379 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10380 LIBS="$LIBX $LIBS"
10381 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10382 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10383
10384 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10385 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10386 # but it's more convenient here to set LD_RUN_PATH
10387 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10388 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10389 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10390 export LD_RUN_PATH
10391 fi
10392
10393 if test "${opsys}" = "gnu-linux"; then
10394 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10395 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10396 cat >conftest.$ac_ext <<_ACEOF
10397 /* confdefs.h. */
10398 _ACEOF
10399 cat confdefs.h >>conftest.$ac_ext
10400 cat >>conftest.$ac_ext <<_ACEOF
10401 /* end confdefs.h. */
10402
10403 int
10404 main ()
10405 {
10406 XOpenDisplay ("foo");
10407 ;
10408 return 0;
10409 }
10410 _ACEOF
10411 rm -f conftest.$ac_objext conftest$ac_exeext
10412 if { (ac_try="$ac_link"
10413 case "(($ac_try" in
10414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10415 *) ac_try_echo=$ac_try;;
10416 esac
10417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10418 (eval "$ac_link") 2>conftest.er1
10419 ac_status=$?
10420 grep -v '^ *+' conftest.er1 >conftest.err
10421 rm -f conftest.er1
10422 cat conftest.err >&5
10423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10424 (exit $ac_status); } && {
10425 test -z "$ac_c_werror_flag" ||
10426 test ! -s conftest.err
10427 } && test -s conftest$ac_exeext &&
10428 $as_test_x conftest$ac_exeext; then
10429 xlinux_first_failure=no
10430 else
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 xlinux_first_failure=yes
10435 fi
10436
10437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10438 conftest$ac_exeext conftest.$ac_ext
10439 if test "${xlinux_first_failure}" = "yes"; then
10440 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10441 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10442 OLD_CPPFLAGS="$CPPFLAGS"
10443 OLD_LIBS="$LIBS"
10444 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10445 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10446 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10447 LIBS="$LIBS -b i486-linuxaout"
10448 cat >conftest.$ac_ext <<_ACEOF
10449 /* confdefs.h. */
10450 _ACEOF
10451 cat confdefs.h >>conftest.$ac_ext
10452 cat >>conftest.$ac_ext <<_ACEOF
10453 /* end confdefs.h. */
10454
10455 int
10456 main ()
10457 {
10458 XOpenDisplay ("foo");
10459 ;
10460 return 0;
10461 }
10462 _ACEOF
10463 rm -f conftest.$ac_objext conftest$ac_exeext
10464 if { (ac_try="$ac_link"
10465 case "(($ac_try" in
10466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10467 *) ac_try_echo=$ac_try;;
10468 esac
10469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10470 (eval "$ac_link") 2>conftest.er1
10471 ac_status=$?
10472 grep -v '^ *+' conftest.er1 >conftest.err
10473 rm -f conftest.er1
10474 cat conftest.err >&5
10475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10476 (exit $ac_status); } && {
10477 test -z "$ac_c_werror_flag" ||
10478 test ! -s conftest.err
10479 } && test -s conftest$ac_exeext &&
10480 $as_test_x conftest$ac_exeext; then
10481 xlinux_second_failure=no
10482 else
10483 echo "$as_me: failed program was:" >&5
10484 sed 's/^/| /' conftest.$ac_ext >&5
10485
10486 xlinux_second_failure=yes
10487 fi
10488
10489 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10490 conftest$ac_exeext conftest.$ac_ext
10491 if test "${xlinux_second_failure}" = "yes"; then
10492 # If we get the same failure with -b, there is no use adding -b.
10493 # So take it out. This plays safe.
10494 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10495 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10496 CPPFLAGS="$OLD_CPPFLAGS"
10497 LIBS="$OLD_LIBS"
10498 { echo "$as_me:$LINENO: result: no" >&5
10499 echo "${ECHO_T}no" >&6; }
10500 else
10501 { echo "$as_me:$LINENO: result: yes" >&5
10502 echo "${ECHO_T}yes" >&6; }
10503 fi
10504 else
10505 { echo "$as_me:$LINENO: result: no" >&5
10506 echo "${ECHO_T}no" >&6; }
10507 fi
10508 fi
10509
10510 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10511 # header files included from there.
10512 { echo "$as_me:$LINENO: checking for Xkb" >&5
10513 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
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 #include <X11/Xlib.h>
10521 #include <X11/XKBlib.h>
10522 int
10523 main ()
10524 {
10525 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10526 ;
10527 return 0;
10528 }
10529 _ACEOF
10530 rm -f conftest.$ac_objext conftest$ac_exeext
10531 if { (ac_try="$ac_link"
10532 case "(($ac_try" in
10533 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10534 *) ac_try_echo=$ac_try;;
10535 esac
10536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10537 (eval "$ac_link") 2>conftest.er1
10538 ac_status=$?
10539 grep -v '^ *+' conftest.er1 >conftest.err
10540 rm -f conftest.er1
10541 cat conftest.err >&5
10542 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10543 (exit $ac_status); } && {
10544 test -z "$ac_c_werror_flag" ||
10545 test ! -s conftest.err
10546 } && test -s conftest$ac_exeext &&
10547 $as_test_x conftest$ac_exeext; then
10548 emacs_xkb=yes
10549 else
10550 echo "$as_me: failed program was:" >&5
10551 sed 's/^/| /' conftest.$ac_ext >&5
10552
10553 emacs_xkb=no
10554 fi
10555
10556 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10557 conftest$ac_exeext conftest.$ac_ext
10558 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10559 echo "${ECHO_T}$emacs_xkb" >&6; }
10560 if test $emacs_xkb = yes; then
10561
10562 cat >>confdefs.h <<\_ACEOF
10563 #define HAVE_XKBGETKEYBOARD 1
10564 _ACEOF
10565
10566 fi
10567
10568
10569
10570
10571
10572 for ac_func in XrmSetDatabase XScreenResourceString \
10573 XScreenNumberOfScreen XSetWMProtocols
10574 do
10575 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10576 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10577 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10578 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10579 echo $ECHO_N "(cached) $ECHO_C" >&6
10580 else
10581 cat >conftest.$ac_ext <<_ACEOF
10582 /* confdefs.h. */
10583 _ACEOF
10584 cat confdefs.h >>conftest.$ac_ext
10585 cat >>conftest.$ac_ext <<_ACEOF
10586 /* end confdefs.h. */
10587 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10588 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10589 #define $ac_func innocuous_$ac_func
10590
10591 /* System header to define __stub macros and hopefully few prototypes,
10592 which can conflict with char $ac_func (); below.
10593 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10594 <limits.h> exists even on freestanding compilers. */
10595
10596 #ifdef __STDC__
10597 # include <limits.h>
10598 #else
10599 # include <assert.h>
10600 #endif
10601
10602 #undef $ac_func
10603
10604 /* Override any GCC internal prototype to avoid an error.
10605 Use char because int might match the return type of a GCC
10606 builtin and then its argument prototype would still apply. */
10607 #ifdef __cplusplus
10608 extern "C"
10609 #endif
10610 char $ac_func ();
10611 /* The GNU C library defines this for functions which it implements
10612 to always fail with ENOSYS. Some functions are actually named
10613 something starting with __ and the normal name is an alias. */
10614 #if defined __stub_$ac_func || defined __stub___$ac_func
10615 choke me
10616 #endif
10617
10618 int
10619 main ()
10620 {
10621 return $ac_func ();
10622 ;
10623 return 0;
10624 }
10625 _ACEOF
10626 rm -f conftest.$ac_objext conftest$ac_exeext
10627 if { (ac_try="$ac_link"
10628 case "(($ac_try" in
10629 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10630 *) ac_try_echo=$ac_try;;
10631 esac
10632 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10633 (eval "$ac_link") 2>conftest.er1
10634 ac_status=$?
10635 grep -v '^ *+' conftest.er1 >conftest.err
10636 rm -f conftest.er1
10637 cat conftest.err >&5
10638 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10639 (exit $ac_status); } && {
10640 test -z "$ac_c_werror_flag" ||
10641 test ! -s conftest.err
10642 } && test -s conftest$ac_exeext &&
10643 $as_test_x conftest$ac_exeext; then
10644 eval "$as_ac_var=yes"
10645 else
10646 echo "$as_me: failed program was:" >&5
10647 sed 's/^/| /' conftest.$ac_ext >&5
10648
10649 eval "$as_ac_var=no"
10650 fi
10651
10652 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10653 conftest$ac_exeext conftest.$ac_ext
10654 fi
10655 ac_res=`eval echo '${'$as_ac_var'}'`
10656 { echo "$as_me:$LINENO: result: $ac_res" >&5
10657 echo "${ECHO_T}$ac_res" >&6; }
10658 if test `eval echo '${'$as_ac_var'}'` = yes; then
10659 cat >>confdefs.h <<_ACEOF
10660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10661 _ACEOF
10662
10663 fi
10664 done
10665
10666 fi
10667
10668 if test "${window_system}" = "x11"; then
10669 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10670 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10671 if test "${emacs_cv_x11_version_6+set}" = set; then
10672 echo $ECHO_N "(cached) $ECHO_C" >&6
10673 else
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10681 int
10682 main ()
10683 {
10684 #if XlibSpecificationRelease < 6
10685 fail;
10686 #endif
10687
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 emacs_cv_x11_version_6=yes
10711 else
10712 echo "$as_me: failed program was:" >&5
10713 sed 's/^/| /' conftest.$ac_ext >&5
10714
10715 emacs_cv_x11_version_6=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
10722 if test $emacs_cv_x11_version_6 = yes; then
10723 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10724 echo "${ECHO_T}6 or newer" >&6; }
10725
10726 cat >>confdefs.h <<\_ACEOF
10727 #define HAVE_X11R6 1
10728 _ACEOF
10729
10730 else
10731 { echo "$as_me:$LINENO: result: before 6" >&5
10732 echo "${ECHO_T}before 6" >&6; }
10733 fi
10734 fi
10735
10736 if test "${window_system}" = "x11"; then
10737 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10738 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10739 if test "${emacs_cv_x11_version_5+set}" = set; then
10740 echo $ECHO_N "(cached) $ECHO_C" >&6
10741 else
10742 cat >conftest.$ac_ext <<_ACEOF
10743 /* confdefs.h. */
10744 _ACEOF
10745 cat confdefs.h >>conftest.$ac_ext
10746 cat >>conftest.$ac_ext <<_ACEOF
10747 /* end confdefs.h. */
10748 #include <X11/Xlib.h>
10749 int
10750 main ()
10751 {
10752 #if XlibSpecificationRelease < 5
10753 fail;
10754 #endif
10755
10756 ;
10757 return 0;
10758 }
10759 _ACEOF
10760 rm -f conftest.$ac_objext conftest$ac_exeext
10761 if { (ac_try="$ac_link"
10762 case "(($ac_try" in
10763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10764 *) ac_try_echo=$ac_try;;
10765 esac
10766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10767 (eval "$ac_link") 2>conftest.er1
10768 ac_status=$?
10769 grep -v '^ *+' conftest.er1 >conftest.err
10770 rm -f conftest.er1
10771 cat conftest.err >&5
10772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10773 (exit $ac_status); } && {
10774 test -z "$ac_c_werror_flag" ||
10775 test ! -s conftest.err
10776 } && test -s conftest$ac_exeext &&
10777 $as_test_x conftest$ac_exeext; then
10778 emacs_cv_x11_version_5=yes
10779 else
10780 echo "$as_me: failed program was:" >&5
10781 sed 's/^/| /' conftest.$ac_ext >&5
10782
10783 emacs_cv_x11_version_5=no
10784 fi
10785
10786 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10787 conftest$ac_exeext conftest.$ac_ext
10788 fi
10789
10790 if test $emacs_cv_x11_version_5 = yes; then
10791 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10792 echo "${ECHO_T}5 or newer" >&6; }
10793 HAVE_X11R5=yes
10794
10795 cat >>confdefs.h <<\_ACEOF
10796 #define HAVE_X11R5 1
10797 _ACEOF
10798
10799 else
10800 HAVE_X11R5=no
10801 { echo "$as_me:$LINENO: result: before 5" >&5
10802 echo "${ECHO_T}before 5" >&6; }
10803 fi
10804 fi
10805
10806 HAVE_GTK=no
10807 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10808 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10809 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10810 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10811 { (exit 1); exit 1; }; };
10812 fi
10813 GLIB_REQUIRED=2.4
10814 GTK_REQUIRED=2.4
10815 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10816
10817 if test "X${with_pkg_config_prog}" != X; then
10818 PKG_CONFIG="${with_pkg_config_prog}"
10819 fi
10820
10821 succeeded=no
10822
10823 if test -z "$PKG_CONFIG"; then
10824 # Extract the first word of "pkg-config", so it can be a program name with args.
10825 set dummy pkg-config; ac_word=$2
10826 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10827 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10828 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10829 echo $ECHO_N "(cached) $ECHO_C" >&6
10830 else
10831 case $PKG_CONFIG in
10832 [\\/]* | ?:[\\/]*)
10833 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10834 ;;
10835 *)
10836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10837 for as_dir in $PATH
10838 do
10839 IFS=$as_save_IFS
10840 test -z "$as_dir" && as_dir=.
10841 for ac_exec_ext in '' $ac_executable_extensions; do
10842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10843 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10844 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10845 break 2
10846 fi
10847 done
10848 done
10849 IFS=$as_save_IFS
10850
10851 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10852 ;;
10853 esac
10854 fi
10855 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10856 if test -n "$PKG_CONFIG"; then
10857 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10858 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10859 else
10860 { echo "$as_me:$LINENO: result: no" >&5
10861 echo "${ECHO_T}no" >&6; }
10862 fi
10863
10864
10865 fi
10866
10867 if test "$PKG_CONFIG" = "no" ; then
10868 { { echo "$as_me:$LINENO: error:
10869 *** 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
10870 echo "$as_me: error:
10871 *** 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;}
10872 { (exit 1); exit 1; }; }
10873 else
10874 PKG_CONFIG_MIN_VERSION=0.9.0
10875 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10876 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10877 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10878
10879 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10880 { echo "$as_me:$LINENO: result: yes" >&5
10881 echo "${ECHO_T}yes" >&6; }
10882 succeeded=yes
10883
10884 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10885 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10886 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
10887 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10888 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10889
10890 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10891 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10892 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
10893 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10894 echo "${ECHO_T}$GTK_LIBS" >&6; }
10895 else
10896 { echo "$as_me:$LINENO: result: no" >&5
10897 echo "${ECHO_T}no" >&6; }
10898 GTK_CFLAGS=""
10899 GTK_LIBS=""
10900 ## If we have a custom action on failure, don't print errors, but
10901 ## do set a variable so people can do so.
10902 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10903 echo $GTK_PKG_ERRORS
10904 fi
10905
10906
10907
10908 else
10909 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10910 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10911 fi
10912 fi
10913
10914 if test $succeeded = yes; then
10915 :
10916 else
10917 { { 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
10918 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;}
10919 { (exit 1); exit 1; }; }
10920 fi
10921
10922
10923
10924 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10925 CFLAGS="$CFLAGS $GTK_CFLAGS"
10926 LIBS="$GTK_LIBS $LIBS"
10927 HAVE_GTK=yes
10928
10929 cat >>confdefs.h <<\_ACEOF
10930 #define HAVE_GTK 1
10931 _ACEOF
10932
10933 USE_X_TOOLKIT=none
10934
10935 if test "$with_toolkit_scroll_bars" != no; then
10936 with_toolkit_scroll_bars=yes
10937 fi
10938
10939 HAVE_GTK_MULTIDISPLAY=no
10940
10941 HAVE_GTK_FILE_SELECTION=no
10942
10943 for ac_func in gtk_file_selection_new
10944 do
10945 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10946 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10947 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10948 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10949 echo $ECHO_N "(cached) $ECHO_C" >&6
10950 else
10951 cat >conftest.$ac_ext <<_ACEOF
10952 /* confdefs.h. */
10953 _ACEOF
10954 cat confdefs.h >>conftest.$ac_ext
10955 cat >>conftest.$ac_ext <<_ACEOF
10956 /* end confdefs.h. */
10957 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10958 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10959 #define $ac_func innocuous_$ac_func
10960
10961 /* System header to define __stub macros and hopefully few prototypes,
10962 which can conflict with char $ac_func (); below.
10963 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10964 <limits.h> exists even on freestanding compilers. */
10965
10966 #ifdef __STDC__
10967 # include <limits.h>
10968 #else
10969 # include <assert.h>
10970 #endif
10971
10972 #undef $ac_func
10973
10974 /* Override any GCC internal prototype to avoid an error.
10975 Use char because int might match the return type of a GCC
10976 builtin and then its argument prototype would still apply. */
10977 #ifdef __cplusplus
10978 extern "C"
10979 #endif
10980 char $ac_func ();
10981 /* The GNU C library defines this for functions which it implements
10982 to always fail with ENOSYS. Some functions are actually named
10983 something starting with __ and the normal name is an alias. */
10984 #if defined __stub_$ac_func || defined __stub___$ac_func
10985 choke me
10986 #endif
10987
10988 int
10989 main ()
10990 {
10991 return $ac_func ();
10992 ;
10993 return 0;
10994 }
10995 _ACEOF
10996 rm -f conftest.$ac_objext conftest$ac_exeext
10997 if { (ac_try="$ac_link"
10998 case "(($ac_try" in
10999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11000 *) ac_try_echo=$ac_try;;
11001 esac
11002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11003 (eval "$ac_link") 2>conftest.er1
11004 ac_status=$?
11005 grep -v '^ *+' conftest.er1 >conftest.err
11006 rm -f conftest.er1
11007 cat conftest.err >&5
11008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11009 (exit $ac_status); } && {
11010 test -z "$ac_c_werror_flag" ||
11011 test ! -s conftest.err
11012 } && test -s conftest$ac_exeext &&
11013 $as_test_x conftest$ac_exeext; then
11014 eval "$as_ac_var=yes"
11015 else
11016 echo "$as_me: failed program was:" >&5
11017 sed 's/^/| /' conftest.$ac_ext >&5
11018
11019 eval "$as_ac_var=no"
11020 fi
11021
11022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11023 conftest$ac_exeext conftest.$ac_ext
11024 fi
11025 ac_res=`eval echo '${'$as_ac_var'}'`
11026 { echo "$as_me:$LINENO: result: $ac_res" >&5
11027 echo "${ECHO_T}$ac_res" >&6; }
11028 if test `eval echo '${'$as_ac_var'}'` = yes; then
11029 cat >>confdefs.h <<_ACEOF
11030 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11031 _ACEOF
11032 HAVE_GTK_FILE_SELECTION=yes
11033 fi
11034 done
11035
11036
11037 HAVE_GTK_FILE_CHOOSER=no
11038
11039 for ac_func in gtk_file_chooser_dialog_new
11040 do
11041 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11042 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11043 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11044 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11045 echo $ECHO_N "(cached) $ECHO_C" >&6
11046 else
11047 cat >conftest.$ac_ext <<_ACEOF
11048 /* confdefs.h. */
11049 _ACEOF
11050 cat confdefs.h >>conftest.$ac_ext
11051 cat >>conftest.$ac_ext <<_ACEOF
11052 /* end confdefs.h. */
11053 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11054 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11055 #define $ac_func innocuous_$ac_func
11056
11057 /* System header to define __stub macros and hopefully few prototypes,
11058 which can conflict with char $ac_func (); below.
11059 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11060 <limits.h> exists even on freestanding compilers. */
11061
11062 #ifdef __STDC__
11063 # include <limits.h>
11064 #else
11065 # include <assert.h>
11066 #endif
11067
11068 #undef $ac_func
11069
11070 /* Override any GCC internal prototype to avoid an error.
11071 Use char because int might match the return type of a GCC
11072 builtin and then its argument prototype would still apply. */
11073 #ifdef __cplusplus
11074 extern "C"
11075 #endif
11076 char $ac_func ();
11077 /* The GNU C library defines this for functions which it implements
11078 to always fail with ENOSYS. Some functions are actually named
11079 something starting with __ and the normal name is an alias. */
11080 #if defined __stub_$ac_func || defined __stub___$ac_func
11081 choke me
11082 #endif
11083
11084 int
11085 main ()
11086 {
11087 return $ac_func ();
11088 ;
11089 return 0;
11090 }
11091 _ACEOF
11092 rm -f conftest.$ac_objext conftest$ac_exeext
11093 if { (ac_try="$ac_link"
11094 case "(($ac_try" in
11095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11096 *) ac_try_echo=$ac_try;;
11097 esac
11098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11099 (eval "$ac_link") 2>conftest.er1
11100 ac_status=$?
11101 grep -v '^ *+' conftest.er1 >conftest.err
11102 rm -f conftest.er1
11103 cat conftest.err >&5
11104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11105 (exit $ac_status); } && {
11106 test -z "$ac_c_werror_flag" ||
11107 test ! -s conftest.err
11108 } && test -s conftest$ac_exeext &&
11109 $as_test_x conftest$ac_exeext; then
11110 eval "$as_ac_var=yes"
11111 else
11112 echo "$as_me: failed program was:" >&5
11113 sed 's/^/| /' conftest.$ac_ext >&5
11114
11115 eval "$as_ac_var=no"
11116 fi
11117
11118 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11119 conftest$ac_exeext conftest.$ac_ext
11120 fi
11121 ac_res=`eval echo '${'$as_ac_var'}'`
11122 { echo "$as_me:$LINENO: result: $ac_res" >&5
11123 echo "${ECHO_T}$ac_res" >&6; }
11124 if test `eval echo '${'$as_ac_var'}'` = yes; then
11125 cat >>confdefs.h <<_ACEOF
11126 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11127 _ACEOF
11128 HAVE_GTK_FILE_CHOOSER=yes
11129 fi
11130 done
11131
11132
11133 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11134 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11135
11136 cat >>confdefs.h <<\_ACEOF
11137 #define HAVE_GTK_FILE_BOTH 1
11138 _ACEOF
11139
11140 fi
11141
11142 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11143 HAVE_GTK_AND_PTHREAD=no
11144
11145 for ac_header in pthread.h
11146 do
11147 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11149 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11150 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11151 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11152 echo $ECHO_N "(cached) $ECHO_C" >&6
11153 fi
11154 ac_res=`eval echo '${'$as_ac_Header'}'`
11155 { echo "$as_me:$LINENO: result: $ac_res" >&5
11156 echo "${ECHO_T}$ac_res" >&6; }
11157 else
11158 # Is the header compilable?
11159 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11160 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11161 cat >conftest.$ac_ext <<_ACEOF
11162 /* confdefs.h. */
11163 _ACEOF
11164 cat confdefs.h >>conftest.$ac_ext
11165 cat >>conftest.$ac_ext <<_ACEOF
11166 /* end confdefs.h. */
11167 $ac_includes_default
11168 #include <$ac_header>
11169 _ACEOF
11170 rm -f conftest.$ac_objext
11171 if { (ac_try="$ac_compile"
11172 case "(($ac_try" in
11173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11174 *) ac_try_echo=$ac_try;;
11175 esac
11176 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11177 (eval "$ac_compile") 2>conftest.er1
11178 ac_status=$?
11179 grep -v '^ *+' conftest.er1 >conftest.err
11180 rm -f conftest.er1
11181 cat conftest.err >&5
11182 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11183 (exit $ac_status); } && {
11184 test -z "$ac_c_werror_flag" ||
11185 test ! -s conftest.err
11186 } && test -s conftest.$ac_objext; then
11187 ac_header_compiler=yes
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 ac_header_compiler=no
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11196 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11197 echo "${ECHO_T}$ac_header_compiler" >&6; }
11198
11199 # Is the header present?
11200 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11201 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11202 cat >conftest.$ac_ext <<_ACEOF
11203 /* confdefs.h. */
11204 _ACEOF
11205 cat confdefs.h >>conftest.$ac_ext
11206 cat >>conftest.$ac_ext <<_ACEOF
11207 /* end confdefs.h. */
11208 #include <$ac_header>
11209 _ACEOF
11210 if { (ac_try="$ac_cpp conftest.$ac_ext"
11211 case "(($ac_try" in
11212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11213 *) ac_try_echo=$ac_try;;
11214 esac
11215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11216 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11217 ac_status=$?
11218 grep -v '^ *+' conftest.er1 >conftest.err
11219 rm -f conftest.er1
11220 cat conftest.err >&5
11221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11222 (exit $ac_status); } >/dev/null && {
11223 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11224 test ! -s conftest.err
11225 }; then
11226 ac_header_preproc=yes
11227 else
11228 echo "$as_me: failed program was:" >&5
11229 sed 's/^/| /' conftest.$ac_ext >&5
11230
11231 ac_header_preproc=no
11232 fi
11233
11234 rm -f conftest.err conftest.$ac_ext
11235 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11236 echo "${ECHO_T}$ac_header_preproc" >&6; }
11237
11238 # So? What about this header?
11239 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11240 yes:no: )
11241 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11242 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11243 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11244 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11245 ac_header_preproc=yes
11246 ;;
11247 no:yes:* )
11248 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11249 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11250 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11251 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11252 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11253 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11254 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11255 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11256 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11257 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11258 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11259 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11260
11261 ;;
11262 esac
11263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11266 echo $ECHO_N "(cached) $ECHO_C" >&6
11267 else
11268 eval "$as_ac_Header=\$ac_header_preproc"
11269 fi
11270 ac_res=`eval echo '${'$as_ac_Header'}'`
11271 { echo "$as_me:$LINENO: result: $ac_res" >&5
11272 echo "${ECHO_T}$ac_res" >&6; }
11273
11274 fi
11275 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11276 cat >>confdefs.h <<_ACEOF
11277 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11278 _ACEOF
11279
11280 fi
11281
11282 done
11283
11284 if test "$ac_cv_header_pthread_h"; then
11285 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11286 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11287 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11288 echo $ECHO_N "(cached) $ECHO_C" >&6
11289 else
11290 ac_check_lib_save_LIBS=$LIBS
11291 LIBS="-lpthread $LIBS"
11292 cat >conftest.$ac_ext <<_ACEOF
11293 /* confdefs.h. */
11294 _ACEOF
11295 cat confdefs.h >>conftest.$ac_ext
11296 cat >>conftest.$ac_ext <<_ACEOF
11297 /* end confdefs.h. */
11298
11299 /* Override any GCC internal prototype to avoid an error.
11300 Use char because int might match the return type of a GCC
11301 builtin and then its argument prototype would still apply. */
11302 #ifdef __cplusplus
11303 extern "C"
11304 #endif
11305 char pthread_self ();
11306 int
11307 main ()
11308 {
11309 return pthread_self ();
11310 ;
11311 return 0;
11312 }
11313 _ACEOF
11314 rm -f conftest.$ac_objext conftest$ac_exeext
11315 if { (ac_try="$ac_link"
11316 case "(($ac_try" in
11317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11318 *) ac_try_echo=$ac_try;;
11319 esac
11320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11321 (eval "$ac_link") 2>conftest.er1
11322 ac_status=$?
11323 grep -v '^ *+' conftest.er1 >conftest.err
11324 rm -f conftest.er1
11325 cat conftest.err >&5
11326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11327 (exit $ac_status); } && {
11328 test -z "$ac_c_werror_flag" ||
11329 test ! -s conftest.err
11330 } && test -s conftest$ac_exeext &&
11331 $as_test_x conftest$ac_exeext; then
11332 ac_cv_lib_pthread_pthread_self=yes
11333 else
11334 echo "$as_me: failed program was:" >&5
11335 sed 's/^/| /' conftest.$ac_ext >&5
11336
11337 ac_cv_lib_pthread_pthread_self=no
11338 fi
11339
11340 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11341 conftest$ac_exeext conftest.$ac_ext
11342 LIBS=$ac_check_lib_save_LIBS
11343 fi
11344 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11345 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11346 if test $ac_cv_lib_pthread_pthread_self = yes; then
11347 HAVE_GTK_AND_PTHREAD=yes
11348 fi
11349
11350 fi
11351 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11352 GTK_LIBS="$GTK_LIBS -lpthread"
11353
11354 cat >>confdefs.h <<\_ACEOF
11355 #define HAVE_GTK_AND_PTHREAD 1
11356 _ACEOF
11357
11358 fi
11359 fi
11360 fi
11361
11362 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11363 if test x"${HAVE_X11R5}" = xyes; then
11364 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11365 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11366 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11367 echo $ECHO_N "(cached) $ECHO_C" >&6
11368 else
11369 cat >conftest.$ac_ext <<_ACEOF
11370 /* confdefs.h. */
11371 _ACEOF
11372 cat confdefs.h >>conftest.$ac_ext
11373 cat >>conftest.$ac_ext <<_ACEOF
11374 /* end confdefs.h. */
11375
11376 #include <X11/Intrinsic.h>
11377 #include <X11/Xaw/Simple.h>
11378 int
11379 main ()
11380 {
11381
11382 ;
11383 return 0;
11384 }
11385 _ACEOF
11386 rm -f conftest.$ac_objext conftest$ac_exeext
11387 if { (ac_try="$ac_link"
11388 case "(($ac_try" in
11389 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11390 *) ac_try_echo=$ac_try;;
11391 esac
11392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11393 (eval "$ac_link") 2>conftest.er1
11394 ac_status=$?
11395 grep -v '^ *+' conftest.er1 >conftest.err
11396 rm -f conftest.er1
11397 cat conftest.err >&5
11398 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11399 (exit $ac_status); } && {
11400 test -z "$ac_c_werror_flag" ||
11401 test ! -s conftest.err
11402 } && test -s conftest$ac_exeext &&
11403 $as_test_x conftest$ac_exeext; then
11404 emacs_cv_x11_version_5_with_xaw=yes
11405 else
11406 echo "$as_me: failed program was:" >&5
11407 sed 's/^/| /' conftest.$ac_ext >&5
11408
11409 emacs_cv_x11_version_5_with_xaw=no
11410 fi
11411
11412 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11413 conftest$ac_exeext conftest.$ac_ext
11414 fi
11415
11416 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11417 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11418 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11419 USE_X_TOOLKIT=LUCID
11420 else
11421 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11422 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11423 USE_X_TOOLKIT=none
11424 fi
11425 else
11426 USE_X_TOOLKIT=none
11427 fi
11428 fi
11429
11430 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11431
11432 if test "${USE_X_TOOLKIT}" != "none"; then
11433 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11434 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11435 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11436 echo $ECHO_N "(cached) $ECHO_C" >&6
11437 else
11438 cat >conftest.$ac_ext <<_ACEOF
11439 /* confdefs.h. */
11440 _ACEOF
11441 cat confdefs.h >>conftest.$ac_ext
11442 cat >>conftest.$ac_ext <<_ACEOF
11443 /* end confdefs.h. */
11444 #include <X11/Intrinsic.h>
11445 int
11446 main ()
11447 {
11448 #if XtSpecificationRelease < 6
11449 fail;
11450 #endif
11451
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest$ac_exeext &&
11473 $as_test_x conftest$ac_exeext; then
11474 emacs_cv_x11_toolkit_version_6=yes
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 emacs_cv_x11_toolkit_version_6=no
11480 fi
11481
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11483 conftest$ac_exeext conftest.$ac_ext
11484 fi
11485
11486 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11487 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11488 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11489 echo "${ECHO_T}6 or newer" >&6; }
11490
11491 cat >>confdefs.h <<\_ACEOF
11492 #define HAVE_X11XTR6 1
11493 _ACEOF
11494
11495 else
11496 { echo "$as_me:$LINENO: result: before 6" >&5
11497 echo "${ECHO_T}before 6" >&6; }
11498 fi
11499
11500 OLDLIBS="$LIBS"
11501 if test x$HAVE_X11XTR6 = xyes; then
11502 LIBS="-lXt -lSM -lICE $LIBS"
11503 else
11504 LIBS="-lXt $LIBS"
11505 fi
11506
11507 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11508 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11509 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11510 echo $ECHO_N "(cached) $ECHO_C" >&6
11511 else
11512 ac_check_lib_save_LIBS=$LIBS
11513 LIBS="-lXmu $LIBS"
11514 cat >conftest.$ac_ext <<_ACEOF
11515 /* confdefs.h. */
11516 _ACEOF
11517 cat confdefs.h >>conftest.$ac_ext
11518 cat >>conftest.$ac_ext <<_ACEOF
11519 /* end confdefs.h. */
11520
11521 /* Override any GCC internal prototype to avoid an error.
11522 Use char because int might match the return type of a GCC
11523 builtin and then its argument prototype would still apply. */
11524 #ifdef __cplusplus
11525 extern "C"
11526 #endif
11527 char XmuConvertStandardSelection ();
11528 int
11529 main ()
11530 {
11531 return XmuConvertStandardSelection ();
11532 ;
11533 return 0;
11534 }
11535 _ACEOF
11536 rm -f conftest.$ac_objext conftest$ac_exeext
11537 if { (ac_try="$ac_link"
11538 case "(($ac_try" in
11539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11540 *) ac_try_echo=$ac_try;;
11541 esac
11542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11543 (eval "$ac_link") 2>conftest.er1
11544 ac_status=$?
11545 grep -v '^ *+' conftest.er1 >conftest.err
11546 rm -f conftest.er1
11547 cat conftest.err >&5
11548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11549 (exit $ac_status); } && {
11550 test -z "$ac_c_werror_flag" ||
11551 test ! -s conftest.err
11552 } && test -s conftest$ac_exeext &&
11553 $as_test_x conftest$ac_exeext; then
11554 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11555 else
11556 echo "$as_me: failed program was:" >&5
11557 sed 's/^/| /' conftest.$ac_ext >&5
11558
11559 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11560 fi
11561
11562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11563 conftest$ac_exeext conftest.$ac_ext
11564 LIBS=$ac_check_lib_save_LIBS
11565 fi
11566 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11567 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11568 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11569 cat >>confdefs.h <<_ACEOF
11570 #define HAVE_LIBXMU 1
11571 _ACEOF
11572
11573 LIBS="-lXmu $LIBS"
11574
11575 fi
11576
11577 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11578 fi
11579
11580 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11581 if test "${HAVE_X11}" = "yes"; then
11582 if test "${USE_X_TOOLKIT}" != "none"; then
11583
11584 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11585 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11586 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11587 echo $ECHO_N "(cached) $ECHO_C" >&6
11588 else
11589 ac_check_lib_save_LIBS=$LIBS
11590 LIBS="-lXext $LIBS"
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597
11598 /* Override any GCC internal prototype to avoid an error.
11599 Use char because int might match the return type of a GCC
11600 builtin and then its argument prototype would still apply. */
11601 #ifdef __cplusplus
11602 extern "C"
11603 #endif
11604 char XShapeQueryExtension ();
11605 int
11606 main ()
11607 {
11608 return XShapeQueryExtension ();
11609 ;
11610 return 0;
11611 }
11612 _ACEOF
11613 rm -f conftest.$ac_objext conftest$ac_exeext
11614 if { (ac_try="$ac_link"
11615 case "(($ac_try" in
11616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11617 *) ac_try_echo=$ac_try;;
11618 esac
11619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11620 (eval "$ac_link") 2>conftest.er1
11621 ac_status=$?
11622 grep -v '^ *+' conftest.er1 >conftest.err
11623 rm -f conftest.er1
11624 cat conftest.err >&5
11625 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11626 (exit $ac_status); } && {
11627 test -z "$ac_c_werror_flag" ||
11628 test ! -s conftest.err
11629 } && test -s conftest$ac_exeext &&
11630 $as_test_x conftest$ac_exeext; then
11631 ac_cv_lib_Xext_XShapeQueryExtension=yes
11632 else
11633 echo "$as_me: failed program was:" >&5
11634 sed 's/^/| /' conftest.$ac_ext >&5
11635
11636 ac_cv_lib_Xext_XShapeQueryExtension=no
11637 fi
11638
11639 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11640 conftest$ac_exeext conftest.$ac_ext
11641 LIBS=$ac_check_lib_save_LIBS
11642 fi
11643 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11644 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11645 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11646 cat >>confdefs.h <<_ACEOF
11647 #define HAVE_LIBXEXT 1
11648 _ACEOF
11649
11650 LIBS="-lXext $LIBS"
11651
11652 fi
11653
11654 fi
11655 fi
11656
11657 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11658 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
11659 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
11660 if test "${emacs_cv_motif_version_2_1+set}" = set; then
11661 echo $ECHO_N "(cached) $ECHO_C" >&6
11662 else
11663 cat >conftest.$ac_ext <<_ACEOF
11664 /* confdefs.h. */
11665 _ACEOF
11666 cat confdefs.h >>conftest.$ac_ext
11667 cat >>conftest.$ac_ext <<_ACEOF
11668 /* end confdefs.h. */
11669 #include <Xm/Xm.h>
11670 int
11671 main ()
11672 {
11673 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
11674 int x = 5;
11675 #else
11676 Motif version prior to 2.1.
11677 #endif
11678 ;
11679 return 0;
11680 }
11681 _ACEOF
11682 rm -f conftest.$ac_objext
11683 if { (ac_try="$ac_compile"
11684 case "(($ac_try" in
11685 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686 *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689 (eval "$ac_compile") 2>conftest.er1
11690 ac_status=$?
11691 grep -v '^ *+' conftest.er1 >conftest.err
11692 rm -f conftest.er1
11693 cat conftest.err >&5
11694 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11695 (exit $ac_status); } && {
11696 test -z "$ac_c_werror_flag" ||
11697 test ! -s conftest.err
11698 } && test -s conftest.$ac_objext; then
11699 emacs_cv_motif_version_2_1=yes
11700 else
11701 echo "$as_me: failed program was:" >&5
11702 sed 's/^/| /' conftest.$ac_ext >&5
11703
11704 emacs_cv_motif_version_2_1=no
11705 fi
11706
11707 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11708 fi
11709 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
11710 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
11711 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
11712 if test $emacs_cv_motif_version_2_1 = yes; then
11713 HAVE_LIBXP=no
11714
11715 cat >>confdefs.h <<\_ACEOF
11716 #define HAVE_MOTIF_2_1 1
11717 _ACEOF
11718
11719 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
11720 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
11721 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
11722 echo $ECHO_N "(cached) $ECHO_C" >&6
11723 else
11724 ac_check_lib_save_LIBS=$LIBS
11725 LIBS="-lXp $LIBS"
11726 cat >conftest.$ac_ext <<_ACEOF
11727 /* confdefs.h. */
11728 _ACEOF
11729 cat confdefs.h >>conftest.$ac_ext
11730 cat >>conftest.$ac_ext <<_ACEOF
11731 /* end confdefs.h. */
11732
11733 /* Override any GCC internal prototype to avoid an error.
11734 Use char because int might match the return type of a GCC
11735 builtin and then its argument prototype would still apply. */
11736 #ifdef __cplusplus
11737 extern "C"
11738 #endif
11739 char XpCreateContext ();
11740 int
11741 main ()
11742 {
11743 return XpCreateContext ();
11744 ;
11745 return 0;
11746 }
11747 _ACEOF
11748 rm -f conftest.$ac_objext conftest$ac_exeext
11749 if { (ac_try="$ac_link"
11750 case "(($ac_try" in
11751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11752 *) ac_try_echo=$ac_try;;
11753 esac
11754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11755 (eval "$ac_link") 2>conftest.er1
11756 ac_status=$?
11757 grep -v '^ *+' conftest.er1 >conftest.err
11758 rm -f conftest.er1
11759 cat conftest.err >&5
11760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11761 (exit $ac_status); } && {
11762 test -z "$ac_c_werror_flag" ||
11763 test ! -s conftest.err
11764 } && test -s conftest$ac_exeext &&
11765 $as_test_x conftest$ac_exeext; then
11766 ac_cv_lib_Xp_XpCreateContext=yes
11767 else
11768 echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771 ac_cv_lib_Xp_XpCreateContext=no
11772 fi
11773
11774 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11775 conftest$ac_exeext conftest.$ac_ext
11776 LIBS=$ac_check_lib_save_LIBS
11777 fi
11778 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
11779 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
11780 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
11781 HAVE_LIBXP=yes
11782 fi
11783
11784 if test ${HAVE_LIBXP} = yes; then
11785
11786 cat >>confdefs.h <<\_ACEOF
11787 #define HAVE_LIBXP 1
11788 _ACEOF
11789
11790 fi
11791 else
11792 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
11793 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
11794 if test "${emacs_cv_lesstif+set}" = set; then
11795 echo $ECHO_N "(cached) $ECHO_C" >&6
11796 else
11797 # We put this in CFLAGS temporarily to precede other -I options
11798 # that might be in CFLAGS temporarily.
11799 # We put this in CPPFLAGS where it precedes the other -I options.
11800 OLD_CPPFLAGS=$CPPFLAGS
11801 OLD_CFLAGS=$CFLAGS
11802 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
11803 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
11804 cat >conftest.$ac_ext <<_ACEOF
11805 /* confdefs.h. */
11806 _ACEOF
11807 cat confdefs.h >>conftest.$ac_ext
11808 cat >>conftest.$ac_ext <<_ACEOF
11809 /* end confdefs.h. */
11810 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
11811 int
11812 main ()
11813 {
11814 int x = 5;
11815 ;
11816 return 0;
11817 }
11818 _ACEOF
11819 rm -f conftest.$ac_objext
11820 if { (ac_try="$ac_compile"
11821 case "(($ac_try" in
11822 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11823 *) ac_try_echo=$ac_try;;
11824 esac
11825 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11826 (eval "$ac_compile") 2>conftest.er1
11827 ac_status=$?
11828 grep -v '^ *+' conftest.er1 >conftest.err
11829 rm -f conftest.er1
11830 cat conftest.err >&5
11831 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11832 (exit $ac_status); } && {
11833 test -z "$ac_c_werror_flag" ||
11834 test ! -s conftest.err
11835 } && test -s conftest.$ac_objext; then
11836 emacs_cv_lesstif=yes
11837 else
11838 echo "$as_me: failed program was:" >&5
11839 sed 's/^/| /' conftest.$ac_ext >&5
11840
11841 emacs_cv_lesstif=no
11842 fi
11843
11844 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11845 fi
11846 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
11847 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
11848 if test $emacs_cv_lesstif = yes; then
11849 # Make sure this -I option remains in CPPFLAGS after it is set
11850 # back to REAL_CPPFLAGS.
11851 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
11852 # have those other -I options anyway. Ultimately, having this
11853 # directory ultimately in CPPFLAGS will be enough.
11854 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
11855 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
11856 else
11857 CFLAGS=$OLD_CFLAGS
11858 CPPFLAGS=$OLD_CPPFLAGS
11859 fi
11860 fi
11861 fi
11862
11863 ### Is -lXaw3d available?
11864 HAVE_XAW3D=no
11865 if test "${HAVE_X11}" = "yes"; then
11866 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
11867 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
11868 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
11869 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
11870 echo $ECHO_N "(cached) $ECHO_C" >&6
11871 else
11872 cat >conftest.$ac_ext <<_ACEOF
11873 /* confdefs.h. */
11874 _ACEOF
11875 cat confdefs.h >>conftest.$ac_ext
11876 cat >>conftest.$ac_ext <<_ACEOF
11877 /* end confdefs.h. */
11878 #include <X11/Xaw3d/Scrollbar.h>
11879 _ACEOF
11880 if { (ac_try="$ac_cpp conftest.$ac_ext"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } >/dev/null && {
11893 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 }; then
11896 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
11897 else
11898 echo "$as_me: failed program was:" >&5
11899 sed 's/^/| /' conftest.$ac_ext >&5
11900
11901 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
11902 fi
11903
11904 rm -f conftest.err conftest.$ac_ext
11905 fi
11906 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
11907 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
11908 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
11909 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
11910 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
11911 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
11912 echo $ECHO_N "(cached) $ECHO_C" >&6
11913 else
11914 ac_check_lib_save_LIBS=$LIBS
11915 LIBS="-lXaw3d $LIBS"
11916 cat >conftest.$ac_ext <<_ACEOF
11917 /* confdefs.h. */
11918 _ACEOF
11919 cat confdefs.h >>conftest.$ac_ext
11920 cat >>conftest.$ac_ext <<_ACEOF
11921 /* end confdefs.h. */
11922
11923 /* Override any GCC internal prototype to avoid an error.
11924 Use char because int might match the return type of a GCC
11925 builtin and then its argument prototype would still apply. */
11926 #ifdef __cplusplus
11927 extern "C"
11928 #endif
11929 char XawScrollbarSetThumb ();
11930 int
11931 main ()
11932 {
11933 return XawScrollbarSetThumb ();
11934 ;
11935 return 0;
11936 }
11937 _ACEOF
11938 rm -f conftest.$ac_objext conftest$ac_exeext
11939 if { (ac_try="$ac_link"
11940 case "(($ac_try" in
11941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11942 *) ac_try_echo=$ac_try;;
11943 esac
11944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11945 (eval "$ac_link") 2>conftest.er1
11946 ac_status=$?
11947 grep -v '^ *+' conftest.er1 >conftest.err
11948 rm -f conftest.er1
11949 cat conftest.err >&5
11950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11951 (exit $ac_status); } && {
11952 test -z "$ac_c_werror_flag" ||
11953 test ! -s conftest.err
11954 } && test -s conftest$ac_exeext &&
11955 $as_test_x conftest$ac_exeext; then
11956 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
11957 else
11958 echo "$as_me: failed program was:" >&5
11959 sed 's/^/| /' conftest.$ac_ext >&5
11960
11961 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
11962 fi
11963
11964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11965 conftest$ac_exeext conftest.$ac_ext
11966 LIBS=$ac_check_lib_save_LIBS
11967 fi
11968 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
11969 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
11970 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
11971 HAVE_XAW3D=yes
11972 fi
11973
11974 fi
11975
11976
11977 if test "${HAVE_XAW3D}" = "yes"; then
11978
11979 cat >>confdefs.h <<\_ACEOF
11980 #define HAVE_XAW3D 1
11981 _ACEOF
11982
11983 fi
11984 fi
11985 fi
11986
11987
11988
11989 USE_TOOLKIT_SCROLL_BARS=no
11990 if test "${with_toolkit_scroll_bars}" != "no"; then
11991 if test "${USE_X_TOOLKIT}" != "none"; then
11992 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
11993 cat >>confdefs.h <<\_ACEOF
11994 #define USE_TOOLKIT_SCROLL_BARS 1
11995 _ACEOF
11996
11997 HAVE_XAW3D=no
11998 USE_TOOLKIT_SCROLL_BARS=yes
11999 elif test "${HAVE_XAW3D}" = "yes"; then
12000 cat >>confdefs.h <<\_ACEOF
12001 #define USE_TOOLKIT_SCROLL_BARS 1
12002 _ACEOF
12003
12004 USE_TOOLKIT_SCROLL_BARS=yes
12005 fi
12006 elif test "${HAVE_GTK}" = "yes"; then
12007 cat >>confdefs.h <<\_ACEOF
12008 #define USE_TOOLKIT_SCROLL_BARS 1
12009 _ACEOF
12010
12011 USE_TOOLKIT_SCROLL_BARS=yes
12012 elif test "${HAVE_CARBON}" = "yes"; then
12013 cat >>confdefs.h <<\_ACEOF
12014 #define USE_TOOLKIT_SCROLL_BARS 1
12015 _ACEOF
12016
12017 USE_TOOLKIT_SCROLL_BARS=yes
12018 fi
12019 fi
12020
12021 cat >conftest.$ac_ext <<_ACEOF
12022 /* confdefs.h. */
12023 _ACEOF
12024 cat confdefs.h >>conftest.$ac_ext
12025 cat >>conftest.$ac_ext <<_ACEOF
12026 /* end confdefs.h. */
12027
12028 #include <X11/Xlib.h>
12029 #include <X11/Xresource.h>
12030 int
12031 main ()
12032 {
12033 XIMProc callback;
12034 ;
12035 return 0;
12036 }
12037 _ACEOF
12038 rm -f conftest.$ac_objext
12039 if { (ac_try="$ac_compile"
12040 case "(($ac_try" in
12041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12042 *) ac_try_echo=$ac_try;;
12043 esac
12044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12045 (eval "$ac_compile") 2>conftest.er1
12046 ac_status=$?
12047 grep -v '^ *+' conftest.er1 >conftest.err
12048 rm -f conftest.er1
12049 cat conftest.err >&5
12050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12051 (exit $ac_status); } && {
12052 test -z "$ac_c_werror_flag" ||
12053 test ! -s conftest.err
12054 } && test -s conftest.$ac_objext; then
12055 HAVE_XIM=yes
12056
12057 cat >>confdefs.h <<\_ACEOF
12058 #define HAVE_XIM 1
12059 _ACEOF
12060
12061 else
12062 echo "$as_me: failed program was:" >&5
12063 sed 's/^/| /' conftest.$ac_ext >&5
12064
12065 HAVE_XIM=no
12066 fi
12067
12068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12069
12070
12071 if test "${with_xim}" != "no"; then
12072
12073 cat >>confdefs.h <<\_ACEOF
12074 #define USE_XIM 1
12075 _ACEOF
12076
12077 fi
12078
12079
12080 if test "${HAVE_XIM}" != "no"; then
12081 late_CFLAGS=$CFLAGS
12082 if test "$GCC" = yes; then
12083 CFLAGS="$CFLAGS --pedantic-errors"
12084 fi
12085 cat >conftest.$ac_ext <<_ACEOF
12086 /* confdefs.h. */
12087 _ACEOF
12088 cat confdefs.h >>conftest.$ac_ext
12089 cat >>conftest.$ac_ext <<_ACEOF
12090 /* end confdefs.h. */
12091
12092 #include <X11/Xlib.h>
12093 #include <X11/Xresource.h>
12094 int
12095 main ()
12096 {
12097 Display *display;
12098 XrmDatabase db;
12099 char *res_name;
12100 char *res_class;
12101 XIMProc callback;
12102 XPointer *client_data;
12103 #ifndef __GNUC__
12104 /* If we're not using GCC, it's probably not XFree86, and this is
12105 probably right, but we can't use something like --pedantic-errors. */
12106 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12107 char*, XIMProc, XPointer*);
12108 #endif
12109 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12110 client_data);
12111 ;
12112 return 0;
12113 }
12114 _ACEOF
12115 rm -f conftest.$ac_objext
12116 if { (ac_try="$ac_compile"
12117 case "(($ac_try" in
12118 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12119 *) ac_try_echo=$ac_try;;
12120 esac
12121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12122 (eval "$ac_compile") 2>conftest.er1
12123 ac_status=$?
12124 grep -v '^ *+' conftest.er1 >conftest.err
12125 rm -f conftest.er1
12126 cat conftest.err >&5
12127 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12128 (exit $ac_status); } && {
12129 test -z "$ac_c_werror_flag" ||
12130 test ! -s conftest.err
12131 } && test -s conftest.$ac_objext; then
12132 emacs_cv_arg6_star=yes
12133 else
12134 echo "$as_me: failed program was:" >&5
12135 sed 's/^/| /' conftest.$ac_ext >&5
12136
12137
12138 fi
12139
12140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12141
12142 if test "$emacs_cv_arg6_star" = yes; then
12143 cat >>confdefs.h <<\_ACEOF
12144 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12145 _ACEOF
12146
12147 else
12148 cat >>confdefs.h <<\_ACEOF
12149 #define XRegisterIMInstantiateCallback_arg6 XPointer
12150 _ACEOF
12151
12152 fi
12153 CFLAGS=$late_CFLAGS
12154 fi
12155
12156 ### Use -lXpm if available, unless `--with-xpm=no'.
12157 HAVE_XPM=no
12158 if test "${HAVE_X11}" = "yes"; then
12159 if test "${with_xpm}" != "no"; then
12160 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12161 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12162 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12163 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12164 echo $ECHO_N "(cached) $ECHO_C" >&6
12165 fi
12166 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12167 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12168 else
12169 # Is the header compilable?
12170 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12171 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12172 cat >conftest.$ac_ext <<_ACEOF
12173 /* confdefs.h. */
12174 _ACEOF
12175 cat confdefs.h >>conftest.$ac_ext
12176 cat >>conftest.$ac_ext <<_ACEOF
12177 /* end confdefs.h. */
12178 $ac_includes_default
12179 #include <X11/xpm.h>
12180 _ACEOF
12181 rm -f conftest.$ac_objext
12182 if { (ac_try="$ac_compile"
12183 case "(($ac_try" in
12184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12185 *) ac_try_echo=$ac_try;;
12186 esac
12187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12188 (eval "$ac_compile") 2>conftest.er1
12189 ac_status=$?
12190 grep -v '^ *+' conftest.er1 >conftest.err
12191 rm -f conftest.er1
12192 cat conftest.err >&5
12193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12194 (exit $ac_status); } && {
12195 test -z "$ac_c_werror_flag" ||
12196 test ! -s conftest.err
12197 } && test -s conftest.$ac_objext; then
12198 ac_header_compiler=yes
12199 else
12200 echo "$as_me: failed program was:" >&5
12201 sed 's/^/| /' conftest.$ac_ext >&5
12202
12203 ac_header_compiler=no
12204 fi
12205
12206 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12207 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12208 echo "${ECHO_T}$ac_header_compiler" >&6; }
12209
12210 # Is the header present?
12211 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12212 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12213 cat >conftest.$ac_ext <<_ACEOF
12214 /* confdefs.h. */
12215 _ACEOF
12216 cat confdefs.h >>conftest.$ac_ext
12217 cat >>conftest.$ac_ext <<_ACEOF
12218 /* end confdefs.h. */
12219 #include <X11/xpm.h>
12220 _ACEOF
12221 if { (ac_try="$ac_cpp conftest.$ac_ext"
12222 case "(($ac_try" in
12223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12224 *) ac_try_echo=$ac_try;;
12225 esac
12226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12227 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12228 ac_status=$?
12229 grep -v '^ *+' conftest.er1 >conftest.err
12230 rm -f conftest.er1
12231 cat conftest.err >&5
12232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12233 (exit $ac_status); } >/dev/null && {
12234 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12235 test ! -s conftest.err
12236 }; then
12237 ac_header_preproc=yes
12238 else
12239 echo "$as_me: failed program was:" >&5
12240 sed 's/^/| /' conftest.$ac_ext >&5
12241
12242 ac_header_preproc=no
12243 fi
12244
12245 rm -f conftest.err conftest.$ac_ext
12246 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12247 echo "${ECHO_T}$ac_header_preproc" >&6; }
12248
12249 # So? What about this header?
12250 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12251 yes:no: )
12252 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12253 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12254 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12255 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12256 ac_header_preproc=yes
12257 ;;
12258 no:yes:* )
12259 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12260 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12261 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12262 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12263 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12264 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12265 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12266 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12267 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12268 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12269 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12270 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12271
12272 ;;
12273 esac
12274 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12275 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12276 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12277 echo $ECHO_N "(cached) $ECHO_C" >&6
12278 else
12279 ac_cv_header_X11_xpm_h=$ac_header_preproc
12280 fi
12281 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12282 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12283
12284 fi
12285 if test $ac_cv_header_X11_xpm_h = yes; then
12286 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12287 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12288 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12289 echo $ECHO_N "(cached) $ECHO_C" >&6
12290 else
12291 ac_check_lib_save_LIBS=$LIBS
12292 LIBS="-lXpm -lX11 $LIBS"
12293 cat >conftest.$ac_ext <<_ACEOF
12294 /* confdefs.h. */
12295 _ACEOF
12296 cat confdefs.h >>conftest.$ac_ext
12297 cat >>conftest.$ac_ext <<_ACEOF
12298 /* end confdefs.h. */
12299
12300 /* Override any GCC internal prototype to avoid an error.
12301 Use char because int might match the return type of a GCC
12302 builtin and then its argument prototype would still apply. */
12303 #ifdef __cplusplus
12304 extern "C"
12305 #endif
12306 char XpmReadFileToPixmap ();
12307 int
12308 main ()
12309 {
12310 return XpmReadFileToPixmap ();
12311 ;
12312 return 0;
12313 }
12314 _ACEOF
12315 rm -f conftest.$ac_objext conftest$ac_exeext
12316 if { (ac_try="$ac_link"
12317 case "(($ac_try" in
12318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12319 *) ac_try_echo=$ac_try;;
12320 esac
12321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12322 (eval "$ac_link") 2>conftest.er1
12323 ac_status=$?
12324 grep -v '^ *+' conftest.er1 >conftest.err
12325 rm -f conftest.er1
12326 cat conftest.err >&5
12327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12328 (exit $ac_status); } && {
12329 test -z "$ac_c_werror_flag" ||
12330 test ! -s conftest.err
12331 } && test -s conftest$ac_exeext &&
12332 $as_test_x conftest$ac_exeext; then
12333 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12334 else
12335 echo "$as_me: failed program was:" >&5
12336 sed 's/^/| /' conftest.$ac_ext >&5
12337
12338 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12339 fi
12340
12341 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12342 conftest$ac_exeext conftest.$ac_ext
12343 LIBS=$ac_check_lib_save_LIBS
12344 fi
12345 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12346 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12347 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12348 HAVE_XPM=yes
12349 fi
12350
12351 fi
12352
12353
12354 if test "${HAVE_XPM}" = "yes"; then
12355 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12356 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12357 cat >conftest.$ac_ext <<_ACEOF
12358 /* confdefs.h. */
12359 _ACEOF
12360 cat confdefs.h >>conftest.$ac_ext
12361 cat >>conftest.$ac_ext <<_ACEOF
12362 /* end confdefs.h. */
12363 #include "X11/xpm.h"
12364 #ifndef XpmReturnAllocPixels
12365 no_return_alloc_pixels
12366 #endif
12367
12368 _ACEOF
12369 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12370 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12371 HAVE_XPM=no
12372 else
12373 HAVE_XPM=yes
12374 fi
12375 rm -f conftest*
12376
12377
12378 if test "${HAVE_XPM}" = "yes"; then
12379 { echo "$as_me:$LINENO: result: yes" >&5
12380 echo "${ECHO_T}yes" >&6; }
12381 else
12382 { echo "$as_me:$LINENO: result: no" >&5
12383 echo "${ECHO_T}no" >&6; }
12384 fi
12385 fi
12386 fi
12387
12388 if test "${HAVE_XPM}" = "yes"; then
12389
12390 cat >>confdefs.h <<\_ACEOF
12391 #define HAVE_XPM 1
12392 _ACEOF
12393
12394 fi
12395 fi
12396
12397 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12398 HAVE_JPEG=no
12399 if test "${HAVE_X11}" = "yes"; then
12400 if test "${with_jpeg}" != "no"; then
12401 if test "${ac_cv_header_jerror_h+set}" = set; then
12402 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12403 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12404 if test "${ac_cv_header_jerror_h+set}" = set; then
12405 echo $ECHO_N "(cached) $ECHO_C" >&6
12406 fi
12407 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12408 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12409 else
12410 # Is the header compilable?
12411 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
12412 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
12413 cat >conftest.$ac_ext <<_ACEOF
12414 /* confdefs.h. */
12415 _ACEOF
12416 cat confdefs.h >>conftest.$ac_ext
12417 cat >>conftest.$ac_ext <<_ACEOF
12418 /* end confdefs.h. */
12419 $ac_includes_default
12420 #include <jerror.h>
12421 _ACEOF
12422 rm -f conftest.$ac_objext
12423 if { (ac_try="$ac_compile"
12424 case "(($ac_try" in
12425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12426 *) ac_try_echo=$ac_try;;
12427 esac
12428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12429 (eval "$ac_compile") 2>conftest.er1
12430 ac_status=$?
12431 grep -v '^ *+' conftest.er1 >conftest.err
12432 rm -f conftest.er1
12433 cat conftest.err >&5
12434 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12435 (exit $ac_status); } && {
12436 test -z "$ac_c_werror_flag" ||
12437 test ! -s conftest.err
12438 } && test -s conftest.$ac_objext; then
12439 ac_header_compiler=yes
12440 else
12441 echo "$as_me: failed program was:" >&5
12442 sed 's/^/| /' conftest.$ac_ext >&5
12443
12444 ac_header_compiler=no
12445 fi
12446
12447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12448 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12449 echo "${ECHO_T}$ac_header_compiler" >&6; }
12450
12451 # Is the header present?
12452 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
12453 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
12454 cat >conftest.$ac_ext <<_ACEOF
12455 /* confdefs.h. */
12456 _ACEOF
12457 cat confdefs.h >>conftest.$ac_ext
12458 cat >>conftest.$ac_ext <<_ACEOF
12459 /* end confdefs.h. */
12460 #include <jerror.h>
12461 _ACEOF
12462 if { (ac_try="$ac_cpp conftest.$ac_ext"
12463 case "(($ac_try" in
12464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12465 *) ac_try_echo=$ac_try;;
12466 esac
12467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12468 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12469 ac_status=$?
12470 grep -v '^ *+' conftest.er1 >conftest.err
12471 rm -f conftest.er1
12472 cat conftest.err >&5
12473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12474 (exit $ac_status); } >/dev/null && {
12475 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12476 test ! -s conftest.err
12477 }; then
12478 ac_header_preproc=yes
12479 else
12480 echo "$as_me: failed program was:" >&5
12481 sed 's/^/| /' conftest.$ac_ext >&5
12482
12483 ac_header_preproc=no
12484 fi
12485
12486 rm -f conftest.err conftest.$ac_ext
12487 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12488 echo "${ECHO_T}$ac_header_preproc" >&6; }
12489
12490 # So? What about this header?
12491 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12492 yes:no: )
12493 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
12494 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12495 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
12496 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
12497 ac_header_preproc=yes
12498 ;;
12499 no:yes:* )
12500 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
12501 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
12502 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
12503 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
12504 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
12505 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
12506 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
12507 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
12508 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
12509 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
12510 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
12511 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
12512
12513 ;;
12514 esac
12515 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12516 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
12517 if test "${ac_cv_header_jerror_h+set}" = set; then
12518 echo $ECHO_N "(cached) $ECHO_C" >&6
12519 else
12520 ac_cv_header_jerror_h=$ac_header_preproc
12521 fi
12522 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
12523 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
12524
12525 fi
12526 if test $ac_cv_header_jerror_h = yes; then
12527 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
12528 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
12529 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
12530 echo $ECHO_N "(cached) $ECHO_C" >&6
12531 else
12532 ac_check_lib_save_LIBS=$LIBS
12533 LIBS="-ljpeg $LIBS"
12534 cat >conftest.$ac_ext <<_ACEOF
12535 /* confdefs.h. */
12536 _ACEOF
12537 cat confdefs.h >>conftest.$ac_ext
12538 cat >>conftest.$ac_ext <<_ACEOF
12539 /* end confdefs.h. */
12540
12541 /* Override any GCC internal prototype to avoid an error.
12542 Use char because int might match the return type of a GCC
12543 builtin and then its argument prototype would still apply. */
12544 #ifdef __cplusplus
12545 extern "C"
12546 #endif
12547 char jpeg_destroy_compress ();
12548 int
12549 main ()
12550 {
12551 return jpeg_destroy_compress ();
12552 ;
12553 return 0;
12554 }
12555 _ACEOF
12556 rm -f conftest.$ac_objext conftest$ac_exeext
12557 if { (ac_try="$ac_link"
12558 case "(($ac_try" in
12559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12560 *) ac_try_echo=$ac_try;;
12561 esac
12562 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12563 (eval "$ac_link") 2>conftest.er1
12564 ac_status=$?
12565 grep -v '^ *+' conftest.er1 >conftest.err
12566 rm -f conftest.er1
12567 cat conftest.err >&5
12568 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12569 (exit $ac_status); } && {
12570 test -z "$ac_c_werror_flag" ||
12571 test ! -s conftest.err
12572 } && test -s conftest$ac_exeext &&
12573 $as_test_x conftest$ac_exeext; then
12574 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
12575 else
12576 echo "$as_me: failed program was:" >&5
12577 sed 's/^/| /' conftest.$ac_ext >&5
12578
12579 ac_cv_lib_jpeg_jpeg_destroy_compress=no
12580 fi
12581
12582 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12583 conftest$ac_exeext conftest.$ac_ext
12584 LIBS=$ac_check_lib_save_LIBS
12585 fi
12586 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
12587 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
12588 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
12589 HAVE_JPEG=yes
12590 fi
12591
12592 fi
12593
12594
12595 fi
12596
12597
12598 if test "${HAVE_JPEG}" = "yes"; then
12599 cat >>confdefs.h <<\_ACEOF
12600 #define HAVE_JPEG 1
12601 _ACEOF
12602
12603 cat >conftest.$ac_ext <<_ACEOF
12604 /* confdefs.h. */
12605 _ACEOF
12606 cat confdefs.h >>conftest.$ac_ext
12607 cat >>conftest.$ac_ext <<_ACEOF
12608 /* end confdefs.h. */
12609 #include <jpeglib.h>
12610 version=JPEG_LIB_VERSION
12611
12612 _ACEOF
12613 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12614 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
12615 cat >>confdefs.h <<\_ACEOF
12616 #define HAVE_JPEG 1
12617 _ACEOF
12618
12619 else
12620 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
12621 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
12622 HAVE_JPEG=no
12623 fi
12624 rm -f conftest*
12625
12626 fi
12627 fi
12628
12629 ### Use -lpng if available, unless `--with-png=no'.
12630 HAVE_PNG=no
12631 if test "${HAVE_X11}" = "yes"; then
12632 if test "${with_png}" != "no"; then
12633 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
12634 # in /usr/include/libpng.
12635
12636
12637 for ac_header in png.h libpng/png.h
12638 do
12639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12644 echo $ECHO_N "(cached) $ECHO_C" >&6
12645 fi
12646 ac_res=`eval echo '${'$as_ac_Header'}'`
12647 { echo "$as_me:$LINENO: result: $ac_res" >&5
12648 echo "${ECHO_T}$ac_res" >&6; }
12649 else
12650 # Is the header compilable?
12651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12653 cat >conftest.$ac_ext <<_ACEOF
12654 /* confdefs.h. */
12655 _ACEOF
12656 cat confdefs.h >>conftest.$ac_ext
12657 cat >>conftest.$ac_ext <<_ACEOF
12658 /* end confdefs.h. */
12659 $ac_includes_default
12660 #include <$ac_header>
12661 _ACEOF
12662 rm -f conftest.$ac_objext
12663 if { (ac_try="$ac_compile"
12664 case "(($ac_try" in
12665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12666 *) ac_try_echo=$ac_try;;
12667 esac
12668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12669 (eval "$ac_compile") 2>conftest.er1
12670 ac_status=$?
12671 grep -v '^ *+' conftest.er1 >conftest.err
12672 rm -f conftest.er1
12673 cat conftest.err >&5
12674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12675 (exit $ac_status); } && {
12676 test -z "$ac_c_werror_flag" ||
12677 test ! -s conftest.err
12678 } && test -s conftest.$ac_objext; then
12679 ac_header_compiler=yes
12680 else
12681 echo "$as_me: failed program was:" >&5
12682 sed 's/^/| /' conftest.$ac_ext >&5
12683
12684 ac_header_compiler=no
12685 fi
12686
12687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12689 echo "${ECHO_T}$ac_header_compiler" >&6; }
12690
12691 # Is the header present?
12692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12694 cat >conftest.$ac_ext <<_ACEOF
12695 /* confdefs.h. */
12696 _ACEOF
12697 cat confdefs.h >>conftest.$ac_ext
12698 cat >>conftest.$ac_ext <<_ACEOF
12699 /* end confdefs.h. */
12700 #include <$ac_header>
12701 _ACEOF
12702 if { (ac_try="$ac_cpp conftest.$ac_ext"
12703 case "(($ac_try" in
12704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12705 *) ac_try_echo=$ac_try;;
12706 esac
12707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12709 ac_status=$?
12710 grep -v '^ *+' conftest.er1 >conftest.err
12711 rm -f conftest.er1
12712 cat conftest.err >&5
12713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12714 (exit $ac_status); } >/dev/null && {
12715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12716 test ! -s conftest.err
12717 }; then
12718 ac_header_preproc=yes
12719 else
12720 echo "$as_me: failed program was:" >&5
12721 sed 's/^/| /' conftest.$ac_ext >&5
12722
12723 ac_header_preproc=no
12724 fi
12725
12726 rm -f conftest.err conftest.$ac_ext
12727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12728 echo "${ECHO_T}$ac_header_preproc" >&6; }
12729
12730 # So? What about this header?
12731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12732 yes:no: )
12733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12737 ac_header_preproc=yes
12738 ;;
12739 no:yes:* )
12740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
12743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
12744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
12747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
12748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12752
12753 ;;
12754 esac
12755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12758 echo $ECHO_N "(cached) $ECHO_C" >&6
12759 else
12760 eval "$as_ac_Header=\$ac_header_preproc"
12761 fi
12762 ac_res=`eval echo '${'$as_ac_Header'}'`
12763 { echo "$as_me:$LINENO: result: $ac_res" >&5
12764 echo "${ECHO_T}$ac_res" >&6; }
12765
12766 fi
12767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12768 cat >>confdefs.h <<_ACEOF
12769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12770 _ACEOF
12771
12772 fi
12773
12774 done
12775
12776 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
12777 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
12778 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
12779 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
12780 echo $ECHO_N "(cached) $ECHO_C" >&6
12781 else
12782 ac_check_lib_save_LIBS=$LIBS
12783 LIBS="-lpng -lz -lm $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 png_get_channels ();
12798 int
12799 main ()
12800 {
12801 return png_get_channels ();
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_png_png_get_channels=yes
12825 else
12826 echo "$as_me: failed program was:" >&5
12827 sed 's/^/| /' conftest.$ac_ext >&5
12828
12829 ac_cv_lib_png_png_get_channels=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_png_png_get_channels" >&5
12837 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
12838 if test $ac_cv_lib_png_png_get_channels = yes; then
12839 HAVE_PNG=yes
12840 fi
12841
12842 fi
12843 fi
12844
12845 if test "${HAVE_PNG}" = "yes"; then
12846
12847 cat >>confdefs.h <<\_ACEOF
12848 #define HAVE_PNG 1
12849 _ACEOF
12850
12851 fi
12852 fi
12853
12854 ### Use -ltiff if available, unless `--with-tiff=no'.
12855 HAVE_TIFF=no
12856 if test "${HAVE_X11}" = "yes"; then
12857 if test "${with_tiff}" != "no"; then
12858 if test "${ac_cv_header_tiffio_h+set}" = set; then
12859 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
12860 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
12861 if test "${ac_cv_header_tiffio_h+set}" = set; then
12862 echo $ECHO_N "(cached) $ECHO_C" >&6
12863 fi
12864 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12865 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
12866 else
12867 # Is the header compilable?
12868 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
12869 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
12870 cat >conftest.$ac_ext <<_ACEOF
12871 /* confdefs.h. */
12872 _ACEOF
12873 cat confdefs.h >>conftest.$ac_ext
12874 cat >>conftest.$ac_ext <<_ACEOF
12875 /* end confdefs.h. */
12876 $ac_includes_default
12877 #include <tiffio.h>
12878 _ACEOF
12879 rm -f conftest.$ac_objext
12880 if { (ac_try="$ac_compile"
12881 case "(($ac_try" in
12882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12883 *) ac_try_echo=$ac_try;;
12884 esac
12885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12886 (eval "$ac_compile") 2>conftest.er1
12887 ac_status=$?
12888 grep -v '^ *+' conftest.er1 >conftest.err
12889 rm -f conftest.er1
12890 cat conftest.err >&5
12891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12892 (exit $ac_status); } && {
12893 test -z "$ac_c_werror_flag" ||
12894 test ! -s conftest.err
12895 } && test -s conftest.$ac_objext; then
12896 ac_header_compiler=yes
12897 else
12898 echo "$as_me: failed program was:" >&5
12899 sed 's/^/| /' conftest.$ac_ext >&5
12900
12901 ac_header_compiler=no
12902 fi
12903
12904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12905 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12906 echo "${ECHO_T}$ac_header_compiler" >&6; }
12907
12908 # Is the header present?
12909 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
12910 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
12911 cat >conftest.$ac_ext <<_ACEOF
12912 /* confdefs.h. */
12913 _ACEOF
12914 cat confdefs.h >>conftest.$ac_ext
12915 cat >>conftest.$ac_ext <<_ACEOF
12916 /* end confdefs.h. */
12917 #include <tiffio.h>
12918 _ACEOF
12919 if { (ac_try="$ac_cpp conftest.$ac_ext"
12920 case "(($ac_try" in
12921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12922 *) ac_try_echo=$ac_try;;
12923 esac
12924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12925 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12926 ac_status=$?
12927 grep -v '^ *+' conftest.er1 >conftest.err
12928 rm -f conftest.er1
12929 cat conftest.err >&5
12930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12931 (exit $ac_status); } >/dev/null && {
12932 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12933 test ! -s conftest.err
12934 }; then
12935 ac_header_preproc=yes
12936 else
12937 echo "$as_me: failed program was:" >&5
12938 sed 's/^/| /' conftest.$ac_ext >&5
12939
12940 ac_header_preproc=no
12941 fi
12942
12943 rm -f conftest.err conftest.$ac_ext
12944 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12945 echo "${ECHO_T}$ac_header_preproc" >&6; }
12946
12947 # So? What about this header?
12948 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12949 yes:no: )
12950 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
12951 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12952 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
12953 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
12954 ac_header_preproc=yes
12955 ;;
12956 no:yes:* )
12957 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
12958 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
12959 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
12960 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
12961 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
12962 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
12963 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
12964 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
12965 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
12966 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
12967 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
12968 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
12969
12970 ;;
12971 esac
12972 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
12973 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
12974 if test "${ac_cv_header_tiffio_h+set}" = set; then
12975 echo $ECHO_N "(cached) $ECHO_C" >&6
12976 else
12977 ac_cv_header_tiffio_h=$ac_header_preproc
12978 fi
12979 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
12980 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
12981
12982 fi
12983 if test $ac_cv_header_tiffio_h = yes; then
12984 tifflibs="-lz -lm"
12985 # At least one tiff package requires the jpeg library.
12986 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
12987 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
12988 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
12989 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
12990 echo $ECHO_N "(cached) $ECHO_C" >&6
12991 else
12992 ac_check_lib_save_LIBS=$LIBS
12993 LIBS="-ltiff $tifflibs $LIBS"
12994 cat >conftest.$ac_ext <<_ACEOF
12995 /* confdefs.h. */
12996 _ACEOF
12997 cat confdefs.h >>conftest.$ac_ext
12998 cat >>conftest.$ac_ext <<_ACEOF
12999 /* end confdefs.h. */
13000
13001 /* Override any GCC internal prototype to avoid an error.
13002 Use char because int might match the return type of a GCC
13003 builtin and then its argument prototype would still apply. */
13004 #ifdef __cplusplus
13005 extern "C"
13006 #endif
13007 char TIFFGetVersion ();
13008 int
13009 main ()
13010 {
13011 return TIFFGetVersion ();
13012 ;
13013 return 0;
13014 }
13015 _ACEOF
13016 rm -f conftest.$ac_objext conftest$ac_exeext
13017 if { (ac_try="$ac_link"
13018 case "(($ac_try" in
13019 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13020 *) ac_try_echo=$ac_try;;
13021 esac
13022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13023 (eval "$ac_link") 2>conftest.er1
13024 ac_status=$?
13025 grep -v '^ *+' conftest.er1 >conftest.err
13026 rm -f conftest.er1
13027 cat conftest.err >&5
13028 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13029 (exit $ac_status); } && {
13030 test -z "$ac_c_werror_flag" ||
13031 test ! -s conftest.err
13032 } && test -s conftest$ac_exeext &&
13033 $as_test_x conftest$ac_exeext; then
13034 ac_cv_lib_tiff_TIFFGetVersion=yes
13035 else
13036 echo "$as_me: failed program was:" >&5
13037 sed 's/^/| /' conftest.$ac_ext >&5
13038
13039 ac_cv_lib_tiff_TIFFGetVersion=no
13040 fi
13041
13042 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13043 conftest$ac_exeext conftest.$ac_ext
13044 LIBS=$ac_check_lib_save_LIBS
13045 fi
13046 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13047 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13048 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13049 HAVE_TIFF=yes
13050 fi
13051
13052 fi
13053
13054
13055 fi
13056
13057 if test "${HAVE_TIFF}" = "yes"; then
13058
13059 cat >>confdefs.h <<\_ACEOF
13060 #define HAVE_TIFF 1
13061 _ACEOF
13062
13063 fi
13064 fi
13065
13066 ### Use -lgif if available, unless `--with-gif=no'.
13067 HAVE_GIF=no
13068 if test "${HAVE_X11}" = "yes"; then
13069 if test "${with_gif}" != "no"; then
13070 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13071 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13072 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13073 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 fi
13076 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13077 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13078 else
13079 # Is the header compilable?
13080 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13081 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13082 cat >conftest.$ac_ext <<_ACEOF
13083 /* confdefs.h. */
13084 _ACEOF
13085 cat confdefs.h >>conftest.$ac_ext
13086 cat >>conftest.$ac_ext <<_ACEOF
13087 /* end confdefs.h. */
13088 $ac_includes_default
13089 #include <gif_lib.h>
13090 _ACEOF
13091 rm -f conftest.$ac_objext
13092 if { (ac_try="$ac_compile"
13093 case "(($ac_try" in
13094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13095 *) ac_try_echo=$ac_try;;
13096 esac
13097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13098 (eval "$ac_compile") 2>conftest.er1
13099 ac_status=$?
13100 grep -v '^ *+' conftest.er1 >conftest.err
13101 rm -f conftest.er1
13102 cat conftest.err >&5
13103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13104 (exit $ac_status); } && {
13105 test -z "$ac_c_werror_flag" ||
13106 test ! -s conftest.err
13107 } && test -s conftest.$ac_objext; then
13108 ac_header_compiler=yes
13109 else
13110 echo "$as_me: failed program was:" >&5
13111 sed 's/^/| /' conftest.$ac_ext >&5
13112
13113 ac_header_compiler=no
13114 fi
13115
13116 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13117 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13118 echo "${ECHO_T}$ac_header_compiler" >&6; }
13119
13120 # Is the header present?
13121 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13122 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13123 cat >conftest.$ac_ext <<_ACEOF
13124 /* confdefs.h. */
13125 _ACEOF
13126 cat confdefs.h >>conftest.$ac_ext
13127 cat >>conftest.$ac_ext <<_ACEOF
13128 /* end confdefs.h. */
13129 #include <gif_lib.h>
13130 _ACEOF
13131 if { (ac_try="$ac_cpp conftest.$ac_ext"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } >/dev/null && {
13144 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 }; then
13147 ac_header_preproc=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_header_preproc=no
13153 fi
13154
13155 rm -f conftest.err conftest.$ac_ext
13156 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13157 echo "${ECHO_T}$ac_header_preproc" >&6; }
13158
13159 # So? What about this header?
13160 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13161 yes:no: )
13162 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13163 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13164 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13165 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13166 ac_header_preproc=yes
13167 ;;
13168 no:yes:* )
13169 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13170 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13171 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13172 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13173 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13174 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13175 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13176 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13177 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13178 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13180 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13181
13182 ;;
13183 esac
13184 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13185 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13186 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13187 echo $ECHO_N "(cached) $ECHO_C" >&6
13188 else
13189 ac_cv_header_gif_lib_h=$ac_header_preproc
13190 fi
13191 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13192 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13193
13194 fi
13195 if test $ac_cv_header_gif_lib_h = yes; then
13196 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13197 # Earlier versions can crash Emacs.
13198 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13199 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13200 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13201 echo $ECHO_N "(cached) $ECHO_C" >&6
13202 else
13203 ac_check_lib_save_LIBS=$LIBS
13204 LIBS="-lungif $LIBS"
13205 cat >conftest.$ac_ext <<_ACEOF
13206 /* confdefs.h. */
13207 _ACEOF
13208 cat confdefs.h >>conftest.$ac_ext
13209 cat >>conftest.$ac_ext <<_ACEOF
13210 /* end confdefs.h. */
13211
13212 /* Override any GCC internal prototype to avoid an error.
13213 Use char because int might match the return type of a GCC
13214 builtin and then its argument prototype would still apply. */
13215 #ifdef __cplusplus
13216 extern "C"
13217 #endif
13218 char EGifPutExtensionLast ();
13219 int
13220 main ()
13221 {
13222 return EGifPutExtensionLast ();
13223 ;
13224 return 0;
13225 }
13226 _ACEOF
13227 rm -f conftest.$ac_objext conftest$ac_exeext
13228 if { (ac_try="$ac_link"
13229 case "(($ac_try" in
13230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13231 *) ac_try_echo=$ac_try;;
13232 esac
13233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13234 (eval "$ac_link") 2>conftest.er1
13235 ac_status=$?
13236 grep -v '^ *+' conftest.er1 >conftest.err
13237 rm -f conftest.er1
13238 cat conftest.err >&5
13239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13240 (exit $ac_status); } && {
13241 test -z "$ac_c_werror_flag" ||
13242 test ! -s conftest.err
13243 } && test -s conftest$ac_exeext &&
13244 $as_test_x conftest$ac_exeext; then
13245 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13246 else
13247 echo "$as_me: failed program was:" >&5
13248 sed 's/^/| /' conftest.$ac_ext >&5
13249
13250 ac_cv_lib_ungif_EGifPutExtensionLast=no
13251 fi
13252
13253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13254 conftest$ac_exeext conftest.$ac_ext
13255 LIBS=$ac_check_lib_save_LIBS
13256 fi
13257 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13258 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13259 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13260 HAVE_GIF=yes
13261 fi
13262
13263 fi
13264
13265
13266 fi
13267
13268 if test "${HAVE_GIF}" = "yes"; then
13269
13270 cat >>confdefs.h <<\_ACEOF
13271 #define HAVE_GIF 1
13272 _ACEOF
13273
13274 fi
13275 fi
13276
13277 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13278 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13279 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13280 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13281 echo $ECHO_N "(cached) $ECHO_C" >&6
13282 fi
13283 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13284 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13285 else
13286 # Is the header compilable?
13287 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13288 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13289 cat >conftest.$ac_ext <<_ACEOF
13290 /* confdefs.h. */
13291 _ACEOF
13292 cat confdefs.h >>conftest.$ac_ext
13293 cat >>conftest.$ac_ext <<_ACEOF
13294 /* end confdefs.h. */
13295 $ac_includes_default
13296 #include <malloc/malloc.h>
13297 _ACEOF
13298 rm -f conftest.$ac_objext
13299 if { (ac_try="$ac_compile"
13300 case "(($ac_try" in
13301 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13302 *) ac_try_echo=$ac_try;;
13303 esac
13304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13305 (eval "$ac_compile") 2>conftest.er1
13306 ac_status=$?
13307 grep -v '^ *+' conftest.er1 >conftest.err
13308 rm -f conftest.er1
13309 cat conftest.err >&5
13310 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13311 (exit $ac_status); } && {
13312 test -z "$ac_c_werror_flag" ||
13313 test ! -s conftest.err
13314 } && test -s conftest.$ac_objext; then
13315 ac_header_compiler=yes
13316 else
13317 echo "$as_me: failed program was:" >&5
13318 sed 's/^/| /' conftest.$ac_ext >&5
13319
13320 ac_header_compiler=no
13321 fi
13322
13323 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13324 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13325 echo "${ECHO_T}$ac_header_compiler" >&6; }
13326
13327 # Is the header present?
13328 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13329 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13330 cat >conftest.$ac_ext <<_ACEOF
13331 /* confdefs.h. */
13332 _ACEOF
13333 cat confdefs.h >>conftest.$ac_ext
13334 cat >>conftest.$ac_ext <<_ACEOF
13335 /* end confdefs.h. */
13336 #include <malloc/malloc.h>
13337 _ACEOF
13338 if { (ac_try="$ac_cpp conftest.$ac_ext"
13339 case "(($ac_try" in
13340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13341 *) ac_try_echo=$ac_try;;
13342 esac
13343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13344 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13345 ac_status=$?
13346 grep -v '^ *+' conftest.er1 >conftest.err
13347 rm -f conftest.er1
13348 cat conftest.err >&5
13349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13350 (exit $ac_status); } >/dev/null && {
13351 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13352 test ! -s conftest.err
13353 }; then
13354 ac_header_preproc=yes
13355 else
13356 echo "$as_me: failed program was:" >&5
13357 sed 's/^/| /' conftest.$ac_ext >&5
13358
13359 ac_header_preproc=no
13360 fi
13361
13362 rm -f conftest.err conftest.$ac_ext
13363 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13364 echo "${ECHO_T}$ac_header_preproc" >&6; }
13365
13366 # So? What about this header?
13367 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13368 yes:no: )
13369 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13370 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13371 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13372 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13373 ac_header_preproc=yes
13374 ;;
13375 no:yes:* )
13376 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13377 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13378 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13379 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13380 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13381 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13382 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13383 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13385 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13387 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13388
13389 ;;
13390 esac
13391 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13392 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13393 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13394 echo $ECHO_N "(cached) $ECHO_C" >&6
13395 else
13396 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13397 fi
13398 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13399 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13400
13401 fi
13402 if test $ac_cv_header_malloc_malloc_h = yes; then
13403
13404 cat >>confdefs.h <<\_ACEOF
13405 #define HAVE_MALLOC_MALLOC_H 1
13406 _ACEOF
13407
13408 fi
13409
13410
13411
13412 ### Use Mac OS X Carbon API to implement GUI.
13413 if test "${HAVE_CARBON}" = "yes"; then
13414
13415 cat >>confdefs.h <<\_ACEOF
13416 #define HAVE_CARBON 1
13417 _ACEOF
13418
13419 ## Specify the install directory
13420 carbon_appdir=
13421 if test "${carbon_appdir_x}" != ""; then
13422 case ${carbon_appdir_x} in
13423 y | ye | yes) carbon_appdir=/Applications ;;
13424 * ) carbon_appdir=${carbon_appdir_x} ;;
13425 esac
13426 fi
13427 # We also have mouse menus.
13428 HAVE_MENUS=yes
13429 fi
13430
13431 ### Use session management (-lSM -lICE) if available
13432 HAVE_X_SM=no
13433 if test "${HAVE_X11}" = "yes"; then
13434 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13435 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13436 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13437 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13438 echo $ECHO_N "(cached) $ECHO_C" >&6
13439 fi
13440 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13441 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13442 else
13443 # Is the header compilable?
13444 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
13445 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
13446 cat >conftest.$ac_ext <<_ACEOF
13447 /* confdefs.h. */
13448 _ACEOF
13449 cat confdefs.h >>conftest.$ac_ext
13450 cat >>conftest.$ac_ext <<_ACEOF
13451 /* end confdefs.h. */
13452 $ac_includes_default
13453 #include <X11/SM/SMlib.h>
13454 _ACEOF
13455 rm -f conftest.$ac_objext
13456 if { (ac_try="$ac_compile"
13457 case "(($ac_try" in
13458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13459 *) ac_try_echo=$ac_try;;
13460 esac
13461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13462 (eval "$ac_compile") 2>conftest.er1
13463 ac_status=$?
13464 grep -v '^ *+' conftest.er1 >conftest.err
13465 rm -f conftest.er1
13466 cat conftest.err >&5
13467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13468 (exit $ac_status); } && {
13469 test -z "$ac_c_werror_flag" ||
13470 test ! -s conftest.err
13471 } && test -s conftest.$ac_objext; then
13472 ac_header_compiler=yes
13473 else
13474 echo "$as_me: failed program was:" >&5
13475 sed 's/^/| /' conftest.$ac_ext >&5
13476
13477 ac_header_compiler=no
13478 fi
13479
13480 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13481 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13482 echo "${ECHO_T}$ac_header_compiler" >&6; }
13483
13484 # Is the header present?
13485 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
13486 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
13487 cat >conftest.$ac_ext <<_ACEOF
13488 /* confdefs.h. */
13489 _ACEOF
13490 cat confdefs.h >>conftest.$ac_ext
13491 cat >>conftest.$ac_ext <<_ACEOF
13492 /* end confdefs.h. */
13493 #include <X11/SM/SMlib.h>
13494 _ACEOF
13495 if { (ac_try="$ac_cpp conftest.$ac_ext"
13496 case "(($ac_try" in
13497 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13498 *) ac_try_echo=$ac_try;;
13499 esac
13500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13501 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13502 ac_status=$?
13503 grep -v '^ *+' conftest.er1 >conftest.err
13504 rm -f conftest.er1
13505 cat conftest.err >&5
13506 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13507 (exit $ac_status); } >/dev/null && {
13508 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13509 test ! -s conftest.err
13510 }; then
13511 ac_header_preproc=yes
13512 else
13513 echo "$as_me: failed program was:" >&5
13514 sed 's/^/| /' conftest.$ac_ext >&5
13515
13516 ac_header_preproc=no
13517 fi
13518
13519 rm -f conftest.err conftest.$ac_ext
13520 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13521 echo "${ECHO_T}$ac_header_preproc" >&6; }
13522
13523 # So? What about this header?
13524 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13525 yes:no: )
13526 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13527 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
13529 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
13530 ac_header_preproc=yes
13531 ;;
13532 no:yes:* )
13533 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
13534 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
13535 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
13536 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
13537 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
13538 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
13539 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
13540 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13541 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
13542 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
13543 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
13544 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
13545
13546 ;;
13547 esac
13548 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
13549 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
13550 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
13551 echo $ECHO_N "(cached) $ECHO_C" >&6
13552 else
13553 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
13554 fi
13555 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
13556 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
13557
13558 fi
13559 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
13560 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
13561 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
13562 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
13563 echo $ECHO_N "(cached) $ECHO_C" >&6
13564 else
13565 ac_check_lib_save_LIBS=$LIBS
13566 LIBS="-lSM -lICE $LIBS"
13567 cat >conftest.$ac_ext <<_ACEOF
13568 /* confdefs.h. */
13569 _ACEOF
13570 cat confdefs.h >>conftest.$ac_ext
13571 cat >>conftest.$ac_ext <<_ACEOF
13572 /* end confdefs.h. */
13573
13574 /* Override any GCC internal prototype to avoid an error.
13575 Use char because int might match the return type of a GCC
13576 builtin and then its argument prototype would still apply. */
13577 #ifdef __cplusplus
13578 extern "C"
13579 #endif
13580 char SmcOpenConnection ();
13581 int
13582 main ()
13583 {
13584 return SmcOpenConnection ();
13585 ;
13586 return 0;
13587 }
13588 _ACEOF
13589 rm -f conftest.$ac_objext conftest$ac_exeext
13590 if { (ac_try="$ac_link"
13591 case "(($ac_try" in
13592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593 *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596 (eval "$ac_link") 2>conftest.er1
13597 ac_status=$?
13598 grep -v '^ *+' conftest.er1 >conftest.err
13599 rm -f conftest.er1
13600 cat conftest.err >&5
13601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13602 (exit $ac_status); } && {
13603 test -z "$ac_c_werror_flag" ||
13604 test ! -s conftest.err
13605 } && test -s conftest$ac_exeext &&
13606 $as_test_x conftest$ac_exeext; then
13607 ac_cv_lib_SM_SmcOpenConnection=yes
13608 else
13609 echo "$as_me: failed program was:" >&5
13610 sed 's/^/| /' conftest.$ac_ext >&5
13611
13612 ac_cv_lib_SM_SmcOpenConnection=no
13613 fi
13614
13615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13616 conftest$ac_exeext conftest.$ac_ext
13617 LIBS=$ac_check_lib_save_LIBS
13618 fi
13619 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
13620 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
13621 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
13622 HAVE_X_SM=yes
13623 fi
13624
13625 fi
13626
13627
13628
13629 if test "${HAVE_X_SM}" = "yes"; then
13630
13631 cat >>confdefs.h <<\_ACEOF
13632 #define HAVE_X_SM 1
13633 _ACEOF
13634
13635 case "$LIBS" in
13636 *-lSM*) ;;
13637 *) LIBS="-lSM -lICE $LIBS" ;;
13638 esac
13639 fi
13640 fi
13641
13642 # If netdb.h doesn't declare h_errno, we must declare it by hand.
13643 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
13644 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
13645 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
13646 echo $ECHO_N "(cached) $ECHO_C" >&6
13647 else
13648 cat >conftest.$ac_ext <<_ACEOF
13649 /* confdefs.h. */
13650 _ACEOF
13651 cat confdefs.h >>conftest.$ac_ext
13652 cat >>conftest.$ac_ext <<_ACEOF
13653 /* end confdefs.h. */
13654 #include <netdb.h>
13655 int
13656 main ()
13657 {
13658 return h_errno;
13659 ;
13660 return 0;
13661 }
13662 _ACEOF
13663 rm -f conftest.$ac_objext conftest$ac_exeext
13664 if { (ac_try="$ac_link"
13665 case "(($ac_try" in
13666 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13667 *) ac_try_echo=$ac_try;;
13668 esac
13669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13670 (eval "$ac_link") 2>conftest.er1
13671 ac_status=$?
13672 grep -v '^ *+' conftest.er1 >conftest.err
13673 rm -f conftest.er1
13674 cat conftest.err >&5
13675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676 (exit $ac_status); } && {
13677 test -z "$ac_c_werror_flag" ||
13678 test ! -s conftest.err
13679 } && test -s conftest$ac_exeext &&
13680 $as_test_x conftest$ac_exeext; then
13681 emacs_cv_netdb_declares_h_errno=yes
13682 else
13683 echo "$as_me: failed program was:" >&5
13684 sed 's/^/| /' conftest.$ac_ext >&5
13685
13686 emacs_cv_netdb_declares_h_errno=no
13687 fi
13688
13689 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13690 conftest$ac_exeext conftest.$ac_ext
13691 fi
13692 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
13693 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
13694 if test $emacs_cv_netdb_declares_h_errno = yes; then
13695
13696 cat >>confdefs.h <<\_ACEOF
13697 #define HAVE_H_ERRNO 1
13698 _ACEOF
13699
13700 fi
13701
13702 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
13703 # for constant arguments. Useless!
13704 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
13705 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
13706 if test "${ac_cv_working_alloca_h+set}" = set; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709 cat >conftest.$ac_ext <<_ACEOF
13710 /* confdefs.h. */
13711 _ACEOF
13712 cat confdefs.h >>conftest.$ac_ext
13713 cat >>conftest.$ac_ext <<_ACEOF
13714 /* end confdefs.h. */
13715 #include <alloca.h>
13716 int
13717 main ()
13718 {
13719 char *p = (char *) alloca (2 * sizeof (int));
13720 if (p) return 0;
13721 ;
13722 return 0;
13723 }
13724 _ACEOF
13725 rm -f conftest.$ac_objext conftest$ac_exeext
13726 if { (ac_try="$ac_link"
13727 case "(($ac_try" in
13728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13729 *) ac_try_echo=$ac_try;;
13730 esac
13731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13732 (eval "$ac_link") 2>conftest.er1
13733 ac_status=$?
13734 grep -v '^ *+' conftest.er1 >conftest.err
13735 rm -f conftest.er1
13736 cat conftest.err >&5
13737 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13738 (exit $ac_status); } && {
13739 test -z "$ac_c_werror_flag" ||
13740 test ! -s conftest.err
13741 } && test -s conftest$ac_exeext &&
13742 $as_test_x conftest$ac_exeext; then
13743 ac_cv_working_alloca_h=yes
13744 else
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_cv_working_alloca_h=no
13749 fi
13750
13751 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13752 conftest$ac_exeext conftest.$ac_ext
13753 fi
13754 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
13755 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
13756 if test $ac_cv_working_alloca_h = yes; then
13757
13758 cat >>confdefs.h <<\_ACEOF
13759 #define HAVE_ALLOCA_H 1
13760 _ACEOF
13761
13762 fi
13763
13764 { echo "$as_me:$LINENO: checking for alloca" >&5
13765 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
13766 if test "${ac_cv_func_alloca_works+set}" = set; then
13767 echo $ECHO_N "(cached) $ECHO_C" >&6
13768 else
13769 cat >conftest.$ac_ext <<_ACEOF
13770 /* confdefs.h. */
13771 _ACEOF
13772 cat confdefs.h >>conftest.$ac_ext
13773 cat >>conftest.$ac_ext <<_ACEOF
13774 /* end confdefs.h. */
13775 #ifdef __GNUC__
13776 # define alloca __builtin_alloca
13777 #else
13778 # ifdef _MSC_VER
13779 # include <malloc.h>
13780 # define alloca _alloca
13781 # else
13782 # ifdef HAVE_ALLOCA_H
13783 # include <alloca.h>
13784 # else
13785 # ifdef _AIX
13786 #pragma alloca
13787 # else
13788 # ifndef alloca /* predefined by HP cc +Olibcalls */
13789 char *alloca ();
13790 # endif
13791 # endif
13792 # endif
13793 # endif
13794 #endif
13795
13796 int
13797 main ()
13798 {
13799 char *p = (char *) alloca (1);
13800 if (p) return 0;
13801 ;
13802 return 0;
13803 }
13804 _ACEOF
13805 rm -f conftest.$ac_objext conftest$ac_exeext
13806 if { (ac_try="$ac_link"
13807 case "(($ac_try" in
13808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13809 *) ac_try_echo=$ac_try;;
13810 esac
13811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13812 (eval "$ac_link") 2>conftest.er1
13813 ac_status=$?
13814 grep -v '^ *+' conftest.er1 >conftest.err
13815 rm -f conftest.er1
13816 cat conftest.err >&5
13817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13818 (exit $ac_status); } && {
13819 test -z "$ac_c_werror_flag" ||
13820 test ! -s conftest.err
13821 } && test -s conftest$ac_exeext &&
13822 $as_test_x conftest$ac_exeext; then
13823 ac_cv_func_alloca_works=yes
13824 else
13825 echo "$as_me: failed program was:" >&5
13826 sed 's/^/| /' conftest.$ac_ext >&5
13827
13828 ac_cv_func_alloca_works=no
13829 fi
13830
13831 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13832 conftest$ac_exeext conftest.$ac_ext
13833 fi
13834 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
13835 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
13836
13837 if test $ac_cv_func_alloca_works = yes; then
13838
13839 cat >>confdefs.h <<\_ACEOF
13840 #define HAVE_ALLOCA 1
13841 _ACEOF
13842
13843 else
13844 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
13845 # that cause trouble. Some versions do not even contain alloca or
13846 # contain a buggy version. If you still want to use their alloca,
13847 # use ar to extract alloca.o from them instead of compiling alloca.c.
13848
13849 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
13850
13851 cat >>confdefs.h <<\_ACEOF
13852 #define C_ALLOCA 1
13853 _ACEOF
13854
13855
13856 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
13857 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
13858 if test "${ac_cv_os_cray+set}" = set; then
13859 echo $ECHO_N "(cached) $ECHO_C" >&6
13860 else
13861 cat >conftest.$ac_ext <<_ACEOF
13862 /* confdefs.h. */
13863 _ACEOF
13864 cat confdefs.h >>conftest.$ac_ext
13865 cat >>conftest.$ac_ext <<_ACEOF
13866 /* end confdefs.h. */
13867 #if defined CRAY && ! defined CRAY2
13868 webecray
13869 #else
13870 wenotbecray
13871 #endif
13872
13873 _ACEOF
13874 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13875 $EGREP "webecray" >/dev/null 2>&1; then
13876 ac_cv_os_cray=yes
13877 else
13878 ac_cv_os_cray=no
13879 fi
13880 rm -f conftest*
13881
13882 fi
13883 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
13884 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
13885 if test $ac_cv_os_cray = yes; then
13886 for ac_func in _getb67 GETB67 getb67; do
13887 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13888 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13889 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13890 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13891 echo $ECHO_N "(cached) $ECHO_C" >&6
13892 else
13893 cat >conftest.$ac_ext <<_ACEOF
13894 /* confdefs.h. */
13895 _ACEOF
13896 cat confdefs.h >>conftest.$ac_ext
13897 cat >>conftest.$ac_ext <<_ACEOF
13898 /* end confdefs.h. */
13899 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13900 For example, HP-UX 11i <limits.h> declares gettimeofday. */
13901 #define $ac_func innocuous_$ac_func
13902
13903 /* System header to define __stub macros and hopefully few prototypes,
13904 which can conflict with char $ac_func (); below.
13905 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13906 <limits.h> exists even on freestanding compilers. */
13907
13908 #ifdef __STDC__
13909 # include <limits.h>
13910 #else
13911 # include <assert.h>
13912 #endif
13913
13914 #undef $ac_func
13915
13916 /* Override any GCC internal prototype to avoid an error.
13917 Use char because int might match the return type of a GCC
13918 builtin and then its argument prototype would still apply. */
13919 #ifdef __cplusplus
13920 extern "C"
13921 #endif
13922 char $ac_func ();
13923 /* The GNU C library defines this for functions which it implements
13924 to always fail with ENOSYS. Some functions are actually named
13925 something starting with __ and the normal name is an alias. */
13926 #if defined __stub_$ac_func || defined __stub___$ac_func
13927 choke me
13928 #endif
13929
13930 int
13931 main ()
13932 {
13933 return $ac_func ();
13934 ;
13935 return 0;
13936 }
13937 _ACEOF
13938 rm -f conftest.$ac_objext conftest$ac_exeext
13939 if { (ac_try="$ac_link"
13940 case "(($ac_try" in
13941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13942 *) ac_try_echo=$ac_try;;
13943 esac
13944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13945 (eval "$ac_link") 2>conftest.er1
13946 ac_status=$?
13947 grep -v '^ *+' conftest.er1 >conftest.err
13948 rm -f conftest.er1
13949 cat conftest.err >&5
13950 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13951 (exit $ac_status); } && {
13952 test -z "$ac_c_werror_flag" ||
13953 test ! -s conftest.err
13954 } && test -s conftest$ac_exeext &&
13955 $as_test_x conftest$ac_exeext; then
13956 eval "$as_ac_var=yes"
13957 else
13958 echo "$as_me: failed program was:" >&5
13959 sed 's/^/| /' conftest.$ac_ext >&5
13960
13961 eval "$as_ac_var=no"
13962 fi
13963
13964 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13965 conftest$ac_exeext conftest.$ac_ext
13966 fi
13967 ac_res=`eval echo '${'$as_ac_var'}'`
13968 { echo "$as_me:$LINENO: result: $ac_res" >&5
13969 echo "${ECHO_T}$ac_res" >&6; }
13970 if test `eval echo '${'$as_ac_var'}'` = yes; then
13971
13972 cat >>confdefs.h <<_ACEOF
13973 #define CRAY_STACKSEG_END $ac_func
13974 _ACEOF
13975
13976 break
13977 fi
13978
13979 done
13980 fi
13981
13982 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
13983 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
13984 if test "${ac_cv_c_stack_direction+set}" = set; then
13985 echo $ECHO_N "(cached) $ECHO_C" >&6
13986 else
13987 if test "$cross_compiling" = yes; then
13988 ac_cv_c_stack_direction=0
13989 else
13990 cat >conftest.$ac_ext <<_ACEOF
13991 /* confdefs.h. */
13992 _ACEOF
13993 cat confdefs.h >>conftest.$ac_ext
13994 cat >>conftest.$ac_ext <<_ACEOF
13995 /* end confdefs.h. */
13996 $ac_includes_default
13997 int
13998 find_stack_direction ()
13999 {
14000 static char *addr = 0;
14001 auto char dummy;
14002 if (addr == 0)
14003 {
14004 addr = &dummy;
14005 return find_stack_direction ();
14006 }
14007 else
14008 return (&dummy > addr) ? 1 : -1;
14009 }
14010
14011 int
14012 main ()
14013 {
14014 return find_stack_direction () < 0;
14015 }
14016 _ACEOF
14017 rm -f conftest$ac_exeext
14018 if { (ac_try="$ac_link"
14019 case "(($ac_try" in
14020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14021 *) ac_try_echo=$ac_try;;
14022 esac
14023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14024 (eval "$ac_link") 2>&5
14025 ac_status=$?
14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14027 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14028 { (case "(($ac_try" in
14029 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14030 *) ac_try_echo=$ac_try;;
14031 esac
14032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14033 (eval "$ac_try") 2>&5
14034 ac_status=$?
14035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14036 (exit $ac_status); }; }; then
14037 ac_cv_c_stack_direction=1
14038 else
14039 echo "$as_me: program exited with status $ac_status" >&5
14040 echo "$as_me: failed program was:" >&5
14041 sed 's/^/| /' conftest.$ac_ext >&5
14042
14043 ( exit $ac_status )
14044 ac_cv_c_stack_direction=-1
14045 fi
14046 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14047 fi
14048
14049
14050 fi
14051 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14052 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14053
14054 cat >>confdefs.h <<_ACEOF
14055 #define STACK_DIRECTION $ac_cv_c_stack_direction
14056 _ACEOF
14057
14058
14059 fi
14060
14061
14062 # fmod, logb, and frexp are found in -lm on most systems.
14063 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14064
14065 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14066 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14067 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 ac_check_lib_save_LIBS=$LIBS
14071 LIBS="-lm $LIBS"
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078
14079 /* Override any GCC internal prototype to avoid an error.
14080 Use char because int might match the return type of a GCC
14081 builtin and then its argument prototype would still apply. */
14082 #ifdef __cplusplus
14083 extern "C"
14084 #endif
14085 char sqrt ();
14086 int
14087 main ()
14088 {
14089 return sqrt ();
14090 ;
14091 return 0;
14092 }
14093 _ACEOF
14094 rm -f conftest.$ac_objext conftest$ac_exeext
14095 if { (ac_try="$ac_link"
14096 case "(($ac_try" in
14097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14098 *) ac_try_echo=$ac_try;;
14099 esac
14100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14101 (eval "$ac_link") 2>conftest.er1
14102 ac_status=$?
14103 grep -v '^ *+' conftest.er1 >conftest.err
14104 rm -f conftest.er1
14105 cat conftest.err >&5
14106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14107 (exit $ac_status); } && {
14108 test -z "$ac_c_werror_flag" ||
14109 test ! -s conftest.err
14110 } && test -s conftest$ac_exeext &&
14111 $as_test_x conftest$ac_exeext; then
14112 ac_cv_lib_m_sqrt=yes
14113 else
14114 echo "$as_me: failed program was:" >&5
14115 sed 's/^/| /' conftest.$ac_ext >&5
14116
14117 ac_cv_lib_m_sqrt=no
14118 fi
14119
14120 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14121 conftest$ac_exeext conftest.$ac_ext
14122 LIBS=$ac_check_lib_save_LIBS
14123 fi
14124 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14125 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14126 if test $ac_cv_lib_m_sqrt = yes; then
14127 cat >>confdefs.h <<_ACEOF
14128 #define HAVE_LIBM 1
14129 _ACEOF
14130
14131 LIBS="-lm $LIBS"
14132
14133 fi
14134
14135
14136 # Check for mail-locking functions in a "mail" library. Probably this should
14137 # have the same check as for liblockfile below.
14138
14139 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14140 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14141 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14142 echo $ECHO_N "(cached) $ECHO_C" >&6
14143 else
14144 ac_check_lib_save_LIBS=$LIBS
14145 LIBS="-lmail $LIBS"
14146 cat >conftest.$ac_ext <<_ACEOF
14147 /* confdefs.h. */
14148 _ACEOF
14149 cat confdefs.h >>conftest.$ac_ext
14150 cat >>conftest.$ac_ext <<_ACEOF
14151 /* end confdefs.h. */
14152
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 char maillock ();
14160 int
14161 main ()
14162 {
14163 return maillock ();
14164 ;
14165 return 0;
14166 }
14167 _ACEOF
14168 rm -f conftest.$ac_objext conftest$ac_exeext
14169 if { (ac_try="$ac_link"
14170 case "(($ac_try" in
14171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172 *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175 (eval "$ac_link") 2>conftest.er1
14176 ac_status=$?
14177 grep -v '^ *+' conftest.er1 >conftest.err
14178 rm -f conftest.er1
14179 cat conftest.err >&5
14180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14181 (exit $ac_status); } && {
14182 test -z "$ac_c_werror_flag" ||
14183 test ! -s conftest.err
14184 } && test -s conftest$ac_exeext &&
14185 $as_test_x conftest$ac_exeext; then
14186 ac_cv_lib_mail_maillock=yes
14187 else
14188 echo "$as_me: failed program was:" >&5
14189 sed 's/^/| /' conftest.$ac_ext >&5
14190
14191 ac_cv_lib_mail_maillock=no
14192 fi
14193
14194 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14195 conftest$ac_exeext conftest.$ac_ext
14196 LIBS=$ac_check_lib_save_LIBS
14197 fi
14198 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14199 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14200 if test $ac_cv_lib_mail_maillock = yes; then
14201 cat >>confdefs.h <<_ACEOF
14202 #define HAVE_LIBMAIL 1
14203 _ACEOF
14204
14205 LIBS="-lmail $LIBS"
14206
14207 fi
14208
14209
14210 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14211 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14212 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14213 echo $ECHO_N "(cached) $ECHO_C" >&6
14214 else
14215 ac_check_lib_save_LIBS=$LIBS
14216 LIBS="-llockfile $LIBS"
14217 cat >conftest.$ac_ext <<_ACEOF
14218 /* confdefs.h. */
14219 _ACEOF
14220 cat confdefs.h >>conftest.$ac_ext
14221 cat >>conftest.$ac_ext <<_ACEOF
14222 /* end confdefs.h. */
14223
14224 /* Override any GCC internal prototype to avoid an error.
14225 Use char because int might match the return type of a GCC
14226 builtin and then its argument prototype would still apply. */
14227 #ifdef __cplusplus
14228 extern "C"
14229 #endif
14230 char maillock ();
14231 int
14232 main ()
14233 {
14234 return maillock ();
14235 ;
14236 return 0;
14237 }
14238 _ACEOF
14239 rm -f conftest.$ac_objext conftest$ac_exeext
14240 if { (ac_try="$ac_link"
14241 case "(($ac_try" in
14242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14243 *) ac_try_echo=$ac_try;;
14244 esac
14245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14246 (eval "$ac_link") 2>conftest.er1
14247 ac_status=$?
14248 grep -v '^ *+' conftest.er1 >conftest.err
14249 rm -f conftest.er1
14250 cat conftest.err >&5
14251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14252 (exit $ac_status); } && {
14253 test -z "$ac_c_werror_flag" ||
14254 test ! -s conftest.err
14255 } && test -s conftest$ac_exeext &&
14256 $as_test_x conftest$ac_exeext; then
14257 ac_cv_lib_lockfile_maillock=yes
14258 else
14259 echo "$as_me: failed program was:" >&5
14260 sed 's/^/| /' conftest.$ac_ext >&5
14261
14262 ac_cv_lib_lockfile_maillock=no
14263 fi
14264
14265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14266 conftest$ac_exeext conftest.$ac_ext
14267 LIBS=$ac_check_lib_save_LIBS
14268 fi
14269 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14270 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14271 if test $ac_cv_lib_lockfile_maillock = yes; then
14272 cat >>confdefs.h <<_ACEOF
14273 #define HAVE_LIBLOCKFILE 1
14274 _ACEOF
14275
14276 LIBS="-llockfile $LIBS"
14277
14278 fi
14279
14280 # If we have the shared liblockfile, assume we must use it for mail
14281 # locking (e.g. Debian). If we couldn't link against liblockfile
14282 # (no liblockfile.a installed), ensure that we don't need to.
14283 if test "$ac_cv_lib_lockfile_maillock" = no; then
14284 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14285 set dummy liblockfile.so; ac_word=$2
14286 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14287 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14288 if test "${ac_cv_prog_liblockfile+set}" = set; then
14289 echo $ECHO_N "(cached) $ECHO_C" >&6
14290 else
14291 if test -n "$liblockfile"; then
14292 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14293 else
14294 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14295 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14296 for as_dir in $as_dummy
14297 do
14298 IFS=$as_save_IFS
14299 test -z "$as_dir" && as_dir=.
14300 for ac_exec_ext in '' $ac_executable_extensions; do
14301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14302 ac_cv_prog_liblockfile="yes"
14303 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14304 break 2
14305 fi
14306 done
14307 done
14308 IFS=$as_save_IFS
14309
14310 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14311 fi
14312 fi
14313 liblockfile=$ac_cv_prog_liblockfile
14314 if test -n "$liblockfile"; then
14315 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14316 echo "${ECHO_T}$liblockfile" >&6; }
14317 else
14318 { echo "$as_me:$LINENO: result: no" >&5
14319 echo "${ECHO_T}no" >&6; }
14320 fi
14321
14322
14323 if test $ac_cv_prog_liblockfile = yes; then
14324 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14325 This probably means that movemail could lose mail.
14326 There may be a \`development' package to install containing liblockfile." >&5
14327 echo "$as_me: error: Shared liblockfile found but can't link against it.
14328 This probably means that movemail could lose mail.
14329 There may be a \`development' package to install containing liblockfile." >&2;}
14330 { (exit 1); exit 1; }; }
14331 else :
14332 fi
14333 fi
14334
14335 for ac_func in touchlock
14336 do
14337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14341 echo $ECHO_N "(cached) $ECHO_C" >&6
14342 else
14343 cat >conftest.$ac_ext <<_ACEOF
14344 /* confdefs.h. */
14345 _ACEOF
14346 cat confdefs.h >>conftest.$ac_ext
14347 cat >>conftest.$ac_ext <<_ACEOF
14348 /* end confdefs.h. */
14349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14351 #define $ac_func innocuous_$ac_func
14352
14353 /* System header to define __stub macros and hopefully few prototypes,
14354 which can conflict with char $ac_func (); below.
14355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14356 <limits.h> exists even on freestanding compilers. */
14357
14358 #ifdef __STDC__
14359 # include <limits.h>
14360 #else
14361 # include <assert.h>
14362 #endif
14363
14364 #undef $ac_func
14365
14366 /* Override any GCC internal prototype to avoid an error.
14367 Use char because int might match the return type of a GCC
14368 builtin and then its argument prototype would still apply. */
14369 #ifdef __cplusplus
14370 extern "C"
14371 #endif
14372 char $ac_func ();
14373 /* The GNU C library defines this for functions which it implements
14374 to always fail with ENOSYS. Some functions are actually named
14375 something starting with __ and the normal name is an alias. */
14376 #if defined __stub_$ac_func || defined __stub___$ac_func
14377 choke me
14378 #endif
14379
14380 int
14381 main ()
14382 {
14383 return $ac_func ();
14384 ;
14385 return 0;
14386 }
14387 _ACEOF
14388 rm -f conftest.$ac_objext conftest$ac_exeext
14389 if { (ac_try="$ac_link"
14390 case "(($ac_try" in
14391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14392 *) ac_try_echo=$ac_try;;
14393 esac
14394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14395 (eval "$ac_link") 2>conftest.er1
14396 ac_status=$?
14397 grep -v '^ *+' conftest.er1 >conftest.err
14398 rm -f conftest.er1
14399 cat conftest.err >&5
14400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401 (exit $ac_status); } && {
14402 test -z "$ac_c_werror_flag" ||
14403 test ! -s conftest.err
14404 } && test -s conftest$ac_exeext &&
14405 $as_test_x conftest$ac_exeext; then
14406 eval "$as_ac_var=yes"
14407 else
14408 echo "$as_me: failed program was:" >&5
14409 sed 's/^/| /' conftest.$ac_ext >&5
14410
14411 eval "$as_ac_var=no"
14412 fi
14413
14414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14415 conftest$ac_exeext conftest.$ac_ext
14416 fi
14417 ac_res=`eval echo '${'$as_ac_var'}'`
14418 { echo "$as_me:$LINENO: result: $ac_res" >&5
14419 echo "${ECHO_T}$ac_res" >&6; }
14420 if test `eval echo '${'$as_ac_var'}'` = yes; then
14421 cat >>confdefs.h <<_ACEOF
14422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14423 _ACEOF
14424
14425 fi
14426 done
14427
14428
14429 for ac_header in maillock.h
14430 do
14431 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14433 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14434 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14435 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14436 echo $ECHO_N "(cached) $ECHO_C" >&6
14437 fi
14438 ac_res=`eval echo '${'$as_ac_Header'}'`
14439 { echo "$as_me:$LINENO: result: $ac_res" >&5
14440 echo "${ECHO_T}$ac_res" >&6; }
14441 else
14442 # Is the header compilable?
14443 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14444 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14445 cat >conftest.$ac_ext <<_ACEOF
14446 /* confdefs.h. */
14447 _ACEOF
14448 cat confdefs.h >>conftest.$ac_ext
14449 cat >>conftest.$ac_ext <<_ACEOF
14450 /* end confdefs.h. */
14451 $ac_includes_default
14452 #include <$ac_header>
14453 _ACEOF
14454 rm -f conftest.$ac_objext
14455 if { (ac_try="$ac_compile"
14456 case "(($ac_try" in
14457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14458 *) ac_try_echo=$ac_try;;
14459 esac
14460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14461 (eval "$ac_compile") 2>conftest.er1
14462 ac_status=$?
14463 grep -v '^ *+' conftest.er1 >conftest.err
14464 rm -f conftest.er1
14465 cat conftest.err >&5
14466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14467 (exit $ac_status); } && {
14468 test -z "$ac_c_werror_flag" ||
14469 test ! -s conftest.err
14470 } && test -s conftest.$ac_objext; then
14471 ac_header_compiler=yes
14472 else
14473 echo "$as_me: failed program was:" >&5
14474 sed 's/^/| /' conftest.$ac_ext >&5
14475
14476 ac_header_compiler=no
14477 fi
14478
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14480 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14481 echo "${ECHO_T}$ac_header_compiler" >&6; }
14482
14483 # Is the header present?
14484 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14485 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14486 cat >conftest.$ac_ext <<_ACEOF
14487 /* confdefs.h. */
14488 _ACEOF
14489 cat confdefs.h >>conftest.$ac_ext
14490 cat >>conftest.$ac_ext <<_ACEOF
14491 /* end confdefs.h. */
14492 #include <$ac_header>
14493 _ACEOF
14494 if { (ac_try="$ac_cpp conftest.$ac_ext"
14495 case "(($ac_try" in
14496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497 *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14501 ac_status=$?
14502 grep -v '^ *+' conftest.er1 >conftest.err
14503 rm -f conftest.er1
14504 cat conftest.err >&5
14505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506 (exit $ac_status); } >/dev/null && {
14507 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14508 test ! -s conftest.err
14509 }; then
14510 ac_header_preproc=yes
14511 else
14512 echo "$as_me: failed program was:" >&5
14513 sed 's/^/| /' conftest.$ac_ext >&5
14514
14515 ac_header_preproc=no
14516 fi
14517
14518 rm -f conftest.err conftest.$ac_ext
14519 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14520 echo "${ECHO_T}$ac_header_preproc" >&6; }
14521
14522 # So? What about this header?
14523 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14524 yes:no: )
14525 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14526 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14527 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14528 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14529 ac_header_preproc=yes
14530 ;;
14531 no:yes:* )
14532 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14533 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14534 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14535 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14536 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14537 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14538 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14539 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14540 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14541 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14542 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14543 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14544
14545 ;;
14546 esac
14547 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14548 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14549 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14550 echo $ECHO_N "(cached) $ECHO_C" >&6
14551 else
14552 eval "$as_ac_Header=\$ac_header_preproc"
14553 fi
14554 ac_res=`eval echo '${'$as_ac_Header'}'`
14555 { echo "$as_me:$LINENO: result: $ac_res" >&5
14556 echo "${ECHO_T}$ac_res" >&6; }
14557
14558 fi
14559 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14560 cat >>confdefs.h <<_ACEOF
14561 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14562 _ACEOF
14563
14564 fi
14565
14566 done
14567
14568
14569
14570
14571
14572
14573
14574
14575
14576
14577
14578
14579
14580
14581
14582
14583
14584
14585
14586
14587
14588
14589
14590
14591
14592
14593
14594
14595
14596
14597
14598
14599
14600
14601
14602
14603
14604
14605
14606
14607
14608
14609
14610
14611
14612
14613
14614
14615
14616
14617
14618
14619
14620
14621
14622
14623
14624
14625
14626
14627
14628
14629
14630
14631
14632
14633
14634
14635
14636
14637 for ac_func in gethostname getdomainname dup2 \
14638 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
14639 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
14640 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
14641 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
14642 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
14643 sendto recvfrom getsockopt setsockopt getsockname getpeername \
14644 gai_strerror mkstemp getline getdelim mremap memmove fsync bzero \
14645 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
14646 do
14647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14651 echo $ECHO_N "(cached) $ECHO_C" >&6
14652 else
14653 cat >conftest.$ac_ext <<_ACEOF
14654 /* confdefs.h. */
14655 _ACEOF
14656 cat confdefs.h >>conftest.$ac_ext
14657 cat >>conftest.$ac_ext <<_ACEOF
14658 /* end confdefs.h. */
14659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14661 #define $ac_func innocuous_$ac_func
14662
14663 /* System header to define __stub macros and hopefully few prototypes,
14664 which can conflict with char $ac_func (); below.
14665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14666 <limits.h> exists even on freestanding compilers. */
14667
14668 #ifdef __STDC__
14669 # include <limits.h>
14670 #else
14671 # include <assert.h>
14672 #endif
14673
14674 #undef $ac_func
14675
14676 /* Override any GCC internal prototype to avoid an error.
14677 Use char because int might match the return type of a GCC
14678 builtin and then its argument prototype would still apply. */
14679 #ifdef __cplusplus
14680 extern "C"
14681 #endif
14682 char $ac_func ();
14683 /* The GNU C library defines this for functions which it implements
14684 to always fail with ENOSYS. Some functions are actually named
14685 something starting with __ and the normal name is an alias. */
14686 #if defined __stub_$ac_func || defined __stub___$ac_func
14687 choke me
14688 #endif
14689
14690 int
14691 main ()
14692 {
14693 return $ac_func ();
14694 ;
14695 return 0;
14696 }
14697 _ACEOF
14698 rm -f conftest.$ac_objext conftest$ac_exeext
14699 if { (ac_try="$ac_link"
14700 case "(($ac_try" in
14701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14702 *) ac_try_echo=$ac_try;;
14703 esac
14704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14705 (eval "$ac_link") 2>conftest.er1
14706 ac_status=$?
14707 grep -v '^ *+' conftest.er1 >conftest.err
14708 rm -f conftest.er1
14709 cat conftest.err >&5
14710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14711 (exit $ac_status); } && {
14712 test -z "$ac_c_werror_flag" ||
14713 test ! -s conftest.err
14714 } && test -s conftest$ac_exeext &&
14715 $as_test_x conftest$ac_exeext; then
14716 eval "$as_ac_var=yes"
14717 else
14718 echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721 eval "$as_ac_var=no"
14722 fi
14723
14724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14725 conftest$ac_exeext conftest.$ac_ext
14726 fi
14727 ac_res=`eval echo '${'$as_ac_var'}'`
14728 { echo "$as_me:$LINENO: result: $ac_res" >&5
14729 echo "${ECHO_T}$ac_res" >&6; }
14730 if test `eval echo '${'$as_ac_var'}'` = yes; then
14731 cat >>confdefs.h <<_ACEOF
14732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
14733 _ACEOF
14734
14735 fi
14736 done
14737
14738
14739
14740 for ac_header in sys/un.h
14741 do
14742 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14744 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14745 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14746 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14747 echo $ECHO_N "(cached) $ECHO_C" >&6
14748 fi
14749 ac_res=`eval echo '${'$as_ac_Header'}'`
14750 { echo "$as_me:$LINENO: result: $ac_res" >&5
14751 echo "${ECHO_T}$ac_res" >&6; }
14752 else
14753 # Is the header compilable?
14754 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14755 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14756 cat >conftest.$ac_ext <<_ACEOF
14757 /* confdefs.h. */
14758 _ACEOF
14759 cat confdefs.h >>conftest.$ac_ext
14760 cat >>conftest.$ac_ext <<_ACEOF
14761 /* end confdefs.h. */
14762 $ac_includes_default
14763 #include <$ac_header>
14764 _ACEOF
14765 rm -f conftest.$ac_objext
14766 if { (ac_try="$ac_compile"
14767 case "(($ac_try" in
14768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14769 *) ac_try_echo=$ac_try;;
14770 esac
14771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14772 (eval "$ac_compile") 2>conftest.er1
14773 ac_status=$?
14774 grep -v '^ *+' conftest.er1 >conftest.err
14775 rm -f conftest.er1
14776 cat conftest.err >&5
14777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14778 (exit $ac_status); } && {
14779 test -z "$ac_c_werror_flag" ||
14780 test ! -s conftest.err
14781 } && test -s conftest.$ac_objext; then
14782 ac_header_compiler=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_header_compiler=no
14788 fi
14789
14790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14791 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14792 echo "${ECHO_T}$ac_header_compiler" >&6; }
14793
14794 # Is the header present?
14795 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14796 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14797 cat >conftest.$ac_ext <<_ACEOF
14798 /* confdefs.h. */
14799 _ACEOF
14800 cat confdefs.h >>conftest.$ac_ext
14801 cat >>conftest.$ac_ext <<_ACEOF
14802 /* end confdefs.h. */
14803 #include <$ac_header>
14804 _ACEOF
14805 if { (ac_try="$ac_cpp conftest.$ac_ext"
14806 case "(($ac_try" in
14807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14808 *) ac_try_echo=$ac_try;;
14809 esac
14810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14811 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14812 ac_status=$?
14813 grep -v '^ *+' conftest.er1 >conftest.err
14814 rm -f conftest.er1
14815 cat conftest.err >&5
14816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14817 (exit $ac_status); } >/dev/null && {
14818 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14819 test ! -s conftest.err
14820 }; then
14821 ac_header_preproc=yes
14822 else
14823 echo "$as_me: failed program was:" >&5
14824 sed 's/^/| /' conftest.$ac_ext >&5
14825
14826 ac_header_preproc=no
14827 fi
14828
14829 rm -f conftest.err conftest.$ac_ext
14830 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14831 echo "${ECHO_T}$ac_header_preproc" >&6; }
14832
14833 # So? What about this header?
14834 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14835 yes:no: )
14836 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14837 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14838 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14839 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14840 ac_header_preproc=yes
14841 ;;
14842 no:yes:* )
14843 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14844 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14845 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14846 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14847 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14848 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14849 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14850 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14851 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14852 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14853 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14854 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14855
14856 ;;
14857 esac
14858 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14859 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14860 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863 eval "$as_ac_Header=\$ac_header_preproc"
14864 fi
14865 ac_res=`eval echo '${'$as_ac_Header'}'`
14866 { echo "$as_me:$LINENO: result: $ac_res" >&5
14867 echo "${ECHO_T}$ac_res" >&6; }
14868
14869 fi
14870 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14871 cat >>confdefs.h <<_ACEOF
14872 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
14873 _ACEOF
14874
14875 fi
14876
14877 done
14878
14879
14880
14881
14882
14883
14884 for ac_header in $ac_header_list
14885 do
14886 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
14887 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14888 { echo "$as_me:$LINENO: checking for $ac_header" >&5
14889 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
14890 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14891 echo $ECHO_N "(cached) $ECHO_C" >&6
14892 fi
14893 ac_res=`eval echo '${'$as_ac_Header'}'`
14894 { echo "$as_me:$LINENO: result: $ac_res" >&5
14895 echo "${ECHO_T}$ac_res" >&6; }
14896 else
14897 # Is the header compilable?
14898 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
14899 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
14900 cat >conftest.$ac_ext <<_ACEOF
14901 /* confdefs.h. */
14902 _ACEOF
14903 cat confdefs.h >>conftest.$ac_ext
14904 cat >>conftest.$ac_ext <<_ACEOF
14905 /* end confdefs.h. */
14906 $ac_includes_default
14907 #include <$ac_header>
14908 _ACEOF
14909 rm -f conftest.$ac_objext
14910 if { (ac_try="$ac_compile"
14911 case "(($ac_try" in
14912 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14913 *) ac_try_echo=$ac_try;;
14914 esac
14915 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14916 (eval "$ac_compile") 2>conftest.er1
14917 ac_status=$?
14918 grep -v '^ *+' conftest.er1 >conftest.err
14919 rm -f conftest.er1
14920 cat conftest.err >&5
14921 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922 (exit $ac_status); } && {
14923 test -z "$ac_c_werror_flag" ||
14924 test ! -s conftest.err
14925 } && test -s conftest.$ac_objext; then
14926 ac_header_compiler=yes
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 ac_header_compiler=no
14932 fi
14933
14934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14935 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14936 echo "${ECHO_T}$ac_header_compiler" >&6; }
14937
14938 # Is the header present?
14939 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
14940 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
14941 cat >conftest.$ac_ext <<_ACEOF
14942 /* confdefs.h. */
14943 _ACEOF
14944 cat confdefs.h >>conftest.$ac_ext
14945 cat >>conftest.$ac_ext <<_ACEOF
14946 /* end confdefs.h. */
14947 #include <$ac_header>
14948 _ACEOF
14949 if { (ac_try="$ac_cpp conftest.$ac_ext"
14950 case "(($ac_try" in
14951 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14952 *) ac_try_echo=$ac_try;;
14953 esac
14954 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14955 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14956 ac_status=$?
14957 grep -v '^ *+' conftest.er1 >conftest.err
14958 rm -f conftest.er1
14959 cat conftest.err >&5
14960 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14961 (exit $ac_status); } >/dev/null && {
14962 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14963 test ! -s conftest.err
14964 }; then
14965 ac_header_preproc=yes
14966 else
14967 echo "$as_me: failed program was:" >&5
14968 sed 's/^/| /' conftest.$ac_ext >&5
14969
14970 ac_header_preproc=no
14971 fi
14972
14973 rm -f conftest.err conftest.$ac_ext
14974 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14975 echo "${ECHO_T}$ac_header_preproc" >&6; }
14976
14977 # So? What about this header?
14978 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14979 yes:no: )
14980 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
14981 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
14982 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
14983 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
14984 ac_header_preproc=yes
14985 ;;
14986 no:yes:* )
14987 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
14988 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
14989 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
14990 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
14991 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
14992 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
14993 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
14994 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
14995 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
14996 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
14997 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
14998 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
14999
15000 ;;
15001 esac
15002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15005 echo $ECHO_N "(cached) $ECHO_C" >&6
15006 else
15007 eval "$as_ac_Header=\$ac_header_preproc"
15008 fi
15009 ac_res=`eval echo '${'$as_ac_Header'}'`
15010 { echo "$as_me:$LINENO: result: $ac_res" >&5
15011 echo "${ECHO_T}$ac_res" >&6; }
15012
15013 fi
15014 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15015 cat >>confdefs.h <<_ACEOF
15016 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15017 _ACEOF
15018
15019 fi
15020
15021 done
15022
15023
15024
15025
15026
15027
15028
15029
15030
15031 for ac_func in $ac_func_list
15032 do
15033 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15034 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15035 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15036 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15037 echo $ECHO_N "(cached) $ECHO_C" >&6
15038 else
15039 cat >conftest.$ac_ext <<_ACEOF
15040 /* confdefs.h. */
15041 _ACEOF
15042 cat confdefs.h >>conftest.$ac_ext
15043 cat >>conftest.$ac_ext <<_ACEOF
15044 /* end confdefs.h. */
15045 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15046 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15047 #define $ac_func innocuous_$ac_func
15048
15049 /* System header to define __stub macros and hopefully few prototypes,
15050 which can conflict with char $ac_func (); below.
15051 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15052 <limits.h> exists even on freestanding compilers. */
15053
15054 #ifdef __STDC__
15055 # include <limits.h>
15056 #else
15057 # include <assert.h>
15058 #endif
15059
15060 #undef $ac_func
15061
15062 /* Override any GCC internal prototype to avoid an error.
15063 Use char because int might match the return type of a GCC
15064 builtin and then its argument prototype would still apply. */
15065 #ifdef __cplusplus
15066 extern "C"
15067 #endif
15068 char $ac_func ();
15069 /* The GNU C library defines this for functions which it implements
15070 to always fail with ENOSYS. Some functions are actually named
15071 something starting with __ and the normal name is an alias. */
15072 #if defined __stub_$ac_func || defined __stub___$ac_func
15073 choke me
15074 #endif
15075
15076 int
15077 main ()
15078 {
15079 return $ac_func ();
15080 ;
15081 return 0;
15082 }
15083 _ACEOF
15084 rm -f conftest.$ac_objext conftest$ac_exeext
15085 if { (ac_try="$ac_link"
15086 case "(($ac_try" in
15087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15088 *) ac_try_echo=$ac_try;;
15089 esac
15090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15091 (eval "$ac_link") 2>conftest.er1
15092 ac_status=$?
15093 grep -v '^ *+' conftest.er1 >conftest.err
15094 rm -f conftest.er1
15095 cat conftest.err >&5
15096 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15097 (exit $ac_status); } && {
15098 test -z "$ac_c_werror_flag" ||
15099 test ! -s conftest.err
15100 } && test -s conftest$ac_exeext &&
15101 $as_test_x conftest$ac_exeext; then
15102 eval "$as_ac_var=yes"
15103 else
15104 echo "$as_me: failed program was:" >&5
15105 sed 's/^/| /' conftest.$ac_ext >&5
15106
15107 eval "$as_ac_var=no"
15108 fi
15109
15110 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15111 conftest$ac_exeext conftest.$ac_ext
15112 fi
15113 ac_res=`eval echo '${'$as_ac_var'}'`
15114 { echo "$as_me:$LINENO: result: $ac_res" >&5
15115 echo "${ECHO_T}$ac_res" >&6; }
15116 if test `eval echo '${'$as_ac_var'}'` = yes; then
15117 cat >>confdefs.h <<_ACEOF
15118 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15119 _ACEOF
15120
15121 fi
15122 done
15123
15124
15125
15126
15127
15128
15129
15130
15131
15132
15133
15134
15135
15136
15137
15138
15139
15140 { echo "$as_me:$LINENO: checking for working mktime" >&5
15141 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15142 if test "${ac_cv_func_working_mktime+set}" = set; then
15143 echo $ECHO_N "(cached) $ECHO_C" >&6
15144 else
15145 if test "$cross_compiling" = yes; then
15146 ac_cv_func_working_mktime=no
15147 else
15148 cat >conftest.$ac_ext <<_ACEOF
15149 /* confdefs.h. */
15150 _ACEOF
15151 cat confdefs.h >>conftest.$ac_ext
15152 cat >>conftest.$ac_ext <<_ACEOF
15153 /* end confdefs.h. */
15154 /* Test program from Paul Eggert and Tony Leneis. */
15155 #ifdef TIME_WITH_SYS_TIME
15156 # include <sys/time.h>
15157 # include <time.h>
15158 #else
15159 # ifdef HAVE_SYS_TIME_H
15160 # include <sys/time.h>
15161 # else
15162 # include <time.h>
15163 # endif
15164 #endif
15165
15166 #include <stdlib.h>
15167
15168 #ifdef HAVE_UNISTD_H
15169 # include <unistd.h>
15170 #endif
15171
15172 #ifndef HAVE_ALARM
15173 # define alarm(X) /* empty */
15174 #endif
15175
15176 /* Work around redefinition to rpl_putenv by other config tests. */
15177 #undef putenv
15178
15179 static time_t time_t_max;
15180 static time_t time_t_min;
15181
15182 /* Values we'll use to set the TZ environment variable. */
15183 static char *tz_strings[] = {
15184 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15185 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15186 };
15187 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15188
15189 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15190 Based on a problem report from Andreas Jaeger. */
15191 static int
15192 spring_forward_gap ()
15193 {
15194 /* glibc (up to about 1998-10-07) failed this test. */
15195 struct tm tm;
15196
15197 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15198 instead of "TZ=America/Vancouver" in order to detect the bug even
15199 on systems that don't support the Olson extension, or don't have the
15200 full zoneinfo tables installed. */
15201 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15202
15203 tm.tm_year = 98;
15204 tm.tm_mon = 3;
15205 tm.tm_mday = 5;
15206 tm.tm_hour = 2;
15207 tm.tm_min = 0;
15208 tm.tm_sec = 0;
15209 tm.tm_isdst = -1;
15210 return mktime (&tm) != (time_t) -1;
15211 }
15212
15213 static int
15214 mktime_test1 (now)
15215 time_t now;
15216 {
15217 struct tm *lt;
15218 return ! (lt = localtime (&now)) || mktime (lt) == now;
15219 }
15220
15221 static int
15222 mktime_test (now)
15223 time_t now;
15224 {
15225 return (mktime_test1 (now)
15226 && mktime_test1 ((time_t) (time_t_max - now))
15227 && mktime_test1 ((time_t) (time_t_min + now)));
15228 }
15229
15230 static int
15231 irix_6_4_bug ()
15232 {
15233 /* Based on code from Ariel Faigon. */
15234 struct tm tm;
15235 tm.tm_year = 96;
15236 tm.tm_mon = 3;
15237 tm.tm_mday = 0;
15238 tm.tm_hour = 0;
15239 tm.tm_min = 0;
15240 tm.tm_sec = 0;
15241 tm.tm_isdst = -1;
15242 mktime (&tm);
15243 return tm.tm_mon == 2 && tm.tm_mday == 31;
15244 }
15245
15246 static int
15247 bigtime_test (j)
15248 int j;
15249 {
15250 struct tm tm;
15251 time_t now;
15252 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15253 now = mktime (&tm);
15254 if (now != (time_t) -1)
15255 {
15256 struct tm *lt = localtime (&now);
15257 if (! (lt
15258 && lt->tm_year == tm.tm_year
15259 && lt->tm_mon == tm.tm_mon
15260 && lt->tm_mday == tm.tm_mday
15261 && lt->tm_hour == tm.tm_hour
15262 && lt->tm_min == tm.tm_min
15263 && lt->tm_sec == tm.tm_sec
15264 && lt->tm_yday == tm.tm_yday
15265 && lt->tm_wday == tm.tm_wday
15266 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15267 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15268 return 0;
15269 }
15270 return 1;
15271 }
15272
15273 static int
15274 year_2050_test ()
15275 {
15276 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15277 ignoring leap seconds. */
15278 unsigned long int answer = 2527315200UL;
15279
15280 struct tm tm;
15281 time_t t;
15282 tm.tm_year = 2050 - 1900;
15283 tm.tm_mon = 2 - 1;
15284 tm.tm_mday = 1;
15285 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15286 tm.tm_isdst = -1;
15287
15288 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15289 instead of "TZ=America/Vancouver" in order to detect the bug even
15290 on systems that don't support the Olson extension, or don't have the
15291 full zoneinfo tables installed. */
15292 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15293
15294 t = mktime (&tm);
15295
15296 /* Check that the result is either a failure, or close enough
15297 to the correct answer that we can assume the discrepancy is
15298 due to leap seconds. */
15299 return (t == (time_t) -1
15300 || (0 < t && answer - 120 <= t && t <= answer + 120));
15301 }
15302
15303 int
15304 main ()
15305 {
15306 time_t t, delta;
15307 int i, j;
15308
15309 /* This test makes some buggy mktime implementations loop.
15310 Give up after 60 seconds; a mktime slower than that
15311 isn't worth using anyway. */
15312 alarm (60);
15313
15314 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15315 continue;
15316 time_t_max--;
15317 if ((time_t) -1 < 0)
15318 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15319 continue;
15320 delta = time_t_max / 997; /* a suitable prime number */
15321 for (i = 0; i < N_STRINGS; i++)
15322 {
15323 if (tz_strings[i])
15324 putenv (tz_strings[i]);
15325
15326 for (t = 0; t <= time_t_max - delta; t += delta)
15327 if (! mktime_test (t))
15328 return 1;
15329 if (! (mktime_test ((time_t) 1)
15330 && mktime_test ((time_t) (60 * 60))
15331 && mktime_test ((time_t) (60 * 60 * 24))))
15332 return 1;
15333
15334 for (j = 1; 0 < j; j *= 2)
15335 if (! bigtime_test (j))
15336 return 1;
15337 if (! bigtime_test (j - 1))
15338 return 1;
15339 }
15340 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15341 }
15342 _ACEOF
15343 rm -f conftest$ac_exeext
15344 if { (ac_try="$ac_link"
15345 case "(($ac_try" in
15346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15347 *) ac_try_echo=$ac_try;;
15348 esac
15349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15350 (eval "$ac_link") 2>&5
15351 ac_status=$?
15352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15353 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15354 { (case "(($ac_try" in
15355 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15356 *) ac_try_echo=$ac_try;;
15357 esac
15358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15359 (eval "$ac_try") 2>&5
15360 ac_status=$?
15361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15362 (exit $ac_status); }; }; then
15363 ac_cv_func_working_mktime=yes
15364 else
15365 echo "$as_me: program exited with status $ac_status" >&5
15366 echo "$as_me: failed program was:" >&5
15367 sed 's/^/| /' conftest.$ac_ext >&5
15368
15369 ( exit $ac_status )
15370 ac_cv_func_working_mktime=no
15371 fi
15372 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15373 fi
15374
15375
15376 fi
15377 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15378 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15379 if test $ac_cv_func_working_mktime = no; then
15380 case " $LIBOBJS " in
15381 *" mktime.$ac_objext "* ) ;;
15382 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15383 ;;
15384 esac
15385
15386 fi
15387
15388 if test "$ac_cv_func_working_mktime" = no; then
15389
15390 cat >>confdefs.h <<\_ACEOF
15391 #define BROKEN_MKTIME 1
15392 _ACEOF
15393
15394 fi
15395
15396 ac_have_func=no # yes means we've found a way to get the load average.
15397
15398 # Make sure getloadavg.c is where it belongs, at configure-time.
15399 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15400 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15401 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15402 { (exit 1); exit 1; }; }
15403
15404 ac_save_LIBS=$LIBS
15405
15406 # Check for getloadavg, but be sure not to touch the cache variable.
15407 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
15408 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
15409 if test "${ac_cv_func_getloadavg+set}" = set; then
15410 echo $ECHO_N "(cached) $ECHO_C" >&6
15411 else
15412 cat >conftest.$ac_ext <<_ACEOF
15413 /* confdefs.h. */
15414 _ACEOF
15415 cat confdefs.h >>conftest.$ac_ext
15416 cat >>conftest.$ac_ext <<_ACEOF
15417 /* end confdefs.h. */
15418 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
15419 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15420 #define getloadavg innocuous_getloadavg
15421
15422 /* System header to define __stub macros and hopefully few prototypes,
15423 which can conflict with char getloadavg (); below.
15424 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15425 <limits.h> exists even on freestanding compilers. */
15426
15427 #ifdef __STDC__
15428 # include <limits.h>
15429 #else
15430 # include <assert.h>
15431 #endif
15432
15433 #undef getloadavg
15434
15435 /* Override any GCC internal prototype to avoid an error.
15436 Use char because int might match the return type of a GCC
15437 builtin and then its argument prototype would still apply. */
15438 #ifdef __cplusplus
15439 extern "C"
15440 #endif
15441 char getloadavg ();
15442 /* The GNU C library defines this for functions which it implements
15443 to always fail with ENOSYS. Some functions are actually named
15444 something starting with __ and the normal name is an alias. */
15445 #if defined __stub_getloadavg || defined __stub___getloadavg
15446 choke me
15447 #endif
15448
15449 int
15450 main ()
15451 {
15452 return getloadavg ();
15453 ;
15454 return 0;
15455 }
15456 _ACEOF
15457 rm -f conftest.$ac_objext conftest$ac_exeext
15458 if { (ac_try="$ac_link"
15459 case "(($ac_try" in
15460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15461 *) ac_try_echo=$ac_try;;
15462 esac
15463 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15464 (eval "$ac_link") 2>conftest.er1
15465 ac_status=$?
15466 grep -v '^ *+' conftest.er1 >conftest.err
15467 rm -f conftest.er1
15468 cat conftest.err >&5
15469 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15470 (exit $ac_status); } && {
15471 test -z "$ac_c_werror_flag" ||
15472 test ! -s conftest.err
15473 } && test -s conftest$ac_exeext &&
15474 $as_test_x conftest$ac_exeext; then
15475 ac_cv_func_getloadavg=yes
15476 else
15477 echo "$as_me: failed program was:" >&5
15478 sed 's/^/| /' conftest.$ac_ext >&5
15479
15480 ac_cv_func_getloadavg=no
15481 fi
15482
15483 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15484 conftest$ac_exeext conftest.$ac_ext
15485 fi
15486 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
15487 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
15488 if test $ac_cv_func_getloadavg = yes; then
15489 exit 0
15490 else
15491 exit 1
15492 fi
15493 ) && ac_have_func=yes
15494
15495 # On HPUX9, an unprivileged user can get load averages through this function.
15496
15497 for ac_func in pstat_getdynamic
15498 do
15499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15503 echo $ECHO_N "(cached) $ECHO_C" >&6
15504 else
15505 cat >conftest.$ac_ext <<_ACEOF
15506 /* confdefs.h. */
15507 _ACEOF
15508 cat confdefs.h >>conftest.$ac_ext
15509 cat >>conftest.$ac_ext <<_ACEOF
15510 /* end confdefs.h. */
15511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15513 #define $ac_func innocuous_$ac_func
15514
15515 /* System header to define __stub macros and hopefully few prototypes,
15516 which can conflict with char $ac_func (); below.
15517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15518 <limits.h> exists even on freestanding compilers. */
15519
15520 #ifdef __STDC__
15521 # include <limits.h>
15522 #else
15523 # include <assert.h>
15524 #endif
15525
15526 #undef $ac_func
15527
15528 /* Override any GCC internal prototype to avoid an error.
15529 Use char because int might match the return type of a GCC
15530 builtin and then its argument prototype would still apply. */
15531 #ifdef __cplusplus
15532 extern "C"
15533 #endif
15534 char $ac_func ();
15535 /* The GNU C library defines this for functions which it implements
15536 to always fail with ENOSYS. Some functions are actually named
15537 something starting with __ and the normal name is an alias. */
15538 #if defined __stub_$ac_func || defined __stub___$ac_func
15539 choke me
15540 #endif
15541
15542 int
15543 main ()
15544 {
15545 return $ac_func ();
15546 ;
15547 return 0;
15548 }
15549 _ACEOF
15550 rm -f conftest.$ac_objext conftest$ac_exeext
15551 if { (ac_try="$ac_link"
15552 case "(($ac_try" in
15553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15554 *) ac_try_echo=$ac_try;;
15555 esac
15556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15557 (eval "$ac_link") 2>conftest.er1
15558 ac_status=$?
15559 grep -v '^ *+' conftest.er1 >conftest.err
15560 rm -f conftest.er1
15561 cat conftest.err >&5
15562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15563 (exit $ac_status); } && {
15564 test -z "$ac_c_werror_flag" ||
15565 test ! -s conftest.err
15566 } && test -s conftest$ac_exeext &&
15567 $as_test_x conftest$ac_exeext; then
15568 eval "$as_ac_var=yes"
15569 else
15570 echo "$as_me: failed program was:" >&5
15571 sed 's/^/| /' conftest.$ac_ext >&5
15572
15573 eval "$as_ac_var=no"
15574 fi
15575
15576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15577 conftest$ac_exeext conftest.$ac_ext
15578 fi
15579 ac_res=`eval echo '${'$as_ac_var'}'`
15580 { echo "$as_me:$LINENO: result: $ac_res" >&5
15581 echo "${ECHO_T}$ac_res" >&6; }
15582 if test `eval echo '${'$as_ac_var'}'` = yes; then
15583 cat >>confdefs.h <<_ACEOF
15584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15585 _ACEOF
15586
15587 fi
15588 done
15589
15590
15591 # Solaris has libkstat which does not require root.
15592
15593 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
15594 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
15595 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
15596 echo $ECHO_N "(cached) $ECHO_C" >&6
15597 else
15598 ac_check_lib_save_LIBS=$LIBS
15599 LIBS="-lkstat $LIBS"
15600 cat >conftest.$ac_ext <<_ACEOF
15601 /* confdefs.h. */
15602 _ACEOF
15603 cat confdefs.h >>conftest.$ac_ext
15604 cat >>conftest.$ac_ext <<_ACEOF
15605 /* end confdefs.h. */
15606
15607 /* Override any GCC internal prototype to avoid an error.
15608 Use char because int might match the return type of a GCC
15609 builtin and then its argument prototype would still apply. */
15610 #ifdef __cplusplus
15611 extern "C"
15612 #endif
15613 char kstat_open ();
15614 int
15615 main ()
15616 {
15617 return kstat_open ();
15618 ;
15619 return 0;
15620 }
15621 _ACEOF
15622 rm -f conftest.$ac_objext conftest$ac_exeext
15623 if { (ac_try="$ac_link"
15624 case "(($ac_try" in
15625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15626 *) ac_try_echo=$ac_try;;
15627 esac
15628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15629 (eval "$ac_link") 2>conftest.er1
15630 ac_status=$?
15631 grep -v '^ *+' conftest.er1 >conftest.err
15632 rm -f conftest.er1
15633 cat conftest.err >&5
15634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15635 (exit $ac_status); } && {
15636 test -z "$ac_c_werror_flag" ||
15637 test ! -s conftest.err
15638 } && test -s conftest$ac_exeext &&
15639 $as_test_x conftest$ac_exeext; then
15640 ac_cv_lib_kstat_kstat_open=yes
15641 else
15642 echo "$as_me: failed program was:" >&5
15643 sed 's/^/| /' conftest.$ac_ext >&5
15644
15645 ac_cv_lib_kstat_kstat_open=no
15646 fi
15647
15648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15649 conftest$ac_exeext conftest.$ac_ext
15650 LIBS=$ac_check_lib_save_LIBS
15651 fi
15652 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
15653 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
15654 if test $ac_cv_lib_kstat_kstat_open = yes; then
15655 cat >>confdefs.h <<_ACEOF
15656 #define HAVE_LIBKSTAT 1
15657 _ACEOF
15658
15659 LIBS="-lkstat $LIBS"
15660
15661 fi
15662
15663 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
15664
15665 # Some systems with -lutil have (and need) -lkvm as well, some do not.
15666 # On Solaris, -lkvm requires nlist from -lelf, so check that first
15667 # to get the right answer into the cache.
15668 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
15669 if test $ac_have_func = no; then
15670 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
15671 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
15672 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
15673 echo $ECHO_N "(cached) $ECHO_C" >&6
15674 else
15675 ac_check_lib_save_LIBS=$LIBS
15676 LIBS="-lelf $LIBS"
15677 cat >conftest.$ac_ext <<_ACEOF
15678 /* confdefs.h. */
15679 _ACEOF
15680 cat confdefs.h >>conftest.$ac_ext
15681 cat >>conftest.$ac_ext <<_ACEOF
15682 /* end confdefs.h. */
15683
15684 /* Override any GCC internal prototype to avoid an error.
15685 Use char because int might match the return type of a GCC
15686 builtin and then its argument prototype would still apply. */
15687 #ifdef __cplusplus
15688 extern "C"
15689 #endif
15690 char elf_begin ();
15691 int
15692 main ()
15693 {
15694 return elf_begin ();
15695 ;
15696 return 0;
15697 }
15698 _ACEOF
15699 rm -f conftest.$ac_objext conftest$ac_exeext
15700 if { (ac_try="$ac_link"
15701 case "(($ac_try" in
15702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15703 *) ac_try_echo=$ac_try;;
15704 esac
15705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15706 (eval "$ac_link") 2>conftest.er1
15707 ac_status=$?
15708 grep -v '^ *+' conftest.er1 >conftest.err
15709 rm -f conftest.er1
15710 cat conftest.err >&5
15711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15712 (exit $ac_status); } && {
15713 test -z "$ac_c_werror_flag" ||
15714 test ! -s conftest.err
15715 } && test -s conftest$ac_exeext &&
15716 $as_test_x conftest$ac_exeext; then
15717 ac_cv_lib_elf_elf_begin=yes
15718 else
15719 echo "$as_me: failed program was:" >&5
15720 sed 's/^/| /' conftest.$ac_ext >&5
15721
15722 ac_cv_lib_elf_elf_begin=no
15723 fi
15724
15725 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15726 conftest$ac_exeext conftest.$ac_ext
15727 LIBS=$ac_check_lib_save_LIBS
15728 fi
15729 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
15730 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
15731 if test $ac_cv_lib_elf_elf_begin = yes; then
15732 LIBS="-lelf $LIBS"
15733 fi
15734
15735 fi
15736 if test $ac_have_func = no; then
15737 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
15738 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
15739 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742 ac_check_lib_save_LIBS=$LIBS
15743 LIBS="-lkvm $LIBS"
15744 cat >conftest.$ac_ext <<_ACEOF
15745 /* confdefs.h. */
15746 _ACEOF
15747 cat confdefs.h >>conftest.$ac_ext
15748 cat >>conftest.$ac_ext <<_ACEOF
15749 /* end confdefs.h. */
15750
15751 /* Override any GCC internal prototype to avoid an error.
15752 Use char because int might match the return type of a GCC
15753 builtin and then its argument prototype would still apply. */
15754 #ifdef __cplusplus
15755 extern "C"
15756 #endif
15757 char kvm_open ();
15758 int
15759 main ()
15760 {
15761 return kvm_open ();
15762 ;
15763 return 0;
15764 }
15765 _ACEOF
15766 rm -f conftest.$ac_objext conftest$ac_exeext
15767 if { (ac_try="$ac_link"
15768 case "(($ac_try" in
15769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15770 *) ac_try_echo=$ac_try;;
15771 esac
15772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15773 (eval "$ac_link") 2>conftest.er1
15774 ac_status=$?
15775 grep -v '^ *+' conftest.er1 >conftest.err
15776 rm -f conftest.er1
15777 cat conftest.err >&5
15778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15779 (exit $ac_status); } && {
15780 test -z "$ac_c_werror_flag" ||
15781 test ! -s conftest.err
15782 } && test -s conftest$ac_exeext &&
15783 $as_test_x conftest$ac_exeext; then
15784 ac_cv_lib_kvm_kvm_open=yes
15785 else
15786 echo "$as_me: failed program was:" >&5
15787 sed 's/^/| /' conftest.$ac_ext >&5
15788
15789 ac_cv_lib_kvm_kvm_open=no
15790 fi
15791
15792 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15793 conftest$ac_exeext conftest.$ac_ext
15794 LIBS=$ac_check_lib_save_LIBS
15795 fi
15796 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
15797 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
15798 if test $ac_cv_lib_kvm_kvm_open = yes; then
15799 LIBS="-lkvm $LIBS"
15800 fi
15801
15802 # Check for the 4.4BSD definition of getloadavg.
15803 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
15804 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
15805 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
15806 echo $ECHO_N "(cached) $ECHO_C" >&6
15807 else
15808 ac_check_lib_save_LIBS=$LIBS
15809 LIBS="-lutil $LIBS"
15810 cat >conftest.$ac_ext <<_ACEOF
15811 /* confdefs.h. */
15812 _ACEOF
15813 cat confdefs.h >>conftest.$ac_ext
15814 cat >>conftest.$ac_ext <<_ACEOF
15815 /* end confdefs.h. */
15816
15817 /* Override any GCC internal prototype to avoid an error.
15818 Use char because int might match the return type of a GCC
15819 builtin and then its argument prototype would still apply. */
15820 #ifdef __cplusplus
15821 extern "C"
15822 #endif
15823 char getloadavg ();
15824 int
15825 main ()
15826 {
15827 return getloadavg ();
15828 ;
15829 return 0;
15830 }
15831 _ACEOF
15832 rm -f conftest.$ac_objext conftest$ac_exeext
15833 if { (ac_try="$ac_link"
15834 case "(($ac_try" in
15835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15836 *) ac_try_echo=$ac_try;;
15837 esac
15838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15839 (eval "$ac_link") 2>conftest.er1
15840 ac_status=$?
15841 grep -v '^ *+' conftest.er1 >conftest.err
15842 rm -f conftest.er1
15843 cat conftest.err >&5
15844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15845 (exit $ac_status); } && {
15846 test -z "$ac_c_werror_flag" ||
15847 test ! -s conftest.err
15848 } && test -s conftest$ac_exeext &&
15849 $as_test_x conftest$ac_exeext; then
15850 ac_cv_lib_util_getloadavg=yes
15851 else
15852 echo "$as_me: failed program was:" >&5
15853 sed 's/^/| /' conftest.$ac_ext >&5
15854
15855 ac_cv_lib_util_getloadavg=no
15856 fi
15857
15858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15859 conftest$ac_exeext conftest.$ac_ext
15860 LIBS=$ac_check_lib_save_LIBS
15861 fi
15862 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
15863 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
15864 if test $ac_cv_lib_util_getloadavg = yes; then
15865 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
15866 fi
15867
15868 fi
15869
15870 if test $ac_have_func = no; then
15871 # There is a commonly available library for RS/6000 AIX.
15872 # Since it is not a standard part of AIX, it might be installed locally.
15873 ac_getloadavg_LIBS=$LIBS
15874 LIBS="-L/usr/local/lib $LIBS"
15875 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
15876 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
15877 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
15878 echo $ECHO_N "(cached) $ECHO_C" >&6
15879 else
15880 ac_check_lib_save_LIBS=$LIBS
15881 LIBS="-lgetloadavg $LIBS"
15882 cat >conftest.$ac_ext <<_ACEOF
15883 /* confdefs.h. */
15884 _ACEOF
15885 cat confdefs.h >>conftest.$ac_ext
15886 cat >>conftest.$ac_ext <<_ACEOF
15887 /* end confdefs.h. */
15888
15889 /* Override any GCC internal prototype to avoid an error.
15890 Use char because int might match the return type of a GCC
15891 builtin and then its argument prototype would still apply. */
15892 #ifdef __cplusplus
15893 extern "C"
15894 #endif
15895 char getloadavg ();
15896 int
15897 main ()
15898 {
15899 return getloadavg ();
15900 ;
15901 return 0;
15902 }
15903 _ACEOF
15904 rm -f conftest.$ac_objext conftest$ac_exeext
15905 if { (ac_try="$ac_link"
15906 case "(($ac_try" in
15907 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15908 *) ac_try_echo=$ac_try;;
15909 esac
15910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15911 (eval "$ac_link") 2>conftest.er1
15912 ac_status=$?
15913 grep -v '^ *+' conftest.er1 >conftest.err
15914 rm -f conftest.er1
15915 cat conftest.err >&5
15916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15917 (exit $ac_status); } && {
15918 test -z "$ac_c_werror_flag" ||
15919 test ! -s conftest.err
15920 } && test -s conftest$ac_exeext &&
15921 $as_test_x conftest$ac_exeext; then
15922 ac_cv_lib_getloadavg_getloadavg=yes
15923 else
15924 echo "$as_me: failed program was:" >&5
15925 sed 's/^/| /' conftest.$ac_ext >&5
15926
15927 ac_cv_lib_getloadavg_getloadavg=no
15928 fi
15929
15930 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15931 conftest$ac_exeext conftest.$ac_ext
15932 LIBS=$ac_check_lib_save_LIBS
15933 fi
15934 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
15935 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
15936 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
15937 LIBS="-lgetloadavg $LIBS"
15938 else
15939 LIBS=$ac_getloadavg_LIBS
15940 fi
15941
15942 fi
15943
15944 # Make sure it is really in the library, if we think we found it,
15945 # otherwise set up the replacement function.
15946
15947 for ac_func in getloadavg
15948 do
15949 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15950 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15951 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15952 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15953 echo $ECHO_N "(cached) $ECHO_C" >&6
15954 else
15955 cat >conftest.$ac_ext <<_ACEOF
15956 /* confdefs.h. */
15957 _ACEOF
15958 cat confdefs.h >>conftest.$ac_ext
15959 cat >>conftest.$ac_ext <<_ACEOF
15960 /* end confdefs.h. */
15961 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15962 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15963 #define $ac_func innocuous_$ac_func
15964
15965 /* System header to define __stub macros and hopefully few prototypes,
15966 which can conflict with char $ac_func (); below.
15967 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15968 <limits.h> exists even on freestanding compilers. */
15969
15970 #ifdef __STDC__
15971 # include <limits.h>
15972 #else
15973 # include <assert.h>
15974 #endif
15975
15976 #undef $ac_func
15977
15978 /* Override any GCC internal prototype to avoid an error.
15979 Use char because int might match the return type of a GCC
15980 builtin and then its argument prototype would still apply. */
15981 #ifdef __cplusplus
15982 extern "C"
15983 #endif
15984 char $ac_func ();
15985 /* The GNU C library defines this for functions which it implements
15986 to always fail with ENOSYS. Some functions are actually named
15987 something starting with __ and the normal name is an alias. */
15988 #if defined __stub_$ac_func || defined __stub___$ac_func
15989 choke me
15990 #endif
15991
15992 int
15993 main ()
15994 {
15995 return $ac_func ();
15996 ;
15997 return 0;
15998 }
15999 _ACEOF
16000 rm -f conftest.$ac_objext conftest$ac_exeext
16001 if { (ac_try="$ac_link"
16002 case "(($ac_try" in
16003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16004 *) ac_try_echo=$ac_try;;
16005 esac
16006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16007 (eval "$ac_link") 2>conftest.er1
16008 ac_status=$?
16009 grep -v '^ *+' conftest.er1 >conftest.err
16010 rm -f conftest.er1
16011 cat conftest.err >&5
16012 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16013 (exit $ac_status); } && {
16014 test -z "$ac_c_werror_flag" ||
16015 test ! -s conftest.err
16016 } && test -s conftest$ac_exeext &&
16017 $as_test_x conftest$ac_exeext; then
16018 eval "$as_ac_var=yes"
16019 else
16020 echo "$as_me: failed program was:" >&5
16021 sed 's/^/| /' conftest.$ac_ext >&5
16022
16023 eval "$as_ac_var=no"
16024 fi
16025
16026 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16027 conftest$ac_exeext conftest.$ac_ext
16028 fi
16029 ac_res=`eval echo '${'$as_ac_var'}'`
16030 { echo "$as_me:$LINENO: result: $ac_res" >&5
16031 echo "${ECHO_T}$ac_res" >&6; }
16032 if test `eval echo '${'$as_ac_var'}'` = yes; then
16033 cat >>confdefs.h <<_ACEOF
16034 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16035 _ACEOF
16036
16037 else
16038 case " $LIBOBJS " in
16039 *" getloadavg.$ac_objext "* ) ;;
16040 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16041 ;;
16042 esac
16043
16044
16045 cat >>confdefs.h <<\_ACEOF
16046 #define C_GETLOADAVG 1
16047 _ACEOF
16048
16049 # Figure out what our getloadavg.c needs.
16050 ac_have_func=no
16051 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16052 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16053 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16054 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16055 echo $ECHO_N "(cached) $ECHO_C" >&6
16056 fi
16057 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16058 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16059 else
16060 # Is the header compilable?
16061 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16062 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16063 cat >conftest.$ac_ext <<_ACEOF
16064 /* confdefs.h. */
16065 _ACEOF
16066 cat confdefs.h >>conftest.$ac_ext
16067 cat >>conftest.$ac_ext <<_ACEOF
16068 /* end confdefs.h. */
16069 $ac_includes_default
16070 #include <sys/dg_sys_info.h>
16071 _ACEOF
16072 rm -f conftest.$ac_objext
16073 if { (ac_try="$ac_compile"
16074 case "(($ac_try" in
16075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16076 *) ac_try_echo=$ac_try;;
16077 esac
16078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16079 (eval "$ac_compile") 2>conftest.er1
16080 ac_status=$?
16081 grep -v '^ *+' conftest.er1 >conftest.err
16082 rm -f conftest.er1
16083 cat conftest.err >&5
16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16085 (exit $ac_status); } && {
16086 test -z "$ac_c_werror_flag" ||
16087 test ! -s conftest.err
16088 } && test -s conftest.$ac_objext; then
16089 ac_header_compiler=yes
16090 else
16091 echo "$as_me: failed program was:" >&5
16092 sed 's/^/| /' conftest.$ac_ext >&5
16093
16094 ac_header_compiler=no
16095 fi
16096
16097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16099 echo "${ECHO_T}$ac_header_compiler" >&6; }
16100
16101 # Is the header present?
16102 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16103 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16104 cat >conftest.$ac_ext <<_ACEOF
16105 /* confdefs.h. */
16106 _ACEOF
16107 cat confdefs.h >>conftest.$ac_ext
16108 cat >>conftest.$ac_ext <<_ACEOF
16109 /* end confdefs.h. */
16110 #include <sys/dg_sys_info.h>
16111 _ACEOF
16112 if { (ac_try="$ac_cpp conftest.$ac_ext"
16113 case "(($ac_try" in
16114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16115 *) ac_try_echo=$ac_try;;
16116 esac
16117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16119 ac_status=$?
16120 grep -v '^ *+' conftest.er1 >conftest.err
16121 rm -f conftest.er1
16122 cat conftest.err >&5
16123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16124 (exit $ac_status); } >/dev/null && {
16125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16126 test ! -s conftest.err
16127 }; then
16128 ac_header_preproc=yes
16129 else
16130 echo "$as_me: failed program was:" >&5
16131 sed 's/^/| /' conftest.$ac_ext >&5
16132
16133 ac_header_preproc=no
16134 fi
16135
16136 rm -f conftest.err conftest.$ac_ext
16137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16138 echo "${ECHO_T}$ac_header_preproc" >&6; }
16139
16140 # So? What about this header?
16141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16142 yes:no: )
16143 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16144 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16145 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16146 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16147 ac_header_preproc=yes
16148 ;;
16149 no:yes:* )
16150 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16151 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16152 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16153 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16154 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16155 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16156 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16157 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16158 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16159 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16160 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16161 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16162
16163 ;;
16164 esac
16165 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16166 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16167 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16168 echo $ECHO_N "(cached) $ECHO_C" >&6
16169 else
16170 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16171 fi
16172 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16173 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16174
16175 fi
16176 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16177 ac_have_func=yes
16178
16179 cat >>confdefs.h <<\_ACEOF
16180 #define DGUX 1
16181 _ACEOF
16182
16183
16184 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16185 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16186 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16187 echo $ECHO_N "(cached) $ECHO_C" >&6
16188 else
16189 ac_check_lib_save_LIBS=$LIBS
16190 LIBS="-ldgc $LIBS"
16191 cat >conftest.$ac_ext <<_ACEOF
16192 /* confdefs.h. */
16193 _ACEOF
16194 cat confdefs.h >>conftest.$ac_ext
16195 cat >>conftest.$ac_ext <<_ACEOF
16196 /* end confdefs.h. */
16197
16198 /* Override any GCC internal prototype to avoid an error.
16199 Use char because int might match the return type of a GCC
16200 builtin and then its argument prototype would still apply. */
16201 #ifdef __cplusplus
16202 extern "C"
16203 #endif
16204 char dg_sys_info ();
16205 int
16206 main ()
16207 {
16208 return dg_sys_info ();
16209 ;
16210 return 0;
16211 }
16212 _ACEOF
16213 rm -f conftest.$ac_objext conftest$ac_exeext
16214 if { (ac_try="$ac_link"
16215 case "(($ac_try" in
16216 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16217 *) ac_try_echo=$ac_try;;
16218 esac
16219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16220 (eval "$ac_link") 2>conftest.er1
16221 ac_status=$?
16222 grep -v '^ *+' conftest.er1 >conftest.err
16223 rm -f conftest.er1
16224 cat conftest.err >&5
16225 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16226 (exit $ac_status); } && {
16227 test -z "$ac_c_werror_flag" ||
16228 test ! -s conftest.err
16229 } && test -s conftest$ac_exeext &&
16230 $as_test_x conftest$ac_exeext; then
16231 ac_cv_lib_dgc_dg_sys_info=yes
16232 else
16233 echo "$as_me: failed program was:" >&5
16234 sed 's/^/| /' conftest.$ac_ext >&5
16235
16236 ac_cv_lib_dgc_dg_sys_info=no
16237 fi
16238
16239 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16240 conftest$ac_exeext conftest.$ac_ext
16241 LIBS=$ac_check_lib_save_LIBS
16242 fi
16243 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16244 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16245 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16246 cat >>confdefs.h <<_ACEOF
16247 #define HAVE_LIBDGC 1
16248 _ACEOF
16249
16250 LIBS="-ldgc $LIBS"
16251
16252 fi
16253
16254 fi
16255
16256
16257
16258 if test "${ac_cv_header_locale_h+set}" = set; then
16259 { echo "$as_me:$LINENO: checking for locale.h" >&5
16260 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16261 if test "${ac_cv_header_locale_h+set}" = set; then
16262 echo $ECHO_N "(cached) $ECHO_C" >&6
16263 fi
16264 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16265 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16266 else
16267 # Is the header compilable?
16268 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16269 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16270 cat >conftest.$ac_ext <<_ACEOF
16271 /* confdefs.h. */
16272 _ACEOF
16273 cat confdefs.h >>conftest.$ac_ext
16274 cat >>conftest.$ac_ext <<_ACEOF
16275 /* end confdefs.h. */
16276 $ac_includes_default
16277 #include <locale.h>
16278 _ACEOF
16279 rm -f conftest.$ac_objext
16280 if { (ac_try="$ac_compile"
16281 case "(($ac_try" in
16282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16283 *) ac_try_echo=$ac_try;;
16284 esac
16285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16286 (eval "$ac_compile") 2>conftest.er1
16287 ac_status=$?
16288 grep -v '^ *+' conftest.er1 >conftest.err
16289 rm -f conftest.er1
16290 cat conftest.err >&5
16291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16292 (exit $ac_status); } && {
16293 test -z "$ac_c_werror_flag" ||
16294 test ! -s conftest.err
16295 } && test -s conftest.$ac_objext; then
16296 ac_header_compiler=yes
16297 else
16298 echo "$as_me: failed program was:" >&5
16299 sed 's/^/| /' conftest.$ac_ext >&5
16300
16301 ac_header_compiler=no
16302 fi
16303
16304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16305 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16306 echo "${ECHO_T}$ac_header_compiler" >&6; }
16307
16308 # Is the header present?
16309 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16310 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16311 cat >conftest.$ac_ext <<_ACEOF
16312 /* confdefs.h. */
16313 _ACEOF
16314 cat confdefs.h >>conftest.$ac_ext
16315 cat >>conftest.$ac_ext <<_ACEOF
16316 /* end confdefs.h. */
16317 #include <locale.h>
16318 _ACEOF
16319 if { (ac_try="$ac_cpp conftest.$ac_ext"
16320 case "(($ac_try" in
16321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16322 *) ac_try_echo=$ac_try;;
16323 esac
16324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16325 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16326 ac_status=$?
16327 grep -v '^ *+' conftest.er1 >conftest.err
16328 rm -f conftest.er1
16329 cat conftest.err >&5
16330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16331 (exit $ac_status); } >/dev/null && {
16332 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16333 test ! -s conftest.err
16334 }; then
16335 ac_header_preproc=yes
16336 else
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ac_header_preproc=no
16341 fi
16342
16343 rm -f conftest.err conftest.$ac_ext
16344 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16345 echo "${ECHO_T}$ac_header_preproc" >&6; }
16346
16347 # So? What about this header?
16348 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16349 yes:no: )
16350 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16351 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16352 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16353 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16354 ac_header_preproc=yes
16355 ;;
16356 no:yes:* )
16357 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16358 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16359 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16360 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16361 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16362 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16363 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16364 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16365 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16366 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16367 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16368 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16369
16370 ;;
16371 esac
16372 { echo "$as_me:$LINENO: checking for locale.h" >&5
16373 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16374 if test "${ac_cv_header_locale_h+set}" = set; then
16375 echo $ECHO_N "(cached) $ECHO_C" >&6
16376 else
16377 ac_cv_header_locale_h=$ac_header_preproc
16378 fi
16379 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16380 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16381
16382 fi
16383
16384
16385
16386 for ac_func in setlocale
16387 do
16388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16392 echo $ECHO_N "(cached) $ECHO_C" >&6
16393 else
16394 cat >conftest.$ac_ext <<_ACEOF
16395 /* confdefs.h. */
16396 _ACEOF
16397 cat confdefs.h >>conftest.$ac_ext
16398 cat >>conftest.$ac_ext <<_ACEOF
16399 /* end confdefs.h. */
16400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16401 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16402 #define $ac_func innocuous_$ac_func
16403
16404 /* System header to define __stub macros and hopefully few prototypes,
16405 which can conflict with char $ac_func (); below.
16406 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16407 <limits.h> exists even on freestanding compilers. */
16408
16409 #ifdef __STDC__
16410 # include <limits.h>
16411 #else
16412 # include <assert.h>
16413 #endif
16414
16415 #undef $ac_func
16416
16417 /* Override any GCC internal prototype to avoid an error.
16418 Use char because int might match the return type of a GCC
16419 builtin and then its argument prototype would still apply. */
16420 #ifdef __cplusplus
16421 extern "C"
16422 #endif
16423 char $ac_func ();
16424 /* The GNU C library defines this for functions which it implements
16425 to always fail with ENOSYS. Some functions are actually named
16426 something starting with __ and the normal name is an alias. */
16427 #if defined __stub_$ac_func || defined __stub___$ac_func
16428 choke me
16429 #endif
16430
16431 int
16432 main ()
16433 {
16434 return $ac_func ();
16435 ;
16436 return 0;
16437 }
16438 _ACEOF
16439 rm -f conftest.$ac_objext conftest$ac_exeext
16440 if { (ac_try="$ac_link"
16441 case "(($ac_try" in
16442 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16443 *) ac_try_echo=$ac_try;;
16444 esac
16445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16446 (eval "$ac_link") 2>conftest.er1
16447 ac_status=$?
16448 grep -v '^ *+' conftest.er1 >conftest.err
16449 rm -f conftest.er1
16450 cat conftest.err >&5
16451 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16452 (exit $ac_status); } && {
16453 test -z "$ac_c_werror_flag" ||
16454 test ! -s conftest.err
16455 } && test -s conftest$ac_exeext &&
16456 $as_test_x conftest$ac_exeext; then
16457 eval "$as_ac_var=yes"
16458 else
16459 echo "$as_me: failed program was:" >&5
16460 sed 's/^/| /' conftest.$ac_ext >&5
16461
16462 eval "$as_ac_var=no"
16463 fi
16464
16465 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16466 conftest$ac_exeext conftest.$ac_ext
16467 fi
16468 ac_res=`eval echo '${'$as_ac_var'}'`
16469 { echo "$as_me:$LINENO: result: $ac_res" >&5
16470 echo "${ECHO_T}$ac_res" >&6; }
16471 if test `eval echo '${'$as_ac_var'}'` = yes; then
16472 cat >>confdefs.h <<_ACEOF
16473 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16474 _ACEOF
16475
16476 fi
16477 done
16478
16479
16480 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
16481 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
16482 # Irix 4.0.5F has the header but not the library.
16483 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
16484 ac_have_func=yes
16485
16486 cat >>confdefs.h <<\_ACEOF
16487 #define SVR4 1
16488 _ACEOF
16489
16490 fi
16491
16492 if test $ac_have_func = no; then
16493 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16494 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16495 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16496 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16497 echo $ECHO_N "(cached) $ECHO_C" >&6
16498 fi
16499 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16500 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16501 else
16502 # Is the header compilable?
16503 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
16504 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
16505 cat >conftest.$ac_ext <<_ACEOF
16506 /* confdefs.h. */
16507 _ACEOF
16508 cat confdefs.h >>conftest.$ac_ext
16509 cat >>conftest.$ac_ext <<_ACEOF
16510 /* end confdefs.h. */
16511 $ac_includes_default
16512 #include <inq_stats/cpustats.h>
16513 _ACEOF
16514 rm -f conftest.$ac_objext
16515 if { (ac_try="$ac_compile"
16516 case "(($ac_try" in
16517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16518 *) ac_try_echo=$ac_try;;
16519 esac
16520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16521 (eval "$ac_compile") 2>conftest.er1
16522 ac_status=$?
16523 grep -v '^ *+' conftest.er1 >conftest.err
16524 rm -f conftest.er1
16525 cat conftest.err >&5
16526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16527 (exit $ac_status); } && {
16528 test -z "$ac_c_werror_flag" ||
16529 test ! -s conftest.err
16530 } && test -s conftest.$ac_objext; then
16531 ac_header_compiler=yes
16532 else
16533 echo "$as_me: failed program was:" >&5
16534 sed 's/^/| /' conftest.$ac_ext >&5
16535
16536 ac_header_compiler=no
16537 fi
16538
16539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16540 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16541 echo "${ECHO_T}$ac_header_compiler" >&6; }
16542
16543 # Is the header present?
16544 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
16545 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
16546 cat >conftest.$ac_ext <<_ACEOF
16547 /* confdefs.h. */
16548 _ACEOF
16549 cat confdefs.h >>conftest.$ac_ext
16550 cat >>conftest.$ac_ext <<_ACEOF
16551 /* end confdefs.h. */
16552 #include <inq_stats/cpustats.h>
16553 _ACEOF
16554 if { (ac_try="$ac_cpp conftest.$ac_ext"
16555 case "(($ac_try" in
16556 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16557 *) ac_try_echo=$ac_try;;
16558 esac
16559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16560 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16561 ac_status=$?
16562 grep -v '^ *+' conftest.er1 >conftest.err
16563 rm -f conftest.er1
16564 cat conftest.err >&5
16565 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16566 (exit $ac_status); } >/dev/null && {
16567 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16568 test ! -s conftest.err
16569 }; then
16570 ac_header_preproc=yes
16571 else
16572 echo "$as_me: failed program was:" >&5
16573 sed 's/^/| /' conftest.$ac_ext >&5
16574
16575 ac_header_preproc=no
16576 fi
16577
16578 rm -f conftest.err conftest.$ac_ext
16579 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16580 echo "${ECHO_T}$ac_header_preproc" >&6; }
16581
16582 # So? What about this header?
16583 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16584 yes:no: )
16585 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16586 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16587 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
16588 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
16589 ac_header_preproc=yes
16590 ;;
16591 no:yes:* )
16592 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
16593 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
16594 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
16595 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
16596 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
16597 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
16598 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16599 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16600 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
16601 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
16602 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
16603 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
16604
16605 ;;
16606 esac
16607 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
16608 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
16609 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
16610 echo $ECHO_N "(cached) $ECHO_C" >&6
16611 else
16612 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
16613 fi
16614 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
16615 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
16616
16617 fi
16618 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
16619 ac_have_func=yes
16620
16621 cat >>confdefs.h <<\_ACEOF
16622 #define UMAX 1
16623 _ACEOF
16624
16625
16626 cat >>confdefs.h <<\_ACEOF
16627 #define UMAX4_3 1
16628 _ACEOF
16629
16630 fi
16631
16632
16633 fi
16634
16635 if test $ac_have_func = no; then
16636 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16637 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16638 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
16639 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16640 echo $ECHO_N "(cached) $ECHO_C" >&6
16641 fi
16642 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16643 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16644 else
16645 # Is the header compilable?
16646 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
16647 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654 $ac_includes_default
16655 #include <sys/cpustats.h>
16656 _ACEOF
16657 rm -f conftest.$ac_objext
16658 if { (ac_try="$ac_compile"
16659 case "(($ac_try" in
16660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16661 *) ac_try_echo=$ac_try;;
16662 esac
16663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16664 (eval "$ac_compile") 2>conftest.er1
16665 ac_status=$?
16666 grep -v '^ *+' conftest.er1 >conftest.err
16667 rm -f conftest.er1
16668 cat conftest.err >&5
16669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16670 (exit $ac_status); } && {
16671 test -z "$ac_c_werror_flag" ||
16672 test ! -s conftest.err
16673 } && test -s conftest.$ac_objext; then
16674 ac_header_compiler=yes
16675 else
16676 echo "$as_me: failed program was:" >&5
16677 sed 's/^/| /' conftest.$ac_ext >&5
16678
16679 ac_header_compiler=no
16680 fi
16681
16682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16684 echo "${ECHO_T}$ac_header_compiler" >&6; }
16685
16686 # Is the header present?
16687 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
16688 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
16689 cat >conftest.$ac_ext <<_ACEOF
16690 /* confdefs.h. */
16691 _ACEOF
16692 cat confdefs.h >>conftest.$ac_ext
16693 cat >>conftest.$ac_ext <<_ACEOF
16694 /* end confdefs.h. */
16695 #include <sys/cpustats.h>
16696 _ACEOF
16697 if { (ac_try="$ac_cpp conftest.$ac_ext"
16698 case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16704 ac_status=$?
16705 grep -v '^ *+' conftest.er1 >conftest.err
16706 rm -f conftest.er1
16707 cat conftest.err >&5
16708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16709 (exit $ac_status); } >/dev/null && {
16710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16711 test ! -s conftest.err
16712 }; then
16713 ac_header_preproc=yes
16714 else
16715 echo "$as_me: failed program was:" >&5
16716 sed 's/^/| /' conftest.$ac_ext >&5
16717
16718 ac_header_preproc=no
16719 fi
16720
16721 rm -f conftest.err conftest.$ac_ext
16722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16723 echo "${ECHO_T}$ac_header_preproc" >&6; }
16724
16725 # So? What about this header?
16726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16727 yes:no: )
16728 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
16729 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16730 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
16731 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
16732 ac_header_preproc=yes
16733 ;;
16734 no:yes:* )
16735 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
16736 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
16737 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
16738 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
16739 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
16740 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
16741 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
16742 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
16743 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
16744 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
16745 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
16746 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
16747
16748 ;;
16749 esac
16750 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
16751 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
16752 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
16753 echo $ECHO_N "(cached) $ECHO_C" >&6
16754 else
16755 ac_cv_header_sys_cpustats_h=$ac_header_preproc
16756 fi
16757 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
16758 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
16759
16760 fi
16761 if test $ac_cv_header_sys_cpustats_h = yes; then
16762 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
16763 #define UMAX 1
16764 _ACEOF
16765
16766 fi
16767
16768
16769 fi
16770
16771 if test $ac_have_func = no; then
16772
16773 for ac_header in mach/mach.h
16774 do
16775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16780 echo $ECHO_N "(cached) $ECHO_C" >&6
16781 fi
16782 ac_res=`eval echo '${'$as_ac_Header'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 else
16786 # Is the header compilable?
16787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16789 cat >conftest.$ac_ext <<_ACEOF
16790 /* confdefs.h. */
16791 _ACEOF
16792 cat confdefs.h >>conftest.$ac_ext
16793 cat >>conftest.$ac_ext <<_ACEOF
16794 /* end confdefs.h. */
16795 $ac_includes_default
16796 #include <$ac_header>
16797 _ACEOF
16798 rm -f conftest.$ac_objext
16799 if { (ac_try="$ac_compile"
16800 case "(($ac_try" in
16801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16802 *) ac_try_echo=$ac_try;;
16803 esac
16804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16805 (eval "$ac_compile") 2>conftest.er1
16806 ac_status=$?
16807 grep -v '^ *+' conftest.er1 >conftest.err
16808 rm -f conftest.er1
16809 cat conftest.err >&5
16810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16811 (exit $ac_status); } && {
16812 test -z "$ac_c_werror_flag" ||
16813 test ! -s conftest.err
16814 } && test -s conftest.$ac_objext; then
16815 ac_header_compiler=yes
16816 else
16817 echo "$as_me: failed program was:" >&5
16818 sed 's/^/| /' conftest.$ac_ext >&5
16819
16820 ac_header_compiler=no
16821 fi
16822
16823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16825 echo "${ECHO_T}$ac_header_compiler" >&6; }
16826
16827 # Is the header present?
16828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16830 cat >conftest.$ac_ext <<_ACEOF
16831 /* confdefs.h. */
16832 _ACEOF
16833 cat confdefs.h >>conftest.$ac_ext
16834 cat >>conftest.$ac_ext <<_ACEOF
16835 /* end confdefs.h. */
16836 #include <$ac_header>
16837 _ACEOF
16838 if { (ac_try="$ac_cpp conftest.$ac_ext"
16839 case "(($ac_try" in
16840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16841 *) ac_try_echo=$ac_try;;
16842 esac
16843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16845 ac_status=$?
16846 grep -v '^ *+' conftest.er1 >conftest.err
16847 rm -f conftest.er1
16848 cat conftest.err >&5
16849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16850 (exit $ac_status); } >/dev/null && {
16851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16852 test ! -s conftest.err
16853 }; then
16854 ac_header_preproc=yes
16855 else
16856 echo "$as_me: failed program was:" >&5
16857 sed 's/^/| /' conftest.$ac_ext >&5
16858
16859 ac_header_preproc=no
16860 fi
16861
16862 rm -f conftest.err conftest.$ac_ext
16863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16864 echo "${ECHO_T}$ac_header_preproc" >&6; }
16865
16866 # So? What about this header?
16867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16868 yes:no: )
16869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16873 ac_header_preproc=yes
16874 ;;
16875 no:yes:* )
16876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16888
16889 ;;
16890 esac
16891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16894 echo $ECHO_N "(cached) $ECHO_C" >&6
16895 else
16896 eval "$as_ac_Header=\$ac_header_preproc"
16897 fi
16898 ac_res=`eval echo '${'$as_ac_Header'}'`
16899 { echo "$as_me:$LINENO: result: $ac_res" >&5
16900 echo "${ECHO_T}$ac_res" >&6; }
16901
16902 fi
16903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16904 cat >>confdefs.h <<_ACEOF
16905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16906 _ACEOF
16907
16908 fi
16909
16910 done
16911
16912 fi
16913
16914
16915 for ac_header in nlist.h
16916 do
16917 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16918 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16919 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16920 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16921 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16922 echo $ECHO_N "(cached) $ECHO_C" >&6
16923 fi
16924 ac_res=`eval echo '${'$as_ac_Header'}'`
16925 { echo "$as_me:$LINENO: result: $ac_res" >&5
16926 echo "${ECHO_T}$ac_res" >&6; }
16927 else
16928 # Is the header compilable?
16929 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16930 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16931 cat >conftest.$ac_ext <<_ACEOF
16932 /* confdefs.h. */
16933 _ACEOF
16934 cat confdefs.h >>conftest.$ac_ext
16935 cat >>conftest.$ac_ext <<_ACEOF
16936 /* end confdefs.h. */
16937 $ac_includes_default
16938 #include <$ac_header>
16939 _ACEOF
16940 rm -f conftest.$ac_objext
16941 if { (ac_try="$ac_compile"
16942 case "(($ac_try" in
16943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16944 *) ac_try_echo=$ac_try;;
16945 esac
16946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16947 (eval "$ac_compile") 2>conftest.er1
16948 ac_status=$?
16949 grep -v '^ *+' conftest.er1 >conftest.err
16950 rm -f conftest.er1
16951 cat conftest.err >&5
16952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16953 (exit $ac_status); } && {
16954 test -z "$ac_c_werror_flag" ||
16955 test ! -s conftest.err
16956 } && test -s conftest.$ac_objext; then
16957 ac_header_compiler=yes
16958 else
16959 echo "$as_me: failed program was:" >&5
16960 sed 's/^/| /' conftest.$ac_ext >&5
16961
16962 ac_header_compiler=no
16963 fi
16964
16965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16966 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16967 echo "${ECHO_T}$ac_header_compiler" >&6; }
16968
16969 # Is the header present?
16970 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16971 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16972 cat >conftest.$ac_ext <<_ACEOF
16973 /* confdefs.h. */
16974 _ACEOF
16975 cat confdefs.h >>conftest.$ac_ext
16976 cat >>conftest.$ac_ext <<_ACEOF
16977 /* end confdefs.h. */
16978 #include <$ac_header>
16979 _ACEOF
16980 if { (ac_try="$ac_cpp conftest.$ac_ext"
16981 case "(($ac_try" in
16982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16983 *) ac_try_echo=$ac_try;;
16984 esac
16985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16986 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16987 ac_status=$?
16988 grep -v '^ *+' conftest.er1 >conftest.err
16989 rm -f conftest.er1
16990 cat conftest.err >&5
16991 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16992 (exit $ac_status); } >/dev/null && {
16993 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16994 test ! -s conftest.err
16995 }; then
16996 ac_header_preproc=yes
16997 else
16998 echo "$as_me: failed program was:" >&5
16999 sed 's/^/| /' conftest.$ac_ext >&5
17000
17001 ac_header_preproc=no
17002 fi
17003
17004 rm -f conftest.err conftest.$ac_ext
17005 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17006 echo "${ECHO_T}$ac_header_preproc" >&6; }
17007
17008 # So? What about this header?
17009 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17010 yes:no: )
17011 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17012 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17013 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17014 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17015 ac_header_preproc=yes
17016 ;;
17017 no:yes:* )
17018 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17019 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17020 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17021 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17022 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17023 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17024 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17025 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17026 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17027 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17028 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17029 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17030
17031 ;;
17032 esac
17033 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17034 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17035 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17036 echo $ECHO_N "(cached) $ECHO_C" >&6
17037 else
17038 eval "$as_ac_Header=\$ac_header_preproc"
17039 fi
17040 ac_res=`eval echo '${'$as_ac_Header'}'`
17041 { echo "$as_me:$LINENO: result: $ac_res" >&5
17042 echo "${ECHO_T}$ac_res" >&6; }
17043
17044 fi
17045 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17046 cat >>confdefs.h <<_ACEOF
17047 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17048 _ACEOF
17049 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17050 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17051 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17052 echo $ECHO_N "(cached) $ECHO_C" >&6
17053 else
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <nlist.h>
17061
17062 int
17063 main ()
17064 {
17065 static struct nlist ac_aggr;
17066 if (ac_aggr.n_un.n_name)
17067 return 0;
17068 ;
17069 return 0;
17070 }
17071 _ACEOF
17072 rm -f conftest.$ac_objext
17073 if { (ac_try="$ac_compile"
17074 case "(($ac_try" in
17075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17076 *) ac_try_echo=$ac_try;;
17077 esac
17078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17079 (eval "$ac_compile") 2>conftest.er1
17080 ac_status=$?
17081 grep -v '^ *+' conftest.er1 >conftest.err
17082 rm -f conftest.er1
17083 cat conftest.err >&5
17084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17085 (exit $ac_status); } && {
17086 test -z "$ac_c_werror_flag" ||
17087 test ! -s conftest.err
17088 } && test -s conftest.$ac_objext; then
17089 ac_cv_member_struct_nlist_n_un_n_name=yes
17090 else
17091 echo "$as_me: failed program was:" >&5
17092 sed 's/^/| /' conftest.$ac_ext >&5
17093
17094 cat >conftest.$ac_ext <<_ACEOF
17095 /* confdefs.h. */
17096 _ACEOF
17097 cat confdefs.h >>conftest.$ac_ext
17098 cat >>conftest.$ac_ext <<_ACEOF
17099 /* end confdefs.h. */
17100 #include <nlist.h>
17101
17102 int
17103 main ()
17104 {
17105 static struct nlist ac_aggr;
17106 if (sizeof ac_aggr.n_un.n_name)
17107 return 0;
17108 ;
17109 return 0;
17110 }
17111 _ACEOF
17112 rm -f conftest.$ac_objext
17113 if { (ac_try="$ac_compile"
17114 case "(($ac_try" in
17115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116 *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119 (eval "$ac_compile") 2>conftest.er1
17120 ac_status=$?
17121 grep -v '^ *+' conftest.er1 >conftest.err
17122 rm -f conftest.er1
17123 cat conftest.err >&5
17124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125 (exit $ac_status); } && {
17126 test -z "$ac_c_werror_flag" ||
17127 test ! -s conftest.err
17128 } && test -s conftest.$ac_objext; then
17129 ac_cv_member_struct_nlist_n_un_n_name=yes
17130 else
17131 echo "$as_me: failed program was:" >&5
17132 sed 's/^/| /' conftest.$ac_ext >&5
17133
17134 ac_cv_member_struct_nlist_n_un_n_name=no
17135 fi
17136
17137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17138 fi
17139
17140 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17141 fi
17142 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17143 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17144 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17145
17146 cat >>confdefs.h <<_ACEOF
17147 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17148 _ACEOF
17149
17150
17151 cat >>confdefs.h <<\_ACEOF
17152 #define NLIST_NAME_UNION 1
17153 _ACEOF
17154
17155 fi
17156
17157
17158 fi
17159
17160 done
17161
17162 fi
17163 done
17164
17165
17166 # Some definitions of getloadavg require that the program be installed setgid.
17167 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17168 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17169 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17170 echo $ECHO_N "(cached) $ECHO_C" >&6
17171 else
17172 cat >conftest.$ac_ext <<_ACEOF
17173 /* confdefs.h. */
17174 _ACEOF
17175 cat confdefs.h >>conftest.$ac_ext
17176 cat >>conftest.$ac_ext <<_ACEOF
17177 /* end confdefs.h. */
17178 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17179 #ifdef LDAV_PRIVILEGED
17180 Yowza Am I SETGID yet
17181 #endif
17182 _ACEOF
17183 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17184 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17185 ac_cv_func_getloadavg_setgid=yes
17186 else
17187 ac_cv_func_getloadavg_setgid=no
17188 fi
17189 rm -f conftest*
17190
17191 fi
17192 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17193 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17194 if test $ac_cv_func_getloadavg_setgid = yes; then
17195 NEED_SETGID=true
17196
17197 cat >>confdefs.h <<\_ACEOF
17198 #define GETLOADAVG_PRIVILEGED 1
17199 _ACEOF
17200
17201 else
17202 NEED_SETGID=false
17203 fi
17204
17205 if test $ac_cv_func_getloadavg_setgid = yes; then
17206 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17207 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17208 if test "${ac_cv_group_kmem+set}" = set; then
17209 echo $ECHO_N "(cached) $ECHO_C" >&6
17210 else
17211 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17212 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17213 # If we got an error (system does not support symlinks), try without -L.
17214 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17215 ac_cv_group_kmem=`echo $ac_ls_output \
17216 | sed -ne 's/[ ][ ]*/ /g;
17217 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17218 / /s/.* //;p;'`
17219
17220 fi
17221 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17222 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17223 KMEM_GROUP=$ac_cv_group_kmem
17224 fi
17225 if test "x$ac_save_LIBS" = x; then
17226 GETLOADAVG_LIBS=$LIBS
17227 else
17228 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17229 fi
17230 LIBS=$ac_save_LIBS
17231
17232
17233
17234 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17235 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17236 if test "${ac_cv_sys_largefile_source+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 else
17239 while :; do
17240 cat >conftest.$ac_ext <<_ACEOF
17241 /* confdefs.h. */
17242 _ACEOF
17243 cat confdefs.h >>conftest.$ac_ext
17244 cat >>conftest.$ac_ext <<_ACEOF
17245 /* end confdefs.h. */
17246 #include <stdio.h>
17247 int
17248 main ()
17249 {
17250 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17251 ;
17252 return 0;
17253 }
17254 _ACEOF
17255 rm -f conftest.$ac_objext conftest$ac_exeext
17256 if { (ac_try="$ac_link"
17257 case "(($ac_try" in
17258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17259 *) ac_try_echo=$ac_try;;
17260 esac
17261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17262 (eval "$ac_link") 2>conftest.er1
17263 ac_status=$?
17264 grep -v '^ *+' conftest.er1 >conftest.err
17265 rm -f conftest.er1
17266 cat conftest.err >&5
17267 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17268 (exit $ac_status); } && {
17269 test -z "$ac_c_werror_flag" ||
17270 test ! -s conftest.err
17271 } && test -s conftest$ac_exeext &&
17272 $as_test_x conftest$ac_exeext; then
17273 ac_cv_sys_largefile_source=no; break
17274 else
17275 echo "$as_me: failed program was:" >&5
17276 sed 's/^/| /' conftest.$ac_ext >&5
17277
17278
17279 fi
17280
17281 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17282 conftest$ac_exeext conftest.$ac_ext
17283 cat >conftest.$ac_ext <<_ACEOF
17284 /* confdefs.h. */
17285 _ACEOF
17286 cat confdefs.h >>conftest.$ac_ext
17287 cat >>conftest.$ac_ext <<_ACEOF
17288 /* end confdefs.h. */
17289 #define _LARGEFILE_SOURCE 1
17290 #include <stdio.h>
17291 int
17292 main ()
17293 {
17294 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17295 ;
17296 return 0;
17297 }
17298 _ACEOF
17299 rm -f conftest.$ac_objext conftest$ac_exeext
17300 if { (ac_try="$ac_link"
17301 case "(($ac_try" in
17302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17303 *) ac_try_echo=$ac_try;;
17304 esac
17305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17306 (eval "$ac_link") 2>conftest.er1
17307 ac_status=$?
17308 grep -v '^ *+' conftest.er1 >conftest.err
17309 rm -f conftest.er1
17310 cat conftest.err >&5
17311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17312 (exit $ac_status); } && {
17313 test -z "$ac_c_werror_flag" ||
17314 test ! -s conftest.err
17315 } && test -s conftest$ac_exeext &&
17316 $as_test_x conftest$ac_exeext; then
17317 ac_cv_sys_largefile_source=1; break
17318 else
17319 echo "$as_me: failed program was:" >&5
17320 sed 's/^/| /' conftest.$ac_ext >&5
17321
17322
17323 fi
17324
17325 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17326 conftest$ac_exeext conftest.$ac_ext
17327 ac_cv_sys_largefile_source=unknown
17328 break
17329 done
17330 fi
17331 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17332 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17333 case $ac_cv_sys_largefile_source in #(
17334 no | unknown) ;;
17335 *)
17336 cat >>confdefs.h <<_ACEOF
17337 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17338 _ACEOF
17339 ;;
17340 esac
17341 rm -f conftest*
17342
17343 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17344 # in glibc 2.1.3, but that breaks too many other things.
17345 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17346 if test $ac_cv_sys_largefile_source != unknown; then
17347
17348 cat >>confdefs.h <<\_ACEOF
17349 #define HAVE_FSEEKO 1
17350 _ACEOF
17351
17352 fi
17353
17354
17355 # Configure getopt.
17356 # getopt.m4 serial 10
17357
17358 # The getopt module assume you want GNU getopt, with getopt_long etc,
17359 # rather than vanilla POSIX getopt. This means your your code should
17360 # always include <getopt.h> for the getopt prototypes.
17361
17362
17363
17364
17365
17366
17367
17368
17369
17370
17371
17372 # Prerequisites of lib/getopt*.
17373
17374
17375
17376
17377 GETOPT_H=
17378
17379 for ac_header in getopt.h
17380 do
17381 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
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 fi
17388 ac_res=`eval echo '${'$as_ac_Header'}'`
17389 { echo "$as_me:$LINENO: result: $ac_res" >&5
17390 echo "${ECHO_T}$ac_res" >&6; }
17391 else
17392 # Is the header compilable?
17393 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17394 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17395 cat >conftest.$ac_ext <<_ACEOF
17396 /* confdefs.h. */
17397 _ACEOF
17398 cat confdefs.h >>conftest.$ac_ext
17399 cat >>conftest.$ac_ext <<_ACEOF
17400 /* end confdefs.h. */
17401 $ac_includes_default
17402 #include <$ac_header>
17403 _ACEOF
17404 rm -f conftest.$ac_objext
17405 if { (ac_try="$ac_compile"
17406 case "(($ac_try" in
17407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17408 *) ac_try_echo=$ac_try;;
17409 esac
17410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17411 (eval "$ac_compile") 2>conftest.er1
17412 ac_status=$?
17413 grep -v '^ *+' conftest.er1 >conftest.err
17414 rm -f conftest.er1
17415 cat conftest.err >&5
17416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17417 (exit $ac_status); } && {
17418 test -z "$ac_c_werror_flag" ||
17419 test ! -s conftest.err
17420 } && test -s conftest.$ac_objext; then
17421 ac_header_compiler=yes
17422 else
17423 echo "$as_me: failed program was:" >&5
17424 sed 's/^/| /' conftest.$ac_ext >&5
17425
17426 ac_header_compiler=no
17427 fi
17428
17429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17431 echo "${ECHO_T}$ac_header_compiler" >&6; }
17432
17433 # Is the header present?
17434 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17435 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17436 cat >conftest.$ac_ext <<_ACEOF
17437 /* confdefs.h. */
17438 _ACEOF
17439 cat confdefs.h >>conftest.$ac_ext
17440 cat >>conftest.$ac_ext <<_ACEOF
17441 /* end confdefs.h. */
17442 #include <$ac_header>
17443 _ACEOF
17444 if { (ac_try="$ac_cpp conftest.$ac_ext"
17445 case "(($ac_try" in
17446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17447 *) ac_try_echo=$ac_try;;
17448 esac
17449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17451 ac_status=$?
17452 grep -v '^ *+' conftest.er1 >conftest.err
17453 rm -f conftest.er1
17454 cat conftest.err >&5
17455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17456 (exit $ac_status); } >/dev/null && {
17457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17458 test ! -s conftest.err
17459 }; then
17460 ac_header_preproc=yes
17461 else
17462 echo "$as_me: failed program was:" >&5
17463 sed 's/^/| /' conftest.$ac_ext >&5
17464
17465 ac_header_preproc=no
17466 fi
17467
17468 rm -f conftest.err conftest.$ac_ext
17469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17470 echo "${ECHO_T}$ac_header_preproc" >&6; }
17471
17472 # So? What about this header?
17473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17474 yes:no: )
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17476 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17478 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17479 ac_header_preproc=yes
17480 ;;
17481 no:yes:* )
17482 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17483 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17484 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17485 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17486 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17487 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17488 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17489 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17490 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17491 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17492 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17493 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17494
17495 ;;
17496 esac
17497 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17498 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17499 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17500 echo $ECHO_N "(cached) $ECHO_C" >&6
17501 else
17502 eval "$as_ac_Header=\$ac_header_preproc"
17503 fi
17504 ac_res=`eval echo '${'$as_ac_Header'}'`
17505 { echo "$as_me:$LINENO: result: $ac_res" >&5
17506 echo "${ECHO_T}$ac_res" >&6; }
17507
17508 fi
17509 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17510 cat >>confdefs.h <<_ACEOF
17511 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17512 _ACEOF
17513
17514 else
17515 GETOPT_H=getopt.h
17516 fi
17517
17518 done
17519
17520 if test -z "$GETOPT_H"; then
17521
17522 for ac_func in getopt_long_only
17523 do
17524 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17525 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17526 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17527 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17528 echo $ECHO_N "(cached) $ECHO_C" >&6
17529 else
17530 cat >conftest.$ac_ext <<_ACEOF
17531 /* confdefs.h. */
17532 _ACEOF
17533 cat confdefs.h >>conftest.$ac_ext
17534 cat >>conftest.$ac_ext <<_ACEOF
17535 /* end confdefs.h. */
17536 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17537 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17538 #define $ac_func innocuous_$ac_func
17539
17540 /* System header to define __stub macros and hopefully few prototypes,
17541 which can conflict with char $ac_func (); below.
17542 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17543 <limits.h> exists even on freestanding compilers. */
17544
17545 #ifdef __STDC__
17546 # include <limits.h>
17547 #else
17548 # include <assert.h>
17549 #endif
17550
17551 #undef $ac_func
17552
17553 /* Override any GCC internal prototype to avoid an error.
17554 Use char because int might match the return type of a GCC
17555 builtin and then its argument prototype would still apply. */
17556 #ifdef __cplusplus
17557 extern "C"
17558 #endif
17559 char $ac_func ();
17560 /* The GNU C library defines this for functions which it implements
17561 to always fail with ENOSYS. Some functions are actually named
17562 something starting with __ and the normal name is an alias. */
17563 #if defined __stub_$ac_func || defined __stub___$ac_func
17564 choke me
17565 #endif
17566
17567 int
17568 main ()
17569 {
17570 return $ac_func ();
17571 ;
17572 return 0;
17573 }
17574 _ACEOF
17575 rm -f conftest.$ac_objext conftest$ac_exeext
17576 if { (ac_try="$ac_link"
17577 case "(($ac_try" in
17578 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17579 *) ac_try_echo=$ac_try;;
17580 esac
17581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17582 (eval "$ac_link") 2>conftest.er1
17583 ac_status=$?
17584 grep -v '^ *+' conftest.er1 >conftest.err
17585 rm -f conftest.er1
17586 cat conftest.err >&5
17587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17588 (exit $ac_status); } && {
17589 test -z "$ac_c_werror_flag" ||
17590 test ! -s conftest.err
17591 } && test -s conftest$ac_exeext &&
17592 $as_test_x conftest$ac_exeext; then
17593 eval "$as_ac_var=yes"
17594 else
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 eval "$as_ac_var=no"
17599 fi
17600
17601 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17602 conftest$ac_exeext conftest.$ac_ext
17603 fi
17604 ac_res=`eval echo '${'$as_ac_var'}'`
17605 { echo "$as_me:$LINENO: result: $ac_res" >&5
17606 echo "${ECHO_T}$ac_res" >&6; }
17607 if test `eval echo '${'$as_ac_var'}'` = yes; then
17608 cat >>confdefs.h <<_ACEOF
17609 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17610 _ACEOF
17611
17612 else
17613 GETOPT_H=getopt.h
17614 fi
17615 done
17616
17617 fi
17618
17619 if test -z "$GETOPT_H"; then
17620 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
17621 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
17622 if test "${ac_cv_have_decl_optreset+set}" = set; then
17623 echo $ECHO_N "(cached) $ECHO_C" >&6
17624 else
17625 cat >conftest.$ac_ext <<_ACEOF
17626 /* confdefs.h. */
17627 _ACEOF
17628 cat confdefs.h >>conftest.$ac_ext
17629 cat >>conftest.$ac_ext <<_ACEOF
17630 /* end confdefs.h. */
17631 #include <getopt.h>
17632
17633 int
17634 main ()
17635 {
17636 #ifndef optreset
17637 (void) optreset;
17638 #endif
17639
17640 ;
17641 return 0;
17642 }
17643 _ACEOF
17644 rm -f conftest.$ac_objext
17645 if { (ac_try="$ac_compile"
17646 case "(($ac_try" in
17647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17648 *) ac_try_echo=$ac_try;;
17649 esac
17650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17651 (eval "$ac_compile") 2>conftest.er1
17652 ac_status=$?
17653 grep -v '^ *+' conftest.er1 >conftest.err
17654 rm -f conftest.er1
17655 cat conftest.err >&5
17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17657 (exit $ac_status); } && {
17658 test -z "$ac_c_werror_flag" ||
17659 test ! -s conftest.err
17660 } && test -s conftest.$ac_objext; then
17661 ac_cv_have_decl_optreset=yes
17662 else
17663 echo "$as_me: failed program was:" >&5
17664 sed 's/^/| /' conftest.$ac_ext >&5
17665
17666 ac_cv_have_decl_optreset=no
17667 fi
17668
17669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17670 fi
17671 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
17672 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
17673 if test $ac_cv_have_decl_optreset = yes; then
17674 GETOPT_H=getopt.h
17675 fi
17676
17677 fi
17678
17679 if test -z "$GETOPT_H"; then
17680 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
17681 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
17682 if test "${gl_cv_func_gnu_getopt+set}" = set; then
17683 echo $ECHO_N "(cached) $ECHO_C" >&6
17684 else
17685 if test "$cross_compiling" = yes; then
17686 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
17687 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
17688 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
17689 echo $ECHO_N "(cached) $ECHO_C" >&6
17690 else
17691 cat >conftest.$ac_ext <<_ACEOF
17692 /* confdefs.h. */
17693 _ACEOF
17694 cat confdefs.h >>conftest.$ac_ext
17695 cat >>conftest.$ac_ext <<_ACEOF
17696 /* end confdefs.h. */
17697 #include <getopt.h>
17698
17699 int
17700 main ()
17701 {
17702 #ifndef getopt_clip
17703 (void) getopt_clip;
17704 #endif
17705
17706 ;
17707 return 0;
17708 }
17709 _ACEOF
17710 rm -f conftest.$ac_objext
17711 if { (ac_try="$ac_compile"
17712 case "(($ac_try" in
17713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17714 *) ac_try_echo=$ac_try;;
17715 esac
17716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17717 (eval "$ac_compile") 2>conftest.er1
17718 ac_status=$?
17719 grep -v '^ *+' conftest.er1 >conftest.err
17720 rm -f conftest.er1
17721 cat conftest.err >&5
17722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17723 (exit $ac_status); } && {
17724 test -z "$ac_c_werror_flag" ||
17725 test ! -s conftest.err
17726 } && test -s conftest.$ac_objext; then
17727 ac_cv_have_decl_getopt_clip=yes
17728 else
17729 echo "$as_me: failed program was:" >&5
17730 sed 's/^/| /' conftest.$ac_ext >&5
17731
17732 ac_cv_have_decl_getopt_clip=no
17733 fi
17734
17735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17736 fi
17737 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
17738 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
17739 if test $ac_cv_have_decl_getopt_clip = yes; then
17740 gl_cv_func_gnu_getopt=no
17741 else
17742 gl_cv_func_gnu_getopt=yes
17743 fi
17744
17745 else
17746 cat >conftest.$ac_ext <<_ACEOF
17747 /* confdefs.h. */
17748 _ACEOF
17749 cat confdefs.h >>conftest.$ac_ext
17750 cat >>conftest.$ac_ext <<_ACEOF
17751 /* end confdefs.h. */
17752 #include <getopt.h>
17753 int
17754 main ()
17755 {
17756
17757 char *myargv[3];
17758 myargv[0] = "conftest";
17759 myargv[1] = "-+";
17760 myargv[2] = 0;
17761 return getopt (2, myargv, "+a") != '?';
17762
17763 ;
17764 return 0;
17765 }
17766 _ACEOF
17767 rm -f conftest$ac_exeext
17768 if { (ac_try="$ac_link"
17769 case "(($ac_try" in
17770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17771 *) ac_try_echo=$ac_try;;
17772 esac
17773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17774 (eval "$ac_link") 2>&5
17775 ac_status=$?
17776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17777 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17778 { (case "(($ac_try" in
17779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17780 *) ac_try_echo=$ac_try;;
17781 esac
17782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17783 (eval "$ac_try") 2>&5
17784 ac_status=$?
17785 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17786 (exit $ac_status); }; }; then
17787 gl_cv_func_gnu_getopt=yes
17788 else
17789 echo "$as_me: program exited with status $ac_status" >&5
17790 echo "$as_me: failed program was:" >&5
17791 sed 's/^/| /' conftest.$ac_ext >&5
17792
17793 ( exit $ac_status )
17794 gl_cv_func_gnu_getopt=no
17795 fi
17796 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17797 fi
17798
17799
17800 fi
17801 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
17802 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
17803 if test "$gl_cv_func_gnu_getopt" = "no"; then
17804 GETOPT_H=getopt.h
17805 fi
17806 fi
17807
17808
17809
17810 if test -n "$GETOPT_H"; then
17811
17812
17813 GETOPT_H=getopt.h
17814
17815 cat >>confdefs.h <<\_ACEOF
17816 #define __GETOPT_PREFIX rpl_
17817 _ACEOF
17818
17819
17820
17821 :
17822 GETOPTOBJS='getopt.o getopt1.o'
17823
17824 fi
17825
17826
17827
17828
17829 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
17830 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
17831 if test "${ac_cv_func_getpgrp_void+set}" = set; then
17832 echo $ECHO_N "(cached) $ECHO_C" >&6
17833 else
17834 # Use it with a single arg.
17835 cat >conftest.$ac_ext <<_ACEOF
17836 /* confdefs.h. */
17837 _ACEOF
17838 cat confdefs.h >>conftest.$ac_ext
17839 cat >>conftest.$ac_ext <<_ACEOF
17840 /* end confdefs.h. */
17841 $ac_includes_default
17842 int
17843 main ()
17844 {
17845 getpgrp (0);
17846 ;
17847 return 0;
17848 }
17849 _ACEOF
17850 rm -f conftest.$ac_objext
17851 if { (ac_try="$ac_compile"
17852 case "(($ac_try" in
17853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17854 *) ac_try_echo=$ac_try;;
17855 esac
17856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17857 (eval "$ac_compile") 2>conftest.er1
17858 ac_status=$?
17859 grep -v '^ *+' conftest.er1 >conftest.err
17860 rm -f conftest.er1
17861 cat conftest.err >&5
17862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17863 (exit $ac_status); } && {
17864 test -z "$ac_c_werror_flag" ||
17865 test ! -s conftest.err
17866 } && test -s conftest.$ac_objext; then
17867 ac_cv_func_getpgrp_void=no
17868 else
17869 echo "$as_me: failed program was:" >&5
17870 sed 's/^/| /' conftest.$ac_ext >&5
17871
17872 ac_cv_func_getpgrp_void=yes
17873 fi
17874
17875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17876
17877 fi
17878 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
17879 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
17880 if test $ac_cv_func_getpgrp_void = yes; then
17881
17882 cat >>confdefs.h <<\_ACEOF
17883 #define GETPGRP_VOID 1
17884 _ACEOF
17885
17886 fi
17887
17888
17889
17890 for ac_func in strftime
17891 do
17892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17896 echo $ECHO_N "(cached) $ECHO_C" >&6
17897 else
17898 cat >conftest.$ac_ext <<_ACEOF
17899 /* confdefs.h. */
17900 _ACEOF
17901 cat confdefs.h >>conftest.$ac_ext
17902 cat >>conftest.$ac_ext <<_ACEOF
17903 /* end confdefs.h. */
17904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17905 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17906 #define $ac_func innocuous_$ac_func
17907
17908 /* System header to define __stub macros and hopefully few prototypes,
17909 which can conflict with char $ac_func (); below.
17910 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17911 <limits.h> exists even on freestanding compilers. */
17912
17913 #ifdef __STDC__
17914 # include <limits.h>
17915 #else
17916 # include <assert.h>
17917 #endif
17918
17919 #undef $ac_func
17920
17921 /* Override any GCC internal prototype to avoid an error.
17922 Use char because int might match the return type of a GCC
17923 builtin and then its argument prototype would still apply. */
17924 #ifdef __cplusplus
17925 extern "C"
17926 #endif
17927 char $ac_func ();
17928 /* The GNU C library defines this for functions which it implements
17929 to always fail with ENOSYS. Some functions are actually named
17930 something starting with __ and the normal name is an alias. */
17931 #if defined __stub_$ac_func || defined __stub___$ac_func
17932 choke me
17933 #endif
17934
17935 int
17936 main ()
17937 {
17938 return $ac_func ();
17939 ;
17940 return 0;
17941 }
17942 _ACEOF
17943 rm -f conftest.$ac_objext conftest$ac_exeext
17944 if { (ac_try="$ac_link"
17945 case "(($ac_try" in
17946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17947 *) ac_try_echo=$ac_try;;
17948 esac
17949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17950 (eval "$ac_link") 2>conftest.er1
17951 ac_status=$?
17952 grep -v '^ *+' conftest.er1 >conftest.err
17953 rm -f conftest.er1
17954 cat conftest.err >&5
17955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17956 (exit $ac_status); } && {
17957 test -z "$ac_c_werror_flag" ||
17958 test ! -s conftest.err
17959 } && test -s conftest$ac_exeext &&
17960 $as_test_x conftest$ac_exeext; then
17961 eval "$as_ac_var=yes"
17962 else
17963 echo "$as_me: failed program was:" >&5
17964 sed 's/^/| /' conftest.$ac_ext >&5
17965
17966 eval "$as_ac_var=no"
17967 fi
17968
17969 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17970 conftest$ac_exeext conftest.$ac_ext
17971 fi
17972 ac_res=`eval echo '${'$as_ac_var'}'`
17973 { echo "$as_me:$LINENO: result: $ac_res" >&5
17974 echo "${ECHO_T}$ac_res" >&6; }
17975 if test `eval echo '${'$as_ac_var'}'` = yes; then
17976 cat >>confdefs.h <<_ACEOF
17977 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17978 _ACEOF
17979
17980 else
17981 # strftime is in -lintl on SCO UNIX.
17982 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
17983 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
17984 if test "${ac_cv_lib_intl_strftime+set}" = set; then
17985 echo $ECHO_N "(cached) $ECHO_C" >&6
17986 else
17987 ac_check_lib_save_LIBS=$LIBS
17988 LIBS="-lintl $LIBS"
17989 cat >conftest.$ac_ext <<_ACEOF
17990 /* confdefs.h. */
17991 _ACEOF
17992 cat confdefs.h >>conftest.$ac_ext
17993 cat >>conftest.$ac_ext <<_ACEOF
17994 /* end confdefs.h. */
17995
17996 /* Override any GCC internal prototype to avoid an error.
17997 Use char because int might match the return type of a GCC
17998 builtin and then its argument prototype would still apply. */
17999 #ifdef __cplusplus
18000 extern "C"
18001 #endif
18002 char strftime ();
18003 int
18004 main ()
18005 {
18006 return strftime ();
18007 ;
18008 return 0;
18009 }
18010 _ACEOF
18011 rm -f conftest.$ac_objext conftest$ac_exeext
18012 if { (ac_try="$ac_link"
18013 case "(($ac_try" in
18014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18015 *) ac_try_echo=$ac_try;;
18016 esac
18017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18018 (eval "$ac_link") 2>conftest.er1
18019 ac_status=$?
18020 grep -v '^ *+' conftest.er1 >conftest.err
18021 rm -f conftest.er1
18022 cat conftest.err >&5
18023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18024 (exit $ac_status); } && {
18025 test -z "$ac_c_werror_flag" ||
18026 test ! -s conftest.err
18027 } && test -s conftest$ac_exeext &&
18028 $as_test_x conftest$ac_exeext; then
18029 ac_cv_lib_intl_strftime=yes
18030 else
18031 echo "$as_me: failed program was:" >&5
18032 sed 's/^/| /' conftest.$ac_ext >&5
18033
18034 ac_cv_lib_intl_strftime=no
18035 fi
18036
18037 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18038 conftest$ac_exeext conftest.$ac_ext
18039 LIBS=$ac_check_lib_save_LIBS
18040 fi
18041 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18042 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18043 if test $ac_cv_lib_intl_strftime = yes; then
18044 cat >>confdefs.h <<\_ACEOF
18045 #define HAVE_STRFTIME 1
18046 _ACEOF
18047
18048 LIBS="-lintl $LIBS"
18049 fi
18050
18051 fi
18052 done
18053
18054
18055 # UNIX98 PTYs.
18056
18057 for ac_func in grantpt
18058 do
18059 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18060 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18061 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18062 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18063 echo $ECHO_N "(cached) $ECHO_C" >&6
18064 else
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18072 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18073 #define $ac_func innocuous_$ac_func
18074
18075 /* System header to define __stub macros and hopefully few prototypes,
18076 which can conflict with char $ac_func (); below.
18077 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18078 <limits.h> exists even on freestanding compilers. */
18079
18080 #ifdef __STDC__
18081 # include <limits.h>
18082 #else
18083 # include <assert.h>
18084 #endif
18085
18086 #undef $ac_func
18087
18088 /* Override any GCC internal prototype to avoid an error.
18089 Use char because int might match the return type of a GCC
18090 builtin and then its argument prototype would still apply. */
18091 #ifdef __cplusplus
18092 extern "C"
18093 #endif
18094 char $ac_func ();
18095 /* The GNU C library defines this for functions which it implements
18096 to always fail with ENOSYS. Some functions are actually named
18097 something starting with __ and the normal name is an alias. */
18098 #if defined __stub_$ac_func || defined __stub___$ac_func
18099 choke me
18100 #endif
18101
18102 int
18103 main ()
18104 {
18105 return $ac_func ();
18106 ;
18107 return 0;
18108 }
18109 _ACEOF
18110 rm -f conftest.$ac_objext conftest$ac_exeext
18111 if { (ac_try="$ac_link"
18112 case "(($ac_try" in
18113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18114 *) ac_try_echo=$ac_try;;
18115 esac
18116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18117 (eval "$ac_link") 2>conftest.er1
18118 ac_status=$?
18119 grep -v '^ *+' conftest.er1 >conftest.err
18120 rm -f conftest.er1
18121 cat conftest.err >&5
18122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18123 (exit $ac_status); } && {
18124 test -z "$ac_c_werror_flag" ||
18125 test ! -s conftest.err
18126 } && test -s conftest$ac_exeext &&
18127 $as_test_x conftest$ac_exeext; then
18128 eval "$as_ac_var=yes"
18129 else
18130 echo "$as_me: failed program was:" >&5
18131 sed 's/^/| /' conftest.$ac_ext >&5
18132
18133 eval "$as_ac_var=no"
18134 fi
18135
18136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18137 conftest$ac_exeext conftest.$ac_ext
18138 fi
18139 ac_res=`eval echo '${'$as_ac_var'}'`
18140 { echo "$as_me:$LINENO: result: $ac_res" >&5
18141 echo "${ECHO_T}$ac_res" >&6; }
18142 if test `eval echo '${'$as_ac_var'}'` = yes; then
18143 cat >>confdefs.h <<_ACEOF
18144 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18145 _ACEOF
18146
18147 fi
18148 done
18149
18150
18151 # PTY-related GNU extensions.
18152
18153 for ac_func in getpt
18154 do
18155 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18156 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18157 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18158 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161 cat >conftest.$ac_ext <<_ACEOF
18162 /* confdefs.h. */
18163 _ACEOF
18164 cat confdefs.h >>conftest.$ac_ext
18165 cat >>conftest.$ac_ext <<_ACEOF
18166 /* end confdefs.h. */
18167 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18168 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18169 #define $ac_func innocuous_$ac_func
18170
18171 /* System header to define __stub macros and hopefully few prototypes,
18172 which can conflict with char $ac_func (); below.
18173 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18174 <limits.h> exists even on freestanding compilers. */
18175
18176 #ifdef __STDC__
18177 # include <limits.h>
18178 #else
18179 # include <assert.h>
18180 #endif
18181
18182 #undef $ac_func
18183
18184 /* Override any GCC internal prototype to avoid an error.
18185 Use char because int might match the return type of a GCC
18186 builtin and then its argument prototype would still apply. */
18187 #ifdef __cplusplus
18188 extern "C"
18189 #endif
18190 char $ac_func ();
18191 /* The GNU C library defines this for functions which it implements
18192 to always fail with ENOSYS. Some functions are actually named
18193 something starting with __ and the normal name is an alias. */
18194 #if defined __stub_$ac_func || defined __stub___$ac_func
18195 choke me
18196 #endif
18197
18198 int
18199 main ()
18200 {
18201 return $ac_func ();
18202 ;
18203 return 0;
18204 }
18205 _ACEOF
18206 rm -f conftest.$ac_objext conftest$ac_exeext
18207 if { (ac_try="$ac_link"
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_link") 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_exeext &&
18223 $as_test_x conftest$ac_exeext; then
18224 eval "$as_ac_var=yes"
18225 else
18226 echo "$as_me: failed program was:" >&5
18227 sed 's/^/| /' conftest.$ac_ext >&5
18228
18229 eval "$as_ac_var=no"
18230 fi
18231
18232 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18233 conftest$ac_exeext conftest.$ac_ext
18234 fi
18235 ac_res=`eval echo '${'$as_ac_var'}'`
18236 { echo "$as_me:$LINENO: result: $ac_res" >&5
18237 echo "${ECHO_T}$ac_res" >&6; }
18238 if test `eval echo '${'$as_ac_var'}'` = yes; then
18239 cat >>confdefs.h <<_ACEOF
18240 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18241 _ACEOF
18242
18243 fi
18244 done
18245
18246
18247 # Check this now, so that we will NOT find the above functions in ncurses.
18248 # That is because we have not set up to link ncurses in lib-src.
18249 # It's better to believe a function is not available
18250 # than to expect to find it in ncurses.
18251
18252 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18253 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18254 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257 ac_check_lib_save_LIBS=$LIBS
18258 LIBS="-lncurses $LIBS"
18259 cat >conftest.$ac_ext <<_ACEOF
18260 /* confdefs.h. */
18261 _ACEOF
18262 cat confdefs.h >>conftest.$ac_ext
18263 cat >>conftest.$ac_ext <<_ACEOF
18264 /* end confdefs.h. */
18265
18266 /* Override any GCC internal prototype to avoid an error.
18267 Use char because int might match the return type of a GCC
18268 builtin and then its argument prototype would still apply. */
18269 #ifdef __cplusplus
18270 extern "C"
18271 #endif
18272 char tparm ();
18273 int
18274 main ()
18275 {
18276 return tparm ();
18277 ;
18278 return 0;
18279 }
18280 _ACEOF
18281 rm -f conftest.$ac_objext conftest$ac_exeext
18282 if { (ac_try="$ac_link"
18283 case "(($ac_try" in
18284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18285 *) ac_try_echo=$ac_try;;
18286 esac
18287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18288 (eval "$ac_link") 2>conftest.er1
18289 ac_status=$?
18290 grep -v '^ *+' conftest.er1 >conftest.err
18291 rm -f conftest.er1
18292 cat conftest.err >&5
18293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18294 (exit $ac_status); } && {
18295 test -z "$ac_c_werror_flag" ||
18296 test ! -s conftest.err
18297 } && test -s conftest$ac_exeext &&
18298 $as_test_x conftest$ac_exeext; then
18299 ac_cv_lib_ncurses_tparm=yes
18300 else
18301 echo "$as_me: failed program was:" >&5
18302 sed 's/^/| /' conftest.$ac_ext >&5
18303
18304 ac_cv_lib_ncurses_tparm=no
18305 fi
18306
18307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18308 conftest$ac_exeext conftest.$ac_ext
18309 LIBS=$ac_check_lib_save_LIBS
18310 fi
18311 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18312 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18313 if test $ac_cv_lib_ncurses_tparm = yes; then
18314 cat >>confdefs.h <<_ACEOF
18315 #define HAVE_LIBNCURSES 1
18316 _ACEOF
18317
18318 LIBS="-lncurses $LIBS"
18319
18320 fi
18321
18322
18323 # Do we need the Hesiod library to provide the support routines?
18324 if test "$with_hesiod" = yes ; then
18325 # Don't set $LIBS here -- see comments above.
18326 resolv=no
18327 { echo "$as_me:$LINENO: checking for res_send" >&5
18328 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18329 if test "${ac_cv_func_res_send+set}" = set; then
18330 echo $ECHO_N "(cached) $ECHO_C" >&6
18331 else
18332 cat >conftest.$ac_ext <<_ACEOF
18333 /* confdefs.h. */
18334 _ACEOF
18335 cat confdefs.h >>conftest.$ac_ext
18336 cat >>conftest.$ac_ext <<_ACEOF
18337 /* end confdefs.h. */
18338 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18339 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18340 #define res_send innocuous_res_send
18341
18342 /* System header to define __stub macros and hopefully few prototypes,
18343 which can conflict with char res_send (); below.
18344 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18345 <limits.h> exists even on freestanding compilers. */
18346
18347 #ifdef __STDC__
18348 # include <limits.h>
18349 #else
18350 # include <assert.h>
18351 #endif
18352
18353 #undef res_send
18354
18355 /* Override any GCC internal prototype to avoid an error.
18356 Use char because int might match the return type of a GCC
18357 builtin and then its argument prototype would still apply. */
18358 #ifdef __cplusplus
18359 extern "C"
18360 #endif
18361 char res_send ();
18362 /* The GNU C library defines this for functions which it implements
18363 to always fail with ENOSYS. Some functions are actually named
18364 something starting with __ and the normal name is an alias. */
18365 #if defined __stub_res_send || defined __stub___res_send
18366 choke me
18367 #endif
18368
18369 int
18370 main ()
18371 {
18372 return res_send ();
18373 ;
18374 return 0;
18375 }
18376 _ACEOF
18377 rm -f conftest.$ac_objext conftest$ac_exeext
18378 if { (ac_try="$ac_link"
18379 case "(($ac_try" in
18380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18381 *) ac_try_echo=$ac_try;;
18382 esac
18383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18384 (eval "$ac_link") 2>conftest.er1
18385 ac_status=$?
18386 grep -v '^ *+' conftest.er1 >conftest.err
18387 rm -f conftest.er1
18388 cat conftest.err >&5
18389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18390 (exit $ac_status); } && {
18391 test -z "$ac_c_werror_flag" ||
18392 test ! -s conftest.err
18393 } && test -s conftest$ac_exeext &&
18394 $as_test_x conftest$ac_exeext; then
18395 ac_cv_func_res_send=yes
18396 else
18397 echo "$as_me: failed program was:" >&5
18398 sed 's/^/| /' conftest.$ac_ext >&5
18399
18400 ac_cv_func_res_send=no
18401 fi
18402
18403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18404 conftest$ac_exeext conftest.$ac_ext
18405 fi
18406 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
18407 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
18408 if test $ac_cv_func_res_send = yes; then
18409 :
18410 else
18411 { echo "$as_me:$LINENO: checking for __res_send" >&5
18412 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
18413 if test "${ac_cv_func___res_send+set}" = set; then
18414 echo $ECHO_N "(cached) $ECHO_C" >&6
18415 else
18416 cat >conftest.$ac_ext <<_ACEOF
18417 /* confdefs.h. */
18418 _ACEOF
18419 cat confdefs.h >>conftest.$ac_ext
18420 cat >>conftest.$ac_ext <<_ACEOF
18421 /* end confdefs.h. */
18422 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
18423 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18424 #define __res_send innocuous___res_send
18425
18426 /* System header to define __stub macros and hopefully few prototypes,
18427 which can conflict with char __res_send (); below.
18428 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18429 <limits.h> exists even on freestanding compilers. */
18430
18431 #ifdef __STDC__
18432 # include <limits.h>
18433 #else
18434 # include <assert.h>
18435 #endif
18436
18437 #undef __res_send
18438
18439 /* Override any GCC internal prototype to avoid an error.
18440 Use char because int might match the return type of a GCC
18441 builtin and then its argument prototype would still apply. */
18442 #ifdef __cplusplus
18443 extern "C"
18444 #endif
18445 char __res_send ();
18446 /* The GNU C library defines this for functions which it implements
18447 to always fail with ENOSYS. Some functions are actually named
18448 something starting with __ and the normal name is an alias. */
18449 #if defined __stub___res_send || defined __stub_____res_send
18450 choke me
18451 #endif
18452
18453 int
18454 main ()
18455 {
18456 return __res_send ();
18457 ;
18458 return 0;
18459 }
18460 _ACEOF
18461 rm -f conftest.$ac_objext conftest$ac_exeext
18462 if { (ac_try="$ac_link"
18463 case "(($ac_try" in
18464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18465 *) ac_try_echo=$ac_try;;
18466 esac
18467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18468 (eval "$ac_link") 2>conftest.er1
18469 ac_status=$?
18470 grep -v '^ *+' conftest.er1 >conftest.err
18471 rm -f conftest.er1
18472 cat conftest.err >&5
18473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18474 (exit $ac_status); } && {
18475 test -z "$ac_c_werror_flag" ||
18476 test ! -s conftest.err
18477 } && test -s conftest$ac_exeext &&
18478 $as_test_x conftest$ac_exeext; then
18479 ac_cv_func___res_send=yes
18480 else
18481 echo "$as_me: failed program was:" >&5
18482 sed 's/^/| /' conftest.$ac_ext >&5
18483
18484 ac_cv_func___res_send=no
18485 fi
18486
18487 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18488 conftest$ac_exeext conftest.$ac_ext
18489 fi
18490 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
18491 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
18492 if test $ac_cv_func___res_send = yes; then
18493 :
18494 else
18495 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
18496 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
18497 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
18498 echo $ECHO_N "(cached) $ECHO_C" >&6
18499 else
18500 ac_check_lib_save_LIBS=$LIBS
18501 LIBS="-lresolv $LIBS"
18502 cat >conftest.$ac_ext <<_ACEOF
18503 /* confdefs.h. */
18504 _ACEOF
18505 cat confdefs.h >>conftest.$ac_ext
18506 cat >>conftest.$ac_ext <<_ACEOF
18507 /* end confdefs.h. */
18508
18509 /* Override any GCC internal prototype to avoid an error.
18510 Use char because int might match the return type of a GCC
18511 builtin and then its argument prototype would still apply. */
18512 #ifdef __cplusplus
18513 extern "C"
18514 #endif
18515 char res_send ();
18516 int
18517 main ()
18518 {
18519 return res_send ();
18520 ;
18521 return 0;
18522 }
18523 _ACEOF
18524 rm -f conftest.$ac_objext conftest$ac_exeext
18525 if { (ac_try="$ac_link"
18526 case "(($ac_try" in
18527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18528 *) ac_try_echo=$ac_try;;
18529 esac
18530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18531 (eval "$ac_link") 2>conftest.er1
18532 ac_status=$?
18533 grep -v '^ *+' conftest.er1 >conftest.err
18534 rm -f conftest.er1
18535 cat conftest.err >&5
18536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18537 (exit $ac_status); } && {
18538 test -z "$ac_c_werror_flag" ||
18539 test ! -s conftest.err
18540 } && test -s conftest$ac_exeext &&
18541 $as_test_x conftest$ac_exeext; then
18542 ac_cv_lib_resolv_res_send=yes
18543 else
18544 echo "$as_me: failed program was:" >&5
18545 sed 's/^/| /' conftest.$ac_ext >&5
18546
18547 ac_cv_lib_resolv_res_send=no
18548 fi
18549
18550 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18551 conftest$ac_exeext conftest.$ac_ext
18552 LIBS=$ac_check_lib_save_LIBS
18553 fi
18554 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
18555 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
18556 if test $ac_cv_lib_resolv_res_send = yes; then
18557 resolv=yes
18558 else
18559 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
18560 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
18561 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
18562 echo $ECHO_N "(cached) $ECHO_C" >&6
18563 else
18564 ac_check_lib_save_LIBS=$LIBS
18565 LIBS="-lresolv $LIBS"
18566 cat >conftest.$ac_ext <<_ACEOF
18567 /* confdefs.h. */
18568 _ACEOF
18569 cat confdefs.h >>conftest.$ac_ext
18570 cat >>conftest.$ac_ext <<_ACEOF
18571 /* end confdefs.h. */
18572
18573 /* Override any GCC internal prototype to avoid an error.
18574 Use char because int might match the return type of a GCC
18575 builtin and then its argument prototype would still apply. */
18576 #ifdef __cplusplus
18577 extern "C"
18578 #endif
18579 char __res_send ();
18580 int
18581 main ()
18582 {
18583 return __res_send ();
18584 ;
18585 return 0;
18586 }
18587 _ACEOF
18588 rm -f conftest.$ac_objext conftest$ac_exeext
18589 if { (ac_try="$ac_link"
18590 case "(($ac_try" in
18591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18592 *) ac_try_echo=$ac_try;;
18593 esac
18594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18595 (eval "$ac_link") 2>conftest.er1
18596 ac_status=$?
18597 grep -v '^ *+' conftest.er1 >conftest.err
18598 rm -f conftest.er1
18599 cat conftest.err >&5
18600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18601 (exit $ac_status); } && {
18602 test -z "$ac_c_werror_flag" ||
18603 test ! -s conftest.err
18604 } && test -s conftest$ac_exeext &&
18605 $as_test_x conftest$ac_exeext; then
18606 ac_cv_lib_resolv___res_send=yes
18607 else
18608 echo "$as_me: failed program was:" >&5
18609 sed 's/^/| /' conftest.$ac_ext >&5
18610
18611 ac_cv_lib_resolv___res_send=no
18612 fi
18613
18614 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18615 conftest$ac_exeext conftest.$ac_ext
18616 LIBS=$ac_check_lib_save_LIBS
18617 fi
18618 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
18619 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
18620 if test $ac_cv_lib_resolv___res_send = yes; then
18621 resolv=yes
18622 fi
18623
18624 fi
18625
18626 fi
18627
18628 fi
18629
18630 if test "$resolv" = yes ; then
18631 RESOLVLIB=-lresolv
18632
18633 cat >>confdefs.h <<\_ACEOF
18634 #define HAVE_LIBRESOLV 1
18635 _ACEOF
18636
18637 else
18638 RESOLVLIB=
18639 fi
18640 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
18641 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
18642 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
18643 echo $ECHO_N "(cached) $ECHO_C" >&6
18644 else
18645 cat >conftest.$ac_ext <<_ACEOF
18646 /* confdefs.h. */
18647 _ACEOF
18648 cat confdefs.h >>conftest.$ac_ext
18649 cat >>conftest.$ac_ext <<_ACEOF
18650 /* end confdefs.h. */
18651 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
18652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18653 #define hes_getmailhost innocuous_hes_getmailhost
18654
18655 /* System header to define __stub macros and hopefully few prototypes,
18656 which can conflict with char hes_getmailhost (); below.
18657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18658 <limits.h> exists even on freestanding compilers. */
18659
18660 #ifdef __STDC__
18661 # include <limits.h>
18662 #else
18663 # include <assert.h>
18664 #endif
18665
18666 #undef hes_getmailhost
18667
18668 /* Override any GCC internal prototype to avoid an error.
18669 Use char because int might match the return type of a GCC
18670 builtin and then its argument prototype would still apply. */
18671 #ifdef __cplusplus
18672 extern "C"
18673 #endif
18674 char hes_getmailhost ();
18675 /* The GNU C library defines this for functions which it implements
18676 to always fail with ENOSYS. Some functions are actually named
18677 something starting with __ and the normal name is an alias. */
18678 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
18679 choke me
18680 #endif
18681
18682 int
18683 main ()
18684 {
18685 return hes_getmailhost ();
18686 ;
18687 return 0;
18688 }
18689 _ACEOF
18690 rm -f conftest.$ac_objext conftest$ac_exeext
18691 if { (ac_try="$ac_link"
18692 case "(($ac_try" in
18693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18694 *) ac_try_echo=$ac_try;;
18695 esac
18696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18697 (eval "$ac_link") 2>conftest.er1
18698 ac_status=$?
18699 grep -v '^ *+' conftest.er1 >conftest.err
18700 rm -f conftest.er1
18701 cat conftest.err >&5
18702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18703 (exit $ac_status); } && {
18704 test -z "$ac_c_werror_flag" ||
18705 test ! -s conftest.err
18706 } && test -s conftest$ac_exeext &&
18707 $as_test_x conftest$ac_exeext; then
18708 ac_cv_func_hes_getmailhost=yes
18709 else
18710 echo "$as_me: failed program was:" >&5
18711 sed 's/^/| /' conftest.$ac_ext >&5
18712
18713 ac_cv_func_hes_getmailhost=no
18714 fi
18715
18716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18717 conftest$ac_exeext conftest.$ac_ext
18718 fi
18719 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
18720 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
18721 if test $ac_cv_func_hes_getmailhost = yes; then
18722 :
18723 else
18724 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
18725 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
18726 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
18727 echo $ECHO_N "(cached) $ECHO_C" >&6
18728 else
18729 ac_check_lib_save_LIBS=$LIBS
18730 LIBS="-lhesiod $RESOLVLIB $LIBS"
18731 cat >conftest.$ac_ext <<_ACEOF
18732 /* confdefs.h. */
18733 _ACEOF
18734 cat confdefs.h >>conftest.$ac_ext
18735 cat >>conftest.$ac_ext <<_ACEOF
18736 /* end confdefs.h. */
18737
18738 /* Override any GCC internal prototype to avoid an error.
18739 Use char because int might match the return type of a GCC
18740 builtin and then its argument prototype would still apply. */
18741 #ifdef __cplusplus
18742 extern "C"
18743 #endif
18744 char hes_getmailhost ();
18745 int
18746 main ()
18747 {
18748 return hes_getmailhost ();
18749 ;
18750 return 0;
18751 }
18752 _ACEOF
18753 rm -f conftest.$ac_objext conftest$ac_exeext
18754 if { (ac_try="$ac_link"
18755 case "(($ac_try" in
18756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18757 *) ac_try_echo=$ac_try;;
18758 esac
18759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18760 (eval "$ac_link") 2>conftest.er1
18761 ac_status=$?
18762 grep -v '^ *+' conftest.er1 >conftest.err
18763 rm -f conftest.er1
18764 cat conftest.err >&5
18765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18766 (exit $ac_status); } && {
18767 test -z "$ac_c_werror_flag" ||
18768 test ! -s conftest.err
18769 } && test -s conftest$ac_exeext &&
18770 $as_test_x conftest$ac_exeext; then
18771 ac_cv_lib_hesiod_hes_getmailhost=yes
18772 else
18773 echo "$as_me: failed program was:" >&5
18774 sed 's/^/| /' conftest.$ac_ext >&5
18775
18776 ac_cv_lib_hesiod_hes_getmailhost=no
18777 fi
18778
18779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18780 conftest$ac_exeext conftest.$ac_ext
18781 LIBS=$ac_check_lib_save_LIBS
18782 fi
18783 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
18784 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
18785 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
18786
18787 cat >>confdefs.h <<\_ACEOF
18788 #define HAVE_LIBHESIOD 1
18789 _ACEOF
18790
18791 else
18792 :
18793 fi
18794
18795 fi
18796
18797 fi
18798
18799 # These tell us which Kerberos-related libraries to use.
18800 if test "${with_kerberos+set}" = set; then
18801
18802 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
18803 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
18804 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
18805 echo $ECHO_N "(cached) $ECHO_C" >&6
18806 else
18807 ac_check_lib_save_LIBS=$LIBS
18808 LIBS="-lcom_err $LIBS"
18809 cat >conftest.$ac_ext <<_ACEOF
18810 /* confdefs.h. */
18811 _ACEOF
18812 cat confdefs.h >>conftest.$ac_ext
18813 cat >>conftest.$ac_ext <<_ACEOF
18814 /* end confdefs.h. */
18815
18816 /* Override any GCC internal prototype to avoid an error.
18817 Use char because int might match the return type of a GCC
18818 builtin and then its argument prototype would still apply. */
18819 #ifdef __cplusplus
18820 extern "C"
18821 #endif
18822 char com_err ();
18823 int
18824 main ()
18825 {
18826 return com_err ();
18827 ;
18828 return 0;
18829 }
18830 _ACEOF
18831 rm -f conftest.$ac_objext conftest$ac_exeext
18832 if { (ac_try="$ac_link"
18833 case "(($ac_try" in
18834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18835 *) ac_try_echo=$ac_try;;
18836 esac
18837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18838 (eval "$ac_link") 2>conftest.er1
18839 ac_status=$?
18840 grep -v '^ *+' conftest.er1 >conftest.err
18841 rm -f conftest.er1
18842 cat conftest.err >&5
18843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18844 (exit $ac_status); } && {
18845 test -z "$ac_c_werror_flag" ||
18846 test ! -s conftest.err
18847 } && test -s conftest$ac_exeext &&
18848 $as_test_x conftest$ac_exeext; then
18849 ac_cv_lib_com_err_com_err=yes
18850 else
18851 echo "$as_me: failed program was:" >&5
18852 sed 's/^/| /' conftest.$ac_ext >&5
18853
18854 ac_cv_lib_com_err_com_err=no
18855 fi
18856
18857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18858 conftest$ac_exeext conftest.$ac_ext
18859 LIBS=$ac_check_lib_save_LIBS
18860 fi
18861 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
18862 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
18863 if test $ac_cv_lib_com_err_com_err = yes; then
18864 cat >>confdefs.h <<_ACEOF
18865 #define HAVE_LIBCOM_ERR 1
18866 _ACEOF
18867
18868 LIBS="-lcom_err $LIBS"
18869
18870 fi
18871
18872
18873 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
18874 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
18875 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
18876 echo $ECHO_N "(cached) $ECHO_C" >&6
18877 else
18878 ac_check_lib_save_LIBS=$LIBS
18879 LIBS="-lk5crypto $LIBS"
18880 cat >conftest.$ac_ext <<_ACEOF
18881 /* confdefs.h. */
18882 _ACEOF
18883 cat confdefs.h >>conftest.$ac_ext
18884 cat >>conftest.$ac_ext <<_ACEOF
18885 /* end confdefs.h. */
18886
18887 /* Override any GCC internal prototype to avoid an error.
18888 Use char because int might match the return type of a GCC
18889 builtin and then its argument prototype would still apply. */
18890 #ifdef __cplusplus
18891 extern "C"
18892 #endif
18893 char mit_des_cbc_encrypt ();
18894 int
18895 main ()
18896 {
18897 return mit_des_cbc_encrypt ();
18898 ;
18899 return 0;
18900 }
18901 _ACEOF
18902 rm -f conftest.$ac_objext conftest$ac_exeext
18903 if { (ac_try="$ac_link"
18904 case "(($ac_try" in
18905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18906 *) ac_try_echo=$ac_try;;
18907 esac
18908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18909 (eval "$ac_link") 2>conftest.er1
18910 ac_status=$?
18911 grep -v '^ *+' conftest.er1 >conftest.err
18912 rm -f conftest.er1
18913 cat conftest.err >&5
18914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18915 (exit $ac_status); } && {
18916 test -z "$ac_c_werror_flag" ||
18917 test ! -s conftest.err
18918 } && test -s conftest$ac_exeext &&
18919 $as_test_x conftest$ac_exeext; then
18920 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
18921 else
18922 echo "$as_me: failed program was:" >&5
18923 sed 's/^/| /' conftest.$ac_ext >&5
18924
18925 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
18926 fi
18927
18928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18929 conftest$ac_exeext conftest.$ac_ext
18930 LIBS=$ac_check_lib_save_LIBS
18931 fi
18932 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
18933 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
18934 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
18935 cat >>confdefs.h <<_ACEOF
18936 #define HAVE_LIBK5CRYPTO 1
18937 _ACEOF
18938
18939 LIBS="-lk5crypto $LIBS"
18940
18941 fi
18942
18943
18944 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
18945 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
18946 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
18947 echo $ECHO_N "(cached) $ECHO_C" >&6
18948 else
18949 ac_check_lib_save_LIBS=$LIBS
18950 LIBS="-lcrypto $LIBS"
18951 cat >conftest.$ac_ext <<_ACEOF
18952 /* confdefs.h. */
18953 _ACEOF
18954 cat confdefs.h >>conftest.$ac_ext
18955 cat >>conftest.$ac_ext <<_ACEOF
18956 /* end confdefs.h. */
18957
18958 /* Override any GCC internal prototype to avoid an error.
18959 Use char because int might match the return type of a GCC
18960 builtin and then its argument prototype would still apply. */
18961 #ifdef __cplusplus
18962 extern "C"
18963 #endif
18964 char mit_des_cbc_encrypt ();
18965 int
18966 main ()
18967 {
18968 return mit_des_cbc_encrypt ();
18969 ;
18970 return 0;
18971 }
18972 _ACEOF
18973 rm -f conftest.$ac_objext conftest$ac_exeext
18974 if { (ac_try="$ac_link"
18975 case "(($ac_try" in
18976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18977 *) ac_try_echo=$ac_try;;
18978 esac
18979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18980 (eval "$ac_link") 2>conftest.er1
18981 ac_status=$?
18982 grep -v '^ *+' conftest.er1 >conftest.err
18983 rm -f conftest.er1
18984 cat conftest.err >&5
18985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18986 (exit $ac_status); } && {
18987 test -z "$ac_c_werror_flag" ||
18988 test ! -s conftest.err
18989 } && test -s conftest$ac_exeext &&
18990 $as_test_x conftest$ac_exeext; then
18991 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
18992 else
18993 echo "$as_me: failed program was:" >&5
18994 sed 's/^/| /' conftest.$ac_ext >&5
18995
18996 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
18997 fi
18998
18999 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19000 conftest$ac_exeext conftest.$ac_ext
19001 LIBS=$ac_check_lib_save_LIBS
19002 fi
19003 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19004 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19005 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19006 cat >>confdefs.h <<_ACEOF
19007 #define HAVE_LIBCRYPTO 1
19008 _ACEOF
19009
19010 LIBS="-lcrypto $LIBS"
19011
19012 fi
19013
19014
19015 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19016 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19017 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19018 echo $ECHO_N "(cached) $ECHO_C" >&6
19019 else
19020 ac_check_lib_save_LIBS=$LIBS
19021 LIBS="-lkrb5 $LIBS"
19022 cat >conftest.$ac_ext <<_ACEOF
19023 /* confdefs.h. */
19024 _ACEOF
19025 cat confdefs.h >>conftest.$ac_ext
19026 cat >>conftest.$ac_ext <<_ACEOF
19027 /* end confdefs.h. */
19028
19029 /* Override any GCC internal prototype to avoid an error.
19030 Use char because int might match the return type of a GCC
19031 builtin and then its argument prototype would still apply. */
19032 #ifdef __cplusplus
19033 extern "C"
19034 #endif
19035 char krb5_init_context ();
19036 int
19037 main ()
19038 {
19039 return krb5_init_context ();
19040 ;
19041 return 0;
19042 }
19043 _ACEOF
19044 rm -f conftest.$ac_objext conftest$ac_exeext
19045 if { (ac_try="$ac_link"
19046 case "(($ac_try" in
19047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048 *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051 (eval "$ac_link") 2>conftest.er1
19052 ac_status=$?
19053 grep -v '^ *+' conftest.er1 >conftest.err
19054 rm -f conftest.er1
19055 cat conftest.err >&5
19056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057 (exit $ac_status); } && {
19058 test -z "$ac_c_werror_flag" ||
19059 test ! -s conftest.err
19060 } && test -s conftest$ac_exeext &&
19061 $as_test_x conftest$ac_exeext; then
19062 ac_cv_lib_krb5_krb5_init_context=yes
19063 else
19064 echo "$as_me: failed program was:" >&5
19065 sed 's/^/| /' conftest.$ac_ext >&5
19066
19067 ac_cv_lib_krb5_krb5_init_context=no
19068 fi
19069
19070 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19071 conftest$ac_exeext conftest.$ac_ext
19072 LIBS=$ac_check_lib_save_LIBS
19073 fi
19074 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19075 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19076 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19077 cat >>confdefs.h <<_ACEOF
19078 #define HAVE_LIBKRB5 1
19079 _ACEOF
19080
19081 LIBS="-lkrb5 $LIBS"
19082
19083 fi
19084
19085 if test "${with_kerberos5+set}" != set; then
19086
19087 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19088 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19089 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19090 echo $ECHO_N "(cached) $ECHO_C" >&6
19091 else
19092 ac_check_lib_save_LIBS=$LIBS
19093 LIBS="-ldes425 $LIBS"
19094 cat >conftest.$ac_ext <<_ACEOF
19095 /* confdefs.h. */
19096 _ACEOF
19097 cat confdefs.h >>conftest.$ac_ext
19098 cat >>conftest.$ac_ext <<_ACEOF
19099 /* end confdefs.h. */
19100
19101 /* Override any GCC internal prototype to avoid an error.
19102 Use char because int might match the return type of a GCC
19103 builtin and then its argument prototype would still apply. */
19104 #ifdef __cplusplus
19105 extern "C"
19106 #endif
19107 char des_cbc_encrypt ();
19108 int
19109 main ()
19110 {
19111 return des_cbc_encrypt ();
19112 ;
19113 return 0;
19114 }
19115 _ACEOF
19116 rm -f conftest.$ac_objext conftest$ac_exeext
19117 if { (ac_try="$ac_link"
19118 case "(($ac_try" in
19119 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19120 *) ac_try_echo=$ac_try;;
19121 esac
19122 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19123 (eval "$ac_link") 2>conftest.er1
19124 ac_status=$?
19125 grep -v '^ *+' conftest.er1 >conftest.err
19126 rm -f conftest.er1
19127 cat conftest.err >&5
19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19129 (exit $ac_status); } && {
19130 test -z "$ac_c_werror_flag" ||
19131 test ! -s conftest.err
19132 } && test -s conftest$ac_exeext &&
19133 $as_test_x conftest$ac_exeext; then
19134 ac_cv_lib_des425_des_cbc_encrypt=yes
19135 else
19136 echo "$as_me: failed program was:" >&5
19137 sed 's/^/| /' conftest.$ac_ext >&5
19138
19139 ac_cv_lib_des425_des_cbc_encrypt=no
19140 fi
19141
19142 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19143 conftest$ac_exeext conftest.$ac_ext
19144 LIBS=$ac_check_lib_save_LIBS
19145 fi
19146 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19147 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19148 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19149 cat >>confdefs.h <<_ACEOF
19150 #define HAVE_LIBDES425 1
19151 _ACEOF
19152
19153 LIBS="-ldes425 $LIBS"
19154
19155 else
19156
19157 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19158 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19159 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19160 echo $ECHO_N "(cached) $ECHO_C" >&6
19161 else
19162 ac_check_lib_save_LIBS=$LIBS
19163 LIBS="-ldes $LIBS"
19164 cat >conftest.$ac_ext <<_ACEOF
19165 /* confdefs.h. */
19166 _ACEOF
19167 cat confdefs.h >>conftest.$ac_ext
19168 cat >>conftest.$ac_ext <<_ACEOF
19169 /* end confdefs.h. */
19170
19171 /* Override any GCC internal prototype to avoid an error.
19172 Use char because int might match the return type of a GCC
19173 builtin and then its argument prototype would still apply. */
19174 #ifdef __cplusplus
19175 extern "C"
19176 #endif
19177 char des_cbc_encrypt ();
19178 int
19179 main ()
19180 {
19181 return des_cbc_encrypt ();
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_lib_des_des_cbc_encrypt=yes
19205 else
19206 echo "$as_me: failed program was:" >&5
19207 sed 's/^/| /' conftest.$ac_ext >&5
19208
19209 ac_cv_lib_des_des_cbc_encrypt=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 LIBS=$ac_check_lib_save_LIBS
19215 fi
19216 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19217 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19218 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19219 cat >>confdefs.h <<_ACEOF
19220 #define HAVE_LIBDES 1
19221 _ACEOF
19222
19223 LIBS="-ldes $LIBS"
19224
19225 fi
19226
19227 fi
19228
19229
19230 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19231 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19232 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19233 echo $ECHO_N "(cached) $ECHO_C" >&6
19234 else
19235 ac_check_lib_save_LIBS=$LIBS
19236 LIBS="-lkrb4 $LIBS"
19237 cat >conftest.$ac_ext <<_ACEOF
19238 /* confdefs.h. */
19239 _ACEOF
19240 cat confdefs.h >>conftest.$ac_ext
19241 cat >>conftest.$ac_ext <<_ACEOF
19242 /* end confdefs.h. */
19243
19244 /* Override any GCC internal prototype to avoid an error.
19245 Use char because int might match the return type of a GCC
19246 builtin and then its argument prototype would still apply. */
19247 #ifdef __cplusplus
19248 extern "C"
19249 #endif
19250 char krb_get_cred ();
19251 int
19252 main ()
19253 {
19254 return krb_get_cred ();
19255 ;
19256 return 0;
19257 }
19258 _ACEOF
19259 rm -f conftest.$ac_objext conftest$ac_exeext
19260 if { (ac_try="$ac_link"
19261 case "(($ac_try" in
19262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263 *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266 (eval "$ac_link") 2>conftest.er1
19267 ac_status=$?
19268 grep -v '^ *+' conftest.er1 >conftest.err
19269 rm -f conftest.er1
19270 cat conftest.err >&5
19271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19272 (exit $ac_status); } && {
19273 test -z "$ac_c_werror_flag" ||
19274 test ! -s conftest.err
19275 } && test -s conftest$ac_exeext &&
19276 $as_test_x conftest$ac_exeext; then
19277 ac_cv_lib_krb4_krb_get_cred=yes
19278 else
19279 echo "$as_me: failed program was:" >&5
19280 sed 's/^/| /' conftest.$ac_ext >&5
19281
19282 ac_cv_lib_krb4_krb_get_cred=no
19283 fi
19284
19285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19286 conftest$ac_exeext conftest.$ac_ext
19287 LIBS=$ac_check_lib_save_LIBS
19288 fi
19289 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19290 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19291 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19292 cat >>confdefs.h <<_ACEOF
19293 #define HAVE_LIBKRB4 1
19294 _ACEOF
19295
19296 LIBS="-lkrb4 $LIBS"
19297
19298 else
19299
19300 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19301 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19302 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19303 echo $ECHO_N "(cached) $ECHO_C" >&6
19304 else
19305 ac_check_lib_save_LIBS=$LIBS
19306 LIBS="-lkrb $LIBS"
19307 cat >conftest.$ac_ext <<_ACEOF
19308 /* confdefs.h. */
19309 _ACEOF
19310 cat confdefs.h >>conftest.$ac_ext
19311 cat >>conftest.$ac_ext <<_ACEOF
19312 /* end confdefs.h. */
19313
19314 /* Override any GCC internal prototype to avoid an error.
19315 Use char because int might match the return type of a GCC
19316 builtin and then its argument prototype would still apply. */
19317 #ifdef __cplusplus
19318 extern "C"
19319 #endif
19320 char krb_get_cred ();
19321 int
19322 main ()
19323 {
19324 return krb_get_cred ();
19325 ;
19326 return 0;
19327 }
19328 _ACEOF
19329 rm -f conftest.$ac_objext conftest$ac_exeext
19330 if { (ac_try="$ac_link"
19331 case "(($ac_try" in
19332 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19333 *) ac_try_echo=$ac_try;;
19334 esac
19335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19336 (eval "$ac_link") 2>conftest.er1
19337 ac_status=$?
19338 grep -v '^ *+' conftest.er1 >conftest.err
19339 rm -f conftest.er1
19340 cat conftest.err >&5
19341 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19342 (exit $ac_status); } && {
19343 test -z "$ac_c_werror_flag" ||
19344 test ! -s conftest.err
19345 } && test -s conftest$ac_exeext &&
19346 $as_test_x conftest$ac_exeext; then
19347 ac_cv_lib_krb_krb_get_cred=yes
19348 else
19349 echo "$as_me: failed program was:" >&5
19350 sed 's/^/| /' conftest.$ac_ext >&5
19351
19352 ac_cv_lib_krb_krb_get_cred=no
19353 fi
19354
19355 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19356 conftest$ac_exeext conftest.$ac_ext
19357 LIBS=$ac_check_lib_save_LIBS
19358 fi
19359 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19360 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19361 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19362 cat >>confdefs.h <<_ACEOF
19363 #define HAVE_LIBKRB 1
19364 _ACEOF
19365
19366 LIBS="-lkrb $LIBS"
19367
19368 fi
19369
19370 fi
19371
19372 fi
19373
19374 if test "${with_kerberos5+set}" = set; then
19375
19376 for ac_header in krb5.h
19377 do
19378 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19383 echo $ECHO_N "(cached) $ECHO_C" >&6
19384 fi
19385 ac_res=`eval echo '${'$as_ac_Header'}'`
19386 { echo "$as_me:$LINENO: result: $ac_res" >&5
19387 echo "${ECHO_T}$ac_res" >&6; }
19388 else
19389 # Is the header compilable?
19390 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19391 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19392 cat >conftest.$ac_ext <<_ACEOF
19393 /* confdefs.h. */
19394 _ACEOF
19395 cat confdefs.h >>conftest.$ac_ext
19396 cat >>conftest.$ac_ext <<_ACEOF
19397 /* end confdefs.h. */
19398 $ac_includes_default
19399 #include <$ac_header>
19400 _ACEOF
19401 rm -f conftest.$ac_objext
19402 if { (ac_try="$ac_compile"
19403 case "(($ac_try" in
19404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19405 *) ac_try_echo=$ac_try;;
19406 esac
19407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19408 (eval "$ac_compile") 2>conftest.er1
19409 ac_status=$?
19410 grep -v '^ *+' conftest.er1 >conftest.err
19411 rm -f conftest.er1
19412 cat conftest.err >&5
19413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19414 (exit $ac_status); } && {
19415 test -z "$ac_c_werror_flag" ||
19416 test ! -s conftest.err
19417 } && test -s conftest.$ac_objext; then
19418 ac_header_compiler=yes
19419 else
19420 echo "$as_me: failed program was:" >&5
19421 sed 's/^/| /' conftest.$ac_ext >&5
19422
19423 ac_header_compiler=no
19424 fi
19425
19426 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19427 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19428 echo "${ECHO_T}$ac_header_compiler" >&6; }
19429
19430 # Is the header present?
19431 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19432 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19433 cat >conftest.$ac_ext <<_ACEOF
19434 /* confdefs.h. */
19435 _ACEOF
19436 cat confdefs.h >>conftest.$ac_ext
19437 cat >>conftest.$ac_ext <<_ACEOF
19438 /* end confdefs.h. */
19439 #include <$ac_header>
19440 _ACEOF
19441 if { (ac_try="$ac_cpp conftest.$ac_ext"
19442 case "(($ac_try" in
19443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19444 *) ac_try_echo=$ac_try;;
19445 esac
19446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19447 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19448 ac_status=$?
19449 grep -v '^ *+' conftest.er1 >conftest.err
19450 rm -f conftest.er1
19451 cat conftest.err >&5
19452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19453 (exit $ac_status); } >/dev/null && {
19454 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19455 test ! -s conftest.err
19456 }; then
19457 ac_header_preproc=yes
19458 else
19459 echo "$as_me: failed program was:" >&5
19460 sed 's/^/| /' conftest.$ac_ext >&5
19461
19462 ac_header_preproc=no
19463 fi
19464
19465 rm -f conftest.err conftest.$ac_ext
19466 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19467 echo "${ECHO_T}$ac_header_preproc" >&6; }
19468
19469 # So? What about this header?
19470 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19471 yes:no: )
19472 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19473 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19474 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19475 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19476 ac_header_preproc=yes
19477 ;;
19478 no:yes:* )
19479 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19480 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19481 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19482 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19483 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19484 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19485 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19486 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19487 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19488 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19489 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19490 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19491
19492 ;;
19493 esac
19494 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19495 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19496 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19497 echo $ECHO_N "(cached) $ECHO_C" >&6
19498 else
19499 eval "$as_ac_Header=\$ac_header_preproc"
19500 fi
19501 ac_res=`eval echo '${'$as_ac_Header'}'`
19502 { echo "$as_me:$LINENO: result: $ac_res" >&5
19503 echo "${ECHO_T}$ac_res" >&6; }
19504
19505 fi
19506 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19507 cat >>confdefs.h <<_ACEOF
19508 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19509 _ACEOF
19510
19511 fi
19512
19513 done
19514
19515 else
19516
19517 for ac_header in des.h
19518 do
19519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19521 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19524 echo $ECHO_N "(cached) $ECHO_C" >&6
19525 fi
19526 ac_res=`eval echo '${'$as_ac_Header'}'`
19527 { echo "$as_me:$LINENO: result: $ac_res" >&5
19528 echo "${ECHO_T}$ac_res" >&6; }
19529 else
19530 # Is the header compilable?
19531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19533 cat >conftest.$ac_ext <<_ACEOF
19534 /* confdefs.h. */
19535 _ACEOF
19536 cat confdefs.h >>conftest.$ac_ext
19537 cat >>conftest.$ac_ext <<_ACEOF
19538 /* end confdefs.h. */
19539 $ac_includes_default
19540 #include <$ac_header>
19541 _ACEOF
19542 rm -f conftest.$ac_objext
19543 if { (ac_try="$ac_compile"
19544 case "(($ac_try" in
19545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19546 *) ac_try_echo=$ac_try;;
19547 esac
19548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19549 (eval "$ac_compile") 2>conftest.er1
19550 ac_status=$?
19551 grep -v '^ *+' conftest.er1 >conftest.err
19552 rm -f conftest.er1
19553 cat conftest.err >&5
19554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19555 (exit $ac_status); } && {
19556 test -z "$ac_c_werror_flag" ||
19557 test ! -s conftest.err
19558 } && test -s conftest.$ac_objext; then
19559 ac_header_compiler=yes
19560 else
19561 echo "$as_me: failed program was:" >&5
19562 sed 's/^/| /' conftest.$ac_ext >&5
19563
19564 ac_header_compiler=no
19565 fi
19566
19567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19569 echo "${ECHO_T}$ac_header_compiler" >&6; }
19570
19571 # Is the header present?
19572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19574 cat >conftest.$ac_ext <<_ACEOF
19575 /* confdefs.h. */
19576 _ACEOF
19577 cat confdefs.h >>conftest.$ac_ext
19578 cat >>conftest.$ac_ext <<_ACEOF
19579 /* end confdefs.h. */
19580 #include <$ac_header>
19581 _ACEOF
19582 if { (ac_try="$ac_cpp conftest.$ac_ext"
19583 case "(($ac_try" in
19584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585 *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19589 ac_status=$?
19590 grep -v '^ *+' conftest.er1 >conftest.err
19591 rm -f conftest.er1
19592 cat conftest.err >&5
19593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19594 (exit $ac_status); } >/dev/null && {
19595 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19596 test ! -s conftest.err
19597 }; then
19598 ac_header_preproc=yes
19599 else
19600 echo "$as_me: failed program was:" >&5
19601 sed 's/^/| /' conftest.$ac_ext >&5
19602
19603 ac_header_preproc=no
19604 fi
19605
19606 rm -f conftest.err conftest.$ac_ext
19607 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19608 echo "${ECHO_T}$ac_header_preproc" >&6; }
19609
19610 # So? What about this header?
19611 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19612 yes:no: )
19613 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19614 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19615 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19616 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19617 ac_header_preproc=yes
19618 ;;
19619 no:yes:* )
19620 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19621 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19622 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19623 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19624 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19625 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19626 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19627 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19628 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19629 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19630 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19631 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19632
19633 ;;
19634 esac
19635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19638 echo $ECHO_N "(cached) $ECHO_C" >&6
19639 else
19640 eval "$as_ac_Header=\$ac_header_preproc"
19641 fi
19642 ac_res=`eval echo '${'$as_ac_Header'}'`
19643 { echo "$as_me:$LINENO: result: $ac_res" >&5
19644 echo "${ECHO_T}$ac_res" >&6; }
19645
19646 fi
19647 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19648 cat >>confdefs.h <<_ACEOF
19649 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19650 _ACEOF
19651
19652 else
19653
19654 for ac_header in kerberosIV/des.h
19655 do
19656 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19658 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19659 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19660 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19661 echo $ECHO_N "(cached) $ECHO_C" >&6
19662 fi
19663 ac_res=`eval echo '${'$as_ac_Header'}'`
19664 { echo "$as_me:$LINENO: result: $ac_res" >&5
19665 echo "${ECHO_T}$ac_res" >&6; }
19666 else
19667 # Is the header compilable?
19668 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19669 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 $ac_includes_default
19677 #include <$ac_header>
19678 _ACEOF
19679 rm -f conftest.$ac_objext
19680 if { (ac_try="$ac_compile"
19681 case "(($ac_try" in
19682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19683 *) ac_try_echo=$ac_try;;
19684 esac
19685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19686 (eval "$ac_compile") 2>conftest.er1
19687 ac_status=$?
19688 grep -v '^ *+' conftest.er1 >conftest.err
19689 rm -f conftest.er1
19690 cat conftest.err >&5
19691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692 (exit $ac_status); } && {
19693 test -z "$ac_c_werror_flag" ||
19694 test ! -s conftest.err
19695 } && test -s conftest.$ac_objext; then
19696 ac_header_compiler=yes
19697 else
19698 echo "$as_me: failed program was:" >&5
19699 sed 's/^/| /' conftest.$ac_ext >&5
19700
19701 ac_header_compiler=no
19702 fi
19703
19704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19706 echo "${ECHO_T}$ac_header_compiler" >&6; }
19707
19708 # Is the header present?
19709 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19710 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19711 cat >conftest.$ac_ext <<_ACEOF
19712 /* confdefs.h. */
19713 _ACEOF
19714 cat confdefs.h >>conftest.$ac_ext
19715 cat >>conftest.$ac_ext <<_ACEOF
19716 /* end confdefs.h. */
19717 #include <$ac_header>
19718 _ACEOF
19719 if { (ac_try="$ac_cpp conftest.$ac_ext"
19720 case "(($ac_try" in
19721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19722 *) ac_try_echo=$ac_try;;
19723 esac
19724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19726 ac_status=$?
19727 grep -v '^ *+' conftest.er1 >conftest.err
19728 rm -f conftest.er1
19729 cat conftest.err >&5
19730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19731 (exit $ac_status); } >/dev/null && {
19732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19733 test ! -s conftest.err
19734 }; then
19735 ac_header_preproc=yes
19736 else
19737 echo "$as_me: failed program was:" >&5
19738 sed 's/^/| /' conftest.$ac_ext >&5
19739
19740 ac_header_preproc=no
19741 fi
19742
19743 rm -f conftest.err conftest.$ac_ext
19744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19745 echo "${ECHO_T}$ac_header_preproc" >&6; }
19746
19747 # So? What about this header?
19748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19749 yes:no: )
19750 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19751 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19752 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19753 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19754 ac_header_preproc=yes
19755 ;;
19756 no:yes:* )
19757 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19758 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19759 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19760 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19761 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19762 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19763 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19764 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19765 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19766 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19767 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19768 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19769
19770 ;;
19771 esac
19772 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19773 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19774 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19775 echo $ECHO_N "(cached) $ECHO_C" >&6
19776 else
19777 eval "$as_ac_Header=\$ac_header_preproc"
19778 fi
19779 ac_res=`eval echo '${'$as_ac_Header'}'`
19780 { echo "$as_me:$LINENO: result: $ac_res" >&5
19781 echo "${ECHO_T}$ac_res" >&6; }
19782
19783 fi
19784 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19785 cat >>confdefs.h <<_ACEOF
19786 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19787 _ACEOF
19788
19789 else
19790
19791 for ac_header in kerberos/des.h
19792 do
19793 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19795 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19796 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19797 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19798 echo $ECHO_N "(cached) $ECHO_C" >&6
19799 fi
19800 ac_res=`eval echo '${'$as_ac_Header'}'`
19801 { echo "$as_me:$LINENO: result: $ac_res" >&5
19802 echo "${ECHO_T}$ac_res" >&6; }
19803 else
19804 # Is the header compilable?
19805 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19806 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19807 cat >conftest.$ac_ext <<_ACEOF
19808 /* confdefs.h. */
19809 _ACEOF
19810 cat confdefs.h >>conftest.$ac_ext
19811 cat >>conftest.$ac_ext <<_ACEOF
19812 /* end confdefs.h. */
19813 $ac_includes_default
19814 #include <$ac_header>
19815 _ACEOF
19816 rm -f conftest.$ac_objext
19817 if { (ac_try="$ac_compile"
19818 case "(($ac_try" in
19819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19820 *) ac_try_echo=$ac_try;;
19821 esac
19822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19823 (eval "$ac_compile") 2>conftest.er1
19824 ac_status=$?
19825 grep -v '^ *+' conftest.er1 >conftest.err
19826 rm -f conftest.er1
19827 cat conftest.err >&5
19828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19829 (exit $ac_status); } && {
19830 test -z "$ac_c_werror_flag" ||
19831 test ! -s conftest.err
19832 } && test -s conftest.$ac_objext; then
19833 ac_header_compiler=yes
19834 else
19835 echo "$as_me: failed program was:" >&5
19836 sed 's/^/| /' conftest.$ac_ext >&5
19837
19838 ac_header_compiler=no
19839 fi
19840
19841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19842 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19843 echo "${ECHO_T}$ac_header_compiler" >&6; }
19844
19845 # Is the header present?
19846 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19847 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19848 cat >conftest.$ac_ext <<_ACEOF
19849 /* confdefs.h. */
19850 _ACEOF
19851 cat confdefs.h >>conftest.$ac_ext
19852 cat >>conftest.$ac_ext <<_ACEOF
19853 /* end confdefs.h. */
19854 #include <$ac_header>
19855 _ACEOF
19856 if { (ac_try="$ac_cpp conftest.$ac_ext"
19857 case "(($ac_try" in
19858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19859 *) ac_try_echo=$ac_try;;
19860 esac
19861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19862 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19863 ac_status=$?
19864 grep -v '^ *+' conftest.er1 >conftest.err
19865 rm -f conftest.er1
19866 cat conftest.err >&5
19867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19868 (exit $ac_status); } >/dev/null && {
19869 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
19870 test ! -s conftest.err
19871 }; then
19872 ac_header_preproc=yes
19873 else
19874 echo "$as_me: failed program was:" >&5
19875 sed 's/^/| /' conftest.$ac_ext >&5
19876
19877 ac_header_preproc=no
19878 fi
19879
19880 rm -f conftest.err conftest.$ac_ext
19881 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19882 echo "${ECHO_T}$ac_header_preproc" >&6; }
19883
19884 # So? What about this header?
19885 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19886 yes:no: )
19887 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19888 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19889 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19890 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19891 ac_header_preproc=yes
19892 ;;
19893 no:yes:* )
19894 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19895 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19896 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
19897 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
19898 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19899 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19900 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
19901 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
19902 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19903 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19904 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19905 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19906
19907 ;;
19908 esac
19909 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19910 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19911 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19912 echo $ECHO_N "(cached) $ECHO_C" >&6
19913 else
19914 eval "$as_ac_Header=\$ac_header_preproc"
19915 fi
19916 ac_res=`eval echo '${'$as_ac_Header'}'`
19917 { echo "$as_me:$LINENO: result: $ac_res" >&5
19918 echo "${ECHO_T}$ac_res" >&6; }
19919
19920 fi
19921 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19922 cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19924 _ACEOF
19925
19926 fi
19927
19928 done
19929
19930 fi
19931
19932 done
19933
19934 fi
19935
19936 done
19937
19938
19939 for ac_header in krb.h
19940 do
19941 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19942 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19943 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19944 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19945 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19946 echo $ECHO_N "(cached) $ECHO_C" >&6
19947 fi
19948 ac_res=`eval echo '${'$as_ac_Header'}'`
19949 { echo "$as_me:$LINENO: result: $ac_res" >&5
19950 echo "${ECHO_T}$ac_res" >&6; }
19951 else
19952 # Is the header compilable?
19953 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19954 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19955 cat >conftest.$ac_ext <<_ACEOF
19956 /* confdefs.h. */
19957 _ACEOF
19958 cat confdefs.h >>conftest.$ac_ext
19959 cat >>conftest.$ac_ext <<_ACEOF
19960 /* end confdefs.h. */
19961 $ac_includes_default
19962 #include <$ac_header>
19963 _ACEOF
19964 rm -f conftest.$ac_objext
19965 if { (ac_try="$ac_compile"
19966 case "(($ac_try" in
19967 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19968 *) ac_try_echo=$ac_try;;
19969 esac
19970 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19971 (eval "$ac_compile") 2>conftest.er1
19972 ac_status=$?
19973 grep -v '^ *+' conftest.er1 >conftest.err
19974 rm -f conftest.er1
19975 cat conftest.err >&5
19976 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19977 (exit $ac_status); } && {
19978 test -z "$ac_c_werror_flag" ||
19979 test ! -s conftest.err
19980 } && test -s conftest.$ac_objext; then
19981 ac_header_compiler=yes
19982 else
19983 echo "$as_me: failed program was:" >&5
19984 sed 's/^/| /' conftest.$ac_ext >&5
19985
19986 ac_header_compiler=no
19987 fi
19988
19989 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19990 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19991 echo "${ECHO_T}$ac_header_compiler" >&6; }
19992
19993 # Is the header present?
19994 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19995 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19996 cat >conftest.$ac_ext <<_ACEOF
19997 /* confdefs.h. */
19998 _ACEOF
19999 cat confdefs.h >>conftest.$ac_ext
20000 cat >>conftest.$ac_ext <<_ACEOF
20001 /* end confdefs.h. */
20002 #include <$ac_header>
20003 _ACEOF
20004 if { (ac_try="$ac_cpp conftest.$ac_ext"
20005 case "(($ac_try" in
20006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20007 *) ac_try_echo=$ac_try;;
20008 esac
20009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20010 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20011 ac_status=$?
20012 grep -v '^ *+' conftest.er1 >conftest.err
20013 rm -f conftest.er1
20014 cat conftest.err >&5
20015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20016 (exit $ac_status); } >/dev/null && {
20017 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20018 test ! -s conftest.err
20019 }; then
20020 ac_header_preproc=yes
20021 else
20022 echo "$as_me: failed program was:" >&5
20023 sed 's/^/| /' conftest.$ac_ext >&5
20024
20025 ac_header_preproc=no
20026 fi
20027
20028 rm -f conftest.err conftest.$ac_ext
20029 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20030 echo "${ECHO_T}$ac_header_preproc" >&6; }
20031
20032 # So? What about this header?
20033 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20034 yes:no: )
20035 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20036 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20037 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20038 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20039 ac_header_preproc=yes
20040 ;;
20041 no:yes:* )
20042 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20043 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20044 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20045 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20046 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20047 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20048 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20049 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20050 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20051 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20052 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20053 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20054
20055 ;;
20056 esac
20057 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20058 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20059 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20060 echo $ECHO_N "(cached) $ECHO_C" >&6
20061 else
20062 eval "$as_ac_Header=\$ac_header_preproc"
20063 fi
20064 ac_res=`eval echo '${'$as_ac_Header'}'`
20065 { echo "$as_me:$LINENO: result: $ac_res" >&5
20066 echo "${ECHO_T}$ac_res" >&6; }
20067
20068 fi
20069 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20070 cat >>confdefs.h <<_ACEOF
20071 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20072 _ACEOF
20073
20074 else
20075
20076 for ac_header in kerberosIV/krb.h
20077 do
20078 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20080 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20081 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20082 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 fi
20085 ac_res=`eval echo '${'$as_ac_Header'}'`
20086 { echo "$as_me:$LINENO: result: $ac_res" >&5
20087 echo "${ECHO_T}$ac_res" >&6; }
20088 else
20089 # Is the header compilable?
20090 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20091 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20092 cat >conftest.$ac_ext <<_ACEOF
20093 /* confdefs.h. */
20094 _ACEOF
20095 cat confdefs.h >>conftest.$ac_ext
20096 cat >>conftest.$ac_ext <<_ACEOF
20097 /* end confdefs.h. */
20098 $ac_includes_default
20099 #include <$ac_header>
20100 _ACEOF
20101 rm -f conftest.$ac_objext
20102 if { (ac_try="$ac_compile"
20103 case "(($ac_try" in
20104 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20105 *) ac_try_echo=$ac_try;;
20106 esac
20107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20108 (eval "$ac_compile") 2>conftest.er1
20109 ac_status=$?
20110 grep -v '^ *+' conftest.er1 >conftest.err
20111 rm -f conftest.er1
20112 cat conftest.err >&5
20113 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20114 (exit $ac_status); } && {
20115 test -z "$ac_c_werror_flag" ||
20116 test ! -s conftest.err
20117 } && test -s conftest.$ac_objext; then
20118 ac_header_compiler=yes
20119 else
20120 echo "$as_me: failed program was:" >&5
20121 sed 's/^/| /' conftest.$ac_ext >&5
20122
20123 ac_header_compiler=no
20124 fi
20125
20126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20127 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20128 echo "${ECHO_T}$ac_header_compiler" >&6; }
20129
20130 # Is the header present?
20131 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20132 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20133 cat >conftest.$ac_ext <<_ACEOF
20134 /* confdefs.h. */
20135 _ACEOF
20136 cat confdefs.h >>conftest.$ac_ext
20137 cat >>conftest.$ac_ext <<_ACEOF
20138 /* end confdefs.h. */
20139 #include <$ac_header>
20140 _ACEOF
20141 if { (ac_try="$ac_cpp conftest.$ac_ext"
20142 case "(($ac_try" in
20143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20144 *) ac_try_echo=$ac_try;;
20145 esac
20146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20147 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20148 ac_status=$?
20149 grep -v '^ *+' conftest.er1 >conftest.err
20150 rm -f conftest.er1
20151 cat conftest.err >&5
20152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20153 (exit $ac_status); } >/dev/null && {
20154 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20155 test ! -s conftest.err
20156 }; then
20157 ac_header_preproc=yes
20158 else
20159 echo "$as_me: failed program was:" >&5
20160 sed 's/^/| /' conftest.$ac_ext >&5
20161
20162 ac_header_preproc=no
20163 fi
20164
20165 rm -f conftest.err conftest.$ac_ext
20166 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20167 echo "${ECHO_T}$ac_header_preproc" >&6; }
20168
20169 # So? What about this header?
20170 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20171 yes:no: )
20172 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20173 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20174 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20175 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20176 ac_header_preproc=yes
20177 ;;
20178 no:yes:* )
20179 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20180 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20181 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20182 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20183 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20184 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20185 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20186 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20187 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20188 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20189 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20190 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20191
20192 ;;
20193 esac
20194 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20195 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20196 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20197 echo $ECHO_N "(cached) $ECHO_C" >&6
20198 else
20199 eval "$as_ac_Header=\$ac_header_preproc"
20200 fi
20201 ac_res=`eval echo '${'$as_ac_Header'}'`
20202 { echo "$as_me:$LINENO: result: $ac_res" >&5
20203 echo "${ECHO_T}$ac_res" >&6; }
20204
20205 fi
20206 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20207 cat >>confdefs.h <<_ACEOF
20208 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20209 _ACEOF
20210
20211 else
20212
20213 for ac_header in kerberos/krb.h
20214 do
20215 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20216 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20217 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20218 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20220 echo $ECHO_N "(cached) $ECHO_C" >&6
20221 fi
20222 ac_res=`eval echo '${'$as_ac_Header'}'`
20223 { echo "$as_me:$LINENO: result: $ac_res" >&5
20224 echo "${ECHO_T}$ac_res" >&6; }
20225 else
20226 # Is the header compilable?
20227 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20228 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235 $ac_includes_default
20236 #include <$ac_header>
20237 _ACEOF
20238 rm -f conftest.$ac_objext
20239 if { (ac_try="$ac_compile"
20240 case "(($ac_try" in
20241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20242 *) ac_try_echo=$ac_try;;
20243 esac
20244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20245 (eval "$ac_compile") 2>conftest.er1
20246 ac_status=$?
20247 grep -v '^ *+' conftest.er1 >conftest.err
20248 rm -f conftest.er1
20249 cat conftest.err >&5
20250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20251 (exit $ac_status); } && {
20252 test -z "$ac_c_werror_flag" ||
20253 test ! -s conftest.err
20254 } && test -s conftest.$ac_objext; then
20255 ac_header_compiler=yes
20256 else
20257 echo "$as_me: failed program was:" >&5
20258 sed 's/^/| /' conftest.$ac_ext >&5
20259
20260 ac_header_compiler=no
20261 fi
20262
20263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20264 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20265 echo "${ECHO_T}$ac_header_compiler" >&6; }
20266
20267 # Is the header present?
20268 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20269 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276 #include <$ac_header>
20277 _ACEOF
20278 if { (ac_try="$ac_cpp conftest.$ac_ext"
20279 case "(($ac_try" in
20280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20281 *) ac_try_echo=$ac_try;;
20282 esac
20283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20284 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20285 ac_status=$?
20286 grep -v '^ *+' conftest.er1 >conftest.err
20287 rm -f conftest.er1
20288 cat conftest.err >&5
20289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20290 (exit $ac_status); } >/dev/null && {
20291 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20292 test ! -s conftest.err
20293 }; then
20294 ac_header_preproc=yes
20295 else
20296 echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299 ac_header_preproc=no
20300 fi
20301
20302 rm -f conftest.err conftest.$ac_ext
20303 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20304 echo "${ECHO_T}$ac_header_preproc" >&6; }
20305
20306 # So? What about this header?
20307 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20308 yes:no: )
20309 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20310 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20311 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20312 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20313 ac_header_preproc=yes
20314 ;;
20315 no:yes:* )
20316 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20317 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20318 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20319 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20320 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20321 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20322 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20323 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20324 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20325 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20326 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20327 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20328
20329 ;;
20330 esac
20331 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20332 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20333 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20334 echo $ECHO_N "(cached) $ECHO_C" >&6
20335 else
20336 eval "$as_ac_Header=\$ac_header_preproc"
20337 fi
20338 ac_res=`eval echo '${'$as_ac_Header'}'`
20339 { echo "$as_me:$LINENO: result: $ac_res" >&5
20340 echo "${ECHO_T}$ac_res" >&6; }
20341
20342 fi
20343 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20344 cat >>confdefs.h <<_ACEOF
20345 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20346 _ACEOF
20347
20348 fi
20349
20350 done
20351
20352 fi
20353
20354 done
20355
20356 fi
20357
20358 done
20359
20360 fi
20361
20362 for ac_header in com_err.h
20363 do
20364 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20366 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20367 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20368 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20369 echo $ECHO_N "(cached) $ECHO_C" >&6
20370 fi
20371 ac_res=`eval echo '${'$as_ac_Header'}'`
20372 { echo "$as_me:$LINENO: result: $ac_res" >&5
20373 echo "${ECHO_T}$ac_res" >&6; }
20374 else
20375 # Is the header compilable?
20376 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20377 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20378 cat >conftest.$ac_ext <<_ACEOF
20379 /* confdefs.h. */
20380 _ACEOF
20381 cat confdefs.h >>conftest.$ac_ext
20382 cat >>conftest.$ac_ext <<_ACEOF
20383 /* end confdefs.h. */
20384 $ac_includes_default
20385 #include <$ac_header>
20386 _ACEOF
20387 rm -f conftest.$ac_objext
20388 if { (ac_try="$ac_compile"
20389 case "(($ac_try" in
20390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20391 *) ac_try_echo=$ac_try;;
20392 esac
20393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20394 (eval "$ac_compile") 2>conftest.er1
20395 ac_status=$?
20396 grep -v '^ *+' conftest.er1 >conftest.err
20397 rm -f conftest.er1
20398 cat conftest.err >&5
20399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20400 (exit $ac_status); } && {
20401 test -z "$ac_c_werror_flag" ||
20402 test ! -s conftest.err
20403 } && test -s conftest.$ac_objext; then
20404 ac_header_compiler=yes
20405 else
20406 echo "$as_me: failed program was:" >&5
20407 sed 's/^/| /' conftest.$ac_ext >&5
20408
20409 ac_header_compiler=no
20410 fi
20411
20412 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20413 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20414 echo "${ECHO_T}$ac_header_compiler" >&6; }
20415
20416 # Is the header present?
20417 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20418 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20419 cat >conftest.$ac_ext <<_ACEOF
20420 /* confdefs.h. */
20421 _ACEOF
20422 cat confdefs.h >>conftest.$ac_ext
20423 cat >>conftest.$ac_ext <<_ACEOF
20424 /* end confdefs.h. */
20425 #include <$ac_header>
20426 _ACEOF
20427 if { (ac_try="$ac_cpp conftest.$ac_ext"
20428 case "(($ac_try" in
20429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20430 *) ac_try_echo=$ac_try;;
20431 esac
20432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20433 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20434 ac_status=$?
20435 grep -v '^ *+' conftest.er1 >conftest.err
20436 rm -f conftest.er1
20437 cat conftest.err >&5
20438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20439 (exit $ac_status); } >/dev/null && {
20440 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20441 test ! -s conftest.err
20442 }; then
20443 ac_header_preproc=yes
20444 else
20445 echo "$as_me: failed program was:" >&5
20446 sed 's/^/| /' conftest.$ac_ext >&5
20447
20448 ac_header_preproc=no
20449 fi
20450
20451 rm -f conftest.err conftest.$ac_ext
20452 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20453 echo "${ECHO_T}$ac_header_preproc" >&6; }
20454
20455 # So? What about this header?
20456 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20457 yes:no: )
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20459 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20461 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20462 ac_header_preproc=yes
20463 ;;
20464 no:yes:* )
20465 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20466 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20467 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20468 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20469 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20470 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20471 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20472 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20473 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20474 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20475 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20476 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20477
20478 ;;
20479 esac
20480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20483 echo $ECHO_N "(cached) $ECHO_C" >&6
20484 else
20485 eval "$as_ac_Header=\$ac_header_preproc"
20486 fi
20487 ac_res=`eval echo '${'$as_ac_Header'}'`
20488 { echo "$as_me:$LINENO: result: $ac_res" >&5
20489 echo "${ECHO_T}$ac_res" >&6; }
20490
20491 fi
20492 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20493 cat >>confdefs.h <<_ACEOF
20494 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20495 _ACEOF
20496
20497 fi
20498
20499 done
20500
20501 fi
20502
20503 # Solaris requires -lintl if you want strerror (which calls dgettext)
20504 # to return localized messages.
20505
20506 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
20507 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
20508 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 ac_check_lib_save_LIBS=$LIBS
20512 LIBS="-lintl $LIBS"
20513 cat >conftest.$ac_ext <<_ACEOF
20514 /* confdefs.h. */
20515 _ACEOF
20516 cat confdefs.h >>conftest.$ac_ext
20517 cat >>conftest.$ac_ext <<_ACEOF
20518 /* end confdefs.h. */
20519
20520 /* Override any GCC internal prototype to avoid an error.
20521 Use char because int might match the return type of a GCC
20522 builtin and then its argument prototype would still apply. */
20523 #ifdef __cplusplus
20524 extern "C"
20525 #endif
20526 char dgettext ();
20527 int
20528 main ()
20529 {
20530 return dgettext ();
20531 ;
20532 return 0;
20533 }
20534 _ACEOF
20535 rm -f conftest.$ac_objext conftest$ac_exeext
20536 if { (ac_try="$ac_link"
20537 case "(($ac_try" in
20538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20539 *) ac_try_echo=$ac_try;;
20540 esac
20541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20542 (eval "$ac_link") 2>conftest.er1
20543 ac_status=$?
20544 grep -v '^ *+' conftest.er1 >conftest.err
20545 rm -f conftest.er1
20546 cat conftest.err >&5
20547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20548 (exit $ac_status); } && {
20549 test -z "$ac_c_werror_flag" ||
20550 test ! -s conftest.err
20551 } && test -s conftest$ac_exeext &&
20552 $as_test_x conftest$ac_exeext; then
20553 ac_cv_lib_intl_dgettext=yes
20554 else
20555 echo "$as_me: failed program was:" >&5
20556 sed 's/^/| /' conftest.$ac_ext >&5
20557
20558 ac_cv_lib_intl_dgettext=no
20559 fi
20560
20561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20562 conftest$ac_exeext conftest.$ac_ext
20563 LIBS=$ac_check_lib_save_LIBS
20564 fi
20565 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
20566 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
20567 if test $ac_cv_lib_intl_dgettext = yes; then
20568 cat >>confdefs.h <<_ACEOF
20569 #define HAVE_LIBINTL 1
20570 _ACEOF
20571
20572 LIBS="-lintl $LIBS"
20573
20574 fi
20575
20576
20577 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
20578 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
20579 if test "${emacs_cv_localtime_cache+set}" = set; then
20580 echo $ECHO_N "(cached) $ECHO_C" >&6
20581 else
20582 if test x$ac_cv_func_tzset = xyes; then
20583 if test "$cross_compiling" = yes; then
20584 # If we have tzset, assume the worst when cross-compiling.
20585 emacs_cv_localtime_cache=yes
20586 else
20587 cat >conftest.$ac_ext <<_ACEOF
20588 /* confdefs.h. */
20589 _ACEOF
20590 cat confdefs.h >>conftest.$ac_ext
20591 cat >>conftest.$ac_ext <<_ACEOF
20592 /* end confdefs.h. */
20593 #include <time.h>
20594 extern char **environ;
20595 unset_TZ ()
20596 {
20597 char **from, **to;
20598 for (to = from = environ; (*to = *from); from++)
20599 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
20600 to++;
20601 }
20602 char TZ_GMT0[] = "TZ=GMT0";
20603 char TZ_PST8[] = "TZ=PST8";
20604 main()
20605 {
20606 time_t now = time ((time_t *) 0);
20607 int hour_GMT0, hour_unset;
20608 if (putenv (TZ_GMT0) != 0)
20609 exit (1);
20610 hour_GMT0 = localtime (&now)->tm_hour;
20611 unset_TZ ();
20612 hour_unset = localtime (&now)->tm_hour;
20613 if (putenv (TZ_PST8) != 0)
20614 exit (1);
20615 if (localtime (&now)->tm_hour == hour_GMT0)
20616 exit (1);
20617 unset_TZ ();
20618 if (localtime (&now)->tm_hour != hour_unset)
20619 exit (1);
20620 exit (0);
20621 }
20622 _ACEOF
20623 rm -f conftest$ac_exeext
20624 if { (ac_try="$ac_link"
20625 case "(($ac_try" in
20626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20627 *) ac_try_echo=$ac_try;;
20628 esac
20629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20630 (eval "$ac_link") 2>&5
20631 ac_status=$?
20632 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20633 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20634 { (case "(($ac_try" in
20635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20636 *) ac_try_echo=$ac_try;;
20637 esac
20638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20639 (eval "$ac_try") 2>&5
20640 ac_status=$?
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); }; }; then
20643 emacs_cv_localtime_cache=no
20644 else
20645 echo "$as_me: program exited with status $ac_status" >&5
20646 echo "$as_me: failed program was:" >&5
20647 sed 's/^/| /' conftest.$ac_ext >&5
20648
20649 ( exit $ac_status )
20650 emacs_cv_localtime_cache=yes
20651 fi
20652 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20653 fi
20654
20655
20656 else
20657 # If we lack tzset, report that localtime does not cache TZ,
20658 # since we can't invalidate the cache if we don't have tzset.
20659 emacs_cv_localtime_cache=no
20660 fi
20661 fi
20662 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
20663 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
20664 if test $emacs_cv_localtime_cache = yes; then
20665
20666 cat >>confdefs.h <<\_ACEOF
20667 #define LOCALTIME_CACHE 1
20668 _ACEOF
20669
20670 fi
20671
20672 if test "x$HAVE_TIMEVAL" = xyes; then
20673
20674 for ac_func in gettimeofday
20675 do
20676 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20677 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20678 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20679 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 else
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h. */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20689 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20690 #define $ac_func innocuous_$ac_func
20691
20692 /* System header to define __stub macros and hopefully few prototypes,
20693 which can conflict with char $ac_func (); below.
20694 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20695 <limits.h> exists even on freestanding compilers. */
20696
20697 #ifdef __STDC__
20698 # include <limits.h>
20699 #else
20700 # include <assert.h>
20701 #endif
20702
20703 #undef $ac_func
20704
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char $ac_func ();
20712 /* The GNU C library defines this for functions which it implements
20713 to always fail with ENOSYS. Some functions are actually named
20714 something starting with __ and the normal name is an alias. */
20715 #if defined __stub_$ac_func || defined __stub___$ac_func
20716 choke me
20717 #endif
20718
20719 int
20720 main ()
20721 {
20722 return $ac_func ();
20723 ;
20724 return 0;
20725 }
20726 _ACEOF
20727 rm -f conftest.$ac_objext conftest$ac_exeext
20728 if { (ac_try="$ac_link"
20729 case "(($ac_try" in
20730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20731 *) ac_try_echo=$ac_try;;
20732 esac
20733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20734 (eval "$ac_link") 2>conftest.er1
20735 ac_status=$?
20736 grep -v '^ *+' conftest.er1 >conftest.err
20737 rm -f conftest.er1
20738 cat conftest.err >&5
20739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20740 (exit $ac_status); } && {
20741 test -z "$ac_c_werror_flag" ||
20742 test ! -s conftest.err
20743 } && test -s conftest$ac_exeext &&
20744 $as_test_x conftest$ac_exeext; then
20745 eval "$as_ac_var=yes"
20746 else
20747 echo "$as_me: failed program was:" >&5
20748 sed 's/^/| /' conftest.$ac_ext >&5
20749
20750 eval "$as_ac_var=no"
20751 fi
20752
20753 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20754 conftest$ac_exeext conftest.$ac_ext
20755 fi
20756 ac_res=`eval echo '${'$as_ac_var'}'`
20757 { echo "$as_me:$LINENO: result: $ac_res" >&5
20758 echo "${ECHO_T}$ac_res" >&6; }
20759 if test `eval echo '${'$as_ac_var'}'` = yes; then
20760 cat >>confdefs.h <<_ACEOF
20761 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20762 _ACEOF
20763
20764 fi
20765 done
20766
20767 if test $ac_cv_func_gettimeofday = yes; then
20768 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
20769 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
20770 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
20771 echo $ECHO_N "(cached) $ECHO_C" >&6
20772 else
20773 cat >conftest.$ac_ext <<_ACEOF
20774 /* confdefs.h. */
20775 _ACEOF
20776 cat confdefs.h >>conftest.$ac_ext
20777 cat >>conftest.$ac_ext <<_ACEOF
20778 /* end confdefs.h. */
20779
20780 #ifdef TIME_WITH_SYS_TIME
20781 #include <sys/time.h>
20782 #include <time.h>
20783 #else
20784 #ifdef HAVE_SYS_TIME_H
20785 #include <sys/time.h>
20786 #else
20787 #include <time.h>
20788 #endif
20789 #endif
20790 int
20791 main ()
20792 {
20793 struct timeval time;
20794 gettimeofday (&time, 0);
20795 ;
20796 return 0;
20797 }
20798 _ACEOF
20799 rm -f conftest.$ac_objext
20800 if { (ac_try="$ac_compile"
20801 case "(($ac_try" in
20802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20803 *) ac_try_echo=$ac_try;;
20804 esac
20805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20806 (eval "$ac_compile") 2>conftest.er1
20807 ac_status=$?
20808 grep -v '^ *+' conftest.er1 >conftest.err
20809 rm -f conftest.er1
20810 cat conftest.err >&5
20811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20812 (exit $ac_status); } && {
20813 test -z "$ac_c_werror_flag" ||
20814 test ! -s conftest.err
20815 } && test -s conftest.$ac_objext; then
20816 emacs_cv_gettimeofday_two_arguments=yes
20817 else
20818 echo "$as_me: failed program was:" >&5
20819 sed 's/^/| /' conftest.$ac_ext >&5
20820
20821 emacs_cv_gettimeofday_two_arguments=no
20822 fi
20823
20824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20825 fi
20826 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
20827 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
20828 if test $emacs_cv_gettimeofday_two_arguments = no; then
20829
20830 cat >>confdefs.h <<\_ACEOF
20831 #define GETTIMEOFDAY_ONE_ARGUMENT 1
20832 _ACEOF
20833
20834 fi
20835 fi
20836 fi
20837
20838 # This defines (or not) HAVE_TZNAME and HAVE_TM_ZONE.
20839 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
20840 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
20841 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
20842 echo $ECHO_N "(cached) $ECHO_C" >&6
20843 else
20844 cat >conftest.$ac_ext <<_ACEOF
20845 /* confdefs.h. */
20846 _ACEOF
20847 cat confdefs.h >>conftest.$ac_ext
20848 cat >>conftest.$ac_ext <<_ACEOF
20849 /* end confdefs.h. */
20850 #include <sys/types.h>
20851 #include <$ac_cv_struct_tm>
20852
20853
20854 int
20855 main ()
20856 {
20857 static struct tm ac_aggr;
20858 if (ac_aggr.tm_zone)
20859 return 0;
20860 ;
20861 return 0;
20862 }
20863 _ACEOF
20864 rm -f conftest.$ac_objext
20865 if { (ac_try="$ac_compile"
20866 case "(($ac_try" in
20867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20868 *) ac_try_echo=$ac_try;;
20869 esac
20870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20871 (eval "$ac_compile") 2>conftest.er1
20872 ac_status=$?
20873 grep -v '^ *+' conftest.er1 >conftest.err
20874 rm -f conftest.er1
20875 cat conftest.err >&5
20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20877 (exit $ac_status); } && {
20878 test -z "$ac_c_werror_flag" ||
20879 test ! -s conftest.err
20880 } && test -s conftest.$ac_objext; then
20881 ac_cv_member_struct_tm_tm_zone=yes
20882 else
20883 echo "$as_me: failed program was:" >&5
20884 sed 's/^/| /' conftest.$ac_ext >&5
20885
20886 cat >conftest.$ac_ext <<_ACEOF
20887 /* confdefs.h. */
20888 _ACEOF
20889 cat confdefs.h >>conftest.$ac_ext
20890 cat >>conftest.$ac_ext <<_ACEOF
20891 /* end confdefs.h. */
20892 #include <sys/types.h>
20893 #include <$ac_cv_struct_tm>
20894
20895
20896 int
20897 main ()
20898 {
20899 static struct tm ac_aggr;
20900 if (sizeof ac_aggr.tm_zone)
20901 return 0;
20902 ;
20903 return 0;
20904 }
20905 _ACEOF
20906 rm -f conftest.$ac_objext
20907 if { (ac_try="$ac_compile"
20908 case "(($ac_try" in
20909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20910 *) ac_try_echo=$ac_try;;
20911 esac
20912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20913 (eval "$ac_compile") 2>conftest.er1
20914 ac_status=$?
20915 grep -v '^ *+' conftest.er1 >conftest.err
20916 rm -f conftest.er1
20917 cat conftest.err >&5
20918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20919 (exit $ac_status); } && {
20920 test -z "$ac_c_werror_flag" ||
20921 test ! -s conftest.err
20922 } && test -s conftest.$ac_objext; then
20923 ac_cv_member_struct_tm_tm_zone=yes
20924 else
20925 echo "$as_me: failed program was:" >&5
20926 sed 's/^/| /' conftest.$ac_ext >&5
20927
20928 ac_cv_member_struct_tm_tm_zone=no
20929 fi
20930
20931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20932 fi
20933
20934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20935 fi
20936 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
20937 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
20938 if test $ac_cv_member_struct_tm_tm_zone = yes; then
20939
20940 cat >>confdefs.h <<_ACEOF
20941 #define HAVE_STRUCT_TM_TM_ZONE 1
20942 _ACEOF
20943
20944
20945 fi
20946
20947 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
20948
20949 cat >>confdefs.h <<\_ACEOF
20950 #define HAVE_TM_ZONE 1
20951 _ACEOF
20952
20953 else
20954 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
20955 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
20956 if test "${ac_cv_have_decl_tzname+set}" = set; then
20957 echo $ECHO_N "(cached) $ECHO_C" >&6
20958 else
20959 cat >conftest.$ac_ext <<_ACEOF
20960 /* confdefs.h. */
20961 _ACEOF
20962 cat confdefs.h >>conftest.$ac_ext
20963 cat >>conftest.$ac_ext <<_ACEOF
20964 /* end confdefs.h. */
20965 #include <time.h>
20966
20967 int
20968 main ()
20969 {
20970 #ifndef tzname
20971 (void) tzname;
20972 #endif
20973
20974 ;
20975 return 0;
20976 }
20977 _ACEOF
20978 rm -f conftest.$ac_objext
20979 if { (ac_try="$ac_compile"
20980 case "(($ac_try" in
20981 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20982 *) ac_try_echo=$ac_try;;
20983 esac
20984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20985 (eval "$ac_compile") 2>conftest.er1
20986 ac_status=$?
20987 grep -v '^ *+' conftest.er1 >conftest.err
20988 rm -f conftest.er1
20989 cat conftest.err >&5
20990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20991 (exit $ac_status); } && {
20992 test -z "$ac_c_werror_flag" ||
20993 test ! -s conftest.err
20994 } && test -s conftest.$ac_objext; then
20995 ac_cv_have_decl_tzname=yes
20996 else
20997 echo "$as_me: failed program was:" >&5
20998 sed 's/^/| /' conftest.$ac_ext >&5
20999
21000 ac_cv_have_decl_tzname=no
21001 fi
21002
21003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21004 fi
21005 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
21006 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
21007 if test $ac_cv_have_decl_tzname = yes; then
21008
21009 cat >>confdefs.h <<_ACEOF
21010 #define HAVE_DECL_TZNAME 1
21011 _ACEOF
21012
21013
21014 else
21015 cat >>confdefs.h <<_ACEOF
21016 #define HAVE_DECL_TZNAME 0
21017 _ACEOF
21018
21019
21020 fi
21021
21022
21023 { echo "$as_me:$LINENO: checking for tzname" >&5
21024 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
21025 if test "${ac_cv_var_tzname+set}" = set; then
21026 echo $ECHO_N "(cached) $ECHO_C" >&6
21027 else
21028 cat >conftest.$ac_ext <<_ACEOF
21029 /* confdefs.h. */
21030 _ACEOF
21031 cat confdefs.h >>conftest.$ac_ext
21032 cat >>conftest.$ac_ext <<_ACEOF
21033 /* end confdefs.h. */
21034 #include <time.h>
21035 #if !HAVE_DECL_TZNAME
21036 extern char *tzname[];
21037 #endif
21038
21039 int
21040 main ()
21041 {
21042 return tzname[0][0];
21043 ;
21044 return 0;
21045 }
21046 _ACEOF
21047 rm -f conftest.$ac_objext conftest$ac_exeext
21048 if { (ac_try="$ac_link"
21049 case "(($ac_try" in
21050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21051 *) ac_try_echo=$ac_try;;
21052 esac
21053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21054 (eval "$ac_link") 2>conftest.er1
21055 ac_status=$?
21056 grep -v '^ *+' conftest.er1 >conftest.err
21057 rm -f conftest.er1
21058 cat conftest.err >&5
21059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21060 (exit $ac_status); } && {
21061 test -z "$ac_c_werror_flag" ||
21062 test ! -s conftest.err
21063 } && test -s conftest$ac_exeext &&
21064 $as_test_x conftest$ac_exeext; then
21065 ac_cv_var_tzname=yes
21066 else
21067 echo "$as_me: failed program was:" >&5
21068 sed 's/^/| /' conftest.$ac_ext >&5
21069
21070 ac_cv_var_tzname=no
21071 fi
21072
21073 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21074 conftest$ac_exeext conftest.$ac_ext
21075 fi
21076 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
21077 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
21078 if test $ac_cv_var_tzname = yes; then
21079
21080 cat >>confdefs.h <<\_ACEOF
21081 #define HAVE_TZNAME 1
21082 _ACEOF
21083
21084 fi
21085 fi
21086
21087
21088 if test "$ac_cv_func_gettimeofday" = yes; then
21089 { echo "$as_me:$LINENO: checking for struct timezone" >&5
21090 echo $ECHO_N "checking for struct timezone... $ECHO_C" >&6; }
21091 if test "${emacs_cv_struct_timezone+set}" = set; then
21092 echo $ECHO_N "(cached) $ECHO_C" >&6
21093 else
21094 cat >conftest.$ac_ext <<_ACEOF
21095 /* confdefs.h. */
21096 _ACEOF
21097 cat confdefs.h >>conftest.$ac_ext
21098 cat >>conftest.$ac_ext <<_ACEOF
21099 /* end confdefs.h. */
21100 #include <sys/time.h>
21101 int
21102 main ()
21103 {
21104 struct timezone tz;
21105 ;
21106 return 0;
21107 }
21108 _ACEOF
21109 rm -f conftest.$ac_objext
21110 if { (ac_try="$ac_compile"
21111 case "(($ac_try" in
21112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21113 *) ac_try_echo=$ac_try;;
21114 esac
21115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21116 (eval "$ac_compile") 2>conftest.er1
21117 ac_status=$?
21118 grep -v '^ *+' conftest.er1 >conftest.err
21119 rm -f conftest.er1
21120 cat conftest.err >&5
21121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21122 (exit $ac_status); } && {
21123 test -z "$ac_c_werror_flag" ||
21124 test ! -s conftest.err
21125 } && test -s conftest.$ac_objext; then
21126 if test "$cross_compiling" = yes; then
21127 emacs_cv_struct_timezone=yes
21128 else
21129 cat >conftest.$ac_ext <<_ACEOF
21130 /* confdefs.h. */
21131 _ACEOF
21132 cat confdefs.h >>conftest.$ac_ext
21133 cat >>conftest.$ac_ext <<_ACEOF
21134 /* end confdefs.h. */
21135
21136 #ifdef TIME_WITH_SYS_TIME
21137 #include <sys/time.h>
21138 #include <time.h>
21139 #else
21140 #ifdef HAVE_SYS_TIME_H
21141 #include <sys/time.h>
21142 #else
21143 #include <time.h>
21144 #endif
21145 #endif
21146 main () {
21147 struct timeval time;
21148 struct timezone dummy;
21149 exit (gettimeofday (&time, &dummy));
21150 }
21151 _ACEOF
21152 rm -f conftest$ac_exeext
21153 if { (ac_try="$ac_link"
21154 case "(($ac_try" in
21155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21156 *) ac_try_echo=$ac_try;;
21157 esac
21158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21159 (eval "$ac_link") 2>&5
21160 ac_status=$?
21161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21163 { (case "(($ac_try" in
21164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21165 *) ac_try_echo=$ac_try;;
21166 esac
21167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21168 (eval "$ac_try") 2>&5
21169 ac_status=$?
21170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21171 (exit $ac_status); }; }; then
21172 emacs_cv_struct_timezone=yes
21173 else
21174 echo "$as_me: program exited with status $ac_status" >&5
21175 echo "$as_me: failed program was:" >&5
21176 sed 's/^/| /' conftest.$ac_ext >&5
21177
21178 ( exit $ac_status )
21179 emacs_cv_struct_timezone=no
21180 fi
21181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21182 fi
21183
21184
21185 else
21186 echo "$as_me: failed program was:" >&5
21187 sed 's/^/| /' conftest.$ac_ext >&5
21188
21189 emacs_cv_struct_timezone=no
21190 fi
21191
21192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21193 fi
21194 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timezone" >&5
21195 echo "${ECHO_T}$emacs_cv_struct_timezone" >&6; }
21196 fi
21197
21198 ok_so_far=yes
21199 { echo "$as_me:$LINENO: checking for socket" >&5
21200 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21201 if test "${ac_cv_func_socket+set}" = set; then
21202 echo $ECHO_N "(cached) $ECHO_C" >&6
21203 else
21204 cat >conftest.$ac_ext <<_ACEOF
21205 /* confdefs.h. */
21206 _ACEOF
21207 cat confdefs.h >>conftest.$ac_ext
21208 cat >>conftest.$ac_ext <<_ACEOF
21209 /* end confdefs.h. */
21210 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21211 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21212 #define socket innocuous_socket
21213
21214 /* System header to define __stub macros and hopefully few prototypes,
21215 which can conflict with char socket (); below.
21216 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21217 <limits.h> exists even on freestanding compilers. */
21218
21219 #ifdef __STDC__
21220 # include <limits.h>
21221 #else
21222 # include <assert.h>
21223 #endif
21224
21225 #undef socket
21226
21227 /* Override any GCC internal prototype to avoid an error.
21228 Use char because int might match the return type of a GCC
21229 builtin and then its argument prototype would still apply. */
21230 #ifdef __cplusplus
21231 extern "C"
21232 #endif
21233 char socket ();
21234 /* The GNU C library defines this for functions which it implements
21235 to always fail with ENOSYS. Some functions are actually named
21236 something starting with __ and the normal name is an alias. */
21237 #if defined __stub_socket || defined __stub___socket
21238 choke me
21239 #endif
21240
21241 int
21242 main ()
21243 {
21244 return socket ();
21245 ;
21246 return 0;
21247 }
21248 _ACEOF
21249 rm -f conftest.$ac_objext conftest$ac_exeext
21250 if { (ac_try="$ac_link"
21251 case "(($ac_try" in
21252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21253 *) ac_try_echo=$ac_try;;
21254 esac
21255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21256 (eval "$ac_link") 2>conftest.er1
21257 ac_status=$?
21258 grep -v '^ *+' conftest.er1 >conftest.err
21259 rm -f conftest.er1
21260 cat conftest.err >&5
21261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21262 (exit $ac_status); } && {
21263 test -z "$ac_c_werror_flag" ||
21264 test ! -s conftest.err
21265 } && test -s conftest$ac_exeext &&
21266 $as_test_x conftest$ac_exeext; then
21267 ac_cv_func_socket=yes
21268 else
21269 echo "$as_me: failed program was:" >&5
21270 sed 's/^/| /' conftest.$ac_ext >&5
21271
21272 ac_cv_func_socket=no
21273 fi
21274
21275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21276 conftest$ac_exeext conftest.$ac_ext
21277 fi
21278 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21279 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21280 if test $ac_cv_func_socket = yes; then
21281 :
21282 else
21283 ok_so_far=no
21284 fi
21285
21286 if test $ok_so_far = yes; then
21287 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21288 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21289 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21290 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21291 echo $ECHO_N "(cached) $ECHO_C" >&6
21292 fi
21293 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21294 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21295 else
21296 # Is the header compilable?
21297 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21298 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 #include <netinet/in.h>
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_header_compiler=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_header_compiler=no
21331 fi
21332
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21335 echo "${ECHO_T}$ac_header_compiler" >&6; }
21336
21337 # Is the header present?
21338 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21339 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
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 #include <netinet/in.h>
21347 _ACEOF
21348 if { (ac_try="$ac_cpp conftest.$ac_ext"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } >/dev/null && {
21361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 }; then
21364 ac_header_preproc=yes
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ac_header_preproc=no
21370 fi
21371
21372 rm -f conftest.err conftest.$ac_ext
21373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21374 echo "${ECHO_T}$ac_header_preproc" >&6; }
21375
21376 # So? What about this header?
21377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21378 yes:no: )
21379 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21380 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21382 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21383 ac_header_preproc=yes
21384 ;;
21385 no:yes:* )
21386 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21387 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21389 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21391 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21393 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21395 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21397 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21398
21399 ;;
21400 esac
21401 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21402 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21403 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406 ac_cv_header_netinet_in_h=$ac_header_preproc
21407 fi
21408 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21409 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21410
21411 fi
21412 if test $ac_cv_header_netinet_in_h = yes; then
21413 :
21414 else
21415 ok_so_far=no
21416 fi
21417
21418
21419 fi
21420 if test $ok_so_far = yes; then
21421 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21422 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21423 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21424 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21425 echo $ECHO_N "(cached) $ECHO_C" >&6
21426 fi
21427 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21428 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21429 else
21430 # Is the header compilable?
21431 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21432 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21433 cat >conftest.$ac_ext <<_ACEOF
21434 /* confdefs.h. */
21435 _ACEOF
21436 cat confdefs.h >>conftest.$ac_ext
21437 cat >>conftest.$ac_ext <<_ACEOF
21438 /* end confdefs.h. */
21439 $ac_includes_default
21440 #include <arpa/inet.h>
21441 _ACEOF
21442 rm -f conftest.$ac_objext
21443 if { (ac_try="$ac_compile"
21444 case "(($ac_try" in
21445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21446 *) ac_try_echo=$ac_try;;
21447 esac
21448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21449 (eval "$ac_compile") 2>conftest.er1
21450 ac_status=$?
21451 grep -v '^ *+' conftest.er1 >conftest.err
21452 rm -f conftest.er1
21453 cat conftest.err >&5
21454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21455 (exit $ac_status); } && {
21456 test -z "$ac_c_werror_flag" ||
21457 test ! -s conftest.err
21458 } && test -s conftest.$ac_objext; then
21459 ac_header_compiler=yes
21460 else
21461 echo "$as_me: failed program was:" >&5
21462 sed 's/^/| /' conftest.$ac_ext >&5
21463
21464 ac_header_compiler=no
21465 fi
21466
21467 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21468 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21469 echo "${ECHO_T}$ac_header_compiler" >&6; }
21470
21471 # Is the header present?
21472 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21473 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21474 cat >conftest.$ac_ext <<_ACEOF
21475 /* confdefs.h. */
21476 _ACEOF
21477 cat confdefs.h >>conftest.$ac_ext
21478 cat >>conftest.$ac_ext <<_ACEOF
21479 /* end confdefs.h. */
21480 #include <arpa/inet.h>
21481 _ACEOF
21482 if { (ac_try="$ac_cpp conftest.$ac_ext"
21483 case "(($ac_try" in
21484 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21485 *) ac_try_echo=$ac_try;;
21486 esac
21487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21488 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21489 ac_status=$?
21490 grep -v '^ *+' conftest.er1 >conftest.err
21491 rm -f conftest.er1
21492 cat conftest.err >&5
21493 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21494 (exit $ac_status); } >/dev/null && {
21495 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21496 test ! -s conftest.err
21497 }; then
21498 ac_header_preproc=yes
21499 else
21500 echo "$as_me: failed program was:" >&5
21501 sed 's/^/| /' conftest.$ac_ext >&5
21502
21503 ac_header_preproc=no
21504 fi
21505
21506 rm -f conftest.err conftest.$ac_ext
21507 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21508 echo "${ECHO_T}$ac_header_preproc" >&6; }
21509
21510 # So? What about this header?
21511 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21512 yes:no: )
21513 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21514 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21515 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21516 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21517 ac_header_preproc=yes
21518 ;;
21519 no:yes:* )
21520 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21521 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21522 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21523 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21524 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21525 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21526 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21527 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21528 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21529 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21530 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21531 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21532
21533 ;;
21534 esac
21535 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21536 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21537 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21538 echo $ECHO_N "(cached) $ECHO_C" >&6
21539 else
21540 ac_cv_header_arpa_inet_h=$ac_header_preproc
21541 fi
21542 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21543 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21544
21545 fi
21546 if test $ac_cv_header_arpa_inet_h = yes; then
21547 :
21548 else
21549 ok_so_far=no
21550 fi
21551
21552
21553 fi
21554 if test $ok_so_far = yes; then
21555
21556 cat >>confdefs.h <<\_ACEOF
21557 #define HAVE_INET_SOCKETS 1
21558 _ACEOF
21559
21560 fi
21561
21562
21563 for ac_header in sys/ioctl.h
21564 do
21565 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21566 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21567 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21568 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21569 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21570 echo $ECHO_N "(cached) $ECHO_C" >&6
21571 fi
21572 ac_res=`eval echo '${'$as_ac_Header'}'`
21573 { echo "$as_me:$LINENO: result: $ac_res" >&5
21574 echo "${ECHO_T}$ac_res" >&6; }
21575 else
21576 # Is the header compilable?
21577 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21578 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21579 cat >conftest.$ac_ext <<_ACEOF
21580 /* confdefs.h. */
21581 _ACEOF
21582 cat confdefs.h >>conftest.$ac_ext
21583 cat >>conftest.$ac_ext <<_ACEOF
21584 /* end confdefs.h. */
21585 $ac_includes_default
21586 #include <$ac_header>
21587 _ACEOF
21588 rm -f conftest.$ac_objext
21589 if { (ac_try="$ac_compile"
21590 case "(($ac_try" in
21591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21592 *) ac_try_echo=$ac_try;;
21593 esac
21594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21595 (eval "$ac_compile") 2>conftest.er1
21596 ac_status=$?
21597 grep -v '^ *+' conftest.er1 >conftest.err
21598 rm -f conftest.er1
21599 cat conftest.err >&5
21600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21601 (exit $ac_status); } && {
21602 test -z "$ac_c_werror_flag" ||
21603 test ! -s conftest.err
21604 } && test -s conftest.$ac_objext; then
21605 ac_header_compiler=yes
21606 else
21607 echo "$as_me: failed program was:" >&5
21608 sed 's/^/| /' conftest.$ac_ext >&5
21609
21610 ac_header_compiler=no
21611 fi
21612
21613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21614 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21615 echo "${ECHO_T}$ac_header_compiler" >&6; }
21616
21617 # Is the header present?
21618 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21619 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21620 cat >conftest.$ac_ext <<_ACEOF
21621 /* confdefs.h. */
21622 _ACEOF
21623 cat confdefs.h >>conftest.$ac_ext
21624 cat >>conftest.$ac_ext <<_ACEOF
21625 /* end confdefs.h. */
21626 #include <$ac_header>
21627 _ACEOF
21628 if { (ac_try="$ac_cpp conftest.$ac_ext"
21629 case "(($ac_try" in
21630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21631 *) ac_try_echo=$ac_try;;
21632 esac
21633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21634 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21635 ac_status=$?
21636 grep -v '^ *+' conftest.er1 >conftest.err
21637 rm -f conftest.er1
21638 cat conftest.err >&5
21639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21640 (exit $ac_status); } >/dev/null && {
21641 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21642 test ! -s conftest.err
21643 }; then
21644 ac_header_preproc=yes
21645 else
21646 echo "$as_me: failed program was:" >&5
21647 sed 's/^/| /' conftest.$ac_ext >&5
21648
21649 ac_header_preproc=no
21650 fi
21651
21652 rm -f conftest.err conftest.$ac_ext
21653 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21654 echo "${ECHO_T}$ac_header_preproc" >&6; }
21655
21656 # So? What about this header?
21657 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21658 yes:no: )
21659 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21660 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21661 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21662 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21663 ac_header_preproc=yes
21664 ;;
21665 no:yes:* )
21666 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21667 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21668 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21669 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21670 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21671 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21673 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21675 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21677 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21678
21679 ;;
21680 esac
21681 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21682 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21683 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21684 echo $ECHO_N "(cached) $ECHO_C" >&6
21685 else
21686 eval "$as_ac_Header=\$ac_header_preproc"
21687 fi
21688 ac_res=`eval echo '${'$as_ac_Header'}'`
21689 { echo "$as_me:$LINENO: result: $ac_res" >&5
21690 echo "${ECHO_T}$ac_res" >&6; }
21691
21692 fi
21693 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21694 cat >>confdefs.h <<_ACEOF
21695 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21696 _ACEOF
21697
21698 fi
21699
21700 done
21701
21702
21703 if test -f /usr/lpp/X11/bin/smt.exp; then
21704
21705 cat >>confdefs.h <<\_ACEOF
21706 #define HAVE_AIX_SMT_EXP 1
21707 _ACEOF
21708
21709 fi
21710
21711 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21712 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21713 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21714 { echo "$as_me:$LINENO: result: yes" >&5
21715 echo "${ECHO_T}yes" >&6; }
21716
21717 cat >>confdefs.h <<\_ACEOF
21718 #define HAVE_DEV_PTMX 1
21719 _ACEOF
21720
21721 else
21722 { echo "$as_me:$LINENO: result: no" >&5
21723 echo "${ECHO_T}no" >&6; }
21724 fi
21725
21726 { echo "$as_me:$LINENO: checking for pid_t" >&5
21727 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21728 if test "${ac_cv_type_pid_t+set}" = set; then
21729 echo $ECHO_N "(cached) $ECHO_C" >&6
21730 else
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 $ac_includes_default
21738 typedef pid_t ac__type_new_;
21739 int
21740 main ()
21741 {
21742 if ((ac__type_new_ *) 0)
21743 return 0;
21744 if (sizeof (ac__type_new_))
21745 return 0;
21746 ;
21747 return 0;
21748 }
21749 _ACEOF
21750 rm -f conftest.$ac_objext
21751 if { (ac_try="$ac_compile"
21752 case "(($ac_try" in
21753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21754 *) ac_try_echo=$ac_try;;
21755 esac
21756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21757 (eval "$ac_compile") 2>conftest.er1
21758 ac_status=$?
21759 grep -v '^ *+' conftest.er1 >conftest.err
21760 rm -f conftest.er1
21761 cat conftest.err >&5
21762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21763 (exit $ac_status); } && {
21764 test -z "$ac_c_werror_flag" ||
21765 test ! -s conftest.err
21766 } && test -s conftest.$ac_objext; then
21767 ac_cv_type_pid_t=yes
21768 else
21769 echo "$as_me: failed program was:" >&5
21770 sed 's/^/| /' conftest.$ac_ext >&5
21771
21772 ac_cv_type_pid_t=no
21773 fi
21774
21775 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21776 fi
21777 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
21778 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
21779 if test $ac_cv_type_pid_t = yes; then
21780 :
21781 else
21782
21783 cat >>confdefs.h <<_ACEOF
21784 #define pid_t int
21785 _ACEOF
21786
21787 fi
21788
21789
21790 for ac_header in vfork.h
21791 do
21792 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21794 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21795 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21796 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21797 echo $ECHO_N "(cached) $ECHO_C" >&6
21798 fi
21799 ac_res=`eval echo '${'$as_ac_Header'}'`
21800 { echo "$as_me:$LINENO: result: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21802 else
21803 # Is the header compilable?
21804 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21805 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21806 cat >conftest.$ac_ext <<_ACEOF
21807 /* confdefs.h. */
21808 _ACEOF
21809 cat confdefs.h >>conftest.$ac_ext
21810 cat >>conftest.$ac_ext <<_ACEOF
21811 /* end confdefs.h. */
21812 $ac_includes_default
21813 #include <$ac_header>
21814 _ACEOF
21815 rm -f conftest.$ac_objext
21816 if { (ac_try="$ac_compile"
21817 case "(($ac_try" in
21818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21819 *) ac_try_echo=$ac_try;;
21820 esac
21821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21822 (eval "$ac_compile") 2>conftest.er1
21823 ac_status=$?
21824 grep -v '^ *+' conftest.er1 >conftest.err
21825 rm -f conftest.er1
21826 cat conftest.err >&5
21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21828 (exit $ac_status); } && {
21829 test -z "$ac_c_werror_flag" ||
21830 test ! -s conftest.err
21831 } && test -s conftest.$ac_objext; then
21832 ac_header_compiler=yes
21833 else
21834 echo "$as_me: failed program was:" >&5
21835 sed 's/^/| /' conftest.$ac_ext >&5
21836
21837 ac_header_compiler=no
21838 fi
21839
21840 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21841 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21842 echo "${ECHO_T}$ac_header_compiler" >&6; }
21843
21844 # Is the header present?
21845 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21846 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21847 cat >conftest.$ac_ext <<_ACEOF
21848 /* confdefs.h. */
21849 _ACEOF
21850 cat confdefs.h >>conftest.$ac_ext
21851 cat >>conftest.$ac_ext <<_ACEOF
21852 /* end confdefs.h. */
21853 #include <$ac_header>
21854 _ACEOF
21855 if { (ac_try="$ac_cpp conftest.$ac_ext"
21856 case "(($ac_try" in
21857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21858 *) ac_try_echo=$ac_try;;
21859 esac
21860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21861 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21862 ac_status=$?
21863 grep -v '^ *+' conftest.er1 >conftest.err
21864 rm -f conftest.er1
21865 cat conftest.err >&5
21866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21867 (exit $ac_status); } >/dev/null && {
21868 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21869 test ! -s conftest.err
21870 }; then
21871 ac_header_preproc=yes
21872 else
21873 echo "$as_me: failed program was:" >&5
21874 sed 's/^/| /' conftest.$ac_ext >&5
21875
21876 ac_header_preproc=no
21877 fi
21878
21879 rm -f conftest.err conftest.$ac_ext
21880 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21881 echo "${ECHO_T}$ac_header_preproc" >&6; }
21882
21883 # So? What about this header?
21884 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21885 yes:no: )
21886 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21887 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21888 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21889 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21890 ac_header_preproc=yes
21891 ;;
21892 no:yes:* )
21893 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21894 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21895 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21896 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21897 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21898 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21899 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21900 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21902 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21904 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21905
21906 ;;
21907 esac
21908 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21909 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21910 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21911 echo $ECHO_N "(cached) $ECHO_C" >&6
21912 else
21913 eval "$as_ac_Header=\$ac_header_preproc"
21914 fi
21915 ac_res=`eval echo '${'$as_ac_Header'}'`
21916 { echo "$as_me:$LINENO: result: $ac_res" >&5
21917 echo "${ECHO_T}$ac_res" >&6; }
21918
21919 fi
21920 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21921 cat >>confdefs.h <<_ACEOF
21922 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21923 _ACEOF
21924
21925 fi
21926
21927 done
21928
21929
21930
21931 for ac_func in fork vfork
21932 do
21933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21937 echo $ECHO_N "(cached) $ECHO_C" >&6
21938 else
21939 cat >conftest.$ac_ext <<_ACEOF
21940 /* confdefs.h. */
21941 _ACEOF
21942 cat confdefs.h >>conftest.$ac_ext
21943 cat >>conftest.$ac_ext <<_ACEOF
21944 /* end confdefs.h. */
21945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21947 #define $ac_func innocuous_$ac_func
21948
21949 /* System header to define __stub macros and hopefully few prototypes,
21950 which can conflict with char $ac_func (); below.
21951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21952 <limits.h> exists even on freestanding compilers. */
21953
21954 #ifdef __STDC__
21955 # include <limits.h>
21956 #else
21957 # include <assert.h>
21958 #endif
21959
21960 #undef $ac_func
21961
21962 /* Override any GCC internal prototype to avoid an error.
21963 Use char because int might match the return type of a GCC
21964 builtin and then its argument prototype would still apply. */
21965 #ifdef __cplusplus
21966 extern "C"
21967 #endif
21968 char $ac_func ();
21969 /* The GNU C library defines this for functions which it implements
21970 to always fail with ENOSYS. Some functions are actually named
21971 something starting with __ and the normal name is an alias. */
21972 #if defined __stub_$ac_func || defined __stub___$ac_func
21973 choke me
21974 #endif
21975
21976 int
21977 main ()
21978 {
21979 return $ac_func ();
21980 ;
21981 return 0;
21982 }
21983 _ACEOF
21984 rm -f conftest.$ac_objext conftest$ac_exeext
21985 if { (ac_try="$ac_link"
21986 case "(($ac_try" in
21987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21988 *) ac_try_echo=$ac_try;;
21989 esac
21990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21991 (eval "$ac_link") 2>conftest.er1
21992 ac_status=$?
21993 grep -v '^ *+' conftest.er1 >conftest.err
21994 rm -f conftest.er1
21995 cat conftest.err >&5
21996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21997 (exit $ac_status); } && {
21998 test -z "$ac_c_werror_flag" ||
21999 test ! -s conftest.err
22000 } && test -s conftest$ac_exeext &&
22001 $as_test_x conftest$ac_exeext; then
22002 eval "$as_ac_var=yes"
22003 else
22004 echo "$as_me: failed program was:" >&5
22005 sed 's/^/| /' conftest.$ac_ext >&5
22006
22007 eval "$as_ac_var=no"
22008 fi
22009
22010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22011 conftest$ac_exeext conftest.$ac_ext
22012 fi
22013 ac_res=`eval echo '${'$as_ac_var'}'`
22014 { echo "$as_me:$LINENO: result: $ac_res" >&5
22015 echo "${ECHO_T}$ac_res" >&6; }
22016 if test `eval echo '${'$as_ac_var'}'` = yes; then
22017 cat >>confdefs.h <<_ACEOF
22018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22019 _ACEOF
22020
22021 fi
22022 done
22023
22024 if test "x$ac_cv_func_fork" = xyes; then
22025 { echo "$as_me:$LINENO: checking for working fork" >&5
22026 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22027 if test "${ac_cv_func_fork_works+set}" = set; then
22028 echo $ECHO_N "(cached) $ECHO_C" >&6
22029 else
22030 if test "$cross_compiling" = yes; then
22031 ac_cv_func_fork_works=cross
22032 else
22033 cat >conftest.$ac_ext <<_ACEOF
22034 /* confdefs.h. */
22035 _ACEOF
22036 cat confdefs.h >>conftest.$ac_ext
22037 cat >>conftest.$ac_ext <<_ACEOF
22038 /* end confdefs.h. */
22039 $ac_includes_default
22040 int
22041 main ()
22042 {
22043
22044 /* By Ruediger Kuhlmann. */
22045 return fork () < 0;
22046
22047 ;
22048 return 0;
22049 }
22050 _ACEOF
22051 rm -f conftest$ac_exeext
22052 if { (ac_try="$ac_link"
22053 case "(($ac_try" in
22054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22055 *) ac_try_echo=$ac_try;;
22056 esac
22057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22058 (eval "$ac_link") 2>&5
22059 ac_status=$?
22060 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22061 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22062 { (case "(($ac_try" in
22063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22064 *) ac_try_echo=$ac_try;;
22065 esac
22066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22067 (eval "$ac_try") 2>&5
22068 ac_status=$?
22069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22070 (exit $ac_status); }; }; then
22071 ac_cv_func_fork_works=yes
22072 else
22073 echo "$as_me: program exited with status $ac_status" >&5
22074 echo "$as_me: failed program was:" >&5
22075 sed 's/^/| /' conftest.$ac_ext >&5
22076
22077 ( exit $ac_status )
22078 ac_cv_func_fork_works=no
22079 fi
22080 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22081 fi
22082
22083
22084 fi
22085 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22086 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22087
22088 else
22089 ac_cv_func_fork_works=$ac_cv_func_fork
22090 fi
22091 if test "x$ac_cv_func_fork_works" = xcross; then
22092 case $host in
22093 *-*-amigaos* | *-*-msdosdjgpp*)
22094 # Override, as these systems have only a dummy fork() stub
22095 ac_cv_func_fork_works=no
22096 ;;
22097 *)
22098 ac_cv_func_fork_works=yes
22099 ;;
22100 esac
22101 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22102 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22103 fi
22104 ac_cv_func_vfork_works=$ac_cv_func_vfork
22105 if test "x$ac_cv_func_vfork" = xyes; then
22106 { echo "$as_me:$LINENO: checking for working vfork" >&5
22107 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22108 if test "${ac_cv_func_vfork_works+set}" = set; then
22109 echo $ECHO_N "(cached) $ECHO_C" >&6
22110 else
22111 if test "$cross_compiling" = yes; then
22112 ac_cv_func_vfork_works=cross
22113 else
22114 cat >conftest.$ac_ext <<_ACEOF
22115 /* confdefs.h. */
22116 _ACEOF
22117 cat confdefs.h >>conftest.$ac_ext
22118 cat >>conftest.$ac_ext <<_ACEOF
22119 /* end confdefs.h. */
22120 /* Thanks to Paul Eggert for this test. */
22121 $ac_includes_default
22122 #include <sys/wait.h>
22123 #ifdef HAVE_VFORK_H
22124 # include <vfork.h>
22125 #endif
22126 /* On some sparc systems, changes by the child to local and incoming
22127 argument registers are propagated back to the parent. The compiler
22128 is told about this with #include <vfork.h>, but some compilers
22129 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22130 static variable whose address is put into a register that is
22131 clobbered by the vfork. */
22132 static void
22133 #ifdef __cplusplus
22134 sparc_address_test (int arg)
22135 # else
22136 sparc_address_test (arg) int arg;
22137 #endif
22138 {
22139 static pid_t child;
22140 if (!child) {
22141 child = vfork ();
22142 if (child < 0) {
22143 perror ("vfork");
22144 _exit(2);
22145 }
22146 if (!child) {
22147 arg = getpid();
22148 write(-1, "", 0);
22149 _exit (arg);
22150 }
22151 }
22152 }
22153
22154 int
22155 main ()
22156 {
22157 pid_t parent = getpid ();
22158 pid_t child;
22159
22160 sparc_address_test (0);
22161
22162 child = vfork ();
22163
22164 if (child == 0) {
22165 /* Here is another test for sparc vfork register problems. This
22166 test uses lots of local variables, at least as many local
22167 variables as main has allocated so far including compiler
22168 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22169 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22170 reuse the register of parent for one of the local variables,
22171 since it will think that parent can't possibly be used any more
22172 in this routine. Assigning to the local variable will thus
22173 munge parent in the parent process. */
22174 pid_t
22175 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22176 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22177 /* Convince the compiler that p..p7 are live; otherwise, it might
22178 use the same hardware register for all 8 local variables. */
22179 if (p != p1 || p != p2 || p != p3 || p != p4
22180 || p != p5 || p != p6 || p != p7)
22181 _exit(1);
22182
22183 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22184 from child file descriptors. If the child closes a descriptor
22185 before it execs or exits, this munges the parent's descriptor
22186 as well. Test for this by closing stdout in the child. */
22187 _exit(close(fileno(stdout)) != 0);
22188 } else {
22189 int status;
22190 struct stat st;
22191
22192 while (wait(&status) != child)
22193 ;
22194 return (
22195 /* Was there some problem with vforking? */
22196 child < 0
22197
22198 /* Did the child fail? (This shouldn't happen.) */
22199 || status
22200
22201 /* Did the vfork/compiler bug occur? */
22202 || parent != getpid()
22203
22204 /* Did the file descriptor bug occur? */
22205 || fstat(fileno(stdout), &st) != 0
22206 );
22207 }
22208 }
22209 _ACEOF
22210 rm -f conftest$ac_exeext
22211 if { (ac_try="$ac_link"
22212 case "(($ac_try" in
22213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22214 *) ac_try_echo=$ac_try;;
22215 esac
22216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22217 (eval "$ac_link") 2>&5
22218 ac_status=$?
22219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22220 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22221 { (case "(($ac_try" in
22222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22223 *) ac_try_echo=$ac_try;;
22224 esac
22225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22226 (eval "$ac_try") 2>&5
22227 ac_status=$?
22228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22229 (exit $ac_status); }; }; then
22230 ac_cv_func_vfork_works=yes
22231 else
22232 echo "$as_me: program exited with status $ac_status" >&5
22233 echo "$as_me: failed program was:" >&5
22234 sed 's/^/| /' conftest.$ac_ext >&5
22235
22236 ( exit $ac_status )
22237 ac_cv_func_vfork_works=no
22238 fi
22239 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22240 fi
22241
22242
22243 fi
22244 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22245 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22246
22247 fi;
22248 if test "x$ac_cv_func_fork_works" = xcross; then
22249 ac_cv_func_vfork_works=$ac_cv_func_vfork
22250 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22251 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22252 fi
22253
22254 if test "x$ac_cv_func_vfork_works" = xyes; then
22255
22256 cat >>confdefs.h <<\_ACEOF
22257 #define HAVE_WORKING_VFORK 1
22258 _ACEOF
22259
22260 else
22261
22262 cat >>confdefs.h <<\_ACEOF
22263 #define vfork fork
22264 _ACEOF
22265
22266 fi
22267 if test "x$ac_cv_func_fork_works" = xyes; then
22268
22269 cat >>confdefs.h <<\_ACEOF
22270 #define HAVE_WORKING_FORK 1
22271 _ACEOF
22272
22273 fi
22274
22275
22276 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22277 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22278 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22279 echo $ECHO_N "(cached) $ECHO_C" >&6
22280 else
22281 cat >conftest.$ac_ext <<_ACEOF
22282 /* confdefs.h. */
22283 _ACEOF
22284 cat confdefs.h >>conftest.$ac_ext
22285 cat >>conftest.$ac_ext <<_ACEOF
22286 /* end confdefs.h. */
22287 #include <langinfo.h>
22288 int
22289 main ()
22290 {
22291 char* cs = nl_langinfo(CODESET);
22292 ;
22293 return 0;
22294 }
22295 _ACEOF
22296 rm -f conftest.$ac_objext conftest$ac_exeext
22297 if { (ac_try="$ac_link"
22298 case "(($ac_try" in
22299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22300 *) ac_try_echo=$ac_try;;
22301 esac
22302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22303 (eval "$ac_link") 2>conftest.er1
22304 ac_status=$?
22305 grep -v '^ *+' conftest.er1 >conftest.err
22306 rm -f conftest.er1
22307 cat conftest.err >&5
22308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22309 (exit $ac_status); } && {
22310 test -z "$ac_c_werror_flag" ||
22311 test ! -s conftest.err
22312 } && test -s conftest$ac_exeext &&
22313 $as_test_x conftest$ac_exeext; then
22314 emacs_cv_langinfo_codeset=yes
22315 else
22316 echo "$as_me: failed program was:" >&5
22317 sed 's/^/| /' conftest.$ac_ext >&5
22318
22319 emacs_cv_langinfo_codeset=no
22320 fi
22321
22322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22323 conftest$ac_exeext conftest.$ac_ext
22324
22325 fi
22326 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22327 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22328 if test $emacs_cv_langinfo_codeset = yes; then
22329
22330 cat >>confdefs.h <<\_ACEOF
22331 #define HAVE_LANGINFO_CODESET 1
22332 _ACEOF
22333
22334 fi
22335
22336 { echo "$as_me:$LINENO: checking for size_t" >&5
22337 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22338 if test "${ac_cv_type_size_t+set}" = set; then
22339 echo $ECHO_N "(cached) $ECHO_C" >&6
22340 else
22341 cat >conftest.$ac_ext <<_ACEOF
22342 /* confdefs.h. */
22343 _ACEOF
22344 cat confdefs.h >>conftest.$ac_ext
22345 cat >>conftest.$ac_ext <<_ACEOF
22346 /* end confdefs.h. */
22347 $ac_includes_default
22348 typedef size_t ac__type_new_;
22349 int
22350 main ()
22351 {
22352 if ((ac__type_new_ *) 0)
22353 return 0;
22354 if (sizeof (ac__type_new_))
22355 return 0;
22356 ;
22357 return 0;
22358 }
22359 _ACEOF
22360 rm -f conftest.$ac_objext
22361 if { (ac_try="$ac_compile"
22362 case "(($ac_try" in
22363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22364 *) ac_try_echo=$ac_try;;
22365 esac
22366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22367 (eval "$ac_compile") 2>conftest.er1
22368 ac_status=$?
22369 grep -v '^ *+' conftest.er1 >conftest.err
22370 rm -f conftest.er1
22371 cat conftest.err >&5
22372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22373 (exit $ac_status); } && {
22374 test -z "$ac_c_werror_flag" ||
22375 test ! -s conftest.err
22376 } && test -s conftest.$ac_objext; then
22377 ac_cv_type_size_t=yes
22378 else
22379 echo "$as_me: failed program was:" >&5
22380 sed 's/^/| /' conftest.$ac_ext >&5
22381
22382 ac_cv_type_size_t=no
22383 fi
22384
22385 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22386 fi
22387 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22388 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22389 if test $ac_cv_type_size_t = yes; then
22390
22391 cat >>confdefs.h <<_ACEOF
22392 #define HAVE_SIZE_T 1
22393 _ACEOF
22394
22395
22396 fi
22397
22398
22399 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22400 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22401 if test "${ac_cv_type_mbstate_t+set}" = set; then
22402 echo $ECHO_N "(cached) $ECHO_C" >&6
22403 else
22404 cat >conftest.$ac_ext <<_ACEOF
22405 /* confdefs.h. */
22406 _ACEOF
22407 cat confdefs.h >>conftest.$ac_ext
22408 cat >>conftest.$ac_ext <<_ACEOF
22409 /* end confdefs.h. */
22410 $ac_includes_default
22411 # include <wchar.h>
22412 int
22413 main ()
22414 {
22415 mbstate_t x; return sizeof x;
22416 ;
22417 return 0;
22418 }
22419 _ACEOF
22420 rm -f conftest.$ac_objext
22421 if { (ac_try="$ac_compile"
22422 case "(($ac_try" in
22423 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22424 *) ac_try_echo=$ac_try;;
22425 esac
22426 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22427 (eval "$ac_compile") 2>conftest.er1
22428 ac_status=$?
22429 grep -v '^ *+' conftest.er1 >conftest.err
22430 rm -f conftest.er1
22431 cat conftest.err >&5
22432 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22433 (exit $ac_status); } && {
22434 test -z "$ac_c_werror_flag" ||
22435 test ! -s conftest.err
22436 } && test -s conftest.$ac_objext; then
22437 ac_cv_type_mbstate_t=yes
22438 else
22439 echo "$as_me: failed program was:" >&5
22440 sed 's/^/| /' conftest.$ac_ext >&5
22441
22442 ac_cv_type_mbstate_t=no
22443 fi
22444
22445 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22446 fi
22447 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22448 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22449 if test $ac_cv_type_mbstate_t = yes; then
22450
22451 cat >>confdefs.h <<\_ACEOF
22452 #define HAVE_MBSTATE_T 1
22453 _ACEOF
22454
22455 else
22456
22457 cat >>confdefs.h <<\_ACEOF
22458 #define mbstate_t int
22459 _ACEOF
22460
22461 fi
22462
22463 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22464 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22465 if test "${emacs_cv_c_restrict+set}" = set; then
22466 echo $ECHO_N "(cached) $ECHO_C" >&6
22467 else
22468 cat >conftest.$ac_ext <<_ACEOF
22469 /* confdefs.h. */
22470 _ACEOF
22471 cat confdefs.h >>conftest.$ac_ext
22472 cat >>conftest.$ac_ext <<_ACEOF
22473 /* end confdefs.h. */
22474 void fred (int *restrict x);
22475 int
22476 main ()
22477 {
22478
22479 ;
22480 return 0;
22481 }
22482 _ACEOF
22483 rm -f conftest.$ac_objext
22484 if { (ac_try="$ac_compile"
22485 case "(($ac_try" in
22486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22487 *) ac_try_echo=$ac_try;;
22488 esac
22489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22490 (eval "$ac_compile") 2>conftest.er1
22491 ac_status=$?
22492 grep -v '^ *+' conftest.er1 >conftest.err
22493 rm -f conftest.er1
22494 cat conftest.err >&5
22495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22496 (exit $ac_status); } && {
22497 test -z "$ac_c_werror_flag" ||
22498 test ! -s conftest.err
22499 } && test -s conftest.$ac_objext; then
22500 emacs_cv_c_restrict=yes
22501 else
22502 echo "$as_me: failed program was:" >&5
22503 sed 's/^/| /' conftest.$ac_ext >&5
22504
22505 cat >conftest.$ac_ext <<_ACEOF
22506 /* confdefs.h. */
22507 _ACEOF
22508 cat confdefs.h >>conftest.$ac_ext
22509 cat >>conftest.$ac_ext <<_ACEOF
22510 /* end confdefs.h. */
22511 void fred (int *__restrict x);
22512 int
22513 main ()
22514 {
22515
22516 ;
22517 return 0;
22518 }
22519 _ACEOF
22520 rm -f conftest.$ac_objext
22521 if { (ac_try="$ac_compile"
22522 case "(($ac_try" in
22523 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22524 *) ac_try_echo=$ac_try;;
22525 esac
22526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22527 (eval "$ac_compile") 2>conftest.er1
22528 ac_status=$?
22529 grep -v '^ *+' conftest.er1 >conftest.err
22530 rm -f conftest.er1
22531 cat conftest.err >&5
22532 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22533 (exit $ac_status); } && {
22534 test -z "$ac_c_werror_flag" ||
22535 test ! -s conftest.err
22536 } && test -s conftest.$ac_objext; then
22537 emacs_cv_c_restrict=__restrict
22538 else
22539 echo "$as_me: failed program was:" >&5
22540 sed 's/^/| /' conftest.$ac_ext >&5
22541
22542 emacs_cv_c_restrict=no
22543 fi
22544
22545 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22546 fi
22547
22548 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22549 fi
22550 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22551 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22552 case "$emacs_cv_c_restrict" in
22553 yes) emacs_restrict=restrict;;
22554 no) emacs_restrict="";;
22555 *) emacs_restrict="$emacs_cv_c_restrict";;
22556 esac
22557 if test "$emacs_restrict" != __restrict; then
22558
22559 cat >>confdefs.h <<_ACEOF
22560 #define __restrict $emacs_restrict
22561 _ACEOF
22562
22563 fi
22564
22565 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22566 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22567 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22568 echo $ECHO_N "(cached) $ECHO_C" >&6
22569 else
22570 cat >conftest.$ac_ext <<_ACEOF
22571 /* confdefs.h. */
22572 _ACEOF
22573 cat confdefs.h >>conftest.$ac_ext
22574 cat >>conftest.$ac_ext <<_ACEOF
22575 /* end confdefs.h. */
22576 void fred (int x[__restrict]);
22577 int
22578 main ()
22579 {
22580
22581 ;
22582 return 0;
22583 }
22584 _ACEOF
22585 rm -f conftest.$ac_objext
22586 if { (ac_try="$ac_compile"
22587 case "(($ac_try" in
22588 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22589 *) ac_try_echo=$ac_try;;
22590 esac
22591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22592 (eval "$ac_compile") 2>conftest.er1
22593 ac_status=$?
22594 grep -v '^ *+' conftest.er1 >conftest.err
22595 rm -f conftest.er1
22596 cat conftest.err >&5
22597 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22598 (exit $ac_status); } && {
22599 test -z "$ac_c_werror_flag" ||
22600 test ! -s conftest.err
22601 } && test -s conftest.$ac_objext; then
22602 emacs_cv_c_restrict_arr=yes
22603 else
22604 echo "$as_me: failed program was:" >&5
22605 sed 's/^/| /' conftest.$ac_ext >&5
22606
22607 emacs_cv_c_restrict_arr=no
22608 fi
22609
22610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22611 fi
22612 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22613 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22614 if test "$emacs_cv_c_restrict_arr" = yes; then
22615
22616 cat >>confdefs.h <<\_ACEOF
22617 #define __restrict_arr __restrict
22618 _ACEOF
22619
22620 fi
22621
22622
22623
22624 # Set up the CFLAGS for real compilation, so we can substitute it.
22625 CFLAGS="$REAL_CFLAGS"
22626 CPPFLAGS="$REAL_CPPFLAGS"
22627
22628 #### Find out which version of Emacs this is.
22629 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22630 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22631 if test x"${version}" = x; then
22632 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22633 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22634 { (exit 1); exit 1; }; }
22635 fi
22636
22637 ### Specify what sort of things we'll be editing into Makefile and config.h.
22638 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22639
22640
22641
22642
22643
22644
22645
22646
22647
22648
22649
22650
22651
22652
22653
22654
22655
22656
22657
22658
22659
22660
22661
22662
22663
22664
22665
22666
22667
22668
22669
22670
22671
22672
22673
22674 cat >>confdefs.h <<_ACEOF
22675 #define EMACS_CONFIGURATION "${canonical}"
22676 _ACEOF
22677
22678
22679 cat >>confdefs.h <<_ACEOF
22680 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22681 _ACEOF
22682
22683
22684 cat >>confdefs.h <<_ACEOF
22685 #define config_machfile "${machfile}"
22686 _ACEOF
22687
22688
22689 cat >>confdefs.h <<_ACEOF
22690 #define config_opsysfile "${opsysfile}"
22691 _ACEOF
22692
22693
22694 cat >>confdefs.h <<_ACEOF
22695 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22696 _ACEOF
22697
22698
22699 cat >>confdefs.h <<_ACEOF
22700 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22701 _ACEOF
22702
22703
22704 cat >>confdefs.h <<_ACEOF
22705 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22706 _ACEOF
22707
22708
22709 cat >>confdefs.h <<_ACEOF
22710 #define UNEXEC_SRC ${UNEXEC_SRC}
22711 _ACEOF
22712
22713
22714 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22715
22716 cat >>confdefs.h <<\_ACEOF
22717 #define HAVE_X_WINDOWS 1
22718 _ACEOF
22719
22720 fi
22721 if test "${USE_X_TOOLKIT}" != "none" ; then
22722
22723 cat >>confdefs.h <<\_ACEOF
22724 #define USE_X_TOOLKIT 1
22725 _ACEOF
22726
22727 fi
22728 if test "${HAVE_X11}" = "yes" ; then
22729
22730 cat >>confdefs.h <<\_ACEOF
22731 #define HAVE_X11 1
22732 _ACEOF
22733
22734 fi
22735 if test "${HAVE_XFREE386}" = "yes" ; then
22736
22737 cat >>confdefs.h <<\_ACEOF
22738 #define HAVE_XFREE386 1
22739 _ACEOF
22740
22741 fi
22742 if test "${HAVE_MENUS}" = "yes" ; then
22743
22744 cat >>confdefs.h <<\_ACEOF
22745 #define HAVE_MENUS 1
22746 _ACEOF
22747
22748 fi
22749 if test "${GNU_MALLOC}" = "yes" ; then
22750
22751 cat >>confdefs.h <<\_ACEOF
22752 #define GNU_MALLOC 1
22753 _ACEOF
22754
22755 fi
22756 if test "${REL_ALLOC}" = "yes" ; then
22757
22758 cat >>confdefs.h <<\_ACEOF
22759 #define REL_ALLOC 1
22760 _ACEOF
22761
22762 fi
22763
22764
22765
22766
22767
22768 #### Report on what we decided to do.
22769 #### Report GTK as a toolkit, even if it doesn't use Xt.
22770 #### It makes printing result more understandable as using GTK sets
22771 #### toolkit_scroll_bars to yes by default.
22772 if test "${HAVE_GTK}" = "yes"; then
22773 USE_X_TOOLKIT=GTK
22774 fi
22775
22776 echo "
22777 Configured for \`${canonical}'.
22778
22779 Where should the build process find the source code? ${srcdir}
22780 What operating system and machine description files should Emacs use?
22781 \`${opsysfile}' and \`${machfile}'
22782 What compiler should emacs be built with? ${CC} ${CFLAGS}
22783 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
22784 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
22785 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
22786 What window system should Emacs use? ${window_system}
22787 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
22788
22789 if test -n "${x_includes}"; then
22790 echo " Where do we find X Windows header files? ${x_includes}"
22791 else
22792 echo " Where do we find X Windows header files? Standard dirs"
22793 fi
22794 if test -n "${x_libraries}"; then
22795 echo " Where do we find X Windows libraries? ${x_libraries}"
22796 else
22797 echo " Where do we find X Windows libraries? Standard dirs"
22798 fi
22799
22800 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
22801 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
22802 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
22803 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
22804 echo " Does Emacs use -lungif? ${HAVE_GIF}"
22805 echo " Does Emacs use -lpng? ${HAVE_PNG}"
22806 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
22807 echo
22808
22809 if test $USE_XASSERTS = yes; then
22810 echo " Compiling with asserts turned on."
22811 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
22812 echo
22813 fi
22814
22815
22816
22817 # Remove any trailing slashes in these variables.
22818 test "${prefix}" != NONE &&
22819 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
22820 test "${exec_prefix}" != NONE &&
22821 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
22822
22823 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
22824 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
22825 ## from Makefile.c can correctly provide the arg `-traditional' to the
22826 ## C preprocessor.
22827
22828 cat >conftest.$ac_ext <<_ACEOF
22829 /* confdefs.h. */
22830 _ACEOF
22831 cat confdefs.h >>conftest.$ac_ext
22832 cat >>conftest.$ac_ext <<_ACEOF
22833 /* end confdefs.h. */
22834 yes..yes
22835 _ACEOF
22836 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
22837 $EGREP "yes..yes" >/dev/null 2>&1; then
22838 CPP_NEED_TRADITIONAL=no
22839 else
22840 CPP_NEED_TRADITIONAL=yes
22841 fi
22842 rm -f conftest*
22843
22844
22845 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"
22846
22847 ac_config_commands="$ac_config_commands default"
22848
22849 cat >confcache <<\_ACEOF
22850 # This file is a shell script that caches the results of configure
22851 # tests run on this system so they can be shared between configure
22852 # scripts and configure runs, see configure's option --config-cache.
22853 # It is not useful on other systems. If it contains results you don't
22854 # want to keep, you may remove or edit it.
22855 #
22856 # config.status only pays attention to the cache file if you give it
22857 # the --recheck option to rerun configure.
22858 #
22859 # `ac_cv_env_foo' variables (set or unset) will be overridden when
22860 # loading this file, other *unset* `ac_cv_foo' will be assigned the
22861 # following values.
22862
22863 _ACEOF
22864
22865 # The following way of writing the cache mishandles newlines in values,
22866 # but we know of no workaround that is simple, portable, and efficient.
22867 # So, we kill variables containing newlines.
22868 # Ultrix sh set writes to stderr and can't be redirected directly,
22869 # and sets the high bit in the cache file unless we assign to the vars.
22870 (
22871 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
22872 eval ac_val=\$$ac_var
22873 case $ac_val in #(
22874 *${as_nl}*)
22875 case $ac_var in #(
22876 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
22877 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
22878 esac
22879 case $ac_var in #(
22880 _ | IFS | as_nl) ;; #(
22881 *) $as_unset $ac_var ;;
22882 esac ;;
22883 esac
22884 done
22885
22886 (set) 2>&1 |
22887 case $as_nl`(ac_space=' '; set) 2>&1` in #(
22888 *${as_nl}ac_space=\ *)
22889 # `set' does not quote correctly, so add quotes (double-quote
22890 # substitution turns \\\\ into \\, and sed turns \\ into \).
22891 sed -n \
22892 "s/'/'\\\\''/g;
22893 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
22894 ;; #(
22895 *)
22896 # `set' quotes correctly as required by POSIX, so do not add quotes.
22897 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
22898 ;;
22899 esac |
22900 sort
22901 ) |
22902 sed '
22903 /^ac_cv_env_/b end
22904 t clear
22905 :clear
22906 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
22907 t end
22908 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
22909 :end' >>confcache
22910 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
22911 if test -w "$cache_file"; then
22912 test "x$cache_file" != "x/dev/null" &&
22913 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
22914 echo "$as_me: updating cache $cache_file" >&6;}
22915 cat confcache >$cache_file
22916 else
22917 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
22918 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
22919 fi
22920 fi
22921 rm -f confcache
22922
22923 test "x$prefix" = xNONE && prefix=$ac_default_prefix
22924 # Let make expand exec_prefix.
22925 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
22926
22927 DEFS=-DHAVE_CONFIG_H
22928
22929 ac_libobjs=
22930 ac_ltlibobjs=
22931 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
22932 # 1. Remove the extension, and $U if already installed.
22933 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
22934 ac_i=`echo "$ac_i" | sed "$ac_script"`
22935 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
22936 # will be set to the directory where LIBOBJS objects are built.
22937 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
22938 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
22939 done
22940 LIBOBJS=$ac_libobjs
22941
22942 LTLIBOBJS=$ac_ltlibobjs
22943
22944
22945
22946 : ${CONFIG_STATUS=./config.status}
22947 ac_clean_files_save=$ac_clean_files
22948 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
22949 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
22950 echo "$as_me: creating $CONFIG_STATUS" >&6;}
22951 cat >$CONFIG_STATUS <<_ACEOF
22952 #! $SHELL
22953 # Generated by $as_me.
22954 # Run this file to recreate the current configuration.
22955 # Compiler output produced by configure, useful for debugging
22956 # configure, is in config.log if it exists.
22957
22958 debug=false
22959 ac_cs_recheck=false
22960 ac_cs_silent=false
22961 SHELL=\${CONFIG_SHELL-$SHELL}
22962 _ACEOF
22963
22964 cat >>$CONFIG_STATUS <<\_ACEOF
22965 ## --------------------- ##
22966 ## M4sh Initialization. ##
22967 ## --------------------- ##
22968
22969 # Be more Bourne compatible
22970 DUALCASE=1; export DUALCASE # for MKS sh
22971 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
22972 emulate sh
22973 NULLCMD=:
22974 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22975 # is contrary to our usage. Disable this feature.
22976 alias -g '${1+"$@"}'='"$@"'
22977 setopt NO_GLOB_SUBST
22978 else
22979 case `(set -o) 2>/dev/null` in
22980 *posix*) set -o posix ;;
22981 esac
22982
22983 fi
22984
22985
22986
22987
22988 # PATH needs CR
22989 # Avoid depending upon Character Ranges.
22990 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
22991 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
22992 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
22993 as_cr_digits='0123456789'
22994 as_cr_alnum=$as_cr_Letters$as_cr_digits
22995
22996 # The user is always right.
22997 if test "${PATH_SEPARATOR+set}" != set; then
22998 echo "#! /bin/sh" >conf$$.sh
22999 echo "exit 0" >>conf$$.sh
23000 chmod +x conf$$.sh
23001 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23002 PATH_SEPARATOR=';'
23003 else
23004 PATH_SEPARATOR=:
23005 fi
23006 rm -f conf$$.sh
23007 fi
23008
23009 # Support unset when possible.
23010 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23011 as_unset=unset
23012 else
23013 as_unset=false
23014 fi
23015
23016
23017 # IFS
23018 # We need space, tab and new line, in precisely that order. Quoting is
23019 # there to prevent editors from complaining about space-tab.
23020 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23021 # splitting by setting IFS to empty value.)
23022 as_nl='
23023 '
23024 IFS=" "" $as_nl"
23025
23026 # Find who we are. Look in the path if we contain no directory separator.
23027 case $0 in
23028 *[\\/]* ) as_myself=$0 ;;
23029 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23030 for as_dir in $PATH
23031 do
23032 IFS=$as_save_IFS
23033 test -z "$as_dir" && as_dir=.
23034 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23035 done
23036 IFS=$as_save_IFS
23037
23038 ;;
23039 esac
23040 # We did not find ourselves, most probably we were run as `sh COMMAND'
23041 # in which case we are not to be found in the path.
23042 if test "x$as_myself" = x; then
23043 as_myself=$0
23044 fi
23045 if test ! -f "$as_myself"; then
23046 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23047 { (exit 1); exit 1; }
23048 fi
23049
23050 # Work around bugs in pre-3.0 UWIN ksh.
23051 for as_var in ENV MAIL MAILPATH
23052 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23053 done
23054 PS1='$ '
23055 PS2='> '
23056 PS4='+ '
23057
23058 # NLS nuisances.
23059 for as_var in \
23060 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23061 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23062 LC_TELEPHONE LC_TIME
23063 do
23064 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23065 eval $as_var=C; export $as_var
23066 else
23067 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23068 fi
23069 done
23070
23071 # Required to use basename.
23072 if expr a : '\(a\)' >/dev/null 2>&1 &&
23073 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23074 as_expr=expr
23075 else
23076 as_expr=false
23077 fi
23078
23079 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23080 as_basename=basename
23081 else
23082 as_basename=false
23083 fi
23084
23085
23086 # Name of the executable.
23087 as_me=`$as_basename -- "$0" ||
23088 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23089 X"$0" : 'X\(//\)$' \| \
23090 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23091 echo X/"$0" |
23092 sed '/^.*\/\([^/][^/]*\)\/*$/{
23093 s//\1/
23094 q
23095 }
23096 /^X\/\(\/\/\)$/{
23097 s//\1/
23098 q
23099 }
23100 /^X\/\(\/\).*/{
23101 s//\1/
23102 q
23103 }
23104 s/.*/./; q'`
23105
23106 # CDPATH.
23107 $as_unset CDPATH
23108
23109
23110
23111 as_lineno_1=$LINENO
23112 as_lineno_2=$LINENO
23113 test "x$as_lineno_1" != "x$as_lineno_2" &&
23114 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23115
23116 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23117 # uniformly replaced by the line number. The first 'sed' inserts a
23118 # line-number line after each line using $LINENO; the second 'sed'
23119 # does the real work. The second script uses 'N' to pair each
23120 # line-number line with the line containing $LINENO, and appends
23121 # trailing '-' during substitution so that $LINENO is not a special
23122 # case at line end.
23123 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23124 # scripts with optimization help from Paolo Bonzini. Blame Lee
23125 # E. McMahon (1931-1989) for sed's syntax. :-)
23126 sed -n '
23127 p
23128 /[$]LINENO/=
23129 ' <$as_myself |
23130 sed '
23131 s/[$]LINENO.*/&-/
23132 t lineno
23133 b
23134 :lineno
23135 N
23136 :loop
23137 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23138 t loop
23139 s/-\n.*//
23140 ' >$as_me.lineno &&
23141 chmod +x "$as_me.lineno" ||
23142 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23143 { (exit 1); exit 1; }; }
23144
23145 # Don't try to exec as it changes $[0], causing all sort of problems
23146 # (the dirname of $[0] is not the place where we might find the
23147 # original and so on. Autoconf is especially sensitive to this).
23148 . "./$as_me.lineno"
23149 # Exit status is that of the last command.
23150 exit
23151 }
23152
23153
23154 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23155 as_dirname=dirname
23156 else
23157 as_dirname=false
23158 fi
23159
23160 ECHO_C= ECHO_N= ECHO_T=
23161 case `echo -n x` in
23162 -n*)
23163 case `echo 'x\c'` in
23164 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23165 *) ECHO_C='\c';;
23166 esac;;
23167 *)
23168 ECHO_N='-n';;
23169 esac
23170
23171 if expr a : '\(a\)' >/dev/null 2>&1 &&
23172 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23173 as_expr=expr
23174 else
23175 as_expr=false
23176 fi
23177
23178 rm -f conf$$ conf$$.exe conf$$.file
23179 if test -d conf$$.dir; then
23180 rm -f conf$$.dir/conf$$.file
23181 else
23182 rm -f conf$$.dir
23183 mkdir conf$$.dir
23184 fi
23185 echo >conf$$.file
23186 if ln -s conf$$.file conf$$ 2>/dev/null; then
23187 as_ln_s='ln -s'
23188 # ... but there are two gotchas:
23189 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23190 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23191 # In both cases, we have to default to `cp -p'.
23192 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23193 as_ln_s='cp -p'
23194 elif ln conf$$.file conf$$ 2>/dev/null; then
23195 as_ln_s=ln
23196 else
23197 as_ln_s='cp -p'
23198 fi
23199 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23200 rmdir conf$$.dir 2>/dev/null
23201
23202 if mkdir -p . 2>/dev/null; then
23203 as_mkdir_p=:
23204 else
23205 test -d ./-p && rmdir ./-p
23206 as_mkdir_p=false
23207 fi
23208
23209 if test -x / >/dev/null 2>&1; then
23210 as_test_x='test -x'
23211 else
23212 if ls -dL / >/dev/null 2>&1; then
23213 as_ls_L_option=L
23214 else
23215 as_ls_L_option=
23216 fi
23217 as_test_x='
23218 eval sh -c '\''
23219 if test -d "$1"; then
23220 test -d "$1/.";
23221 else
23222 case $1 in
23223 -*)set "./$1";;
23224 esac;
23225 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23226 ???[sx]*):;;*)false;;esac;fi
23227 '\'' sh
23228 '
23229 fi
23230 as_executable_p=$as_test_x
23231
23232 # Sed expression to map a string onto a valid CPP name.
23233 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23234
23235 # Sed expression to map a string onto a valid variable name.
23236 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23237
23238
23239 exec 6>&1
23240
23241 # Save the log message, to keep $[0] and so on meaningful, and to
23242 # report actual input values of CONFIG_FILES etc. instead of their
23243 # values after options handling.
23244 ac_log="
23245 This file was extended by $as_me, which was
23246 generated by GNU Autoconf 2.61. Invocation command line was
23247
23248 CONFIG_FILES = $CONFIG_FILES
23249 CONFIG_HEADERS = $CONFIG_HEADERS
23250 CONFIG_LINKS = $CONFIG_LINKS
23251 CONFIG_COMMANDS = $CONFIG_COMMANDS
23252 $ $0 $@
23253
23254 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23255 "
23256
23257 _ACEOF
23258
23259 cat >>$CONFIG_STATUS <<_ACEOF
23260 # Files that config.status was made for.
23261 config_files="$ac_config_files"
23262 config_headers="$ac_config_headers"
23263 config_commands="$ac_config_commands"
23264
23265 _ACEOF
23266
23267 cat >>$CONFIG_STATUS <<\_ACEOF
23268 ac_cs_usage="\
23269 \`$as_me' instantiates files from templates according to the
23270 current configuration.
23271
23272 Usage: $0 [OPTIONS] [FILE]...
23273
23274 -h, --help print this help, then exit
23275 -V, --version print version number and configuration settings, then exit
23276 -q, --quiet do not print progress messages
23277 -d, --debug don't remove temporary files
23278 --recheck update $as_me by reconfiguring in the same conditions
23279 --file=FILE[:TEMPLATE]
23280 instantiate the configuration file FILE
23281 --header=FILE[:TEMPLATE]
23282 instantiate the configuration header FILE
23283
23284 Configuration files:
23285 $config_files
23286
23287 Configuration headers:
23288 $config_headers
23289
23290 Configuration commands:
23291 $config_commands
23292
23293 Report bugs to <bug-autoconf@gnu.org>."
23294
23295 _ACEOF
23296 cat >>$CONFIG_STATUS <<_ACEOF
23297 ac_cs_version="\\
23298 config.status
23299 configured by $0, generated by GNU Autoconf 2.61,
23300 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23301
23302 Copyright (C) 2006 Free Software Foundation, Inc.
23303 This config.status script is free software; the Free Software Foundation
23304 gives unlimited permission to copy, distribute and modify it."
23305
23306 ac_pwd='$ac_pwd'
23307 srcdir='$srcdir'
23308 INSTALL='$INSTALL'
23309 _ACEOF
23310
23311 cat >>$CONFIG_STATUS <<\_ACEOF
23312 # If no file are specified by the user, then we need to provide default
23313 # value. By we need to know if files were specified by the user.
23314 ac_need_defaults=:
23315 while test $# != 0
23316 do
23317 case $1 in
23318 --*=*)
23319 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23320 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23321 ac_shift=:
23322 ;;
23323 *)
23324 ac_option=$1
23325 ac_optarg=$2
23326 ac_shift=shift
23327 ;;
23328 esac
23329
23330 case $ac_option in
23331 # Handling of the options.
23332 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23333 ac_cs_recheck=: ;;
23334 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23335 echo "$ac_cs_version"; exit ;;
23336 --debug | --debu | --deb | --de | --d | -d )
23337 debug=: ;;
23338 --file | --fil | --fi | --f )
23339 $ac_shift
23340 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23341 ac_need_defaults=false;;
23342 --header | --heade | --head | --hea )
23343 $ac_shift
23344 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23345 ac_need_defaults=false;;
23346 --he | --h)
23347 # Conflict between --help and --header
23348 { echo "$as_me: error: ambiguous option: $1
23349 Try \`$0 --help' for more information." >&2
23350 { (exit 1); exit 1; }; };;
23351 --help | --hel | -h )
23352 echo "$ac_cs_usage"; exit ;;
23353 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23354 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23355 ac_cs_silent=: ;;
23356
23357 # This is an error.
23358 -*) { echo "$as_me: error: unrecognized option: $1
23359 Try \`$0 --help' for more information." >&2
23360 { (exit 1); exit 1; }; } ;;
23361
23362 *) ac_config_targets="$ac_config_targets $1"
23363 ac_need_defaults=false ;;
23364
23365 esac
23366 shift
23367 done
23368
23369 ac_configure_extra_args=
23370
23371 if $ac_cs_silent; then
23372 exec 6>/dev/null
23373 ac_configure_extra_args="$ac_configure_extra_args --silent"
23374 fi
23375
23376 _ACEOF
23377 cat >>$CONFIG_STATUS <<_ACEOF
23378 if \$ac_cs_recheck; then
23379 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23380 CONFIG_SHELL=$SHELL
23381 export CONFIG_SHELL
23382 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23383 fi
23384
23385 _ACEOF
23386 cat >>$CONFIG_STATUS <<\_ACEOF
23387 exec 5>>config.log
23388 {
23389 echo
23390 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23391 ## Running $as_me. ##
23392 _ASBOX
23393 echo "$ac_log"
23394 } >&5
23395
23396 _ACEOF
23397 cat >>$CONFIG_STATUS <<_ACEOF
23398 #
23399 # INIT-COMMANDS
23400 #
23401 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23402
23403 _ACEOF
23404
23405 cat >>$CONFIG_STATUS <<\_ACEOF
23406
23407 # Handling of arguments.
23408 for ac_config_target in $ac_config_targets
23409 do
23410 case $ac_config_target in
23411 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23412 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23413 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23414 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23415 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23416 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23417 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23418 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23419 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23420 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23421 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23422 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23423
23424 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23425 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23426 { (exit 1); exit 1; }; };;
23427 esac
23428 done
23429
23430
23431 # If the user did not use the arguments to specify the items to instantiate,
23432 # then the envvar interface is used. Set only those that are not.
23433 # We use the long form for the default assignment because of an extremely
23434 # bizarre bug on SunOS 4.1.3.
23435 if $ac_need_defaults; then
23436 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23437 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23438 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23439 fi
23440
23441 # Have a temporary directory for convenience. Make it in the build tree
23442 # simply because there is no reason against having it here, and in addition,
23443 # creating and moving files from /tmp can sometimes cause problems.
23444 # Hook for its removal unless debugging.
23445 # Note that there is a small window in which the directory will not be cleaned:
23446 # after its creation but before its name has been assigned to `$tmp'.
23447 $debug ||
23448 {
23449 tmp=
23450 trap 'exit_status=$?
23451 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23452 ' 0
23453 trap '{ (exit 1); exit 1; }' 1 2 13 15
23454 }
23455 # Create a (secure) tmp directory for tmp files.
23456
23457 {
23458 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23459 test -n "$tmp" && test -d "$tmp"
23460 } ||
23461 {
23462 tmp=./conf$$-$RANDOM
23463 (umask 077 && mkdir "$tmp")
23464 } ||
23465 {
23466 echo "$me: cannot create a temporary directory in ." >&2
23467 { (exit 1); exit 1; }
23468 }
23469
23470 #
23471 # Set up the sed scripts for CONFIG_FILES section.
23472 #
23473
23474 # No need to generate the scripts if there are no CONFIG_FILES.
23475 # This happens for instance when ./config.status config.h
23476 if test -n "$CONFIG_FILES"; then
23477
23478 _ACEOF
23479
23480
23481
23482 ac_delim='%!_!# '
23483 for ac_last_try in false false false false false :; do
23484 cat >conf$$subs.sed <<_ACEOF
23485 SHELL!$SHELL$ac_delim
23486 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23487 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23488 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23489 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23490 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23491 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23492 exec_prefix!$exec_prefix$ac_delim
23493 prefix!$prefix$ac_delim
23494 program_transform_name!$program_transform_name$ac_delim
23495 bindir!$bindir$ac_delim
23496 sbindir!$sbindir$ac_delim
23497 libexecdir!$libexecdir$ac_delim
23498 datarootdir!$datarootdir$ac_delim
23499 datadir!$datadir$ac_delim
23500 sysconfdir!$sysconfdir$ac_delim
23501 sharedstatedir!$sharedstatedir$ac_delim
23502 localstatedir!$localstatedir$ac_delim
23503 includedir!$includedir$ac_delim
23504 oldincludedir!$oldincludedir$ac_delim
23505 docdir!$docdir$ac_delim
23506 infodir!$infodir$ac_delim
23507 htmldir!$htmldir$ac_delim
23508 dvidir!$dvidir$ac_delim
23509 pdfdir!$pdfdir$ac_delim
23510 psdir!$psdir$ac_delim
23511 libdir!$libdir$ac_delim
23512 localedir!$localedir$ac_delim
23513 mandir!$mandir$ac_delim
23514 DEFS!$DEFS$ac_delim
23515 ECHO_C!$ECHO_C$ac_delim
23516 ECHO_N!$ECHO_N$ac_delim
23517 ECHO_T!$ECHO_T$ac_delim
23518 LIBS!$LIBS$ac_delim
23519 build_alias!$build_alias$ac_delim
23520 host_alias!$host_alias$ac_delim
23521 target_alias!$target_alias$ac_delim
23522 MAINT!$MAINT$ac_delim
23523 build!$build$ac_delim
23524 build_cpu!$build_cpu$ac_delim
23525 build_vendor!$build_vendor$ac_delim
23526 build_os!$build_os$ac_delim
23527 host!$host$ac_delim
23528 host_cpu!$host_cpu$ac_delim
23529 host_vendor!$host_vendor$ac_delim
23530 host_os!$host_os$ac_delim
23531 CC!$CC$ac_delim
23532 CFLAGS!$CFLAGS$ac_delim
23533 LDFLAGS!$LDFLAGS$ac_delim
23534 CPPFLAGS!$CPPFLAGS$ac_delim
23535 ac_ct_CC!$ac_ct_CC$ac_delim
23536 EXEEXT!$EXEEXT$ac_delim
23537 OBJEXT!$OBJEXT$ac_delim
23538 CPP!$CPP$ac_delim
23539 GREP!$GREP$ac_delim
23540 EGREP!$EGREP$ac_delim
23541 LN_S!$LN_S$ac_delim
23542 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23543 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23544 INSTALL_DATA!$INSTALL_DATA$ac_delim
23545 RANLIB!$RANLIB$ac_delim
23546 INSTALL_INFO!$INSTALL_INFO$ac_delim
23547 GZIP_PROG!$GZIP_PROG$ac_delim
23548 LIBSOUND!$LIBSOUND$ac_delim
23549 PKG_CONFIG!$PKG_CONFIG$ac_delim
23550 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23551 ALSA_LIBS!$ALSA_LIBS$ac_delim
23552 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23553 SET_MAKE!$SET_MAKE$ac_delim
23554 XMKMF!$XMKMF$ac_delim
23555 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23556 GTK_LIBS!$GTK_LIBS$ac_delim
23557 ALLOCA!$ALLOCA$ac_delim
23558 liblockfile!$liblockfile$ac_delim
23559 LIBOBJS!$LIBOBJS$ac_delim
23560 NEED_SETGID!$NEED_SETGID$ac_delim
23561 KMEM_GROUP!$KMEM_GROUP$ac_delim
23562 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23563 GETOPT_H!$GETOPT_H$ac_delim
23564 GETOPTOBJS!$GETOPTOBJS$ac_delim
23565 version!$version$ac_delim
23566 configuration!$configuration$ac_delim
23567 canonical!$canonical$ac_delim
23568 srcdir!$srcdir$ac_delim
23569 lispdir!$lispdir$ac_delim
23570 locallisppath!$locallisppath$ac_delim
23571 lisppath!$lisppath$ac_delim
23572 x_default_search_path!$x_default_search_path$ac_delim
23573 etcdir!$etcdir$ac_delim
23574 archlibdir!$archlibdir$ac_delim
23575 bitmapdir!$bitmapdir$ac_delim
23576 gamedir!$gamedir$ac_delim
23577 gameuser!$gameuser$ac_delim
23578 c_switch_system!$c_switch_system$ac_delim
23579 c_switch_machine!$c_switch_machine$ac_delim
23580 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23581 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23582 _ACEOF
23583
23584 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23585 break
23586 elif $ac_last_try; then
23587 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23588 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23589 { (exit 1); exit 1; }; }
23590 else
23591 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23592 fi
23593 done
23594
23595 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23596 if test -n "$ac_eof"; then
23597 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23598 ac_eof=`expr $ac_eof + 1`
23599 fi
23600
23601 cat >>$CONFIG_STATUS <<_ACEOF
23602 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23603 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23604 _ACEOF
23605 sed '
23606 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23607 s/^/s,@/; s/!/@,|#_!!_#|/
23608 :n
23609 t n
23610 s/'"$ac_delim"'$/,g/; t
23611 s/$/\\/; p
23612 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23613 ' >>$CONFIG_STATUS <conf$$subs.sed
23614 rm -f conf$$subs.sed
23615 cat >>$CONFIG_STATUS <<_ACEOF
23616 CEOF$ac_eof
23617 _ACEOF
23618
23619
23620 ac_delim='%!_!# '
23621 for ac_last_try in false false false false false :; do
23622 cat >conf$$subs.sed <<_ACEOF
23623 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23624 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23625 machfile!$machfile$ac_delim
23626 opsysfile!$opsysfile$ac_delim
23627 carbon_appdir!$carbon_appdir$ac_delim
23628 LTLIBOBJS!$LTLIBOBJS$ac_delim
23629 _ACEOF
23630
23631 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 6; then
23632 break
23633 elif $ac_last_try; then
23634 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23635 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23636 { (exit 1); exit 1; }; }
23637 else
23638 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23639 fi
23640 done
23641
23642 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23643 if test -n "$ac_eof"; then
23644 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23645 ac_eof=`expr $ac_eof + 1`
23646 fi
23647
23648 cat >>$CONFIG_STATUS <<_ACEOF
23649 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23650 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23651 _ACEOF
23652 sed '
23653 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23654 s/^/s,@/; s/!/@,|#_!!_#|/
23655 :n
23656 t n
23657 s/'"$ac_delim"'$/,g/; t
23658 s/$/\\/; p
23659 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23660 ' >>$CONFIG_STATUS <conf$$subs.sed
23661 rm -f conf$$subs.sed
23662 cat >>$CONFIG_STATUS <<_ACEOF
23663 :end
23664 s/|#_!!_#|//g
23665 CEOF$ac_eof
23666 _ACEOF
23667
23668
23669 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23670 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23671 # trailing colons and then remove the whole line if VPATH becomes empty
23672 # (actually we leave an empty line to preserve line numbers).
23673 if test "x$srcdir" = x.; then
23674 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23675 s/:*\$(srcdir):*/:/
23676 s/:*\${srcdir}:*/:/
23677 s/:*@srcdir@:*/:/
23678 s/^\([^=]*=[ ]*\):*/\1/
23679 s/:*$//
23680 s/^[^=]*=[ ]*$//
23681 }'
23682 fi
23683
23684 cat >>$CONFIG_STATUS <<\_ACEOF
23685 fi # test -n "$CONFIG_FILES"
23686
23687
23688 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23689 do
23690 case $ac_tag in
23691 :[FHLC]) ac_mode=$ac_tag; continue;;
23692 esac
23693 case $ac_mode$ac_tag in
23694 :[FHL]*:*);;
23695 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23696 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23697 { (exit 1); exit 1; }; };;
23698 :[FH]-) ac_tag=-:-;;
23699 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23700 esac
23701 ac_save_IFS=$IFS
23702 IFS=:
23703 set x $ac_tag
23704 IFS=$ac_save_IFS
23705 shift
23706 ac_file=$1
23707 shift
23708
23709 case $ac_mode in
23710 :L) ac_source=$1;;
23711 :[FH])
23712 ac_file_inputs=
23713 for ac_f
23714 do
23715 case $ac_f in
23716 -) ac_f="$tmp/stdin";;
23717 *) # Look for the file first in the build tree, then in the source tree
23718 # (if the path is not absolute). The absolute path cannot be DOS-style,
23719 # because $ac_f cannot contain `:'.
23720 test -f "$ac_f" ||
23721 case $ac_f in
23722 [\\/$]*) false;;
23723 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23724 esac ||
23725 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23726 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23727 { (exit 1); exit 1; }; };;
23728 esac
23729 ac_file_inputs="$ac_file_inputs $ac_f"
23730 done
23731
23732 # Let's still pretend it is `configure' which instantiates (i.e., don't
23733 # use $as_me), people would be surprised to read:
23734 # /* config.h. Generated by config.status. */
23735 configure_input="Generated from "`IFS=:
23736 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23737 if test x"$ac_file" != x-; then
23738 configure_input="$ac_file. $configure_input"
23739 { echo "$as_me:$LINENO: creating $ac_file" >&5
23740 echo "$as_me: creating $ac_file" >&6;}
23741 fi
23742
23743 case $ac_tag in
23744 *:-:* | *:-) cat >"$tmp/stdin";;
23745 esac
23746 ;;
23747 esac
23748
23749 ac_dir=`$as_dirname -- "$ac_file" ||
23750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23751 X"$ac_file" : 'X\(//\)[^/]' \| \
23752 X"$ac_file" : 'X\(//\)$' \| \
23753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23754 echo X"$ac_file" |
23755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23756 s//\1/
23757 q
23758 }
23759 /^X\(\/\/\)[^/].*/{
23760 s//\1/
23761 q
23762 }
23763 /^X\(\/\/\)$/{
23764 s//\1/
23765 q
23766 }
23767 /^X\(\/\).*/{
23768 s//\1/
23769 q
23770 }
23771 s/.*/./; q'`
23772 { as_dir="$ac_dir"
23773 case $as_dir in #(
23774 -*) as_dir=./$as_dir;;
23775 esac
23776 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
23777 as_dirs=
23778 while :; do
23779 case $as_dir in #(
23780 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
23781 *) as_qdir=$as_dir;;
23782 esac
23783 as_dirs="'$as_qdir' $as_dirs"
23784 as_dir=`$as_dirname -- "$as_dir" ||
23785 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23786 X"$as_dir" : 'X\(//\)[^/]' \| \
23787 X"$as_dir" : 'X\(//\)$' \| \
23788 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
23789 echo X"$as_dir" |
23790 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23791 s//\1/
23792 q
23793 }
23794 /^X\(\/\/\)[^/].*/{
23795 s//\1/
23796 q
23797 }
23798 /^X\(\/\/\)$/{
23799 s//\1/
23800 q
23801 }
23802 /^X\(\/\).*/{
23803 s//\1/
23804 q
23805 }
23806 s/.*/./; q'`
23807 test -d "$as_dir" && break
23808 done
23809 test -z "$as_dirs" || eval "mkdir $as_dirs"
23810 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
23811 echo "$as_me: error: cannot create directory $as_dir" >&2;}
23812 { (exit 1); exit 1; }; }; }
23813 ac_builddir=.
23814
23815 case "$ac_dir" in
23816 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
23817 *)
23818 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
23819 # A ".." for each directory in $ac_dir_suffix.
23820 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
23821 case $ac_top_builddir_sub in
23822 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
23823 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
23824 esac ;;
23825 esac
23826 ac_abs_top_builddir=$ac_pwd
23827 ac_abs_builddir=$ac_pwd$ac_dir_suffix
23828 # for backward compatibility:
23829 ac_top_builddir=$ac_top_build_prefix
23830
23831 case $srcdir in
23832 .) # We are building in place.
23833 ac_srcdir=.
23834 ac_top_srcdir=$ac_top_builddir_sub
23835 ac_abs_top_srcdir=$ac_pwd ;;
23836 [\\/]* | ?:[\\/]* ) # Absolute name.
23837 ac_srcdir=$srcdir$ac_dir_suffix;
23838 ac_top_srcdir=$srcdir
23839 ac_abs_top_srcdir=$srcdir ;;
23840 *) # Relative name.
23841 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
23842 ac_top_srcdir=$ac_top_build_prefix$srcdir
23843 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
23844 esac
23845 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
23846
23847
23848 case $ac_mode in
23849 :F)
23850 #
23851 # CONFIG_FILE
23852 #
23853
23854 case $INSTALL in
23855 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
23856 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
23857 esac
23858 _ACEOF
23859
23860 cat >>$CONFIG_STATUS <<\_ACEOF
23861 # If the template does not know about datarootdir, expand it.
23862 # FIXME: This hack should be removed a few years after 2.60.
23863 ac_datarootdir_hack=; ac_datarootdir_seen=
23864
23865 case `sed -n '/datarootdir/ {
23866 p
23867 q
23868 }
23869 /@datadir@/p
23870 /@docdir@/p
23871 /@infodir@/p
23872 /@localedir@/p
23873 /@mandir@/p
23874 ' $ac_file_inputs` in
23875 *datarootdir*) ac_datarootdir_seen=yes;;
23876 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
23877 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
23878 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
23879 _ACEOF
23880 cat >>$CONFIG_STATUS <<_ACEOF
23881 ac_datarootdir_hack='
23882 s&@datadir@&$datadir&g
23883 s&@docdir@&$docdir&g
23884 s&@infodir@&$infodir&g
23885 s&@localedir@&$localedir&g
23886 s&@mandir@&$mandir&g
23887 s&\\\${datarootdir}&$datarootdir&g' ;;
23888 esac
23889 _ACEOF
23890
23891 # Neutralize VPATH when `$srcdir' = `.'.
23892 # Shell code in configure.ac might set extrasub.
23893 # FIXME: do we really want to maintain this feature?
23894 cat >>$CONFIG_STATUS <<_ACEOF
23895 sed "$ac_vpsub
23896 $extrasub
23897 _ACEOF
23898 cat >>$CONFIG_STATUS <<\_ACEOF
23899 :t
23900 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23901 s&@configure_input@&$configure_input&;t t
23902 s&@top_builddir@&$ac_top_builddir_sub&;t t
23903 s&@srcdir@&$ac_srcdir&;t t
23904 s&@abs_srcdir@&$ac_abs_srcdir&;t t
23905 s&@top_srcdir@&$ac_top_srcdir&;t t
23906 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
23907 s&@builddir@&$ac_builddir&;t t
23908 s&@abs_builddir@&$ac_abs_builddir&;t t
23909 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
23910 s&@INSTALL@&$ac_INSTALL&;t t
23911 $ac_datarootdir_hack
23912 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
23913
23914 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
23915 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
23916 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
23917 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23918 which seems to be undefined. Please make sure it is defined." >&5
23919 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
23920 which seems to be undefined. Please make sure it is defined." >&2;}
23921
23922 rm -f "$tmp/stdin"
23923 case $ac_file in
23924 -) cat "$tmp/out"; rm -f "$tmp/out";;
23925 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
23926 esac
23927 ;;
23928 :H)
23929 #
23930 # CONFIG_HEADER
23931 #
23932 _ACEOF
23933
23934 # Transform confdefs.h into a sed script `conftest.defines', that
23935 # substitutes the proper values into config.h.in to produce config.h.
23936 rm -f conftest.defines conftest.tail
23937 # First, append a space to every undef/define line, to ease matching.
23938 echo 's/$/ /' >conftest.defines
23939 # Then, protect against being on the right side of a sed subst, or in
23940 # an unquoted here document, in config.status. If some macros were
23941 # called several times there might be several #defines for the same
23942 # symbol, which is useless. But do not sort them, since the last
23943 # AC_DEFINE must be honored.
23944 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
23945 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
23946 # NAME is the cpp macro being defined, VALUE is the value it is being given.
23947 # PARAMS is the parameter list in the macro definition--in most cases, it's
23948 # just an empty string.
23949 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
23950 ac_dB='\\)[ (].*,\\1define\\2'
23951 ac_dC=' '
23952 ac_dD=' ,'
23953
23954 uniq confdefs.h |
23955 sed -n '
23956 t rset
23957 :rset
23958 s/^[ ]*#[ ]*define[ ][ ]*//
23959 t ok
23960 d
23961 :ok
23962 s/[\\&,]/\\&/g
23963 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
23964 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
23965 ' >>conftest.defines
23966
23967 # Remove the space that was appended to ease matching.
23968 # Then replace #undef with comments. This is necessary, for
23969 # example, in the case of _POSIX_SOURCE, which is predefined and required
23970 # on some systems where configure will not decide to define it.
23971 # (The regexp can be short, since the line contains either #define or #undef.)
23972 echo 's/ $//
23973 s,^[ #]*u.*,/* & */,' >>conftest.defines
23974
23975 # Break up conftest.defines:
23976 ac_max_sed_lines=50
23977
23978 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
23979 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
23980 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
23981 # et cetera.
23982 ac_in='$ac_file_inputs'
23983 ac_out='"$tmp/out1"'
23984 ac_nxt='"$tmp/out2"'
23985
23986 while :
23987 do
23988 # Write a here document:
23989 cat >>$CONFIG_STATUS <<_ACEOF
23990 # First, check the format of the line:
23991 cat >"\$tmp/defines.sed" <<\\CEOF
23992 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
23993 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
23994 b
23995 :def
23996 _ACEOF
23997 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
23998 echo 'CEOF
23999 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24000 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24001 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24002 grep . conftest.tail >/dev/null || break
24003 rm -f conftest.defines
24004 mv conftest.tail conftest.defines
24005 done
24006 rm -f conftest.defines conftest.tail
24007
24008 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24009 cat >>$CONFIG_STATUS <<\_ACEOF
24010 if test x"$ac_file" != x-; then
24011 echo "/* $configure_input */" >"$tmp/config.h"
24012 cat "$ac_result" >>"$tmp/config.h"
24013 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24014 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24015 echo "$as_me: $ac_file is unchanged" >&6;}
24016 else
24017 rm -f $ac_file
24018 mv "$tmp/config.h" $ac_file
24019 fi
24020 else
24021 echo "/* $configure_input */"
24022 cat "$ac_result"
24023 fi
24024 rm -f "$tmp/out12"
24025 ;;
24026
24027 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24028 echo "$as_me: executing $ac_file commands" >&6;}
24029 ;;
24030 esac
24031
24032
24033 case $ac_file$ac_mode in
24034 "default":C)
24035
24036 ### Make the necessary directories, if they don't exist.
24037 for dir in etc lisp ; do
24038 test -d ${dir} || mkdir ${dir}
24039 done
24040
24041 # Build src/Makefile from ${srcdir}/src/Makefile.c
24042 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24043 # This must be done after src/config.h is built, since we rely on that file.
24044
24045 # Now get this: Some word that is part of the ${srcdir} directory name
24046 # or the ${configuration} value might, just might, happen to be an
24047 # identifier like `sun4' or `i386' or something, and be predefined by
24048 # the C preprocessor to some helpful value like 1, or maybe the empty
24049 # string. Needless to say consequent macro substitutions are less
24050 # than conducive to the makefile finding the correct directory.
24051 undefs="`echo $top_srcdir $configuration $canonical |
24052 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24053 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24054 `"
24055
24056 echo creating src/epaths.h
24057 ${MAKE-make} epaths-force
24058
24059 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24060 # `..' to `. .' unless invoked with -traditional
24061
24062 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24063 CPPFLAGS="$CPPFLAGS -traditional"
24064 fi
24065
24066 echo creating lib-src/Makefile
24067 ( cd lib-src
24068 rm -f junk.c junk1.c junk2.c
24069 sed -e '/start of cpp stuff/q' \
24070 < Makefile.c > junk1.c
24071 sed -e '1,/start of cpp stuff/d'\
24072 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24073 < Makefile.c > junk.c
24074 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24075 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24076 cat junk1.c junk2.c > Makefile.new
24077 rm -f junk.c junk1.c junk2.c
24078 chmod 444 Makefile.new
24079 mv -f Makefile.new Makefile
24080 )
24081
24082 echo creating src/Makefile
24083 ( cd src
24084 rm -f junk.c junk1.c junk2.c
24085 sed -e '/start of cpp stuff/q' \
24086 < Makefile.c > junk1.c
24087 sed -e '1,/start of cpp stuff/d'\
24088 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24089 < Makefile.c > junk.c
24090 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24091 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24092 cat junk1.c junk2.c > Makefile.new
24093 rm -f junk.c junk1.c junk2.c
24094 chmod 444 Makefile.new
24095 mv -f Makefile.new Makefile
24096 )
24097
24098 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24099 echo creating src/.gdbinit
24100 echo source $srcdir/src/.gdbinit > src/.gdbinit
24101 fi
24102
24103 # This is how we know whether to re-run configure in certain cases.
24104 touch src/config.stamp
24105
24106 ;;
24107
24108 esac
24109 done # for ac_tag
24110
24111
24112 { (exit 0); exit 0; }
24113 _ACEOF
24114 chmod +x $CONFIG_STATUS
24115 ac_clean_files=$ac_clean_files_save
24116
24117
24118 # configure is writing to config.log, and then calls config.status.
24119 # config.status does its own redirection, appending to config.log.
24120 # Unfortunately, on DOS this fails, as config.log is still kept open
24121 # by configure, so config.status won't be able to write to it; its
24122 # output is simply discarded. So we exec the FD to /dev/null,
24123 # effectively closing config.log, so it can be properly (re)opened and
24124 # appended to by config.status. When coming back to configure, we
24125 # need to make the FD available again.
24126 if test "$no_create" != yes; then
24127 ac_cs_success=:
24128 ac_config_status_args=
24129 test "$silent" = yes &&
24130 ac_config_status_args="$ac_config_status_args --quiet"
24131 exec 5>/dev/null
24132 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24133 exec 5>>config.log
24134 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24135 # would make configure fail if this is the last instruction.
24136 $ac_cs_success || { (exit 1); exit 1; }
24137 fi
24138
24139