]> code.delx.au - gnu-emacs/blob - configure
Merge from emacs--devo--0
[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 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; cat >>confdefs.h <<\_ACEOF
1853 #define KERBEROS 1
1854 _ACEOF
1855
1856 fi
1857
1858
1859
1860 # Check whether --with-kerberos5 was given.
1861 if test "${with_kerberos5+set}" = set; then
1862 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1863 if test "${with_kerberos+set}" != set; then
1864 with_kerberos=yes
1865 cat >>confdefs.h <<\_ACEOF
1866 #define KERBEROS 1
1867 _ACEOF
1868
1869 fi
1870 fi
1871
1872 cat >>confdefs.h <<\_ACEOF
1873 #define KERBEROS5 1
1874 _ACEOF
1875
1876 fi
1877
1878
1879 # Check whether --with-hesiod was given.
1880 if test "${with_hesiod+set}" = set; then
1881 withval=$with_hesiod;
1882 cat >>confdefs.h <<\_ACEOF
1883 #define HESIOD 1
1884 _ACEOF
1885
1886 fi
1887
1888
1889
1890 # Check whether --with-sound was given.
1891 if test "${with_sound+set}" = set; then
1892 withval=$with_sound;
1893 fi
1894
1895
1896
1897 # Check whether --with-x-toolkit was given.
1898 if test "${with_x_toolkit+set}" = set; then
1899 withval=$with_x_toolkit; case "${withval}" in
1900 y | ye | yes ) val=athena ;;
1901 n | no ) val=no ;;
1902 l | lu | luc | luci | lucid ) val=lucid ;;
1903 a | at | ath | athe | athen | athena ) val=athena ;;
1904 m | mo | mot | moti | motif ) val=motif ;;
1905 g | gt | gtk ) val=gtk ;;
1906 * )
1907 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1908 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1909 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1910 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1911 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1912 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1913 { (exit 1); exit 1; }; }
1914 ;;
1915 esac
1916 with_x_toolkit=$val
1917
1918 fi
1919
1920
1921 # Check whether --with-xpm was given.
1922 if test "${with_xpm+set}" = set; then
1923 withval=$with_xpm;
1924 fi
1925
1926
1927 # Check whether --with-jpeg was given.
1928 if test "${with_jpeg+set}" = set; then
1929 withval=$with_jpeg;
1930 fi
1931
1932
1933 # Check whether --with-tiff was given.
1934 if test "${with_tiff+set}" = set; then
1935 withval=$with_tiff;
1936 fi
1937
1938
1939 # Check whether --with-gif was given.
1940 if test "${with_gif+set}" = set; then
1941 withval=$with_gif;
1942 fi
1943
1944
1945 # Check whether --with-png was given.
1946 if test "${with_png+set}" = set; then
1947 withval=$with_png;
1948 fi
1949
1950
1951 # Check whether --with-freetype was given.
1952 if test "${with_freetype+set}" = set; then
1953 withval=$with_freetype;
1954 fi
1955
1956
1957 # Check whether --with-xft was given.
1958 if test "${with_xft+set}" = set; then
1959 withval=$with_xft;
1960 fi
1961
1962
1963 # Check whether --with-gtk was given.
1964 if test "${with_gtk+set}" = set; then
1965 withval=$with_gtk;
1966 fi
1967
1968
1969 # Check whether --with-pkg-config-prog was given.
1970 if test "${with_pkg_config_prog+set}" = set; then
1971 withval=$with_pkg_config_prog;
1972 fi
1973
1974
1975 # Check whether --with-toolkit-scroll-bars was given.
1976 if test "${with_toolkit_scroll_bars+set}" = set; then
1977 withval=$with_toolkit_scroll_bars;
1978 fi
1979
1980
1981 # Check whether --with-xim was given.
1982 if test "${with_xim+set}" = set; then
1983 withval=$with_xim;
1984 fi
1985
1986
1987 # Check whether --with-carbon was given.
1988 if test "${with_carbon+set}" = set; then
1989 withval=$with_carbon;
1990 fi
1991
1992 # Check whether --enable-carbon-app was given.
1993 if test "${enable_carbon_app+set}" = set; then
1994 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1995 fi
1996
1997
1998 # Check whether --enable-font-backend was given.
1999 if test "${enable_font_backend+set}" = set; then
2000 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2001 else
2002 USE_FONT_BACKEND=no
2003 fi
2004
2005
2006 # Check whether --enable-asserts was given.
2007 if test "${enable_asserts+set}" = set; then
2008 enableval=$enable_asserts; USE_XASSERTS=$enableval
2009 else
2010 USE_XASSERTS=no
2011 fi
2012
2013
2014 # Check whether --enable-maintainer-mode was given.
2015 if test "${enable_maintainer_mode+set}" = set; then
2016 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2017 else
2018 USE_MAINTAINER_MODE=no
2019 fi
2020
2021 if test $USE_MAINTAINER_MODE = yes; then
2022 MAINT=
2023 else
2024 MAINT=#
2025 fi
2026
2027
2028 # Check whether --enable-locallisppath was given.
2029 if test "${enable_locallisppath+set}" = set; then
2030 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2031 locallisppath=
2032 elif test "${enableval}" != "yes"; then
2033 locallisppath=${enableval}
2034 fi
2035 fi
2036
2037
2038 #### Make srcdir absolute, if it isn't already. It's important to
2039 #### avoid running the path through pwd unnecessarily, since pwd can
2040 #### give you automounter prefixes, which can go away. We do all this
2041 #### so Emacs can find its files when run uninstalled.
2042 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2043 unset CDPATH
2044 case "${srcdir}" in
2045 /* ) ;;
2046 . )
2047 ## We may be able to use the $PWD environment variable to make this
2048 ## absolute. But sometimes PWD is inaccurate.
2049 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2050 ## but that tested only for a well-formed and valid PWD,
2051 ## it did not object when PWD was well-formed and valid but just wrong.
2052 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2053 then
2054 srcdir="$PWD"
2055 else
2056 srcdir="`(cd ${srcdir}; pwd)`"
2057 fi
2058 ;;
2059 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2060 esac
2061
2062 #### Check if the source directory already has a configured system in it.
2063 if test `pwd` != `(cd ${srcdir} && pwd)` \
2064 && test -f "${srcdir}/src/config.h" ; then
2065 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2066 as a build directory right now; it has been configured in its own
2067 right. To configure in another directory as well, you MUST
2068 use GNU make. If you do not have GNU make, then you must
2069 now do \`make distclean' in ${srcdir},
2070 and then run $0 again." >&5
2071 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2072 as a build directory right now; it has been configured in its own
2073 right. To configure in another directory as well, you MUST
2074 use GNU make. If you do not have GNU make, then you must
2075 now do \`make distclean' in ${srcdir},
2076 and then run $0 again." >&2;}
2077 fi
2078
2079 #### Given the configuration name, set machfile and opsysfile to the
2080 #### names of the m/*.h and s/*.h files we should use.
2081
2082 ### Canonicalize the configuration name.
2083
2084 ac_aux_dir=
2085 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2086 if test -f "$ac_dir/install-sh"; then
2087 ac_aux_dir=$ac_dir
2088 ac_install_sh="$ac_aux_dir/install-sh -c"
2089 break
2090 elif test -f "$ac_dir/install.sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install.sh -c"
2093 break
2094 elif test -f "$ac_dir/shtool"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/shtool install -c"
2097 break
2098 fi
2099 done
2100 if test -z "$ac_aux_dir"; then
2101 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2102 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2103 { (exit 1); exit 1; }; }
2104 fi
2105
2106 # These three variables are undocumented and unsupported,
2107 # and are intended to be withdrawn in a future Autoconf release.
2108 # They can cause serious problems if a builder's source tree is in a directory
2109 # whose full name contains unusual characters.
2110 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2111 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2112 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2113
2114
2115 # Make sure we can run config.sub.
2116 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2117 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2118 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2119 { (exit 1); exit 1; }; }
2120
2121 { echo "$as_me:$LINENO: checking build system type" >&5
2122 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2123 if test "${ac_cv_build+set}" = set; then
2124 echo $ECHO_N "(cached) $ECHO_C" >&6
2125 else
2126 ac_build_alias=$build_alias
2127 test "x$ac_build_alias" = x &&
2128 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2129 test "x$ac_build_alias" = x &&
2130 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2131 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2132 { (exit 1); exit 1; }; }
2133 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2134 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2135 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2136 { (exit 1); exit 1; }; }
2137
2138 fi
2139 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2140 echo "${ECHO_T}$ac_cv_build" >&6; }
2141 case $ac_cv_build in
2142 *-*-*) ;;
2143 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2144 echo "$as_me: error: invalid value of canonical build" >&2;}
2145 { (exit 1); exit 1; }; };;
2146 esac
2147 build=$ac_cv_build
2148 ac_save_IFS=$IFS; IFS='-'
2149 set x $ac_cv_build
2150 shift
2151 build_cpu=$1
2152 build_vendor=$2
2153 shift; shift
2154 # Remember, the first character of IFS is used to create $*,
2155 # except with old shells:
2156 build_os=$*
2157 IFS=$ac_save_IFS
2158 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2159
2160
2161 { echo "$as_me:$LINENO: checking host system type" >&5
2162 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2163 if test "${ac_cv_host+set}" = set; then
2164 echo $ECHO_N "(cached) $ECHO_C" >&6
2165 else
2166 if test "x$host_alias" = x; then
2167 ac_cv_host=$ac_cv_build
2168 else
2169 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2170 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2171 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2172 { (exit 1); exit 1; }; }
2173 fi
2174
2175 fi
2176 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2177 echo "${ECHO_T}$ac_cv_host" >&6; }
2178 case $ac_cv_host in
2179 *-*-*) ;;
2180 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2181 echo "$as_me: error: invalid value of canonical host" >&2;}
2182 { (exit 1); exit 1; }; };;
2183 esac
2184 host=$ac_cv_host
2185 ac_save_IFS=$IFS; IFS='-'
2186 set x $ac_cv_host
2187 shift
2188 host_cpu=$1
2189 host_vendor=$2
2190 shift; shift
2191 # Remember, the first character of IFS is used to create $*,
2192 # except with old shells:
2193 host_os=$*
2194 IFS=$ac_save_IFS
2195 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2196
2197
2198 canonical=$host
2199 configuration=${host_alias-$host}
2200
2201
2202
2203 ### If you add support for a new configuration, add code to this
2204 ### switch statement to recognize your configuration name and select
2205 ### the appropriate operating system and machine description files.
2206
2207 ### You would hope that you could choose an m/*.h file pretty much
2208 ### based on the machine portion of the configuration name, and an s-
2209 ### file based on the operating system portion. However, it turns out
2210 ### that each m/*.h file is pretty manufacturer-specific - for
2211 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2212 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2213 ### machines. So we basically have to have a special case for each
2214 ### configuration name.
2215 ###
2216 ### As far as handling version numbers on operating systems is
2217 ### concerned, make sure things will fail in a fixable way. If
2218 ### /etc/MACHINES doesn't say anything about version numbers, be
2219 ### prepared to handle anything reasonably. If version numbers
2220 ### matter, be sure /etc/MACHINES says something about it.
2221 ###
2222 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2223 ### "System V Release 4"; he writes, "The old convention encouraged
2224 ### confusion between `system' and `release' levels'."
2225
2226 machine='' opsys='' unported=no
2227 case "${canonical}" in
2228
2229 ## FreeBSD ports
2230 *-*-freebsd* )
2231 opsys=freebsd
2232 case "${canonical}" in
2233 alpha*-*-freebsd*) machine=alpha ;;
2234 ia64-*-freebsd*) machine=ia64 ;;
2235 sparc64-*-freebsd*) machine=sparc ;;
2236 powerpc-*-freebsd*) machine=macppc ;;
2237 i[3456]86-*-freebsd*) machine=intel386 ;;
2238 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2239 esac
2240 ;;
2241
2242 ## NetBSD ports
2243 *-*-netbsd* )
2244 opsys=netbsd
2245 if test -f /usr/lib/crti.o; then
2246
2247 cat >>confdefs.h <<\_ACEOF
2248 #define HAVE_CRTIN
2249 _ACEOF
2250
2251 fi
2252
2253 case "${canonical}" in
2254 alpha*-*-netbsd*) machine=alpha ;;
2255 i[3456]86-*-netbsd*) machine=intel386 ;;
2256 m68k-*-netbsd*)
2257 # This is somewhat bogus.
2258 machine=hp9000s300 ;;
2259 mips-*-netbsd*) machine=pmax ;;
2260 mipsel-*-netbsd*) machine=pmax ;;
2261 mipseb-*-netbsd*) machine=pmax ;;
2262 ns32k-*-netbsd*) machine=ns32000 ;;
2263 powerpc-*-netbsd*) machine=macppc ;;
2264 sparc*-*-netbsd*) machine=sparc ;;
2265 vax-*-netbsd*) machine=vax ;;
2266 arm-*-netbsd*) machine=arm ;;
2267 x86_64-*-netbsd*) machine=amdx86-64 ;;
2268 hppa-*-netbsd*) machine=hp800 ;;
2269 shle-*-netbsd*) machine=sh3el ;;
2270 esac
2271 ;;
2272
2273 ## OpenBSD ports
2274 *-*-openbsd* )
2275 opsys=openbsd
2276 case "${canonical}" in
2277 alpha*-*-openbsd*) machine=alpha ;;
2278 i386-*-openbsd*) machine=intel386 ;;
2279 x86_64-*-openbsd*) machine=amdx86-64 ;;
2280 m68k-*-openbsd*) machine=hp9000s300 ;;
2281 mipsel-*-openbsd*) machine=pmax ;;
2282 ns32k-*-openbsd*) machine=ns32000 ;;
2283 sparc-*-openbsd*) machine=sparc ;;
2284 vax-*-openbsd*) machine=vax ;;
2285 esac
2286 ;;
2287
2288 ## LynxOS ports
2289 *-*-lynxos* )
2290 opsys=lynxos
2291 case "${canonical}" in
2292 i[3456]86-*-lynxos*) machine=intel386 ;;
2293 powerpc-*-lynxos*) machine=powerpc ;;
2294 esac
2295 ;;
2296
2297 ## Acorn RISCiX:
2298 arm-acorn-riscix1.1* )
2299 machine=acorn opsys=riscix1-1
2300 ;;
2301 arm-acorn-riscix1.2* | arm-acorn-riscix )
2302 ## This name is riscix12 instead of riscix1.2
2303 ## to avoid a file name conflict on MSDOS.
2304 machine=acorn opsys=riscix12
2305 ;;
2306
2307 ## BSDI ports
2308 *-*-bsdi* )
2309 opsys=bsdi
2310 case "${canonical}" in
2311 i[345]86-*-bsdi*) machine=intel386 ;;
2312 sparc-*-bsdi*) machine=sparc ;;
2313 powerpc-*-bsdi*) machine=macppc ;;
2314 esac
2315 case "${canonical}" in
2316 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2317 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2318 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2319 *-*-bsdi3* ) opsys=bsdos3 ;;
2320 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2321 esac
2322 ;;
2323
2324 ## Alliant machines
2325 ## Strictly speaking, we need the version of the alliant operating
2326 ## system to choose the right machine file, but currently the
2327 ## configuration name doesn't tell us enough to choose the right
2328 ## one; we need to give alliants their own operating system name to
2329 ## do this right. When someone cares, they can help us.
2330 fx80-alliant-* )
2331 machine=alliant4 opsys=bsd4-2
2332 ;;
2333 i860-alliant-* )
2334 machine=alliant-2800 opsys=bsd4-3
2335 ;;
2336
2337 ## Alpha (DEC) machines.
2338 alpha*-dec-osf* )
2339 machine=alpha opsys=osf1
2340 # This is needed to find X11R6.1 libraries for certain tests.
2341 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2342 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2343 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2344 # due to non-traditional preprocessing with the current compiler
2345 # defaults. OSF 4 can also have that compiler version, and there
2346 # seems always to have been a usable /usr/bin/cpp.
2347 NON_GNU_CPP=/usr/bin/cpp
2348 case "${canonical}" in
2349 alpha*-dec-osf[5-9]*)
2350 opsys=osf5-0 ;;
2351 esac
2352 ;;
2353
2354 alpha*-*-linux-gnu* )
2355 machine=alpha opsys=gnu-linux
2356 ;;
2357
2358 arm*-*-linux-gnu* )
2359 machine=arm opsys=gnu-linux
2360 ;;
2361
2362 ## Altos 3068
2363 m68*-altos-sysv* )
2364 machine=altos opsys=usg5-2
2365 ;;
2366
2367 ## Amdahl UTS
2368 580-amdahl-sysv* )
2369 machine=amdahl opsys=usg5-2-2
2370 ;;
2371
2372 ## Apollo, Domain/OS
2373 m68*-apollo-* )
2374 machine=apollo opsys=bsd4-3
2375 ;;
2376
2377 ## Apple Darwin / Mac OS X
2378 *-apple-darwin* )
2379 case "${canonical}" in
2380 i[3456]86-* ) machine=intel386 ;;
2381 powerpc-* ) machine=powermac ;;
2382 * ) unported=yes ;;
2383 esac
2384 opsys=darwin
2385 # Define CPP as follows to make autoconf work correctly.
2386 CPP="${CC-cc} -E -no-cpp-precomp"
2387 # Use fink packages if available.
2388 if test -d /sw/include && test -d /sw/lib; then
2389 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2390 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2391 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2392 fi
2393 ;;
2394
2395 ## AT&T 3b2, 3b5, 3b15, 3b20
2396 we32k-att-sysv* )
2397 machine=att3b opsys=usg5-2-2
2398 ;;
2399
2400 ## AT&T 3b1 - The Mighty Unix PC!
2401 m68*-att-sysv* )
2402 machine=7300 opsys=usg5-2-2
2403 ;;
2404
2405 ## Bull dpx20
2406 rs6000-bull-bosx* )
2407 machine=ibmrs6000 opsys=aix3-2
2408 ;;
2409
2410 ## Bull dpx2
2411 m68*-bull-sysv3* )
2412 machine=dpx2 opsys=usg5-3
2413 ;;
2414
2415 ## Bull sps7
2416 m68*-bull-sysv2* )
2417 machine=sps7 opsys=usg5-2
2418 ;;
2419
2420 ## CCI 5/32, 6/32 -- see "Tahoe".
2421
2422 ## Celerity
2423 ## I don't know what configuration name to use for this; config.sub
2424 ## doesn't seem to know anything about it. Hey, Celerity users, get
2425 ## in touch with us!
2426 celerity-celerity-bsd* )
2427 machine=celerity opsys=bsd4-2
2428 ;;
2429
2430 ## Clipper
2431 ## What operating systems does this chip run that Emacs has been
2432 ## tested on?
2433 clipper-* )
2434 machine=clipper
2435 ## We'll use the catch-all code at the bottom to guess the
2436 ## operating system.
2437 ;;
2438
2439 ## Compaq Nonstop
2440 mips-compaq-nonstopux* )
2441 machine=nonstopux opsys=nonstopux
2442 ;;
2443
2444 ## Convex
2445 *-convex-bsd* | *-convex-convexos* )
2446 machine=convex opsys=bsd4-3
2447 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2448 NON_GNU_CPP="cc -E -P"
2449 ;;
2450
2451 ## Cubix QBx/386
2452 i[3456]86-cubix-sysv* )
2453 machine=intel386 opsys=usg5-3
2454 ;;
2455
2456 ## Cydra 5
2457 cydra*-cydrome-sysv* )
2458 machine=cydra5 opsys=usg5-3
2459 ;;
2460
2461 ## Data General AViiON Machines
2462 ## DG changed naming conventions with the release of 5.4.4.10, they
2463 ## dropped the initial 5.4 but left the intervening R. Because of the
2464 ## R this shouldn't conflict with older versions of the OS (which I
2465 ## think were named like dgux4.*). In addition, DG new AViiONs series
2466 ## uses either Motorola M88k or Intel Pentium CPUs.
2467 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2468 machine=aviion opsys=dgux4
2469 ;;
2470 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2471 ## This name is dgux5-4-3 instead of dgux5-4r3
2472 ## to avoid a file name conflict on MSDOS.
2473 machine=aviion opsys=dgux5-4-3
2474 ;;
2475 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2476 machine=aviion opsys=dgux5-4r2
2477 ;;
2478 m88k-dg-dgux* )
2479 machine=aviion opsys=dgux
2480 ;;
2481
2482 ## Data General AViiON Intel (x86) Machines
2483 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2484 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2485 i[345]86-dg-dguxR4* )
2486 machine=aviion-intel opsys=dgux4
2487 ;;
2488
2489 ## DECstations
2490 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2491 machine=pmax opsys=bsd4-2
2492 ;;
2493 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2494 machine=pmax opsys=bsd4-3
2495 ;;
2496 mips-dec-ultrix* )
2497 machine=pmax opsys=ultrix4-3
2498 ;;
2499 mips-dec-osf* )
2500 machine=pmax opsys=osf1
2501 ;;
2502 mips-dec-mach_bsd4.3* )
2503 machine=pmax opsys=mach-bsd4-3
2504 ;;
2505
2506 ## Motorola Delta machines
2507 m68k-motorola-sysv* | m68000-motorola-sysv* )
2508 machine=delta opsys=usg5-3
2509 if test -z "`type gnucc | grep 'not found'`"
2510 then
2511 if test -s /etc/167config
2512 then CC="gnucc -m68040"
2513 else CC="gnucc -m68881"
2514 fi
2515 else
2516 if test -z "`type gcc | grep 'not found'`"
2517 then CC=gcc
2518 else CC=cc
2519 fi
2520 fi
2521 ;;
2522 m88k-motorola-sysv4* )
2523 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2524 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2525 # I hope there are not other 4.0 versions for this machine
2526 # which really need usg5-4 instead.
2527 machine=delta88k opsys=usg5-4-2
2528 ;;
2529 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2530 machine=delta88k opsys=usg5-3
2531 ;;
2532
2533 ## Dual machines
2534 m68*-dual-sysv* )
2535 machine=dual opsys=usg5-2
2536 ;;
2537 m68*-dual-uniplus* )
2538 machine=dual opsys=unipl5-2
2539 ;;
2540
2541 ## Elxsi 6400
2542 elxsi-elxsi-sysv* )
2543 machine=elxsi opsys=usg5-2
2544 ;;
2545
2546 ## Encore machines
2547 ns16k-encore-bsd* )
2548 machine=ns16000 opsys=umax
2549 ;;
2550
2551 ## The GEC 63 - apparently, this port isn't really finished yet.
2552 # I'm sure we finished off the last of the machines, though. -- fx
2553
2554 ## Gould Power Node and NP1
2555 pn-gould-bsd4.2* )
2556 machine=gould opsys=bsd4-2
2557 ;;
2558 pn-gould-bsd4.3* )
2559 machine=gould opsys=bsd4-3
2560 ;;
2561 np1-gould-bsd* )
2562 machine=gould-np1 opsys=bsd4-3
2563 ;;
2564
2565 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2566 ## as far as Emacs is concerned).
2567 m88k-harris-cxux* )
2568 # Build needs to be different on 7.0 and later releases
2569 case "`uname -r`" in
2570 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2571 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2572 esac
2573 NON_GNU_CPP="/lib/cpp"
2574 ;;
2575 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2576 m68k-harris-cxux* )
2577 machine=nh3000 opsys=cxux
2578 ;;
2579 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2580 powerpc-harris-powerunix )
2581 machine=nh6000 opsys=powerunix
2582 NON_GNU_CPP="cc -Xo -E -P"
2583 ;;
2584 ## SR2001/SR2201 running HI-UX/MPP
2585 hppa1.1-hitachi-hiuxmpp* )
2586 machine=sr2k opsys=hiuxmpp
2587 ;;
2588 hppa1.1-hitachi-hiuxwe2* )
2589 machine=sr2k opsys=hiuxwe2
2590 ;;
2591 ## Honeywell XPS100
2592 xps*-honeywell-sysv* )
2593 machine=xps100 opsys=usg5-2
2594 ;;
2595
2596 ## HP 9000 series 200 or 300
2597 m68*-hp-bsd* )
2598 machine=hp9000s300 opsys=bsd4-3
2599 ;;
2600 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2601 m68*-hp-hpux* )
2602 case "`uname -r`" in
2603 ## Someone's system reports A.B8.05 for this.
2604 ## I wonder what other possibilities there are.
2605 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2606 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2607 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2608 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2609 *) machine=hp9000s300 opsys=hpux ;;
2610 esac
2611 ;;
2612
2613 ## HP 9000 series 700 and 800, running HP/UX
2614 hppa*-hp-hpux7* )
2615 machine=hp800 opsys=hpux
2616 ;;
2617 hppa*-hp-hpux8* )
2618 machine=hp800 opsys=hpux8
2619 ;;
2620 hppa*-hp-hpux9shr* )
2621 machine=hp800 opsys=hpux9shr
2622 ;;
2623 hppa*-hp-hpux9* )
2624 machine=hp800 opsys=hpux9
2625 ;;
2626 hppa*-hp-hpux10.2* )
2627 machine=hp800 opsys=hpux10-20
2628 ;;
2629 hppa*-hp-hpux10* )
2630 machine=hp800 opsys=hpux10
2631 ;;
2632 hppa*-hp-hpux1[1-9]* )
2633 machine=hp800 opsys=hpux11
2634 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2635 ;;
2636
2637 hppa*-*-linux-gnu* )
2638 machine=hp800 opsys=gnu-linux
2639 ;;
2640
2641 ## HP 9000 series 700 and 800, running HP/UX
2642 hppa*-hp-hpux* )
2643 ## Cross-compilation? Nah!
2644 case "`uname -r`" in
2645 ## Someone's system reports A.B8.05 for this.
2646 ## I wonder what other possibilities there are.
2647 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2648 *.08.* ) machine=hp800 opsys=hpux8 ;;
2649 *.09.* ) machine=hp800 opsys=hpux9 ;;
2650 *) machine=hp800 opsys=hpux10 ;;
2651 esac
2652 ;;
2653 hppa*-*-nextstep* )
2654 machine=hp800 opsys=nextstep
2655 ;;
2656
2657 ## Orion machines
2658 orion-orion-bsd* )
2659 machine=orion opsys=bsd4-2
2660 ;;
2661 clipper-orion-bsd* )
2662 machine=orion105 opsys=bsd4-2
2663 ;;
2664
2665 ## IBM machines
2666 i[3456]86-ibm-aix1.1* )
2667 machine=ibmps2-aix opsys=usg5-2-2
2668 ;;
2669 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2670 machine=ibmps2-aix opsys=usg5-3
2671 ;;
2672 i370-ibm-aix*)
2673 machine=ibm370aix opsys=usg5-3
2674 ;;
2675 s390-*-linux-gnu* )
2676 machine=ibms390 opsys=gnu-linux
2677 ;;
2678 s390x-*-linux-gnu* )
2679 machine=ibms390x opsys=gnu-linux
2680 ;;
2681 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2682 machine=ibmrs6000 opsys=aix3-1
2683 ;;
2684 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2685 machine=ibmrs6000 opsys=aix3-2-5
2686 ;;
2687 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2688 machine=ibmrs6000 opsys=aix4-1
2689 ;;
2690 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2691 machine=ibmrs6000 opsys=aix4-2
2692 ;;
2693 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2694 machine=ibmrs6000 opsys=aix4-2
2695 ;;
2696 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2697 machine=ibmrs6000 opsys=aix4
2698 ;;
2699 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2700 machine=ibmrs6000 opsys=aix4-1
2701 ;;
2702 rs6000-ibm-aix* | powerpc-ibm-aix* )
2703 machine=ibmrs6000 opsys=aix3-2
2704 ;;
2705 romp-ibm-bsd4.3* )
2706 machine=ibmrt opsys=bsd4-3
2707 ;;
2708 romp-ibm-bsd4.2* )
2709 machine=ibmrt opsys=bsd4-2
2710 ;;
2711 romp-ibm-aos4.3* )
2712 machine=ibmrt opsys=bsd4-3
2713 ;;
2714 romp-ibm-aos4.2* )
2715 machine=ibmrt opsys=bsd4-2
2716 ;;
2717 romp-ibm-aos* )
2718 machine=ibmrt opsys=bsd4-3
2719 ;;
2720 romp-ibm-bsd* )
2721 machine=ibmrt opsys=bsd4-3
2722 ;;
2723 romp-ibm-aix* )
2724 machine=ibmrt-aix opsys=usg5-2-2
2725 ;;
2726
2727 ## Integrated Solutions `Optimum V'
2728 m68*-isi-bsd4.2* )
2729 machine=isi-ov opsys=bsd4-2
2730 ;;
2731 m68*-isi-bsd4.3* )
2732 machine=isi-ov opsys=bsd4-3
2733 ;;
2734
2735 ## Intel 386 machines where we do care about the manufacturer
2736 i[3456]86-intsys-sysv* )
2737 machine=is386 opsys=usg5-2-2
2738 ;;
2739
2740 ## Prime EXL
2741 i[3456]86-prime-sysv* )
2742 machine=i386 opsys=usg5-3
2743 ;;
2744
2745 ## Sequent Symmetry running Dynix
2746 i[3456]86-sequent-bsd* )
2747 machine=symmetry opsys=bsd4-3
2748 ;;
2749
2750 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2751 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2752 machine=sequent-ptx opsys=ptx4
2753 NON_GNU_CPP=/lib/cpp
2754 ;;
2755
2756 ## Sequent Symmetry running DYNIX/ptx
2757 ## Use the old cpp rather than the newer ANSI one.
2758 i[3456]86-sequent-ptx* )
2759 machine=sequent-ptx opsys=ptx
2760 NON_GNU_CPP="/lib/cpp"
2761 ;;
2762
2763 ## ncr machine running svr4.3.
2764 i[3456]86-ncr-sysv4.3 )
2765 machine=ncr386 opsys=usg5-4-3
2766 ;;
2767
2768 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2769 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2770 i[3456]86-ncr-sysv* )
2771 machine=ncr386 opsys=usg5-4-2
2772 ;;
2773
2774 ## Intel Paragon OSF/1
2775 i860-intel-osf1* )
2776 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2777 ;;
2778
2779 ## Intel 860
2780 i860-*-sysv4* )
2781 machine=i860 opsys=usg5-4
2782 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2783 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2784 ;;
2785
2786 ## Macintosh PowerPC
2787 powerpc*-*-linux-gnu* )
2788 machine=macppc opsys=gnu-linux
2789 ;;
2790
2791 ## Masscomp machines
2792 m68*-masscomp-rtu* )
2793 machine=masscomp opsys=rtu
2794 ;;
2795
2796 ## Megatest machines
2797 m68*-megatest-bsd* )
2798 machine=mega68 opsys=bsd4-2
2799 ;;
2800
2801 ## Workstations sold by MIPS
2802 ## This is not necessarily all workstations using the MIPS processor -
2803 ## Irises are produced by SGI, and DECstations by DEC.
2804
2805 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2806 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2807 ## it gives for choosing between the alternatives seems to be "Use
2808 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2809 ## the BSD world." I'll assume that these are instructions for
2810 ## handling two odd situations, and that every other situation
2811 ## should use mips.h and usg5-2-2, they being listed first.
2812 mips-mips-usg* )
2813 machine=mips4
2814 ## Fall through to the general code at the bottom to decide on the OS.
2815 ;;
2816 mips-mips-riscos4* )
2817 machine=mips4 opsys=bsd4-3
2818 NON_GNU_CC="cc -systype bsd43"
2819 NON_GNU_CPP="cc -systype bsd43 -E"
2820 ;;
2821 mips-mips-riscos5* )
2822 machine=mips4 opsys=riscos5
2823 NON_GNU_CC="cc -systype bsd43"
2824 NON_GNU_CPP="cc -systype bsd43 -E"
2825 ;;
2826 mips-mips-bsd* )
2827 machine=mips opsys=bsd4-3
2828 ;;
2829 mips-mips-* )
2830 machine=mips opsys=usg5-2-2
2831 ;;
2832
2833 ## NeXT
2834 m68*-next-* | m68k-*-nextstep* )
2835 machine=m68k opsys=nextstep
2836 ;;
2837
2838 ## The complete machine from National Semiconductor
2839 ns32k-ns-genix* )
2840 machine=ns32000 opsys=usg5-2
2841 ;;
2842
2843 ## NCR machines
2844 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2845 machine=tower32 opsys=usg5-2-2
2846 ;;
2847 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2848 machine=tower32v3 opsys=usg5-3
2849 ;;
2850
2851 ## NEC EWS4800
2852 mips-nec-sysv4*)
2853 machine=ews4800 opsys=ux4800
2854 ;;
2855
2856 ## Nixdorf Targon 31
2857 m68*-nixdorf-sysv* )
2858 machine=targon31 opsys=usg5-2-2
2859 ;;
2860
2861 ## Nu (TI or LMI)
2862 m68*-nu-sysv* )
2863 machine=nu opsys=usg5-2
2864 ;;
2865
2866 ## Plexus
2867 m68*-plexus-sysv* )
2868 machine=plexus opsys=usg5-2
2869 ;;
2870
2871 ## Pyramid machines
2872 ## I don't really have any idea what sort of processor the Pyramid has,
2873 ## so I'm assuming it is its own architecture.
2874 pyramid-pyramid-bsd* )
2875 machine=pyramid opsys=bsd4-2
2876 ;;
2877
2878 ## Sequent Balance
2879 ns32k-sequent-bsd4.2* )
2880 machine=sequent opsys=bsd4-2
2881 ;;
2882 ns32k-sequent-bsd4.3* )
2883 machine=sequent opsys=bsd4-3
2884 ;;
2885
2886 ## Siemens Nixdorf
2887 mips-siemens-sysv* | mips-sni-sysv*)
2888 machine=mips-siemens opsys=usg5-4
2889 NON_GNU_CC=/usr/ccs/bin/cc
2890 NON_GNU_CPP=/usr/ccs/lib/cpp
2891 ;;
2892
2893 ## Silicon Graphics machines
2894 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2895 m68*-sgi-iris3.5* )
2896 machine=irist opsys=iris3-5
2897 ;;
2898 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2899 machine=irist opsys=iris3-6
2900 ;;
2901 ## Iris 4D
2902 mips-sgi-irix3* )
2903 machine=iris4d opsys=irix3-3
2904 ;;
2905 mips-sgi-irix4* )
2906 machine=iris4d opsys=irix4-0
2907 ;;
2908 mips-sgi-irix6.5 )
2909 machine=iris4d opsys=irix6-5
2910 # Without defining _LANGUAGE_C, things get masked out in the headers
2911 # so that, for instance, grepping for `free' in stdlib.h fails and
2912 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2913 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2914 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2915 ;;
2916 mips-sgi-irix6* )
2917 machine=iris4d opsys=irix6-0
2918 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2919 # but presumably it does no harm.
2920 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2921 # -32 probably isn't necessary in later v.6s -- anyone know which?
2922 NON_GCC_TEST_OPTIONS=-32
2923 ;;
2924 mips-sgi-irix5.[01]* )
2925 machine=iris4d opsys=irix5-0
2926 ;;
2927 mips-sgi-irix5* | mips-sgi-irix* )
2928 machine=iris4d opsys=irix5-2
2929 ;;
2930
2931 ## SONY machines
2932 m68*-sony-bsd4.2* )
2933 machine=news opsys=bsd4-2
2934 ;;
2935 m68*-sony-bsd4.3* )
2936 machine=news opsys=bsd4-3
2937 ;;
2938 m68*-sony-newsos3* | m68*-sony-news3*)
2939 machine=news opsys=bsd4-3
2940 ;;
2941 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2942 machine=news-risc opsys=bsd4-3
2943 ;;
2944 mips-sony-newsos6* )
2945 machine=news-r6 opsys=newsos6
2946 ;;
2947 mips-sony-news* )
2948 machine=news-risc opsys=newsos5
2949 ;;
2950
2951 ## Stride
2952 m68*-stride-sysv* )
2953 machine=stride opsys=usg5-2
2954 ;;
2955
2956 ## Suns
2957 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2958 machine=sparc opsys=gnu-linux
2959 ;;
2960
2961 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2962 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2963 | rs6000-*-solaris2*)
2964 case "${canonical}" in
2965 m68*-sunos1* ) machine=sun1 ;;
2966 m68*-sunos2* ) machine=sun2 ;;
2967 m68* ) machine=sun3 ;;
2968 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2969 i[3456]86-*-* ) machine=intel386 ;;
2970 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2971 powerpcle* ) machine=powerpcle ;;
2972 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2973 sparc* ) machine=sparc ;;
2974 * ) unported=yes ;;
2975 esac
2976 case "${canonical}" in
2977 ## The Sun386 didn't get past 4.0.
2978 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2979 *-sunos4.0* ) opsys=sunos4-0 ;;
2980 *-sunos4.1.[3-9]*noshare )
2981 ## This name is sunos413 instead of sunos4-1-3
2982 ## to avoid a file name conflict on MSDOS.
2983 opsys=sunos413
2984 NON_GNU_CPP=/usr/lib/cpp
2985 NON_GCC_TEST_OPTIONS=-Bstatic
2986 GCC_TEST_OPTIONS=-static
2987 ;;
2988 *-sunos4.1.[3-9]* | *-sunos4shr*)
2989 opsys=sunos4shr
2990 NON_GNU_CPP=/usr/lib/cpp
2991 ;;
2992 *-sunos4* | *-sunos )
2993 opsys=sunos4-1
2994 NON_GCC_TEST_OPTIONS=-Bstatic
2995 GCC_TEST_OPTIONS=-static
2996 ;;
2997 *-sunos5.3* | *-solaris2.3* )
2998 opsys=sol2-3
2999 NON_GNU_CPP=/usr/ccs/lib/cpp
3000 ;;
3001 *-sunos5.4* | *-solaris2.4* )
3002 opsys=sol2-4
3003 NON_GNU_CPP=/usr/ccs/lib/cpp
3004 RANLIB="ar -ts"
3005 ;;
3006 *-sunos5.5* | *-solaris2.5* )
3007 opsys=sol2-5
3008 NON_GNU_CPP=/usr/ccs/lib/cpp
3009 RANLIB="ar -ts"
3010 ;;
3011 *-sunos5.6* | *-solaris2.6* )
3012 opsys=sol2-6
3013 NON_GNU_CPP=/usr/ccs/lib/cpp
3014 RANLIB="ar -ts"
3015 ;;
3016 *-sunos5* | *-solaris* )
3017 opsys=sol2-6
3018 NON_GNU_CPP=/usr/ccs/lib/cpp
3019 ;;
3020 * ) opsys=bsd4-2 ;;
3021 esac
3022 ## Watch out for a compiler that we know will not work.
3023 case "${canonical}" in
3024 *-solaris* | *-sunos5* )
3025 if [ "x$CC" = x/usr/ucb/cc ]; then
3026 ## /usr/ucb/cc doesn't work;
3027 ## we should find some other compiler that does work.
3028 unset CC
3029 fi
3030 ;;
3031 *) ;;
3032 esac
3033 ;;
3034 sparc-*-nextstep* )
3035 machine=sparc opsys=nextstep
3036 ;;
3037
3038 ## Tadpole 68k
3039 m68*-tadpole-sysv* )
3040 machine=tad68k opsys=usg5-3
3041 ;;
3042
3043 ## Tahoe machines
3044 tahoe-tahoe-bsd4.2* )
3045 machine=tahoe opsys=bsd4-2
3046 ;;
3047 tahoe-tahoe-bsd4.3* )
3048 machine=tahoe opsys=bsd4-3
3049 ;;
3050
3051 ## Tandem Integrity S2
3052 mips-tandem-sysv* )
3053 machine=tandem-s2 opsys=usg5-3
3054 ;;
3055
3056 ## Tektronix XD88
3057 m88k-tektronix-sysv3* )
3058 machine=tekxd88 opsys=usg5-3
3059 ;;
3060
3061 ## Tektronix 16000 box (6130?)
3062 ns16k-tektronix-bsd* )
3063 machine=ns16000 opsys=bsd4-2
3064 ;;
3065 ## Tektronix 4300
3066 ## src/m/tek4300.h hints that this is a m68k machine.
3067 m68*-tektronix-bsd* )
3068 machine=tek4300 opsys=bsd4-3
3069 ;;
3070
3071 ## Titan P2 or P3
3072 ## We seem to have lost the machine-description file titan.h!
3073 titan-titan-sysv* )
3074 machine=titan opsys=usg5-3
3075 ;;
3076
3077 ## Ustation E30 (SS5E)
3078 m68*-unisys-uniplus* )
3079 machine=ustation opsystem=unipl5-2
3080 ;;
3081
3082 ## Vaxen.
3083 vax-dec-* )
3084 machine=vax
3085 case "${canonical}" in
3086 *-bsd4.1* ) opsys=bsd4-1 ;;
3087 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3088 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3089 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3090 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3091 *-vms* ) opsys=vms ;;
3092 * ) unported=yes
3093 esac
3094 ;;
3095
3096 ## Whitechapel MG1
3097 ns16k-whitechapel-* )
3098 machine=mg1
3099 ## We don't know what sort of OS runs on these; we'll let the
3100 ## operating system guessing code below try.
3101 ;;
3102
3103 ## Wicat
3104 m68*-wicat-sysv* )
3105 machine=wicat opsys=usg5-2
3106 ;;
3107
3108 ## IA-64
3109 ia64*-*-linux* )
3110 machine=ia64 opsys=gnu-linux
3111 ;;
3112
3113 ## Intel 386 machines where we don't care about the manufacturer
3114 i[3456]86-*-* )
3115 machine=intel386
3116 case "${canonical}" in
3117 *-cygwin ) opsys=cygwin ;;
3118 *-darwin* ) opsys=darwin
3119 CPP="${CC-cc} -E -no-cpp-precomp"
3120 ;;
3121 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3122 *-isc2.2* ) opsys=isc2-2 ;;
3123 *-isc4.0* ) opsys=isc4-0 ;;
3124 *-isc4.* ) opsys=isc4-1
3125 GCC_TEST_OPTIONS=-posix
3126 NON_GCC_TEST_OPTIONS=-Xp
3127 ;;
3128 *-isc* ) opsys=isc3-0 ;;
3129 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3130 *-esix* ) opsys=esix ;;
3131 *-xenix* ) opsys=xenix ;;
3132 *-linux-gnu* ) opsys=gnu-linux ;;
3133 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3134 *-sco3.2v5* ) opsys=sco5
3135 NON_GNU_CPP=/lib/cpp
3136 # Prevent -belf from being passed to $CPP.
3137 # /lib/cpp does not accept it.
3138 OVERRIDE_CPPFLAGS=" "
3139 ;;
3140 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3141 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3142 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3143 *-386bsd* ) opsys=386bsd ;;
3144 *-nextstep* ) opsys=nextstep ;;
3145 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3146 esac
3147 ;;
3148
3149 ## m68k Linux-based GNU system
3150 m68k-*-linux-gnu* )
3151 machine=m68k opsys=gnu-linux
3152 ;;
3153
3154 ## Mips Linux-based GNU system
3155 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3156 machine=mips opsys=gnu-linux
3157 ;;
3158
3159 ## UXP/DS
3160 sparc-fujitsu-sysv4* )
3161 machine=sparc opsys=uxpds
3162 NON_GNU_CPP=/usr/ccs/lib/cpp
3163 RANLIB="ar -ts"
3164 ;;
3165
3166 ## UXP/V
3167 f301-fujitsu-uxpv4.1)
3168 machine=f301 opsys=uxpv
3169 ;;
3170
3171 ## AMD x86-64 Linux-based GNU system
3172 x86_64-*-linux-gnu* )
3173 machine=amdx86-64 opsys=gnu-linux
3174 ;;
3175
3176 * )
3177 unported=yes
3178 ;;
3179 esac
3180
3181 ### If the code above didn't choose an operating system, just choose
3182 ### an operating system based on the configuration name. You really
3183 ### only want to use this when you have no idea what the right
3184 ### operating system is; if you know what operating systems a machine
3185 ### runs, it's cleaner to make it explicit in the case statement
3186 ### above.
3187 if test x"${opsys}" = x; then
3188 case "${canonical}" in
3189 *-gnu* ) opsys=gnu ;;
3190 *-bsd4.[01] ) opsys=bsd4-1 ;;
3191 *-bsd4.2 ) opsys=bsd4-2 ;;
3192 *-bsd4.3 ) opsys=bsd4-3 ;;
3193 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3194 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3195 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3196 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3197 *-sysv4.2uw* ) opsys=unixware ;;
3198 *-sysv5uw* ) opsys=unixware ;;
3199 *-sysv5OpenUNIX* ) opsys=unixware ;;
3200 *-sysv4.1* | *-sysvr4.1* )
3201 NON_GNU_CPP=/usr/lib/cpp
3202 opsys=usg5-4 ;;
3203 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3204 if [ x$NON_GNU_CPP = x ]; then
3205 if [ -f /usr/ccs/lib/cpp ]; then
3206 NON_GNU_CPP=/usr/ccs/lib/cpp
3207 else
3208 NON_GNU_CPP=/lib/cpp
3209 fi
3210 fi
3211 opsys=usg5-4-2 ;;
3212 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3213 * )
3214 unported=yes
3215 ;;
3216 esac
3217 fi
3218
3219
3220
3221 if test $unported = yes; then
3222 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3223 Check \`etc/MACHINES' for recognized configuration names." >&5
3224 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3225 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3226 { (exit 1); exit 1; }; }
3227 fi
3228
3229 machfile="m/${machine}.h"
3230 opsysfile="s/${opsys}.h"
3231
3232
3233 #### Choose a compiler.
3234 test -n "$CC" && cc_specified=yes
3235
3236 # Save the value of CFLAGS that the user specified.
3237 SPECIFIED_CFLAGS="$CFLAGS"
3238
3239 case ${with_gcc} in
3240 "yes" ) CC="gcc" GCC=yes ;;
3241 "no" ) : ${CC=cc} ;;
3242 * )
3243 esac
3244 ac_ext=c
3245 ac_cpp='$CPP $CPPFLAGS'
3246 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3247 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3248 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3249 if test -n "$ac_tool_prefix"; then
3250 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3251 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3254 if test "${ac_cv_prog_CC+set}" = set; then
3255 echo $ECHO_N "(cached) $ECHO_C" >&6
3256 else
3257 if test -n "$CC"; then
3258 ac_cv_prog_CC="$CC" # Let the user override the test.
3259 else
3260 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3261 for as_dir in $PATH
3262 do
3263 IFS=$as_save_IFS
3264 test -z "$as_dir" && as_dir=.
3265 for ac_exec_ext in '' $ac_executable_extensions; do
3266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3267 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3268 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3269 break 2
3270 fi
3271 done
3272 done
3273 IFS=$as_save_IFS
3274
3275 fi
3276 fi
3277 CC=$ac_cv_prog_CC
3278 if test -n "$CC"; then
3279 { echo "$as_me:$LINENO: result: $CC" >&5
3280 echo "${ECHO_T}$CC" >&6; }
3281 else
3282 { echo "$as_me:$LINENO: result: no" >&5
3283 echo "${ECHO_T}no" >&6; }
3284 fi
3285
3286
3287 fi
3288 if test -z "$ac_cv_prog_CC"; then
3289 ac_ct_CC=$CC
3290 # Extract the first word of "gcc", so it can be a program name with args.
3291 set dummy gcc; ac_word=$2
3292 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3293 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3294 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3295 echo $ECHO_N "(cached) $ECHO_C" >&6
3296 else
3297 if test -n "$ac_ct_CC"; then
3298 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3299 else
3300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3301 for as_dir in $PATH
3302 do
3303 IFS=$as_save_IFS
3304 test -z "$as_dir" && as_dir=.
3305 for ac_exec_ext in '' $ac_executable_extensions; do
3306 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3307 ac_cv_prog_ac_ct_CC="gcc"
3308 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 break 2
3310 fi
3311 done
3312 done
3313 IFS=$as_save_IFS
3314
3315 fi
3316 fi
3317 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3318 if test -n "$ac_ct_CC"; then
3319 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3320 echo "${ECHO_T}$ac_ct_CC" >&6; }
3321 else
3322 { echo "$as_me:$LINENO: result: no" >&5
3323 echo "${ECHO_T}no" >&6; }
3324 fi
3325
3326 if test "x$ac_ct_CC" = x; then
3327 CC=""
3328 else
3329 case $cross_compiling:$ac_tool_warned in
3330 yes:)
3331 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3332 whose name does not start with the host triplet. If you think this
3333 configuration is useful to you, please write to autoconf@gnu.org." >&5
3334 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3335 whose name does not start with the host triplet. If you think this
3336 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3337 ac_tool_warned=yes ;;
3338 esac
3339 CC=$ac_ct_CC
3340 fi
3341 else
3342 CC="$ac_cv_prog_CC"
3343 fi
3344
3345 if test -z "$CC"; then
3346 if test -n "$ac_tool_prefix"; then
3347 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3348 set dummy ${ac_tool_prefix}cc; ac_word=$2
3349 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3350 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3351 if test "${ac_cv_prog_CC+set}" = set; then
3352 echo $ECHO_N "(cached) $ECHO_C" >&6
3353 else
3354 if test -n "$CC"; then
3355 ac_cv_prog_CC="$CC" # Let the user override the test.
3356 else
3357 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3358 for as_dir in $PATH
3359 do
3360 IFS=$as_save_IFS
3361 test -z "$as_dir" && as_dir=.
3362 for ac_exec_ext in '' $ac_executable_extensions; do
3363 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3364 ac_cv_prog_CC="${ac_tool_prefix}cc"
3365 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3366 break 2
3367 fi
3368 done
3369 done
3370 IFS=$as_save_IFS
3371
3372 fi
3373 fi
3374 CC=$ac_cv_prog_CC
3375 if test -n "$CC"; then
3376 { echo "$as_me:$LINENO: result: $CC" >&5
3377 echo "${ECHO_T}$CC" >&6; }
3378 else
3379 { echo "$as_me:$LINENO: result: no" >&5
3380 echo "${ECHO_T}no" >&6; }
3381 fi
3382
3383
3384 fi
3385 fi
3386 if test -z "$CC"; then
3387 # Extract the first word of "cc", so it can be a program name with args.
3388 set dummy cc; ac_word=$2
3389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3391 if test "${ac_cv_prog_CC+set}" = set; then
3392 echo $ECHO_N "(cached) $ECHO_C" >&6
3393 else
3394 if test -n "$CC"; then
3395 ac_cv_prog_CC="$CC" # Let the user override the test.
3396 else
3397 ac_prog_rejected=no
3398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3399 for as_dir in $PATH
3400 do
3401 IFS=$as_save_IFS
3402 test -z "$as_dir" && as_dir=.
3403 for ac_exec_ext in '' $ac_executable_extensions; do
3404 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3405 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3406 ac_prog_rejected=yes
3407 continue
3408 fi
3409 ac_cv_prog_CC="cc"
3410 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3411 break 2
3412 fi
3413 done
3414 done
3415 IFS=$as_save_IFS
3416
3417 if test $ac_prog_rejected = yes; then
3418 # We found a bogon in the path, so make sure we never use it.
3419 set dummy $ac_cv_prog_CC
3420 shift
3421 if test $# != 0; then
3422 # We chose a different compiler from the bogus one.
3423 # However, it has the same basename, so the bogon will be chosen
3424 # first if we set CC to just the basename; use the full file name.
3425 shift
3426 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3427 fi
3428 fi
3429 fi
3430 fi
3431 CC=$ac_cv_prog_CC
3432 if test -n "$CC"; then
3433 { echo "$as_me:$LINENO: result: $CC" >&5
3434 echo "${ECHO_T}$CC" >&6; }
3435 else
3436 { echo "$as_me:$LINENO: result: no" >&5
3437 echo "${ECHO_T}no" >&6; }
3438 fi
3439
3440
3441 fi
3442 if test -z "$CC"; then
3443 if test -n "$ac_tool_prefix"; then
3444 for ac_prog in cl.exe
3445 do
3446 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3447 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3448 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3449 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3450 if test "${ac_cv_prog_CC+set}" = set; then
3451 echo $ECHO_N "(cached) $ECHO_C" >&6
3452 else
3453 if test -n "$CC"; then
3454 ac_cv_prog_CC="$CC" # Let the user override the test.
3455 else
3456 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3457 for as_dir in $PATH
3458 do
3459 IFS=$as_save_IFS
3460 test -z "$as_dir" && as_dir=.
3461 for ac_exec_ext in '' $ac_executable_extensions; do
3462 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3463 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3464 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3465 break 2
3466 fi
3467 done
3468 done
3469 IFS=$as_save_IFS
3470
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3477 else
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3480 fi
3481
3482
3483 test -n "$CC" && break
3484 done
3485 fi
3486 if test -z "$CC"; then
3487 ac_ct_CC=$CC
3488 for ac_prog in cl.exe
3489 do
3490 # Extract the first word of "$ac_prog", so it can be a program name with args.
3491 set dummy $ac_prog; ac_word=$2
3492 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3493 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3494 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3495 echo $ECHO_N "(cached) $ECHO_C" >&6
3496 else
3497 if test -n "$ac_ct_CC"; then
3498 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3499 else
3500 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3501 for as_dir in $PATH
3502 do
3503 IFS=$as_save_IFS
3504 test -z "$as_dir" && as_dir=.
3505 for ac_exec_ext in '' $ac_executable_extensions; do
3506 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3507 ac_cv_prog_ac_ct_CC="$ac_prog"
3508 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3509 break 2
3510 fi
3511 done
3512 done
3513 IFS=$as_save_IFS
3514
3515 fi
3516 fi
3517 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3518 if test -n "$ac_ct_CC"; then
3519 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3520 echo "${ECHO_T}$ac_ct_CC" >&6; }
3521 else
3522 { echo "$as_me:$LINENO: result: no" >&5
3523 echo "${ECHO_T}no" >&6; }
3524 fi
3525
3526
3527 test -n "$ac_ct_CC" && break
3528 done
3529
3530 if test "x$ac_ct_CC" = x; then
3531 CC=""
3532 else
3533 case $cross_compiling:$ac_tool_warned in
3534 yes:)
3535 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3536 whose name does not start with the host triplet. If you think this
3537 configuration is useful to you, please write to autoconf@gnu.org." >&5
3538 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3539 whose name does not start with the host triplet. If you think this
3540 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3541 ac_tool_warned=yes ;;
3542 esac
3543 CC=$ac_ct_CC
3544 fi
3545 fi
3546
3547 fi
3548
3549
3550 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3551 See \`config.log' for more details." >&5
3552 echo "$as_me: error: no acceptable C compiler found in \$PATH
3553 See \`config.log' for more details." >&2;}
3554 { (exit 1); exit 1; }; }
3555
3556 # Provide some information about the compiler.
3557 echo "$as_me:$LINENO: checking for C compiler version" >&5
3558 ac_compiler=`set X $ac_compile; echo $2`
3559 { (ac_try="$ac_compiler --version >&5"
3560 case "(($ac_try" in
3561 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3562 *) ac_try_echo=$ac_try;;
3563 esac
3564 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3565 (eval "$ac_compiler --version >&5") 2>&5
3566 ac_status=$?
3567 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3568 (exit $ac_status); }
3569 { (ac_try="$ac_compiler -v >&5"
3570 case "(($ac_try" in
3571 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3572 *) ac_try_echo=$ac_try;;
3573 esac
3574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3575 (eval "$ac_compiler -v >&5") 2>&5
3576 ac_status=$?
3577 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3578 (exit $ac_status); }
3579 { (ac_try="$ac_compiler -V >&5"
3580 case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3585 (eval "$ac_compiler -V >&5") 2>&5
3586 ac_status=$?
3587 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3588 (exit $ac_status); }
3589
3590 cat >conftest.$ac_ext <<_ACEOF
3591 /* confdefs.h. */
3592 _ACEOF
3593 cat confdefs.h >>conftest.$ac_ext
3594 cat >>conftest.$ac_ext <<_ACEOF
3595 /* end confdefs.h. */
3596
3597 int
3598 main ()
3599 {
3600
3601 ;
3602 return 0;
3603 }
3604 _ACEOF
3605 ac_clean_files_save=$ac_clean_files
3606 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3607 # Try to create an executable without -o first, disregard a.out.
3608 # It will help us diagnose broken compilers, and finding out an intuition
3609 # of exeext.
3610 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3611 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3612 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3613 #
3614 # List of possible output files, starting from the most likely.
3615 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3616 # only as a last resort. b.out is created by i960 compilers.
3617 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3618 #
3619 # The IRIX 6 linker writes into existing files which may not be
3620 # executable, retaining their permissions. Remove them first so a
3621 # subsequent execution test works.
3622 ac_rmfiles=
3623 for ac_file in $ac_files
3624 do
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3628 esac
3629 done
3630 rm -f $ac_rmfiles
3631
3632 if { (ac_try="$ac_link_default"
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_link_default") 2>&5
3639 ac_status=$?
3640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3641 (exit $ac_status); }; then
3642 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3643 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3644 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3645 # so that the user can short-circuit this test for compilers unknown to
3646 # Autoconf.
3647 for ac_file in $ac_files ''
3648 do
3649 test -f "$ac_file" || continue
3650 case $ac_file in
3651 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3652 ;;
3653 [ab].out )
3654 # We found the default executable, but exeext='' is most
3655 # certainly right.
3656 break;;
3657 *.* )
3658 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3659 then :; else
3660 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3661 fi
3662 # We set ac_cv_exeext here because the later test for it is not
3663 # safe: cross compilers may not add the suffix if given an `-o'
3664 # argument, so we may need to know it at that point already.
3665 # Even if this section looks crufty: it has the advantage of
3666 # actually working.
3667 break;;
3668 * )
3669 break;;
3670 esac
3671 done
3672 test "$ac_cv_exeext" = no && ac_cv_exeext=
3673
3674 else
3675 ac_file=''
3676 fi
3677
3678 { echo "$as_me:$LINENO: result: $ac_file" >&5
3679 echo "${ECHO_T}$ac_file" >&6; }
3680 if test -z "$ac_file"; then
3681 echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3683
3684 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3685 See \`config.log' for more details." >&5
3686 echo "$as_me: error: C compiler cannot create executables
3687 See \`config.log' for more details." >&2;}
3688 { (exit 77); exit 77; }; }
3689 fi
3690
3691 ac_exeext=$ac_cv_exeext
3692
3693 # Check that the compiler produces executables we can run. If not, either
3694 # the compiler is broken, or we cross compile.
3695 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3696 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3697 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3698 # If not cross compiling, check that we can run a simple program.
3699 if test "$cross_compiling" != yes; then
3700 if { ac_try='./$ac_file'
3701 { (case "(($ac_try" in
3702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3703 *) ac_try_echo=$ac_try;;
3704 esac
3705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3706 (eval "$ac_try") 2>&5
3707 ac_status=$?
3708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3709 (exit $ac_status); }; }; then
3710 cross_compiling=no
3711 else
3712 if test "$cross_compiling" = maybe; then
3713 cross_compiling=yes
3714 else
3715 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3716 If you meant to cross compile, use \`--host'.
3717 See \`config.log' for more details." >&5
3718 echo "$as_me: error: cannot run C compiled programs.
3719 If you meant to cross compile, use \`--host'.
3720 See \`config.log' for more details." >&2;}
3721 { (exit 1); exit 1; }; }
3722 fi
3723 fi
3724 fi
3725 { echo "$as_me:$LINENO: result: yes" >&5
3726 echo "${ECHO_T}yes" >&6; }
3727
3728 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3729 ac_clean_files=$ac_clean_files_save
3730 # Check that the compiler produces executables we can run. If not, either
3731 # the compiler is broken, or we cross compile.
3732 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3733 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3734 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3735 echo "${ECHO_T}$cross_compiling" >&6; }
3736
3737 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3738 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3739 if { (ac_try="$ac_link"
3740 case "(($ac_try" in
3741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3742 *) ac_try_echo=$ac_try;;
3743 esac
3744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3745 (eval "$ac_link") 2>&5
3746 ac_status=$?
3747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3748 (exit $ac_status); }; then
3749 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3750 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3751 # work properly (i.e., refer to `conftest.exe'), while it won't with
3752 # `rm'.
3753 for ac_file in conftest.exe conftest conftest.*; do
3754 test -f "$ac_file" || continue
3755 case $ac_file in
3756 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3757 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3758 break;;
3759 * ) break;;
3760 esac
3761 done
3762 else
3763 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3764 See \`config.log' for more details." >&5
3765 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3766 See \`config.log' for more details." >&2;}
3767 { (exit 1); exit 1; }; }
3768 fi
3769
3770 rm -f conftest$ac_cv_exeext
3771 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3772 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3773
3774 rm -f conftest.$ac_ext
3775 EXEEXT=$ac_cv_exeext
3776 ac_exeext=$EXEEXT
3777 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3778 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3779 if test "${ac_cv_objext+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 cat >conftest.$ac_ext <<_ACEOF
3783 /* confdefs.h. */
3784 _ACEOF
3785 cat confdefs.h >>conftest.$ac_ext
3786 cat >>conftest.$ac_ext <<_ACEOF
3787 /* end confdefs.h. */
3788
3789 int
3790 main ()
3791 {
3792
3793 ;
3794 return 0;
3795 }
3796 _ACEOF
3797 rm -f conftest.o conftest.obj
3798 if { (ac_try="$ac_compile"
3799 case "(($ac_try" in
3800 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3801 *) ac_try_echo=$ac_try;;
3802 esac
3803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3804 (eval "$ac_compile") 2>&5
3805 ac_status=$?
3806 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3807 (exit $ac_status); }; then
3808 for ac_file in conftest.o conftest.obj conftest.*; do
3809 test -f "$ac_file" || continue;
3810 case $ac_file in
3811 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3812 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3813 break;;
3814 esac
3815 done
3816 else
3817 echo "$as_me: failed program was:" >&5
3818 sed 's/^/| /' conftest.$ac_ext >&5
3819
3820 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3821 See \`config.log' for more details." >&5
3822 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3823 See \`config.log' for more details." >&2;}
3824 { (exit 1); exit 1; }; }
3825 fi
3826
3827 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3828 fi
3829 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3830 echo "${ECHO_T}$ac_cv_objext" >&6; }
3831 OBJEXT=$ac_cv_objext
3832 ac_objext=$OBJEXT
3833 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3834 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3835 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3836 echo $ECHO_N "(cached) $ECHO_C" >&6
3837 else
3838 cat >conftest.$ac_ext <<_ACEOF
3839 /* confdefs.h. */
3840 _ACEOF
3841 cat confdefs.h >>conftest.$ac_ext
3842 cat >>conftest.$ac_ext <<_ACEOF
3843 /* end confdefs.h. */
3844
3845 int
3846 main ()
3847 {
3848 #ifndef __GNUC__
3849 choke me
3850 #endif
3851
3852 ;
3853 return 0;
3854 }
3855 _ACEOF
3856 rm -f conftest.$ac_objext
3857 if { (ac_try="$ac_compile"
3858 case "(($ac_try" in
3859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3860 *) ac_try_echo=$ac_try;;
3861 esac
3862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3863 (eval "$ac_compile") 2>conftest.er1
3864 ac_status=$?
3865 grep -v '^ *+' conftest.er1 >conftest.err
3866 rm -f conftest.er1
3867 cat conftest.err >&5
3868 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3869 (exit $ac_status); } && {
3870 test -z "$ac_c_werror_flag" ||
3871 test ! -s conftest.err
3872 } && test -s conftest.$ac_objext; then
3873 ac_compiler_gnu=yes
3874 else
3875 echo "$as_me: failed program was:" >&5
3876 sed 's/^/| /' conftest.$ac_ext >&5
3877
3878 ac_compiler_gnu=no
3879 fi
3880
3881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3882 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3883
3884 fi
3885 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3886 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3887 GCC=`test $ac_compiler_gnu = yes && echo yes`
3888 ac_test_CFLAGS=${CFLAGS+set}
3889 ac_save_CFLAGS=$CFLAGS
3890 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3891 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3892 if test "${ac_cv_prog_cc_g+set}" = set; then
3893 echo $ECHO_N "(cached) $ECHO_C" >&6
3894 else
3895 ac_save_c_werror_flag=$ac_c_werror_flag
3896 ac_c_werror_flag=yes
3897 ac_cv_prog_cc_g=no
3898 CFLAGS="-g"
3899 cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h. */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h. */
3905
3906 int
3907 main ()
3908 {
3909
3910 ;
3911 return 0;
3912 }
3913 _ACEOF
3914 rm -f conftest.$ac_objext
3915 if { (ac_try="$ac_compile"
3916 case "(($ac_try" in
3917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3918 *) ac_try_echo=$ac_try;;
3919 esac
3920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3921 (eval "$ac_compile") 2>conftest.er1
3922 ac_status=$?
3923 grep -v '^ *+' conftest.er1 >conftest.err
3924 rm -f conftest.er1
3925 cat conftest.err >&5
3926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3927 (exit $ac_status); } && {
3928 test -z "$ac_c_werror_flag" ||
3929 test ! -s conftest.err
3930 } && test -s conftest.$ac_objext; then
3931 ac_cv_prog_cc_g=yes
3932 else
3933 echo "$as_me: failed program was:" >&5
3934 sed 's/^/| /' conftest.$ac_ext >&5
3935
3936 CFLAGS=""
3937 cat >conftest.$ac_ext <<_ACEOF
3938 /* confdefs.h. */
3939 _ACEOF
3940 cat confdefs.h >>conftest.$ac_ext
3941 cat >>conftest.$ac_ext <<_ACEOF
3942 /* end confdefs.h. */
3943
3944 int
3945 main ()
3946 {
3947
3948 ;
3949 return 0;
3950 }
3951 _ACEOF
3952 rm -f conftest.$ac_objext
3953 if { (ac_try="$ac_compile"
3954 case "(($ac_try" in
3955 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3956 *) ac_try_echo=$ac_try;;
3957 esac
3958 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3959 (eval "$ac_compile") 2>conftest.er1
3960 ac_status=$?
3961 grep -v '^ *+' conftest.er1 >conftest.err
3962 rm -f conftest.er1
3963 cat conftest.err >&5
3964 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3965 (exit $ac_status); } && {
3966 test -z "$ac_c_werror_flag" ||
3967 test ! -s conftest.err
3968 } && test -s conftest.$ac_objext; then
3969 :
3970 else
3971 echo "$as_me: failed program was:" >&5
3972 sed 's/^/| /' conftest.$ac_ext >&5
3973
3974 ac_c_werror_flag=$ac_save_c_werror_flag
3975 CFLAGS="-g"
3976 cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h. */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h. */
3982
3983 int
3984 main ()
3985 {
3986
3987 ;
3988 return 0;
3989 }
3990 _ACEOF
3991 rm -f conftest.$ac_objext
3992 if { (ac_try="$ac_compile"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3998 (eval "$ac_compile") 2>conftest.er1
3999 ac_status=$?
4000 grep -v '^ *+' conftest.er1 >conftest.err
4001 rm -f conftest.er1
4002 cat conftest.err >&5
4003 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4004 (exit $ac_status); } && {
4005 test -z "$ac_c_werror_flag" ||
4006 test ! -s conftest.err
4007 } && test -s conftest.$ac_objext; then
4008 ac_cv_prog_cc_g=yes
4009 else
4010 echo "$as_me: failed program was:" >&5
4011 sed 's/^/| /' conftest.$ac_ext >&5
4012
4013
4014 fi
4015
4016 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4017 fi
4018
4019 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4020 fi
4021
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4023 ac_c_werror_flag=$ac_save_c_werror_flag
4024 fi
4025 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4026 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4027 if test "$ac_test_CFLAGS" = set; then
4028 CFLAGS=$ac_save_CFLAGS
4029 elif test $ac_cv_prog_cc_g = yes; then
4030 if test "$GCC" = yes; then
4031 CFLAGS="-g -O2"
4032 else
4033 CFLAGS="-g"
4034 fi
4035 else
4036 if test "$GCC" = yes; then
4037 CFLAGS="-O2"
4038 else
4039 CFLAGS=
4040 fi
4041 fi
4042 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4043 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4044 if test "${ac_cv_prog_cc_c89+set}" = set; then
4045 echo $ECHO_N "(cached) $ECHO_C" >&6
4046 else
4047 ac_cv_prog_cc_c89=no
4048 ac_save_CC=$CC
4049 cat >conftest.$ac_ext <<_ACEOF
4050 /* confdefs.h. */
4051 _ACEOF
4052 cat confdefs.h >>conftest.$ac_ext
4053 cat >>conftest.$ac_ext <<_ACEOF
4054 /* end confdefs.h. */
4055 #include <stdarg.h>
4056 #include <stdio.h>
4057 #include <sys/types.h>
4058 #include <sys/stat.h>
4059 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4060 struct buf { int x; };
4061 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4062 static char *e (p, i)
4063 char **p;
4064 int i;
4065 {
4066 return p[i];
4067 }
4068 static char *f (char * (*g) (char **, int), char **p, ...)
4069 {
4070 char *s;
4071 va_list v;
4072 va_start (v,p);
4073 s = g (p, va_arg (v,int));
4074 va_end (v);
4075 return s;
4076 }
4077
4078 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4079 function prototypes and stuff, but not '\xHH' hex character constants.
4080 These don't provoke an error unfortunately, instead are silently treated
4081 as 'x'. The following induces an error, until -std is added to get
4082 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4083 array size at least. It's necessary to write '\x00'==0 to get something
4084 that's true only with -std. */
4085 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4086
4087 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4088 inside strings and character constants. */
4089 #define FOO(x) 'x'
4090 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4091
4092 int test (int i, double x);
4093 struct s1 {int (*f) (int a);};
4094 struct s2 {int (*f) (double a);};
4095 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4096 int argc;
4097 char **argv;
4098 int
4099 main ()
4100 {
4101 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4102 ;
4103 return 0;
4104 }
4105 _ACEOF
4106 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4107 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4108 do
4109 CC="$ac_save_CC $ac_arg"
4110 rm -f conftest.$ac_objext
4111 if { (ac_try="$ac_compile"
4112 case "(($ac_try" in
4113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4114 *) ac_try_echo=$ac_try;;
4115 esac
4116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4117 (eval "$ac_compile") 2>conftest.er1
4118 ac_status=$?
4119 grep -v '^ *+' conftest.er1 >conftest.err
4120 rm -f conftest.er1
4121 cat conftest.err >&5
4122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4123 (exit $ac_status); } && {
4124 test -z "$ac_c_werror_flag" ||
4125 test ! -s conftest.err
4126 } && test -s conftest.$ac_objext; then
4127 ac_cv_prog_cc_c89=$ac_arg
4128 else
4129 echo "$as_me: failed program was:" >&5
4130 sed 's/^/| /' conftest.$ac_ext >&5
4131
4132
4133 fi
4134
4135 rm -f core conftest.err conftest.$ac_objext
4136 test "x$ac_cv_prog_cc_c89" != "xno" && break
4137 done
4138 rm -f conftest.$ac_ext
4139 CC=$ac_save_CC
4140
4141 fi
4142 # AC_CACHE_VAL
4143 case "x$ac_cv_prog_cc_c89" in
4144 x)
4145 { echo "$as_me:$LINENO: result: none needed" >&5
4146 echo "${ECHO_T}none needed" >&6; } ;;
4147 xno)
4148 { echo "$as_me:$LINENO: result: unsupported" >&5
4149 echo "${ECHO_T}unsupported" >&6; } ;;
4150 *)
4151 CC="$CC $ac_cv_prog_cc_c89"
4152 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4153 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4154 esac
4155
4156
4157 ac_ext=c
4158 ac_cpp='$CPP $CPPFLAGS'
4159 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4160 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4161 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4162
4163
4164 # On Suns, sometimes $CPP names a directory.
4165 if test -n "$CPP" && test -d "$CPP"; then
4166 CPP=
4167 fi
4168
4169 #### Some systems specify a CPP to use unless we are using GCC.
4170 #### Now that we know whether we are using GCC, we can decide whether
4171 #### to use that one.
4172 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4173 then
4174 CPP="$NON_GNU_CPP"
4175 fi
4176
4177 #### Some systems specify a CC to use unless we are using GCC.
4178 #### Now that we know whether we are using GCC, we can decide whether
4179 #### to use that one.
4180 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4181 test x$cc_specified != xyes
4182 then
4183 CC="$NON_GNU_CC"
4184 fi
4185
4186 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4187 then
4188 CC="$CC $GCC_TEST_OPTIONS"
4189 fi
4190
4191 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4192 then
4193 CC="$CC $NON_GCC_TEST_OPTIONS"
4194 fi
4195
4196
4197 ac_ext=c
4198 ac_cpp='$CPP $CPPFLAGS'
4199 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4200 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4201 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4202 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4203 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4204 # On Suns, sometimes $CPP names a directory.
4205 if test -n "$CPP" && test -d "$CPP"; then
4206 CPP=
4207 fi
4208 if test -z "$CPP"; then
4209 if test "${ac_cv_prog_CPP+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 # Double quotes because CPP needs to be expanded
4213 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4214 do
4215 ac_preproc_ok=false
4216 for ac_c_preproc_warn_flag in '' yes
4217 do
4218 # Use a header file that comes with gcc, so configuring glibc
4219 # with a fresh cross-compiler works.
4220 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4221 # <limits.h> exists even on freestanding compilers.
4222 # On the NeXT, cc -E runs the code through the compiler's parser,
4223 # not just through cpp. "Syntax error" is here to catch this case.
4224 cat >conftest.$ac_ext <<_ACEOF
4225 /* confdefs.h. */
4226 _ACEOF
4227 cat confdefs.h >>conftest.$ac_ext
4228 cat >>conftest.$ac_ext <<_ACEOF
4229 /* end confdefs.h. */
4230 #ifdef __STDC__
4231 # include <limits.h>
4232 #else
4233 # include <assert.h>
4234 #endif
4235 Syntax error
4236 _ACEOF
4237 if { (ac_try="$ac_cpp conftest.$ac_ext"
4238 case "(($ac_try" in
4239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4240 *) ac_try_echo=$ac_try;;
4241 esac
4242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4243 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4244 ac_status=$?
4245 grep -v '^ *+' conftest.er1 >conftest.err
4246 rm -f conftest.er1
4247 cat conftest.err >&5
4248 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4249 (exit $ac_status); } >/dev/null && {
4250 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4251 test ! -s conftest.err
4252 }; then
4253 :
4254 else
4255 echo "$as_me: failed program was:" >&5
4256 sed 's/^/| /' conftest.$ac_ext >&5
4257
4258 # Broken: fails on valid input.
4259 continue
4260 fi
4261
4262 rm -f conftest.err conftest.$ac_ext
4263
4264 # OK, works on sane cases. Now check whether nonexistent headers
4265 # can be detected and how.
4266 cat >conftest.$ac_ext <<_ACEOF
4267 /* confdefs.h. */
4268 _ACEOF
4269 cat confdefs.h >>conftest.$ac_ext
4270 cat >>conftest.$ac_ext <<_ACEOF
4271 /* end confdefs.h. */
4272 #include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4291 continue
4292 else
4293 echo "$as_me: failed program was:" >&5
4294 sed 's/^/| /' conftest.$ac_ext >&5
4295
4296 # Passes both tests.
4297 ac_preproc_ok=:
4298 break
4299 fi
4300
4301 rm -f conftest.err conftest.$ac_ext
4302
4303 done
4304 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4305 rm -f conftest.err conftest.$ac_ext
4306 if $ac_preproc_ok; then
4307 break
4308 fi
4309
4310 done
4311 ac_cv_prog_CPP=$CPP
4312
4313 fi
4314 CPP=$ac_cv_prog_CPP
4315 else
4316 ac_cv_prog_CPP=$CPP
4317 fi
4318 { echo "$as_me:$LINENO: result: $CPP" >&5
4319 echo "${ECHO_T}$CPP" >&6; }
4320 ac_preproc_ok=false
4321 for ac_c_preproc_warn_flag in '' yes
4322 do
4323 # Use a header file that comes with gcc, so configuring glibc
4324 # with a fresh cross-compiler works.
4325 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4326 # <limits.h> exists even on freestanding compilers.
4327 # On the NeXT, cc -E runs the code through the compiler's parser,
4328 # not just through cpp. "Syntax error" is here to catch this case.
4329 cat >conftest.$ac_ext <<_ACEOF
4330 /* confdefs.h. */
4331 _ACEOF
4332 cat confdefs.h >>conftest.$ac_ext
4333 cat >>conftest.$ac_ext <<_ACEOF
4334 /* end confdefs.h. */
4335 #ifdef __STDC__
4336 # include <limits.h>
4337 #else
4338 # include <assert.h>
4339 #endif
4340 Syntax error
4341 _ACEOF
4342 if { (ac_try="$ac_cpp conftest.$ac_ext"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } >/dev/null && {
4355 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4356 test ! -s conftest.err
4357 }; then
4358 :
4359 else
4360 echo "$as_me: failed program was:" >&5
4361 sed 's/^/| /' conftest.$ac_ext >&5
4362
4363 # Broken: fails on valid input.
4364 continue
4365 fi
4366
4367 rm -f conftest.err conftest.$ac_ext
4368
4369 # OK, works on sane cases. Now check whether nonexistent headers
4370 # can be detected and how.
4371 cat >conftest.$ac_ext <<_ACEOF
4372 /* confdefs.h. */
4373 _ACEOF
4374 cat confdefs.h >>conftest.$ac_ext
4375 cat >>conftest.$ac_ext <<_ACEOF
4376 /* end confdefs.h. */
4377 #include <ac_nonexistent.h>
4378 _ACEOF
4379 if { (ac_try="$ac_cpp conftest.$ac_ext"
4380 case "(($ac_try" in
4381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4382 *) ac_try_echo=$ac_try;;
4383 esac
4384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4385 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4386 ac_status=$?
4387 grep -v '^ *+' conftest.er1 >conftest.err
4388 rm -f conftest.er1
4389 cat conftest.err >&5
4390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4391 (exit $ac_status); } >/dev/null && {
4392 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4393 test ! -s conftest.err
4394 }; then
4395 # Broken: success on invalid input.
4396 continue
4397 else
4398 echo "$as_me: failed program was:" >&5
4399 sed 's/^/| /' conftest.$ac_ext >&5
4400
4401 # Passes both tests.
4402 ac_preproc_ok=:
4403 break
4404 fi
4405
4406 rm -f conftest.err conftest.$ac_ext
4407
4408 done
4409 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4410 rm -f conftest.err conftest.$ac_ext
4411 if $ac_preproc_ok; then
4412 :
4413 else
4414 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4415 See \`config.log' for more details." >&5
4416 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4417 See \`config.log' for more details." >&2;}
4418 { (exit 1); exit 1; }; }
4419 fi
4420
4421 ac_ext=c
4422 ac_cpp='$CPP $CPPFLAGS'
4423 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4424 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4425 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4426
4427
4428 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4429 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4430 if test "${ac_cv_path_GREP+set}" = set; then
4431 echo $ECHO_N "(cached) $ECHO_C" >&6
4432 else
4433 # Extract the first word of "grep ggrep" to use in msg output
4434 if test -z "$GREP"; then
4435 set dummy grep ggrep; ac_prog_name=$2
4436 if test "${ac_cv_path_GREP+set}" = set; then
4437 echo $ECHO_N "(cached) $ECHO_C" >&6
4438 else
4439 ac_path_GREP_found=false
4440 # Loop through the user's path and test for each of PROGNAME-LIST
4441 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4442 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4443 do
4444 IFS=$as_save_IFS
4445 test -z "$as_dir" && as_dir=.
4446 for ac_prog in grep ggrep; do
4447 for ac_exec_ext in '' $ac_executable_extensions; do
4448 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4449 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4450 # Check for GNU ac_path_GREP and select it if it is found.
4451 # Check for GNU $ac_path_GREP
4452 case `"$ac_path_GREP" --version 2>&1` in
4453 *GNU*)
4454 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4455 *)
4456 ac_count=0
4457 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4458 while :
4459 do
4460 cat "conftest.in" "conftest.in" >"conftest.tmp"
4461 mv "conftest.tmp" "conftest.in"
4462 cp "conftest.in" "conftest.nl"
4463 echo 'GREP' >> "conftest.nl"
4464 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4465 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4466 ac_count=`expr $ac_count + 1`
4467 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4468 # Best one so far, save it but keep looking for a better one
4469 ac_cv_path_GREP="$ac_path_GREP"
4470 ac_path_GREP_max=$ac_count
4471 fi
4472 # 10*(2^10) chars as input seems more than enough
4473 test $ac_count -gt 10 && break
4474 done
4475 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4476 esac
4477
4478
4479 $ac_path_GREP_found && break 3
4480 done
4481 done
4482
4483 done
4484 IFS=$as_save_IFS
4485
4486
4487 fi
4488
4489 GREP="$ac_cv_path_GREP"
4490 if test -z "$GREP"; then
4491 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4492 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4493 { (exit 1); exit 1; }; }
4494 fi
4495
4496 else
4497 ac_cv_path_GREP=$GREP
4498 fi
4499
4500
4501 fi
4502 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4503 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4504 GREP="$ac_cv_path_GREP"
4505
4506
4507 { echo "$as_me:$LINENO: checking for egrep" >&5
4508 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4509 if test "${ac_cv_path_EGREP+set}" = set; then
4510 echo $ECHO_N "(cached) $ECHO_C" >&6
4511 else
4512 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4513 then ac_cv_path_EGREP="$GREP -E"
4514 else
4515 # Extract the first word of "egrep" to use in msg output
4516 if test -z "$EGREP"; then
4517 set dummy egrep; ac_prog_name=$2
4518 if test "${ac_cv_path_EGREP+set}" = set; then
4519 echo $ECHO_N "(cached) $ECHO_C" >&6
4520 else
4521 ac_path_EGREP_found=false
4522 # Loop through the user's path and test for each of PROGNAME-LIST
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4525 do
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_prog in egrep; do
4529 for ac_exec_ext in '' $ac_executable_extensions; do
4530 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4531 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4532 # Check for GNU ac_path_EGREP and select it if it is found.
4533 # Check for GNU $ac_path_EGREP
4534 case `"$ac_path_EGREP" --version 2>&1` in
4535 *GNU*)
4536 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4537 *)
4538 ac_count=0
4539 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4540 while :
4541 do
4542 cat "conftest.in" "conftest.in" >"conftest.tmp"
4543 mv "conftest.tmp" "conftest.in"
4544 cp "conftest.in" "conftest.nl"
4545 echo 'EGREP' >> "conftest.nl"
4546 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4547 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4548 ac_count=`expr $ac_count + 1`
4549 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4550 # Best one so far, save it but keep looking for a better one
4551 ac_cv_path_EGREP="$ac_path_EGREP"
4552 ac_path_EGREP_max=$ac_count
4553 fi
4554 # 10*(2^10) chars as input seems more than enough
4555 test $ac_count -gt 10 && break
4556 done
4557 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4558 esac
4559
4560
4561 $ac_path_EGREP_found && break 3
4562 done
4563 done
4564
4565 done
4566 IFS=$as_save_IFS
4567
4568
4569 fi
4570
4571 EGREP="$ac_cv_path_EGREP"
4572 if test -z "$EGREP"; then
4573 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4574 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4575 { (exit 1); exit 1; }; }
4576 fi
4577
4578 else
4579 ac_cv_path_EGREP=$EGREP
4580 fi
4581
4582
4583 fi
4584 fi
4585 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4586 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4587 EGREP="$ac_cv_path_EGREP"
4588
4589
4590
4591 { echo "$as_me:$LINENO: checking for AIX" >&5
4592 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4593 cat >conftest.$ac_ext <<_ACEOF
4594 /* confdefs.h. */
4595 _ACEOF
4596 cat confdefs.h >>conftest.$ac_ext
4597 cat >>conftest.$ac_ext <<_ACEOF
4598 /* end confdefs.h. */
4599 #ifdef _AIX
4600 yes
4601 #endif
4602
4603 _ACEOF
4604 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4605 $EGREP "yes" >/dev/null 2>&1; then
4606 { echo "$as_me:$LINENO: result: yes" >&5
4607 echo "${ECHO_T}yes" >&6; }
4608 cat >>confdefs.h <<\_ACEOF
4609 #define _ALL_SOURCE 1
4610 _ACEOF
4611
4612 else
4613 { echo "$as_me:$LINENO: result: no" >&5
4614 echo "${ECHO_T}no" >&6; }
4615 fi
4616 rm -f conftest*
4617
4618
4619
4620 cat >>confdefs.h <<\_ACEOF
4621 #define _GNU_SOURCE 1
4622 _ACEOF
4623
4624
4625
4626 ### Use -Wno-pointer-sign if the compiler supports it
4627 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4628 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4629 SAVE_CFLAGS="$CFLAGS"
4630 CFLAGS="$CFLAGS -Wno-pointer-sign"
4631 cat >conftest.$ac_ext <<_ACEOF
4632 /* confdefs.h. */
4633 _ACEOF
4634 cat confdefs.h >>conftest.$ac_ext
4635 cat >>conftest.$ac_ext <<_ACEOF
4636 /* end confdefs.h. */
4637
4638 int
4639 main ()
4640 {
4641
4642 ;
4643 return 0;
4644 }
4645 _ACEOF
4646 rm -f conftest.$ac_objext
4647 if { (ac_try="$ac_compile"
4648 case "(($ac_try" in
4649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4650 *) ac_try_echo=$ac_try;;
4651 esac
4652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4653 (eval "$ac_compile") 2>conftest.er1
4654 ac_status=$?
4655 grep -v '^ *+' conftest.er1 >conftest.err
4656 rm -f conftest.er1
4657 cat conftest.err >&5
4658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659 (exit $ac_status); } && {
4660 test -z "$ac_c_werror_flag" ||
4661 test ! -s conftest.err
4662 } && test -s conftest.$ac_objext; then
4663 has_option=yes
4664 else
4665 echo "$as_me: failed program was:" >&5
4666 sed 's/^/| /' conftest.$ac_ext >&5
4667
4668 has_option=no
4669 fi
4670
4671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4672 if test $has_option = yes; then
4673 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4674 fi
4675 { echo "$as_me:$LINENO: result: $has_option" >&5
4676 echo "${ECHO_T}$has_option" >&6; }
4677 CFLAGS="$SAVE_CFLAGS"
4678 unset has_option
4679 unset SAVE_CFLAGS
4680
4681 #### Some other nice autoconf tests.
4682
4683 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4684 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4685 LN_S=$as_ln_s
4686 if test "$LN_S" = "ln -s"; then
4687 { echo "$as_me:$LINENO: result: yes" >&5
4688 echo "${ECHO_T}yes" >&6; }
4689 else
4690 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4691 echo "${ECHO_T}no, using $LN_S" >&6; }
4692 fi
4693
4694 ac_ext=c
4695 ac_cpp='$CPP $CPPFLAGS'
4696 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4697 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4698 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4699 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4700 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4701 # On Suns, sometimes $CPP names a directory.
4702 if test -n "$CPP" && test -d "$CPP"; then
4703 CPP=
4704 fi
4705 if test -z "$CPP"; then
4706 if test "${ac_cv_prog_CPP+set}" = set; then
4707 echo $ECHO_N "(cached) $ECHO_C" >&6
4708 else
4709 # Double quotes because CPP needs to be expanded
4710 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4711 do
4712 ac_preproc_ok=false
4713 for ac_c_preproc_warn_flag in '' yes
4714 do
4715 # Use a header file that comes with gcc, so configuring glibc
4716 # with a fresh cross-compiler works.
4717 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4718 # <limits.h> exists even on freestanding compilers.
4719 # On the NeXT, cc -E runs the code through the compiler's parser,
4720 # not just through cpp. "Syntax error" is here to catch this case.
4721 cat >conftest.$ac_ext <<_ACEOF
4722 /* confdefs.h. */
4723 _ACEOF
4724 cat confdefs.h >>conftest.$ac_ext
4725 cat >>conftest.$ac_ext <<_ACEOF
4726 /* end confdefs.h. */
4727 #ifdef __STDC__
4728 # include <limits.h>
4729 #else
4730 # include <assert.h>
4731 #endif
4732 Syntax error
4733 _ACEOF
4734 if { (ac_try="$ac_cpp conftest.$ac_ext"
4735 case "(($ac_try" in
4736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4737 *) ac_try_echo=$ac_try;;
4738 esac
4739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4740 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4741 ac_status=$?
4742 grep -v '^ *+' conftest.er1 >conftest.err
4743 rm -f conftest.er1
4744 cat conftest.err >&5
4745 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4746 (exit $ac_status); } >/dev/null && {
4747 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4748 test ! -s conftest.err
4749 }; then
4750 :
4751 else
4752 echo "$as_me: failed program was:" >&5
4753 sed 's/^/| /' conftest.$ac_ext >&5
4754
4755 # Broken: fails on valid input.
4756 continue
4757 fi
4758
4759 rm -f conftest.err conftest.$ac_ext
4760
4761 # OK, works on sane cases. Now check whether nonexistent headers
4762 # can be detected and how.
4763 cat >conftest.$ac_ext <<_ACEOF
4764 /* confdefs.h. */
4765 _ACEOF
4766 cat confdefs.h >>conftest.$ac_ext
4767 cat >>conftest.$ac_ext <<_ACEOF
4768 /* end confdefs.h. */
4769 #include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4788 continue
4789 else
4790 echo "$as_me: failed program was:" >&5
4791 sed 's/^/| /' conftest.$ac_ext >&5
4792
4793 # Passes both tests.
4794 ac_preproc_ok=:
4795 break
4796 fi
4797
4798 rm -f conftest.err conftest.$ac_ext
4799
4800 done
4801 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4802 rm -f conftest.err conftest.$ac_ext
4803 if $ac_preproc_ok; then
4804 break
4805 fi
4806
4807 done
4808 ac_cv_prog_CPP=$CPP
4809
4810 fi
4811 CPP=$ac_cv_prog_CPP
4812 else
4813 ac_cv_prog_CPP=$CPP
4814 fi
4815 { echo "$as_me:$LINENO: result: $CPP" >&5
4816 echo "${ECHO_T}$CPP" >&6; }
4817 ac_preproc_ok=false
4818 for ac_c_preproc_warn_flag in '' yes
4819 do
4820 # Use a header file that comes with gcc, so configuring glibc
4821 # with a fresh cross-compiler works.
4822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4823 # <limits.h> exists even on freestanding compilers.
4824 # On the NeXT, cc -E runs the code through the compiler's parser,
4825 # not just through cpp. "Syntax error" is here to catch this case.
4826 cat >conftest.$ac_ext <<_ACEOF
4827 /* confdefs.h. */
4828 _ACEOF
4829 cat confdefs.h >>conftest.$ac_ext
4830 cat >>conftest.$ac_ext <<_ACEOF
4831 /* end confdefs.h. */
4832 #ifdef __STDC__
4833 # include <limits.h>
4834 #else
4835 # include <assert.h>
4836 #endif
4837 Syntax error
4838 _ACEOF
4839 if { (ac_try="$ac_cpp conftest.$ac_ext"
4840 case "(($ac_try" in
4841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4842 *) ac_try_echo=$ac_try;;
4843 esac
4844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4845 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4846 ac_status=$?
4847 grep -v '^ *+' conftest.er1 >conftest.err
4848 rm -f conftest.er1
4849 cat conftest.err >&5
4850 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4851 (exit $ac_status); } >/dev/null && {
4852 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4853 test ! -s conftest.err
4854 }; then
4855 :
4856 else
4857 echo "$as_me: failed program was:" >&5
4858 sed 's/^/| /' conftest.$ac_ext >&5
4859
4860 # Broken: fails on valid input.
4861 continue
4862 fi
4863
4864 rm -f conftest.err conftest.$ac_ext
4865
4866 # OK, works on sane cases. Now check whether nonexistent headers
4867 # can be detected and how.
4868 cat >conftest.$ac_ext <<_ACEOF
4869 /* confdefs.h. */
4870 _ACEOF
4871 cat confdefs.h >>conftest.$ac_ext
4872 cat >>conftest.$ac_ext <<_ACEOF
4873 /* end confdefs.h. */
4874 #include <ac_nonexistent.h>
4875 _ACEOF
4876 if { (ac_try="$ac_cpp conftest.$ac_ext"
4877 case "(($ac_try" in
4878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4879 *) ac_try_echo=$ac_try;;
4880 esac
4881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4882 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4883 ac_status=$?
4884 grep -v '^ *+' conftest.er1 >conftest.err
4885 rm -f conftest.er1
4886 cat conftest.err >&5
4887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4888 (exit $ac_status); } >/dev/null && {
4889 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4890 test ! -s conftest.err
4891 }; then
4892 # Broken: success on invalid input.
4893 continue
4894 else
4895 echo "$as_me: failed program was:" >&5
4896 sed 's/^/| /' conftest.$ac_ext >&5
4897
4898 # Passes both tests.
4899 ac_preproc_ok=:
4900 break
4901 fi
4902
4903 rm -f conftest.err conftest.$ac_ext
4904
4905 done
4906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4907 rm -f conftest.err conftest.$ac_ext
4908 if $ac_preproc_ok; then
4909 :
4910 else
4911 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4912 See \`config.log' for more details." >&5
4913 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4914 See \`config.log' for more details." >&2;}
4915 { (exit 1); exit 1; }; }
4916 fi
4917
4918 ac_ext=c
4919 ac_cpp='$CPP $CPPFLAGS'
4920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4923
4924 # Find a good install program. We prefer a C program (faster),
4925 # so one script is as good as another. But avoid the broken or
4926 # incompatible versions:
4927 # SysV /etc/install, /usr/sbin/install
4928 # SunOS /usr/etc/install
4929 # IRIX /sbin/install
4930 # AIX /bin/install
4931 # AmigaOS /C/install, which installs bootblocks on floppy discs
4932 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4933 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4934 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4935 # OS/2's system install, which has a completely different semantic
4936 # ./install, which can be erroneously created by make from ./install.sh.
4937 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4938 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4939 if test -z "$INSTALL"; then
4940 if test "${ac_cv_path_install+set}" = set; then
4941 echo $ECHO_N "(cached) $ECHO_C" >&6
4942 else
4943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4944 for as_dir in $PATH
4945 do
4946 IFS=$as_save_IFS
4947 test -z "$as_dir" && as_dir=.
4948 # Account for people who put trailing slashes in PATH elements.
4949 case $as_dir/ in
4950 ./ | .// | /cC/* | \
4951 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4952 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4953 /usr/ucb/* ) ;;
4954 *)
4955 # OSF1 and SCO ODT 3.0 have their own names for install.
4956 # Don't use installbsd from OSF since it installs stuff as root
4957 # by default.
4958 for ac_prog in ginstall scoinst install; do
4959 for ac_exec_ext in '' $ac_executable_extensions; do
4960 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4961 if test $ac_prog = install &&
4962 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4963 # AIX install. It has an incompatible calling convention.
4964 :
4965 elif test $ac_prog = install &&
4966 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4967 # program-specific install script used by HP pwplus--don't use.
4968 :
4969 else
4970 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4971 break 3
4972 fi
4973 fi
4974 done
4975 done
4976 ;;
4977 esac
4978 done
4979 IFS=$as_save_IFS
4980
4981
4982 fi
4983 if test "${ac_cv_path_install+set}" = set; then
4984 INSTALL=$ac_cv_path_install
4985 else
4986 # As a last resort, use the slow shell script. Don't cache a
4987 # value for INSTALL within a source directory, because that will
4988 # break other packages using the cache if that directory is
4989 # removed, or if the value is a relative name.
4990 INSTALL=$ac_install_sh
4991 fi
4992 fi
4993 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4994 echo "${ECHO_T}$INSTALL" >&6; }
4995
4996 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4997 # It thinks the first close brace ends the variable substitution.
4998 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4999
5000 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5001
5002 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5003
5004 if test "x$RANLIB" = x; then
5005 if test -n "$ac_tool_prefix"; then
5006 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5007 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5008 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5009 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5010 if test "${ac_cv_prog_RANLIB+set}" = set; then
5011 echo $ECHO_N "(cached) $ECHO_C" >&6
5012 else
5013 if test -n "$RANLIB"; then
5014 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5015 else
5016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5017 for as_dir in $PATH
5018 do
5019 IFS=$as_save_IFS
5020 test -z "$as_dir" && as_dir=.
5021 for ac_exec_ext in '' $ac_executable_extensions; do
5022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5023 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5024 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5025 break 2
5026 fi
5027 done
5028 done
5029 IFS=$as_save_IFS
5030
5031 fi
5032 fi
5033 RANLIB=$ac_cv_prog_RANLIB
5034 if test -n "$RANLIB"; then
5035 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5036 echo "${ECHO_T}$RANLIB" >&6; }
5037 else
5038 { echo "$as_me:$LINENO: result: no" >&5
5039 echo "${ECHO_T}no" >&6; }
5040 fi
5041
5042
5043 fi
5044 if test -z "$ac_cv_prog_RANLIB"; then
5045 ac_ct_RANLIB=$RANLIB
5046 # Extract the first word of "ranlib", so it can be a program name with args.
5047 set dummy ranlib; ac_word=$2
5048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5050 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5051 echo $ECHO_N "(cached) $ECHO_C" >&6
5052 else
5053 if test -n "$ac_ct_RANLIB"; then
5054 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5055 else
5056 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5057 for as_dir in $PATH
5058 do
5059 IFS=$as_save_IFS
5060 test -z "$as_dir" && as_dir=.
5061 for ac_exec_ext in '' $ac_executable_extensions; do
5062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5063 ac_cv_prog_ac_ct_RANLIB="ranlib"
5064 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5065 break 2
5066 fi
5067 done
5068 done
5069 IFS=$as_save_IFS
5070
5071 fi
5072 fi
5073 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5074 if test -n "$ac_ct_RANLIB"; then
5075 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5076 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5077 else
5078 { echo "$as_me:$LINENO: result: no" >&5
5079 echo "${ECHO_T}no" >&6; }
5080 fi
5081
5082 if test "x$ac_ct_RANLIB" = x; then
5083 RANLIB=":"
5084 else
5085 case $cross_compiling:$ac_tool_warned in
5086 yes:)
5087 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5088 whose name does not start with the host triplet. If you think this
5089 configuration is useful to you, please write to autoconf@gnu.org." >&5
5090 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5091 whose name does not start with the host triplet. If you think this
5092 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5093 ac_tool_warned=yes ;;
5094 esac
5095 RANLIB=$ac_ct_RANLIB
5096 fi
5097 else
5098 RANLIB="$ac_cv_prog_RANLIB"
5099 fi
5100
5101 fi
5102 # Extract the first word of "install-info", so it can be a program name with args.
5103 set dummy install-info; ac_word=$2
5104 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5105 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5106 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5107 echo $ECHO_N "(cached) $ECHO_C" >&6
5108 else
5109 case $INSTALL_INFO in
5110 [\\/]* | ?:[\\/]*)
5111 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5112 ;;
5113 *)
5114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5115 for as_dir in $PATH
5116 do
5117 IFS=$as_save_IFS
5118 test -z "$as_dir" && as_dir=.
5119 for ac_exec_ext in '' $ac_executable_extensions; do
5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5121 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5122 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5123 break 2
5124 fi
5125 done
5126 done
5127 IFS=$as_save_IFS
5128
5129 ;;
5130 esac
5131 fi
5132 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5133 if test -n "$INSTALL_INFO"; then
5134 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5135 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5136 else
5137 { echo "$as_me:$LINENO: result: no" >&5
5138 echo "${ECHO_T}no" >&6; }
5139 fi
5140
5141
5142 # Extract the first word of "install-info", so it can be a program name with args.
5143 set dummy install-info; ac_word=$2
5144 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5145 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5146 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5147 echo $ECHO_N "(cached) $ECHO_C" >&6
5148 else
5149 case $INSTALL_INFO in
5150 [\\/]* | ?:[\\/]*)
5151 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5152 ;;
5153 *)
5154 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5155 for as_dir in /usr/sbin
5156 do
5157 IFS=$as_save_IFS
5158 test -z "$as_dir" && as_dir=.
5159 for ac_exec_ext in '' $ac_executable_extensions; do
5160 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5161 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5162 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5163 break 2
5164 fi
5165 done
5166 done
5167 IFS=$as_save_IFS
5168
5169 ;;
5170 esac
5171 fi
5172 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5173 if test -n "$INSTALL_INFO"; then
5174 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5175 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5176 else
5177 { echo "$as_me:$LINENO: result: no" >&5
5178 echo "${ECHO_T}no" >&6; }
5179 fi
5180
5181
5182 # Extract the first word of "install-info", so it can be a program name with args.
5183 set dummy install-info; ac_word=$2
5184 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5185 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5186 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5187 echo $ECHO_N "(cached) $ECHO_C" >&6
5188 else
5189 case $INSTALL_INFO in
5190 [\\/]* | ?:[\\/]*)
5191 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5192 ;;
5193 *)
5194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5195 for as_dir in /sbin
5196 do
5197 IFS=$as_save_IFS
5198 test -z "$as_dir" && as_dir=.
5199 for ac_exec_ext in '' $ac_executable_extensions; do
5200 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5201 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5202 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5203 break 2
5204 fi
5205 done
5206 done
5207 IFS=$as_save_IFS
5208
5209 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5210 ;;
5211 esac
5212 fi
5213 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5214 if test -n "$INSTALL_INFO"; then
5215 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5216 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5217 else
5218 { echo "$as_me:$LINENO: result: no" >&5
5219 echo "${ECHO_T}no" >&6; }
5220 fi
5221
5222
5223 # Extract the first word of "gzip", so it can be a program name with args.
5224 set dummy gzip; ac_word=$2
5225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5227 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5228 echo $ECHO_N "(cached) $ECHO_C" >&6
5229 else
5230 case $GZIP_PROG in
5231 [\\/]* | ?:[\\/]*)
5232 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5233 ;;
5234 *)
5235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5236 for as_dir in $PATH
5237 do
5238 IFS=$as_save_IFS
5239 test -z "$as_dir" && as_dir=.
5240 for ac_exec_ext in '' $ac_executable_extensions; do
5241 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5242 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5243 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5244 break 2
5245 fi
5246 done
5247 done
5248 IFS=$as_save_IFS
5249
5250 ;;
5251 esac
5252 fi
5253 GZIP_PROG=$ac_cv_path_GZIP_PROG
5254 if test -n "$GZIP_PROG"; then
5255 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5256 echo "${ECHO_T}$GZIP_PROG" >&6; }
5257 else
5258 { echo "$as_me:$LINENO: result: no" >&5
5259 echo "${ECHO_T}no" >&6; }
5260 fi
5261
5262
5263
5264
5265 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5266 then
5267 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5268 fi
5269
5270 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5271 then
5272 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5273 fi
5274
5275
5276 late_LDFLAGS=$LDFLAGS
5277 if test "$GCC" = yes; then
5278 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5279 else
5280 LDFLAGS="$LDFLAGS -znocombreloc"
5281 fi
5282
5283 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5284 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5285 cat >conftest.$ac_ext <<_ACEOF
5286 main(){return 0;}
5287 _ACEOF
5288 rm -f conftest.$ac_objext conftest$ac_exeext
5289 if { (ac_try="$ac_link"
5290 case "(($ac_try" in
5291 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5292 *) ac_try_echo=$ac_try;;
5293 esac
5294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5295 (eval "$ac_link") 2>conftest.er1
5296 ac_status=$?
5297 grep -v '^ *+' conftest.er1 >conftest.err
5298 rm -f conftest.er1
5299 cat conftest.err >&5
5300 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5301 (exit $ac_status); } && {
5302 test -z "$ac_c_werror_flag" ||
5303 test ! -s conftest.err
5304 } && test -s conftest$ac_exeext &&
5305 $as_test_x conftest$ac_exeext; then
5306 { echo "$as_me:$LINENO: result: yes" >&5
5307 echo "${ECHO_T}yes" >&6; }
5308 else
5309 echo "$as_me: failed program was:" >&5
5310 sed 's/^/| /' conftest.$ac_ext >&5
5311
5312 LDFLAGS=$late_LDFLAGS
5313 { echo "$as_me:$LINENO: result: no" >&5
5314 echo "${ECHO_T}no" >&6; }
5315 fi
5316
5317 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5318 conftest$ac_exeext conftest.$ac_ext
5319
5320 #### Extract some information from the operating system and machine files.
5321
5322 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5323 - which libraries the lib-src programs will want, and
5324 - whether the GNU malloc routines are usable..." >&5
5325 echo "$as_me: checking the machine- and system-dependent files to find out
5326 - which libraries the lib-src programs will want, and
5327 - whether the GNU malloc routines are usable..." >&6;}
5328
5329 ### First figure out CFLAGS (which we use for running the compiler here)
5330 ### and REAL_CFLAGS (which we use for real compilation).
5331 ### The two are the same except on a few systems, where they are made
5332 ### different to work around various lossages. For example,
5333 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5334 ### as implying static linking.
5335
5336 ### If the CFLAGS env var is specified, we use that value
5337 ### instead of the default.
5338
5339 ### It's not important that this name contain the PID; you can't run
5340 ### two configures in the same directory and have anything work
5341 ### anyway.
5342 tempcname="conftest.c"
5343
5344 echo '
5345 #include "'${srcdir}'/src/'${opsysfile}'"
5346 #include "'${srcdir}'/src/'${machfile}'"
5347 #ifndef LIBS_MACHINE
5348 #define LIBS_MACHINE
5349 #endif
5350 #ifndef LIBS_SYSTEM
5351 #define LIBS_SYSTEM
5352 #endif
5353 #ifndef C_SWITCH_SYSTEM
5354 #define C_SWITCH_SYSTEM
5355 #endif
5356 #ifndef C_SWITCH_MACHINE
5357 #define C_SWITCH_MACHINE
5358 #endif
5359 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5360 configure___ c_switch_system=C_SWITCH_SYSTEM
5361 configure___ c_switch_machine=C_SWITCH_MACHINE
5362
5363 #ifndef LIB_X11_LIB
5364 #define LIB_X11_LIB -lX11
5365 #endif
5366
5367 #ifndef LIBX11_MACHINE
5368 #define LIBX11_MACHINE
5369 #endif
5370
5371 #ifndef LIBX11_SYSTEM
5372 #define LIBX11_SYSTEM
5373 #endif
5374 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5375
5376 #ifdef UNEXEC
5377 configure___ unexec=UNEXEC
5378 #else
5379 configure___ unexec=unexec.o
5380 #endif
5381
5382 #ifdef SYSTEM_MALLOC
5383 configure___ system_malloc=yes
5384 #else
5385 configure___ system_malloc=no
5386 #endif
5387
5388 #ifdef USE_MMAP_FOR_BUFFERS
5389 configure___ use_mmap_for_buffers=yes
5390 #else
5391 configure___ use_mmap_for_buffers=no
5392 #endif
5393
5394 #ifndef C_DEBUG_SWITCH
5395 #define C_DEBUG_SWITCH -g
5396 #endif
5397
5398 #ifndef C_OPTIMIZE_SWITCH
5399 #ifdef __GNUC__
5400 #define C_OPTIMIZE_SWITCH -O2
5401 #else
5402 #define C_OPTIMIZE_SWITCH -O
5403 #endif
5404 #endif
5405
5406 #ifndef C_WARNINGS_SWITCH
5407 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5408 #endif
5409
5410 #ifndef LD_SWITCH_MACHINE
5411 #define LD_SWITCH_MACHINE
5412 #endif
5413
5414 #ifndef LD_SWITCH_SYSTEM
5415 #define LD_SWITCH_SYSTEM
5416 #endif
5417
5418 #ifndef LD_SWITCH_X_SITE_AUX
5419 #define LD_SWITCH_X_SITE_AUX
5420 #endif
5421
5422 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5423 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5424
5425 #ifdef THIS_IS_CONFIGURE
5426
5427 /* Get the CFLAGS for tests in configure. */
5428 #ifdef __GNUC__
5429 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5430 #else
5431 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5432 #endif
5433
5434 #else /* not THIS_IS_CONFIGURE */
5435
5436 /* Get the CFLAGS for real compilation. */
5437 #ifdef __GNUC__
5438 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5439 #else
5440 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5441 #endif
5442
5443 #endif /* not THIS_IS_CONFIGURE */
5444 ' > ${tempcname}
5445
5446 # The value of CPP is a quoted variable reference, so we need to do this
5447 # to get its actual value...
5448 CPP=`eval "echo $CPP"`
5449 eval `${CPP} -Isrc ${tempcname} \
5450 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5451 if test "x$SPECIFIED_CFLAGS" = x; then
5452 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5453 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5454 else
5455 REAL_CFLAGS="$CFLAGS"
5456 fi
5457 rm ${tempcname}
5458
5459 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5460
5461 ### Make sure subsequent tests use flags consistent with the build flags.
5462
5463 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5464 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5465 else
5466 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5467 fi
5468
5469
5470
5471 # Check whether --enable-largefile was given.
5472 if test "${enable_largefile+set}" = set; then
5473 enableval=$enable_largefile;
5474 fi
5475
5476 if test "$enable_largefile" != no; then
5477
5478 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5479 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5480 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5481 echo $ECHO_N "(cached) $ECHO_C" >&6
5482 else
5483 ac_cv_sys_largefile_CC=no
5484 if test "$GCC" != yes; then
5485 ac_save_CC=$CC
5486 while :; do
5487 # IRIX 6.2 and later do not support large files by default,
5488 # so use the C compiler's -n32 option if that helps.
5489 cat >conftest.$ac_ext <<_ACEOF
5490 /* confdefs.h. */
5491 _ACEOF
5492 cat confdefs.h >>conftest.$ac_ext
5493 cat >>conftest.$ac_ext <<_ACEOF
5494 /* end confdefs.h. */
5495 #include <sys/types.h>
5496 /* Check that off_t can represent 2**63 - 1 correctly.
5497 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5498 since some C++ compilers masquerading as C compilers
5499 incorrectly reject 9223372036854775807. */
5500 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5501 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5502 && LARGE_OFF_T % 2147483647 == 1)
5503 ? 1 : -1];
5504 int
5505 main ()
5506 {
5507
5508 ;
5509 return 0;
5510 }
5511 _ACEOF
5512 rm -f conftest.$ac_objext
5513 if { (ac_try="$ac_compile"
5514 case "(($ac_try" in
5515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5516 *) ac_try_echo=$ac_try;;
5517 esac
5518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5519 (eval "$ac_compile") 2>conftest.er1
5520 ac_status=$?
5521 grep -v '^ *+' conftest.er1 >conftest.err
5522 rm -f conftest.er1
5523 cat conftest.err >&5
5524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5525 (exit $ac_status); } && {
5526 test -z "$ac_c_werror_flag" ||
5527 test ! -s conftest.err
5528 } && test -s conftest.$ac_objext; then
5529 break
5530 else
5531 echo "$as_me: failed program was:" >&5
5532 sed 's/^/| /' conftest.$ac_ext >&5
5533
5534
5535 fi
5536
5537 rm -f core conftest.err conftest.$ac_objext
5538 CC="$CC -n32"
5539 rm -f conftest.$ac_objext
5540 if { (ac_try="$ac_compile"
5541 case "(($ac_try" in
5542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5543 *) ac_try_echo=$ac_try;;
5544 esac
5545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5546 (eval "$ac_compile") 2>conftest.er1
5547 ac_status=$?
5548 grep -v '^ *+' conftest.er1 >conftest.err
5549 rm -f conftest.er1
5550 cat conftest.err >&5
5551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5552 (exit $ac_status); } && {
5553 test -z "$ac_c_werror_flag" ||
5554 test ! -s conftest.err
5555 } && test -s conftest.$ac_objext; then
5556 ac_cv_sys_largefile_CC=' -n32'; break
5557 else
5558 echo "$as_me: failed program was:" >&5
5559 sed 's/^/| /' conftest.$ac_ext >&5
5560
5561
5562 fi
5563
5564 rm -f core conftest.err conftest.$ac_objext
5565 break
5566 done
5567 CC=$ac_save_CC
5568 rm -f conftest.$ac_ext
5569 fi
5570 fi
5571 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5572 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5573 if test "$ac_cv_sys_largefile_CC" != no; then
5574 CC=$CC$ac_cv_sys_largefile_CC
5575 fi
5576
5577 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5578 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5579 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5580 echo $ECHO_N "(cached) $ECHO_C" >&6
5581 else
5582 while :; do
5583 cat >conftest.$ac_ext <<_ACEOF
5584 /* confdefs.h. */
5585 _ACEOF
5586 cat confdefs.h >>conftest.$ac_ext
5587 cat >>conftest.$ac_ext <<_ACEOF
5588 /* end confdefs.h. */
5589 #include <sys/types.h>
5590 /* Check that off_t can represent 2**63 - 1 correctly.
5591 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5592 since some C++ compilers masquerading as C compilers
5593 incorrectly reject 9223372036854775807. */
5594 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5595 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5596 && LARGE_OFF_T % 2147483647 == 1)
5597 ? 1 : -1];
5598 int
5599 main ()
5600 {
5601
5602 ;
5603 return 0;
5604 }
5605 _ACEOF
5606 rm -f conftest.$ac_objext
5607 if { (ac_try="$ac_compile"
5608 case "(($ac_try" in
5609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5610 *) ac_try_echo=$ac_try;;
5611 esac
5612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5613 (eval "$ac_compile") 2>conftest.er1
5614 ac_status=$?
5615 grep -v '^ *+' conftest.er1 >conftest.err
5616 rm -f conftest.er1
5617 cat conftest.err >&5
5618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5619 (exit $ac_status); } && {
5620 test -z "$ac_c_werror_flag" ||
5621 test ! -s conftest.err
5622 } && test -s conftest.$ac_objext; then
5623 ac_cv_sys_file_offset_bits=no; break
5624 else
5625 echo "$as_me: failed program was:" >&5
5626 sed 's/^/| /' conftest.$ac_ext >&5
5627
5628
5629 fi
5630
5631 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5632 cat >conftest.$ac_ext <<_ACEOF
5633 /* confdefs.h. */
5634 _ACEOF
5635 cat confdefs.h >>conftest.$ac_ext
5636 cat >>conftest.$ac_ext <<_ACEOF
5637 /* end confdefs.h. */
5638 #define _FILE_OFFSET_BITS 64
5639 #include <sys/types.h>
5640 /* Check that off_t can represent 2**63 - 1 correctly.
5641 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5642 since some C++ compilers masquerading as C compilers
5643 incorrectly reject 9223372036854775807. */
5644 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5645 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5646 && LARGE_OFF_T % 2147483647 == 1)
5647 ? 1 : -1];
5648 int
5649 main ()
5650 {
5651
5652 ;
5653 return 0;
5654 }
5655 _ACEOF
5656 rm -f conftest.$ac_objext
5657 if { (ac_try="$ac_compile"
5658 case "(($ac_try" in
5659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5660 *) ac_try_echo=$ac_try;;
5661 esac
5662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5663 (eval "$ac_compile") 2>conftest.er1
5664 ac_status=$?
5665 grep -v '^ *+' conftest.er1 >conftest.err
5666 rm -f conftest.er1
5667 cat conftest.err >&5
5668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5669 (exit $ac_status); } && {
5670 test -z "$ac_c_werror_flag" ||
5671 test ! -s conftest.err
5672 } && test -s conftest.$ac_objext; then
5673 ac_cv_sys_file_offset_bits=64; break
5674 else
5675 echo "$as_me: failed program was:" >&5
5676 sed 's/^/| /' conftest.$ac_ext >&5
5677
5678
5679 fi
5680
5681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5682 ac_cv_sys_file_offset_bits=unknown
5683 break
5684 done
5685 fi
5686 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5687 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5688 case $ac_cv_sys_file_offset_bits in #(
5689 no | unknown) ;;
5690 *)
5691 cat >>confdefs.h <<_ACEOF
5692 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5693 _ACEOF
5694 ;;
5695 esac
5696 rm -f conftest*
5697 if test $ac_cv_sys_file_offset_bits = unknown; then
5698 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5699 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5700 if test "${ac_cv_sys_large_files+set}" = set; then
5701 echo $ECHO_N "(cached) $ECHO_C" >&6
5702 else
5703 while :; do
5704 cat >conftest.$ac_ext <<_ACEOF
5705 /* confdefs.h. */
5706 _ACEOF
5707 cat confdefs.h >>conftest.$ac_ext
5708 cat >>conftest.$ac_ext <<_ACEOF
5709 /* end confdefs.h. */
5710 #include <sys/types.h>
5711 /* Check that off_t can represent 2**63 - 1 correctly.
5712 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5713 since some C++ compilers masquerading as C compilers
5714 incorrectly reject 9223372036854775807. */
5715 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5716 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5717 && LARGE_OFF_T % 2147483647 == 1)
5718 ? 1 : -1];
5719 int
5720 main ()
5721 {
5722
5723 ;
5724 return 0;
5725 }
5726 _ACEOF
5727 rm -f conftest.$ac_objext
5728 if { (ac_try="$ac_compile"
5729 case "(($ac_try" in
5730 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5731 *) ac_try_echo=$ac_try;;
5732 esac
5733 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5734 (eval "$ac_compile") 2>conftest.er1
5735 ac_status=$?
5736 grep -v '^ *+' conftest.er1 >conftest.err
5737 rm -f conftest.er1
5738 cat conftest.err >&5
5739 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5740 (exit $ac_status); } && {
5741 test -z "$ac_c_werror_flag" ||
5742 test ! -s conftest.err
5743 } && test -s conftest.$ac_objext; then
5744 ac_cv_sys_large_files=no; break
5745 else
5746 echo "$as_me: failed program was:" >&5
5747 sed 's/^/| /' conftest.$ac_ext >&5
5748
5749
5750 fi
5751
5752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5753 cat >conftest.$ac_ext <<_ACEOF
5754 /* confdefs.h. */
5755 _ACEOF
5756 cat confdefs.h >>conftest.$ac_ext
5757 cat >>conftest.$ac_ext <<_ACEOF
5758 /* end confdefs.h. */
5759 #define _LARGE_FILES 1
5760 #include <sys/types.h>
5761 /* Check that off_t can represent 2**63 - 1 correctly.
5762 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5763 since some C++ compilers masquerading as C compilers
5764 incorrectly reject 9223372036854775807. */
5765 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5766 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5767 && LARGE_OFF_T % 2147483647 == 1)
5768 ? 1 : -1];
5769 int
5770 main ()
5771 {
5772
5773 ;
5774 return 0;
5775 }
5776 _ACEOF
5777 rm -f conftest.$ac_objext
5778 if { (ac_try="$ac_compile"
5779 case "(($ac_try" in
5780 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5781 *) ac_try_echo=$ac_try;;
5782 esac
5783 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5784 (eval "$ac_compile") 2>conftest.er1
5785 ac_status=$?
5786 grep -v '^ *+' conftest.er1 >conftest.err
5787 rm -f conftest.er1
5788 cat conftest.err >&5
5789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5790 (exit $ac_status); } && {
5791 test -z "$ac_c_werror_flag" ||
5792 test ! -s conftest.err
5793 } && test -s conftest.$ac_objext; then
5794 ac_cv_sys_large_files=1; break
5795 else
5796 echo "$as_me: failed program was:" >&5
5797 sed 's/^/| /' conftest.$ac_ext >&5
5798
5799
5800 fi
5801
5802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5803 ac_cv_sys_large_files=unknown
5804 break
5805 done
5806 fi
5807 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5808 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5809 case $ac_cv_sys_large_files in #(
5810 no | unknown) ;;
5811 *)
5812 cat >>confdefs.h <<_ACEOF
5813 #define _LARGE_FILES $ac_cv_sys_large_files
5814 _ACEOF
5815 ;;
5816 esac
5817 rm -f conftest*
5818 fi
5819 fi
5820
5821
5822
5823 ### The standard library on x86-64 GNU/Linux distributions can
5824 ### be located in either /usr/lib64 or /usr/lib.
5825 case "${canonical}" in
5826 x86_64-*-linux-gnu* )
5827 if test -d /usr/lib64; then
5828
5829 cat >>confdefs.h <<\_ACEOF
5830 #define HAVE_X86_64_LIB64_DIR 1
5831 _ACEOF
5832
5833 fi
5834 esac
5835
5836
5837
5838
5839 if test "${with_sound}" != "no"; then
5840 # Sound support for GNU/Linux and the free BSDs.
5841 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5842 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5843 if test "${ac_cv_header_stdc+set}" = set; then
5844 echo $ECHO_N "(cached) $ECHO_C" >&6
5845 else
5846 cat >conftest.$ac_ext <<_ACEOF
5847 /* confdefs.h. */
5848 _ACEOF
5849 cat confdefs.h >>conftest.$ac_ext
5850 cat >>conftest.$ac_ext <<_ACEOF
5851 /* end confdefs.h. */
5852 #include <stdlib.h>
5853 #include <stdarg.h>
5854 #include <string.h>
5855 #include <float.h>
5856
5857 int
5858 main ()
5859 {
5860
5861 ;
5862 return 0;
5863 }
5864 _ACEOF
5865 rm -f conftest.$ac_objext
5866 if { (ac_try="$ac_compile"
5867 case "(($ac_try" in
5868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5869 *) ac_try_echo=$ac_try;;
5870 esac
5871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5872 (eval "$ac_compile") 2>conftest.er1
5873 ac_status=$?
5874 grep -v '^ *+' conftest.er1 >conftest.err
5875 rm -f conftest.er1
5876 cat conftest.err >&5
5877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5878 (exit $ac_status); } && {
5879 test -z "$ac_c_werror_flag" ||
5880 test ! -s conftest.err
5881 } && test -s conftest.$ac_objext; then
5882 ac_cv_header_stdc=yes
5883 else
5884 echo "$as_me: failed program was:" >&5
5885 sed 's/^/| /' conftest.$ac_ext >&5
5886
5887 ac_cv_header_stdc=no
5888 fi
5889
5890 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5891
5892 if test $ac_cv_header_stdc = yes; then
5893 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5894 cat >conftest.$ac_ext <<_ACEOF
5895 /* confdefs.h. */
5896 _ACEOF
5897 cat confdefs.h >>conftest.$ac_ext
5898 cat >>conftest.$ac_ext <<_ACEOF
5899 /* end confdefs.h. */
5900 #include <string.h>
5901
5902 _ACEOF
5903 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5904 $EGREP "memchr" >/dev/null 2>&1; then
5905 :
5906 else
5907 ac_cv_header_stdc=no
5908 fi
5909 rm -f conftest*
5910
5911 fi
5912
5913 if test $ac_cv_header_stdc = yes; then
5914 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #include <stdlib.h>
5922
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "free" >/dev/null 2>&1; then
5926 :
5927 else
5928 ac_cv_header_stdc=no
5929 fi
5930 rm -f conftest*
5931
5932 fi
5933
5934 if test $ac_cv_header_stdc = yes; then
5935 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5936 if test "$cross_compiling" = yes; then
5937 :
5938 else
5939 cat >conftest.$ac_ext <<_ACEOF
5940 /* confdefs.h. */
5941 _ACEOF
5942 cat confdefs.h >>conftest.$ac_ext
5943 cat >>conftest.$ac_ext <<_ACEOF
5944 /* end confdefs.h. */
5945 #include <ctype.h>
5946 #include <stdlib.h>
5947 #if ((' ' & 0x0FF) == 0x020)
5948 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5949 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5950 #else
5951 # define ISLOWER(c) \
5952 (('a' <= (c) && (c) <= 'i') \
5953 || ('j' <= (c) && (c) <= 'r') \
5954 || ('s' <= (c) && (c) <= 'z'))
5955 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5956 #endif
5957
5958 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5959 int
5960 main ()
5961 {
5962 int i;
5963 for (i = 0; i < 256; i++)
5964 if (XOR (islower (i), ISLOWER (i))
5965 || toupper (i) != TOUPPER (i))
5966 return 2;
5967 return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest$ac_exeext
5971 if { (ac_try="$ac_link"
5972 case "(($ac_try" in
5973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974 *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977 (eval "$ac_link") 2>&5
5978 ac_status=$?
5979 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5980 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
5981 { (case "(($ac_try" in
5982 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5983 *) ac_try_echo=$ac_try;;
5984 esac
5985 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5986 (eval "$ac_try") 2>&5
5987 ac_status=$?
5988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5989 (exit $ac_status); }; }; then
5990 :
5991 else
5992 echo "$as_me: program exited with status $ac_status" >&5
5993 echo "$as_me: failed program was:" >&5
5994 sed 's/^/| /' conftest.$ac_ext >&5
5995
5996 ( exit $ac_status )
5997 ac_cv_header_stdc=no
5998 fi
5999 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6000 fi
6001
6002
6003 fi
6004 fi
6005 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6006 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6007 if test $ac_cv_header_stdc = yes; then
6008
6009 cat >>confdefs.h <<\_ACEOF
6010 #define STDC_HEADERS 1
6011 _ACEOF
6012
6013 fi
6014
6015 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6016
6017
6018
6019
6020
6021
6022
6023
6024
6025 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6026 inttypes.h stdint.h unistd.h
6027 do
6028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6029 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6030 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6031 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6032 echo $ECHO_N "(cached) $ECHO_C" >&6
6033 else
6034 cat >conftest.$ac_ext <<_ACEOF
6035 /* confdefs.h. */
6036 _ACEOF
6037 cat confdefs.h >>conftest.$ac_ext
6038 cat >>conftest.$ac_ext <<_ACEOF
6039 /* end confdefs.h. */
6040 $ac_includes_default
6041
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 eval "$as_ac_Header=yes"
6062 else
6063 echo "$as_me: failed program was:" >&5
6064 sed 's/^/| /' conftest.$ac_ext >&5
6065
6066 eval "$as_ac_Header=no"
6067 fi
6068
6069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6070 fi
6071 ac_res=`eval echo '${'$as_ac_Header'}'`
6072 { echo "$as_me:$LINENO: result: $ac_res" >&5
6073 echo "${ECHO_T}$ac_res" >&6; }
6074 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6075 cat >>confdefs.h <<_ACEOF
6076 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6077 _ACEOF
6078
6079 fi
6080
6081 done
6082
6083
6084
6085
6086
6087 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6088 do
6089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6094 echo $ECHO_N "(cached) $ECHO_C" >&6
6095 fi
6096 ac_res=`eval echo '${'$as_ac_Header'}'`
6097 { echo "$as_me:$LINENO: result: $ac_res" >&5
6098 echo "${ECHO_T}$ac_res" >&6; }
6099 else
6100 # Is the header compilable?
6101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6103 cat >conftest.$ac_ext <<_ACEOF
6104 /* confdefs.h. */
6105 _ACEOF
6106 cat confdefs.h >>conftest.$ac_ext
6107 cat >>conftest.$ac_ext <<_ACEOF
6108 /* end confdefs.h. */
6109 $ac_includes_default
6110 #include <$ac_header>
6111 _ACEOF
6112 rm -f conftest.$ac_objext
6113 if { (ac_try="$ac_compile"
6114 case "(($ac_try" in
6115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6116 *) ac_try_echo=$ac_try;;
6117 esac
6118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6119 (eval "$ac_compile") 2>conftest.er1
6120 ac_status=$?
6121 grep -v '^ *+' conftest.er1 >conftest.err
6122 rm -f conftest.er1
6123 cat conftest.err >&5
6124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6125 (exit $ac_status); } && {
6126 test -z "$ac_c_werror_flag" ||
6127 test ! -s conftest.err
6128 } && test -s conftest.$ac_objext; then
6129 ac_header_compiler=yes
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 ac_header_compiler=no
6135 fi
6136
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6139 echo "${ECHO_T}$ac_header_compiler" >&6; }
6140
6141 # Is the header present?
6142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6144 cat >conftest.$ac_ext <<_ACEOF
6145 /* confdefs.h. */
6146 _ACEOF
6147 cat confdefs.h >>conftest.$ac_ext
6148 cat >>conftest.$ac_ext <<_ACEOF
6149 /* end confdefs.h. */
6150 #include <$ac_header>
6151 _ACEOF
6152 if { (ac_try="$ac_cpp conftest.$ac_ext"
6153 case "(($ac_try" in
6154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6155 *) ac_try_echo=$ac_try;;
6156 esac
6157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6159 ac_status=$?
6160 grep -v '^ *+' conftest.er1 >conftest.err
6161 rm -f conftest.er1
6162 cat conftest.err >&5
6163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6164 (exit $ac_status); } >/dev/null && {
6165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6166 test ! -s conftest.err
6167 }; then
6168 ac_header_preproc=yes
6169 else
6170 echo "$as_me: failed program was:" >&5
6171 sed 's/^/| /' conftest.$ac_ext >&5
6172
6173 ac_header_preproc=no
6174 fi
6175
6176 rm -f conftest.err conftest.$ac_ext
6177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6178 echo "${ECHO_T}$ac_header_preproc" >&6; }
6179
6180 # So? What about this header?
6181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6182 yes:no: )
6183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6187 ac_header_preproc=yes
6188 ;;
6189 no:yes:* )
6190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6202
6203 ;;
6204 esac
6205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6208 echo $ECHO_N "(cached) $ECHO_C" >&6
6209 else
6210 eval "$as_ac_Header=\$ac_header_preproc"
6211 fi
6212 ac_res=`eval echo '${'$as_ac_Header'}'`
6213 { echo "$as_me:$LINENO: result: $ac_res" >&5
6214 echo "${ECHO_T}$ac_res" >&6; }
6215
6216 fi
6217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6218 cat >>confdefs.h <<_ACEOF
6219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6220 _ACEOF
6221
6222 fi
6223
6224 done
6225
6226 # Emulation library used on NetBSD.
6227 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6228 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6229 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6230 echo $ECHO_N "(cached) $ECHO_C" >&6
6231 else
6232 ac_check_lib_save_LIBS=$LIBS
6233 LIBS="-lossaudio $LIBS"
6234 cat >conftest.$ac_ext <<_ACEOF
6235 /* confdefs.h. */
6236 _ACEOF
6237 cat confdefs.h >>conftest.$ac_ext
6238 cat >>conftest.$ac_ext <<_ACEOF
6239 /* end confdefs.h. */
6240
6241 /* Override any GCC internal prototype to avoid an error.
6242 Use char because int might match the return type of a GCC
6243 builtin and then its argument prototype would still apply. */
6244 #ifdef __cplusplus
6245 extern "C"
6246 #endif
6247 char _oss_ioctl ();
6248 int
6249 main ()
6250 {
6251 return _oss_ioctl ();
6252 ;
6253 return 0;
6254 }
6255 _ACEOF
6256 rm -f conftest.$ac_objext conftest$ac_exeext
6257 if { (ac_try="$ac_link"
6258 case "(($ac_try" in
6259 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6260 *) ac_try_echo=$ac_try;;
6261 esac
6262 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6263 (eval "$ac_link") 2>conftest.er1
6264 ac_status=$?
6265 grep -v '^ *+' conftest.er1 >conftest.err
6266 rm -f conftest.er1
6267 cat conftest.err >&5
6268 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6269 (exit $ac_status); } && {
6270 test -z "$ac_c_werror_flag" ||
6271 test ! -s conftest.err
6272 } && test -s conftest$ac_exeext &&
6273 $as_test_x conftest$ac_exeext; then
6274 ac_cv_lib_ossaudio__oss_ioctl=yes
6275 else
6276 echo "$as_me: failed program was:" >&5
6277 sed 's/^/| /' conftest.$ac_ext >&5
6278
6279 ac_cv_lib_ossaudio__oss_ioctl=no
6280 fi
6281
6282 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6283 conftest$ac_exeext conftest.$ac_ext
6284 LIBS=$ac_check_lib_save_LIBS
6285 fi
6286 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6287 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6288 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6289 LIBSOUND=-lossaudio
6290 else
6291 LIBSOUND=
6292 fi
6293
6294
6295
6296 ALSA_REQUIRED=1.0.0
6297 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6298 if test "X${with_pkg_config_prog}" != X; then
6299 PKG_CONFIG="${with_pkg_config_prog}"
6300 fi
6301
6302 succeeded=no
6303
6304 if test -z "$PKG_CONFIG"; then
6305 # Extract the first word of "pkg-config", so it can be a program name with args.
6306 set dummy pkg-config; ac_word=$2
6307 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6308 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6309 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6310 echo $ECHO_N "(cached) $ECHO_C" >&6
6311 else
6312 case $PKG_CONFIG in
6313 [\\/]* | ?:[\\/]*)
6314 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6315 ;;
6316 *)
6317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6318 for as_dir in $PATH
6319 do
6320 IFS=$as_save_IFS
6321 test -z "$as_dir" && as_dir=.
6322 for ac_exec_ext in '' $ac_executable_extensions; do
6323 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6324 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6325 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6326 break 2
6327 fi
6328 done
6329 done
6330 IFS=$as_save_IFS
6331
6332 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6333 ;;
6334 esac
6335 fi
6336 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6337 if test -n "$PKG_CONFIG"; then
6338 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6339 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6340 else
6341 { echo "$as_me:$LINENO: result: no" >&5
6342 echo "${ECHO_T}no" >&6; }
6343 fi
6344
6345
6346 fi
6347
6348 if test "$PKG_CONFIG" = "no" ; then
6349 HAVE_ALSA=no
6350 else
6351 PKG_CONFIG_MIN_VERSION=0.9.0
6352 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6353 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6354 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6355
6356 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6357 { echo "$as_me:$LINENO: result: yes" >&5
6358 echo "${ECHO_T}yes" >&6; }
6359 succeeded=yes
6360
6361 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6362 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6363 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"`
6364 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6365 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6366
6367 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6368 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6369 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"`
6370 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6371 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6372 else
6373 { echo "$as_me:$LINENO: result: no" >&5
6374 echo "${ECHO_T}no" >&6; }
6375 ALSA_CFLAGS=""
6376 ALSA_LIBS=""
6377 ## If we have a custom action on failure, don't print errors, but
6378 ## do set a variable so people can do so.
6379 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6380
6381 fi
6382
6383
6384
6385 else
6386 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6387 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6388 fi
6389 fi
6390
6391 if test $succeeded = yes; then
6392 HAVE_ALSA=yes
6393 else
6394 HAVE_ALSA=no
6395 fi
6396
6397 if test $HAVE_ALSA = yes; then
6398 SAVE_CFLAGS="$CFLAGS"
6399 SAVE_LDFLAGS="$LDFLAGS"
6400 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6401 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6402 cat >conftest.$ac_ext <<_ACEOF
6403 /* confdefs.h. */
6404 _ACEOF
6405 cat confdefs.h >>conftest.$ac_ext
6406 cat >>conftest.$ac_ext <<_ACEOF
6407 /* end confdefs.h. */
6408 #include <asoundlib.h>
6409 int
6410 main ()
6411 {
6412 snd_lib_error_set_handler (0);
6413 ;
6414 return 0;
6415 }
6416 _ACEOF
6417 rm -f conftest.$ac_objext
6418 if { (ac_try="$ac_compile"
6419 case "(($ac_try" in
6420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421 *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424 (eval "$ac_compile") 2>conftest.er1
6425 ac_status=$?
6426 grep -v '^ *+' conftest.er1 >conftest.err
6427 rm -f conftest.er1
6428 cat conftest.err >&5
6429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6430 (exit $ac_status); } && {
6431 test -z "$ac_c_werror_flag" ||
6432 test ! -s conftest.err
6433 } && test -s conftest.$ac_objext; then
6434 emacs_alsa_normal=yes
6435 else
6436 echo "$as_me: failed program was:" >&5
6437 sed 's/^/| /' conftest.$ac_ext >&5
6438
6439 emacs_alsa_normal=no
6440 fi
6441
6442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6443 if test "$emacs_alsa_normal" != yes; then
6444 cat >conftest.$ac_ext <<_ACEOF
6445 /* confdefs.h. */
6446 _ACEOF
6447 cat confdefs.h >>conftest.$ac_ext
6448 cat >>conftest.$ac_ext <<_ACEOF
6449 /* end confdefs.h. */
6450 #include <alsa/asoundlib.h>
6451 int
6452 main ()
6453 {
6454 snd_lib_error_set_handler (0);
6455 ;
6456 return 0;
6457 }
6458 _ACEOF
6459 rm -f conftest.$ac_objext
6460 if { (ac_try="$ac_compile"
6461 case "(($ac_try" in
6462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6463 *) ac_try_echo=$ac_try;;
6464 esac
6465 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6466 (eval "$ac_compile") 2>conftest.er1
6467 ac_status=$?
6468 grep -v '^ *+' conftest.er1 >conftest.err
6469 rm -f conftest.er1
6470 cat conftest.err >&5
6471 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6472 (exit $ac_status); } && {
6473 test -z "$ac_c_werror_flag" ||
6474 test ! -s conftest.err
6475 } && test -s conftest.$ac_objext; then
6476 emacs_alsa_subdir=yes
6477 else
6478 echo "$as_me: failed program was:" >&5
6479 sed 's/^/| /' conftest.$ac_ext >&5
6480
6481 emacs_alsa_subdir=no
6482 fi
6483
6484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6485 if test "$emacs_alsa_subdir" != yes; then
6486 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6487 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6488 { (exit 1); exit 1; }; }
6489 fi
6490 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6491 fi
6492
6493 CFLAGS="$SAVE_CFLAGS"
6494 LDFLAGS="$SAVE_LDFLAGS"
6495 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6496 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6497
6498 cat >>confdefs.h <<\_ACEOF
6499 #define HAVE_ALSA 1
6500 _ACEOF
6501
6502
6503 fi
6504
6505 fi
6506
6507
6508
6509
6510
6511
6512
6513
6514
6515
6516
6517
6518
6519
6520
6521
6522
6523
6524
6525
6526
6527
6528
6529
6530
6531
6532 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6533 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6534 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6535 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6536 sys/utsname.h pwd.h
6537 do
6538 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6539 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6540 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6541 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6542 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6543 echo $ECHO_N "(cached) $ECHO_C" >&6
6544 fi
6545 ac_res=`eval echo '${'$as_ac_Header'}'`
6546 { echo "$as_me:$LINENO: result: $ac_res" >&5
6547 echo "${ECHO_T}$ac_res" >&6; }
6548 else
6549 # Is the header compilable?
6550 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6551 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6552 cat >conftest.$ac_ext <<_ACEOF
6553 /* confdefs.h. */
6554 _ACEOF
6555 cat confdefs.h >>conftest.$ac_ext
6556 cat >>conftest.$ac_ext <<_ACEOF
6557 /* end confdefs.h. */
6558 $ac_includes_default
6559 #include <$ac_header>
6560 _ACEOF
6561 rm -f conftest.$ac_objext
6562 if { (ac_try="$ac_compile"
6563 case "(($ac_try" in
6564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6565 *) ac_try_echo=$ac_try;;
6566 esac
6567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6568 (eval "$ac_compile") 2>conftest.er1
6569 ac_status=$?
6570 grep -v '^ *+' conftest.er1 >conftest.err
6571 rm -f conftest.er1
6572 cat conftest.err >&5
6573 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6574 (exit $ac_status); } && {
6575 test -z "$ac_c_werror_flag" ||
6576 test ! -s conftest.err
6577 } && test -s conftest.$ac_objext; then
6578 ac_header_compiler=yes
6579 else
6580 echo "$as_me: failed program was:" >&5
6581 sed 's/^/| /' conftest.$ac_ext >&5
6582
6583 ac_header_compiler=no
6584 fi
6585
6586 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6587 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6588 echo "${ECHO_T}$ac_header_compiler" >&6; }
6589
6590 # Is the header present?
6591 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6592 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6593 cat >conftest.$ac_ext <<_ACEOF
6594 /* confdefs.h. */
6595 _ACEOF
6596 cat confdefs.h >>conftest.$ac_ext
6597 cat >>conftest.$ac_ext <<_ACEOF
6598 /* end confdefs.h. */
6599 #include <$ac_header>
6600 _ACEOF
6601 if { (ac_try="$ac_cpp conftest.$ac_ext"
6602 case "(($ac_try" in
6603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6604 *) ac_try_echo=$ac_try;;
6605 esac
6606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6607 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6608 ac_status=$?
6609 grep -v '^ *+' conftest.er1 >conftest.err
6610 rm -f conftest.er1
6611 cat conftest.err >&5
6612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613 (exit $ac_status); } >/dev/null && {
6614 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6615 test ! -s conftest.err
6616 }; then
6617 ac_header_preproc=yes
6618 else
6619 echo "$as_me: failed program was:" >&5
6620 sed 's/^/| /' conftest.$ac_ext >&5
6621
6622 ac_header_preproc=no
6623 fi
6624
6625 rm -f conftest.err conftest.$ac_ext
6626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6627 echo "${ECHO_T}$ac_header_preproc" >&6; }
6628
6629 # So? What about this header?
6630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6631 yes:no: )
6632 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6634 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6636 ac_header_preproc=yes
6637 ;;
6638 no:yes:* )
6639 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6641 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6642 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6643 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6645 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6646 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6647 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6649 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6651
6652 ;;
6653 esac
6654 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6655 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6656 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6657 echo $ECHO_N "(cached) $ECHO_C" >&6
6658 else
6659 eval "$as_ac_Header=\$ac_header_preproc"
6660 fi
6661 ac_res=`eval echo '${'$as_ac_Header'}'`
6662 { echo "$as_me:$LINENO: result: $ac_res" >&5
6663 echo "${ECHO_T}$ac_res" >&6; }
6664
6665 fi
6666 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6667 cat >>confdefs.h <<_ACEOF
6668 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6669 _ACEOF
6670
6671 fi
6672
6673 done
6674
6675
6676 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6677 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6678 cat >conftest.$ac_ext <<_ACEOF
6679 /* confdefs.h. */
6680 _ACEOF
6681 cat confdefs.h >>conftest.$ac_ext
6682 cat >>conftest.$ac_ext <<_ACEOF
6683 /* end confdefs.h. */
6684 #include <sys/personality.h>
6685 int
6686 main ()
6687 {
6688 personality (PER_LINUX32)
6689 ;
6690 return 0;
6691 }
6692 _ACEOF
6693 rm -f conftest.$ac_objext
6694 if { (ac_try="$ac_compile"
6695 case "(($ac_try" in
6696 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6697 *) ac_try_echo=$ac_try;;
6698 esac
6699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6700 (eval "$ac_compile") 2>conftest.er1
6701 ac_status=$?
6702 grep -v '^ *+' conftest.er1 >conftest.err
6703 rm -f conftest.er1
6704 cat conftest.err >&5
6705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6706 (exit $ac_status); } && {
6707 test -z "$ac_c_werror_flag" ||
6708 test ! -s conftest.err
6709 } && test -s conftest.$ac_objext; then
6710 emacs_cv_personality_linux32=yes
6711 else
6712 echo "$as_me: failed program was:" >&5
6713 sed 's/^/| /' conftest.$ac_ext >&5
6714
6715 emacs_cv_personality_linux32=no
6716 fi
6717
6718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6719 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6720 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6721
6722 if test $emacs_cv_personality_linux32 = yes; then
6723
6724 cat >>confdefs.h <<\_ACEOF
6725 #define HAVE_PERSONALITY_LINUX32 1
6726 _ACEOF
6727
6728 fi
6729
6730
6731 for ac_header in term.h
6732 do
6733 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6734 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6735 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6736 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6737 echo $ECHO_N "(cached) $ECHO_C" >&6
6738 else
6739 cat >conftest.$ac_ext <<_ACEOF
6740 /* confdefs.h. */
6741 _ACEOF
6742 cat confdefs.h >>conftest.$ac_ext
6743 cat >>conftest.$ac_ext <<_ACEOF
6744 /* end confdefs.h. */
6745 #include <$ac_header>
6746 _ACEOF
6747 if { (ac_try="$ac_cpp conftest.$ac_ext"
6748 case "(($ac_try" in
6749 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6750 *) ac_try_echo=$ac_try;;
6751 esac
6752 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6753 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6754 ac_status=$?
6755 grep -v '^ *+' conftest.er1 >conftest.err
6756 rm -f conftest.er1
6757 cat conftest.err >&5
6758 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6759 (exit $ac_status); } >/dev/null && {
6760 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6761 test ! -s conftest.err
6762 }; then
6763 eval "$as_ac_Header=yes"
6764 else
6765 echo "$as_me: failed program was:" >&5
6766 sed 's/^/| /' conftest.$ac_ext >&5
6767
6768 eval "$as_ac_Header=no"
6769 fi
6770
6771 rm -f conftest.err conftest.$ac_ext
6772 fi
6773 ac_res=`eval echo '${'$as_ac_Header'}'`
6774 { echo "$as_me:$LINENO: result: $ac_res" >&5
6775 echo "${ECHO_T}$ac_res" >&6; }
6776 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6777 cat >>confdefs.h <<_ACEOF
6778 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6779 _ACEOF
6780
6781 fi
6782
6783 done
6784
6785 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6786 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6787 if test "${ac_cv_header_stdc+set}" = set; then
6788 echo $ECHO_N "(cached) $ECHO_C" >&6
6789 else
6790 cat >conftest.$ac_ext <<_ACEOF
6791 /* confdefs.h. */
6792 _ACEOF
6793 cat confdefs.h >>conftest.$ac_ext
6794 cat >>conftest.$ac_ext <<_ACEOF
6795 /* end confdefs.h. */
6796 #include <stdlib.h>
6797 #include <stdarg.h>
6798 #include <string.h>
6799 #include <float.h>
6800
6801 int
6802 main ()
6803 {
6804
6805 ;
6806 return 0;
6807 }
6808 _ACEOF
6809 rm -f conftest.$ac_objext
6810 if { (ac_try="$ac_compile"
6811 case "(($ac_try" in
6812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6813 *) ac_try_echo=$ac_try;;
6814 esac
6815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6816 (eval "$ac_compile") 2>conftest.er1
6817 ac_status=$?
6818 grep -v '^ *+' conftest.er1 >conftest.err
6819 rm -f conftest.er1
6820 cat conftest.err >&5
6821 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6822 (exit $ac_status); } && {
6823 test -z "$ac_c_werror_flag" ||
6824 test ! -s conftest.err
6825 } && test -s conftest.$ac_objext; then
6826 ac_cv_header_stdc=yes
6827 else
6828 echo "$as_me: failed program was:" >&5
6829 sed 's/^/| /' conftest.$ac_ext >&5
6830
6831 ac_cv_header_stdc=no
6832 fi
6833
6834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6835
6836 if test $ac_cv_header_stdc = yes; then
6837 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6838 cat >conftest.$ac_ext <<_ACEOF
6839 /* confdefs.h. */
6840 _ACEOF
6841 cat confdefs.h >>conftest.$ac_ext
6842 cat >>conftest.$ac_ext <<_ACEOF
6843 /* end confdefs.h. */
6844 #include <string.h>
6845
6846 _ACEOF
6847 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6848 $EGREP "memchr" >/dev/null 2>&1; then
6849 :
6850 else
6851 ac_cv_header_stdc=no
6852 fi
6853 rm -f conftest*
6854
6855 fi
6856
6857 if test $ac_cv_header_stdc = yes; then
6858 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <stdlib.h>
6866
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "free" >/dev/null 2>&1; then
6870 :
6871 else
6872 ac_cv_header_stdc=no
6873 fi
6874 rm -f conftest*
6875
6876 fi
6877
6878 if test $ac_cv_header_stdc = yes; then
6879 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6880 if test "$cross_compiling" = yes; then
6881 :
6882 else
6883 cat >conftest.$ac_ext <<_ACEOF
6884 /* confdefs.h. */
6885 _ACEOF
6886 cat confdefs.h >>conftest.$ac_ext
6887 cat >>conftest.$ac_ext <<_ACEOF
6888 /* end confdefs.h. */
6889 #include <ctype.h>
6890 #include <stdlib.h>
6891 #if ((' ' & 0x0FF) == 0x020)
6892 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6893 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6894 #else
6895 # define ISLOWER(c) \
6896 (('a' <= (c) && (c) <= 'i') \
6897 || ('j' <= (c) && (c) <= 'r') \
6898 || ('s' <= (c) && (c) <= 'z'))
6899 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6900 #endif
6901
6902 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6903 int
6904 main ()
6905 {
6906 int i;
6907 for (i = 0; i < 256; i++)
6908 if (XOR (islower (i), ISLOWER (i))
6909 || toupper (i) != TOUPPER (i))
6910 return 2;
6911 return 0;
6912 }
6913 _ACEOF
6914 rm -f conftest$ac_exeext
6915 if { (ac_try="$ac_link"
6916 case "(($ac_try" in
6917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6918 *) ac_try_echo=$ac_try;;
6919 esac
6920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6921 (eval "$ac_link") 2>&5
6922 ac_status=$?
6923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6924 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6925 { (case "(($ac_try" in
6926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6927 *) ac_try_echo=$ac_try;;
6928 esac
6929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6930 (eval "$ac_try") 2>&5
6931 ac_status=$?
6932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6933 (exit $ac_status); }; }; then
6934 :
6935 else
6936 echo "$as_me: program exited with status $ac_status" >&5
6937 echo "$as_me: failed program was:" >&5
6938 sed 's/^/| /' conftest.$ac_ext >&5
6939
6940 ( exit $ac_status )
6941 ac_cv_header_stdc=no
6942 fi
6943 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6944 fi
6945
6946
6947 fi
6948 fi
6949 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6950 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6951 if test $ac_cv_header_stdc = yes; then
6952
6953 cat >>confdefs.h <<\_ACEOF
6954 #define STDC_HEADERS 1
6955 _ACEOF
6956
6957 fi
6958
6959 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6960 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6961 if test "${ac_cv_header_time+set}" = set; then
6962 echo $ECHO_N "(cached) $ECHO_C" >&6
6963 else
6964 cat >conftest.$ac_ext <<_ACEOF
6965 /* confdefs.h. */
6966 _ACEOF
6967 cat confdefs.h >>conftest.$ac_ext
6968 cat >>conftest.$ac_ext <<_ACEOF
6969 /* end confdefs.h. */
6970 #include <sys/types.h>
6971 #include <sys/time.h>
6972 #include <time.h>
6973
6974 int
6975 main ()
6976 {
6977 if ((struct tm *) 0)
6978 return 0;
6979 ;
6980 return 0;
6981 }
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } && {
6997 test -z "$ac_c_werror_flag" ||
6998 test ! -s conftest.err
6999 } && test -s conftest.$ac_objext; then
7000 ac_cv_header_time=yes
7001 else
7002 echo "$as_me: failed program was:" >&5
7003 sed 's/^/| /' conftest.$ac_ext >&5
7004
7005 ac_cv_header_time=no
7006 fi
7007
7008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7009 fi
7010 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7011 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7012 if test $ac_cv_header_time = yes; then
7013
7014 cat >>confdefs.h <<\_ACEOF
7015 #define TIME_WITH_SYS_TIME 1
7016 _ACEOF
7017
7018 fi
7019
7020 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7021 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7022 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7023 echo $ECHO_N "(cached) $ECHO_C" >&6
7024 else
7025 cat >conftest.$ac_ext <<_ACEOF
7026 /* confdefs.h. */
7027 _ACEOF
7028 cat confdefs.h >>conftest.$ac_ext
7029 cat >>conftest.$ac_ext <<_ACEOF
7030 /* end confdefs.h. */
7031 $ac_includes_default
7032 int
7033 main ()
7034 {
7035 #ifndef sys_siglist
7036 (void) sys_siglist;
7037 #endif
7038
7039 ;
7040 return 0;
7041 }
7042 _ACEOF
7043 rm -f conftest.$ac_objext
7044 if { (ac_try="$ac_compile"
7045 case "(($ac_try" in
7046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7047 *) ac_try_echo=$ac_try;;
7048 esac
7049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7050 (eval "$ac_compile") 2>conftest.er1
7051 ac_status=$?
7052 grep -v '^ *+' conftest.er1 >conftest.err
7053 rm -f conftest.er1
7054 cat conftest.err >&5
7055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7056 (exit $ac_status); } && {
7057 test -z "$ac_c_werror_flag" ||
7058 test ! -s conftest.err
7059 } && test -s conftest.$ac_objext; then
7060 ac_cv_have_decl_sys_siglist=yes
7061 else
7062 echo "$as_me: failed program was:" >&5
7063 sed 's/^/| /' conftest.$ac_ext >&5
7064
7065 ac_cv_have_decl_sys_siglist=no
7066 fi
7067
7068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7069 fi
7070 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7071 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7072 if test $ac_cv_have_decl_sys_siglist = yes; then
7073
7074 cat >>confdefs.h <<_ACEOF
7075 #define HAVE_DECL_SYS_SIGLIST 1
7076 _ACEOF
7077
7078
7079 else
7080 cat >>confdefs.h <<_ACEOF
7081 #define HAVE_DECL_SYS_SIGLIST 0
7082 _ACEOF
7083
7084
7085 fi
7086
7087
7088 if test $ac_cv_have_decl_sys_siglist != yes; then
7089 # For Tru64, at least:
7090 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7091 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7092 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7093 echo $ECHO_N "(cached) $ECHO_C" >&6
7094 else
7095 cat >conftest.$ac_ext <<_ACEOF
7096 /* confdefs.h. */
7097 _ACEOF
7098 cat confdefs.h >>conftest.$ac_ext
7099 cat >>conftest.$ac_ext <<_ACEOF
7100 /* end confdefs.h. */
7101 $ac_includes_default
7102 int
7103 main ()
7104 {
7105 #ifndef __sys_siglist
7106 (void) __sys_siglist;
7107 #endif
7108
7109 ;
7110 return 0;
7111 }
7112 _ACEOF
7113 rm -f conftest.$ac_objext
7114 if { (ac_try="$ac_compile"
7115 case "(($ac_try" in
7116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7117 *) ac_try_echo=$ac_try;;
7118 esac
7119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7120 (eval "$ac_compile") 2>conftest.er1
7121 ac_status=$?
7122 grep -v '^ *+' conftest.er1 >conftest.err
7123 rm -f conftest.er1
7124 cat conftest.err >&5
7125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7126 (exit $ac_status); } && {
7127 test -z "$ac_c_werror_flag" ||
7128 test ! -s conftest.err
7129 } && test -s conftest.$ac_objext; then
7130 ac_cv_have_decl___sys_siglist=yes
7131 else
7132 echo "$as_me: failed program was:" >&5
7133 sed 's/^/| /' conftest.$ac_ext >&5
7134
7135 ac_cv_have_decl___sys_siglist=no
7136 fi
7137
7138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7139 fi
7140 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7141 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7142 if test $ac_cv_have_decl___sys_siglist = yes; then
7143
7144 cat >>confdefs.h <<_ACEOF
7145 #define HAVE_DECL___SYS_SIGLIST 1
7146 _ACEOF
7147
7148
7149 else
7150 cat >>confdefs.h <<_ACEOF
7151 #define HAVE_DECL___SYS_SIGLIST 0
7152 _ACEOF
7153
7154
7155 fi
7156
7157
7158 if test $ac_cv_have_decl___sys_siglist = yes; then
7159
7160 cat >>confdefs.h <<\_ACEOF
7161 #define sys_siglist __sys_siglist
7162 _ACEOF
7163
7164 fi
7165 fi
7166 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7167 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7168 if test "${ac_cv_header_sys_wait_h+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 #include <sys/types.h>
7178 #include <sys/wait.h>
7179 #ifndef WEXITSTATUS
7180 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7181 #endif
7182 #ifndef WIFEXITED
7183 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7184 #endif
7185
7186 int
7187 main ()
7188 {
7189 int s;
7190 wait (&s);
7191 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7192 ;
7193 return 0;
7194 }
7195 _ACEOF
7196 rm -f conftest.$ac_objext
7197 if { (ac_try="$ac_compile"
7198 case "(($ac_try" in
7199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7200 *) ac_try_echo=$ac_try;;
7201 esac
7202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7203 (eval "$ac_compile") 2>conftest.er1
7204 ac_status=$?
7205 grep -v '^ *+' conftest.er1 >conftest.err
7206 rm -f conftest.er1
7207 cat conftest.err >&5
7208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7209 (exit $ac_status); } && {
7210 test -z "$ac_c_werror_flag" ||
7211 test ! -s conftest.err
7212 } && test -s conftest.$ac_objext; then
7213 ac_cv_header_sys_wait_h=yes
7214 else
7215 echo "$as_me: failed program was:" >&5
7216 sed 's/^/| /' conftest.$ac_ext >&5
7217
7218 ac_cv_header_sys_wait_h=no
7219 fi
7220
7221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7222 fi
7223 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7224 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7225 if test $ac_cv_header_sys_wait_h = yes; then
7226
7227 cat >>confdefs.h <<\_ACEOF
7228 #define HAVE_SYS_WAIT_H 1
7229 _ACEOF
7230
7231 fi
7232
7233
7234 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7235 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7236 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7237 echo $ECHO_N "(cached) $ECHO_C" >&6
7238 else
7239 cat >conftest.$ac_ext <<_ACEOF
7240 /* confdefs.h. */
7241 _ACEOF
7242 cat confdefs.h >>conftest.$ac_ext
7243 cat >>conftest.$ac_ext <<_ACEOF
7244 /* end confdefs.h. */
7245 #ifdef TIME_WITH_SYS_TIME
7246 #include <sys/time.h>
7247 #include <time.h>
7248 #else
7249 #ifdef HAVE_SYS_TIME_H
7250 #include <sys/time.h>
7251 #else
7252 #include <time.h>
7253 #endif
7254 #endif
7255 #ifdef HAVE_UTIME_H
7256 #include <utime.h>
7257 #endif
7258 int
7259 main ()
7260 {
7261 static struct utimbuf x; x.actime = x.modtime;
7262 ;
7263 return 0;
7264 }
7265 _ACEOF
7266 rm -f conftest.$ac_objext
7267 if { (ac_try="$ac_compile"
7268 case "(($ac_try" in
7269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7270 *) ac_try_echo=$ac_try;;
7271 esac
7272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7273 (eval "$ac_compile") 2>conftest.er1
7274 ac_status=$?
7275 grep -v '^ *+' conftest.er1 >conftest.err
7276 rm -f conftest.er1
7277 cat conftest.err >&5
7278 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7279 (exit $ac_status); } && {
7280 test -z "$ac_c_werror_flag" ||
7281 test ! -s conftest.err
7282 } && test -s conftest.$ac_objext; then
7283 emacs_cv_struct_utimbuf=yes
7284 else
7285 echo "$as_me: failed program was:" >&5
7286 sed 's/^/| /' conftest.$ac_ext >&5
7287
7288 emacs_cv_struct_utimbuf=no
7289 fi
7290
7291 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7292 fi
7293 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7294 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7295 if test $emacs_cv_struct_utimbuf = yes; then
7296
7297 cat >>confdefs.h <<\_ACEOF
7298 #define HAVE_STRUCT_UTIMBUF 1
7299 _ACEOF
7300
7301 fi
7302
7303 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7304 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7305 if test "${ac_cv_type_signal+set}" = set; then
7306 echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308 cat >conftest.$ac_ext <<_ACEOF
7309 /* confdefs.h. */
7310 _ACEOF
7311 cat confdefs.h >>conftest.$ac_ext
7312 cat >>conftest.$ac_ext <<_ACEOF
7313 /* end confdefs.h. */
7314 #include <sys/types.h>
7315 #include <signal.h>
7316
7317 int
7318 main ()
7319 {
7320 return *(signal (0, 0)) (0) == 1;
7321 ;
7322 return 0;
7323 }
7324 _ACEOF
7325 rm -f conftest.$ac_objext
7326 if { (ac_try="$ac_compile"
7327 case "(($ac_try" in
7328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7329 *) ac_try_echo=$ac_try;;
7330 esac
7331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7332 (eval "$ac_compile") 2>conftest.er1
7333 ac_status=$?
7334 grep -v '^ *+' conftest.er1 >conftest.err
7335 rm -f conftest.er1
7336 cat conftest.err >&5
7337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7338 (exit $ac_status); } && {
7339 test -z "$ac_c_werror_flag" ||
7340 test ! -s conftest.err
7341 } && test -s conftest.$ac_objext; then
7342 ac_cv_type_signal=int
7343 else
7344 echo "$as_me: failed program was:" >&5
7345 sed 's/^/| /' conftest.$ac_ext >&5
7346
7347 ac_cv_type_signal=void
7348 fi
7349
7350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7351 fi
7352 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7353 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7354
7355 cat >>confdefs.h <<_ACEOF
7356 #define RETSIGTYPE $ac_cv_type_signal
7357 _ACEOF
7358
7359
7360
7361 { echo "$as_me:$LINENO: checking for speed_t" >&5
7362 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7363 if test "${emacs_cv_speed_t+set}" = set; then
7364 echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366 cat >conftest.$ac_ext <<_ACEOF
7367 /* confdefs.h. */
7368 _ACEOF
7369 cat confdefs.h >>conftest.$ac_ext
7370 cat >>conftest.$ac_ext <<_ACEOF
7371 /* end confdefs.h. */
7372 #include <termios.h>
7373 int
7374 main ()
7375 {
7376 speed_t x = 1;
7377 ;
7378 return 0;
7379 }
7380 _ACEOF
7381 rm -f conftest.$ac_objext
7382 if { (ac_try="$ac_compile"
7383 case "(($ac_try" in
7384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7385 *) ac_try_echo=$ac_try;;
7386 esac
7387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7388 (eval "$ac_compile") 2>conftest.er1
7389 ac_status=$?
7390 grep -v '^ *+' conftest.er1 >conftest.err
7391 rm -f conftest.er1
7392 cat conftest.err >&5
7393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7394 (exit $ac_status); } && {
7395 test -z "$ac_c_werror_flag" ||
7396 test ! -s conftest.err
7397 } && test -s conftest.$ac_objext; then
7398 emacs_cv_speed_t=yes
7399 else
7400 echo "$as_me: failed program was:" >&5
7401 sed 's/^/| /' conftest.$ac_ext >&5
7402
7403 emacs_cv_speed_t=no
7404 fi
7405
7406 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7407 fi
7408 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7409 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7410 if test $emacs_cv_speed_t = yes; then
7411
7412 cat >>confdefs.h <<\_ACEOF
7413 #define HAVE_SPEED_T 1
7414 _ACEOF
7415
7416 fi
7417
7418 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7419 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7420 if test "${emacs_cv_struct_timeval+set}" = set; then
7421 echo $ECHO_N "(cached) $ECHO_C" >&6
7422 else
7423 cat >conftest.$ac_ext <<_ACEOF
7424 /* confdefs.h. */
7425 _ACEOF
7426 cat confdefs.h >>conftest.$ac_ext
7427 cat >>conftest.$ac_ext <<_ACEOF
7428 /* end confdefs.h. */
7429 #ifdef TIME_WITH_SYS_TIME
7430 #include <sys/time.h>
7431 #include <time.h>
7432 #else
7433 #ifdef HAVE_SYS_TIME_H
7434 #include <sys/time.h>
7435 #else
7436 #include <time.h>
7437 #endif
7438 #endif
7439 int
7440 main ()
7441 {
7442 static struct timeval x; x.tv_sec = x.tv_usec;
7443 ;
7444 return 0;
7445 }
7446 _ACEOF
7447 rm -f conftest.$ac_objext
7448 if { (ac_try="$ac_compile"
7449 case "(($ac_try" in
7450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7451 *) ac_try_echo=$ac_try;;
7452 esac
7453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7454 (eval "$ac_compile") 2>conftest.er1
7455 ac_status=$?
7456 grep -v '^ *+' conftest.er1 >conftest.err
7457 rm -f conftest.er1
7458 cat conftest.err >&5
7459 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7460 (exit $ac_status); } && {
7461 test -z "$ac_c_werror_flag" ||
7462 test ! -s conftest.err
7463 } && test -s conftest.$ac_objext; then
7464 emacs_cv_struct_timeval=yes
7465 else
7466 echo "$as_me: failed program was:" >&5
7467 sed 's/^/| /' conftest.$ac_ext >&5
7468
7469 emacs_cv_struct_timeval=no
7470 fi
7471
7472 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7473 fi
7474 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7475 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7476 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7477 if test $emacs_cv_struct_timeval = yes; then
7478
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_TIMEVAL 1
7481 _ACEOF
7482
7483 fi
7484
7485 { echo "$as_me:$LINENO: checking for struct exception" >&5
7486 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_exception+set}" = set; then
7488 echo $ECHO_N "(cached) $ECHO_C" >&6
7489 else
7490 cat >conftest.$ac_ext <<_ACEOF
7491 /* confdefs.h. */
7492 _ACEOF
7493 cat confdefs.h >>conftest.$ac_ext
7494 cat >>conftest.$ac_ext <<_ACEOF
7495 /* end confdefs.h. */
7496 #include <math.h>
7497 int
7498 main ()
7499 {
7500 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7501 ;
7502 return 0;
7503 }
7504 _ACEOF
7505 rm -f conftest.$ac_objext
7506 if { (ac_try="$ac_compile"
7507 case "(($ac_try" in
7508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7509 *) ac_try_echo=$ac_try;;
7510 esac
7511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7512 (eval "$ac_compile") 2>conftest.er1
7513 ac_status=$?
7514 grep -v '^ *+' conftest.er1 >conftest.err
7515 rm -f conftest.er1
7516 cat conftest.err >&5
7517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7518 (exit $ac_status); } && {
7519 test -z "$ac_c_werror_flag" ||
7520 test ! -s conftest.err
7521 } && test -s conftest.$ac_objext; then
7522 emacs_cv_struct_exception=yes
7523 else
7524 echo "$as_me: failed program was:" >&5
7525 sed 's/^/| /' conftest.$ac_ext >&5
7526
7527 emacs_cv_struct_exception=no
7528 fi
7529
7530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7531 fi
7532 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7533 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7534 HAVE_EXCEPTION=$emacs_cv_struct_exception
7535 if test $emacs_cv_struct_exception != yes; then
7536
7537 cat >>confdefs.h <<\_ACEOF
7538 #define NO_MATHERR 1
7539 _ACEOF
7540
7541 fi
7542
7543
7544 for ac_header in sys/socket.h
7545 do
7546 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7547 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7548 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7549 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7550 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7551 echo $ECHO_N "(cached) $ECHO_C" >&6
7552 fi
7553 ac_res=`eval echo '${'$as_ac_Header'}'`
7554 { echo "$as_me:$LINENO: result: $ac_res" >&5
7555 echo "${ECHO_T}$ac_res" >&6; }
7556 else
7557 # Is the header compilable?
7558 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7559 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7560 cat >conftest.$ac_ext <<_ACEOF
7561 /* confdefs.h. */
7562 _ACEOF
7563 cat confdefs.h >>conftest.$ac_ext
7564 cat >>conftest.$ac_ext <<_ACEOF
7565 /* end confdefs.h. */
7566 $ac_includes_default
7567 #include <$ac_header>
7568 _ACEOF
7569 rm -f conftest.$ac_objext
7570 if { (ac_try="$ac_compile"
7571 case "(($ac_try" in
7572 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7573 *) ac_try_echo=$ac_try;;
7574 esac
7575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7576 (eval "$ac_compile") 2>conftest.er1
7577 ac_status=$?
7578 grep -v '^ *+' conftest.er1 >conftest.err
7579 rm -f conftest.er1
7580 cat conftest.err >&5
7581 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7582 (exit $ac_status); } && {
7583 test -z "$ac_c_werror_flag" ||
7584 test ! -s conftest.err
7585 } && test -s conftest.$ac_objext; then
7586 ac_header_compiler=yes
7587 else
7588 echo "$as_me: failed program was:" >&5
7589 sed 's/^/| /' conftest.$ac_ext >&5
7590
7591 ac_header_compiler=no
7592 fi
7593
7594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7595 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7596 echo "${ECHO_T}$ac_header_compiler" >&6; }
7597
7598 # Is the header present?
7599 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7600 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7601 cat >conftest.$ac_ext <<_ACEOF
7602 /* confdefs.h. */
7603 _ACEOF
7604 cat confdefs.h >>conftest.$ac_ext
7605 cat >>conftest.$ac_ext <<_ACEOF
7606 /* end confdefs.h. */
7607 #include <$ac_header>
7608 _ACEOF
7609 if { (ac_try="$ac_cpp conftest.$ac_ext"
7610 case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } >/dev/null && {
7622 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 }; then
7625 ac_header_preproc=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 ac_header_preproc=no
7631 fi
7632
7633 rm -f conftest.err conftest.$ac_ext
7634 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7635 echo "${ECHO_T}$ac_header_preproc" >&6; }
7636
7637 # So? What about this header?
7638 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7639 yes:no: )
7640 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7641 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7642 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7643 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7644 ac_header_preproc=yes
7645 ;;
7646 no:yes:* )
7647 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7648 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7649 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7650 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7651 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7652 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7653 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7654 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7656 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7657 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7658 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7659
7660 ;;
7661 esac
7662 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7663 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7665 echo $ECHO_N "(cached) $ECHO_C" >&6
7666 else
7667 eval "$as_ac_Header=\$ac_header_preproc"
7668 fi
7669 ac_res=`eval echo '${'$as_ac_Header'}'`
7670 { echo "$as_me:$LINENO: result: $ac_res" >&5
7671 echo "${ECHO_T}$ac_res" >&6; }
7672
7673 fi
7674 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7675 cat >>confdefs.h <<_ACEOF
7676 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7677 _ACEOF
7678
7679 fi
7680
7681 done
7682
7683
7684 for ac_header in net/if.h
7685 do
7686 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7690 echo $ECHO_N "(cached) $ECHO_C" >&6
7691 else
7692 cat >conftest.$ac_ext <<_ACEOF
7693 /* confdefs.h. */
7694 _ACEOF
7695 cat confdefs.h >>conftest.$ac_ext
7696 cat >>conftest.$ac_ext <<_ACEOF
7697 /* end confdefs.h. */
7698 $ac_includes_default
7699 #if HAVE_SYS_SOCKET_H
7700 #include <sys/socket.h>
7701 #endif
7702
7703 #include <$ac_header>
7704 _ACEOF
7705 rm -f conftest.$ac_objext
7706 if { (ac_try="$ac_compile"
7707 case "(($ac_try" in
7708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7709 *) ac_try_echo=$ac_try;;
7710 esac
7711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7712 (eval "$ac_compile") 2>conftest.er1
7713 ac_status=$?
7714 grep -v '^ *+' conftest.er1 >conftest.err
7715 rm -f conftest.er1
7716 cat conftest.err >&5
7717 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7718 (exit $ac_status); } && {
7719 test -z "$ac_c_werror_flag" ||
7720 test ! -s conftest.err
7721 } && test -s conftest.$ac_objext; then
7722 eval "$as_ac_Header=yes"
7723 else
7724 echo "$as_me: failed program was:" >&5
7725 sed 's/^/| /' conftest.$ac_ext >&5
7726
7727 eval "$as_ac_Header=no"
7728 fi
7729
7730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7731 fi
7732 ac_res=`eval echo '${'$as_ac_Header'}'`
7733 { echo "$as_me:$LINENO: result: $ac_res" >&5
7734 echo "${ECHO_T}$ac_res" >&6; }
7735 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7736 cat >>confdefs.h <<_ACEOF
7737 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7738 _ACEOF
7739
7740 fi
7741
7742 done
7743
7744
7745 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7746 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7747 if test "${ac_cv_struct_tm+set}" = set; then
7748 echo $ECHO_N "(cached) $ECHO_C" >&6
7749 else
7750 cat >conftest.$ac_ext <<_ACEOF
7751 /* confdefs.h. */
7752 _ACEOF
7753 cat confdefs.h >>conftest.$ac_ext
7754 cat >>conftest.$ac_ext <<_ACEOF
7755 /* end confdefs.h. */
7756 #include <sys/types.h>
7757 #include <time.h>
7758
7759 int
7760 main ()
7761 {
7762 struct tm tm;
7763 int *p = &tm.tm_sec;
7764 return !p;
7765 ;
7766 return 0;
7767 }
7768 _ACEOF
7769 rm -f conftest.$ac_objext
7770 if { (ac_try="$ac_compile"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_compile") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } && {
7783 test -z "$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 } && test -s conftest.$ac_objext; then
7786 ac_cv_struct_tm=time.h
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_cv_struct_tm=sys/time.h
7792 fi
7793
7794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7795 fi
7796 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7797 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7798 if test $ac_cv_struct_tm = sys/time.h; then
7799
7800 cat >>confdefs.h <<\_ACEOF
7801 #define TM_IN_SYS_TIME 1
7802 _ACEOF
7803
7804 fi
7805
7806 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7807 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7808 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7809 echo $ECHO_N "(cached) $ECHO_C" >&6
7810 else
7811 cat >conftest.$ac_ext <<_ACEOF
7812 /* confdefs.h. */
7813 _ACEOF
7814 cat confdefs.h >>conftest.$ac_ext
7815 cat >>conftest.$ac_ext <<_ACEOF
7816 /* end confdefs.h. */
7817 #include <sys/types.h>
7818 #include <$ac_cv_struct_tm>
7819
7820
7821 int
7822 main ()
7823 {
7824 static struct tm ac_aggr;
7825 if (ac_aggr.tm_zone)
7826 return 0;
7827 ;
7828 return 0;
7829 }
7830 _ACEOF
7831 rm -f conftest.$ac_objext
7832 if { (ac_try="$ac_compile"
7833 case "(($ac_try" in
7834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7835 *) ac_try_echo=$ac_try;;
7836 esac
7837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7838 (eval "$ac_compile") 2>conftest.er1
7839 ac_status=$?
7840 grep -v '^ *+' conftest.er1 >conftest.err
7841 rm -f conftest.er1
7842 cat conftest.err >&5
7843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7844 (exit $ac_status); } && {
7845 test -z "$ac_c_werror_flag" ||
7846 test ! -s conftest.err
7847 } && test -s conftest.$ac_objext; then
7848 ac_cv_member_struct_tm_tm_zone=yes
7849 else
7850 echo "$as_me: failed program was:" >&5
7851 sed 's/^/| /' conftest.$ac_ext >&5
7852
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 #include <sys/types.h>
7860 #include <$ac_cv_struct_tm>
7861
7862
7863 int
7864 main ()
7865 {
7866 static struct tm ac_aggr;
7867 if (sizeof ac_aggr.tm_zone)
7868 return 0;
7869 ;
7870 return 0;
7871 }
7872 _ACEOF
7873 rm -f conftest.$ac_objext
7874 if { (ac_try="$ac_compile"
7875 case "(($ac_try" in
7876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7877 *) ac_try_echo=$ac_try;;
7878 esac
7879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7880 (eval "$ac_compile") 2>conftest.er1
7881 ac_status=$?
7882 grep -v '^ *+' conftest.er1 >conftest.err
7883 rm -f conftest.er1
7884 cat conftest.err >&5
7885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7886 (exit $ac_status); } && {
7887 test -z "$ac_c_werror_flag" ||
7888 test ! -s conftest.err
7889 } && test -s conftest.$ac_objext; then
7890 ac_cv_member_struct_tm_tm_zone=yes
7891 else
7892 echo "$as_me: failed program was:" >&5
7893 sed 's/^/| /' conftest.$ac_ext >&5
7894
7895 ac_cv_member_struct_tm_tm_zone=no
7896 fi
7897
7898 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7899 fi
7900
7901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7902 fi
7903 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7904 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7905 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7906
7907 cat >>confdefs.h <<_ACEOF
7908 #define HAVE_STRUCT_TM_TM_ZONE 1
7909 _ACEOF
7910
7911
7912 fi
7913
7914 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7915
7916 cat >>confdefs.h <<\_ACEOF
7917 #define HAVE_TM_ZONE 1
7918 _ACEOF
7919
7920 else
7921 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7922 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7923 if test "${ac_cv_have_decl_tzname+set}" = set; then
7924 echo $ECHO_N "(cached) $ECHO_C" >&6
7925 else
7926 cat >conftest.$ac_ext <<_ACEOF
7927 /* confdefs.h. */
7928 _ACEOF
7929 cat confdefs.h >>conftest.$ac_ext
7930 cat >>conftest.$ac_ext <<_ACEOF
7931 /* end confdefs.h. */
7932 #include <time.h>
7933
7934 int
7935 main ()
7936 {
7937 #ifndef tzname
7938 (void) tzname;
7939 #endif
7940
7941 ;
7942 return 0;
7943 }
7944 _ACEOF
7945 rm -f conftest.$ac_objext
7946 if { (ac_try="$ac_compile"
7947 case "(($ac_try" in
7948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7949 *) ac_try_echo=$ac_try;;
7950 esac
7951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7952 (eval "$ac_compile") 2>conftest.er1
7953 ac_status=$?
7954 grep -v '^ *+' conftest.er1 >conftest.err
7955 rm -f conftest.er1
7956 cat conftest.err >&5
7957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7958 (exit $ac_status); } && {
7959 test -z "$ac_c_werror_flag" ||
7960 test ! -s conftest.err
7961 } && test -s conftest.$ac_objext; then
7962 ac_cv_have_decl_tzname=yes
7963 else
7964 echo "$as_me: failed program was:" >&5
7965 sed 's/^/| /' conftest.$ac_ext >&5
7966
7967 ac_cv_have_decl_tzname=no
7968 fi
7969
7970 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7971 fi
7972 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7973 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7974 if test $ac_cv_have_decl_tzname = yes; then
7975
7976 cat >>confdefs.h <<_ACEOF
7977 #define HAVE_DECL_TZNAME 1
7978 _ACEOF
7979
7980
7981 else
7982 cat >>confdefs.h <<_ACEOF
7983 #define HAVE_DECL_TZNAME 0
7984 _ACEOF
7985
7986
7987 fi
7988
7989
7990 { echo "$as_me:$LINENO: checking for tzname" >&5
7991 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
7992 if test "${ac_cv_var_tzname+set}" = set; then
7993 echo $ECHO_N "(cached) $ECHO_C" >&6
7994 else
7995 cat >conftest.$ac_ext <<_ACEOF
7996 /* confdefs.h. */
7997 _ACEOF
7998 cat confdefs.h >>conftest.$ac_ext
7999 cat >>conftest.$ac_ext <<_ACEOF
8000 /* end confdefs.h. */
8001 #include <time.h>
8002 #if !HAVE_DECL_TZNAME
8003 extern char *tzname[];
8004 #endif
8005
8006 int
8007 main ()
8008 {
8009 return tzname[0][0];
8010 ;
8011 return 0;
8012 }
8013 _ACEOF
8014 rm -f conftest.$ac_objext conftest$ac_exeext
8015 if { (ac_try="$ac_link"
8016 case "(($ac_try" in
8017 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8018 *) ac_try_echo=$ac_try;;
8019 esac
8020 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8021 (eval "$ac_link") 2>conftest.er1
8022 ac_status=$?
8023 grep -v '^ *+' conftest.er1 >conftest.err
8024 rm -f conftest.er1
8025 cat conftest.err >&5
8026 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8027 (exit $ac_status); } && {
8028 test -z "$ac_c_werror_flag" ||
8029 test ! -s conftest.err
8030 } && test -s conftest$ac_exeext &&
8031 $as_test_x conftest$ac_exeext; then
8032 ac_cv_var_tzname=yes
8033 else
8034 echo "$as_me: failed program was:" >&5
8035 sed 's/^/| /' conftest.$ac_ext >&5
8036
8037 ac_cv_var_tzname=no
8038 fi
8039
8040 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8041 conftest$ac_exeext conftest.$ac_ext
8042 fi
8043 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8044 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8045 if test $ac_cv_var_tzname = yes; then
8046
8047 cat >>confdefs.h <<\_ACEOF
8048 #define HAVE_TZNAME 1
8049 _ACEOF
8050
8051 fi
8052 fi
8053
8054 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8055 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8056 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8057 echo $ECHO_N "(cached) $ECHO_C" >&6
8058 else
8059 cat >conftest.$ac_ext <<_ACEOF
8060 /* confdefs.h. */
8061 _ACEOF
8062 cat confdefs.h >>conftest.$ac_ext
8063 cat >>conftest.$ac_ext <<_ACEOF
8064 /* end confdefs.h. */
8065 #include <time.h>
8066
8067 int
8068 main ()
8069 {
8070 static struct tm ac_aggr;
8071 if (ac_aggr.tm_gmtoff)
8072 return 0;
8073 ;
8074 return 0;
8075 }
8076 _ACEOF
8077 rm -f conftest.$ac_objext
8078 if { (ac_try="$ac_compile"
8079 case "(($ac_try" in
8080 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8081 *) ac_try_echo=$ac_try;;
8082 esac
8083 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8084 (eval "$ac_compile") 2>conftest.er1
8085 ac_status=$?
8086 grep -v '^ *+' conftest.er1 >conftest.err
8087 rm -f conftest.er1
8088 cat conftest.err >&5
8089 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8090 (exit $ac_status); } && {
8091 test -z "$ac_c_werror_flag" ||
8092 test ! -s conftest.err
8093 } && test -s conftest.$ac_objext; then
8094 ac_cv_member_struct_tm_tm_gmtoff=yes
8095 else
8096 echo "$as_me: failed program was:" >&5
8097 sed 's/^/| /' conftest.$ac_ext >&5
8098
8099 cat >conftest.$ac_ext <<_ACEOF
8100 /* confdefs.h. */
8101 _ACEOF
8102 cat confdefs.h >>conftest.$ac_ext
8103 cat >>conftest.$ac_ext <<_ACEOF
8104 /* end confdefs.h. */
8105 #include <time.h>
8106
8107 int
8108 main ()
8109 {
8110 static struct tm ac_aggr;
8111 if (sizeof ac_aggr.tm_gmtoff)
8112 return 0;
8113 ;
8114 return 0;
8115 }
8116 _ACEOF
8117 rm -f conftest.$ac_objext
8118 if { (ac_try="$ac_compile"
8119 case "(($ac_try" in
8120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8121 *) ac_try_echo=$ac_try;;
8122 esac
8123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8124 (eval "$ac_compile") 2>conftest.er1
8125 ac_status=$?
8126 grep -v '^ *+' conftest.er1 >conftest.err
8127 rm -f conftest.er1
8128 cat conftest.err >&5
8129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8130 (exit $ac_status); } && {
8131 test -z "$ac_c_werror_flag" ||
8132 test ! -s conftest.err
8133 } && test -s conftest.$ac_objext; then
8134 ac_cv_member_struct_tm_tm_gmtoff=yes
8135 else
8136 echo "$as_me: failed program was:" >&5
8137 sed 's/^/| /' conftest.$ac_ext >&5
8138
8139 ac_cv_member_struct_tm_tm_gmtoff=no
8140 fi
8141
8142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8143 fi
8144
8145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8146 fi
8147 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8148 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8149 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8150
8151 cat >>confdefs.h <<\_ACEOF
8152 #define HAVE_TM_GMTOFF 1
8153 _ACEOF
8154
8155 fi
8156
8157 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8158 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8159 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8160 echo $ECHO_N "(cached) $ECHO_C" >&6
8161 else
8162 cat >conftest.$ac_ext <<_ACEOF
8163 /* confdefs.h. */
8164 _ACEOF
8165 cat confdefs.h >>conftest.$ac_ext
8166 cat >>conftest.$ac_ext <<_ACEOF
8167 /* end confdefs.h. */
8168 $ac_includes_default
8169 #if HAVE_SYS_SOCKET_H
8170 #include <sys/socket.h>
8171 #endif
8172 #if HAVE_NET_IF_H
8173 #include <net/if.h>
8174 #endif
8175
8176 int
8177 main ()
8178 {
8179 static struct ifreq ac_aggr;
8180 if (ac_aggr.ifr_flags)
8181 return 0;
8182 ;
8183 return 0;
8184 }
8185 _ACEOF
8186 rm -f conftest.$ac_objext
8187 if { (ac_try="$ac_compile"
8188 case "(($ac_try" in
8189 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8190 *) ac_try_echo=$ac_try;;
8191 esac
8192 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8193 (eval "$ac_compile") 2>conftest.er1
8194 ac_status=$?
8195 grep -v '^ *+' conftest.er1 >conftest.err
8196 rm -f conftest.er1
8197 cat conftest.err >&5
8198 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8199 (exit $ac_status); } && {
8200 test -z "$ac_c_werror_flag" ||
8201 test ! -s conftest.err
8202 } && test -s conftest.$ac_objext; then
8203 ac_cv_member_struct_ifreq_ifr_flags=yes
8204 else
8205 echo "$as_me: failed program was:" >&5
8206 sed 's/^/| /' conftest.$ac_ext >&5
8207
8208 cat >conftest.$ac_ext <<_ACEOF
8209 /* confdefs.h. */
8210 _ACEOF
8211 cat confdefs.h >>conftest.$ac_ext
8212 cat >>conftest.$ac_ext <<_ACEOF
8213 /* end confdefs.h. */
8214 $ac_includes_default
8215 #if HAVE_SYS_SOCKET_H
8216 #include <sys/socket.h>
8217 #endif
8218 #if HAVE_NET_IF_H
8219 #include <net/if.h>
8220 #endif
8221
8222 int
8223 main ()
8224 {
8225 static struct ifreq ac_aggr;
8226 if (sizeof ac_aggr.ifr_flags)
8227 return 0;
8228 ;
8229 return 0;
8230 }
8231 _ACEOF
8232 rm -f conftest.$ac_objext
8233 if { (ac_try="$ac_compile"
8234 case "(($ac_try" in
8235 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8236 *) ac_try_echo=$ac_try;;
8237 esac
8238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8239 (eval "$ac_compile") 2>conftest.er1
8240 ac_status=$?
8241 grep -v '^ *+' conftest.er1 >conftest.err
8242 rm -f conftest.er1
8243 cat conftest.err >&5
8244 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8245 (exit $ac_status); } && {
8246 test -z "$ac_c_werror_flag" ||
8247 test ! -s conftest.err
8248 } && test -s conftest.$ac_objext; then
8249 ac_cv_member_struct_ifreq_ifr_flags=yes
8250 else
8251 echo "$as_me: failed program was:" >&5
8252 sed 's/^/| /' conftest.$ac_ext >&5
8253
8254 ac_cv_member_struct_ifreq_ifr_flags=no
8255 fi
8256
8257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8258 fi
8259
8260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8261 fi
8262 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8263 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8264 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8265
8266 cat >>confdefs.h <<_ACEOF
8267 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8268 _ACEOF
8269
8270
8271 fi
8272 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8273 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8274 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8275 echo $ECHO_N "(cached) $ECHO_C" >&6
8276 else
8277 cat >conftest.$ac_ext <<_ACEOF
8278 /* confdefs.h. */
8279 _ACEOF
8280 cat confdefs.h >>conftest.$ac_ext
8281 cat >>conftest.$ac_ext <<_ACEOF
8282 /* end confdefs.h. */
8283 $ac_includes_default
8284 #if HAVE_SYS_SOCKET_H
8285 #include <sys/socket.h>
8286 #endif
8287 #if HAVE_NET_IF_H
8288 #include <net/if.h>
8289 #endif
8290
8291 int
8292 main ()
8293 {
8294 static struct ifreq ac_aggr;
8295 if (ac_aggr.ifr_hwaddr)
8296 return 0;
8297 ;
8298 return 0;
8299 }
8300 _ACEOF
8301 rm -f conftest.$ac_objext
8302 if { (ac_try="$ac_compile"
8303 case "(($ac_try" in
8304 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8305 *) ac_try_echo=$ac_try;;
8306 esac
8307 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8308 (eval "$ac_compile") 2>conftest.er1
8309 ac_status=$?
8310 grep -v '^ *+' conftest.er1 >conftest.err
8311 rm -f conftest.er1
8312 cat conftest.err >&5
8313 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8314 (exit $ac_status); } && {
8315 test -z "$ac_c_werror_flag" ||
8316 test ! -s conftest.err
8317 } && test -s conftest.$ac_objext; then
8318 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8319 else
8320 echo "$as_me: failed program was:" >&5
8321 sed 's/^/| /' conftest.$ac_ext >&5
8322
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8332 #endif
8333 #if HAVE_NET_IF_H
8334 #include <net/if.h>
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 static struct ifreq ac_aggr;
8341 if (sizeof ac_aggr.ifr_hwaddr)
8342 return 0;
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8370 fi
8371
8372 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8373 fi
8374
8375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8376 fi
8377 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8378 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8379 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8380
8381 cat >>confdefs.h <<_ACEOF
8382 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8383 _ACEOF
8384
8385
8386 fi
8387 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8388 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8389 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8390 echo $ECHO_N "(cached) $ECHO_C" >&6
8391 else
8392 cat >conftest.$ac_ext <<_ACEOF
8393 /* confdefs.h. */
8394 _ACEOF
8395 cat confdefs.h >>conftest.$ac_ext
8396 cat >>conftest.$ac_ext <<_ACEOF
8397 /* end confdefs.h. */
8398 $ac_includes_default
8399 #if HAVE_SYS_SOCKET_H
8400 #include <sys/socket.h>
8401 #endif
8402 #if HAVE_NET_IF_H
8403 #include <net/if.h>
8404 #endif
8405
8406 int
8407 main ()
8408 {
8409 static struct ifreq ac_aggr;
8410 if (ac_aggr.ifr_netmask)
8411 return 0;
8412 ;
8413 return 0;
8414 }
8415 _ACEOF
8416 rm -f conftest.$ac_objext
8417 if { (ac_try="$ac_compile"
8418 case "(($ac_try" in
8419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8420 *) ac_try_echo=$ac_try;;
8421 esac
8422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8423 (eval "$ac_compile") 2>conftest.er1
8424 ac_status=$?
8425 grep -v '^ *+' conftest.er1 >conftest.err
8426 rm -f conftest.er1
8427 cat conftest.err >&5
8428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8429 (exit $ac_status); } && {
8430 test -z "$ac_c_werror_flag" ||
8431 test ! -s conftest.err
8432 } && test -s conftest.$ac_objext; then
8433 ac_cv_member_struct_ifreq_ifr_netmask=yes
8434 else
8435 echo "$as_me: failed program was:" >&5
8436 sed 's/^/| /' conftest.$ac_ext >&5
8437
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8447 #endif
8448 #if HAVE_NET_IF_H
8449 #include <net/if.h>
8450 #endif
8451
8452 int
8453 main ()
8454 {
8455 static struct ifreq ac_aggr;
8456 if (sizeof ac_aggr.ifr_netmask)
8457 return 0;
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_netmask=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 ac_cv_member_struct_ifreq_ifr_netmask=no
8485 fi
8486
8487 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8488 fi
8489
8490 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8491 fi
8492 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8493 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8494 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8495
8496 cat >>confdefs.h <<_ACEOF
8497 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8498 _ACEOF
8499
8500
8501 fi
8502 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8503 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8504 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8505 echo $ECHO_N "(cached) $ECHO_C" >&6
8506 else
8507 cat >conftest.$ac_ext <<_ACEOF
8508 /* confdefs.h. */
8509 _ACEOF
8510 cat confdefs.h >>conftest.$ac_ext
8511 cat >>conftest.$ac_ext <<_ACEOF
8512 /* end confdefs.h. */
8513 $ac_includes_default
8514 #if HAVE_SYS_SOCKET_H
8515 #include <sys/socket.h>
8516 #endif
8517 #if HAVE_NET_IF_H
8518 #include <net/if.h>
8519 #endif
8520
8521 int
8522 main ()
8523 {
8524 static struct ifreq ac_aggr;
8525 if (ac_aggr.ifr_broadaddr)
8526 return 0;
8527 ;
8528 return 0;
8529 }
8530 _ACEOF
8531 rm -f conftest.$ac_objext
8532 if { (ac_try="$ac_compile"
8533 case "(($ac_try" in
8534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8535 *) ac_try_echo=$ac_try;;
8536 esac
8537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8538 (eval "$ac_compile") 2>conftest.er1
8539 ac_status=$?
8540 grep -v '^ *+' conftest.er1 >conftest.err
8541 rm -f conftest.er1
8542 cat conftest.err >&5
8543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8544 (exit $ac_status); } && {
8545 test -z "$ac_c_werror_flag" ||
8546 test ! -s conftest.err
8547 } && test -s conftest.$ac_objext; then
8548 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8549 else
8550 echo "$as_me: failed program was:" >&5
8551 sed 's/^/| /' conftest.$ac_ext >&5
8552
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8562 #endif
8563 #if HAVE_NET_IF_H
8564 #include <net/if.h>
8565 #endif
8566
8567 int
8568 main ()
8569 {
8570 static struct ifreq ac_aggr;
8571 if (sizeof ac_aggr.ifr_broadaddr)
8572 return 0;
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8600 fi
8601
8602 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8603 fi
8604
8605 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8606 fi
8607 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8608 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8609 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8610
8611 cat >>confdefs.h <<_ACEOF
8612 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8613 _ACEOF
8614
8615
8616 fi
8617 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8618 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8619 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8620 echo $ECHO_N "(cached) $ECHO_C" >&6
8621 else
8622 cat >conftest.$ac_ext <<_ACEOF
8623 /* confdefs.h. */
8624 _ACEOF
8625 cat confdefs.h >>conftest.$ac_ext
8626 cat >>conftest.$ac_ext <<_ACEOF
8627 /* end confdefs.h. */
8628 $ac_includes_default
8629 #if HAVE_SYS_SOCKET_H
8630 #include <sys/socket.h>
8631 #endif
8632 #if HAVE_NET_IF_H
8633 #include <net/if.h>
8634 #endif
8635
8636 int
8637 main ()
8638 {
8639 static struct ifreq ac_aggr;
8640 if (ac_aggr.ifr_addr)
8641 return 0;
8642 ;
8643 return 0;
8644 }
8645 _ACEOF
8646 rm -f conftest.$ac_objext
8647 if { (ac_try="$ac_compile"
8648 case "(($ac_try" in
8649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8650 *) ac_try_echo=$ac_try;;
8651 esac
8652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8653 (eval "$ac_compile") 2>conftest.er1
8654 ac_status=$?
8655 grep -v '^ *+' conftest.er1 >conftest.err
8656 rm -f conftest.er1
8657 cat conftest.err >&5
8658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8659 (exit $ac_status); } && {
8660 test -z "$ac_c_werror_flag" ||
8661 test ! -s conftest.err
8662 } && test -s conftest.$ac_objext; then
8663 ac_cv_member_struct_ifreq_ifr_addr=yes
8664 else
8665 echo "$as_me: failed program was:" >&5
8666 sed 's/^/| /' conftest.$ac_ext >&5
8667
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8677 #endif
8678 #if HAVE_NET_IF_H
8679 #include <net/if.h>
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 static struct ifreq ac_aggr;
8686 if (sizeof ac_aggr.ifr_addr)
8687 return 0;
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_addr=yes
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 ac_cv_member_struct_ifreq_ifr_addr=no
8715 fi
8716
8717 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8718 fi
8719
8720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8721 fi
8722 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8723 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8724 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8725
8726 cat >>confdefs.h <<_ACEOF
8727 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8728 _ACEOF
8729
8730
8731 fi
8732
8733
8734
8735 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8736 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8737 if test "$ac_cv_prog_cc_c89" != no; then
8738 { echo "$as_me:$LINENO: result: yes" >&5
8739 echo "${ECHO_T}yes" >&6; }
8740
8741 cat >>confdefs.h <<\_ACEOF
8742 #define PROTOTYPES 1
8743 _ACEOF
8744
8745
8746 cat >>confdefs.h <<\_ACEOF
8747 #define __PROTOTYPES 1
8748 _ACEOF
8749
8750 else
8751 { echo "$as_me:$LINENO: result: no" >&5
8752 echo "${ECHO_T}no" >&6; }
8753 fi
8754
8755 { echo "$as_me:$LINENO: checking for working volatile" >&5
8756 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8757 if test "${ac_cv_c_volatile+set}" = set; then
8758 echo $ECHO_N "(cached) $ECHO_C" >&6
8759 else
8760 cat >conftest.$ac_ext <<_ACEOF
8761 /* confdefs.h. */
8762 _ACEOF
8763 cat confdefs.h >>conftest.$ac_ext
8764 cat >>conftest.$ac_ext <<_ACEOF
8765 /* end confdefs.h. */
8766
8767 int
8768 main ()
8769 {
8770
8771 volatile int x;
8772 int * volatile y = (int *) 0;
8773 return !x && !y;
8774 ;
8775 return 0;
8776 }
8777 _ACEOF
8778 rm -f conftest.$ac_objext
8779 if { (ac_try="$ac_compile"
8780 case "(($ac_try" in
8781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8782 *) ac_try_echo=$ac_try;;
8783 esac
8784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8785 (eval "$ac_compile") 2>conftest.er1
8786 ac_status=$?
8787 grep -v '^ *+' conftest.er1 >conftest.err
8788 rm -f conftest.er1
8789 cat conftest.err >&5
8790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8791 (exit $ac_status); } && {
8792 test -z "$ac_c_werror_flag" ||
8793 test ! -s conftest.err
8794 } && test -s conftest.$ac_objext; then
8795 ac_cv_c_volatile=yes
8796 else
8797 echo "$as_me: failed program was:" >&5
8798 sed 's/^/| /' conftest.$ac_ext >&5
8799
8800 ac_cv_c_volatile=no
8801 fi
8802
8803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8804 fi
8805 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8806 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8807 if test $ac_cv_c_volatile = no; then
8808
8809 cat >>confdefs.h <<\_ACEOF
8810 #define volatile
8811 _ACEOF
8812
8813 fi
8814
8815 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8816 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8817 if test "${ac_cv_c_const+set}" = set; then
8818 echo $ECHO_N "(cached) $ECHO_C" >&6
8819 else
8820 cat >conftest.$ac_ext <<_ACEOF
8821 /* confdefs.h. */
8822 _ACEOF
8823 cat confdefs.h >>conftest.$ac_ext
8824 cat >>conftest.$ac_ext <<_ACEOF
8825 /* end confdefs.h. */
8826
8827 int
8828 main ()
8829 {
8830 /* FIXME: Include the comments suggested by Paul. */
8831 #ifndef __cplusplus
8832 /* Ultrix mips cc rejects this. */
8833 typedef int charset[2];
8834 const charset cs;
8835 /* SunOS 4.1.1 cc rejects this. */
8836 char const *const *pcpcc;
8837 char **ppc;
8838 /* NEC SVR4.0.2 mips cc rejects this. */
8839 struct point {int x, y;};
8840 static struct point const zero = {0,0};
8841 /* AIX XL C 1.02.0.0 rejects this.
8842 It does not let you subtract one const X* pointer from another in
8843 an arm of an if-expression whose if-part is not a constant
8844 expression */
8845 const char *g = "string";
8846 pcpcc = &g + (g ? g-g : 0);
8847 /* HPUX 7.0 cc rejects these. */
8848 ++pcpcc;
8849 ppc = (char**) pcpcc;
8850 pcpcc = (char const *const *) ppc;
8851 { /* SCO 3.2v4 cc rejects this. */
8852 char *t;
8853 char const *s = 0 ? (char *) 0 : (char const *) 0;
8854
8855 *t++ = 0;
8856 if (s) return 0;
8857 }
8858 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8859 int x[] = {25, 17};
8860 const int *foo = &x[0];
8861 ++foo;
8862 }
8863 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8864 typedef const int *iptr;
8865 iptr p = 0;
8866 ++p;
8867 }
8868 { /* AIX XL C 1.02.0.0 rejects this saying
8869 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8870 struct s { int j; const int *ap[3]; };
8871 struct s *b; b->j = 5;
8872 }
8873 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8874 const int foo = 10;
8875 if (!foo) return 0;
8876 }
8877 return !cs[0] && !zero.x;
8878 #endif
8879
8880 ;
8881 return 0;
8882 }
8883 _ACEOF
8884 rm -f conftest.$ac_objext
8885 if { (ac_try="$ac_compile"
8886 case "(($ac_try" in
8887 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8888 *) ac_try_echo=$ac_try;;
8889 esac
8890 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8891 (eval "$ac_compile") 2>conftest.er1
8892 ac_status=$?
8893 grep -v '^ *+' conftest.er1 >conftest.err
8894 rm -f conftest.er1
8895 cat conftest.err >&5
8896 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8897 (exit $ac_status); } && {
8898 test -z "$ac_c_werror_flag" ||
8899 test ! -s conftest.err
8900 } && test -s conftest.$ac_objext; then
8901 ac_cv_c_const=yes
8902 else
8903 echo "$as_me: failed program was:" >&5
8904 sed 's/^/| /' conftest.$ac_ext >&5
8905
8906 ac_cv_c_const=no
8907 fi
8908
8909 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8910 fi
8911 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8912 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8913 if test $ac_cv_c_const = no; then
8914
8915 cat >>confdefs.h <<\_ACEOF
8916 #define const
8917 _ACEOF
8918
8919 fi
8920
8921 { echo "$as_me:$LINENO: checking for void * support" >&5
8922 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8923 if test "${emacs_cv_void_star+set}" = set; then
8924 echo $ECHO_N "(cached) $ECHO_C" >&6
8925 else
8926 cat >conftest.$ac_ext <<_ACEOF
8927 /* confdefs.h. */
8928 _ACEOF
8929 cat confdefs.h >>conftest.$ac_ext
8930 cat >>conftest.$ac_ext <<_ACEOF
8931 /* end confdefs.h. */
8932
8933 int
8934 main ()
8935 {
8936 void * foo;
8937 ;
8938 return 0;
8939 }
8940 _ACEOF
8941 rm -f conftest.$ac_objext
8942 if { (ac_try="$ac_compile"
8943 case "(($ac_try" in
8944 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8945 *) ac_try_echo=$ac_try;;
8946 esac
8947 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8948 (eval "$ac_compile") 2>conftest.er1
8949 ac_status=$?
8950 grep -v '^ *+' conftest.er1 >conftest.err
8951 rm -f conftest.er1
8952 cat conftest.err >&5
8953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8954 (exit $ac_status); } && {
8955 test -z "$ac_c_werror_flag" ||
8956 test ! -s conftest.err
8957 } && test -s conftest.$ac_objext; then
8958 emacs_cv_void_star=yes
8959 else
8960 echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963 emacs_cv_void_star=no
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8967 fi
8968 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8969 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8970 if test $emacs_cv_void_star = yes; then
8971 cat >>confdefs.h <<\_ACEOF
8972 #define POINTER_TYPE void
8973 _ACEOF
8974
8975 else
8976 cat >>confdefs.h <<\_ACEOF
8977 #define POINTER_TYPE char
8978 _ACEOF
8979
8980 fi
8981
8982
8983
8984
8985
8986 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8987 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
8988 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8989 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
8990 echo $ECHO_N "(cached) $ECHO_C" >&6
8991 else
8992 cat >conftest.make <<\_ACEOF
8993 SHELL = /bin/sh
8994 all:
8995 @echo '@@@%%%=$(MAKE)=@@@%%%'
8996 _ACEOF
8997 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
8998 case `${MAKE-make} -f conftest.make 2>/dev/null` in
8999 *@@@%%%=?*=@@@%%%*)
9000 eval ac_cv_prog_make_${ac_make}_set=yes;;
9001 *)
9002 eval ac_cv_prog_make_${ac_make}_set=no;;
9003 esac
9004 rm -f conftest.make
9005 fi
9006 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9007 { echo "$as_me:$LINENO: result: yes" >&5
9008 echo "${ECHO_T}yes" >&6; }
9009 SET_MAKE=
9010 else
9011 { echo "$as_me:$LINENO: result: no" >&5
9012 echo "${ECHO_T}no" >&6; }
9013 SET_MAKE="MAKE=${MAKE-make}"
9014 fi
9015
9016
9017 { echo "$as_me:$LINENO: checking for long file names" >&5
9018 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9019 if test "${ac_cv_sys_long_file_names+set}" = set; then
9020 echo $ECHO_N "(cached) $ECHO_C" >&6
9021 else
9022 ac_cv_sys_long_file_names=yes
9023 # Test for long file names in all the places we know might matter:
9024 # . the current directory, where building will happen
9025 # $prefix/lib where we will be installing things
9026 # $exec_prefix/lib likewise
9027 # $TMPDIR if set, where it might want to write temporary files
9028 # /tmp where it might want to write temporary files
9029 # /var/tmp likewise
9030 # /usr/tmp likewise
9031 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9032 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9033 # in the usual case where exec_prefix is '${prefix}'.
9034 case $ac_dir in #(
9035 . | /* | ?:[\\/]*) ;; #(
9036 *) continue;;
9037 esac
9038 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9039 ac_xdir=$ac_dir/cf$$
9040 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9041 ac_tf1=$ac_xdir/conftest9012345
9042 ac_tf2=$ac_xdir/conftest9012346
9043 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9044 ac_cv_sys_long_file_names=no
9045 rm -f -r "$ac_xdir" 2>/dev/null
9046 test $ac_cv_sys_long_file_names = no && break
9047 done
9048 fi
9049 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9050 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9051 if test $ac_cv_sys_long_file_names = yes; then
9052
9053 cat >>confdefs.h <<\_ACEOF
9054 #define HAVE_LONG_FILE_NAMES 1
9055 _ACEOF
9056
9057 fi
9058
9059
9060 #### Choose a window system.
9061
9062 { echo "$as_me:$LINENO: checking for X" >&5
9063 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9064
9065
9066 # Check whether --with-x was given.
9067 if test "${with_x+set}" = set; then
9068 withval=$with_x;
9069 fi
9070
9071 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9072 if test "x$with_x" = xno; then
9073 # The user explicitly disabled X.
9074 have_x=disabled
9075 else
9076 case $x_includes,$x_libraries in #(
9077 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9078 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9079 { (exit 1); exit 1; }; };; #(
9080 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9081 echo $ECHO_N "(cached) $ECHO_C" >&6
9082 else
9083 # One or both of the vars are not set, and there is no cached value.
9084 ac_x_includes=no ac_x_libraries=no
9085 rm -f -r conftest.dir
9086 if mkdir conftest.dir; then
9087 cd conftest.dir
9088 cat >Imakefile <<'_ACEOF'
9089 incroot:
9090 @echo incroot='${INCROOT}'
9091 usrlibdir:
9092 @echo usrlibdir='${USRLIBDIR}'
9093 libdir:
9094 @echo libdir='${LIBDIR}'
9095 _ACEOF
9096 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9097 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9098 for ac_var in incroot usrlibdir libdir; do
9099 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9100 done
9101 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9102 for ac_extension in a so sl; do
9103 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9104 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9105 ac_im_usrlibdir=$ac_im_libdir; break
9106 fi
9107 done
9108 # Screen out bogus values from the imake configuration. They are
9109 # bogus both because they are the default anyway, and because
9110 # using them would break gcc on systems where it needs fixed includes.
9111 case $ac_im_incroot in
9112 /usr/include) ac_x_includes= ;;
9113 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9114 esac
9115 case $ac_im_usrlibdir in
9116 /usr/lib | /lib) ;;
9117 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9118 esac
9119 fi
9120 cd ..
9121 rm -f -r conftest.dir
9122 fi
9123
9124 # Standard set of common directories for X headers.
9125 # Check X11 before X11Rn because it is often a symlink to the current release.
9126 ac_x_header_dirs='
9127 /usr/X11/include
9128 /usr/X11R6/include
9129 /usr/X11R5/include
9130 /usr/X11R4/include
9131
9132 /usr/include/X11
9133 /usr/include/X11R6
9134 /usr/include/X11R5
9135 /usr/include/X11R4
9136
9137 /usr/local/X11/include
9138 /usr/local/X11R6/include
9139 /usr/local/X11R5/include
9140 /usr/local/X11R4/include
9141
9142 /usr/local/include/X11
9143 /usr/local/include/X11R6
9144 /usr/local/include/X11R5
9145 /usr/local/include/X11R4
9146
9147 /usr/X386/include
9148 /usr/x386/include
9149 /usr/XFree86/include/X11
9150
9151 /usr/include
9152 /usr/local/include
9153 /usr/unsupported/include
9154 /usr/athena/include
9155 /usr/local/x11r5/include
9156 /usr/lpp/Xamples/include
9157
9158 /usr/openwin/include
9159 /usr/openwin/share/include'
9160
9161 if test "$ac_x_includes" = no; then
9162 # Guess where to find include files, by looking for Xlib.h.
9163 # First, try using that file with no special directory specified.
9164 cat >conftest.$ac_ext <<_ACEOF
9165 /* confdefs.h. */
9166 _ACEOF
9167 cat confdefs.h >>conftest.$ac_ext
9168 cat >>conftest.$ac_ext <<_ACEOF
9169 /* end confdefs.h. */
9170 #include <X11/Xlib.h>
9171 _ACEOF
9172 if { (ac_try="$ac_cpp conftest.$ac_ext"
9173 case "(($ac_try" in
9174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9175 *) ac_try_echo=$ac_try;;
9176 esac
9177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9178 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9179 ac_status=$?
9180 grep -v '^ *+' conftest.er1 >conftest.err
9181 rm -f conftest.er1
9182 cat conftest.err >&5
9183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9184 (exit $ac_status); } >/dev/null && {
9185 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9186 test ! -s conftest.err
9187 }; then
9188 # We can compile using X headers with no special include directory.
9189 ac_x_includes=
9190 else
9191 echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194 for ac_dir in $ac_x_header_dirs; do
9195 if test -r "$ac_dir/X11/Xlib.h"; then
9196 ac_x_includes=$ac_dir
9197 break
9198 fi
9199 done
9200 fi
9201
9202 rm -f conftest.err conftest.$ac_ext
9203 fi # $ac_x_includes = no
9204
9205 if test "$ac_x_libraries" = no; then
9206 # Check for the libraries.
9207 # See if we find them without any special options.
9208 # Don't add to $LIBS permanently.
9209 ac_save_LIBS=$LIBS
9210 LIBS="-lX11 $LIBS"
9211 cat >conftest.$ac_ext <<_ACEOF
9212 /* confdefs.h. */
9213 _ACEOF
9214 cat confdefs.h >>conftest.$ac_ext
9215 cat >>conftest.$ac_ext <<_ACEOF
9216 /* end confdefs.h. */
9217 #include <X11/Xlib.h>
9218 int
9219 main ()
9220 {
9221 XrmInitialize ()
9222 ;
9223 return 0;
9224 }
9225 _ACEOF
9226 rm -f conftest.$ac_objext conftest$ac_exeext
9227 if { (ac_try="$ac_link"
9228 case "(($ac_try" in
9229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9230 *) ac_try_echo=$ac_try;;
9231 esac
9232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9233 (eval "$ac_link") 2>conftest.er1
9234 ac_status=$?
9235 grep -v '^ *+' conftest.er1 >conftest.err
9236 rm -f conftest.er1
9237 cat conftest.err >&5
9238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9239 (exit $ac_status); } && {
9240 test -z "$ac_c_werror_flag" ||
9241 test ! -s conftest.err
9242 } && test -s conftest$ac_exeext &&
9243 $as_test_x conftest$ac_exeext; then
9244 LIBS=$ac_save_LIBS
9245 # We can link X programs with no special library path.
9246 ac_x_libraries=
9247 else
9248 echo "$as_me: failed program was:" >&5
9249 sed 's/^/| /' conftest.$ac_ext >&5
9250
9251 LIBS=$ac_save_LIBS
9252 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9253 do
9254 # Don't even attempt the hair of trying to link an X program!
9255 for ac_extension in a so sl; do
9256 if test -r "$ac_dir/libX11.$ac_extension"; then
9257 ac_x_libraries=$ac_dir
9258 break 2
9259 fi
9260 done
9261 done
9262 fi
9263
9264 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9265 conftest$ac_exeext conftest.$ac_ext
9266 fi # $ac_x_libraries = no
9267
9268 case $ac_x_includes,$ac_x_libraries in #(
9269 no,* | *,no | *\'*)
9270 # Didn't find X, or a directory has "'" in its name.
9271 ac_cv_have_x="have_x=no";; #(
9272 *)
9273 # Record where we found X for the cache.
9274 ac_cv_have_x="have_x=yes\
9275 ac_x_includes='$ac_x_includes'\
9276 ac_x_libraries='$ac_x_libraries'"
9277 esac
9278 fi
9279 ;; #(
9280 *) have_x=yes;;
9281 esac
9282 eval "$ac_cv_have_x"
9283 fi # $with_x != no
9284
9285 if test "$have_x" != yes; then
9286 { echo "$as_me:$LINENO: result: $have_x" >&5
9287 echo "${ECHO_T}$have_x" >&6; }
9288 no_x=yes
9289 else
9290 # If each of the values was on the command line, it overrides each guess.
9291 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9292 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9293 # Update the cache value to reflect the command line values.
9294 ac_cv_have_x="have_x=yes\
9295 ac_x_includes='$x_includes'\
9296 ac_x_libraries='$x_libraries'"
9297 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9298 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9299 fi
9300
9301 if test "$no_x" = yes; then
9302 window_system=none
9303 else
9304 window_system=x11
9305 fi
9306
9307 if test "${x_libraries}" != NONE; then
9308 if test -n "${x_libraries}"; then
9309 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9310 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9311 fi
9312 x_default_search_path=""
9313 x_search_path=${x_libraries}
9314 if test -z "${x_search_path}"; then
9315 x_search_path=/usr/lib
9316 fi
9317 for x_library in `echo ${x_search_path}: | \
9318 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9319 x_search_path="\
9320 ${x_library}/X11/%L/%T/%N%C%S:\
9321 ${x_library}/X11/%l/%T/%N%C%S:\
9322 ${x_library}/X11/%T/%N%C%S:\
9323 ${x_library}/X11/%L/%T/%N%S:\
9324 ${x_library}/X11/%l/%T/%N%S:\
9325 ${x_library}/X11/%T/%N%S"
9326 if test x"${x_default_search_path}" = x; then
9327 x_default_search_path=${x_search_path}
9328 else
9329 x_default_search_path="${x_search_path}:${x_default_search_path}"
9330 fi
9331 done
9332 fi
9333 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9334 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9335 fi
9336
9337 if test x"${x_includes}" = x; then
9338 bitmapdir=/usr/include/X11/bitmaps
9339 else
9340 # accumulate include directories that have X11 bitmap subdirectories
9341 bmd_acc="dummyval"
9342 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9343 if test -d "${bmd}/X11/bitmaps"; then
9344 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9345 fi
9346 if test -d "${bmd}/bitmaps"; then
9347 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9348 fi
9349 done
9350 if test ${bmd_acc} != "dummyval"; then
9351 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9352 fi
9353 fi
9354
9355 HAVE_CARBON=no
9356 if test "${with_carbon}" != no; then
9357 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9358 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9359 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9360 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9361 echo $ECHO_N "(cached) $ECHO_C" >&6
9362 fi
9363 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9364 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9365 else
9366 # Is the header compilable?
9367 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9368 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9369 cat >conftest.$ac_ext <<_ACEOF
9370 /* confdefs.h. */
9371 _ACEOF
9372 cat confdefs.h >>conftest.$ac_ext
9373 cat >>conftest.$ac_ext <<_ACEOF
9374 /* end confdefs.h. */
9375 $ac_includes_default
9376 #include <Carbon/Carbon.h>
9377 _ACEOF
9378 rm -f conftest.$ac_objext
9379 if { (ac_try="$ac_compile"
9380 case "(($ac_try" in
9381 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9382 *) ac_try_echo=$ac_try;;
9383 esac
9384 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9385 (eval "$ac_compile") 2>conftest.er1
9386 ac_status=$?
9387 grep -v '^ *+' conftest.er1 >conftest.err
9388 rm -f conftest.er1
9389 cat conftest.err >&5
9390 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9391 (exit $ac_status); } && {
9392 test -z "$ac_c_werror_flag" ||
9393 test ! -s conftest.err
9394 } && test -s conftest.$ac_objext; then
9395 ac_header_compiler=yes
9396 else
9397 echo "$as_me: failed program was:" >&5
9398 sed 's/^/| /' conftest.$ac_ext >&5
9399
9400 ac_header_compiler=no
9401 fi
9402
9403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9404 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9405 echo "${ECHO_T}$ac_header_compiler" >&6; }
9406
9407 # Is the header present?
9408 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9409 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9410 cat >conftest.$ac_ext <<_ACEOF
9411 /* confdefs.h. */
9412 _ACEOF
9413 cat confdefs.h >>conftest.$ac_ext
9414 cat >>conftest.$ac_ext <<_ACEOF
9415 /* end confdefs.h. */
9416 #include <Carbon/Carbon.h>
9417 _ACEOF
9418 if { (ac_try="$ac_cpp conftest.$ac_ext"
9419 case "(($ac_try" in
9420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9421 *) ac_try_echo=$ac_try;;
9422 esac
9423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9424 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9425 ac_status=$?
9426 grep -v '^ *+' conftest.er1 >conftest.err
9427 rm -f conftest.er1
9428 cat conftest.err >&5
9429 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9430 (exit $ac_status); } >/dev/null && {
9431 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9432 test ! -s conftest.err
9433 }; then
9434 ac_header_preproc=yes
9435 else
9436 echo "$as_me: failed program was:" >&5
9437 sed 's/^/| /' conftest.$ac_ext >&5
9438
9439 ac_header_preproc=no
9440 fi
9441
9442 rm -f conftest.err conftest.$ac_ext
9443 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9444 echo "${ECHO_T}$ac_header_preproc" >&6; }
9445
9446 # So? What about this header?
9447 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9448 yes:no: )
9449 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9450 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9451 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9452 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9453 ac_header_preproc=yes
9454 ;;
9455 no:yes:* )
9456 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9457 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9458 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9459 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9460 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9461 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9462 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9463 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9464 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9465 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9466 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9467 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9468
9469 ;;
9470 esac
9471 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9472 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9473 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9474 echo $ECHO_N "(cached) $ECHO_C" >&6
9475 else
9476 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9477 fi
9478 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9479 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9480
9481 fi
9482 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9483 HAVE_CARBON=yes
9484 fi
9485
9486
9487 fi
9488 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9489 if test "${with_carbon+set}" != set \
9490 && test "${carbon_appdir_x+set}" != set; then
9491 for var in with_x with_x_toolkit with_gtk with_xim \
9492 with_xpm with_jpeg with_tiff with_gif with_png; do
9493 if eval test \"\${$var+set}\" = set; then
9494 HAVE_CARBON=no
9495 break
9496 fi
9497 done
9498 fi
9499 fi
9500 if test "${HAVE_CARBON}" = yes; then
9501 window_system=mac
9502 fi
9503
9504 case "${window_system}" in
9505 x11 )
9506 HAVE_X_WINDOWS=yes
9507 HAVE_X11=yes
9508 case "${with_x_toolkit}" in
9509 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9510 motif ) USE_X_TOOLKIT=MOTIF ;;
9511 gtk ) with_gtk=yes
9512 USE_X_TOOLKIT=none ;;
9513 no ) USE_X_TOOLKIT=none ;;
9514 * ) USE_X_TOOLKIT=maybe ;;
9515 esac
9516 ;;
9517 mac | none )
9518 HAVE_X_WINDOWS=no
9519 HAVE_X11=no
9520 USE_X_TOOLKIT=none
9521 ;;
9522 esac
9523
9524 ### If we're using X11, we should use the X menu package.
9525 HAVE_MENUS=no
9526 case ${HAVE_X11} in
9527 yes ) HAVE_MENUS=yes ;;
9528 esac
9529
9530 if test "${opsys}" = "hpux9"; then
9531 case "${x_libraries}" in
9532 *X11R4* )
9533 opsysfile="s/hpux9-x11r4.h"
9534 ;;
9535 esac
9536 fi
9537
9538 if test "${opsys}" = "hpux9shr"; then
9539 case "${x_libraries}" in
9540 *X11R4* )
9541 opsysfile="s/hpux9shxr4.h"
9542 ;;
9543 esac
9544 fi
9545
9546 ### Compute the unexec source name from the object name.
9547 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9548
9549 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9550 # Assume not, until told otherwise.
9551 GNU_MALLOC=yes
9552 doug_lea_malloc=yes
9553 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9554 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9555 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9556 echo $ECHO_N "(cached) $ECHO_C" >&6
9557 else
9558 cat >conftest.$ac_ext <<_ACEOF
9559 /* confdefs.h. */
9560 _ACEOF
9561 cat confdefs.h >>conftest.$ac_ext
9562 cat >>conftest.$ac_ext <<_ACEOF
9563 /* end confdefs.h. */
9564 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9565 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9566 #define malloc_get_state innocuous_malloc_get_state
9567
9568 /* System header to define __stub macros and hopefully few prototypes,
9569 which can conflict with char malloc_get_state (); below.
9570 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9571 <limits.h> exists even on freestanding compilers. */
9572
9573 #ifdef __STDC__
9574 # include <limits.h>
9575 #else
9576 # include <assert.h>
9577 #endif
9578
9579 #undef malloc_get_state
9580
9581 /* Override any GCC internal prototype to avoid an error.
9582 Use char because int might match the return type of a GCC
9583 builtin and then its argument prototype would still apply. */
9584 #ifdef __cplusplus
9585 extern "C"
9586 #endif
9587 char malloc_get_state ();
9588 /* The GNU C library defines this for functions which it implements
9589 to always fail with ENOSYS. Some functions are actually named
9590 something starting with __ and the normal name is an alias. */
9591 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9592 choke me
9593 #endif
9594
9595 int
9596 main ()
9597 {
9598 return malloc_get_state ();
9599 ;
9600 return 0;
9601 }
9602 _ACEOF
9603 rm -f conftest.$ac_objext conftest$ac_exeext
9604 if { (ac_try="$ac_link"
9605 case "(($ac_try" in
9606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9607 *) ac_try_echo=$ac_try;;
9608 esac
9609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9610 (eval "$ac_link") 2>conftest.er1
9611 ac_status=$?
9612 grep -v '^ *+' conftest.er1 >conftest.err
9613 rm -f conftest.er1
9614 cat conftest.err >&5
9615 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9616 (exit $ac_status); } && {
9617 test -z "$ac_c_werror_flag" ||
9618 test ! -s conftest.err
9619 } && test -s conftest$ac_exeext &&
9620 $as_test_x conftest$ac_exeext; then
9621 ac_cv_func_malloc_get_state=yes
9622 else
9623 echo "$as_me: failed program was:" >&5
9624 sed 's/^/| /' conftest.$ac_ext >&5
9625
9626 ac_cv_func_malloc_get_state=no
9627 fi
9628
9629 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9630 conftest$ac_exeext conftest.$ac_ext
9631 fi
9632 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9633 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9634 if test $ac_cv_func_malloc_get_state = yes; then
9635 :
9636 else
9637 doug_lea_malloc=no
9638 fi
9639
9640 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9641 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9642 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9643 echo $ECHO_N "(cached) $ECHO_C" >&6
9644 else
9645 cat >conftest.$ac_ext <<_ACEOF
9646 /* confdefs.h. */
9647 _ACEOF
9648 cat confdefs.h >>conftest.$ac_ext
9649 cat >>conftest.$ac_ext <<_ACEOF
9650 /* end confdefs.h. */
9651 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9652 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9653 #define malloc_set_state innocuous_malloc_set_state
9654
9655 /* System header to define __stub macros and hopefully few prototypes,
9656 which can conflict with char malloc_set_state (); below.
9657 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9658 <limits.h> exists even on freestanding compilers. */
9659
9660 #ifdef __STDC__
9661 # include <limits.h>
9662 #else
9663 # include <assert.h>
9664 #endif
9665
9666 #undef malloc_set_state
9667
9668 /* Override any GCC internal prototype to avoid an error.
9669 Use char because int might match the return type of a GCC
9670 builtin and then its argument prototype would still apply. */
9671 #ifdef __cplusplus
9672 extern "C"
9673 #endif
9674 char malloc_set_state ();
9675 /* The GNU C library defines this for functions which it implements
9676 to always fail with ENOSYS. Some functions are actually named
9677 something starting with __ and the normal name is an alias. */
9678 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9679 choke me
9680 #endif
9681
9682 int
9683 main ()
9684 {
9685 return malloc_set_state ();
9686 ;
9687 return 0;
9688 }
9689 _ACEOF
9690 rm -f conftest.$ac_objext conftest$ac_exeext
9691 if { (ac_try="$ac_link"
9692 case "(($ac_try" in
9693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9694 *) ac_try_echo=$ac_try;;
9695 esac
9696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9697 (eval "$ac_link") 2>conftest.er1
9698 ac_status=$?
9699 grep -v '^ *+' conftest.er1 >conftest.err
9700 rm -f conftest.er1
9701 cat conftest.err >&5
9702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9703 (exit $ac_status); } && {
9704 test -z "$ac_c_werror_flag" ||
9705 test ! -s conftest.err
9706 } && test -s conftest$ac_exeext &&
9707 $as_test_x conftest$ac_exeext; then
9708 ac_cv_func_malloc_set_state=yes
9709 else
9710 echo "$as_me: failed program was:" >&5
9711 sed 's/^/| /' conftest.$ac_ext >&5
9712
9713 ac_cv_func_malloc_set_state=no
9714 fi
9715
9716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9717 conftest$ac_exeext conftest.$ac_ext
9718 fi
9719 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9720 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9721 if test $ac_cv_func_malloc_set_state = yes; then
9722 :
9723 else
9724 doug_lea_malloc=no
9725 fi
9726
9727 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9728 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9729 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9730 echo $ECHO_N "(cached) $ECHO_C" >&6
9731 else
9732 cat >conftest.$ac_ext <<_ACEOF
9733 /* confdefs.h. */
9734 _ACEOF
9735 cat confdefs.h >>conftest.$ac_ext
9736 cat >>conftest.$ac_ext <<_ACEOF
9737 /* end confdefs.h. */
9738 extern void (* __after_morecore_hook)();
9739 int
9740 main ()
9741 {
9742 __after_morecore_hook = 0
9743 ;
9744 return 0;
9745 }
9746 _ACEOF
9747 rm -f conftest.$ac_objext conftest$ac_exeext
9748 if { (ac_try="$ac_link"
9749 case "(($ac_try" in
9750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9751 *) ac_try_echo=$ac_try;;
9752 esac
9753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9754 (eval "$ac_link") 2>conftest.er1
9755 ac_status=$?
9756 grep -v '^ *+' conftest.er1 >conftest.err
9757 rm -f conftest.er1
9758 cat conftest.err >&5
9759 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9760 (exit $ac_status); } && {
9761 test -z "$ac_c_werror_flag" ||
9762 test ! -s conftest.err
9763 } && test -s conftest$ac_exeext &&
9764 $as_test_x conftest$ac_exeext; then
9765 emacs_cv_var___after_morecore_hook=yes
9766 else
9767 echo "$as_me: failed program was:" >&5
9768 sed 's/^/| /' conftest.$ac_ext >&5
9769
9770 emacs_cv_var___after_morecore_hook=no
9771 fi
9772
9773 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9774 conftest$ac_exeext conftest.$ac_ext
9775 fi
9776 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9777 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9778 if test $emacs_cv_var___after_morecore_hook = no; then
9779 doug_lea_malloc=no
9780 fi
9781 if test "${system_malloc}" = "yes"; then
9782 GNU_MALLOC=no
9783 GNU_MALLOC_reason="
9784 (The GNU allocators don't work with this system configuration.)"
9785 fi
9786 if test "$doug_lea_malloc" = "yes" ; then
9787 if test "$GNU_MALLOC" = yes ; then
9788 GNU_MALLOC_reason="
9789 (Using Doug Lea's new malloc from the GNU C Library.)"
9790 fi
9791
9792 cat >>confdefs.h <<\_ACEOF
9793 #define DOUG_LEA_MALLOC 1
9794 _ACEOF
9795
9796 fi
9797
9798 if test x"${REL_ALLOC}" = x; then
9799 REL_ALLOC=${GNU_MALLOC}
9800 fi
9801
9802
9803
9804
9805 for ac_header in stdlib.h unistd.h
9806 do
9807 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9808 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9809 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9810 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9811 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9812 echo $ECHO_N "(cached) $ECHO_C" >&6
9813 fi
9814 ac_res=`eval echo '${'$as_ac_Header'}'`
9815 { echo "$as_me:$LINENO: result: $ac_res" >&5
9816 echo "${ECHO_T}$ac_res" >&6; }
9817 else
9818 # Is the header compilable?
9819 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9820 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9821 cat >conftest.$ac_ext <<_ACEOF
9822 /* confdefs.h. */
9823 _ACEOF
9824 cat confdefs.h >>conftest.$ac_ext
9825 cat >>conftest.$ac_ext <<_ACEOF
9826 /* end confdefs.h. */
9827 $ac_includes_default
9828 #include <$ac_header>
9829 _ACEOF
9830 rm -f conftest.$ac_objext
9831 if { (ac_try="$ac_compile"
9832 case "(($ac_try" in
9833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9834 *) ac_try_echo=$ac_try;;
9835 esac
9836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9837 (eval "$ac_compile") 2>conftest.er1
9838 ac_status=$?
9839 grep -v '^ *+' conftest.er1 >conftest.err
9840 rm -f conftest.er1
9841 cat conftest.err >&5
9842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9843 (exit $ac_status); } && {
9844 test -z "$ac_c_werror_flag" ||
9845 test ! -s conftest.err
9846 } && test -s conftest.$ac_objext; then
9847 ac_header_compiler=yes
9848 else
9849 echo "$as_me: failed program was:" >&5
9850 sed 's/^/| /' conftest.$ac_ext >&5
9851
9852 ac_header_compiler=no
9853 fi
9854
9855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9856 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9857 echo "${ECHO_T}$ac_header_compiler" >&6; }
9858
9859 # Is the header present?
9860 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9861 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9862 cat >conftest.$ac_ext <<_ACEOF
9863 /* confdefs.h. */
9864 _ACEOF
9865 cat confdefs.h >>conftest.$ac_ext
9866 cat >>conftest.$ac_ext <<_ACEOF
9867 /* end confdefs.h. */
9868 #include <$ac_header>
9869 _ACEOF
9870 if { (ac_try="$ac_cpp conftest.$ac_ext"
9871 case "(($ac_try" in
9872 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9873 *) ac_try_echo=$ac_try;;
9874 esac
9875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9876 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9877 ac_status=$?
9878 grep -v '^ *+' conftest.er1 >conftest.err
9879 rm -f conftest.er1
9880 cat conftest.err >&5
9881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9882 (exit $ac_status); } >/dev/null && {
9883 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9884 test ! -s conftest.err
9885 }; then
9886 ac_header_preproc=yes
9887 else
9888 echo "$as_me: failed program was:" >&5
9889 sed 's/^/| /' conftest.$ac_ext >&5
9890
9891 ac_header_preproc=no
9892 fi
9893
9894 rm -f conftest.err conftest.$ac_ext
9895 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9896 echo "${ECHO_T}$ac_header_preproc" >&6; }
9897
9898 # So? What about this header?
9899 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9900 yes:no: )
9901 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9902 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9903 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9904 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9905 ac_header_preproc=yes
9906 ;;
9907 no:yes:* )
9908 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9909 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9910 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9911 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9912 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9913 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9914 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9915 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9916 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9917 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9918 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9919 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9920
9921 ;;
9922 esac
9923 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9924 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9925 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9926 echo $ECHO_N "(cached) $ECHO_C" >&6
9927 else
9928 eval "$as_ac_Header=\$ac_header_preproc"
9929 fi
9930 ac_res=`eval echo '${'$as_ac_Header'}'`
9931 { echo "$as_me:$LINENO: result: $ac_res" >&5
9932 echo "${ECHO_T}$ac_res" >&6; }
9933
9934 fi
9935 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9936 cat >>confdefs.h <<_ACEOF
9937 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9938 _ACEOF
9939
9940 fi
9941
9942 done
9943
9944
9945 for ac_func in getpagesize
9946 do
9947 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9948 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9949 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9950 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9951 echo $ECHO_N "(cached) $ECHO_C" >&6
9952 else
9953 cat >conftest.$ac_ext <<_ACEOF
9954 /* confdefs.h. */
9955 _ACEOF
9956 cat confdefs.h >>conftest.$ac_ext
9957 cat >>conftest.$ac_ext <<_ACEOF
9958 /* end confdefs.h. */
9959 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9960 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9961 #define $ac_func innocuous_$ac_func
9962
9963 /* System header to define __stub macros and hopefully few prototypes,
9964 which can conflict with char $ac_func (); below.
9965 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9966 <limits.h> exists even on freestanding compilers. */
9967
9968 #ifdef __STDC__
9969 # include <limits.h>
9970 #else
9971 # include <assert.h>
9972 #endif
9973
9974 #undef $ac_func
9975
9976 /* Override any GCC internal prototype to avoid an error.
9977 Use char because int might match the return type of a GCC
9978 builtin and then its argument prototype would still apply. */
9979 #ifdef __cplusplus
9980 extern "C"
9981 #endif
9982 char $ac_func ();
9983 /* The GNU C library defines this for functions which it implements
9984 to always fail with ENOSYS. Some functions are actually named
9985 something starting with __ and the normal name is an alias. */
9986 #if defined __stub_$ac_func || defined __stub___$ac_func
9987 choke me
9988 #endif
9989
9990 int
9991 main ()
9992 {
9993 return $ac_func ();
9994 ;
9995 return 0;
9996 }
9997 _ACEOF
9998 rm -f conftest.$ac_objext conftest$ac_exeext
9999 if { (ac_try="$ac_link"
10000 case "(($ac_try" in
10001 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10002 *) ac_try_echo=$ac_try;;
10003 esac
10004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10005 (eval "$ac_link") 2>conftest.er1
10006 ac_status=$?
10007 grep -v '^ *+' conftest.er1 >conftest.err
10008 rm -f conftest.er1
10009 cat conftest.err >&5
10010 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10011 (exit $ac_status); } && {
10012 test -z "$ac_c_werror_flag" ||
10013 test ! -s conftest.err
10014 } && test -s conftest$ac_exeext &&
10015 $as_test_x conftest$ac_exeext; then
10016 eval "$as_ac_var=yes"
10017 else
10018 echo "$as_me: failed program was:" >&5
10019 sed 's/^/| /' conftest.$ac_ext >&5
10020
10021 eval "$as_ac_var=no"
10022 fi
10023
10024 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10025 conftest$ac_exeext conftest.$ac_ext
10026 fi
10027 ac_res=`eval echo '${'$as_ac_var'}'`
10028 { echo "$as_me:$LINENO: result: $ac_res" >&5
10029 echo "${ECHO_T}$ac_res" >&6; }
10030 if test `eval echo '${'$as_ac_var'}'` = yes; then
10031 cat >>confdefs.h <<_ACEOF
10032 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10033 _ACEOF
10034
10035 fi
10036 done
10037
10038 { echo "$as_me:$LINENO: checking for working mmap" >&5
10039 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10040 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 else
10043 if test "$cross_compiling" = yes; then
10044 ac_cv_func_mmap_fixed_mapped=no
10045 else
10046 cat >conftest.$ac_ext <<_ACEOF
10047 /* confdefs.h. */
10048 _ACEOF
10049 cat confdefs.h >>conftest.$ac_ext
10050 cat >>conftest.$ac_ext <<_ACEOF
10051 /* end confdefs.h. */
10052 $ac_includes_default
10053 /* malloc might have been renamed as rpl_malloc. */
10054 #undef malloc
10055
10056 /* Thanks to Mike Haertel and Jim Avera for this test.
10057 Here is a matrix of mmap possibilities:
10058 mmap private not fixed
10059 mmap private fixed at somewhere currently unmapped
10060 mmap private fixed at somewhere already mapped
10061 mmap shared not fixed
10062 mmap shared fixed at somewhere currently unmapped
10063 mmap shared fixed at somewhere already mapped
10064 For private mappings, we should verify that changes cannot be read()
10065 back from the file, nor mmap's back from the file at a different
10066 address. (There have been systems where private was not correctly
10067 implemented like the infamous i386 svr4.0, and systems where the
10068 VM page cache was not coherent with the file system buffer cache
10069 like early versions of FreeBSD and possibly contemporary NetBSD.)
10070 For shared mappings, we should conversely verify that changes get
10071 propagated back to all the places they're supposed to be.
10072
10073 Grep wants private fixed already mapped.
10074 The main things grep needs to know about mmap are:
10075 * does it exist and is it safe to write into the mmap'd area
10076 * how to use it (BSD variants) */
10077
10078 #include <fcntl.h>
10079 #include <sys/mman.h>
10080
10081 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10082 char *malloc ();
10083 #endif
10084
10085 /* This mess was copied from the GNU getpagesize.h. */
10086 #ifndef HAVE_GETPAGESIZE
10087 /* Assume that all systems that can run configure have sys/param.h. */
10088 # ifndef HAVE_SYS_PARAM_H
10089 # define HAVE_SYS_PARAM_H 1
10090 # endif
10091
10092 # ifdef _SC_PAGESIZE
10093 # define getpagesize() sysconf(_SC_PAGESIZE)
10094 # else /* no _SC_PAGESIZE */
10095 # ifdef HAVE_SYS_PARAM_H
10096 # include <sys/param.h>
10097 # ifdef EXEC_PAGESIZE
10098 # define getpagesize() EXEC_PAGESIZE
10099 # else /* no EXEC_PAGESIZE */
10100 # ifdef NBPG
10101 # define getpagesize() NBPG * CLSIZE
10102 # ifndef CLSIZE
10103 # define CLSIZE 1
10104 # endif /* no CLSIZE */
10105 # else /* no NBPG */
10106 # ifdef NBPC
10107 # define getpagesize() NBPC
10108 # else /* no NBPC */
10109 # ifdef PAGESIZE
10110 # define getpagesize() PAGESIZE
10111 # endif /* PAGESIZE */
10112 # endif /* no NBPC */
10113 # endif /* no NBPG */
10114 # endif /* no EXEC_PAGESIZE */
10115 # else /* no HAVE_SYS_PARAM_H */
10116 # define getpagesize() 8192 /* punt totally */
10117 # endif /* no HAVE_SYS_PARAM_H */
10118 # endif /* no _SC_PAGESIZE */
10119
10120 #endif /* no HAVE_GETPAGESIZE */
10121
10122 int
10123 main ()
10124 {
10125 char *data, *data2, *data3;
10126 int i, pagesize;
10127 int fd;
10128
10129 pagesize = getpagesize ();
10130
10131 /* First, make a file with some known garbage in it. */
10132 data = (char *) malloc (pagesize);
10133 if (!data)
10134 return 1;
10135 for (i = 0; i < pagesize; ++i)
10136 *(data + i) = rand ();
10137 umask (0);
10138 fd = creat ("conftest.mmap", 0600);
10139 if (fd < 0)
10140 return 1;
10141 if (write (fd, data, pagesize) != pagesize)
10142 return 1;
10143 close (fd);
10144
10145 /* Next, try to mmap the file at a fixed address which already has
10146 something else allocated at it. If we can, also make sure that
10147 we see the same garbage. */
10148 fd = open ("conftest.mmap", O_RDWR);
10149 if (fd < 0)
10150 return 1;
10151 data2 = (char *) malloc (2 * pagesize);
10152 if (!data2)
10153 return 1;
10154 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10155 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10156 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10157 return 1;
10158 for (i = 0; i < pagesize; ++i)
10159 if (*(data + i) != *(data2 + i))
10160 return 1;
10161
10162 /* Finally, make sure that changes to the mapped area do not
10163 percolate back to the file as seen by read(). (This is a bug on
10164 some variants of i386 svr4.0.) */
10165 for (i = 0; i < pagesize; ++i)
10166 *(data2 + i) = *(data2 + i) + 1;
10167 data3 = (char *) malloc (pagesize);
10168 if (!data3)
10169 return 1;
10170 if (read (fd, data3, pagesize) != pagesize)
10171 return 1;
10172 for (i = 0; i < pagesize; ++i)
10173 if (*(data + i) != *(data3 + i))
10174 return 1;
10175 close (fd);
10176 return 0;
10177 }
10178 _ACEOF
10179 rm -f conftest$ac_exeext
10180 if { (ac_try="$ac_link"
10181 case "(($ac_try" in
10182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10183 *) ac_try_echo=$ac_try;;
10184 esac
10185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10186 (eval "$ac_link") 2>&5
10187 ac_status=$?
10188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10189 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10190 { (case "(($ac_try" in
10191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10192 *) ac_try_echo=$ac_try;;
10193 esac
10194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10195 (eval "$ac_try") 2>&5
10196 ac_status=$?
10197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10198 (exit $ac_status); }; }; then
10199 ac_cv_func_mmap_fixed_mapped=yes
10200 else
10201 echo "$as_me: program exited with status $ac_status" >&5
10202 echo "$as_me: failed program was:" >&5
10203 sed 's/^/| /' conftest.$ac_ext >&5
10204
10205 ( exit $ac_status )
10206 ac_cv_func_mmap_fixed_mapped=no
10207 fi
10208 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10209 fi
10210
10211
10212 fi
10213 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10214 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10215 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10216
10217 cat >>confdefs.h <<\_ACEOF
10218 #define HAVE_MMAP 1
10219 _ACEOF
10220
10221 fi
10222 rm -f conftest.mmap
10223
10224 if test $use_mmap_for_buffers = yes; then
10225 REL_ALLOC=no
10226 fi
10227
10228 LIBS="$libsrc_libs $LIBS"
10229
10230
10231 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10232 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10233 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10234 echo $ECHO_N "(cached) $ECHO_C" >&6
10235 else
10236 ac_check_lib_save_LIBS=$LIBS
10237 LIBS="-ldnet $LIBS"
10238 cat >conftest.$ac_ext <<_ACEOF
10239 /* confdefs.h. */
10240 _ACEOF
10241 cat confdefs.h >>conftest.$ac_ext
10242 cat >>conftest.$ac_ext <<_ACEOF
10243 /* end confdefs.h. */
10244
10245 /* Override any GCC internal prototype to avoid an error.
10246 Use char because int might match the return type of a GCC
10247 builtin and then its argument prototype would still apply. */
10248 #ifdef __cplusplus
10249 extern "C"
10250 #endif
10251 char dnet_ntoa ();
10252 int
10253 main ()
10254 {
10255 return dnet_ntoa ();
10256 ;
10257 return 0;
10258 }
10259 _ACEOF
10260 rm -f conftest.$ac_objext conftest$ac_exeext
10261 if { (ac_try="$ac_link"
10262 case "(($ac_try" in
10263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10264 *) ac_try_echo=$ac_try;;
10265 esac
10266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10267 (eval "$ac_link") 2>conftest.er1
10268 ac_status=$?
10269 grep -v '^ *+' conftest.er1 >conftest.err
10270 rm -f conftest.er1
10271 cat conftest.err >&5
10272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10273 (exit $ac_status); } && {
10274 test -z "$ac_c_werror_flag" ||
10275 test ! -s conftest.err
10276 } && test -s conftest$ac_exeext &&
10277 $as_test_x conftest$ac_exeext; then
10278 ac_cv_lib_dnet_dnet_ntoa=yes
10279 else
10280 echo "$as_me: failed program was:" >&5
10281 sed 's/^/| /' conftest.$ac_ext >&5
10282
10283 ac_cv_lib_dnet_dnet_ntoa=no
10284 fi
10285
10286 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10287 conftest$ac_exeext conftest.$ac_ext
10288 LIBS=$ac_check_lib_save_LIBS
10289 fi
10290 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10291 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10292 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10293 cat >>confdefs.h <<_ACEOF
10294 #define HAVE_LIBDNET 1
10295 _ACEOF
10296
10297 LIBS="-ldnet $LIBS"
10298
10299 fi
10300
10301
10302 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10303 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10304 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10305 echo $ECHO_N "(cached) $ECHO_C" >&6
10306 else
10307 ac_check_lib_save_LIBS=$LIBS
10308 LIBS="-lXbsd $LIBS"
10309 cat >conftest.$ac_ext <<_ACEOF
10310 /* confdefs.h. */
10311 _ACEOF
10312 cat confdefs.h >>conftest.$ac_ext
10313 cat >>conftest.$ac_ext <<_ACEOF
10314 /* end confdefs.h. */
10315
10316
10317 int
10318 main ()
10319 {
10320 return main ();
10321 ;
10322 return 0;
10323 }
10324 _ACEOF
10325 rm -f conftest.$ac_objext conftest$ac_exeext
10326 if { (ac_try="$ac_link"
10327 case "(($ac_try" in
10328 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10329 *) ac_try_echo=$ac_try;;
10330 esac
10331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10332 (eval "$ac_link") 2>conftest.er1
10333 ac_status=$?
10334 grep -v '^ *+' conftest.er1 >conftest.err
10335 rm -f conftest.er1
10336 cat conftest.err >&5
10337 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10338 (exit $ac_status); } && {
10339 test -z "$ac_c_werror_flag" ||
10340 test ! -s conftest.err
10341 } && test -s conftest$ac_exeext &&
10342 $as_test_x conftest$ac_exeext; then
10343 ac_cv_lib_Xbsd_main=yes
10344 else
10345 echo "$as_me: failed program was:" >&5
10346 sed 's/^/| /' conftest.$ac_ext >&5
10347
10348 ac_cv_lib_Xbsd_main=no
10349 fi
10350
10351 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10352 conftest$ac_exeext conftest.$ac_ext
10353 LIBS=$ac_check_lib_save_LIBS
10354 fi
10355 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10356 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10357 if test $ac_cv_lib_Xbsd_main = yes; then
10358 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10359 fi
10360
10361
10362
10363 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10364 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10365 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10366 echo $ECHO_N "(cached) $ECHO_C" >&6
10367 else
10368 ac_check_lib_save_LIBS=$LIBS
10369 LIBS="-lpthreads $LIBS"
10370 cat >conftest.$ac_ext <<_ACEOF
10371 /* confdefs.h. */
10372 _ACEOF
10373 cat confdefs.h >>conftest.$ac_ext
10374 cat >>conftest.$ac_ext <<_ACEOF
10375 /* end confdefs.h. */
10376
10377 /* Override any GCC internal prototype to avoid an error.
10378 Use char because int might match the return type of a GCC
10379 builtin and then its argument prototype would still apply. */
10380 #ifdef __cplusplus
10381 extern "C"
10382 #endif
10383 char cma_open ();
10384 int
10385 main ()
10386 {
10387 return cma_open ();
10388 ;
10389 return 0;
10390 }
10391 _ACEOF
10392 rm -f conftest.$ac_objext conftest$ac_exeext
10393 if { (ac_try="$ac_link"
10394 case "(($ac_try" in
10395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10396 *) ac_try_echo=$ac_try;;
10397 esac
10398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10399 (eval "$ac_link") 2>conftest.er1
10400 ac_status=$?
10401 grep -v '^ *+' conftest.er1 >conftest.err
10402 rm -f conftest.er1
10403 cat conftest.err >&5
10404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10405 (exit $ac_status); } && {
10406 test -z "$ac_c_werror_flag" ||
10407 test ! -s conftest.err
10408 } && test -s conftest$ac_exeext &&
10409 $as_test_x conftest$ac_exeext; then
10410 ac_cv_lib_pthreads_cma_open=yes
10411 else
10412 echo "$as_me: failed program was:" >&5
10413 sed 's/^/| /' conftest.$ac_ext >&5
10414
10415 ac_cv_lib_pthreads_cma_open=no
10416 fi
10417
10418 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10419 conftest$ac_exeext conftest.$ac_ext
10420 LIBS=$ac_check_lib_save_LIBS
10421 fi
10422 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10423 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10424 if test $ac_cv_lib_pthreads_cma_open = yes; then
10425 cat >>confdefs.h <<_ACEOF
10426 #define HAVE_LIBPTHREADS 1
10427 _ACEOF
10428
10429 LIBS="-lpthreads $LIBS"
10430
10431 fi
10432
10433
10434 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10435 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10436 if test -d /usr/X386/include; then
10437 HAVE_XFREE386=yes
10438 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10439 else
10440 HAVE_XFREE386=no
10441 fi
10442 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10443 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10444
10445
10446 case ${host_os} in
10447 aix*)
10448 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10449 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10450 if test "${gdb_cv_bigtoc+set}" = set; then
10451 echo $ECHO_N "(cached) $ECHO_C" >&6
10452 else
10453
10454 case $GCC in
10455 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10456 *) gdb_cv_bigtoc=-bbigtoc ;;
10457 esac
10458
10459 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10460 cat >conftest.$ac_ext <<_ACEOF
10461 /* confdefs.h. */
10462 _ACEOF
10463 cat confdefs.h >>conftest.$ac_ext
10464 cat >>conftest.$ac_ext <<_ACEOF
10465 /* end confdefs.h. */
10466
10467 int
10468 main ()
10469 {
10470 int i;
10471 ;
10472 return 0;
10473 }
10474 _ACEOF
10475 rm -f conftest.$ac_objext conftest$ac_exeext
10476 if { (ac_try="$ac_link"
10477 case "(($ac_try" in
10478 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10479 *) ac_try_echo=$ac_try;;
10480 esac
10481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10482 (eval "$ac_link") 2>conftest.er1
10483 ac_status=$?
10484 grep -v '^ *+' conftest.er1 >conftest.err
10485 rm -f conftest.er1
10486 cat conftest.err >&5
10487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10488 (exit $ac_status); } && {
10489 test -z "$ac_c_werror_flag" ||
10490 test ! -s conftest.err
10491 } && test -s conftest$ac_exeext &&
10492 $as_test_x conftest$ac_exeext; then
10493 :
10494 else
10495 echo "$as_me: failed program was:" >&5
10496 sed 's/^/| /' conftest.$ac_ext >&5
10497
10498 gdb_cv_bigtoc=
10499 fi
10500
10501 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10502 conftest$ac_exeext conftest.$ac_ext
10503
10504 fi
10505 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10506 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10507 ;;
10508 esac
10509
10510 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10511 # used for the tests that follow. We set them back to REAL_CFLAGS and
10512 # REAL_CPPFLAGS later on.
10513
10514 REAL_CPPFLAGS="$CPPFLAGS"
10515
10516 if test "${HAVE_X11}" = "yes"; then
10517 DEFS="$C_SWITCH_X_SITE $DEFS"
10518 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10519 LIBS="$LIBX $LIBS"
10520 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10521 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10522
10523 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10524 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10525 # but it's more convenient here to set LD_RUN_PATH
10526 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10527 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10528 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10529 export LD_RUN_PATH
10530 fi
10531
10532 if test "${opsys}" = "gnu-linux"; then
10533 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10534 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10535 cat >conftest.$ac_ext <<_ACEOF
10536 /* confdefs.h. */
10537 _ACEOF
10538 cat confdefs.h >>conftest.$ac_ext
10539 cat >>conftest.$ac_ext <<_ACEOF
10540 /* end confdefs.h. */
10541
10542 int
10543 main ()
10544 {
10545 XOpenDisplay ("foo");
10546 ;
10547 return 0;
10548 }
10549 _ACEOF
10550 rm -f conftest.$ac_objext conftest$ac_exeext
10551 if { (ac_try="$ac_link"
10552 case "(($ac_try" in
10553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10554 *) ac_try_echo=$ac_try;;
10555 esac
10556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10557 (eval "$ac_link") 2>conftest.er1
10558 ac_status=$?
10559 grep -v '^ *+' conftest.er1 >conftest.err
10560 rm -f conftest.er1
10561 cat conftest.err >&5
10562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10563 (exit $ac_status); } && {
10564 test -z "$ac_c_werror_flag" ||
10565 test ! -s conftest.err
10566 } && test -s conftest$ac_exeext &&
10567 $as_test_x conftest$ac_exeext; then
10568 xlinux_first_failure=no
10569 else
10570 echo "$as_me: failed program was:" >&5
10571 sed 's/^/| /' conftest.$ac_ext >&5
10572
10573 xlinux_first_failure=yes
10574 fi
10575
10576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10577 conftest$ac_exeext conftest.$ac_ext
10578 if test "${xlinux_first_failure}" = "yes"; then
10579 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10580 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10581 OLD_CPPFLAGS="$CPPFLAGS"
10582 OLD_LIBS="$LIBS"
10583 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10584 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10585 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10586 LIBS="$LIBS -b i486-linuxaout"
10587 cat >conftest.$ac_ext <<_ACEOF
10588 /* confdefs.h. */
10589 _ACEOF
10590 cat confdefs.h >>conftest.$ac_ext
10591 cat >>conftest.$ac_ext <<_ACEOF
10592 /* end confdefs.h. */
10593
10594 int
10595 main ()
10596 {
10597 XOpenDisplay ("foo");
10598 ;
10599 return 0;
10600 }
10601 _ACEOF
10602 rm -f conftest.$ac_objext conftest$ac_exeext
10603 if { (ac_try="$ac_link"
10604 case "(($ac_try" in
10605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10606 *) ac_try_echo=$ac_try;;
10607 esac
10608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10609 (eval "$ac_link") 2>conftest.er1
10610 ac_status=$?
10611 grep -v '^ *+' conftest.er1 >conftest.err
10612 rm -f conftest.er1
10613 cat conftest.err >&5
10614 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10615 (exit $ac_status); } && {
10616 test -z "$ac_c_werror_flag" ||
10617 test ! -s conftest.err
10618 } && test -s conftest$ac_exeext &&
10619 $as_test_x conftest$ac_exeext; then
10620 xlinux_second_failure=no
10621 else
10622 echo "$as_me: failed program was:" >&5
10623 sed 's/^/| /' conftest.$ac_ext >&5
10624
10625 xlinux_second_failure=yes
10626 fi
10627
10628 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10629 conftest$ac_exeext conftest.$ac_ext
10630 if test "${xlinux_second_failure}" = "yes"; then
10631 # If we get the same failure with -b, there is no use adding -b.
10632 # So take it out. This plays safe.
10633 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10634 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10635 CPPFLAGS="$OLD_CPPFLAGS"
10636 LIBS="$OLD_LIBS"
10637 { echo "$as_me:$LINENO: result: no" >&5
10638 echo "${ECHO_T}no" >&6; }
10639 else
10640 { echo "$as_me:$LINENO: result: yes" >&5
10641 echo "${ECHO_T}yes" >&6; }
10642 fi
10643 else
10644 { echo "$as_me:$LINENO: result: no" >&5
10645 echo "${ECHO_T}no" >&6; }
10646 fi
10647 fi
10648
10649 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10650 # header files included from there.
10651 { echo "$as_me:$LINENO: checking for Xkb" >&5
10652 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10653 cat >conftest.$ac_ext <<_ACEOF
10654 /* confdefs.h. */
10655 _ACEOF
10656 cat confdefs.h >>conftest.$ac_ext
10657 cat >>conftest.$ac_ext <<_ACEOF
10658 /* end confdefs.h. */
10659 #include <X11/Xlib.h>
10660 #include <X11/XKBlib.h>
10661 int
10662 main ()
10663 {
10664 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10665 ;
10666 return 0;
10667 }
10668 _ACEOF
10669 rm -f conftest.$ac_objext conftest$ac_exeext
10670 if { (ac_try="$ac_link"
10671 case "(($ac_try" in
10672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10673 *) ac_try_echo=$ac_try;;
10674 esac
10675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10676 (eval "$ac_link") 2>conftest.er1
10677 ac_status=$?
10678 grep -v '^ *+' conftest.er1 >conftest.err
10679 rm -f conftest.er1
10680 cat conftest.err >&5
10681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10682 (exit $ac_status); } && {
10683 test -z "$ac_c_werror_flag" ||
10684 test ! -s conftest.err
10685 } && test -s conftest$ac_exeext &&
10686 $as_test_x conftest$ac_exeext; then
10687 emacs_xkb=yes
10688 else
10689 echo "$as_me: failed program was:" >&5
10690 sed 's/^/| /' conftest.$ac_ext >&5
10691
10692 emacs_xkb=no
10693 fi
10694
10695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10696 conftest$ac_exeext conftest.$ac_ext
10697 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10698 echo "${ECHO_T}$emacs_xkb" >&6; }
10699 if test $emacs_xkb = yes; then
10700
10701 cat >>confdefs.h <<\_ACEOF
10702 #define HAVE_XKBGETKEYBOARD 1
10703 _ACEOF
10704
10705 fi
10706
10707
10708
10709
10710
10711 for ac_func in XrmSetDatabase XScreenResourceString \
10712 XScreenNumberOfScreen XSetWMProtocols
10713 do
10714 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10715 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10716 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10717 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10718 echo $ECHO_N "(cached) $ECHO_C" >&6
10719 else
10720 cat >conftest.$ac_ext <<_ACEOF
10721 /* confdefs.h. */
10722 _ACEOF
10723 cat confdefs.h >>conftest.$ac_ext
10724 cat >>conftest.$ac_ext <<_ACEOF
10725 /* end confdefs.h. */
10726 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10727 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10728 #define $ac_func innocuous_$ac_func
10729
10730 /* System header to define __stub macros and hopefully few prototypes,
10731 which can conflict with char $ac_func (); below.
10732 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10733 <limits.h> exists even on freestanding compilers. */
10734
10735 #ifdef __STDC__
10736 # include <limits.h>
10737 #else
10738 # include <assert.h>
10739 #endif
10740
10741 #undef $ac_func
10742
10743 /* Override any GCC internal prototype to avoid an error.
10744 Use char because int might match the return type of a GCC
10745 builtin and then its argument prototype would still apply. */
10746 #ifdef __cplusplus
10747 extern "C"
10748 #endif
10749 char $ac_func ();
10750 /* The GNU C library defines this for functions which it implements
10751 to always fail with ENOSYS. Some functions are actually named
10752 something starting with __ and the normal name is an alias. */
10753 #if defined __stub_$ac_func || defined __stub___$ac_func
10754 choke me
10755 #endif
10756
10757 int
10758 main ()
10759 {
10760 return $ac_func ();
10761 ;
10762 return 0;
10763 }
10764 _ACEOF
10765 rm -f conftest.$ac_objext conftest$ac_exeext
10766 if { (ac_try="$ac_link"
10767 case "(($ac_try" in
10768 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10769 *) ac_try_echo=$ac_try;;
10770 esac
10771 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10772 (eval "$ac_link") 2>conftest.er1
10773 ac_status=$?
10774 grep -v '^ *+' conftest.er1 >conftest.err
10775 rm -f conftest.er1
10776 cat conftest.err >&5
10777 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10778 (exit $ac_status); } && {
10779 test -z "$ac_c_werror_flag" ||
10780 test ! -s conftest.err
10781 } && test -s conftest$ac_exeext &&
10782 $as_test_x conftest$ac_exeext; then
10783 eval "$as_ac_var=yes"
10784 else
10785 echo "$as_me: failed program was:" >&5
10786 sed 's/^/| /' conftest.$ac_ext >&5
10787
10788 eval "$as_ac_var=no"
10789 fi
10790
10791 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10792 conftest$ac_exeext conftest.$ac_ext
10793 fi
10794 ac_res=`eval echo '${'$as_ac_var'}'`
10795 { echo "$as_me:$LINENO: result: $ac_res" >&5
10796 echo "${ECHO_T}$ac_res" >&6; }
10797 if test `eval echo '${'$as_ac_var'}'` = yes; then
10798 cat >>confdefs.h <<_ACEOF
10799 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10800 _ACEOF
10801
10802 fi
10803 done
10804
10805 fi
10806
10807 if test "${window_system}" = "x11"; then
10808 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10809 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10810 if test "${emacs_cv_x11_version_6+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 < 6
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_6=yes
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 emacs_cv_x11_version_6=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_6 = yes; then
10862 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10863 echo "${ECHO_T}6 or newer" >&6; }
10864
10865 cat >>confdefs.h <<\_ACEOF
10866 #define HAVE_X11R6 1
10867 _ACEOF
10868
10869 else
10870 { echo "$as_me:$LINENO: result: before 6" >&5
10871 echo "${ECHO_T}before 6" >&6; }
10872 fi
10873 fi
10874
10875 if test "${window_system}" = "x11"; then
10876 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10877 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10878 if test "${emacs_cv_x11_version_5+set}" = set; then
10879 echo $ECHO_N "(cached) $ECHO_C" >&6
10880 else
10881 cat >conftest.$ac_ext <<_ACEOF
10882 /* confdefs.h. */
10883 _ACEOF
10884 cat confdefs.h >>conftest.$ac_ext
10885 cat >>conftest.$ac_ext <<_ACEOF
10886 /* end confdefs.h. */
10887 #include <X11/Xlib.h>
10888 int
10889 main ()
10890 {
10891 #if XlibSpecificationRelease < 5
10892 fail;
10893 #endif
10894
10895 ;
10896 return 0;
10897 }
10898 _ACEOF
10899 rm -f conftest.$ac_objext conftest$ac_exeext
10900 if { (ac_try="$ac_link"
10901 case "(($ac_try" in
10902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10903 *) ac_try_echo=$ac_try;;
10904 esac
10905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10906 (eval "$ac_link") 2>conftest.er1
10907 ac_status=$?
10908 grep -v '^ *+' conftest.er1 >conftest.err
10909 rm -f conftest.er1
10910 cat conftest.err >&5
10911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10912 (exit $ac_status); } && {
10913 test -z "$ac_c_werror_flag" ||
10914 test ! -s conftest.err
10915 } && test -s conftest$ac_exeext &&
10916 $as_test_x conftest$ac_exeext; then
10917 emacs_cv_x11_version_5=yes
10918 else
10919 echo "$as_me: failed program was:" >&5
10920 sed 's/^/| /' conftest.$ac_ext >&5
10921
10922 emacs_cv_x11_version_5=no
10923 fi
10924
10925 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10926 conftest$ac_exeext conftest.$ac_ext
10927 fi
10928
10929 if test $emacs_cv_x11_version_5 = yes; then
10930 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10931 echo "${ECHO_T}5 or newer" >&6; }
10932 HAVE_X11R5=yes
10933
10934 cat >>confdefs.h <<\_ACEOF
10935 #define HAVE_X11R5 1
10936 _ACEOF
10937
10938 else
10939 HAVE_X11R5=no
10940 { echo "$as_me:$LINENO: result: before 5" >&5
10941 echo "${ECHO_T}before 5" >&6; }
10942 fi
10943 fi
10944
10945 HAVE_GTK=no
10946 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10947 USE_X_TOOLKIT=none
10948 fi
10949 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10950 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10951 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10952 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10953 { (exit 1); exit 1; }; };
10954 fi
10955 GLIB_REQUIRED=2.4
10956 GTK_REQUIRED=2.4
10957 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10958
10959 if test "X${with_pkg_config_prog}" != X; then
10960 PKG_CONFIG="${with_pkg_config_prog}"
10961 fi
10962
10963 succeeded=no
10964
10965 if test -z "$PKG_CONFIG"; then
10966 # Extract the first word of "pkg-config", so it can be a program name with args.
10967 set dummy pkg-config; ac_word=$2
10968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10971 echo $ECHO_N "(cached) $ECHO_C" >&6
10972 else
10973 case $PKG_CONFIG in
10974 [\\/]* | ?:[\\/]*)
10975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10976 ;;
10977 *)
10978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10979 for as_dir in $PATH
10980 do
10981 IFS=$as_save_IFS
10982 test -z "$as_dir" && as_dir=.
10983 for ac_exec_ext in '' $ac_executable_extensions; do
10984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
10985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
10986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
10987 break 2
10988 fi
10989 done
10990 done
10991 IFS=$as_save_IFS
10992
10993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
10994 ;;
10995 esac
10996 fi
10997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
10998 if test -n "$PKG_CONFIG"; then
10999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11001 else
11002 { echo "$as_me:$LINENO: result: no" >&5
11003 echo "${ECHO_T}no" >&6; }
11004 fi
11005
11006
11007 fi
11008
11009 if test "$PKG_CONFIG" = "no" ; then
11010 { { echo "$as_me:$LINENO: error:
11011 *** 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
11012 echo "$as_me: error:
11013 *** 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;}
11014 { (exit 1); exit 1; }; }
11015 else
11016 PKG_CONFIG_MIN_VERSION=0.9.0
11017 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11018 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11019 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11020
11021 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11022 { echo "$as_me:$LINENO: result: yes" >&5
11023 echo "${ECHO_T}yes" >&6; }
11024 succeeded=yes
11025
11026 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11027 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11028 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"`
11029 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11030 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11031
11032 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11033 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11034 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"`
11035 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11036 echo "${ECHO_T}$GTK_LIBS" >&6; }
11037 else
11038 { echo "$as_me:$LINENO: result: no" >&5
11039 echo "${ECHO_T}no" >&6; }
11040 GTK_CFLAGS=""
11041 GTK_LIBS=""
11042 ## If we have a custom action on failure, don't print errors, but
11043 ## do set a variable so people can do so.
11044 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11045 echo $GTK_PKG_ERRORS
11046 fi
11047
11048
11049
11050 else
11051 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11052 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11053 fi
11054 fi
11055
11056 if test $succeeded = yes; then
11057 :
11058 else
11059 { { 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
11060 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;}
11061 { (exit 1); exit 1; }; }
11062 fi
11063
11064
11065
11066 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11067 CFLAGS="$CFLAGS $GTK_CFLAGS"
11068 LIBS="$GTK_LIBS $LIBS"
11069 GTK_COMPILES=no
11070
11071 for ac_func in gtk_main
11072 do
11073 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11074 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11075 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11076 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11077 echo $ECHO_N "(cached) $ECHO_C" >&6
11078 else
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h. */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h. */
11085 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11086 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11087 #define $ac_func innocuous_$ac_func
11088
11089 /* System header to define __stub macros and hopefully few prototypes,
11090 which can conflict with char $ac_func (); below.
11091 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11092 <limits.h> exists even on freestanding compilers. */
11093
11094 #ifdef __STDC__
11095 # include <limits.h>
11096 #else
11097 # include <assert.h>
11098 #endif
11099
11100 #undef $ac_func
11101
11102 /* Override any GCC internal prototype to avoid an error.
11103 Use char because int might match the return type of a GCC
11104 builtin and then its argument prototype would still apply. */
11105 #ifdef __cplusplus
11106 extern "C"
11107 #endif
11108 char $ac_func ();
11109 /* The GNU C library defines this for functions which it implements
11110 to always fail with ENOSYS. Some functions are actually named
11111 something starting with __ and the normal name is an alias. */
11112 #if defined __stub_$ac_func || defined __stub___$ac_func
11113 choke me
11114 #endif
11115
11116 int
11117 main ()
11118 {
11119 return $ac_func ();
11120 ;
11121 return 0;
11122 }
11123 _ACEOF
11124 rm -f conftest.$ac_objext conftest$ac_exeext
11125 if { (ac_try="$ac_link"
11126 case "(($ac_try" in
11127 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128 *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131 (eval "$ac_link") 2>conftest.er1
11132 ac_status=$?
11133 grep -v '^ *+' conftest.er1 >conftest.err
11134 rm -f conftest.er1
11135 cat conftest.err >&5
11136 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11137 (exit $ac_status); } && {
11138 test -z "$ac_c_werror_flag" ||
11139 test ! -s conftest.err
11140 } && test -s conftest$ac_exeext &&
11141 $as_test_x conftest$ac_exeext; then
11142 eval "$as_ac_var=yes"
11143 else
11144 echo "$as_me: failed program was:" >&5
11145 sed 's/^/| /' conftest.$ac_ext >&5
11146
11147 eval "$as_ac_var=no"
11148 fi
11149
11150 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11151 conftest$ac_exeext conftest.$ac_ext
11152 fi
11153 ac_res=`eval echo '${'$as_ac_var'}'`
11154 { echo "$as_me:$LINENO: result: $ac_res" >&5
11155 echo "${ECHO_T}$ac_res" >&6; }
11156 if test `eval echo '${'$as_ac_var'}'` = yes; then
11157 cat >>confdefs.h <<_ACEOF
11158 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11159 _ACEOF
11160 GTK_COMPILES=yes
11161 fi
11162 done
11163
11164 if test "${GTK_COMPILES}" != "yes"; then
11165 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11166 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11167 { (exit 1); exit 1; }; };
11168 fi
11169
11170 HAVE_GTK=yes
11171
11172 cat >>confdefs.h <<\_ACEOF
11173 #define HAVE_GTK 1
11174 _ACEOF
11175
11176 USE_X_TOOLKIT=none
11177
11178 if test "$with_toolkit_scroll_bars" != no; then
11179 with_toolkit_scroll_bars=yes
11180 fi
11181
11182 HAVE_GTK_MULTIDISPLAY=no
11183
11184 for ac_func in gdk_display_open
11185 do
11186 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11188 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11189 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11190 echo $ECHO_N "(cached) $ECHO_C" >&6
11191 else
11192 cat >conftest.$ac_ext <<_ACEOF
11193 /* confdefs.h. */
11194 _ACEOF
11195 cat confdefs.h >>conftest.$ac_ext
11196 cat >>conftest.$ac_ext <<_ACEOF
11197 /* end confdefs.h. */
11198 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11200 #define $ac_func innocuous_$ac_func
11201
11202 /* System header to define __stub macros and hopefully few prototypes,
11203 which can conflict with char $ac_func (); below.
11204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11205 <limits.h> exists even on freestanding compilers. */
11206
11207 #ifdef __STDC__
11208 # include <limits.h>
11209 #else
11210 # include <assert.h>
11211 #endif
11212
11213 #undef $ac_func
11214
11215 /* Override any GCC internal prototype to avoid an error.
11216 Use char because int might match the return type of a GCC
11217 builtin and then its argument prototype would still apply. */
11218 #ifdef __cplusplus
11219 extern "C"
11220 #endif
11221 char $ac_func ();
11222 /* The GNU C library defines this for functions which it implements
11223 to always fail with ENOSYS. Some functions are actually named
11224 something starting with __ and the normal name is an alias. */
11225 #if defined __stub_$ac_func || defined __stub___$ac_func
11226 choke me
11227 #endif
11228
11229 int
11230 main ()
11231 {
11232 return $ac_func ();
11233 ;
11234 return 0;
11235 }
11236 _ACEOF
11237 rm -f conftest.$ac_objext conftest$ac_exeext
11238 if { (ac_try="$ac_link"
11239 case "(($ac_try" in
11240 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11241 *) ac_try_echo=$ac_try;;
11242 esac
11243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11244 (eval "$ac_link") 2>conftest.er1
11245 ac_status=$?
11246 grep -v '^ *+' conftest.er1 >conftest.err
11247 rm -f conftest.er1
11248 cat conftest.err >&5
11249 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11250 (exit $ac_status); } && {
11251 test -z "$ac_c_werror_flag" ||
11252 test ! -s conftest.err
11253 } && test -s conftest$ac_exeext &&
11254 $as_test_x conftest$ac_exeext; then
11255 eval "$as_ac_var=yes"
11256 else
11257 echo "$as_me: failed program was:" >&5
11258 sed 's/^/| /' conftest.$ac_ext >&5
11259
11260 eval "$as_ac_var=no"
11261 fi
11262
11263 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11264 conftest$ac_exeext conftest.$ac_ext
11265 fi
11266 ac_res=`eval echo '${'$as_ac_var'}'`
11267 { echo "$as_me:$LINENO: result: $ac_res" >&5
11268 echo "${ECHO_T}$ac_res" >&6; }
11269 if test `eval echo '${'$as_ac_var'}'` = yes; then
11270 cat >>confdefs.h <<_ACEOF
11271 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11272 _ACEOF
11273 HAVE_GTK_MULTIDISPLAY=yes
11274 fi
11275 done
11276
11277 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11278
11279 cat >>confdefs.h <<\_ACEOF
11280 #define HAVE_GTK_MULTIDISPLAY 1
11281 _ACEOF
11282
11283 fi
11284 HAVE_GTK_FILE_SELECTION=no
11285
11286 for ac_func in gtk_file_selection_new
11287 do
11288 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11290 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11291 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11292 echo $ECHO_N "(cached) $ECHO_C" >&6
11293 else
11294 cat >conftest.$ac_ext <<_ACEOF
11295 /* confdefs.h. */
11296 _ACEOF
11297 cat confdefs.h >>conftest.$ac_ext
11298 cat >>conftest.$ac_ext <<_ACEOF
11299 /* end confdefs.h. */
11300 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11301 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11302 #define $ac_func innocuous_$ac_func
11303
11304 /* System header to define __stub macros and hopefully few prototypes,
11305 which can conflict with char $ac_func (); below.
11306 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11307 <limits.h> exists even on freestanding compilers. */
11308
11309 #ifdef __STDC__
11310 # include <limits.h>
11311 #else
11312 # include <assert.h>
11313 #endif
11314
11315 #undef $ac_func
11316
11317 /* Override any GCC internal prototype to avoid an error.
11318 Use char because int might match the return type of a GCC
11319 builtin and then its argument prototype would still apply. */
11320 #ifdef __cplusplus
11321 extern "C"
11322 #endif
11323 char $ac_func ();
11324 /* The GNU C library defines this for functions which it implements
11325 to always fail with ENOSYS. Some functions are actually named
11326 something starting with __ and the normal name is an alias. */
11327 #if defined __stub_$ac_func || defined __stub___$ac_func
11328 choke me
11329 #endif
11330
11331 int
11332 main ()
11333 {
11334 return $ac_func ();
11335 ;
11336 return 0;
11337 }
11338 _ACEOF
11339 rm -f conftest.$ac_objext conftest$ac_exeext
11340 if { (ac_try="$ac_link"
11341 case "(($ac_try" in
11342 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11343 *) ac_try_echo=$ac_try;;
11344 esac
11345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11346 (eval "$ac_link") 2>conftest.er1
11347 ac_status=$?
11348 grep -v '^ *+' conftest.er1 >conftest.err
11349 rm -f conftest.er1
11350 cat conftest.err >&5
11351 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11352 (exit $ac_status); } && {
11353 test -z "$ac_c_werror_flag" ||
11354 test ! -s conftest.err
11355 } && test -s conftest$ac_exeext &&
11356 $as_test_x conftest$ac_exeext; then
11357 eval "$as_ac_var=yes"
11358 else
11359 echo "$as_me: failed program was:" >&5
11360 sed 's/^/| /' conftest.$ac_ext >&5
11361
11362 eval "$as_ac_var=no"
11363 fi
11364
11365 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11366 conftest$ac_exeext conftest.$ac_ext
11367 fi
11368 ac_res=`eval echo '${'$as_ac_var'}'`
11369 { echo "$as_me:$LINENO: result: $ac_res" >&5
11370 echo "${ECHO_T}$ac_res" >&6; }
11371 if test `eval echo '${'$as_ac_var'}'` = yes; then
11372 cat >>confdefs.h <<_ACEOF
11373 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11374 _ACEOF
11375 HAVE_GTK_FILE_SELECTION=yes
11376 fi
11377 done
11378
11379
11380 HAVE_GTK_FILE_CHOOSER=no
11381
11382 for ac_func in gtk_file_chooser_dialog_new
11383 do
11384 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11385 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11386 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11387 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11388 echo $ECHO_N "(cached) $ECHO_C" >&6
11389 else
11390 cat >conftest.$ac_ext <<_ACEOF
11391 /* confdefs.h. */
11392 _ACEOF
11393 cat confdefs.h >>conftest.$ac_ext
11394 cat >>conftest.$ac_ext <<_ACEOF
11395 /* end confdefs.h. */
11396 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11397 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11398 #define $ac_func innocuous_$ac_func
11399
11400 /* System header to define __stub macros and hopefully few prototypes,
11401 which can conflict with char $ac_func (); below.
11402 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11403 <limits.h> exists even on freestanding compilers. */
11404
11405 #ifdef __STDC__
11406 # include <limits.h>
11407 #else
11408 # include <assert.h>
11409 #endif
11410
11411 #undef $ac_func
11412
11413 /* Override any GCC internal prototype to avoid an error.
11414 Use char because int might match the return type of a GCC
11415 builtin and then its argument prototype would still apply. */
11416 #ifdef __cplusplus
11417 extern "C"
11418 #endif
11419 char $ac_func ();
11420 /* The GNU C library defines this for functions which it implements
11421 to always fail with ENOSYS. Some functions are actually named
11422 something starting with __ and the normal name is an alias. */
11423 #if defined __stub_$ac_func || defined __stub___$ac_func
11424 choke me
11425 #endif
11426
11427 int
11428 main ()
11429 {
11430 return $ac_func ();
11431 ;
11432 return 0;
11433 }
11434 _ACEOF
11435 rm -f conftest.$ac_objext conftest$ac_exeext
11436 if { (ac_try="$ac_link"
11437 case "(($ac_try" in
11438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11439 *) ac_try_echo=$ac_try;;
11440 esac
11441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11442 (eval "$ac_link") 2>conftest.er1
11443 ac_status=$?
11444 grep -v '^ *+' conftest.er1 >conftest.err
11445 rm -f conftest.er1
11446 cat conftest.err >&5
11447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11448 (exit $ac_status); } && {
11449 test -z "$ac_c_werror_flag" ||
11450 test ! -s conftest.err
11451 } && test -s conftest$ac_exeext &&
11452 $as_test_x conftest$ac_exeext; then
11453 eval "$as_ac_var=yes"
11454 else
11455 echo "$as_me: failed program was:" >&5
11456 sed 's/^/| /' conftest.$ac_ext >&5
11457
11458 eval "$as_ac_var=no"
11459 fi
11460
11461 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11462 conftest$ac_exeext conftest.$ac_ext
11463 fi
11464 ac_res=`eval echo '${'$as_ac_var'}'`
11465 { echo "$as_me:$LINENO: result: $ac_res" >&5
11466 echo "${ECHO_T}$ac_res" >&6; }
11467 if test `eval echo '${'$as_ac_var'}'` = yes; then
11468 cat >>confdefs.h <<_ACEOF
11469 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11470 _ACEOF
11471 HAVE_GTK_FILE_CHOOSER=yes
11472 fi
11473 done
11474
11475
11476 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11477 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11478
11479 cat >>confdefs.h <<\_ACEOF
11480 #define HAVE_GTK_FILE_BOTH 1
11481 _ACEOF
11482
11483 fi
11484
11485 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11486 HAVE_GTK_AND_PTHREAD=no
11487
11488 for ac_header in pthread.h
11489 do
11490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11495 echo $ECHO_N "(cached) $ECHO_C" >&6
11496 fi
11497 ac_res=`eval echo '${'$as_ac_Header'}'`
11498 { echo "$as_me:$LINENO: result: $ac_res" >&5
11499 echo "${ECHO_T}$ac_res" >&6; }
11500 else
11501 # Is the header compilable?
11502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11504 cat >conftest.$ac_ext <<_ACEOF
11505 /* confdefs.h. */
11506 _ACEOF
11507 cat confdefs.h >>conftest.$ac_ext
11508 cat >>conftest.$ac_ext <<_ACEOF
11509 /* end confdefs.h. */
11510 $ac_includes_default
11511 #include <$ac_header>
11512 _ACEOF
11513 rm -f conftest.$ac_objext
11514 if { (ac_try="$ac_compile"
11515 case "(($ac_try" in
11516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11517 *) ac_try_echo=$ac_try;;
11518 esac
11519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11520 (eval "$ac_compile") 2>conftest.er1
11521 ac_status=$?
11522 grep -v '^ *+' conftest.er1 >conftest.err
11523 rm -f conftest.er1
11524 cat conftest.err >&5
11525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11526 (exit $ac_status); } && {
11527 test -z "$ac_c_werror_flag" ||
11528 test ! -s conftest.err
11529 } && test -s conftest.$ac_objext; then
11530 ac_header_compiler=yes
11531 else
11532 echo "$as_me: failed program was:" >&5
11533 sed 's/^/| /' conftest.$ac_ext >&5
11534
11535 ac_header_compiler=no
11536 fi
11537
11538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11540 echo "${ECHO_T}$ac_header_compiler" >&6; }
11541
11542 # Is the header present?
11543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11545 cat >conftest.$ac_ext <<_ACEOF
11546 /* confdefs.h. */
11547 _ACEOF
11548 cat confdefs.h >>conftest.$ac_ext
11549 cat >>conftest.$ac_ext <<_ACEOF
11550 /* end confdefs.h. */
11551 #include <$ac_header>
11552 _ACEOF
11553 if { (ac_try="$ac_cpp conftest.$ac_ext"
11554 case "(($ac_try" in
11555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11556 *) ac_try_echo=$ac_try;;
11557 esac
11558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11560 ac_status=$?
11561 grep -v '^ *+' conftest.er1 >conftest.err
11562 rm -f conftest.er1
11563 cat conftest.err >&5
11564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11565 (exit $ac_status); } >/dev/null && {
11566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11567 test ! -s conftest.err
11568 }; then
11569 ac_header_preproc=yes
11570 else
11571 echo "$as_me: failed program was:" >&5
11572 sed 's/^/| /' conftest.$ac_ext >&5
11573
11574 ac_header_preproc=no
11575 fi
11576
11577 rm -f conftest.err conftest.$ac_ext
11578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11579 echo "${ECHO_T}$ac_header_preproc" >&6; }
11580
11581 # So? What about this header?
11582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11583 yes:no: )
11584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11588 ac_header_preproc=yes
11589 ;;
11590 no:yes:* )
11591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11603
11604 ;;
11605 esac
11606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11609 echo $ECHO_N "(cached) $ECHO_C" >&6
11610 else
11611 eval "$as_ac_Header=\$ac_header_preproc"
11612 fi
11613 ac_res=`eval echo '${'$as_ac_Header'}'`
11614 { echo "$as_me:$LINENO: result: $ac_res" >&5
11615 echo "${ECHO_T}$ac_res" >&6; }
11616
11617 fi
11618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11619 cat >>confdefs.h <<_ACEOF
11620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11621 _ACEOF
11622
11623 fi
11624
11625 done
11626
11627 if test "$ac_cv_header_pthread_h"; then
11628 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11629 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11630 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11631 echo $ECHO_N "(cached) $ECHO_C" >&6
11632 else
11633 ac_check_lib_save_LIBS=$LIBS
11634 LIBS="-lpthread $LIBS"
11635 cat >conftest.$ac_ext <<_ACEOF
11636 /* confdefs.h. */
11637 _ACEOF
11638 cat confdefs.h >>conftest.$ac_ext
11639 cat >>conftest.$ac_ext <<_ACEOF
11640 /* end confdefs.h. */
11641
11642 /* Override any GCC internal prototype to avoid an error.
11643 Use char because int might match the return type of a GCC
11644 builtin and then its argument prototype would still apply. */
11645 #ifdef __cplusplus
11646 extern "C"
11647 #endif
11648 char pthread_self ();
11649 int
11650 main ()
11651 {
11652 return pthread_self ();
11653 ;
11654 return 0;
11655 }
11656 _ACEOF
11657 rm -f conftest.$ac_objext conftest$ac_exeext
11658 if { (ac_try="$ac_link"
11659 case "(($ac_try" in
11660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11661 *) ac_try_echo=$ac_try;;
11662 esac
11663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11664 (eval "$ac_link") 2>conftest.er1
11665 ac_status=$?
11666 grep -v '^ *+' conftest.er1 >conftest.err
11667 rm -f conftest.er1
11668 cat conftest.err >&5
11669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11670 (exit $ac_status); } && {
11671 test -z "$ac_c_werror_flag" ||
11672 test ! -s conftest.err
11673 } && test -s conftest$ac_exeext &&
11674 $as_test_x conftest$ac_exeext; then
11675 ac_cv_lib_pthread_pthread_self=yes
11676 else
11677 echo "$as_me: failed program was:" >&5
11678 sed 's/^/| /' conftest.$ac_ext >&5
11679
11680 ac_cv_lib_pthread_pthread_self=no
11681 fi
11682
11683 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11684 conftest$ac_exeext conftest.$ac_ext
11685 LIBS=$ac_check_lib_save_LIBS
11686 fi
11687 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11688 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11689 if test $ac_cv_lib_pthread_pthread_self = yes; then
11690 HAVE_GTK_AND_PTHREAD=yes
11691 fi
11692
11693 fi
11694 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11695 GTK_LIBS="$GTK_LIBS -lpthread"
11696
11697 cat >>confdefs.h <<\_ACEOF
11698 #define HAVE_GTK_AND_PTHREAD 1
11699 _ACEOF
11700
11701 fi
11702 fi
11703 fi
11704
11705 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11706 if test x"${HAVE_X11R5}" = xyes; then
11707 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11708 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11709 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11710 echo $ECHO_N "(cached) $ECHO_C" >&6
11711 else
11712 cat >conftest.$ac_ext <<_ACEOF
11713 /* confdefs.h. */
11714 _ACEOF
11715 cat confdefs.h >>conftest.$ac_ext
11716 cat >>conftest.$ac_ext <<_ACEOF
11717 /* end confdefs.h. */
11718
11719 #include <X11/Intrinsic.h>
11720 #include <X11/Xaw/Simple.h>
11721 int
11722 main ()
11723 {
11724
11725 ;
11726 return 0;
11727 }
11728 _ACEOF
11729 rm -f conftest.$ac_objext conftest$ac_exeext
11730 if { (ac_try="$ac_link"
11731 case "(($ac_try" in
11732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11733 *) ac_try_echo=$ac_try;;
11734 esac
11735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11736 (eval "$ac_link") 2>conftest.er1
11737 ac_status=$?
11738 grep -v '^ *+' conftest.er1 >conftest.err
11739 rm -f conftest.er1
11740 cat conftest.err >&5
11741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11742 (exit $ac_status); } && {
11743 test -z "$ac_c_werror_flag" ||
11744 test ! -s conftest.err
11745 } && test -s conftest$ac_exeext &&
11746 $as_test_x conftest$ac_exeext; then
11747 emacs_cv_x11_version_5_with_xaw=yes
11748 else
11749 echo "$as_me: failed program was:" >&5
11750 sed 's/^/| /' conftest.$ac_ext >&5
11751
11752 emacs_cv_x11_version_5_with_xaw=no
11753 fi
11754
11755 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11756 conftest$ac_exeext conftest.$ac_ext
11757 fi
11758
11759 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11760 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11761 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11762 USE_X_TOOLKIT=LUCID
11763 else
11764 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11765 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11766 USE_X_TOOLKIT=none
11767 fi
11768 else
11769 USE_X_TOOLKIT=none
11770 fi
11771 fi
11772
11773 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11774
11775 if test "${USE_X_TOOLKIT}" != "none"; then
11776 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11777 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11778 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11779 echo $ECHO_N "(cached) $ECHO_C" >&6
11780 else
11781 cat >conftest.$ac_ext <<_ACEOF
11782 /* confdefs.h. */
11783 _ACEOF
11784 cat confdefs.h >>conftest.$ac_ext
11785 cat >>conftest.$ac_ext <<_ACEOF
11786 /* end confdefs.h. */
11787 #include <X11/Intrinsic.h>
11788 int
11789 main ()
11790 {
11791 #if XtSpecificationRelease < 6
11792 fail;
11793 #endif
11794
11795 ;
11796 return 0;
11797 }
11798 _ACEOF
11799 rm -f conftest.$ac_objext conftest$ac_exeext
11800 if { (ac_try="$ac_link"
11801 case "(($ac_try" in
11802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11803 *) ac_try_echo=$ac_try;;
11804 esac
11805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11806 (eval "$ac_link") 2>conftest.er1
11807 ac_status=$?
11808 grep -v '^ *+' conftest.er1 >conftest.err
11809 rm -f conftest.er1
11810 cat conftest.err >&5
11811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11812 (exit $ac_status); } && {
11813 test -z "$ac_c_werror_flag" ||
11814 test ! -s conftest.err
11815 } && test -s conftest$ac_exeext &&
11816 $as_test_x conftest$ac_exeext; then
11817 emacs_cv_x11_toolkit_version_6=yes
11818 else
11819 echo "$as_me: failed program was:" >&5
11820 sed 's/^/| /' conftest.$ac_ext >&5
11821
11822 emacs_cv_x11_toolkit_version_6=no
11823 fi
11824
11825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11826 conftest$ac_exeext conftest.$ac_ext
11827 fi
11828
11829 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11830 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11831 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11832 echo "${ECHO_T}6 or newer" >&6; }
11833
11834 cat >>confdefs.h <<\_ACEOF
11835 #define HAVE_X11XTR6 1
11836 _ACEOF
11837
11838 else
11839 { echo "$as_me:$LINENO: result: before 6" >&5
11840 echo "${ECHO_T}before 6" >&6; }
11841 fi
11842
11843 OLDLIBS="$LIBS"
11844 if test x$HAVE_X11XTR6 = xyes; then
11845 LIBS="-lXt -lSM -lICE $LIBS"
11846 else
11847 LIBS="-lXt $LIBS"
11848 fi
11849
11850 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11851 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11852 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11853 echo $ECHO_N "(cached) $ECHO_C" >&6
11854 else
11855 ac_check_lib_save_LIBS=$LIBS
11856 LIBS="-lXmu $LIBS"
11857 cat >conftest.$ac_ext <<_ACEOF
11858 /* confdefs.h. */
11859 _ACEOF
11860 cat confdefs.h >>conftest.$ac_ext
11861 cat >>conftest.$ac_ext <<_ACEOF
11862 /* end confdefs.h. */
11863
11864 /* Override any GCC internal prototype to avoid an error.
11865 Use char because int might match the return type of a GCC
11866 builtin and then its argument prototype would still apply. */
11867 #ifdef __cplusplus
11868 extern "C"
11869 #endif
11870 char XmuConvertStandardSelection ();
11871 int
11872 main ()
11873 {
11874 return XmuConvertStandardSelection ();
11875 ;
11876 return 0;
11877 }
11878 _ACEOF
11879 rm -f conftest.$ac_objext conftest$ac_exeext
11880 if { (ac_try="$ac_link"
11881 case "(($ac_try" in
11882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11883 *) ac_try_echo=$ac_try;;
11884 esac
11885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11886 (eval "$ac_link") 2>conftest.er1
11887 ac_status=$?
11888 grep -v '^ *+' conftest.er1 >conftest.err
11889 rm -f conftest.er1
11890 cat conftest.err >&5
11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11892 (exit $ac_status); } && {
11893 test -z "$ac_c_werror_flag" ||
11894 test ! -s conftest.err
11895 } && test -s conftest$ac_exeext &&
11896 $as_test_x conftest$ac_exeext; then
11897 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11898 else
11899 echo "$as_me: failed program was:" >&5
11900 sed 's/^/| /' conftest.$ac_ext >&5
11901
11902 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11903 fi
11904
11905 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11906 conftest$ac_exeext conftest.$ac_ext
11907 LIBS=$ac_check_lib_save_LIBS
11908 fi
11909 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11910 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11911 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11912 cat >>confdefs.h <<_ACEOF
11913 #define HAVE_LIBXMU 1
11914 _ACEOF
11915
11916 LIBS="-lXmu $LIBS"
11917
11918 fi
11919
11920 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11921 fi
11922
11923 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11924 if test "${HAVE_X11}" = "yes"; then
11925 if test "${USE_X_TOOLKIT}" != "none"; then
11926
11927 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11928 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11929 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11930 echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932 ac_check_lib_save_LIBS=$LIBS
11933 LIBS="-lXext $LIBS"
11934 cat >conftest.$ac_ext <<_ACEOF
11935 /* confdefs.h. */
11936 _ACEOF
11937 cat confdefs.h >>conftest.$ac_ext
11938 cat >>conftest.$ac_ext <<_ACEOF
11939 /* end confdefs.h. */
11940
11941 /* Override any GCC internal prototype to avoid an error.
11942 Use char because int might match the return type of a GCC
11943 builtin and then its argument prototype would still apply. */
11944 #ifdef __cplusplus
11945 extern "C"
11946 #endif
11947 char XShapeQueryExtension ();
11948 int
11949 main ()
11950 {
11951 return XShapeQueryExtension ();
11952 ;
11953 return 0;
11954 }
11955 _ACEOF
11956 rm -f conftest.$ac_objext conftest$ac_exeext
11957 if { (ac_try="$ac_link"
11958 case "(($ac_try" in
11959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11960 *) ac_try_echo=$ac_try;;
11961 esac
11962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11963 (eval "$ac_link") 2>conftest.er1
11964 ac_status=$?
11965 grep -v '^ *+' conftest.er1 >conftest.err
11966 rm -f conftest.er1
11967 cat conftest.err >&5
11968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11969 (exit $ac_status); } && {
11970 test -z "$ac_c_werror_flag" ||
11971 test ! -s conftest.err
11972 } && test -s conftest$ac_exeext &&
11973 $as_test_x conftest$ac_exeext; then
11974 ac_cv_lib_Xext_XShapeQueryExtension=yes
11975 else
11976 echo "$as_me: failed program was:" >&5
11977 sed 's/^/| /' conftest.$ac_ext >&5
11978
11979 ac_cv_lib_Xext_XShapeQueryExtension=no
11980 fi
11981
11982 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11983 conftest$ac_exeext conftest.$ac_ext
11984 LIBS=$ac_check_lib_save_LIBS
11985 fi
11986 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
11987 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
11988 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
11989 cat >>confdefs.h <<_ACEOF
11990 #define HAVE_LIBXEXT 1
11991 _ACEOF
11992
11993 LIBS="-lXext $LIBS"
11994
11995 fi
11996
11997 fi
11998 fi
11999
12000 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12001 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12002 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12003 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12004 echo $ECHO_N "(cached) $ECHO_C" >&6
12005 else
12006 cat >conftest.$ac_ext <<_ACEOF
12007 /* confdefs.h. */
12008 _ACEOF
12009 cat confdefs.h >>conftest.$ac_ext
12010 cat >>conftest.$ac_ext <<_ACEOF
12011 /* end confdefs.h. */
12012 #include <Xm/Xm.h>
12013 int
12014 main ()
12015 {
12016 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12017 int x = 5;
12018 #else
12019 Motif version prior to 2.1.
12020 #endif
12021 ;
12022 return 0;
12023 }
12024 _ACEOF
12025 rm -f conftest.$ac_objext
12026 if { (ac_try="$ac_compile"
12027 case "(($ac_try" in
12028 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12029 *) ac_try_echo=$ac_try;;
12030 esac
12031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12032 (eval "$ac_compile") 2>conftest.er1
12033 ac_status=$?
12034 grep -v '^ *+' conftest.er1 >conftest.err
12035 rm -f conftest.er1
12036 cat conftest.err >&5
12037 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12038 (exit $ac_status); } && {
12039 test -z "$ac_c_werror_flag" ||
12040 test ! -s conftest.err
12041 } && test -s conftest.$ac_objext; then
12042 emacs_cv_motif_version_2_1=yes
12043 else
12044 echo "$as_me: failed program was:" >&5
12045 sed 's/^/| /' conftest.$ac_ext >&5
12046
12047 emacs_cv_motif_version_2_1=no
12048 fi
12049
12050 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12051 fi
12052 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12053 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12054 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12055 if test $emacs_cv_motif_version_2_1 = yes; then
12056 HAVE_LIBXP=no
12057
12058 cat >>confdefs.h <<\_ACEOF
12059 #define HAVE_MOTIF_2_1 1
12060 _ACEOF
12061
12062 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12063 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12064 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12065 echo $ECHO_N "(cached) $ECHO_C" >&6
12066 else
12067 ac_check_lib_save_LIBS=$LIBS
12068 LIBS="-lXp $LIBS"
12069 cat >conftest.$ac_ext <<_ACEOF
12070 /* confdefs.h. */
12071 _ACEOF
12072 cat confdefs.h >>conftest.$ac_ext
12073 cat >>conftest.$ac_ext <<_ACEOF
12074 /* end confdefs.h. */
12075
12076 /* Override any GCC internal prototype to avoid an error.
12077 Use char because int might match the return type of a GCC
12078 builtin and then its argument prototype would still apply. */
12079 #ifdef __cplusplus
12080 extern "C"
12081 #endif
12082 char XpCreateContext ();
12083 int
12084 main ()
12085 {
12086 return XpCreateContext ();
12087 ;
12088 return 0;
12089 }
12090 _ACEOF
12091 rm -f conftest.$ac_objext conftest$ac_exeext
12092 if { (ac_try="$ac_link"
12093 case "(($ac_try" in
12094 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12095 *) ac_try_echo=$ac_try;;
12096 esac
12097 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12098 (eval "$ac_link") 2>conftest.er1
12099 ac_status=$?
12100 grep -v '^ *+' conftest.er1 >conftest.err
12101 rm -f conftest.er1
12102 cat conftest.err >&5
12103 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12104 (exit $ac_status); } && {
12105 test -z "$ac_c_werror_flag" ||
12106 test ! -s conftest.err
12107 } && test -s conftest$ac_exeext &&
12108 $as_test_x conftest$ac_exeext; then
12109 ac_cv_lib_Xp_XpCreateContext=yes
12110 else
12111 echo "$as_me: failed program was:" >&5
12112 sed 's/^/| /' conftest.$ac_ext >&5
12113
12114 ac_cv_lib_Xp_XpCreateContext=no
12115 fi
12116
12117 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12118 conftest$ac_exeext conftest.$ac_ext
12119 LIBS=$ac_check_lib_save_LIBS
12120 fi
12121 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12122 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12123 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12124 HAVE_LIBXP=yes
12125 fi
12126
12127 if test ${HAVE_LIBXP} = yes; then
12128
12129 cat >>confdefs.h <<\_ACEOF
12130 #define HAVE_LIBXP 1
12131 _ACEOF
12132
12133 fi
12134 else
12135 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12136 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12137 if test "${emacs_cv_lesstif+set}" = set; then
12138 echo $ECHO_N "(cached) $ECHO_C" >&6
12139 else
12140 # We put this in CFLAGS temporarily to precede other -I options
12141 # that might be in CFLAGS temporarily.
12142 # We put this in CPPFLAGS where it precedes the other -I options.
12143 OLD_CPPFLAGS=$CPPFLAGS
12144 OLD_CFLAGS=$CFLAGS
12145 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12146 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12147 cat >conftest.$ac_ext <<_ACEOF
12148 /* confdefs.h. */
12149 _ACEOF
12150 cat confdefs.h >>conftest.$ac_ext
12151 cat >>conftest.$ac_ext <<_ACEOF
12152 /* end confdefs.h. */
12153 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12154 int
12155 main ()
12156 {
12157 int x = 5;
12158 ;
12159 return 0;
12160 }
12161 _ACEOF
12162 rm -f conftest.$ac_objext
12163 if { (ac_try="$ac_compile"
12164 case "(($ac_try" in
12165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12166 *) ac_try_echo=$ac_try;;
12167 esac
12168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12169 (eval "$ac_compile") 2>conftest.er1
12170 ac_status=$?
12171 grep -v '^ *+' conftest.er1 >conftest.err
12172 rm -f conftest.er1
12173 cat conftest.err >&5
12174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12175 (exit $ac_status); } && {
12176 test -z "$ac_c_werror_flag" ||
12177 test ! -s conftest.err
12178 } && test -s conftest.$ac_objext; then
12179 emacs_cv_lesstif=yes
12180 else
12181 echo "$as_me: failed program was:" >&5
12182 sed 's/^/| /' conftest.$ac_ext >&5
12183
12184 emacs_cv_lesstif=no
12185 fi
12186
12187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12188 fi
12189 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12190 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12191 if test $emacs_cv_lesstif = yes; then
12192 # Make sure this -I option remains in CPPFLAGS after it is set
12193 # back to REAL_CPPFLAGS.
12194 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12195 # have those other -I options anyway. Ultimately, having this
12196 # directory ultimately in CPPFLAGS will be enough.
12197 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12198 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12199 else
12200 CFLAGS=$OLD_CFLAGS
12201 CPPFLAGS=$OLD_CPPFLAGS
12202 fi
12203 fi
12204 fi
12205
12206 ### Is -lXaw3d available?
12207 HAVE_XAW3D=no
12208 if test "${HAVE_X11}" = "yes"; then
12209 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12210 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12211 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12212 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12213 echo $ECHO_N "(cached) $ECHO_C" >&6
12214 else
12215 cat >conftest.$ac_ext <<_ACEOF
12216 /* confdefs.h. */
12217 _ACEOF
12218 cat confdefs.h >>conftest.$ac_ext
12219 cat >>conftest.$ac_ext <<_ACEOF
12220 /* end confdefs.h. */
12221 #include <X11/Xaw3d/Scrollbar.h>
12222 _ACEOF
12223 if { (ac_try="$ac_cpp conftest.$ac_ext"
12224 case "(($ac_try" in
12225 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12226 *) ac_try_echo=$ac_try;;
12227 esac
12228 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12229 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12230 ac_status=$?
12231 grep -v '^ *+' conftest.er1 >conftest.err
12232 rm -f conftest.er1
12233 cat conftest.err >&5
12234 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12235 (exit $ac_status); } >/dev/null && {
12236 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12237 test ! -s conftest.err
12238 }; then
12239 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12240 else
12241 echo "$as_me: failed program was:" >&5
12242 sed 's/^/| /' conftest.$ac_ext >&5
12243
12244 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12245 fi
12246
12247 rm -f conftest.err conftest.$ac_ext
12248 fi
12249 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12250 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12251 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12252 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12253 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12254 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12255 echo $ECHO_N "(cached) $ECHO_C" >&6
12256 else
12257 ac_check_lib_save_LIBS=$LIBS
12258 LIBS="-lXaw3d $LIBS"
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
12266 /* Override any GCC internal prototype to avoid an error.
12267 Use char because int might match the return type of a GCC
12268 builtin and then its argument prototype would still apply. */
12269 #ifdef __cplusplus
12270 extern "C"
12271 #endif
12272 char XawScrollbarSetThumb ();
12273 int
12274 main ()
12275 {
12276 return XawScrollbarSetThumb ();
12277 ;
12278 return 0;
12279 }
12280 _ACEOF
12281 rm -f conftest.$ac_objext conftest$ac_exeext
12282 if { (ac_try="$ac_link"
12283 case "(($ac_try" in
12284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285 *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288 (eval "$ac_link") 2>conftest.er1
12289 ac_status=$?
12290 grep -v '^ *+' conftest.er1 >conftest.err
12291 rm -f conftest.er1
12292 cat conftest.err >&5
12293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12294 (exit $ac_status); } && {
12295 test -z "$ac_c_werror_flag" ||
12296 test ! -s conftest.err
12297 } && test -s conftest$ac_exeext &&
12298 $as_test_x conftest$ac_exeext; then
12299 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12305 fi
12306
12307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12308 conftest$ac_exeext conftest.$ac_ext
12309 LIBS=$ac_check_lib_save_LIBS
12310 fi
12311 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12312 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12313 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12314 HAVE_XAW3D=yes
12315 fi
12316
12317 fi
12318
12319
12320 if test "${HAVE_XAW3D}" = "yes"; then
12321
12322 cat >>confdefs.h <<\_ACEOF
12323 #define HAVE_XAW3D 1
12324 _ACEOF
12325
12326 fi
12327 fi
12328 fi
12329
12330
12331
12332 USE_TOOLKIT_SCROLL_BARS=no
12333 if test "${with_toolkit_scroll_bars}" != "no"; then
12334 if test "${USE_X_TOOLKIT}" != "none"; then
12335 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12336 cat >>confdefs.h <<\_ACEOF
12337 #define USE_TOOLKIT_SCROLL_BARS 1
12338 _ACEOF
12339
12340 HAVE_XAW3D=no
12341 USE_TOOLKIT_SCROLL_BARS=yes
12342 elif test "${HAVE_XAW3D}" = "yes"; then
12343 cat >>confdefs.h <<\_ACEOF
12344 #define USE_TOOLKIT_SCROLL_BARS 1
12345 _ACEOF
12346
12347 USE_TOOLKIT_SCROLL_BARS=yes
12348 fi
12349 elif test "${HAVE_GTK}" = "yes"; then
12350 cat >>confdefs.h <<\_ACEOF
12351 #define USE_TOOLKIT_SCROLL_BARS 1
12352 _ACEOF
12353
12354 USE_TOOLKIT_SCROLL_BARS=yes
12355 elif test "${HAVE_CARBON}" = "yes"; then
12356 cat >>confdefs.h <<\_ACEOF
12357 #define USE_TOOLKIT_SCROLL_BARS 1
12358 _ACEOF
12359
12360 USE_TOOLKIT_SCROLL_BARS=yes
12361 fi
12362 fi
12363
12364 cat >conftest.$ac_ext <<_ACEOF
12365 /* confdefs.h. */
12366 _ACEOF
12367 cat confdefs.h >>conftest.$ac_ext
12368 cat >>conftest.$ac_ext <<_ACEOF
12369 /* end confdefs.h. */
12370
12371 #include <X11/Xlib.h>
12372 #include <X11/Xresource.h>
12373 int
12374 main ()
12375 {
12376 XIMProc callback;
12377 ;
12378 return 0;
12379 }
12380 _ACEOF
12381 rm -f conftest.$ac_objext
12382 if { (ac_try="$ac_compile"
12383 case "(($ac_try" in
12384 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12385 *) ac_try_echo=$ac_try;;
12386 esac
12387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12388 (eval "$ac_compile") 2>conftest.er1
12389 ac_status=$?
12390 grep -v '^ *+' conftest.er1 >conftest.err
12391 rm -f conftest.er1
12392 cat conftest.err >&5
12393 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12394 (exit $ac_status); } && {
12395 test -z "$ac_c_werror_flag" ||
12396 test ! -s conftest.err
12397 } && test -s conftest.$ac_objext; then
12398 HAVE_XIM=yes
12399
12400 cat >>confdefs.h <<\_ACEOF
12401 #define HAVE_XIM 1
12402 _ACEOF
12403
12404 else
12405 echo "$as_me: failed program was:" >&5
12406 sed 's/^/| /' conftest.$ac_ext >&5
12407
12408 HAVE_XIM=no
12409 fi
12410
12411 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12412
12413
12414 if test "${with_xim}" != "no"; then
12415
12416 cat >>confdefs.h <<\_ACEOF
12417 #define USE_XIM 1
12418 _ACEOF
12419
12420 fi
12421
12422
12423 if test "${HAVE_XIM}" != "no"; then
12424 late_CFLAGS=$CFLAGS
12425 if test "$GCC" = yes; then
12426 CFLAGS="$CFLAGS --pedantic-errors"
12427 fi
12428 cat >conftest.$ac_ext <<_ACEOF
12429 /* confdefs.h. */
12430 _ACEOF
12431 cat confdefs.h >>conftest.$ac_ext
12432 cat >>conftest.$ac_ext <<_ACEOF
12433 /* end confdefs.h. */
12434
12435 #include <X11/Xlib.h>
12436 #include <X11/Xresource.h>
12437 int
12438 main ()
12439 {
12440 Display *display;
12441 XrmDatabase db;
12442 char *res_name;
12443 char *res_class;
12444 XIMProc callback;
12445 XPointer *client_data;
12446 #ifndef __GNUC__
12447 /* If we're not using GCC, it's probably not XFree86, and this is
12448 probably right, but we can't use something like --pedantic-errors. */
12449 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12450 char*, XIMProc, XPointer*);
12451 #endif
12452 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12453 client_data);
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext
12459 if { (ac_try="$ac_compile"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_compile") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest.$ac_objext; then
12475 emacs_cv_arg6_star=yes
12476 else
12477 echo "$as_me: failed program was:" >&5
12478 sed 's/^/| /' conftest.$ac_ext >&5
12479
12480
12481 fi
12482
12483 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12484
12485 if test "$emacs_cv_arg6_star" = yes; then
12486 cat >>confdefs.h <<\_ACEOF
12487 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12488 _ACEOF
12489
12490 else
12491 cat >>confdefs.h <<\_ACEOF
12492 #define XRegisterIMInstantiateCallback_arg6 XPointer
12493 _ACEOF
12494
12495 fi
12496 CFLAGS=$late_CFLAGS
12497 fi
12498
12499 ### For font-backend
12500 if test "${USE_FONT_BACKEND}" = "yes"; then
12501
12502
12503 cat >>confdefs.h <<\_ACEOF
12504 #define USE_FONT_BACKEND 1
12505 _ACEOF
12506
12507
12508 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12509 HAVE_XFT=maybe
12510 if test "${HAVE_X11}" = "yes"; then
12511 if test "x${with_freetype}" = "xno"; then
12512 with_xft="no";
12513 fi
12514 if test "x${with_xft}" != "xno"; then
12515
12516 if test "X${with_pkg_config_prog}" != X; then
12517 PKG_CONFIG="${with_pkg_config_prog}"
12518 fi
12519
12520
12521 succeeded=no
12522
12523 if test -z "$PKG_CONFIG"; then
12524 # Extract the first word of "pkg-config", so it can be a program name with args.
12525 set dummy pkg-config; ac_word=$2
12526 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12527 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12528 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12529 echo $ECHO_N "(cached) $ECHO_C" >&6
12530 else
12531 case $PKG_CONFIG in
12532 [\\/]* | ?:[\\/]*)
12533 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12534 ;;
12535 *)
12536 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12537 for as_dir in $PATH
12538 do
12539 IFS=$as_save_IFS
12540 test -z "$as_dir" && as_dir=.
12541 for ac_exec_ext in '' $ac_executable_extensions; do
12542 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12543 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12544 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12545 break 2
12546 fi
12547 done
12548 done
12549 IFS=$as_save_IFS
12550
12551 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12552 ;;
12553 esac
12554 fi
12555 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12556 if test -n "$PKG_CONFIG"; then
12557 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12558 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12559 else
12560 { echo "$as_me:$LINENO: result: no" >&5
12561 echo "${ECHO_T}no" >&6; }
12562 fi
12563
12564
12565 fi
12566
12567 if test "$PKG_CONFIG" = "no" ; then
12568 HAVE_XFT=no
12569 else
12570 PKG_CONFIG_MIN_VERSION=0.9.0
12571 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12572 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12573 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12574
12575 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12576 { echo "$as_me:$LINENO: result: yes" >&5
12577 echo "${ECHO_T}yes" >&6; }
12578 succeeded=yes
12579
12580 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12581 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12582 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"`
12583 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12584 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12585
12586 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12587 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12588 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"`
12589 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12590 echo "${ECHO_T}$XFT_LIBS" >&6; }
12591 else
12592 { echo "$as_me:$LINENO: result: no" >&5
12593 echo "${ECHO_T}no" >&6; }
12594 XFT_CFLAGS=""
12595 XFT_LIBS=""
12596 ## If we have a custom action on failure, don't print errors, but
12597 ## do set a variable so people can do so.
12598 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12599
12600 fi
12601
12602
12603
12604 else
12605 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12606 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12607 fi
12608 fi
12609
12610 if test $succeeded = yes; then
12611 :
12612 else
12613 HAVE_XFT=no
12614 fi
12615
12616 if test "$HAVE_XFT" != no; then
12617 OLD_CPPFLAGS="$CPPFLAGS"
12618 OLD_CFLAGS="$CFLAGS"
12619 OLD_LIBS="$LIBS"
12620 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12621 CFLAGS="$CFLAGS $XFT_CFLAGS"
12622 LIBS="$XFT_LIBS $LIBS"
12623 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12624 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12625 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12626 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12627 echo $ECHO_N "(cached) $ECHO_C" >&6
12628 fi
12629 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12630 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12631 else
12632 # Is the header compilable?
12633 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12634 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12635 cat >conftest.$ac_ext <<_ACEOF
12636 /* confdefs.h. */
12637 _ACEOF
12638 cat confdefs.h >>conftest.$ac_ext
12639 cat >>conftest.$ac_ext <<_ACEOF
12640 /* end confdefs.h. */
12641 $ac_includes_default
12642 #include <X11/Xft/Xft.h>
12643 _ACEOF
12644 rm -f conftest.$ac_objext
12645 if { (ac_try="$ac_compile"
12646 case "(($ac_try" in
12647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12648 *) ac_try_echo=$ac_try;;
12649 esac
12650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12651 (eval "$ac_compile") 2>conftest.er1
12652 ac_status=$?
12653 grep -v '^ *+' conftest.er1 >conftest.err
12654 rm -f conftest.er1
12655 cat conftest.err >&5
12656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12657 (exit $ac_status); } && {
12658 test -z "$ac_c_werror_flag" ||
12659 test ! -s conftest.err
12660 } && test -s conftest.$ac_objext; then
12661 ac_header_compiler=yes
12662 else
12663 echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666 ac_header_compiler=no
12667 fi
12668
12669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12670 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12671 echo "${ECHO_T}$ac_header_compiler" >&6; }
12672
12673 # Is the header present?
12674 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12675 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12676 cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h. */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h. */
12682 #include <X11/Xft/Xft.h>
12683 _ACEOF
12684 if { (ac_try="$ac_cpp conftest.$ac_ext"
12685 case "(($ac_try" in
12686 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12687 *) ac_try_echo=$ac_try;;
12688 esac
12689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12690 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12691 ac_status=$?
12692 grep -v '^ *+' conftest.er1 >conftest.err
12693 rm -f conftest.er1
12694 cat conftest.err >&5
12695 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12696 (exit $ac_status); } >/dev/null && {
12697 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12698 test ! -s conftest.err
12699 }; then
12700 ac_header_preproc=yes
12701 else
12702 echo "$as_me: failed program was:" >&5
12703 sed 's/^/| /' conftest.$ac_ext >&5
12704
12705 ac_header_preproc=no
12706 fi
12707
12708 rm -f conftest.err conftest.$ac_ext
12709 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12710 echo "${ECHO_T}$ac_header_preproc" >&6; }
12711
12712 # So? What about this header?
12713 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12714 yes:no: )
12715 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12716 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12717 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12718 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12719 ac_header_preproc=yes
12720 ;;
12721 no:yes:* )
12722 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12723 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12724 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12725 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12726 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12727 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12728 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12729 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12730 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12731 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12732 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12733 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12734
12735 ;;
12736 esac
12737 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12738 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12739 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12740 echo $ECHO_N "(cached) $ECHO_C" >&6
12741 else
12742 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12743 fi
12744 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12745 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12746
12747 fi
12748 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12749 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12750 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12751 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12752 echo $ECHO_N "(cached) $ECHO_C" >&6
12753 else
12754 ac_check_lib_save_LIBS=$LIBS
12755 LIBS="-lXft $XFT_LIBS $LIBS"
12756 cat >conftest.$ac_ext <<_ACEOF
12757 /* confdefs.h. */
12758 _ACEOF
12759 cat confdefs.h >>conftest.$ac_ext
12760 cat >>conftest.$ac_ext <<_ACEOF
12761 /* end confdefs.h. */
12762
12763 /* Override any GCC internal prototype to avoid an error.
12764 Use char because int might match the return type of a GCC
12765 builtin and then its argument prototype would still apply. */
12766 #ifdef __cplusplus
12767 extern "C"
12768 #endif
12769 char XftFontOpen ();
12770 int
12771 main ()
12772 {
12773 return XftFontOpen ();
12774 ;
12775 return 0;
12776 }
12777 _ACEOF
12778 rm -f conftest.$ac_objext conftest$ac_exeext
12779 if { (ac_try="$ac_link"
12780 case "(($ac_try" in
12781 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12782 *) ac_try_echo=$ac_try;;
12783 esac
12784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12785 (eval "$ac_link") 2>conftest.er1
12786 ac_status=$?
12787 grep -v '^ *+' conftest.er1 >conftest.err
12788 rm -f conftest.er1
12789 cat conftest.err >&5
12790 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12791 (exit $ac_status); } && {
12792 test -z "$ac_c_werror_flag" ||
12793 test ! -s conftest.err
12794 } && test -s conftest$ac_exeext &&
12795 $as_test_x conftest$ac_exeext; then
12796 ac_cv_lib_Xft_XftFontOpen=yes
12797 else
12798 echo "$as_me: failed program was:" >&5
12799 sed 's/^/| /' conftest.$ac_ext >&5
12800
12801 ac_cv_lib_Xft_XftFontOpen=no
12802 fi
12803
12804 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12805 conftest$ac_exeext conftest.$ac_ext
12806 LIBS=$ac_check_lib_save_LIBS
12807 fi
12808 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12809 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12810 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12811 HAVE_XFT=yes
12812 fi
12813
12814 fi
12815
12816
12817
12818 if test "${HAVE_XFT}" = "yes"; then
12819
12820 cat >>confdefs.h <<\_ACEOF
12821 #define HAVE_XFT 1
12822 _ACEOF
12823
12824
12825 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12826 else
12827 CFLAGS="$OLD_CPPFLAGS"
12828 CFLAGS="$OLD_CFLAGS"
12829 LIBS="$OLD_LIBS"
12830 fi
12831 fi
12832 fi
12833 fi
12834
12835 HAVE_FREETYPE=no
12836 ### Use -lfreetype if available, unless `--with-freetype=no'.
12837 if test "${HAVE_XFT}" = "yes"; then
12838 HAVE_FREETYPE=yes
12839 elif test "x${with_freetype}" != "xno"; then
12840 if test "X${with_pkg_config_prog}" != X; then
12841 PKG_CONFIG="${with_pkg_config_prog}"
12842 fi
12843
12844
12845 succeeded=no
12846
12847 if test -z "$PKG_CONFIG"; then
12848 # Extract the first word of "pkg-config", so it can be a program name with args.
12849 set dummy pkg-config; ac_word=$2
12850 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12851 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12852 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12853 echo $ECHO_N "(cached) $ECHO_C" >&6
12854 else
12855 case $PKG_CONFIG in
12856 [\\/]* | ?:[\\/]*)
12857 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12858 ;;
12859 *)
12860 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12861 for as_dir in $PATH
12862 do
12863 IFS=$as_save_IFS
12864 test -z "$as_dir" && as_dir=.
12865 for ac_exec_ext in '' $ac_executable_extensions; do
12866 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12867 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12868 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12869 break 2
12870 fi
12871 done
12872 done
12873 IFS=$as_save_IFS
12874
12875 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12876 ;;
12877 esac
12878 fi
12879 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12880 if test -n "$PKG_CONFIG"; then
12881 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12882 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12883 else
12884 { echo "$as_me:$LINENO: result: no" >&5
12885 echo "${ECHO_T}no" >&6; }
12886 fi
12887
12888
12889 fi
12890
12891 if test "$PKG_CONFIG" = "no" ; then
12892 HAVE_FREETYPE=no
12893 else
12894 PKG_CONFIG_MIN_VERSION=0.9.0
12895 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12896 { echo "$as_me:$LINENO: checking for freetype2" >&5
12897 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12898
12899 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12900 { echo "$as_me:$LINENO: result: yes" >&5
12901 echo "${ECHO_T}yes" >&6; }
12902 succeeded=yes
12903
12904 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12905 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12906 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12907 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12908 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12909
12910 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12911 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12912 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12913 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12914 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12915 else
12916 { echo "$as_me:$LINENO: result: no" >&5
12917 echo "${ECHO_T}no" >&6; }
12918 FREETYPE_CFLAGS=""
12919 FREETYPE_LIBS=""
12920 ## If we have a custom action on failure, don't print errors, but
12921 ## do set a variable so people can do so.
12922 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12923
12924 fi
12925
12926
12927
12928 else
12929 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12930 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12931 fi
12932 fi
12933
12934 if test $succeeded = yes; then
12935 HAVE_FREETYPE=yes
12936 else
12937 HAVE_FREETYPE=no
12938 fi
12939
12940 if test "${HAVE_FREETYPE}" = "yes"; then
12941
12942 succeeded=no
12943
12944 if test -z "$PKG_CONFIG"; then
12945 # Extract the first word of "pkg-config", so it can be a program name with args.
12946 set dummy pkg-config; ac_word=$2
12947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12949 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12950 echo $ECHO_N "(cached) $ECHO_C" >&6
12951 else
12952 case $PKG_CONFIG in
12953 [\\/]* | ?:[\\/]*)
12954 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12955 ;;
12956 *)
12957 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12958 for as_dir in $PATH
12959 do
12960 IFS=$as_save_IFS
12961 test -z "$as_dir" && as_dir=.
12962 for ac_exec_ext in '' $ac_executable_extensions; do
12963 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12964 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12965 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12966 break 2
12967 fi
12968 done
12969 done
12970 IFS=$as_save_IFS
12971
12972 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12973 ;;
12974 esac
12975 fi
12976 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12977 if test -n "$PKG_CONFIG"; then
12978 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12979 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12980 else
12981 { echo "$as_me:$LINENO: result: no" >&5
12982 echo "${ECHO_T}no" >&6; }
12983 fi
12984
12985
12986 fi
12987
12988 if test "$PKG_CONFIG" = "no" ; then
12989 HAVE_FC=no
12990 else
12991 PKG_CONFIG_MIN_VERSION=0.9.0
12992 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12993 { echo "$as_me:$LINENO: checking for fontconfig" >&5
12994 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
12995
12996 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
12997 { echo "$as_me:$LINENO: result: yes" >&5
12998 echo "${ECHO_T}yes" >&6; }
12999 succeeded=yes
13000
13001 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13002 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13003 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
13004 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13005 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13006
13007 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13008 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13009 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
13010 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13011 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13012 else
13013 { echo "$as_me:$LINENO: result: no" >&5
13014 echo "${ECHO_T}no" >&6; }
13015 FONTCONFIG_CFLAGS=""
13016 FONTCONFIG_LIBS=""
13017 ## If we have a custom action on failure, don't print errors, but
13018 ## do set a variable so people can do so.
13019 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13020
13021 fi
13022
13023
13024
13025 else
13026 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13027 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13028 fi
13029 fi
13030
13031 if test $succeeded = yes; then
13032 HAVE_FC=yes
13033 else
13034 HAVE_FC=no
13035 fi
13036
13037 if test "${HAVE_FC}" = "no"; then
13038 HAVE_FREETYPE=no
13039 fi
13040 fi
13041 fi
13042 if test "${HAVE_FREETYPE}" = "yes"; then
13043
13044 cat >>confdefs.h <<\_ACEOF
13045 #define HAVE_FREETYPE 1
13046 _ACEOF
13047
13048 # Extract the first word of "libotf-config", so it can be a program name with args.
13049 set dummy libotf-config; ac_word=$2
13050 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13051 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13052 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13053 echo $ECHO_N "(cached) $ECHO_C" >&6
13054 else
13055 if test -n "$HAVE_LIBOTF"; then
13056 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13057 else
13058 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13059 for as_dir in $PATH
13060 do
13061 IFS=$as_save_IFS
13062 test -z "$as_dir" && as_dir=.
13063 for ac_exec_ext in '' $ac_executable_extensions; do
13064 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13065 ac_cv_prog_HAVE_LIBOTF="yes"
13066 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13067 break 2
13068 fi
13069 done
13070 done
13071 IFS=$as_save_IFS
13072
13073 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13074 fi
13075 fi
13076 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13077 if test -n "$HAVE_LIBOTF"; then
13078 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13079 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13080 else
13081 { echo "$as_me:$LINENO: result: no" >&5
13082 echo "${ECHO_T}no" >&6; }
13083 fi
13084
13085
13086 if test "${HAVE_LIBOTF}" = "yes"; then
13087
13088 cat >>confdefs.h <<\_ACEOF
13089 #define HAVE_LIBOTF 1
13090 _ACEOF
13091
13092 LIBOTF_CFLAGS=`libotf-config --cflags`
13093 LIBOTF_LIBS=`libotf-config --libs`
13094 fi
13095 fi
13096
13097
13098
13099
13100
13101
13102
13103 fi
13104
13105 ### Use -lXpm if available, unless `--with-xpm=no'.
13106 HAVE_XPM=no
13107 if test "${HAVE_X11}" = "yes"; then
13108 if test "${with_xpm}" != "no"; then
13109 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13110 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13111 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13112 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13113 echo $ECHO_N "(cached) $ECHO_C" >&6
13114 fi
13115 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13116 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13117 else
13118 # Is the header compilable?
13119 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13120 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13121 cat >conftest.$ac_ext <<_ACEOF
13122 /* confdefs.h. */
13123 _ACEOF
13124 cat confdefs.h >>conftest.$ac_ext
13125 cat >>conftest.$ac_ext <<_ACEOF
13126 /* end confdefs.h. */
13127 $ac_includes_default
13128 #include <X11/xpm.h>
13129 _ACEOF
13130 rm -f conftest.$ac_objext
13131 if { (ac_try="$ac_compile"
13132 case "(($ac_try" in
13133 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13134 *) ac_try_echo=$ac_try;;
13135 esac
13136 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13137 (eval "$ac_compile") 2>conftest.er1
13138 ac_status=$?
13139 grep -v '^ *+' conftest.er1 >conftest.err
13140 rm -f conftest.er1
13141 cat conftest.err >&5
13142 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13143 (exit $ac_status); } && {
13144 test -z "$ac_c_werror_flag" ||
13145 test ! -s conftest.err
13146 } && test -s conftest.$ac_objext; then
13147 ac_header_compiler=yes
13148 else
13149 echo "$as_me: failed program was:" >&5
13150 sed 's/^/| /' conftest.$ac_ext >&5
13151
13152 ac_header_compiler=no
13153 fi
13154
13155 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13156 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13157 echo "${ECHO_T}$ac_header_compiler" >&6; }
13158
13159 # Is the header present?
13160 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13161 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13162 cat >conftest.$ac_ext <<_ACEOF
13163 /* confdefs.h. */
13164 _ACEOF
13165 cat confdefs.h >>conftest.$ac_ext
13166 cat >>conftest.$ac_ext <<_ACEOF
13167 /* end confdefs.h. */
13168 #include <X11/xpm.h>
13169 _ACEOF
13170 if { (ac_try="$ac_cpp conftest.$ac_ext"
13171 case "(($ac_try" in
13172 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13173 *) ac_try_echo=$ac_try;;
13174 esac
13175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13176 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13177 ac_status=$?
13178 grep -v '^ *+' conftest.er1 >conftest.err
13179 rm -f conftest.er1
13180 cat conftest.err >&5
13181 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13182 (exit $ac_status); } >/dev/null && {
13183 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13184 test ! -s conftest.err
13185 }; then
13186 ac_header_preproc=yes
13187 else
13188 echo "$as_me: failed program was:" >&5
13189 sed 's/^/| /' conftest.$ac_ext >&5
13190
13191 ac_header_preproc=no
13192 fi
13193
13194 rm -f conftest.err conftest.$ac_ext
13195 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13196 echo "${ECHO_T}$ac_header_preproc" >&6; }
13197
13198 # So? What about this header?
13199 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13200 yes:no: )
13201 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13202 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13203 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13204 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13205 ac_header_preproc=yes
13206 ;;
13207 no:yes:* )
13208 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13209 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13210 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13211 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13212 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13213 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13214 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13215 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13216 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13217 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13218 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13219 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13220
13221 ;;
13222 esac
13223 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13224 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13225 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13226 echo $ECHO_N "(cached) $ECHO_C" >&6
13227 else
13228 ac_cv_header_X11_xpm_h=$ac_header_preproc
13229 fi
13230 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13231 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13232
13233 fi
13234 if test $ac_cv_header_X11_xpm_h = yes; then
13235 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13236 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13237 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13238 echo $ECHO_N "(cached) $ECHO_C" >&6
13239 else
13240 ac_check_lib_save_LIBS=$LIBS
13241 LIBS="-lXpm -lX11 $LIBS"
13242 cat >conftest.$ac_ext <<_ACEOF
13243 /* confdefs.h. */
13244 _ACEOF
13245 cat confdefs.h >>conftest.$ac_ext
13246 cat >>conftest.$ac_ext <<_ACEOF
13247 /* end confdefs.h. */
13248
13249 /* Override any GCC internal prototype to avoid an error.
13250 Use char because int might match the return type of a GCC
13251 builtin and then its argument prototype would still apply. */
13252 #ifdef __cplusplus
13253 extern "C"
13254 #endif
13255 char XpmReadFileToPixmap ();
13256 int
13257 main ()
13258 {
13259 return XpmReadFileToPixmap ();
13260 ;
13261 return 0;
13262 }
13263 _ACEOF
13264 rm -f conftest.$ac_objext conftest$ac_exeext
13265 if { (ac_try="$ac_link"
13266 case "(($ac_try" in
13267 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13268 *) ac_try_echo=$ac_try;;
13269 esac
13270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13271 (eval "$ac_link") 2>conftest.er1
13272 ac_status=$?
13273 grep -v '^ *+' conftest.er1 >conftest.err
13274 rm -f conftest.er1
13275 cat conftest.err >&5
13276 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13277 (exit $ac_status); } && {
13278 test -z "$ac_c_werror_flag" ||
13279 test ! -s conftest.err
13280 } && test -s conftest$ac_exeext &&
13281 $as_test_x conftest$ac_exeext; then
13282 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13283 else
13284 echo "$as_me: failed program was:" >&5
13285 sed 's/^/| /' conftest.$ac_ext >&5
13286
13287 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13288 fi
13289
13290 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13291 conftest$ac_exeext conftest.$ac_ext
13292 LIBS=$ac_check_lib_save_LIBS
13293 fi
13294 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13295 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13296 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13297 HAVE_XPM=yes
13298 fi
13299
13300 fi
13301
13302
13303 if test "${HAVE_XPM}" = "yes"; then
13304 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13305 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13306 cat >conftest.$ac_ext <<_ACEOF
13307 /* confdefs.h. */
13308 _ACEOF
13309 cat confdefs.h >>conftest.$ac_ext
13310 cat >>conftest.$ac_ext <<_ACEOF
13311 /* end confdefs.h. */
13312 #include "X11/xpm.h"
13313 #ifndef XpmReturnAllocPixels
13314 no_return_alloc_pixels
13315 #endif
13316
13317 _ACEOF
13318 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13319 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13320 HAVE_XPM=no
13321 else
13322 HAVE_XPM=yes
13323 fi
13324 rm -f conftest*
13325
13326
13327 if test "${HAVE_XPM}" = "yes"; then
13328 { echo "$as_me:$LINENO: result: yes" >&5
13329 echo "${ECHO_T}yes" >&6; }
13330 else
13331 { echo "$as_me:$LINENO: result: no" >&5
13332 echo "${ECHO_T}no" >&6; }
13333 fi
13334 fi
13335 fi
13336
13337 if test "${HAVE_XPM}" = "yes"; then
13338
13339 cat >>confdefs.h <<\_ACEOF
13340 #define HAVE_XPM 1
13341 _ACEOF
13342
13343 fi
13344 fi
13345
13346 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13347 HAVE_JPEG=no
13348 if test "${HAVE_X11}" = "yes"; then
13349 if test "${with_jpeg}" != "no"; then
13350 if test "${ac_cv_header_jerror_h+set}" = set; then
13351 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13352 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13353 if test "${ac_cv_header_jerror_h+set}" = set; then
13354 echo $ECHO_N "(cached) $ECHO_C" >&6
13355 fi
13356 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13357 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13358 else
13359 # Is the header compilable?
13360 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13361 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13362 cat >conftest.$ac_ext <<_ACEOF
13363 /* confdefs.h. */
13364 _ACEOF
13365 cat confdefs.h >>conftest.$ac_ext
13366 cat >>conftest.$ac_ext <<_ACEOF
13367 /* end confdefs.h. */
13368 $ac_includes_default
13369 #include <jerror.h>
13370 _ACEOF
13371 rm -f conftest.$ac_objext
13372 if { (ac_try="$ac_compile"
13373 case "(($ac_try" in
13374 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13375 *) ac_try_echo=$ac_try;;
13376 esac
13377 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13378 (eval "$ac_compile") 2>conftest.er1
13379 ac_status=$?
13380 grep -v '^ *+' conftest.er1 >conftest.err
13381 rm -f conftest.er1
13382 cat conftest.err >&5
13383 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13384 (exit $ac_status); } && {
13385 test -z "$ac_c_werror_flag" ||
13386 test ! -s conftest.err
13387 } && test -s conftest.$ac_objext; then
13388 ac_header_compiler=yes
13389 else
13390 echo "$as_me: failed program was:" >&5
13391 sed 's/^/| /' conftest.$ac_ext >&5
13392
13393 ac_header_compiler=no
13394 fi
13395
13396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13397 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13398 echo "${ECHO_T}$ac_header_compiler" >&6; }
13399
13400 # Is the header present?
13401 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13402 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13403 cat >conftest.$ac_ext <<_ACEOF
13404 /* confdefs.h. */
13405 _ACEOF
13406 cat confdefs.h >>conftest.$ac_ext
13407 cat >>conftest.$ac_ext <<_ACEOF
13408 /* end confdefs.h. */
13409 #include <jerror.h>
13410 _ACEOF
13411 if { (ac_try="$ac_cpp conftest.$ac_ext"
13412 case "(($ac_try" in
13413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13414 *) ac_try_echo=$ac_try;;
13415 esac
13416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13417 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13418 ac_status=$?
13419 grep -v '^ *+' conftest.er1 >conftest.err
13420 rm -f conftest.er1
13421 cat conftest.err >&5
13422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13423 (exit $ac_status); } >/dev/null && {
13424 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13425 test ! -s conftest.err
13426 }; then
13427 ac_header_preproc=yes
13428 else
13429 echo "$as_me: failed program was:" >&5
13430 sed 's/^/| /' conftest.$ac_ext >&5
13431
13432 ac_header_preproc=no
13433 fi
13434
13435 rm -f conftest.err conftest.$ac_ext
13436 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13437 echo "${ECHO_T}$ac_header_preproc" >&6; }
13438
13439 # So? What about this header?
13440 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13441 yes:no: )
13442 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13443 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13444 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13445 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13446 ac_header_preproc=yes
13447 ;;
13448 no:yes:* )
13449 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13450 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13451 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13452 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13453 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13454 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13455 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13456 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13457 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13458 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13459 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13460 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13461
13462 ;;
13463 esac
13464 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13465 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13466 if test "${ac_cv_header_jerror_h+set}" = set; then
13467 echo $ECHO_N "(cached) $ECHO_C" >&6
13468 else
13469 ac_cv_header_jerror_h=$ac_header_preproc
13470 fi
13471 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13472 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13473
13474 fi
13475 if test $ac_cv_header_jerror_h = yes; then
13476 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13477 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13478 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13479 echo $ECHO_N "(cached) $ECHO_C" >&6
13480 else
13481 ac_check_lib_save_LIBS=$LIBS
13482 LIBS="-ljpeg $LIBS"
13483 cat >conftest.$ac_ext <<_ACEOF
13484 /* confdefs.h. */
13485 _ACEOF
13486 cat confdefs.h >>conftest.$ac_ext
13487 cat >>conftest.$ac_ext <<_ACEOF
13488 /* end confdefs.h. */
13489
13490 /* Override any GCC internal prototype to avoid an error.
13491 Use char because int might match the return type of a GCC
13492 builtin and then its argument prototype would still apply. */
13493 #ifdef __cplusplus
13494 extern "C"
13495 #endif
13496 char jpeg_destroy_compress ();
13497 int
13498 main ()
13499 {
13500 return jpeg_destroy_compress ();
13501 ;
13502 return 0;
13503 }
13504 _ACEOF
13505 rm -f conftest.$ac_objext conftest$ac_exeext
13506 if { (ac_try="$ac_link"
13507 case "(($ac_try" in
13508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13509 *) ac_try_echo=$ac_try;;
13510 esac
13511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13512 (eval "$ac_link") 2>conftest.er1
13513 ac_status=$?
13514 grep -v '^ *+' conftest.er1 >conftest.err
13515 rm -f conftest.er1
13516 cat conftest.err >&5
13517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518 (exit $ac_status); } && {
13519 test -z "$ac_c_werror_flag" ||
13520 test ! -s conftest.err
13521 } && test -s conftest$ac_exeext &&
13522 $as_test_x conftest$ac_exeext; then
13523 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13524 else
13525 echo "$as_me: failed program was:" >&5
13526 sed 's/^/| /' conftest.$ac_ext >&5
13527
13528 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13529 fi
13530
13531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13532 conftest$ac_exeext conftest.$ac_ext
13533 LIBS=$ac_check_lib_save_LIBS
13534 fi
13535 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13536 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13537 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13538 HAVE_JPEG=yes
13539 fi
13540
13541 fi
13542
13543
13544 fi
13545
13546
13547 if test "${HAVE_JPEG}" = "yes"; then
13548 cat >>confdefs.h <<\_ACEOF
13549 #define HAVE_JPEG 1
13550 _ACEOF
13551
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558 #include <jpeglib.h>
13559 version=JPEG_LIB_VERSION
13560
13561 _ACEOF
13562 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13563 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13564 cat >>confdefs.h <<\_ACEOF
13565 #define HAVE_JPEG 1
13566 _ACEOF
13567
13568 else
13569 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13570 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13571 HAVE_JPEG=no
13572 fi
13573 rm -f conftest*
13574
13575 fi
13576 fi
13577
13578 ### Use -lpng if available, unless `--with-png=no'.
13579 HAVE_PNG=no
13580 if test "${HAVE_X11}" = "yes"; then
13581 if test "${with_png}" != "no"; then
13582 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13583 # in /usr/include/libpng.
13584
13585
13586 for ac_header in png.h libpng/png.h
13587 do
13588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13593 echo $ECHO_N "(cached) $ECHO_C" >&6
13594 fi
13595 ac_res=`eval echo '${'$as_ac_Header'}'`
13596 { echo "$as_me:$LINENO: result: $ac_res" >&5
13597 echo "${ECHO_T}$ac_res" >&6; }
13598 else
13599 # Is the header compilable?
13600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13602 cat >conftest.$ac_ext <<_ACEOF
13603 /* confdefs.h. */
13604 _ACEOF
13605 cat confdefs.h >>conftest.$ac_ext
13606 cat >>conftest.$ac_ext <<_ACEOF
13607 /* end confdefs.h. */
13608 $ac_includes_default
13609 #include <$ac_header>
13610 _ACEOF
13611 rm -f conftest.$ac_objext
13612 if { (ac_try="$ac_compile"
13613 case "(($ac_try" in
13614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13615 *) ac_try_echo=$ac_try;;
13616 esac
13617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13618 (eval "$ac_compile") 2>conftest.er1
13619 ac_status=$?
13620 grep -v '^ *+' conftest.er1 >conftest.err
13621 rm -f conftest.er1
13622 cat conftest.err >&5
13623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13624 (exit $ac_status); } && {
13625 test -z "$ac_c_werror_flag" ||
13626 test ! -s conftest.err
13627 } && test -s conftest.$ac_objext; then
13628 ac_header_compiler=yes
13629 else
13630 echo "$as_me: failed program was:" >&5
13631 sed 's/^/| /' conftest.$ac_ext >&5
13632
13633 ac_header_compiler=no
13634 fi
13635
13636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13638 echo "${ECHO_T}$ac_header_compiler" >&6; }
13639
13640 # Is the header present?
13641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13643 cat >conftest.$ac_ext <<_ACEOF
13644 /* confdefs.h. */
13645 _ACEOF
13646 cat confdefs.h >>conftest.$ac_ext
13647 cat >>conftest.$ac_ext <<_ACEOF
13648 /* end confdefs.h. */
13649 #include <$ac_header>
13650 _ACEOF
13651 if { (ac_try="$ac_cpp conftest.$ac_ext"
13652 case "(($ac_try" in
13653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13654 *) ac_try_echo=$ac_try;;
13655 esac
13656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13658 ac_status=$?
13659 grep -v '^ *+' conftest.er1 >conftest.err
13660 rm -f conftest.er1
13661 cat conftest.err >&5
13662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13663 (exit $ac_status); } >/dev/null && {
13664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13665 test ! -s conftest.err
13666 }; then
13667 ac_header_preproc=yes
13668 else
13669 echo "$as_me: failed program was:" >&5
13670 sed 's/^/| /' conftest.$ac_ext >&5
13671
13672 ac_header_preproc=no
13673 fi
13674
13675 rm -f conftest.err conftest.$ac_ext
13676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13677 echo "${ECHO_T}$ac_header_preproc" >&6; }
13678
13679 # So? What about this header?
13680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13681 yes:no: )
13682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13686 ac_header_preproc=yes
13687 ;;
13688 no:yes:* )
13689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13701
13702 ;;
13703 esac
13704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13707 echo $ECHO_N "(cached) $ECHO_C" >&6
13708 else
13709 eval "$as_ac_Header=\$ac_header_preproc"
13710 fi
13711 ac_res=`eval echo '${'$as_ac_Header'}'`
13712 { echo "$as_me:$LINENO: result: $ac_res" >&5
13713 echo "${ECHO_T}$ac_res" >&6; }
13714
13715 fi
13716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13717 cat >>confdefs.h <<_ACEOF
13718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13719 _ACEOF
13720
13721 fi
13722
13723 done
13724
13725 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13726 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13727 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13728 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13729 echo $ECHO_N "(cached) $ECHO_C" >&6
13730 else
13731 ac_check_lib_save_LIBS=$LIBS
13732 LIBS="-lpng -lz -lm $LIBS"
13733 cat >conftest.$ac_ext <<_ACEOF
13734 /* confdefs.h. */
13735 _ACEOF
13736 cat confdefs.h >>conftest.$ac_ext
13737 cat >>conftest.$ac_ext <<_ACEOF
13738 /* end confdefs.h. */
13739
13740 /* Override any GCC internal prototype to avoid an error.
13741 Use char because int might match the return type of a GCC
13742 builtin and then its argument prototype would still apply. */
13743 #ifdef __cplusplus
13744 extern "C"
13745 #endif
13746 char png_get_channels ();
13747 int
13748 main ()
13749 {
13750 return png_get_channels ();
13751 ;
13752 return 0;
13753 }
13754 _ACEOF
13755 rm -f conftest.$ac_objext conftest$ac_exeext
13756 if { (ac_try="$ac_link"
13757 case "(($ac_try" in
13758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13759 *) ac_try_echo=$ac_try;;
13760 esac
13761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13762 (eval "$ac_link") 2>conftest.er1
13763 ac_status=$?
13764 grep -v '^ *+' conftest.er1 >conftest.err
13765 rm -f conftest.er1
13766 cat conftest.err >&5
13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13768 (exit $ac_status); } && {
13769 test -z "$ac_c_werror_flag" ||
13770 test ! -s conftest.err
13771 } && test -s conftest$ac_exeext &&
13772 $as_test_x conftest$ac_exeext; then
13773 ac_cv_lib_png_png_get_channels=yes
13774 else
13775 echo "$as_me: failed program was:" >&5
13776 sed 's/^/| /' conftest.$ac_ext >&5
13777
13778 ac_cv_lib_png_png_get_channels=no
13779 fi
13780
13781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13782 conftest$ac_exeext conftest.$ac_ext
13783 LIBS=$ac_check_lib_save_LIBS
13784 fi
13785 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13786 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13787 if test $ac_cv_lib_png_png_get_channels = yes; then
13788 HAVE_PNG=yes
13789 fi
13790
13791 fi
13792 fi
13793
13794 if test "${HAVE_PNG}" = "yes"; then
13795
13796 cat >>confdefs.h <<\_ACEOF
13797 #define HAVE_PNG 1
13798 _ACEOF
13799
13800 fi
13801 fi
13802
13803 ### Use -ltiff if available, unless `--with-tiff=no'.
13804 HAVE_TIFF=no
13805 if test "${HAVE_X11}" = "yes"; then
13806 if test "${with_tiff}" != "no"; then
13807 if test "${ac_cv_header_tiffio_h+set}" = set; then
13808 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13809 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13810 if test "${ac_cv_header_tiffio_h+set}" = set; then
13811 echo $ECHO_N "(cached) $ECHO_C" >&6
13812 fi
13813 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13814 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13815 else
13816 # Is the header compilable?
13817 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13818 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13819 cat >conftest.$ac_ext <<_ACEOF
13820 /* confdefs.h. */
13821 _ACEOF
13822 cat confdefs.h >>conftest.$ac_ext
13823 cat >>conftest.$ac_ext <<_ACEOF
13824 /* end confdefs.h. */
13825 $ac_includes_default
13826 #include <tiffio.h>
13827 _ACEOF
13828 rm -f conftest.$ac_objext
13829 if { (ac_try="$ac_compile"
13830 case "(($ac_try" in
13831 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13832 *) ac_try_echo=$ac_try;;
13833 esac
13834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13835 (eval "$ac_compile") 2>conftest.er1
13836 ac_status=$?
13837 grep -v '^ *+' conftest.er1 >conftest.err
13838 rm -f conftest.er1
13839 cat conftest.err >&5
13840 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13841 (exit $ac_status); } && {
13842 test -z "$ac_c_werror_flag" ||
13843 test ! -s conftest.err
13844 } && test -s conftest.$ac_objext; then
13845 ac_header_compiler=yes
13846 else
13847 echo "$as_me: failed program was:" >&5
13848 sed 's/^/| /' conftest.$ac_ext >&5
13849
13850 ac_header_compiler=no
13851 fi
13852
13853 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13854 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13855 echo "${ECHO_T}$ac_header_compiler" >&6; }
13856
13857 # Is the header present?
13858 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13859 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13860 cat >conftest.$ac_ext <<_ACEOF
13861 /* confdefs.h. */
13862 _ACEOF
13863 cat confdefs.h >>conftest.$ac_ext
13864 cat >>conftest.$ac_ext <<_ACEOF
13865 /* end confdefs.h. */
13866 #include <tiffio.h>
13867 _ACEOF
13868 if { (ac_try="$ac_cpp conftest.$ac_ext"
13869 case "(($ac_try" in
13870 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13871 *) ac_try_echo=$ac_try;;
13872 esac
13873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13874 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13875 ac_status=$?
13876 grep -v '^ *+' conftest.er1 >conftest.err
13877 rm -f conftest.er1
13878 cat conftest.err >&5
13879 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13880 (exit $ac_status); } >/dev/null && {
13881 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13882 test ! -s conftest.err
13883 }; then
13884 ac_header_preproc=yes
13885 else
13886 echo "$as_me: failed program was:" >&5
13887 sed 's/^/| /' conftest.$ac_ext >&5
13888
13889 ac_header_preproc=no
13890 fi
13891
13892 rm -f conftest.err conftest.$ac_ext
13893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13894 echo "${ECHO_T}$ac_header_preproc" >&6; }
13895
13896 # So? What about this header?
13897 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13898 yes:no: )
13899 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13900 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13901 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13902 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13903 ac_header_preproc=yes
13904 ;;
13905 no:yes:* )
13906 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13907 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13908 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13909 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13910 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13911 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13912 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13913 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13914 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13915 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13916 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13917 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13918
13919 ;;
13920 esac
13921 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13922 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13923 if test "${ac_cv_header_tiffio_h+set}" = set; then
13924 echo $ECHO_N "(cached) $ECHO_C" >&6
13925 else
13926 ac_cv_header_tiffio_h=$ac_header_preproc
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13929 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13930
13931 fi
13932 if test $ac_cv_header_tiffio_h = yes; then
13933 tifflibs="-lz -lm"
13934 # At least one tiff package requires the jpeg library.
13935 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13936 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13937 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13938 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13939 echo $ECHO_N "(cached) $ECHO_C" >&6
13940 else
13941 ac_check_lib_save_LIBS=$LIBS
13942 LIBS="-ltiff $tifflibs $LIBS"
13943 cat >conftest.$ac_ext <<_ACEOF
13944 /* confdefs.h. */
13945 _ACEOF
13946 cat confdefs.h >>conftest.$ac_ext
13947 cat >>conftest.$ac_ext <<_ACEOF
13948 /* end confdefs.h. */
13949
13950 /* Override any GCC internal prototype to avoid an error.
13951 Use char because int might match the return type of a GCC
13952 builtin and then its argument prototype would still apply. */
13953 #ifdef __cplusplus
13954 extern "C"
13955 #endif
13956 char TIFFGetVersion ();
13957 int
13958 main ()
13959 {
13960 return TIFFGetVersion ();
13961 ;
13962 return 0;
13963 }
13964 _ACEOF
13965 rm -f conftest.$ac_objext conftest$ac_exeext
13966 if { (ac_try="$ac_link"
13967 case "(($ac_try" in
13968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13969 *) ac_try_echo=$ac_try;;
13970 esac
13971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13972 (eval "$ac_link") 2>conftest.er1
13973 ac_status=$?
13974 grep -v '^ *+' conftest.er1 >conftest.err
13975 rm -f conftest.er1
13976 cat conftest.err >&5
13977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13978 (exit $ac_status); } && {
13979 test -z "$ac_c_werror_flag" ||
13980 test ! -s conftest.err
13981 } && test -s conftest$ac_exeext &&
13982 $as_test_x conftest$ac_exeext; then
13983 ac_cv_lib_tiff_TIFFGetVersion=yes
13984 else
13985 echo "$as_me: failed program was:" >&5
13986 sed 's/^/| /' conftest.$ac_ext >&5
13987
13988 ac_cv_lib_tiff_TIFFGetVersion=no
13989 fi
13990
13991 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13992 conftest$ac_exeext conftest.$ac_ext
13993 LIBS=$ac_check_lib_save_LIBS
13994 fi
13995 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13996 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13997 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13998 HAVE_TIFF=yes
13999 fi
14000
14001 fi
14002
14003
14004 fi
14005
14006 if test "${HAVE_TIFF}" = "yes"; then
14007
14008 cat >>confdefs.h <<\_ACEOF
14009 #define HAVE_TIFF 1
14010 _ACEOF
14011
14012 fi
14013 fi
14014
14015 ### Use -lgif if available, unless `--with-gif=no'.
14016 HAVE_GIF=no
14017 if test "${HAVE_X11}" = "yes"; then
14018 if test "${with_gif}" != "no"; then
14019 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14020 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14021 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14022 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14023 echo $ECHO_N "(cached) $ECHO_C" >&6
14024 fi
14025 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14026 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14027 else
14028 # Is the header compilable?
14029 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14030 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14031 cat >conftest.$ac_ext <<_ACEOF
14032 /* confdefs.h. */
14033 _ACEOF
14034 cat confdefs.h >>conftest.$ac_ext
14035 cat >>conftest.$ac_ext <<_ACEOF
14036 /* end confdefs.h. */
14037 $ac_includes_default
14038 #include <gif_lib.h>
14039 _ACEOF
14040 rm -f conftest.$ac_objext
14041 if { (ac_try="$ac_compile"
14042 case "(($ac_try" in
14043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14044 *) ac_try_echo=$ac_try;;
14045 esac
14046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14047 (eval "$ac_compile") 2>conftest.er1
14048 ac_status=$?
14049 grep -v '^ *+' conftest.er1 >conftest.err
14050 rm -f conftest.er1
14051 cat conftest.err >&5
14052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14053 (exit $ac_status); } && {
14054 test -z "$ac_c_werror_flag" ||
14055 test ! -s conftest.err
14056 } && test -s conftest.$ac_objext; then
14057 ac_header_compiler=yes
14058 else
14059 echo "$as_me: failed program was:" >&5
14060 sed 's/^/| /' conftest.$ac_ext >&5
14061
14062 ac_header_compiler=no
14063 fi
14064
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14067 echo "${ECHO_T}$ac_header_compiler" >&6; }
14068
14069 # Is the header present?
14070 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14071 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14072 cat >conftest.$ac_ext <<_ACEOF
14073 /* confdefs.h. */
14074 _ACEOF
14075 cat confdefs.h >>conftest.$ac_ext
14076 cat >>conftest.$ac_ext <<_ACEOF
14077 /* end confdefs.h. */
14078 #include <gif_lib.h>
14079 _ACEOF
14080 if { (ac_try="$ac_cpp conftest.$ac_ext"
14081 case "(($ac_try" in
14082 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14083 *) ac_try_echo=$ac_try;;
14084 esac
14085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14086 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14087 ac_status=$?
14088 grep -v '^ *+' conftest.er1 >conftest.err
14089 rm -f conftest.er1
14090 cat conftest.err >&5
14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092 (exit $ac_status); } >/dev/null && {
14093 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14094 test ! -s conftest.err
14095 }; then
14096 ac_header_preproc=yes
14097 else
14098 echo "$as_me: failed program was:" >&5
14099 sed 's/^/| /' conftest.$ac_ext >&5
14100
14101 ac_header_preproc=no
14102 fi
14103
14104 rm -f conftest.err conftest.$ac_ext
14105 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14106 echo "${ECHO_T}$ac_header_preproc" >&6; }
14107
14108 # So? What about this header?
14109 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14110 yes:no: )
14111 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14112 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14113 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14114 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14115 ac_header_preproc=yes
14116 ;;
14117 no:yes:* )
14118 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14119 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14120 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14121 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14122 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14123 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14124 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14125 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14126 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14127 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14128 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14129 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14130
14131 ;;
14132 esac
14133 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14134 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14135 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14136 echo $ECHO_N "(cached) $ECHO_C" >&6
14137 else
14138 ac_cv_header_gif_lib_h=$ac_header_preproc
14139 fi
14140 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14141 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14142
14143 fi
14144 if test $ac_cv_header_gif_lib_h = yes; then
14145 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14146 # Earlier versions can crash Emacs.
14147 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14148 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14149 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14150 echo $ECHO_N "(cached) $ECHO_C" >&6
14151 else
14152 ac_check_lib_save_LIBS=$LIBS
14153 LIBS="-lungif $LIBS"
14154 cat >conftest.$ac_ext <<_ACEOF
14155 /* confdefs.h. */
14156 _ACEOF
14157 cat confdefs.h >>conftest.$ac_ext
14158 cat >>conftest.$ac_ext <<_ACEOF
14159 /* end confdefs.h. */
14160
14161 /* Override any GCC internal prototype to avoid an error.
14162 Use char because int might match the return type of a GCC
14163 builtin and then its argument prototype would still apply. */
14164 #ifdef __cplusplus
14165 extern "C"
14166 #endif
14167 char EGifPutExtensionLast ();
14168 int
14169 main ()
14170 {
14171 return EGifPutExtensionLast ();
14172 ;
14173 return 0;
14174 }
14175 _ACEOF
14176 rm -f conftest.$ac_objext conftest$ac_exeext
14177 if { (ac_try="$ac_link"
14178 case "(($ac_try" in
14179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14180 *) ac_try_echo=$ac_try;;
14181 esac
14182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14183 (eval "$ac_link") 2>conftest.er1
14184 ac_status=$?
14185 grep -v '^ *+' conftest.er1 >conftest.err
14186 rm -f conftest.er1
14187 cat conftest.err >&5
14188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14189 (exit $ac_status); } && {
14190 test -z "$ac_c_werror_flag" ||
14191 test ! -s conftest.err
14192 } && test -s conftest$ac_exeext &&
14193 $as_test_x conftest$ac_exeext; then
14194 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14195 else
14196 echo "$as_me: failed program was:" >&5
14197 sed 's/^/| /' conftest.$ac_ext >&5
14198
14199 ac_cv_lib_ungif_EGifPutExtensionLast=no
14200 fi
14201
14202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14203 conftest$ac_exeext conftest.$ac_ext
14204 LIBS=$ac_check_lib_save_LIBS
14205 fi
14206 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14207 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14208 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14209 HAVE_GIF=yes
14210 fi
14211
14212 fi
14213
14214
14215 fi
14216
14217 if test "${HAVE_GIF}" = "yes"; then
14218
14219 cat >>confdefs.h <<\_ACEOF
14220 #define HAVE_GIF 1
14221 _ACEOF
14222
14223 fi
14224 fi
14225
14226 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14227 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14228 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14229 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14230 echo $ECHO_N "(cached) $ECHO_C" >&6
14231 fi
14232 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14233 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14234 else
14235 # Is the header compilable?
14236 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14237 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14238 cat >conftest.$ac_ext <<_ACEOF
14239 /* confdefs.h. */
14240 _ACEOF
14241 cat confdefs.h >>conftest.$ac_ext
14242 cat >>conftest.$ac_ext <<_ACEOF
14243 /* end confdefs.h. */
14244 $ac_includes_default
14245 #include <malloc/malloc.h>
14246 _ACEOF
14247 rm -f conftest.$ac_objext
14248 if { (ac_try="$ac_compile"
14249 case "(($ac_try" in
14250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14251 *) ac_try_echo=$ac_try;;
14252 esac
14253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14254 (eval "$ac_compile") 2>conftest.er1
14255 ac_status=$?
14256 grep -v '^ *+' conftest.er1 >conftest.err
14257 rm -f conftest.er1
14258 cat conftest.err >&5
14259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14260 (exit $ac_status); } && {
14261 test -z "$ac_c_werror_flag" ||
14262 test ! -s conftest.err
14263 } && test -s conftest.$ac_objext; then
14264 ac_header_compiler=yes
14265 else
14266 echo "$as_me: failed program was:" >&5
14267 sed 's/^/| /' conftest.$ac_ext >&5
14268
14269 ac_header_compiler=no
14270 fi
14271
14272 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14273 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14274 echo "${ECHO_T}$ac_header_compiler" >&6; }
14275
14276 # Is the header present?
14277 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14278 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14279 cat >conftest.$ac_ext <<_ACEOF
14280 /* confdefs.h. */
14281 _ACEOF
14282 cat confdefs.h >>conftest.$ac_ext
14283 cat >>conftest.$ac_ext <<_ACEOF
14284 /* end confdefs.h. */
14285 #include <malloc/malloc.h>
14286 _ACEOF
14287 if { (ac_try="$ac_cpp conftest.$ac_ext"
14288 case "(($ac_try" in
14289 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14290 *) ac_try_echo=$ac_try;;
14291 esac
14292 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14293 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14294 ac_status=$?
14295 grep -v '^ *+' conftest.er1 >conftest.err
14296 rm -f conftest.er1
14297 cat conftest.err >&5
14298 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14299 (exit $ac_status); } >/dev/null && {
14300 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14301 test ! -s conftest.err
14302 }; then
14303 ac_header_preproc=yes
14304 else
14305 echo "$as_me: failed program was:" >&5
14306 sed 's/^/| /' conftest.$ac_ext >&5
14307
14308 ac_header_preproc=no
14309 fi
14310
14311 rm -f conftest.err conftest.$ac_ext
14312 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14313 echo "${ECHO_T}$ac_header_preproc" >&6; }
14314
14315 # So? What about this header?
14316 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14317 yes:no: )
14318 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14319 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14320 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14321 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14322 ac_header_preproc=yes
14323 ;;
14324 no:yes:* )
14325 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14326 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14327 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14328 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14329 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14330 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14331 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14332 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14333 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14334 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14335 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14336 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14337
14338 ;;
14339 esac
14340 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14341 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14342 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14343 echo $ECHO_N "(cached) $ECHO_C" >&6
14344 else
14345 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14346 fi
14347 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14348 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14349
14350 fi
14351 if test $ac_cv_header_malloc_malloc_h = yes; then
14352
14353 cat >>confdefs.h <<\_ACEOF
14354 #define HAVE_MALLOC_MALLOC_H 1
14355 _ACEOF
14356
14357 fi
14358
14359
14360
14361 ### Use Mac OS X Carbon API to implement GUI.
14362 if test "${HAVE_CARBON}" = "yes"; then
14363
14364 cat >>confdefs.h <<\_ACEOF
14365 #define HAVE_CARBON 1
14366 _ACEOF
14367
14368 ## Specify the install directory
14369 carbon_appdir=
14370 if test "${carbon_appdir_x}" != ""; then
14371 case ${carbon_appdir_x} in
14372 y | ye | yes) carbon_appdir=/Applications ;;
14373 * ) carbon_appdir=${carbon_appdir_x} ;;
14374 esac
14375 fi
14376 # We also have mouse menus.
14377 HAVE_MENUS=yes
14378 fi
14379
14380 ### Use session management (-lSM -lICE) if available
14381 HAVE_X_SM=no
14382 if test "${HAVE_X11}" = "yes"; then
14383 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14384 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14385 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14386 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14387 echo $ECHO_N "(cached) $ECHO_C" >&6
14388 fi
14389 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14390 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14391 else
14392 # Is the header compilable?
14393 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14394 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14395 cat >conftest.$ac_ext <<_ACEOF
14396 /* confdefs.h. */
14397 _ACEOF
14398 cat confdefs.h >>conftest.$ac_ext
14399 cat >>conftest.$ac_ext <<_ACEOF
14400 /* end confdefs.h. */
14401 $ac_includes_default
14402 #include <X11/SM/SMlib.h>
14403 _ACEOF
14404 rm -f conftest.$ac_objext
14405 if { (ac_try="$ac_compile"
14406 case "(($ac_try" in
14407 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14408 *) ac_try_echo=$ac_try;;
14409 esac
14410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14411 (eval "$ac_compile") 2>conftest.er1
14412 ac_status=$?
14413 grep -v '^ *+' conftest.er1 >conftest.err
14414 rm -f conftest.er1
14415 cat conftest.err >&5
14416 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14417 (exit $ac_status); } && {
14418 test -z "$ac_c_werror_flag" ||
14419 test ! -s conftest.err
14420 } && test -s conftest.$ac_objext; then
14421 ac_header_compiler=yes
14422 else
14423 echo "$as_me: failed program was:" >&5
14424 sed 's/^/| /' conftest.$ac_ext >&5
14425
14426 ac_header_compiler=no
14427 fi
14428
14429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14430 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14431 echo "${ECHO_T}$ac_header_compiler" >&6; }
14432
14433 # Is the header present?
14434 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14435 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14436 cat >conftest.$ac_ext <<_ACEOF
14437 /* confdefs.h. */
14438 _ACEOF
14439 cat confdefs.h >>conftest.$ac_ext
14440 cat >>conftest.$ac_ext <<_ACEOF
14441 /* end confdefs.h. */
14442 #include <X11/SM/SMlib.h>
14443 _ACEOF
14444 if { (ac_try="$ac_cpp conftest.$ac_ext"
14445 case "(($ac_try" in
14446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14447 *) ac_try_echo=$ac_try;;
14448 esac
14449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14451 ac_status=$?
14452 grep -v '^ *+' conftest.er1 >conftest.err
14453 rm -f conftest.er1
14454 cat conftest.err >&5
14455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14456 (exit $ac_status); } >/dev/null && {
14457 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14458 test ! -s conftest.err
14459 }; then
14460 ac_header_preproc=yes
14461 else
14462 echo "$as_me: failed program was:" >&5
14463 sed 's/^/| /' conftest.$ac_ext >&5
14464
14465 ac_header_preproc=no
14466 fi
14467
14468 rm -f conftest.err conftest.$ac_ext
14469 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14470 echo "${ECHO_T}$ac_header_preproc" >&6; }
14471
14472 # So? What about this header?
14473 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14474 yes:no: )
14475 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14476 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14477 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14478 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14479 ac_header_preproc=yes
14480 ;;
14481 no:yes:* )
14482 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14483 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14484 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14485 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14486 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14487 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14488 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14489 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14490 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14491 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14492 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14493 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14494
14495 ;;
14496 esac
14497 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14498 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14499 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14500 echo $ECHO_N "(cached) $ECHO_C" >&6
14501 else
14502 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14503 fi
14504 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14505 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14506
14507 fi
14508 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14509 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14510 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14511 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14512 echo $ECHO_N "(cached) $ECHO_C" >&6
14513 else
14514 ac_check_lib_save_LIBS=$LIBS
14515 LIBS="-lSM -lICE $LIBS"
14516 cat >conftest.$ac_ext <<_ACEOF
14517 /* confdefs.h. */
14518 _ACEOF
14519 cat confdefs.h >>conftest.$ac_ext
14520 cat >>conftest.$ac_ext <<_ACEOF
14521 /* end confdefs.h. */
14522
14523 /* Override any GCC internal prototype to avoid an error.
14524 Use char because int might match the return type of a GCC
14525 builtin and then its argument prototype would still apply. */
14526 #ifdef __cplusplus
14527 extern "C"
14528 #endif
14529 char SmcOpenConnection ();
14530 int
14531 main ()
14532 {
14533 return SmcOpenConnection ();
14534 ;
14535 return 0;
14536 }
14537 _ACEOF
14538 rm -f conftest.$ac_objext conftest$ac_exeext
14539 if { (ac_try="$ac_link"
14540 case "(($ac_try" in
14541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14542 *) ac_try_echo=$ac_try;;
14543 esac
14544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14545 (eval "$ac_link") 2>conftest.er1
14546 ac_status=$?
14547 grep -v '^ *+' conftest.er1 >conftest.err
14548 rm -f conftest.er1
14549 cat conftest.err >&5
14550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14551 (exit $ac_status); } && {
14552 test -z "$ac_c_werror_flag" ||
14553 test ! -s conftest.err
14554 } && test -s conftest$ac_exeext &&
14555 $as_test_x conftest$ac_exeext; then
14556 ac_cv_lib_SM_SmcOpenConnection=yes
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_cv_lib_SM_SmcOpenConnection=no
14562 fi
14563
14564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14565 conftest$ac_exeext conftest.$ac_ext
14566 LIBS=$ac_check_lib_save_LIBS
14567 fi
14568 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14569 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14570 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14571 HAVE_X_SM=yes
14572 fi
14573
14574 fi
14575
14576
14577
14578 if test "${HAVE_X_SM}" = "yes"; then
14579
14580 cat >>confdefs.h <<\_ACEOF
14581 #define HAVE_X_SM 1
14582 _ACEOF
14583
14584 case "$LIBS" in
14585 *-lSM*) ;;
14586 *) LIBS="-lSM -lICE $LIBS" ;;
14587 esac
14588 fi
14589 fi
14590
14591 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14592 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14593 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14594 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14595 echo $ECHO_N "(cached) $ECHO_C" >&6
14596 else
14597 cat >conftest.$ac_ext <<_ACEOF
14598 /* confdefs.h. */
14599 _ACEOF
14600 cat confdefs.h >>conftest.$ac_ext
14601 cat >>conftest.$ac_ext <<_ACEOF
14602 /* end confdefs.h. */
14603 #include <netdb.h>
14604 int
14605 main ()
14606 {
14607 return h_errno;
14608 ;
14609 return 0;
14610 }
14611 _ACEOF
14612 rm -f conftest.$ac_objext conftest$ac_exeext
14613 if { (ac_try="$ac_link"
14614 case "(($ac_try" in
14615 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14616 *) ac_try_echo=$ac_try;;
14617 esac
14618 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14619 (eval "$ac_link") 2>conftest.er1
14620 ac_status=$?
14621 grep -v '^ *+' conftest.er1 >conftest.err
14622 rm -f conftest.er1
14623 cat conftest.err >&5
14624 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625 (exit $ac_status); } && {
14626 test -z "$ac_c_werror_flag" ||
14627 test ! -s conftest.err
14628 } && test -s conftest$ac_exeext &&
14629 $as_test_x conftest$ac_exeext; then
14630 emacs_cv_netdb_declares_h_errno=yes
14631 else
14632 echo "$as_me: failed program was:" >&5
14633 sed 's/^/| /' conftest.$ac_ext >&5
14634
14635 emacs_cv_netdb_declares_h_errno=no
14636 fi
14637
14638 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14639 conftest$ac_exeext conftest.$ac_ext
14640 fi
14641 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14642 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14643 if test $emacs_cv_netdb_declares_h_errno = yes; then
14644
14645 cat >>confdefs.h <<\_ACEOF
14646 #define HAVE_H_ERRNO 1
14647 _ACEOF
14648
14649 fi
14650
14651 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14652 # for constant arguments. Useless!
14653 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14654 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14655 if test "${ac_cv_working_alloca_h+set}" = set; then
14656 echo $ECHO_N "(cached) $ECHO_C" >&6
14657 else
14658 cat >conftest.$ac_ext <<_ACEOF
14659 /* confdefs.h. */
14660 _ACEOF
14661 cat confdefs.h >>conftest.$ac_ext
14662 cat >>conftest.$ac_ext <<_ACEOF
14663 /* end confdefs.h. */
14664 #include <alloca.h>
14665 int
14666 main ()
14667 {
14668 char *p = (char *) alloca (2 * sizeof (int));
14669 if (p) return 0;
14670 ;
14671 return 0;
14672 }
14673 _ACEOF
14674 rm -f conftest.$ac_objext conftest$ac_exeext
14675 if { (ac_try="$ac_link"
14676 case "(($ac_try" in
14677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14678 *) ac_try_echo=$ac_try;;
14679 esac
14680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14681 (eval "$ac_link") 2>conftest.er1
14682 ac_status=$?
14683 grep -v '^ *+' conftest.er1 >conftest.err
14684 rm -f conftest.er1
14685 cat conftest.err >&5
14686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14687 (exit $ac_status); } && {
14688 test -z "$ac_c_werror_flag" ||
14689 test ! -s conftest.err
14690 } && test -s conftest$ac_exeext &&
14691 $as_test_x conftest$ac_exeext; then
14692 ac_cv_working_alloca_h=yes
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697 ac_cv_working_alloca_h=no
14698 fi
14699
14700 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14701 conftest$ac_exeext conftest.$ac_ext
14702 fi
14703 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14704 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14705 if test $ac_cv_working_alloca_h = yes; then
14706
14707 cat >>confdefs.h <<\_ACEOF
14708 #define HAVE_ALLOCA_H 1
14709 _ACEOF
14710
14711 fi
14712
14713 { echo "$as_me:$LINENO: checking for alloca" >&5
14714 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14715 if test "${ac_cv_func_alloca_works+set}" = set; then
14716 echo $ECHO_N "(cached) $ECHO_C" >&6
14717 else
14718 cat >conftest.$ac_ext <<_ACEOF
14719 /* confdefs.h. */
14720 _ACEOF
14721 cat confdefs.h >>conftest.$ac_ext
14722 cat >>conftest.$ac_ext <<_ACEOF
14723 /* end confdefs.h. */
14724 #ifdef __GNUC__
14725 # define alloca __builtin_alloca
14726 #else
14727 # ifdef _MSC_VER
14728 # include <malloc.h>
14729 # define alloca _alloca
14730 # else
14731 # ifdef HAVE_ALLOCA_H
14732 # include <alloca.h>
14733 # else
14734 # ifdef _AIX
14735 #pragma alloca
14736 # else
14737 # ifndef alloca /* predefined by HP cc +Olibcalls */
14738 char *alloca ();
14739 # endif
14740 # endif
14741 # endif
14742 # endif
14743 #endif
14744
14745 int
14746 main ()
14747 {
14748 char *p = (char *) alloca (1);
14749 if (p) return 0;
14750 ;
14751 return 0;
14752 }
14753 _ACEOF
14754 rm -f conftest.$ac_objext conftest$ac_exeext
14755 if { (ac_try="$ac_link"
14756 case "(($ac_try" in
14757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14758 *) ac_try_echo=$ac_try;;
14759 esac
14760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14761 (eval "$ac_link") 2>conftest.er1
14762 ac_status=$?
14763 grep -v '^ *+' conftest.er1 >conftest.err
14764 rm -f conftest.er1
14765 cat conftest.err >&5
14766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14767 (exit $ac_status); } && {
14768 test -z "$ac_c_werror_flag" ||
14769 test ! -s conftest.err
14770 } && test -s conftest$ac_exeext &&
14771 $as_test_x conftest$ac_exeext; then
14772 ac_cv_func_alloca_works=yes
14773 else
14774 echo "$as_me: failed program was:" >&5
14775 sed 's/^/| /' conftest.$ac_ext >&5
14776
14777 ac_cv_func_alloca_works=no
14778 fi
14779
14780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14781 conftest$ac_exeext conftest.$ac_ext
14782 fi
14783 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14784 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14785
14786 if test $ac_cv_func_alloca_works = yes; then
14787
14788 cat >>confdefs.h <<\_ACEOF
14789 #define HAVE_ALLOCA 1
14790 _ACEOF
14791
14792 else
14793 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14794 # that cause trouble. Some versions do not even contain alloca or
14795 # contain a buggy version. If you still want to use their alloca,
14796 # use ar to extract alloca.o from them instead of compiling alloca.c.
14797
14798 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14799
14800 cat >>confdefs.h <<\_ACEOF
14801 #define C_ALLOCA 1
14802 _ACEOF
14803
14804
14805 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14806 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14807 if test "${ac_cv_os_cray+set}" = set; then
14808 echo $ECHO_N "(cached) $ECHO_C" >&6
14809 else
14810 cat >conftest.$ac_ext <<_ACEOF
14811 /* confdefs.h. */
14812 _ACEOF
14813 cat confdefs.h >>conftest.$ac_ext
14814 cat >>conftest.$ac_ext <<_ACEOF
14815 /* end confdefs.h. */
14816 #if defined CRAY && ! defined CRAY2
14817 webecray
14818 #else
14819 wenotbecray
14820 #endif
14821
14822 _ACEOF
14823 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14824 $EGREP "webecray" >/dev/null 2>&1; then
14825 ac_cv_os_cray=yes
14826 else
14827 ac_cv_os_cray=no
14828 fi
14829 rm -f conftest*
14830
14831 fi
14832 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14833 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14834 if test $ac_cv_os_cray = yes; then
14835 for ac_func in _getb67 GETB67 getb67; do
14836 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14837 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14838 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14839 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14840 echo $ECHO_N "(cached) $ECHO_C" >&6
14841 else
14842 cat >conftest.$ac_ext <<_ACEOF
14843 /* confdefs.h. */
14844 _ACEOF
14845 cat confdefs.h >>conftest.$ac_ext
14846 cat >>conftest.$ac_ext <<_ACEOF
14847 /* end confdefs.h. */
14848 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14849 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14850 #define $ac_func innocuous_$ac_func
14851
14852 /* System header to define __stub macros and hopefully few prototypes,
14853 which can conflict with char $ac_func (); below.
14854 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14855 <limits.h> exists even on freestanding compilers. */
14856
14857 #ifdef __STDC__
14858 # include <limits.h>
14859 #else
14860 # include <assert.h>
14861 #endif
14862
14863 #undef $ac_func
14864
14865 /* Override any GCC internal prototype to avoid an error.
14866 Use char because int might match the return type of a GCC
14867 builtin and then its argument prototype would still apply. */
14868 #ifdef __cplusplus
14869 extern "C"
14870 #endif
14871 char $ac_func ();
14872 /* The GNU C library defines this for functions which it implements
14873 to always fail with ENOSYS. Some functions are actually named
14874 something starting with __ and the normal name is an alias. */
14875 #if defined __stub_$ac_func || defined __stub___$ac_func
14876 choke me
14877 #endif
14878
14879 int
14880 main ()
14881 {
14882 return $ac_func ();
14883 ;
14884 return 0;
14885 }
14886 _ACEOF
14887 rm -f conftest.$ac_objext conftest$ac_exeext
14888 if { (ac_try="$ac_link"
14889 case "(($ac_try" in
14890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14891 *) ac_try_echo=$ac_try;;
14892 esac
14893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14894 (eval "$ac_link") 2>conftest.er1
14895 ac_status=$?
14896 grep -v '^ *+' conftest.er1 >conftest.err
14897 rm -f conftest.er1
14898 cat conftest.err >&5
14899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14900 (exit $ac_status); } && {
14901 test -z "$ac_c_werror_flag" ||
14902 test ! -s conftest.err
14903 } && test -s conftest$ac_exeext &&
14904 $as_test_x conftest$ac_exeext; then
14905 eval "$as_ac_var=yes"
14906 else
14907 echo "$as_me: failed program was:" >&5
14908 sed 's/^/| /' conftest.$ac_ext >&5
14909
14910 eval "$as_ac_var=no"
14911 fi
14912
14913 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14914 conftest$ac_exeext conftest.$ac_ext
14915 fi
14916 ac_res=`eval echo '${'$as_ac_var'}'`
14917 { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_var'}'` = yes; then
14920
14921 cat >>confdefs.h <<_ACEOF
14922 #define CRAY_STACKSEG_END $ac_func
14923 _ACEOF
14924
14925 break
14926 fi
14927
14928 done
14929 fi
14930
14931 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14932 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14933 if test "${ac_cv_c_stack_direction+set}" = set; then
14934 echo $ECHO_N "(cached) $ECHO_C" >&6
14935 else
14936 if test "$cross_compiling" = yes; then
14937 ac_cv_c_stack_direction=0
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 $ac_includes_default
14946 int
14947 find_stack_direction ()
14948 {
14949 static char *addr = 0;
14950 auto char dummy;
14951 if (addr == 0)
14952 {
14953 addr = &dummy;
14954 return find_stack_direction ();
14955 }
14956 else
14957 return (&dummy > addr) ? 1 : -1;
14958 }
14959
14960 int
14961 main ()
14962 {
14963 return find_stack_direction () < 0;
14964 }
14965 _ACEOF
14966 rm -f conftest$ac_exeext
14967 if { (ac_try="$ac_link"
14968 case "(($ac_try" in
14969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14970 *) ac_try_echo=$ac_try;;
14971 esac
14972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14973 (eval "$ac_link") 2>&5
14974 ac_status=$?
14975 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14976 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14977 { (case "(($ac_try" in
14978 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14979 *) ac_try_echo=$ac_try;;
14980 esac
14981 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14982 (eval "$ac_try") 2>&5
14983 ac_status=$?
14984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14985 (exit $ac_status); }; }; then
14986 ac_cv_c_stack_direction=1
14987 else
14988 echo "$as_me: program exited with status $ac_status" >&5
14989 echo "$as_me: failed program was:" >&5
14990 sed 's/^/| /' conftest.$ac_ext >&5
14991
14992 ( exit $ac_status )
14993 ac_cv_c_stack_direction=-1
14994 fi
14995 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
14996 fi
14997
14998
14999 fi
15000 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15001 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15002
15003 cat >>confdefs.h <<_ACEOF
15004 #define STACK_DIRECTION $ac_cv_c_stack_direction
15005 _ACEOF
15006
15007
15008 fi
15009
15010
15011 # fmod, logb, and frexp are found in -lm on most systems.
15012 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15013
15014 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15015 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15016 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15017 echo $ECHO_N "(cached) $ECHO_C" >&6
15018 else
15019 ac_check_lib_save_LIBS=$LIBS
15020 LIBS="-lm $LIBS"
15021 cat >conftest.$ac_ext <<_ACEOF
15022 /* confdefs.h. */
15023 _ACEOF
15024 cat confdefs.h >>conftest.$ac_ext
15025 cat >>conftest.$ac_ext <<_ACEOF
15026 /* end confdefs.h. */
15027
15028 /* Override any GCC internal prototype to avoid an error.
15029 Use char because int might match the return type of a GCC
15030 builtin and then its argument prototype would still apply. */
15031 #ifdef __cplusplus
15032 extern "C"
15033 #endif
15034 char sqrt ();
15035 int
15036 main ()
15037 {
15038 return sqrt ();
15039 ;
15040 return 0;
15041 }
15042 _ACEOF
15043 rm -f conftest.$ac_objext conftest$ac_exeext
15044 if { (ac_try="$ac_link"
15045 case "(($ac_try" in
15046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15047 *) ac_try_echo=$ac_try;;
15048 esac
15049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15050 (eval "$ac_link") 2>conftest.er1
15051 ac_status=$?
15052 grep -v '^ *+' conftest.er1 >conftest.err
15053 rm -f conftest.er1
15054 cat conftest.err >&5
15055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15056 (exit $ac_status); } && {
15057 test -z "$ac_c_werror_flag" ||
15058 test ! -s conftest.err
15059 } && test -s conftest$ac_exeext &&
15060 $as_test_x conftest$ac_exeext; then
15061 ac_cv_lib_m_sqrt=yes
15062 else
15063 echo "$as_me: failed program was:" >&5
15064 sed 's/^/| /' conftest.$ac_ext >&5
15065
15066 ac_cv_lib_m_sqrt=no
15067 fi
15068
15069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15070 conftest$ac_exeext conftest.$ac_ext
15071 LIBS=$ac_check_lib_save_LIBS
15072 fi
15073 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15074 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15075 if test $ac_cv_lib_m_sqrt = yes; then
15076 cat >>confdefs.h <<_ACEOF
15077 #define HAVE_LIBM 1
15078 _ACEOF
15079
15080 LIBS="-lm $LIBS"
15081
15082 fi
15083
15084
15085 # Check for mail-locking functions in a "mail" library. Probably this should
15086 # have the same check as for liblockfile below.
15087
15088 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15089 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15090 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15091 echo $ECHO_N "(cached) $ECHO_C" >&6
15092 else
15093 ac_check_lib_save_LIBS=$LIBS
15094 LIBS="-lmail $LIBS"
15095 cat >conftest.$ac_ext <<_ACEOF
15096 /* confdefs.h. */
15097 _ACEOF
15098 cat confdefs.h >>conftest.$ac_ext
15099 cat >>conftest.$ac_ext <<_ACEOF
15100 /* end confdefs.h. */
15101
15102 /* Override any GCC internal prototype to avoid an error.
15103 Use char because int might match the return type of a GCC
15104 builtin and then its argument prototype would still apply. */
15105 #ifdef __cplusplus
15106 extern "C"
15107 #endif
15108 char maillock ();
15109 int
15110 main ()
15111 {
15112 return maillock ();
15113 ;
15114 return 0;
15115 }
15116 _ACEOF
15117 rm -f conftest.$ac_objext conftest$ac_exeext
15118 if { (ac_try="$ac_link"
15119 case "(($ac_try" in
15120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15121 *) ac_try_echo=$ac_try;;
15122 esac
15123 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15124 (eval "$ac_link") 2>conftest.er1
15125 ac_status=$?
15126 grep -v '^ *+' conftest.er1 >conftest.err
15127 rm -f conftest.er1
15128 cat conftest.err >&5
15129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15130 (exit $ac_status); } && {
15131 test -z "$ac_c_werror_flag" ||
15132 test ! -s conftest.err
15133 } && test -s conftest$ac_exeext &&
15134 $as_test_x conftest$ac_exeext; then
15135 ac_cv_lib_mail_maillock=yes
15136 else
15137 echo "$as_me: failed program was:" >&5
15138 sed 's/^/| /' conftest.$ac_ext >&5
15139
15140 ac_cv_lib_mail_maillock=no
15141 fi
15142
15143 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15144 conftest$ac_exeext conftest.$ac_ext
15145 LIBS=$ac_check_lib_save_LIBS
15146 fi
15147 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15148 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15149 if test $ac_cv_lib_mail_maillock = yes; then
15150 cat >>confdefs.h <<_ACEOF
15151 #define HAVE_LIBMAIL 1
15152 _ACEOF
15153
15154 LIBS="-lmail $LIBS"
15155
15156 fi
15157
15158
15159 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15160 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15161 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15162 echo $ECHO_N "(cached) $ECHO_C" >&6
15163 else
15164 ac_check_lib_save_LIBS=$LIBS
15165 LIBS="-llockfile $LIBS"
15166 cat >conftest.$ac_ext <<_ACEOF
15167 /* confdefs.h. */
15168 _ACEOF
15169 cat confdefs.h >>conftest.$ac_ext
15170 cat >>conftest.$ac_ext <<_ACEOF
15171 /* end confdefs.h. */
15172
15173 /* Override any GCC internal prototype to avoid an error.
15174 Use char because int might match the return type of a GCC
15175 builtin and then its argument prototype would still apply. */
15176 #ifdef __cplusplus
15177 extern "C"
15178 #endif
15179 char maillock ();
15180 int
15181 main ()
15182 {
15183 return maillock ();
15184 ;
15185 return 0;
15186 }
15187 _ACEOF
15188 rm -f conftest.$ac_objext conftest$ac_exeext
15189 if { (ac_try="$ac_link"
15190 case "(($ac_try" in
15191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15192 *) ac_try_echo=$ac_try;;
15193 esac
15194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15195 (eval "$ac_link") 2>conftest.er1
15196 ac_status=$?
15197 grep -v '^ *+' conftest.er1 >conftest.err
15198 rm -f conftest.er1
15199 cat conftest.err >&5
15200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15201 (exit $ac_status); } && {
15202 test -z "$ac_c_werror_flag" ||
15203 test ! -s conftest.err
15204 } && test -s conftest$ac_exeext &&
15205 $as_test_x conftest$ac_exeext; then
15206 ac_cv_lib_lockfile_maillock=yes
15207 else
15208 echo "$as_me: failed program was:" >&5
15209 sed 's/^/| /' conftest.$ac_ext >&5
15210
15211 ac_cv_lib_lockfile_maillock=no
15212 fi
15213
15214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15215 conftest$ac_exeext conftest.$ac_ext
15216 LIBS=$ac_check_lib_save_LIBS
15217 fi
15218 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15219 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15220 if test $ac_cv_lib_lockfile_maillock = yes; then
15221 cat >>confdefs.h <<_ACEOF
15222 #define HAVE_LIBLOCKFILE 1
15223 _ACEOF
15224
15225 LIBS="-llockfile $LIBS"
15226
15227 fi
15228
15229 # If we have the shared liblockfile, assume we must use it for mail
15230 # locking (e.g. Debian). If we couldn't link against liblockfile
15231 # (no liblockfile.a installed), ensure that we don't need to.
15232 if test "$ac_cv_lib_lockfile_maillock" = no; then
15233 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15234 set dummy liblockfile.so; ac_word=$2
15235 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15236 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15237 if test "${ac_cv_prog_liblockfile+set}" = set; then
15238 echo $ECHO_N "(cached) $ECHO_C" >&6
15239 else
15240 if test -n "$liblockfile"; then
15241 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15242 else
15243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15244 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15245 for as_dir in $as_dummy
15246 do
15247 IFS=$as_save_IFS
15248 test -z "$as_dir" && as_dir=.
15249 for ac_exec_ext in '' $ac_executable_extensions; do
15250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15251 ac_cv_prog_liblockfile="yes"
15252 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15253 break 2
15254 fi
15255 done
15256 done
15257 IFS=$as_save_IFS
15258
15259 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15260 fi
15261 fi
15262 liblockfile=$ac_cv_prog_liblockfile
15263 if test -n "$liblockfile"; then
15264 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15265 echo "${ECHO_T}$liblockfile" >&6; }
15266 else
15267 { echo "$as_me:$LINENO: result: no" >&5
15268 echo "${ECHO_T}no" >&6; }
15269 fi
15270
15271
15272 if test $ac_cv_prog_liblockfile = yes; then
15273 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15274 This probably means that movemail could lose mail.
15275 There may be a \`development' package to install containing liblockfile." >&5
15276 echo "$as_me: error: Shared liblockfile found but can't link against it.
15277 This probably means that movemail could lose mail.
15278 There may be a \`development' package to install containing liblockfile." >&2;}
15279 { (exit 1); exit 1; }; }
15280 else :
15281 fi
15282 fi
15283
15284 for ac_func in touchlock
15285 do
15286 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15287 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15288 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15289 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15290 echo $ECHO_N "(cached) $ECHO_C" >&6
15291 else
15292 cat >conftest.$ac_ext <<_ACEOF
15293 /* confdefs.h. */
15294 _ACEOF
15295 cat confdefs.h >>conftest.$ac_ext
15296 cat >>conftest.$ac_ext <<_ACEOF
15297 /* end confdefs.h. */
15298 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15299 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15300 #define $ac_func innocuous_$ac_func
15301
15302 /* System header to define __stub macros and hopefully few prototypes,
15303 which can conflict with char $ac_func (); below.
15304 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15305 <limits.h> exists even on freestanding compilers. */
15306
15307 #ifdef __STDC__
15308 # include <limits.h>
15309 #else
15310 # include <assert.h>
15311 #endif
15312
15313 #undef $ac_func
15314
15315 /* Override any GCC internal prototype to avoid an error.
15316 Use char because int might match the return type of a GCC
15317 builtin and then its argument prototype would still apply. */
15318 #ifdef __cplusplus
15319 extern "C"
15320 #endif
15321 char $ac_func ();
15322 /* The GNU C library defines this for functions which it implements
15323 to always fail with ENOSYS. Some functions are actually named
15324 something starting with __ and the normal name is an alias. */
15325 #if defined __stub_$ac_func || defined __stub___$ac_func
15326 choke me
15327 #endif
15328
15329 int
15330 main ()
15331 {
15332 return $ac_func ();
15333 ;
15334 return 0;
15335 }
15336 _ACEOF
15337 rm -f conftest.$ac_objext conftest$ac_exeext
15338 if { (ac_try="$ac_link"
15339 case "(($ac_try" in
15340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15341 *) ac_try_echo=$ac_try;;
15342 esac
15343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15344 (eval "$ac_link") 2>conftest.er1
15345 ac_status=$?
15346 grep -v '^ *+' conftest.er1 >conftest.err
15347 rm -f conftest.er1
15348 cat conftest.err >&5
15349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15350 (exit $ac_status); } && {
15351 test -z "$ac_c_werror_flag" ||
15352 test ! -s conftest.err
15353 } && test -s conftest$ac_exeext &&
15354 $as_test_x conftest$ac_exeext; then
15355 eval "$as_ac_var=yes"
15356 else
15357 echo "$as_me: failed program was:" >&5
15358 sed 's/^/| /' conftest.$ac_ext >&5
15359
15360 eval "$as_ac_var=no"
15361 fi
15362
15363 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15364 conftest$ac_exeext conftest.$ac_ext
15365 fi
15366 ac_res=`eval echo '${'$as_ac_var'}'`
15367 { echo "$as_me:$LINENO: result: $ac_res" >&5
15368 echo "${ECHO_T}$ac_res" >&6; }
15369 if test `eval echo '${'$as_ac_var'}'` = yes; then
15370 cat >>confdefs.h <<_ACEOF
15371 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15372 _ACEOF
15373
15374 fi
15375 done
15376
15377
15378 for ac_header in maillock.h
15379 do
15380 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15381 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15382 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15383 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15384 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15385 echo $ECHO_N "(cached) $ECHO_C" >&6
15386 fi
15387 ac_res=`eval echo '${'$as_ac_Header'}'`
15388 { echo "$as_me:$LINENO: result: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15390 else
15391 # Is the header compilable?
15392 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15393 echo $ECHO_N "checking $ac_header usability... $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 $ac_includes_default
15401 #include <$ac_header>
15402 _ACEOF
15403 rm -f conftest.$ac_objext
15404 if { (ac_try="$ac_compile"
15405 case "(($ac_try" in
15406 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15407 *) ac_try_echo=$ac_try;;
15408 esac
15409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15410 (eval "$ac_compile") 2>conftest.er1
15411 ac_status=$?
15412 grep -v '^ *+' conftest.er1 >conftest.err
15413 rm -f conftest.er1
15414 cat conftest.err >&5
15415 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15416 (exit $ac_status); } && {
15417 test -z "$ac_c_werror_flag" ||
15418 test ! -s conftest.err
15419 } && test -s conftest.$ac_objext; then
15420 ac_header_compiler=yes
15421 else
15422 echo "$as_me: failed program was:" >&5
15423 sed 's/^/| /' conftest.$ac_ext >&5
15424
15425 ac_header_compiler=no
15426 fi
15427
15428 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15429 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15430 echo "${ECHO_T}$ac_header_compiler" >&6; }
15431
15432 # Is the header present?
15433 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15434 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15435 cat >conftest.$ac_ext <<_ACEOF
15436 /* confdefs.h. */
15437 _ACEOF
15438 cat confdefs.h >>conftest.$ac_ext
15439 cat >>conftest.$ac_ext <<_ACEOF
15440 /* end confdefs.h. */
15441 #include <$ac_header>
15442 _ACEOF
15443 if { (ac_try="$ac_cpp conftest.$ac_ext"
15444 case "(($ac_try" in
15445 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15446 *) ac_try_echo=$ac_try;;
15447 esac
15448 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15449 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15450 ac_status=$?
15451 grep -v '^ *+' conftest.er1 >conftest.err
15452 rm -f conftest.er1
15453 cat conftest.err >&5
15454 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15455 (exit $ac_status); } >/dev/null && {
15456 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15457 test ! -s conftest.err
15458 }; then
15459 ac_header_preproc=yes
15460 else
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 ac_header_preproc=no
15465 fi
15466
15467 rm -f conftest.err conftest.$ac_ext
15468 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15469 echo "${ECHO_T}$ac_header_preproc" >&6; }
15470
15471 # So? What about this header?
15472 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15473 yes:no: )
15474 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15475 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15476 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15477 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15478 ac_header_preproc=yes
15479 ;;
15480 no:yes:* )
15481 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15482 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15483 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15484 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15485 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15486 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15487 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15488 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15489 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15490 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15491 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15492 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15493
15494 ;;
15495 esac
15496 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15497 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15499 echo $ECHO_N "(cached) $ECHO_C" >&6
15500 else
15501 eval "$as_ac_Header=\$ac_header_preproc"
15502 fi
15503 ac_res=`eval echo '${'$as_ac_Header'}'`
15504 { echo "$as_me:$LINENO: result: $ac_res" >&5
15505 echo "${ECHO_T}$ac_res" >&6; }
15506
15507 fi
15508 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15509 cat >>confdefs.h <<_ACEOF
15510 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15511 _ACEOF
15512
15513 fi
15514
15515 done
15516
15517
15518
15519
15520
15521
15522
15523
15524
15525
15526
15527
15528
15529
15530
15531
15532
15533
15534
15535
15536
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587 for ac_func in gethostname getdomainname dup2 \
15588 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15589 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15590 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15591 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15592 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15593 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15594 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15595 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15596 do
15597 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15598 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15599 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15600 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15601 echo $ECHO_N "(cached) $ECHO_C" >&6
15602 else
15603 cat >conftest.$ac_ext <<_ACEOF
15604 /* confdefs.h. */
15605 _ACEOF
15606 cat confdefs.h >>conftest.$ac_ext
15607 cat >>conftest.$ac_ext <<_ACEOF
15608 /* end confdefs.h. */
15609 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15610 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15611 #define $ac_func innocuous_$ac_func
15612
15613 /* System header to define __stub macros and hopefully few prototypes,
15614 which can conflict with char $ac_func (); below.
15615 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15616 <limits.h> exists even on freestanding compilers. */
15617
15618 #ifdef __STDC__
15619 # include <limits.h>
15620 #else
15621 # include <assert.h>
15622 #endif
15623
15624 #undef $ac_func
15625
15626 /* Override any GCC internal prototype to avoid an error.
15627 Use char because int might match the return type of a GCC
15628 builtin and then its argument prototype would still apply. */
15629 #ifdef __cplusplus
15630 extern "C"
15631 #endif
15632 char $ac_func ();
15633 /* The GNU C library defines this for functions which it implements
15634 to always fail with ENOSYS. Some functions are actually named
15635 something starting with __ and the normal name is an alias. */
15636 #if defined __stub_$ac_func || defined __stub___$ac_func
15637 choke me
15638 #endif
15639
15640 int
15641 main ()
15642 {
15643 return $ac_func ();
15644 ;
15645 return 0;
15646 }
15647 _ACEOF
15648 rm -f conftest.$ac_objext conftest$ac_exeext
15649 if { (ac_try="$ac_link"
15650 case "(($ac_try" in
15651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15652 *) ac_try_echo=$ac_try;;
15653 esac
15654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15655 (eval "$ac_link") 2>conftest.er1
15656 ac_status=$?
15657 grep -v '^ *+' conftest.er1 >conftest.err
15658 rm -f conftest.er1
15659 cat conftest.err >&5
15660 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15661 (exit $ac_status); } && {
15662 test -z "$ac_c_werror_flag" ||
15663 test ! -s conftest.err
15664 } && test -s conftest$ac_exeext &&
15665 $as_test_x conftest$ac_exeext; then
15666 eval "$as_ac_var=yes"
15667 else
15668 echo "$as_me: failed program was:" >&5
15669 sed 's/^/| /' conftest.$ac_ext >&5
15670
15671 eval "$as_ac_var=no"
15672 fi
15673
15674 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15675 conftest$ac_exeext conftest.$ac_ext
15676 fi
15677 ac_res=`eval echo '${'$as_ac_var'}'`
15678 { echo "$as_me:$LINENO: result: $ac_res" >&5
15679 echo "${ECHO_T}$ac_res" >&6; }
15680 if test `eval echo '${'$as_ac_var'}'` = yes; then
15681 cat >>confdefs.h <<_ACEOF
15682 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15683 _ACEOF
15684
15685 fi
15686 done
15687
15688
15689
15690 for ac_header in sys/un.h
15691 do
15692 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15693 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15694 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15695 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15696 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15697 echo $ECHO_N "(cached) $ECHO_C" >&6
15698 fi
15699 ac_res=`eval echo '${'$as_ac_Header'}'`
15700 { echo "$as_me:$LINENO: result: $ac_res" >&5
15701 echo "${ECHO_T}$ac_res" >&6; }
15702 else
15703 # Is the header compilable?
15704 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15705 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15706 cat >conftest.$ac_ext <<_ACEOF
15707 /* confdefs.h. */
15708 _ACEOF
15709 cat confdefs.h >>conftest.$ac_ext
15710 cat >>conftest.$ac_ext <<_ACEOF
15711 /* end confdefs.h. */
15712 $ac_includes_default
15713 #include <$ac_header>
15714 _ACEOF
15715 rm -f conftest.$ac_objext
15716 if { (ac_try="$ac_compile"
15717 case "(($ac_try" in
15718 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15719 *) ac_try_echo=$ac_try;;
15720 esac
15721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15722 (eval "$ac_compile") 2>conftest.er1
15723 ac_status=$?
15724 grep -v '^ *+' conftest.er1 >conftest.err
15725 rm -f conftest.er1
15726 cat conftest.err >&5
15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15728 (exit $ac_status); } && {
15729 test -z "$ac_c_werror_flag" ||
15730 test ! -s conftest.err
15731 } && test -s conftest.$ac_objext; then
15732 ac_header_compiler=yes
15733 else
15734 echo "$as_me: failed program was:" >&5
15735 sed 's/^/| /' conftest.$ac_ext >&5
15736
15737 ac_header_compiler=no
15738 fi
15739
15740 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15741 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15742 echo "${ECHO_T}$ac_header_compiler" >&6; }
15743
15744 # Is the header present?
15745 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15746 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15747 cat >conftest.$ac_ext <<_ACEOF
15748 /* confdefs.h. */
15749 _ACEOF
15750 cat confdefs.h >>conftest.$ac_ext
15751 cat >>conftest.$ac_ext <<_ACEOF
15752 /* end confdefs.h. */
15753 #include <$ac_header>
15754 _ACEOF
15755 if { (ac_try="$ac_cpp conftest.$ac_ext"
15756 case "(($ac_try" in
15757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15758 *) ac_try_echo=$ac_try;;
15759 esac
15760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15762 ac_status=$?
15763 grep -v '^ *+' conftest.er1 >conftest.err
15764 rm -f conftest.er1
15765 cat conftest.err >&5
15766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15767 (exit $ac_status); } >/dev/null && {
15768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15769 test ! -s conftest.err
15770 }; then
15771 ac_header_preproc=yes
15772 else
15773 echo "$as_me: failed program was:" >&5
15774 sed 's/^/| /' conftest.$ac_ext >&5
15775
15776 ac_header_preproc=no
15777 fi
15778
15779 rm -f conftest.err conftest.$ac_ext
15780 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15781 echo "${ECHO_T}$ac_header_preproc" >&6; }
15782
15783 # So? What about this header?
15784 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15785 yes:no: )
15786 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15787 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15788 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15789 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15790 ac_header_preproc=yes
15791 ;;
15792 no:yes:* )
15793 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15794 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15795 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15796 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15797 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15798 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15799 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15800 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15801 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15802 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15803 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15804 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15805
15806 ;;
15807 esac
15808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15811 echo $ECHO_N "(cached) $ECHO_C" >&6
15812 else
15813 eval "$as_ac_Header=\$ac_header_preproc"
15814 fi
15815 ac_res=`eval echo '${'$as_ac_Header'}'`
15816 { echo "$as_me:$LINENO: result: $ac_res" >&5
15817 echo "${ECHO_T}$ac_res" >&6; }
15818
15819 fi
15820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15821 cat >>confdefs.h <<_ACEOF
15822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15823 _ACEOF
15824
15825 fi
15826
15827 done
15828
15829
15830
15831
15832
15833
15834 for ac_header in $ac_header_list
15835 do
15836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15838 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15841 echo $ECHO_N "(cached) $ECHO_C" >&6
15842 fi
15843 ac_res=`eval echo '${'$as_ac_Header'}'`
15844 { echo "$as_me:$LINENO: result: $ac_res" >&5
15845 echo "${ECHO_T}$ac_res" >&6; }
15846 else
15847 # Is the header compilable?
15848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15850 cat >conftest.$ac_ext <<_ACEOF
15851 /* confdefs.h. */
15852 _ACEOF
15853 cat confdefs.h >>conftest.$ac_ext
15854 cat >>conftest.$ac_ext <<_ACEOF
15855 /* end confdefs.h. */
15856 $ac_includes_default
15857 #include <$ac_header>
15858 _ACEOF
15859 rm -f conftest.$ac_objext
15860 if { (ac_try="$ac_compile"
15861 case "(($ac_try" in
15862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15863 *) ac_try_echo=$ac_try;;
15864 esac
15865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15866 (eval "$ac_compile") 2>conftest.er1
15867 ac_status=$?
15868 grep -v '^ *+' conftest.er1 >conftest.err
15869 rm -f conftest.er1
15870 cat conftest.err >&5
15871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15872 (exit $ac_status); } && {
15873 test -z "$ac_c_werror_flag" ||
15874 test ! -s conftest.err
15875 } && test -s conftest.$ac_objext; then
15876 ac_header_compiler=yes
15877 else
15878 echo "$as_me: failed program was:" >&5
15879 sed 's/^/| /' conftest.$ac_ext >&5
15880
15881 ac_header_compiler=no
15882 fi
15883
15884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15885 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15886 echo "${ECHO_T}$ac_header_compiler" >&6; }
15887
15888 # Is the header present?
15889 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15890 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15891 cat >conftest.$ac_ext <<_ACEOF
15892 /* confdefs.h. */
15893 _ACEOF
15894 cat confdefs.h >>conftest.$ac_ext
15895 cat >>conftest.$ac_ext <<_ACEOF
15896 /* end confdefs.h. */
15897 #include <$ac_header>
15898 _ACEOF
15899 if { (ac_try="$ac_cpp conftest.$ac_ext"
15900 case "(($ac_try" in
15901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15902 *) ac_try_echo=$ac_try;;
15903 esac
15904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15905 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15906 ac_status=$?
15907 grep -v '^ *+' conftest.er1 >conftest.err
15908 rm -f conftest.er1
15909 cat conftest.err >&5
15910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15911 (exit $ac_status); } >/dev/null && {
15912 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15913 test ! -s conftest.err
15914 }; then
15915 ac_header_preproc=yes
15916 else
15917 echo "$as_me: failed program was:" >&5
15918 sed 's/^/| /' conftest.$ac_ext >&5
15919
15920 ac_header_preproc=no
15921 fi
15922
15923 rm -f conftest.err conftest.$ac_ext
15924 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15925 echo "${ECHO_T}$ac_header_preproc" >&6; }
15926
15927 # So? What about this header?
15928 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15929 yes:no: )
15930 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15931 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15932 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15933 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15934 ac_header_preproc=yes
15935 ;;
15936 no:yes:* )
15937 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15938 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15939 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15940 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15941 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15942 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15943 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15944 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15945 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15946 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15947 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15948 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15949
15950 ;;
15951 esac
15952 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15953 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15954 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15955 echo $ECHO_N "(cached) $ECHO_C" >&6
15956 else
15957 eval "$as_ac_Header=\$ac_header_preproc"
15958 fi
15959 ac_res=`eval echo '${'$as_ac_Header'}'`
15960 { echo "$as_me:$LINENO: result: $ac_res" >&5
15961 echo "${ECHO_T}$ac_res" >&6; }
15962
15963 fi
15964 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15965 cat >>confdefs.h <<_ACEOF
15966 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15967 _ACEOF
15968
15969 fi
15970
15971 done
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981 for ac_func in $ac_func_list
15982 do
15983 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15984 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15985 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15986 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15987 echo $ECHO_N "(cached) $ECHO_C" >&6
15988 else
15989 cat >conftest.$ac_ext <<_ACEOF
15990 /* confdefs.h. */
15991 _ACEOF
15992 cat confdefs.h >>conftest.$ac_ext
15993 cat >>conftest.$ac_ext <<_ACEOF
15994 /* end confdefs.h. */
15995 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15996 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15997 #define $ac_func innocuous_$ac_func
15998
15999 /* System header to define __stub macros and hopefully few prototypes,
16000 which can conflict with char $ac_func (); below.
16001 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16002 <limits.h> exists even on freestanding compilers. */
16003
16004 #ifdef __STDC__
16005 # include <limits.h>
16006 #else
16007 # include <assert.h>
16008 #endif
16009
16010 #undef $ac_func
16011
16012 /* Override any GCC internal prototype to avoid an error.
16013 Use char because int might match the return type of a GCC
16014 builtin and then its argument prototype would still apply. */
16015 #ifdef __cplusplus
16016 extern "C"
16017 #endif
16018 char $ac_func ();
16019 /* The GNU C library defines this for functions which it implements
16020 to always fail with ENOSYS. Some functions are actually named
16021 something starting with __ and the normal name is an alias. */
16022 #if defined __stub_$ac_func || defined __stub___$ac_func
16023 choke me
16024 #endif
16025
16026 int
16027 main ()
16028 {
16029 return $ac_func ();
16030 ;
16031 return 0;
16032 }
16033 _ACEOF
16034 rm -f conftest.$ac_objext conftest$ac_exeext
16035 if { (ac_try="$ac_link"
16036 case "(($ac_try" in
16037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16038 *) ac_try_echo=$ac_try;;
16039 esac
16040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16041 (eval "$ac_link") 2>conftest.er1
16042 ac_status=$?
16043 grep -v '^ *+' conftest.er1 >conftest.err
16044 rm -f conftest.er1
16045 cat conftest.err >&5
16046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047 (exit $ac_status); } && {
16048 test -z "$ac_c_werror_flag" ||
16049 test ! -s conftest.err
16050 } && test -s conftest$ac_exeext &&
16051 $as_test_x conftest$ac_exeext; then
16052 eval "$as_ac_var=yes"
16053 else
16054 echo "$as_me: failed program was:" >&5
16055 sed 's/^/| /' conftest.$ac_ext >&5
16056
16057 eval "$as_ac_var=no"
16058 fi
16059
16060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16061 conftest$ac_exeext conftest.$ac_ext
16062 fi
16063 ac_res=`eval echo '${'$as_ac_var'}'`
16064 { echo "$as_me:$LINENO: result: $ac_res" >&5
16065 echo "${ECHO_T}$ac_res" >&6; }
16066 if test `eval echo '${'$as_ac_var'}'` = yes; then
16067 cat >>confdefs.h <<_ACEOF
16068 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16069 _ACEOF
16070
16071 fi
16072 done
16073
16074
16075
16076
16077
16078
16079
16080
16081
16082
16083
16084
16085
16086
16087
16088
16089
16090 { echo "$as_me:$LINENO: checking for working mktime" >&5
16091 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16092 if test "${ac_cv_func_working_mktime+set}" = set; then
16093 echo $ECHO_N "(cached) $ECHO_C" >&6
16094 else
16095 if test "$cross_compiling" = yes; then
16096 ac_cv_func_working_mktime=no
16097 else
16098 cat >conftest.$ac_ext <<_ACEOF
16099 /* confdefs.h. */
16100 _ACEOF
16101 cat confdefs.h >>conftest.$ac_ext
16102 cat >>conftest.$ac_ext <<_ACEOF
16103 /* end confdefs.h. */
16104 /* Test program from Paul Eggert and Tony Leneis. */
16105 #ifdef TIME_WITH_SYS_TIME
16106 # include <sys/time.h>
16107 # include <time.h>
16108 #else
16109 # ifdef HAVE_SYS_TIME_H
16110 # include <sys/time.h>
16111 # else
16112 # include <time.h>
16113 # endif
16114 #endif
16115
16116 #include <stdlib.h>
16117
16118 #ifdef HAVE_UNISTD_H
16119 # include <unistd.h>
16120 #endif
16121
16122 #ifndef HAVE_ALARM
16123 # define alarm(X) /* empty */
16124 #endif
16125
16126 /* Work around redefinition to rpl_putenv by other config tests. */
16127 #undef putenv
16128
16129 static time_t time_t_max;
16130 static time_t time_t_min;
16131
16132 /* Values we'll use to set the TZ environment variable. */
16133 static char *tz_strings[] = {
16134 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16135 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16136 };
16137 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16138
16139 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16140 Based on a problem report from Andreas Jaeger. */
16141 static int
16142 spring_forward_gap ()
16143 {
16144 /* glibc (up to about 1998-10-07) failed this test. */
16145 struct tm tm;
16146
16147 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16148 instead of "TZ=America/Vancouver" in order to detect the bug even
16149 on systems that don't support the Olson extension, or don't have the
16150 full zoneinfo tables installed. */
16151 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16152
16153 tm.tm_year = 98;
16154 tm.tm_mon = 3;
16155 tm.tm_mday = 5;
16156 tm.tm_hour = 2;
16157 tm.tm_min = 0;
16158 tm.tm_sec = 0;
16159 tm.tm_isdst = -1;
16160 return mktime (&tm) != (time_t) -1;
16161 }
16162
16163 static int
16164 mktime_test1 (now)
16165 time_t now;
16166 {
16167 struct tm *lt;
16168 return ! (lt = localtime (&now)) || mktime (lt) == now;
16169 }
16170
16171 static int
16172 mktime_test (now)
16173 time_t now;
16174 {
16175 return (mktime_test1 (now)
16176 && mktime_test1 ((time_t) (time_t_max - now))
16177 && mktime_test1 ((time_t) (time_t_min + now)));
16178 }
16179
16180 static int
16181 irix_6_4_bug ()
16182 {
16183 /* Based on code from Ariel Faigon. */
16184 struct tm tm;
16185 tm.tm_year = 96;
16186 tm.tm_mon = 3;
16187 tm.tm_mday = 0;
16188 tm.tm_hour = 0;
16189 tm.tm_min = 0;
16190 tm.tm_sec = 0;
16191 tm.tm_isdst = -1;
16192 mktime (&tm);
16193 return tm.tm_mon == 2 && tm.tm_mday == 31;
16194 }
16195
16196 static int
16197 bigtime_test (j)
16198 int j;
16199 {
16200 struct tm tm;
16201 time_t now;
16202 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16203 now = mktime (&tm);
16204 if (now != (time_t) -1)
16205 {
16206 struct tm *lt = localtime (&now);
16207 if (! (lt
16208 && lt->tm_year == tm.tm_year
16209 && lt->tm_mon == tm.tm_mon
16210 && lt->tm_mday == tm.tm_mday
16211 && lt->tm_hour == tm.tm_hour
16212 && lt->tm_min == tm.tm_min
16213 && lt->tm_sec == tm.tm_sec
16214 && lt->tm_yday == tm.tm_yday
16215 && lt->tm_wday == tm.tm_wday
16216 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16217 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16218 return 0;
16219 }
16220 return 1;
16221 }
16222
16223 static int
16224 year_2050_test ()
16225 {
16226 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16227 ignoring leap seconds. */
16228 unsigned long int answer = 2527315200UL;
16229
16230 struct tm tm;
16231 time_t t;
16232 tm.tm_year = 2050 - 1900;
16233 tm.tm_mon = 2 - 1;
16234 tm.tm_mday = 1;
16235 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16236 tm.tm_isdst = -1;
16237
16238 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16239 instead of "TZ=America/Vancouver" in order to detect the bug even
16240 on systems that don't support the Olson extension, or don't have the
16241 full zoneinfo tables installed. */
16242 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16243
16244 t = mktime (&tm);
16245
16246 /* Check that the result is either a failure, or close enough
16247 to the correct answer that we can assume the discrepancy is
16248 due to leap seconds. */
16249 return (t == (time_t) -1
16250 || (0 < t && answer - 120 <= t && t <= answer + 120));
16251 }
16252
16253 int
16254 main ()
16255 {
16256 time_t t, delta;
16257 int i, j;
16258
16259 /* This test makes some buggy mktime implementations loop.
16260 Give up after 60 seconds; a mktime slower than that
16261 isn't worth using anyway. */
16262 alarm (60);
16263
16264 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16265 continue;
16266 time_t_max--;
16267 if ((time_t) -1 < 0)
16268 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16269 continue;
16270 delta = time_t_max / 997; /* a suitable prime number */
16271 for (i = 0; i < N_STRINGS; i++)
16272 {
16273 if (tz_strings[i])
16274 putenv (tz_strings[i]);
16275
16276 for (t = 0; t <= time_t_max - delta; t += delta)
16277 if (! mktime_test (t))
16278 return 1;
16279 if (! (mktime_test ((time_t) 1)
16280 && mktime_test ((time_t) (60 * 60))
16281 && mktime_test ((time_t) (60 * 60 * 24))))
16282 return 1;
16283
16284 for (j = 1; 0 < j; j *= 2)
16285 if (! bigtime_test (j))
16286 return 1;
16287 if (! bigtime_test (j - 1))
16288 return 1;
16289 }
16290 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16291 }
16292 _ACEOF
16293 rm -f conftest$ac_exeext
16294 if { (ac_try="$ac_link"
16295 case "(($ac_try" in
16296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16297 *) ac_try_echo=$ac_try;;
16298 esac
16299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16300 (eval "$ac_link") 2>&5
16301 ac_status=$?
16302 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16303 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16304 { (case "(($ac_try" in
16305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16306 *) ac_try_echo=$ac_try;;
16307 esac
16308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16309 (eval "$ac_try") 2>&5
16310 ac_status=$?
16311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16312 (exit $ac_status); }; }; then
16313 ac_cv_func_working_mktime=yes
16314 else
16315 echo "$as_me: program exited with status $ac_status" >&5
16316 echo "$as_me: failed program was:" >&5
16317 sed 's/^/| /' conftest.$ac_ext >&5
16318
16319 ( exit $ac_status )
16320 ac_cv_func_working_mktime=no
16321 fi
16322 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16323 fi
16324
16325
16326 fi
16327 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16328 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16329 if test $ac_cv_func_working_mktime = no; then
16330 case " $LIBOBJS " in
16331 *" mktime.$ac_objext "* ) ;;
16332 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16333 ;;
16334 esac
16335
16336 fi
16337
16338 if test "$ac_cv_func_working_mktime" = no; then
16339
16340 cat >>confdefs.h <<\_ACEOF
16341 #define BROKEN_MKTIME 1
16342 _ACEOF
16343
16344 fi
16345
16346 ac_have_func=no # yes means we've found a way to get the load average.
16347
16348 # Make sure getloadavg.c is where it belongs, at configure-time.
16349 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16350 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16351 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16352 { (exit 1); exit 1; }; }
16353
16354 ac_save_LIBS=$LIBS
16355
16356 # Check for getloadavg, but be sure not to touch the cache variable.
16357 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16358 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16359 if test "${ac_cv_func_getloadavg+set}" = set; then
16360 echo $ECHO_N "(cached) $ECHO_C" >&6
16361 else
16362 cat >conftest.$ac_ext <<_ACEOF
16363 /* confdefs.h. */
16364 _ACEOF
16365 cat confdefs.h >>conftest.$ac_ext
16366 cat >>conftest.$ac_ext <<_ACEOF
16367 /* end confdefs.h. */
16368 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16369 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16370 #define getloadavg innocuous_getloadavg
16371
16372 /* System header to define __stub macros and hopefully few prototypes,
16373 which can conflict with char getloadavg (); below.
16374 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16375 <limits.h> exists even on freestanding compilers. */
16376
16377 #ifdef __STDC__
16378 # include <limits.h>
16379 #else
16380 # include <assert.h>
16381 #endif
16382
16383 #undef getloadavg
16384
16385 /* Override any GCC internal prototype to avoid an error.
16386 Use char because int might match the return type of a GCC
16387 builtin and then its argument prototype would still apply. */
16388 #ifdef __cplusplus
16389 extern "C"
16390 #endif
16391 char getloadavg ();
16392 /* The GNU C library defines this for functions which it implements
16393 to always fail with ENOSYS. Some functions are actually named
16394 something starting with __ and the normal name is an alias. */
16395 #if defined __stub_getloadavg || defined __stub___getloadavg
16396 choke me
16397 #endif
16398
16399 int
16400 main ()
16401 {
16402 return getloadavg ();
16403 ;
16404 return 0;
16405 }
16406 _ACEOF
16407 rm -f conftest.$ac_objext conftest$ac_exeext
16408 if { (ac_try="$ac_link"
16409 case "(($ac_try" in
16410 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411 *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414 (eval "$ac_link") 2>conftest.er1
16415 ac_status=$?
16416 grep -v '^ *+' conftest.er1 >conftest.err
16417 rm -f conftest.er1
16418 cat conftest.err >&5
16419 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420 (exit $ac_status); } && {
16421 test -z "$ac_c_werror_flag" ||
16422 test ! -s conftest.err
16423 } && test -s conftest$ac_exeext &&
16424 $as_test_x conftest$ac_exeext; then
16425 ac_cv_func_getloadavg=yes
16426 else
16427 echo "$as_me: failed program was:" >&5
16428 sed 's/^/| /' conftest.$ac_ext >&5
16429
16430 ac_cv_func_getloadavg=no
16431 fi
16432
16433 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16434 conftest$ac_exeext conftest.$ac_ext
16435 fi
16436 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16437 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16438 if test $ac_cv_func_getloadavg = yes; then
16439 exit 0
16440 else
16441 exit 1
16442 fi
16443 ) && ac_have_func=yes
16444
16445 # On HPUX9, an unprivileged user can get load averages through this function.
16446
16447 for ac_func in pstat_getdynamic
16448 do
16449 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16450 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16451 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16452 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16453 echo $ECHO_N "(cached) $ECHO_C" >&6
16454 else
16455 cat >conftest.$ac_ext <<_ACEOF
16456 /* confdefs.h. */
16457 _ACEOF
16458 cat confdefs.h >>conftest.$ac_ext
16459 cat >>conftest.$ac_ext <<_ACEOF
16460 /* end confdefs.h. */
16461 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16462 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16463 #define $ac_func innocuous_$ac_func
16464
16465 /* System header to define __stub macros and hopefully few prototypes,
16466 which can conflict with char $ac_func (); below.
16467 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16468 <limits.h> exists even on freestanding compilers. */
16469
16470 #ifdef __STDC__
16471 # include <limits.h>
16472 #else
16473 # include <assert.h>
16474 #endif
16475
16476 #undef $ac_func
16477
16478 /* Override any GCC internal prototype to avoid an error.
16479 Use char because int might match the return type of a GCC
16480 builtin and then its argument prototype would still apply. */
16481 #ifdef __cplusplus
16482 extern "C"
16483 #endif
16484 char $ac_func ();
16485 /* The GNU C library defines this for functions which it implements
16486 to always fail with ENOSYS. Some functions are actually named
16487 something starting with __ and the normal name is an alias. */
16488 #if defined __stub_$ac_func || defined __stub___$ac_func
16489 choke me
16490 #endif
16491
16492 int
16493 main ()
16494 {
16495 return $ac_func ();
16496 ;
16497 return 0;
16498 }
16499 _ACEOF
16500 rm -f conftest.$ac_objext conftest$ac_exeext
16501 if { (ac_try="$ac_link"
16502 case "(($ac_try" in
16503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16504 *) ac_try_echo=$ac_try;;
16505 esac
16506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16507 (eval "$ac_link") 2>conftest.er1
16508 ac_status=$?
16509 grep -v '^ *+' conftest.er1 >conftest.err
16510 rm -f conftest.er1
16511 cat conftest.err >&5
16512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16513 (exit $ac_status); } && {
16514 test -z "$ac_c_werror_flag" ||
16515 test ! -s conftest.err
16516 } && test -s conftest$ac_exeext &&
16517 $as_test_x conftest$ac_exeext; then
16518 eval "$as_ac_var=yes"
16519 else
16520 echo "$as_me: failed program was:" >&5
16521 sed 's/^/| /' conftest.$ac_ext >&5
16522
16523 eval "$as_ac_var=no"
16524 fi
16525
16526 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16527 conftest$ac_exeext conftest.$ac_ext
16528 fi
16529 ac_res=`eval echo '${'$as_ac_var'}'`
16530 { echo "$as_me:$LINENO: result: $ac_res" >&5
16531 echo "${ECHO_T}$ac_res" >&6; }
16532 if test `eval echo '${'$as_ac_var'}'` = yes; then
16533 cat >>confdefs.h <<_ACEOF
16534 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16535 _ACEOF
16536
16537 fi
16538 done
16539
16540
16541 # Solaris has libkstat which does not require root.
16542
16543 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16544 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16545 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16546 echo $ECHO_N "(cached) $ECHO_C" >&6
16547 else
16548 ac_check_lib_save_LIBS=$LIBS
16549 LIBS="-lkstat $LIBS"
16550 cat >conftest.$ac_ext <<_ACEOF
16551 /* confdefs.h. */
16552 _ACEOF
16553 cat confdefs.h >>conftest.$ac_ext
16554 cat >>conftest.$ac_ext <<_ACEOF
16555 /* end confdefs.h. */
16556
16557 /* Override any GCC internal prototype to avoid an error.
16558 Use char because int might match the return type of a GCC
16559 builtin and then its argument prototype would still apply. */
16560 #ifdef __cplusplus
16561 extern "C"
16562 #endif
16563 char kstat_open ();
16564 int
16565 main ()
16566 {
16567 return kstat_open ();
16568 ;
16569 return 0;
16570 }
16571 _ACEOF
16572 rm -f conftest.$ac_objext conftest$ac_exeext
16573 if { (ac_try="$ac_link"
16574 case "(($ac_try" in
16575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16576 *) ac_try_echo=$ac_try;;
16577 esac
16578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16579 (eval "$ac_link") 2>conftest.er1
16580 ac_status=$?
16581 grep -v '^ *+' conftest.er1 >conftest.err
16582 rm -f conftest.er1
16583 cat conftest.err >&5
16584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16585 (exit $ac_status); } && {
16586 test -z "$ac_c_werror_flag" ||
16587 test ! -s conftest.err
16588 } && test -s conftest$ac_exeext &&
16589 $as_test_x conftest$ac_exeext; then
16590 ac_cv_lib_kstat_kstat_open=yes
16591 else
16592 echo "$as_me: failed program was:" >&5
16593 sed 's/^/| /' conftest.$ac_ext >&5
16594
16595 ac_cv_lib_kstat_kstat_open=no
16596 fi
16597
16598 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16599 conftest$ac_exeext conftest.$ac_ext
16600 LIBS=$ac_check_lib_save_LIBS
16601 fi
16602 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16603 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16604 if test $ac_cv_lib_kstat_kstat_open = yes; then
16605 cat >>confdefs.h <<_ACEOF
16606 #define HAVE_LIBKSTAT 1
16607 _ACEOF
16608
16609 LIBS="-lkstat $LIBS"
16610
16611 fi
16612
16613 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16614
16615 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16616 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16617 # to get the right answer into the cache.
16618 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16619 if test $ac_have_func = no; then
16620 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16621 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16622 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16623 echo $ECHO_N "(cached) $ECHO_C" >&6
16624 else
16625 ac_check_lib_save_LIBS=$LIBS
16626 LIBS="-lelf $LIBS"
16627 cat >conftest.$ac_ext <<_ACEOF
16628 /* confdefs.h. */
16629 _ACEOF
16630 cat confdefs.h >>conftest.$ac_ext
16631 cat >>conftest.$ac_ext <<_ACEOF
16632 /* end confdefs.h. */
16633
16634 /* Override any GCC internal prototype to avoid an error.
16635 Use char because int might match the return type of a GCC
16636 builtin and then its argument prototype would still apply. */
16637 #ifdef __cplusplus
16638 extern "C"
16639 #endif
16640 char elf_begin ();
16641 int
16642 main ()
16643 {
16644 return elf_begin ();
16645 ;
16646 return 0;
16647 }
16648 _ACEOF
16649 rm -f conftest.$ac_objext conftest$ac_exeext
16650 if { (ac_try="$ac_link"
16651 case "(($ac_try" in
16652 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16653 *) ac_try_echo=$ac_try;;
16654 esac
16655 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16656 (eval "$ac_link") 2>conftest.er1
16657 ac_status=$?
16658 grep -v '^ *+' conftest.er1 >conftest.err
16659 rm -f conftest.er1
16660 cat conftest.err >&5
16661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16662 (exit $ac_status); } && {
16663 test -z "$ac_c_werror_flag" ||
16664 test ! -s conftest.err
16665 } && test -s conftest$ac_exeext &&
16666 $as_test_x conftest$ac_exeext; then
16667 ac_cv_lib_elf_elf_begin=yes
16668 else
16669 echo "$as_me: failed program was:" >&5
16670 sed 's/^/| /' conftest.$ac_ext >&5
16671
16672 ac_cv_lib_elf_elf_begin=no
16673 fi
16674
16675 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16676 conftest$ac_exeext conftest.$ac_ext
16677 LIBS=$ac_check_lib_save_LIBS
16678 fi
16679 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16680 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16681 if test $ac_cv_lib_elf_elf_begin = yes; then
16682 LIBS="-lelf $LIBS"
16683 fi
16684
16685 fi
16686 if test $ac_have_func = no; then
16687 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16688 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16689 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16690 echo $ECHO_N "(cached) $ECHO_C" >&6
16691 else
16692 ac_check_lib_save_LIBS=$LIBS
16693 LIBS="-lkvm $LIBS"
16694 cat >conftest.$ac_ext <<_ACEOF
16695 /* confdefs.h. */
16696 _ACEOF
16697 cat confdefs.h >>conftest.$ac_ext
16698 cat >>conftest.$ac_ext <<_ACEOF
16699 /* end confdefs.h. */
16700
16701 /* Override any GCC internal prototype to avoid an error.
16702 Use char because int might match the return type of a GCC
16703 builtin and then its argument prototype would still apply. */
16704 #ifdef __cplusplus
16705 extern "C"
16706 #endif
16707 char kvm_open ();
16708 int
16709 main ()
16710 {
16711 return kvm_open ();
16712 ;
16713 return 0;
16714 }
16715 _ACEOF
16716 rm -f conftest.$ac_objext conftest$ac_exeext
16717 if { (ac_try="$ac_link"
16718 case "(($ac_try" in
16719 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16720 *) ac_try_echo=$ac_try;;
16721 esac
16722 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16723 (eval "$ac_link") 2>conftest.er1
16724 ac_status=$?
16725 grep -v '^ *+' conftest.er1 >conftest.err
16726 rm -f conftest.er1
16727 cat conftest.err >&5
16728 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729 (exit $ac_status); } && {
16730 test -z "$ac_c_werror_flag" ||
16731 test ! -s conftest.err
16732 } && test -s conftest$ac_exeext &&
16733 $as_test_x conftest$ac_exeext; then
16734 ac_cv_lib_kvm_kvm_open=yes
16735 else
16736 echo "$as_me: failed program was:" >&5
16737 sed 's/^/| /' conftest.$ac_ext >&5
16738
16739 ac_cv_lib_kvm_kvm_open=no
16740 fi
16741
16742 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16743 conftest$ac_exeext conftest.$ac_ext
16744 LIBS=$ac_check_lib_save_LIBS
16745 fi
16746 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16747 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16748 if test $ac_cv_lib_kvm_kvm_open = yes; then
16749 LIBS="-lkvm $LIBS"
16750 fi
16751
16752 # Check for the 4.4BSD definition of getloadavg.
16753 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16754 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16755 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16756 echo $ECHO_N "(cached) $ECHO_C" >&6
16757 else
16758 ac_check_lib_save_LIBS=$LIBS
16759 LIBS="-lutil $LIBS"
16760 cat >conftest.$ac_ext <<_ACEOF
16761 /* confdefs.h. */
16762 _ACEOF
16763 cat confdefs.h >>conftest.$ac_ext
16764 cat >>conftest.$ac_ext <<_ACEOF
16765 /* end confdefs.h. */
16766
16767 /* Override any GCC internal prototype to avoid an error.
16768 Use char because int might match the return type of a GCC
16769 builtin and then its argument prototype would still apply. */
16770 #ifdef __cplusplus
16771 extern "C"
16772 #endif
16773 char getloadavg ();
16774 int
16775 main ()
16776 {
16777 return getloadavg ();
16778 ;
16779 return 0;
16780 }
16781 _ACEOF
16782 rm -f conftest.$ac_objext conftest$ac_exeext
16783 if { (ac_try="$ac_link"
16784 case "(($ac_try" in
16785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16786 *) ac_try_echo=$ac_try;;
16787 esac
16788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16789 (eval "$ac_link") 2>conftest.er1
16790 ac_status=$?
16791 grep -v '^ *+' conftest.er1 >conftest.err
16792 rm -f conftest.er1
16793 cat conftest.err >&5
16794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16795 (exit $ac_status); } && {
16796 test -z "$ac_c_werror_flag" ||
16797 test ! -s conftest.err
16798 } && test -s conftest$ac_exeext &&
16799 $as_test_x conftest$ac_exeext; then
16800 ac_cv_lib_util_getloadavg=yes
16801 else
16802 echo "$as_me: failed program was:" >&5
16803 sed 's/^/| /' conftest.$ac_ext >&5
16804
16805 ac_cv_lib_util_getloadavg=no
16806 fi
16807
16808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16809 conftest$ac_exeext conftest.$ac_ext
16810 LIBS=$ac_check_lib_save_LIBS
16811 fi
16812 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16813 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16814 if test $ac_cv_lib_util_getloadavg = yes; then
16815 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16816 fi
16817
16818 fi
16819
16820 if test $ac_have_func = no; then
16821 # There is a commonly available library for RS/6000 AIX.
16822 # Since it is not a standard part of AIX, it might be installed locally.
16823 ac_getloadavg_LIBS=$LIBS
16824 LIBS="-L/usr/local/lib $LIBS"
16825 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16826 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16827 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16828 echo $ECHO_N "(cached) $ECHO_C" >&6
16829 else
16830 ac_check_lib_save_LIBS=$LIBS
16831 LIBS="-lgetloadavg $LIBS"
16832 cat >conftest.$ac_ext <<_ACEOF
16833 /* confdefs.h. */
16834 _ACEOF
16835 cat confdefs.h >>conftest.$ac_ext
16836 cat >>conftest.$ac_ext <<_ACEOF
16837 /* end confdefs.h. */
16838
16839 /* Override any GCC internal prototype to avoid an error.
16840 Use char because int might match the return type of a GCC
16841 builtin and then its argument prototype would still apply. */
16842 #ifdef __cplusplus
16843 extern "C"
16844 #endif
16845 char getloadavg ();
16846 int
16847 main ()
16848 {
16849 return getloadavg ();
16850 ;
16851 return 0;
16852 }
16853 _ACEOF
16854 rm -f conftest.$ac_objext conftest$ac_exeext
16855 if { (ac_try="$ac_link"
16856 case "(($ac_try" in
16857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16858 *) ac_try_echo=$ac_try;;
16859 esac
16860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16861 (eval "$ac_link") 2>conftest.er1
16862 ac_status=$?
16863 grep -v '^ *+' conftest.er1 >conftest.err
16864 rm -f conftest.er1
16865 cat conftest.err >&5
16866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16867 (exit $ac_status); } && {
16868 test -z "$ac_c_werror_flag" ||
16869 test ! -s conftest.err
16870 } && test -s conftest$ac_exeext &&
16871 $as_test_x conftest$ac_exeext; then
16872 ac_cv_lib_getloadavg_getloadavg=yes
16873 else
16874 echo "$as_me: failed program was:" >&5
16875 sed 's/^/| /' conftest.$ac_ext >&5
16876
16877 ac_cv_lib_getloadavg_getloadavg=no
16878 fi
16879
16880 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16881 conftest$ac_exeext conftest.$ac_ext
16882 LIBS=$ac_check_lib_save_LIBS
16883 fi
16884 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16885 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16886 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16887 LIBS="-lgetloadavg $LIBS"
16888 else
16889 LIBS=$ac_getloadavg_LIBS
16890 fi
16891
16892 fi
16893
16894 # Make sure it is really in the library, if we think we found it,
16895 # otherwise set up the replacement function.
16896
16897 for ac_func in getloadavg
16898 do
16899 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16900 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16901 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16902 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16903 echo $ECHO_N "(cached) $ECHO_C" >&6
16904 else
16905 cat >conftest.$ac_ext <<_ACEOF
16906 /* confdefs.h. */
16907 _ACEOF
16908 cat confdefs.h >>conftest.$ac_ext
16909 cat >>conftest.$ac_ext <<_ACEOF
16910 /* end confdefs.h. */
16911 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16912 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16913 #define $ac_func innocuous_$ac_func
16914
16915 /* System header to define __stub macros and hopefully few prototypes,
16916 which can conflict with char $ac_func (); below.
16917 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16918 <limits.h> exists even on freestanding compilers. */
16919
16920 #ifdef __STDC__
16921 # include <limits.h>
16922 #else
16923 # include <assert.h>
16924 #endif
16925
16926 #undef $ac_func
16927
16928 /* Override any GCC internal prototype to avoid an error.
16929 Use char because int might match the return type of a GCC
16930 builtin and then its argument prototype would still apply. */
16931 #ifdef __cplusplus
16932 extern "C"
16933 #endif
16934 char $ac_func ();
16935 /* The GNU C library defines this for functions which it implements
16936 to always fail with ENOSYS. Some functions are actually named
16937 something starting with __ and the normal name is an alias. */
16938 #if defined __stub_$ac_func || defined __stub___$ac_func
16939 choke me
16940 #endif
16941
16942 int
16943 main ()
16944 {
16945 return $ac_func ();
16946 ;
16947 return 0;
16948 }
16949 _ACEOF
16950 rm -f conftest.$ac_objext conftest$ac_exeext
16951 if { (ac_try="$ac_link"
16952 case "(($ac_try" in
16953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16954 *) ac_try_echo=$ac_try;;
16955 esac
16956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16957 (eval "$ac_link") 2>conftest.er1
16958 ac_status=$?
16959 grep -v '^ *+' conftest.er1 >conftest.err
16960 rm -f conftest.er1
16961 cat conftest.err >&5
16962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16963 (exit $ac_status); } && {
16964 test -z "$ac_c_werror_flag" ||
16965 test ! -s conftest.err
16966 } && test -s conftest$ac_exeext &&
16967 $as_test_x conftest$ac_exeext; then
16968 eval "$as_ac_var=yes"
16969 else
16970 echo "$as_me: failed program was:" >&5
16971 sed 's/^/| /' conftest.$ac_ext >&5
16972
16973 eval "$as_ac_var=no"
16974 fi
16975
16976 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16977 conftest$ac_exeext conftest.$ac_ext
16978 fi
16979 ac_res=`eval echo '${'$as_ac_var'}'`
16980 { echo "$as_me:$LINENO: result: $ac_res" >&5
16981 echo "${ECHO_T}$ac_res" >&6; }
16982 if test `eval echo '${'$as_ac_var'}'` = yes; then
16983 cat >>confdefs.h <<_ACEOF
16984 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16985 _ACEOF
16986
16987 else
16988 case " $LIBOBJS " in
16989 *" getloadavg.$ac_objext "* ) ;;
16990 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
16991 ;;
16992 esac
16993
16994
16995 cat >>confdefs.h <<\_ACEOF
16996 #define C_GETLOADAVG 1
16997 _ACEOF
16998
16999 # Figure out what our getloadavg.c needs.
17000 ac_have_func=no
17001 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17002 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17003 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17004 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17005 echo $ECHO_N "(cached) $ECHO_C" >&6
17006 fi
17007 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17008 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17009 else
17010 # Is the header compilable?
17011 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17012 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17013 cat >conftest.$ac_ext <<_ACEOF
17014 /* confdefs.h. */
17015 _ACEOF
17016 cat confdefs.h >>conftest.$ac_ext
17017 cat >>conftest.$ac_ext <<_ACEOF
17018 /* end confdefs.h. */
17019 $ac_includes_default
17020 #include <sys/dg_sys_info.h>
17021 _ACEOF
17022 rm -f conftest.$ac_objext
17023 if { (ac_try="$ac_compile"
17024 case "(($ac_try" in
17025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17026 *) ac_try_echo=$ac_try;;
17027 esac
17028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17029 (eval "$ac_compile") 2>conftest.er1
17030 ac_status=$?
17031 grep -v '^ *+' conftest.er1 >conftest.err
17032 rm -f conftest.er1
17033 cat conftest.err >&5
17034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17035 (exit $ac_status); } && {
17036 test -z "$ac_c_werror_flag" ||
17037 test ! -s conftest.err
17038 } && test -s conftest.$ac_objext; then
17039 ac_header_compiler=yes
17040 else
17041 echo "$as_me: failed program was:" >&5
17042 sed 's/^/| /' conftest.$ac_ext >&5
17043
17044 ac_header_compiler=no
17045 fi
17046
17047 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17048 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17049 echo "${ECHO_T}$ac_header_compiler" >&6; }
17050
17051 # Is the header present?
17052 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17053 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17054 cat >conftest.$ac_ext <<_ACEOF
17055 /* confdefs.h. */
17056 _ACEOF
17057 cat confdefs.h >>conftest.$ac_ext
17058 cat >>conftest.$ac_ext <<_ACEOF
17059 /* end confdefs.h. */
17060 #include <sys/dg_sys_info.h>
17061 _ACEOF
17062 if { (ac_try="$ac_cpp conftest.$ac_ext"
17063 case "(($ac_try" in
17064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17065 *) ac_try_echo=$ac_try;;
17066 esac
17067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17068 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17069 ac_status=$?
17070 grep -v '^ *+' conftest.er1 >conftest.err
17071 rm -f conftest.er1
17072 cat conftest.err >&5
17073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17074 (exit $ac_status); } >/dev/null && {
17075 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17076 test ! -s conftest.err
17077 }; then
17078 ac_header_preproc=yes
17079 else
17080 echo "$as_me: failed program was:" >&5
17081 sed 's/^/| /' conftest.$ac_ext >&5
17082
17083 ac_header_preproc=no
17084 fi
17085
17086 rm -f conftest.err conftest.$ac_ext
17087 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17088 echo "${ECHO_T}$ac_header_preproc" >&6; }
17089
17090 # So? What about this header?
17091 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17092 yes:no: )
17093 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17094 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17095 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17096 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17097 ac_header_preproc=yes
17098 ;;
17099 no:yes:* )
17100 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17101 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17102 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17103 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17104 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17105 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17106 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17107 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17108 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17109 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17110 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17111 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17112
17113 ;;
17114 esac
17115 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17116 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17117 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17118 echo $ECHO_N "(cached) $ECHO_C" >&6
17119 else
17120 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17121 fi
17122 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17123 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17124
17125 fi
17126 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17127 ac_have_func=yes
17128
17129 cat >>confdefs.h <<\_ACEOF
17130 #define DGUX 1
17131 _ACEOF
17132
17133
17134 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17135 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17136 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17137 echo $ECHO_N "(cached) $ECHO_C" >&6
17138 else
17139 ac_check_lib_save_LIBS=$LIBS
17140 LIBS="-ldgc $LIBS"
17141 cat >conftest.$ac_ext <<_ACEOF
17142 /* confdefs.h. */
17143 _ACEOF
17144 cat confdefs.h >>conftest.$ac_ext
17145 cat >>conftest.$ac_ext <<_ACEOF
17146 /* end confdefs.h. */
17147
17148 /* Override any GCC internal prototype to avoid an error.
17149 Use char because int might match the return type of a GCC
17150 builtin and then its argument prototype would still apply. */
17151 #ifdef __cplusplus
17152 extern "C"
17153 #endif
17154 char dg_sys_info ();
17155 int
17156 main ()
17157 {
17158 return dg_sys_info ();
17159 ;
17160 return 0;
17161 }
17162 _ACEOF
17163 rm -f conftest.$ac_objext conftest$ac_exeext
17164 if { (ac_try="$ac_link"
17165 case "(($ac_try" in
17166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17167 *) ac_try_echo=$ac_try;;
17168 esac
17169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17170 (eval "$ac_link") 2>conftest.er1
17171 ac_status=$?
17172 grep -v '^ *+' conftest.er1 >conftest.err
17173 rm -f conftest.er1
17174 cat conftest.err >&5
17175 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17176 (exit $ac_status); } && {
17177 test -z "$ac_c_werror_flag" ||
17178 test ! -s conftest.err
17179 } && test -s conftest$ac_exeext &&
17180 $as_test_x conftest$ac_exeext; then
17181 ac_cv_lib_dgc_dg_sys_info=yes
17182 else
17183 echo "$as_me: failed program was:" >&5
17184 sed 's/^/| /' conftest.$ac_ext >&5
17185
17186 ac_cv_lib_dgc_dg_sys_info=no
17187 fi
17188
17189 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17190 conftest$ac_exeext conftest.$ac_ext
17191 LIBS=$ac_check_lib_save_LIBS
17192 fi
17193 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17194 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17195 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17196 cat >>confdefs.h <<_ACEOF
17197 #define HAVE_LIBDGC 1
17198 _ACEOF
17199
17200 LIBS="-ldgc $LIBS"
17201
17202 fi
17203
17204 fi
17205
17206
17207
17208 if test "${ac_cv_header_locale_h+set}" = set; then
17209 { echo "$as_me:$LINENO: checking for locale.h" >&5
17210 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17211 if test "${ac_cv_header_locale_h+set}" = set; then
17212 echo $ECHO_N "(cached) $ECHO_C" >&6
17213 fi
17214 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17215 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17216 else
17217 # Is the header compilable?
17218 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17219 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17220 cat >conftest.$ac_ext <<_ACEOF
17221 /* confdefs.h. */
17222 _ACEOF
17223 cat confdefs.h >>conftest.$ac_ext
17224 cat >>conftest.$ac_ext <<_ACEOF
17225 /* end confdefs.h. */
17226 $ac_includes_default
17227 #include <locale.h>
17228 _ACEOF
17229 rm -f conftest.$ac_objext
17230 if { (ac_try="$ac_compile"
17231 case "(($ac_try" in
17232 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17233 *) ac_try_echo=$ac_try;;
17234 esac
17235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17236 (eval "$ac_compile") 2>conftest.er1
17237 ac_status=$?
17238 grep -v '^ *+' conftest.er1 >conftest.err
17239 rm -f conftest.er1
17240 cat conftest.err >&5
17241 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17242 (exit $ac_status); } && {
17243 test -z "$ac_c_werror_flag" ||
17244 test ! -s conftest.err
17245 } && test -s conftest.$ac_objext; then
17246 ac_header_compiler=yes
17247 else
17248 echo "$as_me: failed program was:" >&5
17249 sed 's/^/| /' conftest.$ac_ext >&5
17250
17251 ac_header_compiler=no
17252 fi
17253
17254 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17255 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17256 echo "${ECHO_T}$ac_header_compiler" >&6; }
17257
17258 # Is the header present?
17259 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17260 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17261 cat >conftest.$ac_ext <<_ACEOF
17262 /* confdefs.h. */
17263 _ACEOF
17264 cat confdefs.h >>conftest.$ac_ext
17265 cat >>conftest.$ac_ext <<_ACEOF
17266 /* end confdefs.h. */
17267 #include <locale.h>
17268 _ACEOF
17269 if { (ac_try="$ac_cpp conftest.$ac_ext"
17270 case "(($ac_try" in
17271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17272 *) ac_try_echo=$ac_try;;
17273 esac
17274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17275 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17276 ac_status=$?
17277 grep -v '^ *+' conftest.er1 >conftest.err
17278 rm -f conftest.er1
17279 cat conftest.err >&5
17280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17281 (exit $ac_status); } >/dev/null && {
17282 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17283 test ! -s conftest.err
17284 }; then
17285 ac_header_preproc=yes
17286 else
17287 echo "$as_me: failed program was:" >&5
17288 sed 's/^/| /' conftest.$ac_ext >&5
17289
17290 ac_header_preproc=no
17291 fi
17292
17293 rm -f conftest.err conftest.$ac_ext
17294 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17295 echo "${ECHO_T}$ac_header_preproc" >&6; }
17296
17297 # So? What about this header?
17298 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17299 yes:no: )
17300 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17301 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17302 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17303 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17304 ac_header_preproc=yes
17305 ;;
17306 no:yes:* )
17307 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17308 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17309 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17310 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17311 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17312 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17313 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17314 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17315 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17316 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17317 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17318 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17319
17320 ;;
17321 esac
17322 { echo "$as_me:$LINENO: checking for locale.h" >&5
17323 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17324 if test "${ac_cv_header_locale_h+set}" = set; then
17325 echo $ECHO_N "(cached) $ECHO_C" >&6
17326 else
17327 ac_cv_header_locale_h=$ac_header_preproc
17328 fi
17329 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17330 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17331
17332 fi
17333
17334
17335
17336 for ac_func in setlocale
17337 do
17338 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17339 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17340 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17341 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17342 echo $ECHO_N "(cached) $ECHO_C" >&6
17343 else
17344 cat >conftest.$ac_ext <<_ACEOF
17345 /* confdefs.h. */
17346 _ACEOF
17347 cat confdefs.h >>conftest.$ac_ext
17348 cat >>conftest.$ac_ext <<_ACEOF
17349 /* end confdefs.h. */
17350 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17351 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17352 #define $ac_func innocuous_$ac_func
17353
17354 /* System header to define __stub macros and hopefully few prototypes,
17355 which can conflict with char $ac_func (); below.
17356 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17357 <limits.h> exists even on freestanding compilers. */
17358
17359 #ifdef __STDC__
17360 # include <limits.h>
17361 #else
17362 # include <assert.h>
17363 #endif
17364
17365 #undef $ac_func
17366
17367 /* Override any GCC internal prototype to avoid an error.
17368 Use char because int might match the return type of a GCC
17369 builtin and then its argument prototype would still apply. */
17370 #ifdef __cplusplus
17371 extern "C"
17372 #endif
17373 char $ac_func ();
17374 /* The GNU C library defines this for functions which it implements
17375 to always fail with ENOSYS. Some functions are actually named
17376 something starting with __ and the normal name is an alias. */
17377 #if defined __stub_$ac_func || defined __stub___$ac_func
17378 choke me
17379 #endif
17380
17381 int
17382 main ()
17383 {
17384 return $ac_func ();
17385 ;
17386 return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest.$ac_objext conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393 *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396 (eval "$ac_link") 2>conftest.er1
17397 ac_status=$?
17398 grep -v '^ *+' conftest.er1 >conftest.err
17399 rm -f conftest.er1
17400 cat conftest.err >&5
17401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17402 (exit $ac_status); } && {
17403 test -z "$ac_c_werror_flag" ||
17404 test ! -s conftest.err
17405 } && test -s conftest$ac_exeext &&
17406 $as_test_x conftest$ac_exeext; then
17407 eval "$as_ac_var=yes"
17408 else
17409 echo "$as_me: failed program was:" >&5
17410 sed 's/^/| /' conftest.$ac_ext >&5
17411
17412 eval "$as_ac_var=no"
17413 fi
17414
17415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17416 conftest$ac_exeext conftest.$ac_ext
17417 fi
17418 ac_res=`eval echo '${'$as_ac_var'}'`
17419 { echo "$as_me:$LINENO: result: $ac_res" >&5
17420 echo "${ECHO_T}$ac_res" >&6; }
17421 if test `eval echo '${'$as_ac_var'}'` = yes; then
17422 cat >>confdefs.h <<_ACEOF
17423 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17424 _ACEOF
17425
17426 fi
17427 done
17428
17429
17430 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17431 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17432 # Irix 4.0.5F has the header but not the library.
17433 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17434 ac_have_func=yes
17435
17436 cat >>confdefs.h <<\_ACEOF
17437 #define SVR4 1
17438 _ACEOF
17439
17440 fi
17441
17442 if test $ac_have_func = no; then
17443 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17444 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17445 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17446 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17447 echo $ECHO_N "(cached) $ECHO_C" >&6
17448 fi
17449 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17450 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17451 else
17452 # Is the header compilable?
17453 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17454 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17455 cat >conftest.$ac_ext <<_ACEOF
17456 /* confdefs.h. */
17457 _ACEOF
17458 cat confdefs.h >>conftest.$ac_ext
17459 cat >>conftest.$ac_ext <<_ACEOF
17460 /* end confdefs.h. */
17461 $ac_includes_default
17462 #include <inq_stats/cpustats.h>
17463 _ACEOF
17464 rm -f conftest.$ac_objext
17465 if { (ac_try="$ac_compile"
17466 case "(($ac_try" in
17467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17468 *) ac_try_echo=$ac_try;;
17469 esac
17470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17471 (eval "$ac_compile") 2>conftest.er1
17472 ac_status=$?
17473 grep -v '^ *+' conftest.er1 >conftest.err
17474 rm -f conftest.er1
17475 cat conftest.err >&5
17476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17477 (exit $ac_status); } && {
17478 test -z "$ac_c_werror_flag" ||
17479 test ! -s conftest.err
17480 } && test -s conftest.$ac_objext; then
17481 ac_header_compiler=yes
17482 else
17483 echo "$as_me: failed program was:" >&5
17484 sed 's/^/| /' conftest.$ac_ext >&5
17485
17486 ac_header_compiler=no
17487 fi
17488
17489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17490 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17491 echo "${ECHO_T}$ac_header_compiler" >&6; }
17492
17493 # Is the header present?
17494 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17495 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17496 cat >conftest.$ac_ext <<_ACEOF
17497 /* confdefs.h. */
17498 _ACEOF
17499 cat confdefs.h >>conftest.$ac_ext
17500 cat >>conftest.$ac_ext <<_ACEOF
17501 /* end confdefs.h. */
17502 #include <inq_stats/cpustats.h>
17503 _ACEOF
17504 if { (ac_try="$ac_cpp conftest.$ac_ext"
17505 case "(($ac_try" in
17506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17507 *) ac_try_echo=$ac_try;;
17508 esac
17509 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17510 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17511 ac_status=$?
17512 grep -v '^ *+' conftest.er1 >conftest.err
17513 rm -f conftest.er1
17514 cat conftest.err >&5
17515 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17516 (exit $ac_status); } >/dev/null && {
17517 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17518 test ! -s conftest.err
17519 }; then
17520 ac_header_preproc=yes
17521 else
17522 echo "$as_me: failed program was:" >&5
17523 sed 's/^/| /' conftest.$ac_ext >&5
17524
17525 ac_header_preproc=no
17526 fi
17527
17528 rm -f conftest.err conftest.$ac_ext
17529 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17530 echo "${ECHO_T}$ac_header_preproc" >&6; }
17531
17532 # So? What about this header?
17533 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17534 yes:no: )
17535 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17536 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17537 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17538 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17539 ac_header_preproc=yes
17540 ;;
17541 no:yes:* )
17542 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17543 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17544 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17545 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17546 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17547 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17548 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17549 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17550 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17551 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17552 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17553 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17554
17555 ;;
17556 esac
17557 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17558 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17559 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17560 echo $ECHO_N "(cached) $ECHO_C" >&6
17561 else
17562 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17563 fi
17564 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17565 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17566
17567 fi
17568 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17569 ac_have_func=yes
17570
17571 cat >>confdefs.h <<\_ACEOF
17572 #define UMAX 1
17573 _ACEOF
17574
17575
17576 cat >>confdefs.h <<\_ACEOF
17577 #define UMAX4_3 1
17578 _ACEOF
17579
17580 fi
17581
17582
17583 fi
17584
17585 if test $ac_have_func = no; then
17586 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17587 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17588 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17589 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17590 echo $ECHO_N "(cached) $ECHO_C" >&6
17591 fi
17592 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17593 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17594 else
17595 # Is the header compilable?
17596 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17597 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17598 cat >conftest.$ac_ext <<_ACEOF
17599 /* confdefs.h. */
17600 _ACEOF
17601 cat confdefs.h >>conftest.$ac_ext
17602 cat >>conftest.$ac_ext <<_ACEOF
17603 /* end confdefs.h. */
17604 $ac_includes_default
17605 #include <sys/cpustats.h>
17606 _ACEOF
17607 rm -f conftest.$ac_objext
17608 if { (ac_try="$ac_compile"
17609 case "(($ac_try" in
17610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17611 *) ac_try_echo=$ac_try;;
17612 esac
17613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17614 (eval "$ac_compile") 2>conftest.er1
17615 ac_status=$?
17616 grep -v '^ *+' conftest.er1 >conftest.err
17617 rm -f conftest.er1
17618 cat conftest.err >&5
17619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17620 (exit $ac_status); } && {
17621 test -z "$ac_c_werror_flag" ||
17622 test ! -s conftest.err
17623 } && test -s conftest.$ac_objext; then
17624 ac_header_compiler=yes
17625 else
17626 echo "$as_me: failed program was:" >&5
17627 sed 's/^/| /' conftest.$ac_ext >&5
17628
17629 ac_header_compiler=no
17630 fi
17631
17632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17633 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17634 echo "${ECHO_T}$ac_header_compiler" >&6; }
17635
17636 # Is the header present?
17637 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17638 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17639 cat >conftest.$ac_ext <<_ACEOF
17640 /* confdefs.h. */
17641 _ACEOF
17642 cat confdefs.h >>conftest.$ac_ext
17643 cat >>conftest.$ac_ext <<_ACEOF
17644 /* end confdefs.h. */
17645 #include <sys/cpustats.h>
17646 _ACEOF
17647 if { (ac_try="$ac_cpp conftest.$ac_ext"
17648 case "(($ac_try" in
17649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650 *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17654 ac_status=$?
17655 grep -v '^ *+' conftest.er1 >conftest.err
17656 rm -f conftest.er1
17657 cat conftest.err >&5
17658 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17659 (exit $ac_status); } >/dev/null && {
17660 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17661 test ! -s conftest.err
17662 }; then
17663 ac_header_preproc=yes
17664 else
17665 echo "$as_me: failed program was:" >&5
17666 sed 's/^/| /' conftest.$ac_ext >&5
17667
17668 ac_header_preproc=no
17669 fi
17670
17671 rm -f conftest.err conftest.$ac_ext
17672 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17673 echo "${ECHO_T}$ac_header_preproc" >&6; }
17674
17675 # So? What about this header?
17676 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17677 yes:no: )
17678 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17679 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17680 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17681 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17682 ac_header_preproc=yes
17683 ;;
17684 no:yes:* )
17685 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17686 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17687 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17688 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17689 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17690 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17691 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17692 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17693 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17694 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17695 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17696 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17697
17698 ;;
17699 esac
17700 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17701 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17702 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17703 echo $ECHO_N "(cached) $ECHO_C" >&6
17704 else
17705 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17706 fi
17707 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17708 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17709
17710 fi
17711 if test $ac_cv_header_sys_cpustats_h = yes; then
17712 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17713 #define UMAX 1
17714 _ACEOF
17715
17716 fi
17717
17718
17719 fi
17720
17721 if test $ac_have_func = no; then
17722
17723 for ac_header in mach/mach.h
17724 do
17725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17730 echo $ECHO_N "(cached) $ECHO_C" >&6
17731 fi
17732 ac_res=`eval echo '${'$as_ac_Header'}'`
17733 { echo "$as_me:$LINENO: result: $ac_res" >&5
17734 echo "${ECHO_T}$ac_res" >&6; }
17735 else
17736 # Is the header compilable?
17737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17739 cat >conftest.$ac_ext <<_ACEOF
17740 /* confdefs.h. */
17741 _ACEOF
17742 cat confdefs.h >>conftest.$ac_ext
17743 cat >>conftest.$ac_ext <<_ACEOF
17744 /* end confdefs.h. */
17745 $ac_includes_default
17746 #include <$ac_header>
17747 _ACEOF
17748 rm -f conftest.$ac_objext
17749 if { (ac_try="$ac_compile"
17750 case "(($ac_try" in
17751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17752 *) ac_try_echo=$ac_try;;
17753 esac
17754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17755 (eval "$ac_compile") 2>conftest.er1
17756 ac_status=$?
17757 grep -v '^ *+' conftest.er1 >conftest.err
17758 rm -f conftest.er1
17759 cat conftest.err >&5
17760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17761 (exit $ac_status); } && {
17762 test -z "$ac_c_werror_flag" ||
17763 test ! -s conftest.err
17764 } && test -s conftest.$ac_objext; then
17765 ac_header_compiler=yes
17766 else
17767 echo "$as_me: failed program was:" >&5
17768 sed 's/^/| /' conftest.$ac_ext >&5
17769
17770 ac_header_compiler=no
17771 fi
17772
17773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17775 echo "${ECHO_T}$ac_header_compiler" >&6; }
17776
17777 # Is the header present?
17778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17780 cat >conftest.$ac_ext <<_ACEOF
17781 /* confdefs.h. */
17782 _ACEOF
17783 cat confdefs.h >>conftest.$ac_ext
17784 cat >>conftest.$ac_ext <<_ACEOF
17785 /* end confdefs.h. */
17786 #include <$ac_header>
17787 _ACEOF
17788 if { (ac_try="$ac_cpp conftest.$ac_ext"
17789 case "(($ac_try" in
17790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17791 *) ac_try_echo=$ac_try;;
17792 esac
17793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17795 ac_status=$?
17796 grep -v '^ *+' conftest.er1 >conftest.err
17797 rm -f conftest.er1
17798 cat conftest.err >&5
17799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17800 (exit $ac_status); } >/dev/null && {
17801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17802 test ! -s conftest.err
17803 }; then
17804 ac_header_preproc=yes
17805 else
17806 echo "$as_me: failed program was:" >&5
17807 sed 's/^/| /' conftest.$ac_ext >&5
17808
17809 ac_header_preproc=no
17810 fi
17811
17812 rm -f conftest.err conftest.$ac_ext
17813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17814 echo "${ECHO_T}$ac_header_preproc" >&6; }
17815
17816 # So? What about this header?
17817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17818 yes:no: )
17819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17823 ac_header_preproc=yes
17824 ;;
17825 no:yes:* )
17826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17838
17839 ;;
17840 esac
17841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17844 echo $ECHO_N "(cached) $ECHO_C" >&6
17845 else
17846 eval "$as_ac_Header=\$ac_header_preproc"
17847 fi
17848 ac_res=`eval echo '${'$as_ac_Header'}'`
17849 { echo "$as_me:$LINENO: result: $ac_res" >&5
17850 echo "${ECHO_T}$ac_res" >&6; }
17851
17852 fi
17853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17854 cat >>confdefs.h <<_ACEOF
17855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17856 _ACEOF
17857
17858 fi
17859
17860 done
17861
17862 fi
17863
17864
17865 for ac_header in nlist.h
17866 do
17867 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17869 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17870 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17871 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17872 echo $ECHO_N "(cached) $ECHO_C" >&6
17873 fi
17874 ac_res=`eval echo '${'$as_ac_Header'}'`
17875 { echo "$as_me:$LINENO: result: $ac_res" >&5
17876 echo "${ECHO_T}$ac_res" >&6; }
17877 else
17878 # Is the header compilable?
17879 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17880 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17881 cat >conftest.$ac_ext <<_ACEOF
17882 /* confdefs.h. */
17883 _ACEOF
17884 cat confdefs.h >>conftest.$ac_ext
17885 cat >>conftest.$ac_ext <<_ACEOF
17886 /* end confdefs.h. */
17887 $ac_includes_default
17888 #include <$ac_header>
17889 _ACEOF
17890 rm -f conftest.$ac_objext
17891 if { (ac_try="$ac_compile"
17892 case "(($ac_try" in
17893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17894 *) ac_try_echo=$ac_try;;
17895 esac
17896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17897 (eval "$ac_compile") 2>conftest.er1
17898 ac_status=$?
17899 grep -v '^ *+' conftest.er1 >conftest.err
17900 rm -f conftest.er1
17901 cat conftest.err >&5
17902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17903 (exit $ac_status); } && {
17904 test -z "$ac_c_werror_flag" ||
17905 test ! -s conftest.err
17906 } && test -s conftest.$ac_objext; then
17907 ac_header_compiler=yes
17908 else
17909 echo "$as_me: failed program was:" >&5
17910 sed 's/^/| /' conftest.$ac_ext >&5
17911
17912 ac_header_compiler=no
17913 fi
17914
17915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17916 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17917 echo "${ECHO_T}$ac_header_compiler" >&6; }
17918
17919 # Is the header present?
17920 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17921 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17922 cat >conftest.$ac_ext <<_ACEOF
17923 /* confdefs.h. */
17924 _ACEOF
17925 cat confdefs.h >>conftest.$ac_ext
17926 cat >>conftest.$ac_ext <<_ACEOF
17927 /* end confdefs.h. */
17928 #include <$ac_header>
17929 _ACEOF
17930 if { (ac_try="$ac_cpp conftest.$ac_ext"
17931 case "(($ac_try" in
17932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17933 *) ac_try_echo=$ac_try;;
17934 esac
17935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17936 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17937 ac_status=$?
17938 grep -v '^ *+' conftest.er1 >conftest.err
17939 rm -f conftest.er1
17940 cat conftest.err >&5
17941 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17942 (exit $ac_status); } >/dev/null && {
17943 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17944 test ! -s conftest.err
17945 }; then
17946 ac_header_preproc=yes
17947 else
17948 echo "$as_me: failed program was:" >&5
17949 sed 's/^/| /' conftest.$ac_ext >&5
17950
17951 ac_header_preproc=no
17952 fi
17953
17954 rm -f conftest.err conftest.$ac_ext
17955 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17956 echo "${ECHO_T}$ac_header_preproc" >&6; }
17957
17958 # So? What about this header?
17959 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17960 yes:no: )
17961 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17962 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17963 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17964 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17965 ac_header_preproc=yes
17966 ;;
17967 no:yes:* )
17968 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17969 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17970 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17971 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17972 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17973 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17974 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17975 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17976 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17977 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17978 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17979 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17980
17981 ;;
17982 esac
17983 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17984 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17986 echo $ECHO_N "(cached) $ECHO_C" >&6
17987 else
17988 eval "$as_ac_Header=\$ac_header_preproc"
17989 fi
17990 ac_res=`eval echo '${'$as_ac_Header'}'`
17991 { echo "$as_me:$LINENO: result: $ac_res" >&5
17992 echo "${ECHO_T}$ac_res" >&6; }
17993
17994 fi
17995 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17996 cat >>confdefs.h <<_ACEOF
17997 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17998 _ACEOF
17999 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18000 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18001 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18002 echo $ECHO_N "(cached) $ECHO_C" >&6
18003 else
18004 cat >conftest.$ac_ext <<_ACEOF
18005 /* confdefs.h. */
18006 _ACEOF
18007 cat confdefs.h >>conftest.$ac_ext
18008 cat >>conftest.$ac_ext <<_ACEOF
18009 /* end confdefs.h. */
18010 #include <nlist.h>
18011
18012 int
18013 main ()
18014 {
18015 static struct nlist ac_aggr;
18016 if (ac_aggr.n_un.n_name)
18017 return 0;
18018 ;
18019 return 0;
18020 }
18021 _ACEOF
18022 rm -f conftest.$ac_objext
18023 if { (ac_try="$ac_compile"
18024 case "(($ac_try" in
18025 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18026 *) ac_try_echo=$ac_try;;
18027 esac
18028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18029 (eval "$ac_compile") 2>conftest.er1
18030 ac_status=$?
18031 grep -v '^ *+' conftest.er1 >conftest.err
18032 rm -f conftest.er1
18033 cat conftest.err >&5
18034 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035 (exit $ac_status); } && {
18036 test -z "$ac_c_werror_flag" ||
18037 test ! -s conftest.err
18038 } && test -s conftest.$ac_objext; then
18039 ac_cv_member_struct_nlist_n_un_n_name=yes
18040 else
18041 echo "$as_me: failed program was:" >&5
18042 sed 's/^/| /' conftest.$ac_ext >&5
18043
18044 cat >conftest.$ac_ext <<_ACEOF
18045 /* confdefs.h. */
18046 _ACEOF
18047 cat confdefs.h >>conftest.$ac_ext
18048 cat >>conftest.$ac_ext <<_ACEOF
18049 /* end confdefs.h. */
18050 #include <nlist.h>
18051
18052 int
18053 main ()
18054 {
18055 static struct nlist ac_aggr;
18056 if (sizeof ac_aggr.n_un.n_name)
18057 return 0;
18058 ;
18059 return 0;
18060 }
18061 _ACEOF
18062 rm -f conftest.$ac_objext
18063 if { (ac_try="$ac_compile"
18064 case "(($ac_try" in
18065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18066 *) ac_try_echo=$ac_try;;
18067 esac
18068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18069 (eval "$ac_compile") 2>conftest.er1
18070 ac_status=$?
18071 grep -v '^ *+' conftest.er1 >conftest.err
18072 rm -f conftest.er1
18073 cat conftest.err >&5
18074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18075 (exit $ac_status); } && {
18076 test -z "$ac_c_werror_flag" ||
18077 test ! -s conftest.err
18078 } && test -s conftest.$ac_objext; then
18079 ac_cv_member_struct_nlist_n_un_n_name=yes
18080 else
18081 echo "$as_me: failed program was:" >&5
18082 sed 's/^/| /' conftest.$ac_ext >&5
18083
18084 ac_cv_member_struct_nlist_n_un_n_name=no
18085 fi
18086
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18088 fi
18089
18090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18091 fi
18092 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18093 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18094 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18095
18096 cat >>confdefs.h <<_ACEOF
18097 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18098 _ACEOF
18099
18100
18101 cat >>confdefs.h <<\_ACEOF
18102 #define NLIST_NAME_UNION 1
18103 _ACEOF
18104
18105 fi
18106
18107
18108 fi
18109
18110 done
18111
18112 fi
18113 done
18114
18115
18116 # Some definitions of getloadavg require that the program be installed setgid.
18117 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18118 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18119 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18120 echo $ECHO_N "(cached) $ECHO_C" >&6
18121 else
18122 cat >conftest.$ac_ext <<_ACEOF
18123 /* confdefs.h. */
18124 _ACEOF
18125 cat confdefs.h >>conftest.$ac_ext
18126 cat >>conftest.$ac_ext <<_ACEOF
18127 /* end confdefs.h. */
18128 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18129 #ifdef LDAV_PRIVILEGED
18130 Yowza Am I SETGID yet
18131 #endif
18132 _ACEOF
18133 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18134 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18135 ac_cv_func_getloadavg_setgid=yes
18136 else
18137 ac_cv_func_getloadavg_setgid=no
18138 fi
18139 rm -f conftest*
18140
18141 fi
18142 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18143 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18144 if test $ac_cv_func_getloadavg_setgid = yes; then
18145 NEED_SETGID=true
18146
18147 cat >>confdefs.h <<\_ACEOF
18148 #define GETLOADAVG_PRIVILEGED 1
18149 _ACEOF
18150
18151 else
18152 NEED_SETGID=false
18153 fi
18154
18155 if test $ac_cv_func_getloadavg_setgid = yes; then
18156 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18157 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18158 if test "${ac_cv_group_kmem+set}" = set; then
18159 echo $ECHO_N "(cached) $ECHO_C" >&6
18160 else
18161 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18162 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18163 # If we got an error (system does not support symlinks), try without -L.
18164 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18165 ac_cv_group_kmem=`echo $ac_ls_output \
18166 | sed -ne 's/[ ][ ]*/ /g;
18167 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18168 / /s/.* //;p;'`
18169
18170 fi
18171 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18172 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18173 KMEM_GROUP=$ac_cv_group_kmem
18174 fi
18175 if test "x$ac_save_LIBS" = x; then
18176 GETLOADAVG_LIBS=$LIBS
18177 else
18178 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18179 fi
18180 LIBS=$ac_save_LIBS
18181
18182
18183
18184 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18185 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18186 if test "${ac_cv_sys_largefile_source+set}" = set; then
18187 echo $ECHO_N "(cached) $ECHO_C" >&6
18188 else
18189 while :; do
18190 cat >conftest.$ac_ext <<_ACEOF
18191 /* confdefs.h. */
18192 _ACEOF
18193 cat confdefs.h >>conftest.$ac_ext
18194 cat >>conftest.$ac_ext <<_ACEOF
18195 /* end confdefs.h. */
18196 #include <stdio.h>
18197 int
18198 main ()
18199 {
18200 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18201 ;
18202 return 0;
18203 }
18204 _ACEOF
18205 rm -f conftest.$ac_objext conftest$ac_exeext
18206 if { (ac_try="$ac_link"
18207 case "(($ac_try" in
18208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18209 *) ac_try_echo=$ac_try;;
18210 esac
18211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18212 (eval "$ac_link") 2>conftest.er1
18213 ac_status=$?
18214 grep -v '^ *+' conftest.er1 >conftest.err
18215 rm -f conftest.er1
18216 cat conftest.err >&5
18217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18218 (exit $ac_status); } && {
18219 test -z "$ac_c_werror_flag" ||
18220 test ! -s conftest.err
18221 } && test -s conftest$ac_exeext &&
18222 $as_test_x conftest$ac_exeext; then
18223 ac_cv_sys_largefile_source=no; break
18224 else
18225 echo "$as_me: failed program was:" >&5
18226 sed 's/^/| /' conftest.$ac_ext >&5
18227
18228
18229 fi
18230
18231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18232 conftest$ac_exeext conftest.$ac_ext
18233 cat >conftest.$ac_ext <<_ACEOF
18234 /* confdefs.h. */
18235 _ACEOF
18236 cat confdefs.h >>conftest.$ac_ext
18237 cat >>conftest.$ac_ext <<_ACEOF
18238 /* end confdefs.h. */
18239 #define _LARGEFILE_SOURCE 1
18240 #include <stdio.h>
18241 int
18242 main ()
18243 {
18244 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18245 ;
18246 return 0;
18247 }
18248 _ACEOF
18249 rm -f conftest.$ac_objext conftest$ac_exeext
18250 if { (ac_try="$ac_link"
18251 case "(($ac_try" in
18252 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18253 *) ac_try_echo=$ac_try;;
18254 esac
18255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18256 (eval "$ac_link") 2>conftest.er1
18257 ac_status=$?
18258 grep -v '^ *+' conftest.er1 >conftest.err
18259 rm -f conftest.er1
18260 cat conftest.err >&5
18261 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262 (exit $ac_status); } && {
18263 test -z "$ac_c_werror_flag" ||
18264 test ! -s conftest.err
18265 } && test -s conftest$ac_exeext &&
18266 $as_test_x conftest$ac_exeext; then
18267 ac_cv_sys_largefile_source=1; break
18268 else
18269 echo "$as_me: failed program was:" >&5
18270 sed 's/^/| /' conftest.$ac_ext >&5
18271
18272
18273 fi
18274
18275 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18276 conftest$ac_exeext conftest.$ac_ext
18277 ac_cv_sys_largefile_source=unknown
18278 break
18279 done
18280 fi
18281 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18282 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18283 case $ac_cv_sys_largefile_source in #(
18284 no | unknown) ;;
18285 *)
18286 cat >>confdefs.h <<_ACEOF
18287 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18288 _ACEOF
18289 ;;
18290 esac
18291 rm -f conftest*
18292
18293 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18294 # in glibc 2.1.3, but that breaks too many other things.
18295 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18296 if test $ac_cv_sys_largefile_source != unknown; then
18297
18298 cat >>confdefs.h <<\_ACEOF
18299 #define HAVE_FSEEKO 1
18300 _ACEOF
18301
18302 fi
18303
18304
18305 # Configure getopt.
18306 # getopt.m4 serial 10
18307
18308 # The getopt module assume you want GNU getopt, with getopt_long etc,
18309 # rather than vanilla POSIX getopt. This means your your code should
18310 # always include <getopt.h> for the getopt prototypes.
18311
18312
18313
18314
18315
18316
18317
18318
18319
18320
18321
18322 # Prerequisites of lib/getopt*.
18323
18324
18325
18326
18327 GETOPT_H=
18328
18329 for ac_header in getopt.h
18330 do
18331 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18333 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18334 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18335 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18336 echo $ECHO_N "(cached) $ECHO_C" >&6
18337 fi
18338 ac_res=`eval echo '${'$as_ac_Header'}'`
18339 { echo "$as_me:$LINENO: result: $ac_res" >&5
18340 echo "${ECHO_T}$ac_res" >&6; }
18341 else
18342 # Is the header compilable?
18343 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18344 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18345 cat >conftest.$ac_ext <<_ACEOF
18346 /* confdefs.h. */
18347 _ACEOF
18348 cat confdefs.h >>conftest.$ac_ext
18349 cat >>conftest.$ac_ext <<_ACEOF
18350 /* end confdefs.h. */
18351 $ac_includes_default
18352 #include <$ac_header>
18353 _ACEOF
18354 rm -f conftest.$ac_objext
18355 if { (ac_try="$ac_compile"
18356 case "(($ac_try" in
18357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358 *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361 (eval "$ac_compile") 2>conftest.er1
18362 ac_status=$?
18363 grep -v '^ *+' conftest.er1 >conftest.err
18364 rm -f conftest.er1
18365 cat conftest.err >&5
18366 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18367 (exit $ac_status); } && {
18368 test -z "$ac_c_werror_flag" ||
18369 test ! -s conftest.err
18370 } && test -s conftest.$ac_objext; then
18371 ac_header_compiler=yes
18372 else
18373 echo "$as_me: failed program was:" >&5
18374 sed 's/^/| /' conftest.$ac_ext >&5
18375
18376 ac_header_compiler=no
18377 fi
18378
18379 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18380 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18381 echo "${ECHO_T}$ac_header_compiler" >&6; }
18382
18383 # Is the header present?
18384 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18385 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18386 cat >conftest.$ac_ext <<_ACEOF
18387 /* confdefs.h. */
18388 _ACEOF
18389 cat confdefs.h >>conftest.$ac_ext
18390 cat >>conftest.$ac_ext <<_ACEOF
18391 /* end confdefs.h. */
18392 #include <$ac_header>
18393 _ACEOF
18394 if { (ac_try="$ac_cpp conftest.$ac_ext"
18395 case "(($ac_try" in
18396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18397 *) ac_try_echo=$ac_try;;
18398 esac
18399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18400 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18401 ac_status=$?
18402 grep -v '^ *+' conftest.er1 >conftest.err
18403 rm -f conftest.er1
18404 cat conftest.err >&5
18405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18406 (exit $ac_status); } >/dev/null && {
18407 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18408 test ! -s conftest.err
18409 }; then
18410 ac_header_preproc=yes
18411 else
18412 echo "$as_me: failed program was:" >&5
18413 sed 's/^/| /' conftest.$ac_ext >&5
18414
18415 ac_header_preproc=no
18416 fi
18417
18418 rm -f conftest.err conftest.$ac_ext
18419 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18420 echo "${ECHO_T}$ac_header_preproc" >&6; }
18421
18422 # So? What about this header?
18423 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18424 yes:no: )
18425 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18426 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18427 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18428 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18429 ac_header_preproc=yes
18430 ;;
18431 no:yes:* )
18432 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18433 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18434 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18435 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18436 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18437 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18438 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18439 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18440 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18441 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18442 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18443 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18444
18445 ;;
18446 esac
18447 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18448 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18449 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18450 echo $ECHO_N "(cached) $ECHO_C" >&6
18451 else
18452 eval "$as_ac_Header=\$ac_header_preproc"
18453 fi
18454 ac_res=`eval echo '${'$as_ac_Header'}'`
18455 { echo "$as_me:$LINENO: result: $ac_res" >&5
18456 echo "${ECHO_T}$ac_res" >&6; }
18457
18458 fi
18459 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18460 cat >>confdefs.h <<_ACEOF
18461 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18462 _ACEOF
18463
18464 else
18465 GETOPT_H=getopt.h
18466 fi
18467
18468 done
18469
18470 if test -z "$GETOPT_H"; then
18471
18472 for ac_func in getopt_long_only
18473 do
18474 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18475 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18476 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18477 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18478 echo $ECHO_N "(cached) $ECHO_C" >&6
18479 else
18480 cat >conftest.$ac_ext <<_ACEOF
18481 /* confdefs.h. */
18482 _ACEOF
18483 cat confdefs.h >>conftest.$ac_ext
18484 cat >>conftest.$ac_ext <<_ACEOF
18485 /* end confdefs.h. */
18486 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18487 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18488 #define $ac_func innocuous_$ac_func
18489
18490 /* System header to define __stub macros and hopefully few prototypes,
18491 which can conflict with char $ac_func (); below.
18492 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18493 <limits.h> exists even on freestanding compilers. */
18494
18495 #ifdef __STDC__
18496 # include <limits.h>
18497 #else
18498 # include <assert.h>
18499 #endif
18500
18501 #undef $ac_func
18502
18503 /* Override any GCC internal prototype to avoid an error.
18504 Use char because int might match the return type of a GCC
18505 builtin and then its argument prototype would still apply. */
18506 #ifdef __cplusplus
18507 extern "C"
18508 #endif
18509 char $ac_func ();
18510 /* The GNU C library defines this for functions which it implements
18511 to always fail with ENOSYS. Some functions are actually named
18512 something starting with __ and the normal name is an alias. */
18513 #if defined __stub_$ac_func || defined __stub___$ac_func
18514 choke me
18515 #endif
18516
18517 int
18518 main ()
18519 {
18520 return $ac_func ();
18521 ;
18522 return 0;
18523 }
18524 _ACEOF
18525 rm -f conftest.$ac_objext conftest$ac_exeext
18526 if { (ac_try="$ac_link"
18527 case "(($ac_try" in
18528 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18529 *) ac_try_echo=$ac_try;;
18530 esac
18531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18532 (eval "$ac_link") 2>conftest.er1
18533 ac_status=$?
18534 grep -v '^ *+' conftest.er1 >conftest.err
18535 rm -f conftest.er1
18536 cat conftest.err >&5
18537 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18538 (exit $ac_status); } && {
18539 test -z "$ac_c_werror_flag" ||
18540 test ! -s conftest.err
18541 } && test -s conftest$ac_exeext &&
18542 $as_test_x conftest$ac_exeext; then
18543 eval "$as_ac_var=yes"
18544 else
18545 echo "$as_me: failed program was:" >&5
18546 sed 's/^/| /' conftest.$ac_ext >&5
18547
18548 eval "$as_ac_var=no"
18549 fi
18550
18551 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18552 conftest$ac_exeext conftest.$ac_ext
18553 fi
18554 ac_res=`eval echo '${'$as_ac_var'}'`
18555 { echo "$as_me:$LINENO: result: $ac_res" >&5
18556 echo "${ECHO_T}$ac_res" >&6; }
18557 if test `eval echo '${'$as_ac_var'}'` = yes; then
18558 cat >>confdefs.h <<_ACEOF
18559 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18560 _ACEOF
18561
18562 else
18563 GETOPT_H=getopt.h
18564 fi
18565 done
18566
18567 fi
18568
18569 if test -z "$GETOPT_H"; then
18570 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18571 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18572 if test "${ac_cv_have_decl_optreset+set}" = set; then
18573 echo $ECHO_N "(cached) $ECHO_C" >&6
18574 else
18575 cat >conftest.$ac_ext <<_ACEOF
18576 /* confdefs.h. */
18577 _ACEOF
18578 cat confdefs.h >>conftest.$ac_ext
18579 cat >>conftest.$ac_ext <<_ACEOF
18580 /* end confdefs.h. */
18581 #include <getopt.h>
18582
18583 int
18584 main ()
18585 {
18586 #ifndef optreset
18587 (void) optreset;
18588 #endif
18589
18590 ;
18591 return 0;
18592 }
18593 _ACEOF
18594 rm -f conftest.$ac_objext
18595 if { (ac_try="$ac_compile"
18596 case "(($ac_try" in
18597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18598 *) ac_try_echo=$ac_try;;
18599 esac
18600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18601 (eval "$ac_compile") 2>conftest.er1
18602 ac_status=$?
18603 grep -v '^ *+' conftest.er1 >conftest.err
18604 rm -f conftest.er1
18605 cat conftest.err >&5
18606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18607 (exit $ac_status); } && {
18608 test -z "$ac_c_werror_flag" ||
18609 test ! -s conftest.err
18610 } && test -s conftest.$ac_objext; then
18611 ac_cv_have_decl_optreset=yes
18612 else
18613 echo "$as_me: failed program was:" >&5
18614 sed 's/^/| /' conftest.$ac_ext >&5
18615
18616 ac_cv_have_decl_optreset=no
18617 fi
18618
18619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18620 fi
18621 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18622 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18623 if test $ac_cv_have_decl_optreset = yes; then
18624 GETOPT_H=getopt.h
18625 fi
18626
18627 fi
18628
18629 if test -z "$GETOPT_H"; then
18630 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18631 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18632 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18633 echo $ECHO_N "(cached) $ECHO_C" >&6
18634 else
18635 if test "$cross_compiling" = yes; then
18636 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18637 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18638 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18639 echo $ECHO_N "(cached) $ECHO_C" >&6
18640 else
18641 cat >conftest.$ac_ext <<_ACEOF
18642 /* confdefs.h. */
18643 _ACEOF
18644 cat confdefs.h >>conftest.$ac_ext
18645 cat >>conftest.$ac_ext <<_ACEOF
18646 /* end confdefs.h. */
18647 #include <getopt.h>
18648
18649 int
18650 main ()
18651 {
18652 #ifndef getopt_clip
18653 (void) getopt_clip;
18654 #endif
18655
18656 ;
18657 return 0;
18658 }
18659 _ACEOF
18660 rm -f conftest.$ac_objext
18661 if { (ac_try="$ac_compile"
18662 case "(($ac_try" in
18663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18664 *) ac_try_echo=$ac_try;;
18665 esac
18666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18667 (eval "$ac_compile") 2>conftest.er1
18668 ac_status=$?
18669 grep -v '^ *+' conftest.er1 >conftest.err
18670 rm -f conftest.er1
18671 cat conftest.err >&5
18672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18673 (exit $ac_status); } && {
18674 test -z "$ac_c_werror_flag" ||
18675 test ! -s conftest.err
18676 } && test -s conftest.$ac_objext; then
18677 ac_cv_have_decl_getopt_clip=yes
18678 else
18679 echo "$as_me: failed program was:" >&5
18680 sed 's/^/| /' conftest.$ac_ext >&5
18681
18682 ac_cv_have_decl_getopt_clip=no
18683 fi
18684
18685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18686 fi
18687 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18688 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18689 if test $ac_cv_have_decl_getopt_clip = yes; then
18690 gl_cv_func_gnu_getopt=no
18691 else
18692 gl_cv_func_gnu_getopt=yes
18693 fi
18694
18695 else
18696 cat >conftest.$ac_ext <<_ACEOF
18697 /* confdefs.h. */
18698 _ACEOF
18699 cat confdefs.h >>conftest.$ac_ext
18700 cat >>conftest.$ac_ext <<_ACEOF
18701 /* end confdefs.h. */
18702 #include <getopt.h>
18703 int
18704 main ()
18705 {
18706
18707 char *myargv[3];
18708 myargv[0] = "conftest";
18709 myargv[1] = "-+";
18710 myargv[2] = 0;
18711 return getopt (2, myargv, "+a") != '?';
18712
18713 ;
18714 return 0;
18715 }
18716 _ACEOF
18717 rm -f conftest$ac_exeext
18718 if { (ac_try="$ac_link"
18719 case "(($ac_try" in
18720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18721 *) ac_try_echo=$ac_try;;
18722 esac
18723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18724 (eval "$ac_link") 2>&5
18725 ac_status=$?
18726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18727 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18728 { (case "(($ac_try" in
18729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18730 *) ac_try_echo=$ac_try;;
18731 esac
18732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18733 (eval "$ac_try") 2>&5
18734 ac_status=$?
18735 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18736 (exit $ac_status); }; }; then
18737 gl_cv_func_gnu_getopt=yes
18738 else
18739 echo "$as_me: program exited with status $ac_status" >&5
18740 echo "$as_me: failed program was:" >&5
18741 sed 's/^/| /' conftest.$ac_ext >&5
18742
18743 ( exit $ac_status )
18744 gl_cv_func_gnu_getopt=no
18745 fi
18746 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18747 fi
18748
18749
18750 fi
18751 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18752 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18753 if test "$gl_cv_func_gnu_getopt" = "no"; then
18754 GETOPT_H=getopt.h
18755 fi
18756 fi
18757
18758
18759
18760 if test -n "$GETOPT_H"; then
18761
18762
18763 GETOPT_H=getopt.h
18764
18765 cat >>confdefs.h <<\_ACEOF
18766 #define __GETOPT_PREFIX rpl_
18767 _ACEOF
18768
18769
18770
18771 :
18772 GETOPTOBJS='getopt.o getopt1.o'
18773
18774 fi
18775
18776
18777
18778
18779 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18780 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18781 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18782 echo $ECHO_N "(cached) $ECHO_C" >&6
18783 else
18784 # Use it with a single arg.
18785 cat >conftest.$ac_ext <<_ACEOF
18786 /* confdefs.h. */
18787 _ACEOF
18788 cat confdefs.h >>conftest.$ac_ext
18789 cat >>conftest.$ac_ext <<_ACEOF
18790 /* end confdefs.h. */
18791 $ac_includes_default
18792 int
18793 main ()
18794 {
18795 getpgrp (0);
18796 ;
18797 return 0;
18798 }
18799 _ACEOF
18800 rm -f conftest.$ac_objext
18801 if { (ac_try="$ac_compile"
18802 case "(($ac_try" in
18803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18804 *) ac_try_echo=$ac_try;;
18805 esac
18806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18807 (eval "$ac_compile") 2>conftest.er1
18808 ac_status=$?
18809 grep -v '^ *+' conftest.er1 >conftest.err
18810 rm -f conftest.er1
18811 cat conftest.err >&5
18812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18813 (exit $ac_status); } && {
18814 test -z "$ac_c_werror_flag" ||
18815 test ! -s conftest.err
18816 } && test -s conftest.$ac_objext; then
18817 ac_cv_func_getpgrp_void=no
18818 else
18819 echo "$as_me: failed program was:" >&5
18820 sed 's/^/| /' conftest.$ac_ext >&5
18821
18822 ac_cv_func_getpgrp_void=yes
18823 fi
18824
18825 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18826
18827 fi
18828 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18829 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18830 if test $ac_cv_func_getpgrp_void = yes; then
18831
18832 cat >>confdefs.h <<\_ACEOF
18833 #define GETPGRP_VOID 1
18834 _ACEOF
18835
18836 fi
18837
18838
18839
18840 for ac_func in strftime
18841 do
18842 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18843 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18844 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18845 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18846 echo $ECHO_N "(cached) $ECHO_C" >&6
18847 else
18848 cat >conftest.$ac_ext <<_ACEOF
18849 /* confdefs.h. */
18850 _ACEOF
18851 cat confdefs.h >>conftest.$ac_ext
18852 cat >>conftest.$ac_ext <<_ACEOF
18853 /* end confdefs.h. */
18854 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18856 #define $ac_func innocuous_$ac_func
18857
18858 /* System header to define __stub macros and hopefully few prototypes,
18859 which can conflict with char $ac_func (); below.
18860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18861 <limits.h> exists even on freestanding compilers. */
18862
18863 #ifdef __STDC__
18864 # include <limits.h>
18865 #else
18866 # include <assert.h>
18867 #endif
18868
18869 #undef $ac_func
18870
18871 /* Override any GCC internal prototype to avoid an error.
18872 Use char because int might match the return type of a GCC
18873 builtin and then its argument prototype would still apply. */
18874 #ifdef __cplusplus
18875 extern "C"
18876 #endif
18877 char $ac_func ();
18878 /* The GNU C library defines this for functions which it implements
18879 to always fail with ENOSYS. Some functions are actually named
18880 something starting with __ and the normal name is an alias. */
18881 #if defined __stub_$ac_func || defined __stub___$ac_func
18882 choke me
18883 #endif
18884
18885 int
18886 main ()
18887 {
18888 return $ac_func ();
18889 ;
18890 return 0;
18891 }
18892 _ACEOF
18893 rm -f conftest.$ac_objext conftest$ac_exeext
18894 if { (ac_try="$ac_link"
18895 case "(($ac_try" in
18896 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18897 *) ac_try_echo=$ac_try;;
18898 esac
18899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18900 (eval "$ac_link") 2>conftest.er1
18901 ac_status=$?
18902 grep -v '^ *+' conftest.er1 >conftest.err
18903 rm -f conftest.er1
18904 cat conftest.err >&5
18905 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18906 (exit $ac_status); } && {
18907 test -z "$ac_c_werror_flag" ||
18908 test ! -s conftest.err
18909 } && test -s conftest$ac_exeext &&
18910 $as_test_x conftest$ac_exeext; then
18911 eval "$as_ac_var=yes"
18912 else
18913 echo "$as_me: failed program was:" >&5
18914 sed 's/^/| /' conftest.$ac_ext >&5
18915
18916 eval "$as_ac_var=no"
18917 fi
18918
18919 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18920 conftest$ac_exeext conftest.$ac_ext
18921 fi
18922 ac_res=`eval echo '${'$as_ac_var'}'`
18923 { echo "$as_me:$LINENO: result: $ac_res" >&5
18924 echo "${ECHO_T}$ac_res" >&6; }
18925 if test `eval echo '${'$as_ac_var'}'` = yes; then
18926 cat >>confdefs.h <<_ACEOF
18927 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18928 _ACEOF
18929
18930 else
18931 # strftime is in -lintl on SCO UNIX.
18932 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18933 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18934 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18935 echo $ECHO_N "(cached) $ECHO_C" >&6
18936 else
18937 ac_check_lib_save_LIBS=$LIBS
18938 LIBS="-lintl $LIBS"
18939 cat >conftest.$ac_ext <<_ACEOF
18940 /* confdefs.h. */
18941 _ACEOF
18942 cat confdefs.h >>conftest.$ac_ext
18943 cat >>conftest.$ac_ext <<_ACEOF
18944 /* end confdefs.h. */
18945
18946 /* Override any GCC internal prototype to avoid an error.
18947 Use char because int might match the return type of a GCC
18948 builtin and then its argument prototype would still apply. */
18949 #ifdef __cplusplus
18950 extern "C"
18951 #endif
18952 char strftime ();
18953 int
18954 main ()
18955 {
18956 return strftime ();
18957 ;
18958 return 0;
18959 }
18960 _ACEOF
18961 rm -f conftest.$ac_objext conftest$ac_exeext
18962 if { (ac_try="$ac_link"
18963 case "(($ac_try" in
18964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18965 *) ac_try_echo=$ac_try;;
18966 esac
18967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18968 (eval "$ac_link") 2>conftest.er1
18969 ac_status=$?
18970 grep -v '^ *+' conftest.er1 >conftest.err
18971 rm -f conftest.er1
18972 cat conftest.err >&5
18973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18974 (exit $ac_status); } && {
18975 test -z "$ac_c_werror_flag" ||
18976 test ! -s conftest.err
18977 } && test -s conftest$ac_exeext &&
18978 $as_test_x conftest$ac_exeext; then
18979 ac_cv_lib_intl_strftime=yes
18980 else
18981 echo "$as_me: failed program was:" >&5
18982 sed 's/^/| /' conftest.$ac_ext >&5
18983
18984 ac_cv_lib_intl_strftime=no
18985 fi
18986
18987 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18988 conftest$ac_exeext conftest.$ac_ext
18989 LIBS=$ac_check_lib_save_LIBS
18990 fi
18991 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
18992 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
18993 if test $ac_cv_lib_intl_strftime = yes; then
18994 cat >>confdefs.h <<\_ACEOF
18995 #define HAVE_STRFTIME 1
18996 _ACEOF
18997
18998 LIBS="-lintl $LIBS"
18999 fi
19000
19001 fi
19002 done
19003
19004
19005 # UNIX98 PTYs.
19006
19007 for ac_func in grantpt
19008 do
19009 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19010 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19011 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19012 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19013 echo $ECHO_N "(cached) $ECHO_C" >&6
19014 else
19015 cat >conftest.$ac_ext <<_ACEOF
19016 /* confdefs.h. */
19017 _ACEOF
19018 cat confdefs.h >>conftest.$ac_ext
19019 cat >>conftest.$ac_ext <<_ACEOF
19020 /* end confdefs.h. */
19021 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19022 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19023 #define $ac_func innocuous_$ac_func
19024
19025 /* System header to define __stub macros and hopefully few prototypes,
19026 which can conflict with char $ac_func (); below.
19027 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19028 <limits.h> exists even on freestanding compilers. */
19029
19030 #ifdef __STDC__
19031 # include <limits.h>
19032 #else
19033 # include <assert.h>
19034 #endif
19035
19036 #undef $ac_func
19037
19038 /* Override any GCC internal prototype to avoid an error.
19039 Use char because int might match the return type of a GCC
19040 builtin and then its argument prototype would still apply. */
19041 #ifdef __cplusplus
19042 extern "C"
19043 #endif
19044 char $ac_func ();
19045 /* The GNU C library defines this for functions which it implements
19046 to always fail with ENOSYS. Some functions are actually named
19047 something starting with __ and the normal name is an alias. */
19048 #if defined __stub_$ac_func || defined __stub___$ac_func
19049 choke me
19050 #endif
19051
19052 int
19053 main ()
19054 {
19055 return $ac_func ();
19056 ;
19057 return 0;
19058 }
19059 _ACEOF
19060 rm -f conftest.$ac_objext conftest$ac_exeext
19061 if { (ac_try="$ac_link"
19062 case "(($ac_try" in
19063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19064 *) ac_try_echo=$ac_try;;
19065 esac
19066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19067 (eval "$ac_link") 2>conftest.er1
19068 ac_status=$?
19069 grep -v '^ *+' conftest.er1 >conftest.err
19070 rm -f conftest.er1
19071 cat conftest.err >&5
19072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19073 (exit $ac_status); } && {
19074 test -z "$ac_c_werror_flag" ||
19075 test ! -s conftest.err
19076 } && test -s conftest$ac_exeext &&
19077 $as_test_x conftest$ac_exeext; then
19078 eval "$as_ac_var=yes"
19079 else
19080 echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083 eval "$as_ac_var=no"
19084 fi
19085
19086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19087 conftest$ac_exeext conftest.$ac_ext
19088 fi
19089 ac_res=`eval echo '${'$as_ac_var'}'`
19090 { echo "$as_me:$LINENO: result: $ac_res" >&5
19091 echo "${ECHO_T}$ac_res" >&6; }
19092 if test `eval echo '${'$as_ac_var'}'` = yes; then
19093 cat >>confdefs.h <<_ACEOF
19094 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19095 _ACEOF
19096
19097 fi
19098 done
19099
19100
19101 # PTY-related GNU extensions.
19102
19103 for ac_func in getpt
19104 do
19105 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19106 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19107 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19108 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19109 echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111 cat >conftest.$ac_ext <<_ACEOF
19112 /* confdefs.h. */
19113 _ACEOF
19114 cat confdefs.h >>conftest.$ac_ext
19115 cat >>conftest.$ac_ext <<_ACEOF
19116 /* end confdefs.h. */
19117 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19118 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19119 #define $ac_func innocuous_$ac_func
19120
19121 /* System header to define __stub macros and hopefully few prototypes,
19122 which can conflict with char $ac_func (); below.
19123 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19124 <limits.h> exists even on freestanding compilers. */
19125
19126 #ifdef __STDC__
19127 # include <limits.h>
19128 #else
19129 # include <assert.h>
19130 #endif
19131
19132 #undef $ac_func
19133
19134 /* Override any GCC internal prototype to avoid an error.
19135 Use char because int might match the return type of a GCC
19136 builtin and then its argument prototype would still apply. */
19137 #ifdef __cplusplus
19138 extern "C"
19139 #endif
19140 char $ac_func ();
19141 /* The GNU C library defines this for functions which it implements
19142 to always fail with ENOSYS. Some functions are actually named
19143 something starting with __ and the normal name is an alias. */
19144 #if defined __stub_$ac_func || defined __stub___$ac_func
19145 choke me
19146 #endif
19147
19148 int
19149 main ()
19150 {
19151 return $ac_func ();
19152 ;
19153 return 0;
19154 }
19155 _ACEOF
19156 rm -f conftest.$ac_objext conftest$ac_exeext
19157 if { (ac_try="$ac_link"
19158 case "(($ac_try" in
19159 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19160 *) ac_try_echo=$ac_try;;
19161 esac
19162 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19163 (eval "$ac_link") 2>conftest.er1
19164 ac_status=$?
19165 grep -v '^ *+' conftest.er1 >conftest.err
19166 rm -f conftest.er1
19167 cat conftest.err >&5
19168 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19169 (exit $ac_status); } && {
19170 test -z "$ac_c_werror_flag" ||
19171 test ! -s conftest.err
19172 } && test -s conftest$ac_exeext &&
19173 $as_test_x conftest$ac_exeext; then
19174 eval "$as_ac_var=yes"
19175 else
19176 echo "$as_me: failed program was:" >&5
19177 sed 's/^/| /' conftest.$ac_ext >&5
19178
19179 eval "$as_ac_var=no"
19180 fi
19181
19182 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19183 conftest$ac_exeext conftest.$ac_ext
19184 fi
19185 ac_res=`eval echo '${'$as_ac_var'}'`
19186 { echo "$as_me:$LINENO: result: $ac_res" >&5
19187 echo "${ECHO_T}$ac_res" >&6; }
19188 if test `eval echo '${'$as_ac_var'}'` = yes; then
19189 cat >>confdefs.h <<_ACEOF
19190 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19191 _ACEOF
19192
19193 fi
19194 done
19195
19196
19197 # Check this now, so that we will NOT find the above functions in ncurses.
19198 # That is because we have not set up to link ncurses in lib-src.
19199 # It's better to believe a function is not available
19200 # than to expect to find it in ncurses.
19201
19202 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19203 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19204 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19205 echo $ECHO_N "(cached) $ECHO_C" >&6
19206 else
19207 ac_check_lib_save_LIBS=$LIBS
19208 LIBS="-lncurses $LIBS"
19209 cat >conftest.$ac_ext <<_ACEOF
19210 /* confdefs.h. */
19211 _ACEOF
19212 cat confdefs.h >>conftest.$ac_ext
19213 cat >>conftest.$ac_ext <<_ACEOF
19214 /* end confdefs.h. */
19215
19216 /* Override any GCC internal prototype to avoid an error.
19217 Use char because int might match the return type of a GCC
19218 builtin and then its argument prototype would still apply. */
19219 #ifdef __cplusplus
19220 extern "C"
19221 #endif
19222 char tparm ();
19223 int
19224 main ()
19225 {
19226 return tparm ();
19227 ;
19228 return 0;
19229 }
19230 _ACEOF
19231 rm -f conftest.$ac_objext conftest$ac_exeext
19232 if { (ac_try="$ac_link"
19233 case "(($ac_try" in
19234 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19235 *) ac_try_echo=$ac_try;;
19236 esac
19237 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19238 (eval "$ac_link") 2>conftest.er1
19239 ac_status=$?
19240 grep -v '^ *+' conftest.er1 >conftest.err
19241 rm -f conftest.er1
19242 cat conftest.err >&5
19243 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19244 (exit $ac_status); } && {
19245 test -z "$ac_c_werror_flag" ||
19246 test ! -s conftest.err
19247 } && test -s conftest$ac_exeext &&
19248 $as_test_x conftest$ac_exeext; then
19249 ac_cv_lib_ncurses_tparm=yes
19250 else
19251 echo "$as_me: failed program was:" >&5
19252 sed 's/^/| /' conftest.$ac_ext >&5
19253
19254 ac_cv_lib_ncurses_tparm=no
19255 fi
19256
19257 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19258 conftest$ac_exeext conftest.$ac_ext
19259 LIBS=$ac_check_lib_save_LIBS
19260 fi
19261 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19262 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19263 if test $ac_cv_lib_ncurses_tparm = yes; then
19264 cat >>confdefs.h <<_ACEOF
19265 #define HAVE_LIBNCURSES 1
19266 _ACEOF
19267
19268 LIBS="-lncurses $LIBS"
19269
19270 fi
19271
19272
19273 # Do we need the Hesiod library to provide the support routines?
19274 if test "$with_hesiod" = yes ; then
19275 # Don't set $LIBS here -- see comments above.
19276 resolv=no
19277 { echo "$as_me:$LINENO: checking for res_send" >&5
19278 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19279 if test "${ac_cv_func_res_send+set}" = set; then
19280 echo $ECHO_N "(cached) $ECHO_C" >&6
19281 else
19282 cat >conftest.$ac_ext <<_ACEOF
19283 /* confdefs.h. */
19284 _ACEOF
19285 cat confdefs.h >>conftest.$ac_ext
19286 cat >>conftest.$ac_ext <<_ACEOF
19287 /* end confdefs.h. */
19288 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19289 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19290 #define res_send innocuous_res_send
19291
19292 /* System header to define __stub macros and hopefully few prototypes,
19293 which can conflict with char res_send (); below.
19294 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19295 <limits.h> exists even on freestanding compilers. */
19296
19297 #ifdef __STDC__
19298 # include <limits.h>
19299 #else
19300 # include <assert.h>
19301 #endif
19302
19303 #undef res_send
19304
19305 /* Override any GCC internal prototype to avoid an error.
19306 Use char because int might match the return type of a GCC
19307 builtin and then its argument prototype would still apply. */
19308 #ifdef __cplusplus
19309 extern "C"
19310 #endif
19311 char res_send ();
19312 /* The GNU C library defines this for functions which it implements
19313 to always fail with ENOSYS. Some functions are actually named
19314 something starting with __ and the normal name is an alias. */
19315 #if defined __stub_res_send || defined __stub___res_send
19316 choke me
19317 #endif
19318
19319 int
19320 main ()
19321 {
19322 return res_send ();
19323 ;
19324 return 0;
19325 }
19326 _ACEOF
19327 rm -f conftest.$ac_objext conftest$ac_exeext
19328 if { (ac_try="$ac_link"
19329 case "(($ac_try" in
19330 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19331 *) ac_try_echo=$ac_try;;
19332 esac
19333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19334 (eval "$ac_link") 2>conftest.er1
19335 ac_status=$?
19336 grep -v '^ *+' conftest.er1 >conftest.err
19337 rm -f conftest.er1
19338 cat conftest.err >&5
19339 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340 (exit $ac_status); } && {
19341 test -z "$ac_c_werror_flag" ||
19342 test ! -s conftest.err
19343 } && test -s conftest$ac_exeext &&
19344 $as_test_x conftest$ac_exeext; then
19345 ac_cv_func_res_send=yes
19346 else
19347 echo "$as_me: failed program was:" >&5
19348 sed 's/^/| /' conftest.$ac_ext >&5
19349
19350 ac_cv_func_res_send=no
19351 fi
19352
19353 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19354 conftest$ac_exeext conftest.$ac_ext
19355 fi
19356 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19357 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19358 if test $ac_cv_func_res_send = yes; then
19359 :
19360 else
19361 { echo "$as_me:$LINENO: checking for __res_send" >&5
19362 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19363 if test "${ac_cv_func___res_send+set}" = set; then
19364 echo $ECHO_N "(cached) $ECHO_C" >&6
19365 else
19366 cat >conftest.$ac_ext <<_ACEOF
19367 /* confdefs.h. */
19368 _ACEOF
19369 cat confdefs.h >>conftest.$ac_ext
19370 cat >>conftest.$ac_ext <<_ACEOF
19371 /* end confdefs.h. */
19372 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19373 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19374 #define __res_send innocuous___res_send
19375
19376 /* System header to define __stub macros and hopefully few prototypes,
19377 which can conflict with char __res_send (); below.
19378 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19379 <limits.h> exists even on freestanding compilers. */
19380
19381 #ifdef __STDC__
19382 # include <limits.h>
19383 #else
19384 # include <assert.h>
19385 #endif
19386
19387 #undef __res_send
19388
19389 /* Override any GCC internal prototype to avoid an error.
19390 Use char because int might match the return type of a GCC
19391 builtin and then its argument prototype would still apply. */
19392 #ifdef __cplusplus
19393 extern "C"
19394 #endif
19395 char __res_send ();
19396 /* The GNU C library defines this for functions which it implements
19397 to always fail with ENOSYS. Some functions are actually named
19398 something starting with __ and the normal name is an alias. */
19399 #if defined __stub___res_send || defined __stub_____res_send
19400 choke me
19401 #endif
19402
19403 int
19404 main ()
19405 {
19406 return __res_send ();
19407 ;
19408 return 0;
19409 }
19410 _ACEOF
19411 rm -f conftest.$ac_objext conftest$ac_exeext
19412 if { (ac_try="$ac_link"
19413 case "(($ac_try" in
19414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415 *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418 (eval "$ac_link") 2>conftest.er1
19419 ac_status=$?
19420 grep -v '^ *+' conftest.er1 >conftest.err
19421 rm -f conftest.er1
19422 cat conftest.err >&5
19423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424 (exit $ac_status); } && {
19425 test -z "$ac_c_werror_flag" ||
19426 test ! -s conftest.err
19427 } && test -s conftest$ac_exeext &&
19428 $as_test_x conftest$ac_exeext; then
19429 ac_cv_func___res_send=yes
19430 else
19431 echo "$as_me: failed program was:" >&5
19432 sed 's/^/| /' conftest.$ac_ext >&5
19433
19434 ac_cv_func___res_send=no
19435 fi
19436
19437 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19438 conftest$ac_exeext conftest.$ac_ext
19439 fi
19440 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19441 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19442 if test $ac_cv_func___res_send = yes; then
19443 :
19444 else
19445 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19446 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19447 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19448 echo $ECHO_N "(cached) $ECHO_C" >&6
19449 else
19450 ac_check_lib_save_LIBS=$LIBS
19451 LIBS="-lresolv $LIBS"
19452 cat >conftest.$ac_ext <<_ACEOF
19453 /* confdefs.h. */
19454 _ACEOF
19455 cat confdefs.h >>conftest.$ac_ext
19456 cat >>conftest.$ac_ext <<_ACEOF
19457 /* end confdefs.h. */
19458
19459 /* Override any GCC internal prototype to avoid an error.
19460 Use char because int might match the return type of a GCC
19461 builtin and then its argument prototype would still apply. */
19462 #ifdef __cplusplus
19463 extern "C"
19464 #endif
19465 char res_send ();
19466 int
19467 main ()
19468 {
19469 return res_send ();
19470 ;
19471 return 0;
19472 }
19473 _ACEOF
19474 rm -f conftest.$ac_objext conftest$ac_exeext
19475 if { (ac_try="$ac_link"
19476 case "(($ac_try" in
19477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19478 *) ac_try_echo=$ac_try;;
19479 esac
19480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19481 (eval "$ac_link") 2>conftest.er1
19482 ac_status=$?
19483 grep -v '^ *+' conftest.er1 >conftest.err
19484 rm -f conftest.er1
19485 cat conftest.err >&5
19486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19487 (exit $ac_status); } && {
19488 test -z "$ac_c_werror_flag" ||
19489 test ! -s conftest.err
19490 } && test -s conftest$ac_exeext &&
19491 $as_test_x conftest$ac_exeext; then
19492 ac_cv_lib_resolv_res_send=yes
19493 else
19494 echo "$as_me: failed program was:" >&5
19495 sed 's/^/| /' conftest.$ac_ext >&5
19496
19497 ac_cv_lib_resolv_res_send=no
19498 fi
19499
19500 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19501 conftest$ac_exeext conftest.$ac_ext
19502 LIBS=$ac_check_lib_save_LIBS
19503 fi
19504 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19505 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19506 if test $ac_cv_lib_resolv_res_send = yes; then
19507 resolv=yes
19508 else
19509 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19510 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19511 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19512 echo $ECHO_N "(cached) $ECHO_C" >&6
19513 else
19514 ac_check_lib_save_LIBS=$LIBS
19515 LIBS="-lresolv $LIBS"
19516 cat >conftest.$ac_ext <<_ACEOF
19517 /* confdefs.h. */
19518 _ACEOF
19519 cat confdefs.h >>conftest.$ac_ext
19520 cat >>conftest.$ac_ext <<_ACEOF
19521 /* end confdefs.h. */
19522
19523 /* Override any GCC internal prototype to avoid an error.
19524 Use char because int might match the return type of a GCC
19525 builtin and then its argument prototype would still apply. */
19526 #ifdef __cplusplus
19527 extern "C"
19528 #endif
19529 char __res_send ();
19530 int
19531 main ()
19532 {
19533 return __res_send ();
19534 ;
19535 return 0;
19536 }
19537 _ACEOF
19538 rm -f conftest.$ac_objext conftest$ac_exeext
19539 if { (ac_try="$ac_link"
19540 case "(($ac_try" in
19541 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19542 *) ac_try_echo=$ac_try;;
19543 esac
19544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19545 (eval "$ac_link") 2>conftest.er1
19546 ac_status=$?
19547 grep -v '^ *+' conftest.er1 >conftest.err
19548 rm -f conftest.er1
19549 cat conftest.err >&5
19550 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19551 (exit $ac_status); } && {
19552 test -z "$ac_c_werror_flag" ||
19553 test ! -s conftest.err
19554 } && test -s conftest$ac_exeext &&
19555 $as_test_x conftest$ac_exeext; then
19556 ac_cv_lib_resolv___res_send=yes
19557 else
19558 echo "$as_me: failed program was:" >&5
19559 sed 's/^/| /' conftest.$ac_ext >&5
19560
19561 ac_cv_lib_resolv___res_send=no
19562 fi
19563
19564 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19565 conftest$ac_exeext conftest.$ac_ext
19566 LIBS=$ac_check_lib_save_LIBS
19567 fi
19568 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19569 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19570 if test $ac_cv_lib_resolv___res_send = yes; then
19571 resolv=yes
19572 fi
19573
19574 fi
19575
19576 fi
19577
19578 fi
19579
19580 if test "$resolv" = yes ; then
19581 RESOLVLIB=-lresolv
19582
19583 cat >>confdefs.h <<\_ACEOF
19584 #define HAVE_LIBRESOLV 1
19585 _ACEOF
19586
19587 else
19588 RESOLVLIB=
19589 fi
19590 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19591 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19592 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19593 echo $ECHO_N "(cached) $ECHO_C" >&6
19594 else
19595 cat >conftest.$ac_ext <<_ACEOF
19596 /* confdefs.h. */
19597 _ACEOF
19598 cat confdefs.h >>conftest.$ac_ext
19599 cat >>conftest.$ac_ext <<_ACEOF
19600 /* end confdefs.h. */
19601 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19602 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19603 #define hes_getmailhost innocuous_hes_getmailhost
19604
19605 /* System header to define __stub macros and hopefully few prototypes,
19606 which can conflict with char hes_getmailhost (); below.
19607 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19608 <limits.h> exists even on freestanding compilers. */
19609
19610 #ifdef __STDC__
19611 # include <limits.h>
19612 #else
19613 # include <assert.h>
19614 #endif
19615
19616 #undef hes_getmailhost
19617
19618 /* Override any GCC internal prototype to avoid an error.
19619 Use char because int might match the return type of a GCC
19620 builtin and then its argument prototype would still apply. */
19621 #ifdef __cplusplus
19622 extern "C"
19623 #endif
19624 char hes_getmailhost ();
19625 /* The GNU C library defines this for functions which it implements
19626 to always fail with ENOSYS. Some functions are actually named
19627 something starting with __ and the normal name is an alias. */
19628 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19629 choke me
19630 #endif
19631
19632 int
19633 main ()
19634 {
19635 return hes_getmailhost ();
19636 ;
19637 return 0;
19638 }
19639 _ACEOF
19640 rm -f conftest.$ac_objext conftest$ac_exeext
19641 if { (ac_try="$ac_link"
19642 case "(($ac_try" in
19643 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19644 *) ac_try_echo=$ac_try;;
19645 esac
19646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19647 (eval "$ac_link") 2>conftest.er1
19648 ac_status=$?
19649 grep -v '^ *+' conftest.er1 >conftest.err
19650 rm -f conftest.er1
19651 cat conftest.err >&5
19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19653 (exit $ac_status); } && {
19654 test -z "$ac_c_werror_flag" ||
19655 test ! -s conftest.err
19656 } && test -s conftest$ac_exeext &&
19657 $as_test_x conftest$ac_exeext; then
19658 ac_cv_func_hes_getmailhost=yes
19659 else
19660 echo "$as_me: failed program was:" >&5
19661 sed 's/^/| /' conftest.$ac_ext >&5
19662
19663 ac_cv_func_hes_getmailhost=no
19664 fi
19665
19666 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19667 conftest$ac_exeext conftest.$ac_ext
19668 fi
19669 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19670 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19671 if test $ac_cv_func_hes_getmailhost = yes; then
19672 :
19673 else
19674 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19675 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19676 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19677 echo $ECHO_N "(cached) $ECHO_C" >&6
19678 else
19679 ac_check_lib_save_LIBS=$LIBS
19680 LIBS="-lhesiod $RESOLVLIB $LIBS"
19681 cat >conftest.$ac_ext <<_ACEOF
19682 /* confdefs.h. */
19683 _ACEOF
19684 cat confdefs.h >>conftest.$ac_ext
19685 cat >>conftest.$ac_ext <<_ACEOF
19686 /* end confdefs.h. */
19687
19688 /* Override any GCC internal prototype to avoid an error.
19689 Use char because int might match the return type of a GCC
19690 builtin and then its argument prototype would still apply. */
19691 #ifdef __cplusplus
19692 extern "C"
19693 #endif
19694 char hes_getmailhost ();
19695 int
19696 main ()
19697 {
19698 return hes_getmailhost ();
19699 ;
19700 return 0;
19701 }
19702 _ACEOF
19703 rm -f conftest.$ac_objext conftest$ac_exeext
19704 if { (ac_try="$ac_link"
19705 case "(($ac_try" in
19706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19707 *) ac_try_echo=$ac_try;;
19708 esac
19709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19710 (eval "$ac_link") 2>conftest.er1
19711 ac_status=$?
19712 grep -v '^ *+' conftest.er1 >conftest.err
19713 rm -f conftest.er1
19714 cat conftest.err >&5
19715 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19716 (exit $ac_status); } && {
19717 test -z "$ac_c_werror_flag" ||
19718 test ! -s conftest.err
19719 } && test -s conftest$ac_exeext &&
19720 $as_test_x conftest$ac_exeext; then
19721 ac_cv_lib_hesiod_hes_getmailhost=yes
19722 else
19723 echo "$as_me: failed program was:" >&5
19724 sed 's/^/| /' conftest.$ac_ext >&5
19725
19726 ac_cv_lib_hesiod_hes_getmailhost=no
19727 fi
19728
19729 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19730 conftest$ac_exeext conftest.$ac_ext
19731 LIBS=$ac_check_lib_save_LIBS
19732 fi
19733 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19734 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19735 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19736
19737 cat >>confdefs.h <<\_ACEOF
19738 #define HAVE_LIBHESIOD 1
19739 _ACEOF
19740
19741 else
19742 :
19743 fi
19744
19745 fi
19746
19747 fi
19748
19749 # These tell us which Kerberos-related libraries to use.
19750 if test "${with_kerberos+set}" = set; then
19751
19752 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19753 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19754 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19755 echo $ECHO_N "(cached) $ECHO_C" >&6
19756 else
19757 ac_check_lib_save_LIBS=$LIBS
19758 LIBS="-lcom_err $LIBS"
19759 cat >conftest.$ac_ext <<_ACEOF
19760 /* confdefs.h. */
19761 _ACEOF
19762 cat confdefs.h >>conftest.$ac_ext
19763 cat >>conftest.$ac_ext <<_ACEOF
19764 /* end confdefs.h. */
19765
19766 /* Override any GCC internal prototype to avoid an error.
19767 Use char because int might match the return type of a GCC
19768 builtin and then its argument prototype would still apply. */
19769 #ifdef __cplusplus
19770 extern "C"
19771 #endif
19772 char com_err ();
19773 int
19774 main ()
19775 {
19776 return com_err ();
19777 ;
19778 return 0;
19779 }
19780 _ACEOF
19781 rm -f conftest.$ac_objext conftest$ac_exeext
19782 if { (ac_try="$ac_link"
19783 case "(($ac_try" in
19784 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19785 *) ac_try_echo=$ac_try;;
19786 esac
19787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19788 (eval "$ac_link") 2>conftest.er1
19789 ac_status=$?
19790 grep -v '^ *+' conftest.er1 >conftest.err
19791 rm -f conftest.er1
19792 cat conftest.err >&5
19793 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19794 (exit $ac_status); } && {
19795 test -z "$ac_c_werror_flag" ||
19796 test ! -s conftest.err
19797 } && test -s conftest$ac_exeext &&
19798 $as_test_x conftest$ac_exeext; then
19799 ac_cv_lib_com_err_com_err=yes
19800 else
19801 echo "$as_me: failed program was:" >&5
19802 sed 's/^/| /' conftest.$ac_ext >&5
19803
19804 ac_cv_lib_com_err_com_err=no
19805 fi
19806
19807 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19808 conftest$ac_exeext conftest.$ac_ext
19809 LIBS=$ac_check_lib_save_LIBS
19810 fi
19811 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19812 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19813 if test $ac_cv_lib_com_err_com_err = yes; then
19814 cat >>confdefs.h <<_ACEOF
19815 #define HAVE_LIBCOM_ERR 1
19816 _ACEOF
19817
19818 LIBS="-lcom_err $LIBS"
19819
19820 fi
19821
19822
19823 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19824 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19825 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19826 echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828 ac_check_lib_save_LIBS=$LIBS
19829 LIBS="-lk5crypto $LIBS"
19830 cat >conftest.$ac_ext <<_ACEOF
19831 /* confdefs.h. */
19832 _ACEOF
19833 cat confdefs.h >>conftest.$ac_ext
19834 cat >>conftest.$ac_ext <<_ACEOF
19835 /* end confdefs.h. */
19836
19837 /* Override any GCC internal prototype to avoid an error.
19838 Use char because int might match the return type of a GCC
19839 builtin and then its argument prototype would still apply. */
19840 #ifdef __cplusplus
19841 extern "C"
19842 #endif
19843 char mit_des_cbc_encrypt ();
19844 int
19845 main ()
19846 {
19847 return mit_des_cbc_encrypt ();
19848 ;
19849 return 0;
19850 }
19851 _ACEOF
19852 rm -f conftest.$ac_objext conftest$ac_exeext
19853 if { (ac_try="$ac_link"
19854 case "(($ac_try" in
19855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19856 *) ac_try_echo=$ac_try;;
19857 esac
19858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19859 (eval "$ac_link") 2>conftest.er1
19860 ac_status=$?
19861 grep -v '^ *+' conftest.er1 >conftest.err
19862 rm -f conftest.er1
19863 cat conftest.err >&5
19864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19865 (exit $ac_status); } && {
19866 test -z "$ac_c_werror_flag" ||
19867 test ! -s conftest.err
19868 } && test -s conftest$ac_exeext &&
19869 $as_test_x conftest$ac_exeext; then
19870 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19871 else
19872 echo "$as_me: failed program was:" >&5
19873 sed 's/^/| /' conftest.$ac_ext >&5
19874
19875 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19876 fi
19877
19878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19881 fi
19882 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19883 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19884 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19885 cat >>confdefs.h <<_ACEOF
19886 #define HAVE_LIBK5CRYPTO 1
19887 _ACEOF
19888
19889 LIBS="-lk5crypto $LIBS"
19890
19891 fi
19892
19893
19894 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19895 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19896 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19897 echo $ECHO_N "(cached) $ECHO_C" >&6
19898 else
19899 ac_check_lib_save_LIBS=$LIBS
19900 LIBS="-lcrypto $LIBS"
19901 cat >conftest.$ac_ext <<_ACEOF
19902 /* confdefs.h. */
19903 _ACEOF
19904 cat confdefs.h >>conftest.$ac_ext
19905 cat >>conftest.$ac_ext <<_ACEOF
19906 /* end confdefs.h. */
19907
19908 /* Override any GCC internal prototype to avoid an error.
19909 Use char because int might match the return type of a GCC
19910 builtin and then its argument prototype would still apply. */
19911 #ifdef __cplusplus
19912 extern "C"
19913 #endif
19914 char mit_des_cbc_encrypt ();
19915 int
19916 main ()
19917 {
19918 return mit_des_cbc_encrypt ();
19919 ;
19920 return 0;
19921 }
19922 _ACEOF
19923 rm -f conftest.$ac_objext conftest$ac_exeext
19924 if { (ac_try="$ac_link"
19925 case "(($ac_try" in
19926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19927 *) ac_try_echo=$ac_try;;
19928 esac
19929 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19930 (eval "$ac_link") 2>conftest.er1
19931 ac_status=$?
19932 grep -v '^ *+' conftest.er1 >conftest.err
19933 rm -f conftest.er1
19934 cat conftest.err >&5
19935 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19936 (exit $ac_status); } && {
19937 test -z "$ac_c_werror_flag" ||
19938 test ! -s conftest.err
19939 } && test -s conftest$ac_exeext &&
19940 $as_test_x conftest$ac_exeext; then
19941 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19942 else
19943 echo "$as_me: failed program was:" >&5
19944 sed 's/^/| /' conftest.$ac_ext >&5
19945
19946 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19947 fi
19948
19949 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19952 fi
19953 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19954 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19955 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19956 cat >>confdefs.h <<_ACEOF
19957 #define HAVE_LIBCRYPTO 1
19958 _ACEOF
19959
19960 LIBS="-lcrypto $LIBS"
19961
19962 fi
19963
19964
19965 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19966 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19967 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19968 echo $ECHO_N "(cached) $ECHO_C" >&6
19969 else
19970 ac_check_lib_save_LIBS=$LIBS
19971 LIBS="-lkrb5 $LIBS"
19972 cat >conftest.$ac_ext <<_ACEOF
19973 /* confdefs.h. */
19974 _ACEOF
19975 cat confdefs.h >>conftest.$ac_ext
19976 cat >>conftest.$ac_ext <<_ACEOF
19977 /* end confdefs.h. */
19978
19979 /* Override any GCC internal prototype to avoid an error.
19980 Use char because int might match the return type of a GCC
19981 builtin and then its argument prototype would still apply. */
19982 #ifdef __cplusplus
19983 extern "C"
19984 #endif
19985 char krb5_init_context ();
19986 int
19987 main ()
19988 {
19989 return krb5_init_context ();
19990 ;
19991 return 0;
19992 }
19993 _ACEOF
19994 rm -f conftest.$ac_objext conftest$ac_exeext
19995 if { (ac_try="$ac_link"
19996 case "(($ac_try" in
19997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19998 *) ac_try_echo=$ac_try;;
19999 esac
20000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20001 (eval "$ac_link") 2>conftest.er1
20002 ac_status=$?
20003 grep -v '^ *+' conftest.er1 >conftest.err
20004 rm -f conftest.er1
20005 cat conftest.err >&5
20006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20007 (exit $ac_status); } && {
20008 test -z "$ac_c_werror_flag" ||
20009 test ! -s conftest.err
20010 } && test -s conftest$ac_exeext &&
20011 $as_test_x conftest$ac_exeext; then
20012 ac_cv_lib_krb5_krb5_init_context=yes
20013 else
20014 echo "$as_me: failed program was:" >&5
20015 sed 's/^/| /' conftest.$ac_ext >&5
20016
20017 ac_cv_lib_krb5_krb5_init_context=no
20018 fi
20019
20020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20021 conftest$ac_exeext conftest.$ac_ext
20022 LIBS=$ac_check_lib_save_LIBS
20023 fi
20024 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20025 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20026 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20027 cat >>confdefs.h <<_ACEOF
20028 #define HAVE_LIBKRB5 1
20029 _ACEOF
20030
20031 LIBS="-lkrb5 $LIBS"
20032
20033 fi
20034
20035 if test "${with_kerberos5+set}" != set; then
20036
20037 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20038 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20039 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20040 echo $ECHO_N "(cached) $ECHO_C" >&6
20041 else
20042 ac_check_lib_save_LIBS=$LIBS
20043 LIBS="-ldes425 $LIBS"
20044 cat >conftest.$ac_ext <<_ACEOF
20045 /* confdefs.h. */
20046 _ACEOF
20047 cat confdefs.h >>conftest.$ac_ext
20048 cat >>conftest.$ac_ext <<_ACEOF
20049 /* end confdefs.h. */
20050
20051 /* Override any GCC internal prototype to avoid an error.
20052 Use char because int might match the return type of a GCC
20053 builtin and then its argument prototype would still apply. */
20054 #ifdef __cplusplus
20055 extern "C"
20056 #endif
20057 char des_cbc_encrypt ();
20058 int
20059 main ()
20060 {
20061 return des_cbc_encrypt ();
20062 ;
20063 return 0;
20064 }
20065 _ACEOF
20066 rm -f conftest.$ac_objext conftest$ac_exeext
20067 if { (ac_try="$ac_link"
20068 case "(($ac_try" in
20069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20070 *) ac_try_echo=$ac_try;;
20071 esac
20072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20073 (eval "$ac_link") 2>conftest.er1
20074 ac_status=$?
20075 grep -v '^ *+' conftest.er1 >conftest.err
20076 rm -f conftest.er1
20077 cat conftest.err >&5
20078 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20079 (exit $ac_status); } && {
20080 test -z "$ac_c_werror_flag" ||
20081 test ! -s conftest.err
20082 } && test -s conftest$ac_exeext &&
20083 $as_test_x conftest$ac_exeext; then
20084 ac_cv_lib_des425_des_cbc_encrypt=yes
20085 else
20086 echo "$as_me: failed program was:" >&5
20087 sed 's/^/| /' conftest.$ac_ext >&5
20088
20089 ac_cv_lib_des425_des_cbc_encrypt=no
20090 fi
20091
20092 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20093 conftest$ac_exeext conftest.$ac_ext
20094 LIBS=$ac_check_lib_save_LIBS
20095 fi
20096 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20097 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20098 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20099 cat >>confdefs.h <<_ACEOF
20100 #define HAVE_LIBDES425 1
20101 _ACEOF
20102
20103 LIBS="-ldes425 $LIBS"
20104
20105 else
20106
20107 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20108 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20109 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20110 echo $ECHO_N "(cached) $ECHO_C" >&6
20111 else
20112 ac_check_lib_save_LIBS=$LIBS
20113 LIBS="-ldes $LIBS"
20114 cat >conftest.$ac_ext <<_ACEOF
20115 /* confdefs.h. */
20116 _ACEOF
20117 cat confdefs.h >>conftest.$ac_ext
20118 cat >>conftest.$ac_ext <<_ACEOF
20119 /* end confdefs.h. */
20120
20121 /* Override any GCC internal prototype to avoid an error.
20122 Use char because int might match the return type of a GCC
20123 builtin and then its argument prototype would still apply. */
20124 #ifdef __cplusplus
20125 extern "C"
20126 #endif
20127 char des_cbc_encrypt ();
20128 int
20129 main ()
20130 {
20131 return des_cbc_encrypt ();
20132 ;
20133 return 0;
20134 }
20135 _ACEOF
20136 rm -f conftest.$ac_objext conftest$ac_exeext
20137 if { (ac_try="$ac_link"
20138 case "(($ac_try" in
20139 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20140 *) ac_try_echo=$ac_try;;
20141 esac
20142 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20143 (eval "$ac_link") 2>conftest.er1
20144 ac_status=$?
20145 grep -v '^ *+' conftest.er1 >conftest.err
20146 rm -f conftest.er1
20147 cat conftest.err >&5
20148 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20149 (exit $ac_status); } && {
20150 test -z "$ac_c_werror_flag" ||
20151 test ! -s conftest.err
20152 } && test -s conftest$ac_exeext &&
20153 $as_test_x conftest$ac_exeext; then
20154 ac_cv_lib_des_des_cbc_encrypt=yes
20155 else
20156 echo "$as_me: failed program was:" >&5
20157 sed 's/^/| /' conftest.$ac_ext >&5
20158
20159 ac_cv_lib_des_des_cbc_encrypt=no
20160 fi
20161
20162 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20163 conftest$ac_exeext conftest.$ac_ext
20164 LIBS=$ac_check_lib_save_LIBS
20165 fi
20166 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20167 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20168 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20169 cat >>confdefs.h <<_ACEOF
20170 #define HAVE_LIBDES 1
20171 _ACEOF
20172
20173 LIBS="-ldes $LIBS"
20174
20175 fi
20176
20177 fi
20178
20179
20180 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20181 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20182 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20183 echo $ECHO_N "(cached) $ECHO_C" >&6
20184 else
20185 ac_check_lib_save_LIBS=$LIBS
20186 LIBS="-lkrb4 $LIBS"
20187 cat >conftest.$ac_ext <<_ACEOF
20188 /* confdefs.h. */
20189 _ACEOF
20190 cat confdefs.h >>conftest.$ac_ext
20191 cat >>conftest.$ac_ext <<_ACEOF
20192 /* end confdefs.h. */
20193
20194 /* Override any GCC internal prototype to avoid an error.
20195 Use char because int might match the return type of a GCC
20196 builtin and then its argument prototype would still apply. */
20197 #ifdef __cplusplus
20198 extern "C"
20199 #endif
20200 char krb_get_cred ();
20201 int
20202 main ()
20203 {
20204 return krb_get_cred ();
20205 ;
20206 return 0;
20207 }
20208 _ACEOF
20209 rm -f conftest.$ac_objext conftest$ac_exeext
20210 if { (ac_try="$ac_link"
20211 case "(($ac_try" in
20212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20213 *) ac_try_echo=$ac_try;;
20214 esac
20215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20216 (eval "$ac_link") 2>conftest.er1
20217 ac_status=$?
20218 grep -v '^ *+' conftest.er1 >conftest.err
20219 rm -f conftest.er1
20220 cat conftest.err >&5
20221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20222 (exit $ac_status); } && {
20223 test -z "$ac_c_werror_flag" ||
20224 test ! -s conftest.err
20225 } && test -s conftest$ac_exeext &&
20226 $as_test_x conftest$ac_exeext; then
20227 ac_cv_lib_krb4_krb_get_cred=yes
20228 else
20229 echo "$as_me: failed program was:" >&5
20230 sed 's/^/| /' conftest.$ac_ext >&5
20231
20232 ac_cv_lib_krb4_krb_get_cred=no
20233 fi
20234
20235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20236 conftest$ac_exeext conftest.$ac_ext
20237 LIBS=$ac_check_lib_save_LIBS
20238 fi
20239 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20240 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20241 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20242 cat >>confdefs.h <<_ACEOF
20243 #define HAVE_LIBKRB4 1
20244 _ACEOF
20245
20246 LIBS="-lkrb4 $LIBS"
20247
20248 else
20249
20250 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20251 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20252 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20253 echo $ECHO_N "(cached) $ECHO_C" >&6
20254 else
20255 ac_check_lib_save_LIBS=$LIBS
20256 LIBS="-lkrb $LIBS"
20257 cat >conftest.$ac_ext <<_ACEOF
20258 /* confdefs.h. */
20259 _ACEOF
20260 cat confdefs.h >>conftest.$ac_ext
20261 cat >>conftest.$ac_ext <<_ACEOF
20262 /* end confdefs.h. */
20263
20264 /* Override any GCC internal prototype to avoid an error.
20265 Use char because int might match the return type of a GCC
20266 builtin and then its argument prototype would still apply. */
20267 #ifdef __cplusplus
20268 extern "C"
20269 #endif
20270 char krb_get_cred ();
20271 int
20272 main ()
20273 {
20274 return krb_get_cred ();
20275 ;
20276 return 0;
20277 }
20278 _ACEOF
20279 rm -f conftest.$ac_objext conftest$ac_exeext
20280 if { (ac_try="$ac_link"
20281 case "(($ac_try" in
20282 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20283 *) ac_try_echo=$ac_try;;
20284 esac
20285 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20286 (eval "$ac_link") 2>conftest.er1
20287 ac_status=$?
20288 grep -v '^ *+' conftest.er1 >conftest.err
20289 rm -f conftest.er1
20290 cat conftest.err >&5
20291 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20292 (exit $ac_status); } && {
20293 test -z "$ac_c_werror_flag" ||
20294 test ! -s conftest.err
20295 } && test -s conftest$ac_exeext &&
20296 $as_test_x conftest$ac_exeext; then
20297 ac_cv_lib_krb_krb_get_cred=yes
20298 else
20299 echo "$as_me: failed program was:" >&5
20300 sed 's/^/| /' conftest.$ac_ext >&5
20301
20302 ac_cv_lib_krb_krb_get_cred=no
20303 fi
20304
20305 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20306 conftest$ac_exeext conftest.$ac_ext
20307 LIBS=$ac_check_lib_save_LIBS
20308 fi
20309 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20310 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20311 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20312 cat >>confdefs.h <<_ACEOF
20313 #define HAVE_LIBKRB 1
20314 _ACEOF
20315
20316 LIBS="-lkrb $LIBS"
20317
20318 fi
20319
20320 fi
20321
20322 fi
20323
20324 if test "${with_kerberos5+set}" = set; then
20325
20326 for ac_header in krb5.h
20327 do
20328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20330 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20333 echo $ECHO_N "(cached) $ECHO_C" >&6
20334 fi
20335 ac_res=`eval echo '${'$as_ac_Header'}'`
20336 { echo "$as_me:$LINENO: result: $ac_res" >&5
20337 echo "${ECHO_T}$ac_res" >&6; }
20338 else
20339 # Is the header compilable?
20340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20342 cat >conftest.$ac_ext <<_ACEOF
20343 /* confdefs.h. */
20344 _ACEOF
20345 cat confdefs.h >>conftest.$ac_ext
20346 cat >>conftest.$ac_ext <<_ACEOF
20347 /* end confdefs.h. */
20348 $ac_includes_default
20349 #include <$ac_header>
20350 _ACEOF
20351 rm -f conftest.$ac_objext
20352 if { (ac_try="$ac_compile"
20353 case "(($ac_try" in
20354 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20355 *) ac_try_echo=$ac_try;;
20356 esac
20357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20358 (eval "$ac_compile") 2>conftest.er1
20359 ac_status=$?
20360 grep -v '^ *+' conftest.er1 >conftest.err
20361 rm -f conftest.er1
20362 cat conftest.err >&5
20363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20364 (exit $ac_status); } && {
20365 test -z "$ac_c_werror_flag" ||
20366 test ! -s conftest.err
20367 } && test -s conftest.$ac_objext; then
20368 ac_header_compiler=yes
20369 else
20370 echo "$as_me: failed program was:" >&5
20371 sed 's/^/| /' conftest.$ac_ext >&5
20372
20373 ac_header_compiler=no
20374 fi
20375
20376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20377 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20378 echo "${ECHO_T}$ac_header_compiler" >&6; }
20379
20380 # Is the header present?
20381 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20382 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20383 cat >conftest.$ac_ext <<_ACEOF
20384 /* confdefs.h. */
20385 _ACEOF
20386 cat confdefs.h >>conftest.$ac_ext
20387 cat >>conftest.$ac_ext <<_ACEOF
20388 /* end confdefs.h. */
20389 #include <$ac_header>
20390 _ACEOF
20391 if { (ac_try="$ac_cpp conftest.$ac_ext"
20392 case "(($ac_try" in
20393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20394 *) ac_try_echo=$ac_try;;
20395 esac
20396 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20397 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20398 ac_status=$?
20399 grep -v '^ *+' conftest.er1 >conftest.err
20400 rm -f conftest.er1
20401 cat conftest.err >&5
20402 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20403 (exit $ac_status); } >/dev/null && {
20404 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20405 test ! -s conftest.err
20406 }; then
20407 ac_header_preproc=yes
20408 else
20409 echo "$as_me: failed program was:" >&5
20410 sed 's/^/| /' conftest.$ac_ext >&5
20411
20412 ac_header_preproc=no
20413 fi
20414
20415 rm -f conftest.err conftest.$ac_ext
20416 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20417 echo "${ECHO_T}$ac_header_preproc" >&6; }
20418
20419 # So? What about this header?
20420 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20421 yes:no: )
20422 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20423 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20424 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20425 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20426 ac_header_preproc=yes
20427 ;;
20428 no:yes:* )
20429 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20430 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20431 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20432 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20433 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20434 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20435 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20436 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20437 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20438 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20439 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20440 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20441
20442 ;;
20443 esac
20444 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20445 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20446 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20447 echo $ECHO_N "(cached) $ECHO_C" >&6
20448 else
20449 eval "$as_ac_Header=\$ac_header_preproc"
20450 fi
20451 ac_res=`eval echo '${'$as_ac_Header'}'`
20452 { echo "$as_me:$LINENO: result: $ac_res" >&5
20453 echo "${ECHO_T}$ac_res" >&6; }
20454
20455 fi
20456 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20457 cat >>confdefs.h <<_ACEOF
20458 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20459 _ACEOF
20460
20461 fi
20462
20463 done
20464
20465 else
20466
20467 for ac_header in des.h
20468 do
20469 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20471 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20472 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20473 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20474 echo $ECHO_N "(cached) $ECHO_C" >&6
20475 fi
20476 ac_res=`eval echo '${'$as_ac_Header'}'`
20477 { echo "$as_me:$LINENO: result: $ac_res" >&5
20478 echo "${ECHO_T}$ac_res" >&6; }
20479 else
20480 # Is the header compilable?
20481 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20482 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489 $ac_includes_default
20490 #include <$ac_header>
20491 _ACEOF
20492 rm -f conftest.$ac_objext
20493 if { (ac_try="$ac_compile"
20494 case "(($ac_try" in
20495 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20496 *) ac_try_echo=$ac_try;;
20497 esac
20498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20499 (eval "$ac_compile") 2>conftest.er1
20500 ac_status=$?
20501 grep -v '^ *+' conftest.er1 >conftest.err
20502 rm -f conftest.er1
20503 cat conftest.err >&5
20504 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20505 (exit $ac_status); } && {
20506 test -z "$ac_c_werror_flag" ||
20507 test ! -s conftest.err
20508 } && test -s conftest.$ac_objext; then
20509 ac_header_compiler=yes
20510 else
20511 echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514 ac_header_compiler=no
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20518 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20519 echo "${ECHO_T}$ac_header_compiler" >&6; }
20520
20521 # Is the header present?
20522 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20523 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20524 cat >conftest.$ac_ext <<_ACEOF
20525 /* confdefs.h. */
20526 _ACEOF
20527 cat confdefs.h >>conftest.$ac_ext
20528 cat >>conftest.$ac_ext <<_ACEOF
20529 /* end confdefs.h. */
20530 #include <$ac_header>
20531 _ACEOF
20532 if { (ac_try="$ac_cpp conftest.$ac_ext"
20533 case "(($ac_try" in
20534 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20535 *) ac_try_echo=$ac_try;;
20536 esac
20537 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20538 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20539 ac_status=$?
20540 grep -v '^ *+' conftest.er1 >conftest.err
20541 rm -f conftest.er1
20542 cat conftest.err >&5
20543 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20544 (exit $ac_status); } >/dev/null && {
20545 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20546 test ! -s conftest.err
20547 }; then
20548 ac_header_preproc=yes
20549 else
20550 echo "$as_me: failed program was:" >&5
20551 sed 's/^/| /' conftest.$ac_ext >&5
20552
20553 ac_header_preproc=no
20554 fi
20555
20556 rm -f conftest.err conftest.$ac_ext
20557 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20558 echo "${ECHO_T}$ac_header_preproc" >&6; }
20559
20560 # So? What about this header?
20561 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20562 yes:no: )
20563 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20564 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20565 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20566 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20567 ac_header_preproc=yes
20568 ;;
20569 no:yes:* )
20570 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20571 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20572 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20573 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20574 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20575 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20576 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20577 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20578 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20579 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20580 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20581 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20582
20583 ;;
20584 esac
20585 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20586 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20587 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20588 echo $ECHO_N "(cached) $ECHO_C" >&6
20589 else
20590 eval "$as_ac_Header=\$ac_header_preproc"
20591 fi
20592 ac_res=`eval echo '${'$as_ac_Header'}'`
20593 { echo "$as_me:$LINENO: result: $ac_res" >&5
20594 echo "${ECHO_T}$ac_res" >&6; }
20595
20596 fi
20597 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20598 cat >>confdefs.h <<_ACEOF
20599 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20600 _ACEOF
20601
20602 else
20603
20604 for ac_header in kerberosIV/des.h
20605 do
20606 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20607 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20608 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20609 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20611 echo $ECHO_N "(cached) $ECHO_C" >&6
20612 fi
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614 { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616 else
20617 # Is the header compilable?
20618 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20619 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20620 cat >conftest.$ac_ext <<_ACEOF
20621 /* confdefs.h. */
20622 _ACEOF
20623 cat confdefs.h >>conftest.$ac_ext
20624 cat >>conftest.$ac_ext <<_ACEOF
20625 /* end confdefs.h. */
20626 $ac_includes_default
20627 #include <$ac_header>
20628 _ACEOF
20629 rm -f conftest.$ac_objext
20630 if { (ac_try="$ac_compile"
20631 case "(($ac_try" in
20632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20633 *) ac_try_echo=$ac_try;;
20634 esac
20635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20636 (eval "$ac_compile") 2>conftest.er1
20637 ac_status=$?
20638 grep -v '^ *+' conftest.er1 >conftest.err
20639 rm -f conftest.er1
20640 cat conftest.err >&5
20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20642 (exit $ac_status); } && {
20643 test -z "$ac_c_werror_flag" ||
20644 test ! -s conftest.err
20645 } && test -s conftest.$ac_objext; then
20646 ac_header_compiler=yes
20647 else
20648 echo "$as_me: failed program was:" >&5
20649 sed 's/^/| /' conftest.$ac_ext >&5
20650
20651 ac_header_compiler=no
20652 fi
20653
20654 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20655 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20656 echo "${ECHO_T}$ac_header_compiler" >&6; }
20657
20658 # Is the header present?
20659 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20660 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20661 cat >conftest.$ac_ext <<_ACEOF
20662 /* confdefs.h. */
20663 _ACEOF
20664 cat confdefs.h >>conftest.$ac_ext
20665 cat >>conftest.$ac_ext <<_ACEOF
20666 /* end confdefs.h. */
20667 #include <$ac_header>
20668 _ACEOF
20669 if { (ac_try="$ac_cpp conftest.$ac_ext"
20670 case "(($ac_try" in
20671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20672 *) ac_try_echo=$ac_try;;
20673 esac
20674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20675 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20676 ac_status=$?
20677 grep -v '^ *+' conftest.er1 >conftest.err
20678 rm -f conftest.er1
20679 cat conftest.err >&5
20680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20681 (exit $ac_status); } >/dev/null && {
20682 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20683 test ! -s conftest.err
20684 }; then
20685 ac_header_preproc=yes
20686 else
20687 echo "$as_me: failed program was:" >&5
20688 sed 's/^/| /' conftest.$ac_ext >&5
20689
20690 ac_header_preproc=no
20691 fi
20692
20693 rm -f conftest.err conftest.$ac_ext
20694 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20695 echo "${ECHO_T}$ac_header_preproc" >&6; }
20696
20697 # So? What about this header?
20698 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20699 yes:no: )
20700 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20701 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20702 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20703 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20704 ac_header_preproc=yes
20705 ;;
20706 no:yes:* )
20707 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20708 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20709 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20710 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20711 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20712 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20713 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20714 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20715 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20716 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20717 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20718 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20719
20720 ;;
20721 esac
20722 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20723 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20724 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20725 echo $ECHO_N "(cached) $ECHO_C" >&6
20726 else
20727 eval "$as_ac_Header=\$ac_header_preproc"
20728 fi
20729 ac_res=`eval echo '${'$as_ac_Header'}'`
20730 { echo "$as_me:$LINENO: result: $ac_res" >&5
20731 echo "${ECHO_T}$ac_res" >&6; }
20732
20733 fi
20734 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20735 cat >>confdefs.h <<_ACEOF
20736 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20737 _ACEOF
20738
20739 else
20740
20741 for ac_header in kerberos/des.h
20742 do
20743 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20744 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20745 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20746 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20748 echo $ECHO_N "(cached) $ECHO_C" >&6
20749 fi
20750 ac_res=`eval echo '${'$as_ac_Header'}'`
20751 { echo "$as_me:$LINENO: result: $ac_res" >&5
20752 echo "${ECHO_T}$ac_res" >&6; }
20753 else
20754 # Is the header compilable?
20755 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20756 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20757 cat >conftest.$ac_ext <<_ACEOF
20758 /* confdefs.h. */
20759 _ACEOF
20760 cat confdefs.h >>conftest.$ac_ext
20761 cat >>conftest.$ac_ext <<_ACEOF
20762 /* end confdefs.h. */
20763 $ac_includes_default
20764 #include <$ac_header>
20765 _ACEOF
20766 rm -f conftest.$ac_objext
20767 if { (ac_try="$ac_compile"
20768 case "(($ac_try" in
20769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20770 *) ac_try_echo=$ac_try;;
20771 esac
20772 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20773 (eval "$ac_compile") 2>conftest.er1
20774 ac_status=$?
20775 grep -v '^ *+' conftest.er1 >conftest.err
20776 rm -f conftest.er1
20777 cat conftest.err >&5
20778 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20779 (exit $ac_status); } && {
20780 test -z "$ac_c_werror_flag" ||
20781 test ! -s conftest.err
20782 } && test -s conftest.$ac_objext; then
20783 ac_header_compiler=yes
20784 else
20785 echo "$as_me: failed program was:" >&5
20786 sed 's/^/| /' conftest.$ac_ext >&5
20787
20788 ac_header_compiler=no
20789 fi
20790
20791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20792 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20793 echo "${ECHO_T}$ac_header_compiler" >&6; }
20794
20795 # Is the header present?
20796 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20797 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20798 cat >conftest.$ac_ext <<_ACEOF
20799 /* confdefs.h. */
20800 _ACEOF
20801 cat confdefs.h >>conftest.$ac_ext
20802 cat >>conftest.$ac_ext <<_ACEOF
20803 /* end confdefs.h. */
20804 #include <$ac_header>
20805 _ACEOF
20806 if { (ac_try="$ac_cpp conftest.$ac_ext"
20807 case "(($ac_try" in
20808 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20809 *) ac_try_echo=$ac_try;;
20810 esac
20811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20812 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20813 ac_status=$?
20814 grep -v '^ *+' conftest.er1 >conftest.err
20815 rm -f conftest.er1
20816 cat conftest.err >&5
20817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20818 (exit $ac_status); } >/dev/null && {
20819 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20820 test ! -s conftest.err
20821 }; then
20822 ac_header_preproc=yes
20823 else
20824 echo "$as_me: failed program was:" >&5
20825 sed 's/^/| /' conftest.$ac_ext >&5
20826
20827 ac_header_preproc=no
20828 fi
20829
20830 rm -f conftest.err conftest.$ac_ext
20831 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20832 echo "${ECHO_T}$ac_header_preproc" >&6; }
20833
20834 # So? What about this header?
20835 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20836 yes:no: )
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20838 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20839 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20840 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20841 ac_header_preproc=yes
20842 ;;
20843 no:yes:* )
20844 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20845 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20846 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20847 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20848 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20849 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20850 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20851 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20852 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20853 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20854 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20855 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20856
20857 ;;
20858 esac
20859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20862 echo $ECHO_N "(cached) $ECHO_C" >&6
20863 else
20864 eval "$as_ac_Header=\$ac_header_preproc"
20865 fi
20866 ac_res=`eval echo '${'$as_ac_Header'}'`
20867 { echo "$as_me:$LINENO: result: $ac_res" >&5
20868 echo "${ECHO_T}$ac_res" >&6; }
20869
20870 fi
20871 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20872 cat >>confdefs.h <<_ACEOF
20873 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20874 _ACEOF
20875
20876 fi
20877
20878 done
20879
20880 fi
20881
20882 done
20883
20884 fi
20885
20886 done
20887
20888
20889 for ac_header in krb.h
20890 do
20891 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20893 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20894 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20895 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20896 echo $ECHO_N "(cached) $ECHO_C" >&6
20897 fi
20898 ac_res=`eval echo '${'$as_ac_Header'}'`
20899 { echo "$as_me:$LINENO: result: $ac_res" >&5
20900 echo "${ECHO_T}$ac_res" >&6; }
20901 else
20902 # Is the header compilable?
20903 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20904 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20905 cat >conftest.$ac_ext <<_ACEOF
20906 /* confdefs.h. */
20907 _ACEOF
20908 cat confdefs.h >>conftest.$ac_ext
20909 cat >>conftest.$ac_ext <<_ACEOF
20910 /* end confdefs.h. */
20911 $ac_includes_default
20912 #include <$ac_header>
20913 _ACEOF
20914 rm -f conftest.$ac_objext
20915 if { (ac_try="$ac_compile"
20916 case "(($ac_try" in
20917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20918 *) ac_try_echo=$ac_try;;
20919 esac
20920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20921 (eval "$ac_compile") 2>conftest.er1
20922 ac_status=$?
20923 grep -v '^ *+' conftest.er1 >conftest.err
20924 rm -f conftest.er1
20925 cat conftest.err >&5
20926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20927 (exit $ac_status); } && {
20928 test -z "$ac_c_werror_flag" ||
20929 test ! -s conftest.err
20930 } && test -s conftest.$ac_objext; then
20931 ac_header_compiler=yes
20932 else
20933 echo "$as_me: failed program was:" >&5
20934 sed 's/^/| /' conftest.$ac_ext >&5
20935
20936 ac_header_compiler=no
20937 fi
20938
20939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20940 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20941 echo "${ECHO_T}$ac_header_compiler" >&6; }
20942
20943 # Is the header present?
20944 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20945 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20946 cat >conftest.$ac_ext <<_ACEOF
20947 /* confdefs.h. */
20948 _ACEOF
20949 cat confdefs.h >>conftest.$ac_ext
20950 cat >>conftest.$ac_ext <<_ACEOF
20951 /* end confdefs.h. */
20952 #include <$ac_header>
20953 _ACEOF
20954 if { (ac_try="$ac_cpp conftest.$ac_ext"
20955 case "(($ac_try" in
20956 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20957 *) ac_try_echo=$ac_try;;
20958 esac
20959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20960 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20961 ac_status=$?
20962 grep -v '^ *+' conftest.er1 >conftest.err
20963 rm -f conftest.er1
20964 cat conftest.err >&5
20965 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20966 (exit $ac_status); } >/dev/null && {
20967 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20968 test ! -s conftest.err
20969 }; then
20970 ac_header_preproc=yes
20971 else
20972 echo "$as_me: failed program was:" >&5
20973 sed 's/^/| /' conftest.$ac_ext >&5
20974
20975 ac_header_preproc=no
20976 fi
20977
20978 rm -f conftest.err conftest.$ac_ext
20979 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20980 echo "${ECHO_T}$ac_header_preproc" >&6; }
20981
20982 # So? What about this header?
20983 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20984 yes:no: )
20985 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20986 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20987 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20988 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20989 ac_header_preproc=yes
20990 ;;
20991 no:yes:* )
20992 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20993 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20994 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20995 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20996 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20997 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20998 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20999 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21000 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21001 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21002 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21003 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21004
21005 ;;
21006 esac
21007 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21008 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21009 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21010 echo $ECHO_N "(cached) $ECHO_C" >&6
21011 else
21012 eval "$as_ac_Header=\$ac_header_preproc"
21013 fi
21014 ac_res=`eval echo '${'$as_ac_Header'}'`
21015 { echo "$as_me:$LINENO: result: $ac_res" >&5
21016 echo "${ECHO_T}$ac_res" >&6; }
21017
21018 fi
21019 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21020 cat >>confdefs.h <<_ACEOF
21021 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21022 _ACEOF
21023
21024 else
21025
21026 for ac_header in kerberosIV/krb.h
21027 do
21028 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21029 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21033 echo $ECHO_N "(cached) $ECHO_C" >&6
21034 fi
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21038 else
21039 # Is the header compilable?
21040 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21041 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21042 cat >conftest.$ac_ext <<_ACEOF
21043 /* confdefs.h. */
21044 _ACEOF
21045 cat confdefs.h >>conftest.$ac_ext
21046 cat >>conftest.$ac_ext <<_ACEOF
21047 /* end confdefs.h. */
21048 $ac_includes_default
21049 #include <$ac_header>
21050 _ACEOF
21051 rm -f conftest.$ac_objext
21052 if { (ac_try="$ac_compile"
21053 case "(($ac_try" in
21054 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21055 *) ac_try_echo=$ac_try;;
21056 esac
21057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21058 (eval "$ac_compile") 2>conftest.er1
21059 ac_status=$?
21060 grep -v '^ *+' conftest.er1 >conftest.err
21061 rm -f conftest.er1
21062 cat conftest.err >&5
21063 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21064 (exit $ac_status); } && {
21065 test -z "$ac_c_werror_flag" ||
21066 test ! -s conftest.err
21067 } && test -s conftest.$ac_objext; then
21068 ac_header_compiler=yes
21069 else
21070 echo "$as_me: failed program was:" >&5
21071 sed 's/^/| /' conftest.$ac_ext >&5
21072
21073 ac_header_compiler=no
21074 fi
21075
21076 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21077 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21078 echo "${ECHO_T}$ac_header_compiler" >&6; }
21079
21080 # Is the header present?
21081 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21082 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21083 cat >conftest.$ac_ext <<_ACEOF
21084 /* confdefs.h. */
21085 _ACEOF
21086 cat confdefs.h >>conftest.$ac_ext
21087 cat >>conftest.$ac_ext <<_ACEOF
21088 /* end confdefs.h. */
21089 #include <$ac_header>
21090 _ACEOF
21091 if { (ac_try="$ac_cpp conftest.$ac_ext"
21092 case "(($ac_try" in
21093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21094 *) ac_try_echo=$ac_try;;
21095 esac
21096 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21097 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21098 ac_status=$?
21099 grep -v '^ *+' conftest.er1 >conftest.err
21100 rm -f conftest.er1
21101 cat conftest.err >&5
21102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21103 (exit $ac_status); } >/dev/null && {
21104 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21105 test ! -s conftest.err
21106 }; then
21107 ac_header_preproc=yes
21108 else
21109 echo "$as_me: failed program was:" >&5
21110 sed 's/^/| /' conftest.$ac_ext >&5
21111
21112 ac_header_preproc=no
21113 fi
21114
21115 rm -f conftest.err conftest.$ac_ext
21116 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21117 echo "${ECHO_T}$ac_header_preproc" >&6; }
21118
21119 # So? What about this header?
21120 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21121 yes:no: )
21122 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21123 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21124 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21125 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21126 ac_header_preproc=yes
21127 ;;
21128 no:yes:* )
21129 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21130 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21131 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21132 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21133 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21134 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21135 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21136 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21137 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21138 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21139 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21140 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21141
21142 ;;
21143 esac
21144 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21145 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21146 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21147 echo $ECHO_N "(cached) $ECHO_C" >&6
21148 else
21149 eval "$as_ac_Header=\$ac_header_preproc"
21150 fi
21151 ac_res=`eval echo '${'$as_ac_Header'}'`
21152 { echo "$as_me:$LINENO: result: $ac_res" >&5
21153 echo "${ECHO_T}$ac_res" >&6; }
21154
21155 fi
21156 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21157 cat >>confdefs.h <<_ACEOF
21158 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21159 _ACEOF
21160
21161 else
21162
21163 for ac_header in kerberos/krb.h
21164 do
21165 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21166 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21167 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21168 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21169 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21170 echo $ECHO_N "(cached) $ECHO_C" >&6
21171 fi
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175 else
21176 # Is the header compilable?
21177 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21178 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21179 cat >conftest.$ac_ext <<_ACEOF
21180 /* confdefs.h. */
21181 _ACEOF
21182 cat confdefs.h >>conftest.$ac_ext
21183 cat >>conftest.$ac_ext <<_ACEOF
21184 /* end confdefs.h. */
21185 $ac_includes_default
21186 #include <$ac_header>
21187 _ACEOF
21188 rm -f conftest.$ac_objext
21189 if { (ac_try="$ac_compile"
21190 case "(($ac_try" in
21191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21192 *) ac_try_echo=$ac_try;;
21193 esac
21194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21195 (eval "$ac_compile") 2>conftest.er1
21196 ac_status=$?
21197 grep -v '^ *+' conftest.er1 >conftest.err
21198 rm -f conftest.er1
21199 cat conftest.err >&5
21200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21201 (exit $ac_status); } && {
21202 test -z "$ac_c_werror_flag" ||
21203 test ! -s conftest.err
21204 } && test -s conftest.$ac_objext; then
21205 ac_header_compiler=yes
21206 else
21207 echo "$as_me: failed program was:" >&5
21208 sed 's/^/| /' conftest.$ac_ext >&5
21209
21210 ac_header_compiler=no
21211 fi
21212
21213 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21214 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21215 echo "${ECHO_T}$ac_header_compiler" >&6; }
21216
21217 # Is the header present?
21218 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21219 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21220 cat >conftest.$ac_ext <<_ACEOF
21221 /* confdefs.h. */
21222 _ACEOF
21223 cat confdefs.h >>conftest.$ac_ext
21224 cat >>conftest.$ac_ext <<_ACEOF
21225 /* end confdefs.h. */
21226 #include <$ac_header>
21227 _ACEOF
21228 if { (ac_try="$ac_cpp conftest.$ac_ext"
21229 case "(($ac_try" in
21230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21231 *) ac_try_echo=$ac_try;;
21232 esac
21233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21234 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21235 ac_status=$?
21236 grep -v '^ *+' conftest.er1 >conftest.err
21237 rm -f conftest.er1
21238 cat conftest.err >&5
21239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21240 (exit $ac_status); } >/dev/null && {
21241 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21242 test ! -s conftest.err
21243 }; then
21244 ac_header_preproc=yes
21245 else
21246 echo "$as_me: failed program was:" >&5
21247 sed 's/^/| /' conftest.$ac_ext >&5
21248
21249 ac_header_preproc=no
21250 fi
21251
21252 rm -f conftest.err conftest.$ac_ext
21253 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21254 echo "${ECHO_T}$ac_header_preproc" >&6; }
21255
21256 # So? What about this header?
21257 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21258 yes:no: )
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21260 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21261 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21262 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21263 ac_header_preproc=yes
21264 ;;
21265 no:yes:* )
21266 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21267 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21268 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21269 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21270 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21271 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21272 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21273 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21274 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21275 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21276 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21277 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21278
21279 ;;
21280 esac
21281 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21282 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21283 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21284 echo $ECHO_N "(cached) $ECHO_C" >&6
21285 else
21286 eval "$as_ac_Header=\$ac_header_preproc"
21287 fi
21288 ac_res=`eval echo '${'$as_ac_Header'}'`
21289 { echo "$as_me:$LINENO: result: $ac_res" >&5
21290 echo "${ECHO_T}$ac_res" >&6; }
21291
21292 fi
21293 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21294 cat >>confdefs.h <<_ACEOF
21295 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21296 _ACEOF
21297
21298 fi
21299
21300 done
21301
21302 fi
21303
21304 done
21305
21306 fi
21307
21308 done
21309
21310 fi
21311
21312 for ac_header in com_err.h
21313 do
21314 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21315 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21316 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21317 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21318 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21319 echo $ECHO_N "(cached) $ECHO_C" >&6
21320 fi
21321 ac_res=`eval echo '${'$as_ac_Header'}'`
21322 { echo "$as_me:$LINENO: result: $ac_res" >&5
21323 echo "${ECHO_T}$ac_res" >&6; }
21324 else
21325 # Is the header compilable?
21326 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21327 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21328 cat >conftest.$ac_ext <<_ACEOF
21329 /* confdefs.h. */
21330 _ACEOF
21331 cat confdefs.h >>conftest.$ac_ext
21332 cat >>conftest.$ac_ext <<_ACEOF
21333 /* end confdefs.h. */
21334 $ac_includes_default
21335 #include <$ac_header>
21336 _ACEOF
21337 rm -f conftest.$ac_objext
21338 if { (ac_try="$ac_compile"
21339 case "(($ac_try" in
21340 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21341 *) ac_try_echo=$ac_try;;
21342 esac
21343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21344 (eval "$ac_compile") 2>conftest.er1
21345 ac_status=$?
21346 grep -v '^ *+' conftest.er1 >conftest.err
21347 rm -f conftest.er1
21348 cat conftest.err >&5
21349 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21350 (exit $ac_status); } && {
21351 test -z "$ac_c_werror_flag" ||
21352 test ! -s conftest.err
21353 } && test -s conftest.$ac_objext; then
21354 ac_header_compiler=yes
21355 else
21356 echo "$as_me: failed program was:" >&5
21357 sed 's/^/| /' conftest.$ac_ext >&5
21358
21359 ac_header_compiler=no
21360 fi
21361
21362 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21363 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21364 echo "${ECHO_T}$ac_header_compiler" >&6; }
21365
21366 # Is the header present?
21367 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21368 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21369 cat >conftest.$ac_ext <<_ACEOF
21370 /* confdefs.h. */
21371 _ACEOF
21372 cat confdefs.h >>conftest.$ac_ext
21373 cat >>conftest.$ac_ext <<_ACEOF
21374 /* end confdefs.h. */
21375 #include <$ac_header>
21376 _ACEOF
21377 if { (ac_try="$ac_cpp conftest.$ac_ext"
21378 case "(($ac_try" in
21379 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21380 *) ac_try_echo=$ac_try;;
21381 esac
21382 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21383 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21384 ac_status=$?
21385 grep -v '^ *+' conftest.er1 >conftest.err
21386 rm -f conftest.er1
21387 cat conftest.err >&5
21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21389 (exit $ac_status); } >/dev/null && {
21390 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21391 test ! -s conftest.err
21392 }; then
21393 ac_header_preproc=yes
21394 else
21395 echo "$as_me: failed program was:" >&5
21396 sed 's/^/| /' conftest.$ac_ext >&5
21397
21398 ac_header_preproc=no
21399 fi
21400
21401 rm -f conftest.err conftest.$ac_ext
21402 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21403 echo "${ECHO_T}$ac_header_preproc" >&6; }
21404
21405 # So? What about this header?
21406 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21407 yes:no: )
21408 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21409 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21410 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21411 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21412 ac_header_preproc=yes
21413 ;;
21414 no:yes:* )
21415 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21416 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21417 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21418 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21419 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21420 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21421 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21422 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21423 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21424 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21425 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21426 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21427
21428 ;;
21429 esac
21430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21433 echo $ECHO_N "(cached) $ECHO_C" >&6
21434 else
21435 eval "$as_ac_Header=\$ac_header_preproc"
21436 fi
21437 ac_res=`eval echo '${'$as_ac_Header'}'`
21438 { echo "$as_me:$LINENO: result: $ac_res" >&5
21439 echo "${ECHO_T}$ac_res" >&6; }
21440
21441 fi
21442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21443 cat >>confdefs.h <<_ACEOF
21444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21445 _ACEOF
21446
21447 fi
21448
21449 done
21450
21451 fi
21452
21453 # Solaris requires -lintl if you want strerror (which calls dgettext)
21454 # to return localized messages.
21455
21456 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21457 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21458 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21459 echo $ECHO_N "(cached) $ECHO_C" >&6
21460 else
21461 ac_check_lib_save_LIBS=$LIBS
21462 LIBS="-lintl $LIBS"
21463 cat >conftest.$ac_ext <<_ACEOF
21464 /* confdefs.h. */
21465 _ACEOF
21466 cat confdefs.h >>conftest.$ac_ext
21467 cat >>conftest.$ac_ext <<_ACEOF
21468 /* end confdefs.h. */
21469
21470 /* Override any GCC internal prototype to avoid an error.
21471 Use char because int might match the return type of a GCC
21472 builtin and then its argument prototype would still apply. */
21473 #ifdef __cplusplus
21474 extern "C"
21475 #endif
21476 char dgettext ();
21477 int
21478 main ()
21479 {
21480 return dgettext ();
21481 ;
21482 return 0;
21483 }
21484 _ACEOF
21485 rm -f conftest.$ac_objext conftest$ac_exeext
21486 if { (ac_try="$ac_link"
21487 case "(($ac_try" in
21488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21489 *) ac_try_echo=$ac_try;;
21490 esac
21491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21492 (eval "$ac_link") 2>conftest.er1
21493 ac_status=$?
21494 grep -v '^ *+' conftest.er1 >conftest.err
21495 rm -f conftest.er1
21496 cat conftest.err >&5
21497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21498 (exit $ac_status); } && {
21499 test -z "$ac_c_werror_flag" ||
21500 test ! -s conftest.err
21501 } && test -s conftest$ac_exeext &&
21502 $as_test_x conftest$ac_exeext; then
21503 ac_cv_lib_intl_dgettext=yes
21504 else
21505 echo "$as_me: failed program was:" >&5
21506 sed 's/^/| /' conftest.$ac_ext >&5
21507
21508 ac_cv_lib_intl_dgettext=no
21509 fi
21510
21511 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21512 conftest$ac_exeext conftest.$ac_ext
21513 LIBS=$ac_check_lib_save_LIBS
21514 fi
21515 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21516 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21517 if test $ac_cv_lib_intl_dgettext = yes; then
21518 cat >>confdefs.h <<_ACEOF
21519 #define HAVE_LIBINTL 1
21520 _ACEOF
21521
21522 LIBS="-lintl $LIBS"
21523
21524 fi
21525
21526
21527 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21528 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21529 if test "${emacs_cv_localtime_cache+set}" = set; then
21530 echo $ECHO_N "(cached) $ECHO_C" >&6
21531 else
21532 if test x$ac_cv_func_tzset = xyes; then
21533 if test "$cross_compiling" = yes; then
21534 # If we have tzset, assume the worst when cross-compiling.
21535 emacs_cv_localtime_cache=yes
21536 else
21537 cat >conftest.$ac_ext <<_ACEOF
21538 /* confdefs.h. */
21539 _ACEOF
21540 cat confdefs.h >>conftest.$ac_ext
21541 cat >>conftest.$ac_ext <<_ACEOF
21542 /* end confdefs.h. */
21543 #include <time.h>
21544 extern char **environ;
21545 unset_TZ ()
21546 {
21547 char **from, **to;
21548 for (to = from = environ; (*to = *from); from++)
21549 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21550 to++;
21551 }
21552 char TZ_GMT0[] = "TZ=GMT0";
21553 char TZ_PST8[] = "TZ=PST8";
21554 main()
21555 {
21556 time_t now = time ((time_t *) 0);
21557 int hour_GMT0, hour_unset;
21558 if (putenv (TZ_GMT0) != 0)
21559 exit (1);
21560 hour_GMT0 = localtime (&now)->tm_hour;
21561 unset_TZ ();
21562 hour_unset = localtime (&now)->tm_hour;
21563 if (putenv (TZ_PST8) != 0)
21564 exit (1);
21565 if (localtime (&now)->tm_hour == hour_GMT0)
21566 exit (1);
21567 unset_TZ ();
21568 if (localtime (&now)->tm_hour != hour_unset)
21569 exit (1);
21570 exit (0);
21571 }
21572 _ACEOF
21573 rm -f conftest$ac_exeext
21574 if { (ac_try="$ac_link"
21575 case "(($ac_try" in
21576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21577 *) ac_try_echo=$ac_try;;
21578 esac
21579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21580 (eval "$ac_link") 2>&5
21581 ac_status=$?
21582 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21583 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21584 { (case "(($ac_try" in
21585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21586 *) ac_try_echo=$ac_try;;
21587 esac
21588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21589 (eval "$ac_try") 2>&5
21590 ac_status=$?
21591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21592 (exit $ac_status); }; }; then
21593 emacs_cv_localtime_cache=no
21594 else
21595 echo "$as_me: program exited with status $ac_status" >&5
21596 echo "$as_me: failed program was:" >&5
21597 sed 's/^/| /' conftest.$ac_ext >&5
21598
21599 ( exit $ac_status )
21600 emacs_cv_localtime_cache=yes
21601 fi
21602 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21603 fi
21604
21605
21606 else
21607 # If we lack tzset, report that localtime does not cache TZ,
21608 # since we can't invalidate the cache if we don't have tzset.
21609 emacs_cv_localtime_cache=no
21610 fi
21611 fi
21612 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21613 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21614 if test $emacs_cv_localtime_cache = yes; then
21615
21616 cat >>confdefs.h <<\_ACEOF
21617 #define LOCALTIME_CACHE 1
21618 _ACEOF
21619
21620 fi
21621
21622 if test "x$HAVE_TIMEVAL" = xyes; then
21623
21624 for ac_func in gettimeofday
21625 do
21626 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21627 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21628 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21629 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21630 echo $ECHO_N "(cached) $ECHO_C" >&6
21631 else
21632 cat >conftest.$ac_ext <<_ACEOF
21633 /* confdefs.h. */
21634 _ACEOF
21635 cat confdefs.h >>conftest.$ac_ext
21636 cat >>conftest.$ac_ext <<_ACEOF
21637 /* end confdefs.h. */
21638 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21639 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21640 #define $ac_func innocuous_$ac_func
21641
21642 /* System header to define __stub macros and hopefully few prototypes,
21643 which can conflict with char $ac_func (); below.
21644 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21645 <limits.h> exists even on freestanding compilers. */
21646
21647 #ifdef __STDC__
21648 # include <limits.h>
21649 #else
21650 # include <assert.h>
21651 #endif
21652
21653 #undef $ac_func
21654
21655 /* Override any GCC internal prototype to avoid an error.
21656 Use char because int might match the return type of a GCC
21657 builtin and then its argument prototype would still apply. */
21658 #ifdef __cplusplus
21659 extern "C"
21660 #endif
21661 char $ac_func ();
21662 /* The GNU C library defines this for functions which it implements
21663 to always fail with ENOSYS. Some functions are actually named
21664 something starting with __ and the normal name is an alias. */
21665 #if defined __stub_$ac_func || defined __stub___$ac_func
21666 choke me
21667 #endif
21668
21669 int
21670 main ()
21671 {
21672 return $ac_func ();
21673 ;
21674 return 0;
21675 }
21676 _ACEOF
21677 rm -f conftest.$ac_objext conftest$ac_exeext
21678 if { (ac_try="$ac_link"
21679 case "(($ac_try" in
21680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21681 *) ac_try_echo=$ac_try;;
21682 esac
21683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21684 (eval "$ac_link") 2>conftest.er1
21685 ac_status=$?
21686 grep -v '^ *+' conftest.er1 >conftest.err
21687 rm -f conftest.er1
21688 cat conftest.err >&5
21689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21690 (exit $ac_status); } && {
21691 test -z "$ac_c_werror_flag" ||
21692 test ! -s conftest.err
21693 } && test -s conftest$ac_exeext &&
21694 $as_test_x conftest$ac_exeext; then
21695 eval "$as_ac_var=yes"
21696 else
21697 echo "$as_me: failed program was:" >&5
21698 sed 's/^/| /' conftest.$ac_ext >&5
21699
21700 eval "$as_ac_var=no"
21701 fi
21702
21703 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21704 conftest$ac_exeext conftest.$ac_ext
21705 fi
21706 ac_res=`eval echo '${'$as_ac_var'}'`
21707 { echo "$as_me:$LINENO: result: $ac_res" >&5
21708 echo "${ECHO_T}$ac_res" >&6; }
21709 if test `eval echo '${'$as_ac_var'}'` = yes; then
21710 cat >>confdefs.h <<_ACEOF
21711 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21712 _ACEOF
21713
21714 fi
21715 done
21716
21717 if test $ac_cv_func_gettimeofday = yes; then
21718 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21719 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21720 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21721 echo $ECHO_N "(cached) $ECHO_C" >&6
21722 else
21723 cat >conftest.$ac_ext <<_ACEOF
21724 /* confdefs.h. */
21725 _ACEOF
21726 cat confdefs.h >>conftest.$ac_ext
21727 cat >>conftest.$ac_ext <<_ACEOF
21728 /* end confdefs.h. */
21729
21730 #ifdef TIME_WITH_SYS_TIME
21731 #include <sys/time.h>
21732 #include <time.h>
21733 #else
21734 #ifdef HAVE_SYS_TIME_H
21735 #include <sys/time.h>
21736 #else
21737 #include <time.h>
21738 #endif
21739 #endif
21740 int
21741 main ()
21742 {
21743 struct timeval time;
21744 gettimeofday (&time, 0);
21745 ;
21746 return 0;
21747 }
21748 _ACEOF
21749 rm -f conftest.$ac_objext
21750 if { (ac_try="$ac_compile"
21751 case "(($ac_try" in
21752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21753 *) ac_try_echo=$ac_try;;
21754 esac
21755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21756 (eval "$ac_compile") 2>conftest.er1
21757 ac_status=$?
21758 grep -v '^ *+' conftest.er1 >conftest.err
21759 rm -f conftest.er1
21760 cat conftest.err >&5
21761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21762 (exit $ac_status); } && {
21763 test -z "$ac_c_werror_flag" ||
21764 test ! -s conftest.err
21765 } && test -s conftest.$ac_objext; then
21766 emacs_cv_gettimeofday_two_arguments=yes
21767 else
21768 echo "$as_me: failed program was:" >&5
21769 sed 's/^/| /' conftest.$ac_ext >&5
21770
21771 emacs_cv_gettimeofday_two_arguments=no
21772 fi
21773
21774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21775 fi
21776 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21777 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21778 if test $emacs_cv_gettimeofday_two_arguments = no; then
21779
21780 cat >>confdefs.h <<\_ACEOF
21781 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21782 _ACEOF
21783
21784 fi
21785 fi
21786 fi
21787
21788 ok_so_far=yes
21789 { echo "$as_me:$LINENO: checking for socket" >&5
21790 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21791 if test "${ac_cv_func_socket+set}" = set; then
21792 echo $ECHO_N "(cached) $ECHO_C" >&6
21793 else
21794 cat >conftest.$ac_ext <<_ACEOF
21795 /* confdefs.h. */
21796 _ACEOF
21797 cat confdefs.h >>conftest.$ac_ext
21798 cat >>conftest.$ac_ext <<_ACEOF
21799 /* end confdefs.h. */
21800 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21801 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21802 #define socket innocuous_socket
21803
21804 /* System header to define __stub macros and hopefully few prototypes,
21805 which can conflict with char socket (); below.
21806 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21807 <limits.h> exists even on freestanding compilers. */
21808
21809 #ifdef __STDC__
21810 # include <limits.h>
21811 #else
21812 # include <assert.h>
21813 #endif
21814
21815 #undef socket
21816
21817 /* Override any GCC internal prototype to avoid an error.
21818 Use char because int might match the return type of a GCC
21819 builtin and then its argument prototype would still apply. */
21820 #ifdef __cplusplus
21821 extern "C"
21822 #endif
21823 char socket ();
21824 /* The GNU C library defines this for functions which it implements
21825 to always fail with ENOSYS. Some functions are actually named
21826 something starting with __ and the normal name is an alias. */
21827 #if defined __stub_socket || defined __stub___socket
21828 choke me
21829 #endif
21830
21831 int
21832 main ()
21833 {
21834 return socket ();
21835 ;
21836 return 0;
21837 }
21838 _ACEOF
21839 rm -f conftest.$ac_objext conftest$ac_exeext
21840 if { (ac_try="$ac_link"
21841 case "(($ac_try" in
21842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21843 *) ac_try_echo=$ac_try;;
21844 esac
21845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21846 (eval "$ac_link") 2>conftest.er1
21847 ac_status=$?
21848 grep -v '^ *+' conftest.er1 >conftest.err
21849 rm -f conftest.er1
21850 cat conftest.err >&5
21851 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21852 (exit $ac_status); } && {
21853 test -z "$ac_c_werror_flag" ||
21854 test ! -s conftest.err
21855 } && test -s conftest$ac_exeext &&
21856 $as_test_x conftest$ac_exeext; then
21857 ac_cv_func_socket=yes
21858 else
21859 echo "$as_me: failed program was:" >&5
21860 sed 's/^/| /' conftest.$ac_ext >&5
21861
21862 ac_cv_func_socket=no
21863 fi
21864
21865 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21866 conftest$ac_exeext conftest.$ac_ext
21867 fi
21868 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21869 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21870 if test $ac_cv_func_socket = yes; then
21871 :
21872 else
21873 ok_so_far=no
21874 fi
21875
21876 if test $ok_so_far = yes; then
21877 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21878 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21879 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21880 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21881 echo $ECHO_N "(cached) $ECHO_C" >&6
21882 fi
21883 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21884 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21885 else
21886 # Is the header compilable?
21887 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21888 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21889 cat >conftest.$ac_ext <<_ACEOF
21890 /* confdefs.h. */
21891 _ACEOF
21892 cat confdefs.h >>conftest.$ac_ext
21893 cat >>conftest.$ac_ext <<_ACEOF
21894 /* end confdefs.h. */
21895 $ac_includes_default
21896 #include <netinet/in.h>
21897 _ACEOF
21898 rm -f conftest.$ac_objext
21899 if { (ac_try="$ac_compile"
21900 case "(($ac_try" in
21901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21902 *) ac_try_echo=$ac_try;;
21903 esac
21904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21905 (eval "$ac_compile") 2>conftest.er1
21906 ac_status=$?
21907 grep -v '^ *+' conftest.er1 >conftest.err
21908 rm -f conftest.er1
21909 cat conftest.err >&5
21910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21911 (exit $ac_status); } && {
21912 test -z "$ac_c_werror_flag" ||
21913 test ! -s conftest.err
21914 } && test -s conftest.$ac_objext; then
21915 ac_header_compiler=yes
21916 else
21917 echo "$as_me: failed program was:" >&5
21918 sed 's/^/| /' conftest.$ac_ext >&5
21919
21920 ac_header_compiler=no
21921 fi
21922
21923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21924 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21925 echo "${ECHO_T}$ac_header_compiler" >&6; }
21926
21927 # Is the header present?
21928 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21929 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21930 cat >conftest.$ac_ext <<_ACEOF
21931 /* confdefs.h. */
21932 _ACEOF
21933 cat confdefs.h >>conftest.$ac_ext
21934 cat >>conftest.$ac_ext <<_ACEOF
21935 /* end confdefs.h. */
21936 #include <netinet/in.h>
21937 _ACEOF
21938 if { (ac_try="$ac_cpp conftest.$ac_ext"
21939 case "(($ac_try" in
21940 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21941 *) ac_try_echo=$ac_try;;
21942 esac
21943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21945 ac_status=$?
21946 grep -v '^ *+' conftest.er1 >conftest.err
21947 rm -f conftest.er1
21948 cat conftest.err >&5
21949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21950 (exit $ac_status); } >/dev/null && {
21951 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21952 test ! -s conftest.err
21953 }; then
21954 ac_header_preproc=yes
21955 else
21956 echo "$as_me: failed program was:" >&5
21957 sed 's/^/| /' conftest.$ac_ext >&5
21958
21959 ac_header_preproc=no
21960 fi
21961
21962 rm -f conftest.err conftest.$ac_ext
21963 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21964 echo "${ECHO_T}$ac_header_preproc" >&6; }
21965
21966 # So? What about this header?
21967 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21968 yes:no: )
21969 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21970 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21971 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21972 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21973 ac_header_preproc=yes
21974 ;;
21975 no:yes:* )
21976 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21977 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21978 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
21979 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
21980 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
21981 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
21982 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
21983 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
21984 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
21985 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
21986 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
21987 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
21988
21989 ;;
21990 esac
21991 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21992 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21993 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21994 echo $ECHO_N "(cached) $ECHO_C" >&6
21995 else
21996 ac_cv_header_netinet_in_h=$ac_header_preproc
21997 fi
21998 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21999 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22000
22001 fi
22002 if test $ac_cv_header_netinet_in_h = yes; then
22003 :
22004 else
22005 ok_so_far=no
22006 fi
22007
22008
22009 fi
22010 if test $ok_so_far = yes; then
22011 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22012 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22013 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 fi
22017 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22018 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22019 else
22020 # Is the header compilable?
22021 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22022 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22023 cat >conftest.$ac_ext <<_ACEOF
22024 /* confdefs.h. */
22025 _ACEOF
22026 cat confdefs.h >>conftest.$ac_ext
22027 cat >>conftest.$ac_ext <<_ACEOF
22028 /* end confdefs.h. */
22029 $ac_includes_default
22030 #include <arpa/inet.h>
22031 _ACEOF
22032 rm -f conftest.$ac_objext
22033 if { (ac_try="$ac_compile"
22034 case "(($ac_try" in
22035 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22036 *) ac_try_echo=$ac_try;;
22037 esac
22038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22039 (eval "$ac_compile") 2>conftest.er1
22040 ac_status=$?
22041 grep -v '^ *+' conftest.er1 >conftest.err
22042 rm -f conftest.er1
22043 cat conftest.err >&5
22044 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22045 (exit $ac_status); } && {
22046 test -z "$ac_c_werror_flag" ||
22047 test ! -s conftest.err
22048 } && test -s conftest.$ac_objext; then
22049 ac_header_compiler=yes
22050 else
22051 echo "$as_me: failed program was:" >&5
22052 sed 's/^/| /' conftest.$ac_ext >&5
22053
22054 ac_header_compiler=no
22055 fi
22056
22057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22058 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22059 echo "${ECHO_T}$ac_header_compiler" >&6; }
22060
22061 # Is the header present?
22062 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22063 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22064 cat >conftest.$ac_ext <<_ACEOF
22065 /* confdefs.h. */
22066 _ACEOF
22067 cat confdefs.h >>conftest.$ac_ext
22068 cat >>conftest.$ac_ext <<_ACEOF
22069 /* end confdefs.h. */
22070 #include <arpa/inet.h>
22071 _ACEOF
22072 if { (ac_try="$ac_cpp conftest.$ac_ext"
22073 case "(($ac_try" in
22074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22075 *) ac_try_echo=$ac_try;;
22076 esac
22077 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22078 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22079 ac_status=$?
22080 grep -v '^ *+' conftest.er1 >conftest.err
22081 rm -f conftest.er1
22082 cat conftest.err >&5
22083 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22084 (exit $ac_status); } >/dev/null && {
22085 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22086 test ! -s conftest.err
22087 }; then
22088 ac_header_preproc=yes
22089 else
22090 echo "$as_me: failed program was:" >&5
22091 sed 's/^/| /' conftest.$ac_ext >&5
22092
22093 ac_header_preproc=no
22094 fi
22095
22096 rm -f conftest.err conftest.$ac_ext
22097 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22098 echo "${ECHO_T}$ac_header_preproc" >&6; }
22099
22100 # So? What about this header?
22101 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22102 yes:no: )
22103 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22104 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22105 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22106 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22107 ac_header_preproc=yes
22108 ;;
22109 no:yes:* )
22110 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22111 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22112 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22113 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22114 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22115 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22116 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22117 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22118 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22119 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22120 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22121 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22122
22123 ;;
22124 esac
22125 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22126 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22127 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22128 echo $ECHO_N "(cached) $ECHO_C" >&6
22129 else
22130 ac_cv_header_arpa_inet_h=$ac_header_preproc
22131 fi
22132 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22133 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22134
22135 fi
22136 if test $ac_cv_header_arpa_inet_h = yes; then
22137 :
22138 else
22139 ok_so_far=no
22140 fi
22141
22142
22143 fi
22144 if test $ok_so_far = yes; then
22145
22146 cat >>confdefs.h <<\_ACEOF
22147 #define HAVE_INET_SOCKETS 1
22148 _ACEOF
22149
22150 fi
22151
22152
22153 for ac_header in sys/ioctl.h
22154 do
22155 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22156 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22157 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22158 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22159 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22160 echo $ECHO_N "(cached) $ECHO_C" >&6
22161 fi
22162 ac_res=`eval echo '${'$as_ac_Header'}'`
22163 { echo "$as_me:$LINENO: result: $ac_res" >&5
22164 echo "${ECHO_T}$ac_res" >&6; }
22165 else
22166 # Is the header compilable?
22167 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22168 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22169 cat >conftest.$ac_ext <<_ACEOF
22170 /* confdefs.h. */
22171 _ACEOF
22172 cat confdefs.h >>conftest.$ac_ext
22173 cat >>conftest.$ac_ext <<_ACEOF
22174 /* end confdefs.h. */
22175 $ac_includes_default
22176 #include <$ac_header>
22177 _ACEOF
22178 rm -f conftest.$ac_objext
22179 if { (ac_try="$ac_compile"
22180 case "(($ac_try" in
22181 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22182 *) ac_try_echo=$ac_try;;
22183 esac
22184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22185 (eval "$ac_compile") 2>conftest.er1
22186 ac_status=$?
22187 grep -v '^ *+' conftest.er1 >conftest.err
22188 rm -f conftest.er1
22189 cat conftest.err >&5
22190 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22191 (exit $ac_status); } && {
22192 test -z "$ac_c_werror_flag" ||
22193 test ! -s conftest.err
22194 } && test -s conftest.$ac_objext; then
22195 ac_header_compiler=yes
22196 else
22197 echo "$as_me: failed program was:" >&5
22198 sed 's/^/| /' conftest.$ac_ext >&5
22199
22200 ac_header_compiler=no
22201 fi
22202
22203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22204 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22205 echo "${ECHO_T}$ac_header_compiler" >&6; }
22206
22207 # Is the header present?
22208 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22209 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22210 cat >conftest.$ac_ext <<_ACEOF
22211 /* confdefs.h. */
22212 _ACEOF
22213 cat confdefs.h >>conftest.$ac_ext
22214 cat >>conftest.$ac_ext <<_ACEOF
22215 /* end confdefs.h. */
22216 #include <$ac_header>
22217 _ACEOF
22218 if { (ac_try="$ac_cpp conftest.$ac_ext"
22219 case "(($ac_try" in
22220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22221 *) ac_try_echo=$ac_try;;
22222 esac
22223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22224 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22225 ac_status=$?
22226 grep -v '^ *+' conftest.er1 >conftest.err
22227 rm -f conftest.er1
22228 cat conftest.err >&5
22229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22230 (exit $ac_status); } >/dev/null && {
22231 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22232 test ! -s conftest.err
22233 }; then
22234 ac_header_preproc=yes
22235 else
22236 echo "$as_me: failed program was:" >&5
22237 sed 's/^/| /' conftest.$ac_ext >&5
22238
22239 ac_header_preproc=no
22240 fi
22241
22242 rm -f conftest.err conftest.$ac_ext
22243 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22244 echo "${ECHO_T}$ac_header_preproc" >&6; }
22245
22246 # So? What about this header?
22247 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22248 yes:no: )
22249 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22250 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22251 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22252 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22253 ac_header_preproc=yes
22254 ;;
22255 no:yes:* )
22256 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22257 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22258 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22259 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22260 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22261 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22262 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22263 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22264 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22265 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22266 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22267 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22268
22269 ;;
22270 esac
22271 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22272 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22273 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22274 echo $ECHO_N "(cached) $ECHO_C" >&6
22275 else
22276 eval "$as_ac_Header=\$ac_header_preproc"
22277 fi
22278 ac_res=`eval echo '${'$as_ac_Header'}'`
22279 { echo "$as_me:$LINENO: result: $ac_res" >&5
22280 echo "${ECHO_T}$ac_res" >&6; }
22281
22282 fi
22283 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22284 cat >>confdefs.h <<_ACEOF
22285 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22286 _ACEOF
22287
22288 fi
22289
22290 done
22291
22292
22293 if test -f /usr/lpp/X11/bin/smt.exp; then
22294
22295 cat >>confdefs.h <<\_ACEOF
22296 #define HAVE_AIX_SMT_EXP 1
22297 _ACEOF
22298
22299 fi
22300
22301 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22302 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22303 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22304 { echo "$as_me:$LINENO: result: yes" >&5
22305 echo "${ECHO_T}yes" >&6; }
22306
22307 cat >>confdefs.h <<\_ACEOF
22308 #define HAVE_DEV_PTMX 1
22309 _ACEOF
22310
22311 else
22312 { echo "$as_me:$LINENO: result: no" >&5
22313 echo "${ECHO_T}no" >&6; }
22314 fi
22315
22316 { echo "$as_me:$LINENO: checking for pid_t" >&5
22317 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22318 if test "${ac_cv_type_pid_t+set}" = set; then
22319 echo $ECHO_N "(cached) $ECHO_C" >&6
22320 else
22321 cat >conftest.$ac_ext <<_ACEOF
22322 /* confdefs.h. */
22323 _ACEOF
22324 cat confdefs.h >>conftest.$ac_ext
22325 cat >>conftest.$ac_ext <<_ACEOF
22326 /* end confdefs.h. */
22327 $ac_includes_default
22328 typedef pid_t ac__type_new_;
22329 int
22330 main ()
22331 {
22332 if ((ac__type_new_ *) 0)
22333 return 0;
22334 if (sizeof (ac__type_new_))
22335 return 0;
22336 ;
22337 return 0;
22338 }
22339 _ACEOF
22340 rm -f conftest.$ac_objext
22341 if { (ac_try="$ac_compile"
22342 case "(($ac_try" in
22343 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22344 *) ac_try_echo=$ac_try;;
22345 esac
22346 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22347 (eval "$ac_compile") 2>conftest.er1
22348 ac_status=$?
22349 grep -v '^ *+' conftest.er1 >conftest.err
22350 rm -f conftest.er1
22351 cat conftest.err >&5
22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22353 (exit $ac_status); } && {
22354 test -z "$ac_c_werror_flag" ||
22355 test ! -s conftest.err
22356 } && test -s conftest.$ac_objext; then
22357 ac_cv_type_pid_t=yes
22358 else
22359 echo "$as_me: failed program was:" >&5
22360 sed 's/^/| /' conftest.$ac_ext >&5
22361
22362 ac_cv_type_pid_t=no
22363 fi
22364
22365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22366 fi
22367 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22368 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22369 if test $ac_cv_type_pid_t = yes; then
22370 :
22371 else
22372
22373 cat >>confdefs.h <<_ACEOF
22374 #define pid_t int
22375 _ACEOF
22376
22377 fi
22378
22379
22380 for ac_header in vfork.h
22381 do
22382 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22383 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22384 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22385 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22386 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22387 echo $ECHO_N "(cached) $ECHO_C" >&6
22388 fi
22389 ac_res=`eval echo '${'$as_ac_Header'}'`
22390 { echo "$as_me:$LINENO: result: $ac_res" >&5
22391 echo "${ECHO_T}$ac_res" >&6; }
22392 else
22393 # Is the header compilable?
22394 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22395 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22396 cat >conftest.$ac_ext <<_ACEOF
22397 /* confdefs.h. */
22398 _ACEOF
22399 cat confdefs.h >>conftest.$ac_ext
22400 cat >>conftest.$ac_ext <<_ACEOF
22401 /* end confdefs.h. */
22402 $ac_includes_default
22403 #include <$ac_header>
22404 _ACEOF
22405 rm -f conftest.$ac_objext
22406 if { (ac_try="$ac_compile"
22407 case "(($ac_try" in
22408 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22409 *) ac_try_echo=$ac_try;;
22410 esac
22411 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22412 (eval "$ac_compile") 2>conftest.er1
22413 ac_status=$?
22414 grep -v '^ *+' conftest.er1 >conftest.err
22415 rm -f conftest.er1
22416 cat conftest.err >&5
22417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22418 (exit $ac_status); } && {
22419 test -z "$ac_c_werror_flag" ||
22420 test ! -s conftest.err
22421 } && test -s conftest.$ac_objext; then
22422 ac_header_compiler=yes
22423 else
22424 echo "$as_me: failed program was:" >&5
22425 sed 's/^/| /' conftest.$ac_ext >&5
22426
22427 ac_header_compiler=no
22428 fi
22429
22430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22431 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22432 echo "${ECHO_T}$ac_header_compiler" >&6; }
22433
22434 # Is the header present?
22435 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22436 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22437 cat >conftest.$ac_ext <<_ACEOF
22438 /* confdefs.h. */
22439 _ACEOF
22440 cat confdefs.h >>conftest.$ac_ext
22441 cat >>conftest.$ac_ext <<_ACEOF
22442 /* end confdefs.h. */
22443 #include <$ac_header>
22444 _ACEOF
22445 if { (ac_try="$ac_cpp conftest.$ac_ext"
22446 case "(($ac_try" in
22447 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22448 *) ac_try_echo=$ac_try;;
22449 esac
22450 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22451 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22452 ac_status=$?
22453 grep -v '^ *+' conftest.er1 >conftest.err
22454 rm -f conftest.er1
22455 cat conftest.err >&5
22456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22457 (exit $ac_status); } >/dev/null && {
22458 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22459 test ! -s conftest.err
22460 }; then
22461 ac_header_preproc=yes
22462 else
22463 echo "$as_me: failed program was:" >&5
22464 sed 's/^/| /' conftest.$ac_ext >&5
22465
22466 ac_header_preproc=no
22467 fi
22468
22469 rm -f conftest.err conftest.$ac_ext
22470 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22471 echo "${ECHO_T}$ac_header_preproc" >&6; }
22472
22473 # So? What about this header?
22474 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22475 yes:no: )
22476 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22477 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22478 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22479 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22480 ac_header_preproc=yes
22481 ;;
22482 no:yes:* )
22483 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22484 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22485 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22486 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22487 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22488 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22490 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22492 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22494 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22495
22496 ;;
22497 esac
22498 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22499 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22500 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22501 echo $ECHO_N "(cached) $ECHO_C" >&6
22502 else
22503 eval "$as_ac_Header=\$ac_header_preproc"
22504 fi
22505 ac_res=`eval echo '${'$as_ac_Header'}'`
22506 { echo "$as_me:$LINENO: result: $ac_res" >&5
22507 echo "${ECHO_T}$ac_res" >&6; }
22508
22509 fi
22510 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22511 cat >>confdefs.h <<_ACEOF
22512 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22513 _ACEOF
22514
22515 fi
22516
22517 done
22518
22519
22520
22521 for ac_func in fork vfork
22522 do
22523 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22524 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22525 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22526 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22527 echo $ECHO_N "(cached) $ECHO_C" >&6
22528 else
22529 cat >conftest.$ac_ext <<_ACEOF
22530 /* confdefs.h. */
22531 _ACEOF
22532 cat confdefs.h >>conftest.$ac_ext
22533 cat >>conftest.$ac_ext <<_ACEOF
22534 /* end confdefs.h. */
22535 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22536 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22537 #define $ac_func innocuous_$ac_func
22538
22539 /* System header to define __stub macros and hopefully few prototypes,
22540 which can conflict with char $ac_func (); below.
22541 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22542 <limits.h> exists even on freestanding compilers. */
22543
22544 #ifdef __STDC__
22545 # include <limits.h>
22546 #else
22547 # include <assert.h>
22548 #endif
22549
22550 #undef $ac_func
22551
22552 /* Override any GCC internal prototype to avoid an error.
22553 Use char because int might match the return type of a GCC
22554 builtin and then its argument prototype would still apply. */
22555 #ifdef __cplusplus
22556 extern "C"
22557 #endif
22558 char $ac_func ();
22559 /* The GNU C library defines this for functions which it implements
22560 to always fail with ENOSYS. Some functions are actually named
22561 something starting with __ and the normal name is an alias. */
22562 #if defined __stub_$ac_func || defined __stub___$ac_func
22563 choke me
22564 #endif
22565
22566 int
22567 main ()
22568 {
22569 return $ac_func ();
22570 ;
22571 return 0;
22572 }
22573 _ACEOF
22574 rm -f conftest.$ac_objext conftest$ac_exeext
22575 if { (ac_try="$ac_link"
22576 case "(($ac_try" in
22577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22578 *) ac_try_echo=$ac_try;;
22579 esac
22580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22581 (eval "$ac_link") 2>conftest.er1
22582 ac_status=$?
22583 grep -v '^ *+' conftest.er1 >conftest.err
22584 rm -f conftest.er1
22585 cat conftest.err >&5
22586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22587 (exit $ac_status); } && {
22588 test -z "$ac_c_werror_flag" ||
22589 test ! -s conftest.err
22590 } && test -s conftest$ac_exeext &&
22591 $as_test_x conftest$ac_exeext; then
22592 eval "$as_ac_var=yes"
22593 else
22594 echo "$as_me: failed program was:" >&5
22595 sed 's/^/| /' conftest.$ac_ext >&5
22596
22597 eval "$as_ac_var=no"
22598 fi
22599
22600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22601 conftest$ac_exeext conftest.$ac_ext
22602 fi
22603 ac_res=`eval echo '${'$as_ac_var'}'`
22604 { echo "$as_me:$LINENO: result: $ac_res" >&5
22605 echo "${ECHO_T}$ac_res" >&6; }
22606 if test `eval echo '${'$as_ac_var'}'` = yes; then
22607 cat >>confdefs.h <<_ACEOF
22608 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22609 _ACEOF
22610
22611 fi
22612 done
22613
22614 if test "x$ac_cv_func_fork" = xyes; then
22615 { echo "$as_me:$LINENO: checking for working fork" >&5
22616 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22617 if test "${ac_cv_func_fork_works+set}" = set; then
22618 echo $ECHO_N "(cached) $ECHO_C" >&6
22619 else
22620 if test "$cross_compiling" = yes; then
22621 ac_cv_func_fork_works=cross
22622 else
22623 cat >conftest.$ac_ext <<_ACEOF
22624 /* confdefs.h. */
22625 _ACEOF
22626 cat confdefs.h >>conftest.$ac_ext
22627 cat >>conftest.$ac_ext <<_ACEOF
22628 /* end confdefs.h. */
22629 $ac_includes_default
22630 int
22631 main ()
22632 {
22633
22634 /* By Ruediger Kuhlmann. */
22635 return fork () < 0;
22636
22637 ;
22638 return 0;
22639 }
22640 _ACEOF
22641 rm -f conftest$ac_exeext
22642 if { (ac_try="$ac_link"
22643 case "(($ac_try" in
22644 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22645 *) ac_try_echo=$ac_try;;
22646 esac
22647 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22648 (eval "$ac_link") 2>&5
22649 ac_status=$?
22650 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22651 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22652 { (case "(($ac_try" in
22653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22654 *) ac_try_echo=$ac_try;;
22655 esac
22656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22657 (eval "$ac_try") 2>&5
22658 ac_status=$?
22659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22660 (exit $ac_status); }; }; then
22661 ac_cv_func_fork_works=yes
22662 else
22663 echo "$as_me: program exited with status $ac_status" >&5
22664 echo "$as_me: failed program was:" >&5
22665 sed 's/^/| /' conftest.$ac_ext >&5
22666
22667 ( exit $ac_status )
22668 ac_cv_func_fork_works=no
22669 fi
22670 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22671 fi
22672
22673
22674 fi
22675 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22676 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22677
22678 else
22679 ac_cv_func_fork_works=$ac_cv_func_fork
22680 fi
22681 if test "x$ac_cv_func_fork_works" = xcross; then
22682 case $host in
22683 *-*-amigaos* | *-*-msdosdjgpp*)
22684 # Override, as these systems have only a dummy fork() stub
22685 ac_cv_func_fork_works=no
22686 ;;
22687 *)
22688 ac_cv_func_fork_works=yes
22689 ;;
22690 esac
22691 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22692 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22693 fi
22694 ac_cv_func_vfork_works=$ac_cv_func_vfork
22695 if test "x$ac_cv_func_vfork" = xyes; then
22696 { echo "$as_me:$LINENO: checking for working vfork" >&5
22697 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22698 if test "${ac_cv_func_vfork_works+set}" = set; then
22699 echo $ECHO_N "(cached) $ECHO_C" >&6
22700 else
22701 if test "$cross_compiling" = yes; then
22702 ac_cv_func_vfork_works=cross
22703 else
22704 cat >conftest.$ac_ext <<_ACEOF
22705 /* confdefs.h. */
22706 _ACEOF
22707 cat confdefs.h >>conftest.$ac_ext
22708 cat >>conftest.$ac_ext <<_ACEOF
22709 /* end confdefs.h. */
22710 /* Thanks to Paul Eggert for this test. */
22711 $ac_includes_default
22712 #include <sys/wait.h>
22713 #ifdef HAVE_VFORK_H
22714 # include <vfork.h>
22715 #endif
22716 /* On some sparc systems, changes by the child to local and incoming
22717 argument registers are propagated back to the parent. The compiler
22718 is told about this with #include <vfork.h>, but some compilers
22719 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22720 static variable whose address is put into a register that is
22721 clobbered by the vfork. */
22722 static void
22723 #ifdef __cplusplus
22724 sparc_address_test (int arg)
22725 # else
22726 sparc_address_test (arg) int arg;
22727 #endif
22728 {
22729 static pid_t child;
22730 if (!child) {
22731 child = vfork ();
22732 if (child < 0) {
22733 perror ("vfork");
22734 _exit(2);
22735 }
22736 if (!child) {
22737 arg = getpid();
22738 write(-1, "", 0);
22739 _exit (arg);
22740 }
22741 }
22742 }
22743
22744 int
22745 main ()
22746 {
22747 pid_t parent = getpid ();
22748 pid_t child;
22749
22750 sparc_address_test (0);
22751
22752 child = vfork ();
22753
22754 if (child == 0) {
22755 /* Here is another test for sparc vfork register problems. This
22756 test uses lots of local variables, at least as many local
22757 variables as main has allocated so far including compiler
22758 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22759 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22760 reuse the register of parent for one of the local variables,
22761 since it will think that parent can't possibly be used any more
22762 in this routine. Assigning to the local variable will thus
22763 munge parent in the parent process. */
22764 pid_t
22765 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22766 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22767 /* Convince the compiler that p..p7 are live; otherwise, it might
22768 use the same hardware register for all 8 local variables. */
22769 if (p != p1 || p != p2 || p != p3 || p != p4
22770 || p != p5 || p != p6 || p != p7)
22771 _exit(1);
22772
22773 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22774 from child file descriptors. If the child closes a descriptor
22775 before it execs or exits, this munges the parent's descriptor
22776 as well. Test for this by closing stdout in the child. */
22777 _exit(close(fileno(stdout)) != 0);
22778 } else {
22779 int status;
22780 struct stat st;
22781
22782 while (wait(&status) != child)
22783 ;
22784 return (
22785 /* Was there some problem with vforking? */
22786 child < 0
22787
22788 /* Did the child fail? (This shouldn't happen.) */
22789 || status
22790
22791 /* Did the vfork/compiler bug occur? */
22792 || parent != getpid()
22793
22794 /* Did the file descriptor bug occur? */
22795 || fstat(fileno(stdout), &st) != 0
22796 );
22797 }
22798 }
22799 _ACEOF
22800 rm -f conftest$ac_exeext
22801 if { (ac_try="$ac_link"
22802 case "(($ac_try" in
22803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22804 *) ac_try_echo=$ac_try;;
22805 esac
22806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22807 (eval "$ac_link") 2>&5
22808 ac_status=$?
22809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22810 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22811 { (case "(($ac_try" in
22812 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22813 *) ac_try_echo=$ac_try;;
22814 esac
22815 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22816 (eval "$ac_try") 2>&5
22817 ac_status=$?
22818 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22819 (exit $ac_status); }; }; then
22820 ac_cv_func_vfork_works=yes
22821 else
22822 echo "$as_me: program exited with status $ac_status" >&5
22823 echo "$as_me: failed program was:" >&5
22824 sed 's/^/| /' conftest.$ac_ext >&5
22825
22826 ( exit $ac_status )
22827 ac_cv_func_vfork_works=no
22828 fi
22829 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22830 fi
22831
22832
22833 fi
22834 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22835 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22836
22837 fi;
22838 if test "x$ac_cv_func_fork_works" = xcross; then
22839 ac_cv_func_vfork_works=$ac_cv_func_vfork
22840 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22841 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22842 fi
22843
22844 if test "x$ac_cv_func_vfork_works" = xyes; then
22845
22846 cat >>confdefs.h <<\_ACEOF
22847 #define HAVE_WORKING_VFORK 1
22848 _ACEOF
22849
22850 else
22851
22852 cat >>confdefs.h <<\_ACEOF
22853 #define vfork fork
22854 _ACEOF
22855
22856 fi
22857 if test "x$ac_cv_func_fork_works" = xyes; then
22858
22859 cat >>confdefs.h <<\_ACEOF
22860 #define HAVE_WORKING_FORK 1
22861 _ACEOF
22862
22863 fi
22864
22865
22866 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22867 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22868 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22869 echo $ECHO_N "(cached) $ECHO_C" >&6
22870 else
22871 cat >conftest.$ac_ext <<_ACEOF
22872 /* confdefs.h. */
22873 _ACEOF
22874 cat confdefs.h >>conftest.$ac_ext
22875 cat >>conftest.$ac_ext <<_ACEOF
22876 /* end confdefs.h. */
22877 #include <langinfo.h>
22878 int
22879 main ()
22880 {
22881 char* cs = nl_langinfo(CODESET);
22882 ;
22883 return 0;
22884 }
22885 _ACEOF
22886 rm -f conftest.$ac_objext conftest$ac_exeext
22887 if { (ac_try="$ac_link"
22888 case "(($ac_try" in
22889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22890 *) ac_try_echo=$ac_try;;
22891 esac
22892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22893 (eval "$ac_link") 2>conftest.er1
22894 ac_status=$?
22895 grep -v '^ *+' conftest.er1 >conftest.err
22896 rm -f conftest.er1
22897 cat conftest.err >&5
22898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22899 (exit $ac_status); } && {
22900 test -z "$ac_c_werror_flag" ||
22901 test ! -s conftest.err
22902 } && test -s conftest$ac_exeext &&
22903 $as_test_x conftest$ac_exeext; then
22904 emacs_cv_langinfo_codeset=yes
22905 else
22906 echo "$as_me: failed program was:" >&5
22907 sed 's/^/| /' conftest.$ac_ext >&5
22908
22909 emacs_cv_langinfo_codeset=no
22910 fi
22911
22912 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22913 conftest$ac_exeext conftest.$ac_ext
22914
22915 fi
22916 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22917 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22918 if test $emacs_cv_langinfo_codeset = yes; then
22919
22920 cat >>confdefs.h <<\_ACEOF
22921 #define HAVE_LANGINFO_CODESET 1
22922 _ACEOF
22923
22924 fi
22925
22926 { echo "$as_me:$LINENO: checking for size_t" >&5
22927 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22928 if test "${ac_cv_type_size_t+set}" = set; then
22929 echo $ECHO_N "(cached) $ECHO_C" >&6
22930 else
22931 cat >conftest.$ac_ext <<_ACEOF
22932 /* confdefs.h. */
22933 _ACEOF
22934 cat confdefs.h >>conftest.$ac_ext
22935 cat >>conftest.$ac_ext <<_ACEOF
22936 /* end confdefs.h. */
22937 $ac_includes_default
22938 typedef size_t ac__type_new_;
22939 int
22940 main ()
22941 {
22942 if ((ac__type_new_ *) 0)
22943 return 0;
22944 if (sizeof (ac__type_new_))
22945 return 0;
22946 ;
22947 return 0;
22948 }
22949 _ACEOF
22950 rm -f conftest.$ac_objext
22951 if { (ac_try="$ac_compile"
22952 case "(($ac_try" in
22953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22954 *) ac_try_echo=$ac_try;;
22955 esac
22956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22957 (eval "$ac_compile") 2>conftest.er1
22958 ac_status=$?
22959 grep -v '^ *+' conftest.er1 >conftest.err
22960 rm -f conftest.er1
22961 cat conftest.err >&5
22962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22963 (exit $ac_status); } && {
22964 test -z "$ac_c_werror_flag" ||
22965 test ! -s conftest.err
22966 } && test -s conftest.$ac_objext; then
22967 ac_cv_type_size_t=yes
22968 else
22969 echo "$as_me: failed program was:" >&5
22970 sed 's/^/| /' conftest.$ac_ext >&5
22971
22972 ac_cv_type_size_t=no
22973 fi
22974
22975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22976 fi
22977 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22978 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
22979 if test $ac_cv_type_size_t = yes; then
22980
22981 cat >>confdefs.h <<_ACEOF
22982 #define HAVE_SIZE_T 1
22983 _ACEOF
22984
22985
22986 fi
22987
22988
22989 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
22990 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
22991 if test "${ac_cv_type_mbstate_t+set}" = set; then
22992 echo $ECHO_N "(cached) $ECHO_C" >&6
22993 else
22994 cat >conftest.$ac_ext <<_ACEOF
22995 /* confdefs.h. */
22996 _ACEOF
22997 cat confdefs.h >>conftest.$ac_ext
22998 cat >>conftest.$ac_ext <<_ACEOF
22999 /* end confdefs.h. */
23000 $ac_includes_default
23001 # include <wchar.h>
23002 int
23003 main ()
23004 {
23005 mbstate_t x; return sizeof x;
23006 ;
23007 return 0;
23008 }
23009 _ACEOF
23010 rm -f conftest.$ac_objext
23011 if { (ac_try="$ac_compile"
23012 case "(($ac_try" in
23013 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23014 *) ac_try_echo=$ac_try;;
23015 esac
23016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23017 (eval "$ac_compile") 2>conftest.er1
23018 ac_status=$?
23019 grep -v '^ *+' conftest.er1 >conftest.err
23020 rm -f conftest.er1
23021 cat conftest.err >&5
23022 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23023 (exit $ac_status); } && {
23024 test -z "$ac_c_werror_flag" ||
23025 test ! -s conftest.err
23026 } && test -s conftest.$ac_objext; then
23027 ac_cv_type_mbstate_t=yes
23028 else
23029 echo "$as_me: failed program was:" >&5
23030 sed 's/^/| /' conftest.$ac_ext >&5
23031
23032 ac_cv_type_mbstate_t=no
23033 fi
23034
23035 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23036 fi
23037 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23038 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23039 if test $ac_cv_type_mbstate_t = yes; then
23040
23041 cat >>confdefs.h <<\_ACEOF
23042 #define HAVE_MBSTATE_T 1
23043 _ACEOF
23044
23045 else
23046
23047 cat >>confdefs.h <<\_ACEOF
23048 #define mbstate_t int
23049 _ACEOF
23050
23051 fi
23052
23053 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23054 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23055 if test "${emacs_cv_c_restrict+set}" = set; then
23056 echo $ECHO_N "(cached) $ECHO_C" >&6
23057 else
23058 cat >conftest.$ac_ext <<_ACEOF
23059 /* confdefs.h. */
23060 _ACEOF
23061 cat confdefs.h >>conftest.$ac_ext
23062 cat >>conftest.$ac_ext <<_ACEOF
23063 /* end confdefs.h. */
23064 void fred (int *restrict x);
23065 int
23066 main ()
23067 {
23068
23069 ;
23070 return 0;
23071 }
23072 _ACEOF
23073 rm -f conftest.$ac_objext
23074 if { (ac_try="$ac_compile"
23075 case "(($ac_try" in
23076 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23077 *) ac_try_echo=$ac_try;;
23078 esac
23079 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23080 (eval "$ac_compile") 2>conftest.er1
23081 ac_status=$?
23082 grep -v '^ *+' conftest.er1 >conftest.err
23083 rm -f conftest.er1
23084 cat conftest.err >&5
23085 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23086 (exit $ac_status); } && {
23087 test -z "$ac_c_werror_flag" ||
23088 test ! -s conftest.err
23089 } && test -s conftest.$ac_objext; then
23090 emacs_cv_c_restrict=yes
23091 else
23092 echo "$as_me: failed program was:" >&5
23093 sed 's/^/| /' conftest.$ac_ext >&5
23094
23095 cat >conftest.$ac_ext <<_ACEOF
23096 /* confdefs.h. */
23097 _ACEOF
23098 cat confdefs.h >>conftest.$ac_ext
23099 cat >>conftest.$ac_ext <<_ACEOF
23100 /* end confdefs.h. */
23101 void fred (int *__restrict x);
23102 int
23103 main ()
23104 {
23105
23106 ;
23107 return 0;
23108 }
23109 _ACEOF
23110 rm -f conftest.$ac_objext
23111 if { (ac_try="$ac_compile"
23112 case "(($ac_try" in
23113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23114 *) ac_try_echo=$ac_try;;
23115 esac
23116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23117 (eval "$ac_compile") 2>conftest.er1
23118 ac_status=$?
23119 grep -v '^ *+' conftest.er1 >conftest.err
23120 rm -f conftest.er1
23121 cat conftest.err >&5
23122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23123 (exit $ac_status); } && {
23124 test -z "$ac_c_werror_flag" ||
23125 test ! -s conftest.err
23126 } && test -s conftest.$ac_objext; then
23127 emacs_cv_c_restrict=__restrict
23128 else
23129 echo "$as_me: failed program was:" >&5
23130 sed 's/^/| /' conftest.$ac_ext >&5
23131
23132 emacs_cv_c_restrict=no
23133 fi
23134
23135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23136 fi
23137
23138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23139 fi
23140 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23141 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23142 case "$emacs_cv_c_restrict" in
23143 yes) emacs_restrict=restrict;;
23144 no) emacs_restrict="";;
23145 *) emacs_restrict="$emacs_cv_c_restrict";;
23146 esac
23147 if test "$emacs_restrict" != __restrict; then
23148
23149 cat >>confdefs.h <<_ACEOF
23150 #define __restrict $emacs_restrict
23151 _ACEOF
23152
23153 fi
23154
23155 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23156 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23157 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23158 echo $ECHO_N "(cached) $ECHO_C" >&6
23159 else
23160 cat >conftest.$ac_ext <<_ACEOF
23161 /* confdefs.h. */
23162 _ACEOF
23163 cat confdefs.h >>conftest.$ac_ext
23164 cat >>conftest.$ac_ext <<_ACEOF
23165 /* end confdefs.h. */
23166 void fred (int x[__restrict]);
23167 int
23168 main ()
23169 {
23170
23171 ;
23172 return 0;
23173 }
23174 _ACEOF
23175 rm -f conftest.$ac_objext
23176 if { (ac_try="$ac_compile"
23177 case "(($ac_try" in
23178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23179 *) ac_try_echo=$ac_try;;
23180 esac
23181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23182 (eval "$ac_compile") 2>conftest.er1
23183 ac_status=$?
23184 grep -v '^ *+' conftest.er1 >conftest.err
23185 rm -f conftest.er1
23186 cat conftest.err >&5
23187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23188 (exit $ac_status); } && {
23189 test -z "$ac_c_werror_flag" ||
23190 test ! -s conftest.err
23191 } && test -s conftest.$ac_objext; then
23192 emacs_cv_c_restrict_arr=yes
23193 else
23194 echo "$as_me: failed program was:" >&5
23195 sed 's/^/| /' conftest.$ac_ext >&5
23196
23197 emacs_cv_c_restrict_arr=no
23198 fi
23199
23200 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23201 fi
23202 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23203 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23204 if test "$emacs_cv_c_restrict_arr" = yes; then
23205
23206 cat >>confdefs.h <<\_ACEOF
23207 #define __restrict_arr __restrict
23208 _ACEOF
23209
23210 fi
23211
23212
23213
23214 # Set up the CFLAGS for real compilation, so we can substitute it.
23215 CFLAGS="$REAL_CFLAGS"
23216 CPPFLAGS="$REAL_CPPFLAGS"
23217
23218 #### Find out which version of Emacs this is.
23219 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23220 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23221 if test x"${version}" = x; then
23222 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23223 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23224 { (exit 1); exit 1; }; }
23225 fi
23226
23227 ### Specify what sort of things we'll be editing into Makefile and config.h.
23228 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23229
23230
23231
23232
23233
23234
23235
23236
23237
23238
23239
23240
23241
23242
23243
23244
23245
23246
23247
23248
23249
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264 cat >>confdefs.h <<_ACEOF
23265 #define EMACS_CONFIGURATION "${canonical}"
23266 _ACEOF
23267
23268
23269 cat >>confdefs.h <<_ACEOF
23270 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23271 _ACEOF
23272
23273
23274 cat >>confdefs.h <<_ACEOF
23275 #define config_machfile "${machfile}"
23276 _ACEOF
23277
23278
23279 cat >>confdefs.h <<_ACEOF
23280 #define config_opsysfile "${opsysfile}"
23281 _ACEOF
23282
23283
23284 cat >>confdefs.h <<_ACEOF
23285 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23286 _ACEOF
23287
23288
23289 cat >>confdefs.h <<_ACEOF
23290 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23291 _ACEOF
23292
23293
23294 cat >>confdefs.h <<_ACEOF
23295 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23296 _ACEOF
23297
23298
23299 cat >>confdefs.h <<_ACEOF
23300 #define UNEXEC_SRC ${UNEXEC_SRC}
23301 _ACEOF
23302
23303
23304 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23305
23306 cat >>confdefs.h <<\_ACEOF
23307 #define HAVE_X_WINDOWS 1
23308 _ACEOF
23309
23310 fi
23311 if test "${USE_X_TOOLKIT}" != "none" ; then
23312
23313 cat >>confdefs.h <<\_ACEOF
23314 #define USE_X_TOOLKIT 1
23315 _ACEOF
23316
23317 fi
23318 if test "${HAVE_X11}" = "yes" ; then
23319
23320 cat >>confdefs.h <<\_ACEOF
23321 #define HAVE_X11 1
23322 _ACEOF
23323
23324 fi
23325 if test "${HAVE_XFREE386}" = "yes" ; then
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_XFREE386 1
23329 _ACEOF
23330
23331 fi
23332 if test "${HAVE_MENUS}" = "yes" ; then
23333
23334 cat >>confdefs.h <<\_ACEOF
23335 #define HAVE_MENUS 1
23336 _ACEOF
23337
23338 fi
23339 if test "${GNU_MALLOC}" = "yes" ; then
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define GNU_MALLOC 1
23343 _ACEOF
23344
23345 fi
23346 if test "${REL_ALLOC}" = "yes" ; then
23347
23348 cat >>confdefs.h <<\_ACEOF
23349 #define REL_ALLOC 1
23350 _ACEOF
23351
23352 fi
23353
23354
23355
23356
23357
23358 #### Report on what we decided to do.
23359 #### Report GTK as a toolkit, even if it doesn't use Xt.
23360 #### It makes printing result more understandable as using GTK sets
23361 #### toolkit_scroll_bars to yes by default.
23362 if test "${HAVE_GTK}" = "yes"; then
23363 USE_X_TOOLKIT=GTK
23364 fi
23365
23366 echo "
23367 Configured for \`${canonical}'.
23368
23369 Where should the build process find the source code? ${srcdir}
23370 What operating system and machine description files should Emacs use?
23371 \`${opsysfile}' and \`${machfile}'
23372 What compiler should emacs be built with? ${CC} ${CFLAGS}
23373 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23374 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23375 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23376 What window system should Emacs use? ${window_system}
23377 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23378
23379 if test -n "${x_includes}"; then
23380 echo " Where do we find X Windows header files? ${x_includes}"
23381 else
23382 echo " Where do we find X Windows header files? Standard dirs"
23383 fi
23384 if test -n "${x_libraries}"; then
23385 echo " Where do we find X Windows libraries? ${x_libraries}"
23386 else
23387 echo " Where do we find X Windows libraries? Standard dirs"
23388 fi
23389
23390 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23391 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23392 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23393 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23394 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23395 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23396 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23397 echo
23398
23399 if test $USE_XASSERTS = yes; then
23400 echo " Compiling with asserts turned on."
23401 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23402 echo
23403 fi
23404
23405
23406
23407 # Remove any trailing slashes in these variables.
23408 test "${prefix}" != NONE &&
23409 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23410 test "${exec_prefix}" != NONE &&
23411 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23412
23413 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23414 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23415 ## from Makefile.c can correctly provide the arg `-traditional' to the
23416 ## C preprocessor.
23417
23418 cat >conftest.$ac_ext <<_ACEOF
23419 /* confdefs.h. */
23420 _ACEOF
23421 cat confdefs.h >>conftest.$ac_ext
23422 cat >>conftest.$ac_ext <<_ACEOF
23423 /* end confdefs.h. */
23424 yes..yes
23425 _ACEOF
23426 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23427 $EGREP "yes..yes" >/dev/null 2>&1; then
23428 CPP_NEED_TRADITIONAL=no
23429 else
23430 CPP_NEED_TRADITIONAL=yes
23431 fi
23432 rm -f conftest*
23433
23434
23435 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"
23436
23437 ac_config_commands="$ac_config_commands default"
23438
23439 cat >confcache <<\_ACEOF
23440 # This file is a shell script that caches the results of configure
23441 # tests run on this system so they can be shared between configure
23442 # scripts and configure runs, see configure's option --config-cache.
23443 # It is not useful on other systems. If it contains results you don't
23444 # want to keep, you may remove or edit it.
23445 #
23446 # config.status only pays attention to the cache file if you give it
23447 # the --recheck option to rerun configure.
23448 #
23449 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23450 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23451 # following values.
23452
23453 _ACEOF
23454
23455 # The following way of writing the cache mishandles newlines in values,
23456 # but we know of no workaround that is simple, portable, and efficient.
23457 # So, we kill variables containing newlines.
23458 # Ultrix sh set writes to stderr and can't be redirected directly,
23459 # and sets the high bit in the cache file unless we assign to the vars.
23460 (
23461 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23462 eval ac_val=\$$ac_var
23463 case $ac_val in #(
23464 *${as_nl}*)
23465 case $ac_var in #(
23466 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23467 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23468 esac
23469 case $ac_var in #(
23470 _ | IFS | as_nl) ;; #(
23471 *) $as_unset $ac_var ;;
23472 esac ;;
23473 esac
23474 done
23475
23476 (set) 2>&1 |
23477 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23478 *${as_nl}ac_space=\ *)
23479 # `set' does not quote correctly, so add quotes (double-quote
23480 # substitution turns \\\\ into \\, and sed turns \\ into \).
23481 sed -n \
23482 "s/'/'\\\\''/g;
23483 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23484 ;; #(
23485 *)
23486 # `set' quotes correctly as required by POSIX, so do not add quotes.
23487 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23488 ;;
23489 esac |
23490 sort
23491 ) |
23492 sed '
23493 /^ac_cv_env_/b end
23494 t clear
23495 :clear
23496 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23497 t end
23498 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23499 :end' >>confcache
23500 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23501 if test -w "$cache_file"; then
23502 test "x$cache_file" != "x/dev/null" &&
23503 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23504 echo "$as_me: updating cache $cache_file" >&6;}
23505 cat confcache >$cache_file
23506 else
23507 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23508 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23509 fi
23510 fi
23511 rm -f confcache
23512
23513 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23514 # Let make expand exec_prefix.
23515 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23516
23517 DEFS=-DHAVE_CONFIG_H
23518
23519 ac_libobjs=
23520 ac_ltlibobjs=
23521 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23522 # 1. Remove the extension, and $U if already installed.
23523 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23524 ac_i=`echo "$ac_i" | sed "$ac_script"`
23525 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23526 # will be set to the directory where LIBOBJS objects are built.
23527 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23528 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23529 done
23530 LIBOBJS=$ac_libobjs
23531
23532 LTLIBOBJS=$ac_ltlibobjs
23533
23534
23535
23536 : ${CONFIG_STATUS=./config.status}
23537 ac_clean_files_save=$ac_clean_files
23538 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23539 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23540 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23541 cat >$CONFIG_STATUS <<_ACEOF
23542 #! $SHELL
23543 # Generated by $as_me.
23544 # Run this file to recreate the current configuration.
23545 # Compiler output produced by configure, useful for debugging
23546 # configure, is in config.log if it exists.
23547
23548 debug=false
23549 ac_cs_recheck=false
23550 ac_cs_silent=false
23551 SHELL=\${CONFIG_SHELL-$SHELL}
23552 _ACEOF
23553
23554 cat >>$CONFIG_STATUS <<\_ACEOF
23555 ## --------------------- ##
23556 ## M4sh Initialization. ##
23557 ## --------------------- ##
23558
23559 # Be more Bourne compatible
23560 DUALCASE=1; export DUALCASE # for MKS sh
23561 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23562 emulate sh
23563 NULLCMD=:
23564 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23565 # is contrary to our usage. Disable this feature.
23566 alias -g '${1+"$@"}'='"$@"'
23567 setopt NO_GLOB_SUBST
23568 else
23569 case `(set -o) 2>/dev/null` in
23570 *posix*) set -o posix ;;
23571 esac
23572
23573 fi
23574
23575
23576
23577
23578 # PATH needs CR
23579 # Avoid depending upon Character Ranges.
23580 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23581 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23582 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23583 as_cr_digits='0123456789'
23584 as_cr_alnum=$as_cr_Letters$as_cr_digits
23585
23586 # The user is always right.
23587 if test "${PATH_SEPARATOR+set}" != set; then
23588 echo "#! /bin/sh" >conf$$.sh
23589 echo "exit 0" >>conf$$.sh
23590 chmod +x conf$$.sh
23591 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23592 PATH_SEPARATOR=';'
23593 else
23594 PATH_SEPARATOR=:
23595 fi
23596 rm -f conf$$.sh
23597 fi
23598
23599 # Support unset when possible.
23600 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23601 as_unset=unset
23602 else
23603 as_unset=false
23604 fi
23605
23606
23607 # IFS
23608 # We need space, tab and new line, in precisely that order. Quoting is
23609 # there to prevent editors from complaining about space-tab.
23610 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23611 # splitting by setting IFS to empty value.)
23612 as_nl='
23613 '
23614 IFS=" "" $as_nl"
23615
23616 # Find who we are. Look in the path if we contain no directory separator.
23617 case $0 in
23618 *[\\/]* ) as_myself=$0 ;;
23619 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23620 for as_dir in $PATH
23621 do
23622 IFS=$as_save_IFS
23623 test -z "$as_dir" && as_dir=.
23624 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23625 done
23626 IFS=$as_save_IFS
23627
23628 ;;
23629 esac
23630 # We did not find ourselves, most probably we were run as `sh COMMAND'
23631 # in which case we are not to be found in the path.
23632 if test "x$as_myself" = x; then
23633 as_myself=$0
23634 fi
23635 if test ! -f "$as_myself"; then
23636 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23637 { (exit 1); exit 1; }
23638 fi
23639
23640 # Work around bugs in pre-3.0 UWIN ksh.
23641 for as_var in ENV MAIL MAILPATH
23642 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23643 done
23644 PS1='$ '
23645 PS2='> '
23646 PS4='+ '
23647
23648 # NLS nuisances.
23649 for as_var in \
23650 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23651 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23652 LC_TELEPHONE LC_TIME
23653 do
23654 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23655 eval $as_var=C; export $as_var
23656 else
23657 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23658 fi
23659 done
23660
23661 # Required to use basename.
23662 if expr a : '\(a\)' >/dev/null 2>&1 &&
23663 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23664 as_expr=expr
23665 else
23666 as_expr=false
23667 fi
23668
23669 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23670 as_basename=basename
23671 else
23672 as_basename=false
23673 fi
23674
23675
23676 # Name of the executable.
23677 as_me=`$as_basename -- "$0" ||
23678 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23679 X"$0" : 'X\(//\)$' \| \
23680 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23681 echo X/"$0" |
23682 sed '/^.*\/\([^/][^/]*\)\/*$/{
23683 s//\1/
23684 q
23685 }
23686 /^X\/\(\/\/\)$/{
23687 s//\1/
23688 q
23689 }
23690 /^X\/\(\/\).*/{
23691 s//\1/
23692 q
23693 }
23694 s/.*/./; q'`
23695
23696 # CDPATH.
23697 $as_unset CDPATH
23698
23699
23700
23701 as_lineno_1=$LINENO
23702 as_lineno_2=$LINENO
23703 test "x$as_lineno_1" != "x$as_lineno_2" &&
23704 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23705
23706 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23707 # uniformly replaced by the line number. The first 'sed' inserts a
23708 # line-number line after each line using $LINENO; the second 'sed'
23709 # does the real work. The second script uses 'N' to pair each
23710 # line-number line with the line containing $LINENO, and appends
23711 # trailing '-' during substitution so that $LINENO is not a special
23712 # case at line end.
23713 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23714 # scripts with optimization help from Paolo Bonzini. Blame Lee
23715 # E. McMahon (1931-1989) for sed's syntax. :-)
23716 sed -n '
23717 p
23718 /[$]LINENO/=
23719 ' <$as_myself |
23720 sed '
23721 s/[$]LINENO.*/&-/
23722 t lineno
23723 b
23724 :lineno
23725 N
23726 :loop
23727 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23728 t loop
23729 s/-\n.*//
23730 ' >$as_me.lineno &&
23731 chmod +x "$as_me.lineno" ||
23732 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23733 { (exit 1); exit 1; }; }
23734
23735 # Don't try to exec as it changes $[0], causing all sort of problems
23736 # (the dirname of $[0] is not the place where we might find the
23737 # original and so on. Autoconf is especially sensitive to this).
23738 . "./$as_me.lineno"
23739 # Exit status is that of the last command.
23740 exit
23741 }
23742
23743
23744 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23745 as_dirname=dirname
23746 else
23747 as_dirname=false
23748 fi
23749
23750 ECHO_C= ECHO_N= ECHO_T=
23751 case `echo -n x` in
23752 -n*)
23753 case `echo 'x\c'` in
23754 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23755 *) ECHO_C='\c';;
23756 esac;;
23757 *)
23758 ECHO_N='-n';;
23759 esac
23760
23761 if expr a : '\(a\)' >/dev/null 2>&1 &&
23762 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23763 as_expr=expr
23764 else
23765 as_expr=false
23766 fi
23767
23768 rm -f conf$$ conf$$.exe conf$$.file
23769 if test -d conf$$.dir; then
23770 rm -f conf$$.dir/conf$$.file
23771 else
23772 rm -f conf$$.dir
23773 mkdir conf$$.dir
23774 fi
23775 echo >conf$$.file
23776 if ln -s conf$$.file conf$$ 2>/dev/null; then
23777 as_ln_s='ln -s'
23778 # ... but there are two gotchas:
23779 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23780 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23781 # In both cases, we have to default to `cp -p'.
23782 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23783 as_ln_s='cp -p'
23784 elif ln conf$$.file conf$$ 2>/dev/null; then
23785 as_ln_s=ln
23786 else
23787 as_ln_s='cp -p'
23788 fi
23789 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23790 rmdir conf$$.dir 2>/dev/null
23791
23792 if mkdir -p . 2>/dev/null; then
23793 as_mkdir_p=:
23794 else
23795 test -d ./-p && rmdir ./-p
23796 as_mkdir_p=false
23797 fi
23798
23799 if test -x / >/dev/null 2>&1; then
23800 as_test_x='test -x'
23801 else
23802 if ls -dL / >/dev/null 2>&1; then
23803 as_ls_L_option=L
23804 else
23805 as_ls_L_option=
23806 fi
23807 as_test_x='
23808 eval sh -c '\''
23809 if test -d "$1"; then
23810 test -d "$1/.";
23811 else
23812 case $1 in
23813 -*)set "./$1";;
23814 esac;
23815 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23816 ???[sx]*):;;*)false;;esac;fi
23817 '\'' sh
23818 '
23819 fi
23820 as_executable_p=$as_test_x
23821
23822 # Sed expression to map a string onto a valid CPP name.
23823 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23824
23825 # Sed expression to map a string onto a valid variable name.
23826 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23827
23828
23829 exec 6>&1
23830
23831 # Save the log message, to keep $[0] and so on meaningful, and to
23832 # report actual input values of CONFIG_FILES etc. instead of their
23833 # values after options handling.
23834 ac_log="
23835 This file was extended by $as_me, which was
23836 generated by GNU Autoconf 2.61. Invocation command line was
23837
23838 CONFIG_FILES = $CONFIG_FILES
23839 CONFIG_HEADERS = $CONFIG_HEADERS
23840 CONFIG_LINKS = $CONFIG_LINKS
23841 CONFIG_COMMANDS = $CONFIG_COMMANDS
23842 $ $0 $@
23843
23844 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23845 "
23846
23847 _ACEOF
23848
23849 cat >>$CONFIG_STATUS <<_ACEOF
23850 # Files that config.status was made for.
23851 config_files="$ac_config_files"
23852 config_headers="$ac_config_headers"
23853 config_commands="$ac_config_commands"
23854
23855 _ACEOF
23856
23857 cat >>$CONFIG_STATUS <<\_ACEOF
23858 ac_cs_usage="\
23859 \`$as_me' instantiates files from templates according to the
23860 current configuration.
23861
23862 Usage: $0 [OPTIONS] [FILE]...
23863
23864 -h, --help print this help, then exit
23865 -V, --version print version number and configuration settings, then exit
23866 -q, --quiet do not print progress messages
23867 -d, --debug don't remove temporary files
23868 --recheck update $as_me by reconfiguring in the same conditions
23869 --file=FILE[:TEMPLATE]
23870 instantiate the configuration file FILE
23871 --header=FILE[:TEMPLATE]
23872 instantiate the configuration header FILE
23873
23874 Configuration files:
23875 $config_files
23876
23877 Configuration headers:
23878 $config_headers
23879
23880 Configuration commands:
23881 $config_commands
23882
23883 Report bugs to <bug-autoconf@gnu.org>."
23884
23885 _ACEOF
23886 cat >>$CONFIG_STATUS <<_ACEOF
23887 ac_cs_version="\\
23888 config.status
23889 configured by $0, generated by GNU Autoconf 2.61,
23890 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23891
23892 Copyright (C) 2006 Free Software Foundation, Inc.
23893 This config.status script is free software; the Free Software Foundation
23894 gives unlimited permission to copy, distribute and modify it."
23895
23896 ac_pwd='$ac_pwd'
23897 srcdir='$srcdir'
23898 INSTALL='$INSTALL'
23899 _ACEOF
23900
23901 cat >>$CONFIG_STATUS <<\_ACEOF
23902 # If no file are specified by the user, then we need to provide default
23903 # value. By we need to know if files were specified by the user.
23904 ac_need_defaults=:
23905 while test $# != 0
23906 do
23907 case $1 in
23908 --*=*)
23909 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23910 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23911 ac_shift=:
23912 ;;
23913 *)
23914 ac_option=$1
23915 ac_optarg=$2
23916 ac_shift=shift
23917 ;;
23918 esac
23919
23920 case $ac_option in
23921 # Handling of the options.
23922 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23923 ac_cs_recheck=: ;;
23924 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23925 echo "$ac_cs_version"; exit ;;
23926 --debug | --debu | --deb | --de | --d | -d )
23927 debug=: ;;
23928 --file | --fil | --fi | --f )
23929 $ac_shift
23930 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23931 ac_need_defaults=false;;
23932 --header | --heade | --head | --hea )
23933 $ac_shift
23934 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23935 ac_need_defaults=false;;
23936 --he | --h)
23937 # Conflict between --help and --header
23938 { echo "$as_me: error: ambiguous option: $1
23939 Try \`$0 --help' for more information." >&2
23940 { (exit 1); exit 1; }; };;
23941 --help | --hel | -h )
23942 echo "$ac_cs_usage"; exit ;;
23943 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23944 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23945 ac_cs_silent=: ;;
23946
23947 # This is an error.
23948 -*) { echo "$as_me: error: unrecognized option: $1
23949 Try \`$0 --help' for more information." >&2
23950 { (exit 1); exit 1; }; } ;;
23951
23952 *) ac_config_targets="$ac_config_targets $1"
23953 ac_need_defaults=false ;;
23954
23955 esac
23956 shift
23957 done
23958
23959 ac_configure_extra_args=
23960
23961 if $ac_cs_silent; then
23962 exec 6>/dev/null
23963 ac_configure_extra_args="$ac_configure_extra_args --silent"
23964 fi
23965
23966 _ACEOF
23967 cat >>$CONFIG_STATUS <<_ACEOF
23968 if \$ac_cs_recheck; then
23969 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
23970 CONFIG_SHELL=$SHELL
23971 export CONFIG_SHELL
23972 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
23973 fi
23974
23975 _ACEOF
23976 cat >>$CONFIG_STATUS <<\_ACEOF
23977 exec 5>>config.log
23978 {
23979 echo
23980 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
23981 ## Running $as_me. ##
23982 _ASBOX
23983 echo "$ac_log"
23984 } >&5
23985
23986 _ACEOF
23987 cat >>$CONFIG_STATUS <<_ACEOF
23988 #
23989 # INIT-COMMANDS
23990 #
23991 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
23992
23993 _ACEOF
23994
23995 cat >>$CONFIG_STATUS <<\_ACEOF
23996
23997 # Handling of arguments.
23998 for ac_config_target in $ac_config_targets
23999 do
24000 case $ac_config_target in
24001 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24002 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24003 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24004 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24005 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24006 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24007 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24008 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24009 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24010 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24011 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24012 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24013
24014 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24015 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24016 { (exit 1); exit 1; }; };;
24017 esac
24018 done
24019
24020
24021 # If the user did not use the arguments to specify the items to instantiate,
24022 # then the envvar interface is used. Set only those that are not.
24023 # We use the long form for the default assignment because of an extremely
24024 # bizarre bug on SunOS 4.1.3.
24025 if $ac_need_defaults; then
24026 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24027 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24028 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24029 fi
24030
24031 # Have a temporary directory for convenience. Make it in the build tree
24032 # simply because there is no reason against having it here, and in addition,
24033 # creating and moving files from /tmp can sometimes cause problems.
24034 # Hook for its removal unless debugging.
24035 # Note that there is a small window in which the directory will not be cleaned:
24036 # after its creation but before its name has been assigned to `$tmp'.
24037 $debug ||
24038 {
24039 tmp=
24040 trap 'exit_status=$?
24041 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24042 ' 0
24043 trap '{ (exit 1); exit 1; }' 1 2 13 15
24044 }
24045 # Create a (secure) tmp directory for tmp files.
24046
24047 {
24048 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24049 test -n "$tmp" && test -d "$tmp"
24050 } ||
24051 {
24052 tmp=./conf$$-$RANDOM
24053 (umask 077 && mkdir "$tmp")
24054 } ||
24055 {
24056 echo "$me: cannot create a temporary directory in ." >&2
24057 { (exit 1); exit 1; }
24058 }
24059
24060 #
24061 # Set up the sed scripts for CONFIG_FILES section.
24062 #
24063
24064 # No need to generate the scripts if there are no CONFIG_FILES.
24065 # This happens for instance when ./config.status config.h
24066 if test -n "$CONFIG_FILES"; then
24067
24068 _ACEOF
24069
24070
24071
24072 ac_delim='%!_!# '
24073 for ac_last_try in false false false false false :; do
24074 cat >conf$$subs.sed <<_ACEOF
24075 SHELL!$SHELL$ac_delim
24076 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24077 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24078 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24079 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24080 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24081 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24082 exec_prefix!$exec_prefix$ac_delim
24083 prefix!$prefix$ac_delim
24084 program_transform_name!$program_transform_name$ac_delim
24085 bindir!$bindir$ac_delim
24086 sbindir!$sbindir$ac_delim
24087 libexecdir!$libexecdir$ac_delim
24088 datarootdir!$datarootdir$ac_delim
24089 datadir!$datadir$ac_delim
24090 sysconfdir!$sysconfdir$ac_delim
24091 sharedstatedir!$sharedstatedir$ac_delim
24092 localstatedir!$localstatedir$ac_delim
24093 includedir!$includedir$ac_delim
24094 oldincludedir!$oldincludedir$ac_delim
24095 docdir!$docdir$ac_delim
24096 infodir!$infodir$ac_delim
24097 htmldir!$htmldir$ac_delim
24098 dvidir!$dvidir$ac_delim
24099 pdfdir!$pdfdir$ac_delim
24100 psdir!$psdir$ac_delim
24101 libdir!$libdir$ac_delim
24102 localedir!$localedir$ac_delim
24103 mandir!$mandir$ac_delim
24104 DEFS!$DEFS$ac_delim
24105 ECHO_C!$ECHO_C$ac_delim
24106 ECHO_N!$ECHO_N$ac_delim
24107 ECHO_T!$ECHO_T$ac_delim
24108 LIBS!$LIBS$ac_delim
24109 build_alias!$build_alias$ac_delim
24110 host_alias!$host_alias$ac_delim
24111 target_alias!$target_alias$ac_delim
24112 MAINT!$MAINT$ac_delim
24113 build!$build$ac_delim
24114 build_cpu!$build_cpu$ac_delim
24115 build_vendor!$build_vendor$ac_delim
24116 build_os!$build_os$ac_delim
24117 host!$host$ac_delim
24118 host_cpu!$host_cpu$ac_delim
24119 host_vendor!$host_vendor$ac_delim
24120 host_os!$host_os$ac_delim
24121 CC!$CC$ac_delim
24122 CFLAGS!$CFLAGS$ac_delim
24123 LDFLAGS!$LDFLAGS$ac_delim
24124 CPPFLAGS!$CPPFLAGS$ac_delim
24125 ac_ct_CC!$ac_ct_CC$ac_delim
24126 EXEEXT!$EXEEXT$ac_delim
24127 OBJEXT!$OBJEXT$ac_delim
24128 CPP!$CPP$ac_delim
24129 GREP!$GREP$ac_delim
24130 EGREP!$EGREP$ac_delim
24131 LN_S!$LN_S$ac_delim
24132 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24133 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24134 INSTALL_DATA!$INSTALL_DATA$ac_delim
24135 RANLIB!$RANLIB$ac_delim
24136 INSTALL_INFO!$INSTALL_INFO$ac_delim
24137 GZIP_PROG!$GZIP_PROG$ac_delim
24138 LIBSOUND!$LIBSOUND$ac_delim
24139 PKG_CONFIG!$PKG_CONFIG$ac_delim
24140 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24141 ALSA_LIBS!$ALSA_LIBS$ac_delim
24142 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24143 SET_MAKE!$SET_MAKE$ac_delim
24144 XMKMF!$XMKMF$ac_delim
24145 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24146 GTK_LIBS!$GTK_LIBS$ac_delim
24147 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24148 XFT_LIBS!$XFT_LIBS$ac_delim
24149 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24150 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24151 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24152 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24153 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24154 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24155 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24156 ALLOCA!$ALLOCA$ac_delim
24157 liblockfile!$liblockfile$ac_delim
24158 LIBOBJS!$LIBOBJS$ac_delim
24159 NEED_SETGID!$NEED_SETGID$ac_delim
24160 KMEM_GROUP!$KMEM_GROUP$ac_delim
24161 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24162 GETOPT_H!$GETOPT_H$ac_delim
24163 GETOPTOBJS!$GETOPTOBJS$ac_delim
24164 version!$version$ac_delim
24165 configuration!$configuration$ac_delim
24166 canonical!$canonical$ac_delim
24167 srcdir!$srcdir$ac_delim
24168 lispdir!$lispdir$ac_delim
24169 locallisppath!$locallisppath$ac_delim
24170 lisppath!$lisppath$ac_delim
24171 x_default_search_path!$x_default_search_path$ac_delim
24172 _ACEOF
24173
24174 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24175 break
24176 elif $ac_last_try; then
24177 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24178 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24179 { (exit 1); exit 1; }; }
24180 else
24181 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24182 fi
24183 done
24184
24185 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24186 if test -n "$ac_eof"; then
24187 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24188 ac_eof=`expr $ac_eof + 1`
24189 fi
24190
24191 cat >>$CONFIG_STATUS <<_ACEOF
24192 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24193 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24194 _ACEOF
24195 sed '
24196 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24197 s/^/s,@/; s/!/@,|#_!!_#|/
24198 :n
24199 t n
24200 s/'"$ac_delim"'$/,g/; t
24201 s/$/\\/; p
24202 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24203 ' >>$CONFIG_STATUS <conf$$subs.sed
24204 rm -f conf$$subs.sed
24205 cat >>$CONFIG_STATUS <<_ACEOF
24206 CEOF$ac_eof
24207 _ACEOF
24208
24209
24210 ac_delim='%!_!# '
24211 for ac_last_try in false false false false false :; do
24212 cat >conf$$subs.sed <<_ACEOF
24213 etcdir!$etcdir$ac_delim
24214 archlibdir!$archlibdir$ac_delim
24215 bitmapdir!$bitmapdir$ac_delim
24216 gamedir!$gamedir$ac_delim
24217 gameuser!$gameuser$ac_delim
24218 c_switch_system!$c_switch_system$ac_delim
24219 c_switch_machine!$c_switch_machine$ac_delim
24220 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24221 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24222 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24223 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24224 machfile!$machfile$ac_delim
24225 opsysfile!$opsysfile$ac_delim
24226 carbon_appdir!$carbon_appdir$ac_delim
24227 LTLIBOBJS!$LTLIBOBJS$ac_delim
24228 _ACEOF
24229
24230 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24231 break
24232 elif $ac_last_try; then
24233 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24234 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24235 { (exit 1); exit 1; }; }
24236 else
24237 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24238 fi
24239 done
24240
24241 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24242 if test -n "$ac_eof"; then
24243 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24244 ac_eof=`expr $ac_eof + 1`
24245 fi
24246
24247 cat >>$CONFIG_STATUS <<_ACEOF
24248 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24249 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24250 _ACEOF
24251 sed '
24252 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24253 s/^/s,@/; s/!/@,|#_!!_#|/
24254 :n
24255 t n
24256 s/'"$ac_delim"'$/,g/; t
24257 s/$/\\/; p
24258 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24259 ' >>$CONFIG_STATUS <conf$$subs.sed
24260 rm -f conf$$subs.sed
24261 cat >>$CONFIG_STATUS <<_ACEOF
24262 :end
24263 s/|#_!!_#|//g
24264 CEOF$ac_eof
24265 _ACEOF
24266
24267
24268 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24269 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24270 # trailing colons and then remove the whole line if VPATH becomes empty
24271 # (actually we leave an empty line to preserve line numbers).
24272 if test "x$srcdir" = x.; then
24273 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24274 s/:*\$(srcdir):*/:/
24275 s/:*\${srcdir}:*/:/
24276 s/:*@srcdir@:*/:/
24277 s/^\([^=]*=[ ]*\):*/\1/
24278 s/:*$//
24279 s/^[^=]*=[ ]*$//
24280 }'
24281 fi
24282
24283 cat >>$CONFIG_STATUS <<\_ACEOF
24284 fi # test -n "$CONFIG_FILES"
24285
24286
24287 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24288 do
24289 case $ac_tag in
24290 :[FHLC]) ac_mode=$ac_tag; continue;;
24291 esac
24292 case $ac_mode$ac_tag in
24293 :[FHL]*:*);;
24294 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24295 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24296 { (exit 1); exit 1; }; };;
24297 :[FH]-) ac_tag=-:-;;
24298 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24299 esac
24300 ac_save_IFS=$IFS
24301 IFS=:
24302 set x $ac_tag
24303 IFS=$ac_save_IFS
24304 shift
24305 ac_file=$1
24306 shift
24307
24308 case $ac_mode in
24309 :L) ac_source=$1;;
24310 :[FH])
24311 ac_file_inputs=
24312 for ac_f
24313 do
24314 case $ac_f in
24315 -) ac_f="$tmp/stdin";;
24316 *) # Look for the file first in the build tree, then in the source tree
24317 # (if the path is not absolute). The absolute path cannot be DOS-style,
24318 # because $ac_f cannot contain `:'.
24319 test -f "$ac_f" ||
24320 case $ac_f in
24321 [\\/$]*) false;;
24322 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24323 esac ||
24324 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24325 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24326 { (exit 1); exit 1; }; };;
24327 esac
24328 ac_file_inputs="$ac_file_inputs $ac_f"
24329 done
24330
24331 # Let's still pretend it is `configure' which instantiates (i.e., don't
24332 # use $as_me), people would be surprised to read:
24333 # /* config.h. Generated by config.status. */
24334 configure_input="Generated from "`IFS=:
24335 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24336 if test x"$ac_file" != x-; then
24337 configure_input="$ac_file. $configure_input"
24338 { echo "$as_me:$LINENO: creating $ac_file" >&5
24339 echo "$as_me: creating $ac_file" >&6;}
24340 fi
24341
24342 case $ac_tag in
24343 *:-:* | *:-) cat >"$tmp/stdin";;
24344 esac
24345 ;;
24346 esac
24347
24348 ac_dir=`$as_dirname -- "$ac_file" ||
24349 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24350 X"$ac_file" : 'X\(//\)[^/]' \| \
24351 X"$ac_file" : 'X\(//\)$' \| \
24352 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24353 echo X"$ac_file" |
24354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24355 s//\1/
24356 q
24357 }
24358 /^X\(\/\/\)[^/].*/{
24359 s//\1/
24360 q
24361 }
24362 /^X\(\/\/\)$/{
24363 s//\1/
24364 q
24365 }
24366 /^X\(\/\).*/{
24367 s//\1/
24368 q
24369 }
24370 s/.*/./; q'`
24371 { as_dir="$ac_dir"
24372 case $as_dir in #(
24373 -*) as_dir=./$as_dir;;
24374 esac
24375 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24376 as_dirs=
24377 while :; do
24378 case $as_dir in #(
24379 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24380 *) as_qdir=$as_dir;;
24381 esac
24382 as_dirs="'$as_qdir' $as_dirs"
24383 as_dir=`$as_dirname -- "$as_dir" ||
24384 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24385 X"$as_dir" : 'X\(//\)[^/]' \| \
24386 X"$as_dir" : 'X\(//\)$' \| \
24387 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24388 echo X"$as_dir" |
24389 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24390 s//\1/
24391 q
24392 }
24393 /^X\(\/\/\)[^/].*/{
24394 s//\1/
24395 q
24396 }
24397 /^X\(\/\/\)$/{
24398 s//\1/
24399 q
24400 }
24401 /^X\(\/\).*/{
24402 s//\1/
24403 q
24404 }
24405 s/.*/./; q'`
24406 test -d "$as_dir" && break
24407 done
24408 test -z "$as_dirs" || eval "mkdir $as_dirs"
24409 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24410 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24411 { (exit 1); exit 1; }; }; }
24412 ac_builddir=.
24413
24414 case "$ac_dir" in
24415 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24416 *)
24417 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24418 # A ".." for each directory in $ac_dir_suffix.
24419 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24420 case $ac_top_builddir_sub in
24421 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24422 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24423 esac ;;
24424 esac
24425 ac_abs_top_builddir=$ac_pwd
24426 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24427 # for backward compatibility:
24428 ac_top_builddir=$ac_top_build_prefix
24429
24430 case $srcdir in
24431 .) # We are building in place.
24432 ac_srcdir=.
24433 ac_top_srcdir=$ac_top_builddir_sub
24434 ac_abs_top_srcdir=$ac_pwd ;;
24435 [\\/]* | ?:[\\/]* ) # Absolute name.
24436 ac_srcdir=$srcdir$ac_dir_suffix;
24437 ac_top_srcdir=$srcdir
24438 ac_abs_top_srcdir=$srcdir ;;
24439 *) # Relative name.
24440 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24441 ac_top_srcdir=$ac_top_build_prefix$srcdir
24442 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24443 esac
24444 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24445
24446
24447 case $ac_mode in
24448 :F)
24449 #
24450 # CONFIG_FILE
24451 #
24452
24453 case $INSTALL in
24454 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24455 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24456 esac
24457 _ACEOF
24458
24459 cat >>$CONFIG_STATUS <<\_ACEOF
24460 # If the template does not know about datarootdir, expand it.
24461 # FIXME: This hack should be removed a few years after 2.60.
24462 ac_datarootdir_hack=; ac_datarootdir_seen=
24463
24464 case `sed -n '/datarootdir/ {
24465 p
24466 q
24467 }
24468 /@datadir@/p
24469 /@docdir@/p
24470 /@infodir@/p
24471 /@localedir@/p
24472 /@mandir@/p
24473 ' $ac_file_inputs` in
24474 *datarootdir*) ac_datarootdir_seen=yes;;
24475 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24476 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24477 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24478 _ACEOF
24479 cat >>$CONFIG_STATUS <<_ACEOF
24480 ac_datarootdir_hack='
24481 s&@datadir@&$datadir&g
24482 s&@docdir@&$docdir&g
24483 s&@infodir@&$infodir&g
24484 s&@localedir@&$localedir&g
24485 s&@mandir@&$mandir&g
24486 s&\\\${datarootdir}&$datarootdir&g' ;;
24487 esac
24488 _ACEOF
24489
24490 # Neutralize VPATH when `$srcdir' = `.'.
24491 # Shell code in configure.ac might set extrasub.
24492 # FIXME: do we really want to maintain this feature?
24493 cat >>$CONFIG_STATUS <<_ACEOF
24494 sed "$ac_vpsub
24495 $extrasub
24496 _ACEOF
24497 cat >>$CONFIG_STATUS <<\_ACEOF
24498 :t
24499 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24500 s&@configure_input@&$configure_input&;t t
24501 s&@top_builddir@&$ac_top_builddir_sub&;t t
24502 s&@srcdir@&$ac_srcdir&;t t
24503 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24504 s&@top_srcdir@&$ac_top_srcdir&;t t
24505 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24506 s&@builddir@&$ac_builddir&;t t
24507 s&@abs_builddir@&$ac_abs_builddir&;t t
24508 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24509 s&@INSTALL@&$ac_INSTALL&;t t
24510 $ac_datarootdir_hack
24511 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24512
24513 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24514 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24515 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24516 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24517 which seems to be undefined. Please make sure it is defined." >&5
24518 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24519 which seems to be undefined. Please make sure it is defined." >&2;}
24520
24521 rm -f "$tmp/stdin"
24522 case $ac_file in
24523 -) cat "$tmp/out"; rm -f "$tmp/out";;
24524 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24525 esac
24526 ;;
24527 :H)
24528 #
24529 # CONFIG_HEADER
24530 #
24531 _ACEOF
24532
24533 # Transform confdefs.h into a sed script `conftest.defines', that
24534 # substitutes the proper values into config.h.in to produce config.h.
24535 rm -f conftest.defines conftest.tail
24536 # First, append a space to every undef/define line, to ease matching.
24537 echo 's/$/ /' >conftest.defines
24538 # Then, protect against being on the right side of a sed subst, or in
24539 # an unquoted here document, in config.status. If some macros were
24540 # called several times there might be several #defines for the same
24541 # symbol, which is useless. But do not sort them, since the last
24542 # AC_DEFINE must be honored.
24543 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24544 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24545 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24546 # PARAMS is the parameter list in the macro definition--in most cases, it's
24547 # just an empty string.
24548 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24549 ac_dB='\\)[ (].*,\\1define\\2'
24550 ac_dC=' '
24551 ac_dD=' ,'
24552
24553 uniq confdefs.h |
24554 sed -n '
24555 t rset
24556 :rset
24557 s/^[ ]*#[ ]*define[ ][ ]*//
24558 t ok
24559 d
24560 :ok
24561 s/[\\&,]/\\&/g
24562 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24563 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24564 ' >>conftest.defines
24565
24566 # Remove the space that was appended to ease matching.
24567 # Then replace #undef with comments. This is necessary, for
24568 # example, in the case of _POSIX_SOURCE, which is predefined and required
24569 # on some systems where configure will not decide to define it.
24570 # (The regexp can be short, since the line contains either #define or #undef.)
24571 echo 's/ $//
24572 s,^[ #]*u.*,/* & */,' >>conftest.defines
24573
24574 # Break up conftest.defines:
24575 ac_max_sed_lines=50
24576
24577 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24578 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24579 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24580 # et cetera.
24581 ac_in='$ac_file_inputs'
24582 ac_out='"$tmp/out1"'
24583 ac_nxt='"$tmp/out2"'
24584
24585 while :
24586 do
24587 # Write a here document:
24588 cat >>$CONFIG_STATUS <<_ACEOF
24589 # First, check the format of the line:
24590 cat >"\$tmp/defines.sed" <<\\CEOF
24591 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24592 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24593 b
24594 :def
24595 _ACEOF
24596 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24597 echo 'CEOF
24598 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24599 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24600 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24601 grep . conftest.tail >/dev/null || break
24602 rm -f conftest.defines
24603 mv conftest.tail conftest.defines
24604 done
24605 rm -f conftest.defines conftest.tail
24606
24607 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24608 cat >>$CONFIG_STATUS <<\_ACEOF
24609 if test x"$ac_file" != x-; then
24610 echo "/* $configure_input */" >"$tmp/config.h"
24611 cat "$ac_result" >>"$tmp/config.h"
24612 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24613 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24614 echo "$as_me: $ac_file is unchanged" >&6;}
24615 else
24616 rm -f $ac_file
24617 mv "$tmp/config.h" $ac_file
24618 fi
24619 else
24620 echo "/* $configure_input */"
24621 cat "$ac_result"
24622 fi
24623 rm -f "$tmp/out12"
24624 ;;
24625
24626 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24627 echo "$as_me: executing $ac_file commands" >&6;}
24628 ;;
24629 esac
24630
24631
24632 case $ac_file$ac_mode in
24633 "default":C)
24634
24635 ### Make the necessary directories, if they don't exist.
24636 for dir in etc lisp ; do
24637 test -d ${dir} || mkdir ${dir}
24638 done
24639
24640 # Build src/Makefile from ${srcdir}/src/Makefile.c
24641 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24642 # This must be done after src/config.h is built, since we rely on that file.
24643
24644 # Now get this: Some word that is part of the ${srcdir} directory name
24645 # or the ${configuration} value might, just might, happen to be an
24646 # identifier like `sun4' or `i386' or something, and be predefined by
24647 # the C preprocessor to some helpful value like 1, or maybe the empty
24648 # string. Needless to say consequent macro substitutions are less
24649 # than conducive to the makefile finding the correct directory.
24650 undefs="`echo $top_srcdir $configuration $canonical |
24651 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24652 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24653 `"
24654
24655 echo creating src/epaths.h
24656 ${MAKE-make} epaths-force
24657
24658 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24659 # `..' to `. .' unless invoked with -traditional
24660
24661 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24662 CPPFLAGS="$CPPFLAGS -traditional"
24663 fi
24664
24665 echo creating lib-src/Makefile
24666 ( cd lib-src
24667 rm -f junk.c junk1.c junk2.c
24668 sed -e '/start of cpp stuff/q' \
24669 < Makefile.c > junk1.c
24670 sed -e '1,/start of cpp stuff/d'\
24671 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24672 < Makefile.c > junk.c
24673 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24674 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24675 cat junk1.c junk2.c > Makefile.new
24676 rm -f junk.c junk1.c junk2.c
24677 chmod 444 Makefile.new
24678 mv -f Makefile.new Makefile
24679 )
24680
24681 echo creating src/Makefile
24682 ( cd src
24683 rm -f junk.c junk1.c junk2.c
24684 sed -e '/start of cpp stuff/q' \
24685 < Makefile.c > junk1.c
24686 sed -e '1,/start of cpp stuff/d'\
24687 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24688 < Makefile.c > junk.c
24689 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24690 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24691 fi
24692 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24693 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24694 cat junk1.c junk2.c > Makefile.new
24695 rm -f junk.c junk1.c junk2.c
24696 chmod 444 Makefile.new
24697 mv -f Makefile.new Makefile
24698 )
24699
24700 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24701 echo creating src/.gdbinit
24702 echo source $srcdir/src/.gdbinit > src/.gdbinit
24703 fi
24704
24705 # This is how we know whether to re-run configure in certain cases.
24706 touch src/config.stamp
24707
24708 ;;
24709
24710 esac
24711 done # for ac_tag
24712
24713
24714 { (exit 0); exit 0; }
24715 _ACEOF
24716 chmod +x $CONFIG_STATUS
24717 ac_clean_files=$ac_clean_files_save
24718
24719
24720 # configure is writing to config.log, and then calls config.status.
24721 # config.status does its own redirection, appending to config.log.
24722 # Unfortunately, on DOS this fails, as config.log is still kept open
24723 # by configure, so config.status won't be able to write to it; its
24724 # output is simply discarded. So we exec the FD to /dev/null,
24725 # effectively closing config.log, so it can be properly (re)opened and
24726 # appended to by config.status. When coming back to configure, we
24727 # need to make the FD available again.
24728 if test "$no_create" != yes; then
24729 ac_cs_success=:
24730 ac_config_status_args=
24731 test "$silent" = yes &&
24732 ac_config_status_args="$ac_config_status_args --quiet"
24733 exec 5>/dev/null
24734 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24735 exec 5>>config.log
24736 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24737 # would make configure fail if this is the last instruction.
24738 $ac_cs_success || { (exit 1); exit 1; }
24739 fi
24740
24741