]> code.delx.au - gnu-emacs/blob - configure
* configure.in (xtensa-*-linux-gnu*): New configuration.
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 ALLOCA
695 liblockfile
696 LIBOBJS
697 NEED_SETGID
698 KMEM_GROUP
699 GETLOADAVG_LIBS
700 GETOPT_H
701 GETOPTOBJS
702 version
703 configuration
704 canonical
705 srcdir
706 lispdir
707 locallisppath
708 lisppath
709 x_default_search_path
710 etcdir
711 archlibdir
712 bitmapdir
713 gamedir
714 gameuser
715 c_switch_system
716 c_switch_machine
717 LD_SWITCH_X_SITE
718 LD_SWITCH_X_SITE_AUX
719 C_SWITCH_X_SITE
720 X_TOOLKIT_TYPE
721 machfile
722 opsysfile
723 carbon_appdir
724 LTLIBOBJS'
725 ac_subst_files=''
726 ac_precious_vars='build_alias
727 host_alias
728 target_alias
729 CC
730 CFLAGS
731 LDFLAGS
732 LIBS
733 CPPFLAGS
734 CPP
735 XMKMF'
736
737
738 # Initialize some variables set by options.
739 ac_init_help=
740 ac_init_version=false
741 # The variables have the same names as the options, with
742 # dashes changed to underlines.
743 cache_file=/dev/null
744 exec_prefix=NONE
745 no_create=
746 no_recursion=
747 prefix=NONE
748 program_prefix=NONE
749 program_suffix=NONE
750 program_transform_name=s,x,x,
751 silent=
752 site=
753 srcdir=
754 verbose=
755 x_includes=NONE
756 x_libraries=NONE
757
758 # Installation directory options.
759 # These are left unexpanded so users can "make install exec_prefix=/foo"
760 # and all the variables that are supposed to be based on exec_prefix
761 # by default will actually change.
762 # Use braces instead of parens because sh, perl, etc. also accept them.
763 # (The list follows the same order as the GNU Coding Standards.)
764 bindir='${exec_prefix}/bin'
765 sbindir='${exec_prefix}/sbin'
766 libexecdir='${exec_prefix}/libexec'
767 datarootdir='${prefix}/share'
768 datadir='${datarootdir}'
769 sysconfdir='${prefix}/etc'
770 sharedstatedir='${prefix}/com'
771 localstatedir='${prefix}/var'
772 includedir='${prefix}/include'
773 oldincludedir='/usr/include'
774 docdir='${datarootdir}/doc/${PACKAGE}'
775 infodir='${datarootdir}/info'
776 htmldir='${docdir}'
777 dvidir='${docdir}'
778 pdfdir='${docdir}'
779 psdir='${docdir}'
780 libdir='${exec_prefix}/lib'
781 localedir='${datarootdir}/locale'
782 mandir='${datarootdir}/man'
783
784 ac_prev=
785 ac_dashdash=
786 for ac_option
787 do
788 # If the previous option needs an argument, assign it.
789 if test -n "$ac_prev"; then
790 eval $ac_prev=\$ac_option
791 ac_prev=
792 continue
793 fi
794
795 case $ac_option in
796 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
797 *) ac_optarg=yes ;;
798 esac
799
800 # Accept the important Cygnus configure options, so we can diagnose typos.
801
802 case $ac_dashdash$ac_option in
803 --)
804 ac_dashdash=yes ;;
805
806 -bindir | --bindir | --bindi | --bind | --bin | --bi)
807 ac_prev=bindir ;;
808 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
809 bindir=$ac_optarg ;;
810
811 -build | --build | --buil | --bui | --bu)
812 ac_prev=build_alias ;;
813 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
814 build_alias=$ac_optarg ;;
815
816 -cache-file | --cache-file | --cache-fil | --cache-fi \
817 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
818 ac_prev=cache_file ;;
819 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
820 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
821 cache_file=$ac_optarg ;;
822
823 --config-cache | -C)
824 cache_file=config.cache ;;
825
826 -datadir | --datadir | --datadi | --datad)
827 ac_prev=datadir ;;
828 -datadir=* | --datadir=* | --datadi=* | --datad=*)
829 datadir=$ac_optarg ;;
830
831 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
832 | --dataroo | --dataro | --datar)
833 ac_prev=datarootdir ;;
834 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
835 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
836 datarootdir=$ac_optarg ;;
837
838 -disable-* | --disable-*)
839 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
840 # Reject names that are not valid shell variable names.
841 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
842 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
843 { (exit 1); exit 1; }; }
844 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
845 eval enable_$ac_feature=no ;;
846
847 -docdir | --docdir | --docdi | --doc | --do)
848 ac_prev=docdir ;;
849 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
850 docdir=$ac_optarg ;;
851
852 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
853 ac_prev=dvidir ;;
854 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
855 dvidir=$ac_optarg ;;
856
857 -enable-* | --enable-*)
858 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
859 # Reject names that are not valid shell variable names.
860 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
861 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
862 { (exit 1); exit 1; }; }
863 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
864 eval enable_$ac_feature=\$ac_optarg ;;
865
866 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
867 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
868 | --exec | --exe | --ex)
869 ac_prev=exec_prefix ;;
870 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
871 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
872 | --exec=* | --exe=* | --ex=*)
873 exec_prefix=$ac_optarg ;;
874
875 -gas | --gas | --ga | --g)
876 # Obsolete; use --with-gas.
877 with_gas=yes ;;
878
879 -help | --help | --hel | --he | -h)
880 ac_init_help=long ;;
881 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
882 ac_init_help=recursive ;;
883 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
884 ac_init_help=short ;;
885
886 -host | --host | --hos | --ho)
887 ac_prev=host_alias ;;
888 -host=* | --host=* | --hos=* | --ho=*)
889 host_alias=$ac_optarg ;;
890
891 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
892 ac_prev=htmldir ;;
893 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
894 | --ht=*)
895 htmldir=$ac_optarg ;;
896
897 -includedir | --includedir | --includedi | --included | --include \
898 | --includ | --inclu | --incl | --inc)
899 ac_prev=includedir ;;
900 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
901 | --includ=* | --inclu=* | --incl=* | --inc=*)
902 includedir=$ac_optarg ;;
903
904 -infodir | --infodir | --infodi | --infod | --info | --inf)
905 ac_prev=infodir ;;
906 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
907 infodir=$ac_optarg ;;
908
909 -libdir | --libdir | --libdi | --libd)
910 ac_prev=libdir ;;
911 -libdir=* | --libdir=* | --libdi=* | --libd=*)
912 libdir=$ac_optarg ;;
913
914 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
915 | --libexe | --libex | --libe)
916 ac_prev=libexecdir ;;
917 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
918 | --libexe=* | --libex=* | --libe=*)
919 libexecdir=$ac_optarg ;;
920
921 -localedir | --localedir | --localedi | --localed | --locale)
922 ac_prev=localedir ;;
923 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
924 localedir=$ac_optarg ;;
925
926 -localstatedir | --localstatedir | --localstatedi | --localstated \
927 | --localstate | --localstat | --localsta | --localst | --locals)
928 ac_prev=localstatedir ;;
929 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
930 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
931 localstatedir=$ac_optarg ;;
932
933 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
934 ac_prev=mandir ;;
935 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
936 mandir=$ac_optarg ;;
937
938 -nfp | --nfp | --nf)
939 # Obsolete; use --without-fp.
940 with_fp=no ;;
941
942 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
943 | --no-cr | --no-c | -n)
944 no_create=yes ;;
945
946 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
947 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
948 no_recursion=yes ;;
949
950 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
951 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
952 | --oldin | --oldi | --old | --ol | --o)
953 ac_prev=oldincludedir ;;
954 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
955 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
956 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
957 oldincludedir=$ac_optarg ;;
958
959 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
960 ac_prev=prefix ;;
961 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
962 prefix=$ac_optarg ;;
963
964 -program-prefix | --program-prefix | --program-prefi | --program-pref \
965 | --program-pre | --program-pr | --program-p)
966 ac_prev=program_prefix ;;
967 -program-prefix=* | --program-prefix=* | --program-prefi=* \
968 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
969 program_prefix=$ac_optarg ;;
970
971 -program-suffix | --program-suffix | --program-suffi | --program-suff \
972 | --program-suf | --program-su | --program-s)
973 ac_prev=program_suffix ;;
974 -program-suffix=* | --program-suffix=* | --program-suffi=* \
975 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
976 program_suffix=$ac_optarg ;;
977
978 -program-transform-name | --program-transform-name \
979 | --program-transform-nam | --program-transform-na \
980 | --program-transform-n | --program-transform- \
981 | --program-transform | --program-transfor \
982 | --program-transfo | --program-transf \
983 | --program-trans | --program-tran \
984 | --progr-tra | --program-tr | --program-t)
985 ac_prev=program_transform_name ;;
986 -program-transform-name=* | --program-transform-name=* \
987 | --program-transform-nam=* | --program-transform-na=* \
988 | --program-transform-n=* | --program-transform-=* \
989 | --program-transform=* | --program-transfor=* \
990 | --program-transfo=* | --program-transf=* \
991 | --program-trans=* | --program-tran=* \
992 | --progr-tra=* | --program-tr=* | --program-t=*)
993 program_transform_name=$ac_optarg ;;
994
995 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
996 ac_prev=pdfdir ;;
997 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
998 pdfdir=$ac_optarg ;;
999
1000 -psdir | --psdir | --psdi | --psd | --ps)
1001 ac_prev=psdir ;;
1002 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1003 psdir=$ac_optarg ;;
1004
1005 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1006 | -silent | --silent | --silen | --sile | --sil)
1007 silent=yes ;;
1008
1009 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1010 ac_prev=sbindir ;;
1011 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1012 | --sbi=* | --sb=*)
1013 sbindir=$ac_optarg ;;
1014
1015 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1016 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1017 | --sharedst | --shareds | --shared | --share | --shar \
1018 | --sha | --sh)
1019 ac_prev=sharedstatedir ;;
1020 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1021 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1022 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1023 | --sha=* | --sh=*)
1024 sharedstatedir=$ac_optarg ;;
1025
1026 -site | --site | --sit)
1027 ac_prev=site ;;
1028 -site=* | --site=* | --sit=*)
1029 site=$ac_optarg ;;
1030
1031 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1032 ac_prev=srcdir ;;
1033 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1034 srcdir=$ac_optarg ;;
1035
1036 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1037 | --syscon | --sysco | --sysc | --sys | --sy)
1038 ac_prev=sysconfdir ;;
1039 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1040 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1041 sysconfdir=$ac_optarg ;;
1042
1043 -target | --target | --targe | --targ | --tar | --ta | --t)
1044 ac_prev=target_alias ;;
1045 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1046 target_alias=$ac_optarg ;;
1047
1048 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1049 verbose=yes ;;
1050
1051 -version | --version | --versio | --versi | --vers | -V)
1052 ac_init_version=: ;;
1053
1054 -with-* | --with-*)
1055 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1056 # Reject names that are not valid shell variable names.
1057 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1058 { echo "$as_me: error: invalid package name: $ac_package" >&2
1059 { (exit 1); exit 1; }; }
1060 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1061 eval with_$ac_package=\$ac_optarg ;;
1062
1063 -without-* | --without-*)
1064 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1065 # Reject names that are not valid shell variable names.
1066 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1067 { echo "$as_me: error: invalid package name: $ac_package" >&2
1068 { (exit 1); exit 1; }; }
1069 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1070 eval with_$ac_package=no ;;
1071
1072 --x)
1073 # Obsolete; use --with-x.
1074 with_x=yes ;;
1075
1076 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1077 | --x-incl | --x-inc | --x-in | --x-i)
1078 ac_prev=x_includes ;;
1079 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1080 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1081 x_includes=$ac_optarg ;;
1082
1083 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1084 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1085 ac_prev=x_libraries ;;
1086 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1087 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1088 x_libraries=$ac_optarg ;;
1089
1090 -*) { echo "$as_me: error: unrecognized option: $ac_option
1091 Try \`$0 --help' for more information." >&2
1092 { (exit 1); exit 1; }; }
1093 ;;
1094
1095 *=*)
1096 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1097 # Reject names that are not valid shell variable names.
1098 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1099 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1100 { (exit 1); exit 1; }; }
1101 eval $ac_envvar=\$ac_optarg
1102 export $ac_envvar ;;
1103
1104 *)
1105 # FIXME: should be removed in autoconf 3.0.
1106 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1107 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1108 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1109 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1110 ;;
1111
1112 esac
1113 done
1114
1115 if test -n "$ac_prev"; then
1116 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1117 { echo "$as_me: error: missing argument to $ac_option" >&2
1118 { (exit 1); exit 1; }; }
1119 fi
1120
1121 # Be sure to have absolute directory names.
1122 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1123 datadir sysconfdir sharedstatedir localstatedir includedir \
1124 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1125 libdir localedir mandir
1126 do
1127 eval ac_val=\$$ac_var
1128 case $ac_val in
1129 [\\/$]* | ?:[\\/]* ) continue;;
1130 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1131 esac
1132 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1133 { (exit 1); exit 1; }; }
1134 done
1135
1136 # There might be people who depend on the old broken behavior: `$host'
1137 # used to hold the argument of --host etc.
1138 # FIXME: To remove some day.
1139 build=$build_alias
1140 host=$host_alias
1141 target=$target_alias
1142
1143 # FIXME: To remove some day.
1144 if test "x$host_alias" != x; then
1145 if test "x$build_alias" = x; then
1146 cross_compiling=maybe
1147 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1148 If a cross compiler is detected then cross compile mode will be used." >&2
1149 elif test "x$build_alias" != "x$host_alias"; then
1150 cross_compiling=yes
1151 fi
1152 fi
1153
1154 ac_tool_prefix=
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1156
1157 test "$silent" = yes && exec 6>/dev/null
1158
1159
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 { echo "$as_me: error: Working directory cannot be determined" >&2
1164 { (exit 1); exit 1; }; }
1165 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1166 { echo "$as_me: error: pwd does not report name of working directory" >&2
1167 { (exit 1); exit 1; }; }
1168
1169
1170 # Find the source files, if location was not specified.
1171 if test -z "$srcdir"; then
1172 ac_srcdir_defaulted=yes
1173 # Try the directory containing this script, then the parent directory.
1174 ac_confdir=`$as_dirname -- "$0" ||
1175 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1176 X"$0" : 'X\(//\)[^/]' \| \
1177 X"$0" : 'X\(//\)$' \| \
1178 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1179 echo X"$0" |
1180 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1181 s//\1/
1182 q
1183 }
1184 /^X\(\/\/\)[^/].*/{
1185 s//\1/
1186 q
1187 }
1188 /^X\(\/\/\)$/{
1189 s//\1/
1190 q
1191 }
1192 /^X\(\/\).*/{
1193 s//\1/
1194 q
1195 }
1196 s/.*/./; q'`
1197 srcdir=$ac_confdir
1198 if test ! -r "$srcdir/$ac_unique_file"; then
1199 srcdir=..
1200 fi
1201 else
1202 ac_srcdir_defaulted=no
1203 fi
1204 if test ! -r "$srcdir/$ac_unique_file"; then
1205 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1206 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1207 { (exit 1); exit 1; }; }
1208 fi
1209 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1210 ac_abs_confdir=`(
1211 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1212 { (exit 1); exit 1; }; }
1213 pwd)`
1214 # When building in place, set srcdir=.
1215 if test "$ac_abs_confdir" = "$ac_pwd"; then
1216 srcdir=.
1217 fi
1218 # Remove unnecessary trailing slashes from srcdir.
1219 # Double slashes in file names in object file debugging info
1220 # mess up M-x gdb in Emacs.
1221 case $srcdir in
1222 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1223 esac
1224 for ac_var in $ac_precious_vars; do
1225 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_env_${ac_var}_value=\$${ac_var}
1227 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1229 done
1230
1231 #
1232 # Report the --help message.
1233 #
1234 if test "$ac_init_help" = "long"; then
1235 # Omit some internal or obsolete options to make the list less imposing.
1236 # This message is too long to be a string in the A/UX 3.1 sh.
1237 cat <<_ACEOF
1238 \`configure' configures this package to adapt to many kinds of systems.
1239
1240 Usage: $0 [OPTION]... [VAR=VALUE]...
1241
1242 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1243 VAR=VALUE. See below for descriptions of some of the useful variables.
1244
1245 Defaults for the options are specified in brackets.
1246
1247 Configuration:
1248 -h, --help display this help and exit
1249 --help=short display options specific to this package
1250 --help=recursive display the short help of all the included packages
1251 -V, --version display version information and exit
1252 -q, --quiet, --silent do not print \`checking...' messages
1253 --cache-file=FILE cache test results in FILE [disabled]
1254 -C, --config-cache alias for \`--cache-file=config.cache'
1255 -n, --no-create do not create output files
1256 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1257
1258 Installation directories:
1259 --prefix=PREFIX install architecture-independent files in PREFIX
1260 [$ac_default_prefix]
1261 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1262 [PREFIX]
1263
1264 By default, \`make install' will install all the files in
1265 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1266 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1267 for instance \`--prefix=\$HOME'.
1268
1269 For better control, use the options below.
1270
1271 Fine tuning of the installation directories:
1272 --bindir=DIR user executables [EPREFIX/bin]
1273 --sbindir=DIR system admin executables [EPREFIX/sbin]
1274 --libexecdir=DIR program executables [EPREFIX/libexec]
1275 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1276 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1277 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1278 --libdir=DIR object code libraries [EPREFIX/lib]
1279 --includedir=DIR C header files [PREFIX/include]
1280 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1281 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1282 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1283 --infodir=DIR info documentation [DATAROOTDIR/info]
1284 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1285 --mandir=DIR man documentation [DATAROOTDIR/man]
1286 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1287 --htmldir=DIR html documentation [DOCDIR]
1288 --dvidir=DIR dvi documentation [DOCDIR]
1289 --pdfdir=DIR pdf documentation [DOCDIR]
1290 --psdir=DIR ps documentation [DOCDIR]
1291 _ACEOF
1292
1293 cat <<\_ACEOF
1294
1295 Program names:
1296 --program-prefix=PREFIX prepend PREFIX to installed program names
1297 --program-suffix=SUFFIX append SUFFIX to installed program names
1298 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1299
1300 X features:
1301 --x-includes=DIR X include files are in DIR
1302 --x-libraries=DIR X library files are in DIR
1303
1304 System types:
1305 --build=BUILD configure for building on BUILD [guessed]
1306 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1307 _ACEOF
1308 fi
1309
1310 if test -n "$ac_init_help"; then
1311
1312 cat <<\_ACEOF
1313
1314 Optional Features:
1315 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1316 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1317 --enable-carbon-app[=DIR] [DIR=/Application]
1318 specify install directory for Emacs.app on Mac OS X
1319 --enable-asserts compile code with asserts enabled
1320 --enable-maintainer-mode enable make rules and dependencies not useful
1321 (and sometimes confusing) to the casual installer
1322 --enable-locallisppath=PATH
1323 directories Emacs should search for lisp files
1324 specific to this site
1325 --disable-largefile omit support for large files
1326
1327 Optional Packages:
1328 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1329 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1330 --without-gcc don't use GCC to compile Emacs if GCC is found
1331 --without-pop don't support POP mail retrieval with movemail
1332 --with-kerberos support Kerberos-authenticated POP
1333 --with-kerberos5 support Kerberos version 5 authenticated POP
1334 --with-hesiod support Hesiod to get the POP server host
1335 --without-sound don't compile with sound support
1336 --with-x-toolkit=KIT use an X toolkit
1337 (KIT = yes/lucid/athena/motif/gtk/no)
1338 --with-xpm use -lXpm for displaying XPM images
1339 --with-jpeg use -ljpeg for displaying JPEG images
1340 --with-tiff use -ltiff for displaying TIFF images
1341 --with-gif use -lungif for displaying GIF images
1342 --with-png use -lpng for displaying PNG images
1343 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1344 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1345 --without-toolkit-scroll-bars
1346 don't use Motif or Xaw3d scroll bars
1347 --without-xim don't use X11 XIM
1348 --without-carbon don't use Carbon GUI on Mac OS X
1349 --with-x use the X Window System
1350
1351 Some influential environment variables:
1352 CC C compiler command
1353 CFLAGS C compiler flags
1354 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1355 nonstandard directory <lib dir>
1356 LIBS libraries to pass to the linker, e.g. -l<library>
1357 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1358 you have headers in a nonstandard directory <include dir>
1359 CPP C preprocessor
1360 XMKMF Path to xmkmf, Makefile generator for X Window System
1361
1362 Use these variables to override the choices made by `configure' or to help
1363 it to find libraries and programs with nonstandard names/locations.
1364
1365 _ACEOF
1366 ac_status=$?
1367 fi
1368
1369 if test "$ac_init_help" = "recursive"; then
1370 # If there are subdirs, report their specific --help.
1371 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1372 test -d "$ac_dir" || continue
1373 ac_builddir=.
1374
1375 case "$ac_dir" in
1376 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1377 *)
1378 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1379 # A ".." for each directory in $ac_dir_suffix.
1380 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1381 case $ac_top_builddir_sub in
1382 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1383 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1384 esac ;;
1385 esac
1386 ac_abs_top_builddir=$ac_pwd
1387 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1388 # for backward compatibility:
1389 ac_top_builddir=$ac_top_build_prefix
1390
1391 case $srcdir in
1392 .) # We are building in place.
1393 ac_srcdir=.
1394 ac_top_srcdir=$ac_top_builddir_sub
1395 ac_abs_top_srcdir=$ac_pwd ;;
1396 [\\/]* | ?:[\\/]* ) # Absolute name.
1397 ac_srcdir=$srcdir$ac_dir_suffix;
1398 ac_top_srcdir=$srcdir
1399 ac_abs_top_srcdir=$srcdir ;;
1400 *) # Relative name.
1401 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1402 ac_top_srcdir=$ac_top_build_prefix$srcdir
1403 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1404 esac
1405 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1406
1407 cd "$ac_dir" || { ac_status=$?; continue; }
1408 # Check for guested configure.
1409 if test -f "$ac_srcdir/configure.gnu"; then
1410 echo &&
1411 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1412 elif test -f "$ac_srcdir/configure"; then
1413 echo &&
1414 $SHELL "$ac_srcdir/configure" --help=recursive
1415 else
1416 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1417 fi || ac_status=$?
1418 cd "$ac_pwd" || { ac_status=$?; break; }
1419 done
1420 fi
1421
1422 test -n "$ac_init_help" && exit $ac_status
1423 if $ac_init_version; then
1424 cat <<\_ACEOF
1425 configure
1426 generated by GNU Autoconf 2.61
1427
1428 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1429 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1430 This configure script is free software; the Free Software Foundation
1431 gives unlimited permission to copy, distribute and modify it.
1432 _ACEOF
1433 exit
1434 fi
1435 cat >config.log <<_ACEOF
1436 This file contains any messages produced by compilers while
1437 running configure, to aid debugging if configure makes a mistake.
1438
1439 It was created by $as_me, which was
1440 generated by GNU Autoconf 2.61. Invocation command line was
1441
1442 $ $0 $@
1443
1444 _ACEOF
1445 exec 5>>config.log
1446 {
1447 cat <<_ASUNAME
1448 ## --------- ##
1449 ## Platform. ##
1450 ## --------- ##
1451
1452 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1453 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1454 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1455 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1456 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1457
1458 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1459 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1460
1461 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1462 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1463 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1464 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1465 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1466 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1467 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1468
1469 _ASUNAME
1470
1471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1472 for as_dir in $PATH
1473 do
1474 IFS=$as_save_IFS
1475 test -z "$as_dir" && as_dir=.
1476 echo "PATH: $as_dir"
1477 done
1478 IFS=$as_save_IFS
1479
1480 } >&5
1481
1482 cat >&5 <<_ACEOF
1483
1484
1485 ## ----------- ##
1486 ## Core tests. ##
1487 ## ----------- ##
1488
1489 _ACEOF
1490
1491
1492 # Keep a trace of the command line.
1493 # Strip out --no-create and --no-recursion so they do not pile up.
1494 # Strip out --silent because we don't want to record it for future runs.
1495 # Also quote any args containing shell meta-characters.
1496 # Make two passes to allow for proper duplicate-argument suppression.
1497 ac_configure_args=
1498 ac_configure_args0=
1499 ac_configure_args1=
1500 ac_must_keep_next=false
1501 for ac_pass in 1 2
1502 do
1503 for ac_arg
1504 do
1505 case $ac_arg in
1506 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1507 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1508 | -silent | --silent | --silen | --sile | --sil)
1509 continue ;;
1510 *\'*)
1511 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1512 esac
1513 case $ac_pass in
1514 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1515 2)
1516 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1517 if test $ac_must_keep_next = true; then
1518 ac_must_keep_next=false # Got value, back to normal.
1519 else
1520 case $ac_arg in
1521 *=* | --config-cache | -C | -disable-* | --disable-* \
1522 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1523 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1524 | -with-* | --with-* | -without-* | --without-* | --x)
1525 case "$ac_configure_args0 " in
1526 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1527 esac
1528 ;;
1529 -* ) ac_must_keep_next=true ;;
1530 esac
1531 fi
1532 ac_configure_args="$ac_configure_args '$ac_arg'"
1533 ;;
1534 esac
1535 done
1536 done
1537 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1538 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1539
1540 # When interrupted or exit'd, cleanup temporary files, and complete
1541 # config.log. We remove comments because anyway the quotes in there
1542 # would cause problems or look ugly.
1543 # WARNING: Use '\'' to represent an apostrophe within the trap.
1544 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1545 trap 'exit_status=$?
1546 # Save into config.log some information that might help in debugging.
1547 {
1548 echo
1549
1550 cat <<\_ASBOX
1551 ## ---------------- ##
1552 ## Cache variables. ##
1553 ## ---------------- ##
1554 _ASBOX
1555 echo
1556 # The following way of writing the cache mishandles newlines in values,
1557 (
1558 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1559 eval ac_val=\$$ac_var
1560 case $ac_val in #(
1561 *${as_nl}*)
1562 case $ac_var in #(
1563 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1564 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1565 esac
1566 case $ac_var in #(
1567 _ | IFS | as_nl) ;; #(
1568 *) $as_unset $ac_var ;;
1569 esac ;;
1570 esac
1571 done
1572 (set) 2>&1 |
1573 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1574 *${as_nl}ac_space=\ *)
1575 sed -n \
1576 "s/'\''/'\''\\\\'\'''\''/g;
1577 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1578 ;; #(
1579 *)
1580 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1581 ;;
1582 esac |
1583 sort
1584 )
1585 echo
1586
1587 cat <<\_ASBOX
1588 ## ----------------- ##
1589 ## Output variables. ##
1590 ## ----------------- ##
1591 _ASBOX
1592 echo
1593 for ac_var in $ac_subst_vars
1594 do
1595 eval ac_val=\$$ac_var
1596 case $ac_val in
1597 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1598 esac
1599 echo "$ac_var='\''$ac_val'\''"
1600 done | sort
1601 echo
1602
1603 if test -n "$ac_subst_files"; then
1604 cat <<\_ASBOX
1605 ## ------------------- ##
1606 ## File substitutions. ##
1607 ## ------------------- ##
1608 _ASBOX
1609 echo
1610 for ac_var in $ac_subst_files
1611 do
1612 eval ac_val=\$$ac_var
1613 case $ac_val in
1614 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1615 esac
1616 echo "$ac_var='\''$ac_val'\''"
1617 done | sort
1618 echo
1619 fi
1620
1621 if test -s confdefs.h; then
1622 cat <<\_ASBOX
1623 ## ----------- ##
1624 ## confdefs.h. ##
1625 ## ----------- ##
1626 _ASBOX
1627 echo
1628 cat confdefs.h
1629 echo
1630 fi
1631 test "$ac_signal" != 0 &&
1632 echo "$as_me: caught signal $ac_signal"
1633 echo "$as_me: exit $exit_status"
1634 } >&5
1635 rm -f core *.core core.conftest.* &&
1636 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1637 exit $exit_status
1638 ' 0
1639 for ac_signal in 1 2 13 15; do
1640 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1641 done
1642 ac_signal=0
1643
1644 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1645 rm -f -r conftest* confdefs.h
1646
1647 # Predefined preprocessor variables.
1648
1649 cat >>confdefs.h <<_ACEOF
1650 #define PACKAGE_NAME "$PACKAGE_NAME"
1651 _ACEOF
1652
1653
1654 cat >>confdefs.h <<_ACEOF
1655 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1656 _ACEOF
1657
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_STRING "$PACKAGE_STRING"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1671 _ACEOF
1672
1673
1674 # Let the site file select an alternate cache file if it wants to.
1675 # Prefer explicitly selected file to automatically selected ones.
1676 if test -n "$CONFIG_SITE"; then
1677 set x "$CONFIG_SITE"
1678 elif test "x$prefix" != xNONE; then
1679 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1680 else
1681 set x "$ac_default_prefix/share/config.site" \
1682 "$ac_default_prefix/etc/config.site"
1683 fi
1684 shift
1685 for ac_site_file
1686 do
1687 if test -r "$ac_site_file"; then
1688 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1689 echo "$as_me: loading site script $ac_site_file" >&6;}
1690 sed 's/^/| /' "$ac_site_file" >&5
1691 . "$ac_site_file"
1692 fi
1693 done
1694
1695 if test -r "$cache_file"; then
1696 # Some versions of bash will fail to source /dev/null (special
1697 # files actually), so we avoid doing that.
1698 if test -f "$cache_file"; then
1699 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1700 echo "$as_me: loading cache $cache_file" >&6;}
1701 case $cache_file in
1702 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1703 *) . "./$cache_file";;
1704 esac
1705 fi
1706 else
1707 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1708 echo "$as_me: creating cache $cache_file" >&6;}
1709 >$cache_file
1710 fi
1711
1712 ac_header_list="$ac_header_list sys/time.h"
1713 ac_header_list="$ac_header_list unistd.h"
1714 ac_func_list="$ac_func_list alarm"
1715 # Check that the precious variables saved in the cache have kept the same
1716 # value.
1717 ac_cache_corrupted=false
1718 for ac_var in $ac_precious_vars; do
1719 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1720 eval ac_new_set=\$ac_env_${ac_var}_set
1721 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1722 eval ac_new_val=\$ac_env_${ac_var}_value
1723 case $ac_old_set,$ac_new_set in
1724 set,)
1725 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1726 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1727 ac_cache_corrupted=: ;;
1728 ,set)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,);;
1733 *)
1734 if test "x$ac_old_val" != "x$ac_new_val"; then
1735 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1736 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1737 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1738 echo "$as_me: former value: $ac_old_val" >&2;}
1739 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1740 echo "$as_me: current value: $ac_new_val" >&2;}
1741 ac_cache_corrupted=:
1742 fi;;
1743 esac
1744 # Pass precious variables to config.status.
1745 if test "$ac_new_set" = set; then
1746 case $ac_new_val in
1747 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1748 *) ac_arg=$ac_var=$ac_new_val ;;
1749 esac
1750 case " $ac_configure_args " in
1751 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1752 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1753 esac
1754 fi
1755 done
1756 if $ac_cache_corrupted; then
1757 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1758 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1759 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1760 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1761 { (exit 1); exit 1; }; }
1762 fi
1763
1764
1765
1766
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780 ac_ext=c
1781 ac_cpp='$CPP $CPPFLAGS'
1782 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1783 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1784 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1785
1786
1787 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1788
1789
1790 test "$program_prefix" != NONE &&
1791 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1792 # Use a double $ so make ignores it.
1793 test "$program_suffix" != NONE &&
1794 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1795 # Double any \ or $. echo might interpret backslashes.
1796 # By default was `s,x,x', remove it if useless.
1797 cat <<\_ACEOF >conftest.sed
1798 s/[\\$]/&&/g;s/;s,x,x,$//
1799 _ACEOF
1800 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1801 rm -f conftest.sed
1802
1803
1804 lispdir='${datadir}/emacs/${version}/lisp'
1805 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1806 '${datadir}/emacs/site-lisp'
1807 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1808 etcdir='${datadir}/emacs/${version}/etc'
1809 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1810 docdir='${datadir}/emacs/${version}/etc'
1811 gamedir='${localstatedir}/games/emacs'
1812
1813 gameuser=games
1814
1815
1816 # Check whether --with-gcc was given.
1817 if test "${with_gcc+set}" = set; then
1818 withval=$with_gcc;
1819 fi
1820
1821
1822 # Check whether --with-pop was given.
1823 if test "${with_pop+set}" = set; then
1824 withval=$with_pop; if test "$withval" = yes; then
1825 cat >>confdefs.h <<\_ACEOF
1826 #define MAIL_USE_POP 1
1827 _ACEOF
1828
1829 else :
1830 fi
1831 else
1832 cat >>confdefs.h <<\_ACEOF
1833 #define MAIL_USE_POP 1
1834 _ACEOF
1835
1836 fi
1837
1838
1839
1840 # Check whether --with-kerberos was given.
1841 if test "${with_kerberos+set}" = set; then
1842 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1843 #define KERBEROS 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos5 was given.
1851 if test "${with_kerberos5+set}" = set; then
1852 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1853 if test "${with_kerberos+set}" != set; then
1854 with_kerberos=yes
1855 cat >>confdefs.h <<\_ACEOF
1856 #define KERBEROS 1
1857 _ACEOF
1858
1859 fi
1860 fi
1861
1862 cat >>confdefs.h <<\_ACEOF
1863 #define KERBEROS5 1
1864 _ACEOF
1865
1866 fi
1867
1868
1869 # Check whether --with-hesiod was given.
1870 if test "${with_hesiod+set}" = set; then
1871 withval=$with_hesiod;
1872 cat >>confdefs.h <<\_ACEOF
1873 #define HESIOD 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879
1880 # Check whether --with-sound was given.
1881 if test "${with_sound+set}" = set; then
1882 withval=$with_sound;
1883 fi
1884
1885
1886
1887 # Check whether --with-x-toolkit was given.
1888 if test "${with_x_toolkit+set}" = set; then
1889 withval=$with_x_toolkit; case "${withval}" in
1890 y | ye | yes ) val=athena ;;
1891 n | no ) val=no ;;
1892 l | lu | luc | luci | lucid ) val=lucid ;;
1893 a | at | ath | athe | athen | athena ) val=athena ;;
1894 m | mo | mot | moti | motif ) val=motif ;;
1895 g | gt | gtk ) val=gtk ;;
1896 * )
1897 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1898 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1899 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1900 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1901 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1902 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1903 { (exit 1); exit 1; }; }
1904 ;;
1905 esac
1906 with_x_toolkit=$val
1907
1908 fi
1909
1910
1911 # Check whether --with-xpm was given.
1912 if test "${with_xpm+set}" = set; then
1913 withval=$with_xpm;
1914 fi
1915
1916
1917 # Check whether --with-jpeg was given.
1918 if test "${with_jpeg+set}" = set; then
1919 withval=$with_jpeg;
1920 fi
1921
1922
1923 # Check whether --with-tiff was given.
1924 if test "${with_tiff+set}" = set; then
1925 withval=$with_tiff;
1926 fi
1927
1928
1929 # Check whether --with-gif was given.
1930 if test "${with_gif+set}" = set; then
1931 withval=$with_gif;
1932 fi
1933
1934
1935 # Check whether --with-png was given.
1936 if test "${with_png+set}" = set; then
1937 withval=$with_png;
1938 fi
1939
1940
1941 # Check whether --with-gtk was given.
1942 if test "${with_gtk+set}" = set; then
1943 withval=$with_gtk;
1944 fi
1945
1946
1947 # Check whether --with-pkg-config-prog was given.
1948 if test "${with_pkg_config_prog+set}" = set; then
1949 withval=$with_pkg_config_prog;
1950 fi
1951
1952
1953 # Check whether --with-toolkit-scroll-bars was given.
1954 if test "${with_toolkit_scroll_bars+set}" = set; then
1955 withval=$with_toolkit_scroll_bars;
1956 fi
1957
1958
1959 # Check whether --with-xim was given.
1960 if test "${with_xim+set}" = set; then
1961 withval=$with_xim;
1962 fi
1963
1964
1965 # Check whether --with-carbon was given.
1966 if test "${with_carbon+set}" = set; then
1967 withval=$with_carbon;
1968 fi
1969
1970 # Check whether --enable-carbon-app was given.
1971 if test "${enable_carbon_app+set}" = set; then
1972 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1973 fi
1974
1975
1976 # Check whether --enable-asserts was given.
1977 if test "${enable_asserts+set}" = set; then
1978 enableval=$enable_asserts; USE_XASSERTS=$enableval
1979 else
1980 USE_XASSERTS=no
1981 fi
1982
1983
1984 # Check whether --enable-maintainer-mode was given.
1985 if test "${enable_maintainer_mode+set}" = set; then
1986 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
1987 else
1988 USE_MAINTAINER_MODE=no
1989 fi
1990
1991 if test $USE_MAINTAINER_MODE = yes; then
1992 MAINT=
1993 else
1994 MAINT=#
1995 fi
1996
1997
1998 # Check whether --enable-locallisppath was given.
1999 if test "${enable_locallisppath+set}" = set; then
2000 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2001 locallisppath=
2002 elif test "${enableval}" != "yes"; then
2003 locallisppath=${enableval}
2004 fi
2005 fi
2006
2007
2008 #### Make srcdir absolute, if it isn't already. It's important to
2009 #### avoid running the path through pwd unnecessarily, since pwd can
2010 #### give you automounter prefixes, which can go away. We do all this
2011 #### so Emacs can find its files when run uninstalled.
2012 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2013 unset CDPATH
2014 case "${srcdir}" in
2015 /* ) ;;
2016 . )
2017 ## We may be able to use the $PWD environment variable to make this
2018 ## absolute. But sometimes PWD is inaccurate.
2019 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2020 ## but that tested only for a well-formed and valid PWD,
2021 ## it did not object when PWD was well-formed and valid but just wrong.
2022 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2023 then
2024 srcdir="$PWD"
2025 else
2026 srcdir="`(cd ${srcdir}; pwd)`"
2027 fi
2028 ;;
2029 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2030 esac
2031
2032 #### Check if the source directory already has a configured system in it.
2033 if test `pwd` != `(cd ${srcdir} && pwd)` \
2034 && test -f "${srcdir}/src/config.h" ; then
2035 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2036 as a build directory right now; it has been configured in its own
2037 right. To configure in another directory as well, you MUST
2038 use GNU make. If you do not have GNU make, then you must
2039 now do \`make distclean' in ${srcdir},
2040 and then run $0 again." >&5
2041 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2042 as a build directory right now; it has been configured in its own
2043 right. To configure in another directory as well, you MUST
2044 use GNU make. If you do not have GNU make, then you must
2045 now do \`make distclean' in ${srcdir},
2046 and then run $0 again." >&2;}
2047 fi
2048
2049 #### Given the configuration name, set machfile and opsysfile to the
2050 #### names of the m/*.h and s/*.h files we should use.
2051
2052 ### Canonicalize the configuration name.
2053
2054 ac_aux_dir=
2055 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2056 if test -f "$ac_dir/install-sh"; then
2057 ac_aux_dir=$ac_dir
2058 ac_install_sh="$ac_aux_dir/install-sh -c"
2059 break
2060 elif test -f "$ac_dir/install.sh"; then
2061 ac_aux_dir=$ac_dir
2062 ac_install_sh="$ac_aux_dir/install.sh -c"
2063 break
2064 elif test -f "$ac_dir/shtool"; then
2065 ac_aux_dir=$ac_dir
2066 ac_install_sh="$ac_aux_dir/shtool install -c"
2067 break
2068 fi
2069 done
2070 if test -z "$ac_aux_dir"; then
2071 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2072 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2073 { (exit 1); exit 1; }; }
2074 fi
2075
2076 # These three variables are undocumented and unsupported,
2077 # and are intended to be withdrawn in a future Autoconf release.
2078 # They can cause serious problems if a builder's source tree is in a directory
2079 # whose full name contains unusual characters.
2080 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2081 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2082 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2083
2084
2085 # Make sure we can run config.sub.
2086 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2087 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2088 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2089 { (exit 1); exit 1; }; }
2090
2091 { echo "$as_me:$LINENO: checking build system type" >&5
2092 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2093 if test "${ac_cv_build+set}" = set; then
2094 echo $ECHO_N "(cached) $ECHO_C" >&6
2095 else
2096 ac_build_alias=$build_alias
2097 test "x$ac_build_alias" = x &&
2098 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2099 test "x$ac_build_alias" = x &&
2100 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2101 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2102 { (exit 1); exit 1; }; }
2103 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2104 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2105 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2106 { (exit 1); exit 1; }; }
2107
2108 fi
2109 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2110 echo "${ECHO_T}$ac_cv_build" >&6; }
2111 case $ac_cv_build in
2112 *-*-*) ;;
2113 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2114 echo "$as_me: error: invalid value of canonical build" >&2;}
2115 { (exit 1); exit 1; }; };;
2116 esac
2117 build=$ac_cv_build
2118 ac_save_IFS=$IFS; IFS='-'
2119 set x $ac_cv_build
2120 shift
2121 build_cpu=$1
2122 build_vendor=$2
2123 shift; shift
2124 # Remember, the first character of IFS is used to create $*,
2125 # except with old shells:
2126 build_os=$*
2127 IFS=$ac_save_IFS
2128 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2129
2130
2131 { echo "$as_me:$LINENO: checking host system type" >&5
2132 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2133 if test "${ac_cv_host+set}" = set; then
2134 echo $ECHO_N "(cached) $ECHO_C" >&6
2135 else
2136 if test "x$host_alias" = x; then
2137 ac_cv_host=$ac_cv_build
2138 else
2139 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2140 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2141 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2142 { (exit 1); exit 1; }; }
2143 fi
2144
2145 fi
2146 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2147 echo "${ECHO_T}$ac_cv_host" >&6; }
2148 case $ac_cv_host in
2149 *-*-*) ;;
2150 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2151 echo "$as_me: error: invalid value of canonical host" >&2;}
2152 { (exit 1); exit 1; }; };;
2153 esac
2154 host=$ac_cv_host
2155 ac_save_IFS=$IFS; IFS='-'
2156 set x $ac_cv_host
2157 shift
2158 host_cpu=$1
2159 host_vendor=$2
2160 shift; shift
2161 # Remember, the first character of IFS is used to create $*,
2162 # except with old shells:
2163 host_os=$*
2164 IFS=$ac_save_IFS
2165 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2166
2167
2168 canonical=$host
2169 configuration=${host_alias-$host}
2170
2171
2172
2173 ### If you add support for a new configuration, add code to this
2174 ### switch statement to recognize your configuration name and select
2175 ### the appropriate operating system and machine description files.
2176
2177 ### You would hope that you could choose an m/*.h file pretty much
2178 ### based on the machine portion of the configuration name, and an s-
2179 ### file based on the operating system portion. However, it turns out
2180 ### that each m/*.h file is pretty manufacturer-specific - for
2181 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2182 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2183 ### machines. So we basically have to have a special case for each
2184 ### configuration name.
2185 ###
2186 ### As far as handling version numbers on operating systems is
2187 ### concerned, make sure things will fail in a fixable way. If
2188 ### /etc/MACHINES doesn't say anything about version numbers, be
2189 ### prepared to handle anything reasonably. If version numbers
2190 ### matter, be sure /etc/MACHINES says something about it.
2191 ###
2192 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2193 ### "System V Release 4"; he writes, "The old convention encouraged
2194 ### confusion between `system' and `release' levels'."
2195
2196 machine='' opsys='' unported=no
2197 case "${canonical}" in
2198
2199 ## FreeBSD ports
2200 *-*-freebsd* )
2201 opsys=freebsd
2202 case "${canonical}" in
2203 alpha*-*-freebsd*) machine=alpha ;;
2204 ia64-*-freebsd*) machine=ia64 ;;
2205 sparc64-*-freebsd*) machine=sparc ;;
2206 powerpc-*-freebsd*) machine=macppc ;;
2207 i[3456]86-*-freebsd*) machine=intel386 ;;
2208 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2209 esac
2210 ;;
2211
2212 ## NetBSD ports
2213 *-*-netbsd* )
2214 opsys=netbsd
2215 if test -f /usr/lib/crti.o; then
2216
2217 cat >>confdefs.h <<\_ACEOF
2218 #define HAVE_CRTIN
2219 _ACEOF
2220
2221 fi
2222
2223 case "${canonical}" in
2224 alpha*-*-netbsd*) machine=alpha ;;
2225 i[3456]86-*-netbsd*) machine=intel386 ;;
2226 m68k-*-netbsd*)
2227 # This is somewhat bogus.
2228 machine=hp9000s300 ;;
2229 mips-*-netbsd*) machine=pmax ;;
2230 mipsel-*-netbsd*) machine=pmax ;;
2231 mipseb-*-netbsd*) machine=pmax ;;
2232 ns32k-*-netbsd*) machine=ns32000 ;;
2233 powerpc-*-netbsd*) machine=macppc ;;
2234 sparc*-*-netbsd*) machine=sparc ;;
2235 vax-*-netbsd*) machine=vax ;;
2236 arm-*-netbsd*) machine=arm ;;
2237 x86_64-*-netbsd*) machine=amdx86-64 ;;
2238 hppa-*-netbsd*) machine=hp800 ;;
2239 shle-*-netbsd*) machine=sh3el ;;
2240 esac
2241 ;;
2242
2243 ## OpenBSD ports
2244 *-*-openbsd* )
2245 opsys=openbsd
2246 case "${canonical}" in
2247 alpha*-*-openbsd*) machine=alpha ;;
2248 i386-*-openbsd*) machine=intel386 ;;
2249 x86_64-*-openbsd*) machine=amdx86-64 ;;
2250 m68k-*-openbsd*) machine=hp9000s300 ;;
2251 mipsel-*-openbsd*) machine=pmax ;;
2252 ns32k-*-openbsd*) machine=ns32000 ;;
2253 sparc-*-openbsd*) machine=sparc ;;
2254 vax-*-openbsd*) machine=vax ;;
2255 esac
2256 ;;
2257
2258 ## LynxOS ports
2259 *-*-lynxos* )
2260 opsys=lynxos
2261 case "${canonical}" in
2262 i[3456]86-*-lynxos*) machine=intel386 ;;
2263 powerpc-*-lynxos*) machine=powerpc ;;
2264 esac
2265 ;;
2266
2267 ## Acorn RISCiX:
2268 arm-acorn-riscix1.1* )
2269 machine=acorn opsys=riscix1-1
2270 ;;
2271 arm-acorn-riscix1.2* | arm-acorn-riscix )
2272 ## This name is riscix12 instead of riscix1.2
2273 ## to avoid a file name conflict on MSDOS.
2274 machine=acorn opsys=riscix12
2275 ;;
2276
2277 ## BSDI ports
2278 *-*-bsdi* )
2279 opsys=bsdi
2280 case "${canonical}" in
2281 i[345]86-*-bsdi*) machine=intel386 ;;
2282 sparc-*-bsdi*) machine=sparc ;;
2283 powerpc-*-bsdi*) machine=macppc ;;
2284 esac
2285 case "${canonical}" in
2286 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2287 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2288 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2289 *-*-bsdi3* ) opsys=bsdos3 ;;
2290 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2291 esac
2292 ;;
2293
2294 ## Alliant machines
2295 ## Strictly speaking, we need the version of the alliant operating
2296 ## system to choose the right machine file, but currently the
2297 ## configuration name doesn't tell us enough to choose the right
2298 ## one; we need to give alliants their own operating system name to
2299 ## do this right. When someone cares, they can help us.
2300 fx80-alliant-* )
2301 machine=alliant4 opsys=bsd4-2
2302 ;;
2303 i860-alliant-* )
2304 machine=alliant-2800 opsys=bsd4-3
2305 ;;
2306
2307 ## Alpha (DEC) machines.
2308 alpha*-dec-osf* )
2309 machine=alpha opsys=osf1
2310 # This is needed to find X11R6.1 libraries for certain tests.
2311 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2312 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2313 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2314 # due to non-traditional preprocessing with the current compiler
2315 # defaults. OSF 4 can also have that compiler version, and there
2316 # seems always to have been a usable /usr/bin/cpp.
2317 NON_GNU_CPP=/usr/bin/cpp
2318 case "${canonical}" in
2319 alpha*-dec-osf[5-9]*)
2320 opsys=osf5-0 ;;
2321 esac
2322 ;;
2323
2324 alpha*-*-linux-gnu* )
2325 machine=alpha opsys=gnu-linux
2326 ;;
2327
2328 arm*-*-linux-gnu* )
2329 machine=arm opsys=gnu-linux
2330 ;;
2331
2332 ## Altos 3068
2333 m68*-altos-sysv* )
2334 machine=altos opsys=usg5-2
2335 ;;
2336
2337 ## Amdahl UTS
2338 580-amdahl-sysv* )
2339 machine=amdahl opsys=usg5-2-2
2340 ;;
2341
2342 ## Apollo, Domain/OS
2343 m68*-apollo-* )
2344 machine=apollo opsys=bsd4-3
2345 ;;
2346
2347 ## Apple Darwin / Mac OS X
2348 *-apple-darwin* )
2349 case "${canonical}" in
2350 i[3456]86-* ) machine=intel386 ;;
2351 powerpc-* ) machine=powermac ;;
2352 * ) unported=yes ;;
2353 esac
2354 opsys=darwin
2355 # Define CPP as follows to make autoconf work correctly.
2356 CPP="${CC-cc} -E -no-cpp-precomp"
2357 # Use fink packages if available.
2358 if test -d /sw/include && test -d /sw/lib; then
2359 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2360 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2361 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2362 fi
2363 ;;
2364
2365 ## AT&T 3b2, 3b5, 3b15, 3b20
2366 we32k-att-sysv* )
2367 machine=att3b opsys=usg5-2-2
2368 ;;
2369
2370 ## AT&T 3b1 - The Mighty Unix PC!
2371 m68*-att-sysv* )
2372 machine=7300 opsys=usg5-2-2
2373 ;;
2374
2375 ## Bull dpx20
2376 rs6000-bull-bosx* )
2377 machine=ibmrs6000 opsys=aix3-2
2378 ;;
2379
2380 ## Bull dpx2
2381 m68*-bull-sysv3* )
2382 machine=dpx2 opsys=usg5-3
2383 ;;
2384
2385 ## Bull sps7
2386 m68*-bull-sysv2* )
2387 machine=sps7 opsys=usg5-2
2388 ;;
2389
2390 ## CCI 5/32, 6/32 -- see "Tahoe".
2391
2392 ## Celerity
2393 ## I don't know what configuration name to use for this; config.sub
2394 ## doesn't seem to know anything about it. Hey, Celerity users, get
2395 ## in touch with us!
2396 celerity-celerity-bsd* )
2397 machine=celerity opsys=bsd4-2
2398 ;;
2399
2400 ## Clipper
2401 ## What operating systems does this chip run that Emacs has been
2402 ## tested on?
2403 clipper-* )
2404 machine=clipper
2405 ## We'll use the catch-all code at the bottom to guess the
2406 ## operating system.
2407 ;;
2408
2409 ## Compaq Nonstop
2410 mips-compaq-nonstopux* )
2411 machine=nonstopux opsys=nonstopux
2412 ;;
2413
2414 ## Convex
2415 *-convex-bsd* | *-convex-convexos* )
2416 machine=convex opsys=bsd4-3
2417 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2418 NON_GNU_CPP="cc -E -P"
2419 ;;
2420
2421 ## Cubix QBx/386
2422 i[3456]86-cubix-sysv* )
2423 machine=intel386 opsys=usg5-3
2424 ;;
2425
2426 ## Cydra 5
2427 cydra*-cydrome-sysv* )
2428 machine=cydra5 opsys=usg5-3
2429 ;;
2430
2431 ## Data General AViiON Machines
2432 ## DG changed naming conventions with the release of 5.4.4.10, they
2433 ## dropped the initial 5.4 but left the intervening R. Because of the
2434 ## R this shouldn't conflict with older versions of the OS (which I
2435 ## think were named like dgux4.*). In addition, DG new AViiONs series
2436 ## uses either Motorola M88k or Intel Pentium CPUs.
2437 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2438 machine=aviion opsys=dgux4
2439 ;;
2440 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2441 ## This name is dgux5-4-3 instead of dgux5-4r3
2442 ## to avoid a file name conflict on MSDOS.
2443 machine=aviion opsys=dgux5-4-3
2444 ;;
2445 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2446 machine=aviion opsys=dgux5-4r2
2447 ;;
2448 m88k-dg-dgux* )
2449 machine=aviion opsys=dgux
2450 ;;
2451
2452 ## Data General AViiON Intel (x86) Machines
2453 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2454 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2455 i[345]86-dg-dguxR4* )
2456 machine=aviion-intel opsys=dgux4
2457 ;;
2458
2459 ## DECstations
2460 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2461 machine=pmax opsys=bsd4-2
2462 ;;
2463 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2464 machine=pmax opsys=bsd4-3
2465 ;;
2466 mips-dec-ultrix* )
2467 machine=pmax opsys=ultrix4-3
2468 ;;
2469 mips-dec-osf* )
2470 machine=pmax opsys=osf1
2471 ;;
2472 mips-dec-mach_bsd4.3* )
2473 machine=pmax opsys=mach-bsd4-3
2474 ;;
2475
2476 ## Motorola Delta machines
2477 m68k-motorola-sysv* | m68000-motorola-sysv* )
2478 machine=delta opsys=usg5-3
2479 if test -z "`type gnucc | grep 'not found'`"
2480 then
2481 if test -s /etc/167config
2482 then CC="gnucc -m68040"
2483 else CC="gnucc -m68881"
2484 fi
2485 else
2486 if test -z "`type gcc | grep 'not found'`"
2487 then CC=gcc
2488 else CC=cc
2489 fi
2490 fi
2491 ;;
2492 m88k-motorola-sysv4* )
2493 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2494 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2495 # I hope there are not other 4.0 versions for this machine
2496 # which really need usg5-4 instead.
2497 machine=delta88k opsys=usg5-4-2
2498 ;;
2499 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2500 machine=delta88k opsys=usg5-3
2501 ;;
2502
2503 ## Dual machines
2504 m68*-dual-sysv* )
2505 machine=dual opsys=usg5-2
2506 ;;
2507 m68*-dual-uniplus* )
2508 machine=dual opsys=unipl5-2
2509 ;;
2510
2511 ## Elxsi 6400
2512 elxsi-elxsi-sysv* )
2513 machine=elxsi opsys=usg5-2
2514 ;;
2515
2516 ## Encore machines
2517 ns16k-encore-bsd* )
2518 machine=ns16000 opsys=umax
2519 ;;
2520
2521 ## The GEC 63 - apparently, this port isn't really finished yet.
2522 # I'm sure we finished off the last of the machines, though. -- fx
2523
2524 ## Gould Power Node and NP1
2525 pn-gould-bsd4.2* )
2526 machine=gould opsys=bsd4-2
2527 ;;
2528 pn-gould-bsd4.3* )
2529 machine=gould opsys=bsd4-3
2530 ;;
2531 np1-gould-bsd* )
2532 machine=gould-np1 opsys=bsd4-3
2533 ;;
2534
2535 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2536 ## as far as Emacs is concerned).
2537 m88k-harris-cxux* )
2538 # Build needs to be different on 7.0 and later releases
2539 case "`uname -r`" in
2540 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2541 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2542 esac
2543 NON_GNU_CPP="/lib/cpp"
2544 ;;
2545 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2546 m68k-harris-cxux* )
2547 machine=nh3000 opsys=cxux
2548 ;;
2549 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2550 powerpc-harris-powerunix )
2551 machine=nh6000 opsys=powerunix
2552 NON_GNU_CPP="cc -Xo -E -P"
2553 ;;
2554 ## Honeywell XPS100
2555 xps*-honeywell-sysv* )
2556 machine=xps100 opsys=usg5-2
2557 ;;
2558
2559 ## HP 9000 series 200 or 300
2560 m68*-hp-bsd* )
2561 machine=hp9000s300 opsys=bsd4-3
2562 ;;
2563 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2564 m68*-hp-hpux* )
2565 case "`uname -r`" in
2566 ## Someone's system reports A.B8.05 for this.
2567 ## I wonder what other possibilities there are.
2568 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2569 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2570 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2571 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2572 *) machine=hp9000s300 opsys=hpux ;;
2573 esac
2574 ;;
2575
2576 hppa*-*-linux-gnu* )
2577 machine=hp800 opsys=gnu-linux
2578 ;;
2579
2580 hppa*-*-nextstep* )
2581 machine=hp800 opsys=nextstep
2582 ;;
2583
2584 ## Orion machines
2585 orion-orion-bsd* )
2586 machine=orion opsys=bsd4-2
2587 ;;
2588 clipper-orion-bsd* )
2589 machine=orion105 opsys=bsd4-2
2590 ;;
2591
2592 ## IBM machines
2593 i[3456]86-ibm-aix1.1* )
2594 machine=ibmps2-aix opsys=usg5-2-2
2595 ;;
2596 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2597 machine=ibmps2-aix opsys=usg5-3
2598 ;;
2599 i370-ibm-aix*)
2600 machine=ibm370aix opsys=usg5-3
2601 ;;
2602 s390-*-linux-gnu* )
2603 machine=ibms390 opsys=gnu-linux
2604 ;;
2605 s390x-*-linux-gnu* )
2606 machine=ibms390x opsys=gnu-linux
2607 ;;
2608 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2609 machine=ibmrs6000 opsys=aix3-1
2610 ;;
2611 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2612 machine=ibmrs6000 opsys=aix3-2-5
2613 ;;
2614 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2615 machine=ibmrs6000 opsys=aix4-1
2616 ;;
2617 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2618 machine=ibmrs6000 opsys=aix4-2
2619 ;;
2620 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2621 machine=ibmrs6000 opsys=aix4-2
2622 ;;
2623 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2624 machine=ibmrs6000 opsys=aix4
2625 ;;
2626 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2627 machine=ibmrs6000 opsys=aix4-1
2628 ;;
2629 rs6000-ibm-aix* | powerpc-ibm-aix* )
2630 machine=ibmrs6000 opsys=aix3-2
2631 ;;
2632 romp-ibm-bsd4.3* )
2633 machine=ibmrt opsys=bsd4-3
2634 ;;
2635 romp-ibm-bsd4.2* )
2636 machine=ibmrt opsys=bsd4-2
2637 ;;
2638 romp-ibm-aos4.3* )
2639 machine=ibmrt opsys=bsd4-3
2640 ;;
2641 romp-ibm-aos4.2* )
2642 machine=ibmrt opsys=bsd4-2
2643 ;;
2644 romp-ibm-aos* )
2645 machine=ibmrt opsys=bsd4-3
2646 ;;
2647 romp-ibm-bsd* )
2648 machine=ibmrt opsys=bsd4-3
2649 ;;
2650 romp-ibm-aix* )
2651 machine=ibmrt-aix opsys=usg5-2-2
2652 ;;
2653
2654 ## Integrated Solutions `Optimum V'
2655 m68*-isi-bsd4.2* )
2656 machine=isi-ov opsys=bsd4-2
2657 ;;
2658 m68*-isi-bsd4.3* )
2659 machine=isi-ov opsys=bsd4-3
2660 ;;
2661
2662 ## Intel 386 machines where we do care about the manufacturer
2663 i[3456]86-intsys-sysv* )
2664 machine=is386 opsys=usg5-2-2
2665 ;;
2666
2667 ## Prime EXL
2668 i[3456]86-prime-sysv* )
2669 machine=i386 opsys=usg5-3
2670 ;;
2671
2672 ## Sequent Symmetry running Dynix
2673 i[3456]86-sequent-bsd* )
2674 machine=symmetry opsys=bsd4-3
2675 ;;
2676
2677 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2678 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2679 machine=sequent-ptx opsys=ptx4
2680 NON_GNU_CPP=/lib/cpp
2681 ;;
2682
2683 ## Sequent Symmetry running DYNIX/ptx
2684 ## Use the old cpp rather than the newer ANSI one.
2685 i[3456]86-sequent-ptx* )
2686 machine=sequent-ptx opsys=ptx
2687 NON_GNU_CPP="/lib/cpp"
2688 ;;
2689
2690 ## ncr machine running svr4.3.
2691 i[3456]86-ncr-sysv4.3 )
2692 machine=ncr386 opsys=usg5-4-3
2693 ;;
2694
2695 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2696 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2697 i[3456]86-ncr-sysv* )
2698 machine=ncr386 opsys=usg5-4-2
2699 ;;
2700
2701 ## Intel Paragon OSF/1
2702 i860-intel-osf1* )
2703 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2704 ;;
2705
2706 ## Intel 860
2707 i860-*-sysv4* )
2708 machine=i860 opsys=usg5-4
2709 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2710 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2711 ;;
2712
2713 ## Macintosh PowerPC
2714 powerpc*-*-linux-gnu* )
2715 machine=macppc opsys=gnu-linux
2716 ;;
2717
2718 ## Masscomp machines
2719 m68*-masscomp-rtu* )
2720 machine=masscomp opsys=rtu
2721 ;;
2722
2723 ## Megatest machines
2724 m68*-megatest-bsd* )
2725 machine=mega68 opsys=bsd4-2
2726 ;;
2727
2728 ## Workstations sold by MIPS
2729 ## This is not necessarily all workstations using the MIPS processor -
2730 ## Irises are produced by SGI, and DECstations by DEC.
2731
2732 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2733 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2734 ## it gives for choosing between the alternatives seems to be "Use
2735 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2736 ## the BSD world." I'll assume that these are instructions for
2737 ## handling two odd situations, and that every other situation
2738 ## should use mips.h and usg5-2-2, they being listed first.
2739 mips-mips-usg* )
2740 machine=mips4
2741 ## Fall through to the general code at the bottom to decide on the OS.
2742 ;;
2743 mips-mips-riscos4* )
2744 machine=mips4 opsys=bsd4-3
2745 NON_GNU_CC="cc -systype bsd43"
2746 NON_GNU_CPP="cc -systype bsd43 -E"
2747 ;;
2748 mips-mips-riscos5* )
2749 machine=mips4 opsys=riscos5
2750 NON_GNU_CC="cc -systype bsd43"
2751 NON_GNU_CPP="cc -systype bsd43 -E"
2752 ;;
2753 mips-mips-bsd* )
2754 machine=mips opsys=bsd4-3
2755 ;;
2756 mips-mips-* )
2757 machine=mips opsys=usg5-2-2
2758 ;;
2759
2760 ## NeXT
2761 m68*-next-* | m68k-*-nextstep* )
2762 machine=m68k opsys=nextstep
2763 ;;
2764
2765 ## The complete machine from National Semiconductor
2766 ns32k-ns-genix* )
2767 machine=ns32000 opsys=usg5-2
2768 ;;
2769
2770 ## NCR machines
2771 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2772 machine=tower32 opsys=usg5-2-2
2773 ;;
2774 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2775 machine=tower32v3 opsys=usg5-3
2776 ;;
2777
2778 ## NEC EWS4800
2779 mips-nec-sysv4*)
2780 machine=ews4800 opsys=ux4800
2781 ;;
2782
2783 ## Nixdorf Targon 31
2784 m68*-nixdorf-sysv* )
2785 machine=targon31 opsys=usg5-2-2
2786 ;;
2787
2788 ## Nu (TI or LMI)
2789 m68*-nu-sysv* )
2790 machine=nu opsys=usg5-2
2791 ;;
2792
2793 ## Plexus
2794 m68*-plexus-sysv* )
2795 machine=plexus opsys=usg5-2
2796 ;;
2797
2798 ## Pyramid machines
2799 ## I don't really have any idea what sort of processor the Pyramid has,
2800 ## so I'm assuming it is its own architecture.
2801 pyramid-pyramid-bsd* )
2802 machine=pyramid opsys=bsd4-2
2803 ;;
2804
2805 ## Sequent Balance
2806 ns32k-sequent-bsd4.2* )
2807 machine=sequent opsys=bsd4-2
2808 ;;
2809 ns32k-sequent-bsd4.3* )
2810 machine=sequent opsys=bsd4-3
2811 ;;
2812
2813 ## Siemens Nixdorf
2814 mips-siemens-sysv* | mips-sni-sysv*)
2815 machine=mips-siemens opsys=usg5-4
2816 NON_GNU_CC=/usr/ccs/bin/cc
2817 NON_GNU_CPP=/usr/ccs/lib/cpp
2818 ;;
2819
2820 ## Silicon Graphics machines
2821 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2822 m68*-sgi-iris3.5* )
2823 machine=irist opsys=iris3-5
2824 ;;
2825 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2826 machine=irist opsys=iris3-6
2827 ;;
2828 ## Iris 4D
2829 mips-sgi-irix3* )
2830 machine=iris4d opsys=irix3-3
2831 ;;
2832 mips-sgi-irix4* )
2833 machine=iris4d opsys=irix4-0
2834 ;;
2835 mips-sgi-irix6.5 )
2836 machine=iris4d opsys=irix6-5
2837 # Without defining _LANGUAGE_C, things get masked out in the headers
2838 # so that, for instance, grepping for `free' in stdlib.h fails and
2839 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2840 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2841 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2842 ;;
2843 mips-sgi-irix6* )
2844 machine=iris4d opsys=irix6-0
2845 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2846 # but presumably it does no harm.
2847 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2848 # -32 probably isn't necessary in later v.6s -- anyone know which?
2849 NON_GCC_TEST_OPTIONS=-32
2850 ;;
2851 mips-sgi-irix5.[01]* )
2852 machine=iris4d opsys=irix5-0
2853 ;;
2854 mips-sgi-irix5* | mips-sgi-irix* )
2855 machine=iris4d opsys=irix5-2
2856 ;;
2857
2858 ## SONY machines
2859 m68*-sony-bsd4.2* )
2860 machine=news opsys=bsd4-2
2861 ;;
2862 m68*-sony-bsd4.3* )
2863 machine=news opsys=bsd4-3
2864 ;;
2865 m68*-sony-newsos3* | m68*-sony-news3*)
2866 machine=news opsys=bsd4-3
2867 ;;
2868 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2869 machine=news-risc opsys=bsd4-3
2870 ;;
2871 mips-sony-newsos6* )
2872 machine=news-r6 opsys=newsos6
2873 ;;
2874 mips-sony-news* )
2875 machine=news-risc opsys=newsos5
2876 ;;
2877
2878 ## Stride
2879 m68*-stride-sysv* )
2880 machine=stride opsys=usg5-2
2881 ;;
2882
2883 ## Suns
2884 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2885 machine=sparc opsys=gnu-linux
2886 ;;
2887
2888 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2889 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2890 | rs6000-*-solaris2*)
2891 case "${canonical}" in
2892 m68*-sunos1* ) machine=sun1 ;;
2893 m68*-sunos2* ) machine=sun2 ;;
2894 m68* ) machine=sun3 ;;
2895 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2896 i[3456]86-*-* ) machine=intel386 ;;
2897 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2898 powerpcle* ) machine=powerpcle ;;
2899 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2900 sparc* ) machine=sparc ;;
2901 * ) unported=yes ;;
2902 esac
2903 case "${canonical}" in
2904 ## The Sun386 didn't get past 4.0.
2905 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2906 *-sunos4.0* ) opsys=sunos4-0 ;;
2907 *-sunos4.1.[3-9]*noshare )
2908 ## This name is sunos413 instead of sunos4-1-3
2909 ## to avoid a file name conflict on MSDOS.
2910 opsys=sunos413
2911 NON_GNU_CPP=/usr/lib/cpp
2912 NON_GCC_TEST_OPTIONS=-Bstatic
2913 GCC_TEST_OPTIONS=-static
2914 ;;
2915 *-sunos4.1.[3-9]* | *-sunos4shr*)
2916 opsys=sunos4shr
2917 NON_GNU_CPP=/usr/lib/cpp
2918 ;;
2919 *-sunos4* | *-sunos )
2920 opsys=sunos4-1
2921 NON_GCC_TEST_OPTIONS=-Bstatic
2922 GCC_TEST_OPTIONS=-static
2923 ;;
2924 *-sunos5.3* | *-solaris2.3* )
2925 opsys=sol2-3
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2927 ;;
2928 *-sunos5.4* | *-solaris2.4* )
2929 opsys=sol2-4
2930 NON_GNU_CPP=/usr/ccs/lib/cpp
2931 RANLIB="ar -ts"
2932 ;;
2933 *-sunos5.5* | *-solaris2.5* )
2934 opsys=sol2-5
2935 NON_GNU_CPP=/usr/ccs/lib/cpp
2936 RANLIB="ar -ts"
2937 ;;
2938 *-sunos5.6* | *-solaris2.6* )
2939 opsys=sol2-6
2940 NON_GNU_CPP=/usr/ccs/lib/cpp
2941 RANLIB="ar -ts"
2942 ;;
2943 *-sunos5* | *-solaris* )
2944 opsys=sol2-6
2945 NON_GNU_CPP=/usr/ccs/lib/cpp
2946 ;;
2947 * ) opsys=bsd4-2 ;;
2948 esac
2949 ## Watch out for a compiler that we know will not work.
2950 case "${canonical}" in
2951 *-solaris* | *-sunos5* )
2952 if [ "x$CC" = x/usr/ucb/cc ]; then
2953 ## /usr/ucb/cc doesn't work;
2954 ## we should find some other compiler that does work.
2955 unset CC
2956 fi
2957 ;;
2958 *) ;;
2959 esac
2960 ;;
2961 sparc-*-nextstep* )
2962 machine=sparc opsys=nextstep
2963 ;;
2964
2965 ## Tadpole 68k
2966 m68*-tadpole-sysv* )
2967 machine=tad68k opsys=usg5-3
2968 ;;
2969
2970 ## Tahoe machines
2971 tahoe-tahoe-bsd4.2* )
2972 machine=tahoe opsys=bsd4-2
2973 ;;
2974 tahoe-tahoe-bsd4.3* )
2975 machine=tahoe opsys=bsd4-3
2976 ;;
2977
2978 ## Tandem Integrity S2
2979 mips-tandem-sysv* )
2980 machine=tandem-s2 opsys=usg5-3
2981 ;;
2982
2983 ## Tektronix XD88
2984 m88k-tektronix-sysv3* )
2985 machine=tekxd88 opsys=usg5-3
2986 ;;
2987
2988 ## Tektronix 16000 box (6130?)
2989 ns16k-tektronix-bsd* )
2990 machine=ns16000 opsys=bsd4-2
2991 ;;
2992 ## Tektronix 4300
2993 ## src/m/tek4300.h hints that this is a m68k machine.
2994 m68*-tektronix-bsd* )
2995 machine=tek4300 opsys=bsd4-3
2996 ;;
2997
2998 ## Titan P2 or P3
2999 ## We seem to have lost the machine-description file titan.h!
3000 titan-titan-sysv* )
3001 machine=titan opsys=usg5-3
3002 ;;
3003
3004 ## Ustation E30 (SS5E)
3005 m68*-unisys-uniplus* )
3006 machine=ustation opsystem=unipl5-2
3007 ;;
3008
3009 ## Vaxen.
3010 vax-dec-* )
3011 machine=vax
3012 case "${canonical}" in
3013 *-bsd4.1* ) opsys=bsd4-1 ;;
3014 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3015 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3016 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3017 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3018 *-vms* ) opsys=vms ;;
3019 * ) unported=yes
3020 esac
3021 ;;
3022
3023 ## Whitechapel MG1
3024 ns16k-whitechapel-* )
3025 machine=mg1
3026 ## We don't know what sort of OS runs on these; we'll let the
3027 ## operating system guessing code below try.
3028 ;;
3029
3030 ## Wicat
3031 m68*-wicat-sysv* )
3032 machine=wicat opsys=usg5-2
3033 ;;
3034
3035 ## IA-64
3036 ia64*-*-linux* )
3037 machine=ia64 opsys=gnu-linux
3038 ;;
3039
3040 ## Intel 386 machines where we don't care about the manufacturer
3041 i[3456]86-*-* )
3042 machine=intel386
3043 case "${canonical}" in
3044 *-cygwin ) opsys=cygwin ;;
3045 *-darwin* ) opsys=darwin
3046 CPP="${CC-cc} -E -no-cpp-precomp"
3047 ;;
3048 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3049 *-isc2.2* ) opsys=isc2-2 ;;
3050 *-isc4.0* ) opsys=isc4-0 ;;
3051 *-isc4.* ) opsys=isc4-1
3052 GCC_TEST_OPTIONS=-posix
3053 NON_GCC_TEST_OPTIONS=-Xp
3054 ;;
3055 *-isc* ) opsys=isc3-0 ;;
3056 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3057 *-esix* ) opsys=esix ;;
3058 *-xenix* ) opsys=xenix ;;
3059 *-linux-gnu* ) opsys=gnu-linux ;;
3060 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3061 *-sco3.2v5* ) opsys=sco5
3062 NON_GNU_CPP=/lib/cpp
3063 # Prevent -belf from being passed to $CPP.
3064 # /lib/cpp does not accept it.
3065 OVERRIDE_CPPFLAGS=" "
3066 ;;
3067 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3068 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3069 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3070 *-386bsd* ) opsys=386bsd ;;
3071 *-nextstep* ) opsys=nextstep ;;
3072 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3073 esac
3074 ;;
3075
3076 ## m68k Linux-based GNU system
3077 m68k-*-linux-gnu* )
3078 machine=m68k opsys=gnu-linux
3079 ;;
3080
3081 ## Mips Linux-based GNU system
3082 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3083 machine=mips opsys=gnu-linux
3084 ;;
3085
3086 ## UXP/DS
3087 sparc-fujitsu-sysv4* )
3088 machine=sparc opsys=uxpds
3089 NON_GNU_CPP=/usr/ccs/lib/cpp
3090 RANLIB="ar -ts"
3091 ;;
3092
3093 ## UXP/V
3094 f301-fujitsu-uxpv4.1)
3095 machine=f301 opsys=uxpv
3096 ;;
3097
3098 ## AMD x86-64 Linux-based GNU system
3099 x86_64-*-linux-gnu* )
3100 machine=amdx86-64 opsys=gnu-linux
3101 ;;
3102
3103 ## Tensilica Xtensa Linux-based GNU system
3104 xtensa-*-linux-gnu* )
3105 machine=xtensa opsys=gnu-linux
3106 ;;
3107
3108 * )
3109 unported=yes
3110 ;;
3111 esac
3112
3113 ### If the code above didn't choose an operating system, just choose
3114 ### an operating system based on the configuration name. You really
3115 ### only want to use this when you have no idea what the right
3116 ### operating system is; if you know what operating systems a machine
3117 ### runs, it's cleaner to make it explicit in the case statement
3118 ### above.
3119 if test x"${opsys}" = x; then
3120 case "${canonical}" in
3121 *-gnu* ) opsys=gnu ;;
3122 *-bsd4.[01] ) opsys=bsd4-1 ;;
3123 *-bsd4.2 ) opsys=bsd4-2 ;;
3124 *-bsd4.3 ) opsys=bsd4-3 ;;
3125 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3126 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3127 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3128 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3129 *-sysv4.2uw* ) opsys=unixware ;;
3130 *-sysv5uw* ) opsys=unixware ;;
3131 *-sysv5OpenUNIX* ) opsys=unixware ;;
3132 *-sysv4.1* | *-sysvr4.1* )
3133 NON_GNU_CPP=/usr/lib/cpp
3134 opsys=usg5-4 ;;
3135 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3136 if [ x$NON_GNU_CPP = x ]; then
3137 if [ -f /usr/ccs/lib/cpp ]; then
3138 NON_GNU_CPP=/usr/ccs/lib/cpp
3139 else
3140 NON_GNU_CPP=/lib/cpp
3141 fi
3142 fi
3143 opsys=usg5-4-2 ;;
3144 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3145 * )
3146 unported=yes
3147 ;;
3148 esac
3149 fi
3150
3151
3152
3153 if test $unported = yes; then
3154 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3155 Check \`etc/MACHINES' for recognized configuration names." >&5
3156 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3157 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3158 { (exit 1); exit 1; }; }
3159 fi
3160
3161 machfile="m/${machine}.h"
3162 opsysfile="s/${opsys}.h"
3163
3164
3165 #### Choose a compiler.
3166 test -n "$CC" && cc_specified=yes
3167
3168 # Save the value of CFLAGS that the user specified.
3169 SPECIFIED_CFLAGS="$CFLAGS"
3170
3171 case ${with_gcc} in
3172 "yes" ) CC="gcc" GCC=yes ;;
3173 "no" ) : ${CC=cc} ;;
3174 * )
3175 esac
3176 ac_ext=c
3177 ac_cpp='$CPP $CPPFLAGS'
3178 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3179 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3180 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3181 if test -n "$ac_tool_prefix"; then
3182 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3183 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3186 if test "${ac_cv_prog_CC+set}" = set; then
3187 echo $ECHO_N "(cached) $ECHO_C" >&6
3188 else
3189 if test -n "$CC"; then
3190 ac_cv_prog_CC="$CC" # Let the user override the test.
3191 else
3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3193 for as_dir in $PATH
3194 do
3195 IFS=$as_save_IFS
3196 test -z "$as_dir" && as_dir=.
3197 for ac_exec_ext in '' $ac_executable_extensions; do
3198 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3199 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3200 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3201 break 2
3202 fi
3203 done
3204 done
3205 IFS=$as_save_IFS
3206
3207 fi
3208 fi
3209 CC=$ac_cv_prog_CC
3210 if test -n "$CC"; then
3211 { echo "$as_me:$LINENO: result: $CC" >&5
3212 echo "${ECHO_T}$CC" >&6; }
3213 else
3214 { echo "$as_me:$LINENO: result: no" >&5
3215 echo "${ECHO_T}no" >&6; }
3216 fi
3217
3218
3219 fi
3220 if test -z "$ac_cv_prog_CC"; then
3221 ac_ct_CC=$CC
3222 # Extract the first word of "gcc", so it can be a program name with args.
3223 set dummy gcc; ac_word=$2
3224 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3225 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3226 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3227 echo $ECHO_N "(cached) $ECHO_C" >&6
3228 else
3229 if test -n "$ac_ct_CC"; then
3230 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3231 else
3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3233 for as_dir in $PATH
3234 do
3235 IFS=$as_save_IFS
3236 test -z "$as_dir" && as_dir=.
3237 for ac_exec_ext in '' $ac_executable_extensions; do
3238 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3239 ac_cv_prog_ac_ct_CC="gcc"
3240 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3241 break 2
3242 fi
3243 done
3244 done
3245 IFS=$as_save_IFS
3246
3247 fi
3248 fi
3249 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3250 if test -n "$ac_ct_CC"; then
3251 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3252 echo "${ECHO_T}$ac_ct_CC" >&6; }
3253 else
3254 { echo "$as_me:$LINENO: result: no" >&5
3255 echo "${ECHO_T}no" >&6; }
3256 fi
3257
3258 if test "x$ac_ct_CC" = x; then
3259 CC=""
3260 else
3261 case $cross_compiling:$ac_tool_warned in
3262 yes:)
3263 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3264 whose name does not start with the host triplet. If you think this
3265 configuration is useful to you, please write to autoconf@gnu.org." >&5
3266 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3267 whose name does not start with the host triplet. If you think this
3268 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3269 ac_tool_warned=yes ;;
3270 esac
3271 CC=$ac_ct_CC
3272 fi
3273 else
3274 CC="$ac_cv_prog_CC"
3275 fi
3276
3277 if test -z "$CC"; then
3278 if test -n "$ac_tool_prefix"; then
3279 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3280 set dummy ${ac_tool_prefix}cc; ac_word=$2
3281 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3282 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3283 if test "${ac_cv_prog_CC+set}" = set; then
3284 echo $ECHO_N "(cached) $ECHO_C" >&6
3285 else
3286 if test -n "$CC"; then
3287 ac_cv_prog_CC="$CC" # Let the user override the test.
3288 else
3289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3290 for as_dir in $PATH
3291 do
3292 IFS=$as_save_IFS
3293 test -z "$as_dir" && as_dir=.
3294 for ac_exec_ext in '' $ac_executable_extensions; do
3295 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3296 ac_cv_prog_CC="${ac_tool_prefix}cc"
3297 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3298 break 2
3299 fi
3300 done
3301 done
3302 IFS=$as_save_IFS
3303
3304 fi
3305 fi
3306 CC=$ac_cv_prog_CC
3307 if test -n "$CC"; then
3308 { echo "$as_me:$LINENO: result: $CC" >&5
3309 echo "${ECHO_T}$CC" >&6; }
3310 else
3311 { echo "$as_me:$LINENO: result: no" >&5
3312 echo "${ECHO_T}no" >&6; }
3313 fi
3314
3315
3316 fi
3317 fi
3318 if test -z "$CC"; then
3319 # Extract the first word of "cc", so it can be a program name with args.
3320 set dummy cc; ac_word=$2
3321 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3322 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3323 if test "${ac_cv_prog_CC+set}" = set; then
3324 echo $ECHO_N "(cached) $ECHO_C" >&6
3325 else
3326 if test -n "$CC"; then
3327 ac_cv_prog_CC="$CC" # Let the user override the test.
3328 else
3329 ac_prog_rejected=no
3330 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3331 for as_dir in $PATH
3332 do
3333 IFS=$as_save_IFS
3334 test -z "$as_dir" && as_dir=.
3335 for ac_exec_ext in '' $ac_executable_extensions; do
3336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3337 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3338 ac_prog_rejected=yes
3339 continue
3340 fi
3341 ac_cv_prog_CC="cc"
3342 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3343 break 2
3344 fi
3345 done
3346 done
3347 IFS=$as_save_IFS
3348
3349 if test $ac_prog_rejected = yes; then
3350 # We found a bogon in the path, so make sure we never use it.
3351 set dummy $ac_cv_prog_CC
3352 shift
3353 if test $# != 0; then
3354 # We chose a different compiler from the bogus one.
3355 # However, it has the same basename, so the bogon will be chosen
3356 # first if we set CC to just the basename; use the full file name.
3357 shift
3358 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3359 fi
3360 fi
3361 fi
3362 fi
3363 CC=$ac_cv_prog_CC
3364 if test -n "$CC"; then
3365 { echo "$as_me:$LINENO: result: $CC" >&5
3366 echo "${ECHO_T}$CC" >&6; }
3367 else
3368 { echo "$as_me:$LINENO: result: no" >&5
3369 echo "${ECHO_T}no" >&6; }
3370 fi
3371
3372
3373 fi
3374 if test -z "$CC"; then
3375 if test -n "$ac_tool_prefix"; then
3376 for ac_prog in cl.exe
3377 do
3378 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3379 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3380 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3381 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3382 if test "${ac_cv_prog_CC+set}" = set; then
3383 echo $ECHO_N "(cached) $ECHO_C" >&6
3384 else
3385 if test -n "$CC"; then
3386 ac_cv_prog_CC="$CC" # Let the user override the test.
3387 else
3388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3389 for as_dir in $PATH
3390 do
3391 IFS=$as_save_IFS
3392 test -z "$as_dir" && as_dir=.
3393 for ac_exec_ext in '' $ac_executable_extensions; do
3394 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3395 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3396 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3397 break 2
3398 fi
3399 done
3400 done
3401 IFS=$as_save_IFS
3402
3403 fi
3404 fi
3405 CC=$ac_cv_prog_CC
3406 if test -n "$CC"; then
3407 { echo "$as_me:$LINENO: result: $CC" >&5
3408 echo "${ECHO_T}$CC" >&6; }
3409 else
3410 { echo "$as_me:$LINENO: result: no" >&5
3411 echo "${ECHO_T}no" >&6; }
3412 fi
3413
3414
3415 test -n "$CC" && break
3416 done
3417 fi
3418 if test -z "$CC"; then
3419 ac_ct_CC=$CC
3420 for ac_prog in cl.exe
3421 do
3422 # Extract the first word of "$ac_prog", so it can be a program name with args.
3423 set dummy $ac_prog; ac_word=$2
3424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3426 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3427 echo $ECHO_N "(cached) $ECHO_C" >&6
3428 else
3429 if test -n "$ac_ct_CC"; then
3430 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3431 else
3432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3433 for as_dir in $PATH
3434 do
3435 IFS=$as_save_IFS
3436 test -z "$as_dir" && as_dir=.
3437 for ac_exec_ext in '' $ac_executable_extensions; do
3438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3439 ac_cv_prog_ac_ct_CC="$ac_prog"
3440 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3441 break 2
3442 fi
3443 done
3444 done
3445 IFS=$as_save_IFS
3446
3447 fi
3448 fi
3449 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3450 if test -n "$ac_ct_CC"; then
3451 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3452 echo "${ECHO_T}$ac_ct_CC" >&6; }
3453 else
3454 { echo "$as_me:$LINENO: result: no" >&5
3455 echo "${ECHO_T}no" >&6; }
3456 fi
3457
3458
3459 test -n "$ac_ct_CC" && break
3460 done
3461
3462 if test "x$ac_ct_CC" = x; then
3463 CC=""
3464 else
3465 case $cross_compiling:$ac_tool_warned in
3466 yes:)
3467 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3468 whose name does not start with the host triplet. If you think this
3469 configuration is useful to you, please write to autoconf@gnu.org." >&5
3470 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3471 whose name does not start with the host triplet. If you think this
3472 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3473 ac_tool_warned=yes ;;
3474 esac
3475 CC=$ac_ct_CC
3476 fi
3477 fi
3478
3479 fi
3480
3481
3482 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3483 See \`config.log' for more details." >&5
3484 echo "$as_me: error: no acceptable C compiler found in \$PATH
3485 See \`config.log' for more details." >&2;}
3486 { (exit 1); exit 1; }; }
3487
3488 # Provide some information about the compiler.
3489 echo "$as_me:$LINENO: checking for C compiler version" >&5
3490 ac_compiler=`set X $ac_compile; echo $2`
3491 { (ac_try="$ac_compiler --version >&5"
3492 case "(($ac_try" in
3493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3494 *) ac_try_echo=$ac_try;;
3495 esac
3496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3497 (eval "$ac_compiler --version >&5") 2>&5
3498 ac_status=$?
3499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3500 (exit $ac_status); }
3501 { (ac_try="$ac_compiler -v >&5"
3502 case "(($ac_try" in
3503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3504 *) ac_try_echo=$ac_try;;
3505 esac
3506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3507 (eval "$ac_compiler -v >&5") 2>&5
3508 ac_status=$?
3509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3510 (exit $ac_status); }
3511 { (ac_try="$ac_compiler -V >&5"
3512 case "(($ac_try" in
3513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3514 *) ac_try_echo=$ac_try;;
3515 esac
3516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3517 (eval "$ac_compiler -V >&5") 2>&5
3518 ac_status=$?
3519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3520 (exit $ac_status); }
3521
3522 cat >conftest.$ac_ext <<_ACEOF
3523 /* confdefs.h. */
3524 _ACEOF
3525 cat confdefs.h >>conftest.$ac_ext
3526 cat >>conftest.$ac_ext <<_ACEOF
3527 /* end confdefs.h. */
3528
3529 int
3530 main ()
3531 {
3532
3533 ;
3534 return 0;
3535 }
3536 _ACEOF
3537 ac_clean_files_save=$ac_clean_files
3538 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3539 # Try to create an executable without -o first, disregard a.out.
3540 # It will help us diagnose broken compilers, and finding out an intuition
3541 # of exeext.
3542 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3543 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3544 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3545 #
3546 # List of possible output files, starting from the most likely.
3547 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3548 # only as a last resort. b.out is created by i960 compilers.
3549 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3550 #
3551 # The IRIX 6 linker writes into existing files which may not be
3552 # executable, retaining their permissions. Remove them first so a
3553 # subsequent execution test works.
3554 ac_rmfiles=
3555 for ac_file in $ac_files
3556 do
3557 case $ac_file in
3558 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3559 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3560 esac
3561 done
3562 rm -f $ac_rmfiles
3563
3564 if { (ac_try="$ac_link_default"
3565 case "(($ac_try" in
3566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3567 *) ac_try_echo=$ac_try;;
3568 esac
3569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3570 (eval "$ac_link_default") 2>&5
3571 ac_status=$?
3572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3573 (exit $ac_status); }; then
3574 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3575 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3576 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3577 # so that the user can short-circuit this test for compilers unknown to
3578 # Autoconf.
3579 for ac_file in $ac_files ''
3580 do
3581 test -f "$ac_file" || continue
3582 case $ac_file in
3583 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3584 ;;
3585 [ab].out )
3586 # We found the default executable, but exeext='' is most
3587 # certainly right.
3588 break;;
3589 *.* )
3590 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3591 then :; else
3592 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3593 fi
3594 # We set ac_cv_exeext here because the later test for it is not
3595 # safe: cross compilers may not add the suffix if given an `-o'
3596 # argument, so we may need to know it at that point already.
3597 # Even if this section looks crufty: it has the advantage of
3598 # actually working.
3599 break;;
3600 * )
3601 break;;
3602 esac
3603 done
3604 test "$ac_cv_exeext" = no && ac_cv_exeext=
3605
3606 else
3607 ac_file=''
3608 fi
3609
3610 { echo "$as_me:$LINENO: result: $ac_file" >&5
3611 echo "${ECHO_T}$ac_file" >&6; }
3612 if test -z "$ac_file"; then
3613 echo "$as_me: failed program was:" >&5
3614 sed 's/^/| /' conftest.$ac_ext >&5
3615
3616 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3617 See \`config.log' for more details." >&5
3618 echo "$as_me: error: C compiler cannot create executables
3619 See \`config.log' for more details." >&2;}
3620 { (exit 77); exit 77; }; }
3621 fi
3622
3623 ac_exeext=$ac_cv_exeext
3624
3625 # Check that the compiler produces executables we can run. If not, either
3626 # the compiler is broken, or we cross compile.
3627 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3628 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3629 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3630 # If not cross compiling, check that we can run a simple program.
3631 if test "$cross_compiling" != yes; then
3632 if { ac_try='./$ac_file'
3633 { (case "(($ac_try" in
3634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3636 esac
3637 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3638 (eval "$ac_try") 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; }; then
3642 cross_compiling=no
3643 else
3644 if test "$cross_compiling" = maybe; then
3645 cross_compiling=yes
3646 else
3647 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3648 If you meant to cross compile, use \`--host'.
3649 See \`config.log' for more details." >&5
3650 echo "$as_me: error: cannot run C compiled programs.
3651 If you meant to cross compile, use \`--host'.
3652 See \`config.log' for more details." >&2;}
3653 { (exit 1); exit 1; }; }
3654 fi
3655 fi
3656 fi
3657 { echo "$as_me:$LINENO: result: yes" >&5
3658 echo "${ECHO_T}yes" >&6; }
3659
3660 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3661 ac_clean_files=$ac_clean_files_save
3662 # Check that the compiler produces executables we can run. If not, either
3663 # the compiler is broken, or we cross compile.
3664 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3665 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3666 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3667 echo "${ECHO_T}$cross_compiling" >&6; }
3668
3669 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3670 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3671 if { (ac_try="$ac_link"
3672 case "(($ac_try" in
3673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3674 *) ac_try_echo=$ac_try;;
3675 esac
3676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3677 (eval "$ac_link") 2>&5
3678 ac_status=$?
3679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680 (exit $ac_status); }; then
3681 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3682 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3683 # work properly (i.e., refer to `conftest.exe'), while it won't with
3684 # `rm'.
3685 for ac_file in conftest.exe conftest conftest.*; do
3686 test -f "$ac_file" || continue
3687 case $ac_file in
3688 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3689 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3690 break;;
3691 * ) break;;
3692 esac
3693 done
3694 else
3695 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3696 See \`config.log' for more details." >&5
3697 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3698 See \`config.log' for more details." >&2;}
3699 { (exit 1); exit 1; }; }
3700 fi
3701
3702 rm -f conftest$ac_cv_exeext
3703 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3704 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3705
3706 rm -f conftest.$ac_ext
3707 EXEEXT=$ac_cv_exeext
3708 ac_exeext=$EXEEXT
3709 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3710 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3711 if test "${ac_cv_objext+set}" = set; then
3712 echo $ECHO_N "(cached) $ECHO_C" >&6
3713 else
3714 cat >conftest.$ac_ext <<_ACEOF
3715 /* confdefs.h. */
3716 _ACEOF
3717 cat confdefs.h >>conftest.$ac_ext
3718 cat >>conftest.$ac_ext <<_ACEOF
3719 /* end confdefs.h. */
3720
3721 int
3722 main ()
3723 {
3724
3725 ;
3726 return 0;
3727 }
3728 _ACEOF
3729 rm -f conftest.o conftest.obj
3730 if { (ac_try="$ac_compile"
3731 case "(($ac_try" in
3732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3733 *) ac_try_echo=$ac_try;;
3734 esac
3735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3736 (eval "$ac_compile") 2>&5
3737 ac_status=$?
3738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3739 (exit $ac_status); }; then
3740 for ac_file in conftest.o conftest.obj conftest.*; do
3741 test -f "$ac_file" || continue;
3742 case $ac_file in
3743 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3744 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3745 break;;
3746 esac
3747 done
3748 else
3749 echo "$as_me: failed program was:" >&5
3750 sed 's/^/| /' conftest.$ac_ext >&5
3751
3752 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3753 See \`config.log' for more details." >&5
3754 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3755 See \`config.log' for more details." >&2;}
3756 { (exit 1); exit 1; }; }
3757 fi
3758
3759 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3760 fi
3761 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3762 echo "${ECHO_T}$ac_cv_objext" >&6; }
3763 OBJEXT=$ac_cv_objext
3764 ac_objext=$OBJEXT
3765 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3766 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3767 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3768 echo $ECHO_N "(cached) $ECHO_C" >&6
3769 else
3770 cat >conftest.$ac_ext <<_ACEOF
3771 /* confdefs.h. */
3772 _ACEOF
3773 cat confdefs.h >>conftest.$ac_ext
3774 cat >>conftest.$ac_ext <<_ACEOF
3775 /* end confdefs.h. */
3776
3777 int
3778 main ()
3779 {
3780 #ifndef __GNUC__
3781 choke me
3782 #endif
3783
3784 ;
3785 return 0;
3786 }
3787 _ACEOF
3788 rm -f conftest.$ac_objext
3789 if { (ac_try="$ac_compile"
3790 case "(($ac_try" in
3791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3792 *) ac_try_echo=$ac_try;;
3793 esac
3794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3795 (eval "$ac_compile") 2>conftest.er1
3796 ac_status=$?
3797 grep -v '^ *+' conftest.er1 >conftest.err
3798 rm -f conftest.er1
3799 cat conftest.err >&5
3800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3801 (exit $ac_status); } && {
3802 test -z "$ac_c_werror_flag" ||
3803 test ! -s conftest.err
3804 } && test -s conftest.$ac_objext; then
3805 ac_compiler_gnu=yes
3806 else
3807 echo "$as_me: failed program was:" >&5
3808 sed 's/^/| /' conftest.$ac_ext >&5
3809
3810 ac_compiler_gnu=no
3811 fi
3812
3813 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3814 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3815
3816 fi
3817 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3818 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3819 GCC=`test $ac_compiler_gnu = yes && echo yes`
3820 ac_test_CFLAGS=${CFLAGS+set}
3821 ac_save_CFLAGS=$CFLAGS
3822 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3823 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3824 if test "${ac_cv_prog_cc_g+set}" = set; then
3825 echo $ECHO_N "(cached) $ECHO_C" >&6
3826 else
3827 ac_save_c_werror_flag=$ac_c_werror_flag
3828 ac_c_werror_flag=yes
3829 ac_cv_prog_cc_g=no
3830 CFLAGS="-g"
3831 cat >conftest.$ac_ext <<_ACEOF
3832 /* confdefs.h. */
3833 _ACEOF
3834 cat confdefs.h >>conftest.$ac_ext
3835 cat >>conftest.$ac_ext <<_ACEOF
3836 /* end confdefs.h. */
3837
3838 int
3839 main ()
3840 {
3841
3842 ;
3843 return 0;
3844 }
3845 _ACEOF
3846 rm -f conftest.$ac_objext
3847 if { (ac_try="$ac_compile"
3848 case "(($ac_try" in
3849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3850 *) ac_try_echo=$ac_try;;
3851 esac
3852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3853 (eval "$ac_compile") 2>conftest.er1
3854 ac_status=$?
3855 grep -v '^ *+' conftest.er1 >conftest.err
3856 rm -f conftest.er1
3857 cat conftest.err >&5
3858 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3859 (exit $ac_status); } && {
3860 test -z "$ac_c_werror_flag" ||
3861 test ! -s conftest.err
3862 } && test -s conftest.$ac_objext; then
3863 ac_cv_prog_cc_g=yes
3864 else
3865 echo "$as_me: failed program was:" >&5
3866 sed 's/^/| /' conftest.$ac_ext >&5
3867
3868 CFLAGS=""
3869 cat >conftest.$ac_ext <<_ACEOF
3870 /* confdefs.h. */
3871 _ACEOF
3872 cat confdefs.h >>conftest.$ac_ext
3873 cat >>conftest.$ac_ext <<_ACEOF
3874 /* end confdefs.h. */
3875
3876 int
3877 main ()
3878 {
3879
3880 ;
3881 return 0;
3882 }
3883 _ACEOF
3884 rm -f conftest.$ac_objext
3885 if { (ac_try="$ac_compile"
3886 case "(($ac_try" in
3887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3888 *) ac_try_echo=$ac_try;;
3889 esac
3890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3891 (eval "$ac_compile") 2>conftest.er1
3892 ac_status=$?
3893 grep -v '^ *+' conftest.er1 >conftest.err
3894 rm -f conftest.er1
3895 cat conftest.err >&5
3896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3897 (exit $ac_status); } && {
3898 test -z "$ac_c_werror_flag" ||
3899 test ! -s conftest.err
3900 } && test -s conftest.$ac_objext; then
3901 :
3902 else
3903 echo "$as_me: failed program was:" >&5
3904 sed 's/^/| /' conftest.$ac_ext >&5
3905
3906 ac_c_werror_flag=$ac_save_c_werror_flag
3907 CFLAGS="-g"
3908 cat >conftest.$ac_ext <<_ACEOF
3909 /* confdefs.h. */
3910 _ACEOF
3911 cat confdefs.h >>conftest.$ac_ext
3912 cat >>conftest.$ac_ext <<_ACEOF
3913 /* end confdefs.h. */
3914
3915 int
3916 main ()
3917 {
3918
3919 ;
3920 return 0;
3921 }
3922 _ACEOF
3923 rm -f conftest.$ac_objext
3924 if { (ac_try="$ac_compile"
3925 case "(($ac_try" in
3926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3927 *) ac_try_echo=$ac_try;;
3928 esac
3929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3930 (eval "$ac_compile") 2>conftest.er1
3931 ac_status=$?
3932 grep -v '^ *+' conftest.er1 >conftest.err
3933 rm -f conftest.er1
3934 cat conftest.err >&5
3935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936 (exit $ac_status); } && {
3937 test -z "$ac_c_werror_flag" ||
3938 test ! -s conftest.err
3939 } && test -s conftest.$ac_objext; then
3940 ac_cv_prog_cc_g=yes
3941 else
3942 echo "$as_me: failed program was:" >&5
3943 sed 's/^/| /' conftest.$ac_ext >&5
3944
3945
3946 fi
3947
3948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3949 fi
3950
3951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3952 fi
3953
3954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3955 ac_c_werror_flag=$ac_save_c_werror_flag
3956 fi
3957 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3958 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3959 if test "$ac_test_CFLAGS" = set; then
3960 CFLAGS=$ac_save_CFLAGS
3961 elif test $ac_cv_prog_cc_g = yes; then
3962 if test "$GCC" = yes; then
3963 CFLAGS="-g -O2"
3964 else
3965 CFLAGS="-g"
3966 fi
3967 else
3968 if test "$GCC" = yes; then
3969 CFLAGS="-O2"
3970 else
3971 CFLAGS=
3972 fi
3973 fi
3974 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3975 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3976 if test "${ac_cv_prog_cc_c89+set}" = set; then
3977 echo $ECHO_N "(cached) $ECHO_C" >&6
3978 else
3979 ac_cv_prog_cc_c89=no
3980 ac_save_CC=$CC
3981 cat >conftest.$ac_ext <<_ACEOF
3982 /* confdefs.h. */
3983 _ACEOF
3984 cat confdefs.h >>conftest.$ac_ext
3985 cat >>conftest.$ac_ext <<_ACEOF
3986 /* end confdefs.h. */
3987 #include <stdarg.h>
3988 #include <stdio.h>
3989 #include <sys/types.h>
3990 #include <sys/stat.h>
3991 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3992 struct buf { int x; };
3993 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3994 static char *e (p, i)
3995 char **p;
3996 int i;
3997 {
3998 return p[i];
3999 }
4000 static char *f (char * (*g) (char **, int), char **p, ...)
4001 {
4002 char *s;
4003 va_list v;
4004 va_start (v,p);
4005 s = g (p, va_arg (v,int));
4006 va_end (v);
4007 return s;
4008 }
4009
4010 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4011 function prototypes and stuff, but not '\xHH' hex character constants.
4012 These don't provoke an error unfortunately, instead are silently treated
4013 as 'x'. The following induces an error, until -std is added to get
4014 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4015 array size at least. It's necessary to write '\x00'==0 to get something
4016 that's true only with -std. */
4017 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4018
4019 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4020 inside strings and character constants. */
4021 #define FOO(x) 'x'
4022 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4023
4024 int test (int i, double x);
4025 struct s1 {int (*f) (int a);};
4026 struct s2 {int (*f) (double a);};
4027 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4028 int argc;
4029 char **argv;
4030 int
4031 main ()
4032 {
4033 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4034 ;
4035 return 0;
4036 }
4037 _ACEOF
4038 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4039 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4040 do
4041 CC="$ac_save_CC $ac_arg"
4042 rm -f conftest.$ac_objext
4043 if { (ac_try="$ac_compile"
4044 case "(($ac_try" in
4045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4046 *) ac_try_echo=$ac_try;;
4047 esac
4048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4049 (eval "$ac_compile") 2>conftest.er1
4050 ac_status=$?
4051 grep -v '^ *+' conftest.er1 >conftest.err
4052 rm -f conftest.er1
4053 cat conftest.err >&5
4054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4055 (exit $ac_status); } && {
4056 test -z "$ac_c_werror_flag" ||
4057 test ! -s conftest.err
4058 } && test -s conftest.$ac_objext; then
4059 ac_cv_prog_cc_c89=$ac_arg
4060 else
4061 echo "$as_me: failed program was:" >&5
4062 sed 's/^/| /' conftest.$ac_ext >&5
4063
4064
4065 fi
4066
4067 rm -f core conftest.err conftest.$ac_objext
4068 test "x$ac_cv_prog_cc_c89" != "xno" && break
4069 done
4070 rm -f conftest.$ac_ext
4071 CC=$ac_save_CC
4072
4073 fi
4074 # AC_CACHE_VAL
4075 case "x$ac_cv_prog_cc_c89" in
4076 x)
4077 { echo "$as_me:$LINENO: result: none needed" >&5
4078 echo "${ECHO_T}none needed" >&6; } ;;
4079 xno)
4080 { echo "$as_me:$LINENO: result: unsupported" >&5
4081 echo "${ECHO_T}unsupported" >&6; } ;;
4082 *)
4083 CC="$CC $ac_cv_prog_cc_c89"
4084 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4085 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4086 esac
4087
4088
4089 ac_ext=c
4090 ac_cpp='$CPP $CPPFLAGS'
4091 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4092 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4093 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4094
4095
4096 # On Suns, sometimes $CPP names a directory.
4097 if test -n "$CPP" && test -d "$CPP"; then
4098 CPP=
4099 fi
4100
4101 #### Some systems specify a CPP to use unless we are using GCC.
4102 #### Now that we know whether we are using GCC, we can decide whether
4103 #### to use that one.
4104 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4105 then
4106 CPP="$NON_GNU_CPP"
4107 fi
4108
4109 #### Some systems specify a CC to use unless we are using GCC.
4110 #### Now that we know whether we are using GCC, we can decide whether
4111 #### to use that one.
4112 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4113 test x$cc_specified != xyes
4114 then
4115 CC="$NON_GNU_CC"
4116 fi
4117
4118 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4119 then
4120 CC="$CC $GCC_TEST_OPTIONS"
4121 fi
4122
4123 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4124 then
4125 CC="$CC $NON_GCC_TEST_OPTIONS"
4126 fi
4127
4128
4129 ac_ext=c
4130 ac_cpp='$CPP $CPPFLAGS'
4131 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4132 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4133 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4134 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4135 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4136 # On Suns, sometimes $CPP names a directory.
4137 if test -n "$CPP" && test -d "$CPP"; then
4138 CPP=
4139 fi
4140 if test -z "$CPP"; then
4141 if test "${ac_cv_prog_CPP+set}" = set; then
4142 echo $ECHO_N "(cached) $ECHO_C" >&6
4143 else
4144 # Double quotes because CPP needs to be expanded
4145 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4146 do
4147 ac_preproc_ok=false
4148 for ac_c_preproc_warn_flag in '' yes
4149 do
4150 # Use a header file that comes with gcc, so configuring glibc
4151 # with a fresh cross-compiler works.
4152 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4153 # <limits.h> exists even on freestanding compilers.
4154 # On the NeXT, cc -E runs the code through the compiler's parser,
4155 # not just through cpp. "Syntax error" is here to catch this case.
4156 cat >conftest.$ac_ext <<_ACEOF
4157 /* confdefs.h. */
4158 _ACEOF
4159 cat confdefs.h >>conftest.$ac_ext
4160 cat >>conftest.$ac_ext <<_ACEOF
4161 /* end confdefs.h. */
4162 #ifdef __STDC__
4163 # include <limits.h>
4164 #else
4165 # include <assert.h>
4166 #endif
4167 Syntax error
4168 _ACEOF
4169 if { (ac_try="$ac_cpp conftest.$ac_ext"
4170 case "(($ac_try" in
4171 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4172 *) ac_try_echo=$ac_try;;
4173 esac
4174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4175 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4176 ac_status=$?
4177 grep -v '^ *+' conftest.er1 >conftest.err
4178 rm -f conftest.er1
4179 cat conftest.err >&5
4180 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4181 (exit $ac_status); } >/dev/null && {
4182 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4183 test ! -s conftest.err
4184 }; then
4185 :
4186 else
4187 echo "$as_me: failed program was:" >&5
4188 sed 's/^/| /' conftest.$ac_ext >&5
4189
4190 # Broken: fails on valid input.
4191 continue
4192 fi
4193
4194 rm -f conftest.err conftest.$ac_ext
4195
4196 # OK, works on sane cases. Now check whether nonexistent headers
4197 # can be detected and how.
4198 cat >conftest.$ac_ext <<_ACEOF
4199 /* confdefs.h. */
4200 _ACEOF
4201 cat confdefs.h >>conftest.$ac_ext
4202 cat >>conftest.$ac_ext <<_ACEOF
4203 /* end confdefs.h. */
4204 #include <ac_nonexistent.h>
4205 _ACEOF
4206 if { (ac_try="$ac_cpp conftest.$ac_ext"
4207 case "(($ac_try" in
4208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4209 *) ac_try_echo=$ac_try;;
4210 esac
4211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4212 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4213 ac_status=$?
4214 grep -v '^ *+' conftest.er1 >conftest.err
4215 rm -f conftest.er1
4216 cat conftest.err >&5
4217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4218 (exit $ac_status); } >/dev/null && {
4219 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4220 test ! -s conftest.err
4221 }; then
4222 # Broken: success on invalid input.
4223 continue
4224 else
4225 echo "$as_me: failed program was:" >&5
4226 sed 's/^/| /' conftest.$ac_ext >&5
4227
4228 # Passes both tests.
4229 ac_preproc_ok=:
4230 break
4231 fi
4232
4233 rm -f conftest.err conftest.$ac_ext
4234
4235 done
4236 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4237 rm -f conftest.err conftest.$ac_ext
4238 if $ac_preproc_ok; then
4239 break
4240 fi
4241
4242 done
4243 ac_cv_prog_CPP=$CPP
4244
4245 fi
4246 CPP=$ac_cv_prog_CPP
4247 else
4248 ac_cv_prog_CPP=$CPP
4249 fi
4250 { echo "$as_me:$LINENO: result: $CPP" >&5
4251 echo "${ECHO_T}$CPP" >&6; }
4252 ac_preproc_ok=false
4253 for ac_c_preproc_warn_flag in '' yes
4254 do
4255 # Use a header file that comes with gcc, so configuring glibc
4256 # with a fresh cross-compiler works.
4257 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4258 # <limits.h> exists even on freestanding compilers.
4259 # On the NeXT, cc -E runs the code through the compiler's parser,
4260 # not just through cpp. "Syntax error" is here to catch this case.
4261 cat >conftest.$ac_ext <<_ACEOF
4262 /* confdefs.h. */
4263 _ACEOF
4264 cat confdefs.h >>conftest.$ac_ext
4265 cat >>conftest.$ac_ext <<_ACEOF
4266 /* end confdefs.h. */
4267 #ifdef __STDC__
4268 # include <limits.h>
4269 #else
4270 # include <assert.h>
4271 #endif
4272 Syntax error
4273 _ACEOF
4274 if { (ac_try="$ac_cpp conftest.$ac_ext"
4275 case "(($ac_try" in
4276 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4277 *) ac_try_echo=$ac_try;;
4278 esac
4279 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4280 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4281 ac_status=$?
4282 grep -v '^ *+' conftest.er1 >conftest.err
4283 rm -f conftest.er1
4284 cat conftest.err >&5
4285 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4286 (exit $ac_status); } >/dev/null && {
4287 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4288 test ! -s conftest.err
4289 }; then
4290 :
4291 else
4292 echo "$as_me: failed program was:" >&5
4293 sed 's/^/| /' conftest.$ac_ext >&5
4294
4295 # Broken: fails on valid input.
4296 continue
4297 fi
4298
4299 rm -f conftest.err conftest.$ac_ext
4300
4301 # OK, works on sane cases. Now check whether nonexistent headers
4302 # can be detected and how.
4303 cat >conftest.$ac_ext <<_ACEOF
4304 /* confdefs.h. */
4305 _ACEOF
4306 cat confdefs.h >>conftest.$ac_ext
4307 cat >>conftest.$ac_ext <<_ACEOF
4308 /* end confdefs.h. */
4309 #include <ac_nonexistent.h>
4310 _ACEOF
4311 if { (ac_try="$ac_cpp conftest.$ac_ext"
4312 case "(($ac_try" in
4313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4314 *) ac_try_echo=$ac_try;;
4315 esac
4316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4317 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4318 ac_status=$?
4319 grep -v '^ *+' conftest.er1 >conftest.err
4320 rm -f conftest.er1
4321 cat conftest.err >&5
4322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4323 (exit $ac_status); } >/dev/null && {
4324 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4325 test ! -s conftest.err
4326 }; then
4327 # Broken: success on invalid input.
4328 continue
4329 else
4330 echo "$as_me: failed program was:" >&5
4331 sed 's/^/| /' conftest.$ac_ext >&5
4332
4333 # Passes both tests.
4334 ac_preproc_ok=:
4335 break
4336 fi
4337
4338 rm -f conftest.err conftest.$ac_ext
4339
4340 done
4341 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4342 rm -f conftest.err conftest.$ac_ext
4343 if $ac_preproc_ok; then
4344 :
4345 else
4346 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4347 See \`config.log' for more details." >&5
4348 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4349 See \`config.log' for more details." >&2;}
4350 { (exit 1); exit 1; }; }
4351 fi
4352
4353 ac_ext=c
4354 ac_cpp='$CPP $CPPFLAGS'
4355 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4356 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4357 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358
4359
4360 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4361 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4362 if test "${ac_cv_path_GREP+set}" = set; then
4363 echo $ECHO_N "(cached) $ECHO_C" >&6
4364 else
4365 # Extract the first word of "grep ggrep" to use in msg output
4366 if test -z "$GREP"; then
4367 set dummy grep ggrep; ac_prog_name=$2
4368 if test "${ac_cv_path_GREP+set}" = set; then
4369 echo $ECHO_N "(cached) $ECHO_C" >&6
4370 else
4371 ac_path_GREP_found=false
4372 # Loop through the user's path and test for each of PROGNAME-LIST
4373 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4374 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4375 do
4376 IFS=$as_save_IFS
4377 test -z "$as_dir" && as_dir=.
4378 for ac_prog in grep ggrep; do
4379 for ac_exec_ext in '' $ac_executable_extensions; do
4380 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4381 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4382 # Check for GNU ac_path_GREP and select it if it is found.
4383 # Check for GNU $ac_path_GREP
4384 case `"$ac_path_GREP" --version 2>&1` in
4385 *GNU*)
4386 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4387 *)
4388 ac_count=0
4389 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4390 while :
4391 do
4392 cat "conftest.in" "conftest.in" >"conftest.tmp"
4393 mv "conftest.tmp" "conftest.in"
4394 cp "conftest.in" "conftest.nl"
4395 echo 'GREP' >> "conftest.nl"
4396 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4397 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4398 ac_count=`expr $ac_count + 1`
4399 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4400 # Best one so far, save it but keep looking for a better one
4401 ac_cv_path_GREP="$ac_path_GREP"
4402 ac_path_GREP_max=$ac_count
4403 fi
4404 # 10*(2^10) chars as input seems more than enough
4405 test $ac_count -gt 10 && break
4406 done
4407 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4408 esac
4409
4410
4411 $ac_path_GREP_found && break 3
4412 done
4413 done
4414
4415 done
4416 IFS=$as_save_IFS
4417
4418
4419 fi
4420
4421 GREP="$ac_cv_path_GREP"
4422 if test -z "$GREP"; then
4423 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4424 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4425 { (exit 1); exit 1; }; }
4426 fi
4427
4428 else
4429 ac_cv_path_GREP=$GREP
4430 fi
4431
4432
4433 fi
4434 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4435 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4436 GREP="$ac_cv_path_GREP"
4437
4438
4439 { echo "$as_me:$LINENO: checking for egrep" >&5
4440 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4441 if test "${ac_cv_path_EGREP+set}" = set; then
4442 echo $ECHO_N "(cached) $ECHO_C" >&6
4443 else
4444 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4445 then ac_cv_path_EGREP="$GREP -E"
4446 else
4447 # Extract the first word of "egrep" to use in msg output
4448 if test -z "$EGREP"; then
4449 set dummy egrep; ac_prog_name=$2
4450 if test "${ac_cv_path_EGREP+set}" = set; then
4451 echo $ECHO_N "(cached) $ECHO_C" >&6
4452 else
4453 ac_path_EGREP_found=false
4454 # Loop through the user's path and test for each of PROGNAME-LIST
4455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4456 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4457 do
4458 IFS=$as_save_IFS
4459 test -z "$as_dir" && as_dir=.
4460 for ac_prog in egrep; do
4461 for ac_exec_ext in '' $ac_executable_extensions; do
4462 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4463 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4464 # Check for GNU ac_path_EGREP and select it if it is found.
4465 # Check for GNU $ac_path_EGREP
4466 case `"$ac_path_EGREP" --version 2>&1` in
4467 *GNU*)
4468 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4469 *)
4470 ac_count=0
4471 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4472 while :
4473 do
4474 cat "conftest.in" "conftest.in" >"conftest.tmp"
4475 mv "conftest.tmp" "conftest.in"
4476 cp "conftest.in" "conftest.nl"
4477 echo 'EGREP' >> "conftest.nl"
4478 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4479 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4480 ac_count=`expr $ac_count + 1`
4481 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4482 # Best one so far, save it but keep looking for a better one
4483 ac_cv_path_EGREP="$ac_path_EGREP"
4484 ac_path_EGREP_max=$ac_count
4485 fi
4486 # 10*(2^10) chars as input seems more than enough
4487 test $ac_count -gt 10 && break
4488 done
4489 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4490 esac
4491
4492
4493 $ac_path_EGREP_found && break 3
4494 done
4495 done
4496
4497 done
4498 IFS=$as_save_IFS
4499
4500
4501 fi
4502
4503 EGREP="$ac_cv_path_EGREP"
4504 if test -z "$EGREP"; then
4505 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4506 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4507 { (exit 1); exit 1; }; }
4508 fi
4509
4510 else
4511 ac_cv_path_EGREP=$EGREP
4512 fi
4513
4514
4515 fi
4516 fi
4517 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4518 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4519 EGREP="$ac_cv_path_EGREP"
4520
4521
4522
4523 { echo "$as_me:$LINENO: checking for AIX" >&5
4524 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4525 cat >conftest.$ac_ext <<_ACEOF
4526 /* confdefs.h. */
4527 _ACEOF
4528 cat confdefs.h >>conftest.$ac_ext
4529 cat >>conftest.$ac_ext <<_ACEOF
4530 /* end confdefs.h. */
4531 #ifdef _AIX
4532 yes
4533 #endif
4534
4535 _ACEOF
4536 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4537 $EGREP "yes" >/dev/null 2>&1; then
4538 { echo "$as_me:$LINENO: result: yes" >&5
4539 echo "${ECHO_T}yes" >&6; }
4540 cat >>confdefs.h <<\_ACEOF
4541 #define _ALL_SOURCE 1
4542 _ACEOF
4543
4544 else
4545 { echo "$as_me:$LINENO: result: no" >&5
4546 echo "${ECHO_T}no" >&6; }
4547 fi
4548 rm -f conftest*
4549
4550
4551
4552 cat >>confdefs.h <<\_ACEOF
4553 #define _GNU_SOURCE 1
4554 _ACEOF
4555
4556
4557
4558 ### Use -Wno-pointer-sign if the compiler supports it
4559 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4560 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4561 SAVE_CFLAGS="$CFLAGS"
4562 CFLAGS="$CFLAGS -Wno-pointer-sign"
4563 cat >conftest.$ac_ext <<_ACEOF
4564 /* confdefs.h. */
4565 _ACEOF
4566 cat confdefs.h >>conftest.$ac_ext
4567 cat >>conftest.$ac_ext <<_ACEOF
4568 /* end confdefs.h. */
4569
4570 int
4571 main ()
4572 {
4573
4574 ;
4575 return 0;
4576 }
4577 _ACEOF
4578 rm -f conftest.$ac_objext
4579 if { (ac_try="$ac_compile"
4580 case "(($ac_try" in
4581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4582 *) ac_try_echo=$ac_try;;
4583 esac
4584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4585 (eval "$ac_compile") 2>conftest.er1
4586 ac_status=$?
4587 grep -v '^ *+' conftest.er1 >conftest.err
4588 rm -f conftest.er1
4589 cat conftest.err >&5
4590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4591 (exit $ac_status); } && {
4592 test -z "$ac_c_werror_flag" ||
4593 test ! -s conftest.err
4594 } && test -s conftest.$ac_objext; then
4595 has_option=yes
4596 else
4597 echo "$as_me: failed program was:" >&5
4598 sed 's/^/| /' conftest.$ac_ext >&5
4599
4600 has_option=no
4601 fi
4602
4603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4604 if test $has_option = yes; then
4605 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4606 fi
4607 { echo "$as_me:$LINENO: result: $has_option" >&5
4608 echo "${ECHO_T}$has_option" >&6; }
4609 CFLAGS="$SAVE_CFLAGS"
4610 unset has_option
4611 unset SAVE_CFLAGS
4612
4613 #### Some other nice autoconf tests.
4614
4615 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4616 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4617 LN_S=$as_ln_s
4618 if test "$LN_S" = "ln -s"; then
4619 { echo "$as_me:$LINENO: result: yes" >&5
4620 echo "${ECHO_T}yes" >&6; }
4621 else
4622 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4623 echo "${ECHO_T}no, using $LN_S" >&6; }
4624 fi
4625
4626 ac_ext=c
4627 ac_cpp='$CPP $CPPFLAGS'
4628 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4629 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4630 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4631 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4632 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4633 # On Suns, sometimes $CPP names a directory.
4634 if test -n "$CPP" && test -d "$CPP"; then
4635 CPP=
4636 fi
4637 if test -z "$CPP"; then
4638 if test "${ac_cv_prog_CPP+set}" = set; then
4639 echo $ECHO_N "(cached) $ECHO_C" >&6
4640 else
4641 # Double quotes because CPP needs to be expanded
4642 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4643 do
4644 ac_preproc_ok=false
4645 for ac_c_preproc_warn_flag in '' yes
4646 do
4647 # Use a header file that comes with gcc, so configuring glibc
4648 # with a fresh cross-compiler works.
4649 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4650 # <limits.h> exists even on freestanding compilers.
4651 # On the NeXT, cc -E runs the code through the compiler's parser,
4652 # not just through cpp. "Syntax error" is here to catch this case.
4653 cat >conftest.$ac_ext <<_ACEOF
4654 /* confdefs.h. */
4655 _ACEOF
4656 cat confdefs.h >>conftest.$ac_ext
4657 cat >>conftest.$ac_ext <<_ACEOF
4658 /* end confdefs.h. */
4659 #ifdef __STDC__
4660 # include <limits.h>
4661 #else
4662 # include <assert.h>
4663 #endif
4664 Syntax error
4665 _ACEOF
4666 if { (ac_try="$ac_cpp conftest.$ac_ext"
4667 case "(($ac_try" in
4668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4669 *) ac_try_echo=$ac_try;;
4670 esac
4671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4672 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4673 ac_status=$?
4674 grep -v '^ *+' conftest.er1 >conftest.err
4675 rm -f conftest.er1
4676 cat conftest.err >&5
4677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4678 (exit $ac_status); } >/dev/null && {
4679 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4680 test ! -s conftest.err
4681 }; then
4682 :
4683 else
4684 echo "$as_me: failed program was:" >&5
4685 sed 's/^/| /' conftest.$ac_ext >&5
4686
4687 # Broken: fails on valid input.
4688 continue
4689 fi
4690
4691 rm -f conftest.err conftest.$ac_ext
4692
4693 # OK, works on sane cases. Now check whether nonexistent headers
4694 # can be detected and how.
4695 cat >conftest.$ac_ext <<_ACEOF
4696 /* confdefs.h. */
4697 _ACEOF
4698 cat confdefs.h >>conftest.$ac_ext
4699 cat >>conftest.$ac_ext <<_ACEOF
4700 /* end confdefs.h. */
4701 #include <ac_nonexistent.h>
4702 _ACEOF
4703 if { (ac_try="$ac_cpp conftest.$ac_ext"
4704 case "(($ac_try" in
4705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4706 *) ac_try_echo=$ac_try;;
4707 esac
4708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4709 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4710 ac_status=$?
4711 grep -v '^ *+' conftest.er1 >conftest.err
4712 rm -f conftest.er1
4713 cat conftest.err >&5
4714 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4715 (exit $ac_status); } >/dev/null && {
4716 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4717 test ! -s conftest.err
4718 }; then
4719 # Broken: success on invalid input.
4720 continue
4721 else
4722 echo "$as_me: failed program was:" >&5
4723 sed 's/^/| /' conftest.$ac_ext >&5
4724
4725 # Passes both tests.
4726 ac_preproc_ok=:
4727 break
4728 fi
4729
4730 rm -f conftest.err conftest.$ac_ext
4731
4732 done
4733 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4734 rm -f conftest.err conftest.$ac_ext
4735 if $ac_preproc_ok; then
4736 break
4737 fi
4738
4739 done
4740 ac_cv_prog_CPP=$CPP
4741
4742 fi
4743 CPP=$ac_cv_prog_CPP
4744 else
4745 ac_cv_prog_CPP=$CPP
4746 fi
4747 { echo "$as_me:$LINENO: result: $CPP" >&5
4748 echo "${ECHO_T}$CPP" >&6; }
4749 ac_preproc_ok=false
4750 for ac_c_preproc_warn_flag in '' yes
4751 do
4752 # Use a header file that comes with gcc, so configuring glibc
4753 # with a fresh cross-compiler works.
4754 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4755 # <limits.h> exists even on freestanding compilers.
4756 # On the NeXT, cc -E runs the code through the compiler's parser,
4757 # not just through cpp. "Syntax error" is here to catch this case.
4758 cat >conftest.$ac_ext <<_ACEOF
4759 /* confdefs.h. */
4760 _ACEOF
4761 cat confdefs.h >>conftest.$ac_ext
4762 cat >>conftest.$ac_ext <<_ACEOF
4763 /* end confdefs.h. */
4764 #ifdef __STDC__
4765 # include <limits.h>
4766 #else
4767 # include <assert.h>
4768 #endif
4769 Syntax error
4770 _ACEOF
4771 if { (ac_try="$ac_cpp conftest.$ac_ext"
4772 case "(($ac_try" in
4773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4774 *) ac_try_echo=$ac_try;;
4775 esac
4776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4777 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4778 ac_status=$?
4779 grep -v '^ *+' conftest.er1 >conftest.err
4780 rm -f conftest.er1
4781 cat conftest.err >&5
4782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4783 (exit $ac_status); } >/dev/null && {
4784 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4785 test ! -s conftest.err
4786 }; then
4787 :
4788 else
4789 echo "$as_me: failed program was:" >&5
4790 sed 's/^/| /' conftest.$ac_ext >&5
4791
4792 # Broken: fails on valid input.
4793 continue
4794 fi
4795
4796 rm -f conftest.err conftest.$ac_ext
4797
4798 # OK, works on sane cases. Now check whether nonexistent headers
4799 # can be detected and how.
4800 cat >conftest.$ac_ext <<_ACEOF
4801 /* confdefs.h. */
4802 _ACEOF
4803 cat confdefs.h >>conftest.$ac_ext
4804 cat >>conftest.$ac_ext <<_ACEOF
4805 /* end confdefs.h. */
4806 #include <ac_nonexistent.h>
4807 _ACEOF
4808 if { (ac_try="$ac_cpp conftest.$ac_ext"
4809 case "(($ac_try" in
4810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4811 *) ac_try_echo=$ac_try;;
4812 esac
4813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4815 ac_status=$?
4816 grep -v '^ *+' conftest.er1 >conftest.err
4817 rm -f conftest.er1
4818 cat conftest.err >&5
4819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4820 (exit $ac_status); } >/dev/null && {
4821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4822 test ! -s conftest.err
4823 }; then
4824 # Broken: success on invalid input.
4825 continue
4826 else
4827 echo "$as_me: failed program was:" >&5
4828 sed 's/^/| /' conftest.$ac_ext >&5
4829
4830 # Passes both tests.
4831 ac_preproc_ok=:
4832 break
4833 fi
4834
4835 rm -f conftest.err conftest.$ac_ext
4836
4837 done
4838 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4839 rm -f conftest.err conftest.$ac_ext
4840 if $ac_preproc_ok; then
4841 :
4842 else
4843 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4844 See \`config.log' for more details." >&5
4845 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4846 See \`config.log' for more details." >&2;}
4847 { (exit 1); exit 1; }; }
4848 fi
4849
4850 ac_ext=c
4851 ac_cpp='$CPP $CPPFLAGS'
4852 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4853 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4854 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4855
4856 # Find a good install program. We prefer a C program (faster),
4857 # so one script is as good as another. But avoid the broken or
4858 # incompatible versions:
4859 # SysV /etc/install, /usr/sbin/install
4860 # SunOS /usr/etc/install
4861 # IRIX /sbin/install
4862 # AIX /bin/install
4863 # AmigaOS /C/install, which installs bootblocks on floppy discs
4864 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4865 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4866 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4867 # OS/2's system install, which has a completely different semantic
4868 # ./install, which can be erroneously created by make from ./install.sh.
4869 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4870 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4871 if test -z "$INSTALL"; then
4872 if test "${ac_cv_path_install+set}" = set; then
4873 echo $ECHO_N "(cached) $ECHO_C" >&6
4874 else
4875 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4876 for as_dir in $PATH
4877 do
4878 IFS=$as_save_IFS
4879 test -z "$as_dir" && as_dir=.
4880 # Account for people who put trailing slashes in PATH elements.
4881 case $as_dir/ in
4882 ./ | .// | /cC/* | \
4883 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4884 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4885 /usr/ucb/* ) ;;
4886 *)
4887 # OSF1 and SCO ODT 3.0 have their own names for install.
4888 # Don't use installbsd from OSF since it installs stuff as root
4889 # by default.
4890 for ac_prog in ginstall scoinst install; do
4891 for ac_exec_ext in '' $ac_executable_extensions; do
4892 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4893 if test $ac_prog = install &&
4894 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4895 # AIX install. It has an incompatible calling convention.
4896 :
4897 elif test $ac_prog = install &&
4898 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4899 # program-specific install script used by HP pwplus--don't use.
4900 :
4901 else
4902 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4903 break 3
4904 fi
4905 fi
4906 done
4907 done
4908 ;;
4909 esac
4910 done
4911 IFS=$as_save_IFS
4912
4913
4914 fi
4915 if test "${ac_cv_path_install+set}" = set; then
4916 INSTALL=$ac_cv_path_install
4917 else
4918 # As a last resort, use the slow shell script. Don't cache a
4919 # value for INSTALL within a source directory, because that will
4920 # break other packages using the cache if that directory is
4921 # removed, or if the value is a relative name.
4922 INSTALL=$ac_install_sh
4923 fi
4924 fi
4925 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4926 echo "${ECHO_T}$INSTALL" >&6; }
4927
4928 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4929 # It thinks the first close brace ends the variable substitution.
4930 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4931
4932 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4933
4934 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4935
4936 if test "x$RANLIB" = x; then
4937 if test -n "$ac_tool_prefix"; then
4938 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
4939 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
4940 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4941 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4942 if test "${ac_cv_prog_RANLIB+set}" = set; then
4943 echo $ECHO_N "(cached) $ECHO_C" >&6
4944 else
4945 if test -n "$RANLIB"; then
4946 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
4947 else
4948 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4949 for as_dir in $PATH
4950 do
4951 IFS=$as_save_IFS
4952 test -z "$as_dir" && as_dir=.
4953 for ac_exec_ext in '' $ac_executable_extensions; do
4954 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4955 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
4956 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4957 break 2
4958 fi
4959 done
4960 done
4961 IFS=$as_save_IFS
4962
4963 fi
4964 fi
4965 RANLIB=$ac_cv_prog_RANLIB
4966 if test -n "$RANLIB"; then
4967 { echo "$as_me:$LINENO: result: $RANLIB" >&5
4968 echo "${ECHO_T}$RANLIB" >&6; }
4969 else
4970 { echo "$as_me:$LINENO: result: no" >&5
4971 echo "${ECHO_T}no" >&6; }
4972 fi
4973
4974
4975 fi
4976 if test -z "$ac_cv_prog_RANLIB"; then
4977 ac_ct_RANLIB=$RANLIB
4978 # Extract the first word of "ranlib", so it can be a program name with args.
4979 set dummy ranlib; ac_word=$2
4980 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4981 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4982 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
4983 echo $ECHO_N "(cached) $ECHO_C" >&6
4984 else
4985 if test -n "$ac_ct_RANLIB"; then
4986 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
4987 else
4988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4989 for as_dir in $PATH
4990 do
4991 IFS=$as_save_IFS
4992 test -z "$as_dir" && as_dir=.
4993 for ac_exec_ext in '' $ac_executable_extensions; do
4994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
4995 ac_cv_prog_ac_ct_RANLIB="ranlib"
4996 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4997 break 2
4998 fi
4999 done
5000 done
5001 IFS=$as_save_IFS
5002
5003 fi
5004 fi
5005 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5006 if test -n "$ac_ct_RANLIB"; then
5007 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5008 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5009 else
5010 { echo "$as_me:$LINENO: result: no" >&5
5011 echo "${ECHO_T}no" >&6; }
5012 fi
5013
5014 if test "x$ac_ct_RANLIB" = x; then
5015 RANLIB=":"
5016 else
5017 case $cross_compiling:$ac_tool_warned in
5018 yes:)
5019 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5020 whose name does not start with the host triplet. If you think this
5021 configuration is useful to you, please write to autoconf@gnu.org." >&5
5022 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5023 whose name does not start with the host triplet. If you think this
5024 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5025 ac_tool_warned=yes ;;
5026 esac
5027 RANLIB=$ac_ct_RANLIB
5028 fi
5029 else
5030 RANLIB="$ac_cv_prog_RANLIB"
5031 fi
5032
5033 fi
5034 # Extract the first word of "install-info", so it can be a program name with args.
5035 set dummy install-info; ac_word=$2
5036 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5037 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5038 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5039 echo $ECHO_N "(cached) $ECHO_C" >&6
5040 else
5041 case $INSTALL_INFO in
5042 [\\/]* | ?:[\\/]*)
5043 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5044 ;;
5045 *)
5046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 for as_dir in $PATH
5048 do
5049 IFS=$as_save_IFS
5050 test -z "$as_dir" && as_dir=.
5051 for ac_exec_ext in '' $ac_executable_extensions; do
5052 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5053 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5054 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5055 break 2
5056 fi
5057 done
5058 done
5059 IFS=$as_save_IFS
5060
5061 ;;
5062 esac
5063 fi
5064 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5065 if test -n "$INSTALL_INFO"; then
5066 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5067 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5068 else
5069 { echo "$as_me:$LINENO: result: no" >&5
5070 echo "${ECHO_T}no" >&6; }
5071 fi
5072
5073
5074 # Extract the first word of "install-info", so it can be a program name with args.
5075 set dummy install-info; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 case $INSTALL_INFO in
5082 [\\/]* | ?:[\\/]*)
5083 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5084 ;;
5085 *)
5086 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5087 for as_dir in /usr/sbin
5088 do
5089 IFS=$as_save_IFS
5090 test -z "$as_dir" && as_dir=.
5091 for ac_exec_ext in '' $ac_executable_extensions; do
5092 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5093 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5095 break 2
5096 fi
5097 done
5098 done
5099 IFS=$as_save_IFS
5100
5101 ;;
5102 esac
5103 fi
5104 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5105 if test -n "$INSTALL_INFO"; then
5106 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5107 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5108 else
5109 { echo "$as_me:$LINENO: result: no" >&5
5110 echo "${ECHO_T}no" >&6; }
5111 fi
5112
5113
5114 # Extract the first word of "install-info", so it can be a program name with args.
5115 set dummy install-info; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 case $INSTALL_INFO in
5122 [\\/]* | ?:[\\/]*)
5123 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5124 ;;
5125 *)
5126 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5127 for as_dir in /sbin
5128 do
5129 IFS=$as_save_IFS
5130 test -z "$as_dir" && as_dir=.
5131 for ac_exec_ext in '' $ac_executable_extensions; do
5132 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5133 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5134 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5135 break 2
5136 fi
5137 done
5138 done
5139 IFS=$as_save_IFS
5140
5141 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5142 ;;
5143 esac
5144 fi
5145 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5146 if test -n "$INSTALL_INFO"; then
5147 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5148 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5149 else
5150 { echo "$as_me:$LINENO: result: no" >&5
5151 echo "${ECHO_T}no" >&6; }
5152 fi
5153
5154
5155 # Extract the first word of "gzip", so it can be a program name with args.
5156 set dummy gzip; ac_word=$2
5157 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5158 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5159 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5160 echo $ECHO_N "(cached) $ECHO_C" >&6
5161 else
5162 case $GZIP_PROG in
5163 [\\/]* | ?:[\\/]*)
5164 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5165 ;;
5166 *)
5167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5168 for as_dir in $PATH
5169 do
5170 IFS=$as_save_IFS
5171 test -z "$as_dir" && as_dir=.
5172 for ac_exec_ext in '' $ac_executable_extensions; do
5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5174 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5175 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5176 break 2
5177 fi
5178 done
5179 done
5180 IFS=$as_save_IFS
5181
5182 ;;
5183 esac
5184 fi
5185 GZIP_PROG=$ac_cv_path_GZIP_PROG
5186 if test -n "$GZIP_PROG"; then
5187 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5188 echo "${ECHO_T}$GZIP_PROG" >&6; }
5189 else
5190 { echo "$as_me:$LINENO: result: no" >&5
5191 echo "${ECHO_T}no" >&6; }
5192 fi
5193
5194
5195
5196
5197 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5198 then
5199 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5200 fi
5201
5202 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5203 then
5204 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5205 fi
5206
5207
5208 late_LDFLAGS=$LDFLAGS
5209 if test "$GCC" = yes; then
5210 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5211 else
5212 LDFLAGS="$LDFLAGS -znocombreloc"
5213 fi
5214
5215 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5216 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5217 cat >conftest.$ac_ext <<_ACEOF
5218 main(){return 0;}
5219 _ACEOF
5220 rm -f conftest.$ac_objext conftest$ac_exeext
5221 if { (ac_try="$ac_link"
5222 case "(($ac_try" in
5223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5224 *) ac_try_echo=$ac_try;;
5225 esac
5226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5227 (eval "$ac_link") 2>conftest.er1
5228 ac_status=$?
5229 grep -v '^ *+' conftest.er1 >conftest.err
5230 rm -f conftest.er1
5231 cat conftest.err >&5
5232 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5233 (exit $ac_status); } && {
5234 test -z "$ac_c_werror_flag" ||
5235 test ! -s conftest.err
5236 } && test -s conftest$ac_exeext &&
5237 $as_test_x conftest$ac_exeext; then
5238 { echo "$as_me:$LINENO: result: yes" >&5
5239 echo "${ECHO_T}yes" >&6; }
5240 else
5241 echo "$as_me: failed program was:" >&5
5242 sed 's/^/| /' conftest.$ac_ext >&5
5243
5244 LDFLAGS=$late_LDFLAGS
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5247 fi
5248
5249 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5250 conftest$ac_exeext conftest.$ac_ext
5251
5252 #### Extract some information from the operating system and machine files.
5253
5254 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5255 - which libraries the lib-src programs will want, and
5256 - whether the GNU malloc routines are usable..." >&5
5257 echo "$as_me: checking the machine- and system-dependent files to find out
5258 - which libraries the lib-src programs will want, and
5259 - whether the GNU malloc routines are usable..." >&6;}
5260
5261 ### First figure out CFLAGS (which we use for running the compiler here)
5262 ### and REAL_CFLAGS (which we use for real compilation).
5263 ### The two are the same except on a few systems, where they are made
5264 ### different to work around various lossages. For example,
5265 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5266 ### as implying static linking.
5267
5268 ### If the CFLAGS env var is specified, we use that value
5269 ### instead of the default.
5270
5271 ### It's not important that this name contain the PID; you can't run
5272 ### two configures in the same directory and have anything work
5273 ### anyway.
5274 tempcname="conftest.c"
5275
5276 echo '
5277 #include "'${srcdir}'/src/'${opsysfile}'"
5278 #include "'${srcdir}'/src/'${machfile}'"
5279 #ifndef LIBS_MACHINE
5280 #define LIBS_MACHINE
5281 #endif
5282 #ifndef LIBS_SYSTEM
5283 #define LIBS_SYSTEM
5284 #endif
5285 #ifndef C_SWITCH_SYSTEM
5286 #define C_SWITCH_SYSTEM
5287 #endif
5288 #ifndef C_SWITCH_MACHINE
5289 #define C_SWITCH_MACHINE
5290 #endif
5291 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5292 configure___ c_switch_system=C_SWITCH_SYSTEM
5293 configure___ c_switch_machine=C_SWITCH_MACHINE
5294
5295 #ifndef LIB_X11_LIB
5296 #define LIB_X11_LIB -lX11
5297 #endif
5298
5299 #ifndef LIBX11_MACHINE
5300 #define LIBX11_MACHINE
5301 #endif
5302
5303 #ifndef LIBX11_SYSTEM
5304 #define LIBX11_SYSTEM
5305 #endif
5306 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5307
5308 #ifdef UNEXEC
5309 configure___ unexec=UNEXEC
5310 #else
5311 configure___ unexec=unexec.o
5312 #endif
5313
5314 #ifdef SYSTEM_MALLOC
5315 configure___ system_malloc=yes
5316 #else
5317 configure___ system_malloc=no
5318 #endif
5319
5320 #ifdef USE_MMAP_FOR_BUFFERS
5321 configure___ use_mmap_for_buffers=yes
5322 #else
5323 configure___ use_mmap_for_buffers=no
5324 #endif
5325
5326 #ifndef C_DEBUG_SWITCH
5327 #define C_DEBUG_SWITCH -g
5328 #endif
5329
5330 #ifndef C_OPTIMIZE_SWITCH
5331 #ifdef __GNUC__
5332 #define C_OPTIMIZE_SWITCH -O2
5333 #else
5334 #define C_OPTIMIZE_SWITCH -O
5335 #endif
5336 #endif
5337
5338 #ifndef C_WARNINGS_SWITCH
5339 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5340 #endif
5341
5342 #ifndef LD_SWITCH_MACHINE
5343 #define LD_SWITCH_MACHINE
5344 #endif
5345
5346 #ifndef LD_SWITCH_SYSTEM
5347 #define LD_SWITCH_SYSTEM
5348 #endif
5349
5350 #ifndef LD_SWITCH_X_SITE_AUX
5351 #define LD_SWITCH_X_SITE_AUX
5352 #endif
5353
5354 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5355 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5356
5357 #ifdef THIS_IS_CONFIGURE
5358
5359 /* Get the CFLAGS for tests in configure. */
5360 #ifdef __GNUC__
5361 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5362 #else
5363 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5364 #endif
5365
5366 #else /* not THIS_IS_CONFIGURE */
5367
5368 /* Get the CFLAGS for real compilation. */
5369 #ifdef __GNUC__
5370 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5371 #else
5372 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5373 #endif
5374
5375 #endif /* not THIS_IS_CONFIGURE */
5376 ' > ${tempcname}
5377
5378 # The value of CPP is a quoted variable reference, so we need to do this
5379 # to get its actual value...
5380 CPP=`eval "echo $CPP"`
5381 eval `${CPP} -Isrc ${tempcname} \
5382 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5383 if test "x$SPECIFIED_CFLAGS" = x; then
5384 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5385 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5386 else
5387 REAL_CFLAGS="$CFLAGS"
5388 fi
5389 rm ${tempcname}
5390
5391 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5392
5393 ### Make sure subsequent tests use flags consistent with the build flags.
5394
5395 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5396 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5397 else
5398 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5399 fi
5400
5401
5402
5403 # Check whether --enable-largefile was given.
5404 if test "${enable_largefile+set}" = set; then
5405 enableval=$enable_largefile;
5406 fi
5407
5408 if test "$enable_largefile" != no; then
5409
5410 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5411 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5412 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5413 echo $ECHO_N "(cached) $ECHO_C" >&6
5414 else
5415 ac_cv_sys_largefile_CC=no
5416 if test "$GCC" != yes; then
5417 ac_save_CC=$CC
5418 while :; do
5419 # IRIX 6.2 and later do not support large files by default,
5420 # so use the C compiler's -n32 option if that helps.
5421 cat >conftest.$ac_ext <<_ACEOF
5422 /* confdefs.h. */
5423 _ACEOF
5424 cat confdefs.h >>conftest.$ac_ext
5425 cat >>conftest.$ac_ext <<_ACEOF
5426 /* end confdefs.h. */
5427 #include <sys/types.h>
5428 /* Check that off_t can represent 2**63 - 1 correctly.
5429 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5430 since some C++ compilers masquerading as C compilers
5431 incorrectly reject 9223372036854775807. */
5432 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5433 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5434 && LARGE_OFF_T % 2147483647 == 1)
5435 ? 1 : -1];
5436 int
5437 main ()
5438 {
5439
5440 ;
5441 return 0;
5442 }
5443 _ACEOF
5444 rm -f conftest.$ac_objext
5445 if { (ac_try="$ac_compile"
5446 case "(($ac_try" in
5447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5448 *) ac_try_echo=$ac_try;;
5449 esac
5450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5451 (eval "$ac_compile") 2>conftest.er1
5452 ac_status=$?
5453 grep -v '^ *+' conftest.er1 >conftest.err
5454 rm -f conftest.er1
5455 cat conftest.err >&5
5456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5457 (exit $ac_status); } && {
5458 test -z "$ac_c_werror_flag" ||
5459 test ! -s conftest.err
5460 } && test -s conftest.$ac_objext; then
5461 break
5462 else
5463 echo "$as_me: failed program was:" >&5
5464 sed 's/^/| /' conftest.$ac_ext >&5
5465
5466
5467 fi
5468
5469 rm -f core conftest.err conftest.$ac_objext
5470 CC="$CC -n32"
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 ac_cv_sys_largefile_CC=' -n32'; 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 break
5498 done
5499 CC=$ac_save_CC
5500 rm -f conftest.$ac_ext
5501 fi
5502 fi
5503 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5504 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5505 if test "$ac_cv_sys_largefile_CC" != no; then
5506 CC=$CC$ac_cv_sys_largefile_CC
5507 fi
5508
5509 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5510 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5511 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5512 echo $ECHO_N "(cached) $ECHO_C" >&6
5513 else
5514 while :; do
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <sys/types.h>
5522 /* Check that off_t can represent 2**63 - 1 correctly.
5523 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5524 since some C++ compilers masquerading as C compilers
5525 incorrectly reject 9223372036854775807. */
5526 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5527 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5528 && LARGE_OFF_T % 2147483647 == 1)
5529 ? 1 : -1];
5530 int
5531 main ()
5532 {
5533
5534 ;
5535 return 0;
5536 }
5537 _ACEOF
5538 rm -f conftest.$ac_objext
5539 if { (ac_try="$ac_compile"
5540 case "(($ac_try" in
5541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5542 *) ac_try_echo=$ac_try;;
5543 esac
5544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5545 (eval "$ac_compile") 2>conftest.er1
5546 ac_status=$?
5547 grep -v '^ *+' conftest.er1 >conftest.err
5548 rm -f conftest.er1
5549 cat conftest.err >&5
5550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5551 (exit $ac_status); } && {
5552 test -z "$ac_c_werror_flag" ||
5553 test ! -s conftest.err
5554 } && test -s conftest.$ac_objext; then
5555 ac_cv_sys_file_offset_bits=no; break
5556 else
5557 echo "$as_me: failed program was:" >&5
5558 sed 's/^/| /' conftest.$ac_ext >&5
5559
5560
5561 fi
5562
5563 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5564 cat >conftest.$ac_ext <<_ACEOF
5565 /* confdefs.h. */
5566 _ACEOF
5567 cat confdefs.h >>conftest.$ac_ext
5568 cat >>conftest.$ac_ext <<_ACEOF
5569 /* end confdefs.h. */
5570 #define _FILE_OFFSET_BITS 64
5571 #include <sys/types.h>
5572 /* Check that off_t can represent 2**63 - 1 correctly.
5573 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5574 since some C++ compilers masquerading as C compilers
5575 incorrectly reject 9223372036854775807. */
5576 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5577 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5578 && LARGE_OFF_T % 2147483647 == 1)
5579 ? 1 : -1];
5580 int
5581 main ()
5582 {
5583
5584 ;
5585 return 0;
5586 }
5587 _ACEOF
5588 rm -f conftest.$ac_objext
5589 if { (ac_try="$ac_compile"
5590 case "(($ac_try" in
5591 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5592 *) ac_try_echo=$ac_try;;
5593 esac
5594 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5595 (eval "$ac_compile") 2>conftest.er1
5596 ac_status=$?
5597 grep -v '^ *+' conftest.er1 >conftest.err
5598 rm -f conftest.er1
5599 cat conftest.err >&5
5600 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5601 (exit $ac_status); } && {
5602 test -z "$ac_c_werror_flag" ||
5603 test ! -s conftest.err
5604 } && test -s conftest.$ac_objext; then
5605 ac_cv_sys_file_offset_bits=64; break
5606 else
5607 echo "$as_me: failed program was:" >&5
5608 sed 's/^/| /' conftest.$ac_ext >&5
5609
5610
5611 fi
5612
5613 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5614 ac_cv_sys_file_offset_bits=unknown
5615 break
5616 done
5617 fi
5618 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5619 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5620 case $ac_cv_sys_file_offset_bits in #(
5621 no | unknown) ;;
5622 *)
5623 cat >>confdefs.h <<_ACEOF
5624 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5625 _ACEOF
5626 ;;
5627 esac
5628 rm -f conftest*
5629 if test $ac_cv_sys_file_offset_bits = unknown; then
5630 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5631 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5632 if test "${ac_cv_sys_large_files+set}" = set; then
5633 echo $ECHO_N "(cached) $ECHO_C" >&6
5634 else
5635 while :; do
5636 cat >conftest.$ac_ext <<_ACEOF
5637 /* confdefs.h. */
5638 _ACEOF
5639 cat confdefs.h >>conftest.$ac_ext
5640 cat >>conftest.$ac_ext <<_ACEOF
5641 /* end confdefs.h. */
5642 #include <sys/types.h>
5643 /* Check that off_t can represent 2**63 - 1 correctly.
5644 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5645 since some C++ compilers masquerading as C compilers
5646 incorrectly reject 9223372036854775807. */
5647 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5648 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5649 && LARGE_OFF_T % 2147483647 == 1)
5650 ? 1 : -1];
5651 int
5652 main ()
5653 {
5654
5655 ;
5656 return 0;
5657 }
5658 _ACEOF
5659 rm -f conftest.$ac_objext
5660 if { (ac_try="$ac_compile"
5661 case "(($ac_try" in
5662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5663 *) ac_try_echo=$ac_try;;
5664 esac
5665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5666 (eval "$ac_compile") 2>conftest.er1
5667 ac_status=$?
5668 grep -v '^ *+' conftest.er1 >conftest.err
5669 rm -f conftest.er1
5670 cat conftest.err >&5
5671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5672 (exit $ac_status); } && {
5673 test -z "$ac_c_werror_flag" ||
5674 test ! -s conftest.err
5675 } && test -s conftest.$ac_objext; then
5676 ac_cv_sys_large_files=no; break
5677 else
5678 echo "$as_me: failed program was:" >&5
5679 sed 's/^/| /' conftest.$ac_ext >&5
5680
5681
5682 fi
5683
5684 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5685 cat >conftest.$ac_ext <<_ACEOF
5686 /* confdefs.h. */
5687 _ACEOF
5688 cat confdefs.h >>conftest.$ac_ext
5689 cat >>conftest.$ac_ext <<_ACEOF
5690 /* end confdefs.h. */
5691 #define _LARGE_FILES 1
5692 #include <sys/types.h>
5693 /* Check that off_t can represent 2**63 - 1 correctly.
5694 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5695 since some C++ compilers masquerading as C compilers
5696 incorrectly reject 9223372036854775807. */
5697 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5698 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5699 && LARGE_OFF_T % 2147483647 == 1)
5700 ? 1 : -1];
5701 int
5702 main ()
5703 {
5704
5705 ;
5706 return 0;
5707 }
5708 _ACEOF
5709 rm -f conftest.$ac_objext
5710 if { (ac_try="$ac_compile"
5711 case "(($ac_try" in
5712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5713 *) ac_try_echo=$ac_try;;
5714 esac
5715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5716 (eval "$ac_compile") 2>conftest.er1
5717 ac_status=$?
5718 grep -v '^ *+' conftest.er1 >conftest.err
5719 rm -f conftest.er1
5720 cat conftest.err >&5
5721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5722 (exit $ac_status); } && {
5723 test -z "$ac_c_werror_flag" ||
5724 test ! -s conftest.err
5725 } && test -s conftest.$ac_objext; then
5726 ac_cv_sys_large_files=1; break
5727 else
5728 echo "$as_me: failed program was:" >&5
5729 sed 's/^/| /' conftest.$ac_ext >&5
5730
5731
5732 fi
5733
5734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5735 ac_cv_sys_large_files=unknown
5736 break
5737 done
5738 fi
5739 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5740 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5741 case $ac_cv_sys_large_files in #(
5742 no | unknown) ;;
5743 *)
5744 cat >>confdefs.h <<_ACEOF
5745 #define _LARGE_FILES $ac_cv_sys_large_files
5746 _ACEOF
5747 ;;
5748 esac
5749 rm -f conftest*
5750 fi
5751 fi
5752
5753
5754
5755 ### The standard library on x86-64 GNU/Linux distributions can
5756 ### be located in either /usr/lib64 or /usr/lib.
5757 case "${canonical}" in
5758 x86_64-*-linux-gnu* )
5759 if test -d /usr/lib64; then
5760
5761 cat >>confdefs.h <<\_ACEOF
5762 #define HAVE_X86_64_LIB64_DIR 1
5763 _ACEOF
5764
5765 fi
5766 esac
5767
5768
5769
5770
5771 if test "${with_sound}" != "no"; then
5772 # Sound support for GNU/Linux and the free BSDs.
5773 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5774 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5775 if test "${ac_cv_header_stdc+set}" = set; then
5776 echo $ECHO_N "(cached) $ECHO_C" >&6
5777 else
5778 cat >conftest.$ac_ext <<_ACEOF
5779 /* confdefs.h. */
5780 _ACEOF
5781 cat confdefs.h >>conftest.$ac_ext
5782 cat >>conftest.$ac_ext <<_ACEOF
5783 /* end confdefs.h. */
5784 #include <stdlib.h>
5785 #include <stdarg.h>
5786 #include <string.h>
5787 #include <float.h>
5788
5789 int
5790 main ()
5791 {
5792
5793 ;
5794 return 0;
5795 }
5796 _ACEOF
5797 rm -f conftest.$ac_objext
5798 if { (ac_try="$ac_compile"
5799 case "(($ac_try" in
5800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5801 *) ac_try_echo=$ac_try;;
5802 esac
5803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5804 (eval "$ac_compile") 2>conftest.er1
5805 ac_status=$?
5806 grep -v '^ *+' conftest.er1 >conftest.err
5807 rm -f conftest.er1
5808 cat conftest.err >&5
5809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5810 (exit $ac_status); } && {
5811 test -z "$ac_c_werror_flag" ||
5812 test ! -s conftest.err
5813 } && test -s conftest.$ac_objext; then
5814 ac_cv_header_stdc=yes
5815 else
5816 echo "$as_me: failed program was:" >&5
5817 sed 's/^/| /' conftest.$ac_ext >&5
5818
5819 ac_cv_header_stdc=no
5820 fi
5821
5822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5823
5824 if test $ac_cv_header_stdc = yes; then
5825 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5826 cat >conftest.$ac_ext <<_ACEOF
5827 /* confdefs.h. */
5828 _ACEOF
5829 cat confdefs.h >>conftest.$ac_ext
5830 cat >>conftest.$ac_ext <<_ACEOF
5831 /* end confdefs.h. */
5832 #include <string.h>
5833
5834 _ACEOF
5835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5836 $EGREP "memchr" >/dev/null 2>&1; then
5837 :
5838 else
5839 ac_cv_header_stdc=no
5840 fi
5841 rm -f conftest*
5842
5843 fi
5844
5845 if test $ac_cv_header_stdc = yes; then
5846 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5847 cat >conftest.$ac_ext <<_ACEOF
5848 /* confdefs.h. */
5849 _ACEOF
5850 cat confdefs.h >>conftest.$ac_ext
5851 cat >>conftest.$ac_ext <<_ACEOF
5852 /* end confdefs.h. */
5853 #include <stdlib.h>
5854
5855 _ACEOF
5856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5857 $EGREP "free" >/dev/null 2>&1; then
5858 :
5859 else
5860 ac_cv_header_stdc=no
5861 fi
5862 rm -f conftest*
5863
5864 fi
5865
5866 if test $ac_cv_header_stdc = yes; then
5867 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5868 if test "$cross_compiling" = yes; then
5869 :
5870 else
5871 cat >conftest.$ac_ext <<_ACEOF
5872 /* confdefs.h. */
5873 _ACEOF
5874 cat confdefs.h >>conftest.$ac_ext
5875 cat >>conftest.$ac_ext <<_ACEOF
5876 /* end confdefs.h. */
5877 #include <ctype.h>
5878 #include <stdlib.h>
5879 #if ((' ' & 0x0FF) == 0x020)
5880 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5881 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5882 #else
5883 # define ISLOWER(c) \
5884 (('a' <= (c) && (c) <= 'i') \
5885 || ('j' <= (c) && (c) <= 'r') \
5886 || ('s' <= (c) && (c) <= 'z'))
5887 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5888 #endif
5889
5890 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5891 int
5892 main ()
5893 {
5894 int i;
5895 for (i = 0; i < 256; i++)
5896 if (XOR (islower (i), ISLOWER (i))
5897 || toupper (i) != TOUPPER (i))
5898 return 2;
5899 return 0;
5900 }
5901 _ACEOF
5902 rm -f conftest$ac_exeext
5903 if { (ac_try="$ac_link"
5904 case "(($ac_try" in
5905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5906 *) ac_try_echo=$ac_try;;
5907 esac
5908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5909 (eval "$ac_link") 2>&5
5910 ac_status=$?
5911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5912 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5913 { (case "(($ac_try" in
5914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915 *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918 (eval "$ac_try") 2>&5
5919 ac_status=$?
5920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921 (exit $ac_status); }; }; then
5922 :
5923 else
5924 echo "$as_me: program exited with status $ac_status" >&5
5925 echo "$as_me: failed program was:" >&5
5926 sed 's/^/| /' conftest.$ac_ext >&5
5927
5928 ( exit $ac_status )
5929 ac_cv_header_stdc=no
5930 fi
5931 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5932 fi
5933
5934
5935 fi
5936 fi
5937 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5938 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5939 if test $ac_cv_header_stdc = yes; then
5940
5941 cat >>confdefs.h <<\_ACEOF
5942 #define STDC_HEADERS 1
5943 _ACEOF
5944
5945 fi
5946
5947 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5948
5949
5950
5951
5952
5953
5954
5955
5956
5957 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5958 inttypes.h stdint.h unistd.h
5959 do
5960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5961 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5962 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5963 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5964 echo $ECHO_N "(cached) $ECHO_C" >&6
5965 else
5966 cat >conftest.$ac_ext <<_ACEOF
5967 /* confdefs.h. */
5968 _ACEOF
5969 cat confdefs.h >>conftest.$ac_ext
5970 cat >>conftest.$ac_ext <<_ACEOF
5971 /* end confdefs.h. */
5972 $ac_includes_default
5973
5974 #include <$ac_header>
5975 _ACEOF
5976 rm -f conftest.$ac_objext
5977 if { (ac_try="$ac_compile"
5978 case "(($ac_try" in
5979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980 *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983 (eval "$ac_compile") 2>conftest.er1
5984 ac_status=$?
5985 grep -v '^ *+' conftest.er1 >conftest.err
5986 rm -f conftest.er1
5987 cat conftest.err >&5
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); } && {
5990 test -z "$ac_c_werror_flag" ||
5991 test ! -s conftest.err
5992 } && test -s conftest.$ac_objext; then
5993 eval "$as_ac_Header=yes"
5994 else
5995 echo "$as_me: failed program was:" >&5
5996 sed 's/^/| /' conftest.$ac_ext >&5
5997
5998 eval "$as_ac_Header=no"
5999 fi
6000
6001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6002 fi
6003 ac_res=`eval echo '${'$as_ac_Header'}'`
6004 { echo "$as_me:$LINENO: result: $ac_res" >&5
6005 echo "${ECHO_T}$ac_res" >&6; }
6006 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6007 cat >>confdefs.h <<_ACEOF
6008 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6009 _ACEOF
6010
6011 fi
6012
6013 done
6014
6015
6016
6017
6018
6019 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6020 do
6021 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6022 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6023 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6024 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6025 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6026 echo $ECHO_N "(cached) $ECHO_C" >&6
6027 fi
6028 ac_res=`eval echo '${'$as_ac_Header'}'`
6029 { echo "$as_me:$LINENO: result: $ac_res" >&5
6030 echo "${ECHO_T}$ac_res" >&6; }
6031 else
6032 # Is the header compilable?
6033 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6034 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6035 cat >conftest.$ac_ext <<_ACEOF
6036 /* confdefs.h. */
6037 _ACEOF
6038 cat confdefs.h >>conftest.$ac_ext
6039 cat >>conftest.$ac_ext <<_ACEOF
6040 /* end confdefs.h. */
6041 $ac_includes_default
6042 #include <$ac_header>
6043 _ACEOF
6044 rm -f conftest.$ac_objext
6045 if { (ac_try="$ac_compile"
6046 case "(($ac_try" in
6047 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6048 *) ac_try_echo=$ac_try;;
6049 esac
6050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6051 (eval "$ac_compile") 2>conftest.er1
6052 ac_status=$?
6053 grep -v '^ *+' conftest.er1 >conftest.err
6054 rm -f conftest.er1
6055 cat conftest.err >&5
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); } && {
6058 test -z "$ac_c_werror_flag" ||
6059 test ! -s conftest.err
6060 } && test -s conftest.$ac_objext; then
6061 ac_header_compiler=yes
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 ac_header_compiler=no
6067 fi
6068
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6071 echo "${ECHO_T}$ac_header_compiler" >&6; }
6072
6073 # Is the header present?
6074 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6075 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6076 cat >conftest.$ac_ext <<_ACEOF
6077 /* confdefs.h. */
6078 _ACEOF
6079 cat confdefs.h >>conftest.$ac_ext
6080 cat >>conftest.$ac_ext <<_ACEOF
6081 /* end confdefs.h. */
6082 #include <$ac_header>
6083 _ACEOF
6084 if { (ac_try="$ac_cpp conftest.$ac_ext"
6085 case "(($ac_try" in
6086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6087 *) ac_try_echo=$ac_try;;
6088 esac
6089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6090 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6091 ac_status=$?
6092 grep -v '^ *+' conftest.er1 >conftest.err
6093 rm -f conftest.er1
6094 cat conftest.err >&5
6095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6096 (exit $ac_status); } >/dev/null && {
6097 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6098 test ! -s conftest.err
6099 }; then
6100 ac_header_preproc=yes
6101 else
6102 echo "$as_me: failed program was:" >&5
6103 sed 's/^/| /' conftest.$ac_ext >&5
6104
6105 ac_header_preproc=no
6106 fi
6107
6108 rm -f conftest.err conftest.$ac_ext
6109 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6110 echo "${ECHO_T}$ac_header_preproc" >&6; }
6111
6112 # So? What about this header?
6113 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6114 yes:no: )
6115 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6116 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6117 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6118 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6119 ac_header_preproc=yes
6120 ;;
6121 no:yes:* )
6122 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6123 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6124 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6125 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6126 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6127 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6128 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6129 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6130 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6131 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6132 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6133 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6134
6135 ;;
6136 esac
6137 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6138 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6139 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6140 echo $ECHO_N "(cached) $ECHO_C" >&6
6141 else
6142 eval "$as_ac_Header=\$ac_header_preproc"
6143 fi
6144 ac_res=`eval echo '${'$as_ac_Header'}'`
6145 { echo "$as_me:$LINENO: result: $ac_res" >&5
6146 echo "${ECHO_T}$ac_res" >&6; }
6147
6148 fi
6149 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6150 cat >>confdefs.h <<_ACEOF
6151 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6152 _ACEOF
6153
6154 fi
6155
6156 done
6157
6158 # Emulation library used on NetBSD.
6159 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6160 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6161 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 else
6164 ac_check_lib_save_LIBS=$LIBS
6165 LIBS="-lossaudio $LIBS"
6166 cat >conftest.$ac_ext <<_ACEOF
6167 /* confdefs.h. */
6168 _ACEOF
6169 cat confdefs.h >>conftest.$ac_ext
6170 cat >>conftest.$ac_ext <<_ACEOF
6171 /* end confdefs.h. */
6172
6173 /* Override any GCC internal prototype to avoid an error.
6174 Use char because int might match the return type of a GCC
6175 builtin and then its argument prototype would still apply. */
6176 #ifdef __cplusplus
6177 extern "C"
6178 #endif
6179 char _oss_ioctl ();
6180 int
6181 main ()
6182 {
6183 return _oss_ioctl ();
6184 ;
6185 return 0;
6186 }
6187 _ACEOF
6188 rm -f conftest.$ac_objext conftest$ac_exeext
6189 if { (ac_try="$ac_link"
6190 case "(($ac_try" in
6191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6192 *) ac_try_echo=$ac_try;;
6193 esac
6194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6195 (eval "$ac_link") 2>conftest.er1
6196 ac_status=$?
6197 grep -v '^ *+' conftest.er1 >conftest.err
6198 rm -f conftest.er1
6199 cat conftest.err >&5
6200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6201 (exit $ac_status); } && {
6202 test -z "$ac_c_werror_flag" ||
6203 test ! -s conftest.err
6204 } && test -s conftest$ac_exeext &&
6205 $as_test_x conftest$ac_exeext; then
6206 ac_cv_lib_ossaudio__oss_ioctl=yes
6207 else
6208 echo "$as_me: failed program was:" >&5
6209 sed 's/^/| /' conftest.$ac_ext >&5
6210
6211 ac_cv_lib_ossaudio__oss_ioctl=no
6212 fi
6213
6214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6215 conftest$ac_exeext conftest.$ac_ext
6216 LIBS=$ac_check_lib_save_LIBS
6217 fi
6218 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6219 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6220 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6221 LIBSOUND=-lossaudio
6222 else
6223 LIBSOUND=
6224 fi
6225
6226
6227
6228 ALSA_REQUIRED=1.0.0
6229 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6230 if test "X${with_pkg_config_prog}" != X; then
6231 PKG_CONFIG="${with_pkg_config_prog}"
6232 fi
6233
6234 succeeded=no
6235
6236 if test -z "$PKG_CONFIG"; then
6237 # Extract the first word of "pkg-config", so it can be a program name with args.
6238 set dummy pkg-config; ac_word=$2
6239 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6240 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6241 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6242 echo $ECHO_N "(cached) $ECHO_C" >&6
6243 else
6244 case $PKG_CONFIG in
6245 [\\/]* | ?:[\\/]*)
6246 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6247 ;;
6248 *)
6249 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 for as_dir in $PATH
6251 do
6252 IFS=$as_save_IFS
6253 test -z "$as_dir" && as_dir=.
6254 for ac_exec_ext in '' $ac_executable_extensions; do
6255 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6256 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6257 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6258 break 2
6259 fi
6260 done
6261 done
6262 IFS=$as_save_IFS
6263
6264 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6265 ;;
6266 esac
6267 fi
6268 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6269 if test -n "$PKG_CONFIG"; then
6270 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6271 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6272 else
6273 { echo "$as_me:$LINENO: result: no" >&5
6274 echo "${ECHO_T}no" >&6; }
6275 fi
6276
6277
6278 fi
6279
6280 if test "$PKG_CONFIG" = "no" ; then
6281 HAVE_ALSA=no
6282 else
6283 PKG_CONFIG_MIN_VERSION=0.9.0
6284 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6285 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6286 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6287
6288 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6289 { echo "$as_me:$LINENO: result: yes" >&5
6290 echo "${ECHO_T}yes" >&6; }
6291 succeeded=yes
6292
6293 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6294 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6295 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6296 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6297 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6298
6299 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6300 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6301 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6302 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6303 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6304 else
6305 { echo "$as_me:$LINENO: result: no" >&5
6306 echo "${ECHO_T}no" >&6; }
6307 ALSA_CFLAGS=""
6308 ALSA_LIBS=""
6309 ## If we have a custom action on failure, don't print errors, but
6310 ## do set a variable so people can do so.
6311 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6312
6313 fi
6314
6315
6316
6317 else
6318 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6319 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6320 fi
6321 fi
6322
6323 if test $succeeded = yes; then
6324 HAVE_ALSA=yes
6325 else
6326 HAVE_ALSA=no
6327 fi
6328
6329 if test $HAVE_ALSA = yes; then
6330 SAVE_CFLAGS="$CFLAGS"
6331 SAVE_LDFLAGS="$LDFLAGS"
6332 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6333 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6334 cat >conftest.$ac_ext <<_ACEOF
6335 /* confdefs.h. */
6336 _ACEOF
6337 cat confdefs.h >>conftest.$ac_ext
6338 cat >>conftest.$ac_ext <<_ACEOF
6339 /* end confdefs.h. */
6340 #include <asoundlib.h>
6341 int
6342 main ()
6343 {
6344 snd_lib_error_set_handler (0);
6345 ;
6346 return 0;
6347 }
6348 _ACEOF
6349 rm -f conftest.$ac_objext
6350 if { (ac_try="$ac_compile"
6351 case "(($ac_try" in
6352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353 *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356 (eval "$ac_compile") 2>conftest.er1
6357 ac_status=$?
6358 grep -v '^ *+' conftest.er1 >conftest.err
6359 rm -f conftest.er1
6360 cat conftest.err >&5
6361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362 (exit $ac_status); } && {
6363 test -z "$ac_c_werror_flag" ||
6364 test ! -s conftest.err
6365 } && test -s conftest.$ac_objext; then
6366 emacs_alsa_normal=yes
6367 else
6368 echo "$as_me: failed program was:" >&5
6369 sed 's/^/| /' conftest.$ac_ext >&5
6370
6371 emacs_alsa_normal=no
6372 fi
6373
6374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6375 if test "$emacs_alsa_normal" != yes; then
6376 cat >conftest.$ac_ext <<_ACEOF
6377 /* confdefs.h. */
6378 _ACEOF
6379 cat confdefs.h >>conftest.$ac_ext
6380 cat >>conftest.$ac_ext <<_ACEOF
6381 /* end confdefs.h. */
6382 #include <alsa/asoundlib.h>
6383 int
6384 main ()
6385 {
6386 snd_lib_error_set_handler (0);
6387 ;
6388 return 0;
6389 }
6390 _ACEOF
6391 rm -f conftest.$ac_objext
6392 if { (ac_try="$ac_compile"
6393 case "(($ac_try" in
6394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6395 *) ac_try_echo=$ac_try;;
6396 esac
6397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6398 (eval "$ac_compile") 2>conftest.er1
6399 ac_status=$?
6400 grep -v '^ *+' conftest.er1 >conftest.err
6401 rm -f conftest.er1
6402 cat conftest.err >&5
6403 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6404 (exit $ac_status); } && {
6405 test -z "$ac_c_werror_flag" ||
6406 test ! -s conftest.err
6407 } && test -s conftest.$ac_objext; then
6408 emacs_alsa_subdir=yes
6409 else
6410 echo "$as_me: failed program was:" >&5
6411 sed 's/^/| /' conftest.$ac_ext >&5
6412
6413 emacs_alsa_subdir=no
6414 fi
6415
6416 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6417 if test "$emacs_alsa_subdir" != yes; then
6418 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6419 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6420 { (exit 1); exit 1; }; }
6421 fi
6422 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6423 fi
6424
6425 CFLAGS="$SAVE_CFLAGS"
6426 LDFLAGS="$SAVE_LDFLAGS"
6427 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6428 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6429
6430 cat >>confdefs.h <<\_ACEOF
6431 #define HAVE_ALSA 1
6432 _ACEOF
6433
6434
6435 fi
6436
6437 fi
6438
6439
6440
6441
6442
6443
6444
6445
6446
6447
6448
6449
6450
6451
6452
6453
6454
6455
6456
6457
6458
6459
6460
6461
6462
6463
6464 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6465 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6466 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6467 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6468 sys/utsname.h pwd.h
6469 do
6470 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6471 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6472 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6473 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6474 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6475 echo $ECHO_N "(cached) $ECHO_C" >&6
6476 fi
6477 ac_res=`eval echo '${'$as_ac_Header'}'`
6478 { echo "$as_me:$LINENO: result: $ac_res" >&5
6479 echo "${ECHO_T}$ac_res" >&6; }
6480 else
6481 # Is the header compilable?
6482 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6483 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6484 cat >conftest.$ac_ext <<_ACEOF
6485 /* confdefs.h. */
6486 _ACEOF
6487 cat confdefs.h >>conftest.$ac_ext
6488 cat >>conftest.$ac_ext <<_ACEOF
6489 /* end confdefs.h. */
6490 $ac_includes_default
6491 #include <$ac_header>
6492 _ACEOF
6493 rm -f conftest.$ac_objext
6494 if { (ac_try="$ac_compile"
6495 case "(($ac_try" in
6496 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6497 *) ac_try_echo=$ac_try;;
6498 esac
6499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6500 (eval "$ac_compile") 2>conftest.er1
6501 ac_status=$?
6502 grep -v '^ *+' conftest.er1 >conftest.err
6503 rm -f conftest.er1
6504 cat conftest.err >&5
6505 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6506 (exit $ac_status); } && {
6507 test -z "$ac_c_werror_flag" ||
6508 test ! -s conftest.err
6509 } && test -s conftest.$ac_objext; then
6510 ac_header_compiler=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_compiler=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6; }
6521
6522 # Is the header present?
6523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (ac_try="$ac_cpp conftest.$ac_ext"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null && {
6546 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6547 test ! -s conftest.err
6548 }; then
6549 ac_header_preproc=yes
6550 else
6551 echo "$as_me: failed program was:" >&5
6552 sed 's/^/| /' conftest.$ac_ext >&5
6553
6554 ac_header_preproc=no
6555 fi
6556
6557 rm -f conftest.err conftest.$ac_ext
6558 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6559 echo "${ECHO_T}$ac_header_preproc" >&6; }
6560
6561 # So? What about this header?
6562 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6563 yes:no: )
6564 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6565 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6566 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6567 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6568 ac_header_preproc=yes
6569 ;;
6570 no:yes:* )
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6572 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6574 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6575 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6576 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6577 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6578 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6580 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6581 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6582 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6583
6584 ;;
6585 esac
6586 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6587 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6588 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6589 echo $ECHO_N "(cached) $ECHO_C" >&6
6590 else
6591 eval "$as_ac_Header=\$ac_header_preproc"
6592 fi
6593 ac_res=`eval echo '${'$as_ac_Header'}'`
6594 { echo "$as_me:$LINENO: result: $ac_res" >&5
6595 echo "${ECHO_T}$ac_res" >&6; }
6596
6597 fi
6598 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6599 cat >>confdefs.h <<_ACEOF
6600 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6601 _ACEOF
6602
6603 fi
6604
6605 done
6606
6607
6608 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6609 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6610 cat >conftest.$ac_ext <<_ACEOF
6611 /* confdefs.h. */
6612 _ACEOF
6613 cat confdefs.h >>conftest.$ac_ext
6614 cat >>conftest.$ac_ext <<_ACEOF
6615 /* end confdefs.h. */
6616 #include <sys/personality.h>
6617 int
6618 main ()
6619 {
6620 personality (PER_LINUX32)
6621 ;
6622 return 0;
6623 }
6624 _ACEOF
6625 rm -f conftest.$ac_objext
6626 if { (ac_try="$ac_compile"
6627 case "(($ac_try" in
6628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6629 *) ac_try_echo=$ac_try;;
6630 esac
6631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6632 (eval "$ac_compile") 2>conftest.er1
6633 ac_status=$?
6634 grep -v '^ *+' conftest.er1 >conftest.err
6635 rm -f conftest.er1
6636 cat conftest.err >&5
6637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6638 (exit $ac_status); } && {
6639 test -z "$ac_c_werror_flag" ||
6640 test ! -s conftest.err
6641 } && test -s conftest.$ac_objext; then
6642 emacs_cv_personality_linux32=yes
6643 else
6644 echo "$as_me: failed program was:" >&5
6645 sed 's/^/| /' conftest.$ac_ext >&5
6646
6647 emacs_cv_personality_linux32=no
6648 fi
6649
6650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6651 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6652 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6653
6654 if test $emacs_cv_personality_linux32 = yes; then
6655
6656 cat >>confdefs.h <<\_ACEOF
6657 #define HAVE_PERSONALITY_LINUX32 1
6658 _ACEOF
6659
6660 fi
6661
6662
6663 for ac_header in term.h
6664 do
6665 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6666 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6667 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6668 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6669 echo $ECHO_N "(cached) $ECHO_C" >&6
6670 else
6671 cat >conftest.$ac_ext <<_ACEOF
6672 /* confdefs.h. */
6673 _ACEOF
6674 cat confdefs.h >>conftest.$ac_ext
6675 cat >>conftest.$ac_ext <<_ACEOF
6676 /* end confdefs.h. */
6677 #include <$ac_header>
6678 _ACEOF
6679 if { (ac_try="$ac_cpp conftest.$ac_ext"
6680 case "(($ac_try" in
6681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6682 *) ac_try_echo=$ac_try;;
6683 esac
6684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6685 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6686 ac_status=$?
6687 grep -v '^ *+' conftest.er1 >conftest.err
6688 rm -f conftest.er1
6689 cat conftest.err >&5
6690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6691 (exit $ac_status); } >/dev/null && {
6692 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6693 test ! -s conftest.err
6694 }; then
6695 eval "$as_ac_Header=yes"
6696 else
6697 echo "$as_me: failed program was:" >&5
6698 sed 's/^/| /' conftest.$ac_ext >&5
6699
6700 eval "$as_ac_Header=no"
6701 fi
6702
6703 rm -f conftest.err conftest.$ac_ext
6704 fi
6705 ac_res=`eval echo '${'$as_ac_Header'}'`
6706 { echo "$as_me:$LINENO: result: $ac_res" >&5
6707 echo "${ECHO_T}$ac_res" >&6; }
6708 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6709 cat >>confdefs.h <<_ACEOF
6710 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6711 _ACEOF
6712
6713 fi
6714
6715 done
6716
6717 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6718 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6719 if test "${ac_cv_header_stdc+set}" = set; then
6720 echo $ECHO_N "(cached) $ECHO_C" >&6
6721 else
6722 cat >conftest.$ac_ext <<_ACEOF
6723 /* confdefs.h. */
6724 _ACEOF
6725 cat confdefs.h >>conftest.$ac_ext
6726 cat >>conftest.$ac_ext <<_ACEOF
6727 /* end confdefs.h. */
6728 #include <stdlib.h>
6729 #include <stdarg.h>
6730 #include <string.h>
6731 #include <float.h>
6732
6733 int
6734 main ()
6735 {
6736
6737 ;
6738 return 0;
6739 }
6740 _ACEOF
6741 rm -f conftest.$ac_objext
6742 if { (ac_try="$ac_compile"
6743 case "(($ac_try" in
6744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6745 *) ac_try_echo=$ac_try;;
6746 esac
6747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6748 (eval "$ac_compile") 2>conftest.er1
6749 ac_status=$?
6750 grep -v '^ *+' conftest.er1 >conftest.err
6751 rm -f conftest.er1
6752 cat conftest.err >&5
6753 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6754 (exit $ac_status); } && {
6755 test -z "$ac_c_werror_flag" ||
6756 test ! -s conftest.err
6757 } && test -s conftest.$ac_objext; then
6758 ac_cv_header_stdc=yes
6759 else
6760 echo "$as_me: failed program was:" >&5
6761 sed 's/^/| /' conftest.$ac_ext >&5
6762
6763 ac_cv_header_stdc=no
6764 fi
6765
6766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6767
6768 if test $ac_cv_header_stdc = yes; then
6769 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6770 cat >conftest.$ac_ext <<_ACEOF
6771 /* confdefs.h. */
6772 _ACEOF
6773 cat confdefs.h >>conftest.$ac_ext
6774 cat >>conftest.$ac_ext <<_ACEOF
6775 /* end confdefs.h. */
6776 #include <string.h>
6777
6778 _ACEOF
6779 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6780 $EGREP "memchr" >/dev/null 2>&1; then
6781 :
6782 else
6783 ac_cv_header_stdc=no
6784 fi
6785 rm -f conftest*
6786
6787 fi
6788
6789 if test $ac_cv_header_stdc = yes; then
6790 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6791 cat >conftest.$ac_ext <<_ACEOF
6792 /* confdefs.h. */
6793 _ACEOF
6794 cat confdefs.h >>conftest.$ac_ext
6795 cat >>conftest.$ac_ext <<_ACEOF
6796 /* end confdefs.h. */
6797 #include <stdlib.h>
6798
6799 _ACEOF
6800 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6801 $EGREP "free" >/dev/null 2>&1; then
6802 :
6803 else
6804 ac_cv_header_stdc=no
6805 fi
6806 rm -f conftest*
6807
6808 fi
6809
6810 if test $ac_cv_header_stdc = yes; then
6811 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6812 if test "$cross_compiling" = yes; then
6813 :
6814 else
6815 cat >conftest.$ac_ext <<_ACEOF
6816 /* confdefs.h. */
6817 _ACEOF
6818 cat confdefs.h >>conftest.$ac_ext
6819 cat >>conftest.$ac_ext <<_ACEOF
6820 /* end confdefs.h. */
6821 #include <ctype.h>
6822 #include <stdlib.h>
6823 #if ((' ' & 0x0FF) == 0x020)
6824 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6825 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6826 #else
6827 # define ISLOWER(c) \
6828 (('a' <= (c) && (c) <= 'i') \
6829 || ('j' <= (c) && (c) <= 'r') \
6830 || ('s' <= (c) && (c) <= 'z'))
6831 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6832 #endif
6833
6834 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6835 int
6836 main ()
6837 {
6838 int i;
6839 for (i = 0; i < 256; i++)
6840 if (XOR (islower (i), ISLOWER (i))
6841 || toupper (i) != TOUPPER (i))
6842 return 2;
6843 return 0;
6844 }
6845 _ACEOF
6846 rm -f conftest$ac_exeext
6847 if { (ac_try="$ac_link"
6848 case "(($ac_try" in
6849 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6850 *) ac_try_echo=$ac_try;;
6851 esac
6852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6853 (eval "$ac_link") 2>&5
6854 ac_status=$?
6855 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6856 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6857 { (case "(($ac_try" in
6858 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6859 *) ac_try_echo=$ac_try;;
6860 esac
6861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6862 (eval "$ac_try") 2>&5
6863 ac_status=$?
6864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6865 (exit $ac_status); }; }; then
6866 :
6867 else
6868 echo "$as_me: program exited with status $ac_status" >&5
6869 echo "$as_me: failed program was:" >&5
6870 sed 's/^/| /' conftest.$ac_ext >&5
6871
6872 ( exit $ac_status )
6873 ac_cv_header_stdc=no
6874 fi
6875 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6876 fi
6877
6878
6879 fi
6880 fi
6881 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6882 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6883 if test $ac_cv_header_stdc = yes; then
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define STDC_HEADERS 1
6887 _ACEOF
6888
6889 fi
6890
6891 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6892 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6893 if test "${ac_cv_header_time+set}" = set; then
6894 echo $ECHO_N "(cached) $ECHO_C" >&6
6895 else
6896 cat >conftest.$ac_ext <<_ACEOF
6897 /* confdefs.h. */
6898 _ACEOF
6899 cat confdefs.h >>conftest.$ac_ext
6900 cat >>conftest.$ac_ext <<_ACEOF
6901 /* end confdefs.h. */
6902 #include <sys/types.h>
6903 #include <sys/time.h>
6904 #include <time.h>
6905
6906 int
6907 main ()
6908 {
6909 if ((struct tm *) 0)
6910 return 0;
6911 ;
6912 return 0;
6913 }
6914 _ACEOF
6915 rm -f conftest.$ac_objext
6916 if { (ac_try="$ac_compile"
6917 case "(($ac_try" in
6918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6919 *) ac_try_echo=$ac_try;;
6920 esac
6921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6922 (eval "$ac_compile") 2>conftest.er1
6923 ac_status=$?
6924 grep -v '^ *+' conftest.er1 >conftest.err
6925 rm -f conftest.er1
6926 cat conftest.err >&5
6927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6928 (exit $ac_status); } && {
6929 test -z "$ac_c_werror_flag" ||
6930 test ! -s conftest.err
6931 } && test -s conftest.$ac_objext; then
6932 ac_cv_header_time=yes
6933 else
6934 echo "$as_me: failed program was:" >&5
6935 sed 's/^/| /' conftest.$ac_ext >&5
6936
6937 ac_cv_header_time=no
6938 fi
6939
6940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6941 fi
6942 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
6943 echo "${ECHO_T}$ac_cv_header_time" >&6; }
6944 if test $ac_cv_header_time = yes; then
6945
6946 cat >>confdefs.h <<\_ACEOF
6947 #define TIME_WITH_SYS_TIME 1
6948 _ACEOF
6949
6950 fi
6951
6952 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
6953 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
6954 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
6955 echo $ECHO_N "(cached) $ECHO_C" >&6
6956 else
6957 cat >conftest.$ac_ext <<_ACEOF
6958 /* confdefs.h. */
6959 _ACEOF
6960 cat confdefs.h >>conftest.$ac_ext
6961 cat >>conftest.$ac_ext <<_ACEOF
6962 /* end confdefs.h. */
6963 $ac_includes_default
6964 int
6965 main ()
6966 {
6967 #ifndef sys_siglist
6968 (void) sys_siglist;
6969 #endif
6970
6971 ;
6972 return 0;
6973 }
6974 _ACEOF
6975 rm -f conftest.$ac_objext
6976 if { (ac_try="$ac_compile"
6977 case "(($ac_try" in
6978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6979 *) ac_try_echo=$ac_try;;
6980 esac
6981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6982 (eval "$ac_compile") 2>conftest.er1
6983 ac_status=$?
6984 grep -v '^ *+' conftest.er1 >conftest.err
6985 rm -f conftest.er1
6986 cat conftest.err >&5
6987 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6988 (exit $ac_status); } && {
6989 test -z "$ac_c_werror_flag" ||
6990 test ! -s conftest.err
6991 } && test -s conftest.$ac_objext; then
6992 ac_cv_have_decl_sys_siglist=yes
6993 else
6994 echo "$as_me: failed program was:" >&5
6995 sed 's/^/| /' conftest.$ac_ext >&5
6996
6997 ac_cv_have_decl_sys_siglist=no
6998 fi
6999
7000 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7001 fi
7002 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7003 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7004 if test $ac_cv_have_decl_sys_siglist = yes; then
7005
7006 cat >>confdefs.h <<_ACEOF
7007 #define HAVE_DECL_SYS_SIGLIST 1
7008 _ACEOF
7009
7010
7011 else
7012 cat >>confdefs.h <<_ACEOF
7013 #define HAVE_DECL_SYS_SIGLIST 0
7014 _ACEOF
7015
7016
7017 fi
7018
7019
7020 if test $ac_cv_have_decl_sys_siglist != yes; then
7021 # For Tru64, at least:
7022 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7023 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7024 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7025 echo $ECHO_N "(cached) $ECHO_C" >&6
7026 else
7027 cat >conftest.$ac_ext <<_ACEOF
7028 /* confdefs.h. */
7029 _ACEOF
7030 cat confdefs.h >>conftest.$ac_ext
7031 cat >>conftest.$ac_ext <<_ACEOF
7032 /* end confdefs.h. */
7033 $ac_includes_default
7034 int
7035 main ()
7036 {
7037 #ifndef __sys_siglist
7038 (void) __sys_siglist;
7039 #endif
7040
7041 ;
7042 return 0;
7043 }
7044 _ACEOF
7045 rm -f conftest.$ac_objext
7046 if { (ac_try="$ac_compile"
7047 case "(($ac_try" in
7048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7049 *) ac_try_echo=$ac_try;;
7050 esac
7051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7052 (eval "$ac_compile") 2>conftest.er1
7053 ac_status=$?
7054 grep -v '^ *+' conftest.er1 >conftest.err
7055 rm -f conftest.er1
7056 cat conftest.err >&5
7057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7058 (exit $ac_status); } && {
7059 test -z "$ac_c_werror_flag" ||
7060 test ! -s conftest.err
7061 } && test -s conftest.$ac_objext; then
7062 ac_cv_have_decl___sys_siglist=yes
7063 else
7064 echo "$as_me: failed program was:" >&5
7065 sed 's/^/| /' conftest.$ac_ext >&5
7066
7067 ac_cv_have_decl___sys_siglist=no
7068 fi
7069
7070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7071 fi
7072 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7073 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7074 if test $ac_cv_have_decl___sys_siglist = yes; then
7075
7076 cat >>confdefs.h <<_ACEOF
7077 #define HAVE_DECL___SYS_SIGLIST 1
7078 _ACEOF
7079
7080
7081 else
7082 cat >>confdefs.h <<_ACEOF
7083 #define HAVE_DECL___SYS_SIGLIST 0
7084 _ACEOF
7085
7086
7087 fi
7088
7089
7090 if test $ac_cv_have_decl___sys_siglist = yes; then
7091
7092 cat >>confdefs.h <<\_ACEOF
7093 #define sys_siglist __sys_siglist
7094 _ACEOF
7095
7096 fi
7097 fi
7098 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7099 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7100 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7101 echo $ECHO_N "(cached) $ECHO_C" >&6
7102 else
7103 cat >conftest.$ac_ext <<_ACEOF
7104 /* confdefs.h. */
7105 _ACEOF
7106 cat confdefs.h >>conftest.$ac_ext
7107 cat >>conftest.$ac_ext <<_ACEOF
7108 /* end confdefs.h. */
7109 #include <sys/types.h>
7110 #include <sys/wait.h>
7111 #ifndef WEXITSTATUS
7112 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7113 #endif
7114 #ifndef WIFEXITED
7115 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7116 #endif
7117
7118 int
7119 main ()
7120 {
7121 int s;
7122 wait (&s);
7123 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7124 ;
7125 return 0;
7126 }
7127 _ACEOF
7128 rm -f conftest.$ac_objext
7129 if { (ac_try="$ac_compile"
7130 case "(($ac_try" in
7131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7132 *) ac_try_echo=$ac_try;;
7133 esac
7134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7135 (eval "$ac_compile") 2>conftest.er1
7136 ac_status=$?
7137 grep -v '^ *+' conftest.er1 >conftest.err
7138 rm -f conftest.er1
7139 cat conftest.err >&5
7140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7141 (exit $ac_status); } && {
7142 test -z "$ac_c_werror_flag" ||
7143 test ! -s conftest.err
7144 } && test -s conftest.$ac_objext; then
7145 ac_cv_header_sys_wait_h=yes
7146 else
7147 echo "$as_me: failed program was:" >&5
7148 sed 's/^/| /' conftest.$ac_ext >&5
7149
7150 ac_cv_header_sys_wait_h=no
7151 fi
7152
7153 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7154 fi
7155 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7156 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7157 if test $ac_cv_header_sys_wait_h = yes; then
7158
7159 cat >>confdefs.h <<\_ACEOF
7160 #define HAVE_SYS_WAIT_H 1
7161 _ACEOF
7162
7163 fi
7164
7165
7166 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7167 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7168 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7169 echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171 cat >conftest.$ac_ext <<_ACEOF
7172 /* confdefs.h. */
7173 _ACEOF
7174 cat confdefs.h >>conftest.$ac_ext
7175 cat >>conftest.$ac_ext <<_ACEOF
7176 /* end confdefs.h. */
7177 #ifdef TIME_WITH_SYS_TIME
7178 #include <sys/time.h>
7179 #include <time.h>
7180 #else
7181 #ifdef HAVE_SYS_TIME_H
7182 #include <sys/time.h>
7183 #else
7184 #include <time.h>
7185 #endif
7186 #endif
7187 #ifdef HAVE_UTIME_H
7188 #include <utime.h>
7189 #endif
7190 int
7191 main ()
7192 {
7193 static struct utimbuf x; x.actime = x.modtime;
7194 ;
7195 return 0;
7196 }
7197 _ACEOF
7198 rm -f conftest.$ac_objext
7199 if { (ac_try="$ac_compile"
7200 case "(($ac_try" in
7201 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7202 *) ac_try_echo=$ac_try;;
7203 esac
7204 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7205 (eval "$ac_compile") 2>conftest.er1
7206 ac_status=$?
7207 grep -v '^ *+' conftest.er1 >conftest.err
7208 rm -f conftest.er1
7209 cat conftest.err >&5
7210 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7211 (exit $ac_status); } && {
7212 test -z "$ac_c_werror_flag" ||
7213 test ! -s conftest.err
7214 } && test -s conftest.$ac_objext; then
7215 emacs_cv_struct_utimbuf=yes
7216 else
7217 echo "$as_me: failed program was:" >&5
7218 sed 's/^/| /' conftest.$ac_ext >&5
7219
7220 emacs_cv_struct_utimbuf=no
7221 fi
7222
7223 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7224 fi
7225 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7226 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7227 if test $emacs_cv_struct_utimbuf = yes; then
7228
7229 cat >>confdefs.h <<\_ACEOF
7230 #define HAVE_STRUCT_UTIMBUF 1
7231 _ACEOF
7232
7233 fi
7234
7235 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7236 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7237 if test "${ac_cv_type_signal+set}" = set; then
7238 echo $ECHO_N "(cached) $ECHO_C" >&6
7239 else
7240 cat >conftest.$ac_ext <<_ACEOF
7241 /* confdefs.h. */
7242 _ACEOF
7243 cat confdefs.h >>conftest.$ac_ext
7244 cat >>conftest.$ac_ext <<_ACEOF
7245 /* end confdefs.h. */
7246 #include <sys/types.h>
7247 #include <signal.h>
7248
7249 int
7250 main ()
7251 {
7252 return *(signal (0, 0)) (0) == 1;
7253 ;
7254 return 0;
7255 }
7256 _ACEOF
7257 rm -f conftest.$ac_objext
7258 if { (ac_try="$ac_compile"
7259 case "(($ac_try" in
7260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7261 *) ac_try_echo=$ac_try;;
7262 esac
7263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7264 (eval "$ac_compile") 2>conftest.er1
7265 ac_status=$?
7266 grep -v '^ *+' conftest.er1 >conftest.err
7267 rm -f conftest.er1
7268 cat conftest.err >&5
7269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7270 (exit $ac_status); } && {
7271 test -z "$ac_c_werror_flag" ||
7272 test ! -s conftest.err
7273 } && test -s conftest.$ac_objext; then
7274 ac_cv_type_signal=int
7275 else
7276 echo "$as_me: failed program was:" >&5
7277 sed 's/^/| /' conftest.$ac_ext >&5
7278
7279 ac_cv_type_signal=void
7280 fi
7281
7282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7283 fi
7284 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7285 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7286
7287 cat >>confdefs.h <<_ACEOF
7288 #define RETSIGTYPE $ac_cv_type_signal
7289 _ACEOF
7290
7291
7292
7293 { echo "$as_me:$LINENO: checking for speed_t" >&5
7294 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7295 if test "${emacs_cv_speed_t+set}" = set; then
7296 echo $ECHO_N "(cached) $ECHO_C" >&6
7297 else
7298 cat >conftest.$ac_ext <<_ACEOF
7299 /* confdefs.h. */
7300 _ACEOF
7301 cat confdefs.h >>conftest.$ac_ext
7302 cat >>conftest.$ac_ext <<_ACEOF
7303 /* end confdefs.h. */
7304 #include <termios.h>
7305 int
7306 main ()
7307 {
7308 speed_t x = 1;
7309 ;
7310 return 0;
7311 }
7312 _ACEOF
7313 rm -f conftest.$ac_objext
7314 if { (ac_try="$ac_compile"
7315 case "(($ac_try" in
7316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7317 *) ac_try_echo=$ac_try;;
7318 esac
7319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7320 (eval "$ac_compile") 2>conftest.er1
7321 ac_status=$?
7322 grep -v '^ *+' conftest.er1 >conftest.err
7323 rm -f conftest.er1
7324 cat conftest.err >&5
7325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7326 (exit $ac_status); } && {
7327 test -z "$ac_c_werror_flag" ||
7328 test ! -s conftest.err
7329 } && test -s conftest.$ac_objext; then
7330 emacs_cv_speed_t=yes
7331 else
7332 echo "$as_me: failed program was:" >&5
7333 sed 's/^/| /' conftest.$ac_ext >&5
7334
7335 emacs_cv_speed_t=no
7336 fi
7337
7338 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7339 fi
7340 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7341 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7342 if test $emacs_cv_speed_t = yes; then
7343
7344 cat >>confdefs.h <<\_ACEOF
7345 #define HAVE_SPEED_T 1
7346 _ACEOF
7347
7348 fi
7349
7350 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7351 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7352 if test "${emacs_cv_struct_timeval+set}" = set; then
7353 echo $ECHO_N "(cached) $ECHO_C" >&6
7354 else
7355 cat >conftest.$ac_ext <<_ACEOF
7356 /* confdefs.h. */
7357 _ACEOF
7358 cat confdefs.h >>conftest.$ac_ext
7359 cat >>conftest.$ac_ext <<_ACEOF
7360 /* end confdefs.h. */
7361 #ifdef TIME_WITH_SYS_TIME
7362 #include <sys/time.h>
7363 #include <time.h>
7364 #else
7365 #ifdef HAVE_SYS_TIME_H
7366 #include <sys/time.h>
7367 #else
7368 #include <time.h>
7369 #endif
7370 #endif
7371 int
7372 main ()
7373 {
7374 static struct timeval x; x.tv_sec = x.tv_usec;
7375 ;
7376 return 0;
7377 }
7378 _ACEOF
7379 rm -f conftest.$ac_objext
7380 if { (ac_try="$ac_compile"
7381 case "(($ac_try" in
7382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7383 *) ac_try_echo=$ac_try;;
7384 esac
7385 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7386 (eval "$ac_compile") 2>conftest.er1
7387 ac_status=$?
7388 grep -v '^ *+' conftest.er1 >conftest.err
7389 rm -f conftest.er1
7390 cat conftest.err >&5
7391 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7392 (exit $ac_status); } && {
7393 test -z "$ac_c_werror_flag" ||
7394 test ! -s conftest.err
7395 } && test -s conftest.$ac_objext; then
7396 emacs_cv_struct_timeval=yes
7397 else
7398 echo "$as_me: failed program was:" >&5
7399 sed 's/^/| /' conftest.$ac_ext >&5
7400
7401 emacs_cv_struct_timeval=no
7402 fi
7403
7404 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7405 fi
7406 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7407 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7408 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7409 if test $emacs_cv_struct_timeval = yes; then
7410
7411 cat >>confdefs.h <<\_ACEOF
7412 #define HAVE_TIMEVAL 1
7413 _ACEOF
7414
7415 fi
7416
7417 { echo "$as_me:$LINENO: checking for struct exception" >&5
7418 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7419 if test "${emacs_cv_struct_exception+set}" = set; then
7420 echo $ECHO_N "(cached) $ECHO_C" >&6
7421 else
7422 cat >conftest.$ac_ext <<_ACEOF
7423 /* confdefs.h. */
7424 _ACEOF
7425 cat confdefs.h >>conftest.$ac_ext
7426 cat >>conftest.$ac_ext <<_ACEOF
7427 /* end confdefs.h. */
7428 #include <math.h>
7429 int
7430 main ()
7431 {
7432 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7433 ;
7434 return 0;
7435 }
7436 _ACEOF
7437 rm -f conftest.$ac_objext
7438 if { (ac_try="$ac_compile"
7439 case "(($ac_try" in
7440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7441 *) ac_try_echo=$ac_try;;
7442 esac
7443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7444 (eval "$ac_compile") 2>conftest.er1
7445 ac_status=$?
7446 grep -v '^ *+' conftest.er1 >conftest.err
7447 rm -f conftest.er1
7448 cat conftest.err >&5
7449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7450 (exit $ac_status); } && {
7451 test -z "$ac_c_werror_flag" ||
7452 test ! -s conftest.err
7453 } && test -s conftest.$ac_objext; then
7454 emacs_cv_struct_exception=yes
7455 else
7456 echo "$as_me: failed program was:" >&5
7457 sed 's/^/| /' conftest.$ac_ext >&5
7458
7459 emacs_cv_struct_exception=no
7460 fi
7461
7462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7463 fi
7464 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7465 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7466 HAVE_EXCEPTION=$emacs_cv_struct_exception
7467 if test $emacs_cv_struct_exception != yes; then
7468
7469 cat >>confdefs.h <<\_ACEOF
7470 #define NO_MATHERR 1
7471 _ACEOF
7472
7473 fi
7474
7475
7476 for ac_header in sys/socket.h
7477 do
7478 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7479 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7480 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7481 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7482 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7483 echo $ECHO_N "(cached) $ECHO_C" >&6
7484 fi
7485 ac_res=`eval echo '${'$as_ac_Header'}'`
7486 { echo "$as_me:$LINENO: result: $ac_res" >&5
7487 echo "${ECHO_T}$ac_res" >&6; }
7488 else
7489 # Is the header compilable?
7490 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7491 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7492 cat >conftest.$ac_ext <<_ACEOF
7493 /* confdefs.h. */
7494 _ACEOF
7495 cat confdefs.h >>conftest.$ac_ext
7496 cat >>conftest.$ac_ext <<_ACEOF
7497 /* end confdefs.h. */
7498 $ac_includes_default
7499 #include <$ac_header>
7500 _ACEOF
7501 rm -f conftest.$ac_objext
7502 if { (ac_try="$ac_compile"
7503 case "(($ac_try" in
7504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7505 *) ac_try_echo=$ac_try;;
7506 esac
7507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7508 (eval "$ac_compile") 2>conftest.er1
7509 ac_status=$?
7510 grep -v '^ *+' conftest.er1 >conftest.err
7511 rm -f conftest.er1
7512 cat conftest.err >&5
7513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7514 (exit $ac_status); } && {
7515 test -z "$ac_c_werror_flag" ||
7516 test ! -s conftest.err
7517 } && test -s conftest.$ac_objext; then
7518 ac_header_compiler=yes
7519 else
7520 echo "$as_me: failed program was:" >&5
7521 sed 's/^/| /' conftest.$ac_ext >&5
7522
7523 ac_header_compiler=no
7524 fi
7525
7526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7527 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7528 echo "${ECHO_T}$ac_header_compiler" >&6; }
7529
7530 # Is the header present?
7531 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7532 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7533 cat >conftest.$ac_ext <<_ACEOF
7534 /* confdefs.h. */
7535 _ACEOF
7536 cat confdefs.h >>conftest.$ac_ext
7537 cat >>conftest.$ac_ext <<_ACEOF
7538 /* end confdefs.h. */
7539 #include <$ac_header>
7540 _ACEOF
7541 if { (ac_try="$ac_cpp conftest.$ac_ext"
7542 case "(($ac_try" in
7543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7544 *) ac_try_echo=$ac_try;;
7545 esac
7546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7547 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7548 ac_status=$?
7549 grep -v '^ *+' conftest.er1 >conftest.err
7550 rm -f conftest.er1
7551 cat conftest.err >&5
7552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7553 (exit $ac_status); } >/dev/null && {
7554 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7555 test ! -s conftest.err
7556 }; then
7557 ac_header_preproc=yes
7558 else
7559 echo "$as_me: failed program was:" >&5
7560 sed 's/^/| /' conftest.$ac_ext >&5
7561
7562 ac_header_preproc=no
7563 fi
7564
7565 rm -f conftest.err conftest.$ac_ext
7566 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7567 echo "${ECHO_T}$ac_header_preproc" >&6; }
7568
7569 # So? What about this header?
7570 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7571 yes:no: )
7572 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7573 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7574 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7575 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7576 ac_header_preproc=yes
7577 ;;
7578 no:yes:* )
7579 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7580 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7581 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7582 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7583 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7584 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7585 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7586 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7587 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7588 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7589 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7590 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7591
7592 ;;
7593 esac
7594 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7595 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7596 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7597 echo $ECHO_N "(cached) $ECHO_C" >&6
7598 else
7599 eval "$as_ac_Header=\$ac_header_preproc"
7600 fi
7601 ac_res=`eval echo '${'$as_ac_Header'}'`
7602 { echo "$as_me:$LINENO: result: $ac_res" >&5
7603 echo "${ECHO_T}$ac_res" >&6; }
7604
7605 fi
7606 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7607 cat >>confdefs.h <<_ACEOF
7608 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7609 _ACEOF
7610
7611 fi
7612
7613 done
7614
7615
7616 for ac_header in net/if.h
7617 do
7618 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7619 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7620 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7621 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7622 echo $ECHO_N "(cached) $ECHO_C" >&6
7623 else
7624 cat >conftest.$ac_ext <<_ACEOF
7625 /* confdefs.h. */
7626 _ACEOF
7627 cat confdefs.h >>conftest.$ac_ext
7628 cat >>conftest.$ac_ext <<_ACEOF
7629 /* end confdefs.h. */
7630 $ac_includes_default
7631 #if HAVE_SYS_SOCKET_H
7632 #include <sys/socket.h>
7633 #endif
7634
7635 #include <$ac_header>
7636 _ACEOF
7637 rm -f conftest.$ac_objext
7638 if { (ac_try="$ac_compile"
7639 case "(($ac_try" in
7640 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7641 *) ac_try_echo=$ac_try;;
7642 esac
7643 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7644 (eval "$ac_compile") 2>conftest.er1
7645 ac_status=$?
7646 grep -v '^ *+' conftest.er1 >conftest.err
7647 rm -f conftest.er1
7648 cat conftest.err >&5
7649 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7650 (exit $ac_status); } && {
7651 test -z "$ac_c_werror_flag" ||
7652 test ! -s conftest.err
7653 } && test -s conftest.$ac_objext; then
7654 eval "$as_ac_Header=yes"
7655 else
7656 echo "$as_me: failed program was:" >&5
7657 sed 's/^/| /' conftest.$ac_ext >&5
7658
7659 eval "$as_ac_Header=no"
7660 fi
7661
7662 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7663 fi
7664 ac_res=`eval echo '${'$as_ac_Header'}'`
7665 { echo "$as_me:$LINENO: result: $ac_res" >&5
7666 echo "${ECHO_T}$ac_res" >&6; }
7667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7668 cat >>confdefs.h <<_ACEOF
7669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7670 _ACEOF
7671
7672 fi
7673
7674 done
7675
7676
7677 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7678 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7679 if test "${ac_cv_struct_tm+set}" = set; then
7680 echo $ECHO_N "(cached) $ECHO_C" >&6
7681 else
7682 cat >conftest.$ac_ext <<_ACEOF
7683 /* confdefs.h. */
7684 _ACEOF
7685 cat confdefs.h >>conftest.$ac_ext
7686 cat >>conftest.$ac_ext <<_ACEOF
7687 /* end confdefs.h. */
7688 #include <sys/types.h>
7689 #include <time.h>
7690
7691 int
7692 main ()
7693 {
7694 struct tm tm;
7695 int *p = &tm.tm_sec;
7696 return !p;
7697 ;
7698 return 0;
7699 }
7700 _ACEOF
7701 rm -f conftest.$ac_objext
7702 if { (ac_try="$ac_compile"
7703 case "(($ac_try" in
7704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7705 *) ac_try_echo=$ac_try;;
7706 esac
7707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7708 (eval "$ac_compile") 2>conftest.er1
7709 ac_status=$?
7710 grep -v '^ *+' conftest.er1 >conftest.err
7711 rm -f conftest.er1
7712 cat conftest.err >&5
7713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7714 (exit $ac_status); } && {
7715 test -z "$ac_c_werror_flag" ||
7716 test ! -s conftest.err
7717 } && test -s conftest.$ac_objext; then
7718 ac_cv_struct_tm=time.h
7719 else
7720 echo "$as_me: failed program was:" >&5
7721 sed 's/^/| /' conftest.$ac_ext >&5
7722
7723 ac_cv_struct_tm=sys/time.h
7724 fi
7725
7726 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7727 fi
7728 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7729 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7730 if test $ac_cv_struct_tm = sys/time.h; then
7731
7732 cat >>confdefs.h <<\_ACEOF
7733 #define TM_IN_SYS_TIME 1
7734 _ACEOF
7735
7736 fi
7737
7738 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7739 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7740 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7741 echo $ECHO_N "(cached) $ECHO_C" >&6
7742 else
7743 cat >conftest.$ac_ext <<_ACEOF
7744 /* confdefs.h. */
7745 _ACEOF
7746 cat confdefs.h >>conftest.$ac_ext
7747 cat >>conftest.$ac_ext <<_ACEOF
7748 /* end confdefs.h. */
7749 #include <sys/types.h>
7750 #include <$ac_cv_struct_tm>
7751
7752
7753 int
7754 main ()
7755 {
7756 static struct tm ac_aggr;
7757 if (ac_aggr.tm_zone)
7758 return 0;
7759 ;
7760 return 0;
7761 }
7762 _ACEOF
7763 rm -f conftest.$ac_objext
7764 if { (ac_try="$ac_compile"
7765 case "(($ac_try" in
7766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7767 *) ac_try_echo=$ac_try;;
7768 esac
7769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7770 (eval "$ac_compile") 2>conftest.er1
7771 ac_status=$?
7772 grep -v '^ *+' conftest.er1 >conftest.err
7773 rm -f conftest.er1
7774 cat conftest.err >&5
7775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7776 (exit $ac_status); } && {
7777 test -z "$ac_c_werror_flag" ||
7778 test ! -s conftest.err
7779 } && test -s conftest.$ac_objext; then
7780 ac_cv_member_struct_tm_tm_zone=yes
7781 else
7782 echo "$as_me: failed program was:" >&5
7783 sed 's/^/| /' conftest.$ac_ext >&5
7784
7785 cat >conftest.$ac_ext <<_ACEOF
7786 /* confdefs.h. */
7787 _ACEOF
7788 cat confdefs.h >>conftest.$ac_ext
7789 cat >>conftest.$ac_ext <<_ACEOF
7790 /* end confdefs.h. */
7791 #include <sys/types.h>
7792 #include <$ac_cv_struct_tm>
7793
7794
7795 int
7796 main ()
7797 {
7798 static struct tm ac_aggr;
7799 if (sizeof ac_aggr.tm_zone)
7800 return 0;
7801 ;
7802 return 0;
7803 }
7804 _ACEOF
7805 rm -f conftest.$ac_objext
7806 if { (ac_try="$ac_compile"
7807 case "(($ac_try" in
7808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7809 *) ac_try_echo=$ac_try;;
7810 esac
7811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7812 (eval "$ac_compile") 2>conftest.er1
7813 ac_status=$?
7814 grep -v '^ *+' conftest.er1 >conftest.err
7815 rm -f conftest.er1
7816 cat conftest.err >&5
7817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7818 (exit $ac_status); } && {
7819 test -z "$ac_c_werror_flag" ||
7820 test ! -s conftest.err
7821 } && test -s conftest.$ac_objext; then
7822 ac_cv_member_struct_tm_tm_zone=yes
7823 else
7824 echo "$as_me: failed program was:" >&5
7825 sed 's/^/| /' conftest.$ac_ext >&5
7826
7827 ac_cv_member_struct_tm_tm_zone=no
7828 fi
7829
7830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7831 fi
7832
7833 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7834 fi
7835 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7836 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7837 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7838
7839 cat >>confdefs.h <<_ACEOF
7840 #define HAVE_STRUCT_TM_TM_ZONE 1
7841 _ACEOF
7842
7843
7844 fi
7845
7846 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7847
7848 cat >>confdefs.h <<\_ACEOF
7849 #define HAVE_TM_ZONE 1
7850 _ACEOF
7851
7852 else
7853 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7854 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7855 if test "${ac_cv_have_decl_tzname+set}" = set; then
7856 echo $ECHO_N "(cached) $ECHO_C" >&6
7857 else
7858 cat >conftest.$ac_ext <<_ACEOF
7859 /* confdefs.h. */
7860 _ACEOF
7861 cat confdefs.h >>conftest.$ac_ext
7862 cat >>conftest.$ac_ext <<_ACEOF
7863 /* end confdefs.h. */
7864 #include <time.h>
7865
7866 int
7867 main ()
7868 {
7869 #ifndef tzname
7870 (void) tzname;
7871 #endif
7872
7873 ;
7874 return 0;
7875 }
7876 _ACEOF
7877 rm -f conftest.$ac_objext
7878 if { (ac_try="$ac_compile"
7879 case "(($ac_try" in
7880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7881 *) ac_try_echo=$ac_try;;
7882 esac
7883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7884 (eval "$ac_compile") 2>conftest.er1
7885 ac_status=$?
7886 grep -v '^ *+' conftest.er1 >conftest.err
7887 rm -f conftest.er1
7888 cat conftest.err >&5
7889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7890 (exit $ac_status); } && {
7891 test -z "$ac_c_werror_flag" ||
7892 test ! -s conftest.err
7893 } && test -s conftest.$ac_objext; then
7894 ac_cv_have_decl_tzname=yes
7895 else
7896 echo "$as_me: failed program was:" >&5
7897 sed 's/^/| /' conftest.$ac_ext >&5
7898
7899 ac_cv_have_decl_tzname=no
7900 fi
7901
7902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7903 fi
7904 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7905 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7906 if test $ac_cv_have_decl_tzname = yes; then
7907
7908 cat >>confdefs.h <<_ACEOF
7909 #define HAVE_DECL_TZNAME 1
7910 _ACEOF
7911
7912
7913 else
7914 cat >>confdefs.h <<_ACEOF
7915 #define HAVE_DECL_TZNAME 0
7916 _ACEOF
7917
7918
7919 fi
7920
7921
7922 { echo "$as_me:$LINENO: checking for tzname" >&5
7923 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7924 if test "${ac_cv_var_tzname+set}" = set; then
7925 echo $ECHO_N "(cached) $ECHO_C" >&6
7926 else
7927 cat >conftest.$ac_ext <<_ACEOF
7928 /* confdefs.h. */
7929 _ACEOF
7930 cat confdefs.h >>conftest.$ac_ext
7931 cat >>conftest.$ac_ext <<_ACEOF
7932 /* end confdefs.h. */
7933 #include <time.h>
7934 #if !HAVE_DECL_TZNAME
7935 extern char *tzname[];
7936 #endif
7937
7938 int
7939 main ()
7940 {
7941 return tzname[0][0];
7942 ;
7943 return 0;
7944 }
7945 _ACEOF
7946 rm -f conftest.$ac_objext conftest$ac_exeext
7947 if { (ac_try="$ac_link"
7948 case "(($ac_try" in
7949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7950 *) ac_try_echo=$ac_try;;
7951 esac
7952 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7953 (eval "$ac_link") 2>conftest.er1
7954 ac_status=$?
7955 grep -v '^ *+' conftest.er1 >conftest.err
7956 rm -f conftest.er1
7957 cat conftest.err >&5
7958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7959 (exit $ac_status); } && {
7960 test -z "$ac_c_werror_flag" ||
7961 test ! -s conftest.err
7962 } && test -s conftest$ac_exeext &&
7963 $as_test_x conftest$ac_exeext; then
7964 ac_cv_var_tzname=yes
7965 else
7966 echo "$as_me: failed program was:" >&5
7967 sed 's/^/| /' conftest.$ac_ext >&5
7968
7969 ac_cv_var_tzname=no
7970 fi
7971
7972 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
7973 conftest$ac_exeext conftest.$ac_ext
7974 fi
7975 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
7976 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
7977 if test $ac_cv_var_tzname = yes; then
7978
7979 cat >>confdefs.h <<\_ACEOF
7980 #define HAVE_TZNAME 1
7981 _ACEOF
7982
7983 fi
7984 fi
7985
7986 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
7987 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
7988 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
7989 echo $ECHO_N "(cached) $ECHO_C" >&6
7990 else
7991 cat >conftest.$ac_ext <<_ACEOF
7992 /* confdefs.h. */
7993 _ACEOF
7994 cat confdefs.h >>conftest.$ac_ext
7995 cat >>conftest.$ac_ext <<_ACEOF
7996 /* end confdefs.h. */
7997 #include <time.h>
7998
7999 int
8000 main ()
8001 {
8002 static struct tm ac_aggr;
8003 if (ac_aggr.tm_gmtoff)
8004 return 0;
8005 ;
8006 return 0;
8007 }
8008 _ACEOF
8009 rm -f conftest.$ac_objext
8010 if { (ac_try="$ac_compile"
8011 case "(($ac_try" in
8012 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8013 *) ac_try_echo=$ac_try;;
8014 esac
8015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8016 (eval "$ac_compile") 2>conftest.er1
8017 ac_status=$?
8018 grep -v '^ *+' conftest.er1 >conftest.err
8019 rm -f conftest.er1
8020 cat conftest.err >&5
8021 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8022 (exit $ac_status); } && {
8023 test -z "$ac_c_werror_flag" ||
8024 test ! -s conftest.err
8025 } && test -s conftest.$ac_objext; then
8026 ac_cv_member_struct_tm_tm_gmtoff=yes
8027 else
8028 echo "$as_me: failed program was:" >&5
8029 sed 's/^/| /' conftest.$ac_ext >&5
8030
8031 cat >conftest.$ac_ext <<_ACEOF
8032 /* confdefs.h. */
8033 _ACEOF
8034 cat confdefs.h >>conftest.$ac_ext
8035 cat >>conftest.$ac_ext <<_ACEOF
8036 /* end confdefs.h. */
8037 #include <time.h>
8038
8039 int
8040 main ()
8041 {
8042 static struct tm ac_aggr;
8043 if (sizeof ac_aggr.tm_gmtoff)
8044 return 0;
8045 ;
8046 return 0;
8047 }
8048 _ACEOF
8049 rm -f conftest.$ac_objext
8050 if { (ac_try="$ac_compile"
8051 case "(($ac_try" in
8052 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8053 *) ac_try_echo=$ac_try;;
8054 esac
8055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8056 (eval "$ac_compile") 2>conftest.er1
8057 ac_status=$?
8058 grep -v '^ *+' conftest.er1 >conftest.err
8059 rm -f conftest.er1
8060 cat conftest.err >&5
8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8062 (exit $ac_status); } && {
8063 test -z "$ac_c_werror_flag" ||
8064 test ! -s conftest.err
8065 } && test -s conftest.$ac_objext; then
8066 ac_cv_member_struct_tm_tm_gmtoff=yes
8067 else
8068 echo "$as_me: failed program was:" >&5
8069 sed 's/^/| /' conftest.$ac_ext >&5
8070
8071 ac_cv_member_struct_tm_tm_gmtoff=no
8072 fi
8073
8074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8075 fi
8076
8077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8078 fi
8079 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8080 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8081 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8082
8083 cat >>confdefs.h <<\_ACEOF
8084 #define HAVE_TM_GMTOFF 1
8085 _ACEOF
8086
8087 fi
8088
8089 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8090 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8091 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8092 echo $ECHO_N "(cached) $ECHO_C" >&6
8093 else
8094 cat >conftest.$ac_ext <<_ACEOF
8095 /* confdefs.h. */
8096 _ACEOF
8097 cat confdefs.h >>conftest.$ac_ext
8098 cat >>conftest.$ac_ext <<_ACEOF
8099 /* end confdefs.h. */
8100 $ac_includes_default
8101 #if HAVE_SYS_SOCKET_H
8102 #include <sys/socket.h>
8103 #endif
8104 #if HAVE_NET_IF_H
8105 #include <net/if.h>
8106 #endif
8107
8108 int
8109 main ()
8110 {
8111 static struct ifreq ac_aggr;
8112 if (ac_aggr.ifr_flags)
8113 return 0;
8114 ;
8115 return 0;
8116 }
8117 _ACEOF
8118 rm -f conftest.$ac_objext
8119 if { (ac_try="$ac_compile"
8120 case "(($ac_try" in
8121 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8122 *) ac_try_echo=$ac_try;;
8123 esac
8124 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8125 (eval "$ac_compile") 2>conftest.er1
8126 ac_status=$?
8127 grep -v '^ *+' conftest.er1 >conftest.err
8128 rm -f conftest.er1
8129 cat conftest.err >&5
8130 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8131 (exit $ac_status); } && {
8132 test -z "$ac_c_werror_flag" ||
8133 test ! -s conftest.err
8134 } && test -s conftest.$ac_objext; then
8135 ac_cv_member_struct_ifreq_ifr_flags=yes
8136 else
8137 echo "$as_me: failed program was:" >&5
8138 sed 's/^/| /' conftest.$ac_ext >&5
8139
8140 cat >conftest.$ac_ext <<_ACEOF
8141 /* confdefs.h. */
8142 _ACEOF
8143 cat confdefs.h >>conftest.$ac_ext
8144 cat >>conftest.$ac_ext <<_ACEOF
8145 /* end confdefs.h. */
8146 $ac_includes_default
8147 #if HAVE_SYS_SOCKET_H
8148 #include <sys/socket.h>
8149 #endif
8150 #if HAVE_NET_IF_H
8151 #include <net/if.h>
8152 #endif
8153
8154 int
8155 main ()
8156 {
8157 static struct ifreq ac_aggr;
8158 if (sizeof ac_aggr.ifr_flags)
8159 return 0;
8160 ;
8161 return 0;
8162 }
8163 _ACEOF
8164 rm -f conftest.$ac_objext
8165 if { (ac_try="$ac_compile"
8166 case "(($ac_try" in
8167 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8168 *) ac_try_echo=$ac_try;;
8169 esac
8170 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8171 (eval "$ac_compile") 2>conftest.er1
8172 ac_status=$?
8173 grep -v '^ *+' conftest.er1 >conftest.err
8174 rm -f conftest.er1
8175 cat conftest.err >&5
8176 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8177 (exit $ac_status); } && {
8178 test -z "$ac_c_werror_flag" ||
8179 test ! -s conftest.err
8180 } && test -s conftest.$ac_objext; then
8181 ac_cv_member_struct_ifreq_ifr_flags=yes
8182 else
8183 echo "$as_me: failed program was:" >&5
8184 sed 's/^/| /' conftest.$ac_ext >&5
8185
8186 ac_cv_member_struct_ifreq_ifr_flags=no
8187 fi
8188
8189 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8190 fi
8191
8192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8193 fi
8194 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8195 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8196 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8197
8198 cat >>confdefs.h <<_ACEOF
8199 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8200 _ACEOF
8201
8202
8203 fi
8204 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8205 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8206 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8207 echo $ECHO_N "(cached) $ECHO_C" >&6
8208 else
8209 cat >conftest.$ac_ext <<_ACEOF
8210 /* confdefs.h. */
8211 _ACEOF
8212 cat confdefs.h >>conftest.$ac_ext
8213 cat >>conftest.$ac_ext <<_ACEOF
8214 /* end confdefs.h. */
8215 $ac_includes_default
8216 #if HAVE_SYS_SOCKET_H
8217 #include <sys/socket.h>
8218 #endif
8219 #if HAVE_NET_IF_H
8220 #include <net/if.h>
8221 #endif
8222
8223 int
8224 main ()
8225 {
8226 static struct ifreq ac_aggr;
8227 if (ac_aggr.ifr_hwaddr)
8228 return 0;
8229 ;
8230 return 0;
8231 }
8232 _ACEOF
8233 rm -f conftest.$ac_objext
8234 if { (ac_try="$ac_compile"
8235 case "(($ac_try" in
8236 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8237 *) ac_try_echo=$ac_try;;
8238 esac
8239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8240 (eval "$ac_compile") 2>conftest.er1
8241 ac_status=$?
8242 grep -v '^ *+' conftest.er1 >conftest.err
8243 rm -f conftest.er1
8244 cat conftest.err >&5
8245 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8246 (exit $ac_status); } && {
8247 test -z "$ac_c_werror_flag" ||
8248 test ! -s conftest.err
8249 } && test -s conftest.$ac_objext; then
8250 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8251 else
8252 echo "$as_me: failed program was:" >&5
8253 sed 's/^/| /' conftest.$ac_ext >&5
8254
8255 cat >conftest.$ac_ext <<_ACEOF
8256 /* confdefs.h. */
8257 _ACEOF
8258 cat confdefs.h >>conftest.$ac_ext
8259 cat >>conftest.$ac_ext <<_ACEOF
8260 /* end confdefs.h. */
8261 $ac_includes_default
8262 #if HAVE_SYS_SOCKET_H
8263 #include <sys/socket.h>
8264 #endif
8265 #if HAVE_NET_IF_H
8266 #include <net/if.h>
8267 #endif
8268
8269 int
8270 main ()
8271 {
8272 static struct ifreq ac_aggr;
8273 if (sizeof ac_aggr.ifr_hwaddr)
8274 return 0;
8275 ;
8276 return 0;
8277 }
8278 _ACEOF
8279 rm -f conftest.$ac_objext
8280 if { (ac_try="$ac_compile"
8281 case "(($ac_try" in
8282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8283 *) ac_try_echo=$ac_try;;
8284 esac
8285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8286 (eval "$ac_compile") 2>conftest.er1
8287 ac_status=$?
8288 grep -v '^ *+' conftest.er1 >conftest.err
8289 rm -f conftest.er1
8290 cat conftest.err >&5
8291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8292 (exit $ac_status); } && {
8293 test -z "$ac_c_werror_flag" ||
8294 test ! -s conftest.err
8295 } && test -s conftest.$ac_objext; then
8296 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8297 else
8298 echo "$as_me: failed program was:" >&5
8299 sed 's/^/| /' conftest.$ac_ext >&5
8300
8301 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8302 fi
8303
8304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8305 fi
8306
8307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8308 fi
8309 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8310 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8311 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8312
8313 cat >>confdefs.h <<_ACEOF
8314 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8315 _ACEOF
8316
8317
8318 fi
8319 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8320 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8321 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8322 echo $ECHO_N "(cached) $ECHO_C" >&6
8323 else
8324 cat >conftest.$ac_ext <<_ACEOF
8325 /* confdefs.h. */
8326 _ACEOF
8327 cat confdefs.h >>conftest.$ac_ext
8328 cat >>conftest.$ac_ext <<_ACEOF
8329 /* end confdefs.h. */
8330 $ac_includes_default
8331 #if HAVE_SYS_SOCKET_H
8332 #include <sys/socket.h>
8333 #endif
8334 #if HAVE_NET_IF_H
8335 #include <net/if.h>
8336 #endif
8337
8338 int
8339 main ()
8340 {
8341 static struct ifreq ac_aggr;
8342 if (ac_aggr.ifr_netmask)
8343 return 0;
8344 ;
8345 return 0;
8346 }
8347 _ACEOF
8348 rm -f conftest.$ac_objext
8349 if { (ac_try="$ac_compile"
8350 case "(($ac_try" in
8351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8352 *) ac_try_echo=$ac_try;;
8353 esac
8354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8355 (eval "$ac_compile") 2>conftest.er1
8356 ac_status=$?
8357 grep -v '^ *+' conftest.er1 >conftest.err
8358 rm -f conftest.er1
8359 cat conftest.err >&5
8360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8361 (exit $ac_status); } && {
8362 test -z "$ac_c_werror_flag" ||
8363 test ! -s conftest.err
8364 } && test -s conftest.$ac_objext; then
8365 ac_cv_member_struct_ifreq_ifr_netmask=yes
8366 else
8367 echo "$as_me: failed program was:" >&5
8368 sed 's/^/| /' conftest.$ac_ext >&5
8369
8370 cat >conftest.$ac_ext <<_ACEOF
8371 /* confdefs.h. */
8372 _ACEOF
8373 cat confdefs.h >>conftest.$ac_ext
8374 cat >>conftest.$ac_ext <<_ACEOF
8375 /* end confdefs.h. */
8376 $ac_includes_default
8377 #if HAVE_SYS_SOCKET_H
8378 #include <sys/socket.h>
8379 #endif
8380 #if HAVE_NET_IF_H
8381 #include <net/if.h>
8382 #endif
8383
8384 int
8385 main ()
8386 {
8387 static struct ifreq ac_aggr;
8388 if (sizeof ac_aggr.ifr_netmask)
8389 return 0;
8390 ;
8391 return 0;
8392 }
8393 _ACEOF
8394 rm -f conftest.$ac_objext
8395 if { (ac_try="$ac_compile"
8396 case "(($ac_try" in
8397 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8398 *) ac_try_echo=$ac_try;;
8399 esac
8400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8401 (eval "$ac_compile") 2>conftest.er1
8402 ac_status=$?
8403 grep -v '^ *+' conftest.er1 >conftest.err
8404 rm -f conftest.er1
8405 cat conftest.err >&5
8406 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8407 (exit $ac_status); } && {
8408 test -z "$ac_c_werror_flag" ||
8409 test ! -s conftest.err
8410 } && test -s conftest.$ac_objext; then
8411 ac_cv_member_struct_ifreq_ifr_netmask=yes
8412 else
8413 echo "$as_me: failed program was:" >&5
8414 sed 's/^/| /' conftest.$ac_ext >&5
8415
8416 ac_cv_member_struct_ifreq_ifr_netmask=no
8417 fi
8418
8419 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8420 fi
8421
8422 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8423 fi
8424 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8425 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8426 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8427
8428 cat >>confdefs.h <<_ACEOF
8429 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8430 _ACEOF
8431
8432
8433 fi
8434 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8435 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8436 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8437 echo $ECHO_N "(cached) $ECHO_C" >&6
8438 else
8439 cat >conftest.$ac_ext <<_ACEOF
8440 /* confdefs.h. */
8441 _ACEOF
8442 cat confdefs.h >>conftest.$ac_ext
8443 cat >>conftest.$ac_ext <<_ACEOF
8444 /* end confdefs.h. */
8445 $ac_includes_default
8446 #if HAVE_SYS_SOCKET_H
8447 #include <sys/socket.h>
8448 #endif
8449 #if HAVE_NET_IF_H
8450 #include <net/if.h>
8451 #endif
8452
8453 int
8454 main ()
8455 {
8456 static struct ifreq ac_aggr;
8457 if (ac_aggr.ifr_broadaddr)
8458 return 0;
8459 ;
8460 return 0;
8461 }
8462 _ACEOF
8463 rm -f conftest.$ac_objext
8464 if { (ac_try="$ac_compile"
8465 case "(($ac_try" in
8466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8467 *) ac_try_echo=$ac_try;;
8468 esac
8469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8470 (eval "$ac_compile") 2>conftest.er1
8471 ac_status=$?
8472 grep -v '^ *+' conftest.er1 >conftest.err
8473 rm -f conftest.er1
8474 cat conftest.err >&5
8475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8476 (exit $ac_status); } && {
8477 test -z "$ac_c_werror_flag" ||
8478 test ! -s conftest.err
8479 } && test -s conftest.$ac_objext; then
8480 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8481 else
8482 echo "$as_me: failed program was:" >&5
8483 sed 's/^/| /' conftest.$ac_ext >&5
8484
8485 cat >conftest.$ac_ext <<_ACEOF
8486 /* confdefs.h. */
8487 _ACEOF
8488 cat confdefs.h >>conftest.$ac_ext
8489 cat >>conftest.$ac_ext <<_ACEOF
8490 /* end confdefs.h. */
8491 $ac_includes_default
8492 #if HAVE_SYS_SOCKET_H
8493 #include <sys/socket.h>
8494 #endif
8495 #if HAVE_NET_IF_H
8496 #include <net/if.h>
8497 #endif
8498
8499 int
8500 main ()
8501 {
8502 static struct ifreq ac_aggr;
8503 if (sizeof ac_aggr.ifr_broadaddr)
8504 return 0;
8505 ;
8506 return 0;
8507 }
8508 _ACEOF
8509 rm -f conftest.$ac_objext
8510 if { (ac_try="$ac_compile"
8511 case "(($ac_try" in
8512 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8513 *) ac_try_echo=$ac_try;;
8514 esac
8515 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8516 (eval "$ac_compile") 2>conftest.er1
8517 ac_status=$?
8518 grep -v '^ *+' conftest.er1 >conftest.err
8519 rm -f conftest.er1
8520 cat conftest.err >&5
8521 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8522 (exit $ac_status); } && {
8523 test -z "$ac_c_werror_flag" ||
8524 test ! -s conftest.err
8525 } && test -s conftest.$ac_objext; then
8526 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8527 else
8528 echo "$as_me: failed program was:" >&5
8529 sed 's/^/| /' conftest.$ac_ext >&5
8530
8531 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8532 fi
8533
8534 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8535 fi
8536
8537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8538 fi
8539 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8540 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8541 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8542
8543 cat >>confdefs.h <<_ACEOF
8544 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8545 _ACEOF
8546
8547
8548 fi
8549 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8550 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8551 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8552 echo $ECHO_N "(cached) $ECHO_C" >&6
8553 else
8554 cat >conftest.$ac_ext <<_ACEOF
8555 /* confdefs.h. */
8556 _ACEOF
8557 cat confdefs.h >>conftest.$ac_ext
8558 cat >>conftest.$ac_ext <<_ACEOF
8559 /* end confdefs.h. */
8560 $ac_includes_default
8561 #if HAVE_SYS_SOCKET_H
8562 #include <sys/socket.h>
8563 #endif
8564 #if HAVE_NET_IF_H
8565 #include <net/if.h>
8566 #endif
8567
8568 int
8569 main ()
8570 {
8571 static struct ifreq ac_aggr;
8572 if (ac_aggr.ifr_addr)
8573 return 0;
8574 ;
8575 return 0;
8576 }
8577 _ACEOF
8578 rm -f conftest.$ac_objext
8579 if { (ac_try="$ac_compile"
8580 case "(($ac_try" in
8581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8582 *) ac_try_echo=$ac_try;;
8583 esac
8584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8585 (eval "$ac_compile") 2>conftest.er1
8586 ac_status=$?
8587 grep -v '^ *+' conftest.er1 >conftest.err
8588 rm -f conftest.er1
8589 cat conftest.err >&5
8590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8591 (exit $ac_status); } && {
8592 test -z "$ac_c_werror_flag" ||
8593 test ! -s conftest.err
8594 } && test -s conftest.$ac_objext; then
8595 ac_cv_member_struct_ifreq_ifr_addr=yes
8596 else
8597 echo "$as_me: failed program was:" >&5
8598 sed 's/^/| /' conftest.$ac_ext >&5
8599
8600 cat >conftest.$ac_ext <<_ACEOF
8601 /* confdefs.h. */
8602 _ACEOF
8603 cat confdefs.h >>conftest.$ac_ext
8604 cat >>conftest.$ac_ext <<_ACEOF
8605 /* end confdefs.h. */
8606 $ac_includes_default
8607 #if HAVE_SYS_SOCKET_H
8608 #include <sys/socket.h>
8609 #endif
8610 #if HAVE_NET_IF_H
8611 #include <net/if.h>
8612 #endif
8613
8614 int
8615 main ()
8616 {
8617 static struct ifreq ac_aggr;
8618 if (sizeof ac_aggr.ifr_addr)
8619 return 0;
8620 ;
8621 return 0;
8622 }
8623 _ACEOF
8624 rm -f conftest.$ac_objext
8625 if { (ac_try="$ac_compile"
8626 case "(($ac_try" in
8627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8628 *) ac_try_echo=$ac_try;;
8629 esac
8630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8631 (eval "$ac_compile") 2>conftest.er1
8632 ac_status=$?
8633 grep -v '^ *+' conftest.er1 >conftest.err
8634 rm -f conftest.er1
8635 cat conftest.err >&5
8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8637 (exit $ac_status); } && {
8638 test -z "$ac_c_werror_flag" ||
8639 test ! -s conftest.err
8640 } && test -s conftest.$ac_objext; then
8641 ac_cv_member_struct_ifreq_ifr_addr=yes
8642 else
8643 echo "$as_me: failed program was:" >&5
8644 sed 's/^/| /' conftest.$ac_ext >&5
8645
8646 ac_cv_member_struct_ifreq_ifr_addr=no
8647 fi
8648
8649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8650 fi
8651
8652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8653 fi
8654 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8655 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8656 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8657
8658 cat >>confdefs.h <<_ACEOF
8659 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8660 _ACEOF
8661
8662
8663 fi
8664
8665
8666
8667 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8668 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8669 if test "$ac_cv_prog_cc_c89" != no; then
8670 { echo "$as_me:$LINENO: result: yes" >&5
8671 echo "${ECHO_T}yes" >&6; }
8672
8673 cat >>confdefs.h <<\_ACEOF
8674 #define PROTOTYPES 1
8675 _ACEOF
8676
8677
8678 cat >>confdefs.h <<\_ACEOF
8679 #define __PROTOTYPES 1
8680 _ACEOF
8681
8682 else
8683 { echo "$as_me:$LINENO: result: no" >&5
8684 echo "${ECHO_T}no" >&6; }
8685 fi
8686
8687 { echo "$as_me:$LINENO: checking for working volatile" >&5
8688 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8689 if test "${ac_cv_c_volatile+set}" = set; then
8690 echo $ECHO_N "(cached) $ECHO_C" >&6
8691 else
8692 cat >conftest.$ac_ext <<_ACEOF
8693 /* confdefs.h. */
8694 _ACEOF
8695 cat confdefs.h >>conftest.$ac_ext
8696 cat >>conftest.$ac_ext <<_ACEOF
8697 /* end confdefs.h. */
8698
8699 int
8700 main ()
8701 {
8702
8703 volatile int x;
8704 int * volatile y = (int *) 0;
8705 return !x && !y;
8706 ;
8707 return 0;
8708 }
8709 _ACEOF
8710 rm -f conftest.$ac_objext
8711 if { (ac_try="$ac_compile"
8712 case "(($ac_try" in
8713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8714 *) ac_try_echo=$ac_try;;
8715 esac
8716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8717 (eval "$ac_compile") 2>conftest.er1
8718 ac_status=$?
8719 grep -v '^ *+' conftest.er1 >conftest.err
8720 rm -f conftest.er1
8721 cat conftest.err >&5
8722 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8723 (exit $ac_status); } && {
8724 test -z "$ac_c_werror_flag" ||
8725 test ! -s conftest.err
8726 } && test -s conftest.$ac_objext; then
8727 ac_cv_c_volatile=yes
8728 else
8729 echo "$as_me: failed program was:" >&5
8730 sed 's/^/| /' conftest.$ac_ext >&5
8731
8732 ac_cv_c_volatile=no
8733 fi
8734
8735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8736 fi
8737 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8738 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8739 if test $ac_cv_c_volatile = no; then
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define volatile
8743 _ACEOF
8744
8745 fi
8746
8747 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8748 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8749 if test "${ac_cv_c_const+set}" = set; then
8750 echo $ECHO_N "(cached) $ECHO_C" >&6
8751 else
8752 cat >conftest.$ac_ext <<_ACEOF
8753 /* confdefs.h. */
8754 _ACEOF
8755 cat confdefs.h >>conftest.$ac_ext
8756 cat >>conftest.$ac_ext <<_ACEOF
8757 /* end confdefs.h. */
8758
8759 int
8760 main ()
8761 {
8762 /* FIXME: Include the comments suggested by Paul. */
8763 #ifndef __cplusplus
8764 /* Ultrix mips cc rejects this. */
8765 typedef int charset[2];
8766 const charset cs;
8767 /* SunOS 4.1.1 cc rejects this. */
8768 char const *const *pcpcc;
8769 char **ppc;
8770 /* NEC SVR4.0.2 mips cc rejects this. */
8771 struct point {int x, y;};
8772 static struct point const zero = {0,0};
8773 /* AIX XL C 1.02.0.0 rejects this.
8774 It does not let you subtract one const X* pointer from another in
8775 an arm of an if-expression whose if-part is not a constant
8776 expression */
8777 const char *g = "string";
8778 pcpcc = &g + (g ? g-g : 0);
8779 /* HPUX 7.0 cc rejects these. */
8780 ++pcpcc;
8781 ppc = (char**) pcpcc;
8782 pcpcc = (char const *const *) ppc;
8783 { /* SCO 3.2v4 cc rejects this. */
8784 char *t;
8785 char const *s = 0 ? (char *) 0 : (char const *) 0;
8786
8787 *t++ = 0;
8788 if (s) return 0;
8789 }
8790 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8791 int x[] = {25, 17};
8792 const int *foo = &x[0];
8793 ++foo;
8794 }
8795 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8796 typedef const int *iptr;
8797 iptr p = 0;
8798 ++p;
8799 }
8800 { /* AIX XL C 1.02.0.0 rejects this saying
8801 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8802 struct s { int j; const int *ap[3]; };
8803 struct s *b; b->j = 5;
8804 }
8805 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8806 const int foo = 10;
8807 if (!foo) return 0;
8808 }
8809 return !cs[0] && !zero.x;
8810 #endif
8811
8812 ;
8813 return 0;
8814 }
8815 _ACEOF
8816 rm -f conftest.$ac_objext
8817 if { (ac_try="$ac_compile"
8818 case "(($ac_try" in
8819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8820 *) ac_try_echo=$ac_try;;
8821 esac
8822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8823 (eval "$ac_compile") 2>conftest.er1
8824 ac_status=$?
8825 grep -v '^ *+' conftest.er1 >conftest.err
8826 rm -f conftest.er1
8827 cat conftest.err >&5
8828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8829 (exit $ac_status); } && {
8830 test -z "$ac_c_werror_flag" ||
8831 test ! -s conftest.err
8832 } && test -s conftest.$ac_objext; then
8833 ac_cv_c_const=yes
8834 else
8835 echo "$as_me: failed program was:" >&5
8836 sed 's/^/| /' conftest.$ac_ext >&5
8837
8838 ac_cv_c_const=no
8839 fi
8840
8841 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8842 fi
8843 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8844 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8845 if test $ac_cv_c_const = no; then
8846
8847 cat >>confdefs.h <<\_ACEOF
8848 #define const
8849 _ACEOF
8850
8851 fi
8852
8853 { echo "$as_me:$LINENO: checking for void * support" >&5
8854 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8855 if test "${emacs_cv_void_star+set}" = set; then
8856 echo $ECHO_N "(cached) $ECHO_C" >&6
8857 else
8858 cat >conftest.$ac_ext <<_ACEOF
8859 /* confdefs.h. */
8860 _ACEOF
8861 cat confdefs.h >>conftest.$ac_ext
8862 cat >>conftest.$ac_ext <<_ACEOF
8863 /* end confdefs.h. */
8864
8865 int
8866 main ()
8867 {
8868 void * foo;
8869 ;
8870 return 0;
8871 }
8872 _ACEOF
8873 rm -f conftest.$ac_objext
8874 if { (ac_try="$ac_compile"
8875 case "(($ac_try" in
8876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8877 *) ac_try_echo=$ac_try;;
8878 esac
8879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8880 (eval "$ac_compile") 2>conftest.er1
8881 ac_status=$?
8882 grep -v '^ *+' conftest.er1 >conftest.err
8883 rm -f conftest.er1
8884 cat conftest.err >&5
8885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8886 (exit $ac_status); } && {
8887 test -z "$ac_c_werror_flag" ||
8888 test ! -s conftest.err
8889 } && test -s conftest.$ac_objext; then
8890 emacs_cv_void_star=yes
8891 else
8892 echo "$as_me: failed program was:" >&5
8893 sed 's/^/| /' conftest.$ac_ext >&5
8894
8895 emacs_cv_void_star=no
8896 fi
8897
8898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8899 fi
8900 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8901 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8902 if test $emacs_cv_void_star = yes; then
8903 cat >>confdefs.h <<\_ACEOF
8904 #define POINTER_TYPE void
8905 _ACEOF
8906
8907 else
8908 cat >>confdefs.h <<\_ACEOF
8909 #define POINTER_TYPE char
8910 _ACEOF
8911
8912 fi
8913
8914
8915
8916
8917
8918 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8919 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8920 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8921 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8922 echo $ECHO_N "(cached) $ECHO_C" >&6
8923 else
8924 cat >conftest.make <<\_ACEOF
8925 SHELL = /bin/sh
8926 all:
8927 @echo '@@@%%%=$(MAKE)=@@@%%%'
8928 _ACEOF
8929 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8930 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8931 *@@@%%%=?*=@@@%%%*)
8932 eval ac_cv_prog_make_${ac_make}_set=yes;;
8933 *)
8934 eval ac_cv_prog_make_${ac_make}_set=no;;
8935 esac
8936 rm -f conftest.make
8937 fi
8938 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8939 { echo "$as_me:$LINENO: result: yes" >&5
8940 echo "${ECHO_T}yes" >&6; }
8941 SET_MAKE=
8942 else
8943 { echo "$as_me:$LINENO: result: no" >&5
8944 echo "${ECHO_T}no" >&6; }
8945 SET_MAKE="MAKE=${MAKE-make}"
8946 fi
8947
8948
8949 { echo "$as_me:$LINENO: checking for long file names" >&5
8950 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
8951 if test "${ac_cv_sys_long_file_names+set}" = set; then
8952 echo $ECHO_N "(cached) $ECHO_C" >&6
8953 else
8954 ac_cv_sys_long_file_names=yes
8955 # Test for long file names in all the places we know might matter:
8956 # . the current directory, where building will happen
8957 # $prefix/lib where we will be installing things
8958 # $exec_prefix/lib likewise
8959 # $TMPDIR if set, where it might want to write temporary files
8960 # /tmp where it might want to write temporary files
8961 # /var/tmp likewise
8962 # /usr/tmp likewise
8963 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
8964 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
8965 # in the usual case where exec_prefix is '${prefix}'.
8966 case $ac_dir in #(
8967 . | /* | ?:[\\/]*) ;; #(
8968 *) continue;;
8969 esac
8970 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
8971 ac_xdir=$ac_dir/cf$$
8972 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
8973 ac_tf1=$ac_xdir/conftest9012345
8974 ac_tf2=$ac_xdir/conftest9012346
8975 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
8976 ac_cv_sys_long_file_names=no
8977 rm -f -r "$ac_xdir" 2>/dev/null
8978 test $ac_cv_sys_long_file_names = no && break
8979 done
8980 fi
8981 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
8982 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
8983 if test $ac_cv_sys_long_file_names = yes; then
8984
8985 cat >>confdefs.h <<\_ACEOF
8986 #define HAVE_LONG_FILE_NAMES 1
8987 _ACEOF
8988
8989 fi
8990
8991
8992 #### Choose a window system.
8993
8994 { echo "$as_me:$LINENO: checking for X" >&5
8995 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
8996
8997
8998 # Check whether --with-x was given.
8999 if test "${with_x+set}" = set; then
9000 withval=$with_x;
9001 fi
9002
9003 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9004 if test "x$with_x" = xno; then
9005 # The user explicitly disabled X.
9006 have_x=disabled
9007 else
9008 case $x_includes,$x_libraries in #(
9009 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9010 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9011 { (exit 1); exit 1; }; };; #(
9012 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9013 echo $ECHO_N "(cached) $ECHO_C" >&6
9014 else
9015 # One or both of the vars are not set, and there is no cached value.
9016 ac_x_includes=no ac_x_libraries=no
9017 rm -f -r conftest.dir
9018 if mkdir conftest.dir; then
9019 cd conftest.dir
9020 cat >Imakefile <<'_ACEOF'
9021 incroot:
9022 @echo incroot='${INCROOT}'
9023 usrlibdir:
9024 @echo usrlibdir='${USRLIBDIR}'
9025 libdir:
9026 @echo libdir='${LIBDIR}'
9027 _ACEOF
9028 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9029 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9030 for ac_var in incroot usrlibdir libdir; do
9031 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9032 done
9033 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9034 for ac_extension in a so sl; do
9035 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9036 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9037 ac_im_usrlibdir=$ac_im_libdir; break
9038 fi
9039 done
9040 # Screen out bogus values from the imake configuration. They are
9041 # bogus both because they are the default anyway, and because
9042 # using them would break gcc on systems where it needs fixed includes.
9043 case $ac_im_incroot in
9044 /usr/include) ac_x_includes= ;;
9045 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9046 esac
9047 case $ac_im_usrlibdir in
9048 /usr/lib | /lib) ;;
9049 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9050 esac
9051 fi
9052 cd ..
9053 rm -f -r conftest.dir
9054 fi
9055
9056 # Standard set of common directories for X headers.
9057 # Check X11 before X11Rn because it is often a symlink to the current release.
9058 ac_x_header_dirs='
9059 /usr/X11/include
9060 /usr/X11R6/include
9061 /usr/X11R5/include
9062 /usr/X11R4/include
9063
9064 /usr/include/X11
9065 /usr/include/X11R6
9066 /usr/include/X11R5
9067 /usr/include/X11R4
9068
9069 /usr/local/X11/include
9070 /usr/local/X11R6/include
9071 /usr/local/X11R5/include
9072 /usr/local/X11R4/include
9073
9074 /usr/local/include/X11
9075 /usr/local/include/X11R6
9076 /usr/local/include/X11R5
9077 /usr/local/include/X11R4
9078
9079 /usr/X386/include
9080 /usr/x386/include
9081 /usr/XFree86/include/X11
9082
9083 /usr/include
9084 /usr/local/include
9085 /usr/unsupported/include
9086 /usr/athena/include
9087 /usr/local/x11r5/include
9088 /usr/lpp/Xamples/include
9089
9090 /usr/openwin/include
9091 /usr/openwin/share/include'
9092
9093 if test "$ac_x_includes" = no; then
9094 # Guess where to find include files, by looking for Xlib.h.
9095 # First, try using that file with no special directory specified.
9096 cat >conftest.$ac_ext <<_ACEOF
9097 /* confdefs.h. */
9098 _ACEOF
9099 cat confdefs.h >>conftest.$ac_ext
9100 cat >>conftest.$ac_ext <<_ACEOF
9101 /* end confdefs.h. */
9102 #include <X11/Xlib.h>
9103 _ACEOF
9104 if { (ac_try="$ac_cpp conftest.$ac_ext"
9105 case "(($ac_try" in
9106 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9107 *) ac_try_echo=$ac_try;;
9108 esac
9109 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9110 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9111 ac_status=$?
9112 grep -v '^ *+' conftest.er1 >conftest.err
9113 rm -f conftest.er1
9114 cat conftest.err >&5
9115 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9116 (exit $ac_status); } >/dev/null && {
9117 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9118 test ! -s conftest.err
9119 }; then
9120 # We can compile using X headers with no special include directory.
9121 ac_x_includes=
9122 else
9123 echo "$as_me: failed program was:" >&5
9124 sed 's/^/| /' conftest.$ac_ext >&5
9125
9126 for ac_dir in $ac_x_header_dirs; do
9127 if test -r "$ac_dir/X11/Xlib.h"; then
9128 ac_x_includes=$ac_dir
9129 break
9130 fi
9131 done
9132 fi
9133
9134 rm -f conftest.err conftest.$ac_ext
9135 fi # $ac_x_includes = no
9136
9137 if test "$ac_x_libraries" = no; then
9138 # Check for the libraries.
9139 # See if we find them without any special options.
9140 # Don't add to $LIBS permanently.
9141 ac_save_LIBS=$LIBS
9142 LIBS="-lX11 $LIBS"
9143 cat >conftest.$ac_ext <<_ACEOF
9144 /* confdefs.h. */
9145 _ACEOF
9146 cat confdefs.h >>conftest.$ac_ext
9147 cat >>conftest.$ac_ext <<_ACEOF
9148 /* end confdefs.h. */
9149 #include <X11/Xlib.h>
9150 int
9151 main ()
9152 {
9153 XrmInitialize ()
9154 ;
9155 return 0;
9156 }
9157 _ACEOF
9158 rm -f conftest.$ac_objext conftest$ac_exeext
9159 if { (ac_try="$ac_link"
9160 case "(($ac_try" in
9161 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9162 *) ac_try_echo=$ac_try;;
9163 esac
9164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9165 (eval "$ac_link") 2>conftest.er1
9166 ac_status=$?
9167 grep -v '^ *+' conftest.er1 >conftest.err
9168 rm -f conftest.er1
9169 cat conftest.err >&5
9170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9171 (exit $ac_status); } && {
9172 test -z "$ac_c_werror_flag" ||
9173 test ! -s conftest.err
9174 } && test -s conftest$ac_exeext &&
9175 $as_test_x conftest$ac_exeext; then
9176 LIBS=$ac_save_LIBS
9177 # We can link X programs with no special library path.
9178 ac_x_libraries=
9179 else
9180 echo "$as_me: failed program was:" >&5
9181 sed 's/^/| /' conftest.$ac_ext >&5
9182
9183 LIBS=$ac_save_LIBS
9184 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9185 do
9186 # Don't even attempt the hair of trying to link an X program!
9187 for ac_extension in a so sl; do
9188 if test -r "$ac_dir/libX11.$ac_extension"; then
9189 ac_x_libraries=$ac_dir
9190 break 2
9191 fi
9192 done
9193 done
9194 fi
9195
9196 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9197 conftest$ac_exeext conftest.$ac_ext
9198 fi # $ac_x_libraries = no
9199
9200 case $ac_x_includes,$ac_x_libraries in #(
9201 no,* | *,no | *\'*)
9202 # Didn't find X, or a directory has "'" in its name.
9203 ac_cv_have_x="have_x=no";; #(
9204 *)
9205 # Record where we found X for the cache.
9206 ac_cv_have_x="have_x=yes\
9207 ac_x_includes='$ac_x_includes'\
9208 ac_x_libraries='$ac_x_libraries'"
9209 esac
9210 fi
9211 ;; #(
9212 *) have_x=yes;;
9213 esac
9214 eval "$ac_cv_have_x"
9215 fi # $with_x != no
9216
9217 if test "$have_x" != yes; then
9218 { echo "$as_me:$LINENO: result: $have_x" >&5
9219 echo "${ECHO_T}$have_x" >&6; }
9220 no_x=yes
9221 else
9222 # If each of the values was on the command line, it overrides each guess.
9223 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9224 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9225 # Update the cache value to reflect the command line values.
9226 ac_cv_have_x="have_x=yes\
9227 ac_x_includes='$x_includes'\
9228 ac_x_libraries='$x_libraries'"
9229 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9230 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9231 fi
9232
9233 if test "$no_x" = yes; then
9234 window_system=none
9235 else
9236 window_system=x11
9237 fi
9238
9239 if test "${x_libraries}" != NONE; then
9240 if test -n "${x_libraries}"; then
9241 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9242 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9243 fi
9244 x_default_search_path=""
9245 x_search_path=${x_libraries}
9246 if test -z "${x_search_path}"; then
9247 x_search_path=/usr/lib
9248 fi
9249 for x_library in `echo ${x_search_path}: | \
9250 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9251 x_search_path="\
9252 ${x_library}/X11/%L/%T/%N%C%S:\
9253 ${x_library}/X11/%l/%T/%N%C%S:\
9254 ${x_library}/X11/%T/%N%C%S:\
9255 ${x_library}/X11/%L/%T/%N%S:\
9256 ${x_library}/X11/%l/%T/%N%S:\
9257 ${x_library}/X11/%T/%N%S"
9258 if test x"${x_default_search_path}" = x; then
9259 x_default_search_path=${x_search_path}
9260 else
9261 x_default_search_path="${x_search_path}:${x_default_search_path}"
9262 fi
9263 done
9264 fi
9265 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9266 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9267 fi
9268
9269 if test x"${x_includes}" = x; then
9270 bitmapdir=/usr/include/X11/bitmaps
9271 else
9272 # accumulate include directories that have X11 bitmap subdirectories
9273 bmd_acc="dummyval"
9274 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9275 if test -d "${bmd}/X11/bitmaps"; then
9276 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9277 fi
9278 if test -d "${bmd}/bitmaps"; then
9279 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9280 fi
9281 done
9282 if test ${bmd_acc} != "dummyval"; then
9283 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9284 fi
9285 fi
9286
9287 HAVE_CARBON=no
9288 if test "${with_carbon}" != no; then
9289 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9290 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9291 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9292 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9293 echo $ECHO_N "(cached) $ECHO_C" >&6
9294 fi
9295 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9296 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9297 else
9298 # Is the header compilable?
9299 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9300 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9301 cat >conftest.$ac_ext <<_ACEOF
9302 /* confdefs.h. */
9303 _ACEOF
9304 cat confdefs.h >>conftest.$ac_ext
9305 cat >>conftest.$ac_ext <<_ACEOF
9306 /* end confdefs.h. */
9307 $ac_includes_default
9308 #include <Carbon/Carbon.h>
9309 _ACEOF
9310 rm -f conftest.$ac_objext
9311 if { (ac_try="$ac_compile"
9312 case "(($ac_try" in
9313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9314 *) ac_try_echo=$ac_try;;
9315 esac
9316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9317 (eval "$ac_compile") 2>conftest.er1
9318 ac_status=$?
9319 grep -v '^ *+' conftest.er1 >conftest.err
9320 rm -f conftest.er1
9321 cat conftest.err >&5
9322 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9323 (exit $ac_status); } && {
9324 test -z "$ac_c_werror_flag" ||
9325 test ! -s conftest.err
9326 } && test -s conftest.$ac_objext; then
9327 ac_header_compiler=yes
9328 else
9329 echo "$as_me: failed program was:" >&5
9330 sed 's/^/| /' conftest.$ac_ext >&5
9331
9332 ac_header_compiler=no
9333 fi
9334
9335 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9336 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9337 echo "${ECHO_T}$ac_header_compiler" >&6; }
9338
9339 # Is the header present?
9340 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9341 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9342 cat >conftest.$ac_ext <<_ACEOF
9343 /* confdefs.h. */
9344 _ACEOF
9345 cat confdefs.h >>conftest.$ac_ext
9346 cat >>conftest.$ac_ext <<_ACEOF
9347 /* end confdefs.h. */
9348 #include <Carbon/Carbon.h>
9349 _ACEOF
9350 if { (ac_try="$ac_cpp conftest.$ac_ext"
9351 case "(($ac_try" in
9352 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9353 *) ac_try_echo=$ac_try;;
9354 esac
9355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9356 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9357 ac_status=$?
9358 grep -v '^ *+' conftest.er1 >conftest.err
9359 rm -f conftest.er1
9360 cat conftest.err >&5
9361 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9362 (exit $ac_status); } >/dev/null && {
9363 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9364 test ! -s conftest.err
9365 }; then
9366 ac_header_preproc=yes
9367 else
9368 echo "$as_me: failed program was:" >&5
9369 sed 's/^/| /' conftest.$ac_ext >&5
9370
9371 ac_header_preproc=no
9372 fi
9373
9374 rm -f conftest.err conftest.$ac_ext
9375 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9376 echo "${ECHO_T}$ac_header_preproc" >&6; }
9377
9378 # So? What about this header?
9379 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9380 yes:no: )
9381 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9382 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9383 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9384 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9385 ac_header_preproc=yes
9386 ;;
9387 no:yes:* )
9388 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9389 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9390 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9391 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9392 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9393 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9394 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9395 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9396 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9397 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9398 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9399 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9400
9401 ;;
9402 esac
9403 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9404 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9405 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9406 echo $ECHO_N "(cached) $ECHO_C" >&6
9407 else
9408 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9409 fi
9410 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9411 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9412
9413 fi
9414 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9415 HAVE_CARBON=yes
9416 fi
9417
9418
9419 fi
9420 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9421 if test "${with_carbon+set}" != set \
9422 && test "${carbon_appdir_x+set}" != set; then
9423 for var in with_x with_x_toolkit with_gtk with_xim \
9424 with_xpm with_jpeg with_tiff with_gif with_png; do
9425 if eval test \"\${$var+set}\" = set; then
9426 HAVE_CARBON=no
9427 break
9428 fi
9429 done
9430 fi
9431 fi
9432 if test "${HAVE_CARBON}" = yes; then
9433 window_system=mac
9434 fi
9435
9436 case "${window_system}" in
9437 x11 )
9438 HAVE_X_WINDOWS=yes
9439 HAVE_X11=yes
9440 case "${with_x_toolkit}" in
9441 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9442 motif ) USE_X_TOOLKIT=MOTIF ;;
9443 gtk ) with_gtk=yes
9444 USE_X_TOOLKIT=none ;;
9445 no ) USE_X_TOOLKIT=none ;;
9446 * ) USE_X_TOOLKIT=maybe ;;
9447 esac
9448 ;;
9449 mac | none )
9450 HAVE_X_WINDOWS=no
9451 HAVE_X11=no
9452 USE_X_TOOLKIT=none
9453 ;;
9454 esac
9455
9456 ### If we're using X11, we should use the X menu package.
9457 HAVE_MENUS=no
9458 case ${HAVE_X11} in
9459 yes ) HAVE_MENUS=yes ;;
9460 esac
9461
9462 if test "${opsys}" = "hpux9"; then
9463 case "${x_libraries}" in
9464 *X11R4* )
9465 opsysfile="s/hpux9-x11r4.h"
9466 ;;
9467 esac
9468 fi
9469
9470 if test "${opsys}" = "hpux9shr"; then
9471 case "${x_libraries}" in
9472 *X11R4* )
9473 opsysfile="s/hpux9shxr4.h"
9474 ;;
9475 esac
9476 fi
9477
9478 ### Compute the unexec source name from the object name.
9479 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9480
9481 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9482 # Assume not, until told otherwise.
9483 GNU_MALLOC=yes
9484 doug_lea_malloc=yes
9485 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9486 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9487 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9488 echo $ECHO_N "(cached) $ECHO_C" >&6
9489 else
9490 cat >conftest.$ac_ext <<_ACEOF
9491 /* confdefs.h. */
9492 _ACEOF
9493 cat confdefs.h >>conftest.$ac_ext
9494 cat >>conftest.$ac_ext <<_ACEOF
9495 /* end confdefs.h. */
9496 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9497 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9498 #define malloc_get_state innocuous_malloc_get_state
9499
9500 /* System header to define __stub macros and hopefully few prototypes,
9501 which can conflict with char malloc_get_state (); below.
9502 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9503 <limits.h> exists even on freestanding compilers. */
9504
9505 #ifdef __STDC__
9506 # include <limits.h>
9507 #else
9508 # include <assert.h>
9509 #endif
9510
9511 #undef malloc_get_state
9512
9513 /* Override any GCC internal prototype to avoid an error.
9514 Use char because int might match the return type of a GCC
9515 builtin and then its argument prototype would still apply. */
9516 #ifdef __cplusplus
9517 extern "C"
9518 #endif
9519 char malloc_get_state ();
9520 /* The GNU C library defines this for functions which it implements
9521 to always fail with ENOSYS. Some functions are actually named
9522 something starting with __ and the normal name is an alias. */
9523 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9524 choke me
9525 #endif
9526
9527 int
9528 main ()
9529 {
9530 return malloc_get_state ();
9531 ;
9532 return 0;
9533 }
9534 _ACEOF
9535 rm -f conftest.$ac_objext conftest$ac_exeext
9536 if { (ac_try="$ac_link"
9537 case "(($ac_try" in
9538 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9539 *) ac_try_echo=$ac_try;;
9540 esac
9541 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9542 (eval "$ac_link") 2>conftest.er1
9543 ac_status=$?
9544 grep -v '^ *+' conftest.er1 >conftest.err
9545 rm -f conftest.er1
9546 cat conftest.err >&5
9547 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548 (exit $ac_status); } && {
9549 test -z "$ac_c_werror_flag" ||
9550 test ! -s conftest.err
9551 } && test -s conftest$ac_exeext &&
9552 $as_test_x conftest$ac_exeext; then
9553 ac_cv_func_malloc_get_state=yes
9554 else
9555 echo "$as_me: failed program was:" >&5
9556 sed 's/^/| /' conftest.$ac_ext >&5
9557
9558 ac_cv_func_malloc_get_state=no
9559 fi
9560
9561 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9562 conftest$ac_exeext conftest.$ac_ext
9563 fi
9564 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9565 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9566 if test $ac_cv_func_malloc_get_state = yes; then
9567 :
9568 else
9569 doug_lea_malloc=no
9570 fi
9571
9572 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9573 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9574 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9575 echo $ECHO_N "(cached) $ECHO_C" >&6
9576 else
9577 cat >conftest.$ac_ext <<_ACEOF
9578 /* confdefs.h. */
9579 _ACEOF
9580 cat confdefs.h >>conftest.$ac_ext
9581 cat >>conftest.$ac_ext <<_ACEOF
9582 /* end confdefs.h. */
9583 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9584 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9585 #define malloc_set_state innocuous_malloc_set_state
9586
9587 /* System header to define __stub macros and hopefully few prototypes,
9588 which can conflict with char malloc_set_state (); below.
9589 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9590 <limits.h> exists even on freestanding compilers. */
9591
9592 #ifdef __STDC__
9593 # include <limits.h>
9594 #else
9595 # include <assert.h>
9596 #endif
9597
9598 #undef malloc_set_state
9599
9600 /* Override any GCC internal prototype to avoid an error.
9601 Use char because int might match the return type of a GCC
9602 builtin and then its argument prototype would still apply. */
9603 #ifdef __cplusplus
9604 extern "C"
9605 #endif
9606 char malloc_set_state ();
9607 /* The GNU C library defines this for functions which it implements
9608 to always fail with ENOSYS. Some functions are actually named
9609 something starting with __ and the normal name is an alias. */
9610 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9611 choke me
9612 #endif
9613
9614 int
9615 main ()
9616 {
9617 return malloc_set_state ();
9618 ;
9619 return 0;
9620 }
9621 _ACEOF
9622 rm -f conftest.$ac_objext conftest$ac_exeext
9623 if { (ac_try="$ac_link"
9624 case "(($ac_try" in
9625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9626 *) ac_try_echo=$ac_try;;
9627 esac
9628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9629 (eval "$ac_link") 2>conftest.er1
9630 ac_status=$?
9631 grep -v '^ *+' conftest.er1 >conftest.err
9632 rm -f conftest.er1
9633 cat conftest.err >&5
9634 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9635 (exit $ac_status); } && {
9636 test -z "$ac_c_werror_flag" ||
9637 test ! -s conftest.err
9638 } && test -s conftest$ac_exeext &&
9639 $as_test_x conftest$ac_exeext; then
9640 ac_cv_func_malloc_set_state=yes
9641 else
9642 echo "$as_me: failed program was:" >&5
9643 sed 's/^/| /' conftest.$ac_ext >&5
9644
9645 ac_cv_func_malloc_set_state=no
9646 fi
9647
9648 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9649 conftest$ac_exeext conftest.$ac_ext
9650 fi
9651 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9652 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9653 if test $ac_cv_func_malloc_set_state = yes; then
9654 :
9655 else
9656 doug_lea_malloc=no
9657 fi
9658
9659 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9660 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9661 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9662 echo $ECHO_N "(cached) $ECHO_C" >&6
9663 else
9664 cat >conftest.$ac_ext <<_ACEOF
9665 /* confdefs.h. */
9666 _ACEOF
9667 cat confdefs.h >>conftest.$ac_ext
9668 cat >>conftest.$ac_ext <<_ACEOF
9669 /* end confdefs.h. */
9670 extern void (* __after_morecore_hook)();
9671 int
9672 main ()
9673 {
9674 __after_morecore_hook = 0
9675 ;
9676 return 0;
9677 }
9678 _ACEOF
9679 rm -f conftest.$ac_objext conftest$ac_exeext
9680 if { (ac_try="$ac_link"
9681 case "(($ac_try" in
9682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9683 *) ac_try_echo=$ac_try;;
9684 esac
9685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9686 (eval "$ac_link") 2>conftest.er1
9687 ac_status=$?
9688 grep -v '^ *+' conftest.er1 >conftest.err
9689 rm -f conftest.er1
9690 cat conftest.err >&5
9691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9692 (exit $ac_status); } && {
9693 test -z "$ac_c_werror_flag" ||
9694 test ! -s conftest.err
9695 } && test -s conftest$ac_exeext &&
9696 $as_test_x conftest$ac_exeext; then
9697 emacs_cv_var___after_morecore_hook=yes
9698 else
9699 echo "$as_me: failed program was:" >&5
9700 sed 's/^/| /' conftest.$ac_ext >&5
9701
9702 emacs_cv_var___after_morecore_hook=no
9703 fi
9704
9705 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9706 conftest$ac_exeext conftest.$ac_ext
9707 fi
9708 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9709 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9710 if test $emacs_cv_var___after_morecore_hook = no; then
9711 doug_lea_malloc=no
9712 fi
9713 if test "${system_malloc}" = "yes"; then
9714 GNU_MALLOC=no
9715 GNU_MALLOC_reason="
9716 (The GNU allocators don't work with this system configuration.)"
9717 fi
9718 if test "$doug_lea_malloc" = "yes" ; then
9719 if test "$GNU_MALLOC" = yes ; then
9720 GNU_MALLOC_reason="
9721 (Using Doug Lea's new malloc from the GNU C Library.)"
9722 fi
9723
9724 cat >>confdefs.h <<\_ACEOF
9725 #define DOUG_LEA_MALLOC 1
9726 _ACEOF
9727
9728 fi
9729
9730 if test x"${REL_ALLOC}" = x; then
9731 REL_ALLOC=${GNU_MALLOC}
9732 fi
9733
9734
9735
9736
9737 for ac_header in stdlib.h unistd.h
9738 do
9739 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9740 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9741 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9742 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9743 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9744 echo $ECHO_N "(cached) $ECHO_C" >&6
9745 fi
9746 ac_res=`eval echo '${'$as_ac_Header'}'`
9747 { echo "$as_me:$LINENO: result: $ac_res" >&5
9748 echo "${ECHO_T}$ac_res" >&6; }
9749 else
9750 # Is the header compilable?
9751 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9752 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 $ac_includes_default
9760 #include <$ac_header>
9761 _ACEOF
9762 rm -f conftest.$ac_objext
9763 if { (ac_try="$ac_compile"
9764 case "(($ac_try" in
9765 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9766 *) ac_try_echo=$ac_try;;
9767 esac
9768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9769 (eval "$ac_compile") 2>conftest.er1
9770 ac_status=$?
9771 grep -v '^ *+' conftest.er1 >conftest.err
9772 rm -f conftest.er1
9773 cat conftest.err >&5
9774 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9775 (exit $ac_status); } && {
9776 test -z "$ac_c_werror_flag" ||
9777 test ! -s conftest.err
9778 } && test -s conftest.$ac_objext; then
9779 ac_header_compiler=yes
9780 else
9781 echo "$as_me: failed program was:" >&5
9782 sed 's/^/| /' conftest.$ac_ext >&5
9783
9784 ac_header_compiler=no
9785 fi
9786
9787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9788 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9789 echo "${ECHO_T}$ac_header_compiler" >&6; }
9790
9791 # Is the header present?
9792 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9793 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9794 cat >conftest.$ac_ext <<_ACEOF
9795 /* confdefs.h. */
9796 _ACEOF
9797 cat confdefs.h >>conftest.$ac_ext
9798 cat >>conftest.$ac_ext <<_ACEOF
9799 /* end confdefs.h. */
9800 #include <$ac_header>
9801 _ACEOF
9802 if { (ac_try="$ac_cpp conftest.$ac_ext"
9803 case "(($ac_try" in
9804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9805 *) ac_try_echo=$ac_try;;
9806 esac
9807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9809 ac_status=$?
9810 grep -v '^ *+' conftest.er1 >conftest.err
9811 rm -f conftest.er1
9812 cat conftest.err >&5
9813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9814 (exit $ac_status); } >/dev/null && {
9815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9816 test ! -s conftest.err
9817 }; then
9818 ac_header_preproc=yes
9819 else
9820 echo "$as_me: failed program was:" >&5
9821 sed 's/^/| /' conftest.$ac_ext >&5
9822
9823 ac_header_preproc=no
9824 fi
9825
9826 rm -f conftest.err conftest.$ac_ext
9827 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9828 echo "${ECHO_T}$ac_header_preproc" >&6; }
9829
9830 # So? What about this header?
9831 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9832 yes:no: )
9833 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9834 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9836 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9837 ac_header_preproc=yes
9838 ;;
9839 no:yes:* )
9840 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9841 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9842 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9843 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9844 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9845 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9846 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9847 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9848 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9849 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9850 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9851 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9852
9853 ;;
9854 esac
9855 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9858 echo $ECHO_N "(cached) $ECHO_C" >&6
9859 else
9860 eval "$as_ac_Header=\$ac_header_preproc"
9861 fi
9862 ac_res=`eval echo '${'$as_ac_Header'}'`
9863 { echo "$as_me:$LINENO: result: $ac_res" >&5
9864 echo "${ECHO_T}$ac_res" >&6; }
9865
9866 fi
9867 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9868 cat >>confdefs.h <<_ACEOF
9869 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9870 _ACEOF
9871
9872 fi
9873
9874 done
9875
9876
9877 for ac_func in getpagesize
9878 do
9879 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9880 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9881 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9882 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9883 echo $ECHO_N "(cached) $ECHO_C" >&6
9884 else
9885 cat >conftest.$ac_ext <<_ACEOF
9886 /* confdefs.h. */
9887 _ACEOF
9888 cat confdefs.h >>conftest.$ac_ext
9889 cat >>conftest.$ac_ext <<_ACEOF
9890 /* end confdefs.h. */
9891 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9892 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9893 #define $ac_func innocuous_$ac_func
9894
9895 /* System header to define __stub macros and hopefully few prototypes,
9896 which can conflict with char $ac_func (); below.
9897 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9898 <limits.h> exists even on freestanding compilers. */
9899
9900 #ifdef __STDC__
9901 # include <limits.h>
9902 #else
9903 # include <assert.h>
9904 #endif
9905
9906 #undef $ac_func
9907
9908 /* Override any GCC internal prototype to avoid an error.
9909 Use char because int might match the return type of a GCC
9910 builtin and then its argument prototype would still apply. */
9911 #ifdef __cplusplus
9912 extern "C"
9913 #endif
9914 char $ac_func ();
9915 /* The GNU C library defines this for functions which it implements
9916 to always fail with ENOSYS. Some functions are actually named
9917 something starting with __ and the normal name is an alias. */
9918 #if defined __stub_$ac_func || defined __stub___$ac_func
9919 choke me
9920 #endif
9921
9922 int
9923 main ()
9924 {
9925 return $ac_func ();
9926 ;
9927 return 0;
9928 }
9929 _ACEOF
9930 rm -f conftest.$ac_objext conftest$ac_exeext
9931 if { (ac_try="$ac_link"
9932 case "(($ac_try" in
9933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9934 *) ac_try_echo=$ac_try;;
9935 esac
9936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9937 (eval "$ac_link") 2>conftest.er1
9938 ac_status=$?
9939 grep -v '^ *+' conftest.er1 >conftest.err
9940 rm -f conftest.er1
9941 cat conftest.err >&5
9942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9943 (exit $ac_status); } && {
9944 test -z "$ac_c_werror_flag" ||
9945 test ! -s conftest.err
9946 } && test -s conftest$ac_exeext &&
9947 $as_test_x conftest$ac_exeext; then
9948 eval "$as_ac_var=yes"
9949 else
9950 echo "$as_me: failed program was:" >&5
9951 sed 's/^/| /' conftest.$ac_ext >&5
9952
9953 eval "$as_ac_var=no"
9954 fi
9955
9956 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9957 conftest$ac_exeext conftest.$ac_ext
9958 fi
9959 ac_res=`eval echo '${'$as_ac_var'}'`
9960 { echo "$as_me:$LINENO: result: $ac_res" >&5
9961 echo "${ECHO_T}$ac_res" >&6; }
9962 if test `eval echo '${'$as_ac_var'}'` = yes; then
9963 cat >>confdefs.h <<_ACEOF
9964 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
9965 _ACEOF
9966
9967 fi
9968 done
9969
9970 { echo "$as_me:$LINENO: checking for working mmap" >&5
9971 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
9972 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
9973 echo $ECHO_N "(cached) $ECHO_C" >&6
9974 else
9975 if test "$cross_compiling" = yes; then
9976 ac_cv_func_mmap_fixed_mapped=no
9977 else
9978 cat >conftest.$ac_ext <<_ACEOF
9979 /* confdefs.h. */
9980 _ACEOF
9981 cat confdefs.h >>conftest.$ac_ext
9982 cat >>conftest.$ac_ext <<_ACEOF
9983 /* end confdefs.h. */
9984 $ac_includes_default
9985 /* malloc might have been renamed as rpl_malloc. */
9986 #undef malloc
9987
9988 /* Thanks to Mike Haertel and Jim Avera for this test.
9989 Here is a matrix of mmap possibilities:
9990 mmap private not fixed
9991 mmap private fixed at somewhere currently unmapped
9992 mmap private fixed at somewhere already mapped
9993 mmap shared not fixed
9994 mmap shared fixed at somewhere currently unmapped
9995 mmap shared fixed at somewhere already mapped
9996 For private mappings, we should verify that changes cannot be read()
9997 back from the file, nor mmap's back from the file at a different
9998 address. (There have been systems where private was not correctly
9999 implemented like the infamous i386 svr4.0, and systems where the
10000 VM page cache was not coherent with the file system buffer cache
10001 like early versions of FreeBSD and possibly contemporary NetBSD.)
10002 For shared mappings, we should conversely verify that changes get
10003 propagated back to all the places they're supposed to be.
10004
10005 Grep wants private fixed already mapped.
10006 The main things grep needs to know about mmap are:
10007 * does it exist and is it safe to write into the mmap'd area
10008 * how to use it (BSD variants) */
10009
10010 #include <fcntl.h>
10011 #include <sys/mman.h>
10012
10013 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10014 char *malloc ();
10015 #endif
10016
10017 /* This mess was copied from the GNU getpagesize.h. */
10018 #ifndef HAVE_GETPAGESIZE
10019 /* Assume that all systems that can run configure have sys/param.h. */
10020 # ifndef HAVE_SYS_PARAM_H
10021 # define HAVE_SYS_PARAM_H 1
10022 # endif
10023
10024 # ifdef _SC_PAGESIZE
10025 # define getpagesize() sysconf(_SC_PAGESIZE)
10026 # else /* no _SC_PAGESIZE */
10027 # ifdef HAVE_SYS_PARAM_H
10028 # include <sys/param.h>
10029 # ifdef EXEC_PAGESIZE
10030 # define getpagesize() EXEC_PAGESIZE
10031 # else /* no EXEC_PAGESIZE */
10032 # ifdef NBPG
10033 # define getpagesize() NBPG * CLSIZE
10034 # ifndef CLSIZE
10035 # define CLSIZE 1
10036 # endif /* no CLSIZE */
10037 # else /* no NBPG */
10038 # ifdef NBPC
10039 # define getpagesize() NBPC
10040 # else /* no NBPC */
10041 # ifdef PAGESIZE
10042 # define getpagesize() PAGESIZE
10043 # endif /* PAGESIZE */
10044 # endif /* no NBPC */
10045 # endif /* no NBPG */
10046 # endif /* no EXEC_PAGESIZE */
10047 # else /* no HAVE_SYS_PARAM_H */
10048 # define getpagesize() 8192 /* punt totally */
10049 # endif /* no HAVE_SYS_PARAM_H */
10050 # endif /* no _SC_PAGESIZE */
10051
10052 #endif /* no HAVE_GETPAGESIZE */
10053
10054 int
10055 main ()
10056 {
10057 char *data, *data2, *data3;
10058 int i, pagesize;
10059 int fd;
10060
10061 pagesize = getpagesize ();
10062
10063 /* First, make a file with some known garbage in it. */
10064 data = (char *) malloc (pagesize);
10065 if (!data)
10066 return 1;
10067 for (i = 0; i < pagesize; ++i)
10068 *(data + i) = rand ();
10069 umask (0);
10070 fd = creat ("conftest.mmap", 0600);
10071 if (fd < 0)
10072 return 1;
10073 if (write (fd, data, pagesize) != pagesize)
10074 return 1;
10075 close (fd);
10076
10077 /* Next, try to mmap the file at a fixed address which already has
10078 something else allocated at it. If we can, also make sure that
10079 we see the same garbage. */
10080 fd = open ("conftest.mmap", O_RDWR);
10081 if (fd < 0)
10082 return 1;
10083 data2 = (char *) malloc (2 * pagesize);
10084 if (!data2)
10085 return 1;
10086 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10087 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10088 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10089 return 1;
10090 for (i = 0; i < pagesize; ++i)
10091 if (*(data + i) != *(data2 + i))
10092 return 1;
10093
10094 /* Finally, make sure that changes to the mapped area do not
10095 percolate back to the file as seen by read(). (This is a bug on
10096 some variants of i386 svr4.0.) */
10097 for (i = 0; i < pagesize; ++i)
10098 *(data2 + i) = *(data2 + i) + 1;
10099 data3 = (char *) malloc (pagesize);
10100 if (!data3)
10101 return 1;
10102 if (read (fd, data3, pagesize) != pagesize)
10103 return 1;
10104 for (i = 0; i < pagesize; ++i)
10105 if (*(data + i) != *(data3 + i))
10106 return 1;
10107 close (fd);
10108 return 0;
10109 }
10110 _ACEOF
10111 rm -f conftest$ac_exeext
10112 if { (ac_try="$ac_link"
10113 case "(($ac_try" in
10114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10115 *) ac_try_echo=$ac_try;;
10116 esac
10117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10118 (eval "$ac_link") 2>&5
10119 ac_status=$?
10120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10122 { (case "(($ac_try" in
10123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10124 *) ac_try_echo=$ac_try;;
10125 esac
10126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10127 (eval "$ac_try") 2>&5
10128 ac_status=$?
10129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10130 (exit $ac_status); }; }; then
10131 ac_cv_func_mmap_fixed_mapped=yes
10132 else
10133 echo "$as_me: program exited with status $ac_status" >&5
10134 echo "$as_me: failed program was:" >&5
10135 sed 's/^/| /' conftest.$ac_ext >&5
10136
10137 ( exit $ac_status )
10138 ac_cv_func_mmap_fixed_mapped=no
10139 fi
10140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10141 fi
10142
10143
10144 fi
10145 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10146 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10147 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10148
10149 cat >>confdefs.h <<\_ACEOF
10150 #define HAVE_MMAP 1
10151 _ACEOF
10152
10153 fi
10154 rm -f conftest.mmap
10155
10156 if test $use_mmap_for_buffers = yes; then
10157 REL_ALLOC=no
10158 fi
10159
10160 LIBS="$libsrc_libs $LIBS"
10161
10162
10163 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10164 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10165 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10166 echo $ECHO_N "(cached) $ECHO_C" >&6
10167 else
10168 ac_check_lib_save_LIBS=$LIBS
10169 LIBS="-ldnet $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 /* Override any GCC internal prototype to avoid an error.
10178 Use char because int might match the return type of a GCC
10179 builtin and then its argument prototype would still apply. */
10180 #ifdef __cplusplus
10181 extern "C"
10182 #endif
10183 char dnet_ntoa ();
10184 int
10185 main ()
10186 {
10187 return dnet_ntoa ();
10188 ;
10189 return 0;
10190 }
10191 _ACEOF
10192 rm -f conftest.$ac_objext conftest$ac_exeext
10193 if { (ac_try="$ac_link"
10194 case "(($ac_try" in
10195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10196 *) ac_try_echo=$ac_try;;
10197 esac
10198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10199 (eval "$ac_link") 2>conftest.er1
10200 ac_status=$?
10201 grep -v '^ *+' conftest.er1 >conftest.err
10202 rm -f conftest.er1
10203 cat conftest.err >&5
10204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10205 (exit $ac_status); } && {
10206 test -z "$ac_c_werror_flag" ||
10207 test ! -s conftest.err
10208 } && test -s conftest$ac_exeext &&
10209 $as_test_x conftest$ac_exeext; then
10210 ac_cv_lib_dnet_dnet_ntoa=yes
10211 else
10212 echo "$as_me: failed program was:" >&5
10213 sed 's/^/| /' conftest.$ac_ext >&5
10214
10215 ac_cv_lib_dnet_dnet_ntoa=no
10216 fi
10217
10218 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10219 conftest$ac_exeext conftest.$ac_ext
10220 LIBS=$ac_check_lib_save_LIBS
10221 fi
10222 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10223 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10224 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10225 cat >>confdefs.h <<_ACEOF
10226 #define HAVE_LIBDNET 1
10227 _ACEOF
10228
10229 LIBS="-ldnet $LIBS"
10230
10231 fi
10232
10233
10234 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10235 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10236 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10237 echo $ECHO_N "(cached) $ECHO_C" >&6
10238 else
10239 ac_check_lib_save_LIBS=$LIBS
10240 LIBS="-lXbsd $LIBS"
10241 cat >conftest.$ac_ext <<_ACEOF
10242 /* confdefs.h. */
10243 _ACEOF
10244 cat confdefs.h >>conftest.$ac_ext
10245 cat >>conftest.$ac_ext <<_ACEOF
10246 /* end confdefs.h. */
10247
10248
10249 int
10250 main ()
10251 {
10252 return main ();
10253 ;
10254 return 0;
10255 }
10256 _ACEOF
10257 rm -f conftest.$ac_objext conftest$ac_exeext
10258 if { (ac_try="$ac_link"
10259 case "(($ac_try" in
10260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10261 *) ac_try_echo=$ac_try;;
10262 esac
10263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10264 (eval "$ac_link") 2>conftest.er1
10265 ac_status=$?
10266 grep -v '^ *+' conftest.er1 >conftest.err
10267 rm -f conftest.er1
10268 cat conftest.err >&5
10269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10270 (exit $ac_status); } && {
10271 test -z "$ac_c_werror_flag" ||
10272 test ! -s conftest.err
10273 } && test -s conftest$ac_exeext &&
10274 $as_test_x conftest$ac_exeext; then
10275 ac_cv_lib_Xbsd_main=yes
10276 else
10277 echo "$as_me: failed program was:" >&5
10278 sed 's/^/| /' conftest.$ac_ext >&5
10279
10280 ac_cv_lib_Xbsd_main=no
10281 fi
10282
10283 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10284 conftest$ac_exeext conftest.$ac_ext
10285 LIBS=$ac_check_lib_save_LIBS
10286 fi
10287 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10288 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10289 if test $ac_cv_lib_Xbsd_main = yes; then
10290 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10291 fi
10292
10293
10294
10295 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10296 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10297 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10298 echo $ECHO_N "(cached) $ECHO_C" >&6
10299 else
10300 ac_check_lib_save_LIBS=$LIBS
10301 LIBS="-lpthreads $LIBS"
10302 cat >conftest.$ac_ext <<_ACEOF
10303 /* confdefs.h. */
10304 _ACEOF
10305 cat confdefs.h >>conftest.$ac_ext
10306 cat >>conftest.$ac_ext <<_ACEOF
10307 /* end confdefs.h. */
10308
10309 /* Override any GCC internal prototype to avoid an error.
10310 Use char because int might match the return type of a GCC
10311 builtin and then its argument prototype would still apply. */
10312 #ifdef __cplusplus
10313 extern "C"
10314 #endif
10315 char cma_open ();
10316 int
10317 main ()
10318 {
10319 return cma_open ();
10320 ;
10321 return 0;
10322 }
10323 _ACEOF
10324 rm -f conftest.$ac_objext conftest$ac_exeext
10325 if { (ac_try="$ac_link"
10326 case "(($ac_try" in
10327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10328 *) ac_try_echo=$ac_try;;
10329 esac
10330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10331 (eval "$ac_link") 2>conftest.er1
10332 ac_status=$?
10333 grep -v '^ *+' conftest.er1 >conftest.err
10334 rm -f conftest.er1
10335 cat conftest.err >&5
10336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10337 (exit $ac_status); } && {
10338 test -z "$ac_c_werror_flag" ||
10339 test ! -s conftest.err
10340 } && test -s conftest$ac_exeext &&
10341 $as_test_x conftest$ac_exeext; then
10342 ac_cv_lib_pthreads_cma_open=yes
10343 else
10344 echo "$as_me: failed program was:" >&5
10345 sed 's/^/| /' conftest.$ac_ext >&5
10346
10347 ac_cv_lib_pthreads_cma_open=no
10348 fi
10349
10350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10351 conftest$ac_exeext conftest.$ac_ext
10352 LIBS=$ac_check_lib_save_LIBS
10353 fi
10354 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10355 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10356 if test $ac_cv_lib_pthreads_cma_open = yes; then
10357 cat >>confdefs.h <<_ACEOF
10358 #define HAVE_LIBPTHREADS 1
10359 _ACEOF
10360
10361 LIBS="-lpthreads $LIBS"
10362
10363 fi
10364
10365
10366 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10367 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10368 if test -d /usr/X386/include; then
10369 HAVE_XFREE386=yes
10370 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10371 else
10372 HAVE_XFREE386=no
10373 fi
10374 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10375 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10376
10377
10378 case ${host_os} in
10379 aix*)
10380 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10381 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10382 if test "${gdb_cv_bigtoc+set}" = set; then
10383 echo $ECHO_N "(cached) $ECHO_C" >&6
10384 else
10385
10386 case $GCC in
10387 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10388 *) gdb_cv_bigtoc=-bbigtoc ;;
10389 esac
10390
10391 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10392 cat >conftest.$ac_ext <<_ACEOF
10393 /* confdefs.h. */
10394 _ACEOF
10395 cat confdefs.h >>conftest.$ac_ext
10396 cat >>conftest.$ac_ext <<_ACEOF
10397 /* end confdefs.h. */
10398
10399 int
10400 main ()
10401 {
10402 int i;
10403 ;
10404 return 0;
10405 }
10406 _ACEOF
10407 rm -f conftest.$ac_objext conftest$ac_exeext
10408 if { (ac_try="$ac_link"
10409 case "(($ac_try" in
10410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10411 *) ac_try_echo=$ac_try;;
10412 esac
10413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10414 (eval "$ac_link") 2>conftest.er1
10415 ac_status=$?
10416 grep -v '^ *+' conftest.er1 >conftest.err
10417 rm -f conftest.er1
10418 cat conftest.err >&5
10419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10420 (exit $ac_status); } && {
10421 test -z "$ac_c_werror_flag" ||
10422 test ! -s conftest.err
10423 } && test -s conftest$ac_exeext &&
10424 $as_test_x conftest$ac_exeext; then
10425 :
10426 else
10427 echo "$as_me: failed program was:" >&5
10428 sed 's/^/| /' conftest.$ac_ext >&5
10429
10430 gdb_cv_bigtoc=
10431 fi
10432
10433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10434 conftest$ac_exeext conftest.$ac_ext
10435
10436 fi
10437 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10438 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10439 ;;
10440 esac
10441
10442 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10443 # used for the tests that follow. We set them back to REAL_CFLAGS and
10444 # REAL_CPPFLAGS later on.
10445
10446 REAL_CPPFLAGS="$CPPFLAGS"
10447
10448 if test "${HAVE_X11}" = "yes"; then
10449 DEFS="$C_SWITCH_X_SITE $DEFS"
10450 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10451 LIBS="$LIBX $LIBS"
10452 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10453 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10454
10455 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10456 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10457 # but it's more convenient here to set LD_RUN_PATH
10458 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10459 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10460 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10461 export LD_RUN_PATH
10462 fi
10463
10464 if test "${opsys}" = "gnu-linux"; then
10465 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10466 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473
10474 int
10475 main ()
10476 {
10477 XOpenDisplay ("foo");
10478 ;
10479 return 0;
10480 }
10481 _ACEOF
10482 rm -f conftest.$ac_objext conftest$ac_exeext
10483 if { (ac_try="$ac_link"
10484 case "(($ac_try" in
10485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10486 *) ac_try_echo=$ac_try;;
10487 esac
10488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10489 (eval "$ac_link") 2>conftest.er1
10490 ac_status=$?
10491 grep -v '^ *+' conftest.er1 >conftest.err
10492 rm -f conftest.er1
10493 cat conftest.err >&5
10494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10495 (exit $ac_status); } && {
10496 test -z "$ac_c_werror_flag" ||
10497 test ! -s conftest.err
10498 } && test -s conftest$ac_exeext &&
10499 $as_test_x conftest$ac_exeext; then
10500 xlinux_first_failure=no
10501 else
10502 echo "$as_me: failed program was:" >&5
10503 sed 's/^/| /' conftest.$ac_ext >&5
10504
10505 xlinux_first_failure=yes
10506 fi
10507
10508 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10509 conftest$ac_exeext conftest.$ac_ext
10510 if test "${xlinux_first_failure}" = "yes"; then
10511 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10512 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10513 OLD_CPPFLAGS="$CPPFLAGS"
10514 OLD_LIBS="$LIBS"
10515 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10516 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10517 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10518 LIBS="$LIBS -b i486-linuxaout"
10519 cat >conftest.$ac_ext <<_ACEOF
10520 /* confdefs.h. */
10521 _ACEOF
10522 cat confdefs.h >>conftest.$ac_ext
10523 cat >>conftest.$ac_ext <<_ACEOF
10524 /* end confdefs.h. */
10525
10526 int
10527 main ()
10528 {
10529 XOpenDisplay ("foo");
10530 ;
10531 return 0;
10532 }
10533 _ACEOF
10534 rm -f conftest.$ac_objext conftest$ac_exeext
10535 if { (ac_try="$ac_link"
10536 case "(($ac_try" in
10537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10538 *) ac_try_echo=$ac_try;;
10539 esac
10540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10541 (eval "$ac_link") 2>conftest.er1
10542 ac_status=$?
10543 grep -v '^ *+' conftest.er1 >conftest.err
10544 rm -f conftest.er1
10545 cat conftest.err >&5
10546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10547 (exit $ac_status); } && {
10548 test -z "$ac_c_werror_flag" ||
10549 test ! -s conftest.err
10550 } && test -s conftest$ac_exeext &&
10551 $as_test_x conftest$ac_exeext; then
10552 xlinux_second_failure=no
10553 else
10554 echo "$as_me: failed program was:" >&5
10555 sed 's/^/| /' conftest.$ac_ext >&5
10556
10557 xlinux_second_failure=yes
10558 fi
10559
10560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10561 conftest$ac_exeext conftest.$ac_ext
10562 if test "${xlinux_second_failure}" = "yes"; then
10563 # If we get the same failure with -b, there is no use adding -b.
10564 # So take it out. This plays safe.
10565 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10566 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10567 CPPFLAGS="$OLD_CPPFLAGS"
10568 LIBS="$OLD_LIBS"
10569 { echo "$as_me:$LINENO: result: no" >&5
10570 echo "${ECHO_T}no" >&6; }
10571 else
10572 { echo "$as_me:$LINENO: result: yes" >&5
10573 echo "${ECHO_T}yes" >&6; }
10574 fi
10575 else
10576 { echo "$as_me:$LINENO: result: no" >&5
10577 echo "${ECHO_T}no" >&6; }
10578 fi
10579 fi
10580
10581 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10582 # header files included from there.
10583 { echo "$as_me:$LINENO: checking for Xkb" >&5
10584 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10585 cat >conftest.$ac_ext <<_ACEOF
10586 /* confdefs.h. */
10587 _ACEOF
10588 cat confdefs.h >>conftest.$ac_ext
10589 cat >>conftest.$ac_ext <<_ACEOF
10590 /* end confdefs.h. */
10591 #include <X11/Xlib.h>
10592 #include <X11/XKBlib.h>
10593 int
10594 main ()
10595 {
10596 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10597 ;
10598 return 0;
10599 }
10600 _ACEOF
10601 rm -f conftest.$ac_objext conftest$ac_exeext
10602 if { (ac_try="$ac_link"
10603 case "(($ac_try" in
10604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10605 *) ac_try_echo=$ac_try;;
10606 esac
10607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10608 (eval "$ac_link") 2>conftest.er1
10609 ac_status=$?
10610 grep -v '^ *+' conftest.er1 >conftest.err
10611 rm -f conftest.er1
10612 cat conftest.err >&5
10613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10614 (exit $ac_status); } && {
10615 test -z "$ac_c_werror_flag" ||
10616 test ! -s conftest.err
10617 } && test -s conftest$ac_exeext &&
10618 $as_test_x conftest$ac_exeext; then
10619 emacs_xkb=yes
10620 else
10621 echo "$as_me: failed program was:" >&5
10622 sed 's/^/| /' conftest.$ac_ext >&5
10623
10624 emacs_xkb=no
10625 fi
10626
10627 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10628 conftest$ac_exeext conftest.$ac_ext
10629 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10630 echo "${ECHO_T}$emacs_xkb" >&6; }
10631 if test $emacs_xkb = yes; then
10632
10633 cat >>confdefs.h <<\_ACEOF
10634 #define HAVE_XKBGETKEYBOARD 1
10635 _ACEOF
10636
10637 fi
10638
10639
10640
10641
10642
10643 for ac_func in XrmSetDatabase XScreenResourceString \
10644 XScreenNumberOfScreen XSetWMProtocols
10645 do
10646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10650 echo $ECHO_N "(cached) $ECHO_C" >&6
10651 else
10652 cat >conftest.$ac_ext <<_ACEOF
10653 /* confdefs.h. */
10654 _ACEOF
10655 cat confdefs.h >>conftest.$ac_ext
10656 cat >>conftest.$ac_ext <<_ACEOF
10657 /* end confdefs.h. */
10658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10660 #define $ac_func innocuous_$ac_func
10661
10662 /* System header to define __stub macros and hopefully few prototypes,
10663 which can conflict with char $ac_func (); below.
10664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10665 <limits.h> exists even on freestanding compilers. */
10666
10667 #ifdef __STDC__
10668 # include <limits.h>
10669 #else
10670 # include <assert.h>
10671 #endif
10672
10673 #undef $ac_func
10674
10675 /* Override any GCC internal prototype to avoid an error.
10676 Use char because int might match the return type of a GCC
10677 builtin and then its argument prototype would still apply. */
10678 #ifdef __cplusplus
10679 extern "C"
10680 #endif
10681 char $ac_func ();
10682 /* The GNU C library defines this for functions which it implements
10683 to always fail with ENOSYS. Some functions are actually named
10684 something starting with __ and the normal name is an alias. */
10685 #if defined __stub_$ac_func || defined __stub___$ac_func
10686 choke me
10687 #endif
10688
10689 int
10690 main ()
10691 {
10692 return $ac_func ();
10693 ;
10694 return 0;
10695 }
10696 _ACEOF
10697 rm -f conftest.$ac_objext conftest$ac_exeext
10698 if { (ac_try="$ac_link"
10699 case "(($ac_try" in
10700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10701 *) ac_try_echo=$ac_try;;
10702 esac
10703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10704 (eval "$ac_link") 2>conftest.er1
10705 ac_status=$?
10706 grep -v '^ *+' conftest.er1 >conftest.err
10707 rm -f conftest.er1
10708 cat conftest.err >&5
10709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10710 (exit $ac_status); } && {
10711 test -z "$ac_c_werror_flag" ||
10712 test ! -s conftest.err
10713 } && test -s conftest$ac_exeext &&
10714 $as_test_x conftest$ac_exeext; then
10715 eval "$as_ac_var=yes"
10716 else
10717 echo "$as_me: failed program was:" >&5
10718 sed 's/^/| /' conftest.$ac_ext >&5
10719
10720 eval "$as_ac_var=no"
10721 fi
10722
10723 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10724 conftest$ac_exeext conftest.$ac_ext
10725 fi
10726 ac_res=`eval echo '${'$as_ac_var'}'`
10727 { echo "$as_me:$LINENO: result: $ac_res" >&5
10728 echo "${ECHO_T}$ac_res" >&6; }
10729 if test `eval echo '${'$as_ac_var'}'` = yes; then
10730 cat >>confdefs.h <<_ACEOF
10731 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10732 _ACEOF
10733
10734 fi
10735 done
10736
10737 fi
10738
10739 if test "${window_system}" = "x11"; then
10740 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10741 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10742 if test "${emacs_cv_x11_version_6+set}" = set; then
10743 echo $ECHO_N "(cached) $ECHO_C" >&6
10744 else
10745 cat >conftest.$ac_ext <<_ACEOF
10746 /* confdefs.h. */
10747 _ACEOF
10748 cat confdefs.h >>conftest.$ac_ext
10749 cat >>conftest.$ac_ext <<_ACEOF
10750 /* end confdefs.h. */
10751 #include <X11/Xlib.h>
10752 int
10753 main ()
10754 {
10755 #if XlibSpecificationRelease < 6
10756 fail;
10757 #endif
10758
10759 ;
10760 return 0;
10761 }
10762 _ACEOF
10763 rm -f conftest.$ac_objext conftest$ac_exeext
10764 if { (ac_try="$ac_link"
10765 case "(($ac_try" in
10766 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10767 *) ac_try_echo=$ac_try;;
10768 esac
10769 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10770 (eval "$ac_link") 2>conftest.er1
10771 ac_status=$?
10772 grep -v '^ *+' conftest.er1 >conftest.err
10773 rm -f conftest.er1
10774 cat conftest.err >&5
10775 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10776 (exit $ac_status); } && {
10777 test -z "$ac_c_werror_flag" ||
10778 test ! -s conftest.err
10779 } && test -s conftest$ac_exeext &&
10780 $as_test_x conftest$ac_exeext; then
10781 emacs_cv_x11_version_6=yes
10782 else
10783 echo "$as_me: failed program was:" >&5
10784 sed 's/^/| /' conftest.$ac_ext >&5
10785
10786 emacs_cv_x11_version_6=no
10787 fi
10788
10789 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10790 conftest$ac_exeext conftest.$ac_ext
10791 fi
10792
10793 if test $emacs_cv_x11_version_6 = yes; then
10794 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10795 echo "${ECHO_T}6 or newer" >&6; }
10796
10797 cat >>confdefs.h <<\_ACEOF
10798 #define HAVE_X11R6 1
10799 _ACEOF
10800
10801 else
10802 { echo "$as_me:$LINENO: result: before 6" >&5
10803 echo "${ECHO_T}before 6" >&6; }
10804 fi
10805 fi
10806
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10809 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_5+set}" = set; then
10811 echo $ECHO_N "(cached) $ECHO_C" >&6
10812 else
10813 cat >conftest.$ac_ext <<_ACEOF
10814 /* confdefs.h. */
10815 _ACEOF
10816 cat confdefs.h >>conftest.$ac_ext
10817 cat >>conftest.$ac_ext <<_ACEOF
10818 /* end confdefs.h. */
10819 #include <X11/Xlib.h>
10820 int
10821 main ()
10822 {
10823 #if XlibSpecificationRelease < 5
10824 fail;
10825 #endif
10826
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext &&
10848 $as_test_x conftest$ac_exeext; then
10849 emacs_cv_x11_version_5=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 emacs_cv_x11_version_5=no
10855 fi
10856
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859 fi
10860
10861 if test $emacs_cv_x11_version_5 = yes; then
10862 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10863 echo "${ECHO_T}5 or newer" >&6; }
10864 HAVE_X11R5=yes
10865
10866 cat >>confdefs.h <<\_ACEOF
10867 #define HAVE_X11R5 1
10868 _ACEOF
10869
10870 else
10871 HAVE_X11R5=no
10872 { echo "$as_me:$LINENO: result: before 5" >&5
10873 echo "${ECHO_T}before 5" >&6; }
10874 fi
10875 fi
10876
10877 HAVE_GTK=no
10878 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10879 USE_X_TOOLKIT=none
10880 fi
10881 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10882 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10883 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10884 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10885 { (exit 1); exit 1; }; };
10886 fi
10887 GLIB_REQUIRED=2.4
10888 GTK_REQUIRED=2.4
10889 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10890
10891 if test "X${with_pkg_config_prog}" != X; then
10892 PKG_CONFIG="${with_pkg_config_prog}"
10893 fi
10894
10895 succeeded=no
10896
10897 if test -z "$PKG_CONFIG"; then
10898 # Extract the first word of "pkg-config", so it can be a program name with args.
10899 set dummy pkg-config; ac_word=$2
10900 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10901 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10902 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10903 echo $ECHO_N "(cached) $ECHO_C" >&6
10904 else
10905 case $PKG_CONFIG in
10906 [\\/]* | ?:[\\/]*)
10907 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10908 ;;
10909 *)
10910 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10911 for as_dir in $PATH
10912 do
10913 IFS=$as_save_IFS
10914 test -z "$as_dir" && as_dir=.
10915 for ac_exec_ext in '' $ac_executable_extensions; do
10916 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10917 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10918 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10919 break 2
10920 fi
10921 done
10922 done
10923 IFS=$as_save_IFS
10924
10925 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10926 ;;
10927 esac
10928 fi
10929 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10930 if test -n "$PKG_CONFIG"; then
10931 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
10932 echo "${ECHO_T}$PKG_CONFIG" >&6; }
10933 else
10934 { echo "$as_me:$LINENO: result: no" >&5
10935 echo "${ECHO_T}no" >&6; }
10936 fi
10937
10938
10939 fi
10940
10941 if test "$PKG_CONFIG" = "no" ; then
10942 { { echo "$as_me:$LINENO: error:
10943 *** 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
10944 echo "$as_me: error:
10945 *** 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;}
10946 { (exit 1); exit 1; }; }
10947 else
10948 PKG_CONFIG_MIN_VERSION=0.9.0
10949 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
10950 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
10951 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
10952
10953 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
10954 { echo "$as_me:$LINENO: result: yes" >&5
10955 echo "${ECHO_T}yes" >&6; }
10956 succeeded=yes
10957
10958 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
10959 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
10960 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
10961 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
10962 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
10963
10964 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
10965 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
10966 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
10967 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
10968 echo "${ECHO_T}$GTK_LIBS" >&6; }
10969 else
10970 { echo "$as_me:$LINENO: result: no" >&5
10971 echo "${ECHO_T}no" >&6; }
10972 GTK_CFLAGS=""
10973 GTK_LIBS=""
10974 ## If we have a custom action on failure, don't print errors, but
10975 ## do set a variable so people can do so.
10976 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
10977 echo $GTK_PKG_ERRORS
10978 fi
10979
10980
10981
10982 else
10983 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
10984 echo "*** See http://www.freedesktop.org/software/pkgconfig"
10985 fi
10986 fi
10987
10988 if test $succeeded = yes; then
10989 :
10990 else
10991 { { 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
10992 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;}
10993 { (exit 1); exit 1; }; }
10994 fi
10995
10996
10997
10998 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
10999 CFLAGS="$CFLAGS $GTK_CFLAGS"
11000 LIBS="$GTK_LIBS $LIBS"
11001 GTK_COMPILES=no
11002
11003 for ac_func in gtk_main
11004 do
11005 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11006 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11007 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11008 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11009 echo $ECHO_N "(cached) $ECHO_C" >&6
11010 else
11011 cat >conftest.$ac_ext <<_ACEOF
11012 /* confdefs.h. */
11013 _ACEOF
11014 cat confdefs.h >>conftest.$ac_ext
11015 cat >>conftest.$ac_ext <<_ACEOF
11016 /* end confdefs.h. */
11017 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11018 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11019 #define $ac_func innocuous_$ac_func
11020
11021 /* System header to define __stub macros and hopefully few prototypes,
11022 which can conflict with char $ac_func (); below.
11023 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11024 <limits.h> exists even on freestanding compilers. */
11025
11026 #ifdef __STDC__
11027 # include <limits.h>
11028 #else
11029 # include <assert.h>
11030 #endif
11031
11032 #undef $ac_func
11033
11034 /* Override any GCC internal prototype to avoid an error.
11035 Use char because int might match the return type of a GCC
11036 builtin and then its argument prototype would still apply. */
11037 #ifdef __cplusplus
11038 extern "C"
11039 #endif
11040 char $ac_func ();
11041 /* The GNU C library defines this for functions which it implements
11042 to always fail with ENOSYS. Some functions are actually named
11043 something starting with __ and the normal name is an alias. */
11044 #if defined __stub_$ac_func || defined __stub___$ac_func
11045 choke me
11046 #endif
11047
11048 int
11049 main ()
11050 {
11051 return $ac_func ();
11052 ;
11053 return 0;
11054 }
11055 _ACEOF
11056 rm -f conftest.$ac_objext conftest$ac_exeext
11057 if { (ac_try="$ac_link"
11058 case "(($ac_try" in
11059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11060 *) ac_try_echo=$ac_try;;
11061 esac
11062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11063 (eval "$ac_link") 2>conftest.er1
11064 ac_status=$?
11065 grep -v '^ *+' conftest.er1 >conftest.err
11066 rm -f conftest.er1
11067 cat conftest.err >&5
11068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11069 (exit $ac_status); } && {
11070 test -z "$ac_c_werror_flag" ||
11071 test ! -s conftest.err
11072 } && test -s conftest$ac_exeext &&
11073 $as_test_x conftest$ac_exeext; then
11074 eval "$as_ac_var=yes"
11075 else
11076 echo "$as_me: failed program was:" >&5
11077 sed 's/^/| /' conftest.$ac_ext >&5
11078
11079 eval "$as_ac_var=no"
11080 fi
11081
11082 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11083 conftest$ac_exeext conftest.$ac_ext
11084 fi
11085 ac_res=`eval echo '${'$as_ac_var'}'`
11086 { echo "$as_me:$LINENO: result: $ac_res" >&5
11087 echo "${ECHO_T}$ac_res" >&6; }
11088 if test `eval echo '${'$as_ac_var'}'` = yes; then
11089 cat >>confdefs.h <<_ACEOF
11090 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11091 _ACEOF
11092 GTK_COMPILES=yes
11093 fi
11094 done
11095
11096 if test "${GTK_COMPILES}" != "yes"; then
11097 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11098 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11099 { (exit 1); exit 1; }; };
11100 fi
11101
11102 HAVE_GTK=yes
11103
11104 cat >>confdefs.h <<\_ACEOF
11105 #define HAVE_GTK 1
11106 _ACEOF
11107
11108 USE_X_TOOLKIT=none
11109
11110 if test "$with_toolkit_scroll_bars" != no; then
11111 with_toolkit_scroll_bars=yes
11112 fi
11113
11114 HAVE_GTK_MULTIDISPLAY=no
11115
11116 for ac_func in gdk_display_open
11117 do
11118 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11119 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11120 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11121 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11122 echo $ECHO_N "(cached) $ECHO_C" >&6
11123 else
11124 cat >conftest.$ac_ext <<_ACEOF
11125 /* confdefs.h. */
11126 _ACEOF
11127 cat confdefs.h >>conftest.$ac_ext
11128 cat >>conftest.$ac_ext <<_ACEOF
11129 /* end confdefs.h. */
11130 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11131 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11132 #define $ac_func innocuous_$ac_func
11133
11134 /* System header to define __stub macros and hopefully few prototypes,
11135 which can conflict with char $ac_func (); below.
11136 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11137 <limits.h> exists even on freestanding compilers. */
11138
11139 #ifdef __STDC__
11140 # include <limits.h>
11141 #else
11142 # include <assert.h>
11143 #endif
11144
11145 #undef $ac_func
11146
11147 /* Override any GCC internal prototype to avoid an error.
11148 Use char because int might match the return type of a GCC
11149 builtin and then its argument prototype would still apply. */
11150 #ifdef __cplusplus
11151 extern "C"
11152 #endif
11153 char $ac_func ();
11154 /* The GNU C library defines this for functions which it implements
11155 to always fail with ENOSYS. Some functions are actually named
11156 something starting with __ and the normal name is an alias. */
11157 #if defined __stub_$ac_func || defined __stub___$ac_func
11158 choke me
11159 #endif
11160
11161 int
11162 main ()
11163 {
11164 return $ac_func ();
11165 ;
11166 return 0;
11167 }
11168 _ACEOF
11169 rm -f conftest.$ac_objext conftest$ac_exeext
11170 if { (ac_try="$ac_link"
11171 case "(($ac_try" in
11172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11173 *) ac_try_echo=$ac_try;;
11174 esac
11175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11176 (eval "$ac_link") 2>conftest.er1
11177 ac_status=$?
11178 grep -v '^ *+' conftest.er1 >conftest.err
11179 rm -f conftest.er1
11180 cat conftest.err >&5
11181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11182 (exit $ac_status); } && {
11183 test -z "$ac_c_werror_flag" ||
11184 test ! -s conftest.err
11185 } && test -s conftest$ac_exeext &&
11186 $as_test_x conftest$ac_exeext; then
11187 eval "$as_ac_var=yes"
11188 else
11189 echo "$as_me: failed program was:" >&5
11190 sed 's/^/| /' conftest.$ac_ext >&5
11191
11192 eval "$as_ac_var=no"
11193 fi
11194
11195 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11196 conftest$ac_exeext conftest.$ac_ext
11197 fi
11198 ac_res=`eval echo '${'$as_ac_var'}'`
11199 { echo "$as_me:$LINENO: result: $ac_res" >&5
11200 echo "${ECHO_T}$ac_res" >&6; }
11201 if test `eval echo '${'$as_ac_var'}'` = yes; then
11202 cat >>confdefs.h <<_ACEOF
11203 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11204 _ACEOF
11205 HAVE_GTK_MULTIDISPLAY=yes
11206 fi
11207 done
11208
11209 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11210
11211 cat >>confdefs.h <<\_ACEOF
11212 #define HAVE_GTK_MULTIDISPLAY 1
11213 _ACEOF
11214
11215 fi
11216 HAVE_GTK_FILE_SELECTION=no
11217
11218 for ac_func in gtk_file_selection_new
11219 do
11220 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11221 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11222 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11223 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11224 echo $ECHO_N "(cached) $ECHO_C" >&6
11225 else
11226 cat >conftest.$ac_ext <<_ACEOF
11227 /* confdefs.h. */
11228 _ACEOF
11229 cat confdefs.h >>conftest.$ac_ext
11230 cat >>conftest.$ac_ext <<_ACEOF
11231 /* end confdefs.h. */
11232 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11233 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11234 #define $ac_func innocuous_$ac_func
11235
11236 /* System header to define __stub macros and hopefully few prototypes,
11237 which can conflict with char $ac_func (); below.
11238 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11239 <limits.h> exists even on freestanding compilers. */
11240
11241 #ifdef __STDC__
11242 # include <limits.h>
11243 #else
11244 # include <assert.h>
11245 #endif
11246
11247 #undef $ac_func
11248
11249 /* Override any GCC internal prototype to avoid an error.
11250 Use char because int might match the return type of a GCC
11251 builtin and then its argument prototype would still apply. */
11252 #ifdef __cplusplus
11253 extern "C"
11254 #endif
11255 char $ac_func ();
11256 /* The GNU C library defines this for functions which it implements
11257 to always fail with ENOSYS. Some functions are actually named
11258 something starting with __ and the normal name is an alias. */
11259 #if defined __stub_$ac_func || defined __stub___$ac_func
11260 choke me
11261 #endif
11262
11263 int
11264 main ()
11265 {
11266 return $ac_func ();
11267 ;
11268 return 0;
11269 }
11270 _ACEOF
11271 rm -f conftest.$ac_objext conftest$ac_exeext
11272 if { (ac_try="$ac_link"
11273 case "(($ac_try" in
11274 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11275 *) ac_try_echo=$ac_try;;
11276 esac
11277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11278 (eval "$ac_link") 2>conftest.er1
11279 ac_status=$?
11280 grep -v '^ *+' conftest.er1 >conftest.err
11281 rm -f conftest.er1
11282 cat conftest.err >&5
11283 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11284 (exit $ac_status); } && {
11285 test -z "$ac_c_werror_flag" ||
11286 test ! -s conftest.err
11287 } && test -s conftest$ac_exeext &&
11288 $as_test_x conftest$ac_exeext; then
11289 eval "$as_ac_var=yes"
11290 else
11291 echo "$as_me: failed program was:" >&5
11292 sed 's/^/| /' conftest.$ac_ext >&5
11293
11294 eval "$as_ac_var=no"
11295 fi
11296
11297 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11298 conftest$ac_exeext conftest.$ac_ext
11299 fi
11300 ac_res=`eval echo '${'$as_ac_var'}'`
11301 { echo "$as_me:$LINENO: result: $ac_res" >&5
11302 echo "${ECHO_T}$ac_res" >&6; }
11303 if test `eval echo '${'$as_ac_var'}'` = yes; then
11304 cat >>confdefs.h <<_ACEOF
11305 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11306 _ACEOF
11307 HAVE_GTK_FILE_SELECTION=yes
11308 fi
11309 done
11310
11311
11312 HAVE_GTK_FILE_CHOOSER=no
11313
11314 for ac_func in gtk_file_chooser_dialog_new
11315 do
11316 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11317 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11318 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11319 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11320 echo $ECHO_N "(cached) $ECHO_C" >&6
11321 else
11322 cat >conftest.$ac_ext <<_ACEOF
11323 /* confdefs.h. */
11324 _ACEOF
11325 cat confdefs.h >>conftest.$ac_ext
11326 cat >>conftest.$ac_ext <<_ACEOF
11327 /* end confdefs.h. */
11328 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11329 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11330 #define $ac_func innocuous_$ac_func
11331
11332 /* System header to define __stub macros and hopefully few prototypes,
11333 which can conflict with char $ac_func (); below.
11334 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11335 <limits.h> exists even on freestanding compilers. */
11336
11337 #ifdef __STDC__
11338 # include <limits.h>
11339 #else
11340 # include <assert.h>
11341 #endif
11342
11343 #undef $ac_func
11344
11345 /* Override any GCC internal prototype to avoid an error.
11346 Use char because int might match the return type of a GCC
11347 builtin and then its argument prototype would still apply. */
11348 #ifdef __cplusplus
11349 extern "C"
11350 #endif
11351 char $ac_func ();
11352 /* The GNU C library defines this for functions which it implements
11353 to always fail with ENOSYS. Some functions are actually named
11354 something starting with __ and the normal name is an alias. */
11355 #if defined __stub_$ac_func || defined __stub___$ac_func
11356 choke me
11357 #endif
11358
11359 int
11360 main ()
11361 {
11362 return $ac_func ();
11363 ;
11364 return 0;
11365 }
11366 _ACEOF
11367 rm -f conftest.$ac_objext conftest$ac_exeext
11368 if { (ac_try="$ac_link"
11369 case "(($ac_try" in
11370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11371 *) ac_try_echo=$ac_try;;
11372 esac
11373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11374 (eval "$ac_link") 2>conftest.er1
11375 ac_status=$?
11376 grep -v '^ *+' conftest.er1 >conftest.err
11377 rm -f conftest.er1
11378 cat conftest.err >&5
11379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11380 (exit $ac_status); } && {
11381 test -z "$ac_c_werror_flag" ||
11382 test ! -s conftest.err
11383 } && test -s conftest$ac_exeext &&
11384 $as_test_x conftest$ac_exeext; then
11385 eval "$as_ac_var=yes"
11386 else
11387 echo "$as_me: failed program was:" >&5
11388 sed 's/^/| /' conftest.$ac_ext >&5
11389
11390 eval "$as_ac_var=no"
11391 fi
11392
11393 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11394 conftest$ac_exeext conftest.$ac_ext
11395 fi
11396 ac_res=`eval echo '${'$as_ac_var'}'`
11397 { echo "$as_me:$LINENO: result: $ac_res" >&5
11398 echo "${ECHO_T}$ac_res" >&6; }
11399 if test `eval echo '${'$as_ac_var'}'` = yes; then
11400 cat >>confdefs.h <<_ACEOF
11401 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11402 _ACEOF
11403 HAVE_GTK_FILE_CHOOSER=yes
11404 fi
11405 done
11406
11407
11408 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11409 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11410
11411 cat >>confdefs.h <<\_ACEOF
11412 #define HAVE_GTK_FILE_BOTH 1
11413 _ACEOF
11414
11415 fi
11416
11417 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11418 HAVE_GTK_AND_PTHREAD=no
11419
11420 for ac_header in pthread.h
11421 do
11422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11427 echo $ECHO_N "(cached) $ECHO_C" >&6
11428 fi
11429 ac_res=`eval echo '${'$as_ac_Header'}'`
11430 { echo "$as_me:$LINENO: result: $ac_res" >&5
11431 echo "${ECHO_T}$ac_res" >&6; }
11432 else
11433 # Is the header compilable?
11434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11436 cat >conftest.$ac_ext <<_ACEOF
11437 /* confdefs.h. */
11438 _ACEOF
11439 cat confdefs.h >>conftest.$ac_ext
11440 cat >>conftest.$ac_ext <<_ACEOF
11441 /* end confdefs.h. */
11442 $ac_includes_default
11443 #include <$ac_header>
11444 _ACEOF
11445 rm -f conftest.$ac_objext
11446 if { (ac_try="$ac_compile"
11447 case "(($ac_try" in
11448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11449 *) ac_try_echo=$ac_try;;
11450 esac
11451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11452 (eval "$ac_compile") 2>conftest.er1
11453 ac_status=$?
11454 grep -v '^ *+' conftest.er1 >conftest.err
11455 rm -f conftest.er1
11456 cat conftest.err >&5
11457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11458 (exit $ac_status); } && {
11459 test -z "$ac_c_werror_flag" ||
11460 test ! -s conftest.err
11461 } && test -s conftest.$ac_objext; then
11462 ac_header_compiler=yes
11463 else
11464 echo "$as_me: failed program was:" >&5
11465 sed 's/^/| /' conftest.$ac_ext >&5
11466
11467 ac_header_compiler=no
11468 fi
11469
11470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11472 echo "${ECHO_T}$ac_header_compiler" >&6; }
11473
11474 # Is the header present?
11475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11477 cat >conftest.$ac_ext <<_ACEOF
11478 /* confdefs.h. */
11479 _ACEOF
11480 cat confdefs.h >>conftest.$ac_ext
11481 cat >>conftest.$ac_ext <<_ACEOF
11482 /* end confdefs.h. */
11483 #include <$ac_header>
11484 _ACEOF
11485 if { (ac_try="$ac_cpp conftest.$ac_ext"
11486 case "(($ac_try" in
11487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11488 *) ac_try_echo=$ac_try;;
11489 esac
11490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11492 ac_status=$?
11493 grep -v '^ *+' conftest.er1 >conftest.err
11494 rm -f conftest.er1
11495 cat conftest.err >&5
11496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11497 (exit $ac_status); } >/dev/null && {
11498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11499 test ! -s conftest.err
11500 }; then
11501 ac_header_preproc=yes
11502 else
11503 echo "$as_me: failed program was:" >&5
11504 sed 's/^/| /' conftest.$ac_ext >&5
11505
11506 ac_header_preproc=no
11507 fi
11508
11509 rm -f conftest.err conftest.$ac_ext
11510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11511 echo "${ECHO_T}$ac_header_preproc" >&6; }
11512
11513 # So? What about this header?
11514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11515 yes:no: )
11516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11520 ac_header_preproc=yes
11521 ;;
11522 no:yes:* )
11523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11535
11536 ;;
11537 esac
11538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11541 echo $ECHO_N "(cached) $ECHO_C" >&6
11542 else
11543 eval "$as_ac_Header=\$ac_header_preproc"
11544 fi
11545 ac_res=`eval echo '${'$as_ac_Header'}'`
11546 { echo "$as_me:$LINENO: result: $ac_res" >&5
11547 echo "${ECHO_T}$ac_res" >&6; }
11548
11549 fi
11550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11551 cat >>confdefs.h <<_ACEOF
11552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11553 _ACEOF
11554
11555 fi
11556
11557 done
11558
11559 if test "$ac_cv_header_pthread_h"; then
11560 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11561 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11562 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 ac_check_lib_save_LIBS=$LIBS
11566 LIBS="-lpthread $LIBS"
11567 cat >conftest.$ac_ext <<_ACEOF
11568 /* confdefs.h. */
11569 _ACEOF
11570 cat confdefs.h >>conftest.$ac_ext
11571 cat >>conftest.$ac_ext <<_ACEOF
11572 /* end confdefs.h. */
11573
11574 /* Override any GCC internal prototype to avoid an error.
11575 Use char because int might match the return type of a GCC
11576 builtin and then its argument prototype would still apply. */
11577 #ifdef __cplusplus
11578 extern "C"
11579 #endif
11580 char pthread_self ();
11581 int
11582 main ()
11583 {
11584 return pthread_self ();
11585 ;
11586 return 0;
11587 }
11588 _ACEOF
11589 rm -f conftest.$ac_objext conftest$ac_exeext
11590 if { (ac_try="$ac_link"
11591 case "(($ac_try" in
11592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11593 *) ac_try_echo=$ac_try;;
11594 esac
11595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11596 (eval "$ac_link") 2>conftest.er1
11597 ac_status=$?
11598 grep -v '^ *+' conftest.er1 >conftest.err
11599 rm -f conftest.er1
11600 cat conftest.err >&5
11601 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11602 (exit $ac_status); } && {
11603 test -z "$ac_c_werror_flag" ||
11604 test ! -s conftest.err
11605 } && test -s conftest$ac_exeext &&
11606 $as_test_x conftest$ac_exeext; then
11607 ac_cv_lib_pthread_pthread_self=yes
11608 else
11609 echo "$as_me: failed program was:" >&5
11610 sed 's/^/| /' conftest.$ac_ext >&5
11611
11612 ac_cv_lib_pthread_pthread_self=no
11613 fi
11614
11615 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11616 conftest$ac_exeext conftest.$ac_ext
11617 LIBS=$ac_check_lib_save_LIBS
11618 fi
11619 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11620 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11621 if test $ac_cv_lib_pthread_pthread_self = yes; then
11622 HAVE_GTK_AND_PTHREAD=yes
11623 fi
11624
11625 fi
11626 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11627 GTK_LIBS="$GTK_LIBS -lpthread"
11628
11629 cat >>confdefs.h <<\_ACEOF
11630 #define HAVE_GTK_AND_PTHREAD 1
11631 _ACEOF
11632
11633 fi
11634 fi
11635 fi
11636
11637 ### Link with -lXft if available to work around a bug.
11638 HAVE_XFT=maybe
11639 if test "${HAVE_GTK}" = "yes"; then
11640 if test "X${with_pkg_config_prog}" != X; then
11641 PKG_CONFIG="${with_pkg_config_prog}"
11642 fi
11643
11644
11645 succeeded=no
11646
11647 if test -z "$PKG_CONFIG"; then
11648 # Extract the first word of "pkg-config", so it can be a program name with args.
11649 set dummy pkg-config; ac_word=$2
11650 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11651 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11652 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11653 echo $ECHO_N "(cached) $ECHO_C" >&6
11654 else
11655 case $PKG_CONFIG in
11656 [\\/]* | ?:[\\/]*)
11657 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11658 ;;
11659 *)
11660 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11661 for as_dir in $PATH
11662 do
11663 IFS=$as_save_IFS
11664 test -z "$as_dir" && as_dir=.
11665 for ac_exec_ext in '' $ac_executable_extensions; do
11666 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11667 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11668 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11669 break 2
11670 fi
11671 done
11672 done
11673 IFS=$as_save_IFS
11674
11675 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11676 ;;
11677 esac
11678 fi
11679 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11680 if test -n "$PKG_CONFIG"; then
11681 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11682 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11683 else
11684 { echo "$as_me:$LINENO: result: no" >&5
11685 echo "${ECHO_T}no" >&6; }
11686 fi
11687
11688
11689 fi
11690
11691 if test "$PKG_CONFIG" = "no" ; then
11692 HAVE_XFT=no
11693 else
11694 PKG_CONFIG_MIN_VERSION=0.9.0
11695 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11696 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
11697 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
11698
11699 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
11700 { echo "$as_me:$LINENO: result: yes" >&5
11701 echo "${ECHO_T}yes" >&6; }
11702 succeeded=yes
11703
11704 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
11705 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
11706 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11707 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
11708 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
11709
11710 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
11711 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
11712 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
11713 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
11714 echo "${ECHO_T}$XFT_LIBS" >&6; }
11715 else
11716 { echo "$as_me:$LINENO: result: no" >&5
11717 echo "${ECHO_T}no" >&6; }
11718 XFT_CFLAGS=""
11719 XFT_LIBS=""
11720 ## If we have a custom action on failure, don't print errors, but
11721 ## do set a variable so people can do so.
11722 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
11723
11724 fi
11725
11726
11727
11728 else
11729 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11730 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11731 fi
11732 fi
11733
11734 if test $succeeded = yes; then
11735 :
11736 else
11737 HAVE_XFT=no
11738 fi
11739
11740 if test "$HAVE_XFT" != no; then
11741 OLD_CFLAGS="$CPPFLAGS"
11742 OLD_CFLAGS="$CFLAGS"
11743 OLD_LIBS="$LIBS"
11744 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
11745 CFLAGS="$CFLAGS $XFT_CFLAGS"
11746 LIBS="$XFT_LIBS $LIBS"
11747 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11748 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11749 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11750 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11751 echo $ECHO_N "(cached) $ECHO_C" >&6
11752 fi
11753 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11754 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11755 else
11756 # Is the header compilable?
11757 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
11758 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
11759 cat >conftest.$ac_ext <<_ACEOF
11760 /* confdefs.h. */
11761 _ACEOF
11762 cat confdefs.h >>conftest.$ac_ext
11763 cat >>conftest.$ac_ext <<_ACEOF
11764 /* end confdefs.h. */
11765 $ac_includes_default
11766 #include <X11/Xft/Xft.h>
11767 _ACEOF
11768 rm -f conftest.$ac_objext
11769 if { (ac_try="$ac_compile"
11770 case "(($ac_try" in
11771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11772 *) ac_try_echo=$ac_try;;
11773 esac
11774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11775 (eval "$ac_compile") 2>conftest.er1
11776 ac_status=$?
11777 grep -v '^ *+' conftest.er1 >conftest.err
11778 rm -f conftest.er1
11779 cat conftest.err >&5
11780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11781 (exit $ac_status); } && {
11782 test -z "$ac_c_werror_flag" ||
11783 test ! -s conftest.err
11784 } && test -s conftest.$ac_objext; then
11785 ac_header_compiler=yes
11786 else
11787 echo "$as_me: failed program was:" >&5
11788 sed 's/^/| /' conftest.$ac_ext >&5
11789
11790 ac_header_compiler=no
11791 fi
11792
11793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11794 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11795 echo "${ECHO_T}$ac_header_compiler" >&6; }
11796
11797 # Is the header present?
11798 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
11799 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
11800 cat >conftest.$ac_ext <<_ACEOF
11801 /* confdefs.h. */
11802 _ACEOF
11803 cat confdefs.h >>conftest.$ac_ext
11804 cat >>conftest.$ac_ext <<_ACEOF
11805 /* end confdefs.h. */
11806 #include <X11/Xft/Xft.h>
11807 _ACEOF
11808 if { (ac_try="$ac_cpp conftest.$ac_ext"
11809 case "(($ac_try" in
11810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11811 *) ac_try_echo=$ac_try;;
11812 esac
11813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11814 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11815 ac_status=$?
11816 grep -v '^ *+' conftest.er1 >conftest.err
11817 rm -f conftest.er1
11818 cat conftest.err >&5
11819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11820 (exit $ac_status); } >/dev/null && {
11821 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11822 test ! -s conftest.err
11823 }; then
11824 ac_header_preproc=yes
11825 else
11826 echo "$as_me: failed program was:" >&5
11827 sed 's/^/| /' conftest.$ac_ext >&5
11828
11829 ac_header_preproc=no
11830 fi
11831
11832 rm -f conftest.err conftest.$ac_ext
11833 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11834 echo "${ECHO_T}$ac_header_preproc" >&6; }
11835
11836 # So? What about this header?
11837 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11838 yes:no: )
11839 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
11840 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
11841 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
11842 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
11843 ac_header_preproc=yes
11844 ;;
11845 no:yes:* )
11846 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
11847 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
11848 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
11849 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
11850 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
11851 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
11852 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
11853 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
11854 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
11855 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
11856 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
11857 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
11858
11859 ;;
11860 esac
11861 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
11862 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
11863 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
11864 echo $ECHO_N "(cached) $ECHO_C" >&6
11865 else
11866 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
11867 fi
11868 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
11869 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
11870
11871 fi
11872 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
11873 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
11874 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
11875 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
11876 echo $ECHO_N "(cached) $ECHO_C" >&6
11877 else
11878 ac_check_lib_save_LIBS=$LIBS
11879 LIBS="-lXft $XFT_LIBS $LIBS"
11880 cat >conftest.$ac_ext <<_ACEOF
11881 /* confdefs.h. */
11882 _ACEOF
11883 cat confdefs.h >>conftest.$ac_ext
11884 cat >>conftest.$ac_ext <<_ACEOF
11885 /* end confdefs.h. */
11886
11887 /* Override any GCC internal prototype to avoid an error.
11888 Use char because int might match the return type of a GCC
11889 builtin and then its argument prototype would still apply. */
11890 #ifdef __cplusplus
11891 extern "C"
11892 #endif
11893 char XftFontOpen ();
11894 int
11895 main ()
11896 {
11897 return XftFontOpen ();
11898 ;
11899 return 0;
11900 }
11901 _ACEOF
11902 rm -f conftest.$ac_objext conftest$ac_exeext
11903 if { (ac_try="$ac_link"
11904 case "(($ac_try" in
11905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11906 *) ac_try_echo=$ac_try;;
11907 esac
11908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11909 (eval "$ac_link") 2>conftest.er1
11910 ac_status=$?
11911 grep -v '^ *+' conftest.er1 >conftest.err
11912 rm -f conftest.er1
11913 cat conftest.err >&5
11914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11915 (exit $ac_status); } && {
11916 test -z "$ac_c_werror_flag" ||
11917 test ! -s conftest.err
11918 } && test -s conftest$ac_exeext &&
11919 $as_test_x conftest$ac_exeext; then
11920 ac_cv_lib_Xft_XftFontOpen=yes
11921 else
11922 echo "$as_me: failed program was:" >&5
11923 sed 's/^/| /' conftest.$ac_ext >&5
11924
11925 ac_cv_lib_Xft_XftFontOpen=no
11926 fi
11927
11928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11929 conftest$ac_exeext conftest.$ac_ext
11930 LIBS=$ac_check_lib_save_LIBS
11931 fi
11932 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
11933 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
11934 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
11935 HAVE_XFT=yes
11936 fi
11937
11938 fi
11939
11940
11941
11942 if test "${HAVE_XFT}" = "yes"; then
11943
11944 cat >>confdefs.h <<\_ACEOF
11945 #define HAVE_XFT 1
11946 _ACEOF
11947
11948
11949 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
11950 else
11951 CFLAGS="$OLD_CPPFLAGS"
11952 CFLAGS="$OLD_CFLAGS"
11953 LIBS="$OLD_LIBS"
11954 fi
11955 fi
11956 fi
11957
11958 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11959 if test x"${HAVE_X11R5}" = xyes; then
11960 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11961 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11962 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11963 echo $ECHO_N "(cached) $ECHO_C" >&6
11964 else
11965 cat >conftest.$ac_ext <<_ACEOF
11966 /* confdefs.h. */
11967 _ACEOF
11968 cat confdefs.h >>conftest.$ac_ext
11969 cat >>conftest.$ac_ext <<_ACEOF
11970 /* end confdefs.h. */
11971
11972 #include <X11/Intrinsic.h>
11973 #include <X11/Xaw/Simple.h>
11974 int
11975 main ()
11976 {
11977
11978 ;
11979 return 0;
11980 }
11981 _ACEOF
11982 rm -f conftest.$ac_objext conftest$ac_exeext
11983 if { (ac_try="$ac_link"
11984 case "(($ac_try" in
11985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11986 *) ac_try_echo=$ac_try;;
11987 esac
11988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11989 (eval "$ac_link") 2>conftest.er1
11990 ac_status=$?
11991 grep -v '^ *+' conftest.er1 >conftest.err
11992 rm -f conftest.er1
11993 cat conftest.err >&5
11994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11995 (exit $ac_status); } && {
11996 test -z "$ac_c_werror_flag" ||
11997 test ! -s conftest.err
11998 } && test -s conftest$ac_exeext &&
11999 $as_test_x conftest$ac_exeext; then
12000 emacs_cv_x11_version_5_with_xaw=yes
12001 else
12002 echo "$as_me: failed program was:" >&5
12003 sed 's/^/| /' conftest.$ac_ext >&5
12004
12005 emacs_cv_x11_version_5_with_xaw=no
12006 fi
12007
12008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12009 conftest$ac_exeext conftest.$ac_ext
12010 fi
12011
12012 if test $emacs_cv_x11_version_5_with_xaw = yes; then
12013 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
12014 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
12015 USE_X_TOOLKIT=LUCID
12016 else
12017 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
12018 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
12019 USE_X_TOOLKIT=none
12020 fi
12021 else
12022 USE_X_TOOLKIT=none
12023 fi
12024 fi
12025
12026 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12027
12028 if test "${USE_X_TOOLKIT}" != "none"; then
12029 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12030 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12031 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12032 echo $ECHO_N "(cached) $ECHO_C" >&6
12033 else
12034 cat >conftest.$ac_ext <<_ACEOF
12035 /* confdefs.h. */
12036 _ACEOF
12037 cat confdefs.h >>conftest.$ac_ext
12038 cat >>conftest.$ac_ext <<_ACEOF
12039 /* end confdefs.h. */
12040 #include <X11/Intrinsic.h>
12041 int
12042 main ()
12043 {
12044 #if XtSpecificationRelease < 6
12045 fail;
12046 #endif
12047
12048 ;
12049 return 0;
12050 }
12051 _ACEOF
12052 rm -f conftest.$ac_objext conftest$ac_exeext
12053 if { (ac_try="$ac_link"
12054 case "(($ac_try" in
12055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12056 *) ac_try_echo=$ac_try;;
12057 esac
12058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12059 (eval "$ac_link") 2>conftest.er1
12060 ac_status=$?
12061 grep -v '^ *+' conftest.er1 >conftest.err
12062 rm -f conftest.er1
12063 cat conftest.err >&5
12064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12065 (exit $ac_status); } && {
12066 test -z "$ac_c_werror_flag" ||
12067 test ! -s conftest.err
12068 } && test -s conftest$ac_exeext &&
12069 $as_test_x conftest$ac_exeext; then
12070 emacs_cv_x11_toolkit_version_6=yes
12071 else
12072 echo "$as_me: failed program was:" >&5
12073 sed 's/^/| /' conftest.$ac_ext >&5
12074
12075 emacs_cv_x11_toolkit_version_6=no
12076 fi
12077
12078 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12079 conftest$ac_exeext conftest.$ac_ext
12080 fi
12081
12082 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12083 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12084 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12085 echo "${ECHO_T}6 or newer" >&6; }
12086
12087 cat >>confdefs.h <<\_ACEOF
12088 #define HAVE_X11XTR6 1
12089 _ACEOF
12090
12091 else
12092 { echo "$as_me:$LINENO: result: before 6" >&5
12093 echo "${ECHO_T}before 6" >&6; }
12094 fi
12095
12096 OLDLIBS="$LIBS"
12097 if test x$HAVE_X11XTR6 = xyes; then
12098 LIBS="-lXt -lSM -lICE $LIBS"
12099 else
12100 LIBS="-lXt $LIBS"
12101 fi
12102
12103 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12104 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12105 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12106 echo $ECHO_N "(cached) $ECHO_C" >&6
12107 else
12108 ac_check_lib_save_LIBS=$LIBS
12109 LIBS="-lXmu $LIBS"
12110 cat >conftest.$ac_ext <<_ACEOF
12111 /* confdefs.h. */
12112 _ACEOF
12113 cat confdefs.h >>conftest.$ac_ext
12114 cat >>conftest.$ac_ext <<_ACEOF
12115 /* end confdefs.h. */
12116
12117 /* Override any GCC internal prototype to avoid an error.
12118 Use char because int might match the return type of a GCC
12119 builtin and then its argument prototype would still apply. */
12120 #ifdef __cplusplus
12121 extern "C"
12122 #endif
12123 char XmuConvertStandardSelection ();
12124 int
12125 main ()
12126 {
12127 return XmuConvertStandardSelection ();
12128 ;
12129 return 0;
12130 }
12131 _ACEOF
12132 rm -f conftest.$ac_objext conftest$ac_exeext
12133 if { (ac_try="$ac_link"
12134 case "(($ac_try" in
12135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12136 *) ac_try_echo=$ac_try;;
12137 esac
12138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12139 (eval "$ac_link") 2>conftest.er1
12140 ac_status=$?
12141 grep -v '^ *+' conftest.er1 >conftest.err
12142 rm -f conftest.er1
12143 cat conftest.err >&5
12144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12145 (exit $ac_status); } && {
12146 test -z "$ac_c_werror_flag" ||
12147 test ! -s conftest.err
12148 } && test -s conftest$ac_exeext &&
12149 $as_test_x conftest$ac_exeext; then
12150 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12151 else
12152 echo "$as_me: failed program was:" >&5
12153 sed 's/^/| /' conftest.$ac_ext >&5
12154
12155 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12156 fi
12157
12158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12159 conftest$ac_exeext conftest.$ac_ext
12160 LIBS=$ac_check_lib_save_LIBS
12161 fi
12162 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12163 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12164 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12165 cat >>confdefs.h <<_ACEOF
12166 #define HAVE_LIBXMU 1
12167 _ACEOF
12168
12169 LIBS="-lXmu $LIBS"
12170
12171 fi
12172
12173 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12174 fi
12175
12176 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12177 if test "${HAVE_X11}" = "yes"; then
12178 if test "${USE_X_TOOLKIT}" != "none"; then
12179
12180 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12181 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12182 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12183 echo $ECHO_N "(cached) $ECHO_C" >&6
12184 else
12185 ac_check_lib_save_LIBS=$LIBS
12186 LIBS="-lXext $LIBS"
12187 cat >conftest.$ac_ext <<_ACEOF
12188 /* confdefs.h. */
12189 _ACEOF
12190 cat confdefs.h >>conftest.$ac_ext
12191 cat >>conftest.$ac_ext <<_ACEOF
12192 /* end confdefs.h. */
12193
12194 /* Override any GCC internal prototype to avoid an error.
12195 Use char because int might match the return type of a GCC
12196 builtin and then its argument prototype would still apply. */
12197 #ifdef __cplusplus
12198 extern "C"
12199 #endif
12200 char XShapeQueryExtension ();
12201 int
12202 main ()
12203 {
12204 return XShapeQueryExtension ();
12205 ;
12206 return 0;
12207 }
12208 _ACEOF
12209 rm -f conftest.$ac_objext conftest$ac_exeext
12210 if { (ac_try="$ac_link"
12211 case "(($ac_try" in
12212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12213 *) ac_try_echo=$ac_try;;
12214 esac
12215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12216 (eval "$ac_link") 2>conftest.er1
12217 ac_status=$?
12218 grep -v '^ *+' conftest.er1 >conftest.err
12219 rm -f conftest.er1
12220 cat conftest.err >&5
12221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12222 (exit $ac_status); } && {
12223 test -z "$ac_c_werror_flag" ||
12224 test ! -s conftest.err
12225 } && test -s conftest$ac_exeext &&
12226 $as_test_x conftest$ac_exeext; then
12227 ac_cv_lib_Xext_XShapeQueryExtension=yes
12228 else
12229 echo "$as_me: failed program was:" >&5
12230 sed 's/^/| /' conftest.$ac_ext >&5
12231
12232 ac_cv_lib_Xext_XShapeQueryExtension=no
12233 fi
12234
12235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12236 conftest$ac_exeext conftest.$ac_ext
12237 LIBS=$ac_check_lib_save_LIBS
12238 fi
12239 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12240 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12241 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12242 cat >>confdefs.h <<_ACEOF
12243 #define HAVE_LIBXEXT 1
12244 _ACEOF
12245
12246 LIBS="-lXext $LIBS"
12247
12248 fi
12249
12250 fi
12251 fi
12252
12253 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12254 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12255 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12256 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12257 echo $ECHO_N "(cached) $ECHO_C" >&6
12258 else
12259 cat >conftest.$ac_ext <<_ACEOF
12260 /* confdefs.h. */
12261 _ACEOF
12262 cat confdefs.h >>conftest.$ac_ext
12263 cat >>conftest.$ac_ext <<_ACEOF
12264 /* end confdefs.h. */
12265 #include <Xm/Xm.h>
12266 int
12267 main ()
12268 {
12269 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12270 int x = 5;
12271 #else
12272 Motif version prior to 2.1.
12273 #endif
12274 ;
12275 return 0;
12276 }
12277 _ACEOF
12278 rm -f conftest.$ac_objext
12279 if { (ac_try="$ac_compile"
12280 case "(($ac_try" in
12281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12282 *) ac_try_echo=$ac_try;;
12283 esac
12284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12285 (eval "$ac_compile") 2>conftest.er1
12286 ac_status=$?
12287 grep -v '^ *+' conftest.er1 >conftest.err
12288 rm -f conftest.er1
12289 cat conftest.err >&5
12290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291 (exit $ac_status); } && {
12292 test -z "$ac_c_werror_flag" ||
12293 test ! -s conftest.err
12294 } && test -s conftest.$ac_objext; then
12295 emacs_cv_motif_version_2_1=yes
12296 else
12297 echo "$as_me: failed program was:" >&5
12298 sed 's/^/| /' conftest.$ac_ext >&5
12299
12300 emacs_cv_motif_version_2_1=no
12301 fi
12302
12303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12304 fi
12305 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12306 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12307 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12308 if test $emacs_cv_motif_version_2_1 = yes; then
12309 HAVE_LIBXP=no
12310
12311 cat >>confdefs.h <<\_ACEOF
12312 #define HAVE_MOTIF_2_1 1
12313 _ACEOF
12314
12315 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12316 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12317 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12318 echo $ECHO_N "(cached) $ECHO_C" >&6
12319 else
12320 ac_check_lib_save_LIBS=$LIBS
12321 LIBS="-lXp $LIBS"
12322 cat >conftest.$ac_ext <<_ACEOF
12323 /* confdefs.h. */
12324 _ACEOF
12325 cat confdefs.h >>conftest.$ac_ext
12326 cat >>conftest.$ac_ext <<_ACEOF
12327 /* end confdefs.h. */
12328
12329 /* Override any GCC internal prototype to avoid an error.
12330 Use char because int might match the return type of a GCC
12331 builtin and then its argument prototype would still apply. */
12332 #ifdef __cplusplus
12333 extern "C"
12334 #endif
12335 char XpCreateContext ();
12336 int
12337 main ()
12338 {
12339 return XpCreateContext ();
12340 ;
12341 return 0;
12342 }
12343 _ACEOF
12344 rm -f conftest.$ac_objext conftest$ac_exeext
12345 if { (ac_try="$ac_link"
12346 case "(($ac_try" in
12347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12348 *) ac_try_echo=$ac_try;;
12349 esac
12350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12351 (eval "$ac_link") 2>conftest.er1
12352 ac_status=$?
12353 grep -v '^ *+' conftest.er1 >conftest.err
12354 rm -f conftest.er1
12355 cat conftest.err >&5
12356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12357 (exit $ac_status); } && {
12358 test -z "$ac_c_werror_flag" ||
12359 test ! -s conftest.err
12360 } && test -s conftest$ac_exeext &&
12361 $as_test_x conftest$ac_exeext; then
12362 ac_cv_lib_Xp_XpCreateContext=yes
12363 else
12364 echo "$as_me: failed program was:" >&5
12365 sed 's/^/| /' conftest.$ac_ext >&5
12366
12367 ac_cv_lib_Xp_XpCreateContext=no
12368 fi
12369
12370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12371 conftest$ac_exeext conftest.$ac_ext
12372 LIBS=$ac_check_lib_save_LIBS
12373 fi
12374 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12375 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12376 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12377 HAVE_LIBXP=yes
12378 fi
12379
12380 if test ${HAVE_LIBXP} = yes; then
12381
12382 cat >>confdefs.h <<\_ACEOF
12383 #define HAVE_LIBXP 1
12384 _ACEOF
12385
12386 fi
12387 else
12388 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12389 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12390 if test "${emacs_cv_lesstif+set}" = set; then
12391 echo $ECHO_N "(cached) $ECHO_C" >&6
12392 else
12393 # We put this in CFLAGS temporarily to precede other -I options
12394 # that might be in CFLAGS temporarily.
12395 # We put this in CPPFLAGS where it precedes the other -I options.
12396 OLD_CPPFLAGS=$CPPFLAGS
12397 OLD_CFLAGS=$CFLAGS
12398 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12399 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12400 cat >conftest.$ac_ext <<_ACEOF
12401 /* confdefs.h. */
12402 _ACEOF
12403 cat confdefs.h >>conftest.$ac_ext
12404 cat >>conftest.$ac_ext <<_ACEOF
12405 /* end confdefs.h. */
12406 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12407 int
12408 main ()
12409 {
12410 int x = 5;
12411 ;
12412 return 0;
12413 }
12414 _ACEOF
12415 rm -f conftest.$ac_objext
12416 if { (ac_try="$ac_compile"
12417 case "(($ac_try" in
12418 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12419 *) ac_try_echo=$ac_try;;
12420 esac
12421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12422 (eval "$ac_compile") 2>conftest.er1
12423 ac_status=$?
12424 grep -v '^ *+' conftest.er1 >conftest.err
12425 rm -f conftest.er1
12426 cat conftest.err >&5
12427 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12428 (exit $ac_status); } && {
12429 test -z "$ac_c_werror_flag" ||
12430 test ! -s conftest.err
12431 } && test -s conftest.$ac_objext; then
12432 emacs_cv_lesstif=yes
12433 else
12434 echo "$as_me: failed program was:" >&5
12435 sed 's/^/| /' conftest.$ac_ext >&5
12436
12437 emacs_cv_lesstif=no
12438 fi
12439
12440 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12441 fi
12442 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12443 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12444 if test $emacs_cv_lesstif = yes; then
12445 # Make sure this -I option remains in CPPFLAGS after it is set
12446 # back to REAL_CPPFLAGS.
12447 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12448 # have those other -I options anyway. Ultimately, having this
12449 # directory ultimately in CPPFLAGS will be enough.
12450 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12451 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12452 else
12453 CFLAGS=$OLD_CFLAGS
12454 CPPFLAGS=$OLD_CPPFLAGS
12455 fi
12456 fi
12457 fi
12458
12459 ### Is -lXaw3d available?
12460 HAVE_XAW3D=no
12461 if test "${HAVE_X11}" = "yes"; then
12462 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12463 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12464 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12465 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12466 echo $ECHO_N "(cached) $ECHO_C" >&6
12467 else
12468 cat >conftest.$ac_ext <<_ACEOF
12469 /* confdefs.h. */
12470 _ACEOF
12471 cat confdefs.h >>conftest.$ac_ext
12472 cat >>conftest.$ac_ext <<_ACEOF
12473 /* end confdefs.h. */
12474 #include <X11/Xaw3d/Scrollbar.h>
12475 _ACEOF
12476 if { (ac_try="$ac_cpp conftest.$ac_ext"
12477 case "(($ac_try" in
12478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12479 *) ac_try_echo=$ac_try;;
12480 esac
12481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12482 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12483 ac_status=$?
12484 grep -v '^ *+' conftest.er1 >conftest.err
12485 rm -f conftest.er1
12486 cat conftest.err >&5
12487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12488 (exit $ac_status); } >/dev/null && {
12489 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12490 test ! -s conftest.err
12491 }; then
12492 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12493 else
12494 echo "$as_me: failed program was:" >&5
12495 sed 's/^/| /' conftest.$ac_ext >&5
12496
12497 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12498 fi
12499
12500 rm -f conftest.err conftest.$ac_ext
12501 fi
12502 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12503 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12504 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12505 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12506 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12507 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12508 echo $ECHO_N "(cached) $ECHO_C" >&6
12509 else
12510 ac_check_lib_save_LIBS=$LIBS
12511 LIBS="-lXaw3d $LIBS"
12512 cat >conftest.$ac_ext <<_ACEOF
12513 /* confdefs.h. */
12514 _ACEOF
12515 cat confdefs.h >>conftest.$ac_ext
12516 cat >>conftest.$ac_ext <<_ACEOF
12517 /* end confdefs.h. */
12518
12519 /* Override any GCC internal prototype to avoid an error.
12520 Use char because int might match the return type of a GCC
12521 builtin and then its argument prototype would still apply. */
12522 #ifdef __cplusplus
12523 extern "C"
12524 #endif
12525 char XawScrollbarSetThumb ();
12526 int
12527 main ()
12528 {
12529 return XawScrollbarSetThumb ();
12530 ;
12531 return 0;
12532 }
12533 _ACEOF
12534 rm -f conftest.$ac_objext conftest$ac_exeext
12535 if { (ac_try="$ac_link"
12536 case "(($ac_try" in
12537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12538 *) ac_try_echo=$ac_try;;
12539 esac
12540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12541 (eval "$ac_link") 2>conftest.er1
12542 ac_status=$?
12543 grep -v '^ *+' conftest.er1 >conftest.err
12544 rm -f conftest.er1
12545 cat conftest.err >&5
12546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12547 (exit $ac_status); } && {
12548 test -z "$ac_c_werror_flag" ||
12549 test ! -s conftest.err
12550 } && test -s conftest$ac_exeext &&
12551 $as_test_x conftest$ac_exeext; then
12552 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12553 else
12554 echo "$as_me: failed program was:" >&5
12555 sed 's/^/| /' conftest.$ac_ext >&5
12556
12557 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12558 fi
12559
12560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12561 conftest$ac_exeext conftest.$ac_ext
12562 LIBS=$ac_check_lib_save_LIBS
12563 fi
12564 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12565 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12566 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12567 HAVE_XAW3D=yes
12568 fi
12569
12570 fi
12571
12572
12573 if test "${HAVE_XAW3D}" = "yes"; then
12574
12575 cat >>confdefs.h <<\_ACEOF
12576 #define HAVE_XAW3D 1
12577 _ACEOF
12578
12579 fi
12580 fi
12581 fi
12582
12583
12584
12585 USE_TOOLKIT_SCROLL_BARS=no
12586 if test "${with_toolkit_scroll_bars}" != "no"; then
12587 if test "${USE_X_TOOLKIT}" != "none"; then
12588 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12589 cat >>confdefs.h <<\_ACEOF
12590 #define USE_TOOLKIT_SCROLL_BARS 1
12591 _ACEOF
12592
12593 HAVE_XAW3D=no
12594 USE_TOOLKIT_SCROLL_BARS=yes
12595 elif test "${HAVE_XAW3D}" = "yes"; then
12596 cat >>confdefs.h <<\_ACEOF
12597 #define USE_TOOLKIT_SCROLL_BARS 1
12598 _ACEOF
12599
12600 USE_TOOLKIT_SCROLL_BARS=yes
12601 fi
12602 elif test "${HAVE_GTK}" = "yes"; then
12603 cat >>confdefs.h <<\_ACEOF
12604 #define USE_TOOLKIT_SCROLL_BARS 1
12605 _ACEOF
12606
12607 USE_TOOLKIT_SCROLL_BARS=yes
12608 elif test "${HAVE_CARBON}" = "yes"; then
12609 cat >>confdefs.h <<\_ACEOF
12610 #define USE_TOOLKIT_SCROLL_BARS 1
12611 _ACEOF
12612
12613 USE_TOOLKIT_SCROLL_BARS=yes
12614 fi
12615 fi
12616
12617 cat >conftest.$ac_ext <<_ACEOF
12618 /* confdefs.h. */
12619 _ACEOF
12620 cat confdefs.h >>conftest.$ac_ext
12621 cat >>conftest.$ac_ext <<_ACEOF
12622 /* end confdefs.h. */
12623
12624 #include <X11/Xlib.h>
12625 #include <X11/Xresource.h>
12626 int
12627 main ()
12628 {
12629 XIMProc callback;
12630 ;
12631 return 0;
12632 }
12633 _ACEOF
12634 rm -f conftest.$ac_objext
12635 if { (ac_try="$ac_compile"
12636 case "(($ac_try" in
12637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12638 *) ac_try_echo=$ac_try;;
12639 esac
12640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12641 (eval "$ac_compile") 2>conftest.er1
12642 ac_status=$?
12643 grep -v '^ *+' conftest.er1 >conftest.err
12644 rm -f conftest.er1
12645 cat conftest.err >&5
12646 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12647 (exit $ac_status); } && {
12648 test -z "$ac_c_werror_flag" ||
12649 test ! -s conftest.err
12650 } && test -s conftest.$ac_objext; then
12651 HAVE_XIM=yes
12652
12653 cat >>confdefs.h <<\_ACEOF
12654 #define HAVE_XIM 1
12655 _ACEOF
12656
12657 else
12658 echo "$as_me: failed program was:" >&5
12659 sed 's/^/| /' conftest.$ac_ext >&5
12660
12661 HAVE_XIM=no
12662 fi
12663
12664 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12665
12666
12667 if test "${with_xim}" != "no"; then
12668
12669 cat >>confdefs.h <<\_ACEOF
12670 #define USE_XIM 1
12671 _ACEOF
12672
12673 fi
12674
12675
12676 if test "${HAVE_XIM}" != "no"; then
12677 late_CFLAGS=$CFLAGS
12678 if test "$GCC" = yes; then
12679 CFLAGS="$CFLAGS --pedantic-errors"
12680 fi
12681 cat >conftest.$ac_ext <<_ACEOF
12682 /* confdefs.h. */
12683 _ACEOF
12684 cat confdefs.h >>conftest.$ac_ext
12685 cat >>conftest.$ac_ext <<_ACEOF
12686 /* end confdefs.h. */
12687
12688 #include <X11/Xlib.h>
12689 #include <X11/Xresource.h>
12690 int
12691 main ()
12692 {
12693 Display *display;
12694 XrmDatabase db;
12695 char *res_name;
12696 char *res_class;
12697 XIMProc callback;
12698 XPointer *client_data;
12699 #ifndef __GNUC__
12700 /* If we're not using GCC, it's probably not XFree86, and this is
12701 probably right, but we can't use something like --pedantic-errors. */
12702 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12703 char*, XIMProc, XPointer*);
12704 #endif
12705 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12706 client_data);
12707 ;
12708 return 0;
12709 }
12710 _ACEOF
12711 rm -f conftest.$ac_objext
12712 if { (ac_try="$ac_compile"
12713 case "(($ac_try" in
12714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12715 *) ac_try_echo=$ac_try;;
12716 esac
12717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12718 (eval "$ac_compile") 2>conftest.er1
12719 ac_status=$?
12720 grep -v '^ *+' conftest.er1 >conftest.err
12721 rm -f conftest.er1
12722 cat conftest.err >&5
12723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12724 (exit $ac_status); } && {
12725 test -z "$ac_c_werror_flag" ||
12726 test ! -s conftest.err
12727 } && test -s conftest.$ac_objext; then
12728 emacs_cv_arg6_star=yes
12729 else
12730 echo "$as_me: failed program was:" >&5
12731 sed 's/^/| /' conftest.$ac_ext >&5
12732
12733
12734 fi
12735
12736 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12737
12738 if test "$emacs_cv_arg6_star" = yes; then
12739 cat >>confdefs.h <<\_ACEOF
12740 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12741 _ACEOF
12742
12743 else
12744 cat >>confdefs.h <<\_ACEOF
12745 #define XRegisterIMInstantiateCallback_arg6 XPointer
12746 _ACEOF
12747
12748 fi
12749 CFLAGS=$late_CFLAGS
12750 fi
12751
12752 ### Use -lXpm if available, unless `--with-xpm=no'.
12753 HAVE_XPM=no
12754 if test "${HAVE_X11}" = "yes"; then
12755 if test "${with_xpm}" != "no"; then
12756 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12757 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12758 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12759 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12760 echo $ECHO_N "(cached) $ECHO_C" >&6
12761 fi
12762 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12763 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12764 else
12765 # Is the header compilable?
12766 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
12767 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
12768 cat >conftest.$ac_ext <<_ACEOF
12769 /* confdefs.h. */
12770 _ACEOF
12771 cat confdefs.h >>conftest.$ac_ext
12772 cat >>conftest.$ac_ext <<_ACEOF
12773 /* end confdefs.h. */
12774 $ac_includes_default
12775 #include <X11/xpm.h>
12776 _ACEOF
12777 rm -f conftest.$ac_objext
12778 if { (ac_try="$ac_compile"
12779 case "(($ac_try" in
12780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12781 *) ac_try_echo=$ac_try;;
12782 esac
12783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12784 (eval "$ac_compile") 2>conftest.er1
12785 ac_status=$?
12786 grep -v '^ *+' conftest.er1 >conftest.err
12787 rm -f conftest.er1
12788 cat conftest.err >&5
12789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12790 (exit $ac_status); } && {
12791 test -z "$ac_c_werror_flag" ||
12792 test ! -s conftest.err
12793 } && test -s conftest.$ac_objext; then
12794 ac_header_compiler=yes
12795 else
12796 echo "$as_me: failed program was:" >&5
12797 sed 's/^/| /' conftest.$ac_ext >&5
12798
12799 ac_header_compiler=no
12800 fi
12801
12802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12803 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12804 echo "${ECHO_T}$ac_header_compiler" >&6; }
12805
12806 # Is the header present?
12807 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
12808 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
12809 cat >conftest.$ac_ext <<_ACEOF
12810 /* confdefs.h. */
12811 _ACEOF
12812 cat confdefs.h >>conftest.$ac_ext
12813 cat >>conftest.$ac_ext <<_ACEOF
12814 /* end confdefs.h. */
12815 #include <X11/xpm.h>
12816 _ACEOF
12817 if { (ac_try="$ac_cpp conftest.$ac_ext"
12818 case "(($ac_try" in
12819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12820 *) ac_try_echo=$ac_try;;
12821 esac
12822 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12823 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12824 ac_status=$?
12825 grep -v '^ *+' conftest.er1 >conftest.err
12826 rm -f conftest.er1
12827 cat conftest.err >&5
12828 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12829 (exit $ac_status); } >/dev/null && {
12830 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12831 test ! -s conftest.err
12832 }; then
12833 ac_header_preproc=yes
12834 else
12835 echo "$as_me: failed program was:" >&5
12836 sed 's/^/| /' conftest.$ac_ext >&5
12837
12838 ac_header_preproc=no
12839 fi
12840
12841 rm -f conftest.err conftest.$ac_ext
12842 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12843 echo "${ECHO_T}$ac_header_preproc" >&6; }
12844
12845 # So? What about this header?
12846 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12847 yes:no: )
12848 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
12849 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12850 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
12851 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
12852 ac_header_preproc=yes
12853 ;;
12854 no:yes:* )
12855 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
12856 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
12857 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
12858 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
12859 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
12860 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
12861 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
12862 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
12863 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
12864 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
12865 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
12866 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
12867
12868 ;;
12869 esac
12870 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
12871 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
12872 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
12873 echo $ECHO_N "(cached) $ECHO_C" >&6
12874 else
12875 ac_cv_header_X11_xpm_h=$ac_header_preproc
12876 fi
12877 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
12878 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
12879
12880 fi
12881 if test $ac_cv_header_X11_xpm_h = yes; then
12882 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
12883 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
12884 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
12885 echo $ECHO_N "(cached) $ECHO_C" >&6
12886 else
12887 ac_check_lib_save_LIBS=$LIBS
12888 LIBS="-lXpm -lX11 $LIBS"
12889 cat >conftest.$ac_ext <<_ACEOF
12890 /* confdefs.h. */
12891 _ACEOF
12892 cat confdefs.h >>conftest.$ac_ext
12893 cat >>conftest.$ac_ext <<_ACEOF
12894 /* end confdefs.h. */
12895
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899 #ifdef __cplusplus
12900 extern "C"
12901 #endif
12902 char XpmReadFileToPixmap ();
12903 int
12904 main ()
12905 {
12906 return XpmReadFileToPixmap ();
12907 ;
12908 return 0;
12909 }
12910 _ACEOF
12911 rm -f conftest.$ac_objext conftest$ac_exeext
12912 if { (ac_try="$ac_link"
12913 case "(($ac_try" in
12914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12915 *) ac_try_echo=$ac_try;;
12916 esac
12917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12918 (eval "$ac_link") 2>conftest.er1
12919 ac_status=$?
12920 grep -v '^ *+' conftest.er1 >conftest.err
12921 rm -f conftest.er1
12922 cat conftest.err >&5
12923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12924 (exit $ac_status); } && {
12925 test -z "$ac_c_werror_flag" ||
12926 test ! -s conftest.err
12927 } && test -s conftest$ac_exeext &&
12928 $as_test_x conftest$ac_exeext; then
12929 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
12930 else
12931 echo "$as_me: failed program was:" >&5
12932 sed 's/^/| /' conftest.$ac_ext >&5
12933
12934 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
12935 fi
12936
12937 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12938 conftest$ac_exeext conftest.$ac_ext
12939 LIBS=$ac_check_lib_save_LIBS
12940 fi
12941 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
12942 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
12943 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
12944 HAVE_XPM=yes
12945 fi
12946
12947 fi
12948
12949
12950 if test "${HAVE_XPM}" = "yes"; then
12951 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
12952 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
12953 cat >conftest.$ac_ext <<_ACEOF
12954 /* confdefs.h. */
12955 _ACEOF
12956 cat confdefs.h >>conftest.$ac_ext
12957 cat >>conftest.$ac_ext <<_ACEOF
12958 /* end confdefs.h. */
12959 #include "X11/xpm.h"
12960 #ifndef XpmReturnAllocPixels
12961 no_return_alloc_pixels
12962 #endif
12963
12964 _ACEOF
12965 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12966 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
12967 HAVE_XPM=no
12968 else
12969 HAVE_XPM=yes
12970 fi
12971 rm -f conftest*
12972
12973
12974 if test "${HAVE_XPM}" = "yes"; then
12975 { echo "$as_me:$LINENO: result: yes" >&5
12976 echo "${ECHO_T}yes" >&6; }
12977 else
12978 { echo "$as_me:$LINENO: result: no" >&5
12979 echo "${ECHO_T}no" >&6; }
12980 fi
12981 fi
12982 fi
12983
12984 if test "${HAVE_XPM}" = "yes"; then
12985
12986 cat >>confdefs.h <<\_ACEOF
12987 #define HAVE_XPM 1
12988 _ACEOF
12989
12990 fi
12991 fi
12992
12993 ### Use -ljpeg if available, unless `--with-jpeg=no'.
12994 HAVE_JPEG=no
12995 if test "${HAVE_X11}" = "yes"; then
12996 if test "${with_jpeg}" != "no"; then
12997 if test "${ac_cv_header_jerror_h+set}" = set; then
12998 { echo "$as_me:$LINENO: checking for jerror.h" >&5
12999 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13000 if test "${ac_cv_header_jerror_h+set}" = set; then
13001 echo $ECHO_N "(cached) $ECHO_C" >&6
13002 fi
13003 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13004 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13005 else
13006 # Is the header compilable?
13007 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13008 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13009 cat >conftest.$ac_ext <<_ACEOF
13010 /* confdefs.h. */
13011 _ACEOF
13012 cat confdefs.h >>conftest.$ac_ext
13013 cat >>conftest.$ac_ext <<_ACEOF
13014 /* end confdefs.h. */
13015 $ac_includes_default
13016 #include <jerror.h>
13017 _ACEOF
13018 rm -f conftest.$ac_objext
13019 if { (ac_try="$ac_compile"
13020 case "(($ac_try" in
13021 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13022 *) ac_try_echo=$ac_try;;
13023 esac
13024 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13025 (eval "$ac_compile") 2>conftest.er1
13026 ac_status=$?
13027 grep -v '^ *+' conftest.er1 >conftest.err
13028 rm -f conftest.er1
13029 cat conftest.err >&5
13030 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13031 (exit $ac_status); } && {
13032 test -z "$ac_c_werror_flag" ||
13033 test ! -s conftest.err
13034 } && test -s conftest.$ac_objext; then
13035 ac_header_compiler=yes
13036 else
13037 echo "$as_me: failed program was:" >&5
13038 sed 's/^/| /' conftest.$ac_ext >&5
13039
13040 ac_header_compiler=no
13041 fi
13042
13043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13044 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13045 echo "${ECHO_T}$ac_header_compiler" >&6; }
13046
13047 # Is the header present?
13048 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13049 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13050 cat >conftest.$ac_ext <<_ACEOF
13051 /* confdefs.h. */
13052 _ACEOF
13053 cat confdefs.h >>conftest.$ac_ext
13054 cat >>conftest.$ac_ext <<_ACEOF
13055 /* end confdefs.h. */
13056 #include <jerror.h>
13057 _ACEOF
13058 if { (ac_try="$ac_cpp conftest.$ac_ext"
13059 case "(($ac_try" in
13060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13061 *) ac_try_echo=$ac_try;;
13062 esac
13063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13064 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13065 ac_status=$?
13066 grep -v '^ *+' conftest.er1 >conftest.err
13067 rm -f conftest.er1
13068 cat conftest.err >&5
13069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13070 (exit $ac_status); } >/dev/null && {
13071 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13072 test ! -s conftest.err
13073 }; then
13074 ac_header_preproc=yes
13075 else
13076 echo "$as_me: failed program was:" >&5
13077 sed 's/^/| /' conftest.$ac_ext >&5
13078
13079 ac_header_preproc=no
13080 fi
13081
13082 rm -f conftest.err conftest.$ac_ext
13083 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13084 echo "${ECHO_T}$ac_header_preproc" >&6; }
13085
13086 # So? What about this header?
13087 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13088 yes:no: )
13089 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13090 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13091 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13092 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13093 ac_header_preproc=yes
13094 ;;
13095 no:yes:* )
13096 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13097 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13098 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13099 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13100 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13101 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13102 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13103 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13104 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13105 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13106 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13107 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13108
13109 ;;
13110 esac
13111 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13112 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13113 if test "${ac_cv_header_jerror_h+set}" = set; then
13114 echo $ECHO_N "(cached) $ECHO_C" >&6
13115 else
13116 ac_cv_header_jerror_h=$ac_header_preproc
13117 fi
13118 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13119 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13120
13121 fi
13122 if test $ac_cv_header_jerror_h = yes; then
13123 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13124 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13125 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13126 echo $ECHO_N "(cached) $ECHO_C" >&6
13127 else
13128 ac_check_lib_save_LIBS=$LIBS
13129 LIBS="-ljpeg $LIBS"
13130 cat >conftest.$ac_ext <<_ACEOF
13131 /* confdefs.h. */
13132 _ACEOF
13133 cat confdefs.h >>conftest.$ac_ext
13134 cat >>conftest.$ac_ext <<_ACEOF
13135 /* end confdefs.h. */
13136
13137 /* Override any GCC internal prototype to avoid an error.
13138 Use char because int might match the return type of a GCC
13139 builtin and then its argument prototype would still apply. */
13140 #ifdef __cplusplus
13141 extern "C"
13142 #endif
13143 char jpeg_destroy_compress ();
13144 int
13145 main ()
13146 {
13147 return jpeg_destroy_compress ();
13148 ;
13149 return 0;
13150 }
13151 _ACEOF
13152 rm -f conftest.$ac_objext conftest$ac_exeext
13153 if { (ac_try="$ac_link"
13154 case "(($ac_try" in
13155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13156 *) ac_try_echo=$ac_try;;
13157 esac
13158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13159 (eval "$ac_link") 2>conftest.er1
13160 ac_status=$?
13161 grep -v '^ *+' conftest.er1 >conftest.err
13162 rm -f conftest.er1
13163 cat conftest.err >&5
13164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13165 (exit $ac_status); } && {
13166 test -z "$ac_c_werror_flag" ||
13167 test ! -s conftest.err
13168 } && test -s conftest$ac_exeext &&
13169 $as_test_x conftest$ac_exeext; then
13170 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13171 else
13172 echo "$as_me: failed program was:" >&5
13173 sed 's/^/| /' conftest.$ac_ext >&5
13174
13175 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13176 fi
13177
13178 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13179 conftest$ac_exeext conftest.$ac_ext
13180 LIBS=$ac_check_lib_save_LIBS
13181 fi
13182 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13183 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13184 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13185 HAVE_JPEG=yes
13186 fi
13187
13188 fi
13189
13190
13191 fi
13192
13193
13194 if test "${HAVE_JPEG}" = "yes"; then
13195 cat >>confdefs.h <<\_ACEOF
13196 #define HAVE_JPEG 1
13197 _ACEOF
13198
13199 cat >conftest.$ac_ext <<_ACEOF
13200 /* confdefs.h. */
13201 _ACEOF
13202 cat confdefs.h >>conftest.$ac_ext
13203 cat >>conftest.$ac_ext <<_ACEOF
13204 /* end confdefs.h. */
13205 #include <jpeglib.h>
13206 version=JPEG_LIB_VERSION
13207
13208 _ACEOF
13209 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13210 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13211 cat >>confdefs.h <<\_ACEOF
13212 #define HAVE_JPEG 1
13213 _ACEOF
13214
13215 else
13216 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13217 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13218 HAVE_JPEG=no
13219 fi
13220 rm -f conftest*
13221
13222 fi
13223 fi
13224
13225 ### Use -lpng if available, unless `--with-png=no'.
13226 HAVE_PNG=no
13227 if test "${HAVE_X11}" = "yes"; then
13228 if test "${with_png}" != "no"; then
13229 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13230 # in /usr/include/libpng.
13231
13232
13233 for ac_header in png.h libpng/png.h
13234 do
13235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13237 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13240 echo $ECHO_N "(cached) $ECHO_C" >&6
13241 fi
13242 ac_res=`eval echo '${'$as_ac_Header'}'`
13243 { echo "$as_me:$LINENO: result: $ac_res" >&5
13244 echo "${ECHO_T}$ac_res" >&6; }
13245 else
13246 # Is the header compilable?
13247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13249 cat >conftest.$ac_ext <<_ACEOF
13250 /* confdefs.h. */
13251 _ACEOF
13252 cat confdefs.h >>conftest.$ac_ext
13253 cat >>conftest.$ac_ext <<_ACEOF
13254 /* end confdefs.h. */
13255 $ac_includes_default
13256 #include <$ac_header>
13257 _ACEOF
13258 rm -f conftest.$ac_objext
13259 if { (ac_try="$ac_compile"
13260 case "(($ac_try" in
13261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13262 *) ac_try_echo=$ac_try;;
13263 esac
13264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13265 (eval "$ac_compile") 2>conftest.er1
13266 ac_status=$?
13267 grep -v '^ *+' conftest.er1 >conftest.err
13268 rm -f conftest.er1
13269 cat conftest.err >&5
13270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13271 (exit $ac_status); } && {
13272 test -z "$ac_c_werror_flag" ||
13273 test ! -s conftest.err
13274 } && test -s conftest.$ac_objext; then
13275 ac_header_compiler=yes
13276 else
13277 echo "$as_me: failed program was:" >&5
13278 sed 's/^/| /' conftest.$ac_ext >&5
13279
13280 ac_header_compiler=no
13281 fi
13282
13283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13285 echo "${ECHO_T}$ac_header_compiler" >&6; }
13286
13287 # Is the header present?
13288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13290 cat >conftest.$ac_ext <<_ACEOF
13291 /* confdefs.h. */
13292 _ACEOF
13293 cat confdefs.h >>conftest.$ac_ext
13294 cat >>conftest.$ac_ext <<_ACEOF
13295 /* end confdefs.h. */
13296 #include <$ac_header>
13297 _ACEOF
13298 if { (ac_try="$ac_cpp conftest.$ac_ext"
13299 case "(($ac_try" in
13300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13301 *) ac_try_echo=$ac_try;;
13302 esac
13303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13304 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13305 ac_status=$?
13306 grep -v '^ *+' conftest.er1 >conftest.err
13307 rm -f conftest.er1
13308 cat conftest.err >&5
13309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13310 (exit $ac_status); } >/dev/null && {
13311 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13312 test ! -s conftest.err
13313 }; then
13314 ac_header_preproc=yes
13315 else
13316 echo "$as_me: failed program was:" >&5
13317 sed 's/^/| /' conftest.$ac_ext >&5
13318
13319 ac_header_preproc=no
13320 fi
13321
13322 rm -f conftest.err conftest.$ac_ext
13323 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13324 echo "${ECHO_T}$ac_header_preproc" >&6; }
13325
13326 # So? What about this header?
13327 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13328 yes:no: )
13329 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13330 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13331 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13332 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13333 ac_header_preproc=yes
13334 ;;
13335 no:yes:* )
13336 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13337 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13338 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13339 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13340 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13341 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13342 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13343 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13344 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13345 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13346 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13347 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13348
13349 ;;
13350 esac
13351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 else
13356 eval "$as_ac_Header=\$ac_header_preproc"
13357 fi
13358 ac_res=`eval echo '${'$as_ac_Header'}'`
13359 { echo "$as_me:$LINENO: result: $ac_res" >&5
13360 echo "${ECHO_T}$ac_res" >&6; }
13361
13362 fi
13363 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13364 cat >>confdefs.h <<_ACEOF
13365 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13366 _ACEOF
13367
13368 fi
13369
13370 done
13371
13372 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13373 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13374 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13375 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13376 echo $ECHO_N "(cached) $ECHO_C" >&6
13377 else
13378 ac_check_lib_save_LIBS=$LIBS
13379 LIBS="-lpng -lz -lm $LIBS"
13380 cat >conftest.$ac_ext <<_ACEOF
13381 /* confdefs.h. */
13382 _ACEOF
13383 cat confdefs.h >>conftest.$ac_ext
13384 cat >>conftest.$ac_ext <<_ACEOF
13385 /* end confdefs.h. */
13386
13387 /* Override any GCC internal prototype to avoid an error.
13388 Use char because int might match the return type of a GCC
13389 builtin and then its argument prototype would still apply. */
13390 #ifdef __cplusplus
13391 extern "C"
13392 #endif
13393 char png_get_channels ();
13394 int
13395 main ()
13396 {
13397 return png_get_channels ();
13398 ;
13399 return 0;
13400 }
13401 _ACEOF
13402 rm -f conftest.$ac_objext conftest$ac_exeext
13403 if { (ac_try="$ac_link"
13404 case "(($ac_try" in
13405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13406 *) ac_try_echo=$ac_try;;
13407 esac
13408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13409 (eval "$ac_link") 2>conftest.er1
13410 ac_status=$?
13411 grep -v '^ *+' conftest.er1 >conftest.err
13412 rm -f conftest.er1
13413 cat conftest.err >&5
13414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13415 (exit $ac_status); } && {
13416 test -z "$ac_c_werror_flag" ||
13417 test ! -s conftest.err
13418 } && test -s conftest$ac_exeext &&
13419 $as_test_x conftest$ac_exeext; then
13420 ac_cv_lib_png_png_get_channels=yes
13421 else
13422 echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425 ac_cv_lib_png_png_get_channels=no
13426 fi
13427
13428 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13429 conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13431 fi
13432 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13433 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13434 if test $ac_cv_lib_png_png_get_channels = yes; then
13435 HAVE_PNG=yes
13436 fi
13437
13438 fi
13439 fi
13440
13441 if test "${HAVE_PNG}" = "yes"; then
13442
13443 cat >>confdefs.h <<\_ACEOF
13444 #define HAVE_PNG 1
13445 _ACEOF
13446
13447 fi
13448 fi
13449
13450 ### Use -ltiff if available, unless `--with-tiff=no'.
13451 HAVE_TIFF=no
13452 if test "${HAVE_X11}" = "yes"; then
13453 if test "${with_tiff}" != "no"; then
13454 if test "${ac_cv_header_tiffio_h+set}" = set; then
13455 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13456 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13457 if test "${ac_cv_header_tiffio_h+set}" = set; then
13458 echo $ECHO_N "(cached) $ECHO_C" >&6
13459 fi
13460 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13461 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13462 else
13463 # Is the header compilable?
13464 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13465 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13466 cat >conftest.$ac_ext <<_ACEOF
13467 /* confdefs.h. */
13468 _ACEOF
13469 cat confdefs.h >>conftest.$ac_ext
13470 cat >>conftest.$ac_ext <<_ACEOF
13471 /* end confdefs.h. */
13472 $ac_includes_default
13473 #include <tiffio.h>
13474 _ACEOF
13475 rm -f conftest.$ac_objext
13476 if { (ac_try="$ac_compile"
13477 case "(($ac_try" in
13478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13479 *) ac_try_echo=$ac_try;;
13480 esac
13481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13482 (eval "$ac_compile") 2>conftest.er1
13483 ac_status=$?
13484 grep -v '^ *+' conftest.er1 >conftest.err
13485 rm -f conftest.er1
13486 cat conftest.err >&5
13487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13488 (exit $ac_status); } && {
13489 test -z "$ac_c_werror_flag" ||
13490 test ! -s conftest.err
13491 } && test -s conftest.$ac_objext; then
13492 ac_header_compiler=yes
13493 else
13494 echo "$as_me: failed program was:" >&5
13495 sed 's/^/| /' conftest.$ac_ext >&5
13496
13497 ac_header_compiler=no
13498 fi
13499
13500 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13501 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13502 echo "${ECHO_T}$ac_header_compiler" >&6; }
13503
13504 # Is the header present?
13505 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13506 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13507 cat >conftest.$ac_ext <<_ACEOF
13508 /* confdefs.h. */
13509 _ACEOF
13510 cat confdefs.h >>conftest.$ac_ext
13511 cat >>conftest.$ac_ext <<_ACEOF
13512 /* end confdefs.h. */
13513 #include <tiffio.h>
13514 _ACEOF
13515 if { (ac_try="$ac_cpp conftest.$ac_ext"
13516 case "(($ac_try" in
13517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13518 *) ac_try_echo=$ac_try;;
13519 esac
13520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13521 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13522 ac_status=$?
13523 grep -v '^ *+' conftest.er1 >conftest.err
13524 rm -f conftest.er1
13525 cat conftest.err >&5
13526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13527 (exit $ac_status); } >/dev/null && {
13528 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13529 test ! -s conftest.err
13530 }; then
13531 ac_header_preproc=yes
13532 else
13533 echo "$as_me: failed program was:" >&5
13534 sed 's/^/| /' conftest.$ac_ext >&5
13535
13536 ac_header_preproc=no
13537 fi
13538
13539 rm -f conftest.err conftest.$ac_ext
13540 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13541 echo "${ECHO_T}$ac_header_preproc" >&6; }
13542
13543 # So? What about this header?
13544 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13545 yes:no: )
13546 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13547 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13548 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13549 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13550 ac_header_preproc=yes
13551 ;;
13552 no:yes:* )
13553 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13554 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13555 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13556 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13557 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13558 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13559 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13560 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13561 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13562 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13563 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13564 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13565
13566 ;;
13567 esac
13568 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13569 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13570 if test "${ac_cv_header_tiffio_h+set}" = set; then
13571 echo $ECHO_N "(cached) $ECHO_C" >&6
13572 else
13573 ac_cv_header_tiffio_h=$ac_header_preproc
13574 fi
13575 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13576 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13577
13578 fi
13579 if test $ac_cv_header_tiffio_h = yes; then
13580 tifflibs="-lz -lm"
13581 # At least one tiff package requires the jpeg library.
13582 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13583 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13584 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13585 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13586 echo $ECHO_N "(cached) $ECHO_C" >&6
13587 else
13588 ac_check_lib_save_LIBS=$LIBS
13589 LIBS="-ltiff $tifflibs $LIBS"
13590 cat >conftest.$ac_ext <<_ACEOF
13591 /* confdefs.h. */
13592 _ACEOF
13593 cat confdefs.h >>conftest.$ac_ext
13594 cat >>conftest.$ac_ext <<_ACEOF
13595 /* end confdefs.h. */
13596
13597 /* Override any GCC internal prototype to avoid an error.
13598 Use char because int might match the return type of a GCC
13599 builtin and then its argument prototype would still apply. */
13600 #ifdef __cplusplus
13601 extern "C"
13602 #endif
13603 char TIFFGetVersion ();
13604 int
13605 main ()
13606 {
13607 return TIFFGetVersion ();
13608 ;
13609 return 0;
13610 }
13611 _ACEOF
13612 rm -f conftest.$ac_objext conftest$ac_exeext
13613 if { (ac_try="$ac_link"
13614 case "(($ac_try" in
13615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13616 *) ac_try_echo=$ac_try;;
13617 esac
13618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13619 (eval "$ac_link") 2>conftest.er1
13620 ac_status=$?
13621 grep -v '^ *+' conftest.er1 >conftest.err
13622 rm -f conftest.er1
13623 cat conftest.err >&5
13624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13625 (exit $ac_status); } && {
13626 test -z "$ac_c_werror_flag" ||
13627 test ! -s conftest.err
13628 } && test -s conftest$ac_exeext &&
13629 $as_test_x conftest$ac_exeext; then
13630 ac_cv_lib_tiff_TIFFGetVersion=yes
13631 else
13632 echo "$as_me: failed program was:" >&5
13633 sed 's/^/| /' conftest.$ac_ext >&5
13634
13635 ac_cv_lib_tiff_TIFFGetVersion=no
13636 fi
13637
13638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13639 conftest$ac_exeext conftest.$ac_ext
13640 LIBS=$ac_check_lib_save_LIBS
13641 fi
13642 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13643 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13644 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13645 HAVE_TIFF=yes
13646 fi
13647
13648 fi
13649
13650
13651 fi
13652
13653 if test "${HAVE_TIFF}" = "yes"; then
13654
13655 cat >>confdefs.h <<\_ACEOF
13656 #define HAVE_TIFF 1
13657 _ACEOF
13658
13659 fi
13660 fi
13661
13662 ### Use -lgif if available, unless `--with-gif=no'.
13663 HAVE_GIF=no
13664 if test "${HAVE_X11}" = "yes"; then
13665 if test "${with_gif}" != "no"; then
13666 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13667 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13668 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13669 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13670 echo $ECHO_N "(cached) $ECHO_C" >&6
13671 fi
13672 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13673 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13674 else
13675 # Is the header compilable?
13676 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13677 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13678 cat >conftest.$ac_ext <<_ACEOF
13679 /* confdefs.h. */
13680 _ACEOF
13681 cat confdefs.h >>conftest.$ac_ext
13682 cat >>conftest.$ac_ext <<_ACEOF
13683 /* end confdefs.h. */
13684 $ac_includes_default
13685 #include <gif_lib.h>
13686 _ACEOF
13687 rm -f conftest.$ac_objext
13688 if { (ac_try="$ac_compile"
13689 case "(($ac_try" in
13690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13691 *) ac_try_echo=$ac_try;;
13692 esac
13693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13694 (eval "$ac_compile") 2>conftest.er1
13695 ac_status=$?
13696 grep -v '^ *+' conftest.er1 >conftest.err
13697 rm -f conftest.er1
13698 cat conftest.err >&5
13699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13700 (exit $ac_status); } && {
13701 test -z "$ac_c_werror_flag" ||
13702 test ! -s conftest.err
13703 } && test -s conftest.$ac_objext; then
13704 ac_header_compiler=yes
13705 else
13706 echo "$as_me: failed program was:" >&5
13707 sed 's/^/| /' conftest.$ac_ext >&5
13708
13709 ac_header_compiler=no
13710 fi
13711
13712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13713 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13714 echo "${ECHO_T}$ac_header_compiler" >&6; }
13715
13716 # Is the header present?
13717 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
13718 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
13719 cat >conftest.$ac_ext <<_ACEOF
13720 /* confdefs.h. */
13721 _ACEOF
13722 cat confdefs.h >>conftest.$ac_ext
13723 cat >>conftest.$ac_ext <<_ACEOF
13724 /* end confdefs.h. */
13725 #include <gif_lib.h>
13726 _ACEOF
13727 if { (ac_try="$ac_cpp conftest.$ac_ext"
13728 case "(($ac_try" in
13729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13730 *) ac_try_echo=$ac_try;;
13731 esac
13732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13733 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13734 ac_status=$?
13735 grep -v '^ *+' conftest.er1 >conftest.err
13736 rm -f conftest.er1
13737 cat conftest.err >&5
13738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13739 (exit $ac_status); } >/dev/null && {
13740 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13741 test ! -s conftest.err
13742 }; then
13743 ac_header_preproc=yes
13744 else
13745 echo "$as_me: failed program was:" >&5
13746 sed 's/^/| /' conftest.$ac_ext >&5
13747
13748 ac_header_preproc=no
13749 fi
13750
13751 rm -f conftest.err conftest.$ac_ext
13752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13753 echo "${ECHO_T}$ac_header_preproc" >&6; }
13754
13755 # So? What about this header?
13756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13757 yes:no: )
13758 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
13759 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
13761 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
13762 ac_header_preproc=yes
13763 ;;
13764 no:yes:* )
13765 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
13766 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
13767 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
13768 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
13769 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
13770 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
13771 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
13772 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
13773 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
13774 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
13775 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
13776 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
13777
13778 ;;
13779 esac
13780 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13781 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13782 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13783 echo $ECHO_N "(cached) $ECHO_C" >&6
13784 else
13785 ac_cv_header_gif_lib_h=$ac_header_preproc
13786 fi
13787 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13788 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13789
13790 fi
13791 if test $ac_cv_header_gif_lib_h = yes; then
13792 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
13793 # Earlier versions can crash Emacs.
13794 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
13795 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
13796 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
13797 echo $ECHO_N "(cached) $ECHO_C" >&6
13798 else
13799 ac_check_lib_save_LIBS=$LIBS
13800 LIBS="-lungif $LIBS"
13801 cat >conftest.$ac_ext <<_ACEOF
13802 /* confdefs.h. */
13803 _ACEOF
13804 cat confdefs.h >>conftest.$ac_ext
13805 cat >>conftest.$ac_ext <<_ACEOF
13806 /* end confdefs.h. */
13807
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char EGifPutExtensionLast ();
13815 int
13816 main ()
13817 {
13818 return EGifPutExtensionLast ();
13819 ;
13820 return 0;
13821 }
13822 _ACEOF
13823 rm -f conftest.$ac_objext conftest$ac_exeext
13824 if { (ac_try="$ac_link"
13825 case "(($ac_try" in
13826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13827 *) ac_try_echo=$ac_try;;
13828 esac
13829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13830 (eval "$ac_link") 2>conftest.er1
13831 ac_status=$?
13832 grep -v '^ *+' conftest.er1 >conftest.err
13833 rm -f conftest.er1
13834 cat conftest.err >&5
13835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13836 (exit $ac_status); } && {
13837 test -z "$ac_c_werror_flag" ||
13838 test ! -s conftest.err
13839 } && test -s conftest$ac_exeext &&
13840 $as_test_x conftest$ac_exeext; then
13841 ac_cv_lib_ungif_EGifPutExtensionLast=yes
13842 else
13843 echo "$as_me: failed program was:" >&5
13844 sed 's/^/| /' conftest.$ac_ext >&5
13845
13846 ac_cv_lib_ungif_EGifPutExtensionLast=no
13847 fi
13848
13849 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13852 fi
13853 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
13854 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
13855 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
13856 HAVE_GIF=yes
13857 fi
13858
13859 fi
13860
13861
13862 fi
13863
13864 if test "${HAVE_GIF}" = "yes"; then
13865
13866 cat >>confdefs.h <<\_ACEOF
13867 #define HAVE_GIF 1
13868 _ACEOF
13869
13870 fi
13871 fi
13872
13873 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13874 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13875 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13876 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13877 echo $ECHO_N "(cached) $ECHO_C" >&6
13878 fi
13879 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13880 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13881 else
13882 # Is the header compilable?
13883 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
13884 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
13885 cat >conftest.$ac_ext <<_ACEOF
13886 /* confdefs.h. */
13887 _ACEOF
13888 cat confdefs.h >>conftest.$ac_ext
13889 cat >>conftest.$ac_ext <<_ACEOF
13890 /* end confdefs.h. */
13891 $ac_includes_default
13892 #include <malloc/malloc.h>
13893 _ACEOF
13894 rm -f conftest.$ac_objext
13895 if { (ac_try="$ac_compile"
13896 case "(($ac_try" in
13897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13898 *) ac_try_echo=$ac_try;;
13899 esac
13900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13901 (eval "$ac_compile") 2>conftest.er1
13902 ac_status=$?
13903 grep -v '^ *+' conftest.er1 >conftest.err
13904 rm -f conftest.er1
13905 cat conftest.err >&5
13906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13907 (exit $ac_status); } && {
13908 test -z "$ac_c_werror_flag" ||
13909 test ! -s conftest.err
13910 } && test -s conftest.$ac_objext; then
13911 ac_header_compiler=yes
13912 else
13913 echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916 ac_header_compiler=no
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13920 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13921 echo "${ECHO_T}$ac_header_compiler" >&6; }
13922
13923 # Is the header present?
13924 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
13925 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
13926 cat >conftest.$ac_ext <<_ACEOF
13927 /* confdefs.h. */
13928 _ACEOF
13929 cat confdefs.h >>conftest.$ac_ext
13930 cat >>conftest.$ac_ext <<_ACEOF
13931 /* end confdefs.h. */
13932 #include <malloc/malloc.h>
13933 _ACEOF
13934 if { (ac_try="$ac_cpp conftest.$ac_ext"
13935 case "(($ac_try" in
13936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13937 *) ac_try_echo=$ac_try;;
13938 esac
13939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13940 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13941 ac_status=$?
13942 grep -v '^ *+' conftest.er1 >conftest.err
13943 rm -f conftest.er1
13944 cat conftest.err >&5
13945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13946 (exit $ac_status); } >/dev/null && {
13947 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13948 test ! -s conftest.err
13949 }; then
13950 ac_header_preproc=yes
13951 else
13952 echo "$as_me: failed program was:" >&5
13953 sed 's/^/| /' conftest.$ac_ext >&5
13954
13955 ac_header_preproc=no
13956 fi
13957
13958 rm -f conftest.err conftest.$ac_ext
13959 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13960 echo "${ECHO_T}$ac_header_preproc" >&6; }
13961
13962 # So? What about this header?
13963 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13964 yes:no: )
13965 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
13966 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13967 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
13968 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
13969 ac_header_preproc=yes
13970 ;;
13971 no:yes:* )
13972 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
13973 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
13974 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
13975 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
13976 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
13977 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
13978 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
13979 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
13980 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
13981 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
13982 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
13983 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
13984
13985 ;;
13986 esac
13987 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
13988 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
13989 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
13990 echo $ECHO_N "(cached) $ECHO_C" >&6
13991 else
13992 ac_cv_header_malloc_malloc_h=$ac_header_preproc
13993 fi
13994 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
13995 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
13996
13997 fi
13998 if test $ac_cv_header_malloc_malloc_h = yes; then
13999
14000 cat >>confdefs.h <<\_ACEOF
14001 #define HAVE_MALLOC_MALLOC_H 1
14002 _ACEOF
14003
14004 fi
14005
14006
14007
14008 ### Use Mac OS X Carbon API to implement GUI.
14009 if test "${HAVE_CARBON}" = "yes"; then
14010
14011 cat >>confdefs.h <<\_ACEOF
14012 #define HAVE_CARBON 1
14013 _ACEOF
14014
14015 ## Specify the install directory
14016 carbon_appdir=
14017 if test "${carbon_appdir_x}" != ""; then
14018 case ${carbon_appdir_x} in
14019 y | ye | yes) carbon_appdir=/Applications ;;
14020 * ) carbon_appdir=${carbon_appdir_x} ;;
14021 esac
14022 fi
14023 # We also have mouse menus.
14024 HAVE_MENUS=yes
14025 fi
14026
14027 ### Use session management (-lSM -lICE) if available
14028 HAVE_X_SM=no
14029 if test "${HAVE_X11}" = "yes"; then
14030 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14031 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14032 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14033 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14034 echo $ECHO_N "(cached) $ECHO_C" >&6
14035 fi
14036 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14037 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14038 else
14039 # Is the header compilable?
14040 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14041 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14042 cat >conftest.$ac_ext <<_ACEOF
14043 /* confdefs.h. */
14044 _ACEOF
14045 cat confdefs.h >>conftest.$ac_ext
14046 cat >>conftest.$ac_ext <<_ACEOF
14047 /* end confdefs.h. */
14048 $ac_includes_default
14049 #include <X11/SM/SMlib.h>
14050 _ACEOF
14051 rm -f conftest.$ac_objext
14052 if { (ac_try="$ac_compile"
14053 case "(($ac_try" in
14054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14055 *) ac_try_echo=$ac_try;;
14056 esac
14057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14058 (eval "$ac_compile") 2>conftest.er1
14059 ac_status=$?
14060 grep -v '^ *+' conftest.er1 >conftest.err
14061 rm -f conftest.er1
14062 cat conftest.err >&5
14063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14064 (exit $ac_status); } && {
14065 test -z "$ac_c_werror_flag" ||
14066 test ! -s conftest.err
14067 } && test -s conftest.$ac_objext; then
14068 ac_header_compiler=yes
14069 else
14070 echo "$as_me: failed program was:" >&5
14071 sed 's/^/| /' conftest.$ac_ext >&5
14072
14073 ac_header_compiler=no
14074 fi
14075
14076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14078 echo "${ECHO_T}$ac_header_compiler" >&6; }
14079
14080 # Is the header present?
14081 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14082 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14083 cat >conftest.$ac_ext <<_ACEOF
14084 /* confdefs.h. */
14085 _ACEOF
14086 cat confdefs.h >>conftest.$ac_ext
14087 cat >>conftest.$ac_ext <<_ACEOF
14088 /* end confdefs.h. */
14089 #include <X11/SM/SMlib.h>
14090 _ACEOF
14091 if { (ac_try="$ac_cpp conftest.$ac_ext"
14092 case "(($ac_try" in
14093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14094 *) ac_try_echo=$ac_try;;
14095 esac
14096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14098 ac_status=$?
14099 grep -v '^ *+' conftest.er1 >conftest.err
14100 rm -f conftest.er1
14101 cat conftest.err >&5
14102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14103 (exit $ac_status); } >/dev/null && {
14104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14105 test ! -s conftest.err
14106 }; then
14107 ac_header_preproc=yes
14108 else
14109 echo "$as_me: failed program was:" >&5
14110 sed 's/^/| /' conftest.$ac_ext >&5
14111
14112 ac_header_preproc=no
14113 fi
14114
14115 rm -f conftest.err conftest.$ac_ext
14116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14117 echo "${ECHO_T}$ac_header_preproc" >&6; }
14118
14119 # So? What about this header?
14120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14121 yes:no: )
14122 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14123 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14125 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14126 ac_header_preproc=yes
14127 ;;
14128 no:yes:* )
14129 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14130 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14131 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14132 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14133 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14134 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14135 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14136 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14137 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14138 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14139 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14140 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14141
14142 ;;
14143 esac
14144 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14145 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14146 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14147 echo $ECHO_N "(cached) $ECHO_C" >&6
14148 else
14149 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14150 fi
14151 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14152 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14153
14154 fi
14155 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14156 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14157 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lSM -lICE $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char SmcOpenConnection ();
14177 int
14178 main ()
14179 {
14180 return SmcOpenConnection ();
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest$ac_exeext &&
14202 $as_test_x conftest$ac_exeext; then
14203 ac_cv_lib_SM_SmcOpenConnection=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_lib_SM_SmcOpenConnection=no
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14214 fi
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14216 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14217 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14218 HAVE_X_SM=yes
14219 fi
14220
14221 fi
14222
14223
14224
14225 if test "${HAVE_X_SM}" = "yes"; then
14226
14227 cat >>confdefs.h <<\_ACEOF
14228 #define HAVE_X_SM 1
14229 _ACEOF
14230
14231 case "$LIBS" in
14232 *-lSM*) ;;
14233 *) LIBS="-lSM -lICE $LIBS" ;;
14234 esac
14235 fi
14236 fi
14237
14238 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14239 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14240 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14241 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14242 echo $ECHO_N "(cached) $ECHO_C" >&6
14243 else
14244 cat >conftest.$ac_ext <<_ACEOF
14245 /* confdefs.h. */
14246 _ACEOF
14247 cat confdefs.h >>conftest.$ac_ext
14248 cat >>conftest.$ac_ext <<_ACEOF
14249 /* end confdefs.h. */
14250 #include <netdb.h>
14251 int
14252 main ()
14253 {
14254 return h_errno;
14255 ;
14256 return 0;
14257 }
14258 _ACEOF
14259 rm -f conftest.$ac_objext conftest$ac_exeext
14260 if { (ac_try="$ac_link"
14261 case "(($ac_try" in
14262 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14263 *) ac_try_echo=$ac_try;;
14264 esac
14265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14266 (eval "$ac_link") 2>conftest.er1
14267 ac_status=$?
14268 grep -v '^ *+' conftest.er1 >conftest.err
14269 rm -f conftest.er1
14270 cat conftest.err >&5
14271 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14272 (exit $ac_status); } && {
14273 test -z "$ac_c_werror_flag" ||
14274 test ! -s conftest.err
14275 } && test -s conftest$ac_exeext &&
14276 $as_test_x conftest$ac_exeext; then
14277 emacs_cv_netdb_declares_h_errno=yes
14278 else
14279 echo "$as_me: failed program was:" >&5
14280 sed 's/^/| /' conftest.$ac_ext >&5
14281
14282 emacs_cv_netdb_declares_h_errno=no
14283 fi
14284
14285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14286 conftest$ac_exeext conftest.$ac_ext
14287 fi
14288 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14289 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14290 if test $emacs_cv_netdb_declares_h_errno = yes; then
14291
14292 cat >>confdefs.h <<\_ACEOF
14293 #define HAVE_H_ERRNO 1
14294 _ACEOF
14295
14296 fi
14297
14298 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14299 # for constant arguments. Useless!
14300 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14301 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14302 if test "${ac_cv_working_alloca_h+set}" = set; then
14303 echo $ECHO_N "(cached) $ECHO_C" >&6
14304 else
14305 cat >conftest.$ac_ext <<_ACEOF
14306 /* confdefs.h. */
14307 _ACEOF
14308 cat confdefs.h >>conftest.$ac_ext
14309 cat >>conftest.$ac_ext <<_ACEOF
14310 /* end confdefs.h. */
14311 #include <alloca.h>
14312 int
14313 main ()
14314 {
14315 char *p = (char *) alloca (2 * sizeof (int));
14316 if (p) return 0;
14317 ;
14318 return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest$ac_exeext &&
14338 $as_test_x conftest$ac_exeext; then
14339 ac_cv_working_alloca_h=yes
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_cv_working_alloca_h=no
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348 conftest$ac_exeext conftest.$ac_ext
14349 fi
14350 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14351 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14352 if test $ac_cv_working_alloca_h = yes; then
14353
14354 cat >>confdefs.h <<\_ACEOF
14355 #define HAVE_ALLOCA_H 1
14356 _ACEOF
14357
14358 fi
14359
14360 { echo "$as_me:$LINENO: checking for alloca" >&5
14361 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14362 if test "${ac_cv_func_alloca_works+set}" = set; then
14363 echo $ECHO_N "(cached) $ECHO_C" >&6
14364 else
14365 cat >conftest.$ac_ext <<_ACEOF
14366 /* confdefs.h. */
14367 _ACEOF
14368 cat confdefs.h >>conftest.$ac_ext
14369 cat >>conftest.$ac_ext <<_ACEOF
14370 /* end confdefs.h. */
14371 #ifdef __GNUC__
14372 # define alloca __builtin_alloca
14373 #else
14374 # ifdef _MSC_VER
14375 # include <malloc.h>
14376 # define alloca _alloca
14377 # else
14378 # ifdef HAVE_ALLOCA_H
14379 # include <alloca.h>
14380 # else
14381 # ifdef _AIX
14382 #pragma alloca
14383 # else
14384 # ifndef alloca /* predefined by HP cc +Olibcalls */
14385 char *alloca ();
14386 # endif
14387 # endif
14388 # endif
14389 # endif
14390 #endif
14391
14392 int
14393 main ()
14394 {
14395 char *p = (char *) alloca (1);
14396 if (p) return 0;
14397 ;
14398 return 0;
14399 }
14400 _ACEOF
14401 rm -f conftest.$ac_objext conftest$ac_exeext
14402 if { (ac_try="$ac_link"
14403 case "(($ac_try" in
14404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14405 *) ac_try_echo=$ac_try;;
14406 esac
14407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14408 (eval "$ac_link") 2>conftest.er1
14409 ac_status=$?
14410 grep -v '^ *+' conftest.er1 >conftest.err
14411 rm -f conftest.er1
14412 cat conftest.err >&5
14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14414 (exit $ac_status); } && {
14415 test -z "$ac_c_werror_flag" ||
14416 test ! -s conftest.err
14417 } && test -s conftest$ac_exeext &&
14418 $as_test_x conftest$ac_exeext; then
14419 ac_cv_func_alloca_works=yes
14420 else
14421 echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424 ac_cv_func_alloca_works=no
14425 fi
14426
14427 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14428 conftest$ac_exeext conftest.$ac_ext
14429 fi
14430 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14431 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14432
14433 if test $ac_cv_func_alloca_works = yes; then
14434
14435 cat >>confdefs.h <<\_ACEOF
14436 #define HAVE_ALLOCA 1
14437 _ACEOF
14438
14439 else
14440 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14441 # that cause trouble. Some versions do not even contain alloca or
14442 # contain a buggy version. If you still want to use their alloca,
14443 # use ar to extract alloca.o from them instead of compiling alloca.c.
14444
14445 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14446
14447 cat >>confdefs.h <<\_ACEOF
14448 #define C_ALLOCA 1
14449 _ACEOF
14450
14451
14452 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14453 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14454 if test "${ac_cv_os_cray+set}" = set; then
14455 echo $ECHO_N "(cached) $ECHO_C" >&6
14456 else
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #if defined CRAY && ! defined CRAY2
14464 webecray
14465 #else
14466 wenotbecray
14467 #endif
14468
14469 _ACEOF
14470 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14471 $EGREP "webecray" >/dev/null 2>&1; then
14472 ac_cv_os_cray=yes
14473 else
14474 ac_cv_os_cray=no
14475 fi
14476 rm -f conftest*
14477
14478 fi
14479 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14480 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14481 if test $ac_cv_os_cray = yes; then
14482 for ac_func in _getb67 GETB67 getb67; do
14483 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14484 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14485 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14486 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14487 echo $ECHO_N "(cached) $ECHO_C" >&6
14488 else
14489 cat >conftest.$ac_ext <<_ACEOF
14490 /* confdefs.h. */
14491 _ACEOF
14492 cat confdefs.h >>conftest.$ac_ext
14493 cat >>conftest.$ac_ext <<_ACEOF
14494 /* end confdefs.h. */
14495 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14496 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14497 #define $ac_func innocuous_$ac_func
14498
14499 /* System header to define __stub macros and hopefully few prototypes,
14500 which can conflict with char $ac_func (); below.
14501 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14502 <limits.h> exists even on freestanding compilers. */
14503
14504 #ifdef __STDC__
14505 # include <limits.h>
14506 #else
14507 # include <assert.h>
14508 #endif
14509
14510 #undef $ac_func
14511
14512 /* Override any GCC internal prototype to avoid an error.
14513 Use char because int might match the return type of a GCC
14514 builtin and then its argument prototype would still apply. */
14515 #ifdef __cplusplus
14516 extern "C"
14517 #endif
14518 char $ac_func ();
14519 /* The GNU C library defines this for functions which it implements
14520 to always fail with ENOSYS. Some functions are actually named
14521 something starting with __ and the normal name is an alias. */
14522 #if defined __stub_$ac_func || defined __stub___$ac_func
14523 choke me
14524 #endif
14525
14526 int
14527 main ()
14528 {
14529 return $ac_func ();
14530 ;
14531 return 0;
14532 }
14533 _ACEOF
14534 rm -f conftest.$ac_objext conftest$ac_exeext
14535 if { (ac_try="$ac_link"
14536 case "(($ac_try" in
14537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14538 *) ac_try_echo=$ac_try;;
14539 esac
14540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14541 (eval "$ac_link") 2>conftest.er1
14542 ac_status=$?
14543 grep -v '^ *+' conftest.er1 >conftest.err
14544 rm -f conftest.er1
14545 cat conftest.err >&5
14546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14547 (exit $ac_status); } && {
14548 test -z "$ac_c_werror_flag" ||
14549 test ! -s conftest.err
14550 } && test -s conftest$ac_exeext &&
14551 $as_test_x conftest$ac_exeext; then
14552 eval "$as_ac_var=yes"
14553 else
14554 echo "$as_me: failed program was:" >&5
14555 sed 's/^/| /' conftest.$ac_ext >&5
14556
14557 eval "$as_ac_var=no"
14558 fi
14559
14560 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14561 conftest$ac_exeext conftest.$ac_ext
14562 fi
14563 ac_res=`eval echo '${'$as_ac_var'}'`
14564 { echo "$as_me:$LINENO: result: $ac_res" >&5
14565 echo "${ECHO_T}$ac_res" >&6; }
14566 if test `eval echo '${'$as_ac_var'}'` = yes; then
14567
14568 cat >>confdefs.h <<_ACEOF
14569 #define CRAY_STACKSEG_END $ac_func
14570 _ACEOF
14571
14572 break
14573 fi
14574
14575 done
14576 fi
14577
14578 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14579 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14580 if test "${ac_cv_c_stack_direction+set}" = set; then
14581 echo $ECHO_N "(cached) $ECHO_C" >&6
14582 else
14583 if test "$cross_compiling" = yes; then
14584 ac_cv_c_stack_direction=0
14585 else
14586 cat >conftest.$ac_ext <<_ACEOF
14587 /* confdefs.h. */
14588 _ACEOF
14589 cat confdefs.h >>conftest.$ac_ext
14590 cat >>conftest.$ac_ext <<_ACEOF
14591 /* end confdefs.h. */
14592 $ac_includes_default
14593 int
14594 find_stack_direction ()
14595 {
14596 static char *addr = 0;
14597 auto char dummy;
14598 if (addr == 0)
14599 {
14600 addr = &dummy;
14601 return find_stack_direction ();
14602 }
14603 else
14604 return (&dummy > addr) ? 1 : -1;
14605 }
14606
14607 int
14608 main ()
14609 {
14610 return find_stack_direction () < 0;
14611 }
14612 _ACEOF
14613 rm -f conftest$ac_exeext
14614 if { (ac_try="$ac_link"
14615 case "(($ac_try" in
14616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14617 *) ac_try_echo=$ac_try;;
14618 esac
14619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14620 (eval "$ac_link") 2>&5
14621 ac_status=$?
14622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14623 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14624 { (case "(($ac_try" in
14625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626 *) ac_try_echo=$ac_try;;
14627 esac
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629 (eval "$ac_try") 2>&5
14630 ac_status=$?
14631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632 (exit $ac_status); }; }; then
14633 ac_cv_c_stack_direction=1
14634 else
14635 echo "$as_me: program exited with status $ac_status" >&5
14636 echo "$as_me: failed program was:" >&5
14637 sed 's/^/| /' conftest.$ac_ext >&5
14638
14639 ( exit $ac_status )
14640 ac_cv_c_stack_direction=-1
14641 fi
14642 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14643 fi
14644
14645
14646 fi
14647 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
14648 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
14649
14650 cat >>confdefs.h <<_ACEOF
14651 #define STACK_DIRECTION $ac_cv_c_stack_direction
14652 _ACEOF
14653
14654
14655 fi
14656
14657
14658 # fmod, logb, and frexp are found in -lm on most systems.
14659 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
14660
14661 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
14662 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
14663 if test "${ac_cv_lib_m_sqrt+set}" = set; then
14664 echo $ECHO_N "(cached) $ECHO_C" >&6
14665 else
14666 ac_check_lib_save_LIBS=$LIBS
14667 LIBS="-lm $LIBS"
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674
14675 /* Override any GCC internal prototype to avoid an error.
14676 Use char because int might match the return type of a GCC
14677 builtin and then its argument prototype would still apply. */
14678 #ifdef __cplusplus
14679 extern "C"
14680 #endif
14681 char sqrt ();
14682 int
14683 main ()
14684 {
14685 return sqrt ();
14686 ;
14687 return 0;
14688 }
14689 _ACEOF
14690 rm -f conftest.$ac_objext conftest$ac_exeext
14691 if { (ac_try="$ac_link"
14692 case "(($ac_try" in
14693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14694 *) ac_try_echo=$ac_try;;
14695 esac
14696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14697 (eval "$ac_link") 2>conftest.er1
14698 ac_status=$?
14699 grep -v '^ *+' conftest.er1 >conftest.err
14700 rm -f conftest.er1
14701 cat conftest.err >&5
14702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14703 (exit $ac_status); } && {
14704 test -z "$ac_c_werror_flag" ||
14705 test ! -s conftest.err
14706 } && test -s conftest$ac_exeext &&
14707 $as_test_x conftest$ac_exeext; then
14708 ac_cv_lib_m_sqrt=yes
14709 else
14710 echo "$as_me: failed program was:" >&5
14711 sed 's/^/| /' conftest.$ac_ext >&5
14712
14713 ac_cv_lib_m_sqrt=no
14714 fi
14715
14716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14717 conftest$ac_exeext conftest.$ac_ext
14718 LIBS=$ac_check_lib_save_LIBS
14719 fi
14720 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
14721 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
14722 if test $ac_cv_lib_m_sqrt = yes; then
14723 cat >>confdefs.h <<_ACEOF
14724 #define HAVE_LIBM 1
14725 _ACEOF
14726
14727 LIBS="-lm $LIBS"
14728
14729 fi
14730
14731
14732 # Check for mail-locking functions in a "mail" library. Probably this should
14733 # have the same check as for liblockfile below.
14734
14735 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
14736 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
14737 if test "${ac_cv_lib_mail_maillock+set}" = set; then
14738 echo $ECHO_N "(cached) $ECHO_C" >&6
14739 else
14740 ac_check_lib_save_LIBS=$LIBS
14741 LIBS="-lmail $LIBS"
14742 cat >conftest.$ac_ext <<_ACEOF
14743 /* confdefs.h. */
14744 _ACEOF
14745 cat confdefs.h >>conftest.$ac_ext
14746 cat >>conftest.$ac_ext <<_ACEOF
14747 /* end confdefs.h. */
14748
14749 /* Override any GCC internal prototype to avoid an error.
14750 Use char because int might match the return type of a GCC
14751 builtin and then its argument prototype would still apply. */
14752 #ifdef __cplusplus
14753 extern "C"
14754 #endif
14755 char maillock ();
14756 int
14757 main ()
14758 {
14759 return maillock ();
14760 ;
14761 return 0;
14762 }
14763 _ACEOF
14764 rm -f conftest.$ac_objext conftest$ac_exeext
14765 if { (ac_try="$ac_link"
14766 case "(($ac_try" in
14767 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14768 *) ac_try_echo=$ac_try;;
14769 esac
14770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14771 (eval "$ac_link") 2>conftest.er1
14772 ac_status=$?
14773 grep -v '^ *+' conftest.er1 >conftest.err
14774 rm -f conftest.er1
14775 cat conftest.err >&5
14776 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14777 (exit $ac_status); } && {
14778 test -z "$ac_c_werror_flag" ||
14779 test ! -s conftest.err
14780 } && test -s conftest$ac_exeext &&
14781 $as_test_x conftest$ac_exeext; then
14782 ac_cv_lib_mail_maillock=yes
14783 else
14784 echo "$as_me: failed program was:" >&5
14785 sed 's/^/| /' conftest.$ac_ext >&5
14786
14787 ac_cv_lib_mail_maillock=no
14788 fi
14789
14790 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14791 conftest$ac_exeext conftest.$ac_ext
14792 LIBS=$ac_check_lib_save_LIBS
14793 fi
14794 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
14795 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
14796 if test $ac_cv_lib_mail_maillock = yes; then
14797 cat >>confdefs.h <<_ACEOF
14798 #define HAVE_LIBMAIL 1
14799 _ACEOF
14800
14801 LIBS="-lmail $LIBS"
14802
14803 fi
14804
14805
14806 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
14807 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
14808 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
14809 echo $ECHO_N "(cached) $ECHO_C" >&6
14810 else
14811 ac_check_lib_save_LIBS=$LIBS
14812 LIBS="-llockfile $LIBS"
14813 cat >conftest.$ac_ext <<_ACEOF
14814 /* confdefs.h. */
14815 _ACEOF
14816 cat confdefs.h >>conftest.$ac_ext
14817 cat >>conftest.$ac_ext <<_ACEOF
14818 /* end confdefs.h. */
14819
14820 /* Override any GCC internal prototype to avoid an error.
14821 Use char because int might match the return type of a GCC
14822 builtin and then its argument prototype would still apply. */
14823 #ifdef __cplusplus
14824 extern "C"
14825 #endif
14826 char maillock ();
14827 int
14828 main ()
14829 {
14830 return maillock ();
14831 ;
14832 return 0;
14833 }
14834 _ACEOF
14835 rm -f conftest.$ac_objext conftest$ac_exeext
14836 if { (ac_try="$ac_link"
14837 case "(($ac_try" in
14838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14839 *) ac_try_echo=$ac_try;;
14840 esac
14841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14842 (eval "$ac_link") 2>conftest.er1
14843 ac_status=$?
14844 grep -v '^ *+' conftest.er1 >conftest.err
14845 rm -f conftest.er1
14846 cat conftest.err >&5
14847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14848 (exit $ac_status); } && {
14849 test -z "$ac_c_werror_flag" ||
14850 test ! -s conftest.err
14851 } && test -s conftest$ac_exeext &&
14852 $as_test_x conftest$ac_exeext; then
14853 ac_cv_lib_lockfile_maillock=yes
14854 else
14855 echo "$as_me: failed program was:" >&5
14856 sed 's/^/| /' conftest.$ac_ext >&5
14857
14858 ac_cv_lib_lockfile_maillock=no
14859 fi
14860
14861 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14862 conftest$ac_exeext conftest.$ac_ext
14863 LIBS=$ac_check_lib_save_LIBS
14864 fi
14865 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
14866 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
14867 if test $ac_cv_lib_lockfile_maillock = yes; then
14868 cat >>confdefs.h <<_ACEOF
14869 #define HAVE_LIBLOCKFILE 1
14870 _ACEOF
14871
14872 LIBS="-llockfile $LIBS"
14873
14874 fi
14875
14876 # If we have the shared liblockfile, assume we must use it for mail
14877 # locking (e.g. Debian). If we couldn't link against liblockfile
14878 # (no liblockfile.a installed), ensure that we don't need to.
14879 if test "$ac_cv_lib_lockfile_maillock" = no; then
14880 # Extract the first word of "liblockfile.so", so it can be a program name with args.
14881 set dummy liblockfile.so; ac_word=$2
14882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
14883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
14884 if test "${ac_cv_prog_liblockfile+set}" = set; then
14885 echo $ECHO_N "(cached) $ECHO_C" >&6
14886 else
14887 if test -n "$liblockfile"; then
14888 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
14889 else
14890 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14891 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
14892 for as_dir in $as_dummy
14893 do
14894 IFS=$as_save_IFS
14895 test -z "$as_dir" && as_dir=.
14896 for ac_exec_ext in '' $ac_executable_extensions; do
14897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
14898 ac_cv_prog_liblockfile="yes"
14899 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
14900 break 2
14901 fi
14902 done
14903 done
14904 IFS=$as_save_IFS
14905
14906 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
14907 fi
14908 fi
14909 liblockfile=$ac_cv_prog_liblockfile
14910 if test -n "$liblockfile"; then
14911 { echo "$as_me:$LINENO: result: $liblockfile" >&5
14912 echo "${ECHO_T}$liblockfile" >&6; }
14913 else
14914 { echo "$as_me:$LINENO: result: no" >&5
14915 echo "${ECHO_T}no" >&6; }
14916 fi
14917
14918
14919 if test $ac_cv_prog_liblockfile = yes; then
14920 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
14921 This probably means that movemail could lose mail.
14922 There may be a \`development' package to install containing liblockfile." >&5
14923 echo "$as_me: error: Shared liblockfile found but can't link against it.
14924 This probably means that movemail could lose mail.
14925 There may be a \`development' package to install containing liblockfile." >&2;}
14926 { (exit 1); exit 1; }; }
14927 else :
14928 fi
14929 fi
14930
14931 for ac_func in touchlock
14932 do
14933 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14934 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14935 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14936 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14937 echo $ECHO_N "(cached) $ECHO_C" >&6
14938 else
14939 cat >conftest.$ac_ext <<_ACEOF
14940 /* confdefs.h. */
14941 _ACEOF
14942 cat confdefs.h >>conftest.$ac_ext
14943 cat >>conftest.$ac_ext <<_ACEOF
14944 /* end confdefs.h. */
14945 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14946 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14947 #define $ac_func innocuous_$ac_func
14948
14949 /* System header to define __stub macros and hopefully few prototypes,
14950 which can conflict with char $ac_func (); below.
14951 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14952 <limits.h> exists even on freestanding compilers. */
14953
14954 #ifdef __STDC__
14955 # include <limits.h>
14956 #else
14957 # include <assert.h>
14958 #endif
14959
14960 #undef $ac_func
14961
14962 /* Override any GCC internal prototype to avoid an error.
14963 Use char because int might match the return type of a GCC
14964 builtin and then its argument prototype would still apply. */
14965 #ifdef __cplusplus
14966 extern "C"
14967 #endif
14968 char $ac_func ();
14969 /* The GNU C library defines this for functions which it implements
14970 to always fail with ENOSYS. Some functions are actually named
14971 something starting with __ and the normal name is an alias. */
14972 #if defined __stub_$ac_func || defined __stub___$ac_func
14973 choke me
14974 #endif
14975
14976 int
14977 main ()
14978 {
14979 return $ac_func ();
14980 ;
14981 return 0;
14982 }
14983 _ACEOF
14984 rm -f conftest.$ac_objext conftest$ac_exeext
14985 if { (ac_try="$ac_link"
14986 case "(($ac_try" in
14987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14988 *) ac_try_echo=$ac_try;;
14989 esac
14990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14991 (eval "$ac_link") 2>conftest.er1
14992 ac_status=$?
14993 grep -v '^ *+' conftest.er1 >conftest.err
14994 rm -f conftest.er1
14995 cat conftest.err >&5
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && {
14998 test -z "$ac_c_werror_flag" ||
14999 test ! -s conftest.err
15000 } && test -s conftest$ac_exeext &&
15001 $as_test_x conftest$ac_exeext; then
15002 eval "$as_ac_var=yes"
15003 else
15004 echo "$as_me: failed program was:" >&5
15005 sed 's/^/| /' conftest.$ac_ext >&5
15006
15007 eval "$as_ac_var=no"
15008 fi
15009
15010 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15011 conftest$ac_exeext conftest.$ac_ext
15012 fi
15013 ac_res=`eval echo '${'$as_ac_var'}'`
15014 { echo "$as_me:$LINENO: result: $ac_res" >&5
15015 echo "${ECHO_T}$ac_res" >&6; }
15016 if test `eval echo '${'$as_ac_var'}'` = yes; then
15017 cat >>confdefs.h <<_ACEOF
15018 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15019 _ACEOF
15020
15021 fi
15022 done
15023
15024
15025 for ac_header in maillock.h
15026 do
15027 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15028 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15032 echo $ECHO_N "(cached) $ECHO_C" >&6
15033 fi
15034 ac_res=`eval echo '${'$as_ac_Header'}'`
15035 { echo "$as_me:$LINENO: result: $ac_res" >&5
15036 echo "${ECHO_T}$ac_res" >&6; }
15037 else
15038 # Is the header compilable?
15039 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15040 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15041 cat >conftest.$ac_ext <<_ACEOF
15042 /* confdefs.h. */
15043 _ACEOF
15044 cat confdefs.h >>conftest.$ac_ext
15045 cat >>conftest.$ac_ext <<_ACEOF
15046 /* end confdefs.h. */
15047 $ac_includes_default
15048 #include <$ac_header>
15049 _ACEOF
15050 rm -f conftest.$ac_objext
15051 if { (ac_try="$ac_compile"
15052 case "(($ac_try" in
15053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15054 *) ac_try_echo=$ac_try;;
15055 esac
15056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15057 (eval "$ac_compile") 2>conftest.er1
15058 ac_status=$?
15059 grep -v '^ *+' conftest.er1 >conftest.err
15060 rm -f conftest.er1
15061 cat conftest.err >&5
15062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15063 (exit $ac_status); } && {
15064 test -z "$ac_c_werror_flag" ||
15065 test ! -s conftest.err
15066 } && test -s conftest.$ac_objext; then
15067 ac_header_compiler=yes
15068 else
15069 echo "$as_me: failed program was:" >&5
15070 sed 's/^/| /' conftest.$ac_ext >&5
15071
15072 ac_header_compiler=no
15073 fi
15074
15075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15076 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15077 echo "${ECHO_T}$ac_header_compiler" >&6; }
15078
15079 # Is the header present?
15080 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15081 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15082 cat >conftest.$ac_ext <<_ACEOF
15083 /* confdefs.h. */
15084 _ACEOF
15085 cat confdefs.h >>conftest.$ac_ext
15086 cat >>conftest.$ac_ext <<_ACEOF
15087 /* end confdefs.h. */
15088 #include <$ac_header>
15089 _ACEOF
15090 if { (ac_try="$ac_cpp conftest.$ac_ext"
15091 case "(($ac_try" in
15092 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15093 *) ac_try_echo=$ac_try;;
15094 esac
15095 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15096 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15097 ac_status=$?
15098 grep -v '^ *+' conftest.er1 >conftest.err
15099 rm -f conftest.er1
15100 cat conftest.err >&5
15101 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15102 (exit $ac_status); } >/dev/null && {
15103 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15104 test ! -s conftest.err
15105 }; then
15106 ac_header_preproc=yes
15107 else
15108 echo "$as_me: failed program was:" >&5
15109 sed 's/^/| /' conftest.$ac_ext >&5
15110
15111 ac_header_preproc=no
15112 fi
15113
15114 rm -f conftest.err conftest.$ac_ext
15115 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15116 echo "${ECHO_T}$ac_header_preproc" >&6; }
15117
15118 # So? What about this header?
15119 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15120 yes:no: )
15121 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15122 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15123 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15124 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15125 ac_header_preproc=yes
15126 ;;
15127 no:yes:* )
15128 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15129 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15130 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15131 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15132 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15133 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15134 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15135 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15136 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15137 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15138 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15139 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15140
15141 ;;
15142 esac
15143 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15144 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15145 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15146 echo $ECHO_N "(cached) $ECHO_C" >&6
15147 else
15148 eval "$as_ac_Header=\$ac_header_preproc"
15149 fi
15150 ac_res=`eval echo '${'$as_ac_Header'}'`
15151 { echo "$as_me:$LINENO: result: $ac_res" >&5
15152 echo "${ECHO_T}$ac_res" >&6; }
15153
15154 fi
15155 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15156 cat >>confdefs.h <<_ACEOF
15157 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15158 _ACEOF
15159
15160 fi
15161
15162 done
15163
15164
15165
15166
15167
15168
15169
15170
15171
15172
15173
15174
15175
15176
15177
15178
15179
15180
15181
15182
15183
15184
15185
15186
15187
15188
15189
15190
15191
15192
15193
15194
15195
15196
15197
15198
15199
15200
15201
15202
15203
15204
15205
15206
15207
15208
15209
15210
15211
15212
15213
15214
15215
15216
15217
15218
15219
15220
15221
15222
15223
15224
15225
15226
15227
15228
15229
15230
15231
15232
15233
15234 for ac_func in gethostname getdomainname dup2 \
15235 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15236 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15237 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15238 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15239 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15240 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15241 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15242 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15243 do
15244 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15245 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15246 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15247 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15248 echo $ECHO_N "(cached) $ECHO_C" >&6
15249 else
15250 cat >conftest.$ac_ext <<_ACEOF
15251 /* confdefs.h. */
15252 _ACEOF
15253 cat confdefs.h >>conftest.$ac_ext
15254 cat >>conftest.$ac_ext <<_ACEOF
15255 /* end confdefs.h. */
15256 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15257 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15258 #define $ac_func innocuous_$ac_func
15259
15260 /* System header to define __stub macros and hopefully few prototypes,
15261 which can conflict with char $ac_func (); below.
15262 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15263 <limits.h> exists even on freestanding compilers. */
15264
15265 #ifdef __STDC__
15266 # include <limits.h>
15267 #else
15268 # include <assert.h>
15269 #endif
15270
15271 #undef $ac_func
15272
15273 /* Override any GCC internal prototype to avoid an error.
15274 Use char because int might match the return type of a GCC
15275 builtin and then its argument prototype would still apply. */
15276 #ifdef __cplusplus
15277 extern "C"
15278 #endif
15279 char $ac_func ();
15280 /* The GNU C library defines this for functions which it implements
15281 to always fail with ENOSYS. Some functions are actually named
15282 something starting with __ and the normal name is an alias. */
15283 #if defined __stub_$ac_func || defined __stub___$ac_func
15284 choke me
15285 #endif
15286
15287 int
15288 main ()
15289 {
15290 return $ac_func ();
15291 ;
15292 return 0;
15293 }
15294 _ACEOF
15295 rm -f conftest.$ac_objext conftest$ac_exeext
15296 if { (ac_try="$ac_link"
15297 case "(($ac_try" in
15298 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15299 *) ac_try_echo=$ac_try;;
15300 esac
15301 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15302 (eval "$ac_link") 2>conftest.er1
15303 ac_status=$?
15304 grep -v '^ *+' conftest.er1 >conftest.err
15305 rm -f conftest.er1
15306 cat conftest.err >&5
15307 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15308 (exit $ac_status); } && {
15309 test -z "$ac_c_werror_flag" ||
15310 test ! -s conftest.err
15311 } && test -s conftest$ac_exeext &&
15312 $as_test_x conftest$ac_exeext; then
15313 eval "$as_ac_var=yes"
15314 else
15315 echo "$as_me: failed program was:" >&5
15316 sed 's/^/| /' conftest.$ac_ext >&5
15317
15318 eval "$as_ac_var=no"
15319 fi
15320
15321 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15322 conftest$ac_exeext conftest.$ac_ext
15323 fi
15324 ac_res=`eval echo '${'$as_ac_var'}'`
15325 { echo "$as_me:$LINENO: result: $ac_res" >&5
15326 echo "${ECHO_T}$ac_res" >&6; }
15327 if test `eval echo '${'$as_ac_var'}'` = yes; then
15328 cat >>confdefs.h <<_ACEOF
15329 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15330 _ACEOF
15331
15332 fi
15333 done
15334
15335
15336
15337 for ac_header in sys/un.h
15338 do
15339 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15340 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15341 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15342 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15343 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 fi
15346 ac_res=`eval echo '${'$as_ac_Header'}'`
15347 { echo "$as_me:$LINENO: result: $ac_res" >&5
15348 echo "${ECHO_T}$ac_res" >&6; }
15349 else
15350 # Is the header compilable?
15351 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15352 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15353 cat >conftest.$ac_ext <<_ACEOF
15354 /* confdefs.h. */
15355 _ACEOF
15356 cat confdefs.h >>conftest.$ac_ext
15357 cat >>conftest.$ac_ext <<_ACEOF
15358 /* end confdefs.h. */
15359 $ac_includes_default
15360 #include <$ac_header>
15361 _ACEOF
15362 rm -f conftest.$ac_objext
15363 if { (ac_try="$ac_compile"
15364 case "(($ac_try" in
15365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15366 *) ac_try_echo=$ac_try;;
15367 esac
15368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15369 (eval "$ac_compile") 2>conftest.er1
15370 ac_status=$?
15371 grep -v '^ *+' conftest.er1 >conftest.err
15372 rm -f conftest.er1
15373 cat conftest.err >&5
15374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15375 (exit $ac_status); } && {
15376 test -z "$ac_c_werror_flag" ||
15377 test ! -s conftest.err
15378 } && test -s conftest.$ac_objext; then
15379 ac_header_compiler=yes
15380 else
15381 echo "$as_me: failed program was:" >&5
15382 sed 's/^/| /' conftest.$ac_ext >&5
15383
15384 ac_header_compiler=no
15385 fi
15386
15387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15388 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15389 echo "${ECHO_T}$ac_header_compiler" >&6; }
15390
15391 # Is the header present?
15392 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15393 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15394 cat >conftest.$ac_ext <<_ACEOF
15395 /* confdefs.h. */
15396 _ACEOF
15397 cat confdefs.h >>conftest.$ac_ext
15398 cat >>conftest.$ac_ext <<_ACEOF
15399 /* end confdefs.h. */
15400 #include <$ac_header>
15401 _ACEOF
15402 if { (ac_try="$ac_cpp conftest.$ac_ext"
15403 case "(($ac_try" in
15404 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15405 *) ac_try_echo=$ac_try;;
15406 esac
15407 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15408 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15409 ac_status=$?
15410 grep -v '^ *+' conftest.er1 >conftest.err
15411 rm -f conftest.er1
15412 cat conftest.err >&5
15413 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15414 (exit $ac_status); } >/dev/null && {
15415 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15416 test ! -s conftest.err
15417 }; then
15418 ac_header_preproc=yes
15419 else
15420 echo "$as_me: failed program was:" >&5
15421 sed 's/^/| /' conftest.$ac_ext >&5
15422
15423 ac_header_preproc=no
15424 fi
15425
15426 rm -f conftest.err conftest.$ac_ext
15427 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15428 echo "${ECHO_T}$ac_header_preproc" >&6; }
15429
15430 # So? What about this header?
15431 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15432 yes:no: )
15433 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15434 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15435 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15436 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15437 ac_header_preproc=yes
15438 ;;
15439 no:yes:* )
15440 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15441 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15442 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15443 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15444 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15445 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15446 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15447 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15449 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15450 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15451 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15452
15453 ;;
15454 esac
15455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15458 echo $ECHO_N "(cached) $ECHO_C" >&6
15459 else
15460 eval "$as_ac_Header=\$ac_header_preproc"
15461 fi
15462 ac_res=`eval echo '${'$as_ac_Header'}'`
15463 { echo "$as_me:$LINENO: result: $ac_res" >&5
15464 echo "${ECHO_T}$ac_res" >&6; }
15465
15466 fi
15467 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15468 cat >>confdefs.h <<_ACEOF
15469 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15470 _ACEOF
15471
15472 fi
15473
15474 done
15475
15476
15477
15478
15479
15480
15481 for ac_header in $ac_header_list
15482 do
15483 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15484 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15485 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15486 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15487 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15488 echo $ECHO_N "(cached) $ECHO_C" >&6
15489 fi
15490 ac_res=`eval echo '${'$as_ac_Header'}'`
15491 { echo "$as_me:$LINENO: result: $ac_res" >&5
15492 echo "${ECHO_T}$ac_res" >&6; }
15493 else
15494 # Is the header compilable?
15495 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15496 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15497 cat >conftest.$ac_ext <<_ACEOF
15498 /* confdefs.h. */
15499 _ACEOF
15500 cat confdefs.h >>conftest.$ac_ext
15501 cat >>conftest.$ac_ext <<_ACEOF
15502 /* end confdefs.h. */
15503 $ac_includes_default
15504 #include <$ac_header>
15505 _ACEOF
15506 rm -f conftest.$ac_objext
15507 if { (ac_try="$ac_compile"
15508 case "(($ac_try" in
15509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15510 *) ac_try_echo=$ac_try;;
15511 esac
15512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15513 (eval "$ac_compile") 2>conftest.er1
15514 ac_status=$?
15515 grep -v '^ *+' conftest.er1 >conftest.err
15516 rm -f conftest.er1
15517 cat conftest.err >&5
15518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15519 (exit $ac_status); } && {
15520 test -z "$ac_c_werror_flag" ||
15521 test ! -s conftest.err
15522 } && test -s conftest.$ac_objext; then
15523 ac_header_compiler=yes
15524 else
15525 echo "$as_me: failed program was:" >&5
15526 sed 's/^/| /' conftest.$ac_ext >&5
15527
15528 ac_header_compiler=no
15529 fi
15530
15531 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15532 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15533 echo "${ECHO_T}$ac_header_compiler" >&6; }
15534
15535 # Is the header present?
15536 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15537 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15538 cat >conftest.$ac_ext <<_ACEOF
15539 /* confdefs.h. */
15540 _ACEOF
15541 cat confdefs.h >>conftest.$ac_ext
15542 cat >>conftest.$ac_ext <<_ACEOF
15543 /* end confdefs.h. */
15544 #include <$ac_header>
15545 _ACEOF
15546 if { (ac_try="$ac_cpp conftest.$ac_ext"
15547 case "(($ac_try" in
15548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15549 *) ac_try_echo=$ac_try;;
15550 esac
15551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15552 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15553 ac_status=$?
15554 grep -v '^ *+' conftest.er1 >conftest.err
15555 rm -f conftest.er1
15556 cat conftest.err >&5
15557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15558 (exit $ac_status); } >/dev/null && {
15559 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15560 test ! -s conftest.err
15561 }; then
15562 ac_header_preproc=yes
15563 else
15564 echo "$as_me: failed program was:" >&5
15565 sed 's/^/| /' conftest.$ac_ext >&5
15566
15567 ac_header_preproc=no
15568 fi
15569
15570 rm -f conftest.err conftest.$ac_ext
15571 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15572 echo "${ECHO_T}$ac_header_preproc" >&6; }
15573
15574 # So? What about this header?
15575 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15576 yes:no: )
15577 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15578 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15579 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15580 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15581 ac_header_preproc=yes
15582 ;;
15583 no:yes:* )
15584 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15585 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15586 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15587 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15588 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15589 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15590 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15591 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15592 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15593 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15594 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15595 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15596
15597 ;;
15598 esac
15599 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15600 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15601 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15602 echo $ECHO_N "(cached) $ECHO_C" >&6
15603 else
15604 eval "$as_ac_Header=\$ac_header_preproc"
15605 fi
15606 ac_res=`eval echo '${'$as_ac_Header'}'`
15607 { echo "$as_me:$LINENO: result: $ac_res" >&5
15608 echo "${ECHO_T}$ac_res" >&6; }
15609
15610 fi
15611 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15612 cat >>confdefs.h <<_ACEOF
15613 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15614 _ACEOF
15615
15616 fi
15617
15618 done
15619
15620
15621
15622
15623
15624
15625
15626
15627
15628 for ac_func in $ac_func_list
15629 do
15630 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15631 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15632 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15633 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15634 echo $ECHO_N "(cached) $ECHO_C" >&6
15635 else
15636 cat >conftest.$ac_ext <<_ACEOF
15637 /* confdefs.h. */
15638 _ACEOF
15639 cat confdefs.h >>conftest.$ac_ext
15640 cat >>conftest.$ac_ext <<_ACEOF
15641 /* end confdefs.h. */
15642 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15643 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15644 #define $ac_func innocuous_$ac_func
15645
15646 /* System header to define __stub macros and hopefully few prototypes,
15647 which can conflict with char $ac_func (); below.
15648 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15649 <limits.h> exists even on freestanding compilers. */
15650
15651 #ifdef __STDC__
15652 # include <limits.h>
15653 #else
15654 # include <assert.h>
15655 #endif
15656
15657 #undef $ac_func
15658
15659 /* Override any GCC internal prototype to avoid an error.
15660 Use char because int might match the return type of a GCC
15661 builtin and then its argument prototype would still apply. */
15662 #ifdef __cplusplus
15663 extern "C"
15664 #endif
15665 char $ac_func ();
15666 /* The GNU C library defines this for functions which it implements
15667 to always fail with ENOSYS. Some functions are actually named
15668 something starting with __ and the normal name is an alias. */
15669 #if defined __stub_$ac_func || defined __stub___$ac_func
15670 choke me
15671 #endif
15672
15673 int
15674 main ()
15675 {
15676 return $ac_func ();
15677 ;
15678 return 0;
15679 }
15680 _ACEOF
15681 rm -f conftest.$ac_objext conftest$ac_exeext
15682 if { (ac_try="$ac_link"
15683 case "(($ac_try" in
15684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15685 *) ac_try_echo=$ac_try;;
15686 esac
15687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15688 (eval "$ac_link") 2>conftest.er1
15689 ac_status=$?
15690 grep -v '^ *+' conftest.er1 >conftest.err
15691 rm -f conftest.er1
15692 cat conftest.err >&5
15693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15694 (exit $ac_status); } && {
15695 test -z "$ac_c_werror_flag" ||
15696 test ! -s conftest.err
15697 } && test -s conftest$ac_exeext &&
15698 $as_test_x conftest$ac_exeext; then
15699 eval "$as_ac_var=yes"
15700 else
15701 echo "$as_me: failed program was:" >&5
15702 sed 's/^/| /' conftest.$ac_ext >&5
15703
15704 eval "$as_ac_var=no"
15705 fi
15706
15707 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15708 conftest$ac_exeext conftest.$ac_ext
15709 fi
15710 ac_res=`eval echo '${'$as_ac_var'}'`
15711 { echo "$as_me:$LINENO: result: $ac_res" >&5
15712 echo "${ECHO_T}$ac_res" >&6; }
15713 if test `eval echo '${'$as_ac_var'}'` = yes; then
15714 cat >>confdefs.h <<_ACEOF
15715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15716 _ACEOF
15717
15718 fi
15719 done
15720
15721
15722
15723
15724
15725
15726
15727
15728
15729
15730
15731
15732
15733
15734
15735
15736
15737 { echo "$as_me:$LINENO: checking for working mktime" >&5
15738 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
15739 if test "${ac_cv_func_working_mktime+set}" = set; then
15740 echo $ECHO_N "(cached) $ECHO_C" >&6
15741 else
15742 if test "$cross_compiling" = yes; then
15743 ac_cv_func_working_mktime=no
15744 else
15745 cat >conftest.$ac_ext <<_ACEOF
15746 /* confdefs.h. */
15747 _ACEOF
15748 cat confdefs.h >>conftest.$ac_ext
15749 cat >>conftest.$ac_ext <<_ACEOF
15750 /* end confdefs.h. */
15751 /* Test program from Paul Eggert and Tony Leneis. */
15752 #ifdef TIME_WITH_SYS_TIME
15753 # include <sys/time.h>
15754 # include <time.h>
15755 #else
15756 # ifdef HAVE_SYS_TIME_H
15757 # include <sys/time.h>
15758 # else
15759 # include <time.h>
15760 # endif
15761 #endif
15762
15763 #include <stdlib.h>
15764
15765 #ifdef HAVE_UNISTD_H
15766 # include <unistd.h>
15767 #endif
15768
15769 #ifndef HAVE_ALARM
15770 # define alarm(X) /* empty */
15771 #endif
15772
15773 /* Work around redefinition to rpl_putenv by other config tests. */
15774 #undef putenv
15775
15776 static time_t time_t_max;
15777 static time_t time_t_min;
15778
15779 /* Values we'll use to set the TZ environment variable. */
15780 static char *tz_strings[] = {
15781 (char *) 0, "TZ=GMT0", "TZ=JST-9",
15782 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
15783 };
15784 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
15785
15786 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
15787 Based on a problem report from Andreas Jaeger. */
15788 static int
15789 spring_forward_gap ()
15790 {
15791 /* glibc (up to about 1998-10-07) failed this test. */
15792 struct tm tm;
15793
15794 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15795 instead of "TZ=America/Vancouver" in order to detect the bug even
15796 on systems that don't support the Olson extension, or don't have the
15797 full zoneinfo tables installed. */
15798 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15799
15800 tm.tm_year = 98;
15801 tm.tm_mon = 3;
15802 tm.tm_mday = 5;
15803 tm.tm_hour = 2;
15804 tm.tm_min = 0;
15805 tm.tm_sec = 0;
15806 tm.tm_isdst = -1;
15807 return mktime (&tm) != (time_t) -1;
15808 }
15809
15810 static int
15811 mktime_test1 (now)
15812 time_t now;
15813 {
15814 struct tm *lt;
15815 return ! (lt = localtime (&now)) || mktime (lt) == now;
15816 }
15817
15818 static int
15819 mktime_test (now)
15820 time_t now;
15821 {
15822 return (mktime_test1 (now)
15823 && mktime_test1 ((time_t) (time_t_max - now))
15824 && mktime_test1 ((time_t) (time_t_min + now)));
15825 }
15826
15827 static int
15828 irix_6_4_bug ()
15829 {
15830 /* Based on code from Ariel Faigon. */
15831 struct tm tm;
15832 tm.tm_year = 96;
15833 tm.tm_mon = 3;
15834 tm.tm_mday = 0;
15835 tm.tm_hour = 0;
15836 tm.tm_min = 0;
15837 tm.tm_sec = 0;
15838 tm.tm_isdst = -1;
15839 mktime (&tm);
15840 return tm.tm_mon == 2 && tm.tm_mday == 31;
15841 }
15842
15843 static int
15844 bigtime_test (j)
15845 int j;
15846 {
15847 struct tm tm;
15848 time_t now;
15849 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
15850 now = mktime (&tm);
15851 if (now != (time_t) -1)
15852 {
15853 struct tm *lt = localtime (&now);
15854 if (! (lt
15855 && lt->tm_year == tm.tm_year
15856 && lt->tm_mon == tm.tm_mon
15857 && lt->tm_mday == tm.tm_mday
15858 && lt->tm_hour == tm.tm_hour
15859 && lt->tm_min == tm.tm_min
15860 && lt->tm_sec == tm.tm_sec
15861 && lt->tm_yday == tm.tm_yday
15862 && lt->tm_wday == tm.tm_wday
15863 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
15864 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
15865 return 0;
15866 }
15867 return 1;
15868 }
15869
15870 static int
15871 year_2050_test ()
15872 {
15873 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
15874 ignoring leap seconds. */
15875 unsigned long int answer = 2527315200UL;
15876
15877 struct tm tm;
15878 time_t t;
15879 tm.tm_year = 2050 - 1900;
15880 tm.tm_mon = 2 - 1;
15881 tm.tm_mday = 1;
15882 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
15883 tm.tm_isdst = -1;
15884
15885 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
15886 instead of "TZ=America/Vancouver" in order to detect the bug even
15887 on systems that don't support the Olson extension, or don't have the
15888 full zoneinfo tables installed. */
15889 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
15890
15891 t = mktime (&tm);
15892
15893 /* Check that the result is either a failure, or close enough
15894 to the correct answer that we can assume the discrepancy is
15895 due to leap seconds. */
15896 return (t == (time_t) -1
15897 || (0 < t && answer - 120 <= t && t <= answer + 120));
15898 }
15899
15900 int
15901 main ()
15902 {
15903 time_t t, delta;
15904 int i, j;
15905
15906 /* This test makes some buggy mktime implementations loop.
15907 Give up after 60 seconds; a mktime slower than that
15908 isn't worth using anyway. */
15909 alarm (60);
15910
15911 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
15912 continue;
15913 time_t_max--;
15914 if ((time_t) -1 < 0)
15915 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
15916 continue;
15917 delta = time_t_max / 997; /* a suitable prime number */
15918 for (i = 0; i < N_STRINGS; i++)
15919 {
15920 if (tz_strings[i])
15921 putenv (tz_strings[i]);
15922
15923 for (t = 0; t <= time_t_max - delta; t += delta)
15924 if (! mktime_test (t))
15925 return 1;
15926 if (! (mktime_test ((time_t) 1)
15927 && mktime_test ((time_t) (60 * 60))
15928 && mktime_test ((time_t) (60 * 60 * 24))))
15929 return 1;
15930
15931 for (j = 1; 0 < j; j *= 2)
15932 if (! bigtime_test (j))
15933 return 1;
15934 if (! bigtime_test (j - 1))
15935 return 1;
15936 }
15937 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
15938 }
15939 _ACEOF
15940 rm -f conftest$ac_exeext
15941 if { (ac_try="$ac_link"
15942 case "(($ac_try" in
15943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15944 *) ac_try_echo=$ac_try;;
15945 esac
15946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15947 (eval "$ac_link") 2>&5
15948 ac_status=$?
15949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15950 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15951 { (case "(($ac_try" in
15952 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15953 *) ac_try_echo=$ac_try;;
15954 esac
15955 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15956 (eval "$ac_try") 2>&5
15957 ac_status=$?
15958 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15959 (exit $ac_status); }; }; then
15960 ac_cv_func_working_mktime=yes
15961 else
15962 echo "$as_me: program exited with status $ac_status" >&5
15963 echo "$as_me: failed program was:" >&5
15964 sed 's/^/| /' conftest.$ac_ext >&5
15965
15966 ( exit $ac_status )
15967 ac_cv_func_working_mktime=no
15968 fi
15969 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15970 fi
15971
15972
15973 fi
15974 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
15975 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
15976 if test $ac_cv_func_working_mktime = no; then
15977 case " $LIBOBJS " in
15978 *" mktime.$ac_objext "* ) ;;
15979 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
15980 ;;
15981 esac
15982
15983 fi
15984
15985 if test "$ac_cv_func_working_mktime" = no; then
15986
15987 cat >>confdefs.h <<\_ACEOF
15988 #define BROKEN_MKTIME 1
15989 _ACEOF
15990
15991 fi
15992
15993 ac_have_func=no # yes means we've found a way to get the load average.
15994
15995 # Make sure getloadavg.c is where it belongs, at configure-time.
15996 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
15997 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
15998 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
15999 { (exit 1); exit 1; }; }
16000
16001 ac_save_LIBS=$LIBS
16002
16003 # Check for getloadavg, but be sure not to touch the cache variable.
16004 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16005 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16006 if test "${ac_cv_func_getloadavg+set}" = set; then
16007 echo $ECHO_N "(cached) $ECHO_C" >&6
16008 else
16009 cat >conftest.$ac_ext <<_ACEOF
16010 /* confdefs.h. */
16011 _ACEOF
16012 cat confdefs.h >>conftest.$ac_ext
16013 cat >>conftest.$ac_ext <<_ACEOF
16014 /* end confdefs.h. */
16015 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16016 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16017 #define getloadavg innocuous_getloadavg
16018
16019 /* System header to define __stub macros and hopefully few prototypes,
16020 which can conflict with char getloadavg (); below.
16021 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16022 <limits.h> exists even on freestanding compilers. */
16023
16024 #ifdef __STDC__
16025 # include <limits.h>
16026 #else
16027 # include <assert.h>
16028 #endif
16029
16030 #undef getloadavg
16031
16032 /* Override any GCC internal prototype to avoid an error.
16033 Use char because int might match the return type of a GCC
16034 builtin and then its argument prototype would still apply. */
16035 #ifdef __cplusplus
16036 extern "C"
16037 #endif
16038 char getloadavg ();
16039 /* The GNU C library defines this for functions which it implements
16040 to always fail with ENOSYS. Some functions are actually named
16041 something starting with __ and the normal name is an alias. */
16042 #if defined __stub_getloadavg || defined __stub___getloadavg
16043 choke me
16044 #endif
16045
16046 int
16047 main ()
16048 {
16049 return getloadavg ();
16050 ;
16051 return 0;
16052 }
16053 _ACEOF
16054 rm -f conftest.$ac_objext conftest$ac_exeext
16055 if { (ac_try="$ac_link"
16056 case "(($ac_try" in
16057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16058 *) ac_try_echo=$ac_try;;
16059 esac
16060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16061 (eval "$ac_link") 2>conftest.er1
16062 ac_status=$?
16063 grep -v '^ *+' conftest.er1 >conftest.err
16064 rm -f conftest.er1
16065 cat conftest.err >&5
16066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16067 (exit $ac_status); } && {
16068 test -z "$ac_c_werror_flag" ||
16069 test ! -s conftest.err
16070 } && test -s conftest$ac_exeext &&
16071 $as_test_x conftest$ac_exeext; then
16072 ac_cv_func_getloadavg=yes
16073 else
16074 echo "$as_me: failed program was:" >&5
16075 sed 's/^/| /' conftest.$ac_ext >&5
16076
16077 ac_cv_func_getloadavg=no
16078 fi
16079
16080 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16081 conftest$ac_exeext conftest.$ac_ext
16082 fi
16083 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16084 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16085 if test $ac_cv_func_getloadavg = yes; then
16086 exit 0
16087 else
16088 exit 1
16089 fi
16090 ) && ac_have_func=yes
16091
16092 # On HPUX9, an unprivileged user can get load averages through this function.
16093
16094 for ac_func in pstat_getdynamic
16095 do
16096 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16097 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16098 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16099 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16100 echo $ECHO_N "(cached) $ECHO_C" >&6
16101 else
16102 cat >conftest.$ac_ext <<_ACEOF
16103 /* confdefs.h. */
16104 _ACEOF
16105 cat confdefs.h >>conftest.$ac_ext
16106 cat >>conftest.$ac_ext <<_ACEOF
16107 /* end confdefs.h. */
16108 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16109 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16110 #define $ac_func innocuous_$ac_func
16111
16112 /* System header to define __stub macros and hopefully few prototypes,
16113 which can conflict with char $ac_func (); below.
16114 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16115 <limits.h> exists even on freestanding compilers. */
16116
16117 #ifdef __STDC__
16118 # include <limits.h>
16119 #else
16120 # include <assert.h>
16121 #endif
16122
16123 #undef $ac_func
16124
16125 /* Override any GCC internal prototype to avoid an error.
16126 Use char because int might match the return type of a GCC
16127 builtin and then its argument prototype would still apply. */
16128 #ifdef __cplusplus
16129 extern "C"
16130 #endif
16131 char $ac_func ();
16132 /* The GNU C library defines this for functions which it implements
16133 to always fail with ENOSYS. Some functions are actually named
16134 something starting with __ and the normal name is an alias. */
16135 #if defined __stub_$ac_func || defined __stub___$ac_func
16136 choke me
16137 #endif
16138
16139 int
16140 main ()
16141 {
16142 return $ac_func ();
16143 ;
16144 return 0;
16145 }
16146 _ACEOF
16147 rm -f conftest.$ac_objext conftest$ac_exeext
16148 if { (ac_try="$ac_link"
16149 case "(($ac_try" in
16150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16151 *) ac_try_echo=$ac_try;;
16152 esac
16153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16154 (eval "$ac_link") 2>conftest.er1
16155 ac_status=$?
16156 grep -v '^ *+' conftest.er1 >conftest.err
16157 rm -f conftest.er1
16158 cat conftest.err >&5
16159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16160 (exit $ac_status); } && {
16161 test -z "$ac_c_werror_flag" ||
16162 test ! -s conftest.err
16163 } && test -s conftest$ac_exeext &&
16164 $as_test_x conftest$ac_exeext; then
16165 eval "$as_ac_var=yes"
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 eval "$as_ac_var=no"
16171 fi
16172
16173 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16174 conftest$ac_exeext conftest.$ac_ext
16175 fi
16176 ac_res=`eval echo '${'$as_ac_var'}'`
16177 { echo "$as_me:$LINENO: result: $ac_res" >&5
16178 echo "${ECHO_T}$ac_res" >&6; }
16179 if test `eval echo '${'$as_ac_var'}'` = yes; then
16180 cat >>confdefs.h <<_ACEOF
16181 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16182 _ACEOF
16183
16184 fi
16185 done
16186
16187
16188 # Solaris has libkstat which does not require root.
16189
16190 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16191 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16192 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16193 echo $ECHO_N "(cached) $ECHO_C" >&6
16194 else
16195 ac_check_lib_save_LIBS=$LIBS
16196 LIBS="-lkstat $LIBS"
16197 cat >conftest.$ac_ext <<_ACEOF
16198 /* confdefs.h. */
16199 _ACEOF
16200 cat confdefs.h >>conftest.$ac_ext
16201 cat >>conftest.$ac_ext <<_ACEOF
16202 /* end confdefs.h. */
16203
16204 /* Override any GCC internal prototype to avoid an error.
16205 Use char because int might match the return type of a GCC
16206 builtin and then its argument prototype would still apply. */
16207 #ifdef __cplusplus
16208 extern "C"
16209 #endif
16210 char kstat_open ();
16211 int
16212 main ()
16213 {
16214 return kstat_open ();
16215 ;
16216 return 0;
16217 }
16218 _ACEOF
16219 rm -f conftest.$ac_objext conftest$ac_exeext
16220 if { (ac_try="$ac_link"
16221 case "(($ac_try" in
16222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223 *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226 (eval "$ac_link") 2>conftest.er1
16227 ac_status=$?
16228 grep -v '^ *+' conftest.er1 >conftest.err
16229 rm -f conftest.er1
16230 cat conftest.err >&5
16231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16232 (exit $ac_status); } && {
16233 test -z "$ac_c_werror_flag" ||
16234 test ! -s conftest.err
16235 } && test -s conftest$ac_exeext &&
16236 $as_test_x conftest$ac_exeext; then
16237 ac_cv_lib_kstat_kstat_open=yes
16238 else
16239 echo "$as_me: failed program was:" >&5
16240 sed 's/^/| /' conftest.$ac_ext >&5
16241
16242 ac_cv_lib_kstat_kstat_open=no
16243 fi
16244
16245 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16246 conftest$ac_exeext conftest.$ac_ext
16247 LIBS=$ac_check_lib_save_LIBS
16248 fi
16249 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16250 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16251 if test $ac_cv_lib_kstat_kstat_open = yes; then
16252 cat >>confdefs.h <<_ACEOF
16253 #define HAVE_LIBKSTAT 1
16254 _ACEOF
16255
16256 LIBS="-lkstat $LIBS"
16257
16258 fi
16259
16260 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16261
16262 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16263 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16264 # to get the right answer into the cache.
16265 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16266 if test $ac_have_func = no; then
16267 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16268 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16269 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16270 echo $ECHO_N "(cached) $ECHO_C" >&6
16271 else
16272 ac_check_lib_save_LIBS=$LIBS
16273 LIBS="-lelf $LIBS"
16274 cat >conftest.$ac_ext <<_ACEOF
16275 /* confdefs.h. */
16276 _ACEOF
16277 cat confdefs.h >>conftest.$ac_ext
16278 cat >>conftest.$ac_ext <<_ACEOF
16279 /* end confdefs.h. */
16280
16281 /* Override any GCC internal prototype to avoid an error.
16282 Use char because int might match the return type of a GCC
16283 builtin and then its argument prototype would still apply. */
16284 #ifdef __cplusplus
16285 extern "C"
16286 #endif
16287 char elf_begin ();
16288 int
16289 main ()
16290 {
16291 return elf_begin ();
16292 ;
16293 return 0;
16294 }
16295 _ACEOF
16296 rm -f conftest.$ac_objext conftest$ac_exeext
16297 if { (ac_try="$ac_link"
16298 case "(($ac_try" in
16299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16300 *) ac_try_echo=$ac_try;;
16301 esac
16302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16303 (eval "$ac_link") 2>conftest.er1
16304 ac_status=$?
16305 grep -v '^ *+' conftest.er1 >conftest.err
16306 rm -f conftest.er1
16307 cat conftest.err >&5
16308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16309 (exit $ac_status); } && {
16310 test -z "$ac_c_werror_flag" ||
16311 test ! -s conftest.err
16312 } && test -s conftest$ac_exeext &&
16313 $as_test_x conftest$ac_exeext; then
16314 ac_cv_lib_elf_elf_begin=yes
16315 else
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 ac_cv_lib_elf_elf_begin=no
16320 fi
16321
16322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16323 conftest$ac_exeext conftest.$ac_ext
16324 LIBS=$ac_check_lib_save_LIBS
16325 fi
16326 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16327 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16328 if test $ac_cv_lib_elf_elf_begin = yes; then
16329 LIBS="-lelf $LIBS"
16330 fi
16331
16332 fi
16333 if test $ac_have_func = no; then
16334 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16335 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16336 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16337 echo $ECHO_N "(cached) $ECHO_C" >&6
16338 else
16339 ac_check_lib_save_LIBS=$LIBS
16340 LIBS="-lkvm $LIBS"
16341 cat >conftest.$ac_ext <<_ACEOF
16342 /* confdefs.h. */
16343 _ACEOF
16344 cat confdefs.h >>conftest.$ac_ext
16345 cat >>conftest.$ac_ext <<_ACEOF
16346 /* end confdefs.h. */
16347
16348 /* Override any GCC internal prototype to avoid an error.
16349 Use char because int might match the return type of a GCC
16350 builtin and then its argument prototype would still apply. */
16351 #ifdef __cplusplus
16352 extern "C"
16353 #endif
16354 char kvm_open ();
16355 int
16356 main ()
16357 {
16358 return kvm_open ();
16359 ;
16360 return 0;
16361 }
16362 _ACEOF
16363 rm -f conftest.$ac_objext conftest$ac_exeext
16364 if { (ac_try="$ac_link"
16365 case "(($ac_try" in
16366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16367 *) ac_try_echo=$ac_try;;
16368 esac
16369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16370 (eval "$ac_link") 2>conftest.er1
16371 ac_status=$?
16372 grep -v '^ *+' conftest.er1 >conftest.err
16373 rm -f conftest.er1
16374 cat conftest.err >&5
16375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16376 (exit $ac_status); } && {
16377 test -z "$ac_c_werror_flag" ||
16378 test ! -s conftest.err
16379 } && test -s conftest$ac_exeext &&
16380 $as_test_x conftest$ac_exeext; then
16381 ac_cv_lib_kvm_kvm_open=yes
16382 else
16383 echo "$as_me: failed program was:" >&5
16384 sed 's/^/| /' conftest.$ac_ext >&5
16385
16386 ac_cv_lib_kvm_kvm_open=no
16387 fi
16388
16389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16390 conftest$ac_exeext conftest.$ac_ext
16391 LIBS=$ac_check_lib_save_LIBS
16392 fi
16393 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16394 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16395 if test $ac_cv_lib_kvm_kvm_open = yes; then
16396 LIBS="-lkvm $LIBS"
16397 fi
16398
16399 # Check for the 4.4BSD definition of getloadavg.
16400 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16401 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16402 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16403 echo $ECHO_N "(cached) $ECHO_C" >&6
16404 else
16405 ac_check_lib_save_LIBS=$LIBS
16406 LIBS="-lutil $LIBS"
16407 cat >conftest.$ac_ext <<_ACEOF
16408 /* confdefs.h. */
16409 _ACEOF
16410 cat confdefs.h >>conftest.$ac_ext
16411 cat >>conftest.$ac_ext <<_ACEOF
16412 /* end confdefs.h. */
16413
16414 /* Override any GCC internal prototype to avoid an error.
16415 Use char because int might match the return type of a GCC
16416 builtin and then its argument prototype would still apply. */
16417 #ifdef __cplusplus
16418 extern "C"
16419 #endif
16420 char getloadavg ();
16421 int
16422 main ()
16423 {
16424 return getloadavg ();
16425 ;
16426 return 0;
16427 }
16428 _ACEOF
16429 rm -f conftest.$ac_objext conftest$ac_exeext
16430 if { (ac_try="$ac_link"
16431 case "(($ac_try" in
16432 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16433 *) ac_try_echo=$ac_try;;
16434 esac
16435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16436 (eval "$ac_link") 2>conftest.er1
16437 ac_status=$?
16438 grep -v '^ *+' conftest.er1 >conftest.err
16439 rm -f conftest.er1
16440 cat conftest.err >&5
16441 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16442 (exit $ac_status); } && {
16443 test -z "$ac_c_werror_flag" ||
16444 test ! -s conftest.err
16445 } && test -s conftest$ac_exeext &&
16446 $as_test_x conftest$ac_exeext; then
16447 ac_cv_lib_util_getloadavg=yes
16448 else
16449 echo "$as_me: failed program was:" >&5
16450 sed 's/^/| /' conftest.$ac_ext >&5
16451
16452 ac_cv_lib_util_getloadavg=no
16453 fi
16454
16455 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16456 conftest$ac_exeext conftest.$ac_ext
16457 LIBS=$ac_check_lib_save_LIBS
16458 fi
16459 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16460 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16461 if test $ac_cv_lib_util_getloadavg = yes; then
16462 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16463 fi
16464
16465 fi
16466
16467 if test $ac_have_func = no; then
16468 # There is a commonly available library for RS/6000 AIX.
16469 # Since it is not a standard part of AIX, it might be installed locally.
16470 ac_getloadavg_LIBS=$LIBS
16471 LIBS="-L/usr/local/lib $LIBS"
16472 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16473 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16474 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16475 echo $ECHO_N "(cached) $ECHO_C" >&6
16476 else
16477 ac_check_lib_save_LIBS=$LIBS
16478 LIBS="-lgetloadavg $LIBS"
16479 cat >conftest.$ac_ext <<_ACEOF
16480 /* confdefs.h. */
16481 _ACEOF
16482 cat confdefs.h >>conftest.$ac_ext
16483 cat >>conftest.$ac_ext <<_ACEOF
16484 /* end confdefs.h. */
16485
16486 /* Override any GCC internal prototype to avoid an error.
16487 Use char because int might match the return type of a GCC
16488 builtin and then its argument prototype would still apply. */
16489 #ifdef __cplusplus
16490 extern "C"
16491 #endif
16492 char getloadavg ();
16493 int
16494 main ()
16495 {
16496 return getloadavg ();
16497 ;
16498 return 0;
16499 }
16500 _ACEOF
16501 rm -f conftest.$ac_objext conftest$ac_exeext
16502 if { (ac_try="$ac_link"
16503 case "(($ac_try" in
16504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16505 *) ac_try_echo=$ac_try;;
16506 esac
16507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16508 (eval "$ac_link") 2>conftest.er1
16509 ac_status=$?
16510 grep -v '^ *+' conftest.er1 >conftest.err
16511 rm -f conftest.er1
16512 cat conftest.err >&5
16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16514 (exit $ac_status); } && {
16515 test -z "$ac_c_werror_flag" ||
16516 test ! -s conftest.err
16517 } && test -s conftest$ac_exeext &&
16518 $as_test_x conftest$ac_exeext; then
16519 ac_cv_lib_getloadavg_getloadavg=yes
16520 else
16521 echo "$as_me: failed program was:" >&5
16522 sed 's/^/| /' conftest.$ac_ext >&5
16523
16524 ac_cv_lib_getloadavg_getloadavg=no
16525 fi
16526
16527 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16528 conftest$ac_exeext conftest.$ac_ext
16529 LIBS=$ac_check_lib_save_LIBS
16530 fi
16531 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16532 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16533 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16534 LIBS="-lgetloadavg $LIBS"
16535 else
16536 LIBS=$ac_getloadavg_LIBS
16537 fi
16538
16539 fi
16540
16541 # Make sure it is really in the library, if we think we found it,
16542 # otherwise set up the replacement function.
16543
16544 for ac_func in getloadavg
16545 do
16546 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16547 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16548 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16549 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16550 echo $ECHO_N "(cached) $ECHO_C" >&6
16551 else
16552 cat >conftest.$ac_ext <<_ACEOF
16553 /* confdefs.h. */
16554 _ACEOF
16555 cat confdefs.h >>conftest.$ac_ext
16556 cat >>conftest.$ac_ext <<_ACEOF
16557 /* end confdefs.h. */
16558 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16559 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16560 #define $ac_func innocuous_$ac_func
16561
16562 /* System header to define __stub macros and hopefully few prototypes,
16563 which can conflict with char $ac_func (); below.
16564 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16565 <limits.h> exists even on freestanding compilers. */
16566
16567 #ifdef __STDC__
16568 # include <limits.h>
16569 #else
16570 # include <assert.h>
16571 #endif
16572
16573 #undef $ac_func
16574
16575 /* Override any GCC internal prototype to avoid an error.
16576 Use char because int might match the return type of a GCC
16577 builtin and then its argument prototype would still apply. */
16578 #ifdef __cplusplus
16579 extern "C"
16580 #endif
16581 char $ac_func ();
16582 /* The GNU C library defines this for functions which it implements
16583 to always fail with ENOSYS. Some functions are actually named
16584 something starting with __ and the normal name is an alias. */
16585 #if defined __stub_$ac_func || defined __stub___$ac_func
16586 choke me
16587 #endif
16588
16589 int
16590 main ()
16591 {
16592 return $ac_func ();
16593 ;
16594 return 0;
16595 }
16596 _ACEOF
16597 rm -f conftest.$ac_objext conftest$ac_exeext
16598 if { (ac_try="$ac_link"
16599 case "(($ac_try" in
16600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16601 *) ac_try_echo=$ac_try;;
16602 esac
16603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16604 (eval "$ac_link") 2>conftest.er1
16605 ac_status=$?
16606 grep -v '^ *+' conftest.er1 >conftest.err
16607 rm -f conftest.er1
16608 cat conftest.err >&5
16609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16610 (exit $ac_status); } && {
16611 test -z "$ac_c_werror_flag" ||
16612 test ! -s conftest.err
16613 } && test -s conftest$ac_exeext &&
16614 $as_test_x conftest$ac_exeext; then
16615 eval "$as_ac_var=yes"
16616 else
16617 echo "$as_me: failed program was:" >&5
16618 sed 's/^/| /' conftest.$ac_ext >&5
16619
16620 eval "$as_ac_var=no"
16621 fi
16622
16623 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16624 conftest$ac_exeext conftest.$ac_ext
16625 fi
16626 ac_res=`eval echo '${'$as_ac_var'}'`
16627 { echo "$as_me:$LINENO: result: $ac_res" >&5
16628 echo "${ECHO_T}$ac_res" >&6; }
16629 if test `eval echo '${'$as_ac_var'}'` = yes; then
16630 cat >>confdefs.h <<_ACEOF
16631 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16632 _ACEOF
16633
16634 else
16635 case " $LIBOBJS " in
16636 *" getloadavg.$ac_objext "* ) ;;
16637 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16638 ;;
16639 esac
16640
16641
16642 cat >>confdefs.h <<\_ACEOF
16643 #define C_GETLOADAVG 1
16644 _ACEOF
16645
16646 # Figure out what our getloadavg.c needs.
16647 ac_have_func=no
16648 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16649 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16650 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16651 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16652 echo $ECHO_N "(cached) $ECHO_C" >&6
16653 fi
16654 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16655 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16656 else
16657 # Is the header compilable?
16658 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
16659 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
16660 cat >conftest.$ac_ext <<_ACEOF
16661 /* confdefs.h. */
16662 _ACEOF
16663 cat confdefs.h >>conftest.$ac_ext
16664 cat >>conftest.$ac_ext <<_ACEOF
16665 /* end confdefs.h. */
16666 $ac_includes_default
16667 #include <sys/dg_sys_info.h>
16668 _ACEOF
16669 rm -f conftest.$ac_objext
16670 if { (ac_try="$ac_compile"
16671 case "(($ac_try" in
16672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16673 *) ac_try_echo=$ac_try;;
16674 esac
16675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16676 (eval "$ac_compile") 2>conftest.er1
16677 ac_status=$?
16678 grep -v '^ *+' conftest.er1 >conftest.err
16679 rm -f conftest.er1
16680 cat conftest.err >&5
16681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16682 (exit $ac_status); } && {
16683 test -z "$ac_c_werror_flag" ||
16684 test ! -s conftest.err
16685 } && test -s conftest.$ac_objext; then
16686 ac_header_compiler=yes
16687 else
16688 echo "$as_me: failed program was:" >&5
16689 sed 's/^/| /' conftest.$ac_ext >&5
16690
16691 ac_header_compiler=no
16692 fi
16693
16694 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16695 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16696 echo "${ECHO_T}$ac_header_compiler" >&6; }
16697
16698 # Is the header present?
16699 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
16700 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
16701 cat >conftest.$ac_ext <<_ACEOF
16702 /* confdefs.h. */
16703 _ACEOF
16704 cat confdefs.h >>conftest.$ac_ext
16705 cat >>conftest.$ac_ext <<_ACEOF
16706 /* end confdefs.h. */
16707 #include <sys/dg_sys_info.h>
16708 _ACEOF
16709 if { (ac_try="$ac_cpp conftest.$ac_ext"
16710 case "(($ac_try" in
16711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16712 *) ac_try_echo=$ac_try;;
16713 esac
16714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16715 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16716 ac_status=$?
16717 grep -v '^ *+' conftest.er1 >conftest.err
16718 rm -f conftest.er1
16719 cat conftest.err >&5
16720 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16721 (exit $ac_status); } >/dev/null && {
16722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16723 test ! -s conftest.err
16724 }; then
16725 ac_header_preproc=yes
16726 else
16727 echo "$as_me: failed program was:" >&5
16728 sed 's/^/| /' conftest.$ac_ext >&5
16729
16730 ac_header_preproc=no
16731 fi
16732
16733 rm -f conftest.err conftest.$ac_ext
16734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16735 echo "${ECHO_T}$ac_header_preproc" >&6; }
16736
16737 # So? What about this header?
16738 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16739 yes:no: )
16740 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
16741 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16742 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
16743 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
16744 ac_header_preproc=yes
16745 ;;
16746 no:yes:* )
16747 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
16748 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
16749 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
16750 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
16751 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
16752 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
16753 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
16754 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
16755 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
16756 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
16757 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
16758 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
16759
16760 ;;
16761 esac
16762 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
16763 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
16764 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
16765 echo $ECHO_N "(cached) $ECHO_C" >&6
16766 else
16767 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
16768 fi
16769 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
16770 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
16771
16772 fi
16773 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
16774 ac_have_func=yes
16775
16776 cat >>confdefs.h <<\_ACEOF
16777 #define DGUX 1
16778 _ACEOF
16779
16780
16781 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
16782 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
16783 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
16784 echo $ECHO_N "(cached) $ECHO_C" >&6
16785 else
16786 ac_check_lib_save_LIBS=$LIBS
16787 LIBS="-ldgc $LIBS"
16788 cat >conftest.$ac_ext <<_ACEOF
16789 /* confdefs.h. */
16790 _ACEOF
16791 cat confdefs.h >>conftest.$ac_ext
16792 cat >>conftest.$ac_ext <<_ACEOF
16793 /* end confdefs.h. */
16794
16795 /* Override any GCC internal prototype to avoid an error.
16796 Use char because int might match the return type of a GCC
16797 builtin and then its argument prototype would still apply. */
16798 #ifdef __cplusplus
16799 extern "C"
16800 #endif
16801 char dg_sys_info ();
16802 int
16803 main ()
16804 {
16805 return dg_sys_info ();
16806 ;
16807 return 0;
16808 }
16809 _ACEOF
16810 rm -f conftest.$ac_objext conftest$ac_exeext
16811 if { (ac_try="$ac_link"
16812 case "(($ac_try" in
16813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16814 *) ac_try_echo=$ac_try;;
16815 esac
16816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16817 (eval "$ac_link") 2>conftest.er1
16818 ac_status=$?
16819 grep -v '^ *+' conftest.er1 >conftest.err
16820 rm -f conftest.er1
16821 cat conftest.err >&5
16822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16823 (exit $ac_status); } && {
16824 test -z "$ac_c_werror_flag" ||
16825 test ! -s conftest.err
16826 } && test -s conftest$ac_exeext &&
16827 $as_test_x conftest$ac_exeext; then
16828 ac_cv_lib_dgc_dg_sys_info=yes
16829 else
16830 echo "$as_me: failed program was:" >&5
16831 sed 's/^/| /' conftest.$ac_ext >&5
16832
16833 ac_cv_lib_dgc_dg_sys_info=no
16834 fi
16835
16836 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16837 conftest$ac_exeext conftest.$ac_ext
16838 LIBS=$ac_check_lib_save_LIBS
16839 fi
16840 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
16841 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
16842 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
16843 cat >>confdefs.h <<_ACEOF
16844 #define HAVE_LIBDGC 1
16845 _ACEOF
16846
16847 LIBS="-ldgc $LIBS"
16848
16849 fi
16850
16851 fi
16852
16853
16854
16855 if test "${ac_cv_header_locale_h+set}" = set; then
16856 { echo "$as_me:$LINENO: checking for locale.h" >&5
16857 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16858 if test "${ac_cv_header_locale_h+set}" = set; then
16859 echo $ECHO_N "(cached) $ECHO_C" >&6
16860 fi
16861 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16862 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16863 else
16864 # Is the header compilable?
16865 { echo "$as_me:$LINENO: checking locale.h usability" >&5
16866 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h. */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h. */
16873 $ac_includes_default
16874 #include <locale.h>
16875 _ACEOF
16876 rm -f conftest.$ac_objext
16877 if { (ac_try="$ac_compile"
16878 case "(($ac_try" in
16879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880 *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883 (eval "$ac_compile") 2>conftest.er1
16884 ac_status=$?
16885 grep -v '^ *+' conftest.er1 >conftest.err
16886 rm -f conftest.er1
16887 cat conftest.err >&5
16888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889 (exit $ac_status); } && {
16890 test -z "$ac_c_werror_flag" ||
16891 test ! -s conftest.err
16892 } && test -s conftest.$ac_objext; then
16893 ac_header_compiler=yes
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_header_compiler=no
16899 fi
16900
16901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16903 echo "${ECHO_T}$ac_header_compiler" >&6; }
16904
16905 # Is the header present?
16906 { echo "$as_me:$LINENO: checking locale.h presence" >&5
16907 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h. */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h. */
16914 #include <locale.h>
16915 _ACEOF
16916 if { (ac_try="$ac_cpp conftest.$ac_ext"
16917 case "(($ac_try" in
16918 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919 *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16923 ac_status=$?
16924 grep -v '^ *+' conftest.er1 >conftest.err
16925 rm -f conftest.er1
16926 cat conftest.err >&5
16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928 (exit $ac_status); } >/dev/null && {
16929 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16930 test ! -s conftest.err
16931 }; then
16932 ac_header_preproc=yes
16933 else
16934 echo "$as_me: failed program was:" >&5
16935 sed 's/^/| /' conftest.$ac_ext >&5
16936
16937 ac_header_preproc=no
16938 fi
16939
16940 rm -f conftest.err conftest.$ac_ext
16941 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16942 echo "${ECHO_T}$ac_header_preproc" >&6; }
16943
16944 # So? What about this header?
16945 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16946 yes:no: )
16947 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
16948 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
16949 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
16950 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
16951 ac_header_preproc=yes
16952 ;;
16953 no:yes:* )
16954 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
16955 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
16956 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
16957 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
16958 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
16959 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
16960 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
16961 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
16962 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
16963 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
16964 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
16965 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
16966
16967 ;;
16968 esac
16969 { echo "$as_me:$LINENO: checking for locale.h" >&5
16970 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
16971 if test "${ac_cv_header_locale_h+set}" = set; then
16972 echo $ECHO_N "(cached) $ECHO_C" >&6
16973 else
16974 ac_cv_header_locale_h=$ac_header_preproc
16975 fi
16976 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
16977 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
16978
16979 fi
16980
16981
16982
16983 for ac_func in setlocale
16984 do
16985 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16986 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16987 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16988 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16989 echo $ECHO_N "(cached) $ECHO_C" >&6
16990 else
16991 cat >conftest.$ac_ext <<_ACEOF
16992 /* confdefs.h. */
16993 _ACEOF
16994 cat confdefs.h >>conftest.$ac_ext
16995 cat >>conftest.$ac_ext <<_ACEOF
16996 /* end confdefs.h. */
16997 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16998 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16999 #define $ac_func innocuous_$ac_func
17000
17001 /* System header to define __stub macros and hopefully few prototypes,
17002 which can conflict with char $ac_func (); below.
17003 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17004 <limits.h> exists even on freestanding compilers. */
17005
17006 #ifdef __STDC__
17007 # include <limits.h>
17008 #else
17009 # include <assert.h>
17010 #endif
17011
17012 #undef $ac_func
17013
17014 /* Override any GCC internal prototype to avoid an error.
17015 Use char because int might match the return type of a GCC
17016 builtin and then its argument prototype would still apply. */
17017 #ifdef __cplusplus
17018 extern "C"
17019 #endif
17020 char $ac_func ();
17021 /* The GNU C library defines this for functions which it implements
17022 to always fail with ENOSYS. Some functions are actually named
17023 something starting with __ and the normal name is an alias. */
17024 #if defined __stub_$ac_func || defined __stub___$ac_func
17025 choke me
17026 #endif
17027
17028 int
17029 main ()
17030 {
17031 return $ac_func ();
17032 ;
17033 return 0;
17034 }
17035 _ACEOF
17036 rm -f conftest.$ac_objext conftest$ac_exeext
17037 if { (ac_try="$ac_link"
17038 case "(($ac_try" in
17039 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17040 *) ac_try_echo=$ac_try;;
17041 esac
17042 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17043 (eval "$ac_link") 2>conftest.er1
17044 ac_status=$?
17045 grep -v '^ *+' conftest.er1 >conftest.err
17046 rm -f conftest.er1
17047 cat conftest.err >&5
17048 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17049 (exit $ac_status); } && {
17050 test -z "$ac_c_werror_flag" ||
17051 test ! -s conftest.err
17052 } && test -s conftest$ac_exeext &&
17053 $as_test_x conftest$ac_exeext; then
17054 eval "$as_ac_var=yes"
17055 else
17056 echo "$as_me: failed program was:" >&5
17057 sed 's/^/| /' conftest.$ac_ext >&5
17058
17059 eval "$as_ac_var=no"
17060 fi
17061
17062 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17063 conftest$ac_exeext conftest.$ac_ext
17064 fi
17065 ac_res=`eval echo '${'$as_ac_var'}'`
17066 { echo "$as_me:$LINENO: result: $ac_res" >&5
17067 echo "${ECHO_T}$ac_res" >&6; }
17068 if test `eval echo '${'$as_ac_var'}'` = yes; then
17069 cat >>confdefs.h <<_ACEOF
17070 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17071 _ACEOF
17072
17073 fi
17074 done
17075
17076
17077 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17078 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17079 # Irix 4.0.5F has the header but not the library.
17080 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17081 ac_have_func=yes
17082
17083 cat >>confdefs.h <<\_ACEOF
17084 #define SVR4 1
17085 _ACEOF
17086
17087 fi
17088
17089 if test $ac_have_func = no; then
17090 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17091 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17092 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17093 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17094 echo $ECHO_N "(cached) $ECHO_C" >&6
17095 fi
17096 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17097 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17098 else
17099 # Is the header compilable?
17100 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17101 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17102 cat >conftest.$ac_ext <<_ACEOF
17103 /* confdefs.h. */
17104 _ACEOF
17105 cat confdefs.h >>conftest.$ac_ext
17106 cat >>conftest.$ac_ext <<_ACEOF
17107 /* end confdefs.h. */
17108 $ac_includes_default
17109 #include <inq_stats/cpustats.h>
17110 _ACEOF
17111 rm -f conftest.$ac_objext
17112 if { (ac_try="$ac_compile"
17113 case "(($ac_try" in
17114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17115 *) ac_try_echo=$ac_try;;
17116 esac
17117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17118 (eval "$ac_compile") 2>conftest.er1
17119 ac_status=$?
17120 grep -v '^ *+' conftest.er1 >conftest.err
17121 rm -f conftest.er1
17122 cat conftest.err >&5
17123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17124 (exit $ac_status); } && {
17125 test -z "$ac_c_werror_flag" ||
17126 test ! -s conftest.err
17127 } && test -s conftest.$ac_objext; then
17128 ac_header_compiler=yes
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_header_compiler=no
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17137 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17138 echo "${ECHO_T}$ac_header_compiler" >&6; }
17139
17140 # Is the header present?
17141 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17142 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17143 cat >conftest.$ac_ext <<_ACEOF
17144 /* confdefs.h. */
17145 _ACEOF
17146 cat confdefs.h >>conftest.$ac_ext
17147 cat >>conftest.$ac_ext <<_ACEOF
17148 /* end confdefs.h. */
17149 #include <inq_stats/cpustats.h>
17150 _ACEOF
17151 if { (ac_try="$ac_cpp conftest.$ac_ext"
17152 case "(($ac_try" in
17153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17154 *) ac_try_echo=$ac_try;;
17155 esac
17156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17157 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17158 ac_status=$?
17159 grep -v '^ *+' conftest.er1 >conftest.err
17160 rm -f conftest.er1
17161 cat conftest.err >&5
17162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17163 (exit $ac_status); } >/dev/null && {
17164 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17165 test ! -s conftest.err
17166 }; then
17167 ac_header_preproc=yes
17168 else
17169 echo "$as_me: failed program was:" >&5
17170 sed 's/^/| /' conftest.$ac_ext >&5
17171
17172 ac_header_preproc=no
17173 fi
17174
17175 rm -f conftest.err conftest.$ac_ext
17176 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17177 echo "${ECHO_T}$ac_header_preproc" >&6; }
17178
17179 # So? What about this header?
17180 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17181 yes:no: )
17182 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17183 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17184 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17185 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17186 ac_header_preproc=yes
17187 ;;
17188 no:yes:* )
17189 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17190 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17191 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17192 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17193 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17194 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17195 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17196 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17197 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17198 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17199 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17200 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17201
17202 ;;
17203 esac
17204 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17205 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17206 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17207 echo $ECHO_N "(cached) $ECHO_C" >&6
17208 else
17209 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17210 fi
17211 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17212 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17213
17214 fi
17215 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17216 ac_have_func=yes
17217
17218 cat >>confdefs.h <<\_ACEOF
17219 #define UMAX 1
17220 _ACEOF
17221
17222
17223 cat >>confdefs.h <<\_ACEOF
17224 #define UMAX4_3 1
17225 _ACEOF
17226
17227 fi
17228
17229
17230 fi
17231
17232 if test $ac_have_func = no; then
17233 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17234 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17235 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17236 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17237 echo $ECHO_N "(cached) $ECHO_C" >&6
17238 fi
17239 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17240 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17241 else
17242 # Is the header compilable?
17243 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17244 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17245 cat >conftest.$ac_ext <<_ACEOF
17246 /* confdefs.h. */
17247 _ACEOF
17248 cat confdefs.h >>conftest.$ac_ext
17249 cat >>conftest.$ac_ext <<_ACEOF
17250 /* end confdefs.h. */
17251 $ac_includes_default
17252 #include <sys/cpustats.h>
17253 _ACEOF
17254 rm -f conftest.$ac_objext
17255 if { (ac_try="$ac_compile"
17256 case "(($ac_try" in
17257 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17258 *) ac_try_echo=$ac_try;;
17259 esac
17260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17261 (eval "$ac_compile") 2>conftest.er1
17262 ac_status=$?
17263 grep -v '^ *+' conftest.er1 >conftest.err
17264 rm -f conftest.er1
17265 cat conftest.err >&5
17266 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17267 (exit $ac_status); } && {
17268 test -z "$ac_c_werror_flag" ||
17269 test ! -s conftest.err
17270 } && test -s conftest.$ac_objext; then
17271 ac_header_compiler=yes
17272 else
17273 echo "$as_me: failed program was:" >&5
17274 sed 's/^/| /' conftest.$ac_ext >&5
17275
17276 ac_header_compiler=no
17277 fi
17278
17279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17280 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17281 echo "${ECHO_T}$ac_header_compiler" >&6; }
17282
17283 # Is the header present?
17284 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17285 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17286 cat >conftest.$ac_ext <<_ACEOF
17287 /* confdefs.h. */
17288 _ACEOF
17289 cat confdefs.h >>conftest.$ac_ext
17290 cat >>conftest.$ac_ext <<_ACEOF
17291 /* end confdefs.h. */
17292 #include <sys/cpustats.h>
17293 _ACEOF
17294 if { (ac_try="$ac_cpp conftest.$ac_ext"
17295 case "(($ac_try" in
17296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17297 *) ac_try_echo=$ac_try;;
17298 esac
17299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17300 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17301 ac_status=$?
17302 grep -v '^ *+' conftest.er1 >conftest.err
17303 rm -f conftest.er1
17304 cat conftest.err >&5
17305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17306 (exit $ac_status); } >/dev/null && {
17307 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17308 test ! -s conftest.err
17309 }; then
17310 ac_header_preproc=yes
17311 else
17312 echo "$as_me: failed program was:" >&5
17313 sed 's/^/| /' conftest.$ac_ext >&5
17314
17315 ac_header_preproc=no
17316 fi
17317
17318 rm -f conftest.err conftest.$ac_ext
17319 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17320 echo "${ECHO_T}$ac_header_preproc" >&6; }
17321
17322 # So? What about this header?
17323 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17324 yes:no: )
17325 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17326 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17327 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17328 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17329 ac_header_preproc=yes
17330 ;;
17331 no:yes:* )
17332 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17333 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17334 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17335 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17336 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17337 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17339 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17340 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17341 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17342 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17343 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17344
17345 ;;
17346 esac
17347 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17348 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17349 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17350 echo $ECHO_N "(cached) $ECHO_C" >&6
17351 else
17352 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17353 fi
17354 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17355 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17356
17357 fi
17358 if test $ac_cv_header_sys_cpustats_h = yes; then
17359 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17360 #define UMAX 1
17361 _ACEOF
17362
17363 fi
17364
17365
17366 fi
17367
17368 if test $ac_have_func = no; then
17369
17370 for ac_header in mach/mach.h
17371 do
17372 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17373 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17374 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17375 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17376 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17377 echo $ECHO_N "(cached) $ECHO_C" >&6
17378 fi
17379 ac_res=`eval echo '${'$as_ac_Header'}'`
17380 { echo "$as_me:$LINENO: result: $ac_res" >&5
17381 echo "${ECHO_T}$ac_res" >&6; }
17382 else
17383 # Is the header compilable?
17384 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17385 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17386 cat >conftest.$ac_ext <<_ACEOF
17387 /* confdefs.h. */
17388 _ACEOF
17389 cat confdefs.h >>conftest.$ac_ext
17390 cat >>conftest.$ac_ext <<_ACEOF
17391 /* end confdefs.h. */
17392 $ac_includes_default
17393 #include <$ac_header>
17394 _ACEOF
17395 rm -f conftest.$ac_objext
17396 if { (ac_try="$ac_compile"
17397 case "(($ac_try" in
17398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17399 *) ac_try_echo=$ac_try;;
17400 esac
17401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17402 (eval "$ac_compile") 2>conftest.er1
17403 ac_status=$?
17404 grep -v '^ *+' conftest.er1 >conftest.err
17405 rm -f conftest.er1
17406 cat conftest.err >&5
17407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408 (exit $ac_status); } && {
17409 test -z "$ac_c_werror_flag" ||
17410 test ! -s conftest.err
17411 } && test -s conftest.$ac_objext; then
17412 ac_header_compiler=yes
17413 else
17414 echo "$as_me: failed program was:" >&5
17415 sed 's/^/| /' conftest.$ac_ext >&5
17416
17417 ac_header_compiler=no
17418 fi
17419
17420 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17421 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17422 echo "${ECHO_T}$ac_header_compiler" >&6; }
17423
17424 # Is the header present?
17425 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17426 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17427 cat >conftest.$ac_ext <<_ACEOF
17428 /* confdefs.h. */
17429 _ACEOF
17430 cat confdefs.h >>conftest.$ac_ext
17431 cat >>conftest.$ac_ext <<_ACEOF
17432 /* end confdefs.h. */
17433 #include <$ac_header>
17434 _ACEOF
17435 if { (ac_try="$ac_cpp conftest.$ac_ext"
17436 case "(($ac_try" in
17437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17438 *) ac_try_echo=$ac_try;;
17439 esac
17440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17441 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17442 ac_status=$?
17443 grep -v '^ *+' conftest.er1 >conftest.err
17444 rm -f conftest.er1
17445 cat conftest.err >&5
17446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17447 (exit $ac_status); } >/dev/null && {
17448 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17449 test ! -s conftest.err
17450 }; then
17451 ac_header_preproc=yes
17452 else
17453 echo "$as_me: failed program was:" >&5
17454 sed 's/^/| /' conftest.$ac_ext >&5
17455
17456 ac_header_preproc=no
17457 fi
17458
17459 rm -f conftest.err conftest.$ac_ext
17460 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17461 echo "${ECHO_T}$ac_header_preproc" >&6; }
17462
17463 # So? What about this header?
17464 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17465 yes:no: )
17466 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17467 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17468 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17469 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17470 ac_header_preproc=yes
17471 ;;
17472 no:yes:* )
17473 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17474 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17475 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17476 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17477 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17478 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17479 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17480 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17481 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17482 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17483 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17484 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17485
17486 ;;
17487 esac
17488 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17489 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17490 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17491 echo $ECHO_N "(cached) $ECHO_C" >&6
17492 else
17493 eval "$as_ac_Header=\$ac_header_preproc"
17494 fi
17495 ac_res=`eval echo '${'$as_ac_Header'}'`
17496 { echo "$as_me:$LINENO: result: $ac_res" >&5
17497 echo "${ECHO_T}$ac_res" >&6; }
17498
17499 fi
17500 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17501 cat >>confdefs.h <<_ACEOF
17502 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17503 _ACEOF
17504
17505 fi
17506
17507 done
17508
17509 fi
17510
17511
17512 for ac_header in nlist.h
17513 do
17514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17516 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17519 echo $ECHO_N "(cached) $ECHO_C" >&6
17520 fi
17521 ac_res=`eval echo '${'$as_ac_Header'}'`
17522 { echo "$as_me:$LINENO: result: $ac_res" >&5
17523 echo "${ECHO_T}$ac_res" >&6; }
17524 else
17525 # Is the header compilable?
17526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17528 cat >conftest.$ac_ext <<_ACEOF
17529 /* confdefs.h. */
17530 _ACEOF
17531 cat confdefs.h >>conftest.$ac_ext
17532 cat >>conftest.$ac_ext <<_ACEOF
17533 /* end confdefs.h. */
17534 $ac_includes_default
17535 #include <$ac_header>
17536 _ACEOF
17537 rm -f conftest.$ac_objext
17538 if { (ac_try="$ac_compile"
17539 case "(($ac_try" in
17540 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17541 *) ac_try_echo=$ac_try;;
17542 esac
17543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17544 (eval "$ac_compile") 2>conftest.er1
17545 ac_status=$?
17546 grep -v '^ *+' conftest.er1 >conftest.err
17547 rm -f conftest.er1
17548 cat conftest.err >&5
17549 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17550 (exit $ac_status); } && {
17551 test -z "$ac_c_werror_flag" ||
17552 test ! -s conftest.err
17553 } && test -s conftest.$ac_objext; then
17554 ac_header_compiler=yes
17555 else
17556 echo "$as_me: failed program was:" >&5
17557 sed 's/^/| /' conftest.$ac_ext >&5
17558
17559 ac_header_compiler=no
17560 fi
17561
17562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17564 echo "${ECHO_T}$ac_header_compiler" >&6; }
17565
17566 # Is the header present?
17567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17569 cat >conftest.$ac_ext <<_ACEOF
17570 /* confdefs.h. */
17571 _ACEOF
17572 cat confdefs.h >>conftest.$ac_ext
17573 cat >>conftest.$ac_ext <<_ACEOF
17574 /* end confdefs.h. */
17575 #include <$ac_header>
17576 _ACEOF
17577 if { (ac_try="$ac_cpp conftest.$ac_ext"
17578 case "(($ac_try" in
17579 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17580 *) ac_try_echo=$ac_try;;
17581 esac
17582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17583 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17584 ac_status=$?
17585 grep -v '^ *+' conftest.er1 >conftest.err
17586 rm -f conftest.er1
17587 cat conftest.err >&5
17588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17589 (exit $ac_status); } >/dev/null && {
17590 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17591 test ! -s conftest.err
17592 }; then
17593 ac_header_preproc=yes
17594 else
17595 echo "$as_me: failed program was:" >&5
17596 sed 's/^/| /' conftest.$ac_ext >&5
17597
17598 ac_header_preproc=no
17599 fi
17600
17601 rm -f conftest.err conftest.$ac_ext
17602 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17603 echo "${ECHO_T}$ac_header_preproc" >&6; }
17604
17605 # So? What about this header?
17606 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17607 yes:no: )
17608 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17609 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17610 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17611 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17612 ac_header_preproc=yes
17613 ;;
17614 no:yes:* )
17615 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17616 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17617 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17618 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17619 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17620 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17621 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17622 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17623 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17624 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17625 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17626 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17627
17628 ;;
17629 esac
17630 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17631 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17632 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17633 echo $ECHO_N "(cached) $ECHO_C" >&6
17634 else
17635 eval "$as_ac_Header=\$ac_header_preproc"
17636 fi
17637 ac_res=`eval echo '${'$as_ac_Header'}'`
17638 { echo "$as_me:$LINENO: result: $ac_res" >&5
17639 echo "${ECHO_T}$ac_res" >&6; }
17640
17641 fi
17642 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17643 cat >>confdefs.h <<_ACEOF
17644 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17645 _ACEOF
17646 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
17647 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
17648 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
17649 echo $ECHO_N "(cached) $ECHO_C" >&6
17650 else
17651 cat >conftest.$ac_ext <<_ACEOF
17652 /* confdefs.h. */
17653 _ACEOF
17654 cat confdefs.h >>conftest.$ac_ext
17655 cat >>conftest.$ac_ext <<_ACEOF
17656 /* end confdefs.h. */
17657 #include <nlist.h>
17658
17659 int
17660 main ()
17661 {
17662 static struct nlist ac_aggr;
17663 if (ac_aggr.n_un.n_name)
17664 return 0;
17665 ;
17666 return 0;
17667 }
17668 _ACEOF
17669 rm -f conftest.$ac_objext
17670 if { (ac_try="$ac_compile"
17671 case "(($ac_try" in
17672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17673 *) ac_try_echo=$ac_try;;
17674 esac
17675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17676 (eval "$ac_compile") 2>conftest.er1
17677 ac_status=$?
17678 grep -v '^ *+' conftest.er1 >conftest.err
17679 rm -f conftest.er1
17680 cat conftest.err >&5
17681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17682 (exit $ac_status); } && {
17683 test -z "$ac_c_werror_flag" ||
17684 test ! -s conftest.err
17685 } && test -s conftest.$ac_objext; then
17686 ac_cv_member_struct_nlist_n_un_n_name=yes
17687 else
17688 echo "$as_me: failed program was:" >&5
17689 sed 's/^/| /' conftest.$ac_ext >&5
17690
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 <nlist.h>
17698
17699 int
17700 main ()
17701 {
17702 static struct nlist ac_aggr;
17703 if (sizeof ac_aggr.n_un.n_name)
17704 return 0;
17705 ;
17706 return 0;
17707 }
17708 _ACEOF
17709 rm -f conftest.$ac_objext
17710 if { (ac_try="$ac_compile"
17711 case "(($ac_try" in
17712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17713 *) ac_try_echo=$ac_try;;
17714 esac
17715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17716 (eval "$ac_compile") 2>conftest.er1
17717 ac_status=$?
17718 grep -v '^ *+' conftest.er1 >conftest.err
17719 rm -f conftest.er1
17720 cat conftest.err >&5
17721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17722 (exit $ac_status); } && {
17723 test -z "$ac_c_werror_flag" ||
17724 test ! -s conftest.err
17725 } && test -s conftest.$ac_objext; then
17726 ac_cv_member_struct_nlist_n_un_n_name=yes
17727 else
17728 echo "$as_me: failed program was:" >&5
17729 sed 's/^/| /' conftest.$ac_ext >&5
17730
17731 ac_cv_member_struct_nlist_n_un_n_name=no
17732 fi
17733
17734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17735 fi
17736
17737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17738 fi
17739 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
17740 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
17741 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
17742
17743 cat >>confdefs.h <<_ACEOF
17744 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
17745 _ACEOF
17746
17747
17748 cat >>confdefs.h <<\_ACEOF
17749 #define NLIST_NAME_UNION 1
17750 _ACEOF
17751
17752 fi
17753
17754
17755 fi
17756
17757 done
17758
17759 fi
17760 done
17761
17762
17763 # Some definitions of getloadavg require that the program be installed setgid.
17764 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
17765 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
17766 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
17767 echo $ECHO_N "(cached) $ECHO_C" >&6
17768 else
17769 cat >conftest.$ac_ext <<_ACEOF
17770 /* confdefs.h. */
17771 _ACEOF
17772 cat confdefs.h >>conftest.$ac_ext
17773 cat >>conftest.$ac_ext <<_ACEOF
17774 /* end confdefs.h. */
17775 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
17776 #ifdef LDAV_PRIVILEGED
17777 Yowza Am I SETGID yet
17778 #endif
17779 _ACEOF
17780 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17781 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
17782 ac_cv_func_getloadavg_setgid=yes
17783 else
17784 ac_cv_func_getloadavg_setgid=no
17785 fi
17786 rm -f conftest*
17787
17788 fi
17789 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
17790 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
17791 if test $ac_cv_func_getloadavg_setgid = yes; then
17792 NEED_SETGID=true
17793
17794 cat >>confdefs.h <<\_ACEOF
17795 #define GETLOADAVG_PRIVILEGED 1
17796 _ACEOF
17797
17798 else
17799 NEED_SETGID=false
17800 fi
17801
17802 if test $ac_cv_func_getloadavg_setgid = yes; then
17803 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
17804 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
17805 if test "${ac_cv_group_kmem+set}" = set; then
17806 echo $ECHO_N "(cached) $ECHO_C" >&6
17807 else
17808 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
17809 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
17810 # If we got an error (system does not support symlinks), try without -L.
17811 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
17812 ac_cv_group_kmem=`echo $ac_ls_output \
17813 | sed -ne 's/[ ][ ]*/ /g;
17814 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
17815 / /s/.* //;p;'`
17816
17817 fi
17818 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
17819 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
17820 KMEM_GROUP=$ac_cv_group_kmem
17821 fi
17822 if test "x$ac_save_LIBS" = x; then
17823 GETLOADAVG_LIBS=$LIBS
17824 else
17825 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
17826 fi
17827 LIBS=$ac_save_LIBS
17828
17829
17830
17831 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
17832 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
17833 if test "${ac_cv_sys_largefile_source+set}" = set; then
17834 echo $ECHO_N "(cached) $ECHO_C" >&6
17835 else
17836 while :; do
17837 cat >conftest.$ac_ext <<_ACEOF
17838 /* confdefs.h. */
17839 _ACEOF
17840 cat confdefs.h >>conftest.$ac_ext
17841 cat >>conftest.$ac_ext <<_ACEOF
17842 /* end confdefs.h. */
17843 #include <stdio.h>
17844 int
17845 main ()
17846 {
17847 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17848 ;
17849 return 0;
17850 }
17851 _ACEOF
17852 rm -f conftest.$ac_objext conftest$ac_exeext
17853 if { (ac_try="$ac_link"
17854 case "(($ac_try" in
17855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17856 *) ac_try_echo=$ac_try;;
17857 esac
17858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17859 (eval "$ac_link") 2>conftest.er1
17860 ac_status=$?
17861 grep -v '^ *+' conftest.er1 >conftest.err
17862 rm -f conftest.er1
17863 cat conftest.err >&5
17864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17865 (exit $ac_status); } && {
17866 test -z "$ac_c_werror_flag" ||
17867 test ! -s conftest.err
17868 } && test -s conftest$ac_exeext &&
17869 $as_test_x conftest$ac_exeext; then
17870 ac_cv_sys_largefile_source=no; break
17871 else
17872 echo "$as_me: failed program was:" >&5
17873 sed 's/^/| /' conftest.$ac_ext >&5
17874
17875
17876 fi
17877
17878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17879 conftest$ac_exeext conftest.$ac_ext
17880 cat >conftest.$ac_ext <<_ACEOF
17881 /* confdefs.h. */
17882 _ACEOF
17883 cat confdefs.h >>conftest.$ac_ext
17884 cat >>conftest.$ac_ext <<_ACEOF
17885 /* end confdefs.h. */
17886 #define _LARGEFILE_SOURCE 1
17887 #include <stdio.h>
17888 int
17889 main ()
17890 {
17891 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
17892 ;
17893 return 0;
17894 }
17895 _ACEOF
17896 rm -f conftest.$ac_objext conftest$ac_exeext
17897 if { (ac_try="$ac_link"
17898 case "(($ac_try" in
17899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17900 *) ac_try_echo=$ac_try;;
17901 esac
17902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17903 (eval "$ac_link") 2>conftest.er1
17904 ac_status=$?
17905 grep -v '^ *+' conftest.er1 >conftest.err
17906 rm -f conftest.er1
17907 cat conftest.err >&5
17908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17909 (exit $ac_status); } && {
17910 test -z "$ac_c_werror_flag" ||
17911 test ! -s conftest.err
17912 } && test -s conftest$ac_exeext &&
17913 $as_test_x conftest$ac_exeext; then
17914 ac_cv_sys_largefile_source=1; break
17915 else
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919
17920 fi
17921
17922 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17923 conftest$ac_exeext conftest.$ac_ext
17924 ac_cv_sys_largefile_source=unknown
17925 break
17926 done
17927 fi
17928 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
17929 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
17930 case $ac_cv_sys_largefile_source in #(
17931 no | unknown) ;;
17932 *)
17933 cat >>confdefs.h <<_ACEOF
17934 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
17935 _ACEOF
17936 ;;
17937 esac
17938 rm -f conftest*
17939
17940 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
17941 # in glibc 2.1.3, but that breaks too many other things.
17942 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
17943 if test $ac_cv_sys_largefile_source != unknown; then
17944
17945 cat >>confdefs.h <<\_ACEOF
17946 #define HAVE_FSEEKO 1
17947 _ACEOF
17948
17949 fi
17950
17951
17952 # Configure getopt.
17953 # getopt.m4 serial 10
17954
17955 # The getopt module assume you want GNU getopt, with getopt_long etc,
17956 # rather than vanilla POSIX getopt. This means your your code should
17957 # always include <getopt.h> for the getopt prototypes.
17958
17959
17960
17961
17962
17963
17964
17965
17966
17967
17968
17969 # Prerequisites of lib/getopt*.
17970
17971
17972
17973
17974 GETOPT_H=
17975
17976 for ac_header in getopt.h
17977 do
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17988 else
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_header_compiler=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 }; then
18057 ac_header_preproc=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_header_preproc=no
18063 fi
18064
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 yes:no: )
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18077 ;;
18078 no:yes:* )
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18091
18092 ;;
18093 esac
18094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 eval "$as_ac_Header=\$ac_header_preproc"
18100 fi
18101 ac_res=`eval echo '${'$as_ac_Header'}'`
18102 { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104
18105 fi
18106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18109 _ACEOF
18110
18111 else
18112 GETOPT_H=getopt.h
18113 fi
18114
18115 done
18116
18117 if test -z "$GETOPT_H"; then
18118
18119 for ac_func in getopt_long_only
18120 do
18121 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18122 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18123 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 else
18127 cat >conftest.$ac_ext <<_ACEOF
18128 /* confdefs.h. */
18129 _ACEOF
18130 cat confdefs.h >>conftest.$ac_ext
18131 cat >>conftest.$ac_ext <<_ACEOF
18132 /* end confdefs.h. */
18133 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18134 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18135 #define $ac_func innocuous_$ac_func
18136
18137 /* System header to define __stub macros and hopefully few prototypes,
18138 which can conflict with char $ac_func (); below.
18139 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18140 <limits.h> exists even on freestanding compilers. */
18141
18142 #ifdef __STDC__
18143 # include <limits.h>
18144 #else
18145 # include <assert.h>
18146 #endif
18147
18148 #undef $ac_func
18149
18150 /* Override any GCC internal prototype to avoid an error.
18151 Use char because int might match the return type of a GCC
18152 builtin and then its argument prototype would still apply. */
18153 #ifdef __cplusplus
18154 extern "C"
18155 #endif
18156 char $ac_func ();
18157 /* The GNU C library defines this for functions which it implements
18158 to always fail with ENOSYS. Some functions are actually named
18159 something starting with __ and the normal name is an alias. */
18160 #if defined __stub_$ac_func || defined __stub___$ac_func
18161 choke me
18162 #endif
18163
18164 int
18165 main ()
18166 {
18167 return $ac_func ();
18168 ;
18169 return 0;
18170 }
18171 _ACEOF
18172 rm -f conftest.$ac_objext conftest$ac_exeext
18173 if { (ac_try="$ac_link"
18174 case "(($ac_try" in
18175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18176 *) ac_try_echo=$ac_try;;
18177 esac
18178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18179 (eval "$ac_link") 2>conftest.er1
18180 ac_status=$?
18181 grep -v '^ *+' conftest.er1 >conftest.err
18182 rm -f conftest.er1
18183 cat conftest.err >&5
18184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18185 (exit $ac_status); } && {
18186 test -z "$ac_c_werror_flag" ||
18187 test ! -s conftest.err
18188 } && test -s conftest$ac_exeext &&
18189 $as_test_x conftest$ac_exeext; then
18190 eval "$as_ac_var=yes"
18191 else
18192 echo "$as_me: failed program was:" >&5
18193 sed 's/^/| /' conftest.$ac_ext >&5
18194
18195 eval "$as_ac_var=no"
18196 fi
18197
18198 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18199 conftest$ac_exeext conftest.$ac_ext
18200 fi
18201 ac_res=`eval echo '${'$as_ac_var'}'`
18202 { echo "$as_me:$LINENO: result: $ac_res" >&5
18203 echo "${ECHO_T}$ac_res" >&6; }
18204 if test `eval echo '${'$as_ac_var'}'` = yes; then
18205 cat >>confdefs.h <<_ACEOF
18206 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18207 _ACEOF
18208
18209 else
18210 GETOPT_H=getopt.h
18211 fi
18212 done
18213
18214 fi
18215
18216 if test -z "$GETOPT_H"; then
18217 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18218 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18219 if test "${ac_cv_have_decl_optreset+set}" = set; then
18220 echo $ECHO_N "(cached) $ECHO_C" >&6
18221 else
18222 cat >conftest.$ac_ext <<_ACEOF
18223 /* confdefs.h. */
18224 _ACEOF
18225 cat confdefs.h >>conftest.$ac_ext
18226 cat >>conftest.$ac_ext <<_ACEOF
18227 /* end confdefs.h. */
18228 #include <getopt.h>
18229
18230 int
18231 main ()
18232 {
18233 #ifndef optreset
18234 (void) optreset;
18235 #endif
18236
18237 ;
18238 return 0;
18239 }
18240 _ACEOF
18241 rm -f conftest.$ac_objext
18242 if { (ac_try="$ac_compile"
18243 case "(($ac_try" in
18244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18245 *) ac_try_echo=$ac_try;;
18246 esac
18247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18248 (eval "$ac_compile") 2>conftest.er1
18249 ac_status=$?
18250 grep -v '^ *+' conftest.er1 >conftest.err
18251 rm -f conftest.er1
18252 cat conftest.err >&5
18253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18254 (exit $ac_status); } && {
18255 test -z "$ac_c_werror_flag" ||
18256 test ! -s conftest.err
18257 } && test -s conftest.$ac_objext; then
18258 ac_cv_have_decl_optreset=yes
18259 else
18260 echo "$as_me: failed program was:" >&5
18261 sed 's/^/| /' conftest.$ac_ext >&5
18262
18263 ac_cv_have_decl_optreset=no
18264 fi
18265
18266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18267 fi
18268 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18269 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18270 if test $ac_cv_have_decl_optreset = yes; then
18271 GETOPT_H=getopt.h
18272 fi
18273
18274 fi
18275
18276 if test -z "$GETOPT_H"; then
18277 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18278 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18279 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18280 echo $ECHO_N "(cached) $ECHO_C" >&6
18281 else
18282 if test "$cross_compiling" = yes; then
18283 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18284 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18285 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18286 echo $ECHO_N "(cached) $ECHO_C" >&6
18287 else
18288 cat >conftest.$ac_ext <<_ACEOF
18289 /* confdefs.h. */
18290 _ACEOF
18291 cat confdefs.h >>conftest.$ac_ext
18292 cat >>conftest.$ac_ext <<_ACEOF
18293 /* end confdefs.h. */
18294 #include <getopt.h>
18295
18296 int
18297 main ()
18298 {
18299 #ifndef getopt_clip
18300 (void) getopt_clip;
18301 #endif
18302
18303 ;
18304 return 0;
18305 }
18306 _ACEOF
18307 rm -f conftest.$ac_objext
18308 if { (ac_try="$ac_compile"
18309 case "(($ac_try" in
18310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18311 *) ac_try_echo=$ac_try;;
18312 esac
18313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18314 (eval "$ac_compile") 2>conftest.er1
18315 ac_status=$?
18316 grep -v '^ *+' conftest.er1 >conftest.err
18317 rm -f conftest.er1
18318 cat conftest.err >&5
18319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18320 (exit $ac_status); } && {
18321 test -z "$ac_c_werror_flag" ||
18322 test ! -s conftest.err
18323 } && test -s conftest.$ac_objext; then
18324 ac_cv_have_decl_getopt_clip=yes
18325 else
18326 echo "$as_me: failed program was:" >&5
18327 sed 's/^/| /' conftest.$ac_ext >&5
18328
18329 ac_cv_have_decl_getopt_clip=no
18330 fi
18331
18332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18333 fi
18334 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18335 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18336 if test $ac_cv_have_decl_getopt_clip = yes; then
18337 gl_cv_func_gnu_getopt=no
18338 else
18339 gl_cv_func_gnu_getopt=yes
18340 fi
18341
18342 else
18343 cat >conftest.$ac_ext <<_ACEOF
18344 /* confdefs.h. */
18345 _ACEOF
18346 cat confdefs.h >>conftest.$ac_ext
18347 cat >>conftest.$ac_ext <<_ACEOF
18348 /* end confdefs.h. */
18349 #include <getopt.h>
18350 int
18351 main ()
18352 {
18353
18354 char *myargv[3];
18355 myargv[0] = "conftest";
18356 myargv[1] = "-+";
18357 myargv[2] = 0;
18358 return getopt (2, myargv, "+a") != '?';
18359
18360 ;
18361 return 0;
18362 }
18363 _ACEOF
18364 rm -f conftest$ac_exeext
18365 if { (ac_try="$ac_link"
18366 case "(($ac_try" in
18367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368 *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371 (eval "$ac_link") 2>&5
18372 ac_status=$?
18373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18375 { (case "(($ac_try" in
18376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18377 *) ac_try_echo=$ac_try;;
18378 esac
18379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18380 (eval "$ac_try") 2>&5
18381 ac_status=$?
18382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18383 (exit $ac_status); }; }; then
18384 gl_cv_func_gnu_getopt=yes
18385 else
18386 echo "$as_me: program exited with status $ac_status" >&5
18387 echo "$as_me: failed program was:" >&5
18388 sed 's/^/| /' conftest.$ac_ext >&5
18389
18390 ( exit $ac_status )
18391 gl_cv_func_gnu_getopt=no
18392 fi
18393 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18394 fi
18395
18396
18397 fi
18398 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18399 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18400 if test "$gl_cv_func_gnu_getopt" = "no"; then
18401 GETOPT_H=getopt.h
18402 fi
18403 fi
18404
18405
18406
18407 if test -n "$GETOPT_H"; then
18408
18409
18410 GETOPT_H=getopt.h
18411
18412 cat >>confdefs.h <<\_ACEOF
18413 #define __GETOPT_PREFIX rpl_
18414 _ACEOF
18415
18416
18417
18418 :
18419 GETOPTOBJS='getopt.o getopt1.o'
18420
18421 fi
18422
18423
18424
18425
18426 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18427 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18428 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18429 echo $ECHO_N "(cached) $ECHO_C" >&6
18430 else
18431 # Use it with a single arg.
18432 cat >conftest.$ac_ext <<_ACEOF
18433 /* confdefs.h. */
18434 _ACEOF
18435 cat confdefs.h >>conftest.$ac_ext
18436 cat >>conftest.$ac_ext <<_ACEOF
18437 /* end confdefs.h. */
18438 $ac_includes_default
18439 int
18440 main ()
18441 {
18442 getpgrp (0);
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 rm -f conftest.$ac_objext
18448 if { (ac_try="$ac_compile"
18449 case "(($ac_try" in
18450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18451 *) ac_try_echo=$ac_try;;
18452 esac
18453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18454 (eval "$ac_compile") 2>conftest.er1
18455 ac_status=$?
18456 grep -v '^ *+' conftest.er1 >conftest.err
18457 rm -f conftest.er1
18458 cat conftest.err >&5
18459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18460 (exit $ac_status); } && {
18461 test -z "$ac_c_werror_flag" ||
18462 test ! -s conftest.err
18463 } && test -s conftest.$ac_objext; then
18464 ac_cv_func_getpgrp_void=no
18465 else
18466 echo "$as_me: failed program was:" >&5
18467 sed 's/^/| /' conftest.$ac_ext >&5
18468
18469 ac_cv_func_getpgrp_void=yes
18470 fi
18471
18472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18473
18474 fi
18475 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18476 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18477 if test $ac_cv_func_getpgrp_void = yes; then
18478
18479 cat >>confdefs.h <<\_ACEOF
18480 #define GETPGRP_VOID 1
18481 _ACEOF
18482
18483 fi
18484
18485
18486
18487 for ac_func in strftime
18488 do
18489 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18490 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18491 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18492 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18493 echo $ECHO_N "(cached) $ECHO_C" >&6
18494 else
18495 cat >conftest.$ac_ext <<_ACEOF
18496 /* confdefs.h. */
18497 _ACEOF
18498 cat confdefs.h >>conftest.$ac_ext
18499 cat >>conftest.$ac_ext <<_ACEOF
18500 /* end confdefs.h. */
18501 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18502 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18503 #define $ac_func innocuous_$ac_func
18504
18505 /* System header to define __stub macros and hopefully few prototypes,
18506 which can conflict with char $ac_func (); below.
18507 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18508 <limits.h> exists even on freestanding compilers. */
18509
18510 #ifdef __STDC__
18511 # include <limits.h>
18512 #else
18513 # include <assert.h>
18514 #endif
18515
18516 #undef $ac_func
18517
18518 /* Override any GCC internal prototype to avoid an error.
18519 Use char because int might match the return type of a GCC
18520 builtin and then its argument prototype would still apply. */
18521 #ifdef __cplusplus
18522 extern "C"
18523 #endif
18524 char $ac_func ();
18525 /* The GNU C library defines this for functions which it implements
18526 to always fail with ENOSYS. Some functions are actually named
18527 something starting with __ and the normal name is an alias. */
18528 #if defined __stub_$ac_func || defined __stub___$ac_func
18529 choke me
18530 #endif
18531
18532 int
18533 main ()
18534 {
18535 return $ac_func ();
18536 ;
18537 return 0;
18538 }
18539 _ACEOF
18540 rm -f conftest.$ac_objext conftest$ac_exeext
18541 if { (ac_try="$ac_link"
18542 case "(($ac_try" in
18543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18544 *) ac_try_echo=$ac_try;;
18545 esac
18546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18547 (eval "$ac_link") 2>conftest.er1
18548 ac_status=$?
18549 grep -v '^ *+' conftest.er1 >conftest.err
18550 rm -f conftest.er1
18551 cat conftest.err >&5
18552 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18553 (exit $ac_status); } && {
18554 test -z "$ac_c_werror_flag" ||
18555 test ! -s conftest.err
18556 } && test -s conftest$ac_exeext &&
18557 $as_test_x conftest$ac_exeext; then
18558 eval "$as_ac_var=yes"
18559 else
18560 echo "$as_me: failed program was:" >&5
18561 sed 's/^/| /' conftest.$ac_ext >&5
18562
18563 eval "$as_ac_var=no"
18564 fi
18565
18566 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18567 conftest$ac_exeext conftest.$ac_ext
18568 fi
18569 ac_res=`eval echo '${'$as_ac_var'}'`
18570 { echo "$as_me:$LINENO: result: $ac_res" >&5
18571 echo "${ECHO_T}$ac_res" >&6; }
18572 if test `eval echo '${'$as_ac_var'}'` = yes; then
18573 cat >>confdefs.h <<_ACEOF
18574 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18575 _ACEOF
18576
18577 else
18578 # strftime is in -lintl on SCO UNIX.
18579 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18580 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18581 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18582 echo $ECHO_N "(cached) $ECHO_C" >&6
18583 else
18584 ac_check_lib_save_LIBS=$LIBS
18585 LIBS="-lintl $LIBS"
18586 cat >conftest.$ac_ext <<_ACEOF
18587 /* confdefs.h. */
18588 _ACEOF
18589 cat confdefs.h >>conftest.$ac_ext
18590 cat >>conftest.$ac_ext <<_ACEOF
18591 /* end confdefs.h. */
18592
18593 /* Override any GCC internal prototype to avoid an error.
18594 Use char because int might match the return type of a GCC
18595 builtin and then its argument prototype would still apply. */
18596 #ifdef __cplusplus
18597 extern "C"
18598 #endif
18599 char strftime ();
18600 int
18601 main ()
18602 {
18603 return strftime ();
18604 ;
18605 return 0;
18606 }
18607 _ACEOF
18608 rm -f conftest.$ac_objext conftest$ac_exeext
18609 if { (ac_try="$ac_link"
18610 case "(($ac_try" in
18611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18612 *) ac_try_echo=$ac_try;;
18613 esac
18614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18615 (eval "$ac_link") 2>conftest.er1
18616 ac_status=$?
18617 grep -v '^ *+' conftest.er1 >conftest.err
18618 rm -f conftest.er1
18619 cat conftest.err >&5
18620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18621 (exit $ac_status); } && {
18622 test -z "$ac_c_werror_flag" ||
18623 test ! -s conftest.err
18624 } && test -s conftest$ac_exeext &&
18625 $as_test_x conftest$ac_exeext; then
18626 ac_cv_lib_intl_strftime=yes
18627 else
18628 echo "$as_me: failed program was:" >&5
18629 sed 's/^/| /' conftest.$ac_ext >&5
18630
18631 ac_cv_lib_intl_strftime=no
18632 fi
18633
18634 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18635 conftest$ac_exeext conftest.$ac_ext
18636 LIBS=$ac_check_lib_save_LIBS
18637 fi
18638 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18639 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18640 if test $ac_cv_lib_intl_strftime = yes; then
18641 cat >>confdefs.h <<\_ACEOF
18642 #define HAVE_STRFTIME 1
18643 _ACEOF
18644
18645 LIBS="-lintl $LIBS"
18646 fi
18647
18648 fi
18649 done
18650
18651
18652 # UNIX98 PTYs.
18653
18654 for ac_func in grantpt
18655 do
18656 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18657 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18658 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18659 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18669 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18670 #define $ac_func innocuous_$ac_func
18671
18672 /* System header to define __stub macros and hopefully few prototypes,
18673 which can conflict with char $ac_func (); below.
18674 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18675 <limits.h> exists even on freestanding compilers. */
18676
18677 #ifdef __STDC__
18678 # include <limits.h>
18679 #else
18680 # include <assert.h>
18681 #endif
18682
18683 #undef $ac_func
18684
18685 /* Override any GCC internal prototype to avoid an error.
18686 Use char because int might match the return type of a GCC
18687 builtin and then its argument prototype would still apply. */
18688 #ifdef __cplusplus
18689 extern "C"
18690 #endif
18691 char $ac_func ();
18692 /* The GNU C library defines this for functions which it implements
18693 to always fail with ENOSYS. Some functions are actually named
18694 something starting with __ and the normal name is an alias. */
18695 #if defined __stub_$ac_func || defined __stub___$ac_func
18696 choke me
18697 #endif
18698
18699 int
18700 main ()
18701 {
18702 return $ac_func ();
18703 ;
18704 return 0;
18705 }
18706 _ACEOF
18707 rm -f conftest.$ac_objext conftest$ac_exeext
18708 if { (ac_try="$ac_link"
18709 case "(($ac_try" in
18710 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18711 *) ac_try_echo=$ac_try;;
18712 esac
18713 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18714 (eval "$ac_link") 2>conftest.er1
18715 ac_status=$?
18716 grep -v '^ *+' conftest.er1 >conftest.err
18717 rm -f conftest.er1
18718 cat conftest.err >&5
18719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18720 (exit $ac_status); } && {
18721 test -z "$ac_c_werror_flag" ||
18722 test ! -s conftest.err
18723 } && test -s conftest$ac_exeext &&
18724 $as_test_x conftest$ac_exeext; then
18725 eval "$as_ac_var=yes"
18726 else
18727 echo "$as_me: failed program was:" >&5
18728 sed 's/^/| /' conftest.$ac_ext >&5
18729
18730 eval "$as_ac_var=no"
18731 fi
18732
18733 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18734 conftest$ac_exeext conftest.$ac_ext
18735 fi
18736 ac_res=`eval echo '${'$as_ac_var'}'`
18737 { echo "$as_me:$LINENO: result: $ac_res" >&5
18738 echo "${ECHO_T}$ac_res" >&6; }
18739 if test `eval echo '${'$as_ac_var'}'` = yes; then
18740 cat >>confdefs.h <<_ACEOF
18741 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18742 _ACEOF
18743
18744 fi
18745 done
18746
18747
18748 # PTY-related GNU extensions.
18749
18750 for ac_func in getpt
18751 do
18752 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18753 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18754 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18755 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18756 echo $ECHO_N "(cached) $ECHO_C" >&6
18757 else
18758 cat >conftest.$ac_ext <<_ACEOF
18759 /* confdefs.h. */
18760 _ACEOF
18761 cat confdefs.h >>conftest.$ac_ext
18762 cat >>conftest.$ac_ext <<_ACEOF
18763 /* end confdefs.h. */
18764 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18765 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18766 #define $ac_func innocuous_$ac_func
18767
18768 /* System header to define __stub macros and hopefully few prototypes,
18769 which can conflict with char $ac_func (); below.
18770 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18771 <limits.h> exists even on freestanding compilers. */
18772
18773 #ifdef __STDC__
18774 # include <limits.h>
18775 #else
18776 # include <assert.h>
18777 #endif
18778
18779 #undef $ac_func
18780
18781 /* Override any GCC internal prototype to avoid an error.
18782 Use char because int might match the return type of a GCC
18783 builtin and then its argument prototype would still apply. */
18784 #ifdef __cplusplus
18785 extern "C"
18786 #endif
18787 char $ac_func ();
18788 /* The GNU C library defines this for functions which it implements
18789 to always fail with ENOSYS. Some functions are actually named
18790 something starting with __ and the normal name is an alias. */
18791 #if defined __stub_$ac_func || defined __stub___$ac_func
18792 choke me
18793 #endif
18794
18795 int
18796 main ()
18797 {
18798 return $ac_func ();
18799 ;
18800 return 0;
18801 }
18802 _ACEOF
18803 rm -f conftest.$ac_objext conftest$ac_exeext
18804 if { (ac_try="$ac_link"
18805 case "(($ac_try" in
18806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18807 *) ac_try_echo=$ac_try;;
18808 esac
18809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18810 (eval "$ac_link") 2>conftest.er1
18811 ac_status=$?
18812 grep -v '^ *+' conftest.er1 >conftest.err
18813 rm -f conftest.er1
18814 cat conftest.err >&5
18815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18816 (exit $ac_status); } && {
18817 test -z "$ac_c_werror_flag" ||
18818 test ! -s conftest.err
18819 } && test -s conftest$ac_exeext &&
18820 $as_test_x conftest$ac_exeext; then
18821 eval "$as_ac_var=yes"
18822 else
18823 echo "$as_me: failed program was:" >&5
18824 sed 's/^/| /' conftest.$ac_ext >&5
18825
18826 eval "$as_ac_var=no"
18827 fi
18828
18829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18830 conftest$ac_exeext conftest.$ac_ext
18831 fi
18832 ac_res=`eval echo '${'$as_ac_var'}'`
18833 { echo "$as_me:$LINENO: result: $ac_res" >&5
18834 echo "${ECHO_T}$ac_res" >&6; }
18835 if test `eval echo '${'$as_ac_var'}'` = yes; then
18836 cat >>confdefs.h <<_ACEOF
18837 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18838 _ACEOF
18839
18840 fi
18841 done
18842
18843
18844 # Check this now, so that we will NOT find the above functions in ncurses.
18845 # That is because we have not set up to link ncurses in lib-src.
18846 # It's better to believe a function is not available
18847 # than to expect to find it in ncurses.
18848
18849 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
18850 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
18851 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
18852 echo $ECHO_N "(cached) $ECHO_C" >&6
18853 else
18854 ac_check_lib_save_LIBS=$LIBS
18855 LIBS="-lncurses $LIBS"
18856 cat >conftest.$ac_ext <<_ACEOF
18857 /* confdefs.h. */
18858 _ACEOF
18859 cat confdefs.h >>conftest.$ac_ext
18860 cat >>conftest.$ac_ext <<_ACEOF
18861 /* end confdefs.h. */
18862
18863 /* Override any GCC internal prototype to avoid an error.
18864 Use char because int might match the return type of a GCC
18865 builtin and then its argument prototype would still apply. */
18866 #ifdef __cplusplus
18867 extern "C"
18868 #endif
18869 char tparm ();
18870 int
18871 main ()
18872 {
18873 return tparm ();
18874 ;
18875 return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest.$ac_objext conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882 *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885 (eval "$ac_link") 2>conftest.er1
18886 ac_status=$?
18887 grep -v '^ *+' conftest.er1 >conftest.err
18888 rm -f conftest.er1
18889 cat conftest.err >&5
18890 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18891 (exit $ac_status); } && {
18892 test -z "$ac_c_werror_flag" ||
18893 test ! -s conftest.err
18894 } && test -s conftest$ac_exeext &&
18895 $as_test_x conftest$ac_exeext; then
18896 ac_cv_lib_ncurses_tparm=yes
18897 else
18898 echo "$as_me: failed program was:" >&5
18899 sed 's/^/| /' conftest.$ac_ext >&5
18900
18901 ac_cv_lib_ncurses_tparm=no
18902 fi
18903
18904 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18905 conftest$ac_exeext conftest.$ac_ext
18906 LIBS=$ac_check_lib_save_LIBS
18907 fi
18908 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
18909 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
18910 if test $ac_cv_lib_ncurses_tparm = yes; then
18911 cat >>confdefs.h <<_ACEOF
18912 #define HAVE_LIBNCURSES 1
18913 _ACEOF
18914
18915 LIBS="-lncurses $LIBS"
18916
18917 fi
18918
18919
18920 # Do we need the Hesiod library to provide the support routines?
18921 if test "$with_hesiod" = yes ; then
18922 # Don't set $LIBS here -- see comments above.
18923 resolv=no
18924 { echo "$as_me:$LINENO: checking for res_send" >&5
18925 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
18926 if test "${ac_cv_func_res_send+set}" = set; then
18927 echo $ECHO_N "(cached) $ECHO_C" >&6
18928 else
18929 cat >conftest.$ac_ext <<_ACEOF
18930 /* confdefs.h. */
18931 _ACEOF
18932 cat confdefs.h >>conftest.$ac_ext
18933 cat >>conftest.$ac_ext <<_ACEOF
18934 /* end confdefs.h. */
18935 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
18936 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18937 #define res_send innocuous_res_send
18938
18939 /* System header to define __stub macros and hopefully few prototypes,
18940 which can conflict with char res_send (); below.
18941 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18942 <limits.h> exists even on freestanding compilers. */
18943
18944 #ifdef __STDC__
18945 # include <limits.h>
18946 #else
18947 # include <assert.h>
18948 #endif
18949
18950 #undef res_send
18951
18952 /* Override any GCC internal prototype to avoid an error.
18953 Use char because int might match the return type of a GCC
18954 builtin and then its argument prototype would still apply. */
18955 #ifdef __cplusplus
18956 extern "C"
18957 #endif
18958 char res_send ();
18959 /* The GNU C library defines this for functions which it implements
18960 to always fail with ENOSYS. Some functions are actually named
18961 something starting with __ and the normal name is an alias. */
18962 #if defined __stub_res_send || defined __stub___res_send
18963 choke me
18964 #endif
18965
18966 int
18967 main ()
18968 {
18969 return res_send ();
18970 ;
18971 return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest.$ac_objext conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>conftest.er1
18982 ac_status=$?
18983 grep -v '^ *+' conftest.er1 >conftest.err
18984 rm -f conftest.er1
18985 cat conftest.err >&5
18986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18987 (exit $ac_status); } && {
18988 test -z "$ac_c_werror_flag" ||
18989 test ! -s conftest.err
18990 } && test -s conftest$ac_exeext &&
18991 $as_test_x conftest$ac_exeext; then
18992 ac_cv_func_res_send=yes
18993 else
18994 echo "$as_me: failed program was:" >&5
18995 sed 's/^/| /' conftest.$ac_ext >&5
18996
18997 ac_cv_func_res_send=no
18998 fi
18999
19000 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19001 conftest$ac_exeext conftest.$ac_ext
19002 fi
19003 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19004 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19005 if test $ac_cv_func_res_send = yes; then
19006 :
19007 else
19008 { echo "$as_me:$LINENO: checking for __res_send" >&5
19009 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19010 if test "${ac_cv_func___res_send+set}" = set; then
19011 echo $ECHO_N "(cached) $ECHO_C" >&6
19012 else
19013 cat >conftest.$ac_ext <<_ACEOF
19014 /* confdefs.h. */
19015 _ACEOF
19016 cat confdefs.h >>conftest.$ac_ext
19017 cat >>conftest.$ac_ext <<_ACEOF
19018 /* end confdefs.h. */
19019 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19020 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19021 #define __res_send innocuous___res_send
19022
19023 /* System header to define __stub macros and hopefully few prototypes,
19024 which can conflict with char __res_send (); below.
19025 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19026 <limits.h> exists even on freestanding compilers. */
19027
19028 #ifdef __STDC__
19029 # include <limits.h>
19030 #else
19031 # include <assert.h>
19032 #endif
19033
19034 #undef __res_send
19035
19036 /* Override any GCC internal prototype to avoid an error.
19037 Use char because int might match the return type of a GCC
19038 builtin and then its argument prototype would still apply. */
19039 #ifdef __cplusplus
19040 extern "C"
19041 #endif
19042 char __res_send ();
19043 /* The GNU C library defines this for functions which it implements
19044 to always fail with ENOSYS. Some functions are actually named
19045 something starting with __ and the normal name is an alias. */
19046 #if defined __stub___res_send || defined __stub_____res_send
19047 choke me
19048 #endif
19049
19050 int
19051 main ()
19052 {
19053 return __res_send ();
19054 ;
19055 return 0;
19056 }
19057 _ACEOF
19058 rm -f conftest.$ac_objext conftest$ac_exeext
19059 if { (ac_try="$ac_link"
19060 case "(($ac_try" in
19061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19062 *) ac_try_echo=$ac_try;;
19063 esac
19064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19065 (eval "$ac_link") 2>conftest.er1
19066 ac_status=$?
19067 grep -v '^ *+' conftest.er1 >conftest.err
19068 rm -f conftest.er1
19069 cat conftest.err >&5
19070 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19071 (exit $ac_status); } && {
19072 test -z "$ac_c_werror_flag" ||
19073 test ! -s conftest.err
19074 } && test -s conftest$ac_exeext &&
19075 $as_test_x conftest$ac_exeext; then
19076 ac_cv_func___res_send=yes
19077 else
19078 echo "$as_me: failed program was:" >&5
19079 sed 's/^/| /' conftest.$ac_ext >&5
19080
19081 ac_cv_func___res_send=no
19082 fi
19083
19084 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19085 conftest$ac_exeext conftest.$ac_ext
19086 fi
19087 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19088 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19089 if test $ac_cv_func___res_send = yes; then
19090 :
19091 else
19092 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19093 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19094 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19095 echo $ECHO_N "(cached) $ECHO_C" >&6
19096 else
19097 ac_check_lib_save_LIBS=$LIBS
19098 LIBS="-lresolv $LIBS"
19099 cat >conftest.$ac_ext <<_ACEOF
19100 /* confdefs.h. */
19101 _ACEOF
19102 cat confdefs.h >>conftest.$ac_ext
19103 cat >>conftest.$ac_ext <<_ACEOF
19104 /* end confdefs.h. */
19105
19106 /* Override any GCC internal prototype to avoid an error.
19107 Use char because int might match the return type of a GCC
19108 builtin and then its argument prototype would still apply. */
19109 #ifdef __cplusplus
19110 extern "C"
19111 #endif
19112 char res_send ();
19113 int
19114 main ()
19115 {
19116 return res_send ();
19117 ;
19118 return 0;
19119 }
19120 _ACEOF
19121 rm -f conftest.$ac_objext conftest$ac_exeext
19122 if { (ac_try="$ac_link"
19123 case "(($ac_try" in
19124 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19125 *) ac_try_echo=$ac_try;;
19126 esac
19127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19128 (eval "$ac_link") 2>conftest.er1
19129 ac_status=$?
19130 grep -v '^ *+' conftest.er1 >conftest.err
19131 rm -f conftest.er1
19132 cat conftest.err >&5
19133 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19134 (exit $ac_status); } && {
19135 test -z "$ac_c_werror_flag" ||
19136 test ! -s conftest.err
19137 } && test -s conftest$ac_exeext &&
19138 $as_test_x conftest$ac_exeext; then
19139 ac_cv_lib_resolv_res_send=yes
19140 else
19141 echo "$as_me: failed program was:" >&5
19142 sed 's/^/| /' conftest.$ac_ext >&5
19143
19144 ac_cv_lib_resolv_res_send=no
19145 fi
19146
19147 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19148 conftest$ac_exeext conftest.$ac_ext
19149 LIBS=$ac_check_lib_save_LIBS
19150 fi
19151 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19152 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19153 if test $ac_cv_lib_resolv_res_send = yes; then
19154 resolv=yes
19155 else
19156 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19157 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19158 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19159 echo $ECHO_N "(cached) $ECHO_C" >&6
19160 else
19161 ac_check_lib_save_LIBS=$LIBS
19162 LIBS="-lresolv $LIBS"
19163 cat >conftest.$ac_ext <<_ACEOF
19164 /* confdefs.h. */
19165 _ACEOF
19166 cat confdefs.h >>conftest.$ac_ext
19167 cat >>conftest.$ac_ext <<_ACEOF
19168 /* end confdefs.h. */
19169
19170 /* Override any GCC internal prototype to avoid an error.
19171 Use char because int might match the return type of a GCC
19172 builtin and then its argument prototype would still apply. */
19173 #ifdef __cplusplus
19174 extern "C"
19175 #endif
19176 char __res_send ();
19177 int
19178 main ()
19179 {
19180 return __res_send ();
19181 ;
19182 return 0;
19183 }
19184 _ACEOF
19185 rm -f conftest.$ac_objext conftest$ac_exeext
19186 if { (ac_try="$ac_link"
19187 case "(($ac_try" in
19188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19189 *) ac_try_echo=$ac_try;;
19190 esac
19191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19192 (eval "$ac_link") 2>conftest.er1
19193 ac_status=$?
19194 grep -v '^ *+' conftest.er1 >conftest.err
19195 rm -f conftest.er1
19196 cat conftest.err >&5
19197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19198 (exit $ac_status); } && {
19199 test -z "$ac_c_werror_flag" ||
19200 test ! -s conftest.err
19201 } && test -s conftest$ac_exeext &&
19202 $as_test_x conftest$ac_exeext; then
19203 ac_cv_lib_resolv___res_send=yes
19204 else
19205 echo "$as_me: failed program was:" >&5
19206 sed 's/^/| /' conftest.$ac_ext >&5
19207
19208 ac_cv_lib_resolv___res_send=no
19209 fi
19210
19211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19212 conftest$ac_exeext conftest.$ac_ext
19213 LIBS=$ac_check_lib_save_LIBS
19214 fi
19215 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19216 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19217 if test $ac_cv_lib_resolv___res_send = yes; then
19218 resolv=yes
19219 fi
19220
19221 fi
19222
19223 fi
19224
19225 fi
19226
19227 if test "$resolv" = yes ; then
19228 RESOLVLIB=-lresolv
19229
19230 cat >>confdefs.h <<\_ACEOF
19231 #define HAVE_LIBRESOLV 1
19232 _ACEOF
19233
19234 else
19235 RESOLVLIB=
19236 fi
19237 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19238 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19239 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define hes_getmailhost innocuous_hes_getmailhost
19251
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char hes_getmailhost (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19256
19257 #ifdef __STDC__
19258 # include <limits.h>
19259 #else
19260 # include <assert.h>
19261 #endif
19262
19263 #undef hes_getmailhost
19264
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 char hes_getmailhost ();
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19276 choke me
19277 #endif
19278
19279 int
19280 main ()
19281 {
19282 return hes_getmailhost ();
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_link") 2>conftest.er1
19295 ac_status=$?
19296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest$ac_exeext &&
19304 $as_test_x conftest$ac_exeext; then
19305 ac_cv_func_hes_getmailhost=yes
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 ac_cv_func_hes_getmailhost=no
19311 fi
19312
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19315 fi
19316 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19317 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19318 if test $ac_cv_func_hes_getmailhost = yes; then
19319 :
19320 else
19321 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19322 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19323 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19324 echo $ECHO_N "(cached) $ECHO_C" >&6
19325 else
19326 ac_check_lib_save_LIBS=$LIBS
19327 LIBS="-lhesiod $RESOLVLIB $LIBS"
19328 cat >conftest.$ac_ext <<_ACEOF
19329 /* confdefs.h. */
19330 _ACEOF
19331 cat confdefs.h >>conftest.$ac_ext
19332 cat >>conftest.$ac_ext <<_ACEOF
19333 /* end confdefs.h. */
19334
19335 /* Override any GCC internal prototype to avoid an error.
19336 Use char because int might match the return type of a GCC
19337 builtin and then its argument prototype would still apply. */
19338 #ifdef __cplusplus
19339 extern "C"
19340 #endif
19341 char hes_getmailhost ();
19342 int
19343 main ()
19344 {
19345 return hes_getmailhost ();
19346 ;
19347 return 0;
19348 }
19349 _ACEOF
19350 rm -f conftest.$ac_objext conftest$ac_exeext
19351 if { (ac_try="$ac_link"
19352 case "(($ac_try" in
19353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19354 *) ac_try_echo=$ac_try;;
19355 esac
19356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19357 (eval "$ac_link") 2>conftest.er1
19358 ac_status=$?
19359 grep -v '^ *+' conftest.er1 >conftest.err
19360 rm -f conftest.er1
19361 cat conftest.err >&5
19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19363 (exit $ac_status); } && {
19364 test -z "$ac_c_werror_flag" ||
19365 test ! -s conftest.err
19366 } && test -s conftest$ac_exeext &&
19367 $as_test_x conftest$ac_exeext; then
19368 ac_cv_lib_hesiod_hes_getmailhost=yes
19369 else
19370 echo "$as_me: failed program was:" >&5
19371 sed 's/^/| /' conftest.$ac_ext >&5
19372
19373 ac_cv_lib_hesiod_hes_getmailhost=no
19374 fi
19375
19376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19377 conftest$ac_exeext conftest.$ac_ext
19378 LIBS=$ac_check_lib_save_LIBS
19379 fi
19380 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19381 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19382 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19383
19384 cat >>confdefs.h <<\_ACEOF
19385 #define HAVE_LIBHESIOD 1
19386 _ACEOF
19387
19388 else
19389 :
19390 fi
19391
19392 fi
19393
19394 fi
19395
19396 # These tell us which Kerberos-related libraries to use.
19397 if test "${with_kerberos+set}" = set; then
19398
19399 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19400 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19401 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19402 echo $ECHO_N "(cached) $ECHO_C" >&6
19403 else
19404 ac_check_lib_save_LIBS=$LIBS
19405 LIBS="-lcom_err $LIBS"
19406 cat >conftest.$ac_ext <<_ACEOF
19407 /* confdefs.h. */
19408 _ACEOF
19409 cat confdefs.h >>conftest.$ac_ext
19410 cat >>conftest.$ac_ext <<_ACEOF
19411 /* end confdefs.h. */
19412
19413 /* Override any GCC internal prototype to avoid an error.
19414 Use char because int might match the return type of a GCC
19415 builtin and then its argument prototype would still apply. */
19416 #ifdef __cplusplus
19417 extern "C"
19418 #endif
19419 char com_err ();
19420 int
19421 main ()
19422 {
19423 return com_err ();
19424 ;
19425 return 0;
19426 }
19427 _ACEOF
19428 rm -f conftest.$ac_objext conftest$ac_exeext
19429 if { (ac_try="$ac_link"
19430 case "(($ac_try" in
19431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19432 *) ac_try_echo=$ac_try;;
19433 esac
19434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19435 (eval "$ac_link") 2>conftest.er1
19436 ac_status=$?
19437 grep -v '^ *+' conftest.er1 >conftest.err
19438 rm -f conftest.er1
19439 cat conftest.err >&5
19440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19441 (exit $ac_status); } && {
19442 test -z "$ac_c_werror_flag" ||
19443 test ! -s conftest.err
19444 } && test -s conftest$ac_exeext &&
19445 $as_test_x conftest$ac_exeext; then
19446 ac_cv_lib_com_err_com_err=yes
19447 else
19448 echo "$as_me: failed program was:" >&5
19449 sed 's/^/| /' conftest.$ac_ext >&5
19450
19451 ac_cv_lib_com_err_com_err=no
19452 fi
19453
19454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19455 conftest$ac_exeext conftest.$ac_ext
19456 LIBS=$ac_check_lib_save_LIBS
19457 fi
19458 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19459 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19460 if test $ac_cv_lib_com_err_com_err = yes; then
19461 cat >>confdefs.h <<_ACEOF
19462 #define HAVE_LIBCOM_ERR 1
19463 _ACEOF
19464
19465 LIBS="-lcom_err $LIBS"
19466
19467 fi
19468
19469
19470 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19471 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19472 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19473 echo $ECHO_N "(cached) $ECHO_C" >&6
19474 else
19475 ac_check_lib_save_LIBS=$LIBS
19476 LIBS="-lk5crypto $LIBS"
19477 cat >conftest.$ac_ext <<_ACEOF
19478 /* confdefs.h. */
19479 _ACEOF
19480 cat confdefs.h >>conftest.$ac_ext
19481 cat >>conftest.$ac_ext <<_ACEOF
19482 /* end confdefs.h. */
19483
19484 /* Override any GCC internal prototype to avoid an error.
19485 Use char because int might match the return type of a GCC
19486 builtin and then its argument prototype would still apply. */
19487 #ifdef __cplusplus
19488 extern "C"
19489 #endif
19490 char mit_des_cbc_encrypt ();
19491 int
19492 main ()
19493 {
19494 return mit_des_cbc_encrypt ();
19495 ;
19496 return 0;
19497 }
19498 _ACEOF
19499 rm -f conftest.$ac_objext conftest$ac_exeext
19500 if { (ac_try="$ac_link"
19501 case "(($ac_try" in
19502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19503 *) ac_try_echo=$ac_try;;
19504 esac
19505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19506 (eval "$ac_link") 2>conftest.er1
19507 ac_status=$?
19508 grep -v '^ *+' conftest.er1 >conftest.err
19509 rm -f conftest.er1
19510 cat conftest.err >&5
19511 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19512 (exit $ac_status); } && {
19513 test -z "$ac_c_werror_flag" ||
19514 test ! -s conftest.err
19515 } && test -s conftest$ac_exeext &&
19516 $as_test_x conftest$ac_exeext; then
19517 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19518 else
19519 echo "$as_me: failed program was:" >&5
19520 sed 's/^/| /' conftest.$ac_ext >&5
19521
19522 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19523 fi
19524
19525 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19526 conftest$ac_exeext conftest.$ac_ext
19527 LIBS=$ac_check_lib_save_LIBS
19528 fi
19529 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19530 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19531 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19532 cat >>confdefs.h <<_ACEOF
19533 #define HAVE_LIBK5CRYPTO 1
19534 _ACEOF
19535
19536 LIBS="-lk5crypto $LIBS"
19537
19538 fi
19539
19540
19541 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19542 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19543 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19544 echo $ECHO_N "(cached) $ECHO_C" >&6
19545 else
19546 ac_check_lib_save_LIBS=$LIBS
19547 LIBS="-lcrypto $LIBS"
19548 cat >conftest.$ac_ext <<_ACEOF
19549 /* confdefs.h. */
19550 _ACEOF
19551 cat confdefs.h >>conftest.$ac_ext
19552 cat >>conftest.$ac_ext <<_ACEOF
19553 /* end confdefs.h. */
19554
19555 /* Override any GCC internal prototype to avoid an error.
19556 Use char because int might match the return type of a GCC
19557 builtin and then its argument prototype would still apply. */
19558 #ifdef __cplusplus
19559 extern "C"
19560 #endif
19561 char mit_des_cbc_encrypt ();
19562 int
19563 main ()
19564 {
19565 return mit_des_cbc_encrypt ();
19566 ;
19567 return 0;
19568 }
19569 _ACEOF
19570 rm -f conftest.$ac_objext conftest$ac_exeext
19571 if { (ac_try="$ac_link"
19572 case "(($ac_try" in
19573 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19574 *) ac_try_echo=$ac_try;;
19575 esac
19576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19577 (eval "$ac_link") 2>conftest.er1
19578 ac_status=$?
19579 grep -v '^ *+' conftest.er1 >conftest.err
19580 rm -f conftest.er1
19581 cat conftest.err >&5
19582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19583 (exit $ac_status); } && {
19584 test -z "$ac_c_werror_flag" ||
19585 test ! -s conftest.err
19586 } && test -s conftest$ac_exeext &&
19587 $as_test_x conftest$ac_exeext; then
19588 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19589 else
19590 echo "$as_me: failed program was:" >&5
19591 sed 's/^/| /' conftest.$ac_ext >&5
19592
19593 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19594 fi
19595
19596 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19597 conftest$ac_exeext conftest.$ac_ext
19598 LIBS=$ac_check_lib_save_LIBS
19599 fi
19600 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19601 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19602 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19603 cat >>confdefs.h <<_ACEOF
19604 #define HAVE_LIBCRYPTO 1
19605 _ACEOF
19606
19607 LIBS="-lcrypto $LIBS"
19608
19609 fi
19610
19611
19612 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19613 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19614 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19615 echo $ECHO_N "(cached) $ECHO_C" >&6
19616 else
19617 ac_check_lib_save_LIBS=$LIBS
19618 LIBS="-lkrb5 $LIBS"
19619 cat >conftest.$ac_ext <<_ACEOF
19620 /* confdefs.h. */
19621 _ACEOF
19622 cat confdefs.h >>conftest.$ac_ext
19623 cat >>conftest.$ac_ext <<_ACEOF
19624 /* end confdefs.h. */
19625
19626 /* Override any GCC internal prototype to avoid an error.
19627 Use char because int might match the return type of a GCC
19628 builtin and then its argument prototype would still apply. */
19629 #ifdef __cplusplus
19630 extern "C"
19631 #endif
19632 char krb5_init_context ();
19633 int
19634 main ()
19635 {
19636 return krb5_init_context ();
19637 ;
19638 return 0;
19639 }
19640 _ACEOF
19641 rm -f conftest.$ac_objext conftest$ac_exeext
19642 if { (ac_try="$ac_link"
19643 case "(($ac_try" in
19644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19645 *) ac_try_echo=$ac_try;;
19646 esac
19647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19648 (eval "$ac_link") 2>conftest.er1
19649 ac_status=$?
19650 grep -v '^ *+' conftest.er1 >conftest.err
19651 rm -f conftest.er1
19652 cat conftest.err >&5
19653 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19654 (exit $ac_status); } && {
19655 test -z "$ac_c_werror_flag" ||
19656 test ! -s conftest.err
19657 } && test -s conftest$ac_exeext &&
19658 $as_test_x conftest$ac_exeext; then
19659 ac_cv_lib_krb5_krb5_init_context=yes
19660 else
19661 echo "$as_me: failed program was:" >&5
19662 sed 's/^/| /' conftest.$ac_ext >&5
19663
19664 ac_cv_lib_krb5_krb5_init_context=no
19665 fi
19666
19667 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19668 conftest$ac_exeext conftest.$ac_ext
19669 LIBS=$ac_check_lib_save_LIBS
19670 fi
19671 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
19672 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
19673 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
19674 cat >>confdefs.h <<_ACEOF
19675 #define HAVE_LIBKRB5 1
19676 _ACEOF
19677
19678 LIBS="-lkrb5 $LIBS"
19679
19680 fi
19681
19682 if test "${with_kerberos5+set}" != set; then
19683
19684 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
19685 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
19686 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
19687 echo $ECHO_N "(cached) $ECHO_C" >&6
19688 else
19689 ac_check_lib_save_LIBS=$LIBS
19690 LIBS="-ldes425 $LIBS"
19691 cat >conftest.$ac_ext <<_ACEOF
19692 /* confdefs.h. */
19693 _ACEOF
19694 cat confdefs.h >>conftest.$ac_ext
19695 cat >>conftest.$ac_ext <<_ACEOF
19696 /* end confdefs.h. */
19697
19698 /* Override any GCC internal prototype to avoid an error.
19699 Use char because int might match the return type of a GCC
19700 builtin and then its argument prototype would still apply. */
19701 #ifdef __cplusplus
19702 extern "C"
19703 #endif
19704 char des_cbc_encrypt ();
19705 int
19706 main ()
19707 {
19708 return des_cbc_encrypt ();
19709 ;
19710 return 0;
19711 }
19712 _ACEOF
19713 rm -f conftest.$ac_objext conftest$ac_exeext
19714 if { (ac_try="$ac_link"
19715 case "(($ac_try" in
19716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19717 *) ac_try_echo=$ac_try;;
19718 esac
19719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19720 (eval "$ac_link") 2>conftest.er1
19721 ac_status=$?
19722 grep -v '^ *+' conftest.er1 >conftest.err
19723 rm -f conftest.er1
19724 cat conftest.err >&5
19725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19726 (exit $ac_status); } && {
19727 test -z "$ac_c_werror_flag" ||
19728 test ! -s conftest.err
19729 } && test -s conftest$ac_exeext &&
19730 $as_test_x conftest$ac_exeext; then
19731 ac_cv_lib_des425_des_cbc_encrypt=yes
19732 else
19733 echo "$as_me: failed program was:" >&5
19734 sed 's/^/| /' conftest.$ac_ext >&5
19735
19736 ac_cv_lib_des425_des_cbc_encrypt=no
19737 fi
19738
19739 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19740 conftest$ac_exeext conftest.$ac_ext
19741 LIBS=$ac_check_lib_save_LIBS
19742 fi
19743 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
19744 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
19745 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
19746 cat >>confdefs.h <<_ACEOF
19747 #define HAVE_LIBDES425 1
19748 _ACEOF
19749
19750 LIBS="-ldes425 $LIBS"
19751
19752 else
19753
19754 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
19755 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
19756 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
19757 echo $ECHO_N "(cached) $ECHO_C" >&6
19758 else
19759 ac_check_lib_save_LIBS=$LIBS
19760 LIBS="-ldes $LIBS"
19761 cat >conftest.$ac_ext <<_ACEOF
19762 /* confdefs.h. */
19763 _ACEOF
19764 cat confdefs.h >>conftest.$ac_ext
19765 cat >>conftest.$ac_ext <<_ACEOF
19766 /* end confdefs.h. */
19767
19768 /* Override any GCC internal prototype to avoid an error.
19769 Use char because int might match the return type of a GCC
19770 builtin and then its argument prototype would still apply. */
19771 #ifdef __cplusplus
19772 extern "C"
19773 #endif
19774 char des_cbc_encrypt ();
19775 int
19776 main ()
19777 {
19778 return des_cbc_encrypt ();
19779 ;
19780 return 0;
19781 }
19782 _ACEOF
19783 rm -f conftest.$ac_objext conftest$ac_exeext
19784 if { (ac_try="$ac_link"
19785 case "(($ac_try" in
19786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19787 *) ac_try_echo=$ac_try;;
19788 esac
19789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19790 (eval "$ac_link") 2>conftest.er1
19791 ac_status=$?
19792 grep -v '^ *+' conftest.er1 >conftest.err
19793 rm -f conftest.er1
19794 cat conftest.err >&5
19795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19796 (exit $ac_status); } && {
19797 test -z "$ac_c_werror_flag" ||
19798 test ! -s conftest.err
19799 } && test -s conftest$ac_exeext &&
19800 $as_test_x conftest$ac_exeext; then
19801 ac_cv_lib_des_des_cbc_encrypt=yes
19802 else
19803 echo "$as_me: failed program was:" >&5
19804 sed 's/^/| /' conftest.$ac_ext >&5
19805
19806 ac_cv_lib_des_des_cbc_encrypt=no
19807 fi
19808
19809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19810 conftest$ac_exeext conftest.$ac_ext
19811 LIBS=$ac_check_lib_save_LIBS
19812 fi
19813 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
19814 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
19815 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
19816 cat >>confdefs.h <<_ACEOF
19817 #define HAVE_LIBDES 1
19818 _ACEOF
19819
19820 LIBS="-ldes $LIBS"
19821
19822 fi
19823
19824 fi
19825
19826
19827 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
19828 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
19829 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
19830 echo $ECHO_N "(cached) $ECHO_C" >&6
19831 else
19832 ac_check_lib_save_LIBS=$LIBS
19833 LIBS="-lkrb4 $LIBS"
19834 cat >conftest.$ac_ext <<_ACEOF
19835 /* confdefs.h. */
19836 _ACEOF
19837 cat confdefs.h >>conftest.$ac_ext
19838 cat >>conftest.$ac_ext <<_ACEOF
19839 /* end confdefs.h. */
19840
19841 /* Override any GCC internal prototype to avoid an error.
19842 Use char because int might match the return type of a GCC
19843 builtin and then its argument prototype would still apply. */
19844 #ifdef __cplusplus
19845 extern "C"
19846 #endif
19847 char krb_get_cred ();
19848 int
19849 main ()
19850 {
19851 return krb_get_cred ();
19852 ;
19853 return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860 *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863 (eval "$ac_link") 2>conftest.er1
19864 ac_status=$?
19865 grep -v '^ *+' conftest.er1 >conftest.err
19866 rm -f conftest.er1
19867 cat conftest.err >&5
19868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869 (exit $ac_status); } && {
19870 test -z "$ac_c_werror_flag" ||
19871 test ! -s conftest.err
19872 } && test -s conftest$ac_exeext &&
19873 $as_test_x conftest$ac_exeext; then
19874 ac_cv_lib_krb4_krb_get_cred=yes
19875 else
19876 echo "$as_me: failed program was:" >&5
19877 sed 's/^/| /' conftest.$ac_ext >&5
19878
19879 ac_cv_lib_krb4_krb_get_cred=no
19880 fi
19881
19882 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19883 conftest$ac_exeext conftest.$ac_ext
19884 LIBS=$ac_check_lib_save_LIBS
19885 fi
19886 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
19887 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
19888 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
19889 cat >>confdefs.h <<_ACEOF
19890 #define HAVE_LIBKRB4 1
19891 _ACEOF
19892
19893 LIBS="-lkrb4 $LIBS"
19894
19895 else
19896
19897 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
19898 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
19899 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
19900 echo $ECHO_N "(cached) $ECHO_C" >&6
19901 else
19902 ac_check_lib_save_LIBS=$LIBS
19903 LIBS="-lkrb $LIBS"
19904 cat >conftest.$ac_ext <<_ACEOF
19905 /* confdefs.h. */
19906 _ACEOF
19907 cat confdefs.h >>conftest.$ac_ext
19908 cat >>conftest.$ac_ext <<_ACEOF
19909 /* end confdefs.h. */
19910
19911 /* Override any GCC internal prototype to avoid an error.
19912 Use char because int might match the return type of a GCC
19913 builtin and then its argument prototype would still apply. */
19914 #ifdef __cplusplus
19915 extern "C"
19916 #endif
19917 char krb_get_cred ();
19918 int
19919 main ()
19920 {
19921 return krb_get_cred ();
19922 ;
19923 return 0;
19924 }
19925 _ACEOF
19926 rm -f conftest.$ac_objext conftest$ac_exeext
19927 if { (ac_try="$ac_link"
19928 case "(($ac_try" in
19929 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19930 *) ac_try_echo=$ac_try;;
19931 esac
19932 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19933 (eval "$ac_link") 2>conftest.er1
19934 ac_status=$?
19935 grep -v '^ *+' conftest.er1 >conftest.err
19936 rm -f conftest.er1
19937 cat conftest.err >&5
19938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19939 (exit $ac_status); } && {
19940 test -z "$ac_c_werror_flag" ||
19941 test ! -s conftest.err
19942 } && test -s conftest$ac_exeext &&
19943 $as_test_x conftest$ac_exeext; then
19944 ac_cv_lib_krb_krb_get_cred=yes
19945 else
19946 echo "$as_me: failed program was:" >&5
19947 sed 's/^/| /' conftest.$ac_ext >&5
19948
19949 ac_cv_lib_krb_krb_get_cred=no
19950 fi
19951
19952 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19953 conftest$ac_exeext conftest.$ac_ext
19954 LIBS=$ac_check_lib_save_LIBS
19955 fi
19956 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
19957 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
19958 if test $ac_cv_lib_krb_krb_get_cred = yes; then
19959 cat >>confdefs.h <<_ACEOF
19960 #define HAVE_LIBKRB 1
19961 _ACEOF
19962
19963 LIBS="-lkrb $LIBS"
19964
19965 fi
19966
19967 fi
19968
19969 fi
19970
19971 if test "${with_kerberos5+set}" = set; then
19972
19973 for ac_header in krb5.h
19974 do
19975 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19976 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19977 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19978 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19980 echo $ECHO_N "(cached) $ECHO_C" >&6
19981 fi
19982 ac_res=`eval echo '${'$as_ac_Header'}'`
19983 { echo "$as_me:$LINENO: result: $ac_res" >&5
19984 echo "${ECHO_T}$ac_res" >&6; }
19985 else
19986 # Is the header compilable?
19987 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19988 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19989 cat >conftest.$ac_ext <<_ACEOF
19990 /* confdefs.h. */
19991 _ACEOF
19992 cat confdefs.h >>conftest.$ac_ext
19993 cat >>conftest.$ac_ext <<_ACEOF
19994 /* end confdefs.h. */
19995 $ac_includes_default
19996 #include <$ac_header>
19997 _ACEOF
19998 rm -f conftest.$ac_objext
19999 if { (ac_try="$ac_compile"
20000 case "(($ac_try" in
20001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20002 *) ac_try_echo=$ac_try;;
20003 esac
20004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20005 (eval "$ac_compile") 2>conftest.er1
20006 ac_status=$?
20007 grep -v '^ *+' conftest.er1 >conftest.err
20008 rm -f conftest.er1
20009 cat conftest.err >&5
20010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20011 (exit $ac_status); } && {
20012 test -z "$ac_c_werror_flag" ||
20013 test ! -s conftest.err
20014 } && test -s conftest.$ac_objext; then
20015 ac_header_compiler=yes
20016 else
20017 echo "$as_me: failed program was:" >&5
20018 sed 's/^/| /' conftest.$ac_ext >&5
20019
20020 ac_header_compiler=no
20021 fi
20022
20023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20024 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20025 echo "${ECHO_T}$ac_header_compiler" >&6; }
20026
20027 # Is the header present?
20028 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20029 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20030 cat >conftest.$ac_ext <<_ACEOF
20031 /* confdefs.h. */
20032 _ACEOF
20033 cat confdefs.h >>conftest.$ac_ext
20034 cat >>conftest.$ac_ext <<_ACEOF
20035 /* end confdefs.h. */
20036 #include <$ac_header>
20037 _ACEOF
20038 if { (ac_try="$ac_cpp conftest.$ac_ext"
20039 case "(($ac_try" in
20040 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20041 *) ac_try_echo=$ac_try;;
20042 esac
20043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20044 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20045 ac_status=$?
20046 grep -v '^ *+' conftest.er1 >conftest.err
20047 rm -f conftest.er1
20048 cat conftest.err >&5
20049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20050 (exit $ac_status); } >/dev/null && {
20051 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20052 test ! -s conftest.err
20053 }; then
20054 ac_header_preproc=yes
20055 else
20056 echo "$as_me: failed program was:" >&5
20057 sed 's/^/| /' conftest.$ac_ext >&5
20058
20059 ac_header_preproc=no
20060 fi
20061
20062 rm -f conftest.err conftest.$ac_ext
20063 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20064 echo "${ECHO_T}$ac_header_preproc" >&6; }
20065
20066 # So? What about this header?
20067 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20068 yes:no: )
20069 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20070 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20071 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20072 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20073 ac_header_preproc=yes
20074 ;;
20075 no:yes:* )
20076 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20077 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20078 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20079 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20080 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20081 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20082 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20083 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20084 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20085 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20086 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20087 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20088
20089 ;;
20090 esac
20091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20094 echo $ECHO_N "(cached) $ECHO_C" >&6
20095 else
20096 eval "$as_ac_Header=\$ac_header_preproc"
20097 fi
20098 ac_res=`eval echo '${'$as_ac_Header'}'`
20099 { echo "$as_me:$LINENO: result: $ac_res" >&5
20100 echo "${ECHO_T}$ac_res" >&6; }
20101
20102 fi
20103 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20104 cat >>confdefs.h <<_ACEOF
20105 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20106 _ACEOF
20107
20108 fi
20109
20110 done
20111
20112 else
20113
20114 for ac_header in des.h
20115 do
20116 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20117 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20118 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20119 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20121 echo $ECHO_N "(cached) $ECHO_C" >&6
20122 fi
20123 ac_res=`eval echo '${'$as_ac_Header'}'`
20124 { echo "$as_me:$LINENO: result: $ac_res" >&5
20125 echo "${ECHO_T}$ac_res" >&6; }
20126 else
20127 # Is the header compilable?
20128 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20129 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20130 cat >conftest.$ac_ext <<_ACEOF
20131 /* confdefs.h. */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h. */
20136 $ac_includes_default
20137 #include <$ac_header>
20138 _ACEOF
20139 rm -f conftest.$ac_objext
20140 if { (ac_try="$ac_compile"
20141 case "(($ac_try" in
20142 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20143 *) ac_try_echo=$ac_try;;
20144 esac
20145 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20146 (eval "$ac_compile") 2>conftest.er1
20147 ac_status=$?
20148 grep -v '^ *+' conftest.er1 >conftest.err
20149 rm -f conftest.er1
20150 cat conftest.err >&5
20151 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20152 (exit $ac_status); } && {
20153 test -z "$ac_c_werror_flag" ||
20154 test ! -s conftest.err
20155 } && test -s conftest.$ac_objext; then
20156 ac_header_compiler=yes
20157 else
20158 echo "$as_me: failed program was:" >&5
20159 sed 's/^/| /' conftest.$ac_ext >&5
20160
20161 ac_header_compiler=no
20162 fi
20163
20164 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20165 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20166 echo "${ECHO_T}$ac_header_compiler" >&6; }
20167
20168 # Is the header present?
20169 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20170 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20171 cat >conftest.$ac_ext <<_ACEOF
20172 /* confdefs.h. */
20173 _ACEOF
20174 cat confdefs.h >>conftest.$ac_ext
20175 cat >>conftest.$ac_ext <<_ACEOF
20176 /* end confdefs.h. */
20177 #include <$ac_header>
20178 _ACEOF
20179 if { (ac_try="$ac_cpp conftest.$ac_ext"
20180 case "(($ac_try" in
20181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20182 *) ac_try_echo=$ac_try;;
20183 esac
20184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20185 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20186 ac_status=$?
20187 grep -v '^ *+' conftest.er1 >conftest.err
20188 rm -f conftest.er1
20189 cat conftest.err >&5
20190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20191 (exit $ac_status); } >/dev/null && {
20192 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20193 test ! -s conftest.err
20194 }; then
20195 ac_header_preproc=yes
20196 else
20197 echo "$as_me: failed program was:" >&5
20198 sed 's/^/| /' conftest.$ac_ext >&5
20199
20200 ac_header_preproc=no
20201 fi
20202
20203 rm -f conftest.err conftest.$ac_ext
20204 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20205 echo "${ECHO_T}$ac_header_preproc" >&6; }
20206
20207 # So? What about this header?
20208 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20209 yes:no: )
20210 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20211 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20212 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20213 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20214 ac_header_preproc=yes
20215 ;;
20216 no:yes:* )
20217 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20218 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20219 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20220 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20221 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20222 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20223 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20224 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20226 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20227 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20228 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20229
20230 ;;
20231 esac
20232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20235 echo $ECHO_N "(cached) $ECHO_C" >&6
20236 else
20237 eval "$as_ac_Header=\$ac_header_preproc"
20238 fi
20239 ac_res=`eval echo '${'$as_ac_Header'}'`
20240 { echo "$as_me:$LINENO: result: $ac_res" >&5
20241 echo "${ECHO_T}$ac_res" >&6; }
20242
20243 fi
20244 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20245 cat >>confdefs.h <<_ACEOF
20246 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20247 _ACEOF
20248
20249 else
20250
20251 for ac_header in kerberosIV/des.h
20252 do
20253 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20254 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20255 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20256 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20257 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20258 echo $ECHO_N "(cached) $ECHO_C" >&6
20259 fi
20260 ac_res=`eval echo '${'$as_ac_Header'}'`
20261 { echo "$as_me:$LINENO: result: $ac_res" >&5
20262 echo "${ECHO_T}$ac_res" >&6; }
20263 else
20264 # Is the header compilable?
20265 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20266 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20267 cat >conftest.$ac_ext <<_ACEOF
20268 /* confdefs.h. */
20269 _ACEOF
20270 cat confdefs.h >>conftest.$ac_ext
20271 cat >>conftest.$ac_ext <<_ACEOF
20272 /* end confdefs.h. */
20273 $ac_includes_default
20274 #include <$ac_header>
20275 _ACEOF
20276 rm -f conftest.$ac_objext
20277 if { (ac_try="$ac_compile"
20278 case "(($ac_try" in
20279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20280 *) ac_try_echo=$ac_try;;
20281 esac
20282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20283 (eval "$ac_compile") 2>conftest.er1
20284 ac_status=$?
20285 grep -v '^ *+' conftest.er1 >conftest.err
20286 rm -f conftest.er1
20287 cat conftest.err >&5
20288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20289 (exit $ac_status); } && {
20290 test -z "$ac_c_werror_flag" ||
20291 test ! -s conftest.err
20292 } && test -s conftest.$ac_objext; then
20293 ac_header_compiler=yes
20294 else
20295 echo "$as_me: failed program was:" >&5
20296 sed 's/^/| /' conftest.$ac_ext >&5
20297
20298 ac_header_compiler=no
20299 fi
20300
20301 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20302 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20303 echo "${ECHO_T}$ac_header_compiler" >&6; }
20304
20305 # Is the header present?
20306 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20307 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20308 cat >conftest.$ac_ext <<_ACEOF
20309 /* confdefs.h. */
20310 _ACEOF
20311 cat confdefs.h >>conftest.$ac_ext
20312 cat >>conftest.$ac_ext <<_ACEOF
20313 /* end confdefs.h. */
20314 #include <$ac_header>
20315 _ACEOF
20316 if { (ac_try="$ac_cpp conftest.$ac_ext"
20317 case "(($ac_try" in
20318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20319 *) ac_try_echo=$ac_try;;
20320 esac
20321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20322 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20323 ac_status=$?
20324 grep -v '^ *+' conftest.er1 >conftest.err
20325 rm -f conftest.er1
20326 cat conftest.err >&5
20327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20328 (exit $ac_status); } >/dev/null && {
20329 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20330 test ! -s conftest.err
20331 }; then
20332 ac_header_preproc=yes
20333 else
20334 echo "$as_me: failed program was:" >&5
20335 sed 's/^/| /' conftest.$ac_ext >&5
20336
20337 ac_header_preproc=no
20338 fi
20339
20340 rm -f conftest.err conftest.$ac_ext
20341 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20342 echo "${ECHO_T}$ac_header_preproc" >&6; }
20343
20344 # So? What about this header?
20345 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20346 yes:no: )
20347 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20348 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20349 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20350 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20351 ac_header_preproc=yes
20352 ;;
20353 no:yes:* )
20354 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20355 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20356 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20357 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20358 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20359 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20360 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20361 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20362 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20363 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20364 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20365 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20366
20367 ;;
20368 esac
20369 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20370 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20371 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20372 echo $ECHO_N "(cached) $ECHO_C" >&6
20373 else
20374 eval "$as_ac_Header=\$ac_header_preproc"
20375 fi
20376 ac_res=`eval echo '${'$as_ac_Header'}'`
20377 { echo "$as_me:$LINENO: result: $ac_res" >&5
20378 echo "${ECHO_T}$ac_res" >&6; }
20379
20380 fi
20381 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20382 cat >>confdefs.h <<_ACEOF
20383 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20384 _ACEOF
20385
20386 else
20387
20388 for ac_header in kerberos/des.h
20389 do
20390 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20391 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20392 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20393 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20394 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20395 echo $ECHO_N "(cached) $ECHO_C" >&6
20396 fi
20397 ac_res=`eval echo '${'$as_ac_Header'}'`
20398 { echo "$as_me:$LINENO: result: $ac_res" >&5
20399 echo "${ECHO_T}$ac_res" >&6; }
20400 else
20401 # Is the header compilable?
20402 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20403 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h. */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 $ac_includes_default
20411 #include <$ac_header>
20412 _ACEOF
20413 rm -f conftest.$ac_objext
20414 if { (ac_try="$ac_compile"
20415 case "(($ac_try" in
20416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20417 *) ac_try_echo=$ac_try;;
20418 esac
20419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20420 (eval "$ac_compile") 2>conftest.er1
20421 ac_status=$?
20422 grep -v '^ *+' conftest.er1 >conftest.err
20423 rm -f conftest.er1
20424 cat conftest.err >&5
20425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20426 (exit $ac_status); } && {
20427 test -z "$ac_c_werror_flag" ||
20428 test ! -s conftest.err
20429 } && test -s conftest.$ac_objext; then
20430 ac_header_compiler=yes
20431 else
20432 echo "$as_me: failed program was:" >&5
20433 sed 's/^/| /' conftest.$ac_ext >&5
20434
20435 ac_header_compiler=no
20436 fi
20437
20438 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20439 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20440 echo "${ECHO_T}$ac_header_compiler" >&6; }
20441
20442 # Is the header present?
20443 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20444 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20445 cat >conftest.$ac_ext <<_ACEOF
20446 /* confdefs.h. */
20447 _ACEOF
20448 cat confdefs.h >>conftest.$ac_ext
20449 cat >>conftest.$ac_ext <<_ACEOF
20450 /* end confdefs.h. */
20451 #include <$ac_header>
20452 _ACEOF
20453 if { (ac_try="$ac_cpp conftest.$ac_ext"
20454 case "(($ac_try" in
20455 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20456 *) ac_try_echo=$ac_try;;
20457 esac
20458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20459 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20460 ac_status=$?
20461 grep -v '^ *+' conftest.er1 >conftest.err
20462 rm -f conftest.er1
20463 cat conftest.err >&5
20464 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20465 (exit $ac_status); } >/dev/null && {
20466 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20467 test ! -s conftest.err
20468 }; then
20469 ac_header_preproc=yes
20470 else
20471 echo "$as_me: failed program was:" >&5
20472 sed 's/^/| /' conftest.$ac_ext >&5
20473
20474 ac_header_preproc=no
20475 fi
20476
20477 rm -f conftest.err conftest.$ac_ext
20478 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20479 echo "${ECHO_T}$ac_header_preproc" >&6; }
20480
20481 # So? What about this header?
20482 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20483 yes:no: )
20484 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20485 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20486 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20487 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20488 ac_header_preproc=yes
20489 ;;
20490 no:yes:* )
20491 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20492 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20493 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20494 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20495 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20496 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20497 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20498 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20500 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20501 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20502 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20503
20504 ;;
20505 esac
20506 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20507 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20508 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20509 echo $ECHO_N "(cached) $ECHO_C" >&6
20510 else
20511 eval "$as_ac_Header=\$ac_header_preproc"
20512 fi
20513 ac_res=`eval echo '${'$as_ac_Header'}'`
20514 { echo "$as_me:$LINENO: result: $ac_res" >&5
20515 echo "${ECHO_T}$ac_res" >&6; }
20516
20517 fi
20518 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20519 cat >>confdefs.h <<_ACEOF
20520 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20521 _ACEOF
20522
20523 fi
20524
20525 done
20526
20527 fi
20528
20529 done
20530
20531 fi
20532
20533 done
20534
20535
20536 for ac_header in krb.h
20537 do
20538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20543 echo $ECHO_N "(cached) $ECHO_C" >&6
20544 fi
20545 ac_res=`eval echo '${'$as_ac_Header'}'`
20546 { echo "$as_me:$LINENO: result: $ac_res" >&5
20547 echo "${ECHO_T}$ac_res" >&6; }
20548 else
20549 # Is the header compilable?
20550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20552 cat >conftest.$ac_ext <<_ACEOF
20553 /* confdefs.h. */
20554 _ACEOF
20555 cat confdefs.h >>conftest.$ac_ext
20556 cat >>conftest.$ac_ext <<_ACEOF
20557 /* end confdefs.h. */
20558 $ac_includes_default
20559 #include <$ac_header>
20560 _ACEOF
20561 rm -f conftest.$ac_objext
20562 if { (ac_try="$ac_compile"
20563 case "(($ac_try" in
20564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20565 *) ac_try_echo=$ac_try;;
20566 esac
20567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20568 (eval "$ac_compile") 2>conftest.er1
20569 ac_status=$?
20570 grep -v '^ *+' conftest.er1 >conftest.err
20571 rm -f conftest.er1
20572 cat conftest.err >&5
20573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20574 (exit $ac_status); } && {
20575 test -z "$ac_c_werror_flag" ||
20576 test ! -s conftest.err
20577 } && test -s conftest.$ac_objext; then
20578 ac_header_compiler=yes
20579 else
20580 echo "$as_me: failed program was:" >&5
20581 sed 's/^/| /' conftest.$ac_ext >&5
20582
20583 ac_header_compiler=no
20584 fi
20585
20586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20588 echo "${ECHO_T}$ac_header_compiler" >&6; }
20589
20590 # Is the header present?
20591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20593 cat >conftest.$ac_ext <<_ACEOF
20594 /* confdefs.h. */
20595 _ACEOF
20596 cat confdefs.h >>conftest.$ac_ext
20597 cat >>conftest.$ac_ext <<_ACEOF
20598 /* end confdefs.h. */
20599 #include <$ac_header>
20600 _ACEOF
20601 if { (ac_try="$ac_cpp conftest.$ac_ext"
20602 case "(($ac_try" in
20603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20604 *) ac_try_echo=$ac_try;;
20605 esac
20606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20608 ac_status=$?
20609 grep -v '^ *+' conftest.er1 >conftest.err
20610 rm -f conftest.er1
20611 cat conftest.err >&5
20612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20613 (exit $ac_status); } >/dev/null && {
20614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20615 test ! -s conftest.err
20616 }; then
20617 ac_header_preproc=yes
20618 else
20619 echo "$as_me: failed program was:" >&5
20620 sed 's/^/| /' conftest.$ac_ext >&5
20621
20622 ac_header_preproc=no
20623 fi
20624
20625 rm -f conftest.err conftest.$ac_ext
20626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20627 echo "${ECHO_T}$ac_header_preproc" >&6; }
20628
20629 # So? What about this header?
20630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20631 yes:no: )
20632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20636 ac_header_preproc=yes
20637 ;;
20638 no:yes:* )
20639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20651
20652 ;;
20653 esac
20654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20657 echo $ECHO_N "(cached) $ECHO_C" >&6
20658 else
20659 eval "$as_ac_Header=\$ac_header_preproc"
20660 fi
20661 ac_res=`eval echo '${'$as_ac_Header'}'`
20662 { echo "$as_me:$LINENO: result: $ac_res" >&5
20663 echo "${ECHO_T}$ac_res" >&6; }
20664
20665 fi
20666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20667 cat >>confdefs.h <<_ACEOF
20668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20669 _ACEOF
20670
20671 else
20672
20673 for ac_header in kerberosIV/krb.h
20674 do
20675 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20676 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20677 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20678 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20679 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20680 echo $ECHO_N "(cached) $ECHO_C" >&6
20681 fi
20682 ac_res=`eval echo '${'$as_ac_Header'}'`
20683 { echo "$as_me:$LINENO: result: $ac_res" >&5
20684 echo "${ECHO_T}$ac_res" >&6; }
20685 else
20686 # Is the header compilable?
20687 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20688 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20689 cat >conftest.$ac_ext <<_ACEOF
20690 /* confdefs.h. */
20691 _ACEOF
20692 cat confdefs.h >>conftest.$ac_ext
20693 cat >>conftest.$ac_ext <<_ACEOF
20694 /* end confdefs.h. */
20695 $ac_includes_default
20696 #include <$ac_header>
20697 _ACEOF
20698 rm -f conftest.$ac_objext
20699 if { (ac_try="$ac_compile"
20700 case "(($ac_try" in
20701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20702 *) ac_try_echo=$ac_try;;
20703 esac
20704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20705 (eval "$ac_compile") 2>conftest.er1
20706 ac_status=$?
20707 grep -v '^ *+' conftest.er1 >conftest.err
20708 rm -f conftest.er1
20709 cat conftest.err >&5
20710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20711 (exit $ac_status); } && {
20712 test -z "$ac_c_werror_flag" ||
20713 test ! -s conftest.err
20714 } && test -s conftest.$ac_objext; then
20715 ac_header_compiler=yes
20716 else
20717 echo "$as_me: failed program was:" >&5
20718 sed 's/^/| /' conftest.$ac_ext >&5
20719
20720 ac_header_compiler=no
20721 fi
20722
20723 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20724 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20725 echo "${ECHO_T}$ac_header_compiler" >&6; }
20726
20727 # Is the header present?
20728 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20729 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20730 cat >conftest.$ac_ext <<_ACEOF
20731 /* confdefs.h. */
20732 _ACEOF
20733 cat confdefs.h >>conftest.$ac_ext
20734 cat >>conftest.$ac_ext <<_ACEOF
20735 /* end confdefs.h. */
20736 #include <$ac_header>
20737 _ACEOF
20738 if { (ac_try="$ac_cpp conftest.$ac_ext"
20739 case "(($ac_try" in
20740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20741 *) ac_try_echo=$ac_try;;
20742 esac
20743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20744 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20745 ac_status=$?
20746 grep -v '^ *+' conftest.er1 >conftest.err
20747 rm -f conftest.er1
20748 cat conftest.err >&5
20749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20750 (exit $ac_status); } >/dev/null && {
20751 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20752 test ! -s conftest.err
20753 }; then
20754 ac_header_preproc=yes
20755 else
20756 echo "$as_me: failed program was:" >&5
20757 sed 's/^/| /' conftest.$ac_ext >&5
20758
20759 ac_header_preproc=no
20760 fi
20761
20762 rm -f conftest.err conftest.$ac_ext
20763 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20764 echo "${ECHO_T}$ac_header_preproc" >&6; }
20765
20766 # So? What about this header?
20767 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20768 yes:no: )
20769 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20770 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20771 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20772 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20773 ac_header_preproc=yes
20774 ;;
20775 no:yes:* )
20776 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20777 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20778 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20779 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20780 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20781 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20782 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20783 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20784 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20785 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20786 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20787 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20788
20789 ;;
20790 esac
20791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20794 echo $ECHO_N "(cached) $ECHO_C" >&6
20795 else
20796 eval "$as_ac_Header=\$ac_header_preproc"
20797 fi
20798 ac_res=`eval echo '${'$as_ac_Header'}'`
20799 { echo "$as_me:$LINENO: result: $ac_res" >&5
20800 echo "${ECHO_T}$ac_res" >&6; }
20801
20802 fi
20803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20804 cat >>confdefs.h <<_ACEOF
20805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20806 _ACEOF
20807
20808 else
20809
20810 for ac_header in kerberos/krb.h
20811 do
20812 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20814 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20815 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20816 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20817 echo $ECHO_N "(cached) $ECHO_C" >&6
20818 fi
20819 ac_res=`eval echo '${'$as_ac_Header'}'`
20820 { echo "$as_me:$LINENO: result: $ac_res" >&5
20821 echo "${ECHO_T}$ac_res" >&6; }
20822 else
20823 # Is the header compilable?
20824 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20825 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20826 cat >conftest.$ac_ext <<_ACEOF
20827 /* confdefs.h. */
20828 _ACEOF
20829 cat confdefs.h >>conftest.$ac_ext
20830 cat >>conftest.$ac_ext <<_ACEOF
20831 /* end confdefs.h. */
20832 $ac_includes_default
20833 #include <$ac_header>
20834 _ACEOF
20835 rm -f conftest.$ac_objext
20836 if { (ac_try="$ac_compile"
20837 case "(($ac_try" in
20838 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20839 *) ac_try_echo=$ac_try;;
20840 esac
20841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20842 (eval "$ac_compile") 2>conftest.er1
20843 ac_status=$?
20844 grep -v '^ *+' conftest.er1 >conftest.err
20845 rm -f conftest.er1
20846 cat conftest.err >&5
20847 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20848 (exit $ac_status); } && {
20849 test -z "$ac_c_werror_flag" ||
20850 test ! -s conftest.err
20851 } && test -s conftest.$ac_objext; then
20852 ac_header_compiler=yes
20853 else
20854 echo "$as_me: failed program was:" >&5
20855 sed 's/^/| /' conftest.$ac_ext >&5
20856
20857 ac_header_compiler=no
20858 fi
20859
20860 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20861 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20862 echo "${ECHO_T}$ac_header_compiler" >&6; }
20863
20864 # Is the header present?
20865 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20866 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20867 cat >conftest.$ac_ext <<_ACEOF
20868 /* confdefs.h. */
20869 _ACEOF
20870 cat confdefs.h >>conftest.$ac_ext
20871 cat >>conftest.$ac_ext <<_ACEOF
20872 /* end confdefs.h. */
20873 #include <$ac_header>
20874 _ACEOF
20875 if { (ac_try="$ac_cpp conftest.$ac_ext"
20876 case "(($ac_try" in
20877 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20878 *) ac_try_echo=$ac_try;;
20879 esac
20880 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20881 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20882 ac_status=$?
20883 grep -v '^ *+' conftest.er1 >conftest.err
20884 rm -f conftest.er1
20885 cat conftest.err >&5
20886 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20887 (exit $ac_status); } >/dev/null && {
20888 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20889 test ! -s conftest.err
20890 }; then
20891 ac_header_preproc=yes
20892 else
20893 echo "$as_me: failed program was:" >&5
20894 sed 's/^/| /' conftest.$ac_ext >&5
20895
20896 ac_header_preproc=no
20897 fi
20898
20899 rm -f conftest.err conftest.$ac_ext
20900 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20901 echo "${ECHO_T}$ac_header_preproc" >&6; }
20902
20903 # So? What about this header?
20904 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20905 yes:no: )
20906 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20907 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20908 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20909 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20910 ac_header_preproc=yes
20911 ;;
20912 no:yes:* )
20913 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20914 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20915 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20916 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20917 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20918 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20919 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20920 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20922 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20923 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20924 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20925
20926 ;;
20927 esac
20928 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20929 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20930 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20931 echo $ECHO_N "(cached) $ECHO_C" >&6
20932 else
20933 eval "$as_ac_Header=\$ac_header_preproc"
20934 fi
20935 ac_res=`eval echo '${'$as_ac_Header'}'`
20936 { echo "$as_me:$LINENO: result: $ac_res" >&5
20937 echo "${ECHO_T}$ac_res" >&6; }
20938
20939 fi
20940 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20941 cat >>confdefs.h <<_ACEOF
20942 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20943 _ACEOF
20944
20945 fi
20946
20947 done
20948
20949 fi
20950
20951 done
20952
20953 fi
20954
20955 done
20956
20957 fi
20958
20959 for ac_header in com_err.h
20960 do
20961 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20962 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20963 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20964 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20965 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20966 echo $ECHO_N "(cached) $ECHO_C" >&6
20967 fi
20968 ac_res=`eval echo '${'$as_ac_Header'}'`
20969 { echo "$as_me:$LINENO: result: $ac_res" >&5
20970 echo "${ECHO_T}$ac_res" >&6; }
20971 else
20972 # Is the header compilable?
20973 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20974 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20975 cat >conftest.$ac_ext <<_ACEOF
20976 /* confdefs.h. */
20977 _ACEOF
20978 cat confdefs.h >>conftest.$ac_ext
20979 cat >>conftest.$ac_ext <<_ACEOF
20980 /* end confdefs.h. */
20981 $ac_includes_default
20982 #include <$ac_header>
20983 _ACEOF
20984 rm -f conftest.$ac_objext
20985 if { (ac_try="$ac_compile"
20986 case "(($ac_try" in
20987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20988 *) ac_try_echo=$ac_try;;
20989 esac
20990 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20991 (eval "$ac_compile") 2>conftest.er1
20992 ac_status=$?
20993 grep -v '^ *+' conftest.er1 >conftest.err
20994 rm -f conftest.er1
20995 cat conftest.err >&5
20996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20997 (exit $ac_status); } && {
20998 test -z "$ac_c_werror_flag" ||
20999 test ! -s conftest.err
21000 } && test -s conftest.$ac_objext; then
21001 ac_header_compiler=yes
21002 else
21003 echo "$as_me: failed program was:" >&5
21004 sed 's/^/| /' conftest.$ac_ext >&5
21005
21006 ac_header_compiler=no
21007 fi
21008
21009 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21010 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21011 echo "${ECHO_T}$ac_header_compiler" >&6; }
21012
21013 # Is the header present?
21014 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21015 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21016 cat >conftest.$ac_ext <<_ACEOF
21017 /* confdefs.h. */
21018 _ACEOF
21019 cat confdefs.h >>conftest.$ac_ext
21020 cat >>conftest.$ac_ext <<_ACEOF
21021 /* end confdefs.h. */
21022 #include <$ac_header>
21023 _ACEOF
21024 if { (ac_try="$ac_cpp conftest.$ac_ext"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } >/dev/null && {
21037 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 }; then
21040 ac_header_preproc=yes
21041 else
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_header_preproc=no
21046 fi
21047
21048 rm -f conftest.err conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21050 echo "${ECHO_T}$ac_header_preproc" >&6; }
21051
21052 # So? What about this header?
21053 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21054 yes:no: )
21055 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21056 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21057 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21058 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21059 ac_header_preproc=yes
21060 ;;
21061 no:yes:* )
21062 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21063 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21064 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21065 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21066 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21067 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21068 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21069 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21070 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21071 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21072 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21073 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21074
21075 ;;
21076 esac
21077 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21078 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21079 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21080 echo $ECHO_N "(cached) $ECHO_C" >&6
21081 else
21082 eval "$as_ac_Header=\$ac_header_preproc"
21083 fi
21084 ac_res=`eval echo '${'$as_ac_Header'}'`
21085 { echo "$as_me:$LINENO: result: $ac_res" >&5
21086 echo "${ECHO_T}$ac_res" >&6; }
21087
21088 fi
21089 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21090 cat >>confdefs.h <<_ACEOF
21091 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21092 _ACEOF
21093
21094 fi
21095
21096 done
21097
21098 fi
21099
21100 # Solaris requires -lintl if you want strerror (which calls dgettext)
21101 # to return localized messages.
21102
21103 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21104 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21105 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21106 echo $ECHO_N "(cached) $ECHO_C" >&6
21107 else
21108 ac_check_lib_save_LIBS=$LIBS
21109 LIBS="-lintl $LIBS"
21110 cat >conftest.$ac_ext <<_ACEOF
21111 /* confdefs.h. */
21112 _ACEOF
21113 cat confdefs.h >>conftest.$ac_ext
21114 cat >>conftest.$ac_ext <<_ACEOF
21115 /* end confdefs.h. */
21116
21117 /* Override any GCC internal prototype to avoid an error.
21118 Use char because int might match the return type of a GCC
21119 builtin and then its argument prototype would still apply. */
21120 #ifdef __cplusplus
21121 extern "C"
21122 #endif
21123 char dgettext ();
21124 int
21125 main ()
21126 {
21127 return dgettext ();
21128 ;
21129 return 0;
21130 }
21131 _ACEOF
21132 rm -f conftest.$ac_objext conftest$ac_exeext
21133 if { (ac_try="$ac_link"
21134 case "(($ac_try" in
21135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21136 *) ac_try_echo=$ac_try;;
21137 esac
21138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21139 (eval "$ac_link") 2>conftest.er1
21140 ac_status=$?
21141 grep -v '^ *+' conftest.er1 >conftest.err
21142 rm -f conftest.er1
21143 cat conftest.err >&5
21144 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21145 (exit $ac_status); } && {
21146 test -z "$ac_c_werror_flag" ||
21147 test ! -s conftest.err
21148 } && test -s conftest$ac_exeext &&
21149 $as_test_x conftest$ac_exeext; then
21150 ac_cv_lib_intl_dgettext=yes
21151 else
21152 echo "$as_me: failed program was:" >&5
21153 sed 's/^/| /' conftest.$ac_ext >&5
21154
21155 ac_cv_lib_intl_dgettext=no
21156 fi
21157
21158 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21159 conftest$ac_exeext conftest.$ac_ext
21160 LIBS=$ac_check_lib_save_LIBS
21161 fi
21162 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21163 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21164 if test $ac_cv_lib_intl_dgettext = yes; then
21165 cat >>confdefs.h <<_ACEOF
21166 #define HAVE_LIBINTL 1
21167 _ACEOF
21168
21169 LIBS="-lintl $LIBS"
21170
21171 fi
21172
21173
21174 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21175 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21176 if test "${emacs_cv_localtime_cache+set}" = set; then
21177 echo $ECHO_N "(cached) $ECHO_C" >&6
21178 else
21179 if test x$ac_cv_func_tzset = xyes; then
21180 if test "$cross_compiling" = yes; then
21181 # If we have tzset, assume the worst when cross-compiling.
21182 emacs_cv_localtime_cache=yes
21183 else
21184 cat >conftest.$ac_ext <<_ACEOF
21185 /* confdefs.h. */
21186 _ACEOF
21187 cat confdefs.h >>conftest.$ac_ext
21188 cat >>conftest.$ac_ext <<_ACEOF
21189 /* end confdefs.h. */
21190 #include <time.h>
21191 extern char **environ;
21192 unset_TZ ()
21193 {
21194 char **from, **to;
21195 for (to = from = environ; (*to = *from); from++)
21196 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21197 to++;
21198 }
21199 char TZ_GMT0[] = "TZ=GMT0";
21200 char TZ_PST8[] = "TZ=PST8";
21201 main()
21202 {
21203 time_t now = time ((time_t *) 0);
21204 int hour_GMT0, hour_unset;
21205 if (putenv (TZ_GMT0) != 0)
21206 exit (1);
21207 hour_GMT0 = localtime (&now)->tm_hour;
21208 unset_TZ ();
21209 hour_unset = localtime (&now)->tm_hour;
21210 if (putenv (TZ_PST8) != 0)
21211 exit (1);
21212 if (localtime (&now)->tm_hour == hour_GMT0)
21213 exit (1);
21214 unset_TZ ();
21215 if (localtime (&now)->tm_hour != hour_unset)
21216 exit (1);
21217 exit (0);
21218 }
21219 _ACEOF
21220 rm -f conftest$ac_exeext
21221 if { (ac_try="$ac_link"
21222 case "(($ac_try" in
21223 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21224 *) ac_try_echo=$ac_try;;
21225 esac
21226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21227 (eval "$ac_link") 2>&5
21228 ac_status=$?
21229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21230 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21231 { (case "(($ac_try" in
21232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21233 *) ac_try_echo=$ac_try;;
21234 esac
21235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21236 (eval "$ac_try") 2>&5
21237 ac_status=$?
21238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21239 (exit $ac_status); }; }; then
21240 emacs_cv_localtime_cache=no
21241 else
21242 echo "$as_me: program exited with status $ac_status" >&5
21243 echo "$as_me: failed program was:" >&5
21244 sed 's/^/| /' conftest.$ac_ext >&5
21245
21246 ( exit $ac_status )
21247 emacs_cv_localtime_cache=yes
21248 fi
21249 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21250 fi
21251
21252
21253 else
21254 # If we lack tzset, report that localtime does not cache TZ,
21255 # since we can't invalidate the cache if we don't have tzset.
21256 emacs_cv_localtime_cache=no
21257 fi
21258 fi
21259 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21260 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21261 if test $emacs_cv_localtime_cache = yes; then
21262
21263 cat >>confdefs.h <<\_ACEOF
21264 #define LOCALTIME_CACHE 1
21265 _ACEOF
21266
21267 fi
21268
21269 if test "x$HAVE_TIMEVAL" = xyes; then
21270
21271 for ac_func in gettimeofday
21272 do
21273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21277 echo $ECHO_N "(cached) $ECHO_C" >&6
21278 else
21279 cat >conftest.$ac_ext <<_ACEOF
21280 /* confdefs.h. */
21281 _ACEOF
21282 cat confdefs.h >>conftest.$ac_ext
21283 cat >>conftest.$ac_ext <<_ACEOF
21284 /* end confdefs.h. */
21285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21286 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21287 #define $ac_func innocuous_$ac_func
21288
21289 /* System header to define __stub macros and hopefully few prototypes,
21290 which can conflict with char $ac_func (); below.
21291 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21292 <limits.h> exists even on freestanding compilers. */
21293
21294 #ifdef __STDC__
21295 # include <limits.h>
21296 #else
21297 # include <assert.h>
21298 #endif
21299
21300 #undef $ac_func
21301
21302 /* Override any GCC internal prototype to avoid an error.
21303 Use char because int might match the return type of a GCC
21304 builtin and then its argument prototype would still apply. */
21305 #ifdef __cplusplus
21306 extern "C"
21307 #endif
21308 char $ac_func ();
21309 /* The GNU C library defines this for functions which it implements
21310 to always fail with ENOSYS. Some functions are actually named
21311 something starting with __ and the normal name is an alias. */
21312 #if defined __stub_$ac_func || defined __stub___$ac_func
21313 choke me
21314 #endif
21315
21316 int
21317 main ()
21318 {
21319 return $ac_func ();
21320 ;
21321 return 0;
21322 }
21323 _ACEOF
21324 rm -f conftest.$ac_objext conftest$ac_exeext
21325 if { (ac_try="$ac_link"
21326 case "(($ac_try" in
21327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21328 *) ac_try_echo=$ac_try;;
21329 esac
21330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21331 (eval "$ac_link") 2>conftest.er1
21332 ac_status=$?
21333 grep -v '^ *+' conftest.er1 >conftest.err
21334 rm -f conftest.er1
21335 cat conftest.err >&5
21336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21337 (exit $ac_status); } && {
21338 test -z "$ac_c_werror_flag" ||
21339 test ! -s conftest.err
21340 } && test -s conftest$ac_exeext &&
21341 $as_test_x conftest$ac_exeext; then
21342 eval "$as_ac_var=yes"
21343 else
21344 echo "$as_me: failed program was:" >&5
21345 sed 's/^/| /' conftest.$ac_ext >&5
21346
21347 eval "$as_ac_var=no"
21348 fi
21349
21350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21351 conftest$ac_exeext conftest.$ac_ext
21352 fi
21353 ac_res=`eval echo '${'$as_ac_var'}'`
21354 { echo "$as_me:$LINENO: result: $ac_res" >&5
21355 echo "${ECHO_T}$ac_res" >&6; }
21356 if test `eval echo '${'$as_ac_var'}'` = yes; then
21357 cat >>confdefs.h <<_ACEOF
21358 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21359 _ACEOF
21360
21361 fi
21362 done
21363
21364 if test $ac_cv_func_gettimeofday = yes; then
21365 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21366 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21367 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21368 echo $ECHO_N "(cached) $ECHO_C" >&6
21369 else
21370 cat >conftest.$ac_ext <<_ACEOF
21371 /* confdefs.h. */
21372 _ACEOF
21373 cat confdefs.h >>conftest.$ac_ext
21374 cat >>conftest.$ac_ext <<_ACEOF
21375 /* end confdefs.h. */
21376
21377 #ifdef TIME_WITH_SYS_TIME
21378 #include <sys/time.h>
21379 #include <time.h>
21380 #else
21381 #ifdef HAVE_SYS_TIME_H
21382 #include <sys/time.h>
21383 #else
21384 #include <time.h>
21385 #endif
21386 #endif
21387 int
21388 main ()
21389 {
21390 struct timeval time;
21391 gettimeofday (&time, 0);
21392 ;
21393 return 0;
21394 }
21395 _ACEOF
21396 rm -f conftest.$ac_objext
21397 if { (ac_try="$ac_compile"
21398 case "(($ac_try" in
21399 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21400 *) ac_try_echo=$ac_try;;
21401 esac
21402 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21403 (eval "$ac_compile") 2>conftest.er1
21404 ac_status=$?
21405 grep -v '^ *+' conftest.er1 >conftest.err
21406 rm -f conftest.er1
21407 cat conftest.err >&5
21408 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21409 (exit $ac_status); } && {
21410 test -z "$ac_c_werror_flag" ||
21411 test ! -s conftest.err
21412 } && test -s conftest.$ac_objext; then
21413 emacs_cv_gettimeofday_two_arguments=yes
21414 else
21415 echo "$as_me: failed program was:" >&5
21416 sed 's/^/| /' conftest.$ac_ext >&5
21417
21418 emacs_cv_gettimeofday_two_arguments=no
21419 fi
21420
21421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21422 fi
21423 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21424 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21425 if test $emacs_cv_gettimeofday_two_arguments = no; then
21426
21427 cat >>confdefs.h <<\_ACEOF
21428 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21429 _ACEOF
21430
21431 fi
21432 fi
21433 fi
21434
21435 ok_so_far=yes
21436 { echo "$as_me:$LINENO: checking for socket" >&5
21437 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21438 if test "${ac_cv_func_socket+set}" = set; then
21439 echo $ECHO_N "(cached) $ECHO_C" >&6
21440 else
21441 cat >conftest.$ac_ext <<_ACEOF
21442 /* confdefs.h. */
21443 _ACEOF
21444 cat confdefs.h >>conftest.$ac_ext
21445 cat >>conftest.$ac_ext <<_ACEOF
21446 /* end confdefs.h. */
21447 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21448 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21449 #define socket innocuous_socket
21450
21451 /* System header to define __stub macros and hopefully few prototypes,
21452 which can conflict with char socket (); below.
21453 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21454 <limits.h> exists even on freestanding compilers. */
21455
21456 #ifdef __STDC__
21457 # include <limits.h>
21458 #else
21459 # include <assert.h>
21460 #endif
21461
21462 #undef socket
21463
21464 /* Override any GCC internal prototype to avoid an error.
21465 Use char because int might match the return type of a GCC
21466 builtin and then its argument prototype would still apply. */
21467 #ifdef __cplusplus
21468 extern "C"
21469 #endif
21470 char socket ();
21471 /* The GNU C library defines this for functions which it implements
21472 to always fail with ENOSYS. Some functions are actually named
21473 something starting with __ and the normal name is an alias. */
21474 #if defined __stub_socket || defined __stub___socket
21475 choke me
21476 #endif
21477
21478 int
21479 main ()
21480 {
21481 return socket ();
21482 ;
21483 return 0;
21484 }
21485 _ACEOF
21486 rm -f conftest.$ac_objext conftest$ac_exeext
21487 if { (ac_try="$ac_link"
21488 case "(($ac_try" in
21489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21490 *) ac_try_echo=$ac_try;;
21491 esac
21492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21493 (eval "$ac_link") 2>conftest.er1
21494 ac_status=$?
21495 grep -v '^ *+' conftest.er1 >conftest.err
21496 rm -f conftest.er1
21497 cat conftest.err >&5
21498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21499 (exit $ac_status); } && {
21500 test -z "$ac_c_werror_flag" ||
21501 test ! -s conftest.err
21502 } && test -s conftest$ac_exeext &&
21503 $as_test_x conftest$ac_exeext; then
21504 ac_cv_func_socket=yes
21505 else
21506 echo "$as_me: failed program was:" >&5
21507 sed 's/^/| /' conftest.$ac_ext >&5
21508
21509 ac_cv_func_socket=no
21510 fi
21511
21512 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21513 conftest$ac_exeext conftest.$ac_ext
21514 fi
21515 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21516 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21517 if test $ac_cv_func_socket = yes; then
21518 :
21519 else
21520 ok_so_far=no
21521 fi
21522
21523 if test $ok_so_far = yes; then
21524 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21525 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21526 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21527 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21528 echo $ECHO_N "(cached) $ECHO_C" >&6
21529 fi
21530 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21531 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21532 else
21533 # Is the header compilable?
21534 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21535 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21536 cat >conftest.$ac_ext <<_ACEOF
21537 /* confdefs.h. */
21538 _ACEOF
21539 cat confdefs.h >>conftest.$ac_ext
21540 cat >>conftest.$ac_ext <<_ACEOF
21541 /* end confdefs.h. */
21542 $ac_includes_default
21543 #include <netinet/in.h>
21544 _ACEOF
21545 rm -f conftest.$ac_objext
21546 if { (ac_try="$ac_compile"
21547 case "(($ac_try" in
21548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21549 *) ac_try_echo=$ac_try;;
21550 esac
21551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21552 (eval "$ac_compile") 2>conftest.er1
21553 ac_status=$?
21554 grep -v '^ *+' conftest.er1 >conftest.err
21555 rm -f conftest.er1
21556 cat conftest.err >&5
21557 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21558 (exit $ac_status); } && {
21559 test -z "$ac_c_werror_flag" ||
21560 test ! -s conftest.err
21561 } && test -s conftest.$ac_objext; then
21562 ac_header_compiler=yes
21563 else
21564 echo "$as_me: failed program was:" >&5
21565 sed 's/^/| /' conftest.$ac_ext >&5
21566
21567 ac_header_compiler=no
21568 fi
21569
21570 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21571 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21572 echo "${ECHO_T}$ac_header_compiler" >&6; }
21573
21574 # Is the header present?
21575 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21576 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21577 cat >conftest.$ac_ext <<_ACEOF
21578 /* confdefs.h. */
21579 _ACEOF
21580 cat confdefs.h >>conftest.$ac_ext
21581 cat >>conftest.$ac_ext <<_ACEOF
21582 /* end confdefs.h. */
21583 #include <netinet/in.h>
21584 _ACEOF
21585 if { (ac_try="$ac_cpp conftest.$ac_ext"
21586 case "(($ac_try" in
21587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21588 *) ac_try_echo=$ac_try;;
21589 esac
21590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21591 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21592 ac_status=$?
21593 grep -v '^ *+' conftest.er1 >conftest.err
21594 rm -f conftest.er1
21595 cat conftest.err >&5
21596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21597 (exit $ac_status); } >/dev/null && {
21598 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21599 test ! -s conftest.err
21600 }; then
21601 ac_header_preproc=yes
21602 else
21603 echo "$as_me: failed program was:" >&5
21604 sed 's/^/| /' conftest.$ac_ext >&5
21605
21606 ac_header_preproc=no
21607 fi
21608
21609 rm -f conftest.err conftest.$ac_ext
21610 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21611 echo "${ECHO_T}$ac_header_preproc" >&6; }
21612
21613 # So? What about this header?
21614 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21615 yes:no: )
21616 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21617 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21618 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21619 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21620 ac_header_preproc=yes
21621 ;;
21622 no:yes:* )
21623 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21624 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21625 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21626 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21627 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21628 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21629 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21630 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21631 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21632 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21633 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21634 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21635
21636 ;;
21637 esac
21638 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21639 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21640 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21641 echo $ECHO_N "(cached) $ECHO_C" >&6
21642 else
21643 ac_cv_header_netinet_in_h=$ac_header_preproc
21644 fi
21645 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21646 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21647
21648 fi
21649 if test $ac_cv_header_netinet_in_h = yes; then
21650 :
21651 else
21652 ok_so_far=no
21653 fi
21654
21655
21656 fi
21657 if test $ok_so_far = yes; then
21658 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21659 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21660 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21661 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21662 echo $ECHO_N "(cached) $ECHO_C" >&6
21663 fi
21664 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21665 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21666 else
21667 # Is the header compilable?
21668 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
21669 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
21670 cat >conftest.$ac_ext <<_ACEOF
21671 /* confdefs.h. */
21672 _ACEOF
21673 cat confdefs.h >>conftest.$ac_ext
21674 cat >>conftest.$ac_ext <<_ACEOF
21675 /* end confdefs.h. */
21676 $ac_includes_default
21677 #include <arpa/inet.h>
21678 _ACEOF
21679 rm -f conftest.$ac_objext
21680 if { (ac_try="$ac_compile"
21681 case "(($ac_try" in
21682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21683 *) ac_try_echo=$ac_try;;
21684 esac
21685 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21686 (eval "$ac_compile") 2>conftest.er1
21687 ac_status=$?
21688 grep -v '^ *+' conftest.er1 >conftest.err
21689 rm -f conftest.er1
21690 cat conftest.err >&5
21691 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21692 (exit $ac_status); } && {
21693 test -z "$ac_c_werror_flag" ||
21694 test ! -s conftest.err
21695 } && test -s conftest.$ac_objext; then
21696 ac_header_compiler=yes
21697 else
21698 echo "$as_me: failed program was:" >&5
21699 sed 's/^/| /' conftest.$ac_ext >&5
21700
21701 ac_header_compiler=no
21702 fi
21703
21704 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21705 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21706 echo "${ECHO_T}$ac_header_compiler" >&6; }
21707
21708 # Is the header present?
21709 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
21710 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
21711 cat >conftest.$ac_ext <<_ACEOF
21712 /* confdefs.h. */
21713 _ACEOF
21714 cat confdefs.h >>conftest.$ac_ext
21715 cat >>conftest.$ac_ext <<_ACEOF
21716 /* end confdefs.h. */
21717 #include <arpa/inet.h>
21718 _ACEOF
21719 if { (ac_try="$ac_cpp conftest.$ac_ext"
21720 case "(($ac_try" in
21721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21722 *) ac_try_echo=$ac_try;;
21723 esac
21724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21725 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21726 ac_status=$?
21727 grep -v '^ *+' conftest.er1 >conftest.err
21728 rm -f conftest.er1
21729 cat conftest.err >&5
21730 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21731 (exit $ac_status); } >/dev/null && {
21732 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21733 test ! -s conftest.err
21734 }; then
21735 ac_header_preproc=yes
21736 else
21737 echo "$as_me: failed program was:" >&5
21738 sed 's/^/| /' conftest.$ac_ext >&5
21739
21740 ac_header_preproc=no
21741 fi
21742
21743 rm -f conftest.err conftest.$ac_ext
21744 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21745 echo "${ECHO_T}$ac_header_preproc" >&6; }
21746
21747 # So? What about this header?
21748 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21749 yes:no: )
21750 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
21751 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21752 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
21753 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
21754 ac_header_preproc=yes
21755 ;;
21756 no:yes:* )
21757 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
21758 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
21759 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
21760 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
21761 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
21762 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
21763 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
21764 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
21765 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
21766 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
21767 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
21768 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
21769
21770 ;;
21771 esac
21772 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
21773 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
21774 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
21775 echo $ECHO_N "(cached) $ECHO_C" >&6
21776 else
21777 ac_cv_header_arpa_inet_h=$ac_header_preproc
21778 fi
21779 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
21780 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
21781
21782 fi
21783 if test $ac_cv_header_arpa_inet_h = yes; then
21784 :
21785 else
21786 ok_so_far=no
21787 fi
21788
21789
21790 fi
21791 if test $ok_so_far = yes; then
21792
21793 cat >>confdefs.h <<\_ACEOF
21794 #define HAVE_INET_SOCKETS 1
21795 _ACEOF
21796
21797 fi
21798
21799
21800 for ac_header in sys/ioctl.h
21801 do
21802 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21804 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21805 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21806 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21807 echo $ECHO_N "(cached) $ECHO_C" >&6
21808 fi
21809 ac_res=`eval echo '${'$as_ac_Header'}'`
21810 { echo "$as_me:$LINENO: result: $ac_res" >&5
21811 echo "${ECHO_T}$ac_res" >&6; }
21812 else
21813 # Is the header compilable?
21814 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21815 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21816 cat >conftest.$ac_ext <<_ACEOF
21817 /* confdefs.h. */
21818 _ACEOF
21819 cat confdefs.h >>conftest.$ac_ext
21820 cat >>conftest.$ac_ext <<_ACEOF
21821 /* end confdefs.h. */
21822 $ac_includes_default
21823 #include <$ac_header>
21824 _ACEOF
21825 rm -f conftest.$ac_objext
21826 if { (ac_try="$ac_compile"
21827 case "(($ac_try" in
21828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21829 *) ac_try_echo=$ac_try;;
21830 esac
21831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21832 (eval "$ac_compile") 2>conftest.er1
21833 ac_status=$?
21834 grep -v '^ *+' conftest.er1 >conftest.err
21835 rm -f conftest.er1
21836 cat conftest.err >&5
21837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21838 (exit $ac_status); } && {
21839 test -z "$ac_c_werror_flag" ||
21840 test ! -s conftest.err
21841 } && test -s conftest.$ac_objext; then
21842 ac_header_compiler=yes
21843 else
21844 echo "$as_me: failed program was:" >&5
21845 sed 's/^/| /' conftest.$ac_ext >&5
21846
21847 ac_header_compiler=no
21848 fi
21849
21850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21851 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21852 echo "${ECHO_T}$ac_header_compiler" >&6; }
21853
21854 # Is the header present?
21855 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21856 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21857 cat >conftest.$ac_ext <<_ACEOF
21858 /* confdefs.h. */
21859 _ACEOF
21860 cat confdefs.h >>conftest.$ac_ext
21861 cat >>conftest.$ac_ext <<_ACEOF
21862 /* end confdefs.h. */
21863 #include <$ac_header>
21864 _ACEOF
21865 if { (ac_try="$ac_cpp conftest.$ac_ext"
21866 case "(($ac_try" in
21867 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21868 *) ac_try_echo=$ac_try;;
21869 esac
21870 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21871 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21872 ac_status=$?
21873 grep -v '^ *+' conftest.er1 >conftest.err
21874 rm -f conftest.er1
21875 cat conftest.err >&5
21876 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21877 (exit $ac_status); } >/dev/null && {
21878 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21879 test ! -s conftest.err
21880 }; then
21881 ac_header_preproc=yes
21882 else
21883 echo "$as_me: failed program was:" >&5
21884 sed 's/^/| /' conftest.$ac_ext >&5
21885
21886 ac_header_preproc=no
21887 fi
21888
21889 rm -f conftest.err conftest.$ac_ext
21890 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21891 echo "${ECHO_T}$ac_header_preproc" >&6; }
21892
21893 # So? What about this header?
21894 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21895 yes:no: )
21896 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21897 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21898 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21899 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21900 ac_header_preproc=yes
21901 ;;
21902 no:yes:* )
21903 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21904 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21905 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21906 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21907 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21908 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21909 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21910 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21912 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21913 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21914 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21915
21916 ;;
21917 esac
21918 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21919 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21920 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21921 echo $ECHO_N "(cached) $ECHO_C" >&6
21922 else
21923 eval "$as_ac_Header=\$ac_header_preproc"
21924 fi
21925 ac_res=`eval echo '${'$as_ac_Header'}'`
21926 { echo "$as_me:$LINENO: result: $ac_res" >&5
21927 echo "${ECHO_T}$ac_res" >&6; }
21928
21929 fi
21930 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21931 cat >>confdefs.h <<_ACEOF
21932 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21933 _ACEOF
21934
21935 fi
21936
21937 done
21938
21939
21940 if test -f /usr/lpp/X11/bin/smt.exp; then
21941
21942 cat >>confdefs.h <<\_ACEOF
21943 #define HAVE_AIX_SMT_EXP 1
21944 _ACEOF
21945
21946 fi
21947
21948 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
21949 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
21950 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
21951 { echo "$as_me:$LINENO: result: yes" >&5
21952 echo "${ECHO_T}yes" >&6; }
21953
21954 cat >>confdefs.h <<\_ACEOF
21955 #define HAVE_DEV_PTMX 1
21956 _ACEOF
21957
21958 else
21959 { echo "$as_me:$LINENO: result: no" >&5
21960 echo "${ECHO_T}no" >&6; }
21961 fi
21962
21963 { echo "$as_me:$LINENO: checking for pid_t" >&5
21964 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
21965 if test "${ac_cv_type_pid_t+set}" = set; then
21966 echo $ECHO_N "(cached) $ECHO_C" >&6
21967 else
21968 cat >conftest.$ac_ext <<_ACEOF
21969 /* confdefs.h. */
21970 _ACEOF
21971 cat confdefs.h >>conftest.$ac_ext
21972 cat >>conftest.$ac_ext <<_ACEOF
21973 /* end confdefs.h. */
21974 $ac_includes_default
21975 typedef pid_t ac__type_new_;
21976 int
21977 main ()
21978 {
21979 if ((ac__type_new_ *) 0)
21980 return 0;
21981 if (sizeof (ac__type_new_))
21982 return 0;
21983 ;
21984 return 0;
21985 }
21986 _ACEOF
21987 rm -f conftest.$ac_objext
21988 if { (ac_try="$ac_compile"
21989 case "(($ac_try" in
21990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21991 *) ac_try_echo=$ac_try;;
21992 esac
21993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21994 (eval "$ac_compile") 2>conftest.er1
21995 ac_status=$?
21996 grep -v '^ *+' conftest.er1 >conftest.err
21997 rm -f conftest.er1
21998 cat conftest.err >&5
21999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22000 (exit $ac_status); } && {
22001 test -z "$ac_c_werror_flag" ||
22002 test ! -s conftest.err
22003 } && test -s conftest.$ac_objext; then
22004 ac_cv_type_pid_t=yes
22005 else
22006 echo "$as_me: failed program was:" >&5
22007 sed 's/^/| /' conftest.$ac_ext >&5
22008
22009 ac_cv_type_pid_t=no
22010 fi
22011
22012 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22013 fi
22014 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22015 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22016 if test $ac_cv_type_pid_t = yes; then
22017 :
22018 else
22019
22020 cat >>confdefs.h <<_ACEOF
22021 #define pid_t int
22022 _ACEOF
22023
22024 fi
22025
22026
22027 for ac_header in vfork.h
22028 do
22029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22031 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22032 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22033 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22034 echo $ECHO_N "(cached) $ECHO_C" >&6
22035 fi
22036 ac_res=`eval echo '${'$as_ac_Header'}'`
22037 { echo "$as_me:$LINENO: result: $ac_res" >&5
22038 echo "${ECHO_T}$ac_res" >&6; }
22039 else
22040 # Is the header compilable?
22041 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22042 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22043 cat >conftest.$ac_ext <<_ACEOF
22044 /* confdefs.h. */
22045 _ACEOF
22046 cat confdefs.h >>conftest.$ac_ext
22047 cat >>conftest.$ac_ext <<_ACEOF
22048 /* end confdefs.h. */
22049 $ac_includes_default
22050 #include <$ac_header>
22051 _ACEOF
22052 rm -f conftest.$ac_objext
22053 if { (ac_try="$ac_compile"
22054 case "(($ac_try" in
22055 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22056 *) ac_try_echo=$ac_try;;
22057 esac
22058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22059 (eval "$ac_compile") 2>conftest.er1
22060 ac_status=$?
22061 grep -v '^ *+' conftest.er1 >conftest.err
22062 rm -f conftest.er1
22063 cat conftest.err >&5
22064 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22065 (exit $ac_status); } && {
22066 test -z "$ac_c_werror_flag" ||
22067 test ! -s conftest.err
22068 } && test -s conftest.$ac_objext; then
22069 ac_header_compiler=yes
22070 else
22071 echo "$as_me: failed program was:" >&5
22072 sed 's/^/| /' conftest.$ac_ext >&5
22073
22074 ac_header_compiler=no
22075 fi
22076
22077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22078 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22079 echo "${ECHO_T}$ac_header_compiler" >&6; }
22080
22081 # Is the header present?
22082 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22083 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22084 cat >conftest.$ac_ext <<_ACEOF
22085 /* confdefs.h. */
22086 _ACEOF
22087 cat confdefs.h >>conftest.$ac_ext
22088 cat >>conftest.$ac_ext <<_ACEOF
22089 /* end confdefs.h. */
22090 #include <$ac_header>
22091 _ACEOF
22092 if { (ac_try="$ac_cpp conftest.$ac_ext"
22093 case "(($ac_try" in
22094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22095 *) ac_try_echo=$ac_try;;
22096 esac
22097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22098 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22099 ac_status=$?
22100 grep -v '^ *+' conftest.er1 >conftest.err
22101 rm -f conftest.er1
22102 cat conftest.err >&5
22103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22104 (exit $ac_status); } >/dev/null && {
22105 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22106 test ! -s conftest.err
22107 }; then
22108 ac_header_preproc=yes
22109 else
22110 echo "$as_me: failed program was:" >&5
22111 sed 's/^/| /' conftest.$ac_ext >&5
22112
22113 ac_header_preproc=no
22114 fi
22115
22116 rm -f conftest.err conftest.$ac_ext
22117 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22118 echo "${ECHO_T}$ac_header_preproc" >&6; }
22119
22120 # So? What about this header?
22121 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22122 yes:no: )
22123 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22124 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22125 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22126 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22127 ac_header_preproc=yes
22128 ;;
22129 no:yes:* )
22130 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22131 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22132 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22133 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22134 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22135 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22136 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22137 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22138 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22139 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22140 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22141 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22142
22143 ;;
22144 esac
22145 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22146 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22147 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22148 echo $ECHO_N "(cached) $ECHO_C" >&6
22149 else
22150 eval "$as_ac_Header=\$ac_header_preproc"
22151 fi
22152 ac_res=`eval echo '${'$as_ac_Header'}'`
22153 { echo "$as_me:$LINENO: result: $ac_res" >&5
22154 echo "${ECHO_T}$ac_res" >&6; }
22155
22156 fi
22157 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22158 cat >>confdefs.h <<_ACEOF
22159 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22160 _ACEOF
22161
22162 fi
22163
22164 done
22165
22166
22167
22168 for ac_func in fork vfork
22169 do
22170 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22171 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22172 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22173 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22174 echo $ECHO_N "(cached) $ECHO_C" >&6
22175 else
22176 cat >conftest.$ac_ext <<_ACEOF
22177 /* confdefs.h. */
22178 _ACEOF
22179 cat confdefs.h >>conftest.$ac_ext
22180 cat >>conftest.$ac_ext <<_ACEOF
22181 /* end confdefs.h. */
22182 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22183 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22184 #define $ac_func innocuous_$ac_func
22185
22186 /* System header to define __stub macros and hopefully few prototypes,
22187 which can conflict with char $ac_func (); below.
22188 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22189 <limits.h> exists even on freestanding compilers. */
22190
22191 #ifdef __STDC__
22192 # include <limits.h>
22193 #else
22194 # include <assert.h>
22195 #endif
22196
22197 #undef $ac_func
22198
22199 /* Override any GCC internal prototype to avoid an error.
22200 Use char because int might match the return type of a GCC
22201 builtin and then its argument prototype would still apply. */
22202 #ifdef __cplusplus
22203 extern "C"
22204 #endif
22205 char $ac_func ();
22206 /* The GNU C library defines this for functions which it implements
22207 to always fail with ENOSYS. Some functions are actually named
22208 something starting with __ and the normal name is an alias. */
22209 #if defined __stub_$ac_func || defined __stub___$ac_func
22210 choke me
22211 #endif
22212
22213 int
22214 main ()
22215 {
22216 return $ac_func ();
22217 ;
22218 return 0;
22219 }
22220 _ACEOF
22221 rm -f conftest.$ac_objext conftest$ac_exeext
22222 if { (ac_try="$ac_link"
22223 case "(($ac_try" in
22224 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22225 *) ac_try_echo=$ac_try;;
22226 esac
22227 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22228 (eval "$ac_link") 2>conftest.er1
22229 ac_status=$?
22230 grep -v '^ *+' conftest.er1 >conftest.err
22231 rm -f conftest.er1
22232 cat conftest.err >&5
22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22234 (exit $ac_status); } && {
22235 test -z "$ac_c_werror_flag" ||
22236 test ! -s conftest.err
22237 } && test -s conftest$ac_exeext &&
22238 $as_test_x conftest$ac_exeext; then
22239 eval "$as_ac_var=yes"
22240 else
22241 echo "$as_me: failed program was:" >&5
22242 sed 's/^/| /' conftest.$ac_ext >&5
22243
22244 eval "$as_ac_var=no"
22245 fi
22246
22247 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22248 conftest$ac_exeext conftest.$ac_ext
22249 fi
22250 ac_res=`eval echo '${'$as_ac_var'}'`
22251 { echo "$as_me:$LINENO: result: $ac_res" >&5
22252 echo "${ECHO_T}$ac_res" >&6; }
22253 if test `eval echo '${'$as_ac_var'}'` = yes; then
22254 cat >>confdefs.h <<_ACEOF
22255 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22256 _ACEOF
22257
22258 fi
22259 done
22260
22261 if test "x$ac_cv_func_fork" = xyes; then
22262 { echo "$as_me:$LINENO: checking for working fork" >&5
22263 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22264 if test "${ac_cv_func_fork_works+set}" = set; then
22265 echo $ECHO_N "(cached) $ECHO_C" >&6
22266 else
22267 if test "$cross_compiling" = yes; then
22268 ac_cv_func_fork_works=cross
22269 else
22270 cat >conftest.$ac_ext <<_ACEOF
22271 /* confdefs.h. */
22272 _ACEOF
22273 cat confdefs.h >>conftest.$ac_ext
22274 cat >>conftest.$ac_ext <<_ACEOF
22275 /* end confdefs.h. */
22276 $ac_includes_default
22277 int
22278 main ()
22279 {
22280
22281 /* By Ruediger Kuhlmann. */
22282 return fork () < 0;
22283
22284 ;
22285 return 0;
22286 }
22287 _ACEOF
22288 rm -f conftest$ac_exeext
22289 if { (ac_try="$ac_link"
22290 case "(($ac_try" in
22291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22292 *) ac_try_echo=$ac_try;;
22293 esac
22294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22295 (eval "$ac_link") 2>&5
22296 ac_status=$?
22297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22298 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22299 { (case "(($ac_try" in
22300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22301 *) ac_try_echo=$ac_try;;
22302 esac
22303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22304 (eval "$ac_try") 2>&5
22305 ac_status=$?
22306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22307 (exit $ac_status); }; }; then
22308 ac_cv_func_fork_works=yes
22309 else
22310 echo "$as_me: program exited with status $ac_status" >&5
22311 echo "$as_me: failed program was:" >&5
22312 sed 's/^/| /' conftest.$ac_ext >&5
22313
22314 ( exit $ac_status )
22315 ac_cv_func_fork_works=no
22316 fi
22317 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22318 fi
22319
22320
22321 fi
22322 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22323 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22324
22325 else
22326 ac_cv_func_fork_works=$ac_cv_func_fork
22327 fi
22328 if test "x$ac_cv_func_fork_works" = xcross; then
22329 case $host in
22330 *-*-amigaos* | *-*-msdosdjgpp*)
22331 # Override, as these systems have only a dummy fork() stub
22332 ac_cv_func_fork_works=no
22333 ;;
22334 *)
22335 ac_cv_func_fork_works=yes
22336 ;;
22337 esac
22338 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22339 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22340 fi
22341 ac_cv_func_vfork_works=$ac_cv_func_vfork
22342 if test "x$ac_cv_func_vfork" = xyes; then
22343 { echo "$as_me:$LINENO: checking for working vfork" >&5
22344 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22345 if test "${ac_cv_func_vfork_works+set}" = set; then
22346 echo $ECHO_N "(cached) $ECHO_C" >&6
22347 else
22348 if test "$cross_compiling" = yes; then
22349 ac_cv_func_vfork_works=cross
22350 else
22351 cat >conftest.$ac_ext <<_ACEOF
22352 /* confdefs.h. */
22353 _ACEOF
22354 cat confdefs.h >>conftest.$ac_ext
22355 cat >>conftest.$ac_ext <<_ACEOF
22356 /* end confdefs.h. */
22357 /* Thanks to Paul Eggert for this test. */
22358 $ac_includes_default
22359 #include <sys/wait.h>
22360 #ifdef HAVE_VFORK_H
22361 # include <vfork.h>
22362 #endif
22363 /* On some sparc systems, changes by the child to local and incoming
22364 argument registers are propagated back to the parent. The compiler
22365 is told about this with #include <vfork.h>, but some compilers
22366 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22367 static variable whose address is put into a register that is
22368 clobbered by the vfork. */
22369 static void
22370 #ifdef __cplusplus
22371 sparc_address_test (int arg)
22372 # else
22373 sparc_address_test (arg) int arg;
22374 #endif
22375 {
22376 static pid_t child;
22377 if (!child) {
22378 child = vfork ();
22379 if (child < 0) {
22380 perror ("vfork");
22381 _exit(2);
22382 }
22383 if (!child) {
22384 arg = getpid();
22385 write(-1, "", 0);
22386 _exit (arg);
22387 }
22388 }
22389 }
22390
22391 int
22392 main ()
22393 {
22394 pid_t parent = getpid ();
22395 pid_t child;
22396
22397 sparc_address_test (0);
22398
22399 child = vfork ();
22400
22401 if (child == 0) {
22402 /* Here is another test for sparc vfork register problems. This
22403 test uses lots of local variables, at least as many local
22404 variables as main has allocated so far including compiler
22405 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22406 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22407 reuse the register of parent for one of the local variables,
22408 since it will think that parent can't possibly be used any more
22409 in this routine. Assigning to the local variable will thus
22410 munge parent in the parent process. */
22411 pid_t
22412 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22413 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22414 /* Convince the compiler that p..p7 are live; otherwise, it might
22415 use the same hardware register for all 8 local variables. */
22416 if (p != p1 || p != p2 || p != p3 || p != p4
22417 || p != p5 || p != p6 || p != p7)
22418 _exit(1);
22419
22420 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22421 from child file descriptors. If the child closes a descriptor
22422 before it execs or exits, this munges the parent's descriptor
22423 as well. Test for this by closing stdout in the child. */
22424 _exit(close(fileno(stdout)) != 0);
22425 } else {
22426 int status;
22427 struct stat st;
22428
22429 while (wait(&status) != child)
22430 ;
22431 return (
22432 /* Was there some problem with vforking? */
22433 child < 0
22434
22435 /* Did the child fail? (This shouldn't happen.) */
22436 || status
22437
22438 /* Did the vfork/compiler bug occur? */
22439 || parent != getpid()
22440
22441 /* Did the file descriptor bug occur? */
22442 || fstat(fileno(stdout), &st) != 0
22443 );
22444 }
22445 }
22446 _ACEOF
22447 rm -f conftest$ac_exeext
22448 if { (ac_try="$ac_link"
22449 case "(($ac_try" in
22450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22451 *) ac_try_echo=$ac_try;;
22452 esac
22453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22454 (eval "$ac_link") 2>&5
22455 ac_status=$?
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22458 { (case "(($ac_try" in
22459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22460 *) ac_try_echo=$ac_try;;
22461 esac
22462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22463 (eval "$ac_try") 2>&5
22464 ac_status=$?
22465 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22466 (exit $ac_status); }; }; then
22467 ac_cv_func_vfork_works=yes
22468 else
22469 echo "$as_me: program exited with status $ac_status" >&5
22470 echo "$as_me: failed program was:" >&5
22471 sed 's/^/| /' conftest.$ac_ext >&5
22472
22473 ( exit $ac_status )
22474 ac_cv_func_vfork_works=no
22475 fi
22476 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22477 fi
22478
22479
22480 fi
22481 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22482 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22483
22484 fi;
22485 if test "x$ac_cv_func_fork_works" = xcross; then
22486 ac_cv_func_vfork_works=$ac_cv_func_vfork
22487 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22488 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22489 fi
22490
22491 if test "x$ac_cv_func_vfork_works" = xyes; then
22492
22493 cat >>confdefs.h <<\_ACEOF
22494 #define HAVE_WORKING_VFORK 1
22495 _ACEOF
22496
22497 else
22498
22499 cat >>confdefs.h <<\_ACEOF
22500 #define vfork fork
22501 _ACEOF
22502
22503 fi
22504 if test "x$ac_cv_func_fork_works" = xyes; then
22505
22506 cat >>confdefs.h <<\_ACEOF
22507 #define HAVE_WORKING_FORK 1
22508 _ACEOF
22509
22510 fi
22511
22512
22513 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22514 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22515 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22516 echo $ECHO_N "(cached) $ECHO_C" >&6
22517 else
22518 cat >conftest.$ac_ext <<_ACEOF
22519 /* confdefs.h. */
22520 _ACEOF
22521 cat confdefs.h >>conftest.$ac_ext
22522 cat >>conftest.$ac_ext <<_ACEOF
22523 /* end confdefs.h. */
22524 #include <langinfo.h>
22525 int
22526 main ()
22527 {
22528 char* cs = nl_langinfo(CODESET);
22529 ;
22530 return 0;
22531 }
22532 _ACEOF
22533 rm -f conftest.$ac_objext conftest$ac_exeext
22534 if { (ac_try="$ac_link"
22535 case "(($ac_try" in
22536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22537 *) ac_try_echo=$ac_try;;
22538 esac
22539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22540 (eval "$ac_link") 2>conftest.er1
22541 ac_status=$?
22542 grep -v '^ *+' conftest.er1 >conftest.err
22543 rm -f conftest.er1
22544 cat conftest.err >&5
22545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22546 (exit $ac_status); } && {
22547 test -z "$ac_c_werror_flag" ||
22548 test ! -s conftest.err
22549 } && test -s conftest$ac_exeext &&
22550 $as_test_x conftest$ac_exeext; then
22551 emacs_cv_langinfo_codeset=yes
22552 else
22553 echo "$as_me: failed program was:" >&5
22554 sed 's/^/| /' conftest.$ac_ext >&5
22555
22556 emacs_cv_langinfo_codeset=no
22557 fi
22558
22559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22560 conftest$ac_exeext conftest.$ac_ext
22561
22562 fi
22563 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22564 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22565 if test $emacs_cv_langinfo_codeset = yes; then
22566
22567 cat >>confdefs.h <<\_ACEOF
22568 #define HAVE_LANGINFO_CODESET 1
22569 _ACEOF
22570
22571 fi
22572
22573 { echo "$as_me:$LINENO: checking for size_t" >&5
22574 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22575 if test "${ac_cv_type_size_t+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 typedef size_t ac__type_new_;
22586 int
22587 main ()
22588 {
22589 if ((ac__type_new_ *) 0)
22590 return 0;
22591 if (sizeof (ac__type_new_))
22592 return 0;
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22605 ac_status=$?
22606 grep -v '^ *+' conftest.er1 >conftest.err
22607 rm -f conftest.er1
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_type_size_t=yes
22615 else
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619 ac_cv_type_size_t=no
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 fi
22624 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22625 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22626 if test $ac_cv_type_size_t = yes; then
22627
22628 cat >>confdefs.h <<_ACEOF
22629 #define HAVE_SIZE_T 1
22630 _ACEOF
22631
22632
22633 fi
22634
22635
22636 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22637 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22638 if test "${ac_cv_type_mbstate_t+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 cat >conftest.$ac_ext <<_ACEOF
22642 /* confdefs.h. */
22643 _ACEOF
22644 cat confdefs.h >>conftest.$ac_ext
22645 cat >>conftest.$ac_ext <<_ACEOF
22646 /* end confdefs.h. */
22647 $ac_includes_default
22648 # include <wchar.h>
22649 int
22650 main ()
22651 {
22652 mbstate_t x; return sizeof x;
22653 ;
22654 return 0;
22655 }
22656 _ACEOF
22657 rm -f conftest.$ac_objext
22658 if { (ac_try="$ac_compile"
22659 case "(($ac_try" in
22660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22661 *) ac_try_echo=$ac_try;;
22662 esac
22663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22664 (eval "$ac_compile") 2>conftest.er1
22665 ac_status=$?
22666 grep -v '^ *+' conftest.er1 >conftest.err
22667 rm -f conftest.er1
22668 cat conftest.err >&5
22669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22670 (exit $ac_status); } && {
22671 test -z "$ac_c_werror_flag" ||
22672 test ! -s conftest.err
22673 } && test -s conftest.$ac_objext; then
22674 ac_cv_type_mbstate_t=yes
22675 else
22676 echo "$as_me: failed program was:" >&5
22677 sed 's/^/| /' conftest.$ac_ext >&5
22678
22679 ac_cv_type_mbstate_t=no
22680 fi
22681
22682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22683 fi
22684 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
22685 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
22686 if test $ac_cv_type_mbstate_t = yes; then
22687
22688 cat >>confdefs.h <<\_ACEOF
22689 #define HAVE_MBSTATE_T 1
22690 _ACEOF
22691
22692 else
22693
22694 cat >>confdefs.h <<\_ACEOF
22695 #define mbstate_t int
22696 _ACEOF
22697
22698 fi
22699
22700 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
22701 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
22702 if test "${emacs_cv_c_restrict+set}" = set; then
22703 echo $ECHO_N "(cached) $ECHO_C" >&6
22704 else
22705 cat >conftest.$ac_ext <<_ACEOF
22706 /* confdefs.h. */
22707 _ACEOF
22708 cat confdefs.h >>conftest.$ac_ext
22709 cat >>conftest.$ac_ext <<_ACEOF
22710 /* end confdefs.h. */
22711 void fred (int *restrict x);
22712 int
22713 main ()
22714 {
22715
22716 ;
22717 return 0;
22718 }
22719 _ACEOF
22720 rm -f conftest.$ac_objext
22721 if { (ac_try="$ac_compile"
22722 case "(($ac_try" in
22723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22724 *) ac_try_echo=$ac_try;;
22725 esac
22726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22727 (eval "$ac_compile") 2>conftest.er1
22728 ac_status=$?
22729 grep -v '^ *+' conftest.er1 >conftest.err
22730 rm -f conftest.er1
22731 cat conftest.err >&5
22732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22733 (exit $ac_status); } && {
22734 test -z "$ac_c_werror_flag" ||
22735 test ! -s conftest.err
22736 } && test -s conftest.$ac_objext; then
22737 emacs_cv_c_restrict=yes
22738 else
22739 echo "$as_me: failed program was:" >&5
22740 sed 's/^/| /' conftest.$ac_ext >&5
22741
22742 cat >conftest.$ac_ext <<_ACEOF
22743 /* confdefs.h. */
22744 _ACEOF
22745 cat confdefs.h >>conftest.$ac_ext
22746 cat >>conftest.$ac_ext <<_ACEOF
22747 /* end confdefs.h. */
22748 void fred (int *__restrict x);
22749 int
22750 main ()
22751 {
22752
22753 ;
22754 return 0;
22755 }
22756 _ACEOF
22757 rm -f conftest.$ac_objext
22758 if { (ac_try="$ac_compile"
22759 case "(($ac_try" in
22760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22761 *) ac_try_echo=$ac_try;;
22762 esac
22763 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22764 (eval "$ac_compile") 2>conftest.er1
22765 ac_status=$?
22766 grep -v '^ *+' conftest.er1 >conftest.err
22767 rm -f conftest.er1
22768 cat conftest.err >&5
22769 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22770 (exit $ac_status); } && {
22771 test -z "$ac_c_werror_flag" ||
22772 test ! -s conftest.err
22773 } && test -s conftest.$ac_objext; then
22774 emacs_cv_c_restrict=__restrict
22775 else
22776 echo "$as_me: failed program was:" >&5
22777 sed 's/^/| /' conftest.$ac_ext >&5
22778
22779 emacs_cv_c_restrict=no
22780 fi
22781
22782 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22783 fi
22784
22785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22786 fi
22787 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
22788 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
22789 case "$emacs_cv_c_restrict" in
22790 yes) emacs_restrict=restrict;;
22791 no) emacs_restrict="";;
22792 *) emacs_restrict="$emacs_cv_c_restrict";;
22793 esac
22794 if test "$emacs_restrict" != __restrict; then
22795
22796 cat >>confdefs.h <<_ACEOF
22797 #define __restrict $emacs_restrict
22798 _ACEOF
22799
22800 fi
22801
22802 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
22803 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
22804 if test "${emacs_cv_c_restrict_arr+set}" = set; then
22805 echo $ECHO_N "(cached) $ECHO_C" >&6
22806 else
22807 cat >conftest.$ac_ext <<_ACEOF
22808 /* confdefs.h. */
22809 _ACEOF
22810 cat confdefs.h >>conftest.$ac_ext
22811 cat >>conftest.$ac_ext <<_ACEOF
22812 /* end confdefs.h. */
22813 void fred (int x[__restrict]);
22814 int
22815 main ()
22816 {
22817
22818 ;
22819 return 0;
22820 }
22821 _ACEOF
22822 rm -f conftest.$ac_objext
22823 if { (ac_try="$ac_compile"
22824 case "(($ac_try" in
22825 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22826 *) ac_try_echo=$ac_try;;
22827 esac
22828 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22829 (eval "$ac_compile") 2>conftest.er1
22830 ac_status=$?
22831 grep -v '^ *+' conftest.er1 >conftest.err
22832 rm -f conftest.er1
22833 cat conftest.err >&5
22834 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22835 (exit $ac_status); } && {
22836 test -z "$ac_c_werror_flag" ||
22837 test ! -s conftest.err
22838 } && test -s conftest.$ac_objext; then
22839 emacs_cv_c_restrict_arr=yes
22840 else
22841 echo "$as_me: failed program was:" >&5
22842 sed 's/^/| /' conftest.$ac_ext >&5
22843
22844 emacs_cv_c_restrict_arr=no
22845 fi
22846
22847 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22848 fi
22849 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
22850 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
22851 if test "$emacs_cv_c_restrict_arr" = yes; then
22852
22853 cat >>confdefs.h <<\_ACEOF
22854 #define __restrict_arr __restrict
22855 _ACEOF
22856
22857 fi
22858
22859
22860
22861 # Set up the CFLAGS for real compilation, so we can substitute it.
22862 CFLAGS="$REAL_CFLAGS"
22863 CPPFLAGS="$REAL_CPPFLAGS"
22864
22865 #### Find out which version of Emacs this is.
22866 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
22867 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
22868 if test x"${version}" = x; then
22869 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
22870 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
22871 { (exit 1); exit 1; }; }
22872 fi
22873
22874 ### Specify what sort of things we'll be editing into Makefile and config.h.
22875 ### Use configuration here uncanonicalized to avoid exceeding size limits.
22876
22877
22878
22879
22880
22881
22882
22883
22884
22885
22886
22887
22888
22889
22890
22891
22892
22893
22894
22895
22896
22897
22898
22899
22900
22901
22902
22903
22904
22905
22906
22907
22908
22909
22910
22911 cat >>confdefs.h <<_ACEOF
22912 #define EMACS_CONFIGURATION "${canonical}"
22913 _ACEOF
22914
22915
22916 cat >>confdefs.h <<_ACEOF
22917 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
22918 _ACEOF
22919
22920
22921 cat >>confdefs.h <<_ACEOF
22922 #define config_machfile "${machfile}"
22923 _ACEOF
22924
22925
22926 cat >>confdefs.h <<_ACEOF
22927 #define config_opsysfile "${opsysfile}"
22928 _ACEOF
22929
22930
22931 cat >>confdefs.h <<_ACEOF
22932 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
22933 _ACEOF
22934
22935
22936 cat >>confdefs.h <<_ACEOF
22937 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
22938 _ACEOF
22939
22940
22941 cat >>confdefs.h <<_ACEOF
22942 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
22943 _ACEOF
22944
22945
22946 cat >>confdefs.h <<_ACEOF
22947 #define UNEXEC_SRC ${UNEXEC_SRC}
22948 _ACEOF
22949
22950
22951 if test "${HAVE_X_WINDOWS}" = "yes" ; then
22952
22953 cat >>confdefs.h <<\_ACEOF
22954 #define HAVE_X_WINDOWS 1
22955 _ACEOF
22956
22957 fi
22958 if test "${USE_X_TOOLKIT}" != "none" ; then
22959
22960 cat >>confdefs.h <<\_ACEOF
22961 #define USE_X_TOOLKIT 1
22962 _ACEOF
22963
22964 fi
22965 if test "${HAVE_X11}" = "yes" ; then
22966
22967 cat >>confdefs.h <<\_ACEOF
22968 #define HAVE_X11 1
22969 _ACEOF
22970
22971 fi
22972 if test "${HAVE_XFREE386}" = "yes" ; then
22973
22974 cat >>confdefs.h <<\_ACEOF
22975 #define HAVE_XFREE386 1
22976 _ACEOF
22977
22978 fi
22979 if test "${HAVE_MENUS}" = "yes" ; then
22980
22981 cat >>confdefs.h <<\_ACEOF
22982 #define HAVE_MENUS 1
22983 _ACEOF
22984
22985 fi
22986 if test "${GNU_MALLOC}" = "yes" ; then
22987
22988 cat >>confdefs.h <<\_ACEOF
22989 #define GNU_MALLOC 1
22990 _ACEOF
22991
22992 fi
22993 if test "${REL_ALLOC}" = "yes" ; then
22994
22995 cat >>confdefs.h <<\_ACEOF
22996 #define REL_ALLOC 1
22997 _ACEOF
22998
22999 fi
23000
23001
23002
23003
23004
23005 #### Report on what we decided to do.
23006 #### Report GTK as a toolkit, even if it doesn't use Xt.
23007 #### It makes printing result more understandable as using GTK sets
23008 #### toolkit_scroll_bars to yes by default.
23009 if test "${HAVE_GTK}" = "yes"; then
23010 USE_X_TOOLKIT=GTK
23011 fi
23012
23013 echo "
23014 Configured for \`${canonical}'.
23015
23016 Where should the build process find the source code? ${srcdir}
23017 What operating system and machine description files should Emacs use?
23018 \`${opsysfile}' and \`${machfile}'
23019 What compiler should emacs be built with? ${CC} ${CFLAGS}
23020 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23021 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23022 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23023 What window system should Emacs use? ${window_system}
23024 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23025
23026 if test -n "${x_includes}"; then
23027 echo " Where do we find X Windows header files? ${x_includes}"
23028 else
23029 echo " Where do we find X Windows header files? Standard dirs"
23030 fi
23031 if test -n "${x_libraries}"; then
23032 echo " Where do we find X Windows libraries? ${x_libraries}"
23033 else
23034 echo " Where do we find X Windows libraries? Standard dirs"
23035 fi
23036
23037 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23038 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23039 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23040 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23041 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23042 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23043 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23044 echo
23045
23046 if test $USE_XASSERTS = yes; then
23047 echo " Compiling with asserts turned on."
23048 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23049 echo
23050 fi
23051
23052
23053
23054 # Remove any trailing slashes in these variables.
23055 test "${prefix}" != NONE &&
23056 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23057 test "${exec_prefix}" != NONE &&
23058 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23059
23060 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23061 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23062 ## from Makefile.c can correctly provide the arg `-traditional' to the
23063 ## C preprocessor.
23064
23065 cat >conftest.$ac_ext <<_ACEOF
23066 /* confdefs.h. */
23067 _ACEOF
23068 cat confdefs.h >>conftest.$ac_ext
23069 cat >>conftest.$ac_ext <<_ACEOF
23070 /* end confdefs.h. */
23071 yes..yes
23072 _ACEOF
23073 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23074 $EGREP "yes..yes" >/dev/null 2>&1; then
23075 CPP_NEED_TRADITIONAL=no
23076 else
23077 CPP_NEED_TRADITIONAL=yes
23078 fi
23079 rm -f conftest*
23080
23081
23082 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"
23083
23084 ac_config_commands="$ac_config_commands default"
23085
23086 cat >confcache <<\_ACEOF
23087 # This file is a shell script that caches the results of configure
23088 # tests run on this system so they can be shared between configure
23089 # scripts and configure runs, see configure's option --config-cache.
23090 # It is not useful on other systems. If it contains results you don't
23091 # want to keep, you may remove or edit it.
23092 #
23093 # config.status only pays attention to the cache file if you give it
23094 # the --recheck option to rerun configure.
23095 #
23096 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23097 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23098 # following values.
23099
23100 _ACEOF
23101
23102 # The following way of writing the cache mishandles newlines in values,
23103 # but we know of no workaround that is simple, portable, and efficient.
23104 # So, we kill variables containing newlines.
23105 # Ultrix sh set writes to stderr and can't be redirected directly,
23106 # and sets the high bit in the cache file unless we assign to the vars.
23107 (
23108 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23109 eval ac_val=\$$ac_var
23110 case $ac_val in #(
23111 *${as_nl}*)
23112 case $ac_var in #(
23113 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23114 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23115 esac
23116 case $ac_var in #(
23117 _ | IFS | as_nl) ;; #(
23118 *) $as_unset $ac_var ;;
23119 esac ;;
23120 esac
23121 done
23122
23123 (set) 2>&1 |
23124 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23125 *${as_nl}ac_space=\ *)
23126 # `set' does not quote correctly, so add quotes (double-quote
23127 # substitution turns \\\\ into \\, and sed turns \\ into \).
23128 sed -n \
23129 "s/'/'\\\\''/g;
23130 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23131 ;; #(
23132 *)
23133 # `set' quotes correctly as required by POSIX, so do not add quotes.
23134 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23135 ;;
23136 esac |
23137 sort
23138 ) |
23139 sed '
23140 /^ac_cv_env_/b end
23141 t clear
23142 :clear
23143 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23144 t end
23145 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23146 :end' >>confcache
23147 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23148 if test -w "$cache_file"; then
23149 test "x$cache_file" != "x/dev/null" &&
23150 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23151 echo "$as_me: updating cache $cache_file" >&6;}
23152 cat confcache >$cache_file
23153 else
23154 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23155 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23156 fi
23157 fi
23158 rm -f confcache
23159
23160 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23161 # Let make expand exec_prefix.
23162 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23163
23164 DEFS=-DHAVE_CONFIG_H
23165
23166 ac_libobjs=
23167 ac_ltlibobjs=
23168 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23169 # 1. Remove the extension, and $U if already installed.
23170 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23171 ac_i=`echo "$ac_i" | sed "$ac_script"`
23172 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23173 # will be set to the directory where LIBOBJS objects are built.
23174 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23175 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23176 done
23177 LIBOBJS=$ac_libobjs
23178
23179 LTLIBOBJS=$ac_ltlibobjs
23180
23181
23182
23183 : ${CONFIG_STATUS=./config.status}
23184 ac_clean_files_save=$ac_clean_files
23185 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23186 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23187 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23188 cat >$CONFIG_STATUS <<_ACEOF
23189 #! $SHELL
23190 # Generated by $as_me.
23191 # Run this file to recreate the current configuration.
23192 # Compiler output produced by configure, useful for debugging
23193 # configure, is in config.log if it exists.
23194
23195 debug=false
23196 ac_cs_recheck=false
23197 ac_cs_silent=false
23198 SHELL=\${CONFIG_SHELL-$SHELL}
23199 _ACEOF
23200
23201 cat >>$CONFIG_STATUS <<\_ACEOF
23202 ## --------------------- ##
23203 ## M4sh Initialization. ##
23204 ## --------------------- ##
23205
23206 # Be more Bourne compatible
23207 DUALCASE=1; export DUALCASE # for MKS sh
23208 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23209 emulate sh
23210 NULLCMD=:
23211 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23212 # is contrary to our usage. Disable this feature.
23213 alias -g '${1+"$@"}'='"$@"'
23214 setopt NO_GLOB_SUBST
23215 else
23216 case `(set -o) 2>/dev/null` in
23217 *posix*) set -o posix ;;
23218 esac
23219
23220 fi
23221
23222
23223
23224
23225 # PATH needs CR
23226 # Avoid depending upon Character Ranges.
23227 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23228 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23229 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23230 as_cr_digits='0123456789'
23231 as_cr_alnum=$as_cr_Letters$as_cr_digits
23232
23233 # The user is always right.
23234 if test "${PATH_SEPARATOR+set}" != set; then
23235 echo "#! /bin/sh" >conf$$.sh
23236 echo "exit 0" >>conf$$.sh
23237 chmod +x conf$$.sh
23238 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23239 PATH_SEPARATOR=';'
23240 else
23241 PATH_SEPARATOR=:
23242 fi
23243 rm -f conf$$.sh
23244 fi
23245
23246 # Support unset when possible.
23247 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23248 as_unset=unset
23249 else
23250 as_unset=false
23251 fi
23252
23253
23254 # IFS
23255 # We need space, tab and new line, in precisely that order. Quoting is
23256 # there to prevent editors from complaining about space-tab.
23257 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23258 # splitting by setting IFS to empty value.)
23259 as_nl='
23260 '
23261 IFS=" "" $as_nl"
23262
23263 # Find who we are. Look in the path if we contain no directory separator.
23264 case $0 in
23265 *[\\/]* ) as_myself=$0 ;;
23266 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23267 for as_dir in $PATH
23268 do
23269 IFS=$as_save_IFS
23270 test -z "$as_dir" && as_dir=.
23271 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23272 done
23273 IFS=$as_save_IFS
23274
23275 ;;
23276 esac
23277 # We did not find ourselves, most probably we were run as `sh COMMAND'
23278 # in which case we are not to be found in the path.
23279 if test "x$as_myself" = x; then
23280 as_myself=$0
23281 fi
23282 if test ! -f "$as_myself"; then
23283 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23284 { (exit 1); exit 1; }
23285 fi
23286
23287 # Work around bugs in pre-3.0 UWIN ksh.
23288 for as_var in ENV MAIL MAILPATH
23289 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23290 done
23291 PS1='$ '
23292 PS2='> '
23293 PS4='+ '
23294
23295 # NLS nuisances.
23296 for as_var in \
23297 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23298 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23299 LC_TELEPHONE LC_TIME
23300 do
23301 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23302 eval $as_var=C; export $as_var
23303 else
23304 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23305 fi
23306 done
23307
23308 # Required to use basename.
23309 if expr a : '\(a\)' >/dev/null 2>&1 &&
23310 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23311 as_expr=expr
23312 else
23313 as_expr=false
23314 fi
23315
23316 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23317 as_basename=basename
23318 else
23319 as_basename=false
23320 fi
23321
23322
23323 # Name of the executable.
23324 as_me=`$as_basename -- "$0" ||
23325 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23326 X"$0" : 'X\(//\)$' \| \
23327 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23328 echo X/"$0" |
23329 sed '/^.*\/\([^/][^/]*\)\/*$/{
23330 s//\1/
23331 q
23332 }
23333 /^X\/\(\/\/\)$/{
23334 s//\1/
23335 q
23336 }
23337 /^X\/\(\/\).*/{
23338 s//\1/
23339 q
23340 }
23341 s/.*/./; q'`
23342
23343 # CDPATH.
23344 $as_unset CDPATH
23345
23346
23347
23348 as_lineno_1=$LINENO
23349 as_lineno_2=$LINENO
23350 test "x$as_lineno_1" != "x$as_lineno_2" &&
23351 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23352
23353 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23354 # uniformly replaced by the line number. The first 'sed' inserts a
23355 # line-number line after each line using $LINENO; the second 'sed'
23356 # does the real work. The second script uses 'N' to pair each
23357 # line-number line with the line containing $LINENO, and appends
23358 # trailing '-' during substitution so that $LINENO is not a special
23359 # case at line end.
23360 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23361 # scripts with optimization help from Paolo Bonzini. Blame Lee
23362 # E. McMahon (1931-1989) for sed's syntax. :-)
23363 sed -n '
23364 p
23365 /[$]LINENO/=
23366 ' <$as_myself |
23367 sed '
23368 s/[$]LINENO.*/&-/
23369 t lineno
23370 b
23371 :lineno
23372 N
23373 :loop
23374 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23375 t loop
23376 s/-\n.*//
23377 ' >$as_me.lineno &&
23378 chmod +x "$as_me.lineno" ||
23379 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23380 { (exit 1); exit 1; }; }
23381
23382 # Don't try to exec as it changes $[0], causing all sort of problems
23383 # (the dirname of $[0] is not the place where we might find the
23384 # original and so on. Autoconf is especially sensitive to this).
23385 . "./$as_me.lineno"
23386 # Exit status is that of the last command.
23387 exit
23388 }
23389
23390
23391 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23392 as_dirname=dirname
23393 else
23394 as_dirname=false
23395 fi
23396
23397 ECHO_C= ECHO_N= ECHO_T=
23398 case `echo -n x` in
23399 -n*)
23400 case `echo 'x\c'` in
23401 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23402 *) ECHO_C='\c';;
23403 esac;;
23404 *)
23405 ECHO_N='-n';;
23406 esac
23407
23408 if expr a : '\(a\)' >/dev/null 2>&1 &&
23409 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23410 as_expr=expr
23411 else
23412 as_expr=false
23413 fi
23414
23415 rm -f conf$$ conf$$.exe conf$$.file
23416 if test -d conf$$.dir; then
23417 rm -f conf$$.dir/conf$$.file
23418 else
23419 rm -f conf$$.dir
23420 mkdir conf$$.dir
23421 fi
23422 echo >conf$$.file
23423 if ln -s conf$$.file conf$$ 2>/dev/null; then
23424 as_ln_s='ln -s'
23425 # ... but there are two gotchas:
23426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23428 # In both cases, we have to default to `cp -p'.
23429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23430 as_ln_s='cp -p'
23431 elif ln conf$$.file conf$$ 2>/dev/null; then
23432 as_ln_s=ln
23433 else
23434 as_ln_s='cp -p'
23435 fi
23436 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23437 rmdir conf$$.dir 2>/dev/null
23438
23439 if mkdir -p . 2>/dev/null; then
23440 as_mkdir_p=:
23441 else
23442 test -d ./-p && rmdir ./-p
23443 as_mkdir_p=false
23444 fi
23445
23446 if test -x / >/dev/null 2>&1; then
23447 as_test_x='test -x'
23448 else
23449 if ls -dL / >/dev/null 2>&1; then
23450 as_ls_L_option=L
23451 else
23452 as_ls_L_option=
23453 fi
23454 as_test_x='
23455 eval sh -c '\''
23456 if test -d "$1"; then
23457 test -d "$1/.";
23458 else
23459 case $1 in
23460 -*)set "./$1";;
23461 esac;
23462 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23463 ???[sx]*):;;*)false;;esac;fi
23464 '\'' sh
23465 '
23466 fi
23467 as_executable_p=$as_test_x
23468
23469 # Sed expression to map a string onto a valid CPP name.
23470 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23471
23472 # Sed expression to map a string onto a valid variable name.
23473 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23474
23475
23476 exec 6>&1
23477
23478 # Save the log message, to keep $[0] and so on meaningful, and to
23479 # report actual input values of CONFIG_FILES etc. instead of their
23480 # values after options handling.
23481 ac_log="
23482 This file was extended by $as_me, which was
23483 generated by GNU Autoconf 2.61. Invocation command line was
23484
23485 CONFIG_FILES = $CONFIG_FILES
23486 CONFIG_HEADERS = $CONFIG_HEADERS
23487 CONFIG_LINKS = $CONFIG_LINKS
23488 CONFIG_COMMANDS = $CONFIG_COMMANDS
23489 $ $0 $@
23490
23491 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23492 "
23493
23494 _ACEOF
23495
23496 cat >>$CONFIG_STATUS <<_ACEOF
23497 # Files that config.status was made for.
23498 config_files="$ac_config_files"
23499 config_headers="$ac_config_headers"
23500 config_commands="$ac_config_commands"
23501
23502 _ACEOF
23503
23504 cat >>$CONFIG_STATUS <<\_ACEOF
23505 ac_cs_usage="\
23506 \`$as_me' instantiates files from templates according to the
23507 current configuration.
23508
23509 Usage: $0 [OPTIONS] [FILE]...
23510
23511 -h, --help print this help, then exit
23512 -V, --version print version number and configuration settings, then exit
23513 -q, --quiet do not print progress messages
23514 -d, --debug don't remove temporary files
23515 --recheck update $as_me by reconfiguring in the same conditions
23516 --file=FILE[:TEMPLATE]
23517 instantiate the configuration file FILE
23518 --header=FILE[:TEMPLATE]
23519 instantiate the configuration header FILE
23520
23521 Configuration files:
23522 $config_files
23523
23524 Configuration headers:
23525 $config_headers
23526
23527 Configuration commands:
23528 $config_commands
23529
23530 Report bugs to <bug-autoconf@gnu.org>."
23531
23532 _ACEOF
23533 cat >>$CONFIG_STATUS <<_ACEOF
23534 ac_cs_version="\\
23535 config.status
23536 configured by $0, generated by GNU Autoconf 2.61,
23537 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23538
23539 Copyright (C) 2006 Free Software Foundation, Inc.
23540 This config.status script is free software; the Free Software Foundation
23541 gives unlimited permission to copy, distribute and modify it."
23542
23543 ac_pwd='$ac_pwd'
23544 srcdir='$srcdir'
23545 INSTALL='$INSTALL'
23546 _ACEOF
23547
23548 cat >>$CONFIG_STATUS <<\_ACEOF
23549 # If no file are specified by the user, then we need to provide default
23550 # value. By we need to know if files were specified by the user.
23551 ac_need_defaults=:
23552 while test $# != 0
23553 do
23554 case $1 in
23555 --*=*)
23556 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23557 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23558 ac_shift=:
23559 ;;
23560 *)
23561 ac_option=$1
23562 ac_optarg=$2
23563 ac_shift=shift
23564 ;;
23565 esac
23566
23567 case $ac_option in
23568 # Handling of the options.
23569 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23570 ac_cs_recheck=: ;;
23571 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23572 echo "$ac_cs_version"; exit ;;
23573 --debug | --debu | --deb | --de | --d | -d )
23574 debug=: ;;
23575 --file | --fil | --fi | --f )
23576 $ac_shift
23577 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23578 ac_need_defaults=false;;
23579 --header | --heade | --head | --hea )
23580 $ac_shift
23581 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23582 ac_need_defaults=false;;
23583 --he | --h)
23584 # Conflict between --help and --header
23585 { echo "$as_me: error: ambiguous option: $1
23586 Try \`$0 --help' for more information." >&2
23587 { (exit 1); exit 1; }; };;
23588 --help | --hel | -h )
23589 echo "$ac_cs_usage"; exit ;;
23590 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23591 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23592 ac_cs_silent=: ;;
23593
23594 # This is an error.
23595 -*) { echo "$as_me: error: unrecognized option: $1
23596 Try \`$0 --help' for more information." >&2
23597 { (exit 1); exit 1; }; } ;;
23598
23599 *) ac_config_targets="$ac_config_targets $1"
23600 ac_need_defaults=false ;;
23601
23602 esac
23603 shift
23604 done
23605
23606 ac_configure_extra_args=
23607
23608 if $ac_cs_silent; then
23609 exec 6>/dev/null
23610 ac_configure_extra_args="$ac_configure_extra_args --silent"
23611 fi
23612
23613 _ACEOF
23614 cat >>$CONFIG_STATUS <<_ACEOF
23615 if \$ac_cs_recheck; then
23616 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23617 CONFIG_SHELL=$SHELL
23618 export CONFIG_SHELL
23619 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23620 fi
23621
23622 _ACEOF
23623 cat >>$CONFIG_STATUS <<\_ACEOF
23624 exec 5>>config.log
23625 {
23626 echo
23627 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23628 ## Running $as_me. ##
23629 _ASBOX
23630 echo "$ac_log"
23631 } >&5
23632
23633 _ACEOF
23634 cat >>$CONFIG_STATUS <<_ACEOF
23635 #
23636 # INIT-COMMANDS
23637 #
23638 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23639
23640 _ACEOF
23641
23642 cat >>$CONFIG_STATUS <<\_ACEOF
23643
23644 # Handling of arguments.
23645 for ac_config_target in $ac_config_targets
23646 do
23647 case $ac_config_target in
23648 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
23649 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
23650 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
23651 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
23652 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
23653 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
23654 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
23655 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
23656 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
23657 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
23658 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
23659 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
23660
23661 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
23662 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
23663 { (exit 1); exit 1; }; };;
23664 esac
23665 done
23666
23667
23668 # If the user did not use the arguments to specify the items to instantiate,
23669 # then the envvar interface is used. Set only those that are not.
23670 # We use the long form for the default assignment because of an extremely
23671 # bizarre bug on SunOS 4.1.3.
23672 if $ac_need_defaults; then
23673 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
23674 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
23675 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
23676 fi
23677
23678 # Have a temporary directory for convenience. Make it in the build tree
23679 # simply because there is no reason against having it here, and in addition,
23680 # creating and moving files from /tmp can sometimes cause problems.
23681 # Hook for its removal unless debugging.
23682 # Note that there is a small window in which the directory will not be cleaned:
23683 # after its creation but before its name has been assigned to `$tmp'.
23684 $debug ||
23685 {
23686 tmp=
23687 trap 'exit_status=$?
23688 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
23689 ' 0
23690 trap '{ (exit 1); exit 1; }' 1 2 13 15
23691 }
23692 # Create a (secure) tmp directory for tmp files.
23693
23694 {
23695 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
23696 test -n "$tmp" && test -d "$tmp"
23697 } ||
23698 {
23699 tmp=./conf$$-$RANDOM
23700 (umask 077 && mkdir "$tmp")
23701 } ||
23702 {
23703 echo "$me: cannot create a temporary directory in ." >&2
23704 { (exit 1); exit 1; }
23705 }
23706
23707 #
23708 # Set up the sed scripts for CONFIG_FILES section.
23709 #
23710
23711 # No need to generate the scripts if there are no CONFIG_FILES.
23712 # This happens for instance when ./config.status config.h
23713 if test -n "$CONFIG_FILES"; then
23714
23715 _ACEOF
23716
23717
23718
23719 ac_delim='%!_!# '
23720 for ac_last_try in false false false false false :; do
23721 cat >conf$$subs.sed <<_ACEOF
23722 SHELL!$SHELL$ac_delim
23723 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
23724 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
23725 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
23726 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
23727 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
23728 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
23729 exec_prefix!$exec_prefix$ac_delim
23730 prefix!$prefix$ac_delim
23731 program_transform_name!$program_transform_name$ac_delim
23732 bindir!$bindir$ac_delim
23733 sbindir!$sbindir$ac_delim
23734 libexecdir!$libexecdir$ac_delim
23735 datarootdir!$datarootdir$ac_delim
23736 datadir!$datadir$ac_delim
23737 sysconfdir!$sysconfdir$ac_delim
23738 sharedstatedir!$sharedstatedir$ac_delim
23739 localstatedir!$localstatedir$ac_delim
23740 includedir!$includedir$ac_delim
23741 oldincludedir!$oldincludedir$ac_delim
23742 docdir!$docdir$ac_delim
23743 infodir!$infodir$ac_delim
23744 htmldir!$htmldir$ac_delim
23745 dvidir!$dvidir$ac_delim
23746 pdfdir!$pdfdir$ac_delim
23747 psdir!$psdir$ac_delim
23748 libdir!$libdir$ac_delim
23749 localedir!$localedir$ac_delim
23750 mandir!$mandir$ac_delim
23751 DEFS!$DEFS$ac_delim
23752 ECHO_C!$ECHO_C$ac_delim
23753 ECHO_N!$ECHO_N$ac_delim
23754 ECHO_T!$ECHO_T$ac_delim
23755 LIBS!$LIBS$ac_delim
23756 build_alias!$build_alias$ac_delim
23757 host_alias!$host_alias$ac_delim
23758 target_alias!$target_alias$ac_delim
23759 MAINT!$MAINT$ac_delim
23760 build!$build$ac_delim
23761 build_cpu!$build_cpu$ac_delim
23762 build_vendor!$build_vendor$ac_delim
23763 build_os!$build_os$ac_delim
23764 host!$host$ac_delim
23765 host_cpu!$host_cpu$ac_delim
23766 host_vendor!$host_vendor$ac_delim
23767 host_os!$host_os$ac_delim
23768 CC!$CC$ac_delim
23769 CFLAGS!$CFLAGS$ac_delim
23770 LDFLAGS!$LDFLAGS$ac_delim
23771 CPPFLAGS!$CPPFLAGS$ac_delim
23772 ac_ct_CC!$ac_ct_CC$ac_delim
23773 EXEEXT!$EXEEXT$ac_delim
23774 OBJEXT!$OBJEXT$ac_delim
23775 CPP!$CPP$ac_delim
23776 GREP!$GREP$ac_delim
23777 EGREP!$EGREP$ac_delim
23778 LN_S!$LN_S$ac_delim
23779 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
23780 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
23781 INSTALL_DATA!$INSTALL_DATA$ac_delim
23782 RANLIB!$RANLIB$ac_delim
23783 INSTALL_INFO!$INSTALL_INFO$ac_delim
23784 GZIP_PROG!$GZIP_PROG$ac_delim
23785 LIBSOUND!$LIBSOUND$ac_delim
23786 PKG_CONFIG!$PKG_CONFIG$ac_delim
23787 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
23788 ALSA_LIBS!$ALSA_LIBS$ac_delim
23789 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
23790 SET_MAKE!$SET_MAKE$ac_delim
23791 XMKMF!$XMKMF$ac_delim
23792 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
23793 GTK_LIBS!$GTK_LIBS$ac_delim
23794 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
23795 XFT_LIBS!$XFT_LIBS$ac_delim
23796 ALLOCA!$ALLOCA$ac_delim
23797 liblockfile!$liblockfile$ac_delim
23798 LIBOBJS!$LIBOBJS$ac_delim
23799 NEED_SETGID!$NEED_SETGID$ac_delim
23800 KMEM_GROUP!$KMEM_GROUP$ac_delim
23801 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
23802 GETOPT_H!$GETOPT_H$ac_delim
23803 GETOPTOBJS!$GETOPTOBJS$ac_delim
23804 version!$version$ac_delim
23805 configuration!$configuration$ac_delim
23806 canonical!$canonical$ac_delim
23807 srcdir!$srcdir$ac_delim
23808 lispdir!$lispdir$ac_delim
23809 locallisppath!$locallisppath$ac_delim
23810 lisppath!$lisppath$ac_delim
23811 x_default_search_path!$x_default_search_path$ac_delim
23812 etcdir!$etcdir$ac_delim
23813 archlibdir!$archlibdir$ac_delim
23814 bitmapdir!$bitmapdir$ac_delim
23815 gamedir!$gamedir$ac_delim
23816 gameuser!$gameuser$ac_delim
23817 c_switch_system!$c_switch_system$ac_delim
23818 c_switch_machine!$c_switch_machine$ac_delim
23819 _ACEOF
23820
23821 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
23822 break
23823 elif $ac_last_try; then
23824 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23825 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23826 { (exit 1); exit 1; }; }
23827 else
23828 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23829 fi
23830 done
23831
23832 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23833 if test -n "$ac_eof"; then
23834 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23835 ac_eof=`expr $ac_eof + 1`
23836 fi
23837
23838 cat >>$CONFIG_STATUS <<_ACEOF
23839 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
23840 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
23841 _ACEOF
23842 sed '
23843 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23844 s/^/s,@/; s/!/@,|#_!!_#|/
23845 :n
23846 t n
23847 s/'"$ac_delim"'$/,g/; t
23848 s/$/\\/; p
23849 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23850 ' >>$CONFIG_STATUS <conf$$subs.sed
23851 rm -f conf$$subs.sed
23852 cat >>$CONFIG_STATUS <<_ACEOF
23853 CEOF$ac_eof
23854 _ACEOF
23855
23856
23857 ac_delim='%!_!# '
23858 for ac_last_try in false false false false false :; do
23859 cat >conf$$subs.sed <<_ACEOF
23860 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
23861 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
23862 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
23863 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
23864 machfile!$machfile$ac_delim
23865 opsysfile!$opsysfile$ac_delim
23866 carbon_appdir!$carbon_appdir$ac_delim
23867 LTLIBOBJS!$LTLIBOBJS$ac_delim
23868 _ACEOF
23869
23870 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 8; then
23871 break
23872 elif $ac_last_try; then
23873 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
23874 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
23875 { (exit 1); exit 1; }; }
23876 else
23877 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
23878 fi
23879 done
23880
23881 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
23882 if test -n "$ac_eof"; then
23883 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
23884 ac_eof=`expr $ac_eof + 1`
23885 fi
23886
23887 cat >>$CONFIG_STATUS <<_ACEOF
23888 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
23889 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
23890 _ACEOF
23891 sed '
23892 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
23893 s/^/s,@/; s/!/@,|#_!!_#|/
23894 :n
23895 t n
23896 s/'"$ac_delim"'$/,g/; t
23897 s/$/\\/; p
23898 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
23899 ' >>$CONFIG_STATUS <conf$$subs.sed
23900 rm -f conf$$subs.sed
23901 cat >>$CONFIG_STATUS <<_ACEOF
23902 :end
23903 s/|#_!!_#|//g
23904 CEOF$ac_eof
23905 _ACEOF
23906
23907
23908 # VPATH may cause trouble with some makes, so we remove $(srcdir),
23909 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
23910 # trailing colons and then remove the whole line if VPATH becomes empty
23911 # (actually we leave an empty line to preserve line numbers).
23912 if test "x$srcdir" = x.; then
23913 ac_vpsub='/^[ ]*VPATH[ ]*=/{
23914 s/:*\$(srcdir):*/:/
23915 s/:*\${srcdir}:*/:/
23916 s/:*@srcdir@:*/:/
23917 s/^\([^=]*=[ ]*\):*/\1/
23918 s/:*$//
23919 s/^[^=]*=[ ]*$//
23920 }'
23921 fi
23922
23923 cat >>$CONFIG_STATUS <<\_ACEOF
23924 fi # test -n "$CONFIG_FILES"
23925
23926
23927 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
23928 do
23929 case $ac_tag in
23930 :[FHLC]) ac_mode=$ac_tag; continue;;
23931 esac
23932 case $ac_mode$ac_tag in
23933 :[FHL]*:*);;
23934 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
23935 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
23936 { (exit 1); exit 1; }; };;
23937 :[FH]-) ac_tag=-:-;;
23938 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
23939 esac
23940 ac_save_IFS=$IFS
23941 IFS=:
23942 set x $ac_tag
23943 IFS=$ac_save_IFS
23944 shift
23945 ac_file=$1
23946 shift
23947
23948 case $ac_mode in
23949 :L) ac_source=$1;;
23950 :[FH])
23951 ac_file_inputs=
23952 for ac_f
23953 do
23954 case $ac_f in
23955 -) ac_f="$tmp/stdin";;
23956 *) # Look for the file first in the build tree, then in the source tree
23957 # (if the path is not absolute). The absolute path cannot be DOS-style,
23958 # because $ac_f cannot contain `:'.
23959 test -f "$ac_f" ||
23960 case $ac_f in
23961 [\\/$]*) false;;
23962 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
23963 esac ||
23964 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
23965 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
23966 { (exit 1); exit 1; }; };;
23967 esac
23968 ac_file_inputs="$ac_file_inputs $ac_f"
23969 done
23970
23971 # Let's still pretend it is `configure' which instantiates (i.e., don't
23972 # use $as_me), people would be surprised to read:
23973 # /* config.h. Generated by config.status. */
23974 configure_input="Generated from "`IFS=:
23975 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
23976 if test x"$ac_file" != x-; then
23977 configure_input="$ac_file. $configure_input"
23978 { echo "$as_me:$LINENO: creating $ac_file" >&5
23979 echo "$as_me: creating $ac_file" >&6;}
23980 fi
23981
23982 case $ac_tag in
23983 *:-:* | *:-) cat >"$tmp/stdin";;
23984 esac
23985 ;;
23986 esac
23987
23988 ac_dir=`$as_dirname -- "$ac_file" ||
23989 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
23990 X"$ac_file" : 'X\(//\)[^/]' \| \
23991 X"$ac_file" : 'X\(//\)$' \| \
23992 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
23993 echo X"$ac_file" |
23994 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
23995 s//\1/
23996 q
23997 }
23998 /^X\(\/\/\)[^/].*/{
23999 s//\1/
24000 q
24001 }
24002 /^X\(\/\/\)$/{
24003 s//\1/
24004 q
24005 }
24006 /^X\(\/\).*/{
24007 s//\1/
24008 q
24009 }
24010 s/.*/./; q'`
24011 { as_dir="$ac_dir"
24012 case $as_dir in #(
24013 -*) as_dir=./$as_dir;;
24014 esac
24015 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24016 as_dirs=
24017 while :; do
24018 case $as_dir in #(
24019 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24020 *) as_qdir=$as_dir;;
24021 esac
24022 as_dirs="'$as_qdir' $as_dirs"
24023 as_dir=`$as_dirname -- "$as_dir" ||
24024 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24025 X"$as_dir" : 'X\(//\)[^/]' \| \
24026 X"$as_dir" : 'X\(//\)$' \| \
24027 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24028 echo X"$as_dir" |
24029 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24030 s//\1/
24031 q
24032 }
24033 /^X\(\/\/\)[^/].*/{
24034 s//\1/
24035 q
24036 }
24037 /^X\(\/\/\)$/{
24038 s//\1/
24039 q
24040 }
24041 /^X\(\/\).*/{
24042 s//\1/
24043 q
24044 }
24045 s/.*/./; q'`
24046 test -d "$as_dir" && break
24047 done
24048 test -z "$as_dirs" || eval "mkdir $as_dirs"
24049 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24050 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24051 { (exit 1); exit 1; }; }; }
24052 ac_builddir=.
24053
24054 case "$ac_dir" in
24055 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24056 *)
24057 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24058 # A ".." for each directory in $ac_dir_suffix.
24059 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24060 case $ac_top_builddir_sub in
24061 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24062 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24063 esac ;;
24064 esac
24065 ac_abs_top_builddir=$ac_pwd
24066 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24067 # for backward compatibility:
24068 ac_top_builddir=$ac_top_build_prefix
24069
24070 case $srcdir in
24071 .) # We are building in place.
24072 ac_srcdir=.
24073 ac_top_srcdir=$ac_top_builddir_sub
24074 ac_abs_top_srcdir=$ac_pwd ;;
24075 [\\/]* | ?:[\\/]* ) # Absolute name.
24076 ac_srcdir=$srcdir$ac_dir_suffix;
24077 ac_top_srcdir=$srcdir
24078 ac_abs_top_srcdir=$srcdir ;;
24079 *) # Relative name.
24080 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24081 ac_top_srcdir=$ac_top_build_prefix$srcdir
24082 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24083 esac
24084 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24085
24086
24087 case $ac_mode in
24088 :F)
24089 #
24090 # CONFIG_FILE
24091 #
24092
24093 case $INSTALL in
24094 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24095 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24096 esac
24097 _ACEOF
24098
24099 cat >>$CONFIG_STATUS <<\_ACEOF
24100 # If the template does not know about datarootdir, expand it.
24101 # FIXME: This hack should be removed a few years after 2.60.
24102 ac_datarootdir_hack=; ac_datarootdir_seen=
24103
24104 case `sed -n '/datarootdir/ {
24105 p
24106 q
24107 }
24108 /@datadir@/p
24109 /@docdir@/p
24110 /@infodir@/p
24111 /@localedir@/p
24112 /@mandir@/p
24113 ' $ac_file_inputs` in
24114 *datarootdir*) ac_datarootdir_seen=yes;;
24115 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24116 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24117 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24118 _ACEOF
24119 cat >>$CONFIG_STATUS <<_ACEOF
24120 ac_datarootdir_hack='
24121 s&@datadir@&$datadir&g
24122 s&@docdir@&$docdir&g
24123 s&@infodir@&$infodir&g
24124 s&@localedir@&$localedir&g
24125 s&@mandir@&$mandir&g
24126 s&\\\${datarootdir}&$datarootdir&g' ;;
24127 esac
24128 _ACEOF
24129
24130 # Neutralize VPATH when `$srcdir' = `.'.
24131 # Shell code in configure.ac might set extrasub.
24132 # FIXME: do we really want to maintain this feature?
24133 cat >>$CONFIG_STATUS <<_ACEOF
24134 sed "$ac_vpsub
24135 $extrasub
24136 _ACEOF
24137 cat >>$CONFIG_STATUS <<\_ACEOF
24138 :t
24139 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24140 s&@configure_input@&$configure_input&;t t
24141 s&@top_builddir@&$ac_top_builddir_sub&;t t
24142 s&@srcdir@&$ac_srcdir&;t t
24143 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24144 s&@top_srcdir@&$ac_top_srcdir&;t t
24145 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24146 s&@builddir@&$ac_builddir&;t t
24147 s&@abs_builddir@&$ac_abs_builddir&;t t
24148 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24149 s&@INSTALL@&$ac_INSTALL&;t t
24150 $ac_datarootdir_hack
24151 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24152
24153 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24154 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24155 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24156 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24157 which seems to be undefined. Please make sure it is defined." >&5
24158 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24159 which seems to be undefined. Please make sure it is defined." >&2;}
24160
24161 rm -f "$tmp/stdin"
24162 case $ac_file in
24163 -) cat "$tmp/out"; rm -f "$tmp/out";;
24164 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24165 esac
24166 ;;
24167 :H)
24168 #
24169 # CONFIG_HEADER
24170 #
24171 _ACEOF
24172
24173 # Transform confdefs.h into a sed script `conftest.defines', that
24174 # substitutes the proper values into config.h.in to produce config.h.
24175 rm -f conftest.defines conftest.tail
24176 # First, append a space to every undef/define line, to ease matching.
24177 echo 's/$/ /' >conftest.defines
24178 # Then, protect against being on the right side of a sed subst, or in
24179 # an unquoted here document, in config.status. If some macros were
24180 # called several times there might be several #defines for the same
24181 # symbol, which is useless. But do not sort them, since the last
24182 # AC_DEFINE must be honored.
24183 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24184 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24185 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24186 # PARAMS is the parameter list in the macro definition--in most cases, it's
24187 # just an empty string.
24188 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24189 ac_dB='\\)[ (].*,\\1define\\2'
24190 ac_dC=' '
24191 ac_dD=' ,'
24192
24193 uniq confdefs.h |
24194 sed -n '
24195 t rset
24196 :rset
24197 s/^[ ]*#[ ]*define[ ][ ]*//
24198 t ok
24199 d
24200 :ok
24201 s/[\\&,]/\\&/g
24202 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24203 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24204 ' >>conftest.defines
24205
24206 # Remove the space that was appended to ease matching.
24207 # Then replace #undef with comments. This is necessary, for
24208 # example, in the case of _POSIX_SOURCE, which is predefined and required
24209 # on some systems where configure will not decide to define it.
24210 # (The regexp can be short, since the line contains either #define or #undef.)
24211 echo 's/ $//
24212 s,^[ #]*u.*,/* & */,' >>conftest.defines
24213
24214 # Break up conftest.defines:
24215 ac_max_sed_lines=50
24216
24217 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24218 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24219 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24220 # et cetera.
24221 ac_in='$ac_file_inputs'
24222 ac_out='"$tmp/out1"'
24223 ac_nxt='"$tmp/out2"'
24224
24225 while :
24226 do
24227 # Write a here document:
24228 cat >>$CONFIG_STATUS <<_ACEOF
24229 # First, check the format of the line:
24230 cat >"\$tmp/defines.sed" <<\\CEOF
24231 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24232 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24233 b
24234 :def
24235 _ACEOF
24236 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24237 echo 'CEOF
24238 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24239 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24240 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24241 grep . conftest.tail >/dev/null || break
24242 rm -f conftest.defines
24243 mv conftest.tail conftest.defines
24244 done
24245 rm -f conftest.defines conftest.tail
24246
24247 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24248 cat >>$CONFIG_STATUS <<\_ACEOF
24249 if test x"$ac_file" != x-; then
24250 echo "/* $configure_input */" >"$tmp/config.h"
24251 cat "$ac_result" >>"$tmp/config.h"
24252 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24253 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24254 echo "$as_me: $ac_file is unchanged" >&6;}
24255 else
24256 rm -f $ac_file
24257 mv "$tmp/config.h" $ac_file
24258 fi
24259 else
24260 echo "/* $configure_input */"
24261 cat "$ac_result"
24262 fi
24263 rm -f "$tmp/out12"
24264 ;;
24265
24266 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24267 echo "$as_me: executing $ac_file commands" >&6;}
24268 ;;
24269 esac
24270
24271
24272 case $ac_file$ac_mode in
24273 "default":C)
24274
24275 ### Make the necessary directories, if they don't exist.
24276 for dir in etc lisp ; do
24277 test -d ${dir} || mkdir ${dir}
24278 done
24279
24280 # Build src/Makefile from ${srcdir}/src/Makefile.c
24281 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24282 # This must be done after src/config.h is built, since we rely on that file.
24283
24284 # Now get this: Some word that is part of the ${srcdir} directory name
24285 # or the ${configuration} value might, just might, happen to be an
24286 # identifier like `sun4' or `i386' or something, and be predefined by
24287 # the C preprocessor to some helpful value like 1, or maybe the empty
24288 # string. Needless to say consequent macro substitutions are less
24289 # than conducive to the makefile finding the correct directory.
24290 undefs="`echo $top_srcdir $configuration $canonical |
24291 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24292 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24293 `"
24294
24295 echo creating src/epaths.h
24296 ${MAKE-make} epaths-force
24297
24298 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24299 # `..' to `. .' unless invoked with -traditional
24300
24301 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24302 CPPFLAGS="$CPPFLAGS -traditional"
24303 fi
24304
24305 echo creating lib-src/Makefile
24306 ( cd lib-src
24307 rm -f junk.c junk1.c junk2.c
24308 sed -e '/start of cpp stuff/q' \
24309 < Makefile.c > junk1.c
24310 sed -e '1,/start of cpp stuff/d'\
24311 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24312 < Makefile.c > junk.c
24313 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24314 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24315 cat junk1.c junk2.c > Makefile.new
24316 rm -f junk.c junk1.c junk2.c
24317 chmod 444 Makefile.new
24318 mv -f Makefile.new Makefile
24319 )
24320
24321 echo creating src/Makefile
24322 ( cd src
24323 rm -f junk.c junk1.c junk2.c
24324 sed -e '/start of cpp stuff/q' \
24325 < Makefile.c > junk1.c
24326 sed -e '1,/start of cpp stuff/d'\
24327 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24328 < Makefile.c > junk.c
24329 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24330 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24331 cat junk1.c junk2.c > Makefile.new
24332 rm -f junk.c junk1.c junk2.c
24333 chmod 444 Makefile.new
24334 mv -f Makefile.new Makefile
24335 )
24336
24337 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24338 echo creating src/.gdbinit
24339 echo source $srcdir/src/.gdbinit > src/.gdbinit
24340 fi
24341
24342 # This is how we know whether to re-run configure in certain cases.
24343 touch src/config.stamp
24344
24345 ;;
24346
24347 esac
24348 done # for ac_tag
24349
24350
24351 { (exit 0); exit 0; }
24352 _ACEOF
24353 chmod +x $CONFIG_STATUS
24354 ac_clean_files=$ac_clean_files_save
24355
24356
24357 # configure is writing to config.log, and then calls config.status.
24358 # config.status does its own redirection, appending to config.log.
24359 # Unfortunately, on DOS this fails, as config.log is still kept open
24360 # by configure, so config.status won't be able to write to it; its
24361 # output is simply discarded. So we exec the FD to /dev/null,
24362 # effectively closing config.log, so it can be properly (re)opened and
24363 # appended to by config.status. When coming back to configure, we
24364 # need to make the FD available again.
24365 if test "$no_create" != yes; then
24366 ac_cs_success=:
24367 ac_config_status_args=
24368 test "$silent" = yes &&
24369 ac_config_status_args="$ac_config_status_args --quiet"
24370 exec 5>/dev/null
24371 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24372 exec 5>>config.log
24373 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24374 # would make configure fail if this is the last instruction.
24375 $ac_cs_success || { (exit 1); exit 1; }
24376 fi
24377
24378