]> 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 Please tell bug-autoconf@gnu.org about your system,
416 echo including any error possibly output before this message.
417 echo This can help us improve future autoconf versions.
418 echo Configuration will now proceed without shell functions.
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686 CFLAGS_SOUND
687 SET_MAKE
688 XMKMF
689 HAVE_XSERVER
690 RSVG_CFLAGS
691 RSVG_LIBS
692 GTK_CFLAGS
693 GTK_LIBS
694 XFT_CFLAGS
695 XFT_LIBS
696 ALLOCA
697 liblockfile
698 LIBOBJS
699 NEED_SETGID
700 KMEM_GROUP
701 GETLOADAVG_LIBS
702 GETOPT_H
703 GETOPTOBJS
704 version
705 configuration
706 canonical
707 srcdir
708 lispdir
709 locallisppath
710 lisppath
711 x_default_search_path
712 etcdir
713 archlibdir
714 bitmapdir
715 gamedir
716 gameuser
717 c_switch_system
718 c_switch_machine
719 LD_SWITCH_X_SITE
720 LD_SWITCH_X_SITE_AUX
721 C_SWITCH_X_SITE
722 X_TOOLKIT_TYPE
723 machfile
724 opsysfile
725 carbon_appdir
726 LTLIBOBJS'
727 ac_subst_files=''
728 ac_precious_vars='build_alias
729 host_alias
730 target_alias
731 CC
732 CFLAGS
733 LDFLAGS
734 LIBS
735 CPPFLAGS
736 CPP
737 XMKMF'
738
739
740 # Initialize some variables set by options.
741 ac_init_help=
742 ac_init_version=false
743 # The variables have the same names as the options, with
744 # dashes changed to underlines.
745 cache_file=/dev/null
746 exec_prefix=NONE
747 no_create=
748 no_recursion=
749 prefix=NONE
750 program_prefix=NONE
751 program_suffix=NONE
752 program_transform_name=s,x,x,
753 silent=
754 site=
755 srcdir=
756 verbose=
757 x_includes=NONE
758 x_libraries=NONE
759
760 # Installation directory options.
761 # These are left unexpanded so users can "make install exec_prefix=/foo"
762 # and all the variables that are supposed to be based on exec_prefix
763 # by default will actually change.
764 # Use braces instead of parens because sh, perl, etc. also accept them.
765 # (The list follows the same order as the GNU Coding Standards.)
766 bindir='${exec_prefix}/bin'
767 sbindir='${exec_prefix}/sbin'
768 libexecdir='${exec_prefix}/libexec'
769 datarootdir='${prefix}/share'
770 datadir='${datarootdir}'
771 sysconfdir='${prefix}/etc'
772 sharedstatedir='${prefix}/com'
773 localstatedir='${prefix}/var'
774 includedir='${prefix}/include'
775 oldincludedir='/usr/include'
776 docdir='${datarootdir}/doc/${PACKAGE}'
777 infodir='${datarootdir}/info'
778 htmldir='${docdir}'
779 dvidir='${docdir}'
780 pdfdir='${docdir}'
781 psdir='${docdir}'
782 libdir='${exec_prefix}/lib'
783 localedir='${datarootdir}/locale'
784 mandir='${datarootdir}/man'
785
786 ac_prev=
787 ac_dashdash=
788 for ac_option
789 do
790 # If the previous option needs an argument, assign it.
791 if test -n "$ac_prev"; then
792 eval $ac_prev=\$ac_option
793 ac_prev=
794 continue
795 fi
796
797 case $ac_option in
798 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
799 *) ac_optarg=yes ;;
800 esac
801
802 # Accept the important Cygnus configure options, so we can diagnose typos.
803
804 case $ac_dashdash$ac_option in
805 --)
806 ac_dashdash=yes ;;
807
808 -bindir | --bindir | --bindi | --bind | --bin | --bi)
809 ac_prev=bindir ;;
810 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
811 bindir=$ac_optarg ;;
812
813 -build | --build | --buil | --bui | --bu)
814 ac_prev=build_alias ;;
815 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
816 build_alias=$ac_optarg ;;
817
818 -cache-file | --cache-file | --cache-fil | --cache-fi \
819 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
820 ac_prev=cache_file ;;
821 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
822 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
823 cache_file=$ac_optarg ;;
824
825 --config-cache | -C)
826 cache_file=config.cache ;;
827
828 -datadir | --datadir | --datadi | --datad)
829 ac_prev=datadir ;;
830 -datadir=* | --datadir=* | --datadi=* | --datad=*)
831 datadir=$ac_optarg ;;
832
833 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
834 | --dataroo | --dataro | --datar)
835 ac_prev=datarootdir ;;
836 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
837 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
838 datarootdir=$ac_optarg ;;
839
840 -disable-* | --disable-*)
841 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
842 # Reject names that are not valid shell variable names.
843 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
844 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
845 { (exit 1); exit 1; }; }
846 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
847 eval enable_$ac_feature=no ;;
848
849 -docdir | --docdir | --docdi | --doc | --do)
850 ac_prev=docdir ;;
851 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
852 docdir=$ac_optarg ;;
853
854 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
855 ac_prev=dvidir ;;
856 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
857 dvidir=$ac_optarg ;;
858
859 -enable-* | --enable-*)
860 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
861 # Reject names that are not valid shell variable names.
862 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
863 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
864 { (exit 1); exit 1; }; }
865 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
866 eval enable_$ac_feature=\$ac_optarg ;;
867
868 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
869 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
870 | --exec | --exe | --ex)
871 ac_prev=exec_prefix ;;
872 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
873 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
874 | --exec=* | --exe=* | --ex=*)
875 exec_prefix=$ac_optarg ;;
876
877 -gas | --gas | --ga | --g)
878 # Obsolete; use --with-gas.
879 with_gas=yes ;;
880
881 -help | --help | --hel | --he | -h)
882 ac_init_help=long ;;
883 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
884 ac_init_help=recursive ;;
885 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
886 ac_init_help=short ;;
887
888 -host | --host | --hos | --ho)
889 ac_prev=host_alias ;;
890 -host=* | --host=* | --hos=* | --ho=*)
891 host_alias=$ac_optarg ;;
892
893 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
894 ac_prev=htmldir ;;
895 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
896 | --ht=*)
897 htmldir=$ac_optarg ;;
898
899 -includedir | --includedir | --includedi | --included | --include \
900 | --includ | --inclu | --incl | --inc)
901 ac_prev=includedir ;;
902 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
903 | --includ=* | --inclu=* | --incl=* | --inc=*)
904 includedir=$ac_optarg ;;
905
906 -infodir | --infodir | --infodi | --infod | --info | --inf)
907 ac_prev=infodir ;;
908 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
909 infodir=$ac_optarg ;;
910
911 -libdir | --libdir | --libdi | --libd)
912 ac_prev=libdir ;;
913 -libdir=* | --libdir=* | --libdi=* | --libd=*)
914 libdir=$ac_optarg ;;
915
916 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
917 | --libexe | --libex | --libe)
918 ac_prev=libexecdir ;;
919 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
920 | --libexe=* | --libex=* | --libe=*)
921 libexecdir=$ac_optarg ;;
922
923 -localedir | --localedir | --localedi | --localed | --locale)
924 ac_prev=localedir ;;
925 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
926 localedir=$ac_optarg ;;
927
928 -localstatedir | --localstatedir | --localstatedi | --localstated \
929 | --localstate | --localstat | --localsta | --localst | --locals)
930 ac_prev=localstatedir ;;
931 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
932 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
933 localstatedir=$ac_optarg ;;
934
935 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
936 ac_prev=mandir ;;
937 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
938 mandir=$ac_optarg ;;
939
940 -nfp | --nfp | --nf)
941 # Obsolete; use --without-fp.
942 with_fp=no ;;
943
944 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
945 | --no-cr | --no-c | -n)
946 no_create=yes ;;
947
948 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
949 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
950 no_recursion=yes ;;
951
952 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
953 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
954 | --oldin | --oldi | --old | --ol | --o)
955 ac_prev=oldincludedir ;;
956 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
957 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
958 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
959 oldincludedir=$ac_optarg ;;
960
961 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
962 ac_prev=prefix ;;
963 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
964 prefix=$ac_optarg ;;
965
966 -program-prefix | --program-prefix | --program-prefi | --program-pref \
967 | --program-pre | --program-pr | --program-p)
968 ac_prev=program_prefix ;;
969 -program-prefix=* | --program-prefix=* | --program-prefi=* \
970 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
971 program_prefix=$ac_optarg ;;
972
973 -program-suffix | --program-suffix | --program-suffi | --program-suff \
974 | --program-suf | --program-su | --program-s)
975 ac_prev=program_suffix ;;
976 -program-suffix=* | --program-suffix=* | --program-suffi=* \
977 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
978 program_suffix=$ac_optarg ;;
979
980 -program-transform-name | --program-transform-name \
981 | --program-transform-nam | --program-transform-na \
982 | --program-transform-n | --program-transform- \
983 | --program-transform | --program-transfor \
984 | --program-transfo | --program-transf \
985 | --program-trans | --program-tran \
986 | --progr-tra | --program-tr | --program-t)
987 ac_prev=program_transform_name ;;
988 -program-transform-name=* | --program-transform-name=* \
989 | --program-transform-nam=* | --program-transform-na=* \
990 | --program-transform-n=* | --program-transform-=* \
991 | --program-transform=* | --program-transfor=* \
992 | --program-transfo=* | --program-transf=* \
993 | --program-trans=* | --program-tran=* \
994 | --progr-tra=* | --program-tr=* | --program-t=*)
995 program_transform_name=$ac_optarg ;;
996
997 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
998 ac_prev=pdfdir ;;
999 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1000 pdfdir=$ac_optarg ;;
1001
1002 -psdir | --psdir | --psdi | --psd | --ps)
1003 ac_prev=psdir ;;
1004 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1005 psdir=$ac_optarg ;;
1006
1007 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1008 | -silent | --silent | --silen | --sile | --sil)
1009 silent=yes ;;
1010
1011 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1012 ac_prev=sbindir ;;
1013 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1014 | --sbi=* | --sb=*)
1015 sbindir=$ac_optarg ;;
1016
1017 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1018 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1019 | --sharedst | --shareds | --shared | --share | --shar \
1020 | --sha | --sh)
1021 ac_prev=sharedstatedir ;;
1022 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1023 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1024 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1025 | --sha=* | --sh=*)
1026 sharedstatedir=$ac_optarg ;;
1027
1028 -site | --site | --sit)
1029 ac_prev=site ;;
1030 -site=* | --site=* | --sit=*)
1031 site=$ac_optarg ;;
1032
1033 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1034 ac_prev=srcdir ;;
1035 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1036 srcdir=$ac_optarg ;;
1037
1038 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1039 | --syscon | --sysco | --sysc | --sys | --sy)
1040 ac_prev=sysconfdir ;;
1041 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1042 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1043 sysconfdir=$ac_optarg ;;
1044
1045 -target | --target | --targe | --targ | --tar | --ta | --t)
1046 ac_prev=target_alias ;;
1047 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1048 target_alias=$ac_optarg ;;
1049
1050 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1051 verbose=yes ;;
1052
1053 -version | --version | --versio | --versi | --vers | -V)
1054 ac_init_version=: ;;
1055
1056 -with-* | --with-*)
1057 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1058 # Reject names that are not valid shell variable names.
1059 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1060 { echo "$as_me: error: invalid package name: $ac_package" >&2
1061 { (exit 1); exit 1; }; }
1062 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1063 eval with_$ac_package=\$ac_optarg ;;
1064
1065 -without-* | --without-*)
1066 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1067 # Reject names that are not valid shell variable names.
1068 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1069 { echo "$as_me: error: invalid package name: $ac_package" >&2
1070 { (exit 1); exit 1; }; }
1071 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1072 eval with_$ac_package=no ;;
1073
1074 --x)
1075 # Obsolete; use --with-x.
1076 with_x=yes ;;
1077
1078 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1079 | --x-incl | --x-inc | --x-in | --x-i)
1080 ac_prev=x_includes ;;
1081 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1082 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1083 x_includes=$ac_optarg ;;
1084
1085 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1086 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1087 ac_prev=x_libraries ;;
1088 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1089 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1090 x_libraries=$ac_optarg ;;
1091
1092 -*) { echo "$as_me: error: unrecognized option: $ac_option
1093 Try \`$0 --help' for more information." >&2
1094 { (exit 1); exit 1; }; }
1095 ;;
1096
1097 *=*)
1098 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1099 # Reject names that are not valid shell variable names.
1100 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1101 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1102 { (exit 1); exit 1; }; }
1103 eval $ac_envvar=\$ac_optarg
1104 export $ac_envvar ;;
1105
1106 *)
1107 # FIXME: should be removed in autoconf 3.0.
1108 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1109 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1110 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1111 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1112 ;;
1113
1114 esac
1115 done
1116
1117 if test -n "$ac_prev"; then
1118 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1119 { echo "$as_me: error: missing argument to $ac_option" >&2
1120 { (exit 1); exit 1; }; }
1121 fi
1122
1123 # Be sure to have absolute directory names.
1124 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1125 datadir sysconfdir sharedstatedir localstatedir includedir \
1126 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1127 libdir localedir mandir
1128 do
1129 eval ac_val=\$$ac_var
1130 case $ac_val in
1131 [\\/$]* | ?:[\\/]* ) continue;;
1132 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1133 esac
1134 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1135 { (exit 1); exit 1; }; }
1136 done
1137
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1141 build=$build_alias
1142 host=$host_alias
1143 target=$target_alias
1144
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1150 If a cross compiler is detected then cross compile mode will be used." >&2
1151 elif test "x$build_alias" != "x$host_alias"; then
1152 cross_compiling=yes
1153 fi
1154 fi
1155
1156 ac_tool_prefix=
1157 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1158
1159 test "$silent" = yes && exec 6>/dev/null
1160
1161
1162 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1163 ac_ls_di=`ls -di .` &&
1164 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1165 { echo "$as_me: error: Working directory cannot be determined" >&2
1166 { (exit 1); exit 1; }; }
1167 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1168 { echo "$as_me: error: pwd does not report name of working directory" >&2
1169 { (exit 1); exit 1; }; }
1170
1171
1172 # Find the source files, if location was not specified.
1173 if test -z "$srcdir"; then
1174 ac_srcdir_defaulted=yes
1175 # Try the directory containing this script, then the parent directory.
1176 ac_confdir=`$as_dirname -- "$0" ||
1177 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1178 X"$0" : 'X\(//\)[^/]' \| \
1179 X"$0" : 'X\(//\)$' \| \
1180 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1181 echo X"$0" |
1182 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)[^/].*/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\/\)$/{
1191 s//\1/
1192 q
1193 }
1194 /^X\(\/\).*/{
1195 s//\1/
1196 q
1197 }
1198 s/.*/./; q'`
1199 srcdir=$ac_confdir
1200 if test ! -r "$srcdir/$ac_unique_file"; then
1201 srcdir=..
1202 fi
1203 else
1204 ac_srcdir_defaulted=no
1205 fi
1206 if test ! -r "$srcdir/$ac_unique_file"; then
1207 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1208 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1209 { (exit 1); exit 1; }; }
1210 fi
1211 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1212 ac_abs_confdir=`(
1213 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1214 { (exit 1); exit 1; }; }
1215 pwd)`
1216 # When building in place, set srcdir=.
1217 if test "$ac_abs_confdir" = "$ac_pwd"; then
1218 srcdir=.
1219 fi
1220 # Remove unnecessary trailing slashes from srcdir.
1221 # Double slashes in file names in object file debugging info
1222 # mess up M-x gdb in Emacs.
1223 case $srcdir in
1224 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1225 esac
1226 for ac_var in $ac_precious_vars; do
1227 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1228 eval ac_env_${ac_var}_value=\$${ac_var}
1229 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1230 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1231 done
1232
1233 #
1234 # Report the --help message.
1235 #
1236 if test "$ac_init_help" = "long"; then
1237 # Omit some internal or obsolete options to make the list less imposing.
1238 # This message is too long to be a string in the A/UX 3.1 sh.
1239 cat <<_ACEOF
1240 \`configure' configures this package to adapt to many kinds of systems.
1241
1242 Usage: $0 [OPTION]... [VAR=VALUE]...
1243
1244 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1245 VAR=VALUE. See below for descriptions of some of the useful variables.
1246
1247 Defaults for the options are specified in brackets.
1248
1249 Configuration:
1250 -h, --help display this help and exit
1251 --help=short display options specific to this package
1252 --help=recursive display the short help of all the included packages
1253 -V, --version display version information and exit
1254 -q, --quiet, --silent do not print \`checking...' messages
1255 --cache-file=FILE cache test results in FILE [disabled]
1256 -C, --config-cache alias for \`--cache-file=config.cache'
1257 -n, --no-create do not create output files
1258 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1259
1260 Installation directories:
1261 --prefix=PREFIX install architecture-independent files in PREFIX
1262 [$ac_default_prefix]
1263 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1264 [PREFIX]
1265
1266 By default, \`make install' will install all the files in
1267 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1268 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1269 for instance \`--prefix=\$HOME'.
1270
1271 For better control, use the options below.
1272
1273 Fine tuning of the installation directories:
1274 --bindir=DIR user executables [EPREFIX/bin]
1275 --sbindir=DIR system admin executables [EPREFIX/sbin]
1276 --libexecdir=DIR program executables [EPREFIX/libexec]
1277 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1278 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1279 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1280 --libdir=DIR object code libraries [EPREFIX/lib]
1281 --includedir=DIR C header files [PREFIX/include]
1282 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1283 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1284 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1285 --infodir=DIR info documentation [DATAROOTDIR/info]
1286 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1287 --mandir=DIR man documentation [DATAROOTDIR/man]
1288 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1289 --htmldir=DIR html documentation [DOCDIR]
1290 --dvidir=DIR dvi documentation [DOCDIR]
1291 --pdfdir=DIR pdf documentation [DOCDIR]
1292 --psdir=DIR ps documentation [DOCDIR]
1293 _ACEOF
1294
1295 cat <<\_ACEOF
1296
1297 Program names:
1298 --program-prefix=PREFIX prepend PREFIX to installed program names
1299 --program-suffix=SUFFIX append SUFFIX to installed program names
1300 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1301
1302 X features:
1303 --x-includes=DIR X include files are in DIR
1304 --x-libraries=DIR X library files are in DIR
1305
1306 System types:
1307 --build=BUILD configure for building on BUILD [guessed]
1308 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1309 _ACEOF
1310 fi
1311
1312 if test -n "$ac_init_help"; then
1313
1314 cat <<\_ACEOF
1315
1316 Optional Features:
1317 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1318 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1319 --enable-carbon-app[=DIR] [DIR=/Application]
1320 specify install directory for Emacs.app on Mac OS X
1321 --enable-asserts compile code with asserts enabled
1322 --enable-maintainer-mode enable make rules and dependencies not useful
1323 (and sometimes confusing) to the casual installer
1324 --enable-locallisppath=PATH
1325 directories Emacs should search for lisp files
1326 specific to this site
1327 --disable-largefile omit support for large files
1328
1329 Optional Packages:
1330 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1331 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1332 --without-gcc don't use GCC to compile Emacs if GCC is found
1333 --without-pop don't support POP mail retrieval with movemail
1334 --with-kerberos support Kerberos-authenticated POP
1335 --with-kerberos5 support Kerberos version 5 authenticated POP
1336 --with-hesiod support Hesiod to get the POP server host
1337 --without-sound don't compile with sound support
1338 --with-x-toolkit=KIT use an X toolkit
1339 (KIT = yes/lucid/athena/motif/gtk/no)
1340 --with-xpm use -lXpm for displaying XPM images
1341 --with-jpeg use -ljpeg for displaying JPEG images
1342 --with-tiff use -ltiff for displaying TIFF images
1343 --with-gif use -lgif (or -lungif) for displaying GIF images
1344 --with-png use -lpng for displaying PNG images
1345 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1346 --with-rsvg use -lrsvg-2 for displaying SVG images
1347 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1348 --with-pkg-config-prog Path to pkg-config to use for finding GTK and librsvg
1349 --without-toolkit-scroll-bars
1350 don't use Motif or Xaw3d scroll bars
1351 --without-xim don't use X11 XIM
1352 --without-carbon don't use Carbon GUI on Mac OS X
1353 --with-x use the X Window System
1354
1355 Some influential environment variables:
1356 CC C compiler command
1357 CFLAGS C compiler flags
1358 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1359 nonstandard directory <lib dir>
1360 LIBS libraries to pass to the linker, e.g. -l<library>
1361 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1362 you have headers in a nonstandard directory <include dir>
1363 CPP C preprocessor
1364 XMKMF Path to xmkmf, Makefile generator for X Window System
1365
1366 Use these variables to override the choices made by `configure' or to help
1367 it to find libraries and programs with nonstandard names/locations.
1368
1369 _ACEOF
1370 ac_status=$?
1371 fi
1372
1373 if test "$ac_init_help" = "recursive"; then
1374 # If there are subdirs, report their specific --help.
1375 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1376 test -d "$ac_dir" || continue
1377 ac_builddir=.
1378
1379 case "$ac_dir" in
1380 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1381 *)
1382 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1383 # A ".." for each directory in $ac_dir_suffix.
1384 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1385 case $ac_top_builddir_sub in
1386 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1388 esac ;;
1389 esac
1390 ac_abs_top_builddir=$ac_pwd
1391 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1392 # for backward compatibility:
1393 ac_top_builddir=$ac_top_build_prefix
1394
1395 case $srcdir in
1396 .) # We are building in place.
1397 ac_srcdir=.
1398 ac_top_srcdir=$ac_top_builddir_sub
1399 ac_abs_top_srcdir=$ac_pwd ;;
1400 [\\/]* | ?:[\\/]* ) # Absolute name.
1401 ac_srcdir=$srcdir$ac_dir_suffix;
1402 ac_top_srcdir=$srcdir
1403 ac_abs_top_srcdir=$srcdir ;;
1404 *) # Relative name.
1405 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1406 ac_top_srcdir=$ac_top_build_prefix$srcdir
1407 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1408 esac
1409 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1410
1411 cd "$ac_dir" || { ac_status=$?; continue; }
1412 # Check for guested configure.
1413 if test -f "$ac_srcdir/configure.gnu"; then
1414 echo &&
1415 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1416 elif test -f "$ac_srcdir/configure"; then
1417 echo &&
1418 $SHELL "$ac_srcdir/configure" --help=recursive
1419 else
1420 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1421 fi || ac_status=$?
1422 cd "$ac_pwd" || { ac_status=$?; break; }
1423 done
1424 fi
1425
1426 test -n "$ac_init_help" && exit $ac_status
1427 if $ac_init_version; then
1428 cat <<\_ACEOF
1429 configure
1430 generated by GNU Autoconf 2.61
1431
1432 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1433 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1434 This configure script is free software; the Free Software Foundation
1435 gives unlimited permission to copy, distribute and modify it.
1436 _ACEOF
1437 exit
1438 fi
1439 cat >config.log <<_ACEOF
1440 This file contains any messages produced by compilers while
1441 running configure, to aid debugging if configure makes a mistake.
1442
1443 It was created by $as_me, which was
1444 generated by GNU Autoconf 2.61. Invocation command line was
1445
1446 $ $0 $@
1447
1448 _ACEOF
1449 exec 5>>config.log
1450 {
1451 cat <<_ASUNAME
1452 ## --------- ##
1453 ## Platform. ##
1454 ## --------- ##
1455
1456 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1457 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1458 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1459 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1460 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1461
1462 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1463 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1464
1465 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1466 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1467 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1468 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1469 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1470 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1471 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1472
1473 _ASUNAME
1474
1475 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1476 for as_dir in $PATH
1477 do
1478 IFS=$as_save_IFS
1479 test -z "$as_dir" && as_dir=.
1480 echo "PATH: $as_dir"
1481 done
1482 IFS=$as_save_IFS
1483
1484 } >&5
1485
1486 cat >&5 <<_ACEOF
1487
1488
1489 ## ----------- ##
1490 ## Core tests. ##
1491 ## ----------- ##
1492
1493 _ACEOF
1494
1495
1496 # Keep a trace of the command line.
1497 # Strip out --no-create and --no-recursion so they do not pile up.
1498 # Strip out --silent because we don't want to record it for future runs.
1499 # Also quote any args containing shell meta-characters.
1500 # Make two passes to allow for proper duplicate-argument suppression.
1501 ac_configure_args=
1502 ac_configure_args0=
1503 ac_configure_args1=
1504 ac_must_keep_next=false
1505 for ac_pass in 1 2
1506 do
1507 for ac_arg
1508 do
1509 case $ac_arg in
1510 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1511 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1512 | -silent | --silent | --silen | --sile | --sil)
1513 continue ;;
1514 *\'*)
1515 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1516 esac
1517 case $ac_pass in
1518 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1519 2)
1520 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1521 if test $ac_must_keep_next = true; then
1522 ac_must_keep_next=false # Got value, back to normal.
1523 else
1524 case $ac_arg in
1525 *=* | --config-cache | -C | -disable-* | --disable-* \
1526 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1527 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1528 | -with-* | --with-* | -without-* | --without-* | --x)
1529 case "$ac_configure_args0 " in
1530 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1531 esac
1532 ;;
1533 -* ) ac_must_keep_next=true ;;
1534 esac
1535 fi
1536 ac_configure_args="$ac_configure_args '$ac_arg'"
1537 ;;
1538 esac
1539 done
1540 done
1541 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1542 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1543
1544 # When interrupted or exit'd, cleanup temporary files, and complete
1545 # config.log. We remove comments because anyway the quotes in there
1546 # would cause problems or look ugly.
1547 # WARNING: Use '\'' to represent an apostrophe within the trap.
1548 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1549 trap 'exit_status=$?
1550 # Save into config.log some information that might help in debugging.
1551 {
1552 echo
1553
1554 cat <<\_ASBOX
1555 ## ---------------- ##
1556 ## Cache variables. ##
1557 ## ---------------- ##
1558 _ASBOX
1559 echo
1560 # The following way of writing the cache mishandles newlines in values,
1561 (
1562 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1563 eval ac_val=\$$ac_var
1564 case $ac_val in #(
1565 *${as_nl}*)
1566 case $ac_var in #(
1567 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1568 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1569 esac
1570 case $ac_var in #(
1571 _ | IFS | as_nl) ;; #(
1572 *) $as_unset $ac_var ;;
1573 esac ;;
1574 esac
1575 done
1576 (set) 2>&1 |
1577 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1578 *${as_nl}ac_space=\ *)
1579 sed -n \
1580 "s/'\''/'\''\\\\'\'''\''/g;
1581 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1582 ;; #(
1583 *)
1584 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1585 ;;
1586 esac |
1587 sort
1588 )
1589 echo
1590
1591 cat <<\_ASBOX
1592 ## ----------------- ##
1593 ## Output variables. ##
1594 ## ----------------- ##
1595 _ASBOX
1596 echo
1597 for ac_var in $ac_subst_vars
1598 do
1599 eval ac_val=\$$ac_var
1600 case $ac_val in
1601 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1602 esac
1603 echo "$ac_var='\''$ac_val'\''"
1604 done | sort
1605 echo
1606
1607 if test -n "$ac_subst_files"; then
1608 cat <<\_ASBOX
1609 ## ------------------- ##
1610 ## File substitutions. ##
1611 ## ------------------- ##
1612 _ASBOX
1613 echo
1614 for ac_var in $ac_subst_files
1615 do
1616 eval ac_val=\$$ac_var
1617 case $ac_val in
1618 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1619 esac
1620 echo "$ac_var='\''$ac_val'\''"
1621 done | sort
1622 echo
1623 fi
1624
1625 if test -s confdefs.h; then
1626 cat <<\_ASBOX
1627 ## ----------- ##
1628 ## confdefs.h. ##
1629 ## ----------- ##
1630 _ASBOX
1631 echo
1632 cat confdefs.h
1633 echo
1634 fi
1635 test "$ac_signal" != 0 &&
1636 echo "$as_me: caught signal $ac_signal"
1637 echo "$as_me: exit $exit_status"
1638 } >&5
1639 rm -f core *.core core.conftest.* &&
1640 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1641 exit $exit_status
1642 ' 0
1643 for ac_signal in 1 2 13 15; do
1644 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1645 done
1646 ac_signal=0
1647
1648 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1649 rm -f -r conftest* confdefs.h
1650
1651 # Predefined preprocessor variables.
1652
1653 cat >>confdefs.h <<_ACEOF
1654 #define PACKAGE_NAME "$PACKAGE_NAME"
1655 _ACEOF
1656
1657
1658 cat >>confdefs.h <<_ACEOF
1659 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1660 _ACEOF
1661
1662
1663 cat >>confdefs.h <<_ACEOF
1664 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1665 _ACEOF
1666
1667
1668 cat >>confdefs.h <<_ACEOF
1669 #define PACKAGE_STRING "$PACKAGE_STRING"
1670 _ACEOF
1671
1672
1673 cat >>confdefs.h <<_ACEOF
1674 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1675 _ACEOF
1676
1677
1678 # Let the site file select an alternate cache file if it wants to.
1679 # Prefer explicitly selected file to automatically selected ones.
1680 if test -n "$CONFIG_SITE"; then
1681 set x "$CONFIG_SITE"
1682 elif test "x$prefix" != xNONE; then
1683 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1684 else
1685 set x "$ac_default_prefix/share/config.site" \
1686 "$ac_default_prefix/etc/config.site"
1687 fi
1688 shift
1689 for ac_site_file
1690 do
1691 if test -r "$ac_site_file"; then
1692 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1693 echo "$as_me: loading site script $ac_site_file" >&6;}
1694 sed 's/^/| /' "$ac_site_file" >&5
1695 . "$ac_site_file"
1696 fi
1697 done
1698
1699 if test -r "$cache_file"; then
1700 # Some versions of bash will fail to source /dev/null (special
1701 # files actually), so we avoid doing that.
1702 if test -f "$cache_file"; then
1703 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1704 echo "$as_me: loading cache $cache_file" >&6;}
1705 case $cache_file in
1706 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1707 *) . "./$cache_file";;
1708 esac
1709 fi
1710 else
1711 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1712 echo "$as_me: creating cache $cache_file" >&6;}
1713 >$cache_file
1714 fi
1715
1716 ac_header_list="$ac_header_list sys/time.h"
1717 ac_header_list="$ac_header_list unistd.h"
1718 ac_func_list="$ac_func_list alarm"
1719 # Check that the precious variables saved in the cache have kept the same
1720 # value.
1721 ac_cache_corrupted=false
1722 for ac_var in $ac_precious_vars; do
1723 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1724 eval ac_new_set=\$ac_env_${ac_var}_set
1725 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1726 eval ac_new_val=\$ac_env_${ac_var}_value
1727 case $ac_old_set,$ac_new_set in
1728 set,)
1729 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1730 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1731 ac_cache_corrupted=: ;;
1732 ,set)
1733 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1734 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1735 ac_cache_corrupted=: ;;
1736 ,);;
1737 *)
1738 if test "x$ac_old_val" != "x$ac_new_val"; then
1739 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1740 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1741 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1742 echo "$as_me: former value: $ac_old_val" >&2;}
1743 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1744 echo "$as_me: current value: $ac_new_val" >&2;}
1745 ac_cache_corrupted=:
1746 fi;;
1747 esac
1748 # Pass precious variables to config.status.
1749 if test "$ac_new_set" = set; then
1750 case $ac_new_val in
1751 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1752 *) ac_arg=$ac_var=$ac_new_val ;;
1753 esac
1754 case " $ac_configure_args " in
1755 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1756 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1757 esac
1758 fi
1759 done
1760 if $ac_cache_corrupted; then
1761 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1762 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1763 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1764 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1765 { (exit 1); exit 1; }; }
1766 fi
1767
1768
1769
1770
1771
1772
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784 ac_ext=c
1785 ac_cpp='$CPP $CPPFLAGS'
1786 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1787 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1788 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1789
1790
1791 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1792
1793
1794 test "$program_prefix" != NONE &&
1795 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1796 # Use a double $ so make ignores it.
1797 test "$program_suffix" != NONE &&
1798 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1799 # Double any \ or $. echo might interpret backslashes.
1800 # By default was `s,x,x', remove it if useless.
1801 cat <<\_ACEOF >conftest.sed
1802 s/[\\$]/&&/g;s/;s,x,x,$//
1803 _ACEOF
1804 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1805 rm -f conftest.sed
1806
1807
1808 lispdir='${datadir}/emacs/${version}/lisp'
1809 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1810 '${datadir}/emacs/site-lisp'
1811 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1812 etcdir='${datadir}/emacs/${version}/etc'
1813 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1814 docdir='${datadir}/emacs/${version}/etc'
1815 gamedir='${localstatedir}/games/emacs'
1816
1817 gameuser=games
1818
1819
1820 # Check whether --with-gcc was given.
1821 if test "${with_gcc+set}" = set; then
1822 withval=$with_gcc;
1823 fi
1824
1825
1826 # Check whether --with-pop was given.
1827 if test "${with_pop+set}" = set; then
1828 withval=$with_pop; if test "$withval" = yes; then
1829 cat >>confdefs.h <<\_ACEOF
1830 #define MAIL_USE_POP 1
1831 _ACEOF
1832
1833 else :
1834 fi
1835 else
1836 cat >>confdefs.h <<\_ACEOF
1837 #define MAIL_USE_POP 1
1838 _ACEOF
1839
1840 fi
1841
1842
1843
1844 # Check whether --with-kerberos was given.
1845 if test "${with_kerberos+set}" = set; then
1846 withval=$with_kerberos; if test "$withval" = yes; then
1847 cat >>confdefs.h <<\_ACEOF
1848 #define KERBEROS 1
1849 _ACEOF
1850
1851 fi
1852 fi
1853
1854
1855
1856 # Check whether --with-kerberos5 was given.
1857 if test "${with_kerberos5+set}" = set; then
1858 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1859 if test "${with_kerberos+set}" != set; then
1860 with_kerberos=yes
1861 cat >>confdefs.h <<\_ACEOF
1862 #define KERBEROS 1
1863 _ACEOF
1864
1865 fi
1866
1867 cat >>confdefs.h <<\_ACEOF
1868 #define KERBEROS5 1
1869 _ACEOF
1870
1871 fi
1872 fi
1873
1874
1875 # Check whether --with-hesiod was given.
1876 if test "${with_hesiod+set}" = set; then
1877 withval=$with_hesiod; if test "$withval" = yes; then
1878
1879 cat >>confdefs.h <<\_ACEOF
1880 #define HESIOD 1
1881 _ACEOF
1882
1883 fi
1884 fi
1885
1886
1887
1888 # Check whether --with-sound was given.
1889 if test "${with_sound+set}" = set; then
1890 withval=$with_sound;
1891 fi
1892
1893
1894
1895 # Check whether --with-x-toolkit was given.
1896 if test "${with_x_toolkit+set}" = set; then
1897 withval=$with_x_toolkit; case "${withval}" in
1898 y | ye | yes ) val=gtk ;;
1899 n | no ) val=no ;;
1900 l | lu | luc | luci | lucid ) val=lucid ;;
1901 a | at | ath | athe | athen | athena ) val=athena ;;
1902 m | mo | mot | moti | motif ) val=motif ;;
1903 g | gt | gtk ) val=gtk ;;
1904 * )
1905 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1906 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1907 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1908 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1909 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1910 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1911 { (exit 1); exit 1; }; }
1912 ;;
1913 esac
1914 with_x_toolkit=$val
1915
1916 fi
1917
1918
1919 # Check whether --with-xpm was given.
1920 if test "${with_xpm+set}" = set; then
1921 withval=$with_xpm;
1922 fi
1923
1924
1925 # Check whether --with-jpeg was given.
1926 if test "${with_jpeg+set}" = set; then
1927 withval=$with_jpeg;
1928 fi
1929
1930
1931 # Check whether --with-tiff was given.
1932 if test "${with_tiff+set}" = set; then
1933 withval=$with_tiff;
1934 fi
1935
1936
1937 # Check whether --with-gif was given.
1938 if test "${with_gif+set}" = set; then
1939 withval=$with_gif;
1940 fi
1941
1942
1943 # Check whether --with-png was given.
1944 if test "${with_png+set}" = set; then
1945 withval=$with_png;
1946 fi
1947
1948
1949 # Check whether --with-gpm was given.
1950 if test "${with_gpm+set}" = set; then
1951 withval=$with_gpm;
1952 fi
1953
1954
1955 # Check whether --with-rsvg was given.
1956 if test "${with_rsvg+set}" = set; then
1957 withval=$with_rsvg;
1958 fi
1959
1960
1961 # Check whether --with-gtk was given.
1962 if test "${with_gtk+set}" = set; then
1963 withval=$with_gtk;
1964 fi
1965
1966
1967 # Check whether --with-pkg-config-prog was given.
1968 if test "${with_pkg_config_prog+set}" = set; then
1969 withval=$with_pkg_config_prog;
1970 fi
1971
1972
1973 # Check whether --with-toolkit-scroll-bars was given.
1974 if test "${with_toolkit_scroll_bars+set}" = set; then
1975 withval=$with_toolkit_scroll_bars;
1976 fi
1977
1978
1979 # Check whether --with-xim was given.
1980 if test "${with_xim+set}" = set; then
1981 withval=$with_xim;
1982 fi
1983
1984
1985 # Check whether --with-carbon was given.
1986 if test "${with_carbon+set}" = set; then
1987 withval=$with_carbon;
1988 fi
1989
1990 # Check whether --enable-carbon-app was given.
1991 if test "${enable_carbon_app+set}" = set; then
1992 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1993 fi
1994
1995
1996 # Check whether --enable-asserts was given.
1997 if test "${enable_asserts+set}" = set; then
1998 enableval=$enable_asserts; USE_XASSERTS=$enableval
1999 else
2000 USE_XASSERTS=no
2001 fi
2002
2003
2004 # Check whether --enable-maintainer-mode was given.
2005 if test "${enable_maintainer_mode+set}" = set; then
2006 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2007 else
2008 USE_MAINTAINER_MODE=no
2009 fi
2010
2011 if test $USE_MAINTAINER_MODE = yes; then
2012 MAINT=
2013 else
2014 MAINT=#
2015 fi
2016
2017
2018 # Check whether --enable-locallisppath was given.
2019 if test "${enable_locallisppath+set}" = set; then
2020 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2021 locallisppath=
2022 elif test "${enableval}" != "yes"; then
2023 locallisppath=${enableval}
2024 fi
2025 fi
2026
2027
2028 #### Make srcdir absolute, if it isn't already. It's important to
2029 #### avoid running the path through pwd unnecessarily, since pwd can
2030 #### give you automounter prefixes, which can go away. We do all this
2031 #### so Emacs can find its files when run uninstalled.
2032 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2033 unset CDPATH
2034 case "${srcdir}" in
2035 /* ) ;;
2036 . )
2037 ## We may be able to use the $PWD environment variable to make this
2038 ## absolute. But sometimes PWD is inaccurate.
2039 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2040 ## but that tested only for a well-formed and valid PWD,
2041 ## it did not object when PWD was well-formed and valid but just wrong.
2042 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2043 then
2044 srcdir="$PWD"
2045 else
2046 srcdir="`(cd ${srcdir}; pwd)`"
2047 fi
2048 ;;
2049 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2050 esac
2051
2052 #### Check if the source directory already has a configured system in it.
2053 if test `pwd` != `(cd ${srcdir} && pwd)` \
2054 && test -f "${srcdir}/src/config.h" ; then
2055 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2056 as a build directory right now; it has been configured in its own
2057 right. To configure in another directory as well, you MUST
2058 use GNU make. If you do not have GNU make, then you must
2059 now do \`make distclean' in ${srcdir},
2060 and then run $0 again." >&5
2061 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2062 as a build directory right now; it has been configured in its own
2063 right. To configure in another directory as well, you MUST
2064 use GNU make. If you do not have GNU make, then you must
2065 now do \`make distclean' in ${srcdir},
2066 and then run $0 again." >&2;}
2067 fi
2068
2069 #### Given the configuration name, set machfile and opsysfile to the
2070 #### names of the m/*.h and s/*.h files we should use.
2071
2072 ### Canonicalize the configuration name.
2073
2074 ac_aux_dir=
2075 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2076 if test -f "$ac_dir/install-sh"; then
2077 ac_aux_dir=$ac_dir
2078 ac_install_sh="$ac_aux_dir/install-sh -c"
2079 break
2080 elif test -f "$ac_dir/install.sh"; then
2081 ac_aux_dir=$ac_dir
2082 ac_install_sh="$ac_aux_dir/install.sh -c"
2083 break
2084 elif test -f "$ac_dir/shtool"; then
2085 ac_aux_dir=$ac_dir
2086 ac_install_sh="$ac_aux_dir/shtool install -c"
2087 break
2088 fi
2089 done
2090 if test -z "$ac_aux_dir"; then
2091 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2092 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2093 { (exit 1); exit 1; }; }
2094 fi
2095
2096 # These three variables are undocumented and unsupported,
2097 # and are intended to be withdrawn in a future Autoconf release.
2098 # They can cause serious problems if a builder's source tree is in a directory
2099 # whose full name contains unusual characters.
2100 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2101 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2102 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2103
2104
2105 # Make sure we can run config.sub.
2106 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2107 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2108 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2109 { (exit 1); exit 1; }; }
2110
2111 { echo "$as_me:$LINENO: checking build system type" >&5
2112 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2113 if test "${ac_cv_build+set}" = set; then
2114 echo $ECHO_N "(cached) $ECHO_C" >&6
2115 else
2116 ac_build_alias=$build_alias
2117 test "x$ac_build_alias" = x &&
2118 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2119 test "x$ac_build_alias" = x &&
2120 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2121 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2122 { (exit 1); exit 1; }; }
2123 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2124 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2125 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2126 { (exit 1); exit 1; }; }
2127
2128 fi
2129 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2130 echo "${ECHO_T}$ac_cv_build" >&6; }
2131 case $ac_cv_build in
2132 *-*-*) ;;
2133 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2134 echo "$as_me: error: invalid value of canonical build" >&2;}
2135 { (exit 1); exit 1; }; };;
2136 esac
2137 build=$ac_cv_build
2138 ac_save_IFS=$IFS; IFS='-'
2139 set x $ac_cv_build
2140 shift
2141 build_cpu=$1
2142 build_vendor=$2
2143 shift; shift
2144 # Remember, the first character of IFS is used to create $*,
2145 # except with old shells:
2146 build_os=$*
2147 IFS=$ac_save_IFS
2148 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2149
2150
2151 { echo "$as_me:$LINENO: checking host system type" >&5
2152 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2153 if test "${ac_cv_host+set}" = set; then
2154 echo $ECHO_N "(cached) $ECHO_C" >&6
2155 else
2156 if test "x$host_alias" = x; then
2157 ac_cv_host=$ac_cv_build
2158 else
2159 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2160 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2161 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2162 { (exit 1); exit 1; }; }
2163 fi
2164
2165 fi
2166 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2167 echo "${ECHO_T}$ac_cv_host" >&6; }
2168 case $ac_cv_host in
2169 *-*-*) ;;
2170 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2171 echo "$as_me: error: invalid value of canonical host" >&2;}
2172 { (exit 1); exit 1; }; };;
2173 esac
2174 host=$ac_cv_host
2175 ac_save_IFS=$IFS; IFS='-'
2176 set x $ac_cv_host
2177 shift
2178 host_cpu=$1
2179 host_vendor=$2
2180 shift; shift
2181 # Remember, the first character of IFS is used to create $*,
2182 # except with old shells:
2183 host_os=$*
2184 IFS=$ac_save_IFS
2185 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2186
2187
2188 canonical=$host
2189 configuration=${host_alias-${build_alias-$host}}
2190
2191
2192
2193 ### If you add support for a new configuration, add code to this
2194 ### switch statement to recognize your configuration name and select
2195 ### the appropriate operating system and machine description files.
2196
2197 ### You would hope that you could choose an m/*.h file pretty much
2198 ### based on the machine portion of the configuration name, and an s-
2199 ### file based on the operating system portion. However, it turns out
2200 ### that each m/*.h file is pretty manufacturer-specific - for
2201 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2202 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2203 ### machines. So we basically have to have a special case for each
2204 ### configuration name.
2205 ###
2206 ### As far as handling version numbers on operating systems is
2207 ### concerned, make sure things will fail in a fixable way. If
2208 ### /etc/MACHINES doesn't say anything about version numbers, be
2209 ### prepared to handle anything reasonably. If version numbers
2210 ### matter, be sure /etc/MACHINES says something about it.
2211 ###
2212 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2213 ### "System V Release 4"; he writes, "The old convention encouraged
2214 ### confusion between `system' and `release' levels'."
2215
2216 machine='' opsys='' unported=no
2217 case "${canonical}" in
2218
2219 ## FreeBSD ports
2220 *-*-freebsd* )
2221 opsys=freebsd
2222 case "${canonical}" in
2223 alpha*-*-freebsd*) machine=alpha ;;
2224 ia64-*-freebsd*) machine=ia64 ;;
2225 sparc64-*-freebsd*) machine=sparc ;;
2226 powerpc-*-freebsd*) machine=macppc ;;
2227 i[3456]86-*-freebsd*) machine=intel386 ;;
2228 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2229 esac
2230 ;;
2231
2232 ## NetBSD ports
2233 *-*-netbsd* )
2234 opsys=netbsd
2235 if test -f /usr/lib/crti.o; then
2236
2237 cat >>confdefs.h <<\_ACEOF
2238 #define HAVE_CRTIN
2239 _ACEOF
2240
2241 fi
2242
2243 case "${canonical}" in
2244 alpha*-*-netbsd*) machine=alpha ;;
2245 i[3456]86-*-netbsd*) machine=intel386 ;;
2246 m68k-*-netbsd*)
2247 # This is somewhat bogus.
2248 machine=hp9000s300 ;;
2249 mips-*-netbsd*) machine=pmax ;;
2250 mipsel-*-netbsd*) machine=pmax ;;
2251 mipseb-*-netbsd*) machine=pmax ;;
2252 ns32k-*-netbsd*) machine=ns32000 ;;
2253 powerpc-*-netbsd*) machine=macppc ;;
2254 sparc*-*-netbsd*) machine=sparc ;;
2255 vax-*-netbsd*) machine=vax ;;
2256 arm-*-netbsd*) machine=arm ;;
2257 x86_64-*-netbsd*) machine=amdx86-64 ;;
2258 hppa-*-netbsd*) machine=hp800 ;;
2259 shle-*-netbsd*) machine=sh3el ;;
2260 esac
2261 ;;
2262
2263 ## OpenBSD ports
2264 *-*-openbsd* )
2265 opsys=openbsd
2266 case "${canonical}" in
2267 alpha*-*-openbsd*) machine=alpha ;;
2268 arm-*-openbsd*) machine=arm ;;
2269 hppa-*-openbsd*) machine=hp9000s300 ;;
2270 i386-*-openbsd*) machine=intel386 ;;
2271 m68k-*-openbsd*) machine=hp9000s300 ;;
2272 m88k-*-openbsd*) machine=aviion ;;
2273 mips64-*-openbsd*) machine=mips64 ;;
2274 powerpc-*-openbsd*) machine=macppc ;;
2275 sh-*-openbsd*) machine=sh3el ;;
2276 sparc*-*-openbsd*) machine=sparc ;;
2277 vax-*-openbsd*) machine=vax ;;
2278 x86_64-*-openbsd*) machine=amdx86-64 ;;
2279 esac
2280 ;;
2281
2282 ## LynxOS ports
2283 *-*-lynxos* )
2284 opsys=lynxos
2285 case "${canonical}" in
2286 i[3456]86-*-lynxos*) machine=intel386 ;;
2287 powerpc-*-lynxos*) machine=powerpc ;;
2288 esac
2289 ;;
2290
2291 ## Acorn RISCiX:
2292 arm-acorn-riscix1.1* )
2293 machine=acorn opsys=riscix1-1
2294 ;;
2295 arm-acorn-riscix1.2* | arm-acorn-riscix )
2296 ## This name is riscix12 instead of riscix1.2
2297 ## to avoid a file name conflict on MSDOS.
2298 machine=acorn opsys=riscix12
2299 ;;
2300
2301 ## BSDI ports
2302 *-*-bsdi* )
2303 opsys=bsdi
2304 case "${canonical}" in
2305 i[345]86-*-bsdi*) machine=intel386 ;;
2306 sparc-*-bsdi*) machine=sparc ;;
2307 powerpc-*-bsdi*) machine=macppc ;;
2308 esac
2309 case "${canonical}" in
2310 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2311 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2312 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2313 *-*-bsdi3* ) opsys=bsdos3 ;;
2314 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2315 esac
2316 ;;
2317
2318 ## Alliant machines
2319 ## Strictly speaking, we need the version of the alliant operating
2320 ## system to choose the right machine file, but currently the
2321 ## configuration name doesn't tell us enough to choose the right
2322 ## one; we need to give alliants their own operating system name to
2323 ## do this right. When someone cares, they can help us.
2324 fx80-alliant-* )
2325 machine=alliant4 opsys=bsd4-2
2326 ;;
2327 i860-alliant-* )
2328 machine=alliant-2800 opsys=bsd4-3
2329 ;;
2330
2331 ## Alpha (DEC) machines.
2332 alpha*-dec-osf* )
2333 machine=alpha opsys=osf1
2334 # This is needed to find X11R6.1 libraries for certain tests.
2335 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2336 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2337 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2338 # due to non-traditional preprocessing with the current compiler
2339 # defaults. OSF 4 can also have that compiler version, and there
2340 # seems always to have been a usable /usr/bin/cpp.
2341 NON_GNU_CPP=/usr/bin/cpp
2342 case "${canonical}" in
2343 alpha*-dec-osf[5-9]*)
2344 opsys=osf5-0 ;;
2345 esac
2346 ;;
2347
2348 alpha*-*-linux-gnu* )
2349 machine=alpha opsys=gnu-linux
2350 ;;
2351
2352 arm*-*-linux-gnu* )
2353 machine=arm opsys=gnu-linux
2354 ;;
2355
2356 ## Altos 3068
2357 m68*-altos-sysv* )
2358 machine=altos opsys=usg5-2
2359 ;;
2360
2361 ## Amdahl UTS
2362 580-amdahl-sysv* )
2363 machine=amdahl opsys=usg5-2-2
2364 ;;
2365
2366 ## Apollo, Domain/OS
2367 m68*-apollo-* )
2368 machine=apollo opsys=bsd4-3
2369 ;;
2370
2371 ## Apple Darwin / Mac OS X
2372 *-apple-darwin* )
2373 case "${canonical}" in
2374 i[3456]86-* ) machine=intel386 ;;
2375 powerpc-* ) machine=powermac ;;
2376 * ) unported=yes ;;
2377 esac
2378 opsys=darwin
2379 # Define CPP as follows to make autoconf work correctly.
2380 CPP="${CC-cc} -E -no-cpp-precomp"
2381 # Use fink packages if available.
2382 if test -d /sw/include && test -d /sw/lib; then
2383 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2384 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2385 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2386 fi
2387 ;;
2388
2389 ## AT&T 3b2, 3b5, 3b15, 3b20
2390 we32k-att-sysv* )
2391 machine=att3b opsys=usg5-2-2
2392 ;;
2393
2394 ## AT&T 3b1 - The Mighty Unix PC!
2395 m68*-att-sysv* )
2396 machine=7300 opsys=usg5-2-2
2397 ;;
2398
2399 ## Bull dpx20
2400 rs6000-bull-bosx* )
2401 machine=ibmrs6000 opsys=aix3-2
2402 ;;
2403
2404 ## Bull dpx2
2405 m68*-bull-sysv3* )
2406 machine=dpx2 opsys=usg5-3
2407 ;;
2408
2409 ## Bull sps7
2410 m68*-bull-sysv2* )
2411 machine=sps7 opsys=usg5-2
2412 ;;
2413
2414 ## CCI 5/32, 6/32 -- see "Tahoe".
2415
2416 ## Celerity
2417 ## I don't know what configuration name to use for this; config.sub
2418 ## doesn't seem to know anything about it. Hey, Celerity users, get
2419 ## in touch with us!
2420 celerity-celerity-bsd* )
2421 machine=celerity opsys=bsd4-2
2422 ;;
2423
2424 ## Clipper
2425 ## What operating systems does this chip run that Emacs has been
2426 ## tested on?
2427 clipper-* )
2428 machine=clipper
2429 ## We'll use the catch-all code at the bottom to guess the
2430 ## operating system.
2431 ;;
2432
2433 ## Compaq Nonstop
2434 mips-compaq-nonstopux* )
2435 machine=nonstopux opsys=nonstopux
2436 ;;
2437
2438 ## Convex
2439 *-convex-bsd* | *-convex-convexos* )
2440 machine=convex opsys=bsd4-3
2441 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2442 NON_GNU_CPP="cc -E -P"
2443 ;;
2444
2445 ## Cubix QBx/386
2446 i[3456]86-cubix-sysv* )
2447 machine=intel386 opsys=usg5-3
2448 ;;
2449
2450 ## Cydra 5
2451 cydra*-cydrome-sysv* )
2452 machine=cydra5 opsys=usg5-3
2453 ;;
2454
2455 ## Data General AViiON Machines
2456 ## DG changed naming conventions with the release of 5.4.4.10, they
2457 ## dropped the initial 5.4 but left the intervening R. Because of the
2458 ## R this shouldn't conflict with older versions of the OS (which I
2459 ## think were named like dgux4.*). In addition, DG new AViiONs series
2460 ## uses either Motorola M88k or Intel Pentium CPUs.
2461 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2462 machine=aviion opsys=dgux4
2463 ;;
2464 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2465 ## This name is dgux5-4-3 instead of dgux5-4r3
2466 ## to avoid a file name conflict on MSDOS.
2467 machine=aviion opsys=dgux5-4-3
2468 ;;
2469 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2470 machine=aviion opsys=dgux5-4r2
2471 ;;
2472 m88k-dg-dgux* )
2473 machine=aviion opsys=dgux
2474 ;;
2475
2476 ## Data General AViiON Intel (x86) Machines
2477 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2478 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2479 i[345]86-dg-dguxR4* )
2480 machine=aviion-intel opsys=dgux4
2481 ;;
2482
2483 ## DECstations
2484 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2485 machine=pmax opsys=bsd4-2
2486 ;;
2487 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2488 machine=pmax opsys=bsd4-3
2489 ;;
2490 mips-dec-ultrix* )
2491 machine=pmax opsys=ultrix4-3
2492 ;;
2493 mips-dec-osf* )
2494 machine=pmax opsys=osf1
2495 ;;
2496 mips-dec-mach_bsd4.3* )
2497 machine=pmax opsys=mach-bsd4-3
2498 ;;
2499
2500 ## Motorola Delta machines
2501 m68k-motorola-sysv* | m68000-motorola-sysv* )
2502 machine=delta opsys=usg5-3
2503 if test -z "`type gnucc | grep 'not found'`"
2504 then
2505 if test -s /etc/167config
2506 then CC="gnucc -m68040"
2507 else CC="gnucc -m68881"
2508 fi
2509 else
2510 if test -z "`type gcc | grep 'not found'`"
2511 then CC=gcc
2512 else CC=cc
2513 fi
2514 fi
2515 ;;
2516 m88k-motorola-sysv4* )
2517 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2518 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2519 # I hope there are not other 4.0 versions for this machine
2520 # which really need usg5-4 instead.
2521 machine=delta88k opsys=usg5-4-2
2522 ;;
2523 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2524 machine=delta88k opsys=usg5-3
2525 ;;
2526
2527 ## Dual machines
2528 m68*-dual-sysv* )
2529 machine=dual opsys=usg5-2
2530 ;;
2531 m68*-dual-uniplus* )
2532 machine=dual opsys=unipl5-2
2533 ;;
2534
2535 ## Elxsi 6400
2536 elxsi-elxsi-sysv* )
2537 machine=elxsi opsys=usg5-2
2538 ;;
2539
2540 ## Encore machines
2541 ns16k-encore-bsd* )
2542 machine=ns16000 opsys=umax
2543 ;;
2544
2545 ## The GEC 63 - apparently, this port isn't really finished yet.
2546 # I'm sure we finished off the last of the machines, though. -- fx
2547
2548 ## Gould Power Node and NP1
2549 pn-gould-bsd4.2* )
2550 machine=gould opsys=bsd4-2
2551 ;;
2552 pn-gould-bsd4.3* )
2553 machine=gould opsys=bsd4-3
2554 ;;
2555 np1-gould-bsd* )
2556 machine=gould-np1 opsys=bsd4-3
2557 ;;
2558
2559 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2560 ## as far as Emacs is concerned).
2561 m88k-harris-cxux* )
2562 # Build needs to be different on 7.0 and later releases
2563 case "`uname -r`" in
2564 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2565 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2566 esac
2567 NON_GNU_CPP="/lib/cpp"
2568 ;;
2569 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2570 m68k-harris-cxux* )
2571 machine=nh3000 opsys=cxux
2572 ;;
2573 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2574 powerpc-harris-powerunix )
2575 machine=nh6000 opsys=powerunix
2576 NON_GNU_CPP="cc -Xo -E -P"
2577 ;;
2578 ## SR2001/SR2201 running HI-UX/MPP
2579 hppa1.1-hitachi-hiuxmpp* )
2580 machine=sr2k opsys=hiuxmpp
2581 ;;
2582 hppa1.1-hitachi-hiuxwe2* )
2583 machine=sr2k opsys=hiuxwe2
2584 ;;
2585 ## Honeywell XPS100
2586 xps*-honeywell-sysv* )
2587 machine=xps100 opsys=usg5-2
2588 ;;
2589
2590 ## HP 9000 series 200 or 300
2591 m68*-hp-bsd* )
2592 machine=hp9000s300 opsys=bsd4-3
2593 ;;
2594 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2595 m68*-hp-hpux* )
2596 case "`uname -r`" in
2597 ## Someone's system reports A.B8.05 for this.
2598 ## I wonder what other possibilities there are.
2599 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2600 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2601 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2602 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2603 *) machine=hp9000s300 opsys=hpux ;;
2604 esac
2605 ;;
2606
2607 ## HP 9000 series 700 and 800, running HP/UX
2608 hppa*-hp-hpux7* )
2609 machine=hp800 opsys=hpux
2610 ;;
2611 hppa*-hp-hpux8* )
2612 machine=hp800 opsys=hpux8
2613 ;;
2614 hppa*-hp-hpux9shr* )
2615 machine=hp800 opsys=hpux9shr
2616 ;;
2617 hppa*-hp-hpux9* )
2618 machine=hp800 opsys=hpux9
2619 ;;
2620 hppa*-hp-hpux10.2* )
2621 machine=hp800 opsys=hpux10-20
2622 ;;
2623 hppa*-hp-hpux10* )
2624 machine=hp800 opsys=hpux10
2625 ;;
2626 hppa*-hp-hpux1[1-9]* )
2627 machine=hp800 opsys=hpux11
2628 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2629 ;;
2630
2631 hppa*-*-linux-gnu* )
2632 machine=hp800 opsys=gnu-linux
2633 ;;
2634
2635 ## HP 9000 series 700 and 800, running HP/UX
2636 hppa*-hp-hpux* )
2637 ## Cross-compilation? Nah!
2638 case "`uname -r`" in
2639 ## Someone's system reports A.B8.05 for this.
2640 ## I wonder what other possibilities there are.
2641 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2642 *.08.* ) machine=hp800 opsys=hpux8 ;;
2643 *.09.* ) machine=hp800 opsys=hpux9 ;;
2644 *) machine=hp800 opsys=hpux10 ;;
2645 esac
2646 ;;
2647 hppa*-*-nextstep* )
2648 machine=hp800 opsys=nextstep
2649 ;;
2650
2651 ## Orion machines
2652 orion-orion-bsd* )
2653 machine=orion opsys=bsd4-2
2654 ;;
2655 clipper-orion-bsd* )
2656 machine=orion105 opsys=bsd4-2
2657 ;;
2658
2659 ## IBM machines
2660 i[3456]86-ibm-aix1.1* )
2661 machine=ibmps2-aix opsys=usg5-2-2
2662 ;;
2663 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2664 machine=ibmps2-aix opsys=usg5-3
2665 ;;
2666 i370-ibm-aix*)
2667 machine=ibm370aix opsys=usg5-3
2668 ;;
2669 s390-*-linux-gnu* )
2670 machine=ibms390 opsys=gnu-linux
2671 ;;
2672 s390x-*-linux-gnu* )
2673 machine=ibms390x opsys=gnu-linux
2674 ;;
2675 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2676 machine=ibmrs6000 opsys=aix3-1
2677 ;;
2678 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2679 machine=ibmrs6000 opsys=aix3-2-5
2680 ;;
2681 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2682 machine=ibmrs6000 opsys=aix4-1
2683 ;;
2684 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2685 machine=ibmrs6000 opsys=aix4-2
2686 ;;
2687 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2688 machine=ibmrs6000 opsys=aix4-2
2689 ;;
2690 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2691 machine=ibmrs6000 opsys=aix4-2
2692 ;;
2693 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2694 machine=ibmrs6000 opsys=aix4
2695 ;;
2696 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2697 machine=ibmrs6000 opsys=aix4-1
2698 ;;
2699 rs6000-ibm-aix* | powerpc-ibm-aix* )
2700 machine=ibmrs6000 opsys=aix3-2
2701 ;;
2702 romp-ibm-bsd4.3* )
2703 machine=ibmrt opsys=bsd4-3
2704 ;;
2705 romp-ibm-bsd4.2* )
2706 machine=ibmrt opsys=bsd4-2
2707 ;;
2708 romp-ibm-aos4.3* )
2709 machine=ibmrt opsys=bsd4-3
2710 ;;
2711 romp-ibm-aos4.2* )
2712 machine=ibmrt opsys=bsd4-2
2713 ;;
2714 romp-ibm-aos* )
2715 machine=ibmrt opsys=bsd4-3
2716 ;;
2717 romp-ibm-bsd* )
2718 machine=ibmrt opsys=bsd4-3
2719 ;;
2720 romp-ibm-aix* )
2721 machine=ibmrt-aix opsys=usg5-2-2
2722 ;;
2723
2724 ## Integrated Solutions `Optimum V'
2725 m68*-isi-bsd4.2* )
2726 machine=isi-ov opsys=bsd4-2
2727 ;;
2728 m68*-isi-bsd4.3* )
2729 machine=isi-ov opsys=bsd4-3
2730 ;;
2731
2732 ## Intel 386 machines where we do care about the manufacturer
2733 i[3456]86-intsys-sysv* )
2734 machine=is386 opsys=usg5-2-2
2735 ;;
2736
2737 ## Prime EXL
2738 i[3456]86-prime-sysv* )
2739 machine=i386 opsys=usg5-3
2740 ;;
2741
2742 ## Sequent Symmetry running Dynix
2743 i[3456]86-sequent-bsd* )
2744 machine=symmetry opsys=bsd4-3
2745 ;;
2746
2747 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2748 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2749 machine=sequent-ptx opsys=ptx4
2750 NON_GNU_CPP=/lib/cpp
2751 ;;
2752
2753 ## Sequent Symmetry running DYNIX/ptx
2754 ## Use the old cpp rather than the newer ANSI one.
2755 i[3456]86-sequent-ptx* )
2756 machine=sequent-ptx opsys=ptx
2757 NON_GNU_CPP="/lib/cpp"
2758 ;;
2759
2760 ## ncr machine running svr4.3.
2761 i[3456]86-ncr-sysv4.3 )
2762 machine=ncr386 opsys=usg5-4-3
2763 ;;
2764
2765 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2766 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2767 i[3456]86-ncr-sysv* )
2768 machine=ncr386 opsys=usg5-4-2
2769 ;;
2770
2771 ## Intel Paragon OSF/1
2772 i860-intel-osf1* )
2773 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2774 ;;
2775
2776 ## Intel 860
2777 i860-*-sysv4* )
2778 machine=i860 opsys=usg5-4
2779 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2780 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2781 ;;
2782
2783 ## Macintosh PowerPC
2784 powerpc*-*-linux-gnu* )
2785 machine=macppc opsys=gnu-linux
2786 ;;
2787
2788 ## Masscomp machines
2789 m68*-masscomp-rtu* )
2790 machine=masscomp opsys=rtu
2791 ;;
2792
2793 ## Megatest machines
2794 m68*-megatest-bsd* )
2795 machine=mega68 opsys=bsd4-2
2796 ;;
2797
2798 ## Workstations sold by MIPS
2799 ## This is not necessarily all workstations using the MIPS processor -
2800 ## Irises are produced by SGI, and DECstations by DEC.
2801
2802 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2803 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2804 ## it gives for choosing between the alternatives seems to be "Use
2805 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2806 ## the BSD world." I'll assume that these are instructions for
2807 ## handling two odd situations, and that every other situation
2808 ## should use mips.h and usg5-2-2, they being listed first.
2809 mips-mips-usg* )
2810 machine=mips4
2811 ## Fall through to the general code at the bottom to decide on the OS.
2812 ;;
2813 mips-mips-riscos4* )
2814 machine=mips4 opsys=bsd4-3
2815 NON_GNU_CC="cc -systype bsd43"
2816 NON_GNU_CPP="cc -systype bsd43 -E"
2817 ;;
2818 mips-mips-riscos5* )
2819 machine=mips4 opsys=riscos5
2820 NON_GNU_CC="cc -systype bsd43"
2821 NON_GNU_CPP="cc -systype bsd43 -E"
2822 ;;
2823 mips-mips-bsd* )
2824 machine=mips opsys=bsd4-3
2825 ;;
2826 mips-mips-* )
2827 machine=mips opsys=usg5-2-2
2828 ;;
2829
2830 ## NeXT
2831 m68*-next-* | m68k-*-nextstep* )
2832 machine=m68k opsys=nextstep
2833 ;;
2834
2835 ## The complete machine from National Semiconductor
2836 ns32k-ns-genix* )
2837 machine=ns32000 opsys=usg5-2
2838 ;;
2839
2840 ## NCR machines
2841 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2842 machine=tower32 opsys=usg5-2-2
2843 ;;
2844 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2845 machine=tower32v3 opsys=usg5-3
2846 ;;
2847
2848 ## NEC EWS4800
2849 mips-nec-sysv4*)
2850 machine=ews4800 opsys=ux4800
2851 ;;
2852
2853 ## Nixdorf Targon 31
2854 m68*-nixdorf-sysv* )
2855 machine=targon31 opsys=usg5-2-2
2856 ;;
2857
2858 ## Nu (TI or LMI)
2859 m68*-nu-sysv* )
2860 machine=nu opsys=usg5-2
2861 ;;
2862
2863 ## Plexus
2864 m68*-plexus-sysv* )
2865 machine=plexus opsys=usg5-2
2866 ;;
2867
2868 ## Pyramid machines
2869 ## I don't really have any idea what sort of processor the Pyramid has,
2870 ## so I'm assuming it is its own architecture.
2871 pyramid-pyramid-bsd* )
2872 machine=pyramid opsys=bsd4-2
2873 ;;
2874
2875 ## Sequent Balance
2876 ns32k-sequent-bsd4.2* )
2877 machine=sequent opsys=bsd4-2
2878 ;;
2879 ns32k-sequent-bsd4.3* )
2880 machine=sequent opsys=bsd4-3
2881 ;;
2882
2883 ## Siemens Nixdorf
2884 mips-siemens-sysv* | mips-sni-sysv*)
2885 machine=mips-siemens opsys=usg5-4
2886 NON_GNU_CC=/usr/ccs/bin/cc
2887 NON_GNU_CPP=/usr/ccs/lib/cpp
2888 ;;
2889
2890 ## Silicon Graphics machines
2891 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2892 m68*-sgi-iris3.5* )
2893 machine=irist opsys=iris3-5
2894 ;;
2895 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2896 machine=irist opsys=iris3-6
2897 ;;
2898 ## Iris 4D
2899 mips-sgi-irix3* )
2900 machine=iris4d opsys=irix3-3
2901 ;;
2902 mips-sgi-irix4* )
2903 machine=iris4d opsys=irix4-0
2904 ;;
2905 mips-sgi-irix6.5 )
2906 machine=iris4d opsys=irix6-5
2907 # Without defining _LANGUAGE_C, things get masked out in the headers
2908 # so that, for instance, grepping for `free' in stdlib.h fails and
2909 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2910 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2911 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2912 ;;
2913 mips-sgi-irix6* )
2914 machine=iris4d opsys=irix6-0
2915 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2916 # but presumably it does no harm.
2917 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2918 # -32 probably isn't necessary in later v.6s -- anyone know which?
2919 NON_GCC_TEST_OPTIONS=-32
2920 ;;
2921 mips-sgi-irix5.[01]* )
2922 machine=iris4d opsys=irix5-0
2923 ;;
2924 mips-sgi-irix5* | mips-sgi-irix* )
2925 machine=iris4d opsys=irix5-2
2926 ;;
2927
2928 ## SONY machines
2929 m68*-sony-bsd4.2* )
2930 machine=news opsys=bsd4-2
2931 ;;
2932 m68*-sony-bsd4.3* )
2933 machine=news opsys=bsd4-3
2934 ;;
2935 m68*-sony-newsos3* | m68*-sony-news3*)
2936 machine=news opsys=bsd4-3
2937 ;;
2938 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2939 machine=news-risc opsys=bsd4-3
2940 ;;
2941 mips-sony-newsos6* )
2942 machine=news-r6 opsys=newsos6
2943 ;;
2944 mips-sony-news* )
2945 machine=news-risc opsys=newsos5
2946 ;;
2947
2948 ## Stride
2949 m68*-stride-sysv* )
2950 machine=stride opsys=usg5-2
2951 ;;
2952
2953 ## Suns
2954 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2955 machine=sparc opsys=gnu-linux
2956 ;;
2957
2958 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2959 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2960 | rs6000-*-solaris2*)
2961 case "${canonical}" in
2962 m68*-sunos1* ) machine=sun1 ;;
2963 m68*-sunos2* ) machine=sun2 ;;
2964 m68* ) machine=sun3 ;;
2965 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2966 i[3456]86-*-* ) machine=intel386 ;;
2967 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2968 powerpcle* ) machine=powerpcle ;;
2969 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2970 sparc* ) machine=sparc ;;
2971 * ) unported=yes ;;
2972 esac
2973 case "${canonical}" in
2974 ## The Sun386 didn't get past 4.0.
2975 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2976 *-sunos4.0* ) opsys=sunos4-0 ;;
2977 *-sunos4.1.[3-9]*noshare )
2978 ## This name is sunos413 instead of sunos4-1-3
2979 ## to avoid a file name conflict on MSDOS.
2980 opsys=sunos413
2981 NON_GNU_CPP=/usr/lib/cpp
2982 NON_GCC_TEST_OPTIONS=-Bstatic
2983 GCC_TEST_OPTIONS=-static
2984 ;;
2985 *-sunos4.1.[3-9]* | *-sunos4shr*)
2986 opsys=sunos4shr
2987 NON_GNU_CPP=/usr/lib/cpp
2988 ;;
2989 *-sunos4* | *-sunos )
2990 opsys=sunos4-1
2991 NON_GCC_TEST_OPTIONS=-Bstatic
2992 GCC_TEST_OPTIONS=-static
2993 ;;
2994 *-sunos5.3* | *-solaris2.3* )
2995 opsys=sol2-3
2996 NON_GNU_CPP=/usr/ccs/lib/cpp
2997 ;;
2998 *-sunos5.4* | *-solaris2.4* )
2999 opsys=sol2-4
3000 NON_GNU_CPP=/usr/ccs/lib/cpp
3001 RANLIB="ar -ts"
3002 ;;
3003 *-sunos5.5* | *-solaris2.5* )
3004 opsys=sol2-5
3005 NON_GNU_CPP=/usr/ccs/lib/cpp
3006 RANLIB="ar -ts"
3007 ;;
3008 *-sunos5.6* | *-solaris2.6* )
3009 opsys=sol2-6
3010 NON_GNU_CPP=/usr/ccs/lib/cpp
3011 RANLIB="ar -ts"
3012 ;;
3013 *-sunos5* | *-solaris* )
3014 opsys=sol2-6
3015 emacs_check_sunpro_c=yes
3016 NON_GNU_CPP=/usr/ccs/lib/cpp
3017 ;;
3018 * ) opsys=bsd4-2 ;;
3019 esac
3020 ## Watch out for a compiler that we know will not work.
3021 case "${canonical}" in
3022 *-solaris* | *-sunos5* )
3023 if [ "x$CC" = x/usr/ucb/cc ]; then
3024 ## /usr/ucb/cc doesn't work;
3025 ## we should find some other compiler that does work.
3026 unset CC
3027 fi
3028 ;;
3029 *) ;;
3030 esac
3031 ;;
3032 sparc-*-nextstep* )
3033 machine=sparc opsys=nextstep
3034 ;;
3035
3036 ## Tadpole 68k
3037 m68*-tadpole-sysv* )
3038 machine=tad68k opsys=usg5-3
3039 ;;
3040
3041 ## Tahoe machines
3042 tahoe-tahoe-bsd4.2* )
3043 machine=tahoe opsys=bsd4-2
3044 ;;
3045 tahoe-tahoe-bsd4.3* )
3046 machine=tahoe opsys=bsd4-3
3047 ;;
3048
3049 ## Tandem Integrity S2
3050 mips-tandem-sysv* )
3051 machine=tandem-s2 opsys=usg5-3
3052 ;;
3053
3054 ## Tektronix XD88
3055 m88k-tektronix-sysv3* )
3056 machine=tekxd88 opsys=usg5-3
3057 ;;
3058
3059 ## Tektronix 16000 box (6130?)
3060 ns16k-tektronix-bsd* )
3061 machine=ns16000 opsys=bsd4-2
3062 ;;
3063 ## Tektronix 4300
3064 ## src/m/tek4300.h hints that this is a m68k machine.
3065 m68*-tektronix-bsd* )
3066 machine=tek4300 opsys=bsd4-3
3067 ;;
3068
3069 ## Titan P2 or P3
3070 ## We seem to have lost the machine-description file titan.h!
3071 titan-titan-sysv* )
3072 machine=titan opsys=usg5-3
3073 ;;
3074
3075 ## Ustation E30 (SS5E)
3076 m68*-unisys-uniplus* )
3077 machine=ustation opsystem=unipl5-2
3078 ;;
3079
3080 ## Vaxen.
3081 vax-dec-* )
3082 machine=vax
3083 case "${canonical}" in
3084 *-bsd4.1* ) opsys=bsd4-1 ;;
3085 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3086 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3087 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3088 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3089 *-vms* ) opsys=vms ;;
3090 * ) unported=yes
3091 esac
3092 ;;
3093
3094 ## Whitechapel MG1
3095 ns16k-whitechapel-* )
3096 machine=mg1
3097 ## We don't know what sort of OS runs on these; we'll let the
3098 ## operating system guessing code below try.
3099 ;;
3100
3101 ## Wicat
3102 m68*-wicat-sysv* )
3103 machine=wicat opsys=usg5-2
3104 ;;
3105
3106 ## IA-64
3107 ia64*-*-linux* )
3108 machine=ia64 opsys=gnu-linux
3109 ;;
3110
3111 ## Intel 386 machines where we don't care about the manufacturer
3112 i[3456]86-*-* )
3113 machine=intel386
3114 case "${canonical}" in
3115 *-cygwin ) opsys=cygwin ;;
3116 *-darwin* ) opsys=darwin
3117 CPP="${CC-cc} -E -no-cpp-precomp"
3118 ;;
3119 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3120 *-isc2.2* ) opsys=isc2-2 ;;
3121 *-isc4.0* ) opsys=isc4-0 ;;
3122 *-isc4.* ) opsys=isc4-1
3123 GCC_TEST_OPTIONS=-posix
3124 NON_GCC_TEST_OPTIONS=-Xp
3125 ;;
3126 *-isc* ) opsys=isc3-0 ;;
3127 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3128 *-esix* ) opsys=esix ;;
3129 *-xenix* ) opsys=xenix ;;
3130 *-linux-gnu* ) opsys=gnu-linux ;;
3131 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3132 *-sco3.2v5* ) opsys=sco5
3133 NON_GNU_CPP=/lib/cpp
3134 # Prevent -belf from being passed to $CPP.
3135 # /lib/cpp does not accept it.
3136 OVERRIDE_CPPFLAGS=" "
3137 ;;
3138 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3139 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3140 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3141 *-386bsd* ) opsys=386bsd ;;
3142 *-nextstep* ) opsys=nextstep ;;
3143 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3144 esac
3145 ;;
3146
3147 ## m68k Linux-based GNU system
3148 m68k-*-linux-gnu* )
3149 machine=m68k opsys=gnu-linux
3150 ;;
3151
3152 ## Mips Linux-based GNU system
3153 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3154 machine=mips opsys=gnu-linux
3155 ;;
3156
3157 ## UXP/DS
3158 sparc-fujitsu-sysv4* )
3159 machine=sparc opsys=uxpds
3160 NON_GNU_CPP=/usr/ccs/lib/cpp
3161 RANLIB="ar -ts"
3162 ;;
3163
3164 ## UXP/V
3165 f301-fujitsu-uxpv4.1)
3166 machine=f301 opsys=uxpv
3167 ;;
3168
3169 ## AMD x86-64 Linux-based GNU system
3170 x86_64-*-linux-gnu* )
3171 machine=amdx86-64 opsys=gnu-linux
3172 ;;
3173
3174 ## Tensilica Xtensa Linux-based GNU system
3175 xtensa-*-linux-gnu* )
3176 machine=xtensa opsys=gnu-linux
3177 ;;
3178
3179 * )
3180 unported=yes
3181 ;;
3182 esac
3183
3184 ### If the code above didn't choose an operating system, just choose
3185 ### an operating system based on the configuration name. You really
3186 ### only want to use this when you have no idea what the right
3187 ### operating system is; if you know what operating systems a machine
3188 ### runs, it's cleaner to make it explicit in the case statement
3189 ### above.
3190 if test x"${opsys}" = x; then
3191 case "${canonical}" in
3192 *-gnu* ) opsys=gnu ;;
3193 *-bsd4.[01] ) opsys=bsd4-1 ;;
3194 *-bsd4.2 ) opsys=bsd4-2 ;;
3195 *-bsd4.3 ) opsys=bsd4-3 ;;
3196 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3197 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3198 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3199 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3200 *-sysv4.2uw* ) opsys=unixware ;;
3201 *-sysv5uw* ) opsys=unixware ;;
3202 *-sysv5OpenUNIX* ) opsys=unixware ;;
3203 *-sysv4.1* | *-sysvr4.1* )
3204 NON_GNU_CPP=/usr/lib/cpp
3205 opsys=usg5-4 ;;
3206 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3207 if [ x$NON_GNU_CPP = x ]; then
3208 if [ -f /usr/ccs/lib/cpp ]; then
3209 NON_GNU_CPP=/usr/ccs/lib/cpp
3210 else
3211 NON_GNU_CPP=/lib/cpp
3212 fi
3213 fi
3214 opsys=usg5-4-2 ;;
3215 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3216 * )
3217 unported=yes
3218 ;;
3219 esac
3220 fi
3221
3222
3223
3224 if test $unported = yes; then
3225 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3226 Check \`etc/MACHINES' for recognized configuration names." >&5
3227 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3228 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3229 { (exit 1); exit 1; }; }
3230 fi
3231
3232 machfile="m/${machine}.h"
3233 opsysfile="s/${opsys}.h"
3234
3235
3236 #### Choose a compiler.
3237 test -n "$CC" && cc_specified=yes
3238
3239 # Save the value of CFLAGS that the user specified.
3240 SPECIFIED_CFLAGS="$CFLAGS"
3241
3242 case ${with_gcc} in
3243 "yes" ) CC="gcc" GCC=yes ;;
3244 "no" ) : ${CC=cc} ;;
3245 * )
3246 esac
3247 ac_ext=c
3248 ac_cpp='$CPP $CPPFLAGS'
3249 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3250 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3251 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3252 if test -n "$ac_tool_prefix"; then
3253 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3254 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3255 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3256 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3257 if test "${ac_cv_prog_CC+set}" = set; then
3258 echo $ECHO_N "(cached) $ECHO_C" >&6
3259 else
3260 if test -n "$CC"; then
3261 ac_cv_prog_CC="$CC" # Let the user override the test.
3262 else
3263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3264 for as_dir in $PATH
3265 do
3266 IFS=$as_save_IFS
3267 test -z "$as_dir" && as_dir=.
3268 for ac_exec_ext in '' $ac_executable_extensions; do
3269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3270 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3272 break 2
3273 fi
3274 done
3275 done
3276 IFS=$as_save_IFS
3277
3278 fi
3279 fi
3280 CC=$ac_cv_prog_CC
3281 if test -n "$CC"; then
3282 { echo "$as_me:$LINENO: result: $CC" >&5
3283 echo "${ECHO_T}$CC" >&6; }
3284 else
3285 { echo "$as_me:$LINENO: result: no" >&5
3286 echo "${ECHO_T}no" >&6; }
3287 fi
3288
3289
3290 fi
3291 if test -z "$ac_cv_prog_CC"; then
3292 ac_ct_CC=$CC
3293 # Extract the first word of "gcc", so it can be a program name with args.
3294 set dummy gcc; ac_word=$2
3295 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3296 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3297 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3298 echo $ECHO_N "(cached) $ECHO_C" >&6
3299 else
3300 if test -n "$ac_ct_CC"; then
3301 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3302 else
3303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3304 for as_dir in $PATH
3305 do
3306 IFS=$as_save_IFS
3307 test -z "$as_dir" && as_dir=.
3308 for ac_exec_ext in '' $ac_executable_extensions; do
3309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3310 ac_cv_prog_ac_ct_CC="gcc"
3311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3312 break 2
3313 fi
3314 done
3315 done
3316 IFS=$as_save_IFS
3317
3318 fi
3319 fi
3320 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3321 if test -n "$ac_ct_CC"; then
3322 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3323 echo "${ECHO_T}$ac_ct_CC" >&6; }
3324 else
3325 { echo "$as_me:$LINENO: result: no" >&5
3326 echo "${ECHO_T}no" >&6; }
3327 fi
3328
3329 if test "x$ac_ct_CC" = x; then
3330 CC=""
3331 else
3332 case $cross_compiling:$ac_tool_warned in
3333 yes:)
3334 { echo "$as_me:$LINENO: 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." >&5
3337 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3338 whose name does not start with the host triplet. If you think this
3339 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3340 ac_tool_warned=yes ;;
3341 esac
3342 CC=$ac_ct_CC
3343 fi
3344 else
3345 CC="$ac_cv_prog_CC"
3346 fi
3347
3348 if test -z "$CC"; then
3349 if test -n "$ac_tool_prefix"; then
3350 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3351 set dummy ${ac_tool_prefix}cc; ac_word=$2
3352 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3353 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3354 if test "${ac_cv_prog_CC+set}" = set; then
3355 echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357 if test -n "$CC"; then
3358 ac_cv_prog_CC="$CC" # Let the user override the test.
3359 else
3360 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3361 for as_dir in $PATH
3362 do
3363 IFS=$as_save_IFS
3364 test -z "$as_dir" && as_dir=.
3365 for ac_exec_ext in '' $ac_executable_extensions; do
3366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3367 ac_cv_prog_CC="${ac_tool_prefix}cc"
3368 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3369 break 2
3370 fi
3371 done
3372 done
3373 IFS=$as_save_IFS
3374
3375 fi
3376 fi
3377 CC=$ac_cv_prog_CC
3378 if test -n "$CC"; then
3379 { echo "$as_me:$LINENO: result: $CC" >&5
3380 echo "${ECHO_T}$CC" >&6; }
3381 else
3382 { echo "$as_me:$LINENO: result: no" >&5
3383 echo "${ECHO_T}no" >&6; }
3384 fi
3385
3386
3387 fi
3388 fi
3389 if test -z "$CC"; then
3390 # Extract the first word of "cc", so it can be a program name with args.
3391 set dummy cc; ac_word=$2
3392 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3393 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3394 if test "${ac_cv_prog_CC+set}" = set; then
3395 echo $ECHO_N "(cached) $ECHO_C" >&6
3396 else
3397 if test -n "$CC"; then
3398 ac_cv_prog_CC="$CC" # Let the user override the test.
3399 else
3400 ac_prog_rejected=no
3401 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3402 for as_dir in $PATH
3403 do
3404 IFS=$as_save_IFS
3405 test -z "$as_dir" && as_dir=.
3406 for ac_exec_ext in '' $ac_executable_extensions; do
3407 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3408 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3409 ac_prog_rejected=yes
3410 continue
3411 fi
3412 ac_cv_prog_CC="cc"
3413 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3414 break 2
3415 fi
3416 done
3417 done
3418 IFS=$as_save_IFS
3419
3420 if test $ac_prog_rejected = yes; then
3421 # We found a bogon in the path, so make sure we never use it.
3422 set dummy $ac_cv_prog_CC
3423 shift
3424 if test $# != 0; then
3425 # We chose a different compiler from the bogus one.
3426 # However, it has the same basename, so the bogon will be chosen
3427 # first if we set CC to just the basename; use the full file name.
3428 shift
3429 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3430 fi
3431 fi
3432 fi
3433 fi
3434 CC=$ac_cv_prog_CC
3435 if test -n "$CC"; then
3436 { echo "$as_me:$LINENO: result: $CC" >&5
3437 echo "${ECHO_T}$CC" >&6; }
3438 else
3439 { echo "$as_me:$LINENO: result: no" >&5
3440 echo "${ECHO_T}no" >&6; }
3441 fi
3442
3443
3444 fi
3445 if test -z "$CC"; then
3446 if test -n "$ac_tool_prefix"; then
3447 for ac_prog in cl.exe
3448 do
3449 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3450 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3451 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3452 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3453 if test "${ac_cv_prog_CC+set}" = set; then
3454 echo $ECHO_N "(cached) $ECHO_C" >&6
3455 else
3456 if test -n "$CC"; then
3457 ac_cv_prog_CC="$CC" # Let the user override the test.
3458 else
3459 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3460 for as_dir in $PATH
3461 do
3462 IFS=$as_save_IFS
3463 test -z "$as_dir" && as_dir=.
3464 for ac_exec_ext in '' $ac_executable_extensions; do
3465 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3466 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3467 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3468 break 2
3469 fi
3470 done
3471 done
3472 IFS=$as_save_IFS
3473
3474 fi
3475 fi
3476 CC=$ac_cv_prog_CC
3477 if test -n "$CC"; then
3478 { echo "$as_me:$LINENO: result: $CC" >&5
3479 echo "${ECHO_T}$CC" >&6; }
3480 else
3481 { echo "$as_me:$LINENO: result: no" >&5
3482 echo "${ECHO_T}no" >&6; }
3483 fi
3484
3485
3486 test -n "$CC" && break
3487 done
3488 fi
3489 if test -z "$CC"; then
3490 ac_ct_CC=$CC
3491 for ac_prog in cl.exe
3492 do
3493 # Extract the first word of "$ac_prog", so it can be a program name with args.
3494 set dummy $ac_prog; ac_word=$2
3495 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3496 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3497 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3498 echo $ECHO_N "(cached) $ECHO_C" >&6
3499 else
3500 if test -n "$ac_ct_CC"; then
3501 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3502 else
3503 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3504 for as_dir in $PATH
3505 do
3506 IFS=$as_save_IFS
3507 test -z "$as_dir" && as_dir=.
3508 for ac_exec_ext in '' $ac_executable_extensions; do
3509 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3510 ac_cv_prog_ac_ct_CC="$ac_prog"
3511 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3512 break 2
3513 fi
3514 done
3515 done
3516 IFS=$as_save_IFS
3517
3518 fi
3519 fi
3520 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3521 if test -n "$ac_ct_CC"; then
3522 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3523 echo "${ECHO_T}$ac_ct_CC" >&6; }
3524 else
3525 { echo "$as_me:$LINENO: result: no" >&5
3526 echo "${ECHO_T}no" >&6; }
3527 fi
3528
3529
3530 test -n "$ac_ct_CC" && break
3531 done
3532
3533 if test "x$ac_ct_CC" = x; then
3534 CC=""
3535 else
3536 case $cross_compiling:$ac_tool_warned in
3537 yes:)
3538 { echo "$as_me:$LINENO: 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." >&5
3541 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3542 whose name does not start with the host triplet. If you think this
3543 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3544 ac_tool_warned=yes ;;
3545 esac
3546 CC=$ac_ct_CC
3547 fi
3548 fi
3549
3550 fi
3551
3552
3553 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3554 See \`config.log' for more details." >&5
3555 echo "$as_me: error: no acceptable C compiler found in \$PATH
3556 See \`config.log' for more details." >&2;}
3557 { (exit 1); exit 1; }; }
3558
3559 # Provide some information about the compiler.
3560 echo "$as_me:$LINENO: checking for C compiler version" >&5
3561 ac_compiler=`set X $ac_compile; echo $2`
3562 { (ac_try="$ac_compiler --version >&5"
3563 case "(($ac_try" in
3564 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3565 *) ac_try_echo=$ac_try;;
3566 esac
3567 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3568 (eval "$ac_compiler --version >&5") 2>&5
3569 ac_status=$?
3570 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3571 (exit $ac_status); }
3572 { (ac_try="$ac_compiler -v >&5"
3573 case "(($ac_try" in
3574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3575 *) ac_try_echo=$ac_try;;
3576 esac
3577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3578 (eval "$ac_compiler -v >&5") 2>&5
3579 ac_status=$?
3580 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3581 (exit $ac_status); }
3582 { (ac_try="$ac_compiler -V >&5"
3583 case "(($ac_try" in
3584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3585 *) ac_try_echo=$ac_try;;
3586 esac
3587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3588 (eval "$ac_compiler -V >&5") 2>&5
3589 ac_status=$?
3590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3591 (exit $ac_status); }
3592
3593 cat >conftest.$ac_ext <<_ACEOF
3594 /* confdefs.h. */
3595 _ACEOF
3596 cat confdefs.h >>conftest.$ac_ext
3597 cat >>conftest.$ac_ext <<_ACEOF
3598 /* end confdefs.h. */
3599
3600 int
3601 main ()
3602 {
3603
3604 ;
3605 return 0;
3606 }
3607 _ACEOF
3608 ac_clean_files_save=$ac_clean_files
3609 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3610 # Try to create an executable without -o first, disregard a.out.
3611 # It will help us diagnose broken compilers, and finding out an intuition
3612 # of exeext.
3613 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3614 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3615 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3616 #
3617 # List of possible output files, starting from the most likely.
3618 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3619 # only as a last resort. b.out is created by i960 compilers.
3620 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3621 #
3622 # The IRIX 6 linker writes into existing files which may not be
3623 # executable, retaining their permissions. Remove them first so a
3624 # subsequent execution test works.
3625 ac_rmfiles=
3626 for ac_file in $ac_files
3627 do
3628 case $ac_file in
3629 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3630 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3631 esac
3632 done
3633 rm -f $ac_rmfiles
3634
3635 if { (ac_try="$ac_link_default"
3636 case "(($ac_try" in
3637 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3638 *) ac_try_echo=$ac_try;;
3639 esac
3640 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3641 (eval "$ac_link_default") 2>&5
3642 ac_status=$?
3643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3644 (exit $ac_status); }; then
3645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3648 # so that the user can short-circuit this test for compilers unknown to
3649 # Autoconf.
3650 for ac_file in $ac_files ''
3651 do
3652 test -f "$ac_file" || continue
3653 case $ac_file in
3654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3655 ;;
3656 [ab].out )
3657 # We found the default executable, but exeext='' is most
3658 # certainly right.
3659 break;;
3660 *.* )
3661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3662 then :; else
3663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3664 fi
3665 # We set ac_cv_exeext here because the later test for it is not
3666 # safe: cross compilers may not add the suffix if given an `-o'
3667 # argument, so we may need to know it at that point already.
3668 # Even if this section looks crufty: it has the advantage of
3669 # actually working.
3670 break;;
3671 * )
3672 break;;
3673 esac
3674 done
3675 test "$ac_cv_exeext" = no && ac_cv_exeext=
3676
3677 else
3678 ac_file=''
3679 fi
3680
3681 { echo "$as_me:$LINENO: result: $ac_file" >&5
3682 echo "${ECHO_T}$ac_file" >&6; }
3683 if test -z "$ac_file"; then
3684 echo "$as_me: failed program was:" >&5
3685 sed 's/^/| /' conftest.$ac_ext >&5
3686
3687 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3688 See \`config.log' for more details." >&5
3689 echo "$as_me: error: C compiler cannot create executables
3690 See \`config.log' for more details." >&2;}
3691 { (exit 77); exit 77; }; }
3692 fi
3693
3694 ac_exeext=$ac_cv_exeext
3695
3696 # Check that the compiler produces executables we can run. If not, either
3697 # the compiler is broken, or we cross compile.
3698 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3699 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3700 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3701 # If not cross compiling, check that we can run a simple program.
3702 if test "$cross_compiling" != yes; then
3703 if { ac_try='./$ac_file'
3704 { (case "(($ac_try" in
3705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3706 *) ac_try_echo=$ac_try;;
3707 esac
3708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3709 (eval "$ac_try") 2>&5
3710 ac_status=$?
3711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3712 (exit $ac_status); }; }; then
3713 cross_compiling=no
3714 else
3715 if test "$cross_compiling" = maybe; then
3716 cross_compiling=yes
3717 else
3718 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3719 If you meant to cross compile, use \`--host'.
3720 See \`config.log' for more details." >&5
3721 echo "$as_me: error: cannot run C compiled programs.
3722 If you meant to cross compile, use \`--host'.
3723 See \`config.log' for more details." >&2;}
3724 { (exit 1); exit 1; }; }
3725 fi
3726 fi
3727 fi
3728 { echo "$as_me:$LINENO: result: yes" >&5
3729 echo "${ECHO_T}yes" >&6; }
3730
3731 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3732 ac_clean_files=$ac_clean_files_save
3733 # Check that the compiler produces executables we can run. If not, either
3734 # the compiler is broken, or we cross compile.
3735 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3736 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3737 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3738 echo "${ECHO_T}$cross_compiling" >&6; }
3739
3740 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3741 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3742 if { (ac_try="$ac_link"
3743 case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_link") 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; then
3752 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3753 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3754 # work properly (i.e., refer to `conftest.exe'), while it won't with
3755 # `rm'.
3756 for ac_file in conftest.exe conftest conftest.*; do
3757 test -f "$ac_file" || continue
3758 case $ac_file in
3759 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3760 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3761 break;;
3762 * ) break;;
3763 esac
3764 done
3765 else
3766 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3767 See \`config.log' for more details." >&5
3768 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3769 See \`config.log' for more details." >&2;}
3770 { (exit 1); exit 1; }; }
3771 fi
3772
3773 rm -f conftest$ac_cv_exeext
3774 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3775 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3776
3777 rm -f conftest.$ac_ext
3778 EXEEXT=$ac_cv_exeext
3779 ac_exeext=$EXEEXT
3780 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3781 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3782 if test "${ac_cv_objext+set}" = set; then
3783 echo $ECHO_N "(cached) $ECHO_C" >&6
3784 else
3785 cat >conftest.$ac_ext <<_ACEOF
3786 /* confdefs.h. */
3787 _ACEOF
3788 cat confdefs.h >>conftest.$ac_ext
3789 cat >>conftest.$ac_ext <<_ACEOF
3790 /* end confdefs.h. */
3791
3792 int
3793 main ()
3794 {
3795
3796 ;
3797 return 0;
3798 }
3799 _ACEOF
3800 rm -f conftest.o conftest.obj
3801 if { (ac_try="$ac_compile"
3802 case "(($ac_try" in
3803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3804 *) ac_try_echo=$ac_try;;
3805 esac
3806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3807 (eval "$ac_compile") 2>&5
3808 ac_status=$?
3809 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3810 (exit $ac_status); }; then
3811 for ac_file in conftest.o conftest.obj conftest.*; do
3812 test -f "$ac_file" || continue;
3813 case $ac_file in
3814 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3815 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3816 break;;
3817 esac
3818 done
3819 else
3820 echo "$as_me: failed program was:" >&5
3821 sed 's/^/| /' conftest.$ac_ext >&5
3822
3823 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3824 See \`config.log' for more details." >&5
3825 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3826 See \`config.log' for more details." >&2;}
3827 { (exit 1); exit 1; }; }
3828 fi
3829
3830 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3831 fi
3832 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3833 echo "${ECHO_T}$ac_cv_objext" >&6; }
3834 OBJEXT=$ac_cv_objext
3835 ac_objext=$OBJEXT
3836 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3837 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3838 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3839 echo $ECHO_N "(cached) $ECHO_C" >&6
3840 else
3841 cat >conftest.$ac_ext <<_ACEOF
3842 /* confdefs.h. */
3843 _ACEOF
3844 cat confdefs.h >>conftest.$ac_ext
3845 cat >>conftest.$ac_ext <<_ACEOF
3846 /* end confdefs.h. */
3847
3848 int
3849 main ()
3850 {
3851 #ifndef __GNUC__
3852 choke me
3853 #endif
3854
3855 ;
3856 return 0;
3857 }
3858 _ACEOF
3859 rm -f conftest.$ac_objext
3860 if { (ac_try="$ac_compile"
3861 case "(($ac_try" in
3862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3863 *) ac_try_echo=$ac_try;;
3864 esac
3865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3866 (eval "$ac_compile") 2>conftest.er1
3867 ac_status=$?
3868 grep -v '^ *+' conftest.er1 >conftest.err
3869 rm -f conftest.er1
3870 cat conftest.err >&5
3871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872 (exit $ac_status); } && {
3873 test -z "$ac_c_werror_flag" ||
3874 test ! -s conftest.err
3875 } && test -s conftest.$ac_objext; then
3876 ac_compiler_gnu=yes
3877 else
3878 echo "$as_me: failed program was:" >&5
3879 sed 's/^/| /' conftest.$ac_ext >&5
3880
3881 ac_compiler_gnu=no
3882 fi
3883
3884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3885 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3886
3887 fi
3888 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3889 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3890 GCC=`test $ac_compiler_gnu = yes && echo yes`
3891 ac_test_CFLAGS=${CFLAGS+set}
3892 ac_save_CFLAGS=$CFLAGS
3893 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3894 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3895 if test "${ac_cv_prog_cc_g+set}" = set; then
3896 echo $ECHO_N "(cached) $ECHO_C" >&6
3897 else
3898 ac_save_c_werror_flag=$ac_c_werror_flag
3899 ac_c_werror_flag=yes
3900 ac_cv_prog_cc_g=no
3901 CFLAGS="-g"
3902 cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h. */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h. */
3908
3909 int
3910 main ()
3911 {
3912
3913 ;
3914 return 0;
3915 }
3916 _ACEOF
3917 rm -f conftest.$ac_objext
3918 if { (ac_try="$ac_compile"
3919 case "(($ac_try" in
3920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3921 *) ac_try_echo=$ac_try;;
3922 esac
3923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3924 (eval "$ac_compile") 2>conftest.er1
3925 ac_status=$?
3926 grep -v '^ *+' conftest.er1 >conftest.err
3927 rm -f conftest.er1
3928 cat conftest.err >&5
3929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3930 (exit $ac_status); } && {
3931 test -z "$ac_c_werror_flag" ||
3932 test ! -s conftest.err
3933 } && test -s conftest.$ac_objext; then
3934 ac_cv_prog_cc_g=yes
3935 else
3936 echo "$as_me: failed program was:" >&5
3937 sed 's/^/| /' conftest.$ac_ext >&5
3938
3939 CFLAGS=""
3940 cat >conftest.$ac_ext <<_ACEOF
3941 /* confdefs.h. */
3942 _ACEOF
3943 cat confdefs.h >>conftest.$ac_ext
3944 cat >>conftest.$ac_ext <<_ACEOF
3945 /* end confdefs.h. */
3946
3947 int
3948 main ()
3949 {
3950
3951 ;
3952 return 0;
3953 }
3954 _ACEOF
3955 rm -f conftest.$ac_objext
3956 if { (ac_try="$ac_compile"
3957 case "(($ac_try" in
3958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3959 *) ac_try_echo=$ac_try;;
3960 esac
3961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3962 (eval "$ac_compile") 2>conftest.er1
3963 ac_status=$?
3964 grep -v '^ *+' conftest.er1 >conftest.err
3965 rm -f conftest.er1
3966 cat conftest.err >&5
3967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3968 (exit $ac_status); } && {
3969 test -z "$ac_c_werror_flag" ||
3970 test ! -s conftest.err
3971 } && test -s conftest.$ac_objext; then
3972 :
3973 else
3974 echo "$as_me: failed program was:" >&5
3975 sed 's/^/| /' conftest.$ac_ext >&5
3976
3977 ac_c_werror_flag=$ac_save_c_werror_flag
3978 CFLAGS="-g"
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 ac_cv_prog_cc_g=yes
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016
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 fi
4024
4025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4026 ac_c_werror_flag=$ac_save_c_werror_flag
4027 fi
4028 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4029 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4030 if test "$ac_test_CFLAGS" = set; then
4031 CFLAGS=$ac_save_CFLAGS
4032 elif test $ac_cv_prog_cc_g = yes; then
4033 if test "$GCC" = yes; then
4034 CFLAGS="-g -O2"
4035 else
4036 CFLAGS="-g"
4037 fi
4038 else
4039 if test "$GCC" = yes; then
4040 CFLAGS="-O2"
4041 else
4042 CFLAGS=
4043 fi
4044 fi
4045 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4046 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4047 if test "${ac_cv_prog_cc_c89+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 ac_cv_prog_cc_c89=no
4051 ac_save_CC=$CC
4052 cat >conftest.$ac_ext <<_ACEOF
4053 /* confdefs.h. */
4054 _ACEOF
4055 cat confdefs.h >>conftest.$ac_ext
4056 cat >>conftest.$ac_ext <<_ACEOF
4057 /* end confdefs.h. */
4058 #include <stdarg.h>
4059 #include <stdio.h>
4060 #include <sys/types.h>
4061 #include <sys/stat.h>
4062 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4063 struct buf { int x; };
4064 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4065 static char *e (p, i)
4066 char **p;
4067 int i;
4068 {
4069 return p[i];
4070 }
4071 static char *f (char * (*g) (char **, int), char **p, ...)
4072 {
4073 char *s;
4074 va_list v;
4075 va_start (v,p);
4076 s = g (p, va_arg (v,int));
4077 va_end (v);
4078 return s;
4079 }
4080
4081 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4082 function prototypes and stuff, but not '\xHH' hex character constants.
4083 These don't provoke an error unfortunately, instead are silently treated
4084 as 'x'. The following induces an error, until -std is added to get
4085 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4086 array size at least. It's necessary to write '\x00'==0 to get something
4087 that's true only with -std. */
4088 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4089
4090 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4091 inside strings and character constants. */
4092 #define FOO(x) 'x'
4093 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4094
4095 int test (int i, double x);
4096 struct s1 {int (*f) (int a);};
4097 struct s2 {int (*f) (double a);};
4098 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4099 int argc;
4100 char **argv;
4101 int
4102 main ()
4103 {
4104 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4105 ;
4106 return 0;
4107 }
4108 _ACEOF
4109 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4110 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4111 do
4112 CC="$ac_save_CC $ac_arg"
4113 rm -f conftest.$ac_objext
4114 if { (ac_try="$ac_compile"
4115 case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118 esac
4119 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4120 (eval "$ac_compile") 2>conftest.er1
4121 ac_status=$?
4122 grep -v '^ *+' conftest.er1 >conftest.err
4123 rm -f conftest.er1
4124 cat conftest.err >&5
4125 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4126 (exit $ac_status); } && {
4127 test -z "$ac_c_werror_flag" ||
4128 test ! -s conftest.err
4129 } && test -s conftest.$ac_objext; then
4130 ac_cv_prog_cc_c89=$ac_arg
4131 else
4132 echo "$as_me: failed program was:" >&5
4133 sed 's/^/| /' conftest.$ac_ext >&5
4134
4135
4136 fi
4137
4138 rm -f core conftest.err conftest.$ac_objext
4139 test "x$ac_cv_prog_cc_c89" != "xno" && break
4140 done
4141 rm -f conftest.$ac_ext
4142 CC=$ac_save_CC
4143
4144 fi
4145 # AC_CACHE_VAL
4146 case "x$ac_cv_prog_cc_c89" in
4147 x)
4148 { echo "$as_me:$LINENO: result: none needed" >&5
4149 echo "${ECHO_T}none needed" >&6; } ;;
4150 xno)
4151 { echo "$as_me:$LINENO: result: unsupported" >&5
4152 echo "${ECHO_T}unsupported" >&6; } ;;
4153 *)
4154 CC="$CC $ac_cv_prog_cc_c89"
4155 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4156 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4157 esac
4158
4159
4160 ac_ext=c
4161 ac_cpp='$CPP $CPPFLAGS'
4162 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4163 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4164 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4165
4166
4167 # On Suns, sometimes $CPP names a directory.
4168 if test -n "$CPP" && test -d "$CPP"; then
4169 CPP=
4170 fi
4171
4172 ## If not using gcc, and on Solaris, and no CPP specified, see if
4173 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4174 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4175 test x"$CPP" = x; then
4176 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4177 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4178
4179 if test "${emacs_cv_sunpro_c+set}" = set; then
4180 echo $ECHO_N "(cached) $ECHO_C" >&6
4181 else
4182 cat >conftest.$ac_ext <<_ACEOF
4183 /* confdefs.h. */
4184 _ACEOF
4185 cat confdefs.h >>conftest.$ac_ext
4186 cat >>conftest.$ac_ext <<_ACEOF
4187 /* end confdefs.h. */
4188
4189 int
4190 main ()
4191 {
4192 #ifndef __SUNPRO_C
4193 fail;
4194 #endif
4195
4196 ;
4197 return 0;
4198 }
4199 _ACEOF
4200 rm -f conftest.$ac_objext conftest$ac_exeext
4201 if { (ac_try="$ac_link"
4202 case "(($ac_try" in
4203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4204 *) ac_try_echo=$ac_try;;
4205 esac
4206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4207 (eval "$ac_link") 2>conftest.er1
4208 ac_status=$?
4209 grep -v '^ *+' conftest.er1 >conftest.err
4210 rm -f conftest.er1
4211 cat conftest.err >&5
4212 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4213 (exit $ac_status); } && {
4214 test -z "$ac_c_werror_flag" ||
4215 test ! -s conftest.err
4216 } && test -s conftest$ac_exeext &&
4217 $as_test_x conftest$ac_exeext; then
4218 emacs_cv_sunpro_c=yes
4219 else
4220 echo "$as_me: failed program was:" >&5
4221 sed 's/^/| /' conftest.$ac_ext >&5
4222
4223 emacs_cv_sunpro_c=no
4224 fi
4225
4226 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4227 conftest$ac_exeext conftest.$ac_ext
4228 fi
4229
4230 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4231 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4232
4233 if test x"$emacs_cv_sunpro_c" = xyes; then
4234 NON_GNU_CPP="$CC -E -Xs"
4235 fi
4236 fi
4237
4238 #### Some systems specify a CPP to use unless we are using GCC.
4239 #### Now that we know whether we are using GCC, we can decide whether
4240 #### to use that one.
4241 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4242 then
4243 CPP="$NON_GNU_CPP"
4244 fi
4245
4246 #### Some systems specify a CC to use unless we are using GCC.
4247 #### Now that we know whether we are using GCC, we can decide whether
4248 #### to use that one.
4249 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4250 test x$cc_specified != xyes
4251 then
4252 CC="$NON_GNU_CC"
4253 fi
4254
4255 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4256 then
4257 CC="$CC $GCC_TEST_OPTIONS"
4258 fi
4259
4260 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4261 then
4262 CC="$CC $NON_GCC_TEST_OPTIONS"
4263 fi
4264
4265 ac_ext=c
4266 ac_cpp='$CPP $CPPFLAGS'
4267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4270 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4271 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4272 # On Suns, sometimes $CPP names a directory.
4273 if test -n "$CPP" && test -d "$CPP"; then
4274 CPP=
4275 fi
4276 if test -z "$CPP"; then
4277 if test "${ac_cv_prog_CPP+set}" = set; then
4278 echo $ECHO_N "(cached) $ECHO_C" >&6
4279 else
4280 # Double quotes because CPP needs to be expanded
4281 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4282 do
4283 ac_preproc_ok=false
4284 for ac_c_preproc_warn_flag in '' yes
4285 do
4286 # Use a header file that comes with gcc, so configuring glibc
4287 # with a fresh cross-compiler works.
4288 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4289 # <limits.h> exists even on freestanding compilers.
4290 # On the NeXT, cc -E runs the code through the compiler's parser,
4291 # not just through cpp. "Syntax error" is here to catch this case.
4292 cat >conftest.$ac_ext <<_ACEOF
4293 /* confdefs.h. */
4294 _ACEOF
4295 cat confdefs.h >>conftest.$ac_ext
4296 cat >>conftest.$ac_ext <<_ACEOF
4297 /* end confdefs.h. */
4298 #ifdef __STDC__
4299 # include <limits.h>
4300 #else
4301 # include <assert.h>
4302 #endif
4303 Syntax error
4304 _ACEOF
4305 if { (ac_try="$ac_cpp conftest.$ac_ext"
4306 case "(($ac_try" in
4307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4308 *) ac_try_echo=$ac_try;;
4309 esac
4310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4311 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4312 ac_status=$?
4313 grep -v '^ *+' conftest.er1 >conftest.err
4314 rm -f conftest.er1
4315 cat conftest.err >&5
4316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4317 (exit $ac_status); } >/dev/null && {
4318 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4319 test ! -s conftest.err
4320 }; then
4321 :
4322 else
4323 echo "$as_me: failed program was:" >&5
4324 sed 's/^/| /' conftest.$ac_ext >&5
4325
4326 # Broken: fails on valid input.
4327 continue
4328 fi
4329
4330 rm -f conftest.err conftest.$ac_ext
4331
4332 # OK, works on sane cases. Now check whether nonexistent headers
4333 # can be detected and how.
4334 cat >conftest.$ac_ext <<_ACEOF
4335 /* confdefs.h. */
4336 _ACEOF
4337 cat confdefs.h >>conftest.$ac_ext
4338 cat >>conftest.$ac_ext <<_ACEOF
4339 /* end confdefs.h. */
4340 #include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4359 continue
4360 else
4361 echo "$as_me: failed program was:" >&5
4362 sed 's/^/| /' conftest.$ac_ext >&5
4363
4364 # Passes both tests.
4365 ac_preproc_ok=:
4366 break
4367 fi
4368
4369 rm -f conftest.err conftest.$ac_ext
4370
4371 done
4372 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4373 rm -f conftest.err conftest.$ac_ext
4374 if $ac_preproc_ok; then
4375 break
4376 fi
4377
4378 done
4379 ac_cv_prog_CPP=$CPP
4380
4381 fi
4382 CPP=$ac_cv_prog_CPP
4383 else
4384 ac_cv_prog_CPP=$CPP
4385 fi
4386 { echo "$as_me:$LINENO: result: $CPP" >&5
4387 echo "${ECHO_T}$CPP" >&6; }
4388 ac_preproc_ok=false
4389 for ac_c_preproc_warn_flag in '' yes
4390 do
4391 # Use a header file that comes with gcc, so configuring glibc
4392 # with a fresh cross-compiler works.
4393 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4394 # <limits.h> exists even on freestanding compilers.
4395 # On the NeXT, cc -E runs the code through the compiler's parser,
4396 # not just through cpp. "Syntax error" is here to catch this case.
4397 cat >conftest.$ac_ext <<_ACEOF
4398 /* confdefs.h. */
4399 _ACEOF
4400 cat confdefs.h >>conftest.$ac_ext
4401 cat >>conftest.$ac_ext <<_ACEOF
4402 /* end confdefs.h. */
4403 #ifdef __STDC__
4404 # include <limits.h>
4405 #else
4406 # include <assert.h>
4407 #endif
4408 Syntax error
4409 _ACEOF
4410 if { (ac_try="$ac_cpp conftest.$ac_ext"
4411 case "(($ac_try" in
4412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4413 *) ac_try_echo=$ac_try;;
4414 esac
4415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4416 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4417 ac_status=$?
4418 grep -v '^ *+' conftest.er1 >conftest.err
4419 rm -f conftest.er1
4420 cat conftest.err >&5
4421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4422 (exit $ac_status); } >/dev/null && {
4423 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4424 test ! -s conftest.err
4425 }; then
4426 :
4427 else
4428 echo "$as_me: failed program was:" >&5
4429 sed 's/^/| /' conftest.$ac_ext >&5
4430
4431 # Broken: fails on valid input.
4432 continue
4433 fi
4434
4435 rm -f conftest.err conftest.$ac_ext
4436
4437 # OK, works on sane cases. Now check whether nonexistent headers
4438 # can be detected and how.
4439 cat >conftest.$ac_ext <<_ACEOF
4440 /* confdefs.h. */
4441 _ACEOF
4442 cat confdefs.h >>conftest.$ac_ext
4443 cat >>conftest.$ac_ext <<_ACEOF
4444 /* end confdefs.h. */
4445 #include <ac_nonexistent.h>
4446 _ACEOF
4447 if { (ac_try="$ac_cpp conftest.$ac_ext"
4448 case "(($ac_try" in
4449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4450 *) ac_try_echo=$ac_try;;
4451 esac
4452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4453 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4454 ac_status=$?
4455 grep -v '^ *+' conftest.er1 >conftest.err
4456 rm -f conftest.er1
4457 cat conftest.err >&5
4458 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4459 (exit $ac_status); } >/dev/null && {
4460 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4461 test ! -s conftest.err
4462 }; then
4463 # Broken: success on invalid input.
4464 continue
4465 else
4466 echo "$as_me: failed program was:" >&5
4467 sed 's/^/| /' conftest.$ac_ext >&5
4468
4469 # Passes both tests.
4470 ac_preproc_ok=:
4471 break
4472 fi
4473
4474 rm -f conftest.err conftest.$ac_ext
4475
4476 done
4477 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4478 rm -f conftest.err conftest.$ac_ext
4479 if $ac_preproc_ok; then
4480 :
4481 else
4482 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4483 See \`config.log' for more details." >&5
4484 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4485 See \`config.log' for more details." >&2;}
4486 { (exit 1); exit 1; }; }
4487 fi
4488
4489 ac_ext=c
4490 ac_cpp='$CPP $CPPFLAGS'
4491 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4492 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4493 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4494
4495
4496 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4497 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4498 if test "${ac_cv_path_GREP+set}" = set; then
4499 echo $ECHO_N "(cached) $ECHO_C" >&6
4500 else
4501 # Extract the first word of "grep ggrep" to use in msg output
4502 if test -z "$GREP"; then
4503 set dummy grep ggrep; ac_prog_name=$2
4504 if test "${ac_cv_path_GREP+set}" = set; then
4505 echo $ECHO_N "(cached) $ECHO_C" >&6
4506 else
4507 ac_path_GREP_found=false
4508 # Loop through the user's path and test for each of PROGNAME-LIST
4509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4510 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4511 do
4512 IFS=$as_save_IFS
4513 test -z "$as_dir" && as_dir=.
4514 for ac_prog in grep ggrep; do
4515 for ac_exec_ext in '' $ac_executable_extensions; do
4516 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4517 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4518 # Check for GNU ac_path_GREP and select it if it is found.
4519 # Check for GNU $ac_path_GREP
4520 case `"$ac_path_GREP" --version 2>&1` in
4521 *GNU*)
4522 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4523 *)
4524 ac_count=0
4525 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4526 while :
4527 do
4528 cat "conftest.in" "conftest.in" >"conftest.tmp"
4529 mv "conftest.tmp" "conftest.in"
4530 cp "conftest.in" "conftest.nl"
4531 echo 'GREP' >> "conftest.nl"
4532 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4533 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4534 ac_count=`expr $ac_count + 1`
4535 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4536 # Best one so far, save it but keep looking for a better one
4537 ac_cv_path_GREP="$ac_path_GREP"
4538 ac_path_GREP_max=$ac_count
4539 fi
4540 # 10*(2^10) chars as input seems more than enough
4541 test $ac_count -gt 10 && break
4542 done
4543 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4544 esac
4545
4546
4547 $ac_path_GREP_found && break 3
4548 done
4549 done
4550
4551 done
4552 IFS=$as_save_IFS
4553
4554
4555 fi
4556
4557 GREP="$ac_cv_path_GREP"
4558 if test -z "$GREP"; then
4559 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4560 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4561 { (exit 1); exit 1; }; }
4562 fi
4563
4564 else
4565 ac_cv_path_GREP=$GREP
4566 fi
4567
4568
4569 fi
4570 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4571 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4572 GREP="$ac_cv_path_GREP"
4573
4574
4575 { echo "$as_me:$LINENO: checking for egrep" >&5
4576 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4577 if test "${ac_cv_path_EGREP+set}" = set; then
4578 echo $ECHO_N "(cached) $ECHO_C" >&6
4579 else
4580 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4581 then ac_cv_path_EGREP="$GREP -E"
4582 else
4583 # Extract the first word of "egrep" to use in msg output
4584 if test -z "$EGREP"; then
4585 set dummy egrep; ac_prog_name=$2
4586 if test "${ac_cv_path_EGREP+set}" = set; then
4587 echo $ECHO_N "(cached) $ECHO_C" >&6
4588 else
4589 ac_path_EGREP_found=false
4590 # Loop through the user's path and test for each of PROGNAME-LIST
4591 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4592 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4593 do
4594 IFS=$as_save_IFS
4595 test -z "$as_dir" && as_dir=.
4596 for ac_prog in egrep; do
4597 for ac_exec_ext in '' $ac_executable_extensions; do
4598 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4599 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4600 # Check for GNU ac_path_EGREP and select it if it is found.
4601 # Check for GNU $ac_path_EGREP
4602 case `"$ac_path_EGREP" --version 2>&1` in
4603 *GNU*)
4604 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4605 *)
4606 ac_count=0
4607 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4608 while :
4609 do
4610 cat "conftest.in" "conftest.in" >"conftest.tmp"
4611 mv "conftest.tmp" "conftest.in"
4612 cp "conftest.in" "conftest.nl"
4613 echo 'EGREP' >> "conftest.nl"
4614 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4615 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4616 ac_count=`expr $ac_count + 1`
4617 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4618 # Best one so far, save it but keep looking for a better one
4619 ac_cv_path_EGREP="$ac_path_EGREP"
4620 ac_path_EGREP_max=$ac_count
4621 fi
4622 # 10*(2^10) chars as input seems more than enough
4623 test $ac_count -gt 10 && break
4624 done
4625 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4626 esac
4627
4628
4629 $ac_path_EGREP_found && break 3
4630 done
4631 done
4632
4633 done
4634 IFS=$as_save_IFS
4635
4636
4637 fi
4638
4639 EGREP="$ac_cv_path_EGREP"
4640 if test -z "$EGREP"; then
4641 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4642 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4643 { (exit 1); exit 1; }; }
4644 fi
4645
4646 else
4647 ac_cv_path_EGREP=$EGREP
4648 fi
4649
4650
4651 fi
4652 fi
4653 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4654 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4655 EGREP="$ac_cv_path_EGREP"
4656
4657
4658
4659 { echo "$as_me:$LINENO: checking for AIX" >&5
4660 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4661 cat >conftest.$ac_ext <<_ACEOF
4662 /* confdefs.h. */
4663 _ACEOF
4664 cat confdefs.h >>conftest.$ac_ext
4665 cat >>conftest.$ac_ext <<_ACEOF
4666 /* end confdefs.h. */
4667 #ifdef _AIX
4668 yes
4669 #endif
4670
4671 _ACEOF
4672 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4673 $EGREP "yes" >/dev/null 2>&1; then
4674 { echo "$as_me:$LINENO: result: yes" >&5
4675 echo "${ECHO_T}yes" >&6; }
4676 cat >>confdefs.h <<\_ACEOF
4677 #define _ALL_SOURCE 1
4678 _ACEOF
4679
4680 else
4681 { echo "$as_me:$LINENO: result: no" >&5
4682 echo "${ECHO_T}no" >&6; }
4683 fi
4684 rm -f conftest*
4685
4686
4687
4688 cat >>confdefs.h <<\_ACEOF
4689 #define _GNU_SOURCE 1
4690 _ACEOF
4691
4692
4693
4694 ### Use -Wno-pointer-sign if the compiler supports it
4695 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4696 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4697 SAVE_CFLAGS="$CFLAGS"
4698 CFLAGS="$CFLAGS -Wno-pointer-sign"
4699 cat >conftest.$ac_ext <<_ACEOF
4700 /* confdefs.h. */
4701 _ACEOF
4702 cat confdefs.h >>conftest.$ac_ext
4703 cat >>conftest.$ac_ext <<_ACEOF
4704 /* end confdefs.h. */
4705
4706 int
4707 main ()
4708 {
4709
4710 ;
4711 return 0;
4712 }
4713 _ACEOF
4714 rm -f conftest.$ac_objext
4715 if { (ac_try="$ac_compile"
4716 case "(($ac_try" in
4717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4718 *) ac_try_echo=$ac_try;;
4719 esac
4720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4721 (eval "$ac_compile") 2>conftest.er1
4722 ac_status=$?
4723 grep -v '^ *+' conftest.er1 >conftest.err
4724 rm -f conftest.er1
4725 cat conftest.err >&5
4726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4727 (exit $ac_status); } && {
4728 test -z "$ac_c_werror_flag" ||
4729 test ! -s conftest.err
4730 } && test -s conftest.$ac_objext; then
4731 has_option=yes
4732 else
4733 echo "$as_me: failed program was:" >&5
4734 sed 's/^/| /' conftest.$ac_ext >&5
4735
4736 has_option=no
4737 fi
4738
4739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4740 if test $has_option = yes; then
4741 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4742 fi
4743 { echo "$as_me:$LINENO: result: $has_option" >&5
4744 echo "${ECHO_T}$has_option" >&6; }
4745 CFLAGS="$SAVE_CFLAGS"
4746 unset has_option
4747 unset SAVE_CFLAGS
4748
4749 #### Some other nice autoconf tests.
4750
4751 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4752 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4753 LN_S=$as_ln_s
4754 if test "$LN_S" = "ln -s"; then
4755 { echo "$as_me:$LINENO: result: yes" >&5
4756 echo "${ECHO_T}yes" >&6; }
4757 else
4758 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4759 echo "${ECHO_T}no, using $LN_S" >&6; }
4760 fi
4761
4762 ac_ext=c
4763 ac_cpp='$CPP $CPPFLAGS'
4764 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4765 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4766 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4767 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4768 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4769 # On Suns, sometimes $CPP names a directory.
4770 if test -n "$CPP" && test -d "$CPP"; then
4771 CPP=
4772 fi
4773 if test -z "$CPP"; then
4774 if test "${ac_cv_prog_CPP+set}" = set; then
4775 echo $ECHO_N "(cached) $ECHO_C" >&6
4776 else
4777 # Double quotes because CPP needs to be expanded
4778 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4779 do
4780 ac_preproc_ok=false
4781 for ac_c_preproc_warn_flag in '' yes
4782 do
4783 # Use a header file that comes with gcc, so configuring glibc
4784 # with a fresh cross-compiler works.
4785 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4786 # <limits.h> exists even on freestanding compilers.
4787 # On the NeXT, cc -E runs the code through the compiler's parser,
4788 # not just through cpp. "Syntax error" is here to catch this case.
4789 cat >conftest.$ac_ext <<_ACEOF
4790 /* confdefs.h. */
4791 _ACEOF
4792 cat confdefs.h >>conftest.$ac_ext
4793 cat >>conftest.$ac_ext <<_ACEOF
4794 /* end confdefs.h. */
4795 #ifdef __STDC__
4796 # include <limits.h>
4797 #else
4798 # include <assert.h>
4799 #endif
4800 Syntax error
4801 _ACEOF
4802 if { (ac_try="$ac_cpp conftest.$ac_ext"
4803 case "(($ac_try" in
4804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4805 *) ac_try_echo=$ac_try;;
4806 esac
4807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4809 ac_status=$?
4810 grep -v '^ *+' conftest.er1 >conftest.err
4811 rm -f conftest.er1
4812 cat conftest.err >&5
4813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4814 (exit $ac_status); } >/dev/null && {
4815 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4816 test ! -s conftest.err
4817 }; then
4818 :
4819 else
4820 echo "$as_me: failed program was:" >&5
4821 sed 's/^/| /' conftest.$ac_ext >&5
4822
4823 # Broken: fails on valid input.
4824 continue
4825 fi
4826
4827 rm -f conftest.err conftest.$ac_ext
4828
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat >conftest.$ac_ext <<_ACEOF
4832 /* confdefs.h. */
4833 _ACEOF
4834 cat confdefs.h >>conftest.$ac_ext
4835 cat >>conftest.$ac_ext <<_ACEOF
4836 /* end confdefs.h. */
4837 #include <ac_nonexistent.h>
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 # Broken: success on invalid input.
4856 continue
4857 else
4858 echo "$as_me: failed program was:" >&5
4859 sed 's/^/| /' conftest.$ac_ext >&5
4860
4861 # Passes both tests.
4862 ac_preproc_ok=:
4863 break
4864 fi
4865
4866 rm -f conftest.err conftest.$ac_ext
4867
4868 done
4869 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4870 rm -f conftest.err conftest.$ac_ext
4871 if $ac_preproc_ok; then
4872 break
4873 fi
4874
4875 done
4876 ac_cv_prog_CPP=$CPP
4877
4878 fi
4879 CPP=$ac_cv_prog_CPP
4880 else
4881 ac_cv_prog_CPP=$CPP
4882 fi
4883 { echo "$as_me:$LINENO: result: $CPP" >&5
4884 echo "${ECHO_T}$CPP" >&6; }
4885 ac_preproc_ok=false
4886 for ac_c_preproc_warn_flag in '' yes
4887 do
4888 # Use a header file that comes with gcc, so configuring glibc
4889 # with a fresh cross-compiler works.
4890 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4891 # <limits.h> exists even on freestanding compilers.
4892 # On the NeXT, cc -E runs the code through the compiler's parser,
4893 # not just through cpp. "Syntax error" is here to catch this case.
4894 cat >conftest.$ac_ext <<_ACEOF
4895 /* confdefs.h. */
4896 _ACEOF
4897 cat confdefs.h >>conftest.$ac_ext
4898 cat >>conftest.$ac_ext <<_ACEOF
4899 /* end confdefs.h. */
4900 #ifdef __STDC__
4901 # include <limits.h>
4902 #else
4903 # include <assert.h>
4904 #endif
4905 Syntax error
4906 _ACEOF
4907 if { (ac_try="$ac_cpp conftest.$ac_ext"
4908 case "(($ac_try" in
4909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4910 *) ac_try_echo=$ac_try;;
4911 esac
4912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4913 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4914 ac_status=$?
4915 grep -v '^ *+' conftest.er1 >conftest.err
4916 rm -f conftest.er1
4917 cat conftest.err >&5
4918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4919 (exit $ac_status); } >/dev/null && {
4920 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4921 test ! -s conftest.err
4922 }; then
4923 :
4924 else
4925 echo "$as_me: failed program was:" >&5
4926 sed 's/^/| /' conftest.$ac_ext >&5
4927
4928 # Broken: fails on valid input.
4929 continue
4930 fi
4931
4932 rm -f conftest.err conftest.$ac_ext
4933
4934 # OK, works on sane cases. Now check whether nonexistent headers
4935 # can be detected and how.
4936 cat >conftest.$ac_ext <<_ACEOF
4937 /* confdefs.h. */
4938 _ACEOF
4939 cat confdefs.h >>conftest.$ac_ext
4940 cat >>conftest.$ac_ext <<_ACEOF
4941 /* end confdefs.h. */
4942 #include <ac_nonexistent.h>
4943 _ACEOF
4944 if { (ac_try="$ac_cpp conftest.$ac_ext"
4945 case "(($ac_try" in
4946 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4947 *) ac_try_echo=$ac_try;;
4948 esac
4949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4950 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4951 ac_status=$?
4952 grep -v '^ *+' conftest.er1 >conftest.err
4953 rm -f conftest.er1
4954 cat conftest.err >&5
4955 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4956 (exit $ac_status); } >/dev/null && {
4957 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4958 test ! -s conftest.err
4959 }; then
4960 # Broken: success on invalid input.
4961 continue
4962 else
4963 echo "$as_me: failed program was:" >&5
4964 sed 's/^/| /' conftest.$ac_ext >&5
4965
4966 # Passes both tests.
4967 ac_preproc_ok=:
4968 break
4969 fi
4970
4971 rm -f conftest.err conftest.$ac_ext
4972
4973 done
4974 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4975 rm -f conftest.err conftest.$ac_ext
4976 if $ac_preproc_ok; then
4977 :
4978 else
4979 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4980 See \`config.log' for more details." >&5
4981 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4982 See \`config.log' for more details." >&2;}
4983 { (exit 1); exit 1; }; }
4984 fi
4985
4986 ac_ext=c
4987 ac_cpp='$CPP $CPPFLAGS'
4988 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4989 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4990 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4991
4992 # Find a good install program. We prefer a C program (faster),
4993 # so one script is as good as another. But avoid the broken or
4994 # incompatible versions:
4995 # SysV /etc/install, /usr/sbin/install
4996 # SunOS /usr/etc/install
4997 # IRIX /sbin/install
4998 # AIX /bin/install
4999 # AmigaOS /C/install, which installs bootblocks on floppy discs
5000 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5001 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5002 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5003 # OS/2's system install, which has a completely different semantic
5004 # ./install, which can be erroneously created by make from ./install.sh.
5005 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5006 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5007 if test -z "$INSTALL"; then
5008 if test "${ac_cv_path_install+set}" = set; then
5009 echo $ECHO_N "(cached) $ECHO_C" >&6
5010 else
5011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012 for as_dir in $PATH
5013 do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 # Account for people who put trailing slashes in PATH elements.
5017 case $as_dir/ in
5018 ./ | .// | /cC/* | \
5019 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5020 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5021 /usr/ucb/* ) ;;
5022 *)
5023 # OSF1 and SCO ODT 3.0 have their own names for install.
5024 # Don't use installbsd from OSF since it installs stuff as root
5025 # by default.
5026 for ac_prog in ginstall scoinst install; do
5027 for ac_exec_ext in '' $ac_executable_extensions; do
5028 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5029 if test $ac_prog = install &&
5030 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5031 # AIX install. It has an incompatible calling convention.
5032 :
5033 elif test $ac_prog = install &&
5034 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5035 # program-specific install script used by HP pwplus--don't use.
5036 :
5037 else
5038 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5039 break 3
5040 fi
5041 fi
5042 done
5043 done
5044 ;;
5045 esac
5046 done
5047 IFS=$as_save_IFS
5048
5049
5050 fi
5051 if test "${ac_cv_path_install+set}" = set; then
5052 INSTALL=$ac_cv_path_install
5053 else
5054 # As a last resort, use the slow shell script. Don't cache a
5055 # value for INSTALL within a source directory, because that will
5056 # break other packages using the cache if that directory is
5057 # removed, or if the value is a relative name.
5058 INSTALL=$ac_install_sh
5059 fi
5060 fi
5061 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5062 echo "${ECHO_T}$INSTALL" >&6; }
5063
5064 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5065 # It thinks the first close brace ends the variable substitution.
5066 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5067
5068 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5069
5070 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5071
5072 if test "x$RANLIB" = x; then
5073 if test -n "$ac_tool_prefix"; then
5074 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5075 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5076 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5077 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5078 if test "${ac_cv_prog_RANLIB+set}" = set; then
5079 echo $ECHO_N "(cached) $ECHO_C" >&6
5080 else
5081 if test -n "$RANLIB"; then
5082 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5083 else
5084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5085 for as_dir in $PATH
5086 do
5087 IFS=$as_save_IFS
5088 test -z "$as_dir" && as_dir=.
5089 for ac_exec_ext in '' $ac_executable_extensions; do
5090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5091 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5092 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5093 break 2
5094 fi
5095 done
5096 done
5097 IFS=$as_save_IFS
5098
5099 fi
5100 fi
5101 RANLIB=$ac_cv_prog_RANLIB
5102 if test -n "$RANLIB"; then
5103 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5104 echo "${ECHO_T}$RANLIB" >&6; }
5105 else
5106 { echo "$as_me:$LINENO: result: no" >&5
5107 echo "${ECHO_T}no" >&6; }
5108 fi
5109
5110
5111 fi
5112 if test -z "$ac_cv_prog_RANLIB"; then
5113 ac_ct_RANLIB=$RANLIB
5114 # Extract the first word of "ranlib", so it can be a program name with args.
5115 set dummy ranlib; ac_word=$2
5116 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5117 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5118 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5119 echo $ECHO_N "(cached) $ECHO_C" >&6
5120 else
5121 if test -n "$ac_ct_RANLIB"; then
5122 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5123 else
5124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5125 for as_dir in $PATH
5126 do
5127 IFS=$as_save_IFS
5128 test -z "$as_dir" && as_dir=.
5129 for ac_exec_ext in '' $ac_executable_extensions; do
5130 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5131 ac_cv_prog_ac_ct_RANLIB="ranlib"
5132 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5133 break 2
5134 fi
5135 done
5136 done
5137 IFS=$as_save_IFS
5138
5139 fi
5140 fi
5141 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5142 if test -n "$ac_ct_RANLIB"; then
5143 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5144 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5145 else
5146 { echo "$as_me:$LINENO: result: no" >&5
5147 echo "${ECHO_T}no" >&6; }
5148 fi
5149
5150 if test "x$ac_ct_RANLIB" = x; then
5151 RANLIB=":"
5152 else
5153 case $cross_compiling:$ac_tool_warned in
5154 yes:)
5155 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5156 whose name does not start with the host triplet. If you think this
5157 configuration is useful to you, please write to autoconf@gnu.org." >&5
5158 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5159 whose name does not start with the host triplet. If you think this
5160 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5161 ac_tool_warned=yes ;;
5162 esac
5163 RANLIB=$ac_ct_RANLIB
5164 fi
5165 else
5166 RANLIB="$ac_cv_prog_RANLIB"
5167 fi
5168
5169 fi
5170 # Extract the first word of "install-info", so it can be a program name with args.
5171 set dummy install-info; ac_word=$2
5172 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5173 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5174 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5175 echo $ECHO_N "(cached) $ECHO_C" >&6
5176 else
5177 case $INSTALL_INFO in
5178 [\\/]* | ?:[\\/]*)
5179 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5180 ;;
5181 *)
5182 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5183 for as_dir in $PATH
5184 do
5185 IFS=$as_save_IFS
5186 test -z "$as_dir" && as_dir=.
5187 for ac_exec_ext in '' $ac_executable_extensions; do
5188 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5189 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5190 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5191 break 2
5192 fi
5193 done
5194 done
5195 IFS=$as_save_IFS
5196
5197 ;;
5198 esac
5199 fi
5200 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5201 if test -n "$INSTALL_INFO"; then
5202 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5203 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5204 else
5205 { echo "$as_me:$LINENO: result: no" >&5
5206 echo "${ECHO_T}no" >&6; }
5207 fi
5208
5209
5210 # Extract the first word of "install-info", so it can be a program name with args.
5211 set dummy install-info; ac_word=$2
5212 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5213 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5214 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5215 echo $ECHO_N "(cached) $ECHO_C" >&6
5216 else
5217 case $INSTALL_INFO in
5218 [\\/]* | ?:[\\/]*)
5219 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5220 ;;
5221 *)
5222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5223 for as_dir in /usr/sbin
5224 do
5225 IFS=$as_save_IFS
5226 test -z "$as_dir" && as_dir=.
5227 for ac_exec_ext in '' $ac_executable_extensions; do
5228 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5229 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5230 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5231 break 2
5232 fi
5233 done
5234 done
5235 IFS=$as_save_IFS
5236
5237 ;;
5238 esac
5239 fi
5240 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5241 if test -n "$INSTALL_INFO"; then
5242 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5243 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5244 else
5245 { echo "$as_me:$LINENO: result: no" >&5
5246 echo "${ECHO_T}no" >&6; }
5247 fi
5248
5249
5250 # Extract the first word of "install-info", so it can be a program name with args.
5251 set dummy install-info; ac_word=$2
5252 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5253 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5254 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5255 echo $ECHO_N "(cached) $ECHO_C" >&6
5256 else
5257 case $INSTALL_INFO in
5258 [\\/]* | ?:[\\/]*)
5259 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5260 ;;
5261 *)
5262 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5263 for as_dir in /sbin
5264 do
5265 IFS=$as_save_IFS
5266 test -z "$as_dir" && as_dir=.
5267 for ac_exec_ext in '' $ac_executable_extensions; do
5268 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5269 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5270 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5271 break 2
5272 fi
5273 done
5274 done
5275 IFS=$as_save_IFS
5276
5277 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5278 ;;
5279 esac
5280 fi
5281 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5282 if test -n "$INSTALL_INFO"; then
5283 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5284 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5285 else
5286 { echo "$as_me:$LINENO: result: no" >&5
5287 echo "${ECHO_T}no" >&6; }
5288 fi
5289
5290
5291 # Extract the first word of "gzip", so it can be a program name with args.
5292 set dummy gzip; ac_word=$2
5293 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5294 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5295 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5296 echo $ECHO_N "(cached) $ECHO_C" >&6
5297 else
5298 case $GZIP_PROG in
5299 [\\/]* | ?:[\\/]*)
5300 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5301 ;;
5302 *)
5303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5304 for as_dir in $PATH
5305 do
5306 IFS=$as_save_IFS
5307 test -z "$as_dir" && as_dir=.
5308 for ac_exec_ext in '' $ac_executable_extensions; do
5309 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5310 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5311 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5312 break 2
5313 fi
5314 done
5315 done
5316 IFS=$as_save_IFS
5317
5318 ;;
5319 esac
5320 fi
5321 GZIP_PROG=$ac_cv_path_GZIP_PROG
5322 if test -n "$GZIP_PROG"; then
5323 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5324 echo "${ECHO_T}$GZIP_PROG" >&6; }
5325 else
5326 { echo "$as_me:$LINENO: result: no" >&5
5327 echo "${ECHO_T}no" >&6; }
5328 fi
5329
5330
5331
5332
5333 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5334 then
5335 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5336 fi
5337
5338 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5339 then
5340 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5341 fi
5342
5343
5344 late_LDFLAGS=$LDFLAGS
5345 if test "$GCC" = yes; then
5346 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5347 else
5348 LDFLAGS="$LDFLAGS -znocombreloc"
5349 fi
5350
5351 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5352 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5353 cat >conftest.$ac_ext <<_ACEOF
5354 main(){return 0;}
5355 _ACEOF
5356 rm -f conftest.$ac_objext conftest$ac_exeext
5357 if { (ac_try="$ac_link"
5358 case "(($ac_try" in
5359 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5360 *) ac_try_echo=$ac_try;;
5361 esac
5362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5363 (eval "$ac_link") 2>conftest.er1
5364 ac_status=$?
5365 grep -v '^ *+' conftest.er1 >conftest.err
5366 rm -f conftest.er1
5367 cat conftest.err >&5
5368 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5369 (exit $ac_status); } && {
5370 test -z "$ac_c_werror_flag" ||
5371 test ! -s conftest.err
5372 } && test -s conftest$ac_exeext &&
5373 $as_test_x conftest$ac_exeext; then
5374 { echo "$as_me:$LINENO: result: yes" >&5
5375 echo "${ECHO_T}yes" >&6; }
5376 else
5377 echo "$as_me: failed program was:" >&5
5378 sed 's/^/| /' conftest.$ac_ext >&5
5379
5380 LDFLAGS=$late_LDFLAGS
5381 { echo "$as_me:$LINENO: result: no" >&5
5382 echo "${ECHO_T}no" >&6; }
5383 fi
5384
5385 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5386 conftest$ac_exeext conftest.$ac_ext
5387
5388 #### Extract some information from the operating system and machine files.
5389
5390 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5391 - which libraries the lib-src programs will want, and
5392 - whether the GNU malloc routines are usable..." >&5
5393 echo "$as_me: checking the machine- and system-dependent files to find out
5394 - which libraries the lib-src programs will want, and
5395 - whether the GNU malloc routines are usable..." >&6;}
5396
5397 ### First figure out CFLAGS (which we use for running the compiler here)
5398 ### and REAL_CFLAGS (which we use for real compilation).
5399 ### The two are the same except on a few systems, where they are made
5400 ### different to work around various lossages. For example,
5401 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5402 ### as implying static linking.
5403
5404 ### If the CFLAGS env var is specified, we use that value
5405 ### instead of the default.
5406
5407 ### It's not important that this name contain the PID; you can't run
5408 ### two configures in the same directory and have anything work
5409 ### anyway.
5410 tempcname="conftest.c"
5411
5412 echo '
5413 #include "'${srcdir}'/src/'${opsysfile}'"
5414 #include "'${srcdir}'/src/'${machfile}'"
5415 #ifndef LIBS_MACHINE
5416 #define LIBS_MACHINE
5417 #endif
5418 #ifndef LIBS_SYSTEM
5419 #define LIBS_SYSTEM
5420 #endif
5421 #ifndef C_SWITCH_SYSTEM
5422 #define C_SWITCH_SYSTEM
5423 #endif
5424 #ifndef C_SWITCH_MACHINE
5425 #define C_SWITCH_MACHINE
5426 #endif
5427 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5428 configure___ c_switch_system=C_SWITCH_SYSTEM
5429 configure___ c_switch_machine=C_SWITCH_MACHINE
5430
5431 #ifndef LIB_X11_LIB
5432 #define LIB_X11_LIB -lX11
5433 #endif
5434
5435 #ifndef LIBX11_MACHINE
5436 #define LIBX11_MACHINE
5437 #endif
5438
5439 #ifndef LIBX11_SYSTEM
5440 #define LIBX11_SYSTEM
5441 #endif
5442 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5443
5444 #ifdef UNEXEC
5445 configure___ unexec=UNEXEC
5446 #else
5447 configure___ unexec=unexec.o
5448 #endif
5449
5450 #ifdef SYSTEM_MALLOC
5451 configure___ system_malloc=yes
5452 #else
5453 configure___ system_malloc=no
5454 #endif
5455
5456 #ifdef USE_MMAP_FOR_BUFFERS
5457 configure___ use_mmap_for_buffers=yes
5458 #else
5459 configure___ use_mmap_for_buffers=no
5460 #endif
5461
5462 #ifndef C_DEBUG_SWITCH
5463 #define C_DEBUG_SWITCH -g
5464 #endif
5465
5466 #ifndef C_OPTIMIZE_SWITCH
5467 #ifdef __GNUC__
5468 #define C_OPTIMIZE_SWITCH -O2
5469 #else
5470 #define C_OPTIMIZE_SWITCH -O
5471 #endif
5472 #endif
5473
5474 #ifndef C_WARNINGS_SWITCH
5475 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5476 #endif
5477
5478 #ifndef LD_SWITCH_MACHINE
5479 #define LD_SWITCH_MACHINE
5480 #endif
5481
5482 #ifndef LD_SWITCH_SYSTEM
5483 #define LD_SWITCH_SYSTEM
5484 #endif
5485
5486 #ifndef LD_SWITCH_X_SITE_AUX
5487 #define LD_SWITCH_X_SITE_AUX
5488 #endif
5489
5490 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5491 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5492
5493 #ifdef THIS_IS_CONFIGURE
5494
5495 /* Get the CFLAGS for tests in configure. */
5496 #ifdef __GNUC__
5497 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5498 #else
5499 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5500 #endif
5501
5502 #else /* not THIS_IS_CONFIGURE */
5503
5504 /* Get the CFLAGS for real compilation. */
5505 #ifdef __GNUC__
5506 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5507 #else
5508 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5509 #endif
5510
5511 #endif /* not THIS_IS_CONFIGURE */
5512 ' > ${tempcname}
5513
5514 # The value of CPP is a quoted variable reference, so we need to do this
5515 # to get its actual value...
5516 CPP=`eval "echo $CPP"`
5517 eval `${CPP} -Isrc ${tempcname} \
5518 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5519 if test "x$SPECIFIED_CFLAGS" = x; then
5520 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5521 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5522 else
5523 REAL_CFLAGS="$CFLAGS"
5524 fi
5525 rm ${tempcname}
5526
5527 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5528
5529 ### Make sure subsequent tests use flags consistent with the build flags.
5530
5531 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5532 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5533 else
5534 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5535 fi
5536
5537
5538
5539 # Check whether --enable-largefile was given.
5540 if test "${enable_largefile+set}" = set; then
5541 enableval=$enable_largefile;
5542 fi
5543
5544 if test "$enable_largefile" != no; then
5545
5546 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5547 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5548 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5549 echo $ECHO_N "(cached) $ECHO_C" >&6
5550 else
5551 ac_cv_sys_largefile_CC=no
5552 if test "$GCC" != yes; then
5553 ac_save_CC=$CC
5554 while :; do
5555 # IRIX 6.2 and later do not support large files by default,
5556 # so use the C compiler's -n32 option if that helps.
5557 cat >conftest.$ac_ext <<_ACEOF
5558 /* confdefs.h. */
5559 _ACEOF
5560 cat confdefs.h >>conftest.$ac_ext
5561 cat >>conftest.$ac_ext <<_ACEOF
5562 /* end confdefs.h. */
5563 #include <sys/types.h>
5564 /* Check that off_t can represent 2**63 - 1 correctly.
5565 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5566 since some C++ compilers masquerading as C compilers
5567 incorrectly reject 9223372036854775807. */
5568 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5569 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5570 && LARGE_OFF_T % 2147483647 == 1)
5571 ? 1 : -1];
5572 int
5573 main ()
5574 {
5575
5576 ;
5577 return 0;
5578 }
5579 _ACEOF
5580 rm -f conftest.$ac_objext
5581 if { (ac_try="$ac_compile"
5582 case "(($ac_try" in
5583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5584 *) ac_try_echo=$ac_try;;
5585 esac
5586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5587 (eval "$ac_compile") 2>conftest.er1
5588 ac_status=$?
5589 grep -v '^ *+' conftest.er1 >conftest.err
5590 rm -f conftest.er1
5591 cat conftest.err >&5
5592 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5593 (exit $ac_status); } && {
5594 test -z "$ac_c_werror_flag" ||
5595 test ! -s conftest.err
5596 } && test -s conftest.$ac_objext; then
5597 break
5598 else
5599 echo "$as_me: failed program was:" >&5
5600 sed 's/^/| /' conftest.$ac_ext >&5
5601
5602
5603 fi
5604
5605 rm -f core conftest.err conftest.$ac_objext
5606 CC="$CC -n32"
5607 rm -f conftest.$ac_objext
5608 if { (ac_try="$ac_compile"
5609 case "(($ac_try" in
5610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5611 *) ac_try_echo=$ac_try;;
5612 esac
5613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5614 (eval "$ac_compile") 2>conftest.er1
5615 ac_status=$?
5616 grep -v '^ *+' conftest.er1 >conftest.err
5617 rm -f conftest.er1
5618 cat conftest.err >&5
5619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5620 (exit $ac_status); } && {
5621 test -z "$ac_c_werror_flag" ||
5622 test ! -s conftest.err
5623 } && test -s conftest.$ac_objext; then
5624 ac_cv_sys_largefile_CC=' -n32'; break
5625 else
5626 echo "$as_me: failed program was:" >&5
5627 sed 's/^/| /' conftest.$ac_ext >&5
5628
5629
5630 fi
5631
5632 rm -f core conftest.err conftest.$ac_objext
5633 break
5634 done
5635 CC=$ac_save_CC
5636 rm -f conftest.$ac_ext
5637 fi
5638 fi
5639 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5640 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5641 if test "$ac_cv_sys_largefile_CC" != no; then
5642 CC=$CC$ac_cv_sys_largefile_CC
5643 fi
5644
5645 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5646 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5647 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5648 echo $ECHO_N "(cached) $ECHO_C" >&6
5649 else
5650 while :; do
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5665 ? 1 : -1];
5666 int
5667 main ()
5668 {
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 ac_cv_sys_file_offset_bits=no; break
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5700 cat >conftest.$ac_ext <<_ACEOF
5701 /* confdefs.h. */
5702 _ACEOF
5703 cat confdefs.h >>conftest.$ac_ext
5704 cat >>conftest.$ac_ext <<_ACEOF
5705 /* end confdefs.h. */
5706 #define _FILE_OFFSET_BITS 64
5707 #include <sys/types.h>
5708 /* Check that off_t can represent 2**63 - 1 correctly.
5709 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5710 since some C++ compilers masquerading as C compilers
5711 incorrectly reject 9223372036854775807. */
5712 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5713 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5714 && LARGE_OFF_T % 2147483647 == 1)
5715 ? 1 : -1];
5716 int
5717 main ()
5718 {
5719
5720 ;
5721 return 0;
5722 }
5723 _ACEOF
5724 rm -f conftest.$ac_objext
5725 if { (ac_try="$ac_compile"
5726 case "(($ac_try" in
5727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5728 *) ac_try_echo=$ac_try;;
5729 esac
5730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5731 (eval "$ac_compile") 2>conftest.er1
5732 ac_status=$?
5733 grep -v '^ *+' conftest.er1 >conftest.err
5734 rm -f conftest.er1
5735 cat conftest.err >&5
5736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5737 (exit $ac_status); } && {
5738 test -z "$ac_c_werror_flag" ||
5739 test ! -s conftest.err
5740 } && test -s conftest.$ac_objext; then
5741 ac_cv_sys_file_offset_bits=64; break
5742 else
5743 echo "$as_me: failed program was:" >&5
5744 sed 's/^/| /' conftest.$ac_ext >&5
5745
5746
5747 fi
5748
5749 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5750 ac_cv_sys_file_offset_bits=unknown
5751 break
5752 done
5753 fi
5754 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5755 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5756 case $ac_cv_sys_file_offset_bits in #(
5757 no | unknown) ;;
5758 *)
5759 cat >>confdefs.h <<_ACEOF
5760 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5761 _ACEOF
5762 ;;
5763 esac
5764 rm -f conftest*
5765 if test $ac_cv_sys_file_offset_bits = unknown; then
5766 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5767 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5768 if test "${ac_cv_sys_large_files+set}" = set; then
5769 echo $ECHO_N "(cached) $ECHO_C" >&6
5770 else
5771 while :; do
5772 cat >conftest.$ac_ext <<_ACEOF
5773 /* confdefs.h. */
5774 _ACEOF
5775 cat confdefs.h >>conftest.$ac_ext
5776 cat >>conftest.$ac_ext <<_ACEOF
5777 /* end confdefs.h. */
5778 #include <sys/types.h>
5779 /* Check that off_t can represent 2**63 - 1 correctly.
5780 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5781 since some C++ compilers masquerading as C compilers
5782 incorrectly reject 9223372036854775807. */
5783 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5784 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5785 && LARGE_OFF_T % 2147483647 == 1)
5786 ? 1 : -1];
5787 int
5788 main ()
5789 {
5790
5791 ;
5792 return 0;
5793 }
5794 _ACEOF
5795 rm -f conftest.$ac_objext
5796 if { (ac_try="$ac_compile"
5797 case "(($ac_try" in
5798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799 *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802 (eval "$ac_compile") 2>conftest.er1
5803 ac_status=$?
5804 grep -v '^ *+' conftest.er1 >conftest.err
5805 rm -f conftest.er1
5806 cat conftest.err >&5
5807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5808 (exit $ac_status); } && {
5809 test -z "$ac_c_werror_flag" ||
5810 test ! -s conftest.err
5811 } && test -s conftest.$ac_objext; then
5812 ac_cv_sys_large_files=no; break
5813 else
5814 echo "$as_me: failed program was:" >&5
5815 sed 's/^/| /' conftest.$ac_ext >&5
5816
5817
5818 fi
5819
5820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5821 cat >conftest.$ac_ext <<_ACEOF
5822 /* confdefs.h. */
5823 _ACEOF
5824 cat confdefs.h >>conftest.$ac_ext
5825 cat >>conftest.$ac_ext <<_ACEOF
5826 /* end confdefs.h. */
5827 #define _LARGE_FILES 1
5828 #include <sys/types.h>
5829 /* Check that off_t can represent 2**63 - 1 correctly.
5830 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5831 since some C++ compilers masquerading as C compilers
5832 incorrectly reject 9223372036854775807. */
5833 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5834 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5835 && LARGE_OFF_T % 2147483647 == 1)
5836 ? 1 : -1];
5837 int
5838 main ()
5839 {
5840
5841 ;
5842 return 0;
5843 }
5844 _ACEOF
5845 rm -f conftest.$ac_objext
5846 if { (ac_try="$ac_compile"
5847 case "(($ac_try" in
5848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5849 *) ac_try_echo=$ac_try;;
5850 esac
5851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5852 (eval "$ac_compile") 2>conftest.er1
5853 ac_status=$?
5854 grep -v '^ *+' conftest.er1 >conftest.err
5855 rm -f conftest.er1
5856 cat conftest.err >&5
5857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5858 (exit $ac_status); } && {
5859 test -z "$ac_c_werror_flag" ||
5860 test ! -s conftest.err
5861 } && test -s conftest.$ac_objext; then
5862 ac_cv_sys_large_files=1; break
5863 else
5864 echo "$as_me: failed program was:" >&5
5865 sed 's/^/| /' conftest.$ac_ext >&5
5866
5867
5868 fi
5869
5870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5871 ac_cv_sys_large_files=unknown
5872 break
5873 done
5874 fi
5875 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5876 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5877 case $ac_cv_sys_large_files in #(
5878 no | unknown) ;;
5879 *)
5880 cat >>confdefs.h <<_ACEOF
5881 #define _LARGE_FILES $ac_cv_sys_large_files
5882 _ACEOF
5883 ;;
5884 esac
5885 rm -f conftest*
5886 fi
5887 fi
5888
5889
5890
5891 ### The standard library on x86-64 GNU/Linux distributions can
5892 ### be located in either /usr/lib64 or /usr/lib.
5893 case "${canonical}" in
5894 x86_64-*-linux-gnu* )
5895 if test -d /usr/lib64; then
5896
5897 cat >>confdefs.h <<\_ACEOF
5898 #define HAVE_X86_64_LIB64_DIR 1
5899 _ACEOF
5900
5901 fi
5902 esac
5903
5904
5905
5906
5907 if test "${with_sound}" != "no"; then
5908 # Sound support for GNU/Linux and the free BSDs.
5909 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5910 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5911 if test "${ac_cv_header_stdc+set}" = set; then
5912 echo $ECHO_N "(cached) $ECHO_C" >&6
5913 else
5914 cat >conftest.$ac_ext <<_ACEOF
5915 /* confdefs.h. */
5916 _ACEOF
5917 cat confdefs.h >>conftest.$ac_ext
5918 cat >>conftest.$ac_ext <<_ACEOF
5919 /* end confdefs.h. */
5920 #include <stdlib.h>
5921 #include <stdarg.h>
5922 #include <string.h>
5923 #include <float.h>
5924
5925 int
5926 main ()
5927 {
5928
5929 ;
5930 return 0;
5931 }
5932 _ACEOF
5933 rm -f conftest.$ac_objext
5934 if { (ac_try="$ac_compile"
5935 case "(($ac_try" in
5936 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5937 *) ac_try_echo=$ac_try;;
5938 esac
5939 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5940 (eval "$ac_compile") 2>conftest.er1
5941 ac_status=$?
5942 grep -v '^ *+' conftest.er1 >conftest.err
5943 rm -f conftest.er1
5944 cat conftest.err >&5
5945 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5946 (exit $ac_status); } && {
5947 test -z "$ac_c_werror_flag" ||
5948 test ! -s conftest.err
5949 } && test -s conftest.$ac_objext; then
5950 ac_cv_header_stdc=yes
5951 else
5952 echo "$as_me: failed program was:" >&5
5953 sed 's/^/| /' conftest.$ac_ext >&5
5954
5955 ac_cv_header_stdc=no
5956 fi
5957
5958 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5959
5960 if test $ac_cv_header_stdc = yes; then
5961 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5962 cat >conftest.$ac_ext <<_ACEOF
5963 /* confdefs.h. */
5964 _ACEOF
5965 cat confdefs.h >>conftest.$ac_ext
5966 cat >>conftest.$ac_ext <<_ACEOF
5967 /* end confdefs.h. */
5968 #include <string.h>
5969
5970 _ACEOF
5971 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5972 $EGREP "memchr" >/dev/null 2>&1; then
5973 :
5974 else
5975 ac_cv_header_stdc=no
5976 fi
5977 rm -f conftest*
5978
5979 fi
5980
5981 if test $ac_cv_header_stdc = yes; then
5982 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5983 cat >conftest.$ac_ext <<_ACEOF
5984 /* confdefs.h. */
5985 _ACEOF
5986 cat confdefs.h >>conftest.$ac_ext
5987 cat >>conftest.$ac_ext <<_ACEOF
5988 /* end confdefs.h. */
5989 #include <stdlib.h>
5990
5991 _ACEOF
5992 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5993 $EGREP "free" >/dev/null 2>&1; then
5994 :
5995 else
5996 ac_cv_header_stdc=no
5997 fi
5998 rm -f conftest*
5999
6000 fi
6001
6002 if test $ac_cv_header_stdc = yes; then
6003 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6004 if test "$cross_compiling" = yes; then
6005 :
6006 else
6007 cat >conftest.$ac_ext <<_ACEOF
6008 /* confdefs.h. */
6009 _ACEOF
6010 cat confdefs.h >>conftest.$ac_ext
6011 cat >>conftest.$ac_ext <<_ACEOF
6012 /* end confdefs.h. */
6013 #include <ctype.h>
6014 #include <stdlib.h>
6015 #if ((' ' & 0x0FF) == 0x020)
6016 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6017 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6018 #else
6019 # define ISLOWER(c) \
6020 (('a' <= (c) && (c) <= 'i') \
6021 || ('j' <= (c) && (c) <= 'r') \
6022 || ('s' <= (c) && (c) <= 'z'))
6023 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6024 #endif
6025
6026 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6027 int
6028 main ()
6029 {
6030 int i;
6031 for (i = 0; i < 256; i++)
6032 if (XOR (islower (i), ISLOWER (i))
6033 || toupper (i) != TOUPPER (i))
6034 return 2;
6035 return 0;
6036 }
6037 _ACEOF
6038 rm -f conftest$ac_exeext
6039 if { (ac_try="$ac_link"
6040 case "(($ac_try" in
6041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6042 *) ac_try_echo=$ac_try;;
6043 esac
6044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6045 (eval "$ac_link") 2>&5
6046 ac_status=$?
6047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6048 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6049 { (case "(($ac_try" in
6050 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6051 *) ac_try_echo=$ac_try;;
6052 esac
6053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6054 (eval "$ac_try") 2>&5
6055 ac_status=$?
6056 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6057 (exit $ac_status); }; }; then
6058 :
6059 else
6060 echo "$as_me: program exited with status $ac_status" >&5
6061 echo "$as_me: failed program was:" >&5
6062 sed 's/^/| /' conftest.$ac_ext >&5
6063
6064 ( exit $ac_status )
6065 ac_cv_header_stdc=no
6066 fi
6067 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6068 fi
6069
6070
6071 fi
6072 fi
6073 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6074 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6075 if test $ac_cv_header_stdc = yes; then
6076
6077 cat >>confdefs.h <<\_ACEOF
6078 #define STDC_HEADERS 1
6079 _ACEOF
6080
6081 fi
6082
6083 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6084
6085
6086
6087
6088
6089
6090
6091
6092
6093 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6094 inttypes.h stdint.h unistd.h
6095 do
6096 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6097 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6098 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6099 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6100 echo $ECHO_N "(cached) $ECHO_C" >&6
6101 else
6102 cat >conftest.$ac_ext <<_ACEOF
6103 /* confdefs.h. */
6104 _ACEOF
6105 cat confdefs.h >>conftest.$ac_ext
6106 cat >>conftest.$ac_ext <<_ACEOF
6107 /* end confdefs.h. */
6108 $ac_includes_default
6109
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 eval "$as_ac_Header=yes"
6130 else
6131 echo "$as_me: failed program was:" >&5
6132 sed 's/^/| /' conftest.$ac_ext >&5
6133
6134 eval "$as_ac_Header=no"
6135 fi
6136
6137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6138 fi
6139 ac_res=`eval echo '${'$as_ac_Header'}'`
6140 { echo "$as_me:$LINENO: result: $ac_res" >&5
6141 echo "${ECHO_T}$ac_res" >&6; }
6142 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6143 cat >>confdefs.h <<_ACEOF
6144 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6145 _ACEOF
6146
6147 fi
6148
6149 done
6150
6151
6152
6153
6154
6155 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6156 do
6157 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6158 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6159 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6160 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6161 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6162 echo $ECHO_N "(cached) $ECHO_C" >&6
6163 fi
6164 ac_res=`eval echo '${'$as_ac_Header'}'`
6165 { echo "$as_me:$LINENO: result: $ac_res" >&5
6166 echo "${ECHO_T}$ac_res" >&6; }
6167 else
6168 # Is the header compilable?
6169 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6170 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6171 cat >conftest.$ac_ext <<_ACEOF
6172 /* confdefs.h. */
6173 _ACEOF
6174 cat confdefs.h >>conftest.$ac_ext
6175 cat >>conftest.$ac_ext <<_ACEOF
6176 /* end confdefs.h. */
6177 $ac_includes_default
6178 #include <$ac_header>
6179 _ACEOF
6180 rm -f conftest.$ac_objext
6181 if { (ac_try="$ac_compile"
6182 case "(($ac_try" in
6183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6184 *) ac_try_echo=$ac_try;;
6185 esac
6186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6187 (eval "$ac_compile") 2>conftest.er1
6188 ac_status=$?
6189 grep -v '^ *+' conftest.er1 >conftest.err
6190 rm -f conftest.er1
6191 cat conftest.err >&5
6192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6193 (exit $ac_status); } && {
6194 test -z "$ac_c_werror_flag" ||
6195 test ! -s conftest.err
6196 } && test -s conftest.$ac_objext; then
6197 ac_header_compiler=yes
6198 else
6199 echo "$as_me: failed program was:" >&5
6200 sed 's/^/| /' conftest.$ac_ext >&5
6201
6202 ac_header_compiler=no
6203 fi
6204
6205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6206 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6207 echo "${ECHO_T}$ac_header_compiler" >&6; }
6208
6209 # Is the header present?
6210 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6211 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6212 cat >conftest.$ac_ext <<_ACEOF
6213 /* confdefs.h. */
6214 _ACEOF
6215 cat confdefs.h >>conftest.$ac_ext
6216 cat >>conftest.$ac_ext <<_ACEOF
6217 /* end confdefs.h. */
6218 #include <$ac_header>
6219 _ACEOF
6220 if { (ac_try="$ac_cpp conftest.$ac_ext"
6221 case "(($ac_try" in
6222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6223 *) ac_try_echo=$ac_try;;
6224 esac
6225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6226 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6227 ac_status=$?
6228 grep -v '^ *+' conftest.er1 >conftest.err
6229 rm -f conftest.er1
6230 cat conftest.err >&5
6231 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6232 (exit $ac_status); } >/dev/null && {
6233 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6234 test ! -s conftest.err
6235 }; then
6236 ac_header_preproc=yes
6237 else
6238 echo "$as_me: failed program was:" >&5
6239 sed 's/^/| /' conftest.$ac_ext >&5
6240
6241 ac_header_preproc=no
6242 fi
6243
6244 rm -f conftest.err conftest.$ac_ext
6245 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6246 echo "${ECHO_T}$ac_header_preproc" >&6; }
6247
6248 # So? What about this header?
6249 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6250 yes:no: )
6251 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6252 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6253 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6254 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6255 ac_header_preproc=yes
6256 ;;
6257 no:yes:* )
6258 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6259 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6260 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6261 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6262 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6263 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6264 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6265 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6266 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6267 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6268 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6269 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6270
6271 ;;
6272 esac
6273 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6274 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6276 echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278 eval "$as_ac_Header=\$ac_header_preproc"
6279 fi
6280 ac_res=`eval echo '${'$as_ac_Header'}'`
6281 { echo "$as_me:$LINENO: result: $ac_res" >&5
6282 echo "${ECHO_T}$ac_res" >&6; }
6283
6284 fi
6285 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6286 cat >>confdefs.h <<_ACEOF
6287 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6288 _ACEOF
6289
6290 fi
6291
6292 done
6293
6294 # Emulation library used on NetBSD.
6295 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6296 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6297 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6298 echo $ECHO_N "(cached) $ECHO_C" >&6
6299 else
6300 ac_check_lib_save_LIBS=$LIBS
6301 LIBS="-lossaudio $LIBS"
6302 cat >conftest.$ac_ext <<_ACEOF
6303 /* confdefs.h. */
6304 _ACEOF
6305 cat confdefs.h >>conftest.$ac_ext
6306 cat >>conftest.$ac_ext <<_ACEOF
6307 /* end confdefs.h. */
6308
6309 /* Override any GCC internal prototype to avoid an error.
6310 Use char because int might match the return type of a GCC
6311 builtin and then its argument prototype would still apply. */
6312 #ifdef __cplusplus
6313 extern "C"
6314 #endif
6315 char _oss_ioctl ();
6316 int
6317 main ()
6318 {
6319 return _oss_ioctl ();
6320 ;
6321 return 0;
6322 }
6323 _ACEOF
6324 rm -f conftest.$ac_objext conftest$ac_exeext
6325 if { (ac_try="$ac_link"
6326 case "(($ac_try" in
6327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6328 *) ac_try_echo=$ac_try;;
6329 esac
6330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6331 (eval "$ac_link") 2>conftest.er1
6332 ac_status=$?
6333 grep -v '^ *+' conftest.er1 >conftest.err
6334 rm -f conftest.er1
6335 cat conftest.err >&5
6336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6337 (exit $ac_status); } && {
6338 test -z "$ac_c_werror_flag" ||
6339 test ! -s conftest.err
6340 } && test -s conftest$ac_exeext &&
6341 $as_test_x conftest$ac_exeext; then
6342 ac_cv_lib_ossaudio__oss_ioctl=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ac_cv_lib_ossaudio__oss_ioctl=no
6348 fi
6349
6350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6351 conftest$ac_exeext conftest.$ac_ext
6352 LIBS=$ac_check_lib_save_LIBS
6353 fi
6354 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6355 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6356 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6357 LIBSOUND=-lossaudio
6358 else
6359 LIBSOUND=
6360 fi
6361
6362
6363
6364 ALSA_REQUIRED=1.0.0
6365 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6366 if test "X${with_pkg_config_prog}" != X; then
6367 PKG_CONFIG="${with_pkg_config_prog}"
6368 fi
6369
6370 succeeded=no
6371
6372 if test -z "$PKG_CONFIG"; then
6373 # Extract the first word of "pkg-config", so it can be a program name with args.
6374 set dummy pkg-config; ac_word=$2
6375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6377 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6378 echo $ECHO_N "(cached) $ECHO_C" >&6
6379 else
6380 case $PKG_CONFIG in
6381 [\\/]* | ?:[\\/]*)
6382 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6383 ;;
6384 *)
6385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6386 for as_dir in $PATH
6387 do
6388 IFS=$as_save_IFS
6389 test -z "$as_dir" && as_dir=.
6390 for ac_exec_ext in '' $ac_executable_extensions; do
6391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6392 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6394 break 2
6395 fi
6396 done
6397 done
6398 IFS=$as_save_IFS
6399
6400 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6401 ;;
6402 esac
6403 fi
6404 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6405 if test -n "$PKG_CONFIG"; then
6406 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6407 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6408 else
6409 { echo "$as_me:$LINENO: result: no" >&5
6410 echo "${ECHO_T}no" >&6; }
6411 fi
6412
6413
6414 fi
6415
6416 if test "$PKG_CONFIG" = "no" ; then
6417 HAVE_ALSA=no
6418 else
6419 PKG_CONFIG_MIN_VERSION=0.9.0
6420 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6421 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6422 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6423
6424 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6425 { echo "$as_me:$LINENO: result: yes" >&5
6426 echo "${ECHO_T}yes" >&6; }
6427 succeeded=yes
6428
6429 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6430 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6431 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6432 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6433 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6434
6435 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6436 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6437 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6438 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6439 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6440 else
6441 { echo "$as_me:$LINENO: result: no" >&5
6442 echo "${ECHO_T}no" >&6; }
6443 ALSA_CFLAGS=""
6444 ALSA_LIBS=""
6445 ## If we have a custom action on failure, don't print errors, but
6446 ## do set a variable so people can do so.
6447 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6448
6449 fi
6450
6451
6452
6453 else
6454 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6455 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6456 fi
6457 fi
6458
6459 if test $succeeded = yes; then
6460 HAVE_ALSA=yes
6461 else
6462 HAVE_ALSA=no
6463 fi
6464
6465 if test $HAVE_ALSA = yes; then
6466 SAVE_CFLAGS="$CFLAGS"
6467 SAVE_LDFLAGS="$LDFLAGS"
6468 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6469 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6470 cat >conftest.$ac_ext <<_ACEOF
6471 /* confdefs.h. */
6472 _ACEOF
6473 cat confdefs.h >>conftest.$ac_ext
6474 cat >>conftest.$ac_ext <<_ACEOF
6475 /* end confdefs.h. */
6476 #include <asoundlib.h>
6477 int
6478 main ()
6479 {
6480 snd_lib_error_set_handler (0);
6481 ;
6482 return 0;
6483 }
6484 _ACEOF
6485 rm -f conftest.$ac_objext
6486 if { (ac_try="$ac_compile"
6487 case "(($ac_try" in
6488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489 *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492 (eval "$ac_compile") 2>conftest.er1
6493 ac_status=$?
6494 grep -v '^ *+' conftest.er1 >conftest.err
6495 rm -f conftest.er1
6496 cat conftest.err >&5
6497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6498 (exit $ac_status); } && {
6499 test -z "$ac_c_werror_flag" ||
6500 test ! -s conftest.err
6501 } && test -s conftest.$ac_objext; then
6502 emacs_alsa_normal=yes
6503 else
6504 echo "$as_me: failed program was:" >&5
6505 sed 's/^/| /' conftest.$ac_ext >&5
6506
6507 emacs_alsa_normal=no
6508 fi
6509
6510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6511 if test "$emacs_alsa_normal" != yes; then
6512 cat >conftest.$ac_ext <<_ACEOF
6513 /* confdefs.h. */
6514 _ACEOF
6515 cat confdefs.h >>conftest.$ac_ext
6516 cat >>conftest.$ac_ext <<_ACEOF
6517 /* end confdefs.h. */
6518 #include <alsa/asoundlib.h>
6519 int
6520 main ()
6521 {
6522 snd_lib_error_set_handler (0);
6523 ;
6524 return 0;
6525 }
6526 _ACEOF
6527 rm -f conftest.$ac_objext
6528 if { (ac_try="$ac_compile"
6529 case "(($ac_try" in
6530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6531 *) ac_try_echo=$ac_try;;
6532 esac
6533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6534 (eval "$ac_compile") 2>conftest.er1
6535 ac_status=$?
6536 grep -v '^ *+' conftest.er1 >conftest.err
6537 rm -f conftest.er1
6538 cat conftest.err >&5
6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540 (exit $ac_status); } && {
6541 test -z "$ac_c_werror_flag" ||
6542 test ! -s conftest.err
6543 } && test -s conftest.$ac_objext; then
6544 emacs_alsa_subdir=yes
6545 else
6546 echo "$as_me: failed program was:" >&5
6547 sed 's/^/| /' conftest.$ac_ext >&5
6548
6549 emacs_alsa_subdir=no
6550 fi
6551
6552 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6553 if test "$emacs_alsa_subdir" != yes; then
6554 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6555 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6556 { (exit 1); exit 1; }; }
6557 fi
6558 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6559 fi
6560
6561 CFLAGS="$SAVE_CFLAGS"
6562 LDFLAGS="$SAVE_LDFLAGS"
6563 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6564 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6565
6566 cat >>confdefs.h <<\_ACEOF
6567 #define HAVE_ALSA 1
6568 _ACEOF
6569
6570 fi
6571
6572 fi
6573
6574
6575
6576
6577
6578
6579
6580
6581
6582
6583
6584
6585
6586
6587
6588
6589
6590
6591
6592
6593
6594
6595
6596
6597
6598
6599 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6600 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6601 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6602 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6603 sys/utsname.h pwd.h
6604 do
6605 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6606 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6607 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6608 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6609 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6610 echo $ECHO_N "(cached) $ECHO_C" >&6
6611 fi
6612 ac_res=`eval echo '${'$as_ac_Header'}'`
6613 { echo "$as_me:$LINENO: result: $ac_res" >&5
6614 echo "${ECHO_T}$ac_res" >&6; }
6615 else
6616 # Is the header compilable?
6617 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6618 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6619 cat >conftest.$ac_ext <<_ACEOF
6620 /* confdefs.h. */
6621 _ACEOF
6622 cat confdefs.h >>conftest.$ac_ext
6623 cat >>conftest.$ac_ext <<_ACEOF
6624 /* end confdefs.h. */
6625 $ac_includes_default
6626 #include <$ac_header>
6627 _ACEOF
6628 rm -f conftest.$ac_objext
6629 if { (ac_try="$ac_compile"
6630 case "(($ac_try" in
6631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6632 *) ac_try_echo=$ac_try;;
6633 esac
6634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6635 (eval "$ac_compile") 2>conftest.er1
6636 ac_status=$?
6637 grep -v '^ *+' conftest.er1 >conftest.err
6638 rm -f conftest.er1
6639 cat conftest.err >&5
6640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6641 (exit $ac_status); } && {
6642 test -z "$ac_c_werror_flag" ||
6643 test ! -s conftest.err
6644 } && test -s conftest.$ac_objext; then
6645 ac_header_compiler=yes
6646 else
6647 echo "$as_me: failed program was:" >&5
6648 sed 's/^/| /' conftest.$ac_ext >&5
6649
6650 ac_header_compiler=no
6651 fi
6652
6653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6655 echo "${ECHO_T}$ac_header_compiler" >&6; }
6656
6657 # Is the header present?
6658 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6659 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6660 cat >conftest.$ac_ext <<_ACEOF
6661 /* confdefs.h. */
6662 _ACEOF
6663 cat confdefs.h >>conftest.$ac_ext
6664 cat >>conftest.$ac_ext <<_ACEOF
6665 /* end confdefs.h. */
6666 #include <$ac_header>
6667 _ACEOF
6668 if { (ac_try="$ac_cpp conftest.$ac_ext"
6669 case "(($ac_try" in
6670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6671 *) ac_try_echo=$ac_try;;
6672 esac
6673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6675 ac_status=$?
6676 grep -v '^ *+' conftest.er1 >conftest.err
6677 rm -f conftest.er1
6678 cat conftest.err >&5
6679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6680 (exit $ac_status); } >/dev/null && {
6681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6682 test ! -s conftest.err
6683 }; then
6684 ac_header_preproc=yes
6685 else
6686 echo "$as_me: failed program was:" >&5
6687 sed 's/^/| /' conftest.$ac_ext >&5
6688
6689 ac_header_preproc=no
6690 fi
6691
6692 rm -f conftest.err conftest.$ac_ext
6693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6694 echo "${ECHO_T}$ac_header_preproc" >&6; }
6695
6696 # So? What about this header?
6697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6698 yes:no: )
6699 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6700 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6701 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6702 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6703 ac_header_preproc=yes
6704 ;;
6705 no:yes:* )
6706 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6707 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6708 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6709 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6710 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6711 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6712 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6713 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6714 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6715 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6716 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6717 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6718
6719 ;;
6720 esac
6721 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6722 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6723 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6724 echo $ECHO_N "(cached) $ECHO_C" >&6
6725 else
6726 eval "$as_ac_Header=\$ac_header_preproc"
6727 fi
6728 ac_res=`eval echo '${'$as_ac_Header'}'`
6729 { echo "$as_me:$LINENO: result: $ac_res" >&5
6730 echo "${ECHO_T}$ac_res" >&6; }
6731
6732 fi
6733 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6734 cat >>confdefs.h <<_ACEOF
6735 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6736 _ACEOF
6737
6738 fi
6739
6740 done
6741
6742
6743 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6744 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6745 cat >conftest.$ac_ext <<_ACEOF
6746 /* confdefs.h. */
6747 _ACEOF
6748 cat confdefs.h >>conftest.$ac_ext
6749 cat >>conftest.$ac_ext <<_ACEOF
6750 /* end confdefs.h. */
6751 #include <sys/personality.h>
6752 int
6753 main ()
6754 {
6755 personality (PER_LINUX32)
6756 ;
6757 return 0;
6758 }
6759 _ACEOF
6760 rm -f conftest.$ac_objext
6761 if { (ac_try="$ac_compile"
6762 case "(($ac_try" in
6763 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6764 *) ac_try_echo=$ac_try;;
6765 esac
6766 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6767 (eval "$ac_compile") 2>conftest.er1
6768 ac_status=$?
6769 grep -v '^ *+' conftest.er1 >conftest.err
6770 rm -f conftest.er1
6771 cat conftest.err >&5
6772 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6773 (exit $ac_status); } && {
6774 test -z "$ac_c_werror_flag" ||
6775 test ! -s conftest.err
6776 } && test -s conftest.$ac_objext; then
6777 emacs_cv_personality_linux32=yes
6778 else
6779 echo "$as_me: failed program was:" >&5
6780 sed 's/^/| /' conftest.$ac_ext >&5
6781
6782 emacs_cv_personality_linux32=no
6783 fi
6784
6785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6786 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6787 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6788
6789 if test $emacs_cv_personality_linux32 = yes; then
6790
6791 cat >>confdefs.h <<\_ACEOF
6792 #define HAVE_PERSONALITY_LINUX32 1
6793 _ACEOF
6794
6795 fi
6796
6797
6798 for ac_header in term.h
6799 do
6800 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6801 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6802 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6803 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6804 echo $ECHO_N "(cached) $ECHO_C" >&6
6805 else
6806 cat >conftest.$ac_ext <<_ACEOF
6807 /* confdefs.h. */
6808 _ACEOF
6809 cat confdefs.h >>conftest.$ac_ext
6810 cat >>conftest.$ac_ext <<_ACEOF
6811 /* end confdefs.h. */
6812 #include <$ac_header>
6813 _ACEOF
6814 if { (ac_try="$ac_cpp conftest.$ac_ext"
6815 case "(($ac_try" in
6816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6817 *) ac_try_echo=$ac_try;;
6818 esac
6819 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6820 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6821 ac_status=$?
6822 grep -v '^ *+' conftest.er1 >conftest.err
6823 rm -f conftest.er1
6824 cat conftest.err >&5
6825 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6826 (exit $ac_status); } >/dev/null && {
6827 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6828 test ! -s conftest.err
6829 }; then
6830 eval "$as_ac_Header=yes"
6831 else
6832 echo "$as_me: failed program was:" >&5
6833 sed 's/^/| /' conftest.$ac_ext >&5
6834
6835 eval "$as_ac_Header=no"
6836 fi
6837
6838 rm -f conftest.err conftest.$ac_ext
6839 fi
6840 ac_res=`eval echo '${'$as_ac_Header'}'`
6841 { echo "$as_me:$LINENO: result: $ac_res" >&5
6842 echo "${ECHO_T}$ac_res" >&6; }
6843 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6844 cat >>confdefs.h <<_ACEOF
6845 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6846 _ACEOF
6847
6848 fi
6849
6850 done
6851
6852 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6853 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6854 if test "${ac_cv_header_stdc+set}" = set; then
6855 echo $ECHO_N "(cached) $ECHO_C" >&6
6856 else
6857 cat >conftest.$ac_ext <<_ACEOF
6858 /* confdefs.h. */
6859 _ACEOF
6860 cat confdefs.h >>conftest.$ac_ext
6861 cat >>conftest.$ac_ext <<_ACEOF
6862 /* end confdefs.h. */
6863 #include <stdlib.h>
6864 #include <stdarg.h>
6865 #include <string.h>
6866 #include <float.h>
6867
6868 int
6869 main ()
6870 {
6871
6872 ;
6873 return 0;
6874 }
6875 _ACEOF
6876 rm -f conftest.$ac_objext
6877 if { (ac_try="$ac_compile"
6878 case "(($ac_try" in
6879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6880 *) ac_try_echo=$ac_try;;
6881 esac
6882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6883 (eval "$ac_compile") 2>conftest.er1
6884 ac_status=$?
6885 grep -v '^ *+' conftest.er1 >conftest.err
6886 rm -f conftest.er1
6887 cat conftest.err >&5
6888 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6889 (exit $ac_status); } && {
6890 test -z "$ac_c_werror_flag" ||
6891 test ! -s conftest.err
6892 } && test -s conftest.$ac_objext; then
6893 ac_cv_header_stdc=yes
6894 else
6895 echo "$as_me: failed program was:" >&5
6896 sed 's/^/| /' conftest.$ac_ext >&5
6897
6898 ac_cv_header_stdc=no
6899 fi
6900
6901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6902
6903 if test $ac_cv_header_stdc = yes; then
6904 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6905 cat >conftest.$ac_ext <<_ACEOF
6906 /* confdefs.h. */
6907 _ACEOF
6908 cat confdefs.h >>conftest.$ac_ext
6909 cat >>conftest.$ac_ext <<_ACEOF
6910 /* end confdefs.h. */
6911 #include <string.h>
6912
6913 _ACEOF
6914 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6915 $EGREP "memchr" >/dev/null 2>&1; then
6916 :
6917 else
6918 ac_cv_header_stdc=no
6919 fi
6920 rm -f conftest*
6921
6922 fi
6923
6924 if test $ac_cv_header_stdc = yes; then
6925 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6926 cat >conftest.$ac_ext <<_ACEOF
6927 /* confdefs.h. */
6928 _ACEOF
6929 cat confdefs.h >>conftest.$ac_ext
6930 cat >>conftest.$ac_ext <<_ACEOF
6931 /* end confdefs.h. */
6932 #include <stdlib.h>
6933
6934 _ACEOF
6935 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6936 $EGREP "free" >/dev/null 2>&1; then
6937 :
6938 else
6939 ac_cv_header_stdc=no
6940 fi
6941 rm -f conftest*
6942
6943 fi
6944
6945 if test $ac_cv_header_stdc = yes; then
6946 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6947 if test "$cross_compiling" = yes; then
6948 :
6949 else
6950 cat >conftest.$ac_ext <<_ACEOF
6951 /* confdefs.h. */
6952 _ACEOF
6953 cat confdefs.h >>conftest.$ac_ext
6954 cat >>conftest.$ac_ext <<_ACEOF
6955 /* end confdefs.h. */
6956 #include <ctype.h>
6957 #include <stdlib.h>
6958 #if ((' ' & 0x0FF) == 0x020)
6959 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6960 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6961 #else
6962 # define ISLOWER(c) \
6963 (('a' <= (c) && (c) <= 'i') \
6964 || ('j' <= (c) && (c) <= 'r') \
6965 || ('s' <= (c) && (c) <= 'z'))
6966 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6967 #endif
6968
6969 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6970 int
6971 main ()
6972 {
6973 int i;
6974 for (i = 0; i < 256; i++)
6975 if (XOR (islower (i), ISLOWER (i))
6976 || toupper (i) != TOUPPER (i))
6977 return 2;
6978 return 0;
6979 }
6980 _ACEOF
6981 rm -f conftest$ac_exeext
6982 if { (ac_try="$ac_link"
6983 case "(($ac_try" in
6984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6985 *) ac_try_echo=$ac_try;;
6986 esac
6987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6988 (eval "$ac_link") 2>&5
6989 ac_status=$?
6990 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6991 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6992 { (case "(($ac_try" in
6993 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6994 *) ac_try_echo=$ac_try;;
6995 esac
6996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6997 (eval "$ac_try") 2>&5
6998 ac_status=$?
6999 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7000 (exit $ac_status); }; }; then
7001 :
7002 else
7003 echo "$as_me: program exited with status $ac_status" >&5
7004 echo "$as_me: failed program was:" >&5
7005 sed 's/^/| /' conftest.$ac_ext >&5
7006
7007 ( exit $ac_status )
7008 ac_cv_header_stdc=no
7009 fi
7010 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7011 fi
7012
7013
7014 fi
7015 fi
7016 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7017 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7018 if test $ac_cv_header_stdc = yes; then
7019
7020 cat >>confdefs.h <<\_ACEOF
7021 #define STDC_HEADERS 1
7022 _ACEOF
7023
7024 fi
7025
7026 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7027 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7028 if test "${ac_cv_header_time+set}" = set; then
7029 echo $ECHO_N "(cached) $ECHO_C" >&6
7030 else
7031 cat >conftest.$ac_ext <<_ACEOF
7032 /* confdefs.h. */
7033 _ACEOF
7034 cat confdefs.h >>conftest.$ac_ext
7035 cat >>conftest.$ac_ext <<_ACEOF
7036 /* end confdefs.h. */
7037 #include <sys/types.h>
7038 #include <sys/time.h>
7039 #include <time.h>
7040
7041 int
7042 main ()
7043 {
7044 if ((struct tm *) 0)
7045 return 0;
7046 ;
7047 return 0;
7048 }
7049 _ACEOF
7050 rm -f conftest.$ac_objext
7051 if { (ac_try="$ac_compile"
7052 case "(($ac_try" in
7053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7054 *) ac_try_echo=$ac_try;;
7055 esac
7056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7057 (eval "$ac_compile") 2>conftest.er1
7058 ac_status=$?
7059 grep -v '^ *+' conftest.er1 >conftest.err
7060 rm -f conftest.er1
7061 cat conftest.err >&5
7062 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7063 (exit $ac_status); } && {
7064 test -z "$ac_c_werror_flag" ||
7065 test ! -s conftest.err
7066 } && test -s conftest.$ac_objext; then
7067 ac_cv_header_time=yes
7068 else
7069 echo "$as_me: failed program was:" >&5
7070 sed 's/^/| /' conftest.$ac_ext >&5
7071
7072 ac_cv_header_time=no
7073 fi
7074
7075 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7076 fi
7077 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7078 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7079 if test $ac_cv_header_time = yes; then
7080
7081 cat >>confdefs.h <<\_ACEOF
7082 #define TIME_WITH_SYS_TIME 1
7083 _ACEOF
7084
7085 fi
7086
7087 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7088 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7089 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7090 echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092 cat >conftest.$ac_ext <<_ACEOF
7093 /* confdefs.h. */
7094 _ACEOF
7095 cat confdefs.h >>conftest.$ac_ext
7096 cat >>conftest.$ac_ext <<_ACEOF
7097 /* end confdefs.h. */
7098 $ac_includes_default
7099 int
7100 main ()
7101 {
7102 #ifndef sys_siglist
7103 (void) sys_siglist;
7104 #endif
7105
7106 ;
7107 return 0;
7108 }
7109 _ACEOF
7110 rm -f conftest.$ac_objext
7111 if { (ac_try="$ac_compile"
7112 case "(($ac_try" in
7113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7114 *) ac_try_echo=$ac_try;;
7115 esac
7116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7117 (eval "$ac_compile") 2>conftest.er1
7118 ac_status=$?
7119 grep -v '^ *+' conftest.er1 >conftest.err
7120 rm -f conftest.er1
7121 cat conftest.err >&5
7122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7123 (exit $ac_status); } && {
7124 test -z "$ac_c_werror_flag" ||
7125 test ! -s conftest.err
7126 } && test -s conftest.$ac_objext; then
7127 ac_cv_have_decl_sys_siglist=yes
7128 else
7129 echo "$as_me: failed program was:" >&5
7130 sed 's/^/| /' conftest.$ac_ext >&5
7131
7132 ac_cv_have_decl_sys_siglist=no
7133 fi
7134
7135 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7136 fi
7137 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7138 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7139 if test $ac_cv_have_decl_sys_siglist = yes; then
7140
7141 cat >>confdefs.h <<_ACEOF
7142 #define HAVE_DECL_SYS_SIGLIST 1
7143 _ACEOF
7144
7145
7146 else
7147 cat >>confdefs.h <<_ACEOF
7148 #define HAVE_DECL_SYS_SIGLIST 0
7149 _ACEOF
7150
7151
7152 fi
7153
7154
7155 if test $ac_cv_have_decl_sys_siglist != yes; then
7156 # For Tru64, at least:
7157 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7158 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7159 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7160 echo $ECHO_N "(cached) $ECHO_C" >&6
7161 else
7162 cat >conftest.$ac_ext <<_ACEOF
7163 /* confdefs.h. */
7164 _ACEOF
7165 cat confdefs.h >>conftest.$ac_ext
7166 cat >>conftest.$ac_ext <<_ACEOF
7167 /* end confdefs.h. */
7168 $ac_includes_default
7169 int
7170 main ()
7171 {
7172 #ifndef __sys_siglist
7173 (void) __sys_siglist;
7174 #endif
7175
7176 ;
7177 return 0;
7178 }
7179 _ACEOF
7180 rm -f conftest.$ac_objext
7181 if { (ac_try="$ac_compile"
7182 case "(($ac_try" in
7183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7184 *) ac_try_echo=$ac_try;;
7185 esac
7186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7187 (eval "$ac_compile") 2>conftest.er1
7188 ac_status=$?
7189 grep -v '^ *+' conftest.er1 >conftest.err
7190 rm -f conftest.er1
7191 cat conftest.err >&5
7192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7193 (exit $ac_status); } && {
7194 test -z "$ac_c_werror_flag" ||
7195 test ! -s conftest.err
7196 } && test -s conftest.$ac_objext; then
7197 ac_cv_have_decl___sys_siglist=yes
7198 else
7199 echo "$as_me: failed program was:" >&5
7200 sed 's/^/| /' conftest.$ac_ext >&5
7201
7202 ac_cv_have_decl___sys_siglist=no
7203 fi
7204
7205 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7206 fi
7207 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7208 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7209 if test $ac_cv_have_decl___sys_siglist = yes; then
7210
7211 cat >>confdefs.h <<_ACEOF
7212 #define HAVE_DECL___SYS_SIGLIST 1
7213 _ACEOF
7214
7215
7216 else
7217 cat >>confdefs.h <<_ACEOF
7218 #define HAVE_DECL___SYS_SIGLIST 0
7219 _ACEOF
7220
7221
7222 fi
7223
7224
7225 if test $ac_cv_have_decl___sys_siglist = yes; then
7226
7227 cat >>confdefs.h <<\_ACEOF
7228 #define sys_siglist __sys_siglist
7229 _ACEOF
7230
7231 fi
7232 fi
7233 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7234 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7235 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7236 echo $ECHO_N "(cached) $ECHO_C" >&6
7237 else
7238 cat >conftest.$ac_ext <<_ACEOF
7239 /* confdefs.h. */
7240 _ACEOF
7241 cat confdefs.h >>conftest.$ac_ext
7242 cat >>conftest.$ac_ext <<_ACEOF
7243 /* end confdefs.h. */
7244 #include <sys/types.h>
7245 #include <sys/wait.h>
7246 #ifndef WEXITSTATUS
7247 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7248 #endif
7249 #ifndef WIFEXITED
7250 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7251 #endif
7252
7253 int
7254 main ()
7255 {
7256 int s;
7257 wait (&s);
7258 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7259 ;
7260 return 0;
7261 }
7262 _ACEOF
7263 rm -f conftest.$ac_objext
7264 if { (ac_try="$ac_compile"
7265 case "(($ac_try" in
7266 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7267 *) ac_try_echo=$ac_try;;
7268 esac
7269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7270 (eval "$ac_compile") 2>conftest.er1
7271 ac_status=$?
7272 grep -v '^ *+' conftest.er1 >conftest.err
7273 rm -f conftest.er1
7274 cat conftest.err >&5
7275 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7276 (exit $ac_status); } && {
7277 test -z "$ac_c_werror_flag" ||
7278 test ! -s conftest.err
7279 } && test -s conftest.$ac_objext; then
7280 ac_cv_header_sys_wait_h=yes
7281 else
7282 echo "$as_me: failed program was:" >&5
7283 sed 's/^/| /' conftest.$ac_ext >&5
7284
7285 ac_cv_header_sys_wait_h=no
7286 fi
7287
7288 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7289 fi
7290 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7291 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7292 if test $ac_cv_header_sys_wait_h = yes; then
7293
7294 cat >>confdefs.h <<\_ACEOF
7295 #define HAVE_SYS_WAIT_H 1
7296 _ACEOF
7297
7298 fi
7299
7300
7301 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7302 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7303 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7304 echo $ECHO_N "(cached) $ECHO_C" >&6
7305 else
7306 cat >conftest.$ac_ext <<_ACEOF
7307 /* confdefs.h. */
7308 _ACEOF
7309 cat confdefs.h >>conftest.$ac_ext
7310 cat >>conftest.$ac_ext <<_ACEOF
7311 /* end confdefs.h. */
7312 #ifdef TIME_WITH_SYS_TIME
7313 #include <sys/time.h>
7314 #include <time.h>
7315 #else
7316 #ifdef HAVE_SYS_TIME_H
7317 #include <sys/time.h>
7318 #else
7319 #include <time.h>
7320 #endif
7321 #endif
7322 #ifdef HAVE_UTIME_H
7323 #include <utime.h>
7324 #endif
7325 int
7326 main ()
7327 {
7328 static struct utimbuf x; x.actime = x.modtime;
7329 ;
7330 return 0;
7331 }
7332 _ACEOF
7333 rm -f conftest.$ac_objext
7334 if { (ac_try="$ac_compile"
7335 case "(($ac_try" in
7336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7337 *) ac_try_echo=$ac_try;;
7338 esac
7339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7340 (eval "$ac_compile") 2>conftest.er1
7341 ac_status=$?
7342 grep -v '^ *+' conftest.er1 >conftest.err
7343 rm -f conftest.er1
7344 cat conftest.err >&5
7345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7346 (exit $ac_status); } && {
7347 test -z "$ac_c_werror_flag" ||
7348 test ! -s conftest.err
7349 } && test -s conftest.$ac_objext; then
7350 emacs_cv_struct_utimbuf=yes
7351 else
7352 echo "$as_me: failed program was:" >&5
7353 sed 's/^/| /' conftest.$ac_ext >&5
7354
7355 emacs_cv_struct_utimbuf=no
7356 fi
7357
7358 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7359 fi
7360 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7361 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7362 if test $emacs_cv_struct_utimbuf = yes; then
7363
7364 cat >>confdefs.h <<\_ACEOF
7365 #define HAVE_STRUCT_UTIMBUF 1
7366 _ACEOF
7367
7368 fi
7369
7370 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7371 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7372 if test "${ac_cv_type_signal+set}" = set; then
7373 echo $ECHO_N "(cached) $ECHO_C" >&6
7374 else
7375 cat >conftest.$ac_ext <<_ACEOF
7376 /* confdefs.h. */
7377 _ACEOF
7378 cat confdefs.h >>conftest.$ac_ext
7379 cat >>conftest.$ac_ext <<_ACEOF
7380 /* end confdefs.h. */
7381 #include <sys/types.h>
7382 #include <signal.h>
7383
7384 int
7385 main ()
7386 {
7387 return *(signal (0, 0)) (0) == 1;
7388 ;
7389 return 0;
7390 }
7391 _ACEOF
7392 rm -f conftest.$ac_objext
7393 if { (ac_try="$ac_compile"
7394 case "(($ac_try" in
7395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7396 *) ac_try_echo=$ac_try;;
7397 esac
7398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7399 (eval "$ac_compile") 2>conftest.er1
7400 ac_status=$?
7401 grep -v '^ *+' conftest.er1 >conftest.err
7402 rm -f conftest.er1
7403 cat conftest.err >&5
7404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7405 (exit $ac_status); } && {
7406 test -z "$ac_c_werror_flag" ||
7407 test ! -s conftest.err
7408 } && test -s conftest.$ac_objext; then
7409 ac_cv_type_signal=int
7410 else
7411 echo "$as_me: failed program was:" >&5
7412 sed 's/^/| /' conftest.$ac_ext >&5
7413
7414 ac_cv_type_signal=void
7415 fi
7416
7417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7418 fi
7419 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7420 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7421
7422 cat >>confdefs.h <<_ACEOF
7423 #define RETSIGTYPE $ac_cv_type_signal
7424 _ACEOF
7425
7426
7427
7428 { echo "$as_me:$LINENO: checking for speed_t" >&5
7429 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7430 if test "${emacs_cv_speed_t+set}" = set; then
7431 echo $ECHO_N "(cached) $ECHO_C" >&6
7432 else
7433 cat >conftest.$ac_ext <<_ACEOF
7434 /* confdefs.h. */
7435 _ACEOF
7436 cat confdefs.h >>conftest.$ac_ext
7437 cat >>conftest.$ac_ext <<_ACEOF
7438 /* end confdefs.h. */
7439 #include <termios.h>
7440 int
7441 main ()
7442 {
7443 speed_t x = 1;
7444 ;
7445 return 0;
7446 }
7447 _ACEOF
7448 rm -f conftest.$ac_objext
7449 if { (ac_try="$ac_compile"
7450 case "(($ac_try" in
7451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7452 *) ac_try_echo=$ac_try;;
7453 esac
7454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7455 (eval "$ac_compile") 2>conftest.er1
7456 ac_status=$?
7457 grep -v '^ *+' conftest.er1 >conftest.err
7458 rm -f conftest.er1
7459 cat conftest.err >&5
7460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7461 (exit $ac_status); } && {
7462 test -z "$ac_c_werror_flag" ||
7463 test ! -s conftest.err
7464 } && test -s conftest.$ac_objext; then
7465 emacs_cv_speed_t=yes
7466 else
7467 echo "$as_me: failed program was:" >&5
7468 sed 's/^/| /' conftest.$ac_ext >&5
7469
7470 emacs_cv_speed_t=no
7471 fi
7472
7473 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7474 fi
7475 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7476 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7477 if test $emacs_cv_speed_t = yes; then
7478
7479 cat >>confdefs.h <<\_ACEOF
7480 #define HAVE_SPEED_T 1
7481 _ACEOF
7482
7483 fi
7484
7485 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7486 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7487 if test "${emacs_cv_struct_timeval+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 #ifdef TIME_WITH_SYS_TIME
7497 #include <sys/time.h>
7498 #include <time.h>
7499 #else
7500 #ifdef HAVE_SYS_TIME_H
7501 #include <sys/time.h>
7502 #else
7503 #include <time.h>
7504 #endif
7505 #endif
7506 int
7507 main ()
7508 {
7509 static struct timeval x; x.tv_sec = x.tv_usec;
7510 ;
7511 return 0;
7512 }
7513 _ACEOF
7514 rm -f conftest.$ac_objext
7515 if { (ac_try="$ac_compile"
7516 case "(($ac_try" in
7517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7518 *) ac_try_echo=$ac_try;;
7519 esac
7520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7521 (eval "$ac_compile") 2>conftest.er1
7522 ac_status=$?
7523 grep -v '^ *+' conftest.er1 >conftest.err
7524 rm -f conftest.er1
7525 cat conftest.err >&5
7526 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7527 (exit $ac_status); } && {
7528 test -z "$ac_c_werror_flag" ||
7529 test ! -s conftest.err
7530 } && test -s conftest.$ac_objext; then
7531 emacs_cv_struct_timeval=yes
7532 else
7533 echo "$as_me: failed program was:" >&5
7534 sed 's/^/| /' conftest.$ac_ext >&5
7535
7536 emacs_cv_struct_timeval=no
7537 fi
7538
7539 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7540 fi
7541 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7542 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7543 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7544 if test $emacs_cv_struct_timeval = yes; then
7545
7546 cat >>confdefs.h <<\_ACEOF
7547 #define HAVE_TIMEVAL 1
7548 _ACEOF
7549
7550 fi
7551
7552 { echo "$as_me:$LINENO: checking for struct exception" >&5
7553 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7554 if test "${emacs_cv_struct_exception+set}" = set; then
7555 echo $ECHO_N "(cached) $ECHO_C" >&6
7556 else
7557 cat >conftest.$ac_ext <<_ACEOF
7558 /* confdefs.h. */
7559 _ACEOF
7560 cat confdefs.h >>conftest.$ac_ext
7561 cat >>conftest.$ac_ext <<_ACEOF
7562 /* end confdefs.h. */
7563 #include <math.h>
7564 int
7565 main ()
7566 {
7567 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7568 ;
7569 return 0;
7570 }
7571 _ACEOF
7572 rm -f conftest.$ac_objext
7573 if { (ac_try="$ac_compile"
7574 case "(($ac_try" in
7575 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7576 *) ac_try_echo=$ac_try;;
7577 esac
7578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7579 (eval "$ac_compile") 2>conftest.er1
7580 ac_status=$?
7581 grep -v '^ *+' conftest.er1 >conftest.err
7582 rm -f conftest.er1
7583 cat conftest.err >&5
7584 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7585 (exit $ac_status); } && {
7586 test -z "$ac_c_werror_flag" ||
7587 test ! -s conftest.err
7588 } && test -s conftest.$ac_objext; then
7589 emacs_cv_struct_exception=yes
7590 else
7591 echo "$as_me: failed program was:" >&5
7592 sed 's/^/| /' conftest.$ac_ext >&5
7593
7594 emacs_cv_struct_exception=no
7595 fi
7596
7597 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7598 fi
7599 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7600 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7601 HAVE_EXCEPTION=$emacs_cv_struct_exception
7602 if test $emacs_cv_struct_exception != yes; then
7603
7604 cat >>confdefs.h <<\_ACEOF
7605 #define NO_MATHERR 1
7606 _ACEOF
7607
7608 fi
7609
7610
7611 for ac_header in sys/socket.h
7612 do
7613 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7614 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7615 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7616 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7617 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7618 echo $ECHO_N "(cached) $ECHO_C" >&6
7619 fi
7620 ac_res=`eval echo '${'$as_ac_Header'}'`
7621 { echo "$as_me:$LINENO: result: $ac_res" >&5
7622 echo "${ECHO_T}$ac_res" >&6; }
7623 else
7624 # Is the header compilable?
7625 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7626 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7627 cat >conftest.$ac_ext <<_ACEOF
7628 /* confdefs.h. */
7629 _ACEOF
7630 cat confdefs.h >>conftest.$ac_ext
7631 cat >>conftest.$ac_ext <<_ACEOF
7632 /* end confdefs.h. */
7633 $ac_includes_default
7634 #include <$ac_header>
7635 _ACEOF
7636 rm -f conftest.$ac_objext
7637 if { (ac_try="$ac_compile"
7638 case "(($ac_try" in
7639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7640 *) ac_try_echo=$ac_try;;
7641 esac
7642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7643 (eval "$ac_compile") 2>conftest.er1
7644 ac_status=$?
7645 grep -v '^ *+' conftest.er1 >conftest.err
7646 rm -f conftest.er1
7647 cat conftest.err >&5
7648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7649 (exit $ac_status); } && {
7650 test -z "$ac_c_werror_flag" ||
7651 test ! -s conftest.err
7652 } && test -s conftest.$ac_objext; then
7653 ac_header_compiler=yes
7654 else
7655 echo "$as_me: failed program was:" >&5
7656 sed 's/^/| /' conftest.$ac_ext >&5
7657
7658 ac_header_compiler=no
7659 fi
7660
7661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7663 echo "${ECHO_T}$ac_header_compiler" >&6; }
7664
7665 # Is the header present?
7666 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7667 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7668 cat >conftest.$ac_ext <<_ACEOF
7669 /* confdefs.h. */
7670 _ACEOF
7671 cat confdefs.h >>conftest.$ac_ext
7672 cat >>conftest.$ac_ext <<_ACEOF
7673 /* end confdefs.h. */
7674 #include <$ac_header>
7675 _ACEOF
7676 if { (ac_try="$ac_cpp conftest.$ac_ext"
7677 case "(($ac_try" in
7678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7679 *) ac_try_echo=$ac_try;;
7680 esac
7681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7683 ac_status=$?
7684 grep -v '^ *+' conftest.er1 >conftest.err
7685 rm -f conftest.er1
7686 cat conftest.err >&5
7687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7688 (exit $ac_status); } >/dev/null && {
7689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7690 test ! -s conftest.err
7691 }; then
7692 ac_header_preproc=yes
7693 else
7694 echo "$as_me: failed program was:" >&5
7695 sed 's/^/| /' conftest.$ac_ext >&5
7696
7697 ac_header_preproc=no
7698 fi
7699
7700 rm -f conftest.err conftest.$ac_ext
7701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7702 echo "${ECHO_T}$ac_header_preproc" >&6; }
7703
7704 # So? What about this header?
7705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7706 yes:no: )
7707 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7708 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7709 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7710 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7711 ac_header_preproc=yes
7712 ;;
7713 no:yes:* )
7714 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7715 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7716 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7717 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7718 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7719 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7720 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7721 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7722 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7723 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7724 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7725 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7726
7727 ;;
7728 esac
7729 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7730 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7731 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7732 echo $ECHO_N "(cached) $ECHO_C" >&6
7733 else
7734 eval "$as_ac_Header=\$ac_header_preproc"
7735 fi
7736 ac_res=`eval echo '${'$as_ac_Header'}'`
7737 { echo "$as_me:$LINENO: result: $ac_res" >&5
7738 echo "${ECHO_T}$ac_res" >&6; }
7739
7740 fi
7741 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7742 cat >>confdefs.h <<_ACEOF
7743 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7744 _ACEOF
7745
7746 fi
7747
7748 done
7749
7750
7751 for ac_header in net/if.h
7752 do
7753 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7754 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7755 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7756 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7757 echo $ECHO_N "(cached) $ECHO_C" >&6
7758 else
7759 cat >conftest.$ac_ext <<_ACEOF
7760 /* confdefs.h. */
7761 _ACEOF
7762 cat confdefs.h >>conftest.$ac_ext
7763 cat >>conftest.$ac_ext <<_ACEOF
7764 /* end confdefs.h. */
7765 $ac_includes_default
7766 #if HAVE_SYS_SOCKET_H
7767 #include <sys/socket.h>
7768 #endif
7769
7770 #include <$ac_header>
7771 _ACEOF
7772 rm -f conftest.$ac_objext
7773 if { (ac_try="$ac_compile"
7774 case "(($ac_try" in
7775 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7776 *) ac_try_echo=$ac_try;;
7777 esac
7778 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7779 (eval "$ac_compile") 2>conftest.er1
7780 ac_status=$?
7781 grep -v '^ *+' conftest.er1 >conftest.err
7782 rm -f conftest.er1
7783 cat conftest.err >&5
7784 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7785 (exit $ac_status); } && {
7786 test -z "$ac_c_werror_flag" ||
7787 test ! -s conftest.err
7788 } && test -s conftest.$ac_objext; then
7789 eval "$as_ac_Header=yes"
7790 else
7791 echo "$as_me: failed program was:" >&5
7792 sed 's/^/| /' conftest.$ac_ext >&5
7793
7794 eval "$as_ac_Header=no"
7795 fi
7796
7797 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7798 fi
7799 ac_res=`eval echo '${'$as_ac_Header'}'`
7800 { echo "$as_me:$LINENO: result: $ac_res" >&5
7801 echo "${ECHO_T}$ac_res" >&6; }
7802 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7803 cat >>confdefs.h <<_ACEOF
7804 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7805 _ACEOF
7806
7807 fi
7808
7809 done
7810
7811
7812 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7813 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7814 if test "${ac_cv_struct_tm+set}" = set; then
7815 echo $ECHO_N "(cached) $ECHO_C" >&6
7816 else
7817 cat >conftest.$ac_ext <<_ACEOF
7818 /* confdefs.h. */
7819 _ACEOF
7820 cat confdefs.h >>conftest.$ac_ext
7821 cat >>conftest.$ac_ext <<_ACEOF
7822 /* end confdefs.h. */
7823 #include <sys/types.h>
7824 #include <time.h>
7825
7826 int
7827 main ()
7828 {
7829 struct tm tm;
7830 int *p = &tm.tm_sec;
7831 return !p;
7832 ;
7833 return 0;
7834 }
7835 _ACEOF
7836 rm -f conftest.$ac_objext
7837 if { (ac_try="$ac_compile"
7838 case "(($ac_try" in
7839 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7840 *) ac_try_echo=$ac_try;;
7841 esac
7842 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7843 (eval "$ac_compile") 2>conftest.er1
7844 ac_status=$?
7845 grep -v '^ *+' conftest.er1 >conftest.err
7846 rm -f conftest.er1
7847 cat conftest.err >&5
7848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7849 (exit $ac_status); } && {
7850 test -z "$ac_c_werror_flag" ||
7851 test ! -s conftest.err
7852 } && test -s conftest.$ac_objext; then
7853 ac_cv_struct_tm=time.h
7854 else
7855 echo "$as_me: failed program was:" >&5
7856 sed 's/^/| /' conftest.$ac_ext >&5
7857
7858 ac_cv_struct_tm=sys/time.h
7859 fi
7860
7861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7862 fi
7863 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7864 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7865 if test $ac_cv_struct_tm = sys/time.h; then
7866
7867 cat >>confdefs.h <<\_ACEOF
7868 #define TM_IN_SYS_TIME 1
7869 _ACEOF
7870
7871 fi
7872
7873 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7874 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7875 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7876 echo $ECHO_N "(cached) $ECHO_C" >&6
7877 else
7878 cat >conftest.$ac_ext <<_ACEOF
7879 /* confdefs.h. */
7880 _ACEOF
7881 cat confdefs.h >>conftest.$ac_ext
7882 cat >>conftest.$ac_ext <<_ACEOF
7883 /* end confdefs.h. */
7884 #include <sys/types.h>
7885 #include <$ac_cv_struct_tm>
7886
7887
7888 int
7889 main ()
7890 {
7891 static struct tm ac_aggr;
7892 if (ac_aggr.tm_zone)
7893 return 0;
7894 ;
7895 return 0;
7896 }
7897 _ACEOF
7898 rm -f conftest.$ac_objext
7899 if { (ac_try="$ac_compile"
7900 case "(($ac_try" in
7901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7902 *) ac_try_echo=$ac_try;;
7903 esac
7904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7905 (eval "$ac_compile") 2>conftest.er1
7906 ac_status=$?
7907 grep -v '^ *+' conftest.er1 >conftest.err
7908 rm -f conftest.er1
7909 cat conftest.err >&5
7910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7911 (exit $ac_status); } && {
7912 test -z "$ac_c_werror_flag" ||
7913 test ! -s conftest.err
7914 } && test -s conftest.$ac_objext; then
7915 ac_cv_member_struct_tm_tm_zone=yes
7916 else
7917 echo "$as_me: failed program was:" >&5
7918 sed 's/^/| /' conftest.$ac_ext >&5
7919
7920 cat >conftest.$ac_ext <<_ACEOF
7921 /* confdefs.h. */
7922 _ACEOF
7923 cat confdefs.h >>conftest.$ac_ext
7924 cat >>conftest.$ac_ext <<_ACEOF
7925 /* end confdefs.h. */
7926 #include <sys/types.h>
7927 #include <$ac_cv_struct_tm>
7928
7929
7930 int
7931 main ()
7932 {
7933 static struct tm ac_aggr;
7934 if (sizeof ac_aggr.tm_zone)
7935 return 0;
7936 ;
7937 return 0;
7938 }
7939 _ACEOF
7940 rm -f conftest.$ac_objext
7941 if { (ac_try="$ac_compile"
7942 case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_compile") 2>conftest.er1
7948 ac_status=$?
7949 grep -v '^ *+' conftest.er1 >conftest.err
7950 rm -f conftest.er1
7951 cat conftest.err >&5
7952 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7953 (exit $ac_status); } && {
7954 test -z "$ac_c_werror_flag" ||
7955 test ! -s conftest.err
7956 } && test -s conftest.$ac_objext; then
7957 ac_cv_member_struct_tm_tm_zone=yes
7958 else
7959 echo "$as_me: failed program was:" >&5
7960 sed 's/^/| /' conftest.$ac_ext >&5
7961
7962 ac_cv_member_struct_tm_tm_zone=no
7963 fi
7964
7965 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7966 fi
7967
7968 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7969 fi
7970 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7971 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7972 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7973
7974 cat >>confdefs.h <<_ACEOF
7975 #define HAVE_STRUCT_TM_TM_ZONE 1
7976 _ACEOF
7977
7978
7979 fi
7980
7981 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7982
7983 cat >>confdefs.h <<\_ACEOF
7984 #define HAVE_TM_ZONE 1
7985 _ACEOF
7986
7987 else
7988 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7989 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7990 if test "${ac_cv_have_decl_tzname+set}" = set; then
7991 echo $ECHO_N "(cached) $ECHO_C" >&6
7992 else
7993 cat >conftest.$ac_ext <<_ACEOF
7994 /* confdefs.h. */
7995 _ACEOF
7996 cat confdefs.h >>conftest.$ac_ext
7997 cat >>conftest.$ac_ext <<_ACEOF
7998 /* end confdefs.h. */
7999 #include <time.h>
8000
8001 int
8002 main ()
8003 {
8004 #ifndef tzname
8005 (void) tzname;
8006 #endif
8007
8008 ;
8009 return 0;
8010 }
8011 _ACEOF
8012 rm -f conftest.$ac_objext
8013 if { (ac_try="$ac_compile"
8014 case "(($ac_try" in
8015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8016 *) ac_try_echo=$ac_try;;
8017 esac
8018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8019 (eval "$ac_compile") 2>conftest.er1
8020 ac_status=$?
8021 grep -v '^ *+' conftest.er1 >conftest.err
8022 rm -f conftest.er1
8023 cat conftest.err >&5
8024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8025 (exit $ac_status); } && {
8026 test -z "$ac_c_werror_flag" ||
8027 test ! -s conftest.err
8028 } && test -s conftest.$ac_objext; then
8029 ac_cv_have_decl_tzname=yes
8030 else
8031 echo "$as_me: failed program was:" >&5
8032 sed 's/^/| /' conftest.$ac_ext >&5
8033
8034 ac_cv_have_decl_tzname=no
8035 fi
8036
8037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8038 fi
8039 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8040 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8041 if test $ac_cv_have_decl_tzname = yes; then
8042
8043 cat >>confdefs.h <<_ACEOF
8044 #define HAVE_DECL_TZNAME 1
8045 _ACEOF
8046
8047
8048 else
8049 cat >>confdefs.h <<_ACEOF
8050 #define HAVE_DECL_TZNAME 0
8051 _ACEOF
8052
8053
8054 fi
8055
8056
8057 { echo "$as_me:$LINENO: checking for tzname" >&5
8058 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8059 if test "${ac_cv_var_tzname+set}" = set; then
8060 echo $ECHO_N "(cached) $ECHO_C" >&6
8061 else
8062 cat >conftest.$ac_ext <<_ACEOF
8063 /* confdefs.h. */
8064 _ACEOF
8065 cat confdefs.h >>conftest.$ac_ext
8066 cat >>conftest.$ac_ext <<_ACEOF
8067 /* end confdefs.h. */
8068 #include <time.h>
8069 #if !HAVE_DECL_TZNAME
8070 extern char *tzname[];
8071 #endif
8072
8073 int
8074 main ()
8075 {
8076 return tzname[0][0];
8077 ;
8078 return 0;
8079 }
8080 _ACEOF
8081 rm -f conftest.$ac_objext conftest$ac_exeext
8082 if { (ac_try="$ac_link"
8083 case "(($ac_try" in
8084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8085 *) ac_try_echo=$ac_try;;
8086 esac
8087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8088 (eval "$ac_link") 2>conftest.er1
8089 ac_status=$?
8090 grep -v '^ *+' conftest.er1 >conftest.err
8091 rm -f conftest.er1
8092 cat conftest.err >&5
8093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8094 (exit $ac_status); } && {
8095 test -z "$ac_c_werror_flag" ||
8096 test ! -s conftest.err
8097 } && test -s conftest$ac_exeext &&
8098 $as_test_x conftest$ac_exeext; then
8099 ac_cv_var_tzname=yes
8100 else
8101 echo "$as_me: failed program was:" >&5
8102 sed 's/^/| /' conftest.$ac_ext >&5
8103
8104 ac_cv_var_tzname=no
8105 fi
8106
8107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8108 conftest$ac_exeext conftest.$ac_ext
8109 fi
8110 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8111 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8112 if test $ac_cv_var_tzname = yes; then
8113
8114 cat >>confdefs.h <<\_ACEOF
8115 #define HAVE_TZNAME 1
8116 _ACEOF
8117
8118 fi
8119 fi
8120
8121 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8122 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8123 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8124 echo $ECHO_N "(cached) $ECHO_C" >&6
8125 else
8126 cat >conftest.$ac_ext <<_ACEOF
8127 /* confdefs.h. */
8128 _ACEOF
8129 cat confdefs.h >>conftest.$ac_ext
8130 cat >>conftest.$ac_ext <<_ACEOF
8131 /* end confdefs.h. */
8132 #include <time.h>
8133
8134 int
8135 main ()
8136 {
8137 static struct tm ac_aggr;
8138 if (ac_aggr.tm_gmtoff)
8139 return 0;
8140 ;
8141 return 0;
8142 }
8143 _ACEOF
8144 rm -f conftest.$ac_objext
8145 if { (ac_try="$ac_compile"
8146 case "(($ac_try" in
8147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8148 *) ac_try_echo=$ac_try;;
8149 esac
8150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8151 (eval "$ac_compile") 2>conftest.er1
8152 ac_status=$?
8153 grep -v '^ *+' conftest.er1 >conftest.err
8154 rm -f conftest.er1
8155 cat conftest.err >&5
8156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8157 (exit $ac_status); } && {
8158 test -z "$ac_c_werror_flag" ||
8159 test ! -s conftest.err
8160 } && test -s conftest.$ac_objext; then
8161 ac_cv_member_struct_tm_tm_gmtoff=yes
8162 else
8163 echo "$as_me: failed program was:" >&5
8164 sed 's/^/| /' conftest.$ac_ext >&5
8165
8166 cat >conftest.$ac_ext <<_ACEOF
8167 /* confdefs.h. */
8168 _ACEOF
8169 cat confdefs.h >>conftest.$ac_ext
8170 cat >>conftest.$ac_ext <<_ACEOF
8171 /* end confdefs.h. */
8172 #include <time.h>
8173
8174 int
8175 main ()
8176 {
8177 static struct tm ac_aggr;
8178 if (sizeof ac_aggr.tm_gmtoff)
8179 return 0;
8180 ;
8181 return 0;
8182 }
8183 _ACEOF
8184 rm -f conftest.$ac_objext
8185 if { (ac_try="$ac_compile"
8186 case "(($ac_try" in
8187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8188 *) ac_try_echo=$ac_try;;
8189 esac
8190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8191 (eval "$ac_compile") 2>conftest.er1
8192 ac_status=$?
8193 grep -v '^ *+' conftest.er1 >conftest.err
8194 rm -f conftest.er1
8195 cat conftest.err >&5
8196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8197 (exit $ac_status); } && {
8198 test -z "$ac_c_werror_flag" ||
8199 test ! -s conftest.err
8200 } && test -s conftest.$ac_objext; then
8201 ac_cv_member_struct_tm_tm_gmtoff=yes
8202 else
8203 echo "$as_me: failed program was:" >&5
8204 sed 's/^/| /' conftest.$ac_ext >&5
8205
8206 ac_cv_member_struct_tm_tm_gmtoff=no
8207 fi
8208
8209 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8210 fi
8211
8212 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8213 fi
8214 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8215 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8216 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8217
8218 cat >>confdefs.h <<\_ACEOF
8219 #define HAVE_TM_GMTOFF 1
8220 _ACEOF
8221
8222 fi
8223
8224 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8225 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8226 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8227 echo $ECHO_N "(cached) $ECHO_C" >&6
8228 else
8229 cat >conftest.$ac_ext <<_ACEOF
8230 /* confdefs.h. */
8231 _ACEOF
8232 cat confdefs.h >>conftest.$ac_ext
8233 cat >>conftest.$ac_ext <<_ACEOF
8234 /* end confdefs.h. */
8235 $ac_includes_default
8236 #if HAVE_SYS_SOCKET_H
8237 #include <sys/socket.h>
8238 #endif
8239 #if HAVE_NET_IF_H
8240 #include <net/if.h>
8241 #endif
8242
8243 int
8244 main ()
8245 {
8246 static struct ifreq ac_aggr;
8247 if (ac_aggr.ifr_flags)
8248 return 0;
8249 ;
8250 return 0;
8251 }
8252 _ACEOF
8253 rm -f conftest.$ac_objext
8254 if { (ac_try="$ac_compile"
8255 case "(($ac_try" in
8256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8257 *) ac_try_echo=$ac_try;;
8258 esac
8259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8260 (eval "$ac_compile") 2>conftest.er1
8261 ac_status=$?
8262 grep -v '^ *+' conftest.er1 >conftest.err
8263 rm -f conftest.er1
8264 cat conftest.err >&5
8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8266 (exit $ac_status); } && {
8267 test -z "$ac_c_werror_flag" ||
8268 test ! -s conftest.err
8269 } && test -s conftest.$ac_objext; then
8270 ac_cv_member_struct_ifreq_ifr_flags=yes
8271 else
8272 echo "$as_me: failed program was:" >&5
8273 sed 's/^/| /' conftest.$ac_ext >&5
8274
8275 cat >conftest.$ac_ext <<_ACEOF
8276 /* confdefs.h. */
8277 _ACEOF
8278 cat confdefs.h >>conftest.$ac_ext
8279 cat >>conftest.$ac_ext <<_ACEOF
8280 /* end confdefs.h. */
8281 $ac_includes_default
8282 #if HAVE_SYS_SOCKET_H
8283 #include <sys/socket.h>
8284 #endif
8285 #if HAVE_NET_IF_H
8286 #include <net/if.h>
8287 #endif
8288
8289 int
8290 main ()
8291 {
8292 static struct ifreq ac_aggr;
8293 if (sizeof ac_aggr.ifr_flags)
8294 return 0;
8295 ;
8296 return 0;
8297 }
8298 _ACEOF
8299 rm -f conftest.$ac_objext
8300 if { (ac_try="$ac_compile"
8301 case "(($ac_try" in
8302 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8303 *) ac_try_echo=$ac_try;;
8304 esac
8305 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8306 (eval "$ac_compile") 2>conftest.er1
8307 ac_status=$?
8308 grep -v '^ *+' conftest.er1 >conftest.err
8309 rm -f conftest.er1
8310 cat conftest.err >&5
8311 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8312 (exit $ac_status); } && {
8313 test -z "$ac_c_werror_flag" ||
8314 test ! -s conftest.err
8315 } && test -s conftest.$ac_objext; then
8316 ac_cv_member_struct_ifreq_ifr_flags=yes
8317 else
8318 echo "$as_me: failed program was:" >&5
8319 sed 's/^/| /' conftest.$ac_ext >&5
8320
8321 ac_cv_member_struct_ifreq_ifr_flags=no
8322 fi
8323
8324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8325 fi
8326
8327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8328 fi
8329 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8330 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8331 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8332
8333 cat >>confdefs.h <<_ACEOF
8334 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8335 _ACEOF
8336
8337
8338 fi
8339 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8340 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8341 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8342 echo $ECHO_N "(cached) $ECHO_C" >&6
8343 else
8344 cat >conftest.$ac_ext <<_ACEOF
8345 /* confdefs.h. */
8346 _ACEOF
8347 cat confdefs.h >>conftest.$ac_ext
8348 cat >>conftest.$ac_ext <<_ACEOF
8349 /* end confdefs.h. */
8350 $ac_includes_default
8351 #if HAVE_SYS_SOCKET_H
8352 #include <sys/socket.h>
8353 #endif
8354 #if HAVE_NET_IF_H
8355 #include <net/if.h>
8356 #endif
8357
8358 int
8359 main ()
8360 {
8361 static struct ifreq ac_aggr;
8362 if (ac_aggr.ifr_hwaddr)
8363 return 0;
8364 ;
8365 return 0;
8366 }
8367 _ACEOF
8368 rm -f conftest.$ac_objext
8369 if { (ac_try="$ac_compile"
8370 case "(($ac_try" in
8371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8372 *) ac_try_echo=$ac_try;;
8373 esac
8374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8375 (eval "$ac_compile") 2>conftest.er1
8376 ac_status=$?
8377 grep -v '^ *+' conftest.er1 >conftest.err
8378 rm -f conftest.er1
8379 cat conftest.err >&5
8380 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8381 (exit $ac_status); } && {
8382 test -z "$ac_c_werror_flag" ||
8383 test ! -s conftest.err
8384 } && test -s conftest.$ac_objext; then
8385 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8386 else
8387 echo "$as_me: failed program was:" >&5
8388 sed 's/^/| /' conftest.$ac_ext >&5
8389
8390 cat >conftest.$ac_ext <<_ACEOF
8391 /* confdefs.h. */
8392 _ACEOF
8393 cat confdefs.h >>conftest.$ac_ext
8394 cat >>conftest.$ac_ext <<_ACEOF
8395 /* end confdefs.h. */
8396 $ac_includes_default
8397 #if HAVE_SYS_SOCKET_H
8398 #include <sys/socket.h>
8399 #endif
8400 #if HAVE_NET_IF_H
8401 #include <net/if.h>
8402 #endif
8403
8404 int
8405 main ()
8406 {
8407 static struct ifreq ac_aggr;
8408 if (sizeof ac_aggr.ifr_hwaddr)
8409 return 0;
8410 ;
8411 return 0;
8412 }
8413 _ACEOF
8414 rm -f conftest.$ac_objext
8415 if { (ac_try="$ac_compile"
8416 case "(($ac_try" in
8417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8418 *) ac_try_echo=$ac_try;;
8419 esac
8420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8421 (eval "$ac_compile") 2>conftest.er1
8422 ac_status=$?
8423 grep -v '^ *+' conftest.er1 >conftest.err
8424 rm -f conftest.er1
8425 cat conftest.err >&5
8426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8427 (exit $ac_status); } && {
8428 test -z "$ac_c_werror_flag" ||
8429 test ! -s conftest.err
8430 } && test -s conftest.$ac_objext; then
8431 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8432 else
8433 echo "$as_me: failed program was:" >&5
8434 sed 's/^/| /' conftest.$ac_ext >&5
8435
8436 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8437 fi
8438
8439 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8440 fi
8441
8442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8443 fi
8444 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8445 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8446 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8447
8448 cat >>confdefs.h <<_ACEOF
8449 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8450 _ACEOF
8451
8452
8453 fi
8454 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8455 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8456 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8457 echo $ECHO_N "(cached) $ECHO_C" >&6
8458 else
8459 cat >conftest.$ac_ext <<_ACEOF
8460 /* confdefs.h. */
8461 _ACEOF
8462 cat confdefs.h >>conftest.$ac_ext
8463 cat >>conftest.$ac_ext <<_ACEOF
8464 /* end confdefs.h. */
8465 $ac_includes_default
8466 #if HAVE_SYS_SOCKET_H
8467 #include <sys/socket.h>
8468 #endif
8469 #if HAVE_NET_IF_H
8470 #include <net/if.h>
8471 #endif
8472
8473 int
8474 main ()
8475 {
8476 static struct ifreq ac_aggr;
8477 if (ac_aggr.ifr_netmask)
8478 return 0;
8479 ;
8480 return 0;
8481 }
8482 _ACEOF
8483 rm -f conftest.$ac_objext
8484 if { (ac_try="$ac_compile"
8485 case "(($ac_try" in
8486 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8487 *) ac_try_echo=$ac_try;;
8488 esac
8489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8490 (eval "$ac_compile") 2>conftest.er1
8491 ac_status=$?
8492 grep -v '^ *+' conftest.er1 >conftest.err
8493 rm -f conftest.er1
8494 cat conftest.err >&5
8495 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8496 (exit $ac_status); } && {
8497 test -z "$ac_c_werror_flag" ||
8498 test ! -s conftest.err
8499 } && test -s conftest.$ac_objext; then
8500 ac_cv_member_struct_ifreq_ifr_netmask=yes
8501 else
8502 echo "$as_me: failed program was:" >&5
8503 sed 's/^/| /' conftest.$ac_ext >&5
8504
8505 cat >conftest.$ac_ext <<_ACEOF
8506 /* confdefs.h. */
8507 _ACEOF
8508 cat confdefs.h >>conftest.$ac_ext
8509 cat >>conftest.$ac_ext <<_ACEOF
8510 /* end confdefs.h. */
8511 $ac_includes_default
8512 #if HAVE_SYS_SOCKET_H
8513 #include <sys/socket.h>
8514 #endif
8515 #if HAVE_NET_IF_H
8516 #include <net/if.h>
8517 #endif
8518
8519 int
8520 main ()
8521 {
8522 static struct ifreq ac_aggr;
8523 if (sizeof ac_aggr.ifr_netmask)
8524 return 0;
8525 ;
8526 return 0;
8527 }
8528 _ACEOF
8529 rm -f conftest.$ac_objext
8530 if { (ac_try="$ac_compile"
8531 case "(($ac_try" in
8532 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8533 *) ac_try_echo=$ac_try;;
8534 esac
8535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8536 (eval "$ac_compile") 2>conftest.er1
8537 ac_status=$?
8538 grep -v '^ *+' conftest.er1 >conftest.err
8539 rm -f conftest.er1
8540 cat conftest.err >&5
8541 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8542 (exit $ac_status); } && {
8543 test -z "$ac_c_werror_flag" ||
8544 test ! -s conftest.err
8545 } && test -s conftest.$ac_objext; then
8546 ac_cv_member_struct_ifreq_ifr_netmask=yes
8547 else
8548 echo "$as_me: failed program was:" >&5
8549 sed 's/^/| /' conftest.$ac_ext >&5
8550
8551 ac_cv_member_struct_ifreq_ifr_netmask=no
8552 fi
8553
8554 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8555 fi
8556
8557 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8558 fi
8559 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8560 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8561 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8562
8563 cat >>confdefs.h <<_ACEOF
8564 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8565 _ACEOF
8566
8567
8568 fi
8569 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8570 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8571 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8572 echo $ECHO_N "(cached) $ECHO_C" >&6
8573 else
8574 cat >conftest.$ac_ext <<_ACEOF
8575 /* confdefs.h. */
8576 _ACEOF
8577 cat confdefs.h >>conftest.$ac_ext
8578 cat >>conftest.$ac_ext <<_ACEOF
8579 /* end confdefs.h. */
8580 $ac_includes_default
8581 #if HAVE_SYS_SOCKET_H
8582 #include <sys/socket.h>
8583 #endif
8584 #if HAVE_NET_IF_H
8585 #include <net/if.h>
8586 #endif
8587
8588 int
8589 main ()
8590 {
8591 static struct ifreq ac_aggr;
8592 if (ac_aggr.ifr_broadaddr)
8593 return 0;
8594 ;
8595 return 0;
8596 }
8597 _ACEOF
8598 rm -f conftest.$ac_objext
8599 if { (ac_try="$ac_compile"
8600 case "(($ac_try" in
8601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8602 *) ac_try_echo=$ac_try;;
8603 esac
8604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8605 (eval "$ac_compile") 2>conftest.er1
8606 ac_status=$?
8607 grep -v '^ *+' conftest.er1 >conftest.err
8608 rm -f conftest.er1
8609 cat conftest.err >&5
8610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8611 (exit $ac_status); } && {
8612 test -z "$ac_c_werror_flag" ||
8613 test ! -s conftest.err
8614 } && test -s conftest.$ac_objext; then
8615 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8616 else
8617 echo "$as_me: failed program was:" >&5
8618 sed 's/^/| /' conftest.$ac_ext >&5
8619
8620 cat >conftest.$ac_ext <<_ACEOF
8621 /* confdefs.h. */
8622 _ACEOF
8623 cat confdefs.h >>conftest.$ac_ext
8624 cat >>conftest.$ac_ext <<_ACEOF
8625 /* end confdefs.h. */
8626 $ac_includes_default
8627 #if HAVE_SYS_SOCKET_H
8628 #include <sys/socket.h>
8629 #endif
8630 #if HAVE_NET_IF_H
8631 #include <net/if.h>
8632 #endif
8633
8634 int
8635 main ()
8636 {
8637 static struct ifreq ac_aggr;
8638 if (sizeof ac_aggr.ifr_broadaddr)
8639 return 0;
8640 ;
8641 return 0;
8642 }
8643 _ACEOF
8644 rm -f conftest.$ac_objext
8645 if { (ac_try="$ac_compile"
8646 case "(($ac_try" in
8647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8648 *) ac_try_echo=$ac_try;;
8649 esac
8650 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8651 (eval "$ac_compile") 2>conftest.er1
8652 ac_status=$?
8653 grep -v '^ *+' conftest.er1 >conftest.err
8654 rm -f conftest.er1
8655 cat conftest.err >&5
8656 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8657 (exit $ac_status); } && {
8658 test -z "$ac_c_werror_flag" ||
8659 test ! -s conftest.err
8660 } && test -s conftest.$ac_objext; then
8661 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8662 else
8663 echo "$as_me: failed program was:" >&5
8664 sed 's/^/| /' conftest.$ac_ext >&5
8665
8666 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8667 fi
8668
8669 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8670 fi
8671
8672 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8673 fi
8674 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8675 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8676 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8677
8678 cat >>confdefs.h <<_ACEOF
8679 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8680 _ACEOF
8681
8682
8683 fi
8684 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8685 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8686 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8687 echo $ECHO_N "(cached) $ECHO_C" >&6
8688 else
8689 cat >conftest.$ac_ext <<_ACEOF
8690 /* confdefs.h. */
8691 _ACEOF
8692 cat confdefs.h >>conftest.$ac_ext
8693 cat >>conftest.$ac_ext <<_ACEOF
8694 /* end confdefs.h. */
8695 $ac_includes_default
8696 #if HAVE_SYS_SOCKET_H
8697 #include <sys/socket.h>
8698 #endif
8699 #if HAVE_NET_IF_H
8700 #include <net/if.h>
8701 #endif
8702
8703 int
8704 main ()
8705 {
8706 static struct ifreq ac_aggr;
8707 if (ac_aggr.ifr_addr)
8708 return 0;
8709 ;
8710 return 0;
8711 }
8712 _ACEOF
8713 rm -f conftest.$ac_objext
8714 if { (ac_try="$ac_compile"
8715 case "(($ac_try" in
8716 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8717 *) ac_try_echo=$ac_try;;
8718 esac
8719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8720 (eval "$ac_compile") 2>conftest.er1
8721 ac_status=$?
8722 grep -v '^ *+' conftest.er1 >conftest.err
8723 rm -f conftest.er1
8724 cat conftest.err >&5
8725 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8726 (exit $ac_status); } && {
8727 test -z "$ac_c_werror_flag" ||
8728 test ! -s conftest.err
8729 } && test -s conftest.$ac_objext; then
8730 ac_cv_member_struct_ifreq_ifr_addr=yes
8731 else
8732 echo "$as_me: failed program was:" >&5
8733 sed 's/^/| /' conftest.$ac_ext >&5
8734
8735 cat >conftest.$ac_ext <<_ACEOF
8736 /* confdefs.h. */
8737 _ACEOF
8738 cat confdefs.h >>conftest.$ac_ext
8739 cat >>conftest.$ac_ext <<_ACEOF
8740 /* end confdefs.h. */
8741 $ac_includes_default
8742 #if HAVE_SYS_SOCKET_H
8743 #include <sys/socket.h>
8744 #endif
8745 #if HAVE_NET_IF_H
8746 #include <net/if.h>
8747 #endif
8748
8749 int
8750 main ()
8751 {
8752 static struct ifreq ac_aggr;
8753 if (sizeof ac_aggr.ifr_addr)
8754 return 0;
8755 ;
8756 return 0;
8757 }
8758 _ACEOF
8759 rm -f conftest.$ac_objext
8760 if { (ac_try="$ac_compile"
8761 case "(($ac_try" in
8762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8763 *) ac_try_echo=$ac_try;;
8764 esac
8765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8766 (eval "$ac_compile") 2>conftest.er1
8767 ac_status=$?
8768 grep -v '^ *+' conftest.er1 >conftest.err
8769 rm -f conftest.er1
8770 cat conftest.err >&5
8771 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8772 (exit $ac_status); } && {
8773 test -z "$ac_c_werror_flag" ||
8774 test ! -s conftest.err
8775 } && test -s conftest.$ac_objext; then
8776 ac_cv_member_struct_ifreq_ifr_addr=yes
8777 else
8778 echo "$as_me: failed program was:" >&5
8779 sed 's/^/| /' conftest.$ac_ext >&5
8780
8781 ac_cv_member_struct_ifreq_ifr_addr=no
8782 fi
8783
8784 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8785 fi
8786
8787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8788 fi
8789 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8790 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8791 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8792
8793 cat >>confdefs.h <<_ACEOF
8794 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8795 _ACEOF
8796
8797
8798 fi
8799
8800
8801
8802 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8803 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8804 if test "$ac_cv_prog_cc_c89" != no; then
8805 { echo "$as_me:$LINENO: result: yes" >&5
8806 echo "${ECHO_T}yes" >&6; }
8807
8808 cat >>confdefs.h <<\_ACEOF
8809 #define PROTOTYPES 1
8810 _ACEOF
8811
8812
8813 cat >>confdefs.h <<\_ACEOF
8814 #define __PROTOTYPES 1
8815 _ACEOF
8816
8817 else
8818 { echo "$as_me:$LINENO: result: no" >&5
8819 echo "${ECHO_T}no" >&6; }
8820 fi
8821
8822 { echo "$as_me:$LINENO: checking for working volatile" >&5
8823 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8824 if test "${ac_cv_c_volatile+set}" = set; then
8825 echo $ECHO_N "(cached) $ECHO_C" >&6
8826 else
8827 cat >conftest.$ac_ext <<_ACEOF
8828 /* confdefs.h. */
8829 _ACEOF
8830 cat confdefs.h >>conftest.$ac_ext
8831 cat >>conftest.$ac_ext <<_ACEOF
8832 /* end confdefs.h. */
8833
8834 int
8835 main ()
8836 {
8837
8838 volatile int x;
8839 int * volatile y = (int *) 0;
8840 return !x && !y;
8841 ;
8842 return 0;
8843 }
8844 _ACEOF
8845 rm -f conftest.$ac_objext
8846 if { (ac_try="$ac_compile"
8847 case "(($ac_try" in
8848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849 *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852 (eval "$ac_compile") 2>conftest.er1
8853 ac_status=$?
8854 grep -v '^ *+' conftest.er1 >conftest.err
8855 rm -f conftest.er1
8856 cat conftest.err >&5
8857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8858 (exit $ac_status); } && {
8859 test -z "$ac_c_werror_flag" ||
8860 test ! -s conftest.err
8861 } && test -s conftest.$ac_objext; then
8862 ac_cv_c_volatile=yes
8863 else
8864 echo "$as_me: failed program was:" >&5
8865 sed 's/^/| /' conftest.$ac_ext >&5
8866
8867 ac_cv_c_volatile=no
8868 fi
8869
8870 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8871 fi
8872 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8873 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8874 if test $ac_cv_c_volatile = no; then
8875
8876 cat >>confdefs.h <<\_ACEOF
8877 #define volatile
8878 _ACEOF
8879
8880 fi
8881
8882 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8883 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8884 if test "${ac_cv_c_const+set}" = set; then
8885 echo $ECHO_N "(cached) $ECHO_C" >&6
8886 else
8887 cat >conftest.$ac_ext <<_ACEOF
8888 /* confdefs.h. */
8889 _ACEOF
8890 cat confdefs.h >>conftest.$ac_ext
8891 cat >>conftest.$ac_ext <<_ACEOF
8892 /* end confdefs.h. */
8893
8894 int
8895 main ()
8896 {
8897 /* FIXME: Include the comments suggested by Paul. */
8898 #ifndef __cplusplus
8899 /* Ultrix mips cc rejects this. */
8900 typedef int charset[2];
8901 const charset cs;
8902 /* SunOS 4.1.1 cc rejects this. */
8903 char const *const *pcpcc;
8904 char **ppc;
8905 /* NEC SVR4.0.2 mips cc rejects this. */
8906 struct point {int x, y;};
8907 static struct point const zero = {0,0};
8908 /* AIX XL C 1.02.0.0 rejects this.
8909 It does not let you subtract one const X* pointer from another in
8910 an arm of an if-expression whose if-part is not a constant
8911 expression */
8912 const char *g = "string";
8913 pcpcc = &g + (g ? g-g : 0);
8914 /* HPUX 7.0 cc rejects these. */
8915 ++pcpcc;
8916 ppc = (char**) pcpcc;
8917 pcpcc = (char const *const *) ppc;
8918 { /* SCO 3.2v4 cc rejects this. */
8919 char *t;
8920 char const *s = 0 ? (char *) 0 : (char const *) 0;
8921
8922 *t++ = 0;
8923 if (s) return 0;
8924 }
8925 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8926 int x[] = {25, 17};
8927 const int *foo = &x[0];
8928 ++foo;
8929 }
8930 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8931 typedef const int *iptr;
8932 iptr p = 0;
8933 ++p;
8934 }
8935 { /* AIX XL C 1.02.0.0 rejects this saying
8936 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8937 struct s { int j; const int *ap[3]; };
8938 struct s *b; b->j = 5;
8939 }
8940 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8941 const int foo = 10;
8942 if (!foo) return 0;
8943 }
8944 return !cs[0] && !zero.x;
8945 #endif
8946
8947 ;
8948 return 0;
8949 }
8950 _ACEOF
8951 rm -f conftest.$ac_objext
8952 if { (ac_try="$ac_compile"
8953 case "(($ac_try" in
8954 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8955 *) ac_try_echo=$ac_try;;
8956 esac
8957 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8958 (eval "$ac_compile") 2>conftest.er1
8959 ac_status=$?
8960 grep -v '^ *+' conftest.er1 >conftest.err
8961 rm -f conftest.er1
8962 cat conftest.err >&5
8963 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8964 (exit $ac_status); } && {
8965 test -z "$ac_c_werror_flag" ||
8966 test ! -s conftest.err
8967 } && test -s conftest.$ac_objext; then
8968 ac_cv_c_const=yes
8969 else
8970 echo "$as_me: failed program was:" >&5
8971 sed 's/^/| /' conftest.$ac_ext >&5
8972
8973 ac_cv_c_const=no
8974 fi
8975
8976 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8977 fi
8978 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8979 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8980 if test $ac_cv_c_const = no; then
8981
8982 cat >>confdefs.h <<\_ACEOF
8983 #define const
8984 _ACEOF
8985
8986 fi
8987
8988 { echo "$as_me:$LINENO: checking for void * support" >&5
8989 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8990 if test "${emacs_cv_void_star+set}" = set; then
8991 echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993 cat >conftest.$ac_ext <<_ACEOF
8994 /* confdefs.h. */
8995 _ACEOF
8996 cat confdefs.h >>conftest.$ac_ext
8997 cat >>conftest.$ac_ext <<_ACEOF
8998 /* end confdefs.h. */
8999
9000 int
9001 main ()
9002 {
9003 void * foo;
9004 ;
9005 return 0;
9006 }
9007 _ACEOF
9008 rm -f conftest.$ac_objext
9009 if { (ac_try="$ac_compile"
9010 case "(($ac_try" in
9011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9012 *) ac_try_echo=$ac_try;;
9013 esac
9014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9015 (eval "$ac_compile") 2>conftest.er1
9016 ac_status=$?
9017 grep -v '^ *+' conftest.er1 >conftest.err
9018 rm -f conftest.er1
9019 cat conftest.err >&5
9020 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9021 (exit $ac_status); } && {
9022 test -z "$ac_c_werror_flag" ||
9023 test ! -s conftest.err
9024 } && test -s conftest.$ac_objext; then
9025 emacs_cv_void_star=yes
9026 else
9027 echo "$as_me: failed program was:" >&5
9028 sed 's/^/| /' conftest.$ac_ext >&5
9029
9030 emacs_cv_void_star=no
9031 fi
9032
9033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 fi
9035 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9036 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9037 if test $emacs_cv_void_star = yes; then
9038 cat >>confdefs.h <<\_ACEOF
9039 #define POINTER_TYPE void
9040 _ACEOF
9041
9042 else
9043 cat >>confdefs.h <<\_ACEOF
9044 #define POINTER_TYPE char
9045 _ACEOF
9046
9047 fi
9048
9049
9050
9051
9052
9053 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9054 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9055 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9056 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9057 echo $ECHO_N "(cached) $ECHO_C" >&6
9058 else
9059 cat >conftest.make <<\_ACEOF
9060 SHELL = /bin/sh
9061 all:
9062 @echo '@@@%%%=$(MAKE)=@@@%%%'
9063 _ACEOF
9064 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9065 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9066 *@@@%%%=?*=@@@%%%*)
9067 eval ac_cv_prog_make_${ac_make}_set=yes;;
9068 *)
9069 eval ac_cv_prog_make_${ac_make}_set=no;;
9070 esac
9071 rm -f conftest.make
9072 fi
9073 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9074 { echo "$as_me:$LINENO: result: yes" >&5
9075 echo "${ECHO_T}yes" >&6; }
9076 SET_MAKE=
9077 else
9078 { echo "$as_me:$LINENO: result: no" >&5
9079 echo "${ECHO_T}no" >&6; }
9080 SET_MAKE="MAKE=${MAKE-make}"
9081 fi
9082
9083
9084 { echo "$as_me:$LINENO: checking for long file names" >&5
9085 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9086 if test "${ac_cv_sys_long_file_names+set}" = set; then
9087 echo $ECHO_N "(cached) $ECHO_C" >&6
9088 else
9089 ac_cv_sys_long_file_names=yes
9090 # Test for long file names in all the places we know might matter:
9091 # . the current directory, where building will happen
9092 # $prefix/lib where we will be installing things
9093 # $exec_prefix/lib likewise
9094 # $TMPDIR if set, where it might want to write temporary files
9095 # /tmp where it might want to write temporary files
9096 # /var/tmp likewise
9097 # /usr/tmp likewise
9098 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9099 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9100 # in the usual case where exec_prefix is '${prefix}'.
9101 case $ac_dir in #(
9102 . | /* | ?:[\\/]*) ;; #(
9103 *) continue;;
9104 esac
9105 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9106 ac_xdir=$ac_dir/cf$$
9107 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9108 ac_tf1=$ac_xdir/conftest9012345
9109 ac_tf2=$ac_xdir/conftest9012346
9110 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9111 ac_cv_sys_long_file_names=no
9112 rm -f -r "$ac_xdir" 2>/dev/null
9113 test $ac_cv_sys_long_file_names = no && break
9114 done
9115 fi
9116 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9117 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9118 if test $ac_cv_sys_long_file_names = yes; then
9119
9120 cat >>confdefs.h <<\_ACEOF
9121 #define HAVE_LONG_FILE_NAMES 1
9122 _ACEOF
9123
9124 fi
9125
9126
9127 #### Choose a window system.
9128
9129 { echo "$as_me:$LINENO: checking for X" >&5
9130 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9131
9132
9133 # Check whether --with-x was given.
9134 if test "${with_x+set}" = set; then
9135 withval=$with_x;
9136 fi
9137
9138 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9139 if test "x$with_x" = xno; then
9140 # The user explicitly disabled X.
9141 have_x=disabled
9142 else
9143 case $x_includes,$x_libraries in #(
9144 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9145 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9146 { (exit 1); exit 1; }; };; #(
9147 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9148 echo $ECHO_N "(cached) $ECHO_C" >&6
9149 else
9150 # One or both of the vars are not set, and there is no cached value.
9151 ac_x_includes=no ac_x_libraries=no
9152 rm -f -r conftest.dir
9153 if mkdir conftest.dir; then
9154 cd conftest.dir
9155 cat >Imakefile <<'_ACEOF'
9156 incroot:
9157 @echo incroot='${INCROOT}'
9158 usrlibdir:
9159 @echo usrlibdir='${USRLIBDIR}'
9160 libdir:
9161 @echo libdir='${LIBDIR}'
9162 _ACEOF
9163 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9164 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9165 for ac_var in incroot usrlibdir libdir; do
9166 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9167 done
9168 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9169 for ac_extension in a so sl; do
9170 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9171 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9172 ac_im_usrlibdir=$ac_im_libdir; break
9173 fi
9174 done
9175 # Screen out bogus values from the imake configuration. They are
9176 # bogus both because they are the default anyway, and because
9177 # using them would break gcc on systems where it needs fixed includes.
9178 case $ac_im_incroot in
9179 /usr/include) ac_x_includes= ;;
9180 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9181 esac
9182 case $ac_im_usrlibdir in
9183 /usr/lib | /lib) ;;
9184 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9185 esac
9186 fi
9187 cd ..
9188 rm -f -r conftest.dir
9189 fi
9190
9191 # Standard set of common directories for X headers.
9192 # Check X11 before X11Rn because it is often a symlink to the current release.
9193 ac_x_header_dirs='
9194 /usr/X11/include
9195 /usr/X11R6/include
9196 /usr/X11R5/include
9197 /usr/X11R4/include
9198
9199 /usr/include/X11
9200 /usr/include/X11R6
9201 /usr/include/X11R5
9202 /usr/include/X11R4
9203
9204 /usr/local/X11/include
9205 /usr/local/X11R6/include
9206 /usr/local/X11R5/include
9207 /usr/local/X11R4/include
9208
9209 /usr/local/include/X11
9210 /usr/local/include/X11R6
9211 /usr/local/include/X11R5
9212 /usr/local/include/X11R4
9213
9214 /usr/X386/include
9215 /usr/x386/include
9216 /usr/XFree86/include/X11
9217
9218 /usr/include
9219 /usr/local/include
9220 /usr/unsupported/include
9221 /usr/athena/include
9222 /usr/local/x11r5/include
9223 /usr/lpp/Xamples/include
9224
9225 /usr/openwin/include
9226 /usr/openwin/share/include'
9227
9228 if test "$ac_x_includes" = no; then
9229 # Guess where to find include files, by looking for Xlib.h.
9230 # First, try using that file with no special directory specified.
9231 cat >conftest.$ac_ext <<_ACEOF
9232 /* confdefs.h. */
9233 _ACEOF
9234 cat confdefs.h >>conftest.$ac_ext
9235 cat >>conftest.$ac_ext <<_ACEOF
9236 /* end confdefs.h. */
9237 #include <X11/Xlib.h>
9238 _ACEOF
9239 if { (ac_try="$ac_cpp conftest.$ac_ext"
9240 case "(($ac_try" in
9241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9242 *) ac_try_echo=$ac_try;;
9243 esac
9244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9246 ac_status=$?
9247 grep -v '^ *+' conftest.er1 >conftest.err
9248 rm -f conftest.er1
9249 cat conftest.err >&5
9250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9251 (exit $ac_status); } >/dev/null && {
9252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9253 test ! -s conftest.err
9254 }; then
9255 # We can compile using X headers with no special include directory.
9256 ac_x_includes=
9257 else
9258 echo "$as_me: failed program was:" >&5
9259 sed 's/^/| /' conftest.$ac_ext >&5
9260
9261 for ac_dir in $ac_x_header_dirs; do
9262 if test -r "$ac_dir/X11/Xlib.h"; then
9263 ac_x_includes=$ac_dir
9264 break
9265 fi
9266 done
9267 fi
9268
9269 rm -f conftest.err conftest.$ac_ext
9270 fi # $ac_x_includes = no
9271
9272 if test "$ac_x_libraries" = no; then
9273 # Check for the libraries.
9274 # See if we find them without any special options.
9275 # Don't add to $LIBS permanently.
9276 ac_save_LIBS=$LIBS
9277 LIBS="-lX11 $LIBS"
9278 cat >conftest.$ac_ext <<_ACEOF
9279 /* confdefs.h. */
9280 _ACEOF
9281 cat confdefs.h >>conftest.$ac_ext
9282 cat >>conftest.$ac_ext <<_ACEOF
9283 /* end confdefs.h. */
9284 #include <X11/Xlib.h>
9285 int
9286 main ()
9287 {
9288 XrmInitialize ()
9289 ;
9290 return 0;
9291 }
9292 _ACEOF
9293 rm -f conftest.$ac_objext conftest$ac_exeext
9294 if { (ac_try="$ac_link"
9295 case "(($ac_try" in
9296 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9297 *) ac_try_echo=$ac_try;;
9298 esac
9299 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9300 (eval "$ac_link") 2>conftest.er1
9301 ac_status=$?
9302 grep -v '^ *+' conftest.er1 >conftest.err
9303 rm -f conftest.er1
9304 cat conftest.err >&5
9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9306 (exit $ac_status); } && {
9307 test -z "$ac_c_werror_flag" ||
9308 test ! -s conftest.err
9309 } && test -s conftest$ac_exeext &&
9310 $as_test_x conftest$ac_exeext; then
9311 LIBS=$ac_save_LIBS
9312 # We can link X programs with no special library path.
9313 ac_x_libraries=
9314 else
9315 echo "$as_me: failed program was:" >&5
9316 sed 's/^/| /' conftest.$ac_ext >&5
9317
9318 LIBS=$ac_save_LIBS
9319 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9320 do
9321 # Don't even attempt the hair of trying to link an X program!
9322 for ac_extension in a so sl; do
9323 if test -r "$ac_dir/libX11.$ac_extension"; then
9324 ac_x_libraries=$ac_dir
9325 break 2
9326 fi
9327 done
9328 done
9329 fi
9330
9331 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9332 conftest$ac_exeext conftest.$ac_ext
9333 fi # $ac_x_libraries = no
9334
9335 case $ac_x_includes,$ac_x_libraries in #(
9336 no,* | *,no | *\'*)
9337 # Didn't find X, or a directory has "'" in its name.
9338 ac_cv_have_x="have_x=no";; #(
9339 *)
9340 # Record where we found X for the cache.
9341 ac_cv_have_x="have_x=yes\
9342 ac_x_includes='$ac_x_includes'\
9343 ac_x_libraries='$ac_x_libraries'"
9344 esac
9345 fi
9346 ;; #(
9347 *) have_x=yes;;
9348 esac
9349 eval "$ac_cv_have_x"
9350 fi # $with_x != no
9351
9352 if test "$have_x" != yes; then
9353 { echo "$as_me:$LINENO: result: $have_x" >&5
9354 echo "${ECHO_T}$have_x" >&6; }
9355 no_x=yes
9356 else
9357 # If each of the values was on the command line, it overrides each guess.
9358 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9359 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9360 # Update the cache value to reflect the command line values.
9361 ac_cv_have_x="have_x=yes\
9362 ac_x_includes='$x_includes'\
9363 ac_x_libraries='$x_libraries'"
9364 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9365 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9366 fi
9367
9368 if test "$no_x" = yes; then
9369 window_system=none
9370 else
9371 window_system=x11
9372 fi
9373
9374 if test "${x_libraries}" != NONE; then
9375 if test -n "${x_libraries}"; then
9376 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9377 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9378 fi
9379 x_default_search_path=""
9380 x_search_path=${x_libraries}
9381 if test -z "${x_search_path}"; then
9382 x_search_path=/usr/lib
9383 fi
9384 for x_library in `echo ${x_search_path}: | \
9385 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9386 x_search_path="\
9387 ${x_library}/X11/%L/%T/%N%C%S:\
9388 ${x_library}/X11/%l/%T/%N%C%S:\
9389 ${x_library}/X11/%T/%N%C%S:\
9390 ${x_library}/X11/%L/%T/%N%S:\
9391 ${x_library}/X11/%l/%T/%N%S:\
9392 ${x_library}/X11/%T/%N%S"
9393 if test x"${x_default_search_path}" = x; then
9394 x_default_search_path=${x_search_path}
9395 else
9396 x_default_search_path="${x_search_path}:${x_default_search_path}"
9397 fi
9398 done
9399 fi
9400 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9401 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9402 fi
9403
9404 if test x"${x_includes}" = x; then
9405 bitmapdir=/usr/include/X11/bitmaps
9406 else
9407 # accumulate include directories that have X11 bitmap subdirectories
9408 bmd_acc="dummyval"
9409 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9410 if test -d "${bmd}/X11/bitmaps"; then
9411 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9412 fi
9413 if test -d "${bmd}/bitmaps"; then
9414 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9415 fi
9416 done
9417 if test ${bmd_acc} != "dummyval"; then
9418 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9419 fi
9420 fi
9421
9422 HAVE_CARBON=no
9423 if test "${with_carbon}" != no; then
9424 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9425 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9426 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9427 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9428 echo $ECHO_N "(cached) $ECHO_C" >&6
9429 fi
9430 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9431 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9432 else
9433 # Is the header compilable?
9434 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9435 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9436 cat >conftest.$ac_ext <<_ACEOF
9437 /* confdefs.h. */
9438 _ACEOF
9439 cat confdefs.h >>conftest.$ac_ext
9440 cat >>conftest.$ac_ext <<_ACEOF
9441 /* end confdefs.h. */
9442 $ac_includes_default
9443 #include <Carbon/Carbon.h>
9444 _ACEOF
9445 rm -f conftest.$ac_objext
9446 if { (ac_try="$ac_compile"
9447 case "(($ac_try" in
9448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9449 *) ac_try_echo=$ac_try;;
9450 esac
9451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9452 (eval "$ac_compile") 2>conftest.er1
9453 ac_status=$?
9454 grep -v '^ *+' conftest.er1 >conftest.err
9455 rm -f conftest.er1
9456 cat conftest.err >&5
9457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9458 (exit $ac_status); } && {
9459 test -z "$ac_c_werror_flag" ||
9460 test ! -s conftest.err
9461 } && test -s conftest.$ac_objext; then
9462 ac_header_compiler=yes
9463 else
9464 echo "$as_me: failed program was:" >&5
9465 sed 's/^/| /' conftest.$ac_ext >&5
9466
9467 ac_header_compiler=no
9468 fi
9469
9470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9472 echo "${ECHO_T}$ac_header_compiler" >&6; }
9473
9474 # Is the header present?
9475 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9476 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9477 cat >conftest.$ac_ext <<_ACEOF
9478 /* confdefs.h. */
9479 _ACEOF
9480 cat confdefs.h >>conftest.$ac_ext
9481 cat >>conftest.$ac_ext <<_ACEOF
9482 /* end confdefs.h. */
9483 #include <Carbon/Carbon.h>
9484 _ACEOF
9485 if { (ac_try="$ac_cpp conftest.$ac_ext"
9486 case "(($ac_try" in
9487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9488 *) ac_try_echo=$ac_try;;
9489 esac
9490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9492 ac_status=$?
9493 grep -v '^ *+' conftest.er1 >conftest.err
9494 rm -f conftest.er1
9495 cat conftest.err >&5
9496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9497 (exit $ac_status); } >/dev/null && {
9498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9499 test ! -s conftest.err
9500 }; then
9501 ac_header_preproc=yes
9502 else
9503 echo "$as_me: failed program was:" >&5
9504 sed 's/^/| /' conftest.$ac_ext >&5
9505
9506 ac_header_preproc=no
9507 fi
9508
9509 rm -f conftest.err conftest.$ac_ext
9510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9511 echo "${ECHO_T}$ac_header_preproc" >&6; }
9512
9513 # So? What about this header?
9514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9515 yes:no: )
9516 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9517 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9518 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9519 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9520 ac_header_preproc=yes
9521 ;;
9522 no:yes:* )
9523 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9524 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9525 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9526 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9527 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9528 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9529 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9530 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9531 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9532 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9533 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9534 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9535
9536 ;;
9537 esac
9538 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9539 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9540 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9541 echo $ECHO_N "(cached) $ECHO_C" >&6
9542 else
9543 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9544 fi
9545 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9546 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9547
9548 fi
9549 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9550 HAVE_CARBON=yes
9551 fi
9552
9553
9554 fi
9555 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9556 if test "${with_carbon+set}" != set \
9557 && test "${carbon_appdir_x+set}" != set; then
9558 for var in with_x with_x_toolkit with_gtk with_xim \
9559 with_xpm with_jpeg with_tiff with_gif with_png; do
9560 if eval test \"\${$var+set}\" = set; then
9561 HAVE_CARBON=no
9562 break
9563 fi
9564 done
9565 fi
9566 fi
9567 if test "${HAVE_CARBON}" = yes; then
9568 window_system=mac
9569 fi
9570
9571 case "${window_system}" in
9572 x11 )
9573 HAVE_X_WINDOWS=yes
9574 HAVE_X11=yes
9575 case "${with_x_toolkit}" in
9576 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9577 motif ) USE_X_TOOLKIT=MOTIF ;;
9578 gtk ) with_gtk=yes
9579 USE_X_TOOLKIT=none ;;
9580 no ) USE_X_TOOLKIT=none ;;
9581 * )
9582 if test x"$with_gtk" = xyes; then
9583 USE_X_TOOLKIT=none
9584 else
9585 USE_X_TOOLKIT=maybe
9586 fi
9587 ;;
9588 esac
9589 ;;
9590 mac | none )
9591 HAVE_X_WINDOWS=no
9592 HAVE_X11=no
9593 USE_X_TOOLKIT=none
9594 ;;
9595 esac
9596
9597 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9598 # Extract the first word of "X", so it can be a program name with args.
9599 set dummy X; ac_word=$2
9600 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9601 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9602 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9603 echo $ECHO_N "(cached) $ECHO_C" >&6
9604 else
9605 if test -n "$HAVE_XSERVER"; then
9606 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9607 else
9608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9609 for as_dir in $PATH
9610 do
9611 IFS=$as_save_IFS
9612 test -z "$as_dir" && as_dir=.
9613 for ac_exec_ext in '' $ac_executable_extensions; do
9614 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9615 ac_cv_prog_HAVE_XSERVER="true"
9616 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9617 break 2
9618 fi
9619 done
9620 done
9621 IFS=$as_save_IFS
9622
9623 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9624 fi
9625 fi
9626 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9627 if test -n "$HAVE_XSERVER"; then
9628 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9629 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9630 else
9631 { echo "$as_me:$LINENO: result: no" >&5
9632 echo "${ECHO_T}no" >&6; }
9633 fi
9634
9635
9636 if test "$HAVE_XSERVER" = true ||
9637 test -n "$DISPLAY" ||
9638 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9639 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9640 were found. You should install the relevant development files for X
9641 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9642 sure you have development files for image handling, i.e.
9643 tiff, gif, jpeg, png and xpm.
9644 If you are sure you want Emacs compiled without X window support, pass
9645 --without-x
9646 to configure." >&5
9647 echo "$as_me: error: You seem to be running X, but no X development libraries
9648 were found. You should install the relevant development files for X
9649 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9650 sure you have development files for image handling, i.e.
9651 tiff, gif, jpeg, png and xpm.
9652 If you are sure you want Emacs compiled without X window support, pass
9653 --without-x
9654 to configure." >&2;}
9655 { (exit 1); exit 1; }; }
9656 fi
9657 fi
9658
9659 ### If we're using X11, we should use the X menu package.
9660 HAVE_MENUS=no
9661 case ${HAVE_X11} in
9662 yes ) HAVE_MENUS=yes ;;
9663 esac
9664
9665 if test "${opsys}" = "hpux9"; then
9666 case "${x_libraries}" in
9667 *X11R4* )
9668 opsysfile="s/hpux9-x11r4.h"
9669 ;;
9670 esac
9671 fi
9672
9673 if test "${opsys}" = "hpux9shr"; then
9674 case "${x_libraries}" in
9675 *X11R4* )
9676 opsysfile="s/hpux9shxr4.h"
9677 ;;
9678 esac
9679 fi
9680
9681 ### Compute the unexec source name from the object name.
9682 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9683
9684 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9685 # Assume not, until told otherwise.
9686 GNU_MALLOC=yes
9687 doug_lea_malloc=yes
9688 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9689 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9690 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9691 echo $ECHO_N "(cached) $ECHO_C" >&6
9692 else
9693 cat >conftest.$ac_ext <<_ACEOF
9694 /* confdefs.h. */
9695 _ACEOF
9696 cat confdefs.h >>conftest.$ac_ext
9697 cat >>conftest.$ac_ext <<_ACEOF
9698 /* end confdefs.h. */
9699 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9700 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9701 #define malloc_get_state innocuous_malloc_get_state
9702
9703 /* System header to define __stub macros and hopefully few prototypes,
9704 which can conflict with char malloc_get_state (); below.
9705 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9706 <limits.h> exists even on freestanding compilers. */
9707
9708 #ifdef __STDC__
9709 # include <limits.h>
9710 #else
9711 # include <assert.h>
9712 #endif
9713
9714 #undef malloc_get_state
9715
9716 /* Override any GCC internal prototype to avoid an error.
9717 Use char because int might match the return type of a GCC
9718 builtin and then its argument prototype would still apply. */
9719 #ifdef __cplusplus
9720 extern "C"
9721 #endif
9722 char malloc_get_state ();
9723 /* The GNU C library defines this for functions which it implements
9724 to always fail with ENOSYS. Some functions are actually named
9725 something starting with __ and the normal name is an alias. */
9726 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9727 choke me
9728 #endif
9729
9730 int
9731 main ()
9732 {
9733 return malloc_get_state ();
9734 ;
9735 return 0;
9736 }
9737 _ACEOF
9738 rm -f conftest.$ac_objext conftest$ac_exeext
9739 if { (ac_try="$ac_link"
9740 case "(($ac_try" in
9741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9742 *) ac_try_echo=$ac_try;;
9743 esac
9744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9745 (eval "$ac_link") 2>conftest.er1
9746 ac_status=$?
9747 grep -v '^ *+' conftest.er1 >conftest.err
9748 rm -f conftest.er1
9749 cat conftest.err >&5
9750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9751 (exit $ac_status); } && {
9752 test -z "$ac_c_werror_flag" ||
9753 test ! -s conftest.err
9754 } && test -s conftest$ac_exeext &&
9755 $as_test_x conftest$ac_exeext; then
9756 ac_cv_func_malloc_get_state=yes
9757 else
9758 echo "$as_me: failed program was:" >&5
9759 sed 's/^/| /' conftest.$ac_ext >&5
9760
9761 ac_cv_func_malloc_get_state=no
9762 fi
9763
9764 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9765 conftest$ac_exeext conftest.$ac_ext
9766 fi
9767 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9768 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9769 if test $ac_cv_func_malloc_get_state = yes; then
9770 :
9771 else
9772 doug_lea_malloc=no
9773 fi
9774
9775 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9776 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9777 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9778 echo $ECHO_N "(cached) $ECHO_C" >&6
9779 else
9780 cat >conftest.$ac_ext <<_ACEOF
9781 /* confdefs.h. */
9782 _ACEOF
9783 cat confdefs.h >>conftest.$ac_ext
9784 cat >>conftest.$ac_ext <<_ACEOF
9785 /* end confdefs.h. */
9786 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9787 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9788 #define malloc_set_state innocuous_malloc_set_state
9789
9790 /* System header to define __stub macros and hopefully few prototypes,
9791 which can conflict with char malloc_set_state (); below.
9792 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9793 <limits.h> exists even on freestanding compilers. */
9794
9795 #ifdef __STDC__
9796 # include <limits.h>
9797 #else
9798 # include <assert.h>
9799 #endif
9800
9801 #undef malloc_set_state
9802
9803 /* Override any GCC internal prototype to avoid an error.
9804 Use char because int might match the return type of a GCC
9805 builtin and then its argument prototype would still apply. */
9806 #ifdef __cplusplus
9807 extern "C"
9808 #endif
9809 char malloc_set_state ();
9810 /* The GNU C library defines this for functions which it implements
9811 to always fail with ENOSYS. Some functions are actually named
9812 something starting with __ and the normal name is an alias. */
9813 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9814 choke me
9815 #endif
9816
9817 int
9818 main ()
9819 {
9820 return malloc_set_state ();
9821 ;
9822 return 0;
9823 }
9824 _ACEOF
9825 rm -f conftest.$ac_objext conftest$ac_exeext
9826 if { (ac_try="$ac_link"
9827 case "(($ac_try" in
9828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9829 *) ac_try_echo=$ac_try;;
9830 esac
9831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9832 (eval "$ac_link") 2>conftest.er1
9833 ac_status=$?
9834 grep -v '^ *+' conftest.er1 >conftest.err
9835 rm -f conftest.er1
9836 cat conftest.err >&5
9837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9838 (exit $ac_status); } && {
9839 test -z "$ac_c_werror_flag" ||
9840 test ! -s conftest.err
9841 } && test -s conftest$ac_exeext &&
9842 $as_test_x conftest$ac_exeext; then
9843 ac_cv_func_malloc_set_state=yes
9844 else
9845 echo "$as_me: failed program was:" >&5
9846 sed 's/^/| /' conftest.$ac_ext >&5
9847
9848 ac_cv_func_malloc_set_state=no
9849 fi
9850
9851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9852 conftest$ac_exeext conftest.$ac_ext
9853 fi
9854 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9855 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9856 if test $ac_cv_func_malloc_set_state = yes; then
9857 :
9858 else
9859 doug_lea_malloc=no
9860 fi
9861
9862 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9863 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9864 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9865 echo $ECHO_N "(cached) $ECHO_C" >&6
9866 else
9867 cat >conftest.$ac_ext <<_ACEOF
9868 /* confdefs.h. */
9869 _ACEOF
9870 cat confdefs.h >>conftest.$ac_ext
9871 cat >>conftest.$ac_ext <<_ACEOF
9872 /* end confdefs.h. */
9873 extern void (* __after_morecore_hook)();
9874 int
9875 main ()
9876 {
9877 __after_morecore_hook = 0
9878 ;
9879 return 0;
9880 }
9881 _ACEOF
9882 rm -f conftest.$ac_objext conftest$ac_exeext
9883 if { (ac_try="$ac_link"
9884 case "(($ac_try" in
9885 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9886 *) ac_try_echo=$ac_try;;
9887 esac
9888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9889 (eval "$ac_link") 2>conftest.er1
9890 ac_status=$?
9891 grep -v '^ *+' conftest.er1 >conftest.err
9892 rm -f conftest.er1
9893 cat conftest.err >&5
9894 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9895 (exit $ac_status); } && {
9896 test -z "$ac_c_werror_flag" ||
9897 test ! -s conftest.err
9898 } && test -s conftest$ac_exeext &&
9899 $as_test_x conftest$ac_exeext; then
9900 emacs_cv_var___after_morecore_hook=yes
9901 else
9902 echo "$as_me: failed program was:" >&5
9903 sed 's/^/| /' conftest.$ac_ext >&5
9904
9905 emacs_cv_var___after_morecore_hook=no
9906 fi
9907
9908 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9909 conftest$ac_exeext conftest.$ac_ext
9910 fi
9911 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9912 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9913 if test $emacs_cv_var___after_morecore_hook = no; then
9914 doug_lea_malloc=no
9915 fi
9916 if test "${system_malloc}" = "yes"; then
9917 GNU_MALLOC=no
9918 GNU_MALLOC_reason="
9919 (The GNU allocators don't work with this system configuration.)"
9920 fi
9921 if test "$doug_lea_malloc" = "yes" ; then
9922 if test "$GNU_MALLOC" = yes ; then
9923 GNU_MALLOC_reason="
9924 (Using Doug Lea's new malloc from the GNU C Library.)"
9925 fi
9926
9927 cat >>confdefs.h <<\_ACEOF
9928 #define DOUG_LEA_MALLOC 1
9929 _ACEOF
9930
9931 fi
9932
9933 if test x"${REL_ALLOC}" = x; then
9934 REL_ALLOC=${GNU_MALLOC}
9935 fi
9936
9937
9938
9939
9940 for ac_header in stdlib.h unistd.h
9941 do
9942 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9944 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9945 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9947 echo $ECHO_N "(cached) $ECHO_C" >&6
9948 fi
9949 ac_res=`eval echo '${'$as_ac_Header'}'`
9950 { echo "$as_me:$LINENO: result: $ac_res" >&5
9951 echo "${ECHO_T}$ac_res" >&6; }
9952 else
9953 # Is the header compilable?
9954 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9955 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9956 cat >conftest.$ac_ext <<_ACEOF
9957 /* confdefs.h. */
9958 _ACEOF
9959 cat confdefs.h >>conftest.$ac_ext
9960 cat >>conftest.$ac_ext <<_ACEOF
9961 /* end confdefs.h. */
9962 $ac_includes_default
9963 #include <$ac_header>
9964 _ACEOF
9965 rm -f conftest.$ac_objext
9966 if { (ac_try="$ac_compile"
9967 case "(($ac_try" in
9968 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9969 *) ac_try_echo=$ac_try;;
9970 esac
9971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9972 (eval "$ac_compile") 2>conftest.er1
9973 ac_status=$?
9974 grep -v '^ *+' conftest.er1 >conftest.err
9975 rm -f conftest.er1
9976 cat conftest.err >&5
9977 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9978 (exit $ac_status); } && {
9979 test -z "$ac_c_werror_flag" ||
9980 test ! -s conftest.err
9981 } && test -s conftest.$ac_objext; then
9982 ac_header_compiler=yes
9983 else
9984 echo "$as_me: failed program was:" >&5
9985 sed 's/^/| /' conftest.$ac_ext >&5
9986
9987 ac_header_compiler=no
9988 fi
9989
9990 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9991 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9992 echo "${ECHO_T}$ac_header_compiler" >&6; }
9993
9994 # Is the header present?
9995 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9996 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9997 cat >conftest.$ac_ext <<_ACEOF
9998 /* confdefs.h. */
9999 _ACEOF
10000 cat confdefs.h >>conftest.$ac_ext
10001 cat >>conftest.$ac_ext <<_ACEOF
10002 /* end confdefs.h. */
10003 #include <$ac_header>
10004 _ACEOF
10005 if { (ac_try="$ac_cpp conftest.$ac_ext"
10006 case "(($ac_try" in
10007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10008 *) ac_try_echo=$ac_try;;
10009 esac
10010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10011 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10012 ac_status=$?
10013 grep -v '^ *+' conftest.er1 >conftest.err
10014 rm -f conftest.er1
10015 cat conftest.err >&5
10016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10017 (exit $ac_status); } >/dev/null && {
10018 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10019 test ! -s conftest.err
10020 }; then
10021 ac_header_preproc=yes
10022 else
10023 echo "$as_me: failed program was:" >&5
10024 sed 's/^/| /' conftest.$ac_ext >&5
10025
10026 ac_header_preproc=no
10027 fi
10028
10029 rm -f conftest.err conftest.$ac_ext
10030 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10031 echo "${ECHO_T}$ac_header_preproc" >&6; }
10032
10033 # So? What about this header?
10034 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10035 yes:no: )
10036 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10037 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10038 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10039 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10040 ac_header_preproc=yes
10041 ;;
10042 no:yes:* )
10043 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10044 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10045 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10046 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10047 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10048 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10049 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10050 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10051 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10052 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10053 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10054 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10055
10056 ;;
10057 esac
10058 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10059 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10060 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10061 echo $ECHO_N "(cached) $ECHO_C" >&6
10062 else
10063 eval "$as_ac_Header=\$ac_header_preproc"
10064 fi
10065 ac_res=`eval echo '${'$as_ac_Header'}'`
10066 { echo "$as_me:$LINENO: result: $ac_res" >&5
10067 echo "${ECHO_T}$ac_res" >&6; }
10068
10069 fi
10070 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10071 cat >>confdefs.h <<_ACEOF
10072 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10073 _ACEOF
10074
10075 fi
10076
10077 done
10078
10079
10080 for ac_func in getpagesize
10081 do
10082 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10083 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10084 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10085 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10086 echo $ECHO_N "(cached) $ECHO_C" >&6
10087 else
10088 cat >conftest.$ac_ext <<_ACEOF
10089 /* confdefs.h. */
10090 _ACEOF
10091 cat confdefs.h >>conftest.$ac_ext
10092 cat >>conftest.$ac_ext <<_ACEOF
10093 /* end confdefs.h. */
10094 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10095 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10096 #define $ac_func innocuous_$ac_func
10097
10098 /* System header to define __stub macros and hopefully few prototypes,
10099 which can conflict with char $ac_func (); below.
10100 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10101 <limits.h> exists even on freestanding compilers. */
10102
10103 #ifdef __STDC__
10104 # include <limits.h>
10105 #else
10106 # include <assert.h>
10107 #endif
10108
10109 #undef $ac_func
10110
10111 /* Override any GCC internal prototype to avoid an error.
10112 Use char because int might match the return type of a GCC
10113 builtin and then its argument prototype would still apply. */
10114 #ifdef __cplusplus
10115 extern "C"
10116 #endif
10117 char $ac_func ();
10118 /* The GNU C library defines this for functions which it implements
10119 to always fail with ENOSYS. Some functions are actually named
10120 something starting with __ and the normal name is an alias. */
10121 #if defined __stub_$ac_func || defined __stub___$ac_func
10122 choke me
10123 #endif
10124
10125 int
10126 main ()
10127 {
10128 return $ac_func ();
10129 ;
10130 return 0;
10131 }
10132 _ACEOF
10133 rm -f conftest.$ac_objext conftest$ac_exeext
10134 if { (ac_try="$ac_link"
10135 case "(($ac_try" in
10136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10137 *) ac_try_echo=$ac_try;;
10138 esac
10139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10140 (eval "$ac_link") 2>conftest.er1
10141 ac_status=$?
10142 grep -v '^ *+' conftest.er1 >conftest.err
10143 rm -f conftest.er1
10144 cat conftest.err >&5
10145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10146 (exit $ac_status); } && {
10147 test -z "$ac_c_werror_flag" ||
10148 test ! -s conftest.err
10149 } && test -s conftest$ac_exeext &&
10150 $as_test_x conftest$ac_exeext; then
10151 eval "$as_ac_var=yes"
10152 else
10153 echo "$as_me: failed program was:" >&5
10154 sed 's/^/| /' conftest.$ac_ext >&5
10155
10156 eval "$as_ac_var=no"
10157 fi
10158
10159 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10160 conftest$ac_exeext conftest.$ac_ext
10161 fi
10162 ac_res=`eval echo '${'$as_ac_var'}'`
10163 { echo "$as_me:$LINENO: result: $ac_res" >&5
10164 echo "${ECHO_T}$ac_res" >&6; }
10165 if test `eval echo '${'$as_ac_var'}'` = yes; then
10166 cat >>confdefs.h <<_ACEOF
10167 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10168 _ACEOF
10169
10170 fi
10171 done
10172
10173 { echo "$as_me:$LINENO: checking for working mmap" >&5
10174 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10175 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10176 echo $ECHO_N "(cached) $ECHO_C" >&6
10177 else
10178 if test "$cross_compiling" = yes; then
10179 ac_cv_func_mmap_fixed_mapped=no
10180 else
10181 cat >conftest.$ac_ext <<_ACEOF
10182 /* confdefs.h. */
10183 _ACEOF
10184 cat confdefs.h >>conftest.$ac_ext
10185 cat >>conftest.$ac_ext <<_ACEOF
10186 /* end confdefs.h. */
10187 $ac_includes_default
10188 /* malloc might have been renamed as rpl_malloc. */
10189 #undef malloc
10190
10191 /* Thanks to Mike Haertel and Jim Avera for this test.
10192 Here is a matrix of mmap possibilities:
10193 mmap private not fixed
10194 mmap private fixed at somewhere currently unmapped
10195 mmap private fixed at somewhere already mapped
10196 mmap shared not fixed
10197 mmap shared fixed at somewhere currently unmapped
10198 mmap shared fixed at somewhere already mapped
10199 For private mappings, we should verify that changes cannot be read()
10200 back from the file, nor mmap's back from the file at a different
10201 address. (There have been systems where private was not correctly
10202 implemented like the infamous i386 svr4.0, and systems where the
10203 VM page cache was not coherent with the file system buffer cache
10204 like early versions of FreeBSD and possibly contemporary NetBSD.)
10205 For shared mappings, we should conversely verify that changes get
10206 propagated back to all the places they're supposed to be.
10207
10208 Grep wants private fixed already mapped.
10209 The main things grep needs to know about mmap are:
10210 * does it exist and is it safe to write into the mmap'd area
10211 * how to use it (BSD variants) */
10212
10213 #include <fcntl.h>
10214 #include <sys/mman.h>
10215
10216 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10217 char *malloc ();
10218 #endif
10219
10220 /* This mess was copied from the GNU getpagesize.h. */
10221 #ifndef HAVE_GETPAGESIZE
10222 /* Assume that all systems that can run configure have sys/param.h. */
10223 # ifndef HAVE_SYS_PARAM_H
10224 # define HAVE_SYS_PARAM_H 1
10225 # endif
10226
10227 # ifdef _SC_PAGESIZE
10228 # define getpagesize() sysconf(_SC_PAGESIZE)
10229 # else /* no _SC_PAGESIZE */
10230 # ifdef HAVE_SYS_PARAM_H
10231 # include <sys/param.h>
10232 # ifdef EXEC_PAGESIZE
10233 # define getpagesize() EXEC_PAGESIZE
10234 # else /* no EXEC_PAGESIZE */
10235 # ifdef NBPG
10236 # define getpagesize() NBPG * CLSIZE
10237 # ifndef CLSIZE
10238 # define CLSIZE 1
10239 # endif /* no CLSIZE */
10240 # else /* no NBPG */
10241 # ifdef NBPC
10242 # define getpagesize() NBPC
10243 # else /* no NBPC */
10244 # ifdef PAGESIZE
10245 # define getpagesize() PAGESIZE
10246 # endif /* PAGESIZE */
10247 # endif /* no NBPC */
10248 # endif /* no NBPG */
10249 # endif /* no EXEC_PAGESIZE */
10250 # else /* no HAVE_SYS_PARAM_H */
10251 # define getpagesize() 8192 /* punt totally */
10252 # endif /* no HAVE_SYS_PARAM_H */
10253 # endif /* no _SC_PAGESIZE */
10254
10255 #endif /* no HAVE_GETPAGESIZE */
10256
10257 int
10258 main ()
10259 {
10260 char *data, *data2, *data3;
10261 int i, pagesize;
10262 int fd;
10263
10264 pagesize = getpagesize ();
10265
10266 /* First, make a file with some known garbage in it. */
10267 data = (char *) malloc (pagesize);
10268 if (!data)
10269 return 1;
10270 for (i = 0; i < pagesize; ++i)
10271 *(data + i) = rand ();
10272 umask (0);
10273 fd = creat ("conftest.mmap", 0600);
10274 if (fd < 0)
10275 return 1;
10276 if (write (fd, data, pagesize) != pagesize)
10277 return 1;
10278 close (fd);
10279
10280 /* Next, try to mmap the file at a fixed address which already has
10281 something else allocated at it. If we can, also make sure that
10282 we see the same garbage. */
10283 fd = open ("conftest.mmap", O_RDWR);
10284 if (fd < 0)
10285 return 1;
10286 data2 = (char *) malloc (2 * pagesize);
10287 if (!data2)
10288 return 1;
10289 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10290 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10291 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10292 return 1;
10293 for (i = 0; i < pagesize; ++i)
10294 if (*(data + i) != *(data2 + i))
10295 return 1;
10296
10297 /* Finally, make sure that changes to the mapped area do not
10298 percolate back to the file as seen by read(). (This is a bug on
10299 some variants of i386 svr4.0.) */
10300 for (i = 0; i < pagesize; ++i)
10301 *(data2 + i) = *(data2 + i) + 1;
10302 data3 = (char *) malloc (pagesize);
10303 if (!data3)
10304 return 1;
10305 if (read (fd, data3, pagesize) != pagesize)
10306 return 1;
10307 for (i = 0; i < pagesize; ++i)
10308 if (*(data + i) != *(data3 + i))
10309 return 1;
10310 close (fd);
10311 return 0;
10312 }
10313 _ACEOF
10314 rm -f conftest$ac_exeext
10315 if { (ac_try="$ac_link"
10316 case "(($ac_try" in
10317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10318 *) ac_try_echo=$ac_try;;
10319 esac
10320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10321 (eval "$ac_link") 2>&5
10322 ac_status=$?
10323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10325 { (case "(($ac_try" in
10326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10327 *) ac_try_echo=$ac_try;;
10328 esac
10329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10330 (eval "$ac_try") 2>&5
10331 ac_status=$?
10332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10333 (exit $ac_status); }; }; then
10334 ac_cv_func_mmap_fixed_mapped=yes
10335 else
10336 echo "$as_me: program exited with status $ac_status" >&5
10337 echo "$as_me: failed program was:" >&5
10338 sed 's/^/| /' conftest.$ac_ext >&5
10339
10340 ( exit $ac_status )
10341 ac_cv_func_mmap_fixed_mapped=no
10342 fi
10343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10344 fi
10345
10346
10347 fi
10348 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10349 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10350 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10351
10352 cat >>confdefs.h <<\_ACEOF
10353 #define HAVE_MMAP 1
10354 _ACEOF
10355
10356 fi
10357 rm -f conftest.mmap
10358
10359 if test $use_mmap_for_buffers = yes; then
10360 REL_ALLOC=no
10361 fi
10362
10363 LIBS="$libsrc_libs $LIBS"
10364
10365
10366 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10367 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10368 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10369 echo $ECHO_N "(cached) $ECHO_C" >&6
10370 else
10371 ac_check_lib_save_LIBS=$LIBS
10372 LIBS="-ldnet $LIBS"
10373 cat >conftest.$ac_ext <<_ACEOF
10374 /* confdefs.h. */
10375 _ACEOF
10376 cat confdefs.h >>conftest.$ac_ext
10377 cat >>conftest.$ac_ext <<_ACEOF
10378 /* end confdefs.h. */
10379
10380 /* Override any GCC internal prototype to avoid an error.
10381 Use char because int might match the return type of a GCC
10382 builtin and then its argument prototype would still apply. */
10383 #ifdef __cplusplus
10384 extern "C"
10385 #endif
10386 char dnet_ntoa ();
10387 int
10388 main ()
10389 {
10390 return dnet_ntoa ();
10391 ;
10392 return 0;
10393 }
10394 _ACEOF
10395 rm -f conftest.$ac_objext conftest$ac_exeext
10396 if { (ac_try="$ac_link"
10397 case "(($ac_try" in
10398 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10399 *) ac_try_echo=$ac_try;;
10400 esac
10401 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10402 (eval "$ac_link") 2>conftest.er1
10403 ac_status=$?
10404 grep -v '^ *+' conftest.er1 >conftest.err
10405 rm -f conftest.er1
10406 cat conftest.err >&5
10407 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10408 (exit $ac_status); } && {
10409 test -z "$ac_c_werror_flag" ||
10410 test ! -s conftest.err
10411 } && test -s conftest$ac_exeext &&
10412 $as_test_x conftest$ac_exeext; then
10413 ac_cv_lib_dnet_dnet_ntoa=yes
10414 else
10415 echo "$as_me: failed program was:" >&5
10416 sed 's/^/| /' conftest.$ac_ext >&5
10417
10418 ac_cv_lib_dnet_dnet_ntoa=no
10419 fi
10420
10421 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10422 conftest$ac_exeext conftest.$ac_ext
10423 LIBS=$ac_check_lib_save_LIBS
10424 fi
10425 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10426 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10427 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10428 cat >>confdefs.h <<_ACEOF
10429 #define HAVE_LIBDNET 1
10430 _ACEOF
10431
10432 LIBS="-ldnet $LIBS"
10433
10434 fi
10435
10436
10437 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10438 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10439 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10440 echo $ECHO_N "(cached) $ECHO_C" >&6
10441 else
10442 ac_check_lib_save_LIBS=$LIBS
10443 LIBS="-lXbsd $LIBS"
10444 cat >conftest.$ac_ext <<_ACEOF
10445 /* confdefs.h. */
10446 _ACEOF
10447 cat confdefs.h >>conftest.$ac_ext
10448 cat >>conftest.$ac_ext <<_ACEOF
10449 /* end confdefs.h. */
10450
10451
10452 int
10453 main ()
10454 {
10455 return main ();
10456 ;
10457 return 0;
10458 }
10459 _ACEOF
10460 rm -f conftest.$ac_objext conftest$ac_exeext
10461 if { (ac_try="$ac_link"
10462 case "(($ac_try" in
10463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10464 *) ac_try_echo=$ac_try;;
10465 esac
10466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10467 (eval "$ac_link") 2>conftest.er1
10468 ac_status=$?
10469 grep -v '^ *+' conftest.er1 >conftest.err
10470 rm -f conftest.er1
10471 cat conftest.err >&5
10472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10473 (exit $ac_status); } && {
10474 test -z "$ac_c_werror_flag" ||
10475 test ! -s conftest.err
10476 } && test -s conftest$ac_exeext &&
10477 $as_test_x conftest$ac_exeext; then
10478 ac_cv_lib_Xbsd_main=yes
10479 else
10480 echo "$as_me: failed program was:" >&5
10481 sed 's/^/| /' conftest.$ac_ext >&5
10482
10483 ac_cv_lib_Xbsd_main=no
10484 fi
10485
10486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10487 conftest$ac_exeext conftest.$ac_ext
10488 LIBS=$ac_check_lib_save_LIBS
10489 fi
10490 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10491 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10492 if test $ac_cv_lib_Xbsd_main = yes; then
10493 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10494 fi
10495
10496
10497
10498 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10499 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10500 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10501 echo $ECHO_N "(cached) $ECHO_C" >&6
10502 else
10503 ac_check_lib_save_LIBS=$LIBS
10504 LIBS="-lpthreads $LIBS"
10505 cat >conftest.$ac_ext <<_ACEOF
10506 /* confdefs.h. */
10507 _ACEOF
10508 cat confdefs.h >>conftest.$ac_ext
10509 cat >>conftest.$ac_ext <<_ACEOF
10510 /* end confdefs.h. */
10511
10512 /* Override any GCC internal prototype to avoid an error.
10513 Use char because int might match the return type of a GCC
10514 builtin and then its argument prototype would still apply. */
10515 #ifdef __cplusplus
10516 extern "C"
10517 #endif
10518 char cma_open ();
10519 int
10520 main ()
10521 {
10522 return cma_open ();
10523 ;
10524 return 0;
10525 }
10526 _ACEOF
10527 rm -f conftest.$ac_objext conftest$ac_exeext
10528 if { (ac_try="$ac_link"
10529 case "(($ac_try" in
10530 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10531 *) ac_try_echo=$ac_try;;
10532 esac
10533 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10534 (eval "$ac_link") 2>conftest.er1
10535 ac_status=$?
10536 grep -v '^ *+' conftest.er1 >conftest.err
10537 rm -f conftest.er1
10538 cat conftest.err >&5
10539 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10540 (exit $ac_status); } && {
10541 test -z "$ac_c_werror_flag" ||
10542 test ! -s conftest.err
10543 } && test -s conftest$ac_exeext &&
10544 $as_test_x conftest$ac_exeext; then
10545 ac_cv_lib_pthreads_cma_open=yes
10546 else
10547 echo "$as_me: failed program was:" >&5
10548 sed 's/^/| /' conftest.$ac_ext >&5
10549
10550 ac_cv_lib_pthreads_cma_open=no
10551 fi
10552
10553 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10554 conftest$ac_exeext conftest.$ac_ext
10555 LIBS=$ac_check_lib_save_LIBS
10556 fi
10557 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10558 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10559 if test $ac_cv_lib_pthreads_cma_open = yes; then
10560 cat >>confdefs.h <<_ACEOF
10561 #define HAVE_LIBPTHREADS 1
10562 _ACEOF
10563
10564 LIBS="-lpthreads $LIBS"
10565
10566 fi
10567
10568
10569 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10570 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10571 if test -d /usr/X386/include; then
10572 HAVE_XFREE386=yes
10573 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10574 else
10575 HAVE_XFREE386=no
10576 fi
10577 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10578 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10579
10580
10581 case ${host_os} in
10582 aix*)
10583 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10584 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10585 if test "${gdb_cv_bigtoc+set}" = set; then
10586 echo $ECHO_N "(cached) $ECHO_C" >&6
10587 else
10588
10589 case $GCC in
10590 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10591 *) gdb_cv_bigtoc=-bbigtoc ;;
10592 esac
10593
10594 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10595 cat >conftest.$ac_ext <<_ACEOF
10596 /* confdefs.h. */
10597 _ACEOF
10598 cat confdefs.h >>conftest.$ac_ext
10599 cat >>conftest.$ac_ext <<_ACEOF
10600 /* end confdefs.h. */
10601
10602 int
10603 main ()
10604 {
10605 int i;
10606 ;
10607 return 0;
10608 }
10609 _ACEOF
10610 rm -f conftest.$ac_objext conftest$ac_exeext
10611 if { (ac_try="$ac_link"
10612 case "(($ac_try" in
10613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10614 *) ac_try_echo=$ac_try;;
10615 esac
10616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10617 (eval "$ac_link") 2>conftest.er1
10618 ac_status=$?
10619 grep -v '^ *+' conftest.er1 >conftest.err
10620 rm -f conftest.er1
10621 cat conftest.err >&5
10622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10623 (exit $ac_status); } && {
10624 test -z "$ac_c_werror_flag" ||
10625 test ! -s conftest.err
10626 } && test -s conftest$ac_exeext &&
10627 $as_test_x conftest$ac_exeext; then
10628 :
10629 else
10630 echo "$as_me: failed program was:" >&5
10631 sed 's/^/| /' conftest.$ac_ext >&5
10632
10633 gdb_cv_bigtoc=
10634 fi
10635
10636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10637 conftest$ac_exeext conftest.$ac_ext
10638
10639 fi
10640 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10641 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10642 ;;
10643 esac
10644
10645 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10646 # used for the tests that follow. We set them back to REAL_CFLAGS and
10647 # REAL_CPPFLAGS later on.
10648
10649 REAL_CPPFLAGS="$CPPFLAGS"
10650
10651 if test "${HAVE_X11}" = "yes"; then
10652 DEFS="$C_SWITCH_X_SITE $DEFS"
10653 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10654 LIBS="$LIBX $LIBS"
10655 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10656 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10657
10658 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10659 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10660 # but it's more convenient here to set LD_RUN_PATH
10661 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10662 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10663 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10664 export LD_RUN_PATH
10665 fi
10666
10667 if test "${opsys}" = "gnu-linux"; then
10668 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10669 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10670 cat >conftest.$ac_ext <<_ACEOF
10671 /* confdefs.h. */
10672 _ACEOF
10673 cat confdefs.h >>conftest.$ac_ext
10674 cat >>conftest.$ac_ext <<_ACEOF
10675 /* end confdefs.h. */
10676
10677 int
10678 main ()
10679 {
10680 XOpenDisplay ("foo");
10681 ;
10682 return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689 *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692 (eval "$ac_link") 2>conftest.er1
10693 ac_status=$?
10694 grep -v '^ *+' conftest.er1 >conftest.err
10695 rm -f conftest.er1
10696 cat conftest.err >&5
10697 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698 (exit $ac_status); } && {
10699 test -z "$ac_c_werror_flag" ||
10700 test ! -s conftest.err
10701 } && test -s conftest$ac_exeext &&
10702 $as_test_x conftest$ac_exeext; then
10703 xlinux_first_failure=no
10704 else
10705 echo "$as_me: failed program was:" >&5
10706 sed 's/^/| /' conftest.$ac_ext >&5
10707
10708 xlinux_first_failure=yes
10709 fi
10710
10711 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10712 conftest$ac_exeext conftest.$ac_ext
10713 if test "${xlinux_first_failure}" = "yes"; then
10714 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10715 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10716 OLD_CPPFLAGS="$CPPFLAGS"
10717 OLD_LIBS="$LIBS"
10718 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10719 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10720 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10721 LIBS="$LIBS -b i486-linuxaout"
10722 cat >conftest.$ac_ext <<_ACEOF
10723 /* confdefs.h. */
10724 _ACEOF
10725 cat confdefs.h >>conftest.$ac_ext
10726 cat >>conftest.$ac_ext <<_ACEOF
10727 /* end confdefs.h. */
10728
10729 int
10730 main ()
10731 {
10732 XOpenDisplay ("foo");
10733 ;
10734 return 0;
10735 }
10736 _ACEOF
10737 rm -f conftest.$ac_objext conftest$ac_exeext
10738 if { (ac_try="$ac_link"
10739 case "(($ac_try" in
10740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10741 *) ac_try_echo=$ac_try;;
10742 esac
10743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10744 (eval "$ac_link") 2>conftest.er1
10745 ac_status=$?
10746 grep -v '^ *+' conftest.er1 >conftest.err
10747 rm -f conftest.er1
10748 cat conftest.err >&5
10749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10750 (exit $ac_status); } && {
10751 test -z "$ac_c_werror_flag" ||
10752 test ! -s conftest.err
10753 } && test -s conftest$ac_exeext &&
10754 $as_test_x conftest$ac_exeext; then
10755 xlinux_second_failure=no
10756 else
10757 echo "$as_me: failed program was:" >&5
10758 sed 's/^/| /' conftest.$ac_ext >&5
10759
10760 xlinux_second_failure=yes
10761 fi
10762
10763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10764 conftest$ac_exeext conftest.$ac_ext
10765 if test "${xlinux_second_failure}" = "yes"; then
10766 # If we get the same failure with -b, there is no use adding -b.
10767 # So take it out. This plays safe.
10768 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10769 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10770 CPPFLAGS="$OLD_CPPFLAGS"
10771 LIBS="$OLD_LIBS"
10772 { echo "$as_me:$LINENO: result: no" >&5
10773 echo "${ECHO_T}no" >&6; }
10774 else
10775 { echo "$as_me:$LINENO: result: yes" >&5
10776 echo "${ECHO_T}yes" >&6; }
10777 fi
10778 else
10779 { echo "$as_me:$LINENO: result: no" >&5
10780 echo "${ECHO_T}no" >&6; }
10781 fi
10782 fi
10783
10784 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10785 # header files included from there.
10786 { echo "$as_me:$LINENO: checking for Xkb" >&5
10787 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10788 cat >conftest.$ac_ext <<_ACEOF
10789 /* confdefs.h. */
10790 _ACEOF
10791 cat confdefs.h >>conftest.$ac_ext
10792 cat >>conftest.$ac_ext <<_ACEOF
10793 /* end confdefs.h. */
10794 #include <X11/Xlib.h>
10795 #include <X11/XKBlib.h>
10796 int
10797 main ()
10798 {
10799 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10800 ;
10801 return 0;
10802 }
10803 _ACEOF
10804 rm -f conftest.$ac_objext conftest$ac_exeext
10805 if { (ac_try="$ac_link"
10806 case "(($ac_try" in
10807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10808 *) ac_try_echo=$ac_try;;
10809 esac
10810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10811 (eval "$ac_link") 2>conftest.er1
10812 ac_status=$?
10813 grep -v '^ *+' conftest.er1 >conftest.err
10814 rm -f conftest.er1
10815 cat conftest.err >&5
10816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10817 (exit $ac_status); } && {
10818 test -z "$ac_c_werror_flag" ||
10819 test ! -s conftest.err
10820 } && test -s conftest$ac_exeext &&
10821 $as_test_x conftest$ac_exeext; then
10822 emacs_xkb=yes
10823 else
10824 echo "$as_me: failed program was:" >&5
10825 sed 's/^/| /' conftest.$ac_ext >&5
10826
10827 emacs_xkb=no
10828 fi
10829
10830 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10831 conftest$ac_exeext conftest.$ac_ext
10832 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10833 echo "${ECHO_T}$emacs_xkb" >&6; }
10834 if test $emacs_xkb = yes; then
10835
10836 cat >>confdefs.h <<\_ACEOF
10837 #define HAVE_XKBGETKEYBOARD 1
10838 _ACEOF
10839
10840 fi
10841
10842
10843
10844
10845
10846 for ac_func in XrmSetDatabase XScreenResourceString \
10847 XScreenNumberOfScreen XSetWMProtocols
10848 do
10849 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10850 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10851 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10852 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10853 echo $ECHO_N "(cached) $ECHO_C" >&6
10854 else
10855 cat >conftest.$ac_ext <<_ACEOF
10856 /* confdefs.h. */
10857 _ACEOF
10858 cat confdefs.h >>conftest.$ac_ext
10859 cat >>conftest.$ac_ext <<_ACEOF
10860 /* end confdefs.h. */
10861 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10862 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10863 #define $ac_func innocuous_$ac_func
10864
10865 /* System header to define __stub macros and hopefully few prototypes,
10866 which can conflict with char $ac_func (); below.
10867 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10868 <limits.h> exists even on freestanding compilers. */
10869
10870 #ifdef __STDC__
10871 # include <limits.h>
10872 #else
10873 # include <assert.h>
10874 #endif
10875
10876 #undef $ac_func
10877
10878 /* Override any GCC internal prototype to avoid an error.
10879 Use char because int might match the return type of a GCC
10880 builtin and then its argument prototype would still apply. */
10881 #ifdef __cplusplus
10882 extern "C"
10883 #endif
10884 char $ac_func ();
10885 /* The GNU C library defines this for functions which it implements
10886 to always fail with ENOSYS. Some functions are actually named
10887 something starting with __ and the normal name is an alias. */
10888 #if defined __stub_$ac_func || defined __stub___$ac_func
10889 choke me
10890 #endif
10891
10892 int
10893 main ()
10894 {
10895 return $ac_func ();
10896 ;
10897 return 0;
10898 }
10899 _ACEOF
10900 rm -f conftest.$ac_objext conftest$ac_exeext
10901 if { (ac_try="$ac_link"
10902 case "(($ac_try" in
10903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10904 *) ac_try_echo=$ac_try;;
10905 esac
10906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10907 (eval "$ac_link") 2>conftest.er1
10908 ac_status=$?
10909 grep -v '^ *+' conftest.er1 >conftest.err
10910 rm -f conftest.er1
10911 cat conftest.err >&5
10912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10913 (exit $ac_status); } && {
10914 test -z "$ac_c_werror_flag" ||
10915 test ! -s conftest.err
10916 } && test -s conftest$ac_exeext &&
10917 $as_test_x conftest$ac_exeext; then
10918 eval "$as_ac_var=yes"
10919 else
10920 echo "$as_me: failed program was:" >&5
10921 sed 's/^/| /' conftest.$ac_ext >&5
10922
10923 eval "$as_ac_var=no"
10924 fi
10925
10926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10927 conftest$ac_exeext conftest.$ac_ext
10928 fi
10929 ac_res=`eval echo '${'$as_ac_var'}'`
10930 { echo "$as_me:$LINENO: result: $ac_res" >&5
10931 echo "${ECHO_T}$ac_res" >&6; }
10932 if test `eval echo '${'$as_ac_var'}'` = yes; then
10933 cat >>confdefs.h <<_ACEOF
10934 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10935 _ACEOF
10936
10937 fi
10938 done
10939
10940 fi
10941
10942 if test "${window_system}" = "x11"; then
10943 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10944 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10945 if test "${emacs_cv_x11_version_6+set}" = set; then
10946 echo $ECHO_N "(cached) $ECHO_C" >&6
10947 else
10948 cat >conftest.$ac_ext <<_ACEOF
10949 /* confdefs.h. */
10950 _ACEOF
10951 cat confdefs.h >>conftest.$ac_ext
10952 cat >>conftest.$ac_ext <<_ACEOF
10953 /* end confdefs.h. */
10954 #include <X11/Xlib.h>
10955 int
10956 main ()
10957 {
10958 #if XlibSpecificationRelease < 6
10959 fail;
10960 #endif
10961
10962 ;
10963 return 0;
10964 }
10965 _ACEOF
10966 rm -f conftest.$ac_objext conftest$ac_exeext
10967 if { (ac_try="$ac_link"
10968 case "(($ac_try" in
10969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10970 *) ac_try_echo=$ac_try;;
10971 esac
10972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10973 (eval "$ac_link") 2>conftest.er1
10974 ac_status=$?
10975 grep -v '^ *+' conftest.er1 >conftest.err
10976 rm -f conftest.er1
10977 cat conftest.err >&5
10978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10979 (exit $ac_status); } && {
10980 test -z "$ac_c_werror_flag" ||
10981 test ! -s conftest.err
10982 } && test -s conftest$ac_exeext &&
10983 $as_test_x conftest$ac_exeext; then
10984 emacs_cv_x11_version_6=yes
10985 else
10986 echo "$as_me: failed program was:" >&5
10987 sed 's/^/| /' conftest.$ac_ext >&5
10988
10989 emacs_cv_x11_version_6=no
10990 fi
10991
10992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10993 conftest$ac_exeext conftest.$ac_ext
10994 fi
10995
10996 if test $emacs_cv_x11_version_6 = yes; then
10997 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10998 echo "${ECHO_T}6 or newer" >&6; }
10999
11000 cat >>confdefs.h <<\_ACEOF
11001 #define HAVE_X11R6 1
11002 _ACEOF
11003
11004 else
11005 { echo "$as_me:$LINENO: result: before 6" >&5
11006 echo "${ECHO_T}before 6" >&6; }
11007 fi
11008 fi
11009
11010 if test "${window_system}" = "x11"; then
11011 { echo "$as_me:$LINENO: checking X11 version 5" >&5
11012 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
11013 if test "${emacs_cv_x11_version_5+set}" = set; then
11014 echo $ECHO_N "(cached) $ECHO_C" >&6
11015 else
11016 cat >conftest.$ac_ext <<_ACEOF
11017 /* confdefs.h. */
11018 _ACEOF
11019 cat confdefs.h >>conftest.$ac_ext
11020 cat >>conftest.$ac_ext <<_ACEOF
11021 /* end confdefs.h. */
11022 #include <X11/Xlib.h>
11023 int
11024 main ()
11025 {
11026 #if XlibSpecificationRelease < 5
11027 fail;
11028 #endif
11029
11030 ;
11031 return 0;
11032 }
11033 _ACEOF
11034 rm -f conftest.$ac_objext conftest$ac_exeext
11035 if { (ac_try="$ac_link"
11036 case "(($ac_try" in
11037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11038 *) ac_try_echo=$ac_try;;
11039 esac
11040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11041 (eval "$ac_link") 2>conftest.er1
11042 ac_status=$?
11043 grep -v '^ *+' conftest.er1 >conftest.err
11044 rm -f conftest.er1
11045 cat conftest.err >&5
11046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11047 (exit $ac_status); } && {
11048 test -z "$ac_c_werror_flag" ||
11049 test ! -s conftest.err
11050 } && test -s conftest$ac_exeext &&
11051 $as_test_x conftest$ac_exeext; then
11052 emacs_cv_x11_version_5=yes
11053 else
11054 echo "$as_me: failed program was:" >&5
11055 sed 's/^/| /' conftest.$ac_ext >&5
11056
11057 emacs_cv_x11_version_5=no
11058 fi
11059
11060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11061 conftest$ac_exeext conftest.$ac_ext
11062 fi
11063
11064 if test $emacs_cv_x11_version_5 = yes; then
11065 { echo "$as_me:$LINENO: result: 5 or newer" >&5
11066 echo "${ECHO_T}5 or newer" >&6; }
11067 HAVE_X11R5=yes
11068
11069 cat >>confdefs.h <<\_ACEOF
11070 #define HAVE_X11R5 1
11071 _ACEOF
11072
11073 else
11074 HAVE_X11R5=no
11075 { echo "$as_me:$LINENO: result: before 5" >&5
11076 echo "${ECHO_T}before 5" >&6; }
11077 fi
11078 fi
11079
11080 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11081 HAVE_RSVG=no
11082 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11083 if test "${with_rsvg}" != "no"; then
11084 if test "X${with_pkg_config_prog}" != X; then
11085 PKG_CONFIG="${with_pkg_config_prog}"
11086 fi
11087
11088 RSVG_REQUIRED=2.0.0
11089 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11090
11091
11092 succeeded=no
11093
11094 if test -z "$PKG_CONFIG"; then
11095 # Extract the first word of "pkg-config", so it can be a program name with args.
11096 set dummy pkg-config; ac_word=$2
11097 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11098 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11099 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11100 echo $ECHO_N "(cached) $ECHO_C" >&6
11101 else
11102 case $PKG_CONFIG in
11103 [\\/]* | ?:[\\/]*)
11104 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11105 ;;
11106 *)
11107 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11108 for as_dir in $PATH
11109 do
11110 IFS=$as_save_IFS
11111 test -z "$as_dir" && as_dir=.
11112 for ac_exec_ext in '' $ac_executable_extensions; do
11113 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11114 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11115 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11116 break 2
11117 fi
11118 done
11119 done
11120 IFS=$as_save_IFS
11121
11122 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11123 ;;
11124 esac
11125 fi
11126 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11127 if test -n "$PKG_CONFIG"; then
11128 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11129 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11130 else
11131 { echo "$as_me:$LINENO: result: no" >&5
11132 echo "${ECHO_T}no" >&6; }
11133 fi
11134
11135
11136 fi
11137
11138 if test "$PKG_CONFIG" = "no" ; then
11139 :
11140 else
11141 PKG_CONFIG_MIN_VERSION=0.9.0
11142 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11143 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11144 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11145
11146 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11147 { echo "$as_me:$LINENO: result: yes" >&5
11148 echo "${ECHO_T}yes" >&6; }
11149 succeeded=yes
11150
11151 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11152 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11153 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11154 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11155 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11156
11157 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11158 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11159 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11160 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11161 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11162 else
11163 { echo "$as_me:$LINENO: result: no" >&5
11164 echo "${ECHO_T}no" >&6; }
11165 RSVG_CFLAGS=""
11166 RSVG_LIBS=""
11167 ## If we have a custom action on failure, don't print errors, but
11168 ## do set a variable so people can do so.
11169 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11170
11171 fi
11172
11173
11174
11175 else
11176 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11177 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11178 fi
11179 fi
11180
11181 if test $succeeded = yes; then
11182 :
11183 else
11184 :
11185 fi
11186
11187
11188
11189
11190 if test ".${RSVG_CFLAGS}" != "."; then
11191 HAVE_RSVG=yes
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_RSVG 1
11195 _ACEOF
11196
11197 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11198 LIBS="$RSVG_LIBS $LIBS"
11199 fi
11200 fi
11201 fi
11202
11203
11204 HAVE_GTK=no
11205 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11206 USE_X_TOOLKIT=none
11207 fi
11208 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11209 test "$USE_X_TOOLKIT" = "maybe"; then
11210 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11211 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11212 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11213 { (exit 1); exit 1; }; };
11214 fi
11215 GLIB_REQUIRED=2.4
11216 GTK_REQUIRED=2.4
11217 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11218
11219 if test "X${with_pkg_config_prog}" != X; then
11220 PKG_CONFIG="${with_pkg_config_prog}"
11221 fi
11222
11223 succeeded=no
11224
11225 if test -z "$PKG_CONFIG"; then
11226 # Extract the first word of "pkg-config", so it can be a program name with args.
11227 set dummy pkg-config; ac_word=$2
11228 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11229 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11230 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11231 echo $ECHO_N "(cached) $ECHO_C" >&6
11232 else
11233 case $PKG_CONFIG in
11234 [\\/]* | ?:[\\/]*)
11235 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11236 ;;
11237 *)
11238 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11239 for as_dir in $PATH
11240 do
11241 IFS=$as_save_IFS
11242 test -z "$as_dir" && as_dir=.
11243 for ac_exec_ext in '' $ac_executable_extensions; do
11244 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11245 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11246 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11247 break 2
11248 fi
11249 done
11250 done
11251 IFS=$as_save_IFS
11252
11253 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11254 ;;
11255 esac
11256 fi
11257 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11258 if test -n "$PKG_CONFIG"; then
11259 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11260 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11261 else
11262 { echo "$as_me:$LINENO: result: no" >&5
11263 echo "${ECHO_T}no" >&6; }
11264 fi
11265
11266
11267 fi
11268
11269 if test "$PKG_CONFIG" = "no" ; then
11270 pkg_check_gtk=no
11271 else
11272 PKG_CONFIG_MIN_VERSION=0.9.0
11273 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11274 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11275 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11276
11277 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11278 { echo "$as_me:$LINENO: result: yes" >&5
11279 echo "${ECHO_T}yes" >&6; }
11280 succeeded=yes
11281
11282 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11283 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11284 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11285 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11286 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11287
11288 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11289 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11290 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11291 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11292 echo "${ECHO_T}$GTK_LIBS" >&6; }
11293 else
11294 { echo "$as_me:$LINENO: result: no" >&5
11295 echo "${ECHO_T}no" >&6; }
11296 GTK_CFLAGS=""
11297 GTK_LIBS=""
11298 ## If we have a custom action on failure, don't print errors, but
11299 ## do set a variable so people can do so.
11300 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11301
11302 fi
11303
11304
11305
11306 else
11307 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11308 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11309 fi
11310 fi
11311
11312 if test $succeeded = yes; then
11313 pkg_check_gtk=yes
11314 else
11315 pkg_check_gtk=no
11316 fi
11317
11318 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11319 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11320 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11321 { (exit 1); exit 1; }; }
11322 fi
11323 fi
11324
11325
11326 if test x"$pkg_check_gtk" = xyes; then
11327
11328
11329
11330 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11331 CFLAGS="$CFLAGS $GTK_CFLAGS"
11332 LIBS="$GTK_LIBS $LIBS"
11333 GTK_COMPILES=no
11334
11335 for ac_func in gtk_main
11336 do
11337 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11338 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11339 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11340 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11341 echo $ECHO_N "(cached) $ECHO_C" >&6
11342 else
11343 cat >conftest.$ac_ext <<_ACEOF
11344 /* confdefs.h. */
11345 _ACEOF
11346 cat confdefs.h >>conftest.$ac_ext
11347 cat >>conftest.$ac_ext <<_ACEOF
11348 /* end confdefs.h. */
11349 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11350 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11351 #define $ac_func innocuous_$ac_func
11352
11353 /* System header to define __stub macros and hopefully few prototypes,
11354 which can conflict with char $ac_func (); below.
11355 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11356 <limits.h> exists even on freestanding compilers. */
11357
11358 #ifdef __STDC__
11359 # include <limits.h>
11360 #else
11361 # include <assert.h>
11362 #endif
11363
11364 #undef $ac_func
11365
11366 /* Override any GCC internal prototype to avoid an error.
11367 Use char because int might match the return type of a GCC
11368 builtin and then its argument prototype would still apply. */
11369 #ifdef __cplusplus
11370 extern "C"
11371 #endif
11372 char $ac_func ();
11373 /* The GNU C library defines this for functions which it implements
11374 to always fail with ENOSYS. Some functions are actually named
11375 something starting with __ and the normal name is an alias. */
11376 #if defined __stub_$ac_func || defined __stub___$ac_func
11377 choke me
11378 #endif
11379
11380 int
11381 main ()
11382 {
11383 return $ac_func ();
11384 ;
11385 return 0;
11386 }
11387 _ACEOF
11388 rm -f conftest.$ac_objext conftest$ac_exeext
11389 if { (ac_try="$ac_link"
11390 case "(($ac_try" in
11391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11392 *) ac_try_echo=$ac_try;;
11393 esac
11394 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11395 (eval "$ac_link") 2>conftest.er1
11396 ac_status=$?
11397 grep -v '^ *+' conftest.er1 >conftest.err
11398 rm -f conftest.er1
11399 cat conftest.err >&5
11400 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11401 (exit $ac_status); } && {
11402 test -z "$ac_c_werror_flag" ||
11403 test ! -s conftest.err
11404 } && test -s conftest$ac_exeext &&
11405 $as_test_x conftest$ac_exeext; then
11406 eval "$as_ac_var=yes"
11407 else
11408 echo "$as_me: failed program was:" >&5
11409 sed 's/^/| /' conftest.$ac_ext >&5
11410
11411 eval "$as_ac_var=no"
11412 fi
11413
11414 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11415 conftest$ac_exeext conftest.$ac_ext
11416 fi
11417 ac_res=`eval echo '${'$as_ac_var'}'`
11418 { echo "$as_me:$LINENO: result: $ac_res" >&5
11419 echo "${ECHO_T}$ac_res" >&6; }
11420 if test `eval echo '${'$as_ac_var'}'` = yes; then
11421 cat >>confdefs.h <<_ACEOF
11422 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11423 _ACEOF
11424 GTK_COMPILES=yes
11425 fi
11426 done
11427
11428 if test "${GTK_COMPILES}" != "yes"; then
11429 if test "$USE_X_TOOLKIT" != "maybe"; then
11430 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11431 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11432 { (exit 1); exit 1; }; };
11433 fi
11434 else
11435 HAVE_GTK=yes
11436
11437 cat >>confdefs.h <<\_ACEOF
11438 #define HAVE_GTK 1
11439 _ACEOF
11440
11441 USE_X_TOOLKIT=none
11442 fi
11443
11444 fi
11445
11446
11447 if test "${HAVE_GTK}" = "yes"; then
11448
11449 if test "$with_toolkit_scroll_bars" != no; then
11450 with_toolkit_scroll_bars=yes
11451 fi
11452
11453
11454 for ac_func in gdk_display_open
11455 do
11456 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11457 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11458 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11459 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11460 echo $ECHO_N "(cached) $ECHO_C" >&6
11461 else
11462 cat >conftest.$ac_ext <<_ACEOF
11463 /* confdefs.h. */
11464 _ACEOF
11465 cat confdefs.h >>conftest.$ac_ext
11466 cat >>conftest.$ac_ext <<_ACEOF
11467 /* end confdefs.h. */
11468 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11469 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11470 #define $ac_func innocuous_$ac_func
11471
11472 /* System header to define __stub macros and hopefully few prototypes,
11473 which can conflict with char $ac_func (); below.
11474 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11475 <limits.h> exists even on freestanding compilers. */
11476
11477 #ifdef __STDC__
11478 # include <limits.h>
11479 #else
11480 # include <assert.h>
11481 #endif
11482
11483 #undef $ac_func
11484
11485 /* Override any GCC internal prototype to avoid an error.
11486 Use char because int might match the return type of a GCC
11487 builtin and then its argument prototype would still apply. */
11488 #ifdef __cplusplus
11489 extern "C"
11490 #endif
11491 char $ac_func ();
11492 /* The GNU C library defines this for functions which it implements
11493 to always fail with ENOSYS. Some functions are actually named
11494 something starting with __ and the normal name is an alias. */
11495 #if defined __stub_$ac_func || defined __stub___$ac_func
11496 choke me
11497 #endif
11498
11499 int
11500 main ()
11501 {
11502 return $ac_func ();
11503 ;
11504 return 0;
11505 }
11506 _ACEOF
11507 rm -f conftest.$ac_objext conftest$ac_exeext
11508 if { (ac_try="$ac_link"
11509 case "(($ac_try" in
11510 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11511 *) ac_try_echo=$ac_try;;
11512 esac
11513 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11514 (eval "$ac_link") 2>conftest.er1
11515 ac_status=$?
11516 grep -v '^ *+' conftest.er1 >conftest.err
11517 rm -f conftest.er1
11518 cat conftest.err >&5
11519 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520 (exit $ac_status); } && {
11521 test -z "$ac_c_werror_flag" ||
11522 test ! -s conftest.err
11523 } && test -s conftest$ac_exeext &&
11524 $as_test_x conftest$ac_exeext; then
11525 eval "$as_ac_var=yes"
11526 else
11527 echo "$as_me: failed program was:" >&5
11528 sed 's/^/| /' conftest.$ac_ext >&5
11529
11530 eval "$as_ac_var=no"
11531 fi
11532
11533 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11534 conftest$ac_exeext conftest.$ac_ext
11535 fi
11536 ac_res=`eval echo '${'$as_ac_var'}'`
11537 { echo "$as_me:$LINENO: result: $ac_res" >&5
11538 echo "${ECHO_T}$ac_res" >&6; }
11539 if test `eval echo '${'$as_ac_var'}'` = yes; then
11540 cat >>confdefs.h <<_ACEOF
11541 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11542 _ACEOF
11543 HAVE_GTK_MULTIDISPLAY=yes
11544 fi
11545 done
11546
11547 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11548
11549 cat >>confdefs.h <<\_ACEOF
11550 #define HAVE_GTK_MULTIDISPLAY 1
11551 _ACEOF
11552
11553 fi
11554
11555 HAVE_GTK_FILE_SELECTION=no
11556
11557 for ac_func in gtk_file_selection_new
11558 do
11559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11563 echo $ECHO_N "(cached) $ECHO_C" >&6
11564 else
11565 cat >conftest.$ac_ext <<_ACEOF
11566 /* confdefs.h. */
11567 _ACEOF
11568 cat confdefs.h >>conftest.$ac_ext
11569 cat >>conftest.$ac_ext <<_ACEOF
11570 /* end confdefs.h. */
11571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11572 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11573 #define $ac_func innocuous_$ac_func
11574
11575 /* System header to define __stub macros and hopefully few prototypes,
11576 which can conflict with char $ac_func (); below.
11577 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11578 <limits.h> exists even on freestanding compilers. */
11579
11580 #ifdef __STDC__
11581 # include <limits.h>
11582 #else
11583 # include <assert.h>
11584 #endif
11585
11586 #undef $ac_func
11587
11588 /* Override any GCC internal prototype to avoid an error.
11589 Use char because int might match the return type of a GCC
11590 builtin and then its argument prototype would still apply. */
11591 #ifdef __cplusplus
11592 extern "C"
11593 #endif
11594 char $ac_func ();
11595 /* The GNU C library defines this for functions which it implements
11596 to always fail with ENOSYS. Some functions are actually named
11597 something starting with __ and the normal name is an alias. */
11598 #if defined __stub_$ac_func || defined __stub___$ac_func
11599 choke me
11600 #endif
11601
11602 int
11603 main ()
11604 {
11605 return $ac_func ();
11606 ;
11607 return 0;
11608 }
11609 _ACEOF
11610 rm -f conftest.$ac_objext conftest$ac_exeext
11611 if { (ac_try="$ac_link"
11612 case "(($ac_try" in
11613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11614 *) ac_try_echo=$ac_try;;
11615 esac
11616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11617 (eval "$ac_link") 2>conftest.er1
11618 ac_status=$?
11619 grep -v '^ *+' conftest.er1 >conftest.err
11620 rm -f conftest.er1
11621 cat conftest.err >&5
11622 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11623 (exit $ac_status); } && {
11624 test -z "$ac_c_werror_flag" ||
11625 test ! -s conftest.err
11626 } && test -s conftest$ac_exeext &&
11627 $as_test_x conftest$ac_exeext; then
11628 eval "$as_ac_var=yes"
11629 else
11630 echo "$as_me: failed program was:" >&5
11631 sed 's/^/| /' conftest.$ac_ext >&5
11632
11633 eval "$as_ac_var=no"
11634 fi
11635
11636 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11637 conftest$ac_exeext conftest.$ac_ext
11638 fi
11639 ac_res=`eval echo '${'$as_ac_var'}'`
11640 { echo "$as_me:$LINENO: result: $ac_res" >&5
11641 echo "${ECHO_T}$ac_res" >&6; }
11642 if test `eval echo '${'$as_ac_var'}'` = yes; then
11643 cat >>confdefs.h <<_ACEOF
11644 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11645 _ACEOF
11646 HAVE_GTK_FILE_SELECTION=yes
11647 fi
11648 done
11649
11650
11651 HAVE_GTK_FILE_CHOOSER=no
11652
11653 for ac_func in gtk_file_chooser_dialog_new
11654 do
11655 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11656 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11657 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11658 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11659 echo $ECHO_N "(cached) $ECHO_C" >&6
11660 else
11661 cat >conftest.$ac_ext <<_ACEOF
11662 /* confdefs.h. */
11663 _ACEOF
11664 cat confdefs.h >>conftest.$ac_ext
11665 cat >>conftest.$ac_ext <<_ACEOF
11666 /* end confdefs.h. */
11667 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11668 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11669 #define $ac_func innocuous_$ac_func
11670
11671 /* System header to define __stub macros and hopefully few prototypes,
11672 which can conflict with char $ac_func (); below.
11673 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11674 <limits.h> exists even on freestanding compilers. */
11675
11676 #ifdef __STDC__
11677 # include <limits.h>
11678 #else
11679 # include <assert.h>
11680 #endif
11681
11682 #undef $ac_func
11683
11684 /* Override any GCC internal prototype to avoid an error.
11685 Use char because int might match the return type of a GCC
11686 builtin and then its argument prototype would still apply. */
11687 #ifdef __cplusplus
11688 extern "C"
11689 #endif
11690 char $ac_func ();
11691 /* The GNU C library defines this for functions which it implements
11692 to always fail with ENOSYS. Some functions are actually named
11693 something starting with __ and the normal name is an alias. */
11694 #if defined __stub_$ac_func || defined __stub___$ac_func
11695 choke me
11696 #endif
11697
11698 int
11699 main ()
11700 {
11701 return $ac_func ();
11702 ;
11703 return 0;
11704 }
11705 _ACEOF
11706 rm -f conftest.$ac_objext conftest$ac_exeext
11707 if { (ac_try="$ac_link"
11708 case "(($ac_try" in
11709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11710 *) ac_try_echo=$ac_try;;
11711 esac
11712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11713 (eval "$ac_link") 2>conftest.er1
11714 ac_status=$?
11715 grep -v '^ *+' conftest.er1 >conftest.err
11716 rm -f conftest.er1
11717 cat conftest.err >&5
11718 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719 (exit $ac_status); } && {
11720 test -z "$ac_c_werror_flag" ||
11721 test ! -s conftest.err
11722 } && test -s conftest$ac_exeext &&
11723 $as_test_x conftest$ac_exeext; then
11724 eval "$as_ac_var=yes"
11725 else
11726 echo "$as_me: failed program was:" >&5
11727 sed 's/^/| /' conftest.$ac_ext >&5
11728
11729 eval "$as_ac_var=no"
11730 fi
11731
11732 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11733 conftest$ac_exeext conftest.$ac_ext
11734 fi
11735 ac_res=`eval echo '${'$as_ac_var'}'`
11736 { echo "$as_me:$LINENO: result: $ac_res" >&5
11737 echo "${ECHO_T}$ac_res" >&6; }
11738 if test `eval echo '${'$as_ac_var'}'` = yes; then
11739 cat >>confdefs.h <<_ACEOF
11740 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11741 _ACEOF
11742 HAVE_GTK_FILE_CHOOSER=yes
11743 fi
11744 done
11745
11746
11747 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11748 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11749
11750 cat >>confdefs.h <<\_ACEOF
11751 #define HAVE_GTK_FILE_BOTH 1
11752 _ACEOF
11753
11754 fi
11755
11756 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11757 HAVE_GTK_AND_PTHREAD=no
11758
11759 for ac_header in pthread.h
11760 do
11761 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11762 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11763 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11764 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11766 echo $ECHO_N "(cached) $ECHO_C" >&6
11767 fi
11768 ac_res=`eval echo '${'$as_ac_Header'}'`
11769 { echo "$as_me:$LINENO: result: $ac_res" >&5
11770 echo "${ECHO_T}$ac_res" >&6; }
11771 else
11772 # Is the header compilable?
11773 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11774 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11775 cat >conftest.$ac_ext <<_ACEOF
11776 /* confdefs.h. */
11777 _ACEOF
11778 cat confdefs.h >>conftest.$ac_ext
11779 cat >>conftest.$ac_ext <<_ACEOF
11780 /* end confdefs.h. */
11781 $ac_includes_default
11782 #include <$ac_header>
11783 _ACEOF
11784 rm -f conftest.$ac_objext
11785 if { (ac_try="$ac_compile"
11786 case "(($ac_try" in
11787 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11788 *) ac_try_echo=$ac_try;;
11789 esac
11790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11791 (eval "$ac_compile") 2>conftest.er1
11792 ac_status=$?
11793 grep -v '^ *+' conftest.er1 >conftest.err
11794 rm -f conftest.er1
11795 cat conftest.err >&5
11796 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11797 (exit $ac_status); } && {
11798 test -z "$ac_c_werror_flag" ||
11799 test ! -s conftest.err
11800 } && test -s conftest.$ac_objext; then
11801 ac_header_compiler=yes
11802 else
11803 echo "$as_me: failed program was:" >&5
11804 sed 's/^/| /' conftest.$ac_ext >&5
11805
11806 ac_header_compiler=no
11807 fi
11808
11809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11810 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11811 echo "${ECHO_T}$ac_header_compiler" >&6; }
11812
11813 # Is the header present?
11814 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11815 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11816 cat >conftest.$ac_ext <<_ACEOF
11817 /* confdefs.h. */
11818 _ACEOF
11819 cat confdefs.h >>conftest.$ac_ext
11820 cat >>conftest.$ac_ext <<_ACEOF
11821 /* end confdefs.h. */
11822 #include <$ac_header>
11823 _ACEOF
11824 if { (ac_try="$ac_cpp conftest.$ac_ext"
11825 case "(($ac_try" in
11826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11827 *) ac_try_echo=$ac_try;;
11828 esac
11829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11830 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11831 ac_status=$?
11832 grep -v '^ *+' conftest.er1 >conftest.err
11833 rm -f conftest.er1
11834 cat conftest.err >&5
11835 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11836 (exit $ac_status); } >/dev/null && {
11837 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11838 test ! -s conftest.err
11839 }; then
11840 ac_header_preproc=yes
11841 else
11842 echo "$as_me: failed program was:" >&5
11843 sed 's/^/| /' conftest.$ac_ext >&5
11844
11845 ac_header_preproc=no
11846 fi
11847
11848 rm -f conftest.err conftest.$ac_ext
11849 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11850 echo "${ECHO_T}$ac_header_preproc" >&6; }
11851
11852 # So? What about this header?
11853 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11854 yes:no: )
11855 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11856 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11857 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11858 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11859 ac_header_preproc=yes
11860 ;;
11861 no:yes:* )
11862 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11863 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11864 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11865 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11866 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11867 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11868 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11869 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11870 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11871 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11872 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11873 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11874
11875 ;;
11876 esac
11877 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11878 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11879 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11880 echo $ECHO_N "(cached) $ECHO_C" >&6
11881 else
11882 eval "$as_ac_Header=\$ac_header_preproc"
11883 fi
11884 ac_res=`eval echo '${'$as_ac_Header'}'`
11885 { echo "$as_me:$LINENO: result: $ac_res" >&5
11886 echo "${ECHO_T}$ac_res" >&6; }
11887
11888 fi
11889 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11890 cat >>confdefs.h <<_ACEOF
11891 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11892 _ACEOF
11893
11894 fi
11895
11896 done
11897
11898 if test "$ac_cv_header_pthread_h"; then
11899 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11900 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11901 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11902 echo $ECHO_N "(cached) $ECHO_C" >&6
11903 else
11904 ac_check_lib_save_LIBS=$LIBS
11905 LIBS="-lpthread $LIBS"
11906 cat >conftest.$ac_ext <<_ACEOF
11907 /* confdefs.h. */
11908 _ACEOF
11909 cat confdefs.h >>conftest.$ac_ext
11910 cat >>conftest.$ac_ext <<_ACEOF
11911 /* end confdefs.h. */
11912
11913 /* Override any GCC internal prototype to avoid an error.
11914 Use char because int might match the return type of a GCC
11915 builtin and then its argument prototype would still apply. */
11916 #ifdef __cplusplus
11917 extern "C"
11918 #endif
11919 char pthread_self ();
11920 int
11921 main ()
11922 {
11923 return pthread_self ();
11924 ;
11925 return 0;
11926 }
11927 _ACEOF
11928 rm -f conftest.$ac_objext conftest$ac_exeext
11929 if { (ac_try="$ac_link"
11930 case "(($ac_try" in
11931 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11932 *) ac_try_echo=$ac_try;;
11933 esac
11934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11935 (eval "$ac_link") 2>conftest.er1
11936 ac_status=$?
11937 grep -v '^ *+' conftest.er1 >conftest.err
11938 rm -f conftest.er1
11939 cat conftest.err >&5
11940 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11941 (exit $ac_status); } && {
11942 test -z "$ac_c_werror_flag" ||
11943 test ! -s conftest.err
11944 } && test -s conftest$ac_exeext &&
11945 $as_test_x conftest$ac_exeext; then
11946 ac_cv_lib_pthread_pthread_self=yes
11947 else
11948 echo "$as_me: failed program was:" >&5
11949 sed 's/^/| /' conftest.$ac_ext >&5
11950
11951 ac_cv_lib_pthread_pthread_self=no
11952 fi
11953
11954 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11955 conftest$ac_exeext conftest.$ac_ext
11956 LIBS=$ac_check_lib_save_LIBS
11957 fi
11958 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11959 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11960 if test $ac_cv_lib_pthread_pthread_self = yes; then
11961 HAVE_GTK_AND_PTHREAD=yes
11962 fi
11963
11964 fi
11965 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11966 GTK_LIBS="$GTK_LIBS -lpthread"
11967
11968 cat >>confdefs.h <<\_ACEOF
11969 #define HAVE_GTK_AND_PTHREAD 1
11970 _ACEOF
11971
11972 fi
11973 fi
11974 fi
11975
11976 ### Link with -lXft if available to work around a bug.
11977 HAVE_XFT=maybe
11978 if test "${HAVE_GTK}" = "yes"; then
11979 if test "X${with_pkg_config_prog}" != X; then
11980 PKG_CONFIG="${with_pkg_config_prog}"
11981 fi
11982
11983
11984 succeeded=no
11985
11986 if test -z "$PKG_CONFIG"; then
11987 # Extract the first word of "pkg-config", so it can be a program name with args.
11988 set dummy pkg-config; ac_word=$2
11989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11992 echo $ECHO_N "(cached) $ECHO_C" >&6
11993 else
11994 case $PKG_CONFIG in
11995 [\\/]* | ?:[\\/]*)
11996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11997 ;;
11998 *)
11999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12000 for as_dir in $PATH
12001 do
12002 IFS=$as_save_IFS
12003 test -z "$as_dir" && as_dir=.
12004 for ac_exec_ext in '' $ac_executable_extensions; do
12005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12008 break 2
12009 fi
12010 done
12011 done
12012 IFS=$as_save_IFS
12013
12014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12015 ;;
12016 esac
12017 fi
12018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12019 if test -n "$PKG_CONFIG"; then
12020 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12021 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12022 else
12023 { echo "$as_me:$LINENO: result: no" >&5
12024 echo "${ECHO_T}no" >&6; }
12025 fi
12026
12027
12028 fi
12029
12030 if test "$PKG_CONFIG" = "no" ; then
12031 HAVE_XFT=no
12032 else
12033 PKG_CONFIG_MIN_VERSION=0.9.0
12034 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12035 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12036 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12037
12038 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12039 { echo "$as_me:$LINENO: result: yes" >&5
12040 echo "${ECHO_T}yes" >&6; }
12041 succeeded=yes
12042
12043 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12044 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12045 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12046 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12047 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12048
12049 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12050 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12051 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12052 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12053 echo "${ECHO_T}$XFT_LIBS" >&6; }
12054 else
12055 { echo "$as_me:$LINENO: result: no" >&5
12056 echo "${ECHO_T}no" >&6; }
12057 XFT_CFLAGS=""
12058 XFT_LIBS=""
12059 ## If we have a custom action on failure, don't print errors, but
12060 ## do set a variable so people can do so.
12061 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12062
12063 fi
12064
12065
12066
12067 else
12068 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12069 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12070 fi
12071 fi
12072
12073 if test $succeeded = yes; then
12074 :
12075 else
12076 HAVE_XFT=no
12077 fi
12078
12079 if test "$HAVE_XFT" != no; then
12080 OLD_CFLAGS="$CPPFLAGS"
12081 OLD_CPPFLAGS="$CFLAGS"
12082 OLD_LIBS="$LIBS"
12083 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12084 CFLAGS="$CFLAGS $XFT_CFLAGS"
12085 LIBS="$XFT_LIBS $LIBS"
12086 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12087 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12088 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12089 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12090 echo $ECHO_N "(cached) $ECHO_C" >&6
12091 fi
12092 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12093 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12094 else
12095 # Is the header compilable?
12096 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12097 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12098 cat >conftest.$ac_ext <<_ACEOF
12099 /* confdefs.h. */
12100 _ACEOF
12101 cat confdefs.h >>conftest.$ac_ext
12102 cat >>conftest.$ac_ext <<_ACEOF
12103 /* end confdefs.h. */
12104 $ac_includes_default
12105 #include <X11/Xft/Xft.h>
12106 _ACEOF
12107 rm -f conftest.$ac_objext
12108 if { (ac_try="$ac_compile"
12109 case "(($ac_try" in
12110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12111 *) ac_try_echo=$ac_try;;
12112 esac
12113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12114 (eval "$ac_compile") 2>conftest.er1
12115 ac_status=$?
12116 grep -v '^ *+' conftest.er1 >conftest.err
12117 rm -f conftest.er1
12118 cat conftest.err >&5
12119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12120 (exit $ac_status); } && {
12121 test -z "$ac_c_werror_flag" ||
12122 test ! -s conftest.err
12123 } && test -s conftest.$ac_objext; then
12124 ac_header_compiler=yes
12125 else
12126 echo "$as_me: failed program was:" >&5
12127 sed 's/^/| /' conftest.$ac_ext >&5
12128
12129 ac_header_compiler=no
12130 fi
12131
12132 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12133 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12134 echo "${ECHO_T}$ac_header_compiler" >&6; }
12135
12136 # Is the header present?
12137 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12138 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12139 cat >conftest.$ac_ext <<_ACEOF
12140 /* confdefs.h. */
12141 _ACEOF
12142 cat confdefs.h >>conftest.$ac_ext
12143 cat >>conftest.$ac_ext <<_ACEOF
12144 /* end confdefs.h. */
12145 #include <X11/Xft/Xft.h>
12146 _ACEOF
12147 if { (ac_try="$ac_cpp conftest.$ac_ext"
12148 case "(($ac_try" in
12149 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12150 *) ac_try_echo=$ac_try;;
12151 esac
12152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12153 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12154 ac_status=$?
12155 grep -v '^ *+' conftest.er1 >conftest.err
12156 rm -f conftest.er1
12157 cat conftest.err >&5
12158 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12159 (exit $ac_status); } >/dev/null && {
12160 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12161 test ! -s conftest.err
12162 }; then
12163 ac_header_preproc=yes
12164 else
12165 echo "$as_me: failed program was:" >&5
12166 sed 's/^/| /' conftest.$ac_ext >&5
12167
12168 ac_header_preproc=no
12169 fi
12170
12171 rm -f conftest.err conftest.$ac_ext
12172 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12173 echo "${ECHO_T}$ac_header_preproc" >&6; }
12174
12175 # So? What about this header?
12176 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12177 yes:no: )
12178 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12179 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12180 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12181 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12182 ac_header_preproc=yes
12183 ;;
12184 no:yes:* )
12185 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12186 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12187 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12188 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12189 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12190 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12191 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12192 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12193 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12194 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12195 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12196 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12197
12198 ;;
12199 esac
12200 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12201 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12202 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12203 echo $ECHO_N "(cached) $ECHO_C" >&6
12204 else
12205 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12206 fi
12207 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12208 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12209
12210 fi
12211 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12212 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12213 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12214 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12215 echo $ECHO_N "(cached) $ECHO_C" >&6
12216 else
12217 ac_check_lib_save_LIBS=$LIBS
12218 LIBS="-lXft $XFT_LIBS $LIBS"
12219 cat >conftest.$ac_ext <<_ACEOF
12220 /* confdefs.h. */
12221 _ACEOF
12222 cat confdefs.h >>conftest.$ac_ext
12223 cat >>conftest.$ac_ext <<_ACEOF
12224 /* end confdefs.h. */
12225
12226 /* Override any GCC internal prototype to avoid an error.
12227 Use char because int might match the return type of a GCC
12228 builtin and then its argument prototype would still apply. */
12229 #ifdef __cplusplus
12230 extern "C"
12231 #endif
12232 char XftFontOpen ();
12233 int
12234 main ()
12235 {
12236 return XftFontOpen ();
12237 ;
12238 return 0;
12239 }
12240 _ACEOF
12241 rm -f conftest.$ac_objext conftest$ac_exeext
12242 if { (ac_try="$ac_link"
12243 case "(($ac_try" in
12244 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245 *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248 (eval "$ac_link") 2>conftest.er1
12249 ac_status=$?
12250 grep -v '^ *+' conftest.er1 >conftest.err
12251 rm -f conftest.er1
12252 cat conftest.err >&5
12253 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254 (exit $ac_status); } && {
12255 test -z "$ac_c_werror_flag" ||
12256 test ! -s conftest.err
12257 } && test -s conftest$ac_exeext &&
12258 $as_test_x conftest$ac_exeext; then
12259 ac_cv_lib_Xft_XftFontOpen=yes
12260 else
12261 echo "$as_me: failed program was:" >&5
12262 sed 's/^/| /' conftest.$ac_ext >&5
12263
12264 ac_cv_lib_Xft_XftFontOpen=no
12265 fi
12266
12267 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12268 conftest$ac_exeext conftest.$ac_ext
12269 LIBS=$ac_check_lib_save_LIBS
12270 fi
12271 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12272 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12273 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12274 HAVE_XFT=yes
12275 fi
12276
12277 fi
12278
12279
12280
12281 if test "${HAVE_XFT}" = "yes"; then
12282
12283 cat >>confdefs.h <<\_ACEOF
12284 #define HAVE_XFT 1
12285 _ACEOF
12286
12287
12288 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12289 else
12290 CFLAGS="$OLD_CPPFLAGS"
12291 CFLAGS="$OLD_CFLAGS"
12292 LIBS="$OLD_LIBS"
12293 fi
12294 fi
12295 fi
12296
12297 HAVE_XAW3D=no
12298 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12299 if test x"${HAVE_X11R5}" != xyes; then
12300 USE_X_TOOLKIT=none
12301 else
12302 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12303 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12304 if test "${emacs_cv_xaw3d+set}" = set; then
12305 echo $ECHO_N "(cached) $ECHO_C" >&6
12306 else
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h. */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h. */
12313
12314 #include <X11/Intrinsic.h>
12315 #include <X11/Xaw3d/Simple.h>
12316 int
12317 main ()
12318 {
12319
12320 ;
12321 return 0;
12322 }
12323 _ACEOF
12324 rm -f conftest.$ac_objext conftest$ac_exeext
12325 if { (ac_try="$ac_link"
12326 case "(($ac_try" in
12327 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12328 *) ac_try_echo=$ac_try;;
12329 esac
12330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12331 (eval "$ac_link") 2>conftest.er1
12332 ac_status=$?
12333 grep -v '^ *+' conftest.er1 >conftest.err
12334 rm -f conftest.er1
12335 cat conftest.err >&5
12336 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12337 (exit $ac_status); } && {
12338 test -z "$ac_c_werror_flag" ||
12339 test ! -s conftest.err
12340 } && test -s conftest$ac_exeext &&
12341 $as_test_x conftest$ac_exeext; then
12342 emacs_cv_xaw3d=yes
12343 else
12344 echo "$as_me: failed program was:" >&5
12345 sed 's/^/| /' conftest.$ac_ext >&5
12346
12347 emacs_cv_xaw3d=no
12348 fi
12349
12350 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12351 conftest$ac_exeext conftest.$ac_ext
12352 fi
12353
12354 if test $emacs_cv_xaw3d = yes; then
12355 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12356 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12357 USE_X_TOOLKIT=LUCID
12358 HAVE_XAW3D=yes
12359
12360 cat >>confdefs.h <<\_ACEOF
12361 #define HAVE_XAW3D 1
12362 _ACEOF
12363
12364 else
12365 { echo "$as_me:$LINENO: result: no" >&5
12366 echo "${ECHO_T}no" >&6; }
12367 { echo "$as_me:$LINENO: checking for libXaw" >&5
12368 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12369 if test "${emacs_cv_xaw+set}" = set; then
12370 echo $ECHO_N "(cached) $ECHO_C" >&6
12371 else
12372 cat >conftest.$ac_ext <<_ACEOF
12373 /* confdefs.h. */
12374 _ACEOF
12375 cat confdefs.h >>conftest.$ac_ext
12376 cat >>conftest.$ac_ext <<_ACEOF
12377 /* end confdefs.h. */
12378
12379 #include <X11/Intrinsic.h>
12380 #include <X11/Xaw/Simple.h>
12381 int
12382 main ()
12383 {
12384
12385 ;
12386 return 0;
12387 }
12388 _ACEOF
12389 rm -f conftest.$ac_objext conftest$ac_exeext
12390 if { (ac_try="$ac_link"
12391 case "(($ac_try" in
12392 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12393 *) ac_try_echo=$ac_try;;
12394 esac
12395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12396 (eval "$ac_link") 2>conftest.er1
12397 ac_status=$?
12398 grep -v '^ *+' conftest.er1 >conftest.err
12399 rm -f conftest.er1
12400 cat conftest.err >&5
12401 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12402 (exit $ac_status); } && {
12403 test -z "$ac_c_werror_flag" ||
12404 test ! -s conftest.err
12405 } && test -s conftest$ac_exeext &&
12406 $as_test_x conftest$ac_exeext; then
12407 emacs_cv_xaw=yes
12408 else
12409 echo "$as_me: failed program was:" >&5
12410 sed 's/^/| /' conftest.$ac_ext >&5
12411
12412 emacs_cv_xaw=no
12413 fi
12414
12415 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12416 conftest$ac_exeext conftest.$ac_ext
12417 fi
12418
12419 if test $emacs_cv_xaw = yes; then
12420 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12421 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12422 USE_X_TOOLKIT=LUCID
12423 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12424 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12425 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12426 { (exit 1); exit 1; }; }
12427 else
12428 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12429 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12430 USE_X_TOOLKIT=none
12431 fi
12432 fi
12433 fi
12434 fi
12435
12436 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12437
12438 if test "${USE_X_TOOLKIT}" != "none"; then
12439 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12440 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12441 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12442 echo $ECHO_N "(cached) $ECHO_C" >&6
12443 else
12444 cat >conftest.$ac_ext <<_ACEOF
12445 /* confdefs.h. */
12446 _ACEOF
12447 cat confdefs.h >>conftest.$ac_ext
12448 cat >>conftest.$ac_ext <<_ACEOF
12449 /* end confdefs.h. */
12450 #include <X11/Intrinsic.h>
12451 int
12452 main ()
12453 {
12454 #if XtSpecificationRelease < 6
12455 fail;
12456 #endif
12457
12458 ;
12459 return 0;
12460 }
12461 _ACEOF
12462 rm -f conftest.$ac_objext conftest$ac_exeext
12463 if { (ac_try="$ac_link"
12464 case "(($ac_try" in
12465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12466 *) ac_try_echo=$ac_try;;
12467 esac
12468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12469 (eval "$ac_link") 2>conftest.er1
12470 ac_status=$?
12471 grep -v '^ *+' conftest.er1 >conftest.err
12472 rm -f conftest.er1
12473 cat conftest.err >&5
12474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12475 (exit $ac_status); } && {
12476 test -z "$ac_c_werror_flag" ||
12477 test ! -s conftest.err
12478 } && test -s conftest$ac_exeext &&
12479 $as_test_x conftest$ac_exeext; then
12480 emacs_cv_x11_toolkit_version_6=yes
12481 else
12482 echo "$as_me: failed program was:" >&5
12483 sed 's/^/| /' conftest.$ac_ext >&5
12484
12485 emacs_cv_x11_toolkit_version_6=no
12486 fi
12487
12488 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12489 conftest$ac_exeext conftest.$ac_ext
12490 fi
12491
12492 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12493 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12494 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12495 echo "${ECHO_T}6 or newer" >&6; }
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_X11XTR6 1
12499 _ACEOF
12500
12501 else
12502 { echo "$as_me:$LINENO: result: before 6" >&5
12503 echo "${ECHO_T}before 6" >&6; }
12504 fi
12505
12506 OLDLIBS="$LIBS"
12507 if test x$HAVE_X11XTR6 = xyes; then
12508 LIBS="-lXt -lSM -lICE $LIBS"
12509 else
12510 LIBS="-lXt $LIBS"
12511 fi
12512
12513 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12514 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12515 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12516 echo $ECHO_N "(cached) $ECHO_C" >&6
12517 else
12518 ac_check_lib_save_LIBS=$LIBS
12519 LIBS="-lXmu $LIBS"
12520 cat >conftest.$ac_ext <<_ACEOF
12521 /* confdefs.h. */
12522 _ACEOF
12523 cat confdefs.h >>conftest.$ac_ext
12524 cat >>conftest.$ac_ext <<_ACEOF
12525 /* end confdefs.h. */
12526
12527 /* Override any GCC internal prototype to avoid an error.
12528 Use char because int might match the return type of a GCC
12529 builtin and then its argument prototype would still apply. */
12530 #ifdef __cplusplus
12531 extern "C"
12532 #endif
12533 char XmuConvertStandardSelection ();
12534 int
12535 main ()
12536 {
12537 return XmuConvertStandardSelection ();
12538 ;
12539 return 0;
12540 }
12541 _ACEOF
12542 rm -f conftest.$ac_objext conftest$ac_exeext
12543 if { (ac_try="$ac_link"
12544 case "(($ac_try" in
12545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12546 *) ac_try_echo=$ac_try;;
12547 esac
12548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12549 (eval "$ac_link") 2>conftest.er1
12550 ac_status=$?
12551 grep -v '^ *+' conftest.er1 >conftest.err
12552 rm -f conftest.er1
12553 cat conftest.err >&5
12554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12555 (exit $ac_status); } && {
12556 test -z "$ac_c_werror_flag" ||
12557 test ! -s conftest.err
12558 } && test -s conftest$ac_exeext &&
12559 $as_test_x conftest$ac_exeext; then
12560 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12561 else
12562 echo "$as_me: failed program was:" >&5
12563 sed 's/^/| /' conftest.$ac_ext >&5
12564
12565 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12566 fi
12567
12568 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12569 conftest$ac_exeext conftest.$ac_ext
12570 LIBS=$ac_check_lib_save_LIBS
12571 fi
12572 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12573 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12574 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12575 cat >>confdefs.h <<_ACEOF
12576 #define HAVE_LIBXMU 1
12577 _ACEOF
12578
12579 LIBS="-lXmu $LIBS"
12580
12581 fi
12582
12583 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12584 fi
12585
12586 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12587 if test "${HAVE_X11}" = "yes"; then
12588 if test "${USE_X_TOOLKIT}" != "none"; then
12589
12590 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12591 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12592 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12593 echo $ECHO_N "(cached) $ECHO_C" >&6
12594 else
12595 ac_check_lib_save_LIBS=$LIBS
12596 LIBS="-lXext $LIBS"
12597 cat >conftest.$ac_ext <<_ACEOF
12598 /* confdefs.h. */
12599 _ACEOF
12600 cat confdefs.h >>conftest.$ac_ext
12601 cat >>conftest.$ac_ext <<_ACEOF
12602 /* end confdefs.h. */
12603
12604 /* Override any GCC internal prototype to avoid an error.
12605 Use char because int might match the return type of a GCC
12606 builtin and then its argument prototype would still apply. */
12607 #ifdef __cplusplus
12608 extern "C"
12609 #endif
12610 char XShapeQueryExtension ();
12611 int
12612 main ()
12613 {
12614 return XShapeQueryExtension ();
12615 ;
12616 return 0;
12617 }
12618 _ACEOF
12619 rm -f conftest.$ac_objext conftest$ac_exeext
12620 if { (ac_try="$ac_link"
12621 case "(($ac_try" in
12622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12623 *) ac_try_echo=$ac_try;;
12624 esac
12625 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12626 (eval "$ac_link") 2>conftest.er1
12627 ac_status=$?
12628 grep -v '^ *+' conftest.er1 >conftest.err
12629 rm -f conftest.er1
12630 cat conftest.err >&5
12631 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12632 (exit $ac_status); } && {
12633 test -z "$ac_c_werror_flag" ||
12634 test ! -s conftest.err
12635 } && test -s conftest$ac_exeext &&
12636 $as_test_x conftest$ac_exeext; then
12637 ac_cv_lib_Xext_XShapeQueryExtension=yes
12638 else
12639 echo "$as_me: failed program was:" >&5
12640 sed 's/^/| /' conftest.$ac_ext >&5
12641
12642 ac_cv_lib_Xext_XShapeQueryExtension=no
12643 fi
12644
12645 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12646 conftest$ac_exeext conftest.$ac_ext
12647 LIBS=$ac_check_lib_save_LIBS
12648 fi
12649 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12650 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12651 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12652 cat >>confdefs.h <<_ACEOF
12653 #define HAVE_LIBXEXT 1
12654 _ACEOF
12655
12656 LIBS="-lXext $LIBS"
12657
12658 fi
12659
12660 fi
12661 fi
12662
12663 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12664 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12665 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12666 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12667 echo $ECHO_N "(cached) $ECHO_C" >&6
12668 else
12669 cat >conftest.$ac_ext <<_ACEOF
12670 /* confdefs.h. */
12671 _ACEOF
12672 cat confdefs.h >>conftest.$ac_ext
12673 cat >>conftest.$ac_ext <<_ACEOF
12674 /* end confdefs.h. */
12675 #include <Xm/Xm.h>
12676 int
12677 main ()
12678 {
12679 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12680 int x = 5;
12681 #else
12682 Motif version prior to 2.1.
12683 #endif
12684 ;
12685 return 0;
12686 }
12687 _ACEOF
12688 rm -f conftest.$ac_objext
12689 if { (ac_try="$ac_compile"
12690 case "(($ac_try" in
12691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12692 *) ac_try_echo=$ac_try;;
12693 esac
12694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12695 (eval "$ac_compile") 2>conftest.er1
12696 ac_status=$?
12697 grep -v '^ *+' conftest.er1 >conftest.err
12698 rm -f conftest.er1
12699 cat conftest.err >&5
12700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12701 (exit $ac_status); } && {
12702 test -z "$ac_c_werror_flag" ||
12703 test ! -s conftest.err
12704 } && test -s conftest.$ac_objext; then
12705 emacs_cv_motif_version_2_1=yes
12706 else
12707 echo "$as_me: failed program was:" >&5
12708 sed 's/^/| /' conftest.$ac_ext >&5
12709
12710 emacs_cv_motif_version_2_1=no
12711 fi
12712
12713 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12714 fi
12715 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12716 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12717 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12718 if test $emacs_cv_motif_version_2_1 = yes; then
12719 HAVE_LIBXP=no
12720
12721 cat >>confdefs.h <<\_ACEOF
12722 #define HAVE_MOTIF_2_1 1
12723 _ACEOF
12724
12725 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12726 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12727 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12728 echo $ECHO_N "(cached) $ECHO_C" >&6
12729 else
12730 ac_check_lib_save_LIBS=$LIBS
12731 LIBS="-lXp $LIBS"
12732 cat >conftest.$ac_ext <<_ACEOF
12733 /* confdefs.h. */
12734 _ACEOF
12735 cat confdefs.h >>conftest.$ac_ext
12736 cat >>conftest.$ac_ext <<_ACEOF
12737 /* end confdefs.h. */
12738
12739 /* Override any GCC internal prototype to avoid an error.
12740 Use char because int might match the return type of a GCC
12741 builtin and then its argument prototype would still apply. */
12742 #ifdef __cplusplus
12743 extern "C"
12744 #endif
12745 char XpCreateContext ();
12746 int
12747 main ()
12748 {
12749 return XpCreateContext ();
12750 ;
12751 return 0;
12752 }
12753 _ACEOF
12754 rm -f conftest.$ac_objext conftest$ac_exeext
12755 if { (ac_try="$ac_link"
12756 case "(($ac_try" in
12757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12758 *) ac_try_echo=$ac_try;;
12759 esac
12760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12761 (eval "$ac_link") 2>conftest.er1
12762 ac_status=$?
12763 grep -v '^ *+' conftest.er1 >conftest.err
12764 rm -f conftest.er1
12765 cat conftest.err >&5
12766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12767 (exit $ac_status); } && {
12768 test -z "$ac_c_werror_flag" ||
12769 test ! -s conftest.err
12770 } && test -s conftest$ac_exeext &&
12771 $as_test_x conftest$ac_exeext; then
12772 ac_cv_lib_Xp_XpCreateContext=yes
12773 else
12774 echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777 ac_cv_lib_Xp_XpCreateContext=no
12778 fi
12779
12780 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12781 conftest$ac_exeext conftest.$ac_ext
12782 LIBS=$ac_check_lib_save_LIBS
12783 fi
12784 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12785 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12786 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12787 HAVE_LIBXP=yes
12788 fi
12789
12790 if test ${HAVE_LIBXP} = yes; then
12791
12792 cat >>confdefs.h <<\_ACEOF
12793 #define HAVE_LIBXP 1
12794 _ACEOF
12795
12796 fi
12797 else
12798 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12799 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12800 if test "${emacs_cv_lesstif+set}" = set; then
12801 echo $ECHO_N "(cached) $ECHO_C" >&6
12802 else
12803 # We put this in CFLAGS temporarily to precede other -I options
12804 # that might be in CFLAGS temporarily.
12805 # We put this in CPPFLAGS where it precedes the other -I options.
12806 OLD_CPPFLAGS=$CPPFLAGS
12807 OLD_CFLAGS=$CFLAGS
12808 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12809 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12810 cat >conftest.$ac_ext <<_ACEOF
12811 /* confdefs.h. */
12812 _ACEOF
12813 cat confdefs.h >>conftest.$ac_ext
12814 cat >>conftest.$ac_ext <<_ACEOF
12815 /* end confdefs.h. */
12816 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12817 int
12818 main ()
12819 {
12820 int x = 5;
12821 ;
12822 return 0;
12823 }
12824 _ACEOF
12825 rm -f conftest.$ac_objext
12826 if { (ac_try="$ac_compile"
12827 case "(($ac_try" in
12828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12829 *) ac_try_echo=$ac_try;;
12830 esac
12831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12832 (eval "$ac_compile") 2>conftest.er1
12833 ac_status=$?
12834 grep -v '^ *+' conftest.er1 >conftest.err
12835 rm -f conftest.er1
12836 cat conftest.err >&5
12837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12838 (exit $ac_status); } && {
12839 test -z "$ac_c_werror_flag" ||
12840 test ! -s conftest.err
12841 } && test -s conftest.$ac_objext; then
12842 emacs_cv_lesstif=yes
12843 else
12844 echo "$as_me: failed program was:" >&5
12845 sed 's/^/| /' conftest.$ac_ext >&5
12846
12847 emacs_cv_lesstif=no
12848 fi
12849
12850 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12851 fi
12852 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12853 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12854 if test $emacs_cv_lesstif = yes; then
12855 # Make sure this -I option remains in CPPFLAGS after it is set
12856 # back to REAL_CPPFLAGS.
12857 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12858 # have those other -I options anyway. Ultimately, having this
12859 # directory ultimately in CPPFLAGS will be enough.
12860 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12861 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12862 else
12863 CFLAGS=$OLD_CFLAGS
12864 CPPFLAGS=$OLD_CPPFLAGS
12865 fi
12866 fi
12867 fi
12868
12869
12870
12871 USE_TOOLKIT_SCROLL_BARS=no
12872 if test "${with_toolkit_scroll_bars}" != "no"; then
12873 if test "${USE_X_TOOLKIT}" != "none"; then
12874 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12875 cat >>confdefs.h <<\_ACEOF
12876 #define USE_TOOLKIT_SCROLL_BARS 1
12877 _ACEOF
12878
12879 HAVE_XAW3D=no
12880 USE_TOOLKIT_SCROLL_BARS=yes
12881 elif test "${HAVE_XAW3D}" = "yes"; then
12882 cat >>confdefs.h <<\_ACEOF
12883 #define USE_TOOLKIT_SCROLL_BARS 1
12884 _ACEOF
12885
12886 USE_TOOLKIT_SCROLL_BARS=yes
12887 fi
12888 elif test "${HAVE_GTK}" = "yes"; then
12889 cat >>confdefs.h <<\_ACEOF
12890 #define USE_TOOLKIT_SCROLL_BARS 1
12891 _ACEOF
12892
12893 USE_TOOLKIT_SCROLL_BARS=yes
12894 elif test "${HAVE_CARBON}" = "yes"; then
12895 cat >>confdefs.h <<\_ACEOF
12896 #define USE_TOOLKIT_SCROLL_BARS 1
12897 _ACEOF
12898
12899 USE_TOOLKIT_SCROLL_BARS=yes
12900 fi
12901 fi
12902
12903 cat >conftest.$ac_ext <<_ACEOF
12904 /* confdefs.h. */
12905 _ACEOF
12906 cat confdefs.h >>conftest.$ac_ext
12907 cat >>conftest.$ac_ext <<_ACEOF
12908 /* end confdefs.h. */
12909
12910 #include <X11/Xlib.h>
12911 #include <X11/Xresource.h>
12912 int
12913 main ()
12914 {
12915 XIMProc callback;
12916 ;
12917 return 0;
12918 }
12919 _ACEOF
12920 rm -f conftest.$ac_objext
12921 if { (ac_try="$ac_compile"
12922 case "(($ac_try" in
12923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12924 *) ac_try_echo=$ac_try;;
12925 esac
12926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12927 (eval "$ac_compile") 2>conftest.er1
12928 ac_status=$?
12929 grep -v '^ *+' conftest.er1 >conftest.err
12930 rm -f conftest.er1
12931 cat conftest.err >&5
12932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12933 (exit $ac_status); } && {
12934 test -z "$ac_c_werror_flag" ||
12935 test ! -s conftest.err
12936 } && test -s conftest.$ac_objext; then
12937 HAVE_XIM=yes
12938
12939 cat >>confdefs.h <<\_ACEOF
12940 #define HAVE_XIM 1
12941 _ACEOF
12942
12943 else
12944 echo "$as_me: failed program was:" >&5
12945 sed 's/^/| /' conftest.$ac_ext >&5
12946
12947 HAVE_XIM=no
12948 fi
12949
12950 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12951
12952
12953 if test "${with_xim}" != "no"; then
12954
12955 cat >>confdefs.h <<\_ACEOF
12956 #define USE_XIM 1
12957 _ACEOF
12958
12959 fi
12960
12961
12962 if test "${HAVE_XIM}" != "no"; then
12963 late_CFLAGS=$CFLAGS
12964 if test "$GCC" = yes; then
12965 CFLAGS="$CFLAGS --pedantic-errors"
12966 fi
12967 cat >conftest.$ac_ext <<_ACEOF
12968 /* confdefs.h. */
12969 _ACEOF
12970 cat confdefs.h >>conftest.$ac_ext
12971 cat >>conftest.$ac_ext <<_ACEOF
12972 /* end confdefs.h. */
12973
12974 #include <X11/Xlib.h>
12975 #include <X11/Xresource.h>
12976 int
12977 main ()
12978 {
12979 Display *display;
12980 XrmDatabase db;
12981 char *res_name;
12982 char *res_class;
12983 XIMProc callback;
12984 XPointer *client_data;
12985 #ifndef __GNUC__
12986 /* If we're not using GCC, it's probably not XFree86, and this is
12987 probably right, but we can't use something like --pedantic-errors. */
12988 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12989 char*, XIMProc, XPointer*);
12990 #endif
12991 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12992 client_data);
12993 ;
12994 return 0;
12995 }
12996 _ACEOF
12997 rm -f conftest.$ac_objext
12998 if { (ac_try="$ac_compile"
12999 case "(($ac_try" in
13000 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13001 *) ac_try_echo=$ac_try;;
13002 esac
13003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13004 (eval "$ac_compile") 2>conftest.er1
13005 ac_status=$?
13006 grep -v '^ *+' conftest.er1 >conftest.err
13007 rm -f conftest.er1
13008 cat conftest.err >&5
13009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13010 (exit $ac_status); } && {
13011 test -z "$ac_c_werror_flag" ||
13012 test ! -s conftest.err
13013 } && test -s conftest.$ac_objext; then
13014 emacs_cv_arg6_star=yes
13015 else
13016 echo "$as_me: failed program was:" >&5
13017 sed 's/^/| /' conftest.$ac_ext >&5
13018
13019
13020 fi
13021
13022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13023
13024 if test "$emacs_cv_arg6_star" = yes; then
13025 cat >>confdefs.h <<\_ACEOF
13026 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13027 _ACEOF
13028
13029 else
13030 cat >>confdefs.h <<\_ACEOF
13031 #define XRegisterIMInstantiateCallback_arg6 XPointer
13032 _ACEOF
13033
13034 fi
13035 CFLAGS=$late_CFLAGS
13036 fi
13037
13038 ### Use -lXpm if available, unless `--with-xpm=no'.
13039 HAVE_XPM=no
13040 if test "${HAVE_X11}" = "yes"; then
13041 if test "${with_xpm}" != "no"; then
13042 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13043 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13044 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13045 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13046 echo $ECHO_N "(cached) $ECHO_C" >&6
13047 fi
13048 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13049 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13050 else
13051 # Is the header compilable?
13052 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13053 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13054 cat >conftest.$ac_ext <<_ACEOF
13055 /* confdefs.h. */
13056 _ACEOF
13057 cat confdefs.h >>conftest.$ac_ext
13058 cat >>conftest.$ac_ext <<_ACEOF
13059 /* end confdefs.h. */
13060 $ac_includes_default
13061 #include <X11/xpm.h>
13062 _ACEOF
13063 rm -f conftest.$ac_objext
13064 if { (ac_try="$ac_compile"
13065 case "(($ac_try" in
13066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13067 *) ac_try_echo=$ac_try;;
13068 esac
13069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13070 (eval "$ac_compile") 2>conftest.er1
13071 ac_status=$?
13072 grep -v '^ *+' conftest.er1 >conftest.err
13073 rm -f conftest.er1
13074 cat conftest.err >&5
13075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13076 (exit $ac_status); } && {
13077 test -z "$ac_c_werror_flag" ||
13078 test ! -s conftest.err
13079 } && test -s conftest.$ac_objext; then
13080 ac_header_compiler=yes
13081 else
13082 echo "$as_me: failed program was:" >&5
13083 sed 's/^/| /' conftest.$ac_ext >&5
13084
13085 ac_header_compiler=no
13086 fi
13087
13088 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13089 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13090 echo "${ECHO_T}$ac_header_compiler" >&6; }
13091
13092 # Is the header present?
13093 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13094 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13095 cat >conftest.$ac_ext <<_ACEOF
13096 /* confdefs.h. */
13097 _ACEOF
13098 cat confdefs.h >>conftest.$ac_ext
13099 cat >>conftest.$ac_ext <<_ACEOF
13100 /* end confdefs.h. */
13101 #include <X11/xpm.h>
13102 _ACEOF
13103 if { (ac_try="$ac_cpp conftest.$ac_ext"
13104 case "(($ac_try" in
13105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13106 *) ac_try_echo=$ac_try;;
13107 esac
13108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13109 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13110 ac_status=$?
13111 grep -v '^ *+' conftest.er1 >conftest.err
13112 rm -f conftest.er1
13113 cat conftest.err >&5
13114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13115 (exit $ac_status); } >/dev/null && {
13116 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13117 test ! -s conftest.err
13118 }; then
13119 ac_header_preproc=yes
13120 else
13121 echo "$as_me: failed program was:" >&5
13122 sed 's/^/| /' conftest.$ac_ext >&5
13123
13124 ac_header_preproc=no
13125 fi
13126
13127 rm -f conftest.err conftest.$ac_ext
13128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13129 echo "${ECHO_T}$ac_header_preproc" >&6; }
13130
13131 # So? What about this header?
13132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13133 yes:no: )
13134 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13135 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13136 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13137 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13138 ac_header_preproc=yes
13139 ;;
13140 no:yes:* )
13141 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13142 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13143 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13144 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13145 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13146 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13147 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13148 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13149 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13150 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13151 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13152 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13153
13154 ;;
13155 esac
13156 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13157 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13158 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13159 echo $ECHO_N "(cached) $ECHO_C" >&6
13160 else
13161 ac_cv_header_X11_xpm_h=$ac_header_preproc
13162 fi
13163 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13164 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13165
13166 fi
13167 if test $ac_cv_header_X11_xpm_h = yes; then
13168 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13169 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13170 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13171 echo $ECHO_N "(cached) $ECHO_C" >&6
13172 else
13173 ac_check_lib_save_LIBS=$LIBS
13174 LIBS="-lXpm -lX11 $LIBS"
13175 cat >conftest.$ac_ext <<_ACEOF
13176 /* confdefs.h. */
13177 _ACEOF
13178 cat confdefs.h >>conftest.$ac_ext
13179 cat >>conftest.$ac_ext <<_ACEOF
13180 /* end confdefs.h. */
13181
13182 /* Override any GCC internal prototype to avoid an error.
13183 Use char because int might match the return type of a GCC
13184 builtin and then its argument prototype would still apply. */
13185 #ifdef __cplusplus
13186 extern "C"
13187 #endif
13188 char XpmReadFileToPixmap ();
13189 int
13190 main ()
13191 {
13192 return XpmReadFileToPixmap ();
13193 ;
13194 return 0;
13195 }
13196 _ACEOF
13197 rm -f conftest.$ac_objext conftest$ac_exeext
13198 if { (ac_try="$ac_link"
13199 case "(($ac_try" in
13200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13201 *) ac_try_echo=$ac_try;;
13202 esac
13203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13204 (eval "$ac_link") 2>conftest.er1
13205 ac_status=$?
13206 grep -v '^ *+' conftest.er1 >conftest.err
13207 rm -f conftest.er1
13208 cat conftest.err >&5
13209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13210 (exit $ac_status); } && {
13211 test -z "$ac_c_werror_flag" ||
13212 test ! -s conftest.err
13213 } && test -s conftest$ac_exeext &&
13214 $as_test_x conftest$ac_exeext; then
13215 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13216 else
13217 echo "$as_me: failed program was:" >&5
13218 sed 's/^/| /' conftest.$ac_ext >&5
13219
13220 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13221 fi
13222
13223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13224 conftest$ac_exeext conftest.$ac_ext
13225 LIBS=$ac_check_lib_save_LIBS
13226 fi
13227 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13228 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13229 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13230 HAVE_XPM=yes
13231 fi
13232
13233 fi
13234
13235
13236 if test "${HAVE_XPM}" = "yes"; then
13237 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13238 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13239 cat >conftest.$ac_ext <<_ACEOF
13240 /* confdefs.h. */
13241 _ACEOF
13242 cat confdefs.h >>conftest.$ac_ext
13243 cat >>conftest.$ac_ext <<_ACEOF
13244 /* end confdefs.h. */
13245 #include "X11/xpm.h"
13246 #ifndef XpmReturnAllocPixels
13247 no_return_alloc_pixels
13248 #endif
13249
13250 _ACEOF
13251 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13252 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13253 HAVE_XPM=no
13254 else
13255 HAVE_XPM=yes
13256 fi
13257 rm -f conftest*
13258
13259
13260 if test "${HAVE_XPM}" = "yes"; then
13261 { echo "$as_me:$LINENO: result: yes" >&5
13262 echo "${ECHO_T}yes" >&6; }
13263 else
13264 { echo "$as_me:$LINENO: result: no" >&5
13265 echo "${ECHO_T}no" >&6; }
13266 fi
13267 fi
13268 fi
13269
13270 if test "${HAVE_XPM}" = "yes"; then
13271
13272 cat >>confdefs.h <<\_ACEOF
13273 #define HAVE_XPM 1
13274 _ACEOF
13275
13276 fi
13277 fi
13278
13279 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13280 HAVE_JPEG=no
13281 if test "${HAVE_X11}" = "yes"; then
13282 if test "${with_jpeg}" != "no"; then
13283 if test "${ac_cv_header_jerror_h+set}" = set; then
13284 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13285 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13286 if test "${ac_cv_header_jerror_h+set}" = set; then
13287 echo $ECHO_N "(cached) $ECHO_C" >&6
13288 fi
13289 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13290 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13291 else
13292 # Is the header compilable?
13293 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13294 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13295 cat >conftest.$ac_ext <<_ACEOF
13296 /* confdefs.h. */
13297 _ACEOF
13298 cat confdefs.h >>conftest.$ac_ext
13299 cat >>conftest.$ac_ext <<_ACEOF
13300 /* end confdefs.h. */
13301 $ac_includes_default
13302 #include <jerror.h>
13303 _ACEOF
13304 rm -f conftest.$ac_objext
13305 if { (ac_try="$ac_compile"
13306 case "(($ac_try" in
13307 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13308 *) ac_try_echo=$ac_try;;
13309 esac
13310 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13311 (eval "$ac_compile") 2>conftest.er1
13312 ac_status=$?
13313 grep -v '^ *+' conftest.er1 >conftest.err
13314 rm -f conftest.er1
13315 cat conftest.err >&5
13316 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13317 (exit $ac_status); } && {
13318 test -z "$ac_c_werror_flag" ||
13319 test ! -s conftest.err
13320 } && test -s conftest.$ac_objext; then
13321 ac_header_compiler=yes
13322 else
13323 echo "$as_me: failed program was:" >&5
13324 sed 's/^/| /' conftest.$ac_ext >&5
13325
13326 ac_header_compiler=no
13327 fi
13328
13329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13330 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13331 echo "${ECHO_T}$ac_header_compiler" >&6; }
13332
13333 # Is the header present?
13334 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13335 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13336 cat >conftest.$ac_ext <<_ACEOF
13337 /* confdefs.h. */
13338 _ACEOF
13339 cat confdefs.h >>conftest.$ac_ext
13340 cat >>conftest.$ac_ext <<_ACEOF
13341 /* end confdefs.h. */
13342 #include <jerror.h>
13343 _ACEOF
13344 if { (ac_try="$ac_cpp conftest.$ac_ext"
13345 case "(($ac_try" in
13346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13347 *) ac_try_echo=$ac_try;;
13348 esac
13349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13351 ac_status=$?
13352 grep -v '^ *+' conftest.er1 >conftest.err
13353 rm -f conftest.er1
13354 cat conftest.err >&5
13355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13356 (exit $ac_status); } >/dev/null && {
13357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13358 test ! -s conftest.err
13359 }; then
13360 ac_header_preproc=yes
13361 else
13362 echo "$as_me: failed program was:" >&5
13363 sed 's/^/| /' conftest.$ac_ext >&5
13364
13365 ac_header_preproc=no
13366 fi
13367
13368 rm -f conftest.err conftest.$ac_ext
13369 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13370 echo "${ECHO_T}$ac_header_preproc" >&6; }
13371
13372 # So? What about this header?
13373 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13374 yes:no: )
13375 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13376 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13377 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13378 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13379 ac_header_preproc=yes
13380 ;;
13381 no:yes:* )
13382 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13383 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13384 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13385 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13386 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13387 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13388 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13389 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13390 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13391 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13392 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13393 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13394
13395 ;;
13396 esac
13397 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13398 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13399 if test "${ac_cv_header_jerror_h+set}" = set; then
13400 echo $ECHO_N "(cached) $ECHO_C" >&6
13401 else
13402 ac_cv_header_jerror_h=$ac_header_preproc
13403 fi
13404 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13405 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13406
13407 fi
13408 if test $ac_cv_header_jerror_h = yes; then
13409 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13410 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13411 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13412 echo $ECHO_N "(cached) $ECHO_C" >&6
13413 else
13414 ac_check_lib_save_LIBS=$LIBS
13415 LIBS="-ljpeg $LIBS"
13416 cat >conftest.$ac_ext <<_ACEOF
13417 /* confdefs.h. */
13418 _ACEOF
13419 cat confdefs.h >>conftest.$ac_ext
13420 cat >>conftest.$ac_ext <<_ACEOF
13421 /* end confdefs.h. */
13422
13423 /* Override any GCC internal prototype to avoid an error.
13424 Use char because int might match the return type of a GCC
13425 builtin and then its argument prototype would still apply. */
13426 #ifdef __cplusplus
13427 extern "C"
13428 #endif
13429 char jpeg_destroy_compress ();
13430 int
13431 main ()
13432 {
13433 return jpeg_destroy_compress ();
13434 ;
13435 return 0;
13436 }
13437 _ACEOF
13438 rm -f conftest.$ac_objext conftest$ac_exeext
13439 if { (ac_try="$ac_link"
13440 case "(($ac_try" in
13441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13442 *) ac_try_echo=$ac_try;;
13443 esac
13444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13445 (eval "$ac_link") 2>conftest.er1
13446 ac_status=$?
13447 grep -v '^ *+' conftest.er1 >conftest.err
13448 rm -f conftest.er1
13449 cat conftest.err >&5
13450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13451 (exit $ac_status); } && {
13452 test -z "$ac_c_werror_flag" ||
13453 test ! -s conftest.err
13454 } && test -s conftest$ac_exeext &&
13455 $as_test_x conftest$ac_exeext; then
13456 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13457 else
13458 echo "$as_me: failed program was:" >&5
13459 sed 's/^/| /' conftest.$ac_ext >&5
13460
13461 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13462 fi
13463
13464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13465 conftest$ac_exeext conftest.$ac_ext
13466 LIBS=$ac_check_lib_save_LIBS
13467 fi
13468 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13469 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13470 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13471 HAVE_JPEG=yes
13472 fi
13473
13474 fi
13475
13476
13477 fi
13478
13479
13480 if test "${HAVE_JPEG}" = "yes"; then
13481 cat >>confdefs.h <<\_ACEOF
13482 #define HAVE_JPEG 1
13483 _ACEOF
13484
13485 cat >conftest.$ac_ext <<_ACEOF
13486 /* confdefs.h. */
13487 _ACEOF
13488 cat confdefs.h >>conftest.$ac_ext
13489 cat >>conftest.$ac_ext <<_ACEOF
13490 /* end confdefs.h. */
13491 #include <jpeglib.h>
13492 version=JPEG_LIB_VERSION
13493
13494 _ACEOF
13495 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13496 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13497 cat >>confdefs.h <<\_ACEOF
13498 #define HAVE_JPEG 1
13499 _ACEOF
13500
13501 else
13502 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13503 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13504 HAVE_JPEG=no
13505 fi
13506 rm -f conftest*
13507
13508 fi
13509 fi
13510
13511 ### Use -lpng if available, unless `--with-png=no'.
13512 HAVE_PNG=no
13513 if test "${HAVE_X11}" = "yes"; then
13514 if test "${with_png}" != "no"; then
13515 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13516 # in /usr/include/libpng.
13517
13518
13519 for ac_header in png.h libpng/png.h
13520 do
13521 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13522 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13523 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13524 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13525 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13526 echo $ECHO_N "(cached) $ECHO_C" >&6
13527 fi
13528 ac_res=`eval echo '${'$as_ac_Header'}'`
13529 { echo "$as_me:$LINENO: result: $ac_res" >&5
13530 echo "${ECHO_T}$ac_res" >&6; }
13531 else
13532 # Is the header compilable?
13533 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13534 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13535 cat >conftest.$ac_ext <<_ACEOF
13536 /* confdefs.h. */
13537 _ACEOF
13538 cat confdefs.h >>conftest.$ac_ext
13539 cat >>conftest.$ac_ext <<_ACEOF
13540 /* end confdefs.h. */
13541 $ac_includes_default
13542 #include <$ac_header>
13543 _ACEOF
13544 rm -f conftest.$ac_objext
13545 if { (ac_try="$ac_compile"
13546 case "(($ac_try" in
13547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13548 *) ac_try_echo=$ac_try;;
13549 esac
13550 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13551 (eval "$ac_compile") 2>conftest.er1
13552 ac_status=$?
13553 grep -v '^ *+' conftest.er1 >conftest.err
13554 rm -f conftest.er1
13555 cat conftest.err >&5
13556 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13557 (exit $ac_status); } && {
13558 test -z "$ac_c_werror_flag" ||
13559 test ! -s conftest.err
13560 } && test -s conftest.$ac_objext; then
13561 ac_header_compiler=yes
13562 else
13563 echo "$as_me: failed program was:" >&5
13564 sed 's/^/| /' conftest.$ac_ext >&5
13565
13566 ac_header_compiler=no
13567 fi
13568
13569 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13570 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13571 echo "${ECHO_T}$ac_header_compiler" >&6; }
13572
13573 # Is the header present?
13574 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13575 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13576 cat >conftest.$ac_ext <<_ACEOF
13577 /* confdefs.h. */
13578 _ACEOF
13579 cat confdefs.h >>conftest.$ac_ext
13580 cat >>conftest.$ac_ext <<_ACEOF
13581 /* end confdefs.h. */
13582 #include <$ac_header>
13583 _ACEOF
13584 if { (ac_try="$ac_cpp conftest.$ac_ext"
13585 case "(($ac_try" in
13586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13587 *) ac_try_echo=$ac_try;;
13588 esac
13589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13590 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13591 ac_status=$?
13592 grep -v '^ *+' conftest.er1 >conftest.err
13593 rm -f conftest.er1
13594 cat conftest.err >&5
13595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13596 (exit $ac_status); } >/dev/null && {
13597 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13598 test ! -s conftest.err
13599 }; then
13600 ac_header_preproc=yes
13601 else
13602 echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605 ac_header_preproc=no
13606 fi
13607
13608 rm -f conftest.err conftest.$ac_ext
13609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13610 echo "${ECHO_T}$ac_header_preproc" >&6; }
13611
13612 # So? What about this header?
13613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13614 yes:no: )
13615 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13617 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13619 ac_header_preproc=yes
13620 ;;
13621 no:yes:* )
13622 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13624 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13625 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13626 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13628 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13629 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13630 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13632 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13634
13635 ;;
13636 esac
13637 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13638 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13639 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13640 echo $ECHO_N "(cached) $ECHO_C" >&6
13641 else
13642 eval "$as_ac_Header=\$ac_header_preproc"
13643 fi
13644 ac_res=`eval echo '${'$as_ac_Header'}'`
13645 { echo "$as_me:$LINENO: result: $ac_res" >&5
13646 echo "${ECHO_T}$ac_res" >&6; }
13647
13648 fi
13649 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13650 cat >>confdefs.h <<_ACEOF
13651 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13652 _ACEOF
13653
13654 fi
13655
13656 done
13657
13658 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13659 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13660 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13661 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 else
13664 ac_check_lib_save_LIBS=$LIBS
13665 LIBS="-lpng -lz -lm $LIBS"
13666 cat >conftest.$ac_ext <<_ACEOF
13667 /* confdefs.h. */
13668 _ACEOF
13669 cat confdefs.h >>conftest.$ac_ext
13670 cat >>conftest.$ac_ext <<_ACEOF
13671 /* end confdefs.h. */
13672
13673 /* Override any GCC internal prototype to avoid an error.
13674 Use char because int might match the return type of a GCC
13675 builtin and then its argument prototype would still apply. */
13676 #ifdef __cplusplus
13677 extern "C"
13678 #endif
13679 char png_get_channels ();
13680 int
13681 main ()
13682 {
13683 return png_get_channels ();
13684 ;
13685 return 0;
13686 }
13687 _ACEOF
13688 rm -f conftest.$ac_objext conftest$ac_exeext
13689 if { (ac_try="$ac_link"
13690 case "(($ac_try" in
13691 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13692 *) ac_try_echo=$ac_try;;
13693 esac
13694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13695 (eval "$ac_link") 2>conftest.er1
13696 ac_status=$?
13697 grep -v '^ *+' conftest.er1 >conftest.err
13698 rm -f conftest.er1
13699 cat conftest.err >&5
13700 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13701 (exit $ac_status); } && {
13702 test -z "$ac_c_werror_flag" ||
13703 test ! -s conftest.err
13704 } && test -s conftest$ac_exeext &&
13705 $as_test_x conftest$ac_exeext; then
13706 ac_cv_lib_png_png_get_channels=yes
13707 else
13708 echo "$as_me: failed program was:" >&5
13709 sed 's/^/| /' conftest.$ac_ext >&5
13710
13711 ac_cv_lib_png_png_get_channels=no
13712 fi
13713
13714 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13715 conftest$ac_exeext conftest.$ac_ext
13716 LIBS=$ac_check_lib_save_LIBS
13717 fi
13718 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13719 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13720 if test $ac_cv_lib_png_png_get_channels = yes; then
13721 HAVE_PNG=yes
13722 fi
13723
13724 fi
13725 fi
13726
13727 if test "${HAVE_PNG}" = "yes"; then
13728
13729 cat >>confdefs.h <<\_ACEOF
13730 #define HAVE_PNG 1
13731 _ACEOF
13732
13733 fi
13734 fi
13735
13736 ### Use -ltiff if available, unless `--with-tiff=no'.
13737 HAVE_TIFF=no
13738 if test "${HAVE_X11}" = "yes"; then
13739 if test "${with_tiff}" != "no"; then
13740 if test "${ac_cv_header_tiffio_h+set}" = set; then
13741 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13742 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13743 if test "${ac_cv_header_tiffio_h+set}" = set; then
13744 echo $ECHO_N "(cached) $ECHO_C" >&6
13745 fi
13746 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13747 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13748 else
13749 # Is the header compilable?
13750 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13751 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13752 cat >conftest.$ac_ext <<_ACEOF
13753 /* confdefs.h. */
13754 _ACEOF
13755 cat confdefs.h >>conftest.$ac_ext
13756 cat >>conftest.$ac_ext <<_ACEOF
13757 /* end confdefs.h. */
13758 $ac_includes_default
13759 #include <tiffio.h>
13760 _ACEOF
13761 rm -f conftest.$ac_objext
13762 if { (ac_try="$ac_compile"
13763 case "(($ac_try" in
13764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13765 *) ac_try_echo=$ac_try;;
13766 esac
13767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13768 (eval "$ac_compile") 2>conftest.er1
13769 ac_status=$?
13770 grep -v '^ *+' conftest.er1 >conftest.err
13771 rm -f conftest.er1
13772 cat conftest.err >&5
13773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774 (exit $ac_status); } && {
13775 test -z "$ac_c_werror_flag" ||
13776 test ! -s conftest.err
13777 } && test -s conftest.$ac_objext; then
13778 ac_header_compiler=yes
13779 else
13780 echo "$as_me: failed program was:" >&5
13781 sed 's/^/| /' conftest.$ac_ext >&5
13782
13783 ac_header_compiler=no
13784 fi
13785
13786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13787 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13788 echo "${ECHO_T}$ac_header_compiler" >&6; }
13789
13790 # Is the header present?
13791 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13792 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13793 cat >conftest.$ac_ext <<_ACEOF
13794 /* confdefs.h. */
13795 _ACEOF
13796 cat confdefs.h >>conftest.$ac_ext
13797 cat >>conftest.$ac_ext <<_ACEOF
13798 /* end confdefs.h. */
13799 #include <tiffio.h>
13800 _ACEOF
13801 if { (ac_try="$ac_cpp conftest.$ac_ext"
13802 case "(($ac_try" in
13803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13804 *) ac_try_echo=$ac_try;;
13805 esac
13806 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13807 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13808 ac_status=$?
13809 grep -v '^ *+' conftest.er1 >conftest.err
13810 rm -f conftest.er1
13811 cat conftest.err >&5
13812 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13813 (exit $ac_status); } >/dev/null && {
13814 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13815 test ! -s conftest.err
13816 }; then
13817 ac_header_preproc=yes
13818 else
13819 echo "$as_me: failed program was:" >&5
13820 sed 's/^/| /' conftest.$ac_ext >&5
13821
13822 ac_header_preproc=no
13823 fi
13824
13825 rm -f conftest.err conftest.$ac_ext
13826 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13827 echo "${ECHO_T}$ac_header_preproc" >&6; }
13828
13829 # So? What about this header?
13830 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13831 yes:no: )
13832 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13833 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13834 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13835 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13836 ac_header_preproc=yes
13837 ;;
13838 no:yes:* )
13839 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13840 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13841 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13842 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13843 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13844 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13845 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13846 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13847 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13848 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13849 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13850 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13851
13852 ;;
13853 esac
13854 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13855 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13856 if test "${ac_cv_header_tiffio_h+set}" = set; then
13857 echo $ECHO_N "(cached) $ECHO_C" >&6
13858 else
13859 ac_cv_header_tiffio_h=$ac_header_preproc
13860 fi
13861 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13862 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13863
13864 fi
13865 if test $ac_cv_header_tiffio_h = yes; then
13866 tifflibs="-lz -lm"
13867 # At least one tiff package requires the jpeg library.
13868 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13869 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13870 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13871 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13872 echo $ECHO_N "(cached) $ECHO_C" >&6
13873 else
13874 ac_check_lib_save_LIBS=$LIBS
13875 LIBS="-ltiff $tifflibs $LIBS"
13876 cat >conftest.$ac_ext <<_ACEOF
13877 /* confdefs.h. */
13878 _ACEOF
13879 cat confdefs.h >>conftest.$ac_ext
13880 cat >>conftest.$ac_ext <<_ACEOF
13881 /* end confdefs.h. */
13882
13883 /* Override any GCC internal prototype to avoid an error.
13884 Use char because int might match the return type of a GCC
13885 builtin and then its argument prototype would still apply. */
13886 #ifdef __cplusplus
13887 extern "C"
13888 #endif
13889 char TIFFGetVersion ();
13890 int
13891 main ()
13892 {
13893 return TIFFGetVersion ();
13894 ;
13895 return 0;
13896 }
13897 _ACEOF
13898 rm -f conftest.$ac_objext conftest$ac_exeext
13899 if { (ac_try="$ac_link"
13900 case "(($ac_try" in
13901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13902 *) ac_try_echo=$ac_try;;
13903 esac
13904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13905 (eval "$ac_link") 2>conftest.er1
13906 ac_status=$?
13907 grep -v '^ *+' conftest.er1 >conftest.err
13908 rm -f conftest.er1
13909 cat conftest.err >&5
13910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13911 (exit $ac_status); } && {
13912 test -z "$ac_c_werror_flag" ||
13913 test ! -s conftest.err
13914 } && test -s conftest$ac_exeext &&
13915 $as_test_x conftest$ac_exeext; then
13916 ac_cv_lib_tiff_TIFFGetVersion=yes
13917 else
13918 echo "$as_me: failed program was:" >&5
13919 sed 's/^/| /' conftest.$ac_ext >&5
13920
13921 ac_cv_lib_tiff_TIFFGetVersion=no
13922 fi
13923
13924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13925 conftest$ac_exeext conftest.$ac_ext
13926 LIBS=$ac_check_lib_save_LIBS
13927 fi
13928 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
13929 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
13930 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
13931 HAVE_TIFF=yes
13932 fi
13933
13934 fi
13935
13936
13937 fi
13938
13939 if test "${HAVE_TIFF}" = "yes"; then
13940
13941 cat >>confdefs.h <<\_ACEOF
13942 #define HAVE_TIFF 1
13943 _ACEOF
13944
13945 fi
13946 fi
13947
13948 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
13949 HAVE_GIF=no
13950 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
13951 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13952 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
13953 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
13954 if test "${ac_cv_header_gif_lib_h+set}" = set; then
13955 echo $ECHO_N "(cached) $ECHO_C" >&6
13956 fi
13957 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
13958 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
13959 else
13960 # Is the header compilable?
13961 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
13962 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
13963 cat >conftest.$ac_ext <<_ACEOF
13964 /* confdefs.h. */
13965 _ACEOF
13966 cat confdefs.h >>conftest.$ac_ext
13967 cat >>conftest.$ac_ext <<_ACEOF
13968 /* end confdefs.h. */
13969 $ac_includes_default
13970 #include <gif_lib.h>
13971 _ACEOF
13972 rm -f conftest.$ac_objext
13973 if { (ac_try="$ac_compile"
13974 case "(($ac_try" in
13975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13976 *) ac_try_echo=$ac_try;;
13977 esac
13978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13979 (eval "$ac_compile") 2>conftest.er1
13980 ac_status=$?
13981 grep -v '^ *+' conftest.er1 >conftest.err
13982 rm -f conftest.er1
13983 cat conftest.err >&5
13984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13985 (exit $ac_status); } && {
13986 test -z "$ac_c_werror_flag" ||
13987 test ! -s conftest.err
13988 } && test -s conftest.$ac_objext; then
13989 ac_header_compiler=yes
13990 else
13991 echo "$as_me: failed program was:" >&5
13992 sed 's/^/| /' conftest.$ac_ext >&5
13993
13994 ac_header_compiler=no
13995 fi
13996
13997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13998 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13999 echo "${ECHO_T}$ac_header_compiler" >&6; }
14000
14001 # Is the header present?
14002 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14003 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14004 cat >conftest.$ac_ext <<_ACEOF
14005 /* confdefs.h. */
14006 _ACEOF
14007 cat confdefs.h >>conftest.$ac_ext
14008 cat >>conftest.$ac_ext <<_ACEOF
14009 /* end confdefs.h. */
14010 #include <gif_lib.h>
14011 _ACEOF
14012 if { (ac_try="$ac_cpp conftest.$ac_ext"
14013 case "(($ac_try" in
14014 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14015 *) ac_try_echo=$ac_try;;
14016 esac
14017 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14018 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14019 ac_status=$?
14020 grep -v '^ *+' conftest.er1 >conftest.err
14021 rm -f conftest.er1
14022 cat conftest.err >&5
14023 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14024 (exit $ac_status); } >/dev/null && {
14025 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14026 test ! -s conftest.err
14027 }; then
14028 ac_header_preproc=yes
14029 else
14030 echo "$as_me: failed program was:" >&5
14031 sed 's/^/| /' conftest.$ac_ext >&5
14032
14033 ac_header_preproc=no
14034 fi
14035
14036 rm -f conftest.err conftest.$ac_ext
14037 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14038 echo "${ECHO_T}$ac_header_preproc" >&6; }
14039
14040 # So? What about this header?
14041 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14042 yes:no: )
14043 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14044 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14045 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14046 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14047 ac_header_preproc=yes
14048 ;;
14049 no:yes:* )
14050 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14051 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14052 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14053 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14054 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14055 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14056 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14057 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14058 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14059 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14060 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14061 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14062
14063 ;;
14064 esac
14065 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14066 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14067 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14068 echo $ECHO_N "(cached) $ECHO_C" >&6
14069 else
14070 ac_cv_header_gif_lib_h=$ac_header_preproc
14071 fi
14072 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14073 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14074
14075 fi
14076 if test $ac_cv_header_gif_lib_h = yes; then
14077 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14078 # Earlier versions can crash Emacs.
14079 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14080 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14081 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14082 echo $ECHO_N "(cached) $ECHO_C" >&6
14083 else
14084 ac_check_lib_save_LIBS=$LIBS
14085 LIBS="-lgif $LIBS"
14086 cat >conftest.$ac_ext <<_ACEOF
14087 /* confdefs.h. */
14088 _ACEOF
14089 cat confdefs.h >>conftest.$ac_ext
14090 cat >>conftest.$ac_ext <<_ACEOF
14091 /* end confdefs.h. */
14092
14093 /* Override any GCC internal prototype to avoid an error.
14094 Use char because int might match the return type of a GCC
14095 builtin and then its argument prototype would still apply. */
14096 #ifdef __cplusplus
14097 extern "C"
14098 #endif
14099 char EGifPutExtensionLast ();
14100 int
14101 main ()
14102 {
14103 return EGifPutExtensionLast ();
14104 ;
14105 return 0;
14106 }
14107 _ACEOF
14108 rm -f conftest.$ac_objext conftest$ac_exeext
14109 if { (ac_try="$ac_link"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_link") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest$ac_exeext &&
14125 $as_test_x conftest$ac_exeext; then
14126 ac_cv_lib_gif_EGifPutExtensionLast=yes
14127 else
14128 echo "$as_me: failed program was:" >&5
14129 sed 's/^/| /' conftest.$ac_ext >&5
14130
14131 ac_cv_lib_gif_EGifPutExtensionLast=no
14132 fi
14133
14134 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14135 conftest$ac_exeext conftest.$ac_ext
14136 LIBS=$ac_check_lib_save_LIBS
14137 fi
14138 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14139 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14140 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14141 HAVE_GIF=yes
14142 else
14143 try_libungif=yes
14144 fi
14145
14146 fi
14147
14148
14149
14150 if test "$HAVE_GIF" = yes; then
14151 ac_gif_lib_name="-lgif"
14152 fi
14153
14154 # If gif_lib.h but no libgif, try libungif.
14155 if test x"$try_libungif" = xyes; then
14156 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14157 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14158 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14159 echo $ECHO_N "(cached) $ECHO_C" >&6
14160 else
14161 ac_check_lib_save_LIBS=$LIBS
14162 LIBS="-lungif $LIBS"
14163 cat >conftest.$ac_ext <<_ACEOF
14164 /* confdefs.h. */
14165 _ACEOF
14166 cat confdefs.h >>conftest.$ac_ext
14167 cat >>conftest.$ac_ext <<_ACEOF
14168 /* end confdefs.h. */
14169
14170 /* Override any GCC internal prototype to avoid an error.
14171 Use char because int might match the return type of a GCC
14172 builtin and then its argument prototype would still apply. */
14173 #ifdef __cplusplus
14174 extern "C"
14175 #endif
14176 char EGifPutExtensionLast ();
14177 int
14178 main ()
14179 {
14180 return EGifPutExtensionLast ();
14181 ;
14182 return 0;
14183 }
14184 _ACEOF
14185 rm -f conftest.$ac_objext conftest$ac_exeext
14186 if { (ac_try="$ac_link"
14187 case "(($ac_try" in
14188 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189 *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192 (eval "$ac_link") 2>conftest.er1
14193 ac_status=$?
14194 grep -v '^ *+' conftest.er1 >conftest.err
14195 rm -f conftest.er1
14196 cat conftest.err >&5
14197 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14198 (exit $ac_status); } && {
14199 test -z "$ac_c_werror_flag" ||
14200 test ! -s conftest.err
14201 } && test -s conftest$ac_exeext &&
14202 $as_test_x conftest$ac_exeext; then
14203 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14204 else
14205 echo "$as_me: failed program was:" >&5
14206 sed 's/^/| /' conftest.$ac_ext >&5
14207
14208 ac_cv_lib_ungif_EGifPutExtensionLast=no
14209 fi
14210
14211 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14212 conftest$ac_exeext conftest.$ac_ext
14213 LIBS=$ac_check_lib_save_LIBS
14214 fi
14215 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14216 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14217 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14218 HAVE_GIF=yes
14219 fi
14220
14221
14222 if test "$HAVE_GIF" = yes; then
14223
14224 cat >>confdefs.h <<\_ACEOF
14225 #define LIBGIF -lungif
14226 _ACEOF
14227
14228 ac_gif_lib_name="-lungif"
14229 fi
14230 fi
14231
14232 if test "${HAVE_GIF}" = "yes"; then
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_GIF 1
14236 _ACEOF
14237
14238 fi
14239 fi
14240
14241 if test "${HAVE_X11}" = "yes"; then
14242 MISSING=""
14243 WITH_NO=""
14244 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14245 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14246 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14247 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14248 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14249 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14250 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14251 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14252 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14253 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14254
14255 if test "X${MISSING}" != X; then
14256 { { echo "$as_me:$LINENO: error: The following required libraries was not found:
14257 $MISSING
14258 Maybe some development libraries/packages are missing?
14259 If you don't want to link with them give
14260 $WITH_NO
14261 as options to configure" >&5
14262 echo "$as_me: error: The following required libraries was not found:
14263 $MISSING
14264 Maybe some development libraries/packages are missing?
14265 If you don't want to link with them give
14266 $WITH_NO
14267 as options to configure" >&2;}
14268 { (exit 1); exit 1; }; }
14269 fi
14270 fi
14271
14272 ### Use -lgpm if available, unless `--with-gpm=no'.
14273 HAVE_GPM=no
14274 if test "${with_gpm}" != "no"; then
14275 if test "${ac_cv_header_gpm_h+set}" = set; then
14276 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14277 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14278 if test "${ac_cv_header_gpm_h+set}" = set; then
14279 echo $ECHO_N "(cached) $ECHO_C" >&6
14280 fi
14281 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14282 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14283 else
14284 # Is the header compilable?
14285 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14286 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14287 cat >conftest.$ac_ext <<_ACEOF
14288 /* confdefs.h. */
14289 _ACEOF
14290 cat confdefs.h >>conftest.$ac_ext
14291 cat >>conftest.$ac_ext <<_ACEOF
14292 /* end confdefs.h. */
14293 $ac_includes_default
14294 #include <gpm.h>
14295 _ACEOF
14296 rm -f conftest.$ac_objext
14297 if { (ac_try="$ac_compile"
14298 case "(($ac_try" in
14299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14300 *) ac_try_echo=$ac_try;;
14301 esac
14302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14303 (eval "$ac_compile") 2>conftest.er1
14304 ac_status=$?
14305 grep -v '^ *+' conftest.er1 >conftest.err
14306 rm -f conftest.er1
14307 cat conftest.err >&5
14308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14309 (exit $ac_status); } && {
14310 test -z "$ac_c_werror_flag" ||
14311 test ! -s conftest.err
14312 } && test -s conftest.$ac_objext; then
14313 ac_header_compiler=yes
14314 else
14315 echo "$as_me: failed program was:" >&5
14316 sed 's/^/| /' conftest.$ac_ext >&5
14317
14318 ac_header_compiler=no
14319 fi
14320
14321 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14322 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14323 echo "${ECHO_T}$ac_header_compiler" >&6; }
14324
14325 # Is the header present?
14326 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14327 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14328 cat >conftest.$ac_ext <<_ACEOF
14329 /* confdefs.h. */
14330 _ACEOF
14331 cat confdefs.h >>conftest.$ac_ext
14332 cat >>conftest.$ac_ext <<_ACEOF
14333 /* end confdefs.h. */
14334 #include <gpm.h>
14335 _ACEOF
14336 if { (ac_try="$ac_cpp conftest.$ac_ext"
14337 case "(($ac_try" in
14338 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14339 *) ac_try_echo=$ac_try;;
14340 esac
14341 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14342 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14343 ac_status=$?
14344 grep -v '^ *+' conftest.er1 >conftest.err
14345 rm -f conftest.er1
14346 cat conftest.err >&5
14347 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14348 (exit $ac_status); } >/dev/null && {
14349 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14350 test ! -s conftest.err
14351 }; then
14352 ac_header_preproc=yes
14353 else
14354 echo "$as_me: failed program was:" >&5
14355 sed 's/^/| /' conftest.$ac_ext >&5
14356
14357 ac_header_preproc=no
14358 fi
14359
14360 rm -f conftest.err conftest.$ac_ext
14361 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14362 echo "${ECHO_T}$ac_header_preproc" >&6; }
14363
14364 # So? What about this header?
14365 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14366 yes:no: )
14367 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14368 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14369 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14370 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14371 ac_header_preproc=yes
14372 ;;
14373 no:yes:* )
14374 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14375 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14376 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14377 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14378 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14379 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14380 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14381 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14382 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14383 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14384 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14385 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14386
14387 ;;
14388 esac
14389 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14390 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14391 if test "${ac_cv_header_gpm_h+set}" = set; then
14392 echo $ECHO_N "(cached) $ECHO_C" >&6
14393 else
14394 ac_cv_header_gpm_h=$ac_header_preproc
14395 fi
14396 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14397 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14398
14399 fi
14400 if test $ac_cv_header_gpm_h = yes; then
14401 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14402 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14403 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14404 echo $ECHO_N "(cached) $ECHO_C" >&6
14405 else
14406 ac_check_lib_save_LIBS=$LIBS
14407 LIBS="-lgpm $LIBS"
14408 cat >conftest.$ac_ext <<_ACEOF
14409 /* confdefs.h. */
14410 _ACEOF
14411 cat confdefs.h >>conftest.$ac_ext
14412 cat >>conftest.$ac_ext <<_ACEOF
14413 /* end confdefs.h. */
14414
14415 /* Override any GCC internal prototype to avoid an error.
14416 Use char because int might match the return type of a GCC
14417 builtin and then its argument prototype would still apply. */
14418 #ifdef __cplusplus
14419 extern "C"
14420 #endif
14421 char Gpm_Open ();
14422 int
14423 main ()
14424 {
14425 return Gpm_Open ();
14426 ;
14427 return 0;
14428 }
14429 _ACEOF
14430 rm -f conftest.$ac_objext conftest$ac_exeext
14431 if { (ac_try="$ac_link"
14432 case "(($ac_try" in
14433 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14434 *) ac_try_echo=$ac_try;;
14435 esac
14436 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14437 (eval "$ac_link") 2>conftest.er1
14438 ac_status=$?
14439 grep -v '^ *+' conftest.er1 >conftest.err
14440 rm -f conftest.er1
14441 cat conftest.err >&5
14442 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14443 (exit $ac_status); } && {
14444 test -z "$ac_c_werror_flag" ||
14445 test ! -s conftest.err
14446 } && test -s conftest$ac_exeext &&
14447 $as_test_x conftest$ac_exeext; then
14448 ac_cv_lib_gpm_Gpm_Open=yes
14449 else
14450 echo "$as_me: failed program was:" >&5
14451 sed 's/^/| /' conftest.$ac_ext >&5
14452
14453 ac_cv_lib_gpm_Gpm_Open=no
14454 fi
14455
14456 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14457 conftest$ac_exeext conftest.$ac_ext
14458 LIBS=$ac_check_lib_save_LIBS
14459 fi
14460 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14461 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14462 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14463 HAVE_GPM=yes
14464 fi
14465
14466 fi
14467
14468
14469 fi
14470
14471 if test "${HAVE_GPM}" = "yes"; then
14472
14473 cat >>confdefs.h <<\_ACEOF
14474 #define HAVE_GPM 1
14475 _ACEOF
14476
14477 fi
14478
14479 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14480 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14481 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14482 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14483 echo $ECHO_N "(cached) $ECHO_C" >&6
14484 fi
14485 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14486 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14487 else
14488 # Is the header compilable?
14489 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14490 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14491 cat >conftest.$ac_ext <<_ACEOF
14492 /* confdefs.h. */
14493 _ACEOF
14494 cat confdefs.h >>conftest.$ac_ext
14495 cat >>conftest.$ac_ext <<_ACEOF
14496 /* end confdefs.h. */
14497 $ac_includes_default
14498 #include <malloc/malloc.h>
14499 _ACEOF
14500 rm -f conftest.$ac_objext
14501 if { (ac_try="$ac_compile"
14502 case "(($ac_try" in
14503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14504 *) ac_try_echo=$ac_try;;
14505 esac
14506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14507 (eval "$ac_compile") 2>conftest.er1
14508 ac_status=$?
14509 grep -v '^ *+' conftest.er1 >conftest.err
14510 rm -f conftest.er1
14511 cat conftest.err >&5
14512 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14513 (exit $ac_status); } && {
14514 test -z "$ac_c_werror_flag" ||
14515 test ! -s conftest.err
14516 } && test -s conftest.$ac_objext; then
14517 ac_header_compiler=yes
14518 else
14519 echo "$as_me: failed program was:" >&5
14520 sed 's/^/| /' conftest.$ac_ext >&5
14521
14522 ac_header_compiler=no
14523 fi
14524
14525 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14526 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14527 echo "${ECHO_T}$ac_header_compiler" >&6; }
14528
14529 # Is the header present?
14530 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14531 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14532 cat >conftest.$ac_ext <<_ACEOF
14533 /* confdefs.h. */
14534 _ACEOF
14535 cat confdefs.h >>conftest.$ac_ext
14536 cat >>conftest.$ac_ext <<_ACEOF
14537 /* end confdefs.h. */
14538 #include <malloc/malloc.h>
14539 _ACEOF
14540 if { (ac_try="$ac_cpp conftest.$ac_ext"
14541 case "(($ac_try" in
14542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14543 *) ac_try_echo=$ac_try;;
14544 esac
14545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14546 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14547 ac_status=$?
14548 grep -v '^ *+' conftest.er1 >conftest.err
14549 rm -f conftest.er1
14550 cat conftest.err >&5
14551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14552 (exit $ac_status); } >/dev/null && {
14553 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14554 test ! -s conftest.err
14555 }; then
14556 ac_header_preproc=yes
14557 else
14558 echo "$as_me: failed program was:" >&5
14559 sed 's/^/| /' conftest.$ac_ext >&5
14560
14561 ac_header_preproc=no
14562 fi
14563
14564 rm -f conftest.err conftest.$ac_ext
14565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14566 echo "${ECHO_T}$ac_header_preproc" >&6; }
14567
14568 # So? What about this header?
14569 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14570 yes:no: )
14571 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14572 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14573 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14574 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14575 ac_header_preproc=yes
14576 ;;
14577 no:yes:* )
14578 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14579 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14580 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14581 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14582 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14583 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14584 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14585 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14586 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14587 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14588 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14589 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14590
14591 ;;
14592 esac
14593 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14594 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14595 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14596 echo $ECHO_N "(cached) $ECHO_C" >&6
14597 else
14598 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14599 fi
14600 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14601 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14602
14603 fi
14604 if test $ac_cv_header_malloc_malloc_h = yes; then
14605
14606 cat >>confdefs.h <<\_ACEOF
14607 #define HAVE_MALLOC_MALLOC_H 1
14608 _ACEOF
14609
14610 fi
14611
14612
14613
14614 ### Use Mac OS X Carbon API to implement GUI.
14615 if test "${HAVE_CARBON}" = "yes"; then
14616
14617 cat >>confdefs.h <<\_ACEOF
14618 #define HAVE_CARBON 1
14619 _ACEOF
14620
14621 ## Specify the install directory
14622 carbon_appdir=
14623 if test "${carbon_appdir_x}" != ""; then
14624 case ${carbon_appdir_x} in
14625 y | ye | yes) carbon_appdir=/Applications ;;
14626 * ) carbon_appdir=${carbon_appdir_x} ;;
14627 esac
14628 fi
14629 # We also have mouse menus.
14630 HAVE_MENUS=yes
14631 fi
14632
14633 ### Use session management (-lSM -lICE) if available
14634 HAVE_X_SM=no
14635 if test "${HAVE_X11}" = "yes"; then
14636 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14637 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14638 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14639 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14640 echo $ECHO_N "(cached) $ECHO_C" >&6
14641 fi
14642 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14643 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14644 else
14645 # Is the header compilable?
14646 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14647 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14648 cat >conftest.$ac_ext <<_ACEOF
14649 /* confdefs.h. */
14650 _ACEOF
14651 cat confdefs.h >>conftest.$ac_ext
14652 cat >>conftest.$ac_ext <<_ACEOF
14653 /* end confdefs.h. */
14654 $ac_includes_default
14655 #include <X11/SM/SMlib.h>
14656 _ACEOF
14657 rm -f conftest.$ac_objext
14658 if { (ac_try="$ac_compile"
14659 case "(($ac_try" in
14660 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14661 *) ac_try_echo=$ac_try;;
14662 esac
14663 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14664 (eval "$ac_compile") 2>conftest.er1
14665 ac_status=$?
14666 grep -v '^ *+' conftest.er1 >conftest.err
14667 rm -f conftest.er1
14668 cat conftest.err >&5
14669 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14670 (exit $ac_status); } && {
14671 test -z "$ac_c_werror_flag" ||
14672 test ! -s conftest.err
14673 } && test -s conftest.$ac_objext; then
14674 ac_header_compiler=yes
14675 else
14676 echo "$as_me: failed program was:" >&5
14677 sed 's/^/| /' conftest.$ac_ext >&5
14678
14679 ac_header_compiler=no
14680 fi
14681
14682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14683 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14684 echo "${ECHO_T}$ac_header_compiler" >&6; }
14685
14686 # Is the header present?
14687 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14688 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14689 cat >conftest.$ac_ext <<_ACEOF
14690 /* confdefs.h. */
14691 _ACEOF
14692 cat confdefs.h >>conftest.$ac_ext
14693 cat >>conftest.$ac_ext <<_ACEOF
14694 /* end confdefs.h. */
14695 #include <X11/SM/SMlib.h>
14696 _ACEOF
14697 if { (ac_try="$ac_cpp conftest.$ac_ext"
14698 case "(($ac_try" in
14699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14700 *) ac_try_echo=$ac_try;;
14701 esac
14702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14704 ac_status=$?
14705 grep -v '^ *+' conftest.er1 >conftest.err
14706 rm -f conftest.er1
14707 cat conftest.err >&5
14708 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14709 (exit $ac_status); } >/dev/null && {
14710 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14711 test ! -s conftest.err
14712 }; then
14713 ac_header_preproc=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_header_preproc=no
14719 fi
14720
14721 rm -f conftest.err conftest.$ac_ext
14722 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14723 echo "${ECHO_T}$ac_header_preproc" >&6; }
14724
14725 # So? What about this header?
14726 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14727 yes:no: )
14728 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14729 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14730 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14731 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14732 ac_header_preproc=yes
14733 ;;
14734 no:yes:* )
14735 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14736 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14737 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14738 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14739 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14740 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14741 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14742 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14743 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14744 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14745 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14746 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14747
14748 ;;
14749 esac
14750 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14751 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14752 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14753 echo $ECHO_N "(cached) $ECHO_C" >&6
14754 else
14755 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14756 fi
14757 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14758 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14759
14760 fi
14761 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14762 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14763 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14764 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14765 echo $ECHO_N "(cached) $ECHO_C" >&6
14766 else
14767 ac_check_lib_save_LIBS=$LIBS
14768 LIBS="-lSM -lICE $LIBS"
14769 cat >conftest.$ac_ext <<_ACEOF
14770 /* confdefs.h. */
14771 _ACEOF
14772 cat confdefs.h >>conftest.$ac_ext
14773 cat >>conftest.$ac_ext <<_ACEOF
14774 /* end confdefs.h. */
14775
14776 /* Override any GCC internal prototype to avoid an error.
14777 Use char because int might match the return type of a GCC
14778 builtin and then its argument prototype would still apply. */
14779 #ifdef __cplusplus
14780 extern "C"
14781 #endif
14782 char SmcOpenConnection ();
14783 int
14784 main ()
14785 {
14786 return SmcOpenConnection ();
14787 ;
14788 return 0;
14789 }
14790 _ACEOF
14791 rm -f conftest.$ac_objext conftest$ac_exeext
14792 if { (ac_try="$ac_link"
14793 case "(($ac_try" in
14794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14795 *) ac_try_echo=$ac_try;;
14796 esac
14797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14798 (eval "$ac_link") 2>conftest.er1
14799 ac_status=$?
14800 grep -v '^ *+' conftest.er1 >conftest.err
14801 rm -f conftest.er1
14802 cat conftest.err >&5
14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14804 (exit $ac_status); } && {
14805 test -z "$ac_c_werror_flag" ||
14806 test ! -s conftest.err
14807 } && test -s conftest$ac_exeext &&
14808 $as_test_x conftest$ac_exeext; then
14809 ac_cv_lib_SM_SmcOpenConnection=yes
14810 else
14811 echo "$as_me: failed program was:" >&5
14812 sed 's/^/| /' conftest.$ac_ext >&5
14813
14814 ac_cv_lib_SM_SmcOpenConnection=no
14815 fi
14816
14817 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14818 conftest$ac_exeext conftest.$ac_ext
14819 LIBS=$ac_check_lib_save_LIBS
14820 fi
14821 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14822 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14823 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14824 HAVE_X_SM=yes
14825 fi
14826
14827 fi
14828
14829
14830
14831 if test "${HAVE_X_SM}" = "yes"; then
14832
14833 cat >>confdefs.h <<\_ACEOF
14834 #define HAVE_X_SM 1
14835 _ACEOF
14836
14837 case "$LIBS" in
14838 *-lSM*) ;;
14839 *) LIBS="-lSM -lICE $LIBS" ;;
14840 esac
14841 fi
14842 fi
14843
14844 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14845 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14846 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14847 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14848 echo $ECHO_N "(cached) $ECHO_C" >&6
14849 else
14850 cat >conftest.$ac_ext <<_ACEOF
14851 /* confdefs.h. */
14852 _ACEOF
14853 cat confdefs.h >>conftest.$ac_ext
14854 cat >>conftest.$ac_ext <<_ACEOF
14855 /* end confdefs.h. */
14856 #include <netdb.h>
14857 int
14858 main ()
14859 {
14860 return h_errno;
14861 ;
14862 return 0;
14863 }
14864 _ACEOF
14865 rm -f conftest.$ac_objext conftest$ac_exeext
14866 if { (ac_try="$ac_link"
14867 case "(($ac_try" in
14868 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14869 *) ac_try_echo=$ac_try;;
14870 esac
14871 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14872 (eval "$ac_link") 2>conftest.er1
14873 ac_status=$?
14874 grep -v '^ *+' conftest.er1 >conftest.err
14875 rm -f conftest.er1
14876 cat conftest.err >&5
14877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14878 (exit $ac_status); } && {
14879 test -z "$ac_c_werror_flag" ||
14880 test ! -s conftest.err
14881 } && test -s conftest$ac_exeext &&
14882 $as_test_x conftest$ac_exeext; then
14883 emacs_cv_netdb_declares_h_errno=yes
14884 else
14885 echo "$as_me: failed program was:" >&5
14886 sed 's/^/| /' conftest.$ac_ext >&5
14887
14888 emacs_cv_netdb_declares_h_errno=no
14889 fi
14890
14891 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14892 conftest$ac_exeext conftest.$ac_ext
14893 fi
14894 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14895 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14896 if test $emacs_cv_netdb_declares_h_errno = yes; then
14897
14898 cat >>confdefs.h <<\_ACEOF
14899 #define HAVE_H_ERRNO 1
14900 _ACEOF
14901
14902 fi
14903
14904 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14905 # for constant arguments. Useless!
14906 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14907 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14908 if test "${ac_cv_working_alloca_h+set}" = set; then
14909 echo $ECHO_N "(cached) $ECHO_C" >&6
14910 else
14911 cat >conftest.$ac_ext <<_ACEOF
14912 /* confdefs.h. */
14913 _ACEOF
14914 cat confdefs.h >>conftest.$ac_ext
14915 cat >>conftest.$ac_ext <<_ACEOF
14916 /* end confdefs.h. */
14917 #include <alloca.h>
14918 int
14919 main ()
14920 {
14921 char *p = (char *) alloca (2 * sizeof (int));
14922 if (p) return 0;
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest$ac_exeext &&
14944 $as_test_x conftest$ac_exeext; then
14945 ac_cv_working_alloca_h=yes
14946 else
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_cv_working_alloca_h=no
14951 fi
14952
14953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14954 conftest$ac_exeext conftest.$ac_ext
14955 fi
14956 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14957 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14958 if test $ac_cv_working_alloca_h = yes; then
14959
14960 cat >>confdefs.h <<\_ACEOF
14961 #define HAVE_ALLOCA_H 1
14962 _ACEOF
14963
14964 fi
14965
14966 { echo "$as_me:$LINENO: checking for alloca" >&5
14967 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14968 if test "${ac_cv_func_alloca_works+set}" = set; then
14969 echo $ECHO_N "(cached) $ECHO_C" >&6
14970 else
14971 cat >conftest.$ac_ext <<_ACEOF
14972 /* confdefs.h. */
14973 _ACEOF
14974 cat confdefs.h >>conftest.$ac_ext
14975 cat >>conftest.$ac_ext <<_ACEOF
14976 /* end confdefs.h. */
14977 #ifdef __GNUC__
14978 # define alloca __builtin_alloca
14979 #else
14980 # ifdef _MSC_VER
14981 # include <malloc.h>
14982 # define alloca _alloca
14983 # else
14984 # ifdef HAVE_ALLOCA_H
14985 # include <alloca.h>
14986 # else
14987 # ifdef _AIX
14988 #pragma alloca
14989 # else
14990 # ifndef alloca /* predefined by HP cc +Olibcalls */
14991 char *alloca ();
14992 # endif
14993 # endif
14994 # endif
14995 # endif
14996 #endif
14997
14998 int
14999 main ()
15000 {
15001 char *p = (char *) alloca (1);
15002 if (p) return 0;
15003 ;
15004 return 0;
15005 }
15006 _ACEOF
15007 rm -f conftest.$ac_objext conftest$ac_exeext
15008 if { (ac_try="$ac_link"
15009 case "(($ac_try" in
15010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15011 *) ac_try_echo=$ac_try;;
15012 esac
15013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15014 (eval "$ac_link") 2>conftest.er1
15015 ac_status=$?
15016 grep -v '^ *+' conftest.er1 >conftest.err
15017 rm -f conftest.er1
15018 cat conftest.err >&5
15019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15020 (exit $ac_status); } && {
15021 test -z "$ac_c_werror_flag" ||
15022 test ! -s conftest.err
15023 } && test -s conftest$ac_exeext &&
15024 $as_test_x conftest$ac_exeext; then
15025 ac_cv_func_alloca_works=yes
15026 else
15027 echo "$as_me: failed program was:" >&5
15028 sed 's/^/| /' conftest.$ac_ext >&5
15029
15030 ac_cv_func_alloca_works=no
15031 fi
15032
15033 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15034 conftest$ac_exeext conftest.$ac_ext
15035 fi
15036 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15037 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15038
15039 if test $ac_cv_func_alloca_works = yes; then
15040
15041 cat >>confdefs.h <<\_ACEOF
15042 #define HAVE_ALLOCA 1
15043 _ACEOF
15044
15045 else
15046 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15047 # that cause trouble. Some versions do not even contain alloca or
15048 # contain a buggy version. If you still want to use their alloca,
15049 # use ar to extract alloca.o from them instead of compiling alloca.c.
15050
15051 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15052
15053 cat >>confdefs.h <<\_ACEOF
15054 #define C_ALLOCA 1
15055 _ACEOF
15056
15057
15058 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15059 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15060 if test "${ac_cv_os_cray+set}" = set; then
15061 echo $ECHO_N "(cached) $ECHO_C" >&6
15062 else
15063 cat >conftest.$ac_ext <<_ACEOF
15064 /* confdefs.h. */
15065 _ACEOF
15066 cat confdefs.h >>conftest.$ac_ext
15067 cat >>conftest.$ac_ext <<_ACEOF
15068 /* end confdefs.h. */
15069 #if defined CRAY && ! defined CRAY2
15070 webecray
15071 #else
15072 wenotbecray
15073 #endif
15074
15075 _ACEOF
15076 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15077 $EGREP "webecray" >/dev/null 2>&1; then
15078 ac_cv_os_cray=yes
15079 else
15080 ac_cv_os_cray=no
15081 fi
15082 rm -f conftest*
15083
15084 fi
15085 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15086 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15087 if test $ac_cv_os_cray = yes; then
15088 for ac_func in _getb67 GETB67 getb67; do
15089 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15090 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15091 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15092 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15093 echo $ECHO_N "(cached) $ECHO_C" >&6
15094 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15102 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15103 #define $ac_func innocuous_$ac_func
15104
15105 /* System header to define __stub macros and hopefully few prototypes,
15106 which can conflict with char $ac_func (); below.
15107 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15108 <limits.h> exists even on freestanding compilers. */
15109
15110 #ifdef __STDC__
15111 # include <limits.h>
15112 #else
15113 # include <assert.h>
15114 #endif
15115
15116 #undef $ac_func
15117
15118 /* Override any GCC internal prototype to avoid an error.
15119 Use char because int might match the return type of a GCC
15120 builtin and then its argument prototype would still apply. */
15121 #ifdef __cplusplus
15122 extern "C"
15123 #endif
15124 char $ac_func ();
15125 /* The GNU C library defines this for functions which it implements
15126 to always fail with ENOSYS. Some functions are actually named
15127 something starting with __ and the normal name is an alias. */
15128 #if defined __stub_$ac_func || defined __stub___$ac_func
15129 choke me
15130 #endif
15131
15132 int
15133 main ()
15134 {
15135 return $ac_func ();
15136 ;
15137 return 0;
15138 }
15139 _ACEOF
15140 rm -f conftest.$ac_objext conftest$ac_exeext
15141 if { (ac_try="$ac_link"
15142 case "(($ac_try" in
15143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15144 *) ac_try_echo=$ac_try;;
15145 esac
15146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15147 (eval "$ac_link") 2>conftest.er1
15148 ac_status=$?
15149 grep -v '^ *+' conftest.er1 >conftest.err
15150 rm -f conftest.er1
15151 cat conftest.err >&5
15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15153 (exit $ac_status); } && {
15154 test -z "$ac_c_werror_flag" ||
15155 test ! -s conftest.err
15156 } && test -s conftest$ac_exeext &&
15157 $as_test_x conftest$ac_exeext; then
15158 eval "$as_ac_var=yes"
15159 else
15160 echo "$as_me: failed program was:" >&5
15161 sed 's/^/| /' conftest.$ac_ext >&5
15162
15163 eval "$as_ac_var=no"
15164 fi
15165
15166 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15167 conftest$ac_exeext conftest.$ac_ext
15168 fi
15169 ac_res=`eval echo '${'$as_ac_var'}'`
15170 { echo "$as_me:$LINENO: result: $ac_res" >&5
15171 echo "${ECHO_T}$ac_res" >&6; }
15172 if test `eval echo '${'$as_ac_var'}'` = yes; then
15173
15174 cat >>confdefs.h <<_ACEOF
15175 #define CRAY_STACKSEG_END $ac_func
15176 _ACEOF
15177
15178 break
15179 fi
15180
15181 done
15182 fi
15183
15184 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15185 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15186 if test "${ac_cv_c_stack_direction+set}" = set; then
15187 echo $ECHO_N "(cached) $ECHO_C" >&6
15188 else
15189 if test "$cross_compiling" = yes; then
15190 ac_cv_c_stack_direction=0
15191 else
15192 cat >conftest.$ac_ext <<_ACEOF
15193 /* confdefs.h. */
15194 _ACEOF
15195 cat confdefs.h >>conftest.$ac_ext
15196 cat >>conftest.$ac_ext <<_ACEOF
15197 /* end confdefs.h. */
15198 $ac_includes_default
15199 int
15200 find_stack_direction ()
15201 {
15202 static char *addr = 0;
15203 auto char dummy;
15204 if (addr == 0)
15205 {
15206 addr = &dummy;
15207 return find_stack_direction ();
15208 }
15209 else
15210 return (&dummy > addr) ? 1 : -1;
15211 }
15212
15213 int
15214 main ()
15215 {
15216 return find_stack_direction () < 0;
15217 }
15218 _ACEOF
15219 rm -f conftest$ac_exeext
15220 if { (ac_try="$ac_link"
15221 case "(($ac_try" in
15222 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15223 *) ac_try_echo=$ac_try;;
15224 esac
15225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15226 (eval "$ac_link") 2>&5
15227 ac_status=$?
15228 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15229 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15230 { (case "(($ac_try" in
15231 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15232 *) ac_try_echo=$ac_try;;
15233 esac
15234 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15235 (eval "$ac_try") 2>&5
15236 ac_status=$?
15237 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15238 (exit $ac_status); }; }; then
15239 ac_cv_c_stack_direction=1
15240 else
15241 echo "$as_me: program exited with status $ac_status" >&5
15242 echo "$as_me: failed program was:" >&5
15243 sed 's/^/| /' conftest.$ac_ext >&5
15244
15245 ( exit $ac_status )
15246 ac_cv_c_stack_direction=-1
15247 fi
15248 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15249 fi
15250
15251
15252 fi
15253 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15254 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15255
15256 cat >>confdefs.h <<_ACEOF
15257 #define STACK_DIRECTION $ac_cv_c_stack_direction
15258 _ACEOF
15259
15260
15261 fi
15262
15263
15264 # fmod, logb, and frexp are found in -lm on most systems.
15265 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15266
15267 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15268 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15269 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15270 echo $ECHO_N "(cached) $ECHO_C" >&6
15271 else
15272 ac_check_lib_save_LIBS=$LIBS
15273 LIBS="-lm $LIBS"
15274 cat >conftest.$ac_ext <<_ACEOF
15275 /* confdefs.h. */
15276 _ACEOF
15277 cat confdefs.h >>conftest.$ac_ext
15278 cat >>conftest.$ac_ext <<_ACEOF
15279 /* end confdefs.h. */
15280
15281 /* Override any GCC internal prototype to avoid an error.
15282 Use char because int might match the return type of a GCC
15283 builtin and then its argument prototype would still apply. */
15284 #ifdef __cplusplus
15285 extern "C"
15286 #endif
15287 char sqrt ();
15288 int
15289 main ()
15290 {
15291 return sqrt ();
15292 ;
15293 return 0;
15294 }
15295 _ACEOF
15296 rm -f conftest.$ac_objext conftest$ac_exeext
15297 if { (ac_try="$ac_link"
15298 case "(($ac_try" in
15299 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15300 *) ac_try_echo=$ac_try;;
15301 esac
15302 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15303 (eval "$ac_link") 2>conftest.er1
15304 ac_status=$?
15305 grep -v '^ *+' conftest.er1 >conftest.err
15306 rm -f conftest.er1
15307 cat conftest.err >&5
15308 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15309 (exit $ac_status); } && {
15310 test -z "$ac_c_werror_flag" ||
15311 test ! -s conftest.err
15312 } && test -s conftest$ac_exeext &&
15313 $as_test_x conftest$ac_exeext; then
15314 ac_cv_lib_m_sqrt=yes
15315 else
15316 echo "$as_me: failed program was:" >&5
15317 sed 's/^/| /' conftest.$ac_ext >&5
15318
15319 ac_cv_lib_m_sqrt=no
15320 fi
15321
15322 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15323 conftest$ac_exeext conftest.$ac_ext
15324 LIBS=$ac_check_lib_save_LIBS
15325 fi
15326 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15327 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15328 if test $ac_cv_lib_m_sqrt = yes; then
15329 cat >>confdefs.h <<_ACEOF
15330 #define HAVE_LIBM 1
15331 _ACEOF
15332
15333 LIBS="-lm $LIBS"
15334
15335 fi
15336
15337
15338 # Check for mail-locking functions in a "mail" library. Probably this should
15339 # have the same check as for liblockfile below.
15340
15341 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15342 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15343 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15344 echo $ECHO_N "(cached) $ECHO_C" >&6
15345 else
15346 ac_check_lib_save_LIBS=$LIBS
15347 LIBS="-lmail $LIBS"
15348 cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h. */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h. */
15354
15355 /* Override any GCC internal prototype to avoid an error.
15356 Use char because int might match the return type of a GCC
15357 builtin and then its argument prototype would still apply. */
15358 #ifdef __cplusplus
15359 extern "C"
15360 #endif
15361 char maillock ();
15362 int
15363 main ()
15364 {
15365 return maillock ();
15366 ;
15367 return 0;
15368 }
15369 _ACEOF
15370 rm -f conftest.$ac_objext conftest$ac_exeext
15371 if { (ac_try="$ac_link"
15372 case "(($ac_try" in
15373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15374 *) ac_try_echo=$ac_try;;
15375 esac
15376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15377 (eval "$ac_link") 2>conftest.er1
15378 ac_status=$?
15379 grep -v '^ *+' conftest.er1 >conftest.err
15380 rm -f conftest.er1
15381 cat conftest.err >&5
15382 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15383 (exit $ac_status); } && {
15384 test -z "$ac_c_werror_flag" ||
15385 test ! -s conftest.err
15386 } && test -s conftest$ac_exeext &&
15387 $as_test_x conftest$ac_exeext; then
15388 ac_cv_lib_mail_maillock=yes
15389 else
15390 echo "$as_me: failed program was:" >&5
15391 sed 's/^/| /' conftest.$ac_ext >&5
15392
15393 ac_cv_lib_mail_maillock=no
15394 fi
15395
15396 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15397 conftest$ac_exeext conftest.$ac_ext
15398 LIBS=$ac_check_lib_save_LIBS
15399 fi
15400 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15401 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15402 if test $ac_cv_lib_mail_maillock = yes; then
15403 cat >>confdefs.h <<_ACEOF
15404 #define HAVE_LIBMAIL 1
15405 _ACEOF
15406
15407 LIBS="-lmail $LIBS"
15408
15409 fi
15410
15411
15412 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15413 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15414 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15415 echo $ECHO_N "(cached) $ECHO_C" >&6
15416 else
15417 ac_check_lib_save_LIBS=$LIBS
15418 LIBS="-llockfile $LIBS"
15419 cat >conftest.$ac_ext <<_ACEOF
15420 /* confdefs.h. */
15421 _ACEOF
15422 cat confdefs.h >>conftest.$ac_ext
15423 cat >>conftest.$ac_ext <<_ACEOF
15424 /* end confdefs.h. */
15425
15426 /* Override any GCC internal prototype to avoid an error.
15427 Use char because int might match the return type of a GCC
15428 builtin and then its argument prototype would still apply. */
15429 #ifdef __cplusplus
15430 extern "C"
15431 #endif
15432 char maillock ();
15433 int
15434 main ()
15435 {
15436 return maillock ();
15437 ;
15438 return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest.$ac_objext conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445 *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448 (eval "$ac_link") 2>conftest.er1
15449 ac_status=$?
15450 grep -v '^ *+' conftest.er1 >conftest.err
15451 rm -f conftest.er1
15452 cat conftest.err >&5
15453 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15454 (exit $ac_status); } && {
15455 test -z "$ac_c_werror_flag" ||
15456 test ! -s conftest.err
15457 } && test -s conftest$ac_exeext &&
15458 $as_test_x conftest$ac_exeext; then
15459 ac_cv_lib_lockfile_maillock=yes
15460 else
15461 echo "$as_me: failed program was:" >&5
15462 sed 's/^/| /' conftest.$ac_ext >&5
15463
15464 ac_cv_lib_lockfile_maillock=no
15465 fi
15466
15467 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15468 conftest$ac_exeext conftest.$ac_ext
15469 LIBS=$ac_check_lib_save_LIBS
15470 fi
15471 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15472 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15473 if test $ac_cv_lib_lockfile_maillock = yes; then
15474 cat >>confdefs.h <<_ACEOF
15475 #define HAVE_LIBLOCKFILE 1
15476 _ACEOF
15477
15478 LIBS="-llockfile $LIBS"
15479
15480 fi
15481
15482 # If we have the shared liblockfile, assume we must use it for mail
15483 # locking (e.g. Debian). If we couldn't link against liblockfile
15484 # (no liblockfile.a installed), ensure that we don't need to.
15485 if test "$ac_cv_lib_lockfile_maillock" = no; then
15486 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15487 set dummy liblockfile.so; ac_word=$2
15488 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15489 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15490 if test "${ac_cv_prog_liblockfile+set}" = set; then
15491 echo $ECHO_N "(cached) $ECHO_C" >&6
15492 else
15493 if test -n "$liblockfile"; then
15494 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15495 else
15496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15497 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15498 for as_dir in $as_dummy
15499 do
15500 IFS=$as_save_IFS
15501 test -z "$as_dir" && as_dir=.
15502 for ac_exec_ext in '' $ac_executable_extensions; do
15503 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15504 ac_cv_prog_liblockfile="yes"
15505 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15506 break 2
15507 fi
15508 done
15509 done
15510 IFS=$as_save_IFS
15511
15512 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15513 fi
15514 fi
15515 liblockfile=$ac_cv_prog_liblockfile
15516 if test -n "$liblockfile"; then
15517 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15518 echo "${ECHO_T}$liblockfile" >&6; }
15519 else
15520 { echo "$as_me:$LINENO: result: no" >&5
15521 echo "${ECHO_T}no" >&6; }
15522 fi
15523
15524
15525 if test $ac_cv_prog_liblockfile = yes; then
15526 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15527 This probably means that movemail could lose mail.
15528 There may be a \`development' package to install containing liblockfile." >&5
15529 echo "$as_me: error: Shared liblockfile found but can't link against it.
15530 This probably means that movemail could lose mail.
15531 There may be a \`development' package to install containing liblockfile." >&2;}
15532 { (exit 1); exit 1; }; }
15533 else :
15534 fi
15535 fi
15536
15537 for ac_func in touchlock
15538 do
15539 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15540 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15541 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15542 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15543 echo $ECHO_N "(cached) $ECHO_C" >&6
15544 else
15545 cat >conftest.$ac_ext <<_ACEOF
15546 /* confdefs.h. */
15547 _ACEOF
15548 cat confdefs.h >>conftest.$ac_ext
15549 cat >>conftest.$ac_ext <<_ACEOF
15550 /* end confdefs.h. */
15551 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15552 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15553 #define $ac_func innocuous_$ac_func
15554
15555 /* System header to define __stub macros and hopefully few prototypes,
15556 which can conflict with char $ac_func (); below.
15557 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15558 <limits.h> exists even on freestanding compilers. */
15559
15560 #ifdef __STDC__
15561 # include <limits.h>
15562 #else
15563 # include <assert.h>
15564 #endif
15565
15566 #undef $ac_func
15567
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 char $ac_func ();
15575 /* The GNU C library defines this for functions which it implements
15576 to always fail with ENOSYS. Some functions are actually named
15577 something starting with __ and the normal name is an alias. */
15578 #if defined __stub_$ac_func || defined __stub___$ac_func
15579 choke me
15580 #endif
15581
15582 int
15583 main ()
15584 {
15585 return $ac_func ();
15586 ;
15587 return 0;
15588 }
15589 _ACEOF
15590 rm -f conftest.$ac_objext conftest$ac_exeext
15591 if { (ac_try="$ac_link"
15592 case "(($ac_try" in
15593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594 *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597 (eval "$ac_link") 2>conftest.er1
15598 ac_status=$?
15599 grep -v '^ *+' conftest.er1 >conftest.err
15600 rm -f conftest.er1
15601 cat conftest.err >&5
15602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15603 (exit $ac_status); } && {
15604 test -z "$ac_c_werror_flag" ||
15605 test ! -s conftest.err
15606 } && test -s conftest$ac_exeext &&
15607 $as_test_x conftest$ac_exeext; then
15608 eval "$as_ac_var=yes"
15609 else
15610 echo "$as_me: failed program was:" >&5
15611 sed 's/^/| /' conftest.$ac_ext >&5
15612
15613 eval "$as_ac_var=no"
15614 fi
15615
15616 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15617 conftest$ac_exeext conftest.$ac_ext
15618 fi
15619 ac_res=`eval echo '${'$as_ac_var'}'`
15620 { echo "$as_me:$LINENO: result: $ac_res" >&5
15621 echo "${ECHO_T}$ac_res" >&6; }
15622 if test `eval echo '${'$as_ac_var'}'` = yes; then
15623 cat >>confdefs.h <<_ACEOF
15624 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15625 _ACEOF
15626
15627 fi
15628 done
15629
15630
15631 for ac_header in maillock.h
15632 do
15633 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15634 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15635 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15636 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15638 echo $ECHO_N "(cached) $ECHO_C" >&6
15639 fi
15640 ac_res=`eval echo '${'$as_ac_Header'}'`
15641 { echo "$as_me:$LINENO: result: $ac_res" >&5
15642 echo "${ECHO_T}$ac_res" >&6; }
15643 else
15644 # Is the header compilable?
15645 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15646 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15647 cat >conftest.$ac_ext <<_ACEOF
15648 /* confdefs.h. */
15649 _ACEOF
15650 cat confdefs.h >>conftest.$ac_ext
15651 cat >>conftest.$ac_ext <<_ACEOF
15652 /* end confdefs.h. */
15653 $ac_includes_default
15654 #include <$ac_header>
15655 _ACEOF
15656 rm -f conftest.$ac_objext
15657 if { (ac_try="$ac_compile"
15658 case "(($ac_try" in
15659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15660 *) ac_try_echo=$ac_try;;
15661 esac
15662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15663 (eval "$ac_compile") 2>conftest.er1
15664 ac_status=$?
15665 grep -v '^ *+' conftest.er1 >conftest.err
15666 rm -f conftest.er1
15667 cat conftest.err >&5
15668 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15669 (exit $ac_status); } && {
15670 test -z "$ac_c_werror_flag" ||
15671 test ! -s conftest.err
15672 } && test -s conftest.$ac_objext; then
15673 ac_header_compiler=yes
15674 else
15675 echo "$as_me: failed program was:" >&5
15676 sed 's/^/| /' conftest.$ac_ext >&5
15677
15678 ac_header_compiler=no
15679 fi
15680
15681 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15682 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15683 echo "${ECHO_T}$ac_header_compiler" >&6; }
15684
15685 # Is the header present?
15686 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15687 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15688 cat >conftest.$ac_ext <<_ACEOF
15689 /* confdefs.h. */
15690 _ACEOF
15691 cat confdefs.h >>conftest.$ac_ext
15692 cat >>conftest.$ac_ext <<_ACEOF
15693 /* end confdefs.h. */
15694 #include <$ac_header>
15695 _ACEOF
15696 if { (ac_try="$ac_cpp conftest.$ac_ext"
15697 case "(($ac_try" in
15698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15699 *) ac_try_echo=$ac_try;;
15700 esac
15701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15702 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15703 ac_status=$?
15704 grep -v '^ *+' conftest.er1 >conftest.err
15705 rm -f conftest.er1
15706 cat conftest.err >&5
15707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15708 (exit $ac_status); } >/dev/null && {
15709 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15710 test ! -s conftest.err
15711 }; then
15712 ac_header_preproc=yes
15713 else
15714 echo "$as_me: failed program was:" >&5
15715 sed 's/^/| /' conftest.$ac_ext >&5
15716
15717 ac_header_preproc=no
15718 fi
15719
15720 rm -f conftest.err conftest.$ac_ext
15721 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15722 echo "${ECHO_T}$ac_header_preproc" >&6; }
15723
15724 # So? What about this header?
15725 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15726 yes:no: )
15727 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15728 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15729 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15730 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15731 ac_header_preproc=yes
15732 ;;
15733 no:yes:* )
15734 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15735 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15736 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15737 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15738 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15739 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15740 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15741 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15743 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15744 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15745 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15746
15747 ;;
15748 esac
15749 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15750 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15751 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15752 echo $ECHO_N "(cached) $ECHO_C" >&6
15753 else
15754 eval "$as_ac_Header=\$ac_header_preproc"
15755 fi
15756 ac_res=`eval echo '${'$as_ac_Header'}'`
15757 { echo "$as_me:$LINENO: result: $ac_res" >&5
15758 echo "${ECHO_T}$ac_res" >&6; }
15759
15760 fi
15761 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15762 cat >>confdefs.h <<_ACEOF
15763 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15764 _ACEOF
15765
15766 fi
15767
15768 done
15769
15770
15771
15772
15773
15774
15775
15776
15777
15778
15779
15780
15781
15782
15783
15784
15785
15786
15787
15788
15789
15790
15791
15792
15793
15794
15795
15796
15797
15798
15799
15800
15801
15802
15803
15804
15805
15806
15807
15808
15809
15810
15811
15812
15813
15814
15815
15816
15817
15818
15819
15820
15821
15822
15823
15824
15825
15826
15827
15828
15829
15830
15831
15832
15833
15834
15835
15836
15837
15838
15839
15840 for ac_func in gethostname getdomainname dup2 \
15841 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15842 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15843 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15844 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15845 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15846 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15847 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15848 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15849 do
15850 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15851 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15852 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15853 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15854 echo $ECHO_N "(cached) $ECHO_C" >&6
15855 else
15856 cat >conftest.$ac_ext <<_ACEOF
15857 /* confdefs.h. */
15858 _ACEOF
15859 cat confdefs.h >>conftest.$ac_ext
15860 cat >>conftest.$ac_ext <<_ACEOF
15861 /* end confdefs.h. */
15862 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15863 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15864 #define $ac_func innocuous_$ac_func
15865
15866 /* System header to define __stub macros and hopefully few prototypes,
15867 which can conflict with char $ac_func (); below.
15868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15869 <limits.h> exists even on freestanding compilers. */
15870
15871 #ifdef __STDC__
15872 # include <limits.h>
15873 #else
15874 # include <assert.h>
15875 #endif
15876
15877 #undef $ac_func
15878
15879 /* Override any GCC internal prototype to avoid an error.
15880 Use char because int might match the return type of a GCC
15881 builtin and then its argument prototype would still apply. */
15882 #ifdef __cplusplus
15883 extern "C"
15884 #endif
15885 char $ac_func ();
15886 /* The GNU C library defines this for functions which it implements
15887 to always fail with ENOSYS. Some functions are actually named
15888 something starting with __ and the normal name is an alias. */
15889 #if defined __stub_$ac_func || defined __stub___$ac_func
15890 choke me
15891 #endif
15892
15893 int
15894 main ()
15895 {
15896 return $ac_func ();
15897 ;
15898 return 0;
15899 }
15900 _ACEOF
15901 rm -f conftest.$ac_objext conftest$ac_exeext
15902 if { (ac_try="$ac_link"
15903 case "(($ac_try" in
15904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15905 *) ac_try_echo=$ac_try;;
15906 esac
15907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15908 (eval "$ac_link") 2>conftest.er1
15909 ac_status=$?
15910 grep -v '^ *+' conftest.er1 >conftest.err
15911 rm -f conftest.er1
15912 cat conftest.err >&5
15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15914 (exit $ac_status); } && {
15915 test -z "$ac_c_werror_flag" ||
15916 test ! -s conftest.err
15917 } && test -s conftest$ac_exeext &&
15918 $as_test_x conftest$ac_exeext; then
15919 eval "$as_ac_var=yes"
15920 else
15921 echo "$as_me: failed program was:" >&5
15922 sed 's/^/| /' conftest.$ac_ext >&5
15923
15924 eval "$as_ac_var=no"
15925 fi
15926
15927 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15928 conftest$ac_exeext conftest.$ac_ext
15929 fi
15930 ac_res=`eval echo '${'$as_ac_var'}'`
15931 { echo "$as_me:$LINENO: result: $ac_res" >&5
15932 echo "${ECHO_T}$ac_res" >&6; }
15933 if test `eval echo '${'$as_ac_var'}'` = yes; then
15934 cat >>confdefs.h <<_ACEOF
15935 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15936 _ACEOF
15937
15938 fi
15939 done
15940
15941
15942
15943 for ac_header in sys/un.h
15944 do
15945 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15946 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15947 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15948 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15949 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15950 echo $ECHO_N "(cached) $ECHO_C" >&6
15951 fi
15952 ac_res=`eval echo '${'$as_ac_Header'}'`
15953 { echo "$as_me:$LINENO: result: $ac_res" >&5
15954 echo "${ECHO_T}$ac_res" >&6; }
15955 else
15956 # Is the header compilable?
15957 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15958 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15959 cat >conftest.$ac_ext <<_ACEOF
15960 /* confdefs.h. */
15961 _ACEOF
15962 cat confdefs.h >>conftest.$ac_ext
15963 cat >>conftest.$ac_ext <<_ACEOF
15964 /* end confdefs.h. */
15965 $ac_includes_default
15966 #include <$ac_header>
15967 _ACEOF
15968 rm -f conftest.$ac_objext
15969 if { (ac_try="$ac_compile"
15970 case "(($ac_try" in
15971 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15972 *) ac_try_echo=$ac_try;;
15973 esac
15974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15975 (eval "$ac_compile") 2>conftest.er1
15976 ac_status=$?
15977 grep -v '^ *+' conftest.er1 >conftest.err
15978 rm -f conftest.er1
15979 cat conftest.err >&5
15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15981 (exit $ac_status); } && {
15982 test -z "$ac_c_werror_flag" ||
15983 test ! -s conftest.err
15984 } && test -s conftest.$ac_objext; then
15985 ac_header_compiler=yes
15986 else
15987 echo "$as_me: failed program was:" >&5
15988 sed 's/^/| /' conftest.$ac_ext >&5
15989
15990 ac_header_compiler=no
15991 fi
15992
15993 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15994 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15995 echo "${ECHO_T}$ac_header_compiler" >&6; }
15996
15997 # Is the header present?
15998 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15999 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16000 cat >conftest.$ac_ext <<_ACEOF
16001 /* confdefs.h. */
16002 _ACEOF
16003 cat confdefs.h >>conftest.$ac_ext
16004 cat >>conftest.$ac_ext <<_ACEOF
16005 /* end confdefs.h. */
16006 #include <$ac_header>
16007 _ACEOF
16008 if { (ac_try="$ac_cpp conftest.$ac_ext"
16009 case "(($ac_try" in
16010 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011 *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16015 ac_status=$?
16016 grep -v '^ *+' conftest.er1 >conftest.err
16017 rm -f conftest.er1
16018 cat conftest.err >&5
16019 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020 (exit $ac_status); } >/dev/null && {
16021 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16022 test ! -s conftest.err
16023 }; then
16024 ac_header_preproc=yes
16025 else
16026 echo "$as_me: failed program was:" >&5
16027 sed 's/^/| /' conftest.$ac_ext >&5
16028
16029 ac_header_preproc=no
16030 fi
16031
16032 rm -f conftest.err conftest.$ac_ext
16033 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16034 echo "${ECHO_T}$ac_header_preproc" >&6; }
16035
16036 # So? What about this header?
16037 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16038 yes:no: )
16039 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16040 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16041 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16042 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16043 ac_header_preproc=yes
16044 ;;
16045 no:yes:* )
16046 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16047 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16048 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16049 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16050 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16051 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16052 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16053 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16054 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16055 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16056 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16057 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16058
16059 ;;
16060 esac
16061 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16062 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16063 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16064 echo $ECHO_N "(cached) $ECHO_C" >&6
16065 else
16066 eval "$as_ac_Header=\$ac_header_preproc"
16067 fi
16068 ac_res=`eval echo '${'$as_ac_Header'}'`
16069 { echo "$as_me:$LINENO: result: $ac_res" >&5
16070 echo "${ECHO_T}$ac_res" >&6; }
16071
16072 fi
16073 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16074 cat >>confdefs.h <<_ACEOF
16075 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16076 _ACEOF
16077
16078 fi
16079
16080 done
16081
16082
16083
16084
16085
16086
16087 for ac_header in $ac_header_list
16088 do
16089 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16091 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16092 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16093 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16094 echo $ECHO_N "(cached) $ECHO_C" >&6
16095 fi
16096 ac_res=`eval echo '${'$as_ac_Header'}'`
16097 { echo "$as_me:$LINENO: result: $ac_res" >&5
16098 echo "${ECHO_T}$ac_res" >&6; }
16099 else
16100 # Is the header compilable?
16101 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16102 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16103 cat >conftest.$ac_ext <<_ACEOF
16104 /* confdefs.h. */
16105 _ACEOF
16106 cat confdefs.h >>conftest.$ac_ext
16107 cat >>conftest.$ac_ext <<_ACEOF
16108 /* end confdefs.h. */
16109 $ac_includes_default
16110 #include <$ac_header>
16111 _ACEOF
16112 rm -f conftest.$ac_objext
16113 if { (ac_try="$ac_compile"
16114 case "(($ac_try" in
16115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16116 *) ac_try_echo=$ac_try;;
16117 esac
16118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16119 (eval "$ac_compile") 2>conftest.er1
16120 ac_status=$?
16121 grep -v '^ *+' conftest.er1 >conftest.err
16122 rm -f conftest.er1
16123 cat conftest.err >&5
16124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16125 (exit $ac_status); } && {
16126 test -z "$ac_c_werror_flag" ||
16127 test ! -s conftest.err
16128 } && test -s conftest.$ac_objext; then
16129 ac_header_compiler=yes
16130 else
16131 echo "$as_me: failed program was:" >&5
16132 sed 's/^/| /' conftest.$ac_ext >&5
16133
16134 ac_header_compiler=no
16135 fi
16136
16137 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16138 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16139 echo "${ECHO_T}$ac_header_compiler" >&6; }
16140
16141 # Is the header present?
16142 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16143 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16144 cat >conftest.$ac_ext <<_ACEOF
16145 /* confdefs.h. */
16146 _ACEOF
16147 cat confdefs.h >>conftest.$ac_ext
16148 cat >>conftest.$ac_ext <<_ACEOF
16149 /* end confdefs.h. */
16150 #include <$ac_header>
16151 _ACEOF
16152 if { (ac_try="$ac_cpp conftest.$ac_ext"
16153 case "(($ac_try" in
16154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16155 *) ac_try_echo=$ac_try;;
16156 esac
16157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16158 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16159 ac_status=$?
16160 grep -v '^ *+' conftest.er1 >conftest.err
16161 rm -f conftest.er1
16162 cat conftest.err >&5
16163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16164 (exit $ac_status); } >/dev/null && {
16165 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16166 test ! -s conftest.err
16167 }; then
16168 ac_header_preproc=yes
16169 else
16170 echo "$as_me: failed program was:" >&5
16171 sed 's/^/| /' conftest.$ac_ext >&5
16172
16173 ac_header_preproc=no
16174 fi
16175
16176 rm -f conftest.err conftest.$ac_ext
16177 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16178 echo "${ECHO_T}$ac_header_preproc" >&6; }
16179
16180 # So? What about this header?
16181 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16182 yes:no: )
16183 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16184 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16185 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16186 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16187 ac_header_preproc=yes
16188 ;;
16189 no:yes:* )
16190 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16191 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16192 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16193 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16194 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16195 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16196 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16197 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16198 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16199 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16200 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16201 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16202
16203 ;;
16204 esac
16205 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16206 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16207 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16208 echo $ECHO_N "(cached) $ECHO_C" >&6
16209 else
16210 eval "$as_ac_Header=\$ac_header_preproc"
16211 fi
16212 ac_res=`eval echo '${'$as_ac_Header'}'`
16213 { echo "$as_me:$LINENO: result: $ac_res" >&5
16214 echo "${ECHO_T}$ac_res" >&6; }
16215
16216 fi
16217 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16218 cat >>confdefs.h <<_ACEOF
16219 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16220 _ACEOF
16221
16222 fi
16223
16224 done
16225
16226
16227
16228
16229
16230
16231
16232
16233
16234 for ac_func in $ac_func_list
16235 do
16236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16240 echo $ECHO_N "(cached) $ECHO_C" >&6
16241 else
16242 cat >conftest.$ac_ext <<_ACEOF
16243 /* confdefs.h. */
16244 _ACEOF
16245 cat confdefs.h >>conftest.$ac_ext
16246 cat >>conftest.$ac_ext <<_ACEOF
16247 /* end confdefs.h. */
16248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16250 #define $ac_func innocuous_$ac_func
16251
16252 /* System header to define __stub macros and hopefully few prototypes,
16253 which can conflict with char $ac_func (); below.
16254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16255 <limits.h> exists even on freestanding compilers. */
16256
16257 #ifdef __STDC__
16258 # include <limits.h>
16259 #else
16260 # include <assert.h>
16261 #endif
16262
16263 #undef $ac_func
16264
16265 /* Override any GCC internal prototype to avoid an error.
16266 Use char because int might match the return type of a GCC
16267 builtin and then its argument prototype would still apply. */
16268 #ifdef __cplusplus
16269 extern "C"
16270 #endif
16271 char $ac_func ();
16272 /* The GNU C library defines this for functions which it implements
16273 to always fail with ENOSYS. Some functions are actually named
16274 something starting with __ and the normal name is an alias. */
16275 #if defined __stub_$ac_func || defined __stub___$ac_func
16276 choke me
16277 #endif
16278
16279 int
16280 main ()
16281 {
16282 return $ac_func ();
16283 ;
16284 return 0;
16285 }
16286 _ACEOF
16287 rm -f conftest.$ac_objext conftest$ac_exeext
16288 if { (ac_try="$ac_link"
16289 case "(($ac_try" in
16290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16291 *) ac_try_echo=$ac_try;;
16292 esac
16293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16294 (eval "$ac_link") 2>conftest.er1
16295 ac_status=$?
16296 grep -v '^ *+' conftest.er1 >conftest.err
16297 rm -f conftest.er1
16298 cat conftest.err >&5
16299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16300 (exit $ac_status); } && {
16301 test -z "$ac_c_werror_flag" ||
16302 test ! -s conftest.err
16303 } && test -s conftest$ac_exeext &&
16304 $as_test_x conftest$ac_exeext; then
16305 eval "$as_ac_var=yes"
16306 else
16307 echo "$as_me: failed program was:" >&5
16308 sed 's/^/| /' conftest.$ac_ext >&5
16309
16310 eval "$as_ac_var=no"
16311 fi
16312
16313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16314 conftest$ac_exeext conftest.$ac_ext
16315 fi
16316 ac_res=`eval echo '${'$as_ac_var'}'`
16317 { echo "$as_me:$LINENO: result: $ac_res" >&5
16318 echo "${ECHO_T}$ac_res" >&6; }
16319 if test `eval echo '${'$as_ac_var'}'` = yes; then
16320 cat >>confdefs.h <<_ACEOF
16321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16322 _ACEOF
16323
16324 fi
16325 done
16326
16327
16328
16329
16330
16331
16332
16333
16334
16335
16336
16337
16338
16339
16340
16341
16342
16343 { echo "$as_me:$LINENO: checking for working mktime" >&5
16344 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16345 if test "${ac_cv_func_working_mktime+set}" = set; then
16346 echo $ECHO_N "(cached) $ECHO_C" >&6
16347 else
16348 if test "$cross_compiling" = yes; then
16349 ac_cv_func_working_mktime=no
16350 else
16351 cat >conftest.$ac_ext <<_ACEOF
16352 /* confdefs.h. */
16353 _ACEOF
16354 cat confdefs.h >>conftest.$ac_ext
16355 cat >>conftest.$ac_ext <<_ACEOF
16356 /* end confdefs.h. */
16357 /* Test program from Paul Eggert and Tony Leneis. */
16358 #ifdef TIME_WITH_SYS_TIME
16359 # include <sys/time.h>
16360 # include <time.h>
16361 #else
16362 # ifdef HAVE_SYS_TIME_H
16363 # include <sys/time.h>
16364 # else
16365 # include <time.h>
16366 # endif
16367 #endif
16368
16369 #include <stdlib.h>
16370
16371 #ifdef HAVE_UNISTD_H
16372 # include <unistd.h>
16373 #endif
16374
16375 #ifndef HAVE_ALARM
16376 # define alarm(X) /* empty */
16377 #endif
16378
16379 /* Work around redefinition to rpl_putenv by other config tests. */
16380 #undef putenv
16381
16382 static time_t time_t_max;
16383 static time_t time_t_min;
16384
16385 /* Values we'll use to set the TZ environment variable. */
16386 static char *tz_strings[] = {
16387 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16388 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16389 };
16390 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16391
16392 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16393 Based on a problem report from Andreas Jaeger. */
16394 static int
16395 spring_forward_gap ()
16396 {
16397 /* glibc (up to about 1998-10-07) failed this test. */
16398 struct tm tm;
16399
16400 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16401 instead of "TZ=America/Vancouver" in order to detect the bug even
16402 on systems that don't support the Olson extension, or don't have the
16403 full zoneinfo tables installed. */
16404 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16405
16406 tm.tm_year = 98;
16407 tm.tm_mon = 3;
16408 tm.tm_mday = 5;
16409 tm.tm_hour = 2;
16410 tm.tm_min = 0;
16411 tm.tm_sec = 0;
16412 tm.tm_isdst = -1;
16413 return mktime (&tm) != (time_t) -1;
16414 }
16415
16416 static int
16417 mktime_test1 (now)
16418 time_t now;
16419 {
16420 struct tm *lt;
16421 return ! (lt = localtime (&now)) || mktime (lt) == now;
16422 }
16423
16424 static int
16425 mktime_test (now)
16426 time_t now;
16427 {
16428 return (mktime_test1 (now)
16429 && mktime_test1 ((time_t) (time_t_max - now))
16430 && mktime_test1 ((time_t) (time_t_min + now)));
16431 }
16432
16433 static int
16434 irix_6_4_bug ()
16435 {
16436 /* Based on code from Ariel Faigon. */
16437 struct tm tm;
16438 tm.tm_year = 96;
16439 tm.tm_mon = 3;
16440 tm.tm_mday = 0;
16441 tm.tm_hour = 0;
16442 tm.tm_min = 0;
16443 tm.tm_sec = 0;
16444 tm.tm_isdst = -1;
16445 mktime (&tm);
16446 return tm.tm_mon == 2 && tm.tm_mday == 31;
16447 }
16448
16449 static int
16450 bigtime_test (j)
16451 int j;
16452 {
16453 struct tm tm;
16454 time_t now;
16455 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16456 now = mktime (&tm);
16457 if (now != (time_t) -1)
16458 {
16459 struct tm *lt = localtime (&now);
16460 if (! (lt
16461 && lt->tm_year == tm.tm_year
16462 && lt->tm_mon == tm.tm_mon
16463 && lt->tm_mday == tm.tm_mday
16464 && lt->tm_hour == tm.tm_hour
16465 && lt->tm_min == tm.tm_min
16466 && lt->tm_sec == tm.tm_sec
16467 && lt->tm_yday == tm.tm_yday
16468 && lt->tm_wday == tm.tm_wday
16469 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16470 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16471 return 0;
16472 }
16473 return 1;
16474 }
16475
16476 static int
16477 year_2050_test ()
16478 {
16479 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16480 ignoring leap seconds. */
16481 unsigned long int answer = 2527315200UL;
16482
16483 struct tm tm;
16484 time_t t;
16485 tm.tm_year = 2050 - 1900;
16486 tm.tm_mon = 2 - 1;
16487 tm.tm_mday = 1;
16488 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16489 tm.tm_isdst = -1;
16490
16491 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16492 instead of "TZ=America/Vancouver" in order to detect the bug even
16493 on systems that don't support the Olson extension, or don't have the
16494 full zoneinfo tables installed. */
16495 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16496
16497 t = mktime (&tm);
16498
16499 /* Check that the result is either a failure, or close enough
16500 to the correct answer that we can assume the discrepancy is
16501 due to leap seconds. */
16502 return (t == (time_t) -1
16503 || (0 < t && answer - 120 <= t && t <= answer + 120));
16504 }
16505
16506 int
16507 main ()
16508 {
16509 time_t t, delta;
16510 int i, j;
16511
16512 /* This test makes some buggy mktime implementations loop.
16513 Give up after 60 seconds; a mktime slower than that
16514 isn't worth using anyway. */
16515 alarm (60);
16516
16517 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16518 continue;
16519 time_t_max--;
16520 if ((time_t) -1 < 0)
16521 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16522 continue;
16523 delta = time_t_max / 997; /* a suitable prime number */
16524 for (i = 0; i < N_STRINGS; i++)
16525 {
16526 if (tz_strings[i])
16527 putenv (tz_strings[i]);
16528
16529 for (t = 0; t <= time_t_max - delta; t += delta)
16530 if (! mktime_test (t))
16531 return 1;
16532 if (! (mktime_test ((time_t) 1)
16533 && mktime_test ((time_t) (60 * 60))
16534 && mktime_test ((time_t) (60 * 60 * 24))))
16535 return 1;
16536
16537 for (j = 1; 0 < j; j *= 2)
16538 if (! bigtime_test (j))
16539 return 1;
16540 if (! bigtime_test (j - 1))
16541 return 1;
16542 }
16543 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16544 }
16545 _ACEOF
16546 rm -f conftest$ac_exeext
16547 if { (ac_try="$ac_link"
16548 case "(($ac_try" in
16549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16550 *) ac_try_echo=$ac_try;;
16551 esac
16552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16553 (eval "$ac_link") 2>&5
16554 ac_status=$?
16555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16556 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16557 { (case "(($ac_try" in
16558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16559 *) ac_try_echo=$ac_try;;
16560 esac
16561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16562 (eval "$ac_try") 2>&5
16563 ac_status=$?
16564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16565 (exit $ac_status); }; }; then
16566 ac_cv_func_working_mktime=yes
16567 else
16568 echo "$as_me: program exited with status $ac_status" >&5
16569 echo "$as_me: failed program was:" >&5
16570 sed 's/^/| /' conftest.$ac_ext >&5
16571
16572 ( exit $ac_status )
16573 ac_cv_func_working_mktime=no
16574 fi
16575 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16576 fi
16577
16578
16579 fi
16580 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16581 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16582 if test $ac_cv_func_working_mktime = no; then
16583 case " $LIBOBJS " in
16584 *" mktime.$ac_objext "* ) ;;
16585 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16586 ;;
16587 esac
16588
16589 fi
16590
16591 if test "$ac_cv_func_working_mktime" = no; then
16592
16593 cat >>confdefs.h <<\_ACEOF
16594 #define BROKEN_MKTIME 1
16595 _ACEOF
16596
16597 fi
16598
16599 ac_have_func=no # yes means we've found a way to get the load average.
16600
16601 # Make sure getloadavg.c is where it belongs, at configure-time.
16602 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16603 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16604 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16605 { (exit 1); exit 1; }; }
16606
16607 ac_save_LIBS=$LIBS
16608
16609 # Check for getloadavg, but be sure not to touch the cache variable.
16610 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16611 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16612 if test "${ac_cv_func_getloadavg+set}" = set; then
16613 echo $ECHO_N "(cached) $ECHO_C" >&6
16614 else
16615 cat >conftest.$ac_ext <<_ACEOF
16616 /* confdefs.h. */
16617 _ACEOF
16618 cat confdefs.h >>conftest.$ac_ext
16619 cat >>conftest.$ac_ext <<_ACEOF
16620 /* end confdefs.h. */
16621 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16622 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16623 #define getloadavg innocuous_getloadavg
16624
16625 /* System header to define __stub macros and hopefully few prototypes,
16626 which can conflict with char getloadavg (); below.
16627 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16628 <limits.h> exists even on freestanding compilers. */
16629
16630 #ifdef __STDC__
16631 # include <limits.h>
16632 #else
16633 # include <assert.h>
16634 #endif
16635
16636 #undef getloadavg
16637
16638 /* Override any GCC internal prototype to avoid an error.
16639 Use char because int might match the return type of a GCC
16640 builtin and then its argument prototype would still apply. */
16641 #ifdef __cplusplus
16642 extern "C"
16643 #endif
16644 char getloadavg ();
16645 /* The GNU C library defines this for functions which it implements
16646 to always fail with ENOSYS. Some functions are actually named
16647 something starting with __ and the normal name is an alias. */
16648 #if defined __stub_getloadavg || defined __stub___getloadavg
16649 choke me
16650 #endif
16651
16652 int
16653 main ()
16654 {
16655 return getloadavg ();
16656 ;
16657 return 0;
16658 }
16659 _ACEOF
16660 rm -f conftest.$ac_objext conftest$ac_exeext
16661 if { (ac_try="$ac_link"
16662 case "(($ac_try" in
16663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16664 *) ac_try_echo=$ac_try;;
16665 esac
16666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16667 (eval "$ac_link") 2>conftest.er1
16668 ac_status=$?
16669 grep -v '^ *+' conftest.er1 >conftest.err
16670 rm -f conftest.er1
16671 cat conftest.err >&5
16672 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16673 (exit $ac_status); } && {
16674 test -z "$ac_c_werror_flag" ||
16675 test ! -s conftest.err
16676 } && test -s conftest$ac_exeext &&
16677 $as_test_x conftest$ac_exeext; then
16678 ac_cv_func_getloadavg=yes
16679 else
16680 echo "$as_me: failed program was:" >&5
16681 sed 's/^/| /' conftest.$ac_ext >&5
16682
16683 ac_cv_func_getloadavg=no
16684 fi
16685
16686 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16687 conftest$ac_exeext conftest.$ac_ext
16688 fi
16689 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16690 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16691 if test $ac_cv_func_getloadavg = yes; then
16692 exit 0
16693 else
16694 exit 1
16695 fi
16696 ) && ac_have_func=yes
16697
16698 # On HPUX9, an unprivileged user can get load averages through this function.
16699
16700 for ac_func in pstat_getdynamic
16701 do
16702 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16703 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16704 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16705 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16706 echo $ECHO_N "(cached) $ECHO_C" >&6
16707 else
16708 cat >conftest.$ac_ext <<_ACEOF
16709 /* confdefs.h. */
16710 _ACEOF
16711 cat confdefs.h >>conftest.$ac_ext
16712 cat >>conftest.$ac_ext <<_ACEOF
16713 /* end confdefs.h. */
16714 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16715 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16716 #define $ac_func innocuous_$ac_func
16717
16718 /* System header to define __stub macros and hopefully few prototypes,
16719 which can conflict with char $ac_func (); below.
16720 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16721 <limits.h> exists even on freestanding compilers. */
16722
16723 #ifdef __STDC__
16724 # include <limits.h>
16725 #else
16726 # include <assert.h>
16727 #endif
16728
16729 #undef $ac_func
16730
16731 /* Override any GCC internal prototype to avoid an error.
16732 Use char because int might match the return type of a GCC
16733 builtin and then its argument prototype would still apply. */
16734 #ifdef __cplusplus
16735 extern "C"
16736 #endif
16737 char $ac_func ();
16738 /* The GNU C library defines this for functions which it implements
16739 to always fail with ENOSYS. Some functions are actually named
16740 something starting with __ and the normal name is an alias. */
16741 #if defined __stub_$ac_func || defined __stub___$ac_func
16742 choke me
16743 #endif
16744
16745 int
16746 main ()
16747 {
16748 return $ac_func ();
16749 ;
16750 return 0;
16751 }
16752 _ACEOF
16753 rm -f conftest.$ac_objext conftest$ac_exeext
16754 if { (ac_try="$ac_link"
16755 case "(($ac_try" in
16756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16757 *) ac_try_echo=$ac_try;;
16758 esac
16759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16760 (eval "$ac_link") 2>conftest.er1
16761 ac_status=$?
16762 grep -v '^ *+' conftest.er1 >conftest.err
16763 rm -f conftest.er1
16764 cat conftest.err >&5
16765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16766 (exit $ac_status); } && {
16767 test -z "$ac_c_werror_flag" ||
16768 test ! -s conftest.err
16769 } && test -s conftest$ac_exeext &&
16770 $as_test_x conftest$ac_exeext; then
16771 eval "$as_ac_var=yes"
16772 else
16773 echo "$as_me: failed program was:" >&5
16774 sed 's/^/| /' conftest.$ac_ext >&5
16775
16776 eval "$as_ac_var=no"
16777 fi
16778
16779 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16780 conftest$ac_exeext conftest.$ac_ext
16781 fi
16782 ac_res=`eval echo '${'$as_ac_var'}'`
16783 { echo "$as_me:$LINENO: result: $ac_res" >&5
16784 echo "${ECHO_T}$ac_res" >&6; }
16785 if test `eval echo '${'$as_ac_var'}'` = yes; then
16786 cat >>confdefs.h <<_ACEOF
16787 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16788 _ACEOF
16789
16790 fi
16791 done
16792
16793
16794 # Solaris has libkstat which does not require root.
16795
16796 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16797 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16798 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16799 echo $ECHO_N "(cached) $ECHO_C" >&6
16800 else
16801 ac_check_lib_save_LIBS=$LIBS
16802 LIBS="-lkstat $LIBS"
16803 cat >conftest.$ac_ext <<_ACEOF
16804 /* confdefs.h. */
16805 _ACEOF
16806 cat confdefs.h >>conftest.$ac_ext
16807 cat >>conftest.$ac_ext <<_ACEOF
16808 /* end confdefs.h. */
16809
16810 /* Override any GCC internal prototype to avoid an error.
16811 Use char because int might match the return type of a GCC
16812 builtin and then its argument prototype would still apply. */
16813 #ifdef __cplusplus
16814 extern "C"
16815 #endif
16816 char kstat_open ();
16817 int
16818 main ()
16819 {
16820 return kstat_open ();
16821 ;
16822 return 0;
16823 }
16824 _ACEOF
16825 rm -f conftest.$ac_objext conftest$ac_exeext
16826 if { (ac_try="$ac_link"
16827 case "(($ac_try" in
16828 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16829 *) ac_try_echo=$ac_try;;
16830 esac
16831 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16832 (eval "$ac_link") 2>conftest.er1
16833 ac_status=$?
16834 grep -v '^ *+' conftest.er1 >conftest.err
16835 rm -f conftest.er1
16836 cat conftest.err >&5
16837 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16838 (exit $ac_status); } && {
16839 test -z "$ac_c_werror_flag" ||
16840 test ! -s conftest.err
16841 } && test -s conftest$ac_exeext &&
16842 $as_test_x conftest$ac_exeext; then
16843 ac_cv_lib_kstat_kstat_open=yes
16844 else
16845 echo "$as_me: failed program was:" >&5
16846 sed 's/^/| /' conftest.$ac_ext >&5
16847
16848 ac_cv_lib_kstat_kstat_open=no
16849 fi
16850
16851 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16852 conftest$ac_exeext conftest.$ac_ext
16853 LIBS=$ac_check_lib_save_LIBS
16854 fi
16855 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16856 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16857 if test $ac_cv_lib_kstat_kstat_open = yes; then
16858 cat >>confdefs.h <<_ACEOF
16859 #define HAVE_LIBKSTAT 1
16860 _ACEOF
16861
16862 LIBS="-lkstat $LIBS"
16863
16864 fi
16865
16866 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16867
16868 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16869 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16870 # to get the right answer into the cache.
16871 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16872 if test $ac_have_func = no; then
16873 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16874 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16875 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16876 echo $ECHO_N "(cached) $ECHO_C" >&6
16877 else
16878 ac_check_lib_save_LIBS=$LIBS
16879 LIBS="-lelf $LIBS"
16880 cat >conftest.$ac_ext <<_ACEOF
16881 /* confdefs.h. */
16882 _ACEOF
16883 cat confdefs.h >>conftest.$ac_ext
16884 cat >>conftest.$ac_ext <<_ACEOF
16885 /* end confdefs.h. */
16886
16887 /* Override any GCC internal prototype to avoid an error.
16888 Use char because int might match the return type of a GCC
16889 builtin and then its argument prototype would still apply. */
16890 #ifdef __cplusplus
16891 extern "C"
16892 #endif
16893 char elf_begin ();
16894 int
16895 main ()
16896 {
16897 return elf_begin ();
16898 ;
16899 return 0;
16900 }
16901 _ACEOF
16902 rm -f conftest.$ac_objext conftest$ac_exeext
16903 if { (ac_try="$ac_link"
16904 case "(($ac_try" in
16905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16906 *) ac_try_echo=$ac_try;;
16907 esac
16908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16909 (eval "$ac_link") 2>conftest.er1
16910 ac_status=$?
16911 grep -v '^ *+' conftest.er1 >conftest.err
16912 rm -f conftest.er1
16913 cat conftest.err >&5
16914 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16915 (exit $ac_status); } && {
16916 test -z "$ac_c_werror_flag" ||
16917 test ! -s conftest.err
16918 } && test -s conftest$ac_exeext &&
16919 $as_test_x conftest$ac_exeext; then
16920 ac_cv_lib_elf_elf_begin=yes
16921 else
16922 echo "$as_me: failed program was:" >&5
16923 sed 's/^/| /' conftest.$ac_ext >&5
16924
16925 ac_cv_lib_elf_elf_begin=no
16926 fi
16927
16928 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16929 conftest$ac_exeext conftest.$ac_ext
16930 LIBS=$ac_check_lib_save_LIBS
16931 fi
16932 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16933 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16934 if test $ac_cv_lib_elf_elf_begin = yes; then
16935 LIBS="-lelf $LIBS"
16936 fi
16937
16938 fi
16939 if test $ac_have_func = no; then
16940 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16941 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16942 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16943 echo $ECHO_N "(cached) $ECHO_C" >&6
16944 else
16945 ac_check_lib_save_LIBS=$LIBS
16946 LIBS="-lkvm $LIBS"
16947 cat >conftest.$ac_ext <<_ACEOF
16948 /* confdefs.h. */
16949 _ACEOF
16950 cat confdefs.h >>conftest.$ac_ext
16951 cat >>conftest.$ac_ext <<_ACEOF
16952 /* end confdefs.h. */
16953
16954 /* Override any GCC internal prototype to avoid an error.
16955 Use char because int might match the return type of a GCC
16956 builtin and then its argument prototype would still apply. */
16957 #ifdef __cplusplus
16958 extern "C"
16959 #endif
16960 char kvm_open ();
16961 int
16962 main ()
16963 {
16964 return kvm_open ();
16965 ;
16966 return 0;
16967 }
16968 _ACEOF
16969 rm -f conftest.$ac_objext conftest$ac_exeext
16970 if { (ac_try="$ac_link"
16971 case "(($ac_try" in
16972 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16973 *) ac_try_echo=$ac_try;;
16974 esac
16975 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16976 (eval "$ac_link") 2>conftest.er1
16977 ac_status=$?
16978 grep -v '^ *+' conftest.er1 >conftest.err
16979 rm -f conftest.er1
16980 cat conftest.err >&5
16981 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16982 (exit $ac_status); } && {
16983 test -z "$ac_c_werror_flag" ||
16984 test ! -s conftest.err
16985 } && test -s conftest$ac_exeext &&
16986 $as_test_x conftest$ac_exeext; then
16987 ac_cv_lib_kvm_kvm_open=yes
16988 else
16989 echo "$as_me: failed program was:" >&5
16990 sed 's/^/| /' conftest.$ac_ext >&5
16991
16992 ac_cv_lib_kvm_kvm_open=no
16993 fi
16994
16995 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16996 conftest$ac_exeext conftest.$ac_ext
16997 LIBS=$ac_check_lib_save_LIBS
16998 fi
16999 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17000 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17001 if test $ac_cv_lib_kvm_kvm_open = yes; then
17002 LIBS="-lkvm $LIBS"
17003 fi
17004
17005 # Check for the 4.4BSD definition of getloadavg.
17006 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17007 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17008 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17009 echo $ECHO_N "(cached) $ECHO_C" >&6
17010 else
17011 ac_check_lib_save_LIBS=$LIBS
17012 LIBS="-lutil $LIBS"
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
17020 /* Override any GCC internal prototype to avoid an error.
17021 Use char because int might match the return type of a GCC
17022 builtin and then its argument prototype would still apply. */
17023 #ifdef __cplusplus
17024 extern "C"
17025 #endif
17026 char getloadavg ();
17027 int
17028 main ()
17029 {
17030 return getloadavg ();
17031 ;
17032 return 0;
17033 }
17034 _ACEOF
17035 rm -f conftest.$ac_objext conftest$ac_exeext
17036 if { (ac_try="$ac_link"
17037 case "(($ac_try" in
17038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17039 *) ac_try_echo=$ac_try;;
17040 esac
17041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17042 (eval "$ac_link") 2>conftest.er1
17043 ac_status=$?
17044 grep -v '^ *+' conftest.er1 >conftest.err
17045 rm -f conftest.er1
17046 cat conftest.err >&5
17047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17048 (exit $ac_status); } && {
17049 test -z "$ac_c_werror_flag" ||
17050 test ! -s conftest.err
17051 } && test -s conftest$ac_exeext &&
17052 $as_test_x conftest$ac_exeext; then
17053 ac_cv_lib_util_getloadavg=yes
17054 else
17055 echo "$as_me: failed program was:" >&5
17056 sed 's/^/| /' conftest.$ac_ext >&5
17057
17058 ac_cv_lib_util_getloadavg=no
17059 fi
17060
17061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17062 conftest$ac_exeext conftest.$ac_ext
17063 LIBS=$ac_check_lib_save_LIBS
17064 fi
17065 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17066 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17067 if test $ac_cv_lib_util_getloadavg = yes; then
17068 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17069 fi
17070
17071 fi
17072
17073 if test $ac_have_func = no; then
17074 # There is a commonly available library for RS/6000 AIX.
17075 # Since it is not a standard part of AIX, it might be installed locally.
17076 ac_getloadavg_LIBS=$LIBS
17077 LIBS="-L/usr/local/lib $LIBS"
17078 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17079 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17080 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17081 echo $ECHO_N "(cached) $ECHO_C" >&6
17082 else
17083 ac_check_lib_save_LIBS=$LIBS
17084 LIBS="-lgetloadavg $LIBS"
17085 cat >conftest.$ac_ext <<_ACEOF
17086 /* confdefs.h. */
17087 _ACEOF
17088 cat confdefs.h >>conftest.$ac_ext
17089 cat >>conftest.$ac_ext <<_ACEOF
17090 /* end confdefs.h. */
17091
17092 /* Override any GCC internal prototype to avoid an error.
17093 Use char because int might match the return type of a GCC
17094 builtin and then its argument prototype would still apply. */
17095 #ifdef __cplusplus
17096 extern "C"
17097 #endif
17098 char getloadavg ();
17099 int
17100 main ()
17101 {
17102 return getloadavg ();
17103 ;
17104 return 0;
17105 }
17106 _ACEOF
17107 rm -f conftest.$ac_objext conftest$ac_exeext
17108 if { (ac_try="$ac_link"
17109 case "(($ac_try" in
17110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17111 *) ac_try_echo=$ac_try;;
17112 esac
17113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17114 (eval "$ac_link") 2>conftest.er1
17115 ac_status=$?
17116 grep -v '^ *+' conftest.er1 >conftest.err
17117 rm -f conftest.er1
17118 cat conftest.err >&5
17119 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17120 (exit $ac_status); } && {
17121 test -z "$ac_c_werror_flag" ||
17122 test ! -s conftest.err
17123 } && test -s conftest$ac_exeext &&
17124 $as_test_x conftest$ac_exeext; then
17125 ac_cv_lib_getloadavg_getloadavg=yes
17126 else
17127 echo "$as_me: failed program was:" >&5
17128 sed 's/^/| /' conftest.$ac_ext >&5
17129
17130 ac_cv_lib_getloadavg_getloadavg=no
17131 fi
17132
17133 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17134 conftest$ac_exeext conftest.$ac_ext
17135 LIBS=$ac_check_lib_save_LIBS
17136 fi
17137 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17138 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17139 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17140 LIBS="-lgetloadavg $LIBS"
17141 else
17142 LIBS=$ac_getloadavg_LIBS
17143 fi
17144
17145 fi
17146
17147 # Make sure it is really in the library, if we think we found it,
17148 # otherwise set up the replacement function.
17149
17150 for ac_func in getloadavg
17151 do
17152 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17153 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17154 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17155 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17156 echo $ECHO_N "(cached) $ECHO_C" >&6
17157 else
17158 cat >conftest.$ac_ext <<_ACEOF
17159 /* confdefs.h. */
17160 _ACEOF
17161 cat confdefs.h >>conftest.$ac_ext
17162 cat >>conftest.$ac_ext <<_ACEOF
17163 /* end confdefs.h. */
17164 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17165 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17166 #define $ac_func innocuous_$ac_func
17167
17168 /* System header to define __stub macros and hopefully few prototypes,
17169 which can conflict with char $ac_func (); below.
17170 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17171 <limits.h> exists even on freestanding compilers. */
17172
17173 #ifdef __STDC__
17174 # include <limits.h>
17175 #else
17176 # include <assert.h>
17177 #endif
17178
17179 #undef $ac_func
17180
17181 /* Override any GCC internal prototype to avoid an error.
17182 Use char because int might match the return type of a GCC
17183 builtin and then its argument prototype would still apply. */
17184 #ifdef __cplusplus
17185 extern "C"
17186 #endif
17187 char $ac_func ();
17188 /* The GNU C library defines this for functions which it implements
17189 to always fail with ENOSYS. Some functions are actually named
17190 something starting with __ and the normal name is an alias. */
17191 #if defined __stub_$ac_func || defined __stub___$ac_func
17192 choke me
17193 #endif
17194
17195 int
17196 main ()
17197 {
17198 return $ac_func ();
17199 ;
17200 return 0;
17201 }
17202 _ACEOF
17203 rm -f conftest.$ac_objext conftest$ac_exeext
17204 if { (ac_try="$ac_link"
17205 case "(($ac_try" in
17206 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17207 *) ac_try_echo=$ac_try;;
17208 esac
17209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17210 (eval "$ac_link") 2>conftest.er1
17211 ac_status=$?
17212 grep -v '^ *+' conftest.er1 >conftest.err
17213 rm -f conftest.er1
17214 cat conftest.err >&5
17215 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17216 (exit $ac_status); } && {
17217 test -z "$ac_c_werror_flag" ||
17218 test ! -s conftest.err
17219 } && test -s conftest$ac_exeext &&
17220 $as_test_x conftest$ac_exeext; then
17221 eval "$as_ac_var=yes"
17222 else
17223 echo "$as_me: failed program was:" >&5
17224 sed 's/^/| /' conftest.$ac_ext >&5
17225
17226 eval "$as_ac_var=no"
17227 fi
17228
17229 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17230 conftest$ac_exeext conftest.$ac_ext
17231 fi
17232 ac_res=`eval echo '${'$as_ac_var'}'`
17233 { echo "$as_me:$LINENO: result: $ac_res" >&5
17234 echo "${ECHO_T}$ac_res" >&6; }
17235 if test `eval echo '${'$as_ac_var'}'` = yes; then
17236 cat >>confdefs.h <<_ACEOF
17237 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17238 _ACEOF
17239
17240 else
17241 case " $LIBOBJS " in
17242 *" getloadavg.$ac_objext "* ) ;;
17243 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17244 ;;
17245 esac
17246
17247
17248 cat >>confdefs.h <<\_ACEOF
17249 #define C_GETLOADAVG 1
17250 _ACEOF
17251
17252 # Figure out what our getloadavg.c needs.
17253 ac_have_func=no
17254 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17255 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17256 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17257 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17258 echo $ECHO_N "(cached) $ECHO_C" >&6
17259 fi
17260 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17261 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17262 else
17263 # Is the header compilable?
17264 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17265 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17266 cat >conftest.$ac_ext <<_ACEOF
17267 /* confdefs.h. */
17268 _ACEOF
17269 cat confdefs.h >>conftest.$ac_ext
17270 cat >>conftest.$ac_ext <<_ACEOF
17271 /* end confdefs.h. */
17272 $ac_includes_default
17273 #include <sys/dg_sys_info.h>
17274 _ACEOF
17275 rm -f conftest.$ac_objext
17276 if { (ac_try="$ac_compile"
17277 case "(($ac_try" in
17278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17279 *) ac_try_echo=$ac_try;;
17280 esac
17281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17282 (eval "$ac_compile") 2>conftest.er1
17283 ac_status=$?
17284 grep -v '^ *+' conftest.er1 >conftest.err
17285 rm -f conftest.er1
17286 cat conftest.err >&5
17287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17288 (exit $ac_status); } && {
17289 test -z "$ac_c_werror_flag" ||
17290 test ! -s conftest.err
17291 } && test -s conftest.$ac_objext; then
17292 ac_header_compiler=yes
17293 else
17294 echo "$as_me: failed program was:" >&5
17295 sed 's/^/| /' conftest.$ac_ext >&5
17296
17297 ac_header_compiler=no
17298 fi
17299
17300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17302 echo "${ECHO_T}$ac_header_compiler" >&6; }
17303
17304 # Is the header present?
17305 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17306 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17307 cat >conftest.$ac_ext <<_ACEOF
17308 /* confdefs.h. */
17309 _ACEOF
17310 cat confdefs.h >>conftest.$ac_ext
17311 cat >>conftest.$ac_ext <<_ACEOF
17312 /* end confdefs.h. */
17313 #include <sys/dg_sys_info.h>
17314 _ACEOF
17315 if { (ac_try="$ac_cpp conftest.$ac_ext"
17316 case "(($ac_try" in
17317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17318 *) ac_try_echo=$ac_try;;
17319 esac
17320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17321 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17322 ac_status=$?
17323 grep -v '^ *+' conftest.er1 >conftest.err
17324 rm -f conftest.er1
17325 cat conftest.err >&5
17326 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17327 (exit $ac_status); } >/dev/null && {
17328 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17329 test ! -s conftest.err
17330 }; then
17331 ac_header_preproc=yes
17332 else
17333 echo "$as_me: failed program was:" >&5
17334 sed 's/^/| /' conftest.$ac_ext >&5
17335
17336 ac_header_preproc=no
17337 fi
17338
17339 rm -f conftest.err conftest.$ac_ext
17340 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17341 echo "${ECHO_T}$ac_header_preproc" >&6; }
17342
17343 # So? What about this header?
17344 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17345 yes:no: )
17346 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17347 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17348 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17349 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17350 ac_header_preproc=yes
17351 ;;
17352 no:yes:* )
17353 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17354 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17355 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17356 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17357 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17358 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17359 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17360 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17361 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17362 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17363 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17364 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17365
17366 ;;
17367 esac
17368 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17369 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17370 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17371 echo $ECHO_N "(cached) $ECHO_C" >&6
17372 else
17373 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17374 fi
17375 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17376 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17377
17378 fi
17379 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17380 ac_have_func=yes
17381
17382 cat >>confdefs.h <<\_ACEOF
17383 #define DGUX 1
17384 _ACEOF
17385
17386
17387 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17388 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17389 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17390 echo $ECHO_N "(cached) $ECHO_C" >&6
17391 else
17392 ac_check_lib_save_LIBS=$LIBS
17393 LIBS="-ldgc $LIBS"
17394 cat >conftest.$ac_ext <<_ACEOF
17395 /* confdefs.h. */
17396 _ACEOF
17397 cat confdefs.h >>conftest.$ac_ext
17398 cat >>conftest.$ac_ext <<_ACEOF
17399 /* end confdefs.h. */
17400
17401 /* Override any GCC internal prototype to avoid an error.
17402 Use char because int might match the return type of a GCC
17403 builtin and then its argument prototype would still apply. */
17404 #ifdef __cplusplus
17405 extern "C"
17406 #endif
17407 char dg_sys_info ();
17408 int
17409 main ()
17410 {
17411 return dg_sys_info ();
17412 ;
17413 return 0;
17414 }
17415 _ACEOF
17416 rm -f conftest.$ac_objext conftest$ac_exeext
17417 if { (ac_try="$ac_link"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_link") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest$ac_exeext &&
17433 $as_test_x conftest$ac_exeext; then
17434 ac_cv_lib_dgc_dg_sys_info=yes
17435 else
17436 echo "$as_me: failed program was:" >&5
17437 sed 's/^/| /' conftest.$ac_ext >&5
17438
17439 ac_cv_lib_dgc_dg_sys_info=no
17440 fi
17441
17442 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17443 conftest$ac_exeext conftest.$ac_ext
17444 LIBS=$ac_check_lib_save_LIBS
17445 fi
17446 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17447 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17448 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17449 cat >>confdefs.h <<_ACEOF
17450 #define HAVE_LIBDGC 1
17451 _ACEOF
17452
17453 LIBS="-ldgc $LIBS"
17454
17455 fi
17456
17457 fi
17458
17459
17460
17461 if test "${ac_cv_header_locale_h+set}" = set; then
17462 { echo "$as_me:$LINENO: checking for locale.h" >&5
17463 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17464 if test "${ac_cv_header_locale_h+set}" = set; then
17465 echo $ECHO_N "(cached) $ECHO_C" >&6
17466 fi
17467 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17468 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17469 else
17470 # Is the header compilable?
17471 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17472 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17473 cat >conftest.$ac_ext <<_ACEOF
17474 /* confdefs.h. */
17475 _ACEOF
17476 cat confdefs.h >>conftest.$ac_ext
17477 cat >>conftest.$ac_ext <<_ACEOF
17478 /* end confdefs.h. */
17479 $ac_includes_default
17480 #include <locale.h>
17481 _ACEOF
17482 rm -f conftest.$ac_objext
17483 if { (ac_try="$ac_compile"
17484 case "(($ac_try" in
17485 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17486 *) ac_try_echo=$ac_try;;
17487 esac
17488 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17489 (eval "$ac_compile") 2>conftest.er1
17490 ac_status=$?
17491 grep -v '^ *+' conftest.er1 >conftest.err
17492 rm -f conftest.er1
17493 cat conftest.err >&5
17494 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17495 (exit $ac_status); } && {
17496 test -z "$ac_c_werror_flag" ||
17497 test ! -s conftest.err
17498 } && test -s conftest.$ac_objext; then
17499 ac_header_compiler=yes
17500 else
17501 echo "$as_me: failed program was:" >&5
17502 sed 's/^/| /' conftest.$ac_ext >&5
17503
17504 ac_header_compiler=no
17505 fi
17506
17507 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17508 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17509 echo "${ECHO_T}$ac_header_compiler" >&6; }
17510
17511 # Is the header present?
17512 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17513 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17514 cat >conftest.$ac_ext <<_ACEOF
17515 /* confdefs.h. */
17516 _ACEOF
17517 cat confdefs.h >>conftest.$ac_ext
17518 cat >>conftest.$ac_ext <<_ACEOF
17519 /* end confdefs.h. */
17520 #include <locale.h>
17521 _ACEOF
17522 if { (ac_try="$ac_cpp conftest.$ac_ext"
17523 case "(($ac_try" in
17524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17525 *) ac_try_echo=$ac_try;;
17526 esac
17527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17528 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17529 ac_status=$?
17530 grep -v '^ *+' conftest.er1 >conftest.err
17531 rm -f conftest.er1
17532 cat conftest.err >&5
17533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17534 (exit $ac_status); } >/dev/null && {
17535 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17536 test ! -s conftest.err
17537 }; then
17538 ac_header_preproc=yes
17539 else
17540 echo "$as_me: failed program was:" >&5
17541 sed 's/^/| /' conftest.$ac_ext >&5
17542
17543 ac_header_preproc=no
17544 fi
17545
17546 rm -f conftest.err conftest.$ac_ext
17547 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17548 echo "${ECHO_T}$ac_header_preproc" >&6; }
17549
17550 # So? What about this header?
17551 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17552 yes:no: )
17553 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17554 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17555 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17556 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17557 ac_header_preproc=yes
17558 ;;
17559 no:yes:* )
17560 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17561 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17562 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17563 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17564 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17565 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17566 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17567 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17568 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17569 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17570 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17571 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17572
17573 ;;
17574 esac
17575 { echo "$as_me:$LINENO: checking for locale.h" >&5
17576 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17577 if test "${ac_cv_header_locale_h+set}" = set; then
17578 echo $ECHO_N "(cached) $ECHO_C" >&6
17579 else
17580 ac_cv_header_locale_h=$ac_header_preproc
17581 fi
17582 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17583 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17584
17585 fi
17586
17587
17588
17589 for ac_func in setlocale
17590 do
17591 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17592 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17593 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17594 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17595 echo $ECHO_N "(cached) $ECHO_C" >&6
17596 else
17597 cat >conftest.$ac_ext <<_ACEOF
17598 /* confdefs.h. */
17599 _ACEOF
17600 cat confdefs.h >>conftest.$ac_ext
17601 cat >>conftest.$ac_ext <<_ACEOF
17602 /* end confdefs.h. */
17603 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17604 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17605 #define $ac_func innocuous_$ac_func
17606
17607 /* System header to define __stub macros and hopefully few prototypes,
17608 which can conflict with char $ac_func (); below.
17609 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17610 <limits.h> exists even on freestanding compilers. */
17611
17612 #ifdef __STDC__
17613 # include <limits.h>
17614 #else
17615 # include <assert.h>
17616 #endif
17617
17618 #undef $ac_func
17619
17620 /* Override any GCC internal prototype to avoid an error.
17621 Use char because int might match the return type of a GCC
17622 builtin and then its argument prototype would still apply. */
17623 #ifdef __cplusplus
17624 extern "C"
17625 #endif
17626 char $ac_func ();
17627 /* The GNU C library defines this for functions which it implements
17628 to always fail with ENOSYS. Some functions are actually named
17629 something starting with __ and the normal name is an alias. */
17630 #if defined __stub_$ac_func || defined __stub___$ac_func
17631 choke me
17632 #endif
17633
17634 int
17635 main ()
17636 {
17637 return $ac_func ();
17638 ;
17639 return 0;
17640 }
17641 _ACEOF
17642 rm -f conftest.$ac_objext conftest$ac_exeext
17643 if { (ac_try="$ac_link"
17644 case "(($ac_try" in
17645 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17646 *) ac_try_echo=$ac_try;;
17647 esac
17648 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17649 (eval "$ac_link") 2>conftest.er1
17650 ac_status=$?
17651 grep -v '^ *+' conftest.er1 >conftest.err
17652 rm -f conftest.er1
17653 cat conftest.err >&5
17654 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17655 (exit $ac_status); } && {
17656 test -z "$ac_c_werror_flag" ||
17657 test ! -s conftest.err
17658 } && test -s conftest$ac_exeext &&
17659 $as_test_x conftest$ac_exeext; then
17660 eval "$as_ac_var=yes"
17661 else
17662 echo "$as_me: failed program was:" >&5
17663 sed 's/^/| /' conftest.$ac_ext >&5
17664
17665 eval "$as_ac_var=no"
17666 fi
17667
17668 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17669 conftest$ac_exeext conftest.$ac_ext
17670 fi
17671 ac_res=`eval echo '${'$as_ac_var'}'`
17672 { echo "$as_me:$LINENO: result: $ac_res" >&5
17673 echo "${ECHO_T}$ac_res" >&6; }
17674 if test `eval echo '${'$as_ac_var'}'` = yes; then
17675 cat >>confdefs.h <<_ACEOF
17676 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17677 _ACEOF
17678
17679 fi
17680 done
17681
17682
17683 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17684 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17685 # Irix 4.0.5F has the header but not the library.
17686 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17687 ac_have_func=yes
17688
17689 cat >>confdefs.h <<\_ACEOF
17690 #define SVR4 1
17691 _ACEOF
17692
17693 fi
17694
17695 if test $ac_have_func = no; then
17696 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17697 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17698 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17699 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17700 echo $ECHO_N "(cached) $ECHO_C" >&6
17701 fi
17702 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17703 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17704 else
17705 # Is the header compilable?
17706 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17707 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17708 cat >conftest.$ac_ext <<_ACEOF
17709 /* confdefs.h. */
17710 _ACEOF
17711 cat confdefs.h >>conftest.$ac_ext
17712 cat >>conftest.$ac_ext <<_ACEOF
17713 /* end confdefs.h. */
17714 $ac_includes_default
17715 #include <inq_stats/cpustats.h>
17716 _ACEOF
17717 rm -f conftest.$ac_objext
17718 if { (ac_try="$ac_compile"
17719 case "(($ac_try" in
17720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17721 *) ac_try_echo=$ac_try;;
17722 esac
17723 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17724 (eval "$ac_compile") 2>conftest.er1
17725 ac_status=$?
17726 grep -v '^ *+' conftest.er1 >conftest.err
17727 rm -f conftest.er1
17728 cat conftest.err >&5
17729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17730 (exit $ac_status); } && {
17731 test -z "$ac_c_werror_flag" ||
17732 test ! -s conftest.err
17733 } && test -s conftest.$ac_objext; then
17734 ac_header_compiler=yes
17735 else
17736 echo "$as_me: failed program was:" >&5
17737 sed 's/^/| /' conftest.$ac_ext >&5
17738
17739 ac_header_compiler=no
17740 fi
17741
17742 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17743 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17744 echo "${ECHO_T}$ac_header_compiler" >&6; }
17745
17746 # Is the header present?
17747 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17748 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17749 cat >conftest.$ac_ext <<_ACEOF
17750 /* confdefs.h. */
17751 _ACEOF
17752 cat confdefs.h >>conftest.$ac_ext
17753 cat >>conftest.$ac_ext <<_ACEOF
17754 /* end confdefs.h. */
17755 #include <inq_stats/cpustats.h>
17756 _ACEOF
17757 if { (ac_try="$ac_cpp conftest.$ac_ext"
17758 case "(($ac_try" in
17759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17760 *) ac_try_echo=$ac_try;;
17761 esac
17762 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17763 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17764 ac_status=$?
17765 grep -v '^ *+' conftest.er1 >conftest.err
17766 rm -f conftest.er1
17767 cat conftest.err >&5
17768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17769 (exit $ac_status); } >/dev/null && {
17770 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17771 test ! -s conftest.err
17772 }; then
17773 ac_header_preproc=yes
17774 else
17775 echo "$as_me: failed program was:" >&5
17776 sed 's/^/| /' conftest.$ac_ext >&5
17777
17778 ac_header_preproc=no
17779 fi
17780
17781 rm -f conftest.err conftest.$ac_ext
17782 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17783 echo "${ECHO_T}$ac_header_preproc" >&6; }
17784
17785 # So? What about this header?
17786 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17787 yes:no: )
17788 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17789 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17790 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17791 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17792 ac_header_preproc=yes
17793 ;;
17794 no:yes:* )
17795 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17796 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17797 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17798 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17799 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17800 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17801 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17802 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17803 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17804 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17805 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17806 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17807
17808 ;;
17809 esac
17810 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17811 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17812 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17813 echo $ECHO_N "(cached) $ECHO_C" >&6
17814 else
17815 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17816 fi
17817 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17818 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17819
17820 fi
17821 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17822 ac_have_func=yes
17823
17824 cat >>confdefs.h <<\_ACEOF
17825 #define UMAX 1
17826 _ACEOF
17827
17828
17829 cat >>confdefs.h <<\_ACEOF
17830 #define UMAX4_3 1
17831 _ACEOF
17832
17833 fi
17834
17835
17836 fi
17837
17838 if test $ac_have_func = no; then
17839 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17840 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17841 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17842 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17843 echo $ECHO_N "(cached) $ECHO_C" >&6
17844 fi
17845 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17846 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17847 else
17848 # Is the header compilable?
17849 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17850 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17851 cat >conftest.$ac_ext <<_ACEOF
17852 /* confdefs.h. */
17853 _ACEOF
17854 cat confdefs.h >>conftest.$ac_ext
17855 cat >>conftest.$ac_ext <<_ACEOF
17856 /* end confdefs.h. */
17857 $ac_includes_default
17858 #include <sys/cpustats.h>
17859 _ACEOF
17860 rm -f conftest.$ac_objext
17861 if { (ac_try="$ac_compile"
17862 case "(($ac_try" in
17863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17864 *) ac_try_echo=$ac_try;;
17865 esac
17866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17867 (eval "$ac_compile") 2>conftest.er1
17868 ac_status=$?
17869 grep -v '^ *+' conftest.er1 >conftest.err
17870 rm -f conftest.er1
17871 cat conftest.err >&5
17872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17873 (exit $ac_status); } && {
17874 test -z "$ac_c_werror_flag" ||
17875 test ! -s conftest.err
17876 } && test -s conftest.$ac_objext; then
17877 ac_header_compiler=yes
17878 else
17879 echo "$as_me: failed program was:" >&5
17880 sed 's/^/| /' conftest.$ac_ext >&5
17881
17882 ac_header_compiler=no
17883 fi
17884
17885 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17886 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17887 echo "${ECHO_T}$ac_header_compiler" >&6; }
17888
17889 # Is the header present?
17890 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17891 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17892 cat >conftest.$ac_ext <<_ACEOF
17893 /* confdefs.h. */
17894 _ACEOF
17895 cat confdefs.h >>conftest.$ac_ext
17896 cat >>conftest.$ac_ext <<_ACEOF
17897 /* end confdefs.h. */
17898 #include <sys/cpustats.h>
17899 _ACEOF
17900 if { (ac_try="$ac_cpp conftest.$ac_ext"
17901 case "(($ac_try" in
17902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17903 *) ac_try_echo=$ac_try;;
17904 esac
17905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17906 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17907 ac_status=$?
17908 grep -v '^ *+' conftest.er1 >conftest.err
17909 rm -f conftest.er1
17910 cat conftest.err >&5
17911 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912 (exit $ac_status); } >/dev/null && {
17913 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17914 test ! -s conftest.err
17915 }; then
17916 ac_header_preproc=yes
17917 else
17918 echo "$as_me: failed program was:" >&5
17919 sed 's/^/| /' conftest.$ac_ext >&5
17920
17921 ac_header_preproc=no
17922 fi
17923
17924 rm -f conftest.err conftest.$ac_ext
17925 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17926 echo "${ECHO_T}$ac_header_preproc" >&6; }
17927
17928 # So? What about this header?
17929 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17930 yes:no: )
17931 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17932 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17933 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17934 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17935 ac_header_preproc=yes
17936 ;;
17937 no:yes:* )
17938 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17939 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17941 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17943 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17944 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17945 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17946 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17947 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17948 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17949 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17950
17951 ;;
17952 esac
17953 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17954 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17955 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17956 echo $ECHO_N "(cached) $ECHO_C" >&6
17957 else
17958 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17959 fi
17960 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17961 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17962
17963 fi
17964 if test $ac_cv_header_sys_cpustats_h = yes; then
17965 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17966 #define UMAX 1
17967 _ACEOF
17968
17969 fi
17970
17971
17972 fi
17973
17974 if test $ac_have_func = no; then
17975
17976 for ac_header in mach/mach.h
17977 do
17978 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17979 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17980 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17981 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17982 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17983 echo $ECHO_N "(cached) $ECHO_C" >&6
17984 fi
17985 ac_res=`eval echo '${'$as_ac_Header'}'`
17986 { echo "$as_me:$LINENO: result: $ac_res" >&5
17987 echo "${ECHO_T}$ac_res" >&6; }
17988 else
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17991 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <$ac_header>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_header_compiler=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18032 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <$ac_header>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 }; then
18057 ac_header_preproc=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_header_preproc=no
18063 fi
18064
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 yes:no: )
18072 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18077 ;;
18078 no:yes:* )
18079 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18091
18092 ;;
18093 esac
18094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 eval "$as_ac_Header=\$ac_header_preproc"
18100 fi
18101 ac_res=`eval echo '${'$as_ac_Header'}'`
18102 { echo "$as_me:$LINENO: result: $ac_res" >&5
18103 echo "${ECHO_T}$ac_res" >&6; }
18104
18105 fi
18106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18107 cat >>confdefs.h <<_ACEOF
18108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18109 _ACEOF
18110
18111 fi
18112
18113 done
18114
18115 fi
18116
18117
18118 for ac_header in nlist.h
18119 do
18120 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18122 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18123 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18124 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18125 echo $ECHO_N "(cached) $ECHO_C" >&6
18126 fi
18127 ac_res=`eval echo '${'$as_ac_Header'}'`
18128 { echo "$as_me:$LINENO: result: $ac_res" >&5
18129 echo "${ECHO_T}$ac_res" >&6; }
18130 else
18131 # Is the header compilable?
18132 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18133 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18134 cat >conftest.$ac_ext <<_ACEOF
18135 /* confdefs.h. */
18136 _ACEOF
18137 cat confdefs.h >>conftest.$ac_ext
18138 cat >>conftest.$ac_ext <<_ACEOF
18139 /* end confdefs.h. */
18140 $ac_includes_default
18141 #include <$ac_header>
18142 _ACEOF
18143 rm -f conftest.$ac_objext
18144 if { (ac_try="$ac_compile"
18145 case "(($ac_try" in
18146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18147 *) ac_try_echo=$ac_try;;
18148 esac
18149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18150 (eval "$ac_compile") 2>conftest.er1
18151 ac_status=$?
18152 grep -v '^ *+' conftest.er1 >conftest.err
18153 rm -f conftest.er1
18154 cat conftest.err >&5
18155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18156 (exit $ac_status); } && {
18157 test -z "$ac_c_werror_flag" ||
18158 test ! -s conftest.err
18159 } && test -s conftest.$ac_objext; then
18160 ac_header_compiler=yes
18161 else
18162 echo "$as_me: failed program was:" >&5
18163 sed 's/^/| /' conftest.$ac_ext >&5
18164
18165 ac_header_compiler=no
18166 fi
18167
18168 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18169 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18170 echo "${ECHO_T}$ac_header_compiler" >&6; }
18171
18172 # Is the header present?
18173 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18174 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18175 cat >conftest.$ac_ext <<_ACEOF
18176 /* confdefs.h. */
18177 _ACEOF
18178 cat confdefs.h >>conftest.$ac_ext
18179 cat >>conftest.$ac_ext <<_ACEOF
18180 /* end confdefs.h. */
18181 #include <$ac_header>
18182 _ACEOF
18183 if { (ac_try="$ac_cpp conftest.$ac_ext"
18184 case "(($ac_try" in
18185 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18186 *) ac_try_echo=$ac_try;;
18187 esac
18188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18189 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18190 ac_status=$?
18191 grep -v '^ *+' conftest.er1 >conftest.err
18192 rm -f conftest.er1
18193 cat conftest.err >&5
18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18195 (exit $ac_status); } >/dev/null && {
18196 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18197 test ! -s conftest.err
18198 }; then
18199 ac_header_preproc=yes
18200 else
18201 echo "$as_me: failed program was:" >&5
18202 sed 's/^/| /' conftest.$ac_ext >&5
18203
18204 ac_header_preproc=no
18205 fi
18206
18207 rm -f conftest.err conftest.$ac_ext
18208 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18209 echo "${ECHO_T}$ac_header_preproc" >&6; }
18210
18211 # So? What about this header?
18212 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18213 yes:no: )
18214 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18215 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18216 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18217 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18218 ac_header_preproc=yes
18219 ;;
18220 no:yes:* )
18221 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18222 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18223 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18224 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18225 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18226 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18227 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18228 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18229 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18230 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18231 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18232 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18233
18234 ;;
18235 esac
18236 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18237 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18238 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18239 echo $ECHO_N "(cached) $ECHO_C" >&6
18240 else
18241 eval "$as_ac_Header=\$ac_header_preproc"
18242 fi
18243 ac_res=`eval echo '${'$as_ac_Header'}'`
18244 { echo "$as_me:$LINENO: result: $ac_res" >&5
18245 echo "${ECHO_T}$ac_res" >&6; }
18246
18247 fi
18248 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18249 cat >>confdefs.h <<_ACEOF
18250 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18251 _ACEOF
18252 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18253 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18254 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18255 echo $ECHO_N "(cached) $ECHO_C" >&6
18256 else
18257 cat >conftest.$ac_ext <<_ACEOF
18258 /* confdefs.h. */
18259 _ACEOF
18260 cat confdefs.h >>conftest.$ac_ext
18261 cat >>conftest.$ac_ext <<_ACEOF
18262 /* end confdefs.h. */
18263 #include <nlist.h>
18264
18265 int
18266 main ()
18267 {
18268 static struct nlist ac_aggr;
18269 if (ac_aggr.n_un.n_name)
18270 return 0;
18271 ;
18272 return 0;
18273 }
18274 _ACEOF
18275 rm -f conftest.$ac_objext
18276 if { (ac_try="$ac_compile"
18277 case "(($ac_try" in
18278 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18279 *) ac_try_echo=$ac_try;;
18280 esac
18281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18282 (eval "$ac_compile") 2>conftest.er1
18283 ac_status=$?
18284 grep -v '^ *+' conftest.er1 >conftest.err
18285 rm -f conftest.er1
18286 cat conftest.err >&5
18287 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18288 (exit $ac_status); } && {
18289 test -z "$ac_c_werror_flag" ||
18290 test ! -s conftest.err
18291 } && test -s conftest.$ac_objext; then
18292 ac_cv_member_struct_nlist_n_un_n_name=yes
18293 else
18294 echo "$as_me: failed program was:" >&5
18295 sed 's/^/| /' conftest.$ac_ext >&5
18296
18297 cat >conftest.$ac_ext <<_ACEOF
18298 /* confdefs.h. */
18299 _ACEOF
18300 cat confdefs.h >>conftest.$ac_ext
18301 cat >>conftest.$ac_ext <<_ACEOF
18302 /* end confdefs.h. */
18303 #include <nlist.h>
18304
18305 int
18306 main ()
18307 {
18308 static struct nlist ac_aggr;
18309 if (sizeof ac_aggr.n_un.n_name)
18310 return 0;
18311 ;
18312 return 0;
18313 }
18314 _ACEOF
18315 rm -f conftest.$ac_objext
18316 if { (ac_try="$ac_compile"
18317 case "(($ac_try" in
18318 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18319 *) ac_try_echo=$ac_try;;
18320 esac
18321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18322 (eval "$ac_compile") 2>conftest.er1
18323 ac_status=$?
18324 grep -v '^ *+' conftest.er1 >conftest.err
18325 rm -f conftest.er1
18326 cat conftest.err >&5
18327 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18328 (exit $ac_status); } && {
18329 test -z "$ac_c_werror_flag" ||
18330 test ! -s conftest.err
18331 } && test -s conftest.$ac_objext; then
18332 ac_cv_member_struct_nlist_n_un_n_name=yes
18333 else
18334 echo "$as_me: failed program was:" >&5
18335 sed 's/^/| /' conftest.$ac_ext >&5
18336
18337 ac_cv_member_struct_nlist_n_un_n_name=no
18338 fi
18339
18340 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18341 fi
18342
18343 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18344 fi
18345 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18346 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18347 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18348
18349 cat >>confdefs.h <<_ACEOF
18350 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18351 _ACEOF
18352
18353
18354 cat >>confdefs.h <<\_ACEOF
18355 #define NLIST_NAME_UNION 1
18356 _ACEOF
18357
18358 fi
18359
18360
18361 fi
18362
18363 done
18364
18365 fi
18366 done
18367
18368
18369 # Some definitions of getloadavg require that the program be installed setgid.
18370 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18371 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18372 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18373 echo $ECHO_N "(cached) $ECHO_C" >&6
18374 else
18375 cat >conftest.$ac_ext <<_ACEOF
18376 /* confdefs.h. */
18377 _ACEOF
18378 cat confdefs.h >>conftest.$ac_ext
18379 cat >>conftest.$ac_ext <<_ACEOF
18380 /* end confdefs.h. */
18381 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18382 #ifdef LDAV_PRIVILEGED
18383 Yowza Am I SETGID yet
18384 #endif
18385 _ACEOF
18386 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18387 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18388 ac_cv_func_getloadavg_setgid=yes
18389 else
18390 ac_cv_func_getloadavg_setgid=no
18391 fi
18392 rm -f conftest*
18393
18394 fi
18395 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18396 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18397 if test $ac_cv_func_getloadavg_setgid = yes; then
18398 NEED_SETGID=true
18399
18400 cat >>confdefs.h <<\_ACEOF
18401 #define GETLOADAVG_PRIVILEGED 1
18402 _ACEOF
18403
18404 else
18405 NEED_SETGID=false
18406 fi
18407
18408 if test $ac_cv_func_getloadavg_setgid = yes; then
18409 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18410 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18411 if test "${ac_cv_group_kmem+set}" = set; then
18412 echo $ECHO_N "(cached) $ECHO_C" >&6
18413 else
18414 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18415 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18416 # If we got an error (system does not support symlinks), try without -L.
18417 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18418 ac_cv_group_kmem=`echo $ac_ls_output \
18419 | sed -ne 's/[ ][ ]*/ /g;
18420 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18421 / /s/.* //;p;'`
18422
18423 fi
18424 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18425 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18426 KMEM_GROUP=$ac_cv_group_kmem
18427 fi
18428 if test "x$ac_save_LIBS" = x; then
18429 GETLOADAVG_LIBS=$LIBS
18430 else
18431 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18432 fi
18433 LIBS=$ac_save_LIBS
18434
18435
18436
18437 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18438 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18439 if test "${ac_cv_sys_largefile_source+set}" = set; then
18440 echo $ECHO_N "(cached) $ECHO_C" >&6
18441 else
18442 while :; do
18443 cat >conftest.$ac_ext <<_ACEOF
18444 /* confdefs.h. */
18445 _ACEOF
18446 cat confdefs.h >>conftest.$ac_ext
18447 cat >>conftest.$ac_ext <<_ACEOF
18448 /* end confdefs.h. */
18449 #include <sys/types.h> /* for off_t */
18450 #include <stdio.h>
18451 int
18452 main ()
18453 {
18454 int (*fp) (FILE *, off_t, int) = fseeko;
18455 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18456 ;
18457 return 0;
18458 }
18459 _ACEOF
18460 rm -f conftest.$ac_objext conftest$ac_exeext
18461 if { (ac_try="$ac_link"
18462 case "(($ac_try" in
18463 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18464 *) ac_try_echo=$ac_try;;
18465 esac
18466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18467 (eval "$ac_link") 2>conftest.er1
18468 ac_status=$?
18469 grep -v '^ *+' conftest.er1 >conftest.err
18470 rm -f conftest.er1
18471 cat conftest.err >&5
18472 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18473 (exit $ac_status); } && {
18474 test -z "$ac_c_werror_flag" ||
18475 test ! -s conftest.err
18476 } && test -s conftest$ac_exeext &&
18477 $as_test_x conftest$ac_exeext; then
18478 ac_cv_sys_largefile_source=no; break
18479 else
18480 echo "$as_me: failed program was:" >&5
18481 sed 's/^/| /' conftest.$ac_ext >&5
18482
18483
18484 fi
18485
18486 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18487 conftest$ac_exeext conftest.$ac_ext
18488 cat >conftest.$ac_ext <<_ACEOF
18489 /* confdefs.h. */
18490 _ACEOF
18491 cat confdefs.h >>conftest.$ac_ext
18492 cat >>conftest.$ac_ext <<_ACEOF
18493 /* end confdefs.h. */
18494 #define _LARGEFILE_SOURCE 1
18495 #include <sys/types.h> /* for off_t */
18496 #include <stdio.h>
18497 int
18498 main ()
18499 {
18500 int (*fp) (FILE *, off_t, int) = fseeko;
18501 return fseeko (stdin, 0, 0) && fp (stdin, 0, 0);
18502 ;
18503 return 0;
18504 }
18505 _ACEOF
18506 rm -f conftest.$ac_objext conftest$ac_exeext
18507 if { (ac_try="$ac_link"
18508 case "(($ac_try" in
18509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18510 *) ac_try_echo=$ac_try;;
18511 esac
18512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18513 (eval "$ac_link") 2>conftest.er1
18514 ac_status=$?
18515 grep -v '^ *+' conftest.er1 >conftest.err
18516 rm -f conftest.er1
18517 cat conftest.err >&5
18518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18519 (exit $ac_status); } && {
18520 test -z "$ac_c_werror_flag" ||
18521 test ! -s conftest.err
18522 } && test -s conftest$ac_exeext &&
18523 $as_test_x conftest$ac_exeext; then
18524 ac_cv_sys_largefile_source=1; break
18525 else
18526 echo "$as_me: failed program was:" >&5
18527 sed 's/^/| /' conftest.$ac_ext >&5
18528
18529
18530 fi
18531
18532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18533 conftest$ac_exeext conftest.$ac_ext
18534 ac_cv_sys_largefile_source=unknown
18535 break
18536 done
18537 fi
18538 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18539 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18540 case $ac_cv_sys_largefile_source in #(
18541 no | unknown) ;;
18542 *)
18543 cat >>confdefs.h <<_ACEOF
18544 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18545 _ACEOF
18546 ;;
18547 esac
18548 rm -f conftest*
18549
18550 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18551 # in glibc 2.1.3, but that breaks too many other things.
18552 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18553 if test $ac_cv_sys_largefile_source != unknown; then
18554
18555 cat >>confdefs.h <<\_ACEOF
18556 #define HAVE_FSEEKO 1
18557 _ACEOF
18558
18559 fi
18560
18561
18562 # Configure getopt.
18563 # getopt.m4 serial 10
18564
18565 # The getopt module assume you want GNU getopt, with getopt_long etc,
18566 # rather than vanilla POSIX getopt. This means your your code should
18567 # always include <getopt.h> for the getopt prototypes.
18568
18569
18570
18571
18572
18573
18574
18575
18576
18577
18578
18579 # Prerequisites of lib/getopt*.
18580
18581
18582
18583
18584 GETOPT_H=
18585
18586 for ac_header in getopt.h
18587 do
18588 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18590 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18591 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18592 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18593 echo $ECHO_N "(cached) $ECHO_C" >&6
18594 fi
18595 ac_res=`eval echo '${'$as_ac_Header'}'`
18596 { echo "$as_me:$LINENO: result: $ac_res" >&5
18597 echo "${ECHO_T}$ac_res" >&6; }
18598 else
18599 # Is the header compilable?
18600 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18601 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18602 cat >conftest.$ac_ext <<_ACEOF
18603 /* confdefs.h. */
18604 _ACEOF
18605 cat confdefs.h >>conftest.$ac_ext
18606 cat >>conftest.$ac_ext <<_ACEOF
18607 /* end confdefs.h. */
18608 $ac_includes_default
18609 #include <$ac_header>
18610 _ACEOF
18611 rm -f conftest.$ac_objext
18612 if { (ac_try="$ac_compile"
18613 case "(($ac_try" in
18614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18615 *) ac_try_echo=$ac_try;;
18616 esac
18617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18618 (eval "$ac_compile") 2>conftest.er1
18619 ac_status=$?
18620 grep -v '^ *+' conftest.er1 >conftest.err
18621 rm -f conftest.er1
18622 cat conftest.err >&5
18623 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18624 (exit $ac_status); } && {
18625 test -z "$ac_c_werror_flag" ||
18626 test ! -s conftest.err
18627 } && test -s conftest.$ac_objext; then
18628 ac_header_compiler=yes
18629 else
18630 echo "$as_me: failed program was:" >&5
18631 sed 's/^/| /' conftest.$ac_ext >&5
18632
18633 ac_header_compiler=no
18634 fi
18635
18636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18637 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18638 echo "${ECHO_T}$ac_header_compiler" >&6; }
18639
18640 # Is the header present?
18641 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18642 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18643 cat >conftest.$ac_ext <<_ACEOF
18644 /* confdefs.h. */
18645 _ACEOF
18646 cat confdefs.h >>conftest.$ac_ext
18647 cat >>conftest.$ac_ext <<_ACEOF
18648 /* end confdefs.h. */
18649 #include <$ac_header>
18650 _ACEOF
18651 if { (ac_try="$ac_cpp conftest.$ac_ext"
18652 case "(($ac_try" in
18653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18654 *) ac_try_echo=$ac_try;;
18655 esac
18656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18657 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18658 ac_status=$?
18659 grep -v '^ *+' conftest.er1 >conftest.err
18660 rm -f conftest.er1
18661 cat conftest.err >&5
18662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18663 (exit $ac_status); } >/dev/null && {
18664 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18665 test ! -s conftest.err
18666 }; then
18667 ac_header_preproc=yes
18668 else
18669 echo "$as_me: failed program was:" >&5
18670 sed 's/^/| /' conftest.$ac_ext >&5
18671
18672 ac_header_preproc=no
18673 fi
18674
18675 rm -f conftest.err conftest.$ac_ext
18676 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18677 echo "${ECHO_T}$ac_header_preproc" >&6; }
18678
18679 # So? What about this header?
18680 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18681 yes:no: )
18682 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18683 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18684 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18685 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18686 ac_header_preproc=yes
18687 ;;
18688 no:yes:* )
18689 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18690 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18691 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18692 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18693 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18694 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18695 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18696 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18697 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18698 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18699 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18700 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18701
18702 ;;
18703 esac
18704 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18705 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18706 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18707 echo $ECHO_N "(cached) $ECHO_C" >&6
18708 else
18709 eval "$as_ac_Header=\$ac_header_preproc"
18710 fi
18711 ac_res=`eval echo '${'$as_ac_Header'}'`
18712 { echo "$as_me:$LINENO: result: $ac_res" >&5
18713 echo "${ECHO_T}$ac_res" >&6; }
18714
18715 fi
18716 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18717 cat >>confdefs.h <<_ACEOF
18718 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18719 _ACEOF
18720
18721 else
18722 GETOPT_H=getopt.h
18723 fi
18724
18725 done
18726
18727 if test -z "$GETOPT_H"; then
18728
18729 for ac_func in getopt_long_only
18730 do
18731 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18732 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18733 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18734 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18735 echo $ECHO_N "(cached) $ECHO_C" >&6
18736 else
18737 cat >conftest.$ac_ext <<_ACEOF
18738 /* confdefs.h. */
18739 _ACEOF
18740 cat confdefs.h >>conftest.$ac_ext
18741 cat >>conftest.$ac_ext <<_ACEOF
18742 /* end confdefs.h. */
18743 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18744 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18745 #define $ac_func innocuous_$ac_func
18746
18747 /* System header to define __stub macros and hopefully few prototypes,
18748 which can conflict with char $ac_func (); below.
18749 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18750 <limits.h> exists even on freestanding compilers. */
18751
18752 #ifdef __STDC__
18753 # include <limits.h>
18754 #else
18755 # include <assert.h>
18756 #endif
18757
18758 #undef $ac_func
18759
18760 /* Override any GCC internal prototype to avoid an error.
18761 Use char because int might match the return type of a GCC
18762 builtin and then its argument prototype would still apply. */
18763 #ifdef __cplusplus
18764 extern "C"
18765 #endif
18766 char $ac_func ();
18767 /* The GNU C library defines this for functions which it implements
18768 to always fail with ENOSYS. Some functions are actually named
18769 something starting with __ and the normal name is an alias. */
18770 #if defined __stub_$ac_func || defined __stub___$ac_func
18771 choke me
18772 #endif
18773
18774 int
18775 main ()
18776 {
18777 return $ac_func ();
18778 ;
18779 return 0;
18780 }
18781 _ACEOF
18782 rm -f conftest.$ac_objext conftest$ac_exeext
18783 if { (ac_try="$ac_link"
18784 case "(($ac_try" in
18785 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18786 *) ac_try_echo=$ac_try;;
18787 esac
18788 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18789 (eval "$ac_link") 2>conftest.er1
18790 ac_status=$?
18791 grep -v '^ *+' conftest.er1 >conftest.err
18792 rm -f conftest.er1
18793 cat conftest.err >&5
18794 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18795 (exit $ac_status); } && {
18796 test -z "$ac_c_werror_flag" ||
18797 test ! -s conftest.err
18798 } && test -s conftest$ac_exeext &&
18799 $as_test_x conftest$ac_exeext; then
18800 eval "$as_ac_var=yes"
18801 else
18802 echo "$as_me: failed program was:" >&5
18803 sed 's/^/| /' conftest.$ac_ext >&5
18804
18805 eval "$as_ac_var=no"
18806 fi
18807
18808 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18809 conftest$ac_exeext conftest.$ac_ext
18810 fi
18811 ac_res=`eval echo '${'$as_ac_var'}'`
18812 { echo "$as_me:$LINENO: result: $ac_res" >&5
18813 echo "${ECHO_T}$ac_res" >&6; }
18814 if test `eval echo '${'$as_ac_var'}'` = yes; then
18815 cat >>confdefs.h <<_ACEOF
18816 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18817 _ACEOF
18818
18819 else
18820 GETOPT_H=getopt.h
18821 fi
18822 done
18823
18824 fi
18825
18826 if test -z "$GETOPT_H"; then
18827 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18828 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18829 if test "${ac_cv_have_decl_optreset+set}" = set; then
18830 echo $ECHO_N "(cached) $ECHO_C" >&6
18831 else
18832 cat >conftest.$ac_ext <<_ACEOF
18833 /* confdefs.h. */
18834 _ACEOF
18835 cat confdefs.h >>conftest.$ac_ext
18836 cat >>conftest.$ac_ext <<_ACEOF
18837 /* end confdefs.h. */
18838 #include <getopt.h>
18839
18840 int
18841 main ()
18842 {
18843 #ifndef optreset
18844 (void) optreset;
18845 #endif
18846
18847 ;
18848 return 0;
18849 }
18850 _ACEOF
18851 rm -f conftest.$ac_objext
18852 if { (ac_try="$ac_compile"
18853 case "(($ac_try" in
18854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18855 *) ac_try_echo=$ac_try;;
18856 esac
18857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18858 (eval "$ac_compile") 2>conftest.er1
18859 ac_status=$?
18860 grep -v '^ *+' conftest.er1 >conftest.err
18861 rm -f conftest.er1
18862 cat conftest.err >&5
18863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18864 (exit $ac_status); } && {
18865 test -z "$ac_c_werror_flag" ||
18866 test ! -s conftest.err
18867 } && test -s conftest.$ac_objext; then
18868 ac_cv_have_decl_optreset=yes
18869 else
18870 echo "$as_me: failed program was:" >&5
18871 sed 's/^/| /' conftest.$ac_ext >&5
18872
18873 ac_cv_have_decl_optreset=no
18874 fi
18875
18876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18877 fi
18878 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18879 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18880 if test $ac_cv_have_decl_optreset = yes; then
18881 GETOPT_H=getopt.h
18882 fi
18883
18884 fi
18885
18886 if test -z "$GETOPT_H"; then
18887 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18888 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18889 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18890 echo $ECHO_N "(cached) $ECHO_C" >&6
18891 else
18892 if test "$cross_compiling" = yes; then
18893 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18894 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18895 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18896 echo $ECHO_N "(cached) $ECHO_C" >&6
18897 else
18898 cat >conftest.$ac_ext <<_ACEOF
18899 /* confdefs.h. */
18900 _ACEOF
18901 cat confdefs.h >>conftest.$ac_ext
18902 cat >>conftest.$ac_ext <<_ACEOF
18903 /* end confdefs.h. */
18904 #include <getopt.h>
18905
18906 int
18907 main ()
18908 {
18909 #ifndef getopt_clip
18910 (void) getopt_clip;
18911 #endif
18912
18913 ;
18914 return 0;
18915 }
18916 _ACEOF
18917 rm -f conftest.$ac_objext
18918 if { (ac_try="$ac_compile"
18919 case "(($ac_try" in
18920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18921 *) ac_try_echo=$ac_try;;
18922 esac
18923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18924 (eval "$ac_compile") 2>conftest.er1
18925 ac_status=$?
18926 grep -v '^ *+' conftest.er1 >conftest.err
18927 rm -f conftest.er1
18928 cat conftest.err >&5
18929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18930 (exit $ac_status); } && {
18931 test -z "$ac_c_werror_flag" ||
18932 test ! -s conftest.err
18933 } && test -s conftest.$ac_objext; then
18934 ac_cv_have_decl_getopt_clip=yes
18935 else
18936 echo "$as_me: failed program was:" >&5
18937 sed 's/^/| /' conftest.$ac_ext >&5
18938
18939 ac_cv_have_decl_getopt_clip=no
18940 fi
18941
18942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18943 fi
18944 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18945 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18946 if test $ac_cv_have_decl_getopt_clip = yes; then
18947 gl_cv_func_gnu_getopt=no
18948 else
18949 gl_cv_func_gnu_getopt=yes
18950 fi
18951
18952 else
18953 cat >conftest.$ac_ext <<_ACEOF
18954 /* confdefs.h. */
18955 _ACEOF
18956 cat confdefs.h >>conftest.$ac_ext
18957 cat >>conftest.$ac_ext <<_ACEOF
18958 /* end confdefs.h. */
18959 #include <getopt.h>
18960 int
18961 main ()
18962 {
18963
18964 char *myargv[3];
18965 myargv[0] = "conftest";
18966 myargv[1] = "-+";
18967 myargv[2] = 0;
18968 return getopt (2, myargv, "+a") != '?';
18969
18970 ;
18971 return 0;
18972 }
18973 _ACEOF
18974 rm -f conftest$ac_exeext
18975 if { (ac_try="$ac_link"
18976 case "(($ac_try" in
18977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18978 *) ac_try_echo=$ac_try;;
18979 esac
18980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18981 (eval "$ac_link") 2>&5
18982 ac_status=$?
18983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18984 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18985 { (case "(($ac_try" in
18986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18987 *) ac_try_echo=$ac_try;;
18988 esac
18989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18990 (eval "$ac_try") 2>&5
18991 ac_status=$?
18992 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18993 (exit $ac_status); }; }; then
18994 gl_cv_func_gnu_getopt=yes
18995 else
18996 echo "$as_me: program exited with status $ac_status" >&5
18997 echo "$as_me: failed program was:" >&5
18998 sed 's/^/| /' conftest.$ac_ext >&5
18999
19000 ( exit $ac_status )
19001 gl_cv_func_gnu_getopt=no
19002 fi
19003 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19004 fi
19005
19006
19007 fi
19008 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19009 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19010 if test "$gl_cv_func_gnu_getopt" = "no"; then
19011 GETOPT_H=getopt.h
19012 fi
19013 fi
19014
19015
19016
19017 if test -n "$GETOPT_H"; then
19018
19019
19020 GETOPT_H=getopt.h
19021
19022 cat >>confdefs.h <<\_ACEOF
19023 #define __GETOPT_PREFIX rpl_
19024 _ACEOF
19025
19026
19027
19028 :
19029 GETOPTOBJS='getopt.o getopt1.o'
19030
19031 fi
19032
19033
19034
19035
19036 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19037 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19038 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19039 echo $ECHO_N "(cached) $ECHO_C" >&6
19040 else
19041 # Use it with a single arg.
19042 cat >conftest.$ac_ext <<_ACEOF
19043 /* confdefs.h. */
19044 _ACEOF
19045 cat confdefs.h >>conftest.$ac_ext
19046 cat >>conftest.$ac_ext <<_ACEOF
19047 /* end confdefs.h. */
19048 $ac_includes_default
19049 int
19050 main ()
19051 {
19052 getpgrp (0);
19053 ;
19054 return 0;
19055 }
19056 _ACEOF
19057 rm -f conftest.$ac_objext
19058 if { (ac_try="$ac_compile"
19059 case "(($ac_try" in
19060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061 *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064 (eval "$ac_compile") 2>conftest.er1
19065 ac_status=$?
19066 grep -v '^ *+' conftest.er1 >conftest.err
19067 rm -f conftest.er1
19068 cat conftest.err >&5
19069 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19070 (exit $ac_status); } && {
19071 test -z "$ac_c_werror_flag" ||
19072 test ! -s conftest.err
19073 } && test -s conftest.$ac_objext; then
19074 ac_cv_func_getpgrp_void=no
19075 else
19076 echo "$as_me: failed program was:" >&5
19077 sed 's/^/| /' conftest.$ac_ext >&5
19078
19079 ac_cv_func_getpgrp_void=yes
19080 fi
19081
19082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19083
19084 fi
19085 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19086 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19087 if test $ac_cv_func_getpgrp_void = yes; then
19088
19089 cat >>confdefs.h <<\_ACEOF
19090 #define GETPGRP_VOID 1
19091 _ACEOF
19092
19093 fi
19094
19095
19096
19097 for ac_func in strftime
19098 do
19099 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19100 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19101 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19102 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19103 echo $ECHO_N "(cached) $ECHO_C" >&6
19104 else
19105 cat >conftest.$ac_ext <<_ACEOF
19106 /* confdefs.h. */
19107 _ACEOF
19108 cat confdefs.h >>conftest.$ac_ext
19109 cat >>conftest.$ac_ext <<_ACEOF
19110 /* end confdefs.h. */
19111 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19112 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19113 #define $ac_func innocuous_$ac_func
19114
19115 /* System header to define __stub macros and hopefully few prototypes,
19116 which can conflict with char $ac_func (); below.
19117 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19118 <limits.h> exists even on freestanding compilers. */
19119
19120 #ifdef __STDC__
19121 # include <limits.h>
19122 #else
19123 # include <assert.h>
19124 #endif
19125
19126 #undef $ac_func
19127
19128 /* Override any GCC internal prototype to avoid an error.
19129 Use char because int might match the return type of a GCC
19130 builtin and then its argument prototype would still apply. */
19131 #ifdef __cplusplus
19132 extern "C"
19133 #endif
19134 char $ac_func ();
19135 /* The GNU C library defines this for functions which it implements
19136 to always fail with ENOSYS. Some functions are actually named
19137 something starting with __ and the normal name is an alias. */
19138 #if defined __stub_$ac_func || defined __stub___$ac_func
19139 choke me
19140 #endif
19141
19142 int
19143 main ()
19144 {
19145 return $ac_func ();
19146 ;
19147 return 0;
19148 }
19149 _ACEOF
19150 rm -f conftest.$ac_objext conftest$ac_exeext
19151 if { (ac_try="$ac_link"
19152 case "(($ac_try" in
19153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19154 *) ac_try_echo=$ac_try;;
19155 esac
19156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19157 (eval "$ac_link") 2>conftest.er1
19158 ac_status=$?
19159 grep -v '^ *+' conftest.er1 >conftest.err
19160 rm -f conftest.er1
19161 cat conftest.err >&5
19162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19163 (exit $ac_status); } && {
19164 test -z "$ac_c_werror_flag" ||
19165 test ! -s conftest.err
19166 } && test -s conftest$ac_exeext &&
19167 $as_test_x conftest$ac_exeext; then
19168 eval "$as_ac_var=yes"
19169 else
19170 echo "$as_me: failed program was:" >&5
19171 sed 's/^/| /' conftest.$ac_ext >&5
19172
19173 eval "$as_ac_var=no"
19174 fi
19175
19176 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19177 conftest$ac_exeext conftest.$ac_ext
19178 fi
19179 ac_res=`eval echo '${'$as_ac_var'}'`
19180 { echo "$as_me:$LINENO: result: $ac_res" >&5
19181 echo "${ECHO_T}$ac_res" >&6; }
19182 if test `eval echo '${'$as_ac_var'}'` = yes; then
19183 cat >>confdefs.h <<_ACEOF
19184 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19185 _ACEOF
19186
19187 else
19188 # strftime is in -lintl on SCO UNIX.
19189 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19190 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19191 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19192 echo $ECHO_N "(cached) $ECHO_C" >&6
19193 else
19194 ac_check_lib_save_LIBS=$LIBS
19195 LIBS="-lintl $LIBS"
19196 cat >conftest.$ac_ext <<_ACEOF
19197 /* confdefs.h. */
19198 _ACEOF
19199 cat confdefs.h >>conftest.$ac_ext
19200 cat >>conftest.$ac_ext <<_ACEOF
19201 /* end confdefs.h. */
19202
19203 /* Override any GCC internal prototype to avoid an error.
19204 Use char because int might match the return type of a GCC
19205 builtin and then its argument prototype would still apply. */
19206 #ifdef __cplusplus
19207 extern "C"
19208 #endif
19209 char strftime ();
19210 int
19211 main ()
19212 {
19213 return strftime ();
19214 ;
19215 return 0;
19216 }
19217 _ACEOF
19218 rm -f conftest.$ac_objext conftest$ac_exeext
19219 if { (ac_try="$ac_link"
19220 case "(($ac_try" in
19221 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19222 *) ac_try_echo=$ac_try;;
19223 esac
19224 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19225 (eval "$ac_link") 2>conftest.er1
19226 ac_status=$?
19227 grep -v '^ *+' conftest.er1 >conftest.err
19228 rm -f conftest.er1
19229 cat conftest.err >&5
19230 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19231 (exit $ac_status); } && {
19232 test -z "$ac_c_werror_flag" ||
19233 test ! -s conftest.err
19234 } && test -s conftest$ac_exeext &&
19235 $as_test_x conftest$ac_exeext; then
19236 ac_cv_lib_intl_strftime=yes
19237 else
19238 echo "$as_me: failed program was:" >&5
19239 sed 's/^/| /' conftest.$ac_ext >&5
19240
19241 ac_cv_lib_intl_strftime=no
19242 fi
19243
19244 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19245 conftest$ac_exeext conftest.$ac_ext
19246 LIBS=$ac_check_lib_save_LIBS
19247 fi
19248 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19249 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19250 if test $ac_cv_lib_intl_strftime = yes; then
19251 cat >>confdefs.h <<\_ACEOF
19252 #define HAVE_STRFTIME 1
19253 _ACEOF
19254
19255 LIBS="-lintl $LIBS"
19256 fi
19257
19258 fi
19259 done
19260
19261
19262 # UNIX98 PTYs.
19263
19264 for ac_func in grantpt
19265 do
19266 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19267 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19268 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19269 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19270 echo $ECHO_N "(cached) $ECHO_C" >&6
19271 else
19272 cat >conftest.$ac_ext <<_ACEOF
19273 /* confdefs.h. */
19274 _ACEOF
19275 cat confdefs.h >>conftest.$ac_ext
19276 cat >>conftest.$ac_ext <<_ACEOF
19277 /* end confdefs.h. */
19278 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19279 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19280 #define $ac_func innocuous_$ac_func
19281
19282 /* System header to define __stub macros and hopefully few prototypes,
19283 which can conflict with char $ac_func (); below.
19284 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19285 <limits.h> exists even on freestanding compilers. */
19286
19287 #ifdef __STDC__
19288 # include <limits.h>
19289 #else
19290 # include <assert.h>
19291 #endif
19292
19293 #undef $ac_func
19294
19295 /* Override any GCC internal prototype to avoid an error.
19296 Use char because int might match the return type of a GCC
19297 builtin and then its argument prototype would still apply. */
19298 #ifdef __cplusplus
19299 extern "C"
19300 #endif
19301 char $ac_func ();
19302 /* The GNU C library defines this for functions which it implements
19303 to always fail with ENOSYS. Some functions are actually named
19304 something starting with __ and the normal name is an alias. */
19305 #if defined __stub_$ac_func || defined __stub___$ac_func
19306 choke me
19307 #endif
19308
19309 int
19310 main ()
19311 {
19312 return $ac_func ();
19313 ;
19314 return 0;
19315 }
19316 _ACEOF
19317 rm -f conftest.$ac_objext conftest$ac_exeext
19318 if { (ac_try="$ac_link"
19319 case "(($ac_try" in
19320 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19321 *) ac_try_echo=$ac_try;;
19322 esac
19323 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19324 (eval "$ac_link") 2>conftest.er1
19325 ac_status=$?
19326 grep -v '^ *+' conftest.er1 >conftest.err
19327 rm -f conftest.er1
19328 cat conftest.err >&5
19329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330 (exit $ac_status); } && {
19331 test -z "$ac_c_werror_flag" ||
19332 test ! -s conftest.err
19333 } && test -s conftest$ac_exeext &&
19334 $as_test_x conftest$ac_exeext; then
19335 eval "$as_ac_var=yes"
19336 else
19337 echo "$as_me: failed program was:" >&5
19338 sed 's/^/| /' conftest.$ac_ext >&5
19339
19340 eval "$as_ac_var=no"
19341 fi
19342
19343 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19344 conftest$ac_exeext conftest.$ac_ext
19345 fi
19346 ac_res=`eval echo '${'$as_ac_var'}'`
19347 { echo "$as_me:$LINENO: result: $ac_res" >&5
19348 echo "${ECHO_T}$ac_res" >&6; }
19349 if test `eval echo '${'$as_ac_var'}'` = yes; then
19350 cat >>confdefs.h <<_ACEOF
19351 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19352 _ACEOF
19353
19354 fi
19355 done
19356
19357
19358 # PTY-related GNU extensions.
19359
19360 for ac_func in getpt
19361 do
19362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19366 echo $ECHO_N "(cached) $ECHO_C" >&6
19367 else
19368 cat >conftest.$ac_ext <<_ACEOF
19369 /* confdefs.h. */
19370 _ACEOF
19371 cat confdefs.h >>conftest.$ac_ext
19372 cat >>conftest.$ac_ext <<_ACEOF
19373 /* end confdefs.h. */
19374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19376 #define $ac_func innocuous_$ac_func
19377
19378 /* System header to define __stub macros and hopefully few prototypes,
19379 which can conflict with char $ac_func (); below.
19380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19381 <limits.h> exists even on freestanding compilers. */
19382
19383 #ifdef __STDC__
19384 # include <limits.h>
19385 #else
19386 # include <assert.h>
19387 #endif
19388
19389 #undef $ac_func
19390
19391 /* Override any GCC internal prototype to avoid an error.
19392 Use char because int might match the return type of a GCC
19393 builtin and then its argument prototype would still apply. */
19394 #ifdef __cplusplus
19395 extern "C"
19396 #endif
19397 char $ac_func ();
19398 /* The GNU C library defines this for functions which it implements
19399 to always fail with ENOSYS. Some functions are actually named
19400 something starting with __ and the normal name is an alias. */
19401 #if defined __stub_$ac_func || defined __stub___$ac_func
19402 choke me
19403 #endif
19404
19405 int
19406 main ()
19407 {
19408 return $ac_func ();
19409 ;
19410 return 0;
19411 }
19412 _ACEOF
19413 rm -f conftest.$ac_objext conftest$ac_exeext
19414 if { (ac_try="$ac_link"
19415 case "(($ac_try" in
19416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19417 *) ac_try_echo=$ac_try;;
19418 esac
19419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19420 (eval "$ac_link") 2>conftest.er1
19421 ac_status=$?
19422 grep -v '^ *+' conftest.er1 >conftest.err
19423 rm -f conftest.er1
19424 cat conftest.err >&5
19425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19426 (exit $ac_status); } && {
19427 test -z "$ac_c_werror_flag" ||
19428 test ! -s conftest.err
19429 } && test -s conftest$ac_exeext &&
19430 $as_test_x conftest$ac_exeext; then
19431 eval "$as_ac_var=yes"
19432 else
19433 echo "$as_me: failed program was:" >&5
19434 sed 's/^/| /' conftest.$ac_ext >&5
19435
19436 eval "$as_ac_var=no"
19437 fi
19438
19439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19440 conftest$ac_exeext conftest.$ac_ext
19441 fi
19442 ac_res=`eval echo '${'$as_ac_var'}'`
19443 { echo "$as_me:$LINENO: result: $ac_res" >&5
19444 echo "${ECHO_T}$ac_res" >&6; }
19445 if test `eval echo '${'$as_ac_var'}'` = yes; then
19446 cat >>confdefs.h <<_ACEOF
19447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19448 _ACEOF
19449
19450 fi
19451 done
19452
19453
19454 # Check this now, so that we will NOT find the above functions in ncurses.
19455 # That is because we have not set up to link ncurses in lib-src.
19456 # It's better to believe a function is not available
19457 # than to expect to find it in ncurses.
19458
19459 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19460 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19461 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19462 echo $ECHO_N "(cached) $ECHO_C" >&6
19463 else
19464 ac_check_lib_save_LIBS=$LIBS
19465 LIBS="-lncurses $LIBS"
19466 cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h. */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h. */
19472
19473 /* Override any GCC internal prototype to avoid an error.
19474 Use char because int might match the return type of a GCC
19475 builtin and then its argument prototype would still apply. */
19476 #ifdef __cplusplus
19477 extern "C"
19478 #endif
19479 char tparm ();
19480 int
19481 main ()
19482 {
19483 return tparm ();
19484 ;
19485 return 0;
19486 }
19487 _ACEOF
19488 rm -f conftest.$ac_objext conftest$ac_exeext
19489 if { (ac_try="$ac_link"
19490 case "(($ac_try" in
19491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19492 *) ac_try_echo=$ac_try;;
19493 esac
19494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19495 (eval "$ac_link") 2>conftest.er1
19496 ac_status=$?
19497 grep -v '^ *+' conftest.er1 >conftest.err
19498 rm -f conftest.er1
19499 cat conftest.err >&5
19500 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19501 (exit $ac_status); } && {
19502 test -z "$ac_c_werror_flag" ||
19503 test ! -s conftest.err
19504 } && test -s conftest$ac_exeext &&
19505 $as_test_x conftest$ac_exeext; then
19506 ac_cv_lib_ncurses_tparm=yes
19507 else
19508 echo "$as_me: failed program was:" >&5
19509 sed 's/^/| /' conftest.$ac_ext >&5
19510
19511 ac_cv_lib_ncurses_tparm=no
19512 fi
19513
19514 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19515 conftest$ac_exeext conftest.$ac_ext
19516 LIBS=$ac_check_lib_save_LIBS
19517 fi
19518 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19519 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19520 if test $ac_cv_lib_ncurses_tparm = yes; then
19521 cat >>confdefs.h <<_ACEOF
19522 #define HAVE_LIBNCURSES 1
19523 _ACEOF
19524
19525 LIBS="-lncurses $LIBS"
19526
19527 fi
19528
19529
19530 # Do we need the Hesiod library to provide the support routines?
19531 if test "$with_hesiod" = yes ; then
19532 # Don't set $LIBS here -- see comments above.
19533 resolv=no
19534 { echo "$as_me:$LINENO: checking for res_send" >&5
19535 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19536 if test "${ac_cv_func_res_send+set}" = set; then
19537 echo $ECHO_N "(cached) $ECHO_C" >&6
19538 else
19539 cat >conftest.$ac_ext <<_ACEOF
19540 /* confdefs.h. */
19541 _ACEOF
19542 cat confdefs.h >>conftest.$ac_ext
19543 cat >>conftest.$ac_ext <<_ACEOF
19544 /* end confdefs.h. */
19545 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19546 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19547 #define res_send innocuous_res_send
19548
19549 /* System header to define __stub macros and hopefully few prototypes,
19550 which can conflict with char res_send (); below.
19551 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19552 <limits.h> exists even on freestanding compilers. */
19553
19554 #ifdef __STDC__
19555 # include <limits.h>
19556 #else
19557 # include <assert.h>
19558 #endif
19559
19560 #undef res_send
19561
19562 /* Override any GCC internal prototype to avoid an error.
19563 Use char because int might match the return type of a GCC
19564 builtin and then its argument prototype would still apply. */
19565 #ifdef __cplusplus
19566 extern "C"
19567 #endif
19568 char res_send ();
19569 /* The GNU C library defines this for functions which it implements
19570 to always fail with ENOSYS. Some functions are actually named
19571 something starting with __ and the normal name is an alias. */
19572 #if defined __stub_res_send || defined __stub___res_send
19573 choke me
19574 #endif
19575
19576 int
19577 main ()
19578 {
19579 return res_send ();
19580 ;
19581 return 0;
19582 }
19583 _ACEOF
19584 rm -f conftest.$ac_objext conftest$ac_exeext
19585 if { (ac_try="$ac_link"
19586 case "(($ac_try" in
19587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19588 *) ac_try_echo=$ac_try;;
19589 esac
19590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19591 (eval "$ac_link") 2>conftest.er1
19592 ac_status=$?
19593 grep -v '^ *+' conftest.er1 >conftest.err
19594 rm -f conftest.er1
19595 cat conftest.err >&5
19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19597 (exit $ac_status); } && {
19598 test -z "$ac_c_werror_flag" ||
19599 test ! -s conftest.err
19600 } && test -s conftest$ac_exeext &&
19601 $as_test_x conftest$ac_exeext; then
19602 ac_cv_func_res_send=yes
19603 else
19604 echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19606
19607 ac_cv_func_res_send=no
19608 fi
19609
19610 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19611 conftest$ac_exeext conftest.$ac_ext
19612 fi
19613 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19614 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19615 if test $ac_cv_func_res_send = yes; then
19616 :
19617 else
19618 { echo "$as_me:$LINENO: checking for __res_send" >&5
19619 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19620 if test "${ac_cv_func___res_send+set}" = set; then
19621 echo $ECHO_N "(cached) $ECHO_C" >&6
19622 else
19623 cat >conftest.$ac_ext <<_ACEOF
19624 /* confdefs.h. */
19625 _ACEOF
19626 cat confdefs.h >>conftest.$ac_ext
19627 cat >>conftest.$ac_ext <<_ACEOF
19628 /* end confdefs.h. */
19629 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19630 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19631 #define __res_send innocuous___res_send
19632
19633 /* System header to define __stub macros and hopefully few prototypes,
19634 which can conflict with char __res_send (); below.
19635 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19636 <limits.h> exists even on freestanding compilers. */
19637
19638 #ifdef __STDC__
19639 # include <limits.h>
19640 #else
19641 # include <assert.h>
19642 #endif
19643
19644 #undef __res_send
19645
19646 /* Override any GCC internal prototype to avoid an error.
19647 Use char because int might match the return type of a GCC
19648 builtin and then its argument prototype would still apply. */
19649 #ifdef __cplusplus
19650 extern "C"
19651 #endif
19652 char __res_send ();
19653 /* The GNU C library defines this for functions which it implements
19654 to always fail with ENOSYS. Some functions are actually named
19655 something starting with __ and the normal name is an alias. */
19656 #if defined __stub___res_send || defined __stub_____res_send
19657 choke me
19658 #endif
19659
19660 int
19661 main ()
19662 {
19663 return __res_send ();
19664 ;
19665 return 0;
19666 }
19667 _ACEOF
19668 rm -f conftest.$ac_objext conftest$ac_exeext
19669 if { (ac_try="$ac_link"
19670 case "(($ac_try" in
19671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19672 *) ac_try_echo=$ac_try;;
19673 esac
19674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19675 (eval "$ac_link") 2>conftest.er1
19676 ac_status=$?
19677 grep -v '^ *+' conftest.er1 >conftest.err
19678 rm -f conftest.er1
19679 cat conftest.err >&5
19680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19681 (exit $ac_status); } && {
19682 test -z "$ac_c_werror_flag" ||
19683 test ! -s conftest.err
19684 } && test -s conftest$ac_exeext &&
19685 $as_test_x conftest$ac_exeext; then
19686 ac_cv_func___res_send=yes
19687 else
19688 echo "$as_me: failed program was:" >&5
19689 sed 's/^/| /' conftest.$ac_ext >&5
19690
19691 ac_cv_func___res_send=no
19692 fi
19693
19694 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19695 conftest$ac_exeext conftest.$ac_ext
19696 fi
19697 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19698 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19699 if test $ac_cv_func___res_send = yes; then
19700 :
19701 else
19702 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19703 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19704 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19705 echo $ECHO_N "(cached) $ECHO_C" >&6
19706 else
19707 ac_check_lib_save_LIBS=$LIBS
19708 LIBS="-lresolv $LIBS"
19709 cat >conftest.$ac_ext <<_ACEOF
19710 /* confdefs.h. */
19711 _ACEOF
19712 cat confdefs.h >>conftest.$ac_ext
19713 cat >>conftest.$ac_ext <<_ACEOF
19714 /* end confdefs.h. */
19715
19716 /* Override any GCC internal prototype to avoid an error.
19717 Use char because int might match the return type of a GCC
19718 builtin and then its argument prototype would still apply. */
19719 #ifdef __cplusplus
19720 extern "C"
19721 #endif
19722 char res_send ();
19723 int
19724 main ()
19725 {
19726 return res_send ();
19727 ;
19728 return 0;
19729 }
19730 _ACEOF
19731 rm -f conftest.$ac_objext conftest$ac_exeext
19732 if { (ac_try="$ac_link"
19733 case "(($ac_try" in
19734 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19735 *) ac_try_echo=$ac_try;;
19736 esac
19737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19738 (eval "$ac_link") 2>conftest.er1
19739 ac_status=$?
19740 grep -v '^ *+' conftest.er1 >conftest.err
19741 rm -f conftest.er1
19742 cat conftest.err >&5
19743 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19744 (exit $ac_status); } && {
19745 test -z "$ac_c_werror_flag" ||
19746 test ! -s conftest.err
19747 } && test -s conftest$ac_exeext &&
19748 $as_test_x conftest$ac_exeext; then
19749 ac_cv_lib_resolv_res_send=yes
19750 else
19751 echo "$as_me: failed program was:" >&5
19752 sed 's/^/| /' conftest.$ac_ext >&5
19753
19754 ac_cv_lib_resolv_res_send=no
19755 fi
19756
19757 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19758 conftest$ac_exeext conftest.$ac_ext
19759 LIBS=$ac_check_lib_save_LIBS
19760 fi
19761 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19762 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19763 if test $ac_cv_lib_resolv_res_send = yes; then
19764 resolv=yes
19765 else
19766 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19767 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19768 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19769 echo $ECHO_N "(cached) $ECHO_C" >&6
19770 else
19771 ac_check_lib_save_LIBS=$LIBS
19772 LIBS="-lresolv $LIBS"
19773 cat >conftest.$ac_ext <<_ACEOF
19774 /* confdefs.h. */
19775 _ACEOF
19776 cat confdefs.h >>conftest.$ac_ext
19777 cat >>conftest.$ac_ext <<_ACEOF
19778 /* end confdefs.h. */
19779
19780 /* Override any GCC internal prototype to avoid an error.
19781 Use char because int might match the return type of a GCC
19782 builtin and then its argument prototype would still apply. */
19783 #ifdef __cplusplus
19784 extern "C"
19785 #endif
19786 char __res_send ();
19787 int
19788 main ()
19789 {
19790 return __res_send ();
19791 ;
19792 return 0;
19793 }
19794 _ACEOF
19795 rm -f conftest.$ac_objext conftest$ac_exeext
19796 if { (ac_try="$ac_link"
19797 case "(($ac_try" in
19798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19799 *) ac_try_echo=$ac_try;;
19800 esac
19801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19802 (eval "$ac_link") 2>conftest.er1
19803 ac_status=$?
19804 grep -v '^ *+' conftest.er1 >conftest.err
19805 rm -f conftest.er1
19806 cat conftest.err >&5
19807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19808 (exit $ac_status); } && {
19809 test -z "$ac_c_werror_flag" ||
19810 test ! -s conftest.err
19811 } && test -s conftest$ac_exeext &&
19812 $as_test_x conftest$ac_exeext; then
19813 ac_cv_lib_resolv___res_send=yes
19814 else
19815 echo "$as_me: failed program was:" >&5
19816 sed 's/^/| /' conftest.$ac_ext >&5
19817
19818 ac_cv_lib_resolv___res_send=no
19819 fi
19820
19821 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19822 conftest$ac_exeext conftest.$ac_ext
19823 LIBS=$ac_check_lib_save_LIBS
19824 fi
19825 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19826 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19827 if test $ac_cv_lib_resolv___res_send = yes; then
19828 resolv=yes
19829 fi
19830
19831 fi
19832
19833 fi
19834
19835 fi
19836
19837 if test "$resolv" = yes ; then
19838 RESOLVLIB=-lresolv
19839
19840 cat >>confdefs.h <<\_ACEOF
19841 #define HAVE_LIBRESOLV 1
19842 _ACEOF
19843
19844 else
19845 RESOLVLIB=
19846 fi
19847 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19848 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19849 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19850 echo $ECHO_N "(cached) $ECHO_C" >&6
19851 else
19852 cat >conftest.$ac_ext <<_ACEOF
19853 /* confdefs.h. */
19854 _ACEOF
19855 cat confdefs.h >>conftest.$ac_ext
19856 cat >>conftest.$ac_ext <<_ACEOF
19857 /* end confdefs.h. */
19858 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19859 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19860 #define hes_getmailhost innocuous_hes_getmailhost
19861
19862 /* System header to define __stub macros and hopefully few prototypes,
19863 which can conflict with char hes_getmailhost (); below.
19864 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19865 <limits.h> exists even on freestanding compilers. */
19866
19867 #ifdef __STDC__
19868 # include <limits.h>
19869 #else
19870 # include <assert.h>
19871 #endif
19872
19873 #undef hes_getmailhost
19874
19875 /* Override any GCC internal prototype to avoid an error.
19876 Use char because int might match the return type of a GCC
19877 builtin and then its argument prototype would still apply. */
19878 #ifdef __cplusplus
19879 extern "C"
19880 #endif
19881 char hes_getmailhost ();
19882 /* The GNU C library defines this for functions which it implements
19883 to always fail with ENOSYS. Some functions are actually named
19884 something starting with __ and the normal name is an alias. */
19885 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19886 choke me
19887 #endif
19888
19889 int
19890 main ()
19891 {
19892 return hes_getmailhost ();
19893 ;
19894 return 0;
19895 }
19896 _ACEOF
19897 rm -f conftest.$ac_objext conftest$ac_exeext
19898 if { (ac_try="$ac_link"
19899 case "(($ac_try" in
19900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19901 *) ac_try_echo=$ac_try;;
19902 esac
19903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19904 (eval "$ac_link") 2>conftest.er1
19905 ac_status=$?
19906 grep -v '^ *+' conftest.er1 >conftest.err
19907 rm -f conftest.er1
19908 cat conftest.err >&5
19909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19910 (exit $ac_status); } && {
19911 test -z "$ac_c_werror_flag" ||
19912 test ! -s conftest.err
19913 } && test -s conftest$ac_exeext &&
19914 $as_test_x conftest$ac_exeext; then
19915 ac_cv_func_hes_getmailhost=yes
19916 else
19917 echo "$as_me: failed program was:" >&5
19918 sed 's/^/| /' conftest.$ac_ext >&5
19919
19920 ac_cv_func_hes_getmailhost=no
19921 fi
19922
19923 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19924 conftest$ac_exeext conftest.$ac_ext
19925 fi
19926 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19927 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19928 if test $ac_cv_func_hes_getmailhost = yes; then
19929 :
19930 else
19931 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19932 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19933 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19934 echo $ECHO_N "(cached) $ECHO_C" >&6
19935 else
19936 ac_check_lib_save_LIBS=$LIBS
19937 LIBS="-lhesiod $RESOLVLIB $LIBS"
19938 cat >conftest.$ac_ext <<_ACEOF
19939 /* confdefs.h. */
19940 _ACEOF
19941 cat confdefs.h >>conftest.$ac_ext
19942 cat >>conftest.$ac_ext <<_ACEOF
19943 /* end confdefs.h. */
19944
19945 /* Override any GCC internal prototype to avoid an error.
19946 Use char because int might match the return type of a GCC
19947 builtin and then its argument prototype would still apply. */
19948 #ifdef __cplusplus
19949 extern "C"
19950 #endif
19951 char hes_getmailhost ();
19952 int
19953 main ()
19954 {
19955 return hes_getmailhost ();
19956 ;
19957 return 0;
19958 }
19959 _ACEOF
19960 rm -f conftest.$ac_objext conftest$ac_exeext
19961 if { (ac_try="$ac_link"
19962 case "(($ac_try" in
19963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19964 *) ac_try_echo=$ac_try;;
19965 esac
19966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19967 (eval "$ac_link") 2>conftest.er1
19968 ac_status=$?
19969 grep -v '^ *+' conftest.er1 >conftest.err
19970 rm -f conftest.er1
19971 cat conftest.err >&5
19972 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19973 (exit $ac_status); } && {
19974 test -z "$ac_c_werror_flag" ||
19975 test ! -s conftest.err
19976 } && test -s conftest$ac_exeext &&
19977 $as_test_x conftest$ac_exeext; then
19978 ac_cv_lib_hesiod_hes_getmailhost=yes
19979 else
19980 echo "$as_me: failed program was:" >&5
19981 sed 's/^/| /' conftest.$ac_ext >&5
19982
19983 ac_cv_lib_hesiod_hes_getmailhost=no
19984 fi
19985
19986 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19987 conftest$ac_exeext conftest.$ac_ext
19988 LIBS=$ac_check_lib_save_LIBS
19989 fi
19990 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19991 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19992 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19993
19994 cat >>confdefs.h <<\_ACEOF
19995 #define HAVE_LIBHESIOD 1
19996 _ACEOF
19997
19998 else
19999 :
20000 fi
20001
20002 fi
20003
20004 fi
20005
20006 # These tell us which Kerberos-related libraries to use.
20007 if test "${with_kerberos+set}" = set; then
20008
20009 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20010 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20011 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20012 echo $ECHO_N "(cached) $ECHO_C" >&6
20013 else
20014 ac_check_lib_save_LIBS=$LIBS
20015 LIBS="-lcom_err $LIBS"
20016 cat >conftest.$ac_ext <<_ACEOF
20017 /* confdefs.h. */
20018 _ACEOF
20019 cat confdefs.h >>conftest.$ac_ext
20020 cat >>conftest.$ac_ext <<_ACEOF
20021 /* end confdefs.h. */
20022
20023 /* Override any GCC internal prototype to avoid an error.
20024 Use char because int might match the return type of a GCC
20025 builtin and then its argument prototype would still apply. */
20026 #ifdef __cplusplus
20027 extern "C"
20028 #endif
20029 char com_err ();
20030 int
20031 main ()
20032 {
20033 return com_err ();
20034 ;
20035 return 0;
20036 }
20037 _ACEOF
20038 rm -f conftest.$ac_objext conftest$ac_exeext
20039 if { (ac_try="$ac_link"
20040 case "(($ac_try" in
20041 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20042 *) ac_try_echo=$ac_try;;
20043 esac
20044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20045 (eval "$ac_link") 2>conftest.er1
20046 ac_status=$?
20047 grep -v '^ *+' conftest.er1 >conftest.err
20048 rm -f conftest.er1
20049 cat conftest.err >&5
20050 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20051 (exit $ac_status); } && {
20052 test -z "$ac_c_werror_flag" ||
20053 test ! -s conftest.err
20054 } && test -s conftest$ac_exeext &&
20055 $as_test_x conftest$ac_exeext; then
20056 ac_cv_lib_com_err_com_err=yes
20057 else
20058 echo "$as_me: failed program was:" >&5
20059 sed 's/^/| /' conftest.$ac_ext >&5
20060
20061 ac_cv_lib_com_err_com_err=no
20062 fi
20063
20064 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20069 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20070 if test $ac_cv_lib_com_err_com_err = yes; then
20071 cat >>confdefs.h <<_ACEOF
20072 #define HAVE_LIBCOM_ERR 1
20073 _ACEOF
20074
20075 LIBS="-lcom_err $LIBS"
20076
20077 fi
20078
20079
20080 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20081 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20082 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20083 echo $ECHO_N "(cached) $ECHO_C" >&6
20084 else
20085 ac_check_lib_save_LIBS=$LIBS
20086 LIBS="-lk5crypto $LIBS"
20087 cat >conftest.$ac_ext <<_ACEOF
20088 /* confdefs.h. */
20089 _ACEOF
20090 cat confdefs.h >>conftest.$ac_ext
20091 cat >>conftest.$ac_ext <<_ACEOF
20092 /* end confdefs.h. */
20093
20094 /* Override any GCC internal prototype to avoid an error.
20095 Use char because int might match the return type of a GCC
20096 builtin and then its argument prototype would still apply. */
20097 #ifdef __cplusplus
20098 extern "C"
20099 #endif
20100 char mit_des_cbc_encrypt ();
20101 int
20102 main ()
20103 {
20104 return mit_des_cbc_encrypt ();
20105 ;
20106 return 0;
20107 }
20108 _ACEOF
20109 rm -f conftest.$ac_objext conftest$ac_exeext
20110 if { (ac_try="$ac_link"
20111 case "(($ac_try" in
20112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20113 *) ac_try_echo=$ac_try;;
20114 esac
20115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20116 (eval "$ac_link") 2>conftest.er1
20117 ac_status=$?
20118 grep -v '^ *+' conftest.er1 >conftest.err
20119 rm -f conftest.er1
20120 cat conftest.err >&5
20121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20122 (exit $ac_status); } && {
20123 test -z "$ac_c_werror_flag" ||
20124 test ! -s conftest.err
20125 } && test -s conftest$ac_exeext &&
20126 $as_test_x conftest$ac_exeext; then
20127 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20128 else
20129 echo "$as_me: failed program was:" >&5
20130 sed 's/^/| /' conftest.$ac_ext >&5
20131
20132 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20133 fi
20134
20135 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20136 conftest$ac_exeext conftest.$ac_ext
20137 LIBS=$ac_check_lib_save_LIBS
20138 fi
20139 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20140 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20141 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20142 cat >>confdefs.h <<_ACEOF
20143 #define HAVE_LIBK5CRYPTO 1
20144 _ACEOF
20145
20146 LIBS="-lk5crypto $LIBS"
20147
20148 fi
20149
20150
20151 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20152 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20153 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20154 echo $ECHO_N "(cached) $ECHO_C" >&6
20155 else
20156 ac_check_lib_save_LIBS=$LIBS
20157 LIBS="-lcrypto $LIBS"
20158 cat >conftest.$ac_ext <<_ACEOF
20159 /* confdefs.h. */
20160 _ACEOF
20161 cat confdefs.h >>conftest.$ac_ext
20162 cat >>conftest.$ac_ext <<_ACEOF
20163 /* end confdefs.h. */
20164
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char mit_des_cbc_encrypt ();
20172 int
20173 main ()
20174 {
20175 return mit_des_cbc_encrypt ();
20176 ;
20177 return 0;
20178 }
20179 _ACEOF
20180 rm -f conftest.$ac_objext conftest$ac_exeext
20181 if { (ac_try="$ac_link"
20182 case "(($ac_try" in
20183 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20184 *) ac_try_echo=$ac_try;;
20185 esac
20186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20187 (eval "$ac_link") 2>conftest.er1
20188 ac_status=$?
20189 grep -v '^ *+' conftest.er1 >conftest.err
20190 rm -f conftest.er1
20191 cat conftest.err >&5
20192 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20193 (exit $ac_status); } && {
20194 test -z "$ac_c_werror_flag" ||
20195 test ! -s conftest.err
20196 } && test -s conftest$ac_exeext &&
20197 $as_test_x conftest$ac_exeext; then
20198 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20199 else
20200 echo "$as_me: failed program was:" >&5
20201 sed 's/^/| /' conftest.$ac_ext >&5
20202
20203 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20204 fi
20205
20206 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20207 conftest$ac_exeext conftest.$ac_ext
20208 LIBS=$ac_check_lib_save_LIBS
20209 fi
20210 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20211 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20212 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20213 cat >>confdefs.h <<_ACEOF
20214 #define HAVE_LIBCRYPTO 1
20215 _ACEOF
20216
20217 LIBS="-lcrypto $LIBS"
20218
20219 fi
20220
20221
20222 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20223 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20224 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20225 echo $ECHO_N "(cached) $ECHO_C" >&6
20226 else
20227 ac_check_lib_save_LIBS=$LIBS
20228 LIBS="-lkrb5 $LIBS"
20229 cat >conftest.$ac_ext <<_ACEOF
20230 /* confdefs.h. */
20231 _ACEOF
20232 cat confdefs.h >>conftest.$ac_ext
20233 cat >>conftest.$ac_ext <<_ACEOF
20234 /* end confdefs.h. */
20235
20236 /* Override any GCC internal prototype to avoid an error.
20237 Use char because int might match the return type of a GCC
20238 builtin and then its argument prototype would still apply. */
20239 #ifdef __cplusplus
20240 extern "C"
20241 #endif
20242 char krb5_init_context ();
20243 int
20244 main ()
20245 {
20246 return krb5_init_context ();
20247 ;
20248 return 0;
20249 }
20250 _ACEOF
20251 rm -f conftest.$ac_objext conftest$ac_exeext
20252 if { (ac_try="$ac_link"
20253 case "(($ac_try" in
20254 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20255 *) ac_try_echo=$ac_try;;
20256 esac
20257 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20258 (eval "$ac_link") 2>conftest.er1
20259 ac_status=$?
20260 grep -v '^ *+' conftest.er1 >conftest.err
20261 rm -f conftest.er1
20262 cat conftest.err >&5
20263 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20264 (exit $ac_status); } && {
20265 test -z "$ac_c_werror_flag" ||
20266 test ! -s conftest.err
20267 } && test -s conftest$ac_exeext &&
20268 $as_test_x conftest$ac_exeext; then
20269 ac_cv_lib_krb5_krb5_init_context=yes
20270 else
20271 echo "$as_me: failed program was:" >&5
20272 sed 's/^/| /' conftest.$ac_ext >&5
20273
20274 ac_cv_lib_krb5_krb5_init_context=no
20275 fi
20276
20277 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20278 conftest$ac_exeext conftest.$ac_ext
20279 LIBS=$ac_check_lib_save_LIBS
20280 fi
20281 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20282 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20283 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20284 cat >>confdefs.h <<_ACEOF
20285 #define HAVE_LIBKRB5 1
20286 _ACEOF
20287
20288 LIBS="-lkrb5 $LIBS"
20289
20290 fi
20291
20292 if test "${with_kerberos5+set}" != set; then
20293
20294 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20295 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20296 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20297 echo $ECHO_N "(cached) $ECHO_C" >&6
20298 else
20299 ac_check_lib_save_LIBS=$LIBS
20300 LIBS="-ldes425 $LIBS"
20301 cat >conftest.$ac_ext <<_ACEOF
20302 /* confdefs.h. */
20303 _ACEOF
20304 cat confdefs.h >>conftest.$ac_ext
20305 cat >>conftest.$ac_ext <<_ACEOF
20306 /* end confdefs.h. */
20307
20308 /* Override any GCC internal prototype to avoid an error.
20309 Use char because int might match the return type of a GCC
20310 builtin and then its argument prototype would still apply. */
20311 #ifdef __cplusplus
20312 extern "C"
20313 #endif
20314 char des_cbc_encrypt ();
20315 int
20316 main ()
20317 {
20318 return des_cbc_encrypt ();
20319 ;
20320 return 0;
20321 }
20322 _ACEOF
20323 rm -f conftest.$ac_objext conftest$ac_exeext
20324 if { (ac_try="$ac_link"
20325 case "(($ac_try" in
20326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20327 *) ac_try_echo=$ac_try;;
20328 esac
20329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20330 (eval "$ac_link") 2>conftest.er1
20331 ac_status=$?
20332 grep -v '^ *+' conftest.er1 >conftest.err
20333 rm -f conftest.er1
20334 cat conftest.err >&5
20335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20336 (exit $ac_status); } && {
20337 test -z "$ac_c_werror_flag" ||
20338 test ! -s conftest.err
20339 } && test -s conftest$ac_exeext &&
20340 $as_test_x conftest$ac_exeext; then
20341 ac_cv_lib_des425_des_cbc_encrypt=yes
20342 else
20343 echo "$as_me: failed program was:" >&5
20344 sed 's/^/| /' conftest.$ac_ext >&5
20345
20346 ac_cv_lib_des425_des_cbc_encrypt=no
20347 fi
20348
20349 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20350 conftest$ac_exeext conftest.$ac_ext
20351 LIBS=$ac_check_lib_save_LIBS
20352 fi
20353 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20354 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20355 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20356 cat >>confdefs.h <<_ACEOF
20357 #define HAVE_LIBDES425 1
20358 _ACEOF
20359
20360 LIBS="-ldes425 $LIBS"
20361
20362 else
20363
20364 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20365 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20366 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20367 echo $ECHO_N "(cached) $ECHO_C" >&6
20368 else
20369 ac_check_lib_save_LIBS=$LIBS
20370 LIBS="-ldes $LIBS"
20371 cat >conftest.$ac_ext <<_ACEOF
20372 /* confdefs.h. */
20373 _ACEOF
20374 cat confdefs.h >>conftest.$ac_ext
20375 cat >>conftest.$ac_ext <<_ACEOF
20376 /* end confdefs.h. */
20377
20378 /* Override any GCC internal prototype to avoid an error.
20379 Use char because int might match the return type of a GCC
20380 builtin and then its argument prototype would still apply. */
20381 #ifdef __cplusplus
20382 extern "C"
20383 #endif
20384 char des_cbc_encrypt ();
20385 int
20386 main ()
20387 {
20388 return des_cbc_encrypt ();
20389 ;
20390 return 0;
20391 }
20392 _ACEOF
20393 rm -f conftest.$ac_objext conftest$ac_exeext
20394 if { (ac_try="$ac_link"
20395 case "(($ac_try" in
20396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20397 *) ac_try_echo=$ac_try;;
20398 esac
20399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20400 (eval "$ac_link") 2>conftest.er1
20401 ac_status=$?
20402 grep -v '^ *+' conftest.er1 >conftest.err
20403 rm -f conftest.er1
20404 cat conftest.err >&5
20405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20406 (exit $ac_status); } && {
20407 test -z "$ac_c_werror_flag" ||
20408 test ! -s conftest.err
20409 } && test -s conftest$ac_exeext &&
20410 $as_test_x conftest$ac_exeext; then
20411 ac_cv_lib_des_des_cbc_encrypt=yes
20412 else
20413 echo "$as_me: failed program was:" >&5
20414 sed 's/^/| /' conftest.$ac_ext >&5
20415
20416 ac_cv_lib_des_des_cbc_encrypt=no
20417 fi
20418
20419 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20420 conftest$ac_exeext conftest.$ac_ext
20421 LIBS=$ac_check_lib_save_LIBS
20422 fi
20423 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20424 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20425 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20426 cat >>confdefs.h <<_ACEOF
20427 #define HAVE_LIBDES 1
20428 _ACEOF
20429
20430 LIBS="-ldes $LIBS"
20431
20432 fi
20433
20434 fi
20435
20436
20437 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20438 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20439 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20440 echo $ECHO_N "(cached) $ECHO_C" >&6
20441 else
20442 ac_check_lib_save_LIBS=$LIBS
20443 LIBS="-lkrb4 $LIBS"
20444 cat >conftest.$ac_ext <<_ACEOF
20445 /* confdefs.h. */
20446 _ACEOF
20447 cat confdefs.h >>conftest.$ac_ext
20448 cat >>conftest.$ac_ext <<_ACEOF
20449 /* end confdefs.h. */
20450
20451 /* Override any GCC internal prototype to avoid an error.
20452 Use char because int might match the return type of a GCC
20453 builtin and then its argument prototype would still apply. */
20454 #ifdef __cplusplus
20455 extern "C"
20456 #endif
20457 char krb_get_cred ();
20458 int
20459 main ()
20460 {
20461 return krb_get_cred ();
20462 ;
20463 return 0;
20464 }
20465 _ACEOF
20466 rm -f conftest.$ac_objext conftest$ac_exeext
20467 if { (ac_try="$ac_link"
20468 case "(($ac_try" in
20469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20470 *) ac_try_echo=$ac_try;;
20471 esac
20472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20473 (eval "$ac_link") 2>conftest.er1
20474 ac_status=$?
20475 grep -v '^ *+' conftest.er1 >conftest.err
20476 rm -f conftest.er1
20477 cat conftest.err >&5
20478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20479 (exit $ac_status); } && {
20480 test -z "$ac_c_werror_flag" ||
20481 test ! -s conftest.err
20482 } && test -s conftest$ac_exeext &&
20483 $as_test_x conftest$ac_exeext; then
20484 ac_cv_lib_krb4_krb_get_cred=yes
20485 else
20486 echo "$as_me: failed program was:" >&5
20487 sed 's/^/| /' conftest.$ac_ext >&5
20488
20489 ac_cv_lib_krb4_krb_get_cred=no
20490 fi
20491
20492 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20493 conftest$ac_exeext conftest.$ac_ext
20494 LIBS=$ac_check_lib_save_LIBS
20495 fi
20496 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20497 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20498 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20499 cat >>confdefs.h <<_ACEOF
20500 #define HAVE_LIBKRB4 1
20501 _ACEOF
20502
20503 LIBS="-lkrb4 $LIBS"
20504
20505 else
20506
20507 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20508 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20509 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20510 echo $ECHO_N "(cached) $ECHO_C" >&6
20511 else
20512 ac_check_lib_save_LIBS=$LIBS
20513 LIBS="-lkrb $LIBS"
20514 cat >conftest.$ac_ext <<_ACEOF
20515 /* confdefs.h. */
20516 _ACEOF
20517 cat confdefs.h >>conftest.$ac_ext
20518 cat >>conftest.$ac_ext <<_ACEOF
20519 /* end confdefs.h. */
20520
20521 /* Override any GCC internal prototype to avoid an error.
20522 Use char because int might match the return type of a GCC
20523 builtin and then its argument prototype would still apply. */
20524 #ifdef __cplusplus
20525 extern "C"
20526 #endif
20527 char krb_get_cred ();
20528 int
20529 main ()
20530 {
20531 return krb_get_cred ();
20532 ;
20533 return 0;
20534 }
20535 _ACEOF
20536 rm -f conftest.$ac_objext conftest$ac_exeext
20537 if { (ac_try="$ac_link"
20538 case "(($ac_try" in
20539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20540 *) ac_try_echo=$ac_try;;
20541 esac
20542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20543 (eval "$ac_link") 2>conftest.er1
20544 ac_status=$?
20545 grep -v '^ *+' conftest.er1 >conftest.err
20546 rm -f conftest.er1
20547 cat conftest.err >&5
20548 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20549 (exit $ac_status); } && {
20550 test -z "$ac_c_werror_flag" ||
20551 test ! -s conftest.err
20552 } && test -s conftest$ac_exeext &&
20553 $as_test_x conftest$ac_exeext; then
20554 ac_cv_lib_krb_krb_get_cred=yes
20555 else
20556 echo "$as_me: failed program was:" >&5
20557 sed 's/^/| /' conftest.$ac_ext >&5
20558
20559 ac_cv_lib_krb_krb_get_cred=no
20560 fi
20561
20562 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20563 conftest$ac_exeext conftest.$ac_ext
20564 LIBS=$ac_check_lib_save_LIBS
20565 fi
20566 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20567 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20568 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20569 cat >>confdefs.h <<_ACEOF
20570 #define HAVE_LIBKRB 1
20571 _ACEOF
20572
20573 LIBS="-lkrb $LIBS"
20574
20575 fi
20576
20577 fi
20578
20579 fi
20580
20581 if test "${with_kerberos5+set}" = set; then
20582
20583 for ac_header in krb5.h
20584 do
20585 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20586 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20587 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20588 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20589 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20590 echo $ECHO_N "(cached) $ECHO_C" >&6
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 else
20596 # Is the header compilable?
20597 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20598 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20599 cat >conftest.$ac_ext <<_ACEOF
20600 /* confdefs.h. */
20601 _ACEOF
20602 cat confdefs.h >>conftest.$ac_ext
20603 cat >>conftest.$ac_ext <<_ACEOF
20604 /* end confdefs.h. */
20605 $ac_includes_default
20606 #include <$ac_header>
20607 _ACEOF
20608 rm -f conftest.$ac_objext
20609 if { (ac_try="$ac_compile"
20610 case "(($ac_try" in
20611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20612 *) ac_try_echo=$ac_try;;
20613 esac
20614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20615 (eval "$ac_compile") 2>conftest.er1
20616 ac_status=$?
20617 grep -v '^ *+' conftest.er1 >conftest.err
20618 rm -f conftest.er1
20619 cat conftest.err >&5
20620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20621 (exit $ac_status); } && {
20622 test -z "$ac_c_werror_flag" ||
20623 test ! -s conftest.err
20624 } && test -s conftest.$ac_objext; then
20625 ac_header_compiler=yes
20626 else
20627 echo "$as_me: failed program was:" >&5
20628 sed 's/^/| /' conftest.$ac_ext >&5
20629
20630 ac_header_compiler=no
20631 fi
20632
20633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20634 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20635 echo "${ECHO_T}$ac_header_compiler" >&6; }
20636
20637 # Is the header present?
20638 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20639 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20640 cat >conftest.$ac_ext <<_ACEOF
20641 /* confdefs.h. */
20642 _ACEOF
20643 cat confdefs.h >>conftest.$ac_ext
20644 cat >>conftest.$ac_ext <<_ACEOF
20645 /* end confdefs.h. */
20646 #include <$ac_header>
20647 _ACEOF
20648 if { (ac_try="$ac_cpp conftest.$ac_ext"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } >/dev/null && {
20661 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 }; then
20664 ac_header_preproc=yes
20665 else
20666 echo "$as_me: failed program was:" >&5
20667 sed 's/^/| /' conftest.$ac_ext >&5
20668
20669 ac_header_preproc=no
20670 fi
20671
20672 rm -f conftest.err conftest.$ac_ext
20673 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20674 echo "${ECHO_T}$ac_header_preproc" >&6; }
20675
20676 # So? What about this header?
20677 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20678 yes:no: )
20679 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20680 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20681 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20682 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20683 ac_header_preproc=yes
20684 ;;
20685 no:yes:* )
20686 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20687 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20688 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20689 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20690 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20691 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20692 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20693 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20694 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20695 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20696 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20697 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20698
20699 ;;
20700 esac
20701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20704 echo $ECHO_N "(cached) $ECHO_C" >&6
20705 else
20706 eval "$as_ac_Header=\$ac_header_preproc"
20707 fi
20708 ac_res=`eval echo '${'$as_ac_Header'}'`
20709 { echo "$as_me:$LINENO: result: $ac_res" >&5
20710 echo "${ECHO_T}$ac_res" >&6; }
20711
20712 fi
20713 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20714 cat >>confdefs.h <<_ACEOF
20715 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20716 _ACEOF
20717
20718 fi
20719
20720 done
20721
20722 else
20723
20724 for ac_header in des.h
20725 do
20726 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20728 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20729 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20730 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20731 echo $ECHO_N "(cached) $ECHO_C" >&6
20732 fi
20733 ac_res=`eval echo '${'$as_ac_Header'}'`
20734 { echo "$as_me:$LINENO: result: $ac_res" >&5
20735 echo "${ECHO_T}$ac_res" >&6; }
20736 else
20737 # Is the header compilable?
20738 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20739 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20740 cat >conftest.$ac_ext <<_ACEOF
20741 /* confdefs.h. */
20742 _ACEOF
20743 cat confdefs.h >>conftest.$ac_ext
20744 cat >>conftest.$ac_ext <<_ACEOF
20745 /* end confdefs.h. */
20746 $ac_includes_default
20747 #include <$ac_header>
20748 _ACEOF
20749 rm -f conftest.$ac_objext
20750 if { (ac_try="$ac_compile"
20751 case "(($ac_try" in
20752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20753 *) ac_try_echo=$ac_try;;
20754 esac
20755 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20756 (eval "$ac_compile") 2>conftest.er1
20757 ac_status=$?
20758 grep -v '^ *+' conftest.er1 >conftest.err
20759 rm -f conftest.er1
20760 cat conftest.err >&5
20761 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20762 (exit $ac_status); } && {
20763 test -z "$ac_c_werror_flag" ||
20764 test ! -s conftest.err
20765 } && test -s conftest.$ac_objext; then
20766 ac_header_compiler=yes
20767 else
20768 echo "$as_me: failed program was:" >&5
20769 sed 's/^/| /' conftest.$ac_ext >&5
20770
20771 ac_header_compiler=no
20772 fi
20773
20774 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20775 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20776 echo "${ECHO_T}$ac_header_compiler" >&6; }
20777
20778 # Is the header present?
20779 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20780 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20781 cat >conftest.$ac_ext <<_ACEOF
20782 /* confdefs.h. */
20783 _ACEOF
20784 cat confdefs.h >>conftest.$ac_ext
20785 cat >>conftest.$ac_ext <<_ACEOF
20786 /* end confdefs.h. */
20787 #include <$ac_header>
20788 _ACEOF
20789 if { (ac_try="$ac_cpp conftest.$ac_ext"
20790 case "(($ac_try" in
20791 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20792 *) ac_try_echo=$ac_try;;
20793 esac
20794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20795 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20796 ac_status=$?
20797 grep -v '^ *+' conftest.er1 >conftest.err
20798 rm -f conftest.er1
20799 cat conftest.err >&5
20800 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20801 (exit $ac_status); } >/dev/null && {
20802 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20803 test ! -s conftest.err
20804 }; then
20805 ac_header_preproc=yes
20806 else
20807 echo "$as_me: failed program was:" >&5
20808 sed 's/^/| /' conftest.$ac_ext >&5
20809
20810 ac_header_preproc=no
20811 fi
20812
20813 rm -f conftest.err conftest.$ac_ext
20814 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20815 echo "${ECHO_T}$ac_header_preproc" >&6; }
20816
20817 # So? What about this header?
20818 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20819 yes:no: )
20820 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20821 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20823 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20824 ac_header_preproc=yes
20825 ;;
20826 no:yes:* )
20827 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20828 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20829 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20830 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20831 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20832 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20833 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20834 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20835 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20836 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20837 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20838 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20839
20840 ;;
20841 esac
20842 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20843 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20844 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20845 echo $ECHO_N "(cached) $ECHO_C" >&6
20846 else
20847 eval "$as_ac_Header=\$ac_header_preproc"
20848 fi
20849 ac_res=`eval echo '${'$as_ac_Header'}'`
20850 { echo "$as_me:$LINENO: result: $ac_res" >&5
20851 echo "${ECHO_T}$ac_res" >&6; }
20852
20853 fi
20854 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20855 cat >>confdefs.h <<_ACEOF
20856 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20857 _ACEOF
20858
20859 else
20860
20861 for ac_header in kerberosIV/des.h
20862 do
20863 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20865 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20866 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20867 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20868 echo $ECHO_N "(cached) $ECHO_C" >&6
20869 fi
20870 ac_res=`eval echo '${'$as_ac_Header'}'`
20871 { echo "$as_me:$LINENO: result: $ac_res" >&5
20872 echo "${ECHO_T}$ac_res" >&6; }
20873 else
20874 # Is the header compilable?
20875 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20876 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20877 cat >conftest.$ac_ext <<_ACEOF
20878 /* confdefs.h. */
20879 _ACEOF
20880 cat confdefs.h >>conftest.$ac_ext
20881 cat >>conftest.$ac_ext <<_ACEOF
20882 /* end confdefs.h. */
20883 $ac_includes_default
20884 #include <$ac_header>
20885 _ACEOF
20886 rm -f conftest.$ac_objext
20887 if { (ac_try="$ac_compile"
20888 case "(($ac_try" in
20889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20890 *) ac_try_echo=$ac_try;;
20891 esac
20892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20893 (eval "$ac_compile") 2>conftest.er1
20894 ac_status=$?
20895 grep -v '^ *+' conftest.er1 >conftest.err
20896 rm -f conftest.er1
20897 cat conftest.err >&5
20898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20899 (exit $ac_status); } && {
20900 test -z "$ac_c_werror_flag" ||
20901 test ! -s conftest.err
20902 } && test -s conftest.$ac_objext; then
20903 ac_header_compiler=yes
20904 else
20905 echo "$as_me: failed program was:" >&5
20906 sed 's/^/| /' conftest.$ac_ext >&5
20907
20908 ac_header_compiler=no
20909 fi
20910
20911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20912 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20913 echo "${ECHO_T}$ac_header_compiler" >&6; }
20914
20915 # Is the header present?
20916 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20917 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20918 cat >conftest.$ac_ext <<_ACEOF
20919 /* confdefs.h. */
20920 _ACEOF
20921 cat confdefs.h >>conftest.$ac_ext
20922 cat >>conftest.$ac_ext <<_ACEOF
20923 /* end confdefs.h. */
20924 #include <$ac_header>
20925 _ACEOF
20926 if { (ac_try="$ac_cpp conftest.$ac_ext"
20927 case "(($ac_try" in
20928 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20929 *) ac_try_echo=$ac_try;;
20930 esac
20931 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20932 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20933 ac_status=$?
20934 grep -v '^ *+' conftest.er1 >conftest.err
20935 rm -f conftest.er1
20936 cat conftest.err >&5
20937 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20938 (exit $ac_status); } >/dev/null && {
20939 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20940 test ! -s conftest.err
20941 }; then
20942 ac_header_preproc=yes
20943 else
20944 echo "$as_me: failed program was:" >&5
20945 sed 's/^/| /' conftest.$ac_ext >&5
20946
20947 ac_header_preproc=no
20948 fi
20949
20950 rm -f conftest.err conftest.$ac_ext
20951 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20952 echo "${ECHO_T}$ac_header_preproc" >&6; }
20953
20954 # So? What about this header?
20955 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20956 yes:no: )
20957 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20958 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20959 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20960 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20961 ac_header_preproc=yes
20962 ;;
20963 no:yes:* )
20964 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20965 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20966 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20967 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20968 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20969 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20970 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20971 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20972 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20973 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20974 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20975 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20976
20977 ;;
20978 esac
20979 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20980 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20982 echo $ECHO_N "(cached) $ECHO_C" >&6
20983 else
20984 eval "$as_ac_Header=\$ac_header_preproc"
20985 fi
20986 ac_res=`eval echo '${'$as_ac_Header'}'`
20987 { echo "$as_me:$LINENO: result: $ac_res" >&5
20988 echo "${ECHO_T}$ac_res" >&6; }
20989
20990 fi
20991 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20992 cat >>confdefs.h <<_ACEOF
20993 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20994 _ACEOF
20995
20996 else
20997
20998 for ac_header in kerberos/des.h
20999 do
21000 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21001 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21002 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21003 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21004 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21005 echo $ECHO_N "(cached) $ECHO_C" >&6
21006 fi
21007 ac_res=`eval echo '${'$as_ac_Header'}'`
21008 { echo "$as_me:$LINENO: result: $ac_res" >&5
21009 echo "${ECHO_T}$ac_res" >&6; }
21010 else
21011 # Is the header compilable?
21012 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21013 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21014 cat >conftest.$ac_ext <<_ACEOF
21015 /* confdefs.h. */
21016 _ACEOF
21017 cat confdefs.h >>conftest.$ac_ext
21018 cat >>conftest.$ac_ext <<_ACEOF
21019 /* end confdefs.h. */
21020 $ac_includes_default
21021 #include <$ac_header>
21022 _ACEOF
21023 rm -f conftest.$ac_objext
21024 if { (ac_try="$ac_compile"
21025 case "(($ac_try" in
21026 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21027 *) ac_try_echo=$ac_try;;
21028 esac
21029 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21030 (eval "$ac_compile") 2>conftest.er1
21031 ac_status=$?
21032 grep -v '^ *+' conftest.er1 >conftest.err
21033 rm -f conftest.er1
21034 cat conftest.err >&5
21035 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21036 (exit $ac_status); } && {
21037 test -z "$ac_c_werror_flag" ||
21038 test ! -s conftest.err
21039 } && test -s conftest.$ac_objext; then
21040 ac_header_compiler=yes
21041 else
21042 echo "$as_me: failed program was:" >&5
21043 sed 's/^/| /' conftest.$ac_ext >&5
21044
21045 ac_header_compiler=no
21046 fi
21047
21048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21049 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21050 echo "${ECHO_T}$ac_header_compiler" >&6; }
21051
21052 # Is the header present?
21053 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21054 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21055 cat >conftest.$ac_ext <<_ACEOF
21056 /* confdefs.h. */
21057 _ACEOF
21058 cat confdefs.h >>conftest.$ac_ext
21059 cat >>conftest.$ac_ext <<_ACEOF
21060 /* end confdefs.h. */
21061 #include <$ac_header>
21062 _ACEOF
21063 if { (ac_try="$ac_cpp conftest.$ac_ext"
21064 case "(($ac_try" in
21065 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21066 *) ac_try_echo=$ac_try;;
21067 esac
21068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21069 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21070 ac_status=$?
21071 grep -v '^ *+' conftest.er1 >conftest.err
21072 rm -f conftest.er1
21073 cat conftest.err >&5
21074 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21075 (exit $ac_status); } >/dev/null && {
21076 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21077 test ! -s conftest.err
21078 }; then
21079 ac_header_preproc=yes
21080 else
21081 echo "$as_me: failed program was:" >&5
21082 sed 's/^/| /' conftest.$ac_ext >&5
21083
21084 ac_header_preproc=no
21085 fi
21086
21087 rm -f conftest.err conftest.$ac_ext
21088 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21089 echo "${ECHO_T}$ac_header_preproc" >&6; }
21090
21091 # So? What about this header?
21092 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21093 yes:no: )
21094 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21095 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21096 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21097 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21098 ac_header_preproc=yes
21099 ;;
21100 no:yes:* )
21101 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21102 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21103 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21104 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21105 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21106 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21107 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21108 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21109 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21110 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21111 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21112 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21113
21114 ;;
21115 esac
21116 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21117 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119 echo $ECHO_N "(cached) $ECHO_C" >&6
21120 else
21121 eval "$as_ac_Header=\$ac_header_preproc"
21122 fi
21123 ac_res=`eval echo '${'$as_ac_Header'}'`
21124 { echo "$as_me:$LINENO: result: $ac_res" >&5
21125 echo "${ECHO_T}$ac_res" >&6; }
21126
21127 fi
21128 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21129 cat >>confdefs.h <<_ACEOF
21130 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21131 _ACEOF
21132
21133 fi
21134
21135 done
21136
21137 fi
21138
21139 done
21140
21141 fi
21142
21143 done
21144
21145
21146 for ac_header in krb.h
21147 do
21148 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21149 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21150 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21151 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21152 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21153 echo $ECHO_N "(cached) $ECHO_C" >&6
21154 fi
21155 ac_res=`eval echo '${'$as_ac_Header'}'`
21156 { echo "$as_me:$LINENO: result: $ac_res" >&5
21157 echo "${ECHO_T}$ac_res" >&6; }
21158 else
21159 # Is the header compilable?
21160 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21161 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21162 cat >conftest.$ac_ext <<_ACEOF
21163 /* confdefs.h. */
21164 _ACEOF
21165 cat confdefs.h >>conftest.$ac_ext
21166 cat >>conftest.$ac_ext <<_ACEOF
21167 /* end confdefs.h. */
21168 $ac_includes_default
21169 #include <$ac_header>
21170 _ACEOF
21171 rm -f conftest.$ac_objext
21172 if { (ac_try="$ac_compile"
21173 case "(($ac_try" in
21174 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21175 *) ac_try_echo=$ac_try;;
21176 esac
21177 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21178 (eval "$ac_compile") 2>conftest.er1
21179 ac_status=$?
21180 grep -v '^ *+' conftest.er1 >conftest.err
21181 rm -f conftest.er1
21182 cat conftest.err >&5
21183 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21184 (exit $ac_status); } && {
21185 test -z "$ac_c_werror_flag" ||
21186 test ! -s conftest.err
21187 } && test -s conftest.$ac_objext; then
21188 ac_header_compiler=yes
21189 else
21190 echo "$as_me: failed program was:" >&5
21191 sed 's/^/| /' conftest.$ac_ext >&5
21192
21193 ac_header_compiler=no
21194 fi
21195
21196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21197 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21198 echo "${ECHO_T}$ac_header_compiler" >&6; }
21199
21200 # Is the header present?
21201 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21202 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21203 cat >conftest.$ac_ext <<_ACEOF
21204 /* confdefs.h. */
21205 _ACEOF
21206 cat confdefs.h >>conftest.$ac_ext
21207 cat >>conftest.$ac_ext <<_ACEOF
21208 /* end confdefs.h. */
21209 #include <$ac_header>
21210 _ACEOF
21211 if { (ac_try="$ac_cpp conftest.$ac_ext"
21212 case "(($ac_try" in
21213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21214 *) ac_try_echo=$ac_try;;
21215 esac
21216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21217 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21218 ac_status=$?
21219 grep -v '^ *+' conftest.er1 >conftest.err
21220 rm -f conftest.er1
21221 cat conftest.err >&5
21222 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21223 (exit $ac_status); } >/dev/null && {
21224 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21225 test ! -s conftest.err
21226 }; then
21227 ac_header_preproc=yes
21228 else
21229 echo "$as_me: failed program was:" >&5
21230 sed 's/^/| /' conftest.$ac_ext >&5
21231
21232 ac_header_preproc=no
21233 fi
21234
21235 rm -f conftest.err conftest.$ac_ext
21236 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21237 echo "${ECHO_T}$ac_header_preproc" >&6; }
21238
21239 # So? What about this header?
21240 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21241 yes:no: )
21242 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21243 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21244 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21245 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21246 ac_header_preproc=yes
21247 ;;
21248 no:yes:* )
21249 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21250 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21251 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21252 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21253 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21254 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21255 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21256 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21257 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21258 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21259 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21260 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21261
21262 ;;
21263 esac
21264 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21265 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21266 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21267 echo $ECHO_N "(cached) $ECHO_C" >&6
21268 else
21269 eval "$as_ac_Header=\$ac_header_preproc"
21270 fi
21271 ac_res=`eval echo '${'$as_ac_Header'}'`
21272 { echo "$as_me:$LINENO: result: $ac_res" >&5
21273 echo "${ECHO_T}$ac_res" >&6; }
21274
21275 fi
21276 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21277 cat >>confdefs.h <<_ACEOF
21278 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21279 _ACEOF
21280
21281 else
21282
21283 for ac_header in kerberosIV/krb.h
21284 do
21285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21290 echo $ECHO_N "(cached) $ECHO_C" >&6
21291 fi
21292 ac_res=`eval echo '${'$as_ac_Header'}'`
21293 { echo "$as_me:$LINENO: result: $ac_res" >&5
21294 echo "${ECHO_T}$ac_res" >&6; }
21295 else
21296 # Is the header compilable?
21297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21299 cat >conftest.$ac_ext <<_ACEOF
21300 /* confdefs.h. */
21301 _ACEOF
21302 cat confdefs.h >>conftest.$ac_ext
21303 cat >>conftest.$ac_ext <<_ACEOF
21304 /* end confdefs.h. */
21305 $ac_includes_default
21306 #include <$ac_header>
21307 _ACEOF
21308 rm -f conftest.$ac_objext
21309 if { (ac_try="$ac_compile"
21310 case "(($ac_try" in
21311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21312 *) ac_try_echo=$ac_try;;
21313 esac
21314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21315 (eval "$ac_compile") 2>conftest.er1
21316 ac_status=$?
21317 grep -v '^ *+' conftest.er1 >conftest.err
21318 rm -f conftest.er1
21319 cat conftest.err >&5
21320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21321 (exit $ac_status); } && {
21322 test -z "$ac_c_werror_flag" ||
21323 test ! -s conftest.err
21324 } && test -s conftest.$ac_objext; then
21325 ac_header_compiler=yes
21326 else
21327 echo "$as_me: failed program was:" >&5
21328 sed 's/^/| /' conftest.$ac_ext >&5
21329
21330 ac_header_compiler=no
21331 fi
21332
21333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21334 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21335 echo "${ECHO_T}$ac_header_compiler" >&6; }
21336
21337 # Is the header present?
21338 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21339 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21340 cat >conftest.$ac_ext <<_ACEOF
21341 /* confdefs.h. */
21342 _ACEOF
21343 cat confdefs.h >>conftest.$ac_ext
21344 cat >>conftest.$ac_ext <<_ACEOF
21345 /* end confdefs.h. */
21346 #include <$ac_header>
21347 _ACEOF
21348 if { (ac_try="$ac_cpp conftest.$ac_ext"
21349 case "(($ac_try" in
21350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21351 *) ac_try_echo=$ac_try;;
21352 esac
21353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21354 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21355 ac_status=$?
21356 grep -v '^ *+' conftest.er1 >conftest.err
21357 rm -f conftest.er1
21358 cat conftest.err >&5
21359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21360 (exit $ac_status); } >/dev/null && {
21361 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21362 test ! -s conftest.err
21363 }; then
21364 ac_header_preproc=yes
21365 else
21366 echo "$as_me: failed program was:" >&5
21367 sed 's/^/| /' conftest.$ac_ext >&5
21368
21369 ac_header_preproc=no
21370 fi
21371
21372 rm -f conftest.err conftest.$ac_ext
21373 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21374 echo "${ECHO_T}$ac_header_preproc" >&6; }
21375
21376 # So? What about this header?
21377 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21378 yes:no: )
21379 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21380 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21381 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21382 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21383 ac_header_preproc=yes
21384 ;;
21385 no:yes:* )
21386 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21387 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21388 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21389 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21390 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21391 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21392 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21393 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21395 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21396 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21397 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21398
21399 ;;
21400 esac
21401 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21402 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21404 echo $ECHO_N "(cached) $ECHO_C" >&6
21405 else
21406 eval "$as_ac_Header=\$ac_header_preproc"
21407 fi
21408 ac_res=`eval echo '${'$as_ac_Header'}'`
21409 { echo "$as_me:$LINENO: result: $ac_res" >&5
21410 echo "${ECHO_T}$ac_res" >&6; }
21411
21412 fi
21413 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21414 cat >>confdefs.h <<_ACEOF
21415 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21416 _ACEOF
21417
21418 else
21419
21420 for ac_header in kerberos/krb.h
21421 do
21422 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21423 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21424 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21425 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21426 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21427 echo $ECHO_N "(cached) $ECHO_C" >&6
21428 fi
21429 ac_res=`eval echo '${'$as_ac_Header'}'`
21430 { echo "$as_me:$LINENO: result: $ac_res" >&5
21431 echo "${ECHO_T}$ac_res" >&6; }
21432 else
21433 # Is the header compilable?
21434 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21435 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21436 cat >conftest.$ac_ext <<_ACEOF
21437 /* confdefs.h. */
21438 _ACEOF
21439 cat confdefs.h >>conftest.$ac_ext
21440 cat >>conftest.$ac_ext <<_ACEOF
21441 /* end confdefs.h. */
21442 $ac_includes_default
21443 #include <$ac_header>
21444 _ACEOF
21445 rm -f conftest.$ac_objext
21446 if { (ac_try="$ac_compile"
21447 case "(($ac_try" in
21448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21449 *) ac_try_echo=$ac_try;;
21450 esac
21451 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21452 (eval "$ac_compile") 2>conftest.er1
21453 ac_status=$?
21454 grep -v '^ *+' conftest.er1 >conftest.err
21455 rm -f conftest.er1
21456 cat conftest.err >&5
21457 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21458 (exit $ac_status); } && {
21459 test -z "$ac_c_werror_flag" ||
21460 test ! -s conftest.err
21461 } && test -s conftest.$ac_objext; then
21462 ac_header_compiler=yes
21463 else
21464 echo "$as_me: failed program was:" >&5
21465 sed 's/^/| /' conftest.$ac_ext >&5
21466
21467 ac_header_compiler=no
21468 fi
21469
21470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21472 echo "${ECHO_T}$ac_header_compiler" >&6; }
21473
21474 # Is the header present?
21475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21477 cat >conftest.$ac_ext <<_ACEOF
21478 /* confdefs.h. */
21479 _ACEOF
21480 cat confdefs.h >>conftest.$ac_ext
21481 cat >>conftest.$ac_ext <<_ACEOF
21482 /* end confdefs.h. */
21483 #include <$ac_header>
21484 _ACEOF
21485 if { (ac_try="$ac_cpp conftest.$ac_ext"
21486 case "(($ac_try" in
21487 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21488 *) ac_try_echo=$ac_try;;
21489 esac
21490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21491 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21492 ac_status=$?
21493 grep -v '^ *+' conftest.er1 >conftest.err
21494 rm -f conftest.er1
21495 cat conftest.err >&5
21496 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21497 (exit $ac_status); } >/dev/null && {
21498 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21499 test ! -s conftest.err
21500 }; then
21501 ac_header_preproc=yes
21502 else
21503 echo "$as_me: failed program was:" >&5
21504 sed 's/^/| /' conftest.$ac_ext >&5
21505
21506 ac_header_preproc=no
21507 fi
21508
21509 rm -f conftest.err conftest.$ac_ext
21510 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21511 echo "${ECHO_T}$ac_header_preproc" >&6; }
21512
21513 # So? What about this header?
21514 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21515 yes:no: )
21516 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21517 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21518 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21519 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21520 ac_header_preproc=yes
21521 ;;
21522 no:yes:* )
21523 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21524 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21525 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21526 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21527 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21528 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21529 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21530 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21531 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21532 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21533 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21534 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21535
21536 ;;
21537 esac
21538 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21539 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21541 echo $ECHO_N "(cached) $ECHO_C" >&6
21542 else
21543 eval "$as_ac_Header=\$ac_header_preproc"
21544 fi
21545 ac_res=`eval echo '${'$as_ac_Header'}'`
21546 { echo "$as_me:$LINENO: result: $ac_res" >&5
21547 echo "${ECHO_T}$ac_res" >&6; }
21548
21549 fi
21550 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21551 cat >>confdefs.h <<_ACEOF
21552 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21553 _ACEOF
21554
21555 fi
21556
21557 done
21558
21559 fi
21560
21561 done
21562
21563 fi
21564
21565 done
21566
21567 fi
21568
21569 for ac_header in com_err.h
21570 do
21571 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21572 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21573 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21574 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21575 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21576 echo $ECHO_N "(cached) $ECHO_C" >&6
21577 fi
21578 ac_res=`eval echo '${'$as_ac_Header'}'`
21579 { echo "$as_me:$LINENO: result: $ac_res" >&5
21580 echo "${ECHO_T}$ac_res" >&6; }
21581 else
21582 # Is the header compilable?
21583 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21584 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21585 cat >conftest.$ac_ext <<_ACEOF
21586 /* confdefs.h. */
21587 _ACEOF
21588 cat confdefs.h >>conftest.$ac_ext
21589 cat >>conftest.$ac_ext <<_ACEOF
21590 /* end confdefs.h. */
21591 $ac_includes_default
21592 #include <$ac_header>
21593 _ACEOF
21594 rm -f conftest.$ac_objext
21595 if { (ac_try="$ac_compile"
21596 case "(($ac_try" in
21597 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21598 *) ac_try_echo=$ac_try;;
21599 esac
21600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21601 (eval "$ac_compile") 2>conftest.er1
21602 ac_status=$?
21603 grep -v '^ *+' conftest.er1 >conftest.err
21604 rm -f conftest.er1
21605 cat conftest.err >&5
21606 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21607 (exit $ac_status); } && {
21608 test -z "$ac_c_werror_flag" ||
21609 test ! -s conftest.err
21610 } && test -s conftest.$ac_objext; then
21611 ac_header_compiler=yes
21612 else
21613 echo "$as_me: failed program was:" >&5
21614 sed 's/^/| /' conftest.$ac_ext >&5
21615
21616 ac_header_compiler=no
21617 fi
21618
21619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21620 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21621 echo "${ECHO_T}$ac_header_compiler" >&6; }
21622
21623 # Is the header present?
21624 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21625 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21626 cat >conftest.$ac_ext <<_ACEOF
21627 /* confdefs.h. */
21628 _ACEOF
21629 cat confdefs.h >>conftest.$ac_ext
21630 cat >>conftest.$ac_ext <<_ACEOF
21631 /* end confdefs.h. */
21632 #include <$ac_header>
21633 _ACEOF
21634 if { (ac_try="$ac_cpp conftest.$ac_ext"
21635 case "(($ac_try" in
21636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21637 *) ac_try_echo=$ac_try;;
21638 esac
21639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21640 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21641 ac_status=$?
21642 grep -v '^ *+' conftest.er1 >conftest.err
21643 rm -f conftest.er1
21644 cat conftest.err >&5
21645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21646 (exit $ac_status); } >/dev/null && {
21647 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21648 test ! -s conftest.err
21649 }; then
21650 ac_header_preproc=yes
21651 else
21652 echo "$as_me: failed program was:" >&5
21653 sed 's/^/| /' conftest.$ac_ext >&5
21654
21655 ac_header_preproc=no
21656 fi
21657
21658 rm -f conftest.err conftest.$ac_ext
21659 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21660 echo "${ECHO_T}$ac_header_preproc" >&6; }
21661
21662 # So? What about this header?
21663 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21664 yes:no: )
21665 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21666 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21667 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21668 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21669 ac_header_preproc=yes
21670 ;;
21671 no:yes:* )
21672 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21673 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21674 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21675 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21676 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21677 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21678 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21679 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21680 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21681 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21682 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21683 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21684
21685 ;;
21686 esac
21687 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21688 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21689 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21690 echo $ECHO_N "(cached) $ECHO_C" >&6
21691 else
21692 eval "$as_ac_Header=\$ac_header_preproc"
21693 fi
21694 ac_res=`eval echo '${'$as_ac_Header'}'`
21695 { echo "$as_me:$LINENO: result: $ac_res" >&5
21696 echo "${ECHO_T}$ac_res" >&6; }
21697
21698 fi
21699 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21700 cat >>confdefs.h <<_ACEOF
21701 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21702 _ACEOF
21703
21704 fi
21705
21706 done
21707
21708 fi
21709
21710 # Solaris requires -lintl if you want strerror (which calls dgettext)
21711 # to return localized messages.
21712
21713 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21714 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21715 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21716 echo $ECHO_N "(cached) $ECHO_C" >&6
21717 else
21718 ac_check_lib_save_LIBS=$LIBS
21719 LIBS="-lintl $LIBS"
21720 cat >conftest.$ac_ext <<_ACEOF
21721 /* confdefs.h. */
21722 _ACEOF
21723 cat confdefs.h >>conftest.$ac_ext
21724 cat >>conftest.$ac_ext <<_ACEOF
21725 /* end confdefs.h. */
21726
21727 /* Override any GCC internal prototype to avoid an error.
21728 Use char because int might match the return type of a GCC
21729 builtin and then its argument prototype would still apply. */
21730 #ifdef __cplusplus
21731 extern "C"
21732 #endif
21733 char dgettext ();
21734 int
21735 main ()
21736 {
21737 return dgettext ();
21738 ;
21739 return 0;
21740 }
21741 _ACEOF
21742 rm -f conftest.$ac_objext conftest$ac_exeext
21743 if { (ac_try="$ac_link"
21744 case "(($ac_try" in
21745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21746 *) ac_try_echo=$ac_try;;
21747 esac
21748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21749 (eval "$ac_link") 2>conftest.er1
21750 ac_status=$?
21751 grep -v '^ *+' conftest.er1 >conftest.err
21752 rm -f conftest.er1
21753 cat conftest.err >&5
21754 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21755 (exit $ac_status); } && {
21756 test -z "$ac_c_werror_flag" ||
21757 test ! -s conftest.err
21758 } && test -s conftest$ac_exeext &&
21759 $as_test_x conftest$ac_exeext; then
21760 ac_cv_lib_intl_dgettext=yes
21761 else
21762 echo "$as_me: failed program was:" >&5
21763 sed 's/^/| /' conftest.$ac_ext >&5
21764
21765 ac_cv_lib_intl_dgettext=no
21766 fi
21767
21768 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21769 conftest$ac_exeext conftest.$ac_ext
21770 LIBS=$ac_check_lib_save_LIBS
21771 fi
21772 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21773 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21774 if test $ac_cv_lib_intl_dgettext = yes; then
21775 cat >>confdefs.h <<_ACEOF
21776 #define HAVE_LIBINTL 1
21777 _ACEOF
21778
21779 LIBS="-lintl $LIBS"
21780
21781 fi
21782
21783
21784 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21785 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21786 if test "${emacs_cv_localtime_cache+set}" = set; then
21787 echo $ECHO_N "(cached) $ECHO_C" >&6
21788 else
21789 if test x$ac_cv_func_tzset = xyes; then
21790 if test "$cross_compiling" = yes; then
21791 # If we have tzset, assume the worst when cross-compiling.
21792 emacs_cv_localtime_cache=yes
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 #include <time.h>
21801 extern char **environ;
21802 unset_TZ ()
21803 {
21804 char **from, **to;
21805 for (to = from = environ; (*to = *from); from++)
21806 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21807 to++;
21808 }
21809 char TZ_GMT0[] = "TZ=GMT0";
21810 char TZ_PST8[] = "TZ=PST8";
21811 main()
21812 {
21813 time_t now = time ((time_t *) 0);
21814 int hour_GMT0, hour_unset;
21815 if (putenv (TZ_GMT0) != 0)
21816 exit (1);
21817 hour_GMT0 = localtime (&now)->tm_hour;
21818 unset_TZ ();
21819 hour_unset = localtime (&now)->tm_hour;
21820 if (putenv (TZ_PST8) != 0)
21821 exit (1);
21822 if (localtime (&now)->tm_hour == hour_GMT0)
21823 exit (1);
21824 unset_TZ ();
21825 if (localtime (&now)->tm_hour != hour_unset)
21826 exit (1);
21827 exit (0);
21828 }
21829 _ACEOF
21830 rm -f conftest$ac_exeext
21831 if { (ac_try="$ac_link"
21832 case "(($ac_try" in
21833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21834 *) ac_try_echo=$ac_try;;
21835 esac
21836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21837 (eval "$ac_link") 2>&5
21838 ac_status=$?
21839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21840 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
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_try") 2>&5
21847 ac_status=$?
21848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21849 (exit $ac_status); }; }; then
21850 emacs_cv_localtime_cache=no
21851 else
21852 echo "$as_me: program exited with status $ac_status" >&5
21853 echo "$as_me: failed program was:" >&5
21854 sed 's/^/| /' conftest.$ac_ext >&5
21855
21856 ( exit $ac_status )
21857 emacs_cv_localtime_cache=yes
21858 fi
21859 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21860 fi
21861
21862
21863 else
21864 # If we lack tzset, report that localtime does not cache TZ,
21865 # since we can't invalidate the cache if we don't have tzset.
21866 emacs_cv_localtime_cache=no
21867 fi
21868 fi
21869 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21870 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21871 if test $emacs_cv_localtime_cache = yes; then
21872
21873 cat >>confdefs.h <<\_ACEOF
21874 #define LOCALTIME_CACHE 1
21875 _ACEOF
21876
21877 fi
21878
21879 if test "x$HAVE_TIMEVAL" = xyes; then
21880
21881 for ac_func in gettimeofday
21882 do
21883 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21884 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21885 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21886 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21887 echo $ECHO_N "(cached) $ECHO_C" >&6
21888 else
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 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21896 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21897 #define $ac_func innocuous_$ac_func
21898
21899 /* System header to define __stub macros and hopefully few prototypes,
21900 which can conflict with char $ac_func (); below.
21901 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21902 <limits.h> exists even on freestanding compilers. */
21903
21904 #ifdef __STDC__
21905 # include <limits.h>
21906 #else
21907 # include <assert.h>
21908 #endif
21909
21910 #undef $ac_func
21911
21912 /* Override any GCC internal prototype to avoid an error.
21913 Use char because int might match the return type of a GCC
21914 builtin and then its argument prototype would still apply. */
21915 #ifdef __cplusplus
21916 extern "C"
21917 #endif
21918 char $ac_func ();
21919 /* The GNU C library defines this for functions which it implements
21920 to always fail with ENOSYS. Some functions are actually named
21921 something starting with __ and the normal name is an alias. */
21922 #if defined __stub_$ac_func || defined __stub___$ac_func
21923 choke me
21924 #endif
21925
21926 int
21927 main ()
21928 {
21929 return $ac_func ();
21930 ;
21931 return 0;
21932 }
21933 _ACEOF
21934 rm -f conftest.$ac_objext conftest$ac_exeext
21935 if { (ac_try="$ac_link"
21936 case "(($ac_try" in
21937 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21938 *) ac_try_echo=$ac_try;;
21939 esac
21940 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21941 (eval "$ac_link") 2>conftest.er1
21942 ac_status=$?
21943 grep -v '^ *+' conftest.er1 >conftest.err
21944 rm -f conftest.er1
21945 cat conftest.err >&5
21946 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21947 (exit $ac_status); } && {
21948 test -z "$ac_c_werror_flag" ||
21949 test ! -s conftest.err
21950 } && test -s conftest$ac_exeext &&
21951 $as_test_x conftest$ac_exeext; then
21952 eval "$as_ac_var=yes"
21953 else
21954 echo "$as_me: failed program was:" >&5
21955 sed 's/^/| /' conftest.$ac_ext >&5
21956
21957 eval "$as_ac_var=no"
21958 fi
21959
21960 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21961 conftest$ac_exeext conftest.$ac_ext
21962 fi
21963 ac_res=`eval echo '${'$as_ac_var'}'`
21964 { echo "$as_me:$LINENO: result: $ac_res" >&5
21965 echo "${ECHO_T}$ac_res" >&6; }
21966 if test `eval echo '${'$as_ac_var'}'` = yes; then
21967 cat >>confdefs.h <<_ACEOF
21968 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21969 _ACEOF
21970
21971 fi
21972 done
21973
21974 if test $ac_cv_func_gettimeofday = yes; then
21975 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21976 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21977 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21978 echo $ECHO_N "(cached) $ECHO_C" >&6
21979 else
21980 cat >conftest.$ac_ext <<_ACEOF
21981 /* confdefs.h. */
21982 _ACEOF
21983 cat confdefs.h >>conftest.$ac_ext
21984 cat >>conftest.$ac_ext <<_ACEOF
21985 /* end confdefs.h. */
21986
21987 #ifdef TIME_WITH_SYS_TIME
21988 #include <sys/time.h>
21989 #include <time.h>
21990 #else
21991 #ifdef HAVE_SYS_TIME_H
21992 #include <sys/time.h>
21993 #else
21994 #include <time.h>
21995 #endif
21996 #endif
21997 int
21998 main ()
21999 {
22000 struct timeval time;
22001 gettimeofday (&time, 0);
22002 ;
22003 return 0;
22004 }
22005 _ACEOF
22006 rm -f conftest.$ac_objext
22007 if { (ac_try="$ac_compile"
22008 case "(($ac_try" in
22009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22010 *) ac_try_echo=$ac_try;;
22011 esac
22012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22013 (eval "$ac_compile") 2>conftest.er1
22014 ac_status=$?
22015 grep -v '^ *+' conftest.er1 >conftest.err
22016 rm -f conftest.er1
22017 cat conftest.err >&5
22018 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22019 (exit $ac_status); } && {
22020 test -z "$ac_c_werror_flag" ||
22021 test ! -s conftest.err
22022 } && test -s conftest.$ac_objext; then
22023 emacs_cv_gettimeofday_two_arguments=yes
22024 else
22025 echo "$as_me: failed program was:" >&5
22026 sed 's/^/| /' conftest.$ac_ext >&5
22027
22028 emacs_cv_gettimeofday_two_arguments=no
22029 fi
22030
22031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22032 fi
22033 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22034 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22035 if test $emacs_cv_gettimeofday_two_arguments = no; then
22036
22037 cat >>confdefs.h <<\_ACEOF
22038 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22039 _ACEOF
22040
22041 fi
22042 fi
22043 fi
22044
22045 ok_so_far=yes
22046 { echo "$as_me:$LINENO: checking for socket" >&5
22047 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22048 if test "${ac_cv_func_socket+set}" = set; then
22049 echo $ECHO_N "(cached) $ECHO_C" >&6
22050 else
22051 cat >conftest.$ac_ext <<_ACEOF
22052 /* confdefs.h. */
22053 _ACEOF
22054 cat confdefs.h >>conftest.$ac_ext
22055 cat >>conftest.$ac_ext <<_ACEOF
22056 /* end confdefs.h. */
22057 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22058 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22059 #define socket innocuous_socket
22060
22061 /* System header to define __stub macros and hopefully few prototypes,
22062 which can conflict with char socket (); below.
22063 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22064 <limits.h> exists even on freestanding compilers. */
22065
22066 #ifdef __STDC__
22067 # include <limits.h>
22068 #else
22069 # include <assert.h>
22070 #endif
22071
22072 #undef socket
22073
22074 /* Override any GCC internal prototype to avoid an error.
22075 Use char because int might match the return type of a GCC
22076 builtin and then its argument prototype would still apply. */
22077 #ifdef __cplusplus
22078 extern "C"
22079 #endif
22080 char socket ();
22081 /* The GNU C library defines this for functions which it implements
22082 to always fail with ENOSYS. Some functions are actually named
22083 something starting with __ and the normal name is an alias. */
22084 #if defined __stub_socket || defined __stub___socket
22085 choke me
22086 #endif
22087
22088 int
22089 main ()
22090 {
22091 return socket ();
22092 ;
22093 return 0;
22094 }
22095 _ACEOF
22096 rm -f conftest.$ac_objext conftest$ac_exeext
22097 if { (ac_try="$ac_link"
22098 case "(($ac_try" in
22099 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22100 *) ac_try_echo=$ac_try;;
22101 esac
22102 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22103 (eval "$ac_link") 2>conftest.er1
22104 ac_status=$?
22105 grep -v '^ *+' conftest.er1 >conftest.err
22106 rm -f conftest.er1
22107 cat conftest.err >&5
22108 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22109 (exit $ac_status); } && {
22110 test -z "$ac_c_werror_flag" ||
22111 test ! -s conftest.err
22112 } && test -s conftest$ac_exeext &&
22113 $as_test_x conftest$ac_exeext; then
22114 ac_cv_func_socket=yes
22115 else
22116 echo "$as_me: failed program was:" >&5
22117 sed 's/^/| /' conftest.$ac_ext >&5
22118
22119 ac_cv_func_socket=no
22120 fi
22121
22122 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22123 conftest$ac_exeext conftest.$ac_ext
22124 fi
22125 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22126 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22127 if test $ac_cv_func_socket = yes; then
22128 :
22129 else
22130 ok_so_far=no
22131 fi
22132
22133 if test $ok_so_far = yes; then
22134 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22135 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22136 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22137 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22138 echo $ECHO_N "(cached) $ECHO_C" >&6
22139 fi
22140 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22141 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22142 else
22143 # Is the header compilable?
22144 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22145 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22146 cat >conftest.$ac_ext <<_ACEOF
22147 /* confdefs.h. */
22148 _ACEOF
22149 cat confdefs.h >>conftest.$ac_ext
22150 cat >>conftest.$ac_ext <<_ACEOF
22151 /* end confdefs.h. */
22152 $ac_includes_default
22153 #include <netinet/in.h>
22154 _ACEOF
22155 rm -f conftest.$ac_objext
22156 if { (ac_try="$ac_compile"
22157 case "(($ac_try" in
22158 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22159 *) ac_try_echo=$ac_try;;
22160 esac
22161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22162 (eval "$ac_compile") 2>conftest.er1
22163 ac_status=$?
22164 grep -v '^ *+' conftest.er1 >conftest.err
22165 rm -f conftest.er1
22166 cat conftest.err >&5
22167 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22168 (exit $ac_status); } && {
22169 test -z "$ac_c_werror_flag" ||
22170 test ! -s conftest.err
22171 } && test -s conftest.$ac_objext; then
22172 ac_header_compiler=yes
22173 else
22174 echo "$as_me: failed program was:" >&5
22175 sed 's/^/| /' conftest.$ac_ext >&5
22176
22177 ac_header_compiler=no
22178 fi
22179
22180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22181 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22182 echo "${ECHO_T}$ac_header_compiler" >&6; }
22183
22184 # Is the header present?
22185 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22186 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22187 cat >conftest.$ac_ext <<_ACEOF
22188 /* confdefs.h. */
22189 _ACEOF
22190 cat confdefs.h >>conftest.$ac_ext
22191 cat >>conftest.$ac_ext <<_ACEOF
22192 /* end confdefs.h. */
22193 #include <netinet/in.h>
22194 _ACEOF
22195 if { (ac_try="$ac_cpp conftest.$ac_ext"
22196 case "(($ac_try" in
22197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22198 *) ac_try_echo=$ac_try;;
22199 esac
22200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22201 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22202 ac_status=$?
22203 grep -v '^ *+' conftest.er1 >conftest.err
22204 rm -f conftest.er1
22205 cat conftest.err >&5
22206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22207 (exit $ac_status); } >/dev/null && {
22208 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22209 test ! -s conftest.err
22210 }; then
22211 ac_header_preproc=yes
22212 else
22213 echo "$as_me: failed program was:" >&5
22214 sed 's/^/| /' conftest.$ac_ext >&5
22215
22216 ac_header_preproc=no
22217 fi
22218
22219 rm -f conftest.err conftest.$ac_ext
22220 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22221 echo "${ECHO_T}$ac_header_preproc" >&6; }
22222
22223 # So? What about this header?
22224 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22225 yes:no: )
22226 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22227 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22228 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22229 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22230 ac_header_preproc=yes
22231 ;;
22232 no:yes:* )
22233 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22234 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22235 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22236 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22237 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22238 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22239 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22240 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22241 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22242 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22243 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22244 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22245
22246 ;;
22247 esac
22248 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22249 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22250 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22251 echo $ECHO_N "(cached) $ECHO_C" >&6
22252 else
22253 ac_cv_header_netinet_in_h=$ac_header_preproc
22254 fi
22255 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22256 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22257
22258 fi
22259 if test $ac_cv_header_netinet_in_h = yes; then
22260 :
22261 else
22262 ok_so_far=no
22263 fi
22264
22265
22266 fi
22267 if test $ok_so_far = yes; then
22268 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22269 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22270 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22271 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22272 echo $ECHO_N "(cached) $ECHO_C" >&6
22273 fi
22274 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22275 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22276 else
22277 # Is the header compilable?
22278 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22279 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22280 cat >conftest.$ac_ext <<_ACEOF
22281 /* confdefs.h. */
22282 _ACEOF
22283 cat confdefs.h >>conftest.$ac_ext
22284 cat >>conftest.$ac_ext <<_ACEOF
22285 /* end confdefs.h. */
22286 $ac_includes_default
22287 #include <arpa/inet.h>
22288 _ACEOF
22289 rm -f conftest.$ac_objext
22290 if { (ac_try="$ac_compile"
22291 case "(($ac_try" in
22292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22293 *) ac_try_echo=$ac_try;;
22294 esac
22295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22296 (eval "$ac_compile") 2>conftest.er1
22297 ac_status=$?
22298 grep -v '^ *+' conftest.er1 >conftest.err
22299 rm -f conftest.er1
22300 cat conftest.err >&5
22301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22302 (exit $ac_status); } && {
22303 test -z "$ac_c_werror_flag" ||
22304 test ! -s conftest.err
22305 } && test -s conftest.$ac_objext; then
22306 ac_header_compiler=yes
22307 else
22308 echo "$as_me: failed program was:" >&5
22309 sed 's/^/| /' conftest.$ac_ext >&5
22310
22311 ac_header_compiler=no
22312 fi
22313
22314 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22315 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22316 echo "${ECHO_T}$ac_header_compiler" >&6; }
22317
22318 # Is the header present?
22319 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22320 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
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 #include <arpa/inet.h>
22328 _ACEOF
22329 if { (ac_try="$ac_cpp conftest.$ac_ext"
22330 case "(($ac_try" in
22331 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22332 *) ac_try_echo=$ac_try;;
22333 esac
22334 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22335 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22336 ac_status=$?
22337 grep -v '^ *+' conftest.er1 >conftest.err
22338 rm -f conftest.er1
22339 cat conftest.err >&5
22340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22341 (exit $ac_status); } >/dev/null && {
22342 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22343 test ! -s conftest.err
22344 }; then
22345 ac_header_preproc=yes
22346 else
22347 echo "$as_me: failed program was:" >&5
22348 sed 's/^/| /' conftest.$ac_ext >&5
22349
22350 ac_header_preproc=no
22351 fi
22352
22353 rm -f conftest.err conftest.$ac_ext
22354 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22355 echo "${ECHO_T}$ac_header_preproc" >&6; }
22356
22357 # So? What about this header?
22358 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22359 yes:no: )
22360 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22361 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22362 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22363 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22364 ac_header_preproc=yes
22365 ;;
22366 no:yes:* )
22367 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22368 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22369 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22370 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22371 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22372 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22373 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22374 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22375 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22376 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22377 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22378 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22379
22380 ;;
22381 esac
22382 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22383 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22384 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22385 echo $ECHO_N "(cached) $ECHO_C" >&6
22386 else
22387 ac_cv_header_arpa_inet_h=$ac_header_preproc
22388 fi
22389 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22390 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22391
22392 fi
22393 if test $ac_cv_header_arpa_inet_h = yes; then
22394 :
22395 else
22396 ok_so_far=no
22397 fi
22398
22399
22400 fi
22401 if test $ok_so_far = yes; then
22402
22403 cat >>confdefs.h <<\_ACEOF
22404 #define HAVE_INET_SOCKETS 1
22405 _ACEOF
22406
22407 fi
22408
22409
22410 for ac_header in sys/ioctl.h
22411 do
22412 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22413 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22414 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22415 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22416 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22417 echo $ECHO_N "(cached) $ECHO_C" >&6
22418 fi
22419 ac_res=`eval echo '${'$as_ac_Header'}'`
22420 { echo "$as_me:$LINENO: result: $ac_res" >&5
22421 echo "${ECHO_T}$ac_res" >&6; }
22422 else
22423 # Is the header compilable?
22424 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22425 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22426 cat >conftest.$ac_ext <<_ACEOF
22427 /* confdefs.h. */
22428 _ACEOF
22429 cat confdefs.h >>conftest.$ac_ext
22430 cat >>conftest.$ac_ext <<_ACEOF
22431 /* end confdefs.h. */
22432 $ac_includes_default
22433 #include <$ac_header>
22434 _ACEOF
22435 rm -f conftest.$ac_objext
22436 if { (ac_try="$ac_compile"
22437 case "(($ac_try" in
22438 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22439 *) ac_try_echo=$ac_try;;
22440 esac
22441 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22442 (eval "$ac_compile") 2>conftest.er1
22443 ac_status=$?
22444 grep -v '^ *+' conftest.er1 >conftest.err
22445 rm -f conftest.er1
22446 cat conftest.err >&5
22447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22448 (exit $ac_status); } && {
22449 test -z "$ac_c_werror_flag" ||
22450 test ! -s conftest.err
22451 } && test -s conftest.$ac_objext; then
22452 ac_header_compiler=yes
22453 else
22454 echo "$as_me: failed program was:" >&5
22455 sed 's/^/| /' conftest.$ac_ext >&5
22456
22457 ac_header_compiler=no
22458 fi
22459
22460 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22461 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22462 echo "${ECHO_T}$ac_header_compiler" >&6; }
22463
22464 # Is the header present?
22465 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22466 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22467 cat >conftest.$ac_ext <<_ACEOF
22468 /* confdefs.h. */
22469 _ACEOF
22470 cat confdefs.h >>conftest.$ac_ext
22471 cat >>conftest.$ac_ext <<_ACEOF
22472 /* end confdefs.h. */
22473 #include <$ac_header>
22474 _ACEOF
22475 if { (ac_try="$ac_cpp conftest.$ac_ext"
22476 case "(($ac_try" in
22477 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22478 *) ac_try_echo=$ac_try;;
22479 esac
22480 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22481 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22482 ac_status=$?
22483 grep -v '^ *+' conftest.er1 >conftest.err
22484 rm -f conftest.er1
22485 cat conftest.err >&5
22486 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22487 (exit $ac_status); } >/dev/null && {
22488 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22489 test ! -s conftest.err
22490 }; then
22491 ac_header_preproc=yes
22492 else
22493 echo "$as_me: failed program was:" >&5
22494 sed 's/^/| /' conftest.$ac_ext >&5
22495
22496 ac_header_preproc=no
22497 fi
22498
22499 rm -f conftest.err conftest.$ac_ext
22500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22501 echo "${ECHO_T}$ac_header_preproc" >&6; }
22502
22503 # So? What about this header?
22504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22505 yes:no: )
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22510 ac_header_preproc=yes
22511 ;;
22512 no:yes:* )
22513 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22515 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22516 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22517 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22519 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22520 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22521 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22523 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22525
22526 ;;
22527 esac
22528 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22529 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22530 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22531 echo $ECHO_N "(cached) $ECHO_C" >&6
22532 else
22533 eval "$as_ac_Header=\$ac_header_preproc"
22534 fi
22535 ac_res=`eval echo '${'$as_ac_Header'}'`
22536 { echo "$as_me:$LINENO: result: $ac_res" >&5
22537 echo "${ECHO_T}$ac_res" >&6; }
22538
22539 fi
22540 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22541 cat >>confdefs.h <<_ACEOF
22542 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22543 _ACEOF
22544
22545 fi
22546
22547 done
22548
22549
22550 if test -f /usr/lpp/X11/bin/smt.exp; then
22551
22552 cat >>confdefs.h <<\_ACEOF
22553 #define HAVE_AIX_SMT_EXP 1
22554 _ACEOF
22555
22556 fi
22557
22558 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22559 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22560 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22561 { echo "$as_me:$LINENO: result: yes" >&5
22562 echo "${ECHO_T}yes" >&6; }
22563
22564 cat >>confdefs.h <<\_ACEOF
22565 #define HAVE_DEV_PTMX 1
22566 _ACEOF
22567
22568 else
22569 { echo "$as_me:$LINENO: result: no" >&5
22570 echo "${ECHO_T}no" >&6; }
22571 fi
22572
22573 { echo "$as_me:$LINENO: checking for pid_t" >&5
22574 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22575 if test "${ac_cv_type_pid_t+set}" = set; then
22576 echo $ECHO_N "(cached) $ECHO_C" >&6
22577 else
22578 cat >conftest.$ac_ext <<_ACEOF
22579 /* confdefs.h. */
22580 _ACEOF
22581 cat confdefs.h >>conftest.$ac_ext
22582 cat >>conftest.$ac_ext <<_ACEOF
22583 /* end confdefs.h. */
22584 $ac_includes_default
22585 typedef pid_t ac__type_new_;
22586 int
22587 main ()
22588 {
22589 if ((ac__type_new_ *) 0)
22590 return 0;
22591 if (sizeof (ac__type_new_))
22592 return 0;
22593 ;
22594 return 0;
22595 }
22596 _ACEOF
22597 rm -f conftest.$ac_objext
22598 if { (ac_try="$ac_compile"
22599 case "(($ac_try" in
22600 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22601 *) ac_try_echo=$ac_try;;
22602 esac
22603 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22604 (eval "$ac_compile") 2>conftest.er1
22605 ac_status=$?
22606 grep -v '^ *+' conftest.er1 >conftest.err
22607 rm -f conftest.er1
22608 cat conftest.err >&5
22609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22610 (exit $ac_status); } && {
22611 test -z "$ac_c_werror_flag" ||
22612 test ! -s conftest.err
22613 } && test -s conftest.$ac_objext; then
22614 ac_cv_type_pid_t=yes
22615 else
22616 echo "$as_me: failed program was:" >&5
22617 sed 's/^/| /' conftest.$ac_ext >&5
22618
22619 ac_cv_type_pid_t=no
22620 fi
22621
22622 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22623 fi
22624 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22625 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22626 if test $ac_cv_type_pid_t = yes; then
22627 :
22628 else
22629
22630 cat >>confdefs.h <<_ACEOF
22631 #define pid_t int
22632 _ACEOF
22633
22634 fi
22635
22636
22637 for ac_header in vfork.h
22638 do
22639 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22641 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22642 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22643 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22644 echo $ECHO_N "(cached) $ECHO_C" >&6
22645 fi
22646 ac_res=`eval echo '${'$as_ac_Header'}'`
22647 { echo "$as_me:$LINENO: result: $ac_res" >&5
22648 echo "${ECHO_T}$ac_res" >&6; }
22649 else
22650 # Is the header compilable?
22651 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22652 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22653 cat >conftest.$ac_ext <<_ACEOF
22654 /* confdefs.h. */
22655 _ACEOF
22656 cat confdefs.h >>conftest.$ac_ext
22657 cat >>conftest.$ac_ext <<_ACEOF
22658 /* end confdefs.h. */
22659 $ac_includes_default
22660 #include <$ac_header>
22661 _ACEOF
22662 rm -f conftest.$ac_objext
22663 if { (ac_try="$ac_compile"
22664 case "(($ac_try" in
22665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22666 *) ac_try_echo=$ac_try;;
22667 esac
22668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22669 (eval "$ac_compile") 2>conftest.er1
22670 ac_status=$?
22671 grep -v '^ *+' conftest.er1 >conftest.err
22672 rm -f conftest.er1
22673 cat conftest.err >&5
22674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22675 (exit $ac_status); } && {
22676 test -z "$ac_c_werror_flag" ||
22677 test ! -s conftest.err
22678 } && test -s conftest.$ac_objext; then
22679 ac_header_compiler=yes
22680 else
22681 echo "$as_me: failed program was:" >&5
22682 sed 's/^/| /' conftest.$ac_ext >&5
22683
22684 ac_header_compiler=no
22685 fi
22686
22687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22689 echo "${ECHO_T}$ac_header_compiler" >&6; }
22690
22691 # Is the header present?
22692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22694 cat >conftest.$ac_ext <<_ACEOF
22695 /* confdefs.h. */
22696 _ACEOF
22697 cat confdefs.h >>conftest.$ac_ext
22698 cat >>conftest.$ac_ext <<_ACEOF
22699 /* end confdefs.h. */
22700 #include <$ac_header>
22701 _ACEOF
22702 if { (ac_try="$ac_cpp conftest.$ac_ext"
22703 case "(($ac_try" in
22704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22705 *) ac_try_echo=$ac_try;;
22706 esac
22707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22709 ac_status=$?
22710 grep -v '^ *+' conftest.er1 >conftest.err
22711 rm -f conftest.er1
22712 cat conftest.err >&5
22713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22714 (exit $ac_status); } >/dev/null && {
22715 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22716 test ! -s conftest.err
22717 }; then
22718 ac_header_preproc=yes
22719 else
22720 echo "$as_me: failed program was:" >&5
22721 sed 's/^/| /' conftest.$ac_ext >&5
22722
22723 ac_header_preproc=no
22724 fi
22725
22726 rm -f conftest.err conftest.$ac_ext
22727 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22728 echo "${ECHO_T}$ac_header_preproc" >&6; }
22729
22730 # So? What about this header?
22731 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22732 yes:no: )
22733 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22734 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22735 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22736 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22737 ac_header_preproc=yes
22738 ;;
22739 no:yes:* )
22740 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22741 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22742 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22743 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22744 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22745 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22746 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22747 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22748 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22749 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22750 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22751 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22752
22753 ;;
22754 esac
22755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22758 echo $ECHO_N "(cached) $ECHO_C" >&6
22759 else
22760 eval "$as_ac_Header=\$ac_header_preproc"
22761 fi
22762 ac_res=`eval echo '${'$as_ac_Header'}'`
22763 { echo "$as_me:$LINENO: result: $ac_res" >&5
22764 echo "${ECHO_T}$ac_res" >&6; }
22765
22766 fi
22767 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22768 cat >>confdefs.h <<_ACEOF
22769 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22770 _ACEOF
22771
22772 fi
22773
22774 done
22775
22776
22777
22778 for ac_func in fork vfork
22779 do
22780 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22781 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22782 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22783 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22784 echo $ECHO_N "(cached) $ECHO_C" >&6
22785 else
22786 cat >conftest.$ac_ext <<_ACEOF
22787 /* confdefs.h. */
22788 _ACEOF
22789 cat confdefs.h >>conftest.$ac_ext
22790 cat >>conftest.$ac_ext <<_ACEOF
22791 /* end confdefs.h. */
22792 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22793 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22794 #define $ac_func innocuous_$ac_func
22795
22796 /* System header to define __stub macros and hopefully few prototypes,
22797 which can conflict with char $ac_func (); below.
22798 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22799 <limits.h> exists even on freestanding compilers. */
22800
22801 #ifdef __STDC__
22802 # include <limits.h>
22803 #else
22804 # include <assert.h>
22805 #endif
22806
22807 #undef $ac_func
22808
22809 /* Override any GCC internal prototype to avoid an error.
22810 Use char because int might match the return type of a GCC
22811 builtin and then its argument prototype would still apply. */
22812 #ifdef __cplusplus
22813 extern "C"
22814 #endif
22815 char $ac_func ();
22816 /* The GNU C library defines this for functions which it implements
22817 to always fail with ENOSYS. Some functions are actually named
22818 something starting with __ and the normal name is an alias. */
22819 #if defined __stub_$ac_func || defined __stub___$ac_func
22820 choke me
22821 #endif
22822
22823 int
22824 main ()
22825 {
22826 return $ac_func ();
22827 ;
22828 return 0;
22829 }
22830 _ACEOF
22831 rm -f conftest.$ac_objext conftest$ac_exeext
22832 if { (ac_try="$ac_link"
22833 case "(($ac_try" in
22834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22835 *) ac_try_echo=$ac_try;;
22836 esac
22837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22838 (eval "$ac_link") 2>conftest.er1
22839 ac_status=$?
22840 grep -v '^ *+' conftest.er1 >conftest.err
22841 rm -f conftest.er1
22842 cat conftest.err >&5
22843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22844 (exit $ac_status); } && {
22845 test -z "$ac_c_werror_flag" ||
22846 test ! -s conftest.err
22847 } && test -s conftest$ac_exeext &&
22848 $as_test_x conftest$ac_exeext; then
22849 eval "$as_ac_var=yes"
22850 else
22851 echo "$as_me: failed program was:" >&5
22852 sed 's/^/| /' conftest.$ac_ext >&5
22853
22854 eval "$as_ac_var=no"
22855 fi
22856
22857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22858 conftest$ac_exeext conftest.$ac_ext
22859 fi
22860 ac_res=`eval echo '${'$as_ac_var'}'`
22861 { echo "$as_me:$LINENO: result: $ac_res" >&5
22862 echo "${ECHO_T}$ac_res" >&6; }
22863 if test `eval echo '${'$as_ac_var'}'` = yes; then
22864 cat >>confdefs.h <<_ACEOF
22865 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22866 _ACEOF
22867
22868 fi
22869 done
22870
22871 if test "x$ac_cv_func_fork" = xyes; then
22872 { echo "$as_me:$LINENO: checking for working fork" >&5
22873 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22874 if test "${ac_cv_func_fork_works+set}" = set; then
22875 echo $ECHO_N "(cached) $ECHO_C" >&6
22876 else
22877 if test "$cross_compiling" = yes; then
22878 ac_cv_func_fork_works=cross
22879 else
22880 cat >conftest.$ac_ext <<_ACEOF
22881 /* confdefs.h. */
22882 _ACEOF
22883 cat confdefs.h >>conftest.$ac_ext
22884 cat >>conftest.$ac_ext <<_ACEOF
22885 /* end confdefs.h. */
22886 $ac_includes_default
22887 int
22888 main ()
22889 {
22890
22891 /* By Ruediger Kuhlmann. */
22892 return fork () < 0;
22893
22894 ;
22895 return 0;
22896 }
22897 _ACEOF
22898 rm -f conftest$ac_exeext
22899 if { (ac_try="$ac_link"
22900 case "(($ac_try" in
22901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22902 *) ac_try_echo=$ac_try;;
22903 esac
22904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22905 (eval "$ac_link") 2>&5
22906 ac_status=$?
22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22908 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22909 { (case "(($ac_try" in
22910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22911 *) ac_try_echo=$ac_try;;
22912 esac
22913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22914 (eval "$ac_try") 2>&5
22915 ac_status=$?
22916 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22917 (exit $ac_status); }; }; then
22918 ac_cv_func_fork_works=yes
22919 else
22920 echo "$as_me: program exited with status $ac_status" >&5
22921 echo "$as_me: failed program was:" >&5
22922 sed 's/^/| /' conftest.$ac_ext >&5
22923
22924 ( exit $ac_status )
22925 ac_cv_func_fork_works=no
22926 fi
22927 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22928 fi
22929
22930
22931 fi
22932 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22933 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22934
22935 else
22936 ac_cv_func_fork_works=$ac_cv_func_fork
22937 fi
22938 if test "x$ac_cv_func_fork_works" = xcross; then
22939 case $host in
22940 *-*-amigaos* | *-*-msdosdjgpp*)
22941 # Override, as these systems have only a dummy fork() stub
22942 ac_cv_func_fork_works=no
22943 ;;
22944 *)
22945 ac_cv_func_fork_works=yes
22946 ;;
22947 esac
22948 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22949 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22950 fi
22951 ac_cv_func_vfork_works=$ac_cv_func_vfork
22952 if test "x$ac_cv_func_vfork" = xyes; then
22953 { echo "$as_me:$LINENO: checking for working vfork" >&5
22954 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22955 if test "${ac_cv_func_vfork_works+set}" = set; then
22956 echo $ECHO_N "(cached) $ECHO_C" >&6
22957 else
22958 if test "$cross_compiling" = yes; then
22959 ac_cv_func_vfork_works=cross
22960 else
22961 cat >conftest.$ac_ext <<_ACEOF
22962 /* confdefs.h. */
22963 _ACEOF
22964 cat confdefs.h >>conftest.$ac_ext
22965 cat >>conftest.$ac_ext <<_ACEOF
22966 /* end confdefs.h. */
22967 /* Thanks to Paul Eggert for this test. */
22968 $ac_includes_default
22969 #include <sys/wait.h>
22970 #ifdef HAVE_VFORK_H
22971 # include <vfork.h>
22972 #endif
22973 /* On some sparc systems, changes by the child to local and incoming
22974 argument registers are propagated back to the parent. The compiler
22975 is told about this with #include <vfork.h>, but some compilers
22976 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22977 static variable whose address is put into a register that is
22978 clobbered by the vfork. */
22979 static void
22980 #ifdef __cplusplus
22981 sparc_address_test (int arg)
22982 # else
22983 sparc_address_test (arg) int arg;
22984 #endif
22985 {
22986 static pid_t child;
22987 if (!child) {
22988 child = vfork ();
22989 if (child < 0) {
22990 perror ("vfork");
22991 _exit(2);
22992 }
22993 if (!child) {
22994 arg = getpid();
22995 write(-1, "", 0);
22996 _exit (arg);
22997 }
22998 }
22999 }
23000
23001 int
23002 main ()
23003 {
23004 pid_t parent = getpid ();
23005 pid_t child;
23006
23007 sparc_address_test (0);
23008
23009 child = vfork ();
23010
23011 if (child == 0) {
23012 /* Here is another test for sparc vfork register problems. This
23013 test uses lots of local variables, at least as many local
23014 variables as main has allocated so far including compiler
23015 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23016 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23017 reuse the register of parent for one of the local variables,
23018 since it will think that parent can't possibly be used any more
23019 in this routine. Assigning to the local variable will thus
23020 munge parent in the parent process. */
23021 pid_t
23022 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23023 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23024 /* Convince the compiler that p..p7 are live; otherwise, it might
23025 use the same hardware register for all 8 local variables. */
23026 if (p != p1 || p != p2 || p != p3 || p != p4
23027 || p != p5 || p != p6 || p != p7)
23028 _exit(1);
23029
23030 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23031 from child file descriptors. If the child closes a descriptor
23032 before it execs or exits, this munges the parent's descriptor
23033 as well. Test for this by closing stdout in the child. */
23034 _exit(close(fileno(stdout)) != 0);
23035 } else {
23036 int status;
23037 struct stat st;
23038
23039 while (wait(&status) != child)
23040 ;
23041 return (
23042 /* Was there some problem with vforking? */
23043 child < 0
23044
23045 /* Did the child fail? (This shouldn't happen.) */
23046 || status
23047
23048 /* Did the vfork/compiler bug occur? */
23049 || parent != getpid()
23050
23051 /* Did the file descriptor bug occur? */
23052 || fstat(fileno(stdout), &st) != 0
23053 );
23054 }
23055 }
23056 _ACEOF
23057 rm -f conftest$ac_exeext
23058 if { (ac_try="$ac_link"
23059 case "(($ac_try" in
23060 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23061 *) ac_try_echo=$ac_try;;
23062 esac
23063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23064 (eval "$ac_link") 2>&5
23065 ac_status=$?
23066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23067 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23068 { (case "(($ac_try" in
23069 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23070 *) ac_try_echo=$ac_try;;
23071 esac
23072 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23073 (eval "$ac_try") 2>&5
23074 ac_status=$?
23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23076 (exit $ac_status); }; }; then
23077 ac_cv_func_vfork_works=yes
23078 else
23079 echo "$as_me: program exited with status $ac_status" >&5
23080 echo "$as_me: failed program was:" >&5
23081 sed 's/^/| /' conftest.$ac_ext >&5
23082
23083 ( exit $ac_status )
23084 ac_cv_func_vfork_works=no
23085 fi
23086 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23087 fi
23088
23089
23090 fi
23091 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23092 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23093
23094 fi;
23095 if test "x$ac_cv_func_fork_works" = xcross; then
23096 ac_cv_func_vfork_works=$ac_cv_func_vfork
23097 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23098 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23099 fi
23100
23101 if test "x$ac_cv_func_vfork_works" = xyes; then
23102
23103 cat >>confdefs.h <<\_ACEOF
23104 #define HAVE_WORKING_VFORK 1
23105 _ACEOF
23106
23107 else
23108
23109 cat >>confdefs.h <<\_ACEOF
23110 #define vfork fork
23111 _ACEOF
23112
23113 fi
23114 if test "x$ac_cv_func_fork_works" = xyes; then
23115
23116 cat >>confdefs.h <<\_ACEOF
23117 #define HAVE_WORKING_FORK 1
23118 _ACEOF
23119
23120 fi
23121
23122
23123 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23124 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23125 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23126 echo $ECHO_N "(cached) $ECHO_C" >&6
23127 else
23128 cat >conftest.$ac_ext <<_ACEOF
23129 /* confdefs.h. */
23130 _ACEOF
23131 cat confdefs.h >>conftest.$ac_ext
23132 cat >>conftest.$ac_ext <<_ACEOF
23133 /* end confdefs.h. */
23134 #include <langinfo.h>
23135 int
23136 main ()
23137 {
23138 char* cs = nl_langinfo(CODESET);
23139 ;
23140 return 0;
23141 }
23142 _ACEOF
23143 rm -f conftest.$ac_objext conftest$ac_exeext
23144 if { (ac_try="$ac_link"
23145 case "(($ac_try" in
23146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23147 *) ac_try_echo=$ac_try;;
23148 esac
23149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23150 (eval "$ac_link") 2>conftest.er1
23151 ac_status=$?
23152 grep -v '^ *+' conftest.er1 >conftest.err
23153 rm -f conftest.er1
23154 cat conftest.err >&5
23155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23156 (exit $ac_status); } && {
23157 test -z "$ac_c_werror_flag" ||
23158 test ! -s conftest.err
23159 } && test -s conftest$ac_exeext &&
23160 $as_test_x conftest$ac_exeext; then
23161 emacs_cv_langinfo_codeset=yes
23162 else
23163 echo "$as_me: failed program was:" >&5
23164 sed 's/^/| /' conftest.$ac_ext >&5
23165
23166 emacs_cv_langinfo_codeset=no
23167 fi
23168
23169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23170 conftest$ac_exeext conftest.$ac_ext
23171
23172 fi
23173 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23174 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23175 if test $emacs_cv_langinfo_codeset = yes; then
23176
23177 cat >>confdefs.h <<\_ACEOF
23178 #define HAVE_LANGINFO_CODESET 1
23179 _ACEOF
23180
23181 fi
23182
23183 { echo "$as_me:$LINENO: checking for size_t" >&5
23184 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23185 if test "${ac_cv_type_size_t+set}" = set; then
23186 echo $ECHO_N "(cached) $ECHO_C" >&6
23187 else
23188 cat >conftest.$ac_ext <<_ACEOF
23189 /* confdefs.h. */
23190 _ACEOF
23191 cat confdefs.h >>conftest.$ac_ext
23192 cat >>conftest.$ac_ext <<_ACEOF
23193 /* end confdefs.h. */
23194 $ac_includes_default
23195 typedef size_t ac__type_new_;
23196 int
23197 main ()
23198 {
23199 if ((ac__type_new_ *) 0)
23200 return 0;
23201 if (sizeof (ac__type_new_))
23202 return 0;
23203 ;
23204 return 0;
23205 }
23206 _ACEOF
23207 rm -f conftest.$ac_objext
23208 if { (ac_try="$ac_compile"
23209 case "(($ac_try" in
23210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23211 *) ac_try_echo=$ac_try;;
23212 esac
23213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23214 (eval "$ac_compile") 2>conftest.er1
23215 ac_status=$?
23216 grep -v '^ *+' conftest.er1 >conftest.err
23217 rm -f conftest.er1
23218 cat conftest.err >&5
23219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23220 (exit $ac_status); } && {
23221 test -z "$ac_c_werror_flag" ||
23222 test ! -s conftest.err
23223 } && test -s conftest.$ac_objext; then
23224 ac_cv_type_size_t=yes
23225 else
23226 echo "$as_me: failed program was:" >&5
23227 sed 's/^/| /' conftest.$ac_ext >&5
23228
23229 ac_cv_type_size_t=no
23230 fi
23231
23232 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23233 fi
23234 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23235 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23236 if test $ac_cv_type_size_t = yes; then
23237
23238 cat >>confdefs.h <<_ACEOF
23239 #define HAVE_SIZE_T 1
23240 _ACEOF
23241
23242
23243 fi
23244
23245
23246 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23247 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23248 if test "${ac_cv_type_mbstate_t+set}" = set; then
23249 echo $ECHO_N "(cached) $ECHO_C" >&6
23250 else
23251 cat >conftest.$ac_ext <<_ACEOF
23252 /* confdefs.h. */
23253 _ACEOF
23254 cat confdefs.h >>conftest.$ac_ext
23255 cat >>conftest.$ac_ext <<_ACEOF
23256 /* end confdefs.h. */
23257 $ac_includes_default
23258 # include <wchar.h>
23259 int
23260 main ()
23261 {
23262 mbstate_t x; return sizeof x;
23263 ;
23264 return 0;
23265 }
23266 _ACEOF
23267 rm -f conftest.$ac_objext
23268 if { (ac_try="$ac_compile"
23269 case "(($ac_try" in
23270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23271 *) ac_try_echo=$ac_try;;
23272 esac
23273 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23274 (eval "$ac_compile") 2>conftest.er1
23275 ac_status=$?
23276 grep -v '^ *+' conftest.er1 >conftest.err
23277 rm -f conftest.er1
23278 cat conftest.err >&5
23279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23280 (exit $ac_status); } && {
23281 test -z "$ac_c_werror_flag" ||
23282 test ! -s conftest.err
23283 } && test -s conftest.$ac_objext; then
23284 ac_cv_type_mbstate_t=yes
23285 else
23286 echo "$as_me: failed program was:" >&5
23287 sed 's/^/| /' conftest.$ac_ext >&5
23288
23289 ac_cv_type_mbstate_t=no
23290 fi
23291
23292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23293 fi
23294 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23295 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23296 if test $ac_cv_type_mbstate_t = yes; then
23297
23298 cat >>confdefs.h <<\_ACEOF
23299 #define HAVE_MBSTATE_T 1
23300 _ACEOF
23301
23302 else
23303
23304 cat >>confdefs.h <<\_ACEOF
23305 #define mbstate_t int
23306 _ACEOF
23307
23308 fi
23309
23310 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23311 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23312 if test "${emacs_cv_c_restrict+set}" = set; then
23313 echo $ECHO_N "(cached) $ECHO_C" >&6
23314 else
23315 cat >conftest.$ac_ext <<_ACEOF
23316 /* confdefs.h. */
23317 _ACEOF
23318 cat confdefs.h >>conftest.$ac_ext
23319 cat >>conftest.$ac_ext <<_ACEOF
23320 /* end confdefs.h. */
23321 void fred (int *restrict x);
23322 int
23323 main ()
23324 {
23325
23326 ;
23327 return 0;
23328 }
23329 _ACEOF
23330 rm -f conftest.$ac_objext
23331 if { (ac_try="$ac_compile"
23332 case "(($ac_try" in
23333 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23334 *) ac_try_echo=$ac_try;;
23335 esac
23336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23337 (eval "$ac_compile") 2>conftest.er1
23338 ac_status=$?
23339 grep -v '^ *+' conftest.er1 >conftest.err
23340 rm -f conftest.er1
23341 cat conftest.err >&5
23342 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23343 (exit $ac_status); } && {
23344 test -z "$ac_c_werror_flag" ||
23345 test ! -s conftest.err
23346 } && test -s conftest.$ac_objext; then
23347 emacs_cv_c_restrict=yes
23348 else
23349 echo "$as_me: failed program was:" >&5
23350 sed 's/^/| /' conftest.$ac_ext >&5
23351
23352 cat >conftest.$ac_ext <<_ACEOF
23353 /* confdefs.h. */
23354 _ACEOF
23355 cat confdefs.h >>conftest.$ac_ext
23356 cat >>conftest.$ac_ext <<_ACEOF
23357 /* end confdefs.h. */
23358 void fred (int *__restrict x);
23359 int
23360 main ()
23361 {
23362
23363 ;
23364 return 0;
23365 }
23366 _ACEOF
23367 rm -f conftest.$ac_objext
23368 if { (ac_try="$ac_compile"
23369 case "(($ac_try" in
23370 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23371 *) ac_try_echo=$ac_try;;
23372 esac
23373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23374 (eval "$ac_compile") 2>conftest.er1
23375 ac_status=$?
23376 grep -v '^ *+' conftest.er1 >conftest.err
23377 rm -f conftest.er1
23378 cat conftest.err >&5
23379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23380 (exit $ac_status); } && {
23381 test -z "$ac_c_werror_flag" ||
23382 test ! -s conftest.err
23383 } && test -s conftest.$ac_objext; then
23384 emacs_cv_c_restrict=__restrict
23385 else
23386 echo "$as_me: failed program was:" >&5
23387 sed 's/^/| /' conftest.$ac_ext >&5
23388
23389 emacs_cv_c_restrict=no
23390 fi
23391
23392 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23393 fi
23394
23395 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23396 fi
23397 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23398 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23399 case "$emacs_cv_c_restrict" in
23400 yes) emacs_restrict=restrict;;
23401 no) emacs_restrict="";;
23402 *) emacs_restrict="$emacs_cv_c_restrict";;
23403 esac
23404 if test "$emacs_restrict" != __restrict; then
23405
23406 cat >>confdefs.h <<_ACEOF
23407 #define __restrict $emacs_restrict
23408 _ACEOF
23409
23410 fi
23411
23412 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23413 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23414 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23415 echo $ECHO_N "(cached) $ECHO_C" >&6
23416 else
23417 cat >conftest.$ac_ext <<_ACEOF
23418 /* confdefs.h. */
23419 _ACEOF
23420 cat confdefs.h >>conftest.$ac_ext
23421 cat >>conftest.$ac_ext <<_ACEOF
23422 /* end confdefs.h. */
23423 void fred (int x[__restrict]);
23424 int
23425 main ()
23426 {
23427
23428 ;
23429 return 0;
23430 }
23431 _ACEOF
23432 rm -f conftest.$ac_objext
23433 if { (ac_try="$ac_compile"
23434 case "(($ac_try" in
23435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23436 *) ac_try_echo=$ac_try;;
23437 esac
23438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23439 (eval "$ac_compile") 2>conftest.er1
23440 ac_status=$?
23441 grep -v '^ *+' conftest.er1 >conftest.err
23442 rm -f conftest.er1
23443 cat conftest.err >&5
23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23445 (exit $ac_status); } && {
23446 test -z "$ac_c_werror_flag" ||
23447 test ! -s conftest.err
23448 } && test -s conftest.$ac_objext; then
23449 emacs_cv_c_restrict_arr=yes
23450 else
23451 echo "$as_me: failed program was:" >&5
23452 sed 's/^/| /' conftest.$ac_ext >&5
23453
23454 emacs_cv_c_restrict_arr=no
23455 fi
23456
23457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23458 fi
23459 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23460 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23461 if test "$emacs_cv_c_restrict_arr" = yes; then
23462
23463 cat >>confdefs.h <<\_ACEOF
23464 #define __restrict_arr __restrict
23465 _ACEOF
23466
23467 fi
23468
23469
23470
23471 # Set up the CFLAGS for real compilation, so we can substitute it.
23472 CFLAGS="$REAL_CFLAGS"
23473 CPPFLAGS="$REAL_CPPFLAGS"
23474
23475 #### Find out which version of Emacs this is.
23476 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23477 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23478 if test x"${version}" = x; then
23479 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23480 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23481 { (exit 1); exit 1; }; }
23482 fi
23483
23484 ### Specify what sort of things we'll be editing into Makefile and config.h.
23485 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23486
23487
23488
23489
23490
23491
23492
23493
23494
23495
23496
23497
23498
23499
23500
23501
23502
23503
23504
23505
23506
23507
23508
23509
23510
23511
23512
23513
23514
23515
23516
23517
23518
23519
23520
23521 cat >>confdefs.h <<_ACEOF
23522 #define EMACS_CONFIGURATION "${canonical}"
23523 _ACEOF
23524
23525
23526 cat >>confdefs.h <<_ACEOF
23527 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23528 _ACEOF
23529
23530
23531 cat >>confdefs.h <<_ACEOF
23532 #define config_machfile "${machfile}"
23533 _ACEOF
23534
23535
23536 cat >>confdefs.h <<_ACEOF
23537 #define config_opsysfile "${opsysfile}"
23538 _ACEOF
23539
23540
23541 cat >>confdefs.h <<_ACEOF
23542 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23543 _ACEOF
23544
23545
23546 cat >>confdefs.h <<_ACEOF
23547 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23548 _ACEOF
23549
23550
23551 cat >>confdefs.h <<_ACEOF
23552 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23553 _ACEOF
23554
23555
23556 cat >>confdefs.h <<_ACEOF
23557 #define UNEXEC_SRC ${UNEXEC_SRC}
23558 _ACEOF
23559
23560
23561 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23562
23563 cat >>confdefs.h <<\_ACEOF
23564 #define HAVE_X_WINDOWS 1
23565 _ACEOF
23566
23567 fi
23568 if test "${USE_X_TOOLKIT}" != "none" ; then
23569
23570 cat >>confdefs.h <<\_ACEOF
23571 #define USE_X_TOOLKIT 1
23572 _ACEOF
23573
23574 fi
23575 if test "${HAVE_X11}" = "yes" ; then
23576
23577 cat >>confdefs.h <<\_ACEOF
23578 #define HAVE_X11 1
23579 _ACEOF
23580
23581 fi
23582 if test "${HAVE_XFREE386}" = "yes" ; then
23583
23584 cat >>confdefs.h <<\_ACEOF
23585 #define HAVE_XFREE386 1
23586 _ACEOF
23587
23588 fi
23589 if test "${HAVE_MENUS}" = "yes" ; then
23590
23591 cat >>confdefs.h <<\_ACEOF
23592 #define HAVE_MENUS 1
23593 _ACEOF
23594
23595 fi
23596 if test "${GNU_MALLOC}" = "yes" ; then
23597
23598 cat >>confdefs.h <<\_ACEOF
23599 #define GNU_MALLOC 1
23600 _ACEOF
23601
23602 fi
23603 if test "${REL_ALLOC}" = "yes" ; then
23604
23605 cat >>confdefs.h <<\_ACEOF
23606 #define REL_ALLOC 1
23607 _ACEOF
23608
23609 fi
23610
23611
23612
23613
23614
23615
23616 #### Report on what we decided to do.
23617 #### Report GTK as a toolkit, even if it doesn't use Xt.
23618 #### It makes printing result more understandable as using GTK sets
23619 #### toolkit_scroll_bars to yes by default.
23620 if test "${HAVE_GTK}" = "yes"; then
23621 USE_X_TOOLKIT=GTK
23622 fi
23623
23624 echo "
23625 Configured for \`${canonical}'.
23626
23627 Where should the build process find the source code? ${srcdir}
23628 What operating system and machine description files should Emacs use?
23629 \`${opsysfile}' and \`${machfile}'
23630 What compiler should emacs be built with? ${CC} ${CFLAGS}
23631 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23632 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23633 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23634 What window system should Emacs use? ${window_system}
23635 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23636
23637 if test -n "${x_includes}"; then
23638 echo " Where do we find X Windows header files? ${x_includes}"
23639 else
23640 echo " Where do we find X Windows header files? Standard dirs"
23641 fi
23642 if test -n "${x_libraries}"; then
23643 echo " Where do we find X Windows libraries? ${x_libraries}"
23644 else
23645 echo " Where do we find X Windows libraries? Standard dirs"
23646 fi
23647
23648 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23649 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23650 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23651 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23652 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23653 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23654 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23655 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23656 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23657 echo
23658
23659 if test $USE_XASSERTS = yes; then
23660 echo " Compiling with asserts turned on."
23661 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23662 echo
23663 fi
23664
23665 if test "$USE_X_TOOLKIT" = GTK; then
23666 case "$canonical" in
23667 *cygwin*)
23668 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23669 will probably get a crash on startup. If this happens, please use another
23670 toolkit for Emacs. See etc/PROBLEMS for more information."
23671 ;;
23672 esac
23673 fi
23674
23675
23676
23677 # Remove any trailing slashes in these variables.
23678 test "${prefix}" != NONE &&
23679 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23680 test "${exec_prefix}" != NONE &&
23681 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23682
23683 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23684 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23685 ## from Makefile.c can correctly provide the arg `-traditional' to the
23686 ## C preprocessor.
23687
23688 cat >conftest.$ac_ext <<_ACEOF
23689 /* confdefs.h. */
23690 _ACEOF
23691 cat confdefs.h >>conftest.$ac_ext
23692 cat >>conftest.$ac_ext <<_ACEOF
23693 /* end confdefs.h. */
23694 yes..yes
23695 _ACEOF
23696 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23697 $EGREP "yes..yes" >/dev/null 2>&1; then
23698 CPP_NEED_TRADITIONAL=no
23699 else
23700 CPP_NEED_TRADITIONAL=yes
23701 fi
23702 rm -f conftest*
23703
23704
23705 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"
23706
23707 ac_config_commands="$ac_config_commands default"
23708
23709 cat >confcache <<\_ACEOF
23710 # This file is a shell script that caches the results of configure
23711 # tests run on this system so they can be shared between configure
23712 # scripts and configure runs, see configure's option --config-cache.
23713 # It is not useful on other systems. If it contains results you don't
23714 # want to keep, you may remove or edit it.
23715 #
23716 # config.status only pays attention to the cache file if you give it
23717 # the --recheck option to rerun configure.
23718 #
23719 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23720 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23721 # following values.
23722
23723 _ACEOF
23724
23725 # The following way of writing the cache mishandles newlines in values,
23726 # but we know of no workaround that is simple, portable, and efficient.
23727 # So, we kill variables containing newlines.
23728 # Ultrix sh set writes to stderr and can't be redirected directly,
23729 # and sets the high bit in the cache file unless we assign to the vars.
23730 (
23731 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23732 eval ac_val=\$$ac_var
23733 case $ac_val in #(
23734 *${as_nl}*)
23735 case $ac_var in #(
23736 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23737 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23738 esac
23739 case $ac_var in #(
23740 _ | IFS | as_nl) ;; #(
23741 *) $as_unset $ac_var ;;
23742 esac ;;
23743 esac
23744 done
23745
23746 (set) 2>&1 |
23747 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23748 *${as_nl}ac_space=\ *)
23749 # `set' does not quote correctly, so add quotes (double-quote
23750 # substitution turns \\\\ into \\, and sed turns \\ into \).
23751 sed -n \
23752 "s/'/'\\\\''/g;
23753 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23754 ;; #(
23755 *)
23756 # `set' quotes correctly as required by POSIX, so do not add quotes.
23757 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23758 ;;
23759 esac |
23760 sort
23761 ) |
23762 sed '
23763 /^ac_cv_env_/b end
23764 t clear
23765 :clear
23766 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23767 t end
23768 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23769 :end' >>confcache
23770 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23771 if test -w "$cache_file"; then
23772 test "x$cache_file" != "x/dev/null" &&
23773 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23774 echo "$as_me: updating cache $cache_file" >&6;}
23775 cat confcache >$cache_file
23776 else
23777 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23778 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23779 fi
23780 fi
23781 rm -f confcache
23782
23783 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23784 # Let make expand exec_prefix.
23785 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23786
23787 DEFS=-DHAVE_CONFIG_H
23788
23789 ac_libobjs=
23790 ac_ltlibobjs=
23791 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23792 # 1. Remove the extension, and $U if already installed.
23793 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23794 ac_i=`echo "$ac_i" | sed "$ac_script"`
23795 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23796 # will be set to the directory where LIBOBJS objects are built.
23797 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23798 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23799 done
23800 LIBOBJS=$ac_libobjs
23801
23802 LTLIBOBJS=$ac_ltlibobjs
23803
23804
23805
23806 : ${CONFIG_STATUS=./config.status}
23807 ac_clean_files_save=$ac_clean_files
23808 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23809 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23810 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23811 cat >$CONFIG_STATUS <<_ACEOF
23812 #! $SHELL
23813 # Generated by $as_me.
23814 # Run this file to recreate the current configuration.
23815 # Compiler output produced by configure, useful for debugging
23816 # configure, is in config.log if it exists.
23817
23818 debug=false
23819 ac_cs_recheck=false
23820 ac_cs_silent=false
23821 SHELL=\${CONFIG_SHELL-$SHELL}
23822 _ACEOF
23823
23824 cat >>$CONFIG_STATUS <<\_ACEOF
23825 ## --------------------- ##
23826 ## M4sh Initialization. ##
23827 ## --------------------- ##
23828
23829 # Be more Bourne compatible
23830 DUALCASE=1; export DUALCASE # for MKS sh
23831 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23832 emulate sh
23833 NULLCMD=:
23834 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23835 # is contrary to our usage. Disable this feature.
23836 alias -g '${1+"$@"}'='"$@"'
23837 setopt NO_GLOB_SUBST
23838 else
23839 case `(set -o) 2>/dev/null` in
23840 *posix*) set -o posix ;;
23841 esac
23842
23843 fi
23844
23845
23846
23847
23848 # PATH needs CR
23849 # Avoid depending upon Character Ranges.
23850 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23851 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23852 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23853 as_cr_digits='0123456789'
23854 as_cr_alnum=$as_cr_Letters$as_cr_digits
23855
23856 # The user is always right.
23857 if test "${PATH_SEPARATOR+set}" != set; then
23858 echo "#! /bin/sh" >conf$$.sh
23859 echo "exit 0" >>conf$$.sh
23860 chmod +x conf$$.sh
23861 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23862 PATH_SEPARATOR=';'
23863 else
23864 PATH_SEPARATOR=:
23865 fi
23866 rm -f conf$$.sh
23867 fi
23868
23869 # Support unset when possible.
23870 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23871 as_unset=unset
23872 else
23873 as_unset=false
23874 fi
23875
23876
23877 # IFS
23878 # We need space, tab and new line, in precisely that order. Quoting is
23879 # there to prevent editors from complaining about space-tab.
23880 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23881 # splitting by setting IFS to empty value.)
23882 as_nl='
23883 '
23884 IFS=" "" $as_nl"
23885
23886 # Find who we are. Look in the path if we contain no directory separator.
23887 case $0 in
23888 *[\\/]* ) as_myself=$0 ;;
23889 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23890 for as_dir in $PATH
23891 do
23892 IFS=$as_save_IFS
23893 test -z "$as_dir" && as_dir=.
23894 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23895 done
23896 IFS=$as_save_IFS
23897
23898 ;;
23899 esac
23900 # We did not find ourselves, most probably we were run as `sh COMMAND'
23901 # in which case we are not to be found in the path.
23902 if test "x$as_myself" = x; then
23903 as_myself=$0
23904 fi
23905 if test ! -f "$as_myself"; then
23906 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23907 { (exit 1); exit 1; }
23908 fi
23909
23910 # Work around bugs in pre-3.0 UWIN ksh.
23911 for as_var in ENV MAIL MAILPATH
23912 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23913 done
23914 PS1='$ '
23915 PS2='> '
23916 PS4='+ '
23917
23918 # NLS nuisances.
23919 for as_var in \
23920 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23921 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23922 LC_TELEPHONE LC_TIME
23923 do
23924 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23925 eval $as_var=C; export $as_var
23926 else
23927 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23928 fi
23929 done
23930
23931 # Required to use basename.
23932 if expr a : '\(a\)' >/dev/null 2>&1 &&
23933 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23934 as_expr=expr
23935 else
23936 as_expr=false
23937 fi
23938
23939 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23940 as_basename=basename
23941 else
23942 as_basename=false
23943 fi
23944
23945
23946 # Name of the executable.
23947 as_me=`$as_basename -- "$0" ||
23948 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23949 X"$0" : 'X\(//\)$' \| \
23950 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23951 echo X/"$0" |
23952 sed '/^.*\/\([^/][^/]*\)\/*$/{
23953 s//\1/
23954 q
23955 }
23956 /^X\/\(\/\/\)$/{
23957 s//\1/
23958 q
23959 }
23960 /^X\/\(\/\).*/{
23961 s//\1/
23962 q
23963 }
23964 s/.*/./; q'`
23965
23966 # CDPATH.
23967 $as_unset CDPATH
23968
23969
23970
23971 as_lineno_1=$LINENO
23972 as_lineno_2=$LINENO
23973 test "x$as_lineno_1" != "x$as_lineno_2" &&
23974 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23975
23976 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23977 # uniformly replaced by the line number. The first 'sed' inserts a
23978 # line-number line after each line using $LINENO; the second 'sed'
23979 # does the real work. The second script uses 'N' to pair each
23980 # line-number line with the line containing $LINENO, and appends
23981 # trailing '-' during substitution so that $LINENO is not a special
23982 # case at line end.
23983 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23984 # scripts with optimization help from Paolo Bonzini. Blame Lee
23985 # E. McMahon (1931-1989) for sed's syntax. :-)
23986 sed -n '
23987 p
23988 /[$]LINENO/=
23989 ' <$as_myself |
23990 sed '
23991 s/[$]LINENO.*/&-/
23992 t lineno
23993 b
23994 :lineno
23995 N
23996 :loop
23997 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23998 t loop
23999 s/-\n.*//
24000 ' >$as_me.lineno &&
24001 chmod +x "$as_me.lineno" ||
24002 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24003 { (exit 1); exit 1; }; }
24004
24005 # Don't try to exec as it changes $[0], causing all sort of problems
24006 # (the dirname of $[0] is not the place where we might find the
24007 # original and so on. Autoconf is especially sensitive to this).
24008 . "./$as_me.lineno"
24009 # Exit status is that of the last command.
24010 exit
24011 }
24012
24013
24014 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24015 as_dirname=dirname
24016 else
24017 as_dirname=false
24018 fi
24019
24020 ECHO_C= ECHO_N= ECHO_T=
24021 case `echo -n x` in
24022 -n*)
24023 case `echo 'x\c'` in
24024 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24025 *) ECHO_C='\c';;
24026 esac;;
24027 *)
24028 ECHO_N='-n';;
24029 esac
24030
24031 if expr a : '\(a\)' >/dev/null 2>&1 &&
24032 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24033 as_expr=expr
24034 else
24035 as_expr=false
24036 fi
24037
24038 rm -f conf$$ conf$$.exe conf$$.file
24039 if test -d conf$$.dir; then
24040 rm -f conf$$.dir/conf$$.file
24041 else
24042 rm -f conf$$.dir
24043 mkdir conf$$.dir
24044 fi
24045 echo >conf$$.file
24046 if ln -s conf$$.file conf$$ 2>/dev/null; then
24047 as_ln_s='ln -s'
24048 # ... but there are two gotchas:
24049 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24050 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24051 # In both cases, we have to default to `cp -p'.
24052 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24053 as_ln_s='cp -p'
24054 elif ln conf$$.file conf$$ 2>/dev/null; then
24055 as_ln_s=ln
24056 else
24057 as_ln_s='cp -p'
24058 fi
24059 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24060 rmdir conf$$.dir 2>/dev/null
24061
24062 if mkdir -p . 2>/dev/null; then
24063 as_mkdir_p=:
24064 else
24065 test -d ./-p && rmdir ./-p
24066 as_mkdir_p=false
24067 fi
24068
24069 if test -x / >/dev/null 2>&1; then
24070 as_test_x='test -x'
24071 else
24072 if ls -dL / >/dev/null 2>&1; then
24073 as_ls_L_option=L
24074 else
24075 as_ls_L_option=
24076 fi
24077 as_test_x='
24078 eval sh -c '\''
24079 if test -d "$1"; then
24080 test -d "$1/.";
24081 else
24082 case $1 in
24083 -*)set "./$1";;
24084 esac;
24085 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24086 ???[sx]*):;;*)false;;esac;fi
24087 '\'' sh
24088 '
24089 fi
24090 as_executable_p=$as_test_x
24091
24092 # Sed expression to map a string onto a valid CPP name.
24093 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24094
24095 # Sed expression to map a string onto a valid variable name.
24096 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24097
24098
24099 exec 6>&1
24100
24101 # Save the log message, to keep $[0] and so on meaningful, and to
24102 # report actual input values of CONFIG_FILES etc. instead of their
24103 # values after options handling.
24104 ac_log="
24105 This file was extended by $as_me, which was
24106 generated by GNU Autoconf 2.61. Invocation command line was
24107
24108 CONFIG_FILES = $CONFIG_FILES
24109 CONFIG_HEADERS = $CONFIG_HEADERS
24110 CONFIG_LINKS = $CONFIG_LINKS
24111 CONFIG_COMMANDS = $CONFIG_COMMANDS
24112 $ $0 $@
24113
24114 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24115 "
24116
24117 _ACEOF
24118
24119 cat >>$CONFIG_STATUS <<_ACEOF
24120 # Files that config.status was made for.
24121 config_files="$ac_config_files"
24122 config_headers="$ac_config_headers"
24123 config_commands="$ac_config_commands"
24124
24125 _ACEOF
24126
24127 cat >>$CONFIG_STATUS <<\_ACEOF
24128 ac_cs_usage="\
24129 \`$as_me' instantiates files from templates according to the
24130 current configuration.
24131
24132 Usage: $0 [OPTIONS] [FILE]...
24133
24134 -h, --help print this help, then exit
24135 -V, --version print version number and configuration settings, then exit
24136 -q, --quiet do not print progress messages
24137 -d, --debug don't remove temporary files
24138 --recheck update $as_me by reconfiguring in the same conditions
24139 --file=FILE[:TEMPLATE]
24140 instantiate the configuration file FILE
24141 --header=FILE[:TEMPLATE]
24142 instantiate the configuration header FILE
24143
24144 Configuration files:
24145 $config_files
24146
24147 Configuration headers:
24148 $config_headers
24149
24150 Configuration commands:
24151 $config_commands
24152
24153 Report bugs to <bug-autoconf@gnu.org>."
24154
24155 _ACEOF
24156 cat >>$CONFIG_STATUS <<_ACEOF
24157 ac_cs_version="\\
24158 config.status
24159 configured by $0, generated by GNU Autoconf 2.61,
24160 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24161
24162 Copyright (C) 2006 Free Software Foundation, Inc.
24163 This config.status script is free software; the Free Software Foundation
24164 gives unlimited permission to copy, distribute and modify it."
24165
24166 ac_pwd='$ac_pwd'
24167 srcdir='$srcdir'
24168 INSTALL='$INSTALL'
24169 _ACEOF
24170
24171 cat >>$CONFIG_STATUS <<\_ACEOF
24172 # If no file are specified by the user, then we need to provide default
24173 # value. By we need to know if files were specified by the user.
24174 ac_need_defaults=:
24175 while test $# != 0
24176 do
24177 case $1 in
24178 --*=*)
24179 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24180 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24181 ac_shift=:
24182 ;;
24183 *)
24184 ac_option=$1
24185 ac_optarg=$2
24186 ac_shift=shift
24187 ;;
24188 esac
24189
24190 case $ac_option in
24191 # Handling of the options.
24192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24193 ac_cs_recheck=: ;;
24194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24195 echo "$ac_cs_version"; exit ;;
24196 --debug | --debu | --deb | --de | --d | -d )
24197 debug=: ;;
24198 --file | --fil | --fi | --f )
24199 $ac_shift
24200 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24201 ac_need_defaults=false;;
24202 --header | --heade | --head | --hea )
24203 $ac_shift
24204 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24205 ac_need_defaults=false;;
24206 --he | --h)
24207 # Conflict between --help and --header
24208 { echo "$as_me: error: ambiguous option: $1
24209 Try \`$0 --help' for more information." >&2
24210 { (exit 1); exit 1; }; };;
24211 --help | --hel | -h )
24212 echo "$ac_cs_usage"; exit ;;
24213 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24214 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24215 ac_cs_silent=: ;;
24216
24217 # This is an error.
24218 -*) { echo "$as_me: error: unrecognized option: $1
24219 Try \`$0 --help' for more information." >&2
24220 { (exit 1); exit 1; }; } ;;
24221
24222 *) ac_config_targets="$ac_config_targets $1"
24223 ac_need_defaults=false ;;
24224
24225 esac
24226 shift
24227 done
24228
24229 ac_configure_extra_args=
24230
24231 if $ac_cs_silent; then
24232 exec 6>/dev/null
24233 ac_configure_extra_args="$ac_configure_extra_args --silent"
24234 fi
24235
24236 _ACEOF
24237 cat >>$CONFIG_STATUS <<_ACEOF
24238 if \$ac_cs_recheck; then
24239 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24240 CONFIG_SHELL=$SHELL
24241 export CONFIG_SHELL
24242 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24243 fi
24244
24245 _ACEOF
24246 cat >>$CONFIG_STATUS <<\_ACEOF
24247 exec 5>>config.log
24248 {
24249 echo
24250 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24251 ## Running $as_me. ##
24252 _ASBOX
24253 echo "$ac_log"
24254 } >&5
24255
24256 _ACEOF
24257 cat >>$CONFIG_STATUS <<_ACEOF
24258 #
24259 # INIT-COMMANDS
24260 #
24261 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24262
24263 _ACEOF
24264
24265 cat >>$CONFIG_STATUS <<\_ACEOF
24266
24267 # Handling of arguments.
24268 for ac_config_target in $ac_config_targets
24269 do
24270 case $ac_config_target in
24271 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24272 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24273 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24274 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24275 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24276 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24277 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24278 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24279 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24280 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24281 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24282 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24283
24284 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24285 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24286 { (exit 1); exit 1; }; };;
24287 esac
24288 done
24289
24290
24291 # If the user did not use the arguments to specify the items to instantiate,
24292 # then the envvar interface is used. Set only those that are not.
24293 # We use the long form for the default assignment because of an extremely
24294 # bizarre bug on SunOS 4.1.3.
24295 if $ac_need_defaults; then
24296 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24297 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24298 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24299 fi
24300
24301 # Have a temporary directory for convenience. Make it in the build tree
24302 # simply because there is no reason against having it here, and in addition,
24303 # creating and moving files from /tmp can sometimes cause problems.
24304 # Hook for its removal unless debugging.
24305 # Note that there is a small window in which the directory will not be cleaned:
24306 # after its creation but before its name has been assigned to `$tmp'.
24307 $debug ||
24308 {
24309 tmp=
24310 trap 'exit_status=$?
24311 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24312 ' 0
24313 trap '{ (exit 1); exit 1; }' 1 2 13 15
24314 }
24315 # Create a (secure) tmp directory for tmp files.
24316
24317 {
24318 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24319 test -n "$tmp" && test -d "$tmp"
24320 } ||
24321 {
24322 tmp=./conf$$-$RANDOM
24323 (umask 077 && mkdir "$tmp")
24324 } ||
24325 {
24326 echo "$me: cannot create a temporary directory in ." >&2
24327 { (exit 1); exit 1; }
24328 }
24329
24330 #
24331 # Set up the sed scripts for CONFIG_FILES section.
24332 #
24333
24334 # No need to generate the scripts if there are no CONFIG_FILES.
24335 # This happens for instance when ./config.status config.h
24336 if test -n "$CONFIG_FILES"; then
24337
24338 _ACEOF
24339
24340
24341
24342 ac_delim='%!_!# '
24343 for ac_last_try in false false false false false :; do
24344 cat >conf$$subs.sed <<_ACEOF
24345 SHELL!$SHELL$ac_delim
24346 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24347 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24348 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24349 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24350 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24351 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24352 exec_prefix!$exec_prefix$ac_delim
24353 prefix!$prefix$ac_delim
24354 program_transform_name!$program_transform_name$ac_delim
24355 bindir!$bindir$ac_delim
24356 sbindir!$sbindir$ac_delim
24357 libexecdir!$libexecdir$ac_delim
24358 datarootdir!$datarootdir$ac_delim
24359 datadir!$datadir$ac_delim
24360 sysconfdir!$sysconfdir$ac_delim
24361 sharedstatedir!$sharedstatedir$ac_delim
24362 localstatedir!$localstatedir$ac_delim
24363 includedir!$includedir$ac_delim
24364 oldincludedir!$oldincludedir$ac_delim
24365 docdir!$docdir$ac_delim
24366 infodir!$infodir$ac_delim
24367 htmldir!$htmldir$ac_delim
24368 dvidir!$dvidir$ac_delim
24369 pdfdir!$pdfdir$ac_delim
24370 psdir!$psdir$ac_delim
24371 libdir!$libdir$ac_delim
24372 localedir!$localedir$ac_delim
24373 mandir!$mandir$ac_delim
24374 DEFS!$DEFS$ac_delim
24375 ECHO_C!$ECHO_C$ac_delim
24376 ECHO_N!$ECHO_N$ac_delim
24377 ECHO_T!$ECHO_T$ac_delim
24378 LIBS!$LIBS$ac_delim
24379 build_alias!$build_alias$ac_delim
24380 host_alias!$host_alias$ac_delim
24381 target_alias!$target_alias$ac_delim
24382 MAINT!$MAINT$ac_delim
24383 build!$build$ac_delim
24384 build_cpu!$build_cpu$ac_delim
24385 build_vendor!$build_vendor$ac_delim
24386 build_os!$build_os$ac_delim
24387 host!$host$ac_delim
24388 host_cpu!$host_cpu$ac_delim
24389 host_vendor!$host_vendor$ac_delim
24390 host_os!$host_os$ac_delim
24391 CC!$CC$ac_delim
24392 CFLAGS!$CFLAGS$ac_delim
24393 LDFLAGS!$LDFLAGS$ac_delim
24394 CPPFLAGS!$CPPFLAGS$ac_delim
24395 ac_ct_CC!$ac_ct_CC$ac_delim
24396 EXEEXT!$EXEEXT$ac_delim
24397 OBJEXT!$OBJEXT$ac_delim
24398 CPP!$CPP$ac_delim
24399 GREP!$GREP$ac_delim
24400 EGREP!$EGREP$ac_delim
24401 LN_S!$LN_S$ac_delim
24402 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24403 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24404 INSTALL_DATA!$INSTALL_DATA$ac_delim
24405 RANLIB!$RANLIB$ac_delim
24406 INSTALL_INFO!$INSTALL_INFO$ac_delim
24407 GZIP_PROG!$GZIP_PROG$ac_delim
24408 LIBSOUND!$LIBSOUND$ac_delim
24409 PKG_CONFIG!$PKG_CONFIG$ac_delim
24410 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24411 ALSA_LIBS!$ALSA_LIBS$ac_delim
24412 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24413 SET_MAKE!$SET_MAKE$ac_delim
24414 XMKMF!$XMKMF$ac_delim
24415 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24416 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24417 RSVG_LIBS!$RSVG_LIBS$ac_delim
24418 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24419 GTK_LIBS!$GTK_LIBS$ac_delim
24420 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24421 XFT_LIBS!$XFT_LIBS$ac_delim
24422 ALLOCA!$ALLOCA$ac_delim
24423 liblockfile!$liblockfile$ac_delim
24424 LIBOBJS!$LIBOBJS$ac_delim
24425 NEED_SETGID!$NEED_SETGID$ac_delim
24426 KMEM_GROUP!$KMEM_GROUP$ac_delim
24427 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24428 GETOPT_H!$GETOPT_H$ac_delim
24429 GETOPTOBJS!$GETOPTOBJS$ac_delim
24430 version!$version$ac_delim
24431 configuration!$configuration$ac_delim
24432 canonical!$canonical$ac_delim
24433 srcdir!$srcdir$ac_delim
24434 lispdir!$lispdir$ac_delim
24435 locallisppath!$locallisppath$ac_delim
24436 lisppath!$lisppath$ac_delim
24437 x_default_search_path!$x_default_search_path$ac_delim
24438 etcdir!$etcdir$ac_delim
24439 archlibdir!$archlibdir$ac_delim
24440 bitmapdir!$bitmapdir$ac_delim
24441 gamedir!$gamedir$ac_delim
24442 _ACEOF
24443
24444 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24445 break
24446 elif $ac_last_try; then
24447 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24448 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24449 { (exit 1); exit 1; }; }
24450 else
24451 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24452 fi
24453 done
24454
24455 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24456 if test -n "$ac_eof"; then
24457 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24458 ac_eof=`expr $ac_eof + 1`
24459 fi
24460
24461 cat >>$CONFIG_STATUS <<_ACEOF
24462 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24463 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24464 _ACEOF
24465 sed '
24466 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24467 s/^/s,@/; s/!/@,|#_!!_#|/
24468 :n
24469 t n
24470 s/'"$ac_delim"'$/,g/; t
24471 s/$/\\/; p
24472 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24473 ' >>$CONFIG_STATUS <conf$$subs.sed
24474 rm -f conf$$subs.sed
24475 cat >>$CONFIG_STATUS <<_ACEOF
24476 CEOF$ac_eof
24477 _ACEOF
24478
24479
24480 ac_delim='%!_!# '
24481 for ac_last_try in false false false false false :; do
24482 cat >conf$$subs.sed <<_ACEOF
24483 gameuser!$gameuser$ac_delim
24484 c_switch_system!$c_switch_system$ac_delim
24485 c_switch_machine!$c_switch_machine$ac_delim
24486 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24487 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24488 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24489 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24490 machfile!$machfile$ac_delim
24491 opsysfile!$opsysfile$ac_delim
24492 carbon_appdir!$carbon_appdir$ac_delim
24493 LTLIBOBJS!$LTLIBOBJS$ac_delim
24494 _ACEOF
24495
24496 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 11; then
24497 break
24498 elif $ac_last_try; then
24499 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24500 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24501 { (exit 1); exit 1; }; }
24502 else
24503 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24504 fi
24505 done
24506
24507 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24508 if test -n "$ac_eof"; then
24509 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24510 ac_eof=`expr $ac_eof + 1`
24511 fi
24512
24513 cat >>$CONFIG_STATUS <<_ACEOF
24514 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24515 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24516 _ACEOF
24517 sed '
24518 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24519 s/^/s,@/; s/!/@,|#_!!_#|/
24520 :n
24521 t n
24522 s/'"$ac_delim"'$/,g/; t
24523 s/$/\\/; p
24524 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24525 ' >>$CONFIG_STATUS <conf$$subs.sed
24526 rm -f conf$$subs.sed
24527 cat >>$CONFIG_STATUS <<_ACEOF
24528 :end
24529 s/|#_!!_#|//g
24530 CEOF$ac_eof
24531 _ACEOF
24532
24533
24534 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24535 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24536 # trailing colons and then remove the whole line if VPATH becomes empty
24537 # (actually we leave an empty line to preserve line numbers).
24538 if test "x$srcdir" = x.; then
24539 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24540 s/:*\$(srcdir):*/:/
24541 s/:*\${srcdir}:*/:/
24542 s/:*@srcdir@:*/:/
24543 s/^\([^=]*=[ ]*\):*/\1/
24544 s/:*$//
24545 s/^[^=]*=[ ]*$//
24546 }'
24547 fi
24548
24549 cat >>$CONFIG_STATUS <<\_ACEOF
24550 fi # test -n "$CONFIG_FILES"
24551
24552
24553 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24554 do
24555 case $ac_tag in
24556 :[FHLC]) ac_mode=$ac_tag; continue;;
24557 esac
24558 case $ac_mode$ac_tag in
24559 :[FHL]*:*);;
24560 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24561 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24562 { (exit 1); exit 1; }; };;
24563 :[FH]-) ac_tag=-:-;;
24564 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24565 esac
24566 ac_save_IFS=$IFS
24567 IFS=:
24568 set x $ac_tag
24569 IFS=$ac_save_IFS
24570 shift
24571 ac_file=$1
24572 shift
24573
24574 case $ac_mode in
24575 :L) ac_source=$1;;
24576 :[FH])
24577 ac_file_inputs=
24578 for ac_f
24579 do
24580 case $ac_f in
24581 -) ac_f="$tmp/stdin";;
24582 *) # Look for the file first in the build tree, then in the source tree
24583 # (if the path is not absolute). The absolute path cannot be DOS-style,
24584 # because $ac_f cannot contain `:'.
24585 test -f "$ac_f" ||
24586 case $ac_f in
24587 [\\/$]*) false;;
24588 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24589 esac ||
24590 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24591 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24592 { (exit 1); exit 1; }; };;
24593 esac
24594 ac_file_inputs="$ac_file_inputs $ac_f"
24595 done
24596
24597 # Let's still pretend it is `configure' which instantiates (i.e., don't
24598 # use $as_me), people would be surprised to read:
24599 # /* config.h. Generated by config.status. */
24600 configure_input="Generated from "`IFS=:
24601 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24602 if test x"$ac_file" != x-; then
24603 configure_input="$ac_file. $configure_input"
24604 { echo "$as_me:$LINENO: creating $ac_file" >&5
24605 echo "$as_me: creating $ac_file" >&6;}
24606 fi
24607
24608 case $ac_tag in
24609 *:-:* | *:-) cat >"$tmp/stdin";;
24610 esac
24611 ;;
24612 esac
24613
24614 ac_dir=`$as_dirname -- "$ac_file" ||
24615 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24616 X"$ac_file" : 'X\(//\)[^/]' \| \
24617 X"$ac_file" : 'X\(//\)$' \| \
24618 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24619 echo X"$ac_file" |
24620 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24621 s//\1/
24622 q
24623 }
24624 /^X\(\/\/\)[^/].*/{
24625 s//\1/
24626 q
24627 }
24628 /^X\(\/\/\)$/{
24629 s//\1/
24630 q
24631 }
24632 /^X\(\/\).*/{
24633 s//\1/
24634 q
24635 }
24636 s/.*/./; q'`
24637 { as_dir="$ac_dir"
24638 case $as_dir in #(
24639 -*) as_dir=./$as_dir;;
24640 esac
24641 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24642 as_dirs=
24643 while :; do
24644 case $as_dir in #(
24645 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24646 *) as_qdir=$as_dir;;
24647 esac
24648 as_dirs="'$as_qdir' $as_dirs"
24649 as_dir=`$as_dirname -- "$as_dir" ||
24650 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24651 X"$as_dir" : 'X\(//\)[^/]' \| \
24652 X"$as_dir" : 'X\(//\)$' \| \
24653 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24654 echo X"$as_dir" |
24655 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24656 s//\1/
24657 q
24658 }
24659 /^X\(\/\/\)[^/].*/{
24660 s//\1/
24661 q
24662 }
24663 /^X\(\/\/\)$/{
24664 s//\1/
24665 q
24666 }
24667 /^X\(\/\).*/{
24668 s//\1/
24669 q
24670 }
24671 s/.*/./; q'`
24672 test -d "$as_dir" && break
24673 done
24674 test -z "$as_dirs" || eval "mkdir $as_dirs"
24675 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24676 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24677 { (exit 1); exit 1; }; }; }
24678 ac_builddir=.
24679
24680 case "$ac_dir" in
24681 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24682 *)
24683 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24684 # A ".." for each directory in $ac_dir_suffix.
24685 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24686 case $ac_top_builddir_sub in
24687 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24688 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24689 esac ;;
24690 esac
24691 ac_abs_top_builddir=$ac_pwd
24692 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24693 # for backward compatibility:
24694 ac_top_builddir=$ac_top_build_prefix
24695
24696 case $srcdir in
24697 .) # We are building in place.
24698 ac_srcdir=.
24699 ac_top_srcdir=$ac_top_builddir_sub
24700 ac_abs_top_srcdir=$ac_pwd ;;
24701 [\\/]* | ?:[\\/]* ) # Absolute name.
24702 ac_srcdir=$srcdir$ac_dir_suffix;
24703 ac_top_srcdir=$srcdir
24704 ac_abs_top_srcdir=$srcdir ;;
24705 *) # Relative name.
24706 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24707 ac_top_srcdir=$ac_top_build_prefix$srcdir
24708 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24709 esac
24710 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24711
24712
24713 case $ac_mode in
24714 :F)
24715 #
24716 # CONFIG_FILE
24717 #
24718
24719 case $INSTALL in
24720 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24721 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24722 esac
24723 _ACEOF
24724
24725 cat >>$CONFIG_STATUS <<\_ACEOF
24726 # If the template does not know about datarootdir, expand it.
24727 # FIXME: This hack should be removed a few years after 2.60.
24728 ac_datarootdir_hack=; ac_datarootdir_seen=
24729
24730 case `sed -n '/datarootdir/ {
24731 p
24732 q
24733 }
24734 /@datadir@/p
24735 /@docdir@/p
24736 /@infodir@/p
24737 /@localedir@/p
24738 /@mandir@/p
24739 ' $ac_file_inputs` in
24740 *datarootdir*) ac_datarootdir_seen=yes;;
24741 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24742 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24743 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24744 _ACEOF
24745 cat >>$CONFIG_STATUS <<_ACEOF
24746 ac_datarootdir_hack='
24747 s&@datadir@&$datadir&g
24748 s&@docdir@&$docdir&g
24749 s&@infodir@&$infodir&g
24750 s&@localedir@&$localedir&g
24751 s&@mandir@&$mandir&g
24752 s&\\\${datarootdir}&$datarootdir&g' ;;
24753 esac
24754 _ACEOF
24755
24756 # Neutralize VPATH when `$srcdir' = `.'.
24757 # Shell code in configure.ac might set extrasub.
24758 # FIXME: do we really want to maintain this feature?
24759 cat >>$CONFIG_STATUS <<_ACEOF
24760 sed "$ac_vpsub
24761 $extrasub
24762 _ACEOF
24763 cat >>$CONFIG_STATUS <<\_ACEOF
24764 :t
24765 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24766 s&@configure_input@&$configure_input&;t t
24767 s&@top_builddir@&$ac_top_builddir_sub&;t t
24768 s&@srcdir@&$ac_srcdir&;t t
24769 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24770 s&@top_srcdir@&$ac_top_srcdir&;t t
24771 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24772 s&@builddir@&$ac_builddir&;t t
24773 s&@abs_builddir@&$ac_abs_builddir&;t t
24774 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24775 s&@INSTALL@&$ac_INSTALL&;t t
24776 $ac_datarootdir_hack
24777 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24778
24779 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24780 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24781 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24782 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24783 which seems to be undefined. Please make sure it is defined." >&5
24784 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24785 which seems to be undefined. Please make sure it is defined." >&2;}
24786
24787 rm -f "$tmp/stdin"
24788 case $ac_file in
24789 -) cat "$tmp/out"; rm -f "$tmp/out";;
24790 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24791 esac
24792 ;;
24793 :H)
24794 #
24795 # CONFIG_HEADER
24796 #
24797 _ACEOF
24798
24799 # Transform confdefs.h into a sed script `conftest.defines', that
24800 # substitutes the proper values into config.h.in to produce config.h.
24801 rm -f conftest.defines conftest.tail
24802 # First, append a space to every undef/define line, to ease matching.
24803 echo 's/$/ /' >conftest.defines
24804 # Then, protect against being on the right side of a sed subst, or in
24805 # an unquoted here document, in config.status. If some macros were
24806 # called several times there might be several #defines for the same
24807 # symbol, which is useless. But do not sort them, since the last
24808 # AC_DEFINE must be honored.
24809 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24810 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24811 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24812 # PARAMS is the parameter list in the macro definition--in most cases, it's
24813 # just an empty string.
24814 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24815 ac_dB='\\)[ (].*,\\1define\\2'
24816 ac_dC=' '
24817 ac_dD=' ,'
24818
24819 uniq confdefs.h |
24820 sed -n '
24821 t rset
24822 :rset
24823 s/^[ ]*#[ ]*define[ ][ ]*//
24824 t ok
24825 d
24826 :ok
24827 s/[\\&,]/\\&/g
24828 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24829 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24830 ' >>conftest.defines
24831
24832 # Remove the space that was appended to ease matching.
24833 # Then replace #undef with comments. This is necessary, for
24834 # example, in the case of _POSIX_SOURCE, which is predefined and required
24835 # on some systems where configure will not decide to define it.
24836 # (The regexp can be short, since the line contains either #define or #undef.)
24837 echo 's/ $//
24838 s,^[ #]*u.*,/* & */,' >>conftest.defines
24839
24840 # Break up conftest.defines:
24841 ac_max_sed_lines=50
24842
24843 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24844 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24845 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24846 # et cetera.
24847 ac_in='$ac_file_inputs'
24848 ac_out='"$tmp/out1"'
24849 ac_nxt='"$tmp/out2"'
24850
24851 while :
24852 do
24853 # Write a here document:
24854 cat >>$CONFIG_STATUS <<_ACEOF
24855 # First, check the format of the line:
24856 cat >"\$tmp/defines.sed" <<\\CEOF
24857 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24858 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24859 b
24860 :def
24861 _ACEOF
24862 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24863 echo 'CEOF
24864 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24865 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24866 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24867 grep . conftest.tail >/dev/null || break
24868 rm -f conftest.defines
24869 mv conftest.tail conftest.defines
24870 done
24871 rm -f conftest.defines conftest.tail
24872
24873 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24874 cat >>$CONFIG_STATUS <<\_ACEOF
24875 if test x"$ac_file" != x-; then
24876 echo "/* $configure_input */" >"$tmp/config.h"
24877 cat "$ac_result" >>"$tmp/config.h"
24878 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24879 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24880 echo "$as_me: $ac_file is unchanged" >&6;}
24881 else
24882 rm -f $ac_file
24883 mv "$tmp/config.h" $ac_file
24884 fi
24885 else
24886 echo "/* $configure_input */"
24887 cat "$ac_result"
24888 fi
24889 rm -f "$tmp/out12"
24890 ;;
24891
24892 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24893 echo "$as_me: executing $ac_file commands" >&6;}
24894 ;;
24895 esac
24896
24897
24898 case $ac_file$ac_mode in
24899 "default":C)
24900
24901 ### Make the necessary directories, if they don't exist.
24902 for dir in etc lisp ; do
24903 test -d ${dir} || mkdir ${dir}
24904 done
24905
24906 # Build src/Makefile from ${srcdir}/src/Makefile.c
24907 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24908 # This must be done after src/config.h is built, since we rely on that file.
24909
24910 # Now get this: Some word that is part of the ${srcdir} directory name
24911 # or the ${configuration} value might, just might, happen to be an
24912 # identifier like `sun4' or `i386' or something, and be predefined by
24913 # the C preprocessor to some helpful value like 1, or maybe the empty
24914 # string. Needless to say consequent macro substitutions are less
24915 # than conducive to the makefile finding the correct directory.
24916 undefs="`echo $top_srcdir $configuration $canonical |
24917 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24918 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24919 `"
24920
24921 echo creating src/epaths.h
24922 ${MAKE-make} epaths-force
24923
24924 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24925 # `..' to `. .' unless invoked with -traditional
24926
24927 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24928 CPPFLAGS="$CPPFLAGS -traditional"
24929 fi
24930
24931 echo creating lib-src/Makefile
24932 ( cd lib-src
24933 rm -f junk.c junk1.c junk2.c
24934 sed -e '/start of cpp stuff/q' \
24935 < Makefile.c > junk1.c
24936 sed -e '1,/start of cpp stuff/d'\
24937 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24938 < Makefile.c > junk.c
24939 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24940 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24941 cat junk1.c junk2.c > Makefile.new
24942 rm -f junk.c junk1.c junk2.c
24943 chmod 444 Makefile.new
24944 mv -f Makefile.new Makefile
24945 )
24946
24947 echo creating src/Makefile
24948 ( cd src
24949 rm -f junk.c junk1.c junk2.c
24950 sed -e '/start of cpp stuff/q' \
24951 < Makefile.c > junk1.c
24952 sed -e '1,/start of cpp stuff/d'\
24953 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24954 < Makefile.c > junk.c
24955 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24956 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24957 cat junk1.c junk2.c > Makefile.new
24958 rm -f junk.c junk1.c junk2.c
24959 chmod 444 Makefile.new
24960 mv -f Makefile.new Makefile
24961 )
24962
24963 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24964 echo creating src/.gdbinit
24965 echo source $srcdir/src/.gdbinit > src/.gdbinit
24966 fi
24967
24968 # This is how we know whether to re-run configure in certain cases.
24969 touch src/config.stamp
24970
24971 ;;
24972
24973 esac
24974 done # for ac_tag
24975
24976
24977 { (exit 0); exit 0; }
24978 _ACEOF
24979 chmod +x $CONFIG_STATUS
24980 ac_clean_files=$ac_clean_files_save
24981
24982
24983 # configure is writing to config.log, and then calls config.status.
24984 # config.status does its own redirection, appending to config.log.
24985 # Unfortunately, on DOS this fails, as config.log is still kept open
24986 # by configure, so config.status won't be able to write to it; its
24987 # output is simply discarded. So we exec the FD to /dev/null,
24988 # effectively closing config.log, so it can be properly (re)opened and
24989 # appended to by config.status. When coming back to configure, we
24990 # need to make the FD available again.
24991 if test "$no_create" != yes; then
24992 ac_cs_success=:
24993 ac_config_status_args=
24994 test "$silent" = yes &&
24995 ac_config_status_args="$ac_config_status_args --quiet"
24996 exec 5>/dev/null
24997 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24998 exec 5>>config.log
24999 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25000 # would make configure fail if this is the last instruction.
25001 $ac_cs_success || { (exit 1); exit 1; }
25002 fi
25003
25004