]> code.delx.au - gnu-emacs/blob - configure
(produce_chars): Don't call insert_from_gap if no
[gnu-emacs] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.61.
4 #
5 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
6 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9 ## --------------------- ##
10 ## M4sh Initialization. ##
11 ## --------------------- ##
12
13 # Be more Bourne compatible
14 DUALCASE=1; export DUALCASE # for MKS sh
15 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
16 emulate sh
17 NULLCMD=:
18 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
19 # is contrary to our usage. Disable this feature.
20 alias -g '${1+"$@"}'='"$@"'
21 setopt NO_GLOB_SUBST
22 else
23 case `(set -o) 2>/dev/null` in
24 *posix*) set -o posix ;;
25 esac
26
27 fi
28
29
30
31
32 # PATH needs CR
33 # Avoid depending upon Character Ranges.
34 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
35 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
36 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37 as_cr_digits='0123456789'
38 as_cr_alnum=$as_cr_Letters$as_cr_digits
39
40 # The user is always right.
41 if test "${PATH_SEPARATOR+set}" != set; then
42 echo "#! /bin/sh" >conf$$.sh
43 echo "exit 0" >>conf$$.sh
44 chmod +x conf$$.sh
45 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
46 PATH_SEPARATOR=';'
47 else
48 PATH_SEPARATOR=:
49 fi
50 rm -f conf$$.sh
51 fi
52
53 # Support unset when possible.
54 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
55 as_unset=unset
56 else
57 as_unset=false
58 fi
59
60
61 # IFS
62 # We need space, tab and new line, in precisely that order. Quoting is
63 # there to prevent editors from complaining about space-tab.
64 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
65 # splitting by setting IFS to empty value.)
66 as_nl='
67 '
68 IFS=" "" $as_nl"
69
70 # Find who we are. Look in the path if we contain no directory separator.
71 case $0 in
72 *[\\/]* ) as_myself=$0 ;;
73 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
74 for as_dir in $PATH
75 do
76 IFS=$as_save_IFS
77 test -z "$as_dir" && as_dir=.
78 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
79 done
80 IFS=$as_save_IFS
81
82 ;;
83 esac
84 # We did not find ourselves, most probably we were run as `sh COMMAND'
85 # in which case we are not to be found in the path.
86 if test "x$as_myself" = x; then
87 as_myself=$0
88 fi
89 if test ! -f "$as_myself"; then
90 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
91 { (exit 1); exit 1; }
92 fi
93
94 # Work around bugs in pre-3.0 UWIN ksh.
95 for as_var in ENV MAIL MAILPATH
96 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
97 done
98 PS1='$ '
99 PS2='> '
100 PS4='+ '
101
102 # NLS nuisances.
103 for as_var in \
104 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
105 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
106 LC_TELEPHONE LC_TIME
107 do
108 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
109 eval $as_var=C; export $as_var
110 else
111 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
112 fi
113 done
114
115 # Required to use basename.
116 if expr a : '\(a\)' >/dev/null 2>&1 &&
117 test "X`expr 00001 : '.*\(...\)'`" = X001; then
118 as_expr=expr
119 else
120 as_expr=false
121 fi
122
123 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
124 as_basename=basename
125 else
126 as_basename=false
127 fi
128
129
130 # Name of the executable.
131 as_me=`$as_basename -- "$0" ||
132 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
133 X"$0" : 'X\(//\)$' \| \
134 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
135 echo X/"$0" |
136 sed '/^.*\/\([^/][^/]*\)\/*$/{
137 s//\1/
138 q
139 }
140 /^X\/\(\/\/\)$/{
141 s//\1/
142 q
143 }
144 /^X\/\(\/\).*/{
145 s//\1/
146 q
147 }
148 s/.*/./; q'`
149
150 # CDPATH.
151 $as_unset CDPATH
152
153
154 if test "x$CONFIG_SHELL" = x; then
155 if (eval ":") 2>/dev/null; then
156 as_have_required=yes
157 else
158 as_have_required=no
159 fi
160
161 if test $as_have_required = yes && (eval ":
162 (as_func_return () {
163 (exit \$1)
164 }
165 as_func_success () {
166 as_func_return 0
167 }
168 as_func_failure () {
169 as_func_return 1
170 }
171 as_func_ret_success () {
172 return 0
173 }
174 as_func_ret_failure () {
175 return 1
176 }
177
178 exitcode=0
179 if as_func_success; then
180 :
181 else
182 exitcode=1
183 echo as_func_success failed.
184 fi
185
186 if as_func_failure; then
187 exitcode=1
188 echo as_func_failure succeeded.
189 fi
190
191 if as_func_ret_success; then
192 :
193 else
194 exitcode=1
195 echo as_func_ret_success failed.
196 fi
197
198 if as_func_ret_failure; then
199 exitcode=1
200 echo as_func_ret_failure succeeded.
201 fi
202
203 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
204 :
205 else
206 exitcode=1
207 echo positional parameters were not saved.
208 fi
209
210 test \$exitcode = 0) || { (exit 1); exit 1; }
211
212 (
213 as_lineno_1=\$LINENO
214 as_lineno_2=\$LINENO
215 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
216 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
217 ") 2> /dev/null; then
218 :
219 else
220 as_candidate_shells=
221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
222 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
223 do
224 IFS=$as_save_IFS
225 test -z "$as_dir" && as_dir=.
226 case $as_dir in
227 /*)
228 for as_base in sh bash ksh sh5; do
229 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
230 done;;
231 esac
232 done
233 IFS=$as_save_IFS
234
235
236 for as_shell in $as_candidate_shells $SHELL; do
237 # Try only shells that exist, to save several forks.
238 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
239 { ("$as_shell") 2> /dev/null <<\_ASEOF
240 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
241 emulate sh
242 NULLCMD=:
243 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
244 # is contrary to our usage. Disable this feature.
245 alias -g '${1+"$@"}'='"$@"'
246 setopt NO_GLOB_SUBST
247 else
248 case `(set -o) 2>/dev/null` in
249 *posix*) set -o posix ;;
250 esac
251
252 fi
253
254
255 :
256 _ASEOF
257 }; then
258 CONFIG_SHELL=$as_shell
259 as_have_required=yes
260 if { "$as_shell" 2> /dev/null <<\_ASEOF
261 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
262 emulate sh
263 NULLCMD=:
264 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
265 # is contrary to our usage. Disable this feature.
266 alias -g '${1+"$@"}'='"$@"'
267 setopt NO_GLOB_SUBST
268 else
269 case `(set -o) 2>/dev/null` in
270 *posix*) set -o posix ;;
271 esac
272
273 fi
274
275
276 :
277 (as_func_return () {
278 (exit $1)
279 }
280 as_func_success () {
281 as_func_return 0
282 }
283 as_func_failure () {
284 as_func_return 1
285 }
286 as_func_ret_success () {
287 return 0
288 }
289 as_func_ret_failure () {
290 return 1
291 }
292
293 exitcode=0
294 if as_func_success; then
295 :
296 else
297 exitcode=1
298 echo as_func_success failed.
299 fi
300
301 if as_func_failure; then
302 exitcode=1
303 echo as_func_failure succeeded.
304 fi
305
306 if as_func_ret_success; then
307 :
308 else
309 exitcode=1
310 echo as_func_ret_success failed.
311 fi
312
313 if as_func_ret_failure; then
314 exitcode=1
315 echo as_func_ret_failure succeeded.
316 fi
317
318 if ( set x; as_func_ret_success y && test x = "$1" ); then
319 :
320 else
321 exitcode=1
322 echo positional parameters were not saved.
323 fi
324
325 test $exitcode = 0) || { (exit 1); exit 1; }
326
327 (
328 as_lineno_1=$LINENO
329 as_lineno_2=$LINENO
330 test "x$as_lineno_1" != "x$as_lineno_2" &&
331 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
332
333 _ASEOF
334 }; then
335 break
336 fi
337
338 fi
339
340 done
341
342 if test "x$CONFIG_SHELL" != x; then
343 for as_var in BASH_ENV ENV
344 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
345 done
346 export CONFIG_SHELL
347 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
348 fi
349
350
351 if test $as_have_required = no; then
352 echo This script requires a shell more modern than all the
353 echo shells that I found on your system. Please install a
354 echo modern shell, or manually run the script under such a
355 echo shell if you do have one.
356 { (exit 1); exit 1; }
357 fi
358
359
360 fi
361
362 fi
363
364
365
366 (eval "as_func_return () {
367 (exit \$1)
368 }
369 as_func_success () {
370 as_func_return 0
371 }
372 as_func_failure () {
373 as_func_return 1
374 }
375 as_func_ret_success () {
376 return 0
377 }
378 as_func_ret_failure () {
379 return 1
380 }
381
382 exitcode=0
383 if as_func_success; then
384 :
385 else
386 exitcode=1
387 echo as_func_success failed.
388 fi
389
390 if as_func_failure; then
391 exitcode=1
392 echo as_func_failure succeeded.
393 fi
394
395 if as_func_ret_success; then
396 :
397 else
398 exitcode=1
399 echo as_func_ret_success failed.
400 fi
401
402 if as_func_ret_failure; then
403 exitcode=1
404 echo as_func_ret_failure succeeded.
405 fi
406
407 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
408 :
409 else
410 exitcode=1
411 echo positional parameters were not saved.
412 fi
413
414 test \$exitcode = 0") || {
415 echo No shell found that supports shell functions.
416 echo Please tell autoconf@gnu.org about your system,
417 echo including any error possibly output before this
418 echo message
419 }
420
421
422
423 as_lineno_1=$LINENO
424 as_lineno_2=$LINENO
425 test "x$as_lineno_1" != "x$as_lineno_2" &&
426 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
427
428 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
429 # uniformly replaced by the line number. The first 'sed' inserts a
430 # line-number line after each line using $LINENO; the second 'sed'
431 # does the real work. The second script uses 'N' to pair each
432 # line-number line with the line containing $LINENO, and appends
433 # trailing '-' during substitution so that $LINENO is not a special
434 # case at line end.
435 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
436 # scripts with optimization help from Paolo Bonzini. Blame Lee
437 # E. McMahon (1931-1989) for sed's syntax. :-)
438 sed -n '
439 p
440 /[$]LINENO/=
441 ' <$as_myself |
442 sed '
443 s/[$]LINENO.*/&-/
444 t lineno
445 b
446 :lineno
447 N
448 :loop
449 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
450 t loop
451 s/-\n.*//
452 ' >$as_me.lineno &&
453 chmod +x "$as_me.lineno" ||
454 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
455 { (exit 1); exit 1; }; }
456
457 # Don't try to exec as it changes $[0], causing all sort of problems
458 # (the dirname of $[0] is not the place where we might find the
459 # original and so on. Autoconf is especially sensitive to this).
460 . "./$as_me.lineno"
461 # Exit status is that of the last command.
462 exit
463 }
464
465
466 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
467 as_dirname=dirname
468 else
469 as_dirname=false
470 fi
471
472 ECHO_C= ECHO_N= ECHO_T=
473 case `echo -n x` in
474 -n*)
475 case `echo 'x\c'` in
476 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
477 *) ECHO_C='\c';;
478 esac;;
479 *)
480 ECHO_N='-n';;
481 esac
482
483 if expr a : '\(a\)' >/dev/null 2>&1 &&
484 test "X`expr 00001 : '.*\(...\)'`" = X001; then
485 as_expr=expr
486 else
487 as_expr=false
488 fi
489
490 rm -f conf$$ conf$$.exe conf$$.file
491 if test -d conf$$.dir; then
492 rm -f conf$$.dir/conf$$.file
493 else
494 rm -f conf$$.dir
495 mkdir conf$$.dir
496 fi
497 echo >conf$$.file
498 if ln -s conf$$.file conf$$ 2>/dev/null; then
499 as_ln_s='ln -s'
500 # ... but there are two gotchas:
501 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
502 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
503 # In both cases, we have to default to `cp -p'.
504 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
505 as_ln_s='cp -p'
506 elif ln conf$$.file conf$$ 2>/dev/null; then
507 as_ln_s=ln
508 else
509 as_ln_s='cp -p'
510 fi
511 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
512 rmdir conf$$.dir 2>/dev/null
513
514 if mkdir -p . 2>/dev/null; then
515 as_mkdir_p=:
516 else
517 test -d ./-p && rmdir ./-p
518 as_mkdir_p=false
519 fi
520
521 if test -x / >/dev/null 2>&1; then
522 as_test_x='test -x'
523 else
524 if ls -dL / >/dev/null 2>&1; then
525 as_ls_L_option=L
526 else
527 as_ls_L_option=
528 fi
529 as_test_x='
530 eval sh -c '\''
531 if test -d "$1"; then
532 test -d "$1/.";
533 else
534 case $1 in
535 -*)set "./$1";;
536 esac;
537 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
538 ???[sx]*):;;*)false;;esac;fi
539 '\'' sh
540 '
541 fi
542 as_executable_p=$as_test_x
543
544 # Sed expression to map a string onto a valid CPP name.
545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
546
547 # Sed expression to map a string onto a valid variable name.
548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
549
550
551
552 exec 7<&0 </dev/null 6>&1
553
554 # Name of the host.
555 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
556 # so uname gets run too.
557 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
558
559 #
560 # Initializations.
561 #
562 ac_default_prefix=/usr/local
563 ac_clean_files=
564 ac_config_libobj_dir=.
565 LIBOBJS=
566 cross_compiling=no
567 subdirs=
568 MFLAGS=
569 MAKEFLAGS=
570 SHELL=${CONFIG_SHELL-/bin/sh}
571
572 # Identity of this package.
573 PACKAGE_NAME=
574 PACKAGE_TARNAME=
575 PACKAGE_VERSION=
576 PACKAGE_STRING=
577 PACKAGE_BUGREPORT=
578
579 ac_unique_file="src/lisp.h"
580 ac_config_libobj_dir=src
581 # Factoring default headers for most tests.
582 ac_includes_default="\
583 #include <stdio.h>
584 #ifdef HAVE_SYS_TYPES_H
585 # include <sys/types.h>
586 #endif
587 #ifdef HAVE_SYS_STAT_H
588 # include <sys/stat.h>
589 #endif
590 #ifdef STDC_HEADERS
591 # include <stdlib.h>
592 # include <stddef.h>
593 #else
594 # ifdef HAVE_STDLIB_H
595 # include <stdlib.h>
596 # endif
597 #endif
598 #ifdef HAVE_STRING_H
599 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
600 # include <memory.h>
601 # endif
602 # include <string.h>
603 #endif
604 #ifdef HAVE_STRINGS_H
605 # include <strings.h>
606 #endif
607 #ifdef HAVE_INTTYPES_H
608 # include <inttypes.h>
609 #endif
610 #ifdef HAVE_STDINT_H
611 # include <stdint.h>
612 #endif
613 #ifdef HAVE_UNISTD_H
614 # include <unistd.h>
615 #endif"
616
617 ac_header_list=
618 ac_func_list=
619 ac_subst_vars='SHELL
620 PATH_SEPARATOR
621 PACKAGE_NAME
622 PACKAGE_TARNAME
623 PACKAGE_VERSION
624 PACKAGE_STRING
625 PACKAGE_BUGREPORT
626 exec_prefix
627 prefix
628 program_transform_name
629 bindir
630 sbindir
631 libexecdir
632 datarootdir
633 datadir
634 sysconfdir
635 sharedstatedir
636 localstatedir
637 includedir
638 oldincludedir
639 docdir
640 infodir
641 htmldir
642 dvidir
643 pdfdir
644 psdir
645 libdir
646 localedir
647 mandir
648 DEFS
649 ECHO_C
650 ECHO_N
651 ECHO_T
652 LIBS
653 build_alias
654 host_alias
655 target_alias
656 MAINT
657 build
658 build_cpu
659 build_vendor
660 build_os
661 host
662 host_cpu
663 host_vendor
664 host_os
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LN_S
676 INSTALL_PROGRAM
677 INSTALL_SCRIPT
678 INSTALL_DATA
679 RANLIB
680 INSTALL_INFO
681 GZIP_PROG
682 LIBSOUND
683 PKG_CONFIG
684 ALSA_CFLAGS
685 ALSA_LIBS
686
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 GTK_CFLAGS
691 GTK_LIBS
692 XFT_CFLAGS
693 XFT_LIBS
694 FREETYPE_CFLAGS
695 FREETYPE_LIBS
696 FONTCONFIG_CFLAGS
697 FONTCONFIG_LIBS
698 HAVE_LIBOTF
699 LIBOTF_CFLAGS
700 LIBOTF_LIBS
701 ALLOCA
702 liblockfile
703 LIBOBJS
704 NEED_SETGID
705 KMEM_GROUP
706 GETLOADAVG_LIBS
707 GETOPT_H
708 GETOPTOBJS
709 version
710 configuration
711 canonical
712 srcdir
713 lispdir
714 locallisppath
715 lisppath
716 x_default_search_path
717 etcdir
718 archlibdir
719 bitmapdir
720 gamedir
721 gameuser
722 c_switch_system
723 c_switch_machine
724 LD_SWITCH_X_SITE
725 LD_SWITCH_X_SITE_AUX
726 C_SWITCH_X_SITE
727 X_TOOLKIT_TYPE
728 machfile
729 opsysfile
730 carbon_appdir
731 LTLIBOBJS'
732 ac_subst_files=''
733 ac_precious_vars='build_alias
734 host_alias
735 target_alias
736 CC
737 CFLAGS
738 LDFLAGS
739 LIBS
740 CPPFLAGS
741 CPP
742 XMKMF'
743
744
745 # Initialize some variables set by options.
746 ac_init_help=
747 ac_init_version=false
748 # The variables have the same names as the options, with
749 # dashes changed to underlines.
750 cache_file=/dev/null
751 exec_prefix=NONE
752 no_create=
753 no_recursion=
754 prefix=NONE
755 program_prefix=NONE
756 program_suffix=NONE
757 program_transform_name=s,x,x,
758 silent=
759 site=
760 srcdir=
761 verbose=
762 x_includes=NONE
763 x_libraries=NONE
764
765 # Installation directory options.
766 # These are left unexpanded so users can "make install exec_prefix=/foo"
767 # and all the variables that are supposed to be based on exec_prefix
768 # by default will actually change.
769 # Use braces instead of parens because sh, perl, etc. also accept them.
770 # (The list follows the same order as the GNU Coding Standards.)
771 bindir='${exec_prefix}/bin'
772 sbindir='${exec_prefix}/sbin'
773 libexecdir='${exec_prefix}/libexec'
774 datarootdir='${prefix}/share'
775 datadir='${datarootdir}'
776 sysconfdir='${prefix}/etc'
777 sharedstatedir='${prefix}/com'
778 localstatedir='${prefix}/var'
779 includedir='${prefix}/include'
780 oldincludedir='/usr/include'
781 docdir='${datarootdir}/doc/${PACKAGE}'
782 infodir='${datarootdir}/info'
783 htmldir='${docdir}'
784 dvidir='${docdir}'
785 pdfdir='${docdir}'
786 psdir='${docdir}'
787 libdir='${exec_prefix}/lib'
788 localedir='${datarootdir}/locale'
789 mandir='${datarootdir}/man'
790
791 ac_prev=
792 ac_dashdash=
793 for ac_option
794 do
795 # If the previous option needs an argument, assign it.
796 if test -n "$ac_prev"; then
797 eval $ac_prev=\$ac_option
798 ac_prev=
799 continue
800 fi
801
802 case $ac_option in
803 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
804 *) ac_optarg=yes ;;
805 esac
806
807 # Accept the important Cygnus configure options, so we can diagnose typos.
808
809 case $ac_dashdash$ac_option in
810 --)
811 ac_dashdash=yes ;;
812
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
814 ac_prev=bindir ;;
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
816 bindir=$ac_optarg ;;
817
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
822
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
829
830 --config-cache | -C)
831 cache_file=config.cache ;;
832
833 -datadir | --datadir | --datadi | --datad)
834 ac_prev=datadir ;;
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
837
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
844
845 -disable-* | --disable-*)
846 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
849 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
850 { (exit 1); exit 1; }; }
851 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
852 eval enable_$ac_feature=no ;;
853
854 -docdir | --docdir | --docdi | --doc | --do)
855 ac_prev=docdir ;;
856 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
857 docdir=$ac_optarg ;;
858
859 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
860 ac_prev=dvidir ;;
861 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
862 dvidir=$ac_optarg ;;
863
864 -enable-* | --enable-*)
865 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
866 # Reject names that are not valid shell variable names.
867 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
868 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
869 { (exit 1); exit 1; }; }
870 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
871 eval enable_$ac_feature=\$ac_optarg ;;
872
873 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
874 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
875 | --exec | --exe | --ex)
876 ac_prev=exec_prefix ;;
877 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
878 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
879 | --exec=* | --exe=* | --ex=*)
880 exec_prefix=$ac_optarg ;;
881
882 -gas | --gas | --ga | --g)
883 # Obsolete; use --with-gas.
884 with_gas=yes ;;
885
886 -help | --help | --hel | --he | -h)
887 ac_init_help=long ;;
888 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
889 ac_init_help=recursive ;;
890 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
891 ac_init_help=short ;;
892
893 -host | --host | --hos | --ho)
894 ac_prev=host_alias ;;
895 -host=* | --host=* | --hos=* | --ho=*)
896 host_alias=$ac_optarg ;;
897
898 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
899 ac_prev=htmldir ;;
900 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
901 | --ht=*)
902 htmldir=$ac_optarg ;;
903
904 -includedir | --includedir | --includedi | --included | --include \
905 | --includ | --inclu | --incl | --inc)
906 ac_prev=includedir ;;
907 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
908 | --includ=* | --inclu=* | --incl=* | --inc=*)
909 includedir=$ac_optarg ;;
910
911 -infodir | --infodir | --infodi | --infod | --info | --inf)
912 ac_prev=infodir ;;
913 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
914 infodir=$ac_optarg ;;
915
916 -libdir | --libdir | --libdi | --libd)
917 ac_prev=libdir ;;
918 -libdir=* | --libdir=* | --libdi=* | --libd=*)
919 libdir=$ac_optarg ;;
920
921 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
922 | --libexe | --libex | --libe)
923 ac_prev=libexecdir ;;
924 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
925 | --libexe=* | --libex=* | --libe=*)
926 libexecdir=$ac_optarg ;;
927
928 -localedir | --localedir | --localedi | --localed | --locale)
929 ac_prev=localedir ;;
930 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
931 localedir=$ac_optarg ;;
932
933 -localstatedir | --localstatedir | --localstatedi | --localstated \
934 | --localstate | --localstat | --localsta | --localst | --locals)
935 ac_prev=localstatedir ;;
936 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
937 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
938 localstatedir=$ac_optarg ;;
939
940 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
941 ac_prev=mandir ;;
942 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
943 mandir=$ac_optarg ;;
944
945 -nfp | --nfp | --nf)
946 # Obsolete; use --without-fp.
947 with_fp=no ;;
948
949 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
950 | --no-cr | --no-c | -n)
951 no_create=yes ;;
952
953 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
954 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
955 no_recursion=yes ;;
956
957 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
958 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
959 | --oldin | --oldi | --old | --ol | --o)
960 ac_prev=oldincludedir ;;
961 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
962 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
963 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
964 oldincludedir=$ac_optarg ;;
965
966 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
967 ac_prev=prefix ;;
968 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
969 prefix=$ac_optarg ;;
970
971 -program-prefix | --program-prefix | --program-prefi | --program-pref \
972 | --program-pre | --program-pr | --program-p)
973 ac_prev=program_prefix ;;
974 -program-prefix=* | --program-prefix=* | --program-prefi=* \
975 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
976 program_prefix=$ac_optarg ;;
977
978 -program-suffix | --program-suffix | --program-suffi | --program-suff \
979 | --program-suf | --program-su | --program-s)
980 ac_prev=program_suffix ;;
981 -program-suffix=* | --program-suffix=* | --program-suffi=* \
982 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
983 program_suffix=$ac_optarg ;;
984
985 -program-transform-name | --program-transform-name \
986 | --program-transform-nam | --program-transform-na \
987 | --program-transform-n | --program-transform- \
988 | --program-transform | --program-transfor \
989 | --program-transfo | --program-transf \
990 | --program-trans | --program-tran \
991 | --progr-tra | --program-tr | --program-t)
992 ac_prev=program_transform_name ;;
993 -program-transform-name=* | --program-transform-name=* \
994 | --program-transform-nam=* | --program-transform-na=* \
995 | --program-transform-n=* | --program-transform-=* \
996 | --program-transform=* | --program-transfor=* \
997 | --program-transfo=* | --program-transf=* \
998 | --program-trans=* | --program-tran=* \
999 | --progr-tra=* | --program-tr=* | --program-t=*)
1000 program_transform_name=$ac_optarg ;;
1001
1002 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1003 ac_prev=pdfdir ;;
1004 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1005 pdfdir=$ac_optarg ;;
1006
1007 -psdir | --psdir | --psdi | --psd | --ps)
1008 ac_prev=psdir ;;
1009 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1010 psdir=$ac_optarg ;;
1011
1012 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1013 | -silent | --silent | --silen | --sile | --sil)
1014 silent=yes ;;
1015
1016 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1017 ac_prev=sbindir ;;
1018 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1019 | --sbi=* | --sb=*)
1020 sbindir=$ac_optarg ;;
1021
1022 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1023 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1024 | --sharedst | --shareds | --shared | --share | --shar \
1025 | --sha | --sh)
1026 ac_prev=sharedstatedir ;;
1027 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1028 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1029 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1030 | --sha=* | --sh=*)
1031 sharedstatedir=$ac_optarg ;;
1032
1033 -site | --site | --sit)
1034 ac_prev=site ;;
1035 -site=* | --site=* | --sit=*)
1036 site=$ac_optarg ;;
1037
1038 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1039 ac_prev=srcdir ;;
1040 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1041 srcdir=$ac_optarg ;;
1042
1043 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1044 | --syscon | --sysco | --sysc | --sys | --sy)
1045 ac_prev=sysconfdir ;;
1046 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1047 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1048 sysconfdir=$ac_optarg ;;
1049
1050 -target | --target | --targe | --targ | --tar | --ta | --t)
1051 ac_prev=target_alias ;;
1052 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1053 target_alias=$ac_optarg ;;
1054
1055 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1056 verbose=yes ;;
1057
1058 -version | --version | --versio | --versi | --vers | -V)
1059 ac_init_version=: ;;
1060
1061 -with-* | --with-*)
1062 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1068 eval with_$ac_package=\$ac_optarg ;;
1069
1070 -without-* | --without-*)
1071 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1072 # Reject names that are not valid shell variable names.
1073 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1074 { echo "$as_me: error: invalid package name: $ac_package" >&2
1075 { (exit 1); exit 1; }; }
1076 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1077 eval with_$ac_package=no ;;
1078
1079 --x)
1080 # Obsolete; use --with-x.
1081 with_x=yes ;;
1082
1083 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1084 | --x-incl | --x-inc | --x-in | --x-i)
1085 ac_prev=x_includes ;;
1086 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1087 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1088 x_includes=$ac_optarg ;;
1089
1090 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1091 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1092 ac_prev=x_libraries ;;
1093 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1094 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1095 x_libraries=$ac_optarg ;;
1096
1097 -*) { echo "$as_me: error: unrecognized option: $ac_option
1098 Try \`$0 --help' for more information." >&2
1099 { (exit 1); exit 1; }; }
1100 ;;
1101
1102 *=*)
1103 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1104 # Reject names that are not valid shell variable names.
1105 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1106 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1107 { (exit 1); exit 1; }; }
1108 eval $ac_envvar=\$ac_optarg
1109 export $ac_envvar ;;
1110
1111 *)
1112 # FIXME: should be removed in autoconf 3.0.
1113 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1114 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1115 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1116 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1117 ;;
1118
1119 esac
1120 done
1121
1122 if test -n "$ac_prev"; then
1123 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1124 { echo "$as_me: error: missing argument to $ac_option" >&2
1125 { (exit 1); exit 1; }; }
1126 fi
1127
1128 # Be sure to have absolute directory names.
1129 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1130 datadir sysconfdir sharedstatedir localstatedir includedir \
1131 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1132 libdir localedir mandir
1133 do
1134 eval ac_val=\$$ac_var
1135 case $ac_val in
1136 [\\/$]* | ?:[\\/]* ) continue;;
1137 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1138 esac
1139 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1140 { (exit 1); exit 1; }; }
1141 done
1142
1143 # There might be people who depend on the old broken behavior: `$host'
1144 # used to hold the argument of --host etc.
1145 # FIXME: To remove some day.
1146 build=$build_alias
1147 host=$host_alias
1148 target=$target_alias
1149
1150 # FIXME: To remove some day.
1151 if test "x$host_alias" != x; then
1152 if test "x$build_alias" = x; then
1153 cross_compiling=maybe
1154 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1155 If a cross compiler is detected then cross compile mode will be used." >&2
1156 elif test "x$build_alias" != "x$host_alias"; then
1157 cross_compiling=yes
1158 fi
1159 fi
1160
1161 ac_tool_prefix=
1162 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1163
1164 test "$silent" = yes && exec 6>/dev/null
1165
1166
1167 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1168 ac_ls_di=`ls -di .` &&
1169 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1170 { echo "$as_me: error: Working directory cannot be determined" >&2
1171 { (exit 1); exit 1; }; }
1172 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1173 { echo "$as_me: error: pwd does not report name of working directory" >&2
1174 { (exit 1); exit 1; }; }
1175
1176
1177 # Find the source files, if location was not specified.
1178 if test -z "$srcdir"; then
1179 ac_srcdir_defaulted=yes
1180 # Try the directory containing this script, then the parent directory.
1181 ac_confdir=`$as_dirname -- "$0" ||
1182 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1183 X"$0" : 'X\(//\)[^/]' \| \
1184 X"$0" : 'X\(//\)$' \| \
1185 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1186 echo X"$0" |
1187 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1188 s//\1/
1189 q
1190 }
1191 /^X\(\/\/\)[^/].*/{
1192 s//\1/
1193 q
1194 }
1195 /^X\(\/\/\)$/{
1196 s//\1/
1197 q
1198 }
1199 /^X\(\/\).*/{
1200 s//\1/
1201 q
1202 }
1203 s/.*/./; q'`
1204 srcdir=$ac_confdir
1205 if test ! -r "$srcdir/$ac_unique_file"; then
1206 srcdir=..
1207 fi
1208 else
1209 ac_srcdir_defaulted=no
1210 fi
1211 if test ! -r "$srcdir/$ac_unique_file"; then
1212 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1213 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1214 { (exit 1); exit 1; }; }
1215 fi
1216 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1217 ac_abs_confdir=`(
1218 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1219 { (exit 1); exit 1; }; }
1220 pwd)`
1221 # When building in place, set srcdir=.
1222 if test "$ac_abs_confdir" = "$ac_pwd"; then
1223 srcdir=.
1224 fi
1225 # Remove unnecessary trailing slashes from srcdir.
1226 # Double slashes in file names in object file debugging info
1227 # mess up M-x gdb in Emacs.
1228 case $srcdir in
1229 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1230 esac
1231 for ac_var in $ac_precious_vars; do
1232 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_env_${ac_var}_value=\$${ac_var}
1234 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1235 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1236 done
1237
1238 #
1239 # Report the --help message.
1240 #
1241 if test "$ac_init_help" = "long"; then
1242 # Omit some internal or obsolete options to make the list less imposing.
1243 # This message is too long to be a string in the A/UX 3.1 sh.
1244 cat <<_ACEOF
1245 \`configure' configures this package to adapt to many kinds of systems.
1246
1247 Usage: $0 [OPTION]... [VAR=VALUE]...
1248
1249 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1250 VAR=VALUE. See below for descriptions of some of the useful variables.
1251
1252 Defaults for the options are specified in brackets.
1253
1254 Configuration:
1255 -h, --help display this help and exit
1256 --help=short display options specific to this package
1257 --help=recursive display the short help of all the included packages
1258 -V, --version display version information and exit
1259 -q, --quiet, --silent do not print \`checking...' messages
1260 --cache-file=FILE cache test results in FILE [disabled]
1261 -C, --config-cache alias for \`--cache-file=config.cache'
1262 -n, --no-create do not create output files
1263 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1264
1265 Installation directories:
1266 --prefix=PREFIX install architecture-independent files in PREFIX
1267 [$ac_default_prefix]
1268 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1269 [PREFIX]
1270
1271 By default, \`make install' will install all the files in
1272 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1273 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1274 for instance \`--prefix=\$HOME'.
1275
1276 For better control, use the options below.
1277
1278 Fine tuning of the installation directories:
1279 --bindir=DIR user executables [EPREFIX/bin]
1280 --sbindir=DIR system admin executables [EPREFIX/sbin]
1281 --libexecdir=DIR program executables [EPREFIX/libexec]
1282 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1283 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1284 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1285 --libdir=DIR object code libraries [EPREFIX/lib]
1286 --includedir=DIR C header files [PREFIX/include]
1287 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1288 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1289 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1290 --infodir=DIR info documentation [DATAROOTDIR/info]
1291 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1292 --mandir=DIR man documentation [DATAROOTDIR/man]
1293 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1294 --htmldir=DIR html documentation [DOCDIR]
1295 --dvidir=DIR dvi documentation [DOCDIR]
1296 --pdfdir=DIR pdf documentation [DOCDIR]
1297 --psdir=DIR ps documentation [DOCDIR]
1298 _ACEOF
1299
1300 cat <<\_ACEOF
1301
1302 Program names:
1303 --program-prefix=PREFIX prepend PREFIX to installed program names
1304 --program-suffix=SUFFIX append SUFFIX to installed program names
1305 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1306
1307 X features:
1308 --x-includes=DIR X include files are in DIR
1309 --x-libraries=DIR X library files are in DIR
1310
1311 System types:
1312 --build=BUILD configure for building on BUILD [guessed]
1313 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1314 _ACEOF
1315 fi
1316
1317 if test -n "$ac_init_help"; then
1318
1319 cat <<\_ACEOF
1320
1321 Optional Features:
1322 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1323 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1324 --enable-carbon-app[=DIR] [DIR=/Application]
1325 specify install directory for Emacs.app on Mac OS X
1326 --enable-font-backend compile code of font-backend support
1327 --enable-asserts compile code with asserts enabled
1328 --enable-maintainer-mode enable make rules and dependencies not useful
1329 (and sometimes confusing) to the casual installer
1330 --enable-locallisppath=PATH
1331 directories Emacs should search for lisp files
1332 specific to this site
1333 --disable-largefile omit support for large files
1334
1335 Optional Packages:
1336 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1337 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1338 --without-gcc don't use GCC to compile Emacs if GCC is found
1339 --without-pop don't support POP mail retrieval with movemail
1340 --with-kerberos support Kerberos-authenticated POP
1341 --with-kerberos5 support Kerberos version 5 authenticated POP
1342 --with-hesiod support Hesiod to get the POP server host
1343 --without-sound don't compile with sound support
1344 --with-x-toolkit=KIT use an X toolkit
1345 (KIT = yes/lucid/athena/motif/gtk/no)
1346 --with-xpm use -lXpm for displaying XPM images
1347 --with-jpeg use -ljpeg for displaying JPEG images
1348 --with-tiff use -ltiff for displaying TIFF images
1349 --with-gif use -lungif for displaying GIF images
1350 --with-png use -lpng for displaying PNG images
1351 --with-freetype use -lfreetype for local fonts support
1352 --with-xft use -lXft for anti aliased fonts
1353 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1354 --with-pkg-config-prog Path to pkg-config to use for finding GTK
1355 --without-toolkit-scroll-bars
1356 don't use Motif or Xaw3d scroll bars
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --with-x use the X Window System
1360
1361 Some influential environment variables:
1362 CC C compiler command
1363 CFLAGS C compiler flags
1364 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1365 nonstandard directory <lib dir>
1366 LIBS libraries to pass to the linker, e.g. -l<library>
1367 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1368 you have headers in a nonstandard directory <include dir>
1369 CPP C preprocessor
1370 XMKMF Path to xmkmf, Makefile generator for X Window System
1371
1372 Use these variables to override the choices made by `configure' or to help
1373 it to find libraries and programs with nonstandard names/locations.
1374
1375 _ACEOF
1376 ac_status=$?
1377 fi
1378
1379 if test "$ac_init_help" = "recursive"; then
1380 # If there are subdirs, report their specific --help.
1381 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1382 test -d "$ac_dir" || continue
1383 ac_builddir=.
1384
1385 case "$ac_dir" in
1386 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1387 *)
1388 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1389 # A ".." for each directory in $ac_dir_suffix.
1390 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1391 case $ac_top_builddir_sub in
1392 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1393 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1394 esac ;;
1395 esac
1396 ac_abs_top_builddir=$ac_pwd
1397 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1398 # for backward compatibility:
1399 ac_top_builddir=$ac_top_build_prefix
1400
1401 case $srcdir in
1402 .) # We are building in place.
1403 ac_srcdir=.
1404 ac_top_srcdir=$ac_top_builddir_sub
1405 ac_abs_top_srcdir=$ac_pwd ;;
1406 [\\/]* | ?:[\\/]* ) # Absolute name.
1407 ac_srcdir=$srcdir$ac_dir_suffix;
1408 ac_top_srcdir=$srcdir
1409 ac_abs_top_srcdir=$srcdir ;;
1410 *) # Relative name.
1411 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1412 ac_top_srcdir=$ac_top_build_prefix$srcdir
1413 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1414 esac
1415 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1416
1417 cd "$ac_dir" || { ac_status=$?; continue; }
1418 # Check for guested configure.
1419 if test -f "$ac_srcdir/configure.gnu"; then
1420 echo &&
1421 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1422 elif test -f "$ac_srcdir/configure"; then
1423 echo &&
1424 $SHELL "$ac_srcdir/configure" --help=recursive
1425 else
1426 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1427 fi || ac_status=$?
1428 cd "$ac_pwd" || { ac_status=$?; break; }
1429 done
1430 fi
1431
1432 test -n "$ac_init_help" && exit $ac_status
1433 if $ac_init_version; then
1434 cat <<\_ACEOF
1435 configure
1436 generated by GNU Autoconf 2.61
1437
1438 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1439 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1440 This configure script is free software; the Free Software Foundation
1441 gives unlimited permission to copy, distribute and modify it.
1442 _ACEOF
1443 exit
1444 fi
1445 cat >config.log <<_ACEOF
1446 This file contains any messages produced by compilers while
1447 running configure, to aid debugging if configure makes a mistake.
1448
1449 It was created by $as_me, which was
1450 generated by GNU Autoconf 2.61. Invocation command line was
1451
1452 $ $0 $@
1453
1454 _ACEOF
1455 exec 5>>config.log
1456 {
1457 cat <<_ASUNAME
1458 ## --------- ##
1459 ## Platform. ##
1460 ## --------- ##
1461
1462 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1463 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1464 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1465 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1466 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1467
1468 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1469 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1470
1471 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1472 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1473 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1474 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1475 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1476 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1477 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1478
1479 _ASUNAME
1480
1481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1482 for as_dir in $PATH
1483 do
1484 IFS=$as_save_IFS
1485 test -z "$as_dir" && as_dir=.
1486 echo "PATH: $as_dir"
1487 done
1488 IFS=$as_save_IFS
1489
1490 } >&5
1491
1492 cat >&5 <<_ACEOF
1493
1494
1495 ## ----------- ##
1496 ## Core tests. ##
1497 ## ----------- ##
1498
1499 _ACEOF
1500
1501
1502 # Keep a trace of the command line.
1503 # Strip out --no-create and --no-recursion so they do not pile up.
1504 # Strip out --silent because we don't want to record it for future runs.
1505 # Also quote any args containing shell meta-characters.
1506 # Make two passes to allow for proper duplicate-argument suppression.
1507 ac_configure_args=
1508 ac_configure_args0=
1509 ac_configure_args1=
1510 ac_must_keep_next=false
1511 for ac_pass in 1 2
1512 do
1513 for ac_arg
1514 do
1515 case $ac_arg in
1516 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1517 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1518 | -silent | --silent | --silen | --sile | --sil)
1519 continue ;;
1520 *\'*)
1521 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1522 esac
1523 case $ac_pass in
1524 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1525 2)
1526 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1527 if test $ac_must_keep_next = true; then
1528 ac_must_keep_next=false # Got value, back to normal.
1529 else
1530 case $ac_arg in
1531 *=* | --config-cache | -C | -disable-* | --disable-* \
1532 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1533 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1534 | -with-* | --with-* | -without-* | --without-* | --x)
1535 case "$ac_configure_args0 " in
1536 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1537 esac
1538 ;;
1539 -* ) ac_must_keep_next=true ;;
1540 esac
1541 fi
1542 ac_configure_args="$ac_configure_args '$ac_arg'"
1543 ;;
1544 esac
1545 done
1546 done
1547 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1548 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1549
1550 # When interrupted or exit'd, cleanup temporary files, and complete
1551 # config.log. We remove comments because anyway the quotes in there
1552 # would cause problems or look ugly.
1553 # WARNING: Use '\'' to represent an apostrophe within the trap.
1554 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1555 trap 'exit_status=$?
1556 # Save into config.log some information that might help in debugging.
1557 {
1558 echo
1559
1560 cat <<\_ASBOX
1561 ## ---------------- ##
1562 ## Cache variables. ##
1563 ## ---------------- ##
1564 _ASBOX
1565 echo
1566 # The following way of writing the cache mishandles newlines in values,
1567 (
1568 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1569 eval ac_val=\$$ac_var
1570 case $ac_val in #(
1571 *${as_nl}*)
1572 case $ac_var in #(
1573 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1574 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1575 esac
1576 case $ac_var in #(
1577 _ | IFS | as_nl) ;; #(
1578 *) $as_unset $ac_var ;;
1579 esac ;;
1580 esac
1581 done
1582 (set) 2>&1 |
1583 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1584 *${as_nl}ac_space=\ *)
1585 sed -n \
1586 "s/'\''/'\''\\\\'\'''\''/g;
1587 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1588 ;; #(
1589 *)
1590 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1591 ;;
1592 esac |
1593 sort
1594 )
1595 echo
1596
1597 cat <<\_ASBOX
1598 ## ----------------- ##
1599 ## Output variables. ##
1600 ## ----------------- ##
1601 _ASBOX
1602 echo
1603 for ac_var in $ac_subst_vars
1604 do
1605 eval ac_val=\$$ac_var
1606 case $ac_val in
1607 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1608 esac
1609 echo "$ac_var='\''$ac_val'\''"
1610 done | sort
1611 echo
1612
1613 if test -n "$ac_subst_files"; then
1614 cat <<\_ASBOX
1615 ## ------------------- ##
1616 ## File substitutions. ##
1617 ## ------------------- ##
1618 _ASBOX
1619 echo
1620 for ac_var in $ac_subst_files
1621 do
1622 eval ac_val=\$$ac_var
1623 case $ac_val in
1624 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1625 esac
1626 echo "$ac_var='\''$ac_val'\''"
1627 done | sort
1628 echo
1629 fi
1630
1631 if test -s confdefs.h; then
1632 cat <<\_ASBOX
1633 ## ----------- ##
1634 ## confdefs.h. ##
1635 ## ----------- ##
1636 _ASBOX
1637 echo
1638 cat confdefs.h
1639 echo
1640 fi
1641 test "$ac_signal" != 0 &&
1642 echo "$as_me: caught signal $ac_signal"
1643 echo "$as_me: exit $exit_status"
1644 } >&5
1645 rm -f core *.core core.conftest.* &&
1646 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1647 exit $exit_status
1648 ' 0
1649 for ac_signal in 1 2 13 15; do
1650 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1651 done
1652 ac_signal=0
1653
1654 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1655 rm -f -r conftest* confdefs.h
1656
1657 # Predefined preprocessor variables.
1658
1659 cat >>confdefs.h <<_ACEOF
1660 #define PACKAGE_NAME "$PACKAGE_NAME"
1661 _ACEOF
1662
1663
1664 cat >>confdefs.h <<_ACEOF
1665 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1666 _ACEOF
1667
1668
1669 cat >>confdefs.h <<_ACEOF
1670 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1671 _ACEOF
1672
1673
1674 cat >>confdefs.h <<_ACEOF
1675 #define PACKAGE_STRING "$PACKAGE_STRING"
1676 _ACEOF
1677
1678
1679 cat >>confdefs.h <<_ACEOF
1680 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1681 _ACEOF
1682
1683
1684 # Let the site file select an alternate cache file if it wants to.
1685 # Prefer explicitly selected file to automatically selected ones.
1686 if test -n "$CONFIG_SITE"; then
1687 set x "$CONFIG_SITE"
1688 elif test "x$prefix" != xNONE; then
1689 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1690 else
1691 set x "$ac_default_prefix/share/config.site" \
1692 "$ac_default_prefix/etc/config.site"
1693 fi
1694 shift
1695 for ac_site_file
1696 do
1697 if test -r "$ac_site_file"; then
1698 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1699 echo "$as_me: loading site script $ac_site_file" >&6;}
1700 sed 's/^/| /' "$ac_site_file" >&5
1701 . "$ac_site_file"
1702 fi
1703 done
1704
1705 if test -r "$cache_file"; then
1706 # Some versions of bash will fail to source /dev/null (special
1707 # files actually), so we avoid doing that.
1708 if test -f "$cache_file"; then
1709 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1710 echo "$as_me: loading cache $cache_file" >&6;}
1711 case $cache_file in
1712 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1713 *) . "./$cache_file";;
1714 esac
1715 fi
1716 else
1717 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1718 echo "$as_me: creating cache $cache_file" >&6;}
1719 >$cache_file
1720 fi
1721
1722 ac_header_list="$ac_header_list sys/time.h"
1723 ac_header_list="$ac_header_list unistd.h"
1724 ac_func_list="$ac_func_list alarm"
1725 # Check that the precious variables saved in the cache have kept the same
1726 # value.
1727 ac_cache_corrupted=false
1728 for ac_var in $ac_precious_vars; do
1729 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1730 eval ac_new_set=\$ac_env_${ac_var}_set
1731 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1732 eval ac_new_val=\$ac_env_${ac_var}_value
1733 case $ac_old_set,$ac_new_set in
1734 set,)
1735 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1736 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1737 ac_cache_corrupted=: ;;
1738 ,set)
1739 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1740 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1741 ac_cache_corrupted=: ;;
1742 ,);;
1743 *)
1744 if test "x$ac_old_val" != "x$ac_new_val"; then
1745 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1746 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1747 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1748 echo "$as_me: former value: $ac_old_val" >&2;}
1749 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1750 echo "$as_me: current value: $ac_new_val" >&2;}
1751 ac_cache_corrupted=:
1752 fi;;
1753 esac
1754 # Pass precious variables to config.status.
1755 if test "$ac_new_set" = set; then
1756 case $ac_new_val in
1757 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1758 *) ac_arg=$ac_var=$ac_new_val ;;
1759 esac
1760 case " $ac_configure_args " in
1761 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1762 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1763 esac
1764 fi
1765 done
1766 if $ac_cache_corrupted; then
1767 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1768 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1769 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1770 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1771 { (exit 1); exit 1; }; }
1772 fi
1773
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790 ac_ext=c
1791 ac_cpp='$CPP $CPPFLAGS'
1792 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1793 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1794 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1795
1796
1797 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1798
1799
1800 test "$program_prefix" != NONE &&
1801 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1802 # Use a double $ so make ignores it.
1803 test "$program_suffix" != NONE &&
1804 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1805 # Double any \ or $. echo might interpret backslashes.
1806 # By default was `s,x,x', remove it if useless.
1807 cat <<\_ACEOF >conftest.sed
1808 s/[\\$]/&&/g;s/;s,x,x,$//
1809 _ACEOF
1810 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1811 rm -f conftest.sed
1812
1813
1814 lispdir='${datadir}/emacs/${version}/lisp'
1815 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1816 '${datadir}/emacs/site-lisp'
1817 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1818 etcdir='${datadir}/emacs/${version}/etc'
1819 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1820 docdir='${datadir}/emacs/${version}/etc'
1821 gamedir='${localstatedir}/games/emacs'
1822
1823 gameuser=games
1824
1825
1826 # Check whether --with-gcc was given.
1827 if test "${with_gcc+set}" = set; then
1828 withval=$with_gcc;
1829 fi
1830
1831
1832 # Check whether --with-pop was given.
1833 if test "${with_pop+set}" = set; then
1834 withval=$with_pop; if test "$withval" = yes; then
1835 cat >>confdefs.h <<\_ACEOF
1836 #define MAIL_USE_POP 1
1837 _ACEOF
1838
1839 else :
1840 fi
1841 else
1842 cat >>confdefs.h <<\_ACEOF
1843 #define MAIL_USE_POP 1
1844 _ACEOF
1845
1846 fi
1847
1848
1849
1850 # Check whether --with-kerberos was given.
1851 if test "${with_kerberos+set}" = set; then
1852 withval=$with_kerberos; if test "$withval" = yes; then
1853 cat >>confdefs.h <<\_ACEOF
1854 #define KERBEROS 1
1855 _ACEOF
1856
1857 fi
1858 fi
1859
1860
1861
1862 # Check whether --with-kerberos5 was given.
1863 if test "${with_kerberos5+set}" = set; then
1864 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1865 if test "${with_kerberos+set}" != set; then
1866 with_kerberos=yes
1867 cat >>confdefs.h <<\_ACEOF
1868 #define KERBEROS 1
1869 _ACEOF
1870
1871 fi
1872
1873 cat >>confdefs.h <<\_ACEOF
1874 #define KERBEROS5 1
1875 _ACEOF
1876
1877 fi
1878 fi
1879
1880
1881 # Check whether --with-hesiod was given.
1882 if test "${with_hesiod+set}" = set; then
1883 withval=$with_hesiod; if test "$withval" = yes; then
1884
1885 cat >>confdefs.h <<\_ACEOF
1886 #define HESIOD 1
1887 _ACEOF
1888
1889 fi
1890 fi
1891
1892
1893
1894 # Check whether --with-sound was given.
1895 if test "${with_sound+set}" = set; then
1896 withval=$with_sound;
1897 fi
1898
1899
1900
1901 # Check whether --with-x-toolkit was given.
1902 if test "${with_x_toolkit+set}" = set; then
1903 withval=$with_x_toolkit; case "${withval}" in
1904 y | ye | yes ) val=athena ;;
1905 n | no ) val=no ;;
1906 l | lu | luc | luci | lucid ) val=lucid ;;
1907 a | at | ath | athe | athen | athena ) val=athena ;;
1908 m | mo | mot | moti | motif ) val=motif ;;
1909 g | gt | gtk ) val=gtk ;;
1910 * )
1911 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid\;
1912 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1913 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&5
1914 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid\;
1915 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1916 Currently, \`yes', \`athena' and \`lucid' are synonyms." >&2;}
1917 { (exit 1); exit 1; }; }
1918 ;;
1919 esac
1920 with_x_toolkit=$val
1921
1922 fi
1923
1924
1925 # Check whether --with-xpm was given.
1926 if test "${with_xpm+set}" = set; then
1927 withval=$with_xpm;
1928 fi
1929
1930
1931 # Check whether --with-jpeg was given.
1932 if test "${with_jpeg+set}" = set; then
1933 withval=$with_jpeg;
1934 fi
1935
1936
1937 # Check whether --with-tiff was given.
1938 if test "${with_tiff+set}" = set; then
1939 withval=$with_tiff;
1940 fi
1941
1942
1943 # Check whether --with-gif was given.
1944 if test "${with_gif+set}" = set; then
1945 withval=$with_gif;
1946 fi
1947
1948
1949 # Check whether --with-png was given.
1950 if test "${with_png+set}" = set; then
1951 withval=$with_png;
1952 fi
1953
1954
1955 # Check whether --with-freetype was given.
1956 if test "${with_freetype+set}" = set; then
1957 withval=$with_freetype;
1958 fi
1959
1960
1961 # Check whether --with-xft was given.
1962 if test "${with_xft+set}" = set; then
1963 withval=$with_xft;
1964 fi
1965
1966
1967 # Check whether --with-gtk was given.
1968 if test "${with_gtk+set}" = set; then
1969 withval=$with_gtk;
1970 fi
1971
1972
1973 # Check whether --with-pkg-config-prog was given.
1974 if test "${with_pkg_config_prog+set}" = set; then
1975 withval=$with_pkg_config_prog;
1976 fi
1977
1978
1979 # Check whether --with-toolkit-scroll-bars was given.
1980 if test "${with_toolkit_scroll_bars+set}" = set; then
1981 withval=$with_toolkit_scroll_bars;
1982 fi
1983
1984
1985 # Check whether --with-xim was given.
1986 if test "${with_xim+set}" = set; then
1987 withval=$with_xim;
1988 fi
1989
1990
1991 # Check whether --with-carbon was given.
1992 if test "${with_carbon+set}" = set; then
1993 withval=$with_carbon;
1994 fi
1995
1996 # Check whether --enable-carbon-app was given.
1997 if test "${enable_carbon_app+set}" = set; then
1998 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
1999 fi
2000
2001
2002 # Check whether --enable-font-backend was given.
2003 if test "${enable_font_backend+set}" = set; then
2004 enableval=$enable_font_backend; USE_FONT_BACKEND=$enableval
2005 else
2006 USE_FONT_BACKEND=no
2007 fi
2008
2009
2010 # Check whether --enable-asserts was given.
2011 if test "${enable_asserts+set}" = set; then
2012 enableval=$enable_asserts; USE_XASSERTS=$enableval
2013 else
2014 USE_XASSERTS=no
2015 fi
2016
2017
2018 # Check whether --enable-maintainer-mode was given.
2019 if test "${enable_maintainer_mode+set}" = set; then
2020 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2021 else
2022 USE_MAINTAINER_MODE=no
2023 fi
2024
2025 if test $USE_MAINTAINER_MODE = yes; then
2026 MAINT=
2027 else
2028 MAINT=#
2029 fi
2030
2031
2032 # Check whether --enable-locallisppath was given.
2033 if test "${enable_locallisppath+set}" = set; then
2034 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2035 locallisppath=
2036 elif test "${enableval}" != "yes"; then
2037 locallisppath=${enableval}
2038 fi
2039 fi
2040
2041
2042 #### Make srcdir absolute, if it isn't already. It's important to
2043 #### avoid running the path through pwd unnecessarily, since pwd can
2044 #### give you automounter prefixes, which can go away. We do all this
2045 #### so Emacs can find its files when run uninstalled.
2046 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2047 unset CDPATH
2048 case "${srcdir}" in
2049 /* ) ;;
2050 . )
2051 ## We may be able to use the $PWD environment variable to make this
2052 ## absolute. But sometimes PWD is inaccurate.
2053 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2054 ## but that tested only for a well-formed and valid PWD,
2055 ## it did not object when PWD was well-formed and valid but just wrong.
2056 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2057 then
2058 srcdir="$PWD"
2059 else
2060 srcdir="`(cd ${srcdir}; pwd)`"
2061 fi
2062 ;;
2063 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2064 esac
2065
2066 #### Check if the source directory already has a configured system in it.
2067 if test `pwd` != `(cd ${srcdir} && pwd)` \
2068 && test -f "${srcdir}/src/config.h" ; then
2069 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2070 as a build directory right now; it has been configured in its own
2071 right. To configure in another directory as well, you MUST
2072 use GNU make. If you do not have GNU make, then you must
2073 now do \`make distclean' in ${srcdir},
2074 and then run $0 again." >&5
2075 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2076 as a build directory right now; it has been configured in its own
2077 right. To configure in another directory as well, you MUST
2078 use GNU make. If you do not have GNU make, then you must
2079 now do \`make distclean' in ${srcdir},
2080 and then run $0 again." >&2;}
2081 fi
2082
2083 #### Given the configuration name, set machfile and opsysfile to the
2084 #### names of the m/*.h and s/*.h files we should use.
2085
2086 ### Canonicalize the configuration name.
2087
2088 ac_aux_dir=
2089 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2090 if test -f "$ac_dir/install-sh"; then
2091 ac_aux_dir=$ac_dir
2092 ac_install_sh="$ac_aux_dir/install-sh -c"
2093 break
2094 elif test -f "$ac_dir/install.sh"; then
2095 ac_aux_dir=$ac_dir
2096 ac_install_sh="$ac_aux_dir/install.sh -c"
2097 break
2098 elif test -f "$ac_dir/shtool"; then
2099 ac_aux_dir=$ac_dir
2100 ac_install_sh="$ac_aux_dir/shtool install -c"
2101 break
2102 fi
2103 done
2104 if test -z "$ac_aux_dir"; then
2105 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2106 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2107 { (exit 1); exit 1; }; }
2108 fi
2109
2110 # These three variables are undocumented and unsupported,
2111 # and are intended to be withdrawn in a future Autoconf release.
2112 # They can cause serious problems if a builder's source tree is in a directory
2113 # whose full name contains unusual characters.
2114 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2115 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2116 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2117
2118
2119 # Make sure we can run config.sub.
2120 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2121 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2122 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2123 { (exit 1); exit 1; }; }
2124
2125 { echo "$as_me:$LINENO: checking build system type" >&5
2126 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2127 if test "${ac_cv_build+set}" = set; then
2128 echo $ECHO_N "(cached) $ECHO_C" >&6
2129 else
2130 ac_build_alias=$build_alias
2131 test "x$ac_build_alias" = x &&
2132 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2133 test "x$ac_build_alias" = x &&
2134 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2135 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2136 { (exit 1); exit 1; }; }
2137 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2138 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2139 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2140 { (exit 1); exit 1; }; }
2141
2142 fi
2143 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2144 echo "${ECHO_T}$ac_cv_build" >&6; }
2145 case $ac_cv_build in
2146 *-*-*) ;;
2147 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2148 echo "$as_me: error: invalid value of canonical build" >&2;}
2149 { (exit 1); exit 1; }; };;
2150 esac
2151 build=$ac_cv_build
2152 ac_save_IFS=$IFS; IFS='-'
2153 set x $ac_cv_build
2154 shift
2155 build_cpu=$1
2156 build_vendor=$2
2157 shift; shift
2158 # Remember, the first character of IFS is used to create $*,
2159 # except with old shells:
2160 build_os=$*
2161 IFS=$ac_save_IFS
2162 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2163
2164
2165 { echo "$as_me:$LINENO: checking host system type" >&5
2166 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2167 if test "${ac_cv_host+set}" = set; then
2168 echo $ECHO_N "(cached) $ECHO_C" >&6
2169 else
2170 if test "x$host_alias" = x; then
2171 ac_cv_host=$ac_cv_build
2172 else
2173 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2174 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2175 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2176 { (exit 1); exit 1; }; }
2177 fi
2178
2179 fi
2180 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2181 echo "${ECHO_T}$ac_cv_host" >&6; }
2182 case $ac_cv_host in
2183 *-*-*) ;;
2184 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2185 echo "$as_me: error: invalid value of canonical host" >&2;}
2186 { (exit 1); exit 1; }; };;
2187 esac
2188 host=$ac_cv_host
2189 ac_save_IFS=$IFS; IFS='-'
2190 set x $ac_cv_host
2191 shift
2192 host_cpu=$1
2193 host_vendor=$2
2194 shift; shift
2195 # Remember, the first character of IFS is used to create $*,
2196 # except with old shells:
2197 host_os=$*
2198 IFS=$ac_save_IFS
2199 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2200
2201
2202 canonical=$host
2203 configuration=${host_alias-$host}
2204
2205
2206
2207 ### If you add support for a new configuration, add code to this
2208 ### switch statement to recognize your configuration name and select
2209 ### the appropriate operating system and machine description files.
2210
2211 ### You would hope that you could choose an m/*.h file pretty much
2212 ### based on the machine portion of the configuration name, and an s-
2213 ### file based on the operating system portion. However, it turns out
2214 ### that each m/*.h file is pretty manufacturer-specific - for
2215 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2216 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2217 ### machines. So we basically have to have a special case for each
2218 ### configuration name.
2219 ###
2220 ### As far as handling version numbers on operating systems is
2221 ### concerned, make sure things will fail in a fixable way. If
2222 ### /etc/MACHINES doesn't say anything about version numbers, be
2223 ### prepared to handle anything reasonably. If version numbers
2224 ### matter, be sure /etc/MACHINES says something about it.
2225 ###
2226 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2227 ### "System V Release 4"; he writes, "The old convention encouraged
2228 ### confusion between `system' and `release' levels'."
2229
2230 machine='' opsys='' unported=no
2231 case "${canonical}" in
2232
2233 ## FreeBSD ports
2234 *-*-freebsd* )
2235 opsys=freebsd
2236 case "${canonical}" in
2237 alpha*-*-freebsd*) machine=alpha ;;
2238 ia64-*-freebsd*) machine=ia64 ;;
2239 sparc64-*-freebsd*) machine=sparc ;;
2240 powerpc-*-freebsd*) machine=macppc ;;
2241 i[3456]86-*-freebsd*) machine=intel386 ;;
2242 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2243 esac
2244 ;;
2245
2246 ## NetBSD ports
2247 *-*-netbsd* )
2248 opsys=netbsd
2249 if test -f /usr/lib/crti.o; then
2250
2251 cat >>confdefs.h <<\_ACEOF
2252 #define HAVE_CRTIN
2253 _ACEOF
2254
2255 fi
2256
2257 case "${canonical}" in
2258 alpha*-*-netbsd*) machine=alpha ;;
2259 i[3456]86-*-netbsd*) machine=intel386 ;;
2260 m68k-*-netbsd*)
2261 # This is somewhat bogus.
2262 machine=hp9000s300 ;;
2263 mips-*-netbsd*) machine=pmax ;;
2264 mipsel-*-netbsd*) machine=pmax ;;
2265 mipseb-*-netbsd*) machine=pmax ;;
2266 ns32k-*-netbsd*) machine=ns32000 ;;
2267 powerpc-*-netbsd*) machine=macppc ;;
2268 sparc*-*-netbsd*) machine=sparc ;;
2269 vax-*-netbsd*) machine=vax ;;
2270 arm-*-netbsd*) machine=arm ;;
2271 x86_64-*-netbsd*) machine=amdx86-64 ;;
2272 hppa-*-netbsd*) machine=hp800 ;;
2273 shle-*-netbsd*) machine=sh3el ;;
2274 esac
2275 ;;
2276
2277 ## OpenBSD ports
2278 *-*-openbsd* )
2279 opsys=openbsd
2280 case "${canonical}" in
2281 alpha*-*-openbsd*) machine=alpha ;;
2282 arm-*-openbsd*) machine=arm ;;
2283 hppa-*-openbsd*) machine=hp9000s300 ;;
2284 i386-*-openbsd*) machine=intel386 ;;
2285 m68k-*-openbsd*) machine=hp9000s300 ;;
2286 m88k-*-openbsd*) machine=aviion ;;
2287 mips64-*-openbsd*) machine=mips64 ;;
2288 powerpc-*-openbsd*) machine=macppc ;;
2289 sh-*-openbsd*) machine=sh3el ;;
2290 sparc*-*-openbsd*) machine=sparc ;;
2291 vax-*-openbsd*) machine=vax ;;
2292 x86_64-*-openbsd*) machine=amdx86-64 ;;
2293 esac
2294 ;;
2295
2296 ## LynxOS ports
2297 *-*-lynxos* )
2298 opsys=lynxos
2299 case "${canonical}" in
2300 i[3456]86-*-lynxos*) machine=intel386 ;;
2301 powerpc-*-lynxos*) machine=powerpc ;;
2302 esac
2303 ;;
2304
2305 ## Acorn RISCiX:
2306 arm-acorn-riscix1.1* )
2307 machine=acorn opsys=riscix1-1
2308 ;;
2309 arm-acorn-riscix1.2* | arm-acorn-riscix )
2310 ## This name is riscix12 instead of riscix1.2
2311 ## to avoid a file name conflict on MSDOS.
2312 machine=acorn opsys=riscix12
2313 ;;
2314
2315 ## BSDI ports
2316 *-*-bsdi* )
2317 opsys=bsdi
2318 case "${canonical}" in
2319 i[345]86-*-bsdi*) machine=intel386 ;;
2320 sparc-*-bsdi*) machine=sparc ;;
2321 powerpc-*-bsdi*) machine=macppc ;;
2322 esac
2323 case "${canonical}" in
2324 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2325 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2326 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2327 *-*-bsdi3* ) opsys=bsdos3 ;;
2328 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2329 esac
2330 ;;
2331
2332 ## Alliant machines
2333 ## Strictly speaking, we need the version of the alliant operating
2334 ## system to choose the right machine file, but currently the
2335 ## configuration name doesn't tell us enough to choose the right
2336 ## one; we need to give alliants their own operating system name to
2337 ## do this right. When someone cares, they can help us.
2338 fx80-alliant-* )
2339 machine=alliant4 opsys=bsd4-2
2340 ;;
2341 i860-alliant-* )
2342 machine=alliant-2800 opsys=bsd4-3
2343 ;;
2344
2345 ## Alpha (DEC) machines.
2346 alpha*-dec-osf* )
2347 machine=alpha opsys=osf1
2348 # This is needed to find X11R6.1 libraries for certain tests.
2349 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2350 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2351 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2352 # due to non-traditional preprocessing with the current compiler
2353 # defaults. OSF 4 can also have that compiler version, and there
2354 # seems always to have been a usable /usr/bin/cpp.
2355 NON_GNU_CPP=/usr/bin/cpp
2356 case "${canonical}" in
2357 alpha*-dec-osf[5-9]*)
2358 opsys=osf5-0 ;;
2359 esac
2360 ;;
2361
2362 alpha*-*-linux-gnu* )
2363 machine=alpha opsys=gnu-linux
2364 ;;
2365
2366 arm*-*-linux-gnu* )
2367 machine=arm opsys=gnu-linux
2368 ;;
2369
2370 ## Altos 3068
2371 m68*-altos-sysv* )
2372 machine=altos opsys=usg5-2
2373 ;;
2374
2375 ## Amdahl UTS
2376 580-amdahl-sysv* )
2377 machine=amdahl opsys=usg5-2-2
2378 ;;
2379
2380 ## Apollo, Domain/OS
2381 m68*-apollo-* )
2382 machine=apollo opsys=bsd4-3
2383 ;;
2384
2385 ## Apple Darwin / Mac OS X
2386 *-apple-darwin* )
2387 case "${canonical}" in
2388 i[3456]86-* ) machine=intel386 ;;
2389 powerpc-* ) machine=powermac ;;
2390 * ) unported=yes ;;
2391 esac
2392 opsys=darwin
2393 # Define CPP as follows to make autoconf work correctly.
2394 CPP="${CC-cc} -E -no-cpp-precomp"
2395 # Use fink packages if available.
2396 if test -d /sw/include && test -d /sw/lib; then
2397 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2398 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2399 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2400 fi
2401 ;;
2402
2403 ## AT&T 3b2, 3b5, 3b15, 3b20
2404 we32k-att-sysv* )
2405 machine=att3b opsys=usg5-2-2
2406 ;;
2407
2408 ## AT&T 3b1 - The Mighty Unix PC!
2409 m68*-att-sysv* )
2410 machine=7300 opsys=usg5-2-2
2411 ;;
2412
2413 ## Bull dpx20
2414 rs6000-bull-bosx* )
2415 machine=ibmrs6000 opsys=aix3-2
2416 ;;
2417
2418 ## Bull dpx2
2419 m68*-bull-sysv3* )
2420 machine=dpx2 opsys=usg5-3
2421 ;;
2422
2423 ## Bull sps7
2424 m68*-bull-sysv2* )
2425 machine=sps7 opsys=usg5-2
2426 ;;
2427
2428 ## CCI 5/32, 6/32 -- see "Tahoe".
2429
2430 ## Celerity
2431 ## I don't know what configuration name to use for this; config.sub
2432 ## doesn't seem to know anything about it. Hey, Celerity users, get
2433 ## in touch with us!
2434 celerity-celerity-bsd* )
2435 machine=celerity opsys=bsd4-2
2436 ;;
2437
2438 ## Clipper
2439 ## What operating systems does this chip run that Emacs has been
2440 ## tested on?
2441 clipper-* )
2442 machine=clipper
2443 ## We'll use the catch-all code at the bottom to guess the
2444 ## operating system.
2445 ;;
2446
2447 ## Compaq Nonstop
2448 mips-compaq-nonstopux* )
2449 machine=nonstopux opsys=nonstopux
2450 ;;
2451
2452 ## Convex
2453 *-convex-bsd* | *-convex-convexos* )
2454 machine=convex opsys=bsd4-3
2455 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2456 NON_GNU_CPP="cc -E -P"
2457 ;;
2458
2459 ## Cubix QBx/386
2460 i[3456]86-cubix-sysv* )
2461 machine=intel386 opsys=usg5-3
2462 ;;
2463
2464 ## Cydra 5
2465 cydra*-cydrome-sysv* )
2466 machine=cydra5 opsys=usg5-3
2467 ;;
2468
2469 ## Data General AViiON Machines
2470 ## DG changed naming conventions with the release of 5.4.4.10, they
2471 ## dropped the initial 5.4 but left the intervening R. Because of the
2472 ## R this shouldn't conflict with older versions of the OS (which I
2473 ## think were named like dgux4.*). In addition, DG new AViiONs series
2474 ## uses either Motorola M88k or Intel Pentium CPUs.
2475 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2476 machine=aviion opsys=dgux4
2477 ;;
2478 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2479 ## This name is dgux5-4-3 instead of dgux5-4r3
2480 ## to avoid a file name conflict on MSDOS.
2481 machine=aviion opsys=dgux5-4-3
2482 ;;
2483 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2484 machine=aviion opsys=dgux5-4r2
2485 ;;
2486 m88k-dg-dgux* )
2487 machine=aviion opsys=dgux
2488 ;;
2489
2490 ## Data General AViiON Intel (x86) Machines
2491 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2492 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2493 i[345]86-dg-dguxR4* )
2494 machine=aviion-intel opsys=dgux4
2495 ;;
2496
2497 ## DECstations
2498 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2499 machine=pmax opsys=bsd4-2
2500 ;;
2501 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2502 machine=pmax opsys=bsd4-3
2503 ;;
2504 mips-dec-ultrix* )
2505 machine=pmax opsys=ultrix4-3
2506 ;;
2507 mips-dec-osf* )
2508 machine=pmax opsys=osf1
2509 ;;
2510 mips-dec-mach_bsd4.3* )
2511 machine=pmax opsys=mach-bsd4-3
2512 ;;
2513
2514 ## Motorola Delta machines
2515 m68k-motorola-sysv* | m68000-motorola-sysv* )
2516 machine=delta opsys=usg5-3
2517 if test -z "`type gnucc | grep 'not found'`"
2518 then
2519 if test -s /etc/167config
2520 then CC="gnucc -m68040"
2521 else CC="gnucc -m68881"
2522 fi
2523 else
2524 if test -z "`type gcc | grep 'not found'`"
2525 then CC=gcc
2526 else CC=cc
2527 fi
2528 fi
2529 ;;
2530 m88k-motorola-sysv4* )
2531 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2532 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2533 # I hope there are not other 4.0 versions for this machine
2534 # which really need usg5-4 instead.
2535 machine=delta88k opsys=usg5-4-2
2536 ;;
2537 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2538 machine=delta88k opsys=usg5-3
2539 ;;
2540
2541 ## Dual machines
2542 m68*-dual-sysv* )
2543 machine=dual opsys=usg5-2
2544 ;;
2545 m68*-dual-uniplus* )
2546 machine=dual opsys=unipl5-2
2547 ;;
2548
2549 ## Elxsi 6400
2550 elxsi-elxsi-sysv* )
2551 machine=elxsi opsys=usg5-2
2552 ;;
2553
2554 ## Encore machines
2555 ns16k-encore-bsd* )
2556 machine=ns16000 opsys=umax
2557 ;;
2558
2559 ## The GEC 63 - apparently, this port isn't really finished yet.
2560 # I'm sure we finished off the last of the machines, though. -- fx
2561
2562 ## Gould Power Node and NP1
2563 pn-gould-bsd4.2* )
2564 machine=gould opsys=bsd4-2
2565 ;;
2566 pn-gould-bsd4.3* )
2567 machine=gould opsys=bsd4-3
2568 ;;
2569 np1-gould-bsd* )
2570 machine=gould-np1 opsys=bsd4-3
2571 ;;
2572
2573 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2574 ## as far as Emacs is concerned).
2575 m88k-harris-cxux* )
2576 # Build needs to be different on 7.0 and later releases
2577 case "`uname -r`" in
2578 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2579 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2580 esac
2581 NON_GNU_CPP="/lib/cpp"
2582 ;;
2583 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2584 m68k-harris-cxux* )
2585 machine=nh3000 opsys=cxux
2586 ;;
2587 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2588 powerpc-harris-powerunix )
2589 machine=nh6000 opsys=powerunix
2590 NON_GNU_CPP="cc -Xo -E -P"
2591 ;;
2592 ## SR2001/SR2201 running HI-UX/MPP
2593 hppa1.1-hitachi-hiuxmpp* )
2594 machine=sr2k opsys=hiuxmpp
2595 ;;
2596 hppa1.1-hitachi-hiuxwe2* )
2597 machine=sr2k opsys=hiuxwe2
2598 ;;
2599 ## Honeywell XPS100
2600 xps*-honeywell-sysv* )
2601 machine=xps100 opsys=usg5-2
2602 ;;
2603
2604 ## HP 9000 series 200 or 300
2605 m68*-hp-bsd* )
2606 machine=hp9000s300 opsys=bsd4-3
2607 ;;
2608 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2609 m68*-hp-hpux* )
2610 case "`uname -r`" in
2611 ## Someone's system reports A.B8.05 for this.
2612 ## I wonder what other possibilities there are.
2613 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2614 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2615 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2616 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2617 *) machine=hp9000s300 opsys=hpux ;;
2618 esac
2619 ;;
2620
2621 ## HP 9000 series 700 and 800, running HP/UX
2622 hppa*-hp-hpux7* )
2623 machine=hp800 opsys=hpux
2624 ;;
2625 hppa*-hp-hpux8* )
2626 machine=hp800 opsys=hpux8
2627 ;;
2628 hppa*-hp-hpux9shr* )
2629 machine=hp800 opsys=hpux9shr
2630 ;;
2631 hppa*-hp-hpux9* )
2632 machine=hp800 opsys=hpux9
2633 ;;
2634 hppa*-hp-hpux10.2* )
2635 machine=hp800 opsys=hpux10-20
2636 ;;
2637 hppa*-hp-hpux10* )
2638 machine=hp800 opsys=hpux10
2639 ;;
2640 hppa*-hp-hpux1[1-9]* )
2641 machine=hp800 opsys=hpux11
2642 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2643 ;;
2644
2645 hppa*-*-linux-gnu* )
2646 machine=hp800 opsys=gnu-linux
2647 ;;
2648
2649 ## HP 9000 series 700 and 800, running HP/UX
2650 hppa*-hp-hpux* )
2651 ## Cross-compilation? Nah!
2652 case "`uname -r`" in
2653 ## Someone's system reports A.B8.05 for this.
2654 ## I wonder what other possibilities there are.
2655 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2656 *.08.* ) machine=hp800 opsys=hpux8 ;;
2657 *.09.* ) machine=hp800 opsys=hpux9 ;;
2658 *) machine=hp800 opsys=hpux10 ;;
2659 esac
2660 ;;
2661 hppa*-*-nextstep* )
2662 machine=hp800 opsys=nextstep
2663 ;;
2664
2665 ## Orion machines
2666 orion-orion-bsd* )
2667 machine=orion opsys=bsd4-2
2668 ;;
2669 clipper-orion-bsd* )
2670 machine=orion105 opsys=bsd4-2
2671 ;;
2672
2673 ## IBM machines
2674 i[3456]86-ibm-aix1.1* )
2675 machine=ibmps2-aix opsys=usg5-2-2
2676 ;;
2677 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2678 machine=ibmps2-aix opsys=usg5-3
2679 ;;
2680 i370-ibm-aix*)
2681 machine=ibm370aix opsys=usg5-3
2682 ;;
2683 s390-*-linux-gnu* )
2684 machine=ibms390 opsys=gnu-linux
2685 ;;
2686 s390x-*-linux-gnu* )
2687 machine=ibms390x opsys=gnu-linux
2688 ;;
2689 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2690 machine=ibmrs6000 opsys=aix3-1
2691 ;;
2692 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2693 machine=ibmrs6000 opsys=aix3-2-5
2694 ;;
2695 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2696 machine=ibmrs6000 opsys=aix4-1
2697 ;;
2698 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2699 machine=ibmrs6000 opsys=aix4-2
2700 ;;
2701 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2702 machine=ibmrs6000 opsys=aix4-2
2703 ;;
2704 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2705 machine=ibmrs6000 opsys=aix4-2
2706 ;;
2707 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2708 machine=ibmrs6000 opsys=aix4
2709 ;;
2710 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2711 machine=ibmrs6000 opsys=aix4-1
2712 ;;
2713 rs6000-ibm-aix* | powerpc-ibm-aix* )
2714 machine=ibmrs6000 opsys=aix3-2
2715 ;;
2716 romp-ibm-bsd4.3* )
2717 machine=ibmrt opsys=bsd4-3
2718 ;;
2719 romp-ibm-bsd4.2* )
2720 machine=ibmrt opsys=bsd4-2
2721 ;;
2722 romp-ibm-aos4.3* )
2723 machine=ibmrt opsys=bsd4-3
2724 ;;
2725 romp-ibm-aos4.2* )
2726 machine=ibmrt opsys=bsd4-2
2727 ;;
2728 romp-ibm-aos* )
2729 machine=ibmrt opsys=bsd4-3
2730 ;;
2731 romp-ibm-bsd* )
2732 machine=ibmrt opsys=bsd4-3
2733 ;;
2734 romp-ibm-aix* )
2735 machine=ibmrt-aix opsys=usg5-2-2
2736 ;;
2737
2738 ## Integrated Solutions `Optimum V'
2739 m68*-isi-bsd4.2* )
2740 machine=isi-ov opsys=bsd4-2
2741 ;;
2742 m68*-isi-bsd4.3* )
2743 machine=isi-ov opsys=bsd4-3
2744 ;;
2745
2746 ## Intel 386 machines where we do care about the manufacturer
2747 i[3456]86-intsys-sysv* )
2748 machine=is386 opsys=usg5-2-2
2749 ;;
2750
2751 ## Prime EXL
2752 i[3456]86-prime-sysv* )
2753 machine=i386 opsys=usg5-3
2754 ;;
2755
2756 ## Sequent Symmetry running Dynix
2757 i[3456]86-sequent-bsd* )
2758 machine=symmetry opsys=bsd4-3
2759 ;;
2760
2761 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2762 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2763 machine=sequent-ptx opsys=ptx4
2764 NON_GNU_CPP=/lib/cpp
2765 ;;
2766
2767 ## Sequent Symmetry running DYNIX/ptx
2768 ## Use the old cpp rather than the newer ANSI one.
2769 i[3456]86-sequent-ptx* )
2770 machine=sequent-ptx opsys=ptx
2771 NON_GNU_CPP="/lib/cpp"
2772 ;;
2773
2774 ## ncr machine running svr4.3.
2775 i[3456]86-ncr-sysv4.3 )
2776 machine=ncr386 opsys=usg5-4-3
2777 ;;
2778
2779 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2780 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2781 i[3456]86-ncr-sysv* )
2782 machine=ncr386 opsys=usg5-4-2
2783 ;;
2784
2785 ## Intel Paragon OSF/1
2786 i860-intel-osf1* )
2787 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2788 ;;
2789
2790 ## Intel 860
2791 i860-*-sysv4* )
2792 machine=i860 opsys=usg5-4
2793 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2794 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2795 ;;
2796
2797 ## Macintosh PowerPC
2798 powerpc*-*-linux-gnu* )
2799 machine=macppc opsys=gnu-linux
2800 ;;
2801
2802 ## Masscomp machines
2803 m68*-masscomp-rtu* )
2804 machine=masscomp opsys=rtu
2805 ;;
2806
2807 ## Megatest machines
2808 m68*-megatest-bsd* )
2809 machine=mega68 opsys=bsd4-2
2810 ;;
2811
2812 ## Workstations sold by MIPS
2813 ## This is not necessarily all workstations using the MIPS processor -
2814 ## Irises are produced by SGI, and DECstations by DEC.
2815
2816 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2817 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2818 ## it gives for choosing between the alternatives seems to be "Use
2819 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2820 ## the BSD world." I'll assume that these are instructions for
2821 ## handling two odd situations, and that every other situation
2822 ## should use mips.h and usg5-2-2, they being listed first.
2823 mips-mips-usg* )
2824 machine=mips4
2825 ## Fall through to the general code at the bottom to decide on the OS.
2826 ;;
2827 mips-mips-riscos4* )
2828 machine=mips4 opsys=bsd4-3
2829 NON_GNU_CC="cc -systype bsd43"
2830 NON_GNU_CPP="cc -systype bsd43 -E"
2831 ;;
2832 mips-mips-riscos5* )
2833 machine=mips4 opsys=riscos5
2834 NON_GNU_CC="cc -systype bsd43"
2835 NON_GNU_CPP="cc -systype bsd43 -E"
2836 ;;
2837 mips-mips-bsd* )
2838 machine=mips opsys=bsd4-3
2839 ;;
2840 mips-mips-* )
2841 machine=mips opsys=usg5-2-2
2842 ;;
2843
2844 ## NeXT
2845 m68*-next-* | m68k-*-nextstep* )
2846 machine=m68k opsys=nextstep
2847 ;;
2848
2849 ## The complete machine from National Semiconductor
2850 ns32k-ns-genix* )
2851 machine=ns32000 opsys=usg5-2
2852 ;;
2853
2854 ## NCR machines
2855 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2856 machine=tower32 opsys=usg5-2-2
2857 ;;
2858 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2859 machine=tower32v3 opsys=usg5-3
2860 ;;
2861
2862 ## NEC EWS4800
2863 mips-nec-sysv4*)
2864 machine=ews4800 opsys=ux4800
2865 ;;
2866
2867 ## Nixdorf Targon 31
2868 m68*-nixdorf-sysv* )
2869 machine=targon31 opsys=usg5-2-2
2870 ;;
2871
2872 ## Nu (TI or LMI)
2873 m68*-nu-sysv* )
2874 machine=nu opsys=usg5-2
2875 ;;
2876
2877 ## Plexus
2878 m68*-plexus-sysv* )
2879 machine=plexus opsys=usg5-2
2880 ;;
2881
2882 ## Pyramid machines
2883 ## I don't really have any idea what sort of processor the Pyramid has,
2884 ## so I'm assuming it is its own architecture.
2885 pyramid-pyramid-bsd* )
2886 machine=pyramid opsys=bsd4-2
2887 ;;
2888
2889 ## Sequent Balance
2890 ns32k-sequent-bsd4.2* )
2891 machine=sequent opsys=bsd4-2
2892 ;;
2893 ns32k-sequent-bsd4.3* )
2894 machine=sequent opsys=bsd4-3
2895 ;;
2896
2897 ## Siemens Nixdorf
2898 mips-siemens-sysv* | mips-sni-sysv*)
2899 machine=mips-siemens opsys=usg5-4
2900 NON_GNU_CC=/usr/ccs/bin/cc
2901 NON_GNU_CPP=/usr/ccs/lib/cpp
2902 ;;
2903
2904 ## Silicon Graphics machines
2905 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2906 m68*-sgi-iris3.5* )
2907 machine=irist opsys=iris3-5
2908 ;;
2909 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2910 machine=irist opsys=iris3-6
2911 ;;
2912 ## Iris 4D
2913 mips-sgi-irix3* )
2914 machine=iris4d opsys=irix3-3
2915 ;;
2916 mips-sgi-irix4* )
2917 machine=iris4d opsys=irix4-0
2918 ;;
2919 mips-sgi-irix6.5 )
2920 machine=iris4d opsys=irix6-5
2921 # Without defining _LANGUAGE_C, things get masked out in the headers
2922 # so that, for instance, grepping for `free' in stdlib.h fails and
2923 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2924 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2925 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2926 ;;
2927 mips-sgi-irix6* )
2928 machine=iris4d opsys=irix6-0
2929 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2930 # but presumably it does no harm.
2931 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2932 # -32 probably isn't necessary in later v.6s -- anyone know which?
2933 NON_GCC_TEST_OPTIONS=-32
2934 ;;
2935 mips-sgi-irix5.[01]* )
2936 machine=iris4d opsys=irix5-0
2937 ;;
2938 mips-sgi-irix5* | mips-sgi-irix* )
2939 machine=iris4d opsys=irix5-2
2940 ;;
2941
2942 ## SONY machines
2943 m68*-sony-bsd4.2* )
2944 machine=news opsys=bsd4-2
2945 ;;
2946 m68*-sony-bsd4.3* )
2947 machine=news opsys=bsd4-3
2948 ;;
2949 m68*-sony-newsos3* | m68*-sony-news3*)
2950 machine=news opsys=bsd4-3
2951 ;;
2952 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2953 machine=news-risc opsys=bsd4-3
2954 ;;
2955 mips-sony-newsos6* )
2956 machine=news-r6 opsys=newsos6
2957 ;;
2958 mips-sony-news* )
2959 machine=news-risc opsys=newsos5
2960 ;;
2961
2962 ## Stride
2963 m68*-stride-sysv* )
2964 machine=stride opsys=usg5-2
2965 ;;
2966
2967 ## Suns
2968 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2969 machine=sparc opsys=gnu-linux
2970 ;;
2971
2972 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2973 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2974 | rs6000-*-solaris2*)
2975 case "${canonical}" in
2976 m68*-sunos1* ) machine=sun1 ;;
2977 m68*-sunos2* ) machine=sun2 ;;
2978 m68* ) machine=sun3 ;;
2979 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
2980 i[3456]86-*-* ) machine=intel386 ;;
2981 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
2982 powerpcle* ) machine=powerpcle ;;
2983 powerpc* | rs6000* ) machine=ibmrs6000 ;;
2984 sparc* ) machine=sparc ;;
2985 * ) unported=yes ;;
2986 esac
2987 case "${canonical}" in
2988 ## The Sun386 didn't get past 4.0.
2989 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
2990 *-sunos4.0* ) opsys=sunos4-0 ;;
2991 *-sunos4.1.[3-9]*noshare )
2992 ## This name is sunos413 instead of sunos4-1-3
2993 ## to avoid a file name conflict on MSDOS.
2994 opsys=sunos413
2995 NON_GNU_CPP=/usr/lib/cpp
2996 NON_GCC_TEST_OPTIONS=-Bstatic
2997 GCC_TEST_OPTIONS=-static
2998 ;;
2999 *-sunos4.1.[3-9]* | *-sunos4shr*)
3000 opsys=sunos4shr
3001 NON_GNU_CPP=/usr/lib/cpp
3002 ;;
3003 *-sunos4* | *-sunos )
3004 opsys=sunos4-1
3005 NON_GCC_TEST_OPTIONS=-Bstatic
3006 GCC_TEST_OPTIONS=-static
3007 ;;
3008 *-sunos5.3* | *-solaris2.3* )
3009 opsys=sol2-3
3010 NON_GNU_CPP=/usr/ccs/lib/cpp
3011 ;;
3012 *-sunos5.4* | *-solaris2.4* )
3013 opsys=sol2-4
3014 NON_GNU_CPP=/usr/ccs/lib/cpp
3015 RANLIB="ar -ts"
3016 ;;
3017 *-sunos5.5* | *-solaris2.5* )
3018 opsys=sol2-5
3019 NON_GNU_CPP=/usr/ccs/lib/cpp
3020 RANLIB="ar -ts"
3021 ;;
3022 *-sunos5.6* | *-solaris2.6* )
3023 opsys=sol2-6
3024 NON_GNU_CPP=/usr/ccs/lib/cpp
3025 RANLIB="ar -ts"
3026 ;;
3027 *-sunos5* | *-solaris* )
3028 opsys=sol2-6
3029 if [ "x$CC" = x/opt/SUNWspro/bin/cc ]; then
3030 ## -Xs prevents spurious whitespace.
3031 NON_GNU_CPP="/opt/SUNWspro/bin/cc -E -Xs"
3032 else
3033 NON_GNU_CPP=/usr/ccs/lib/cpp
3034 fi
3035 ;;
3036 * ) opsys=bsd4-2 ;;
3037 esac
3038 ## Watch out for a compiler that we know will not work.
3039 case "${canonical}" in
3040 *-solaris* | *-sunos5* )
3041 if [ "x$CC" = x/usr/ucb/cc ]; then
3042 ## /usr/ucb/cc doesn't work;
3043 ## we should find some other compiler that does work.
3044 unset CC
3045 fi
3046 ;;
3047 *) ;;
3048 esac
3049 ;;
3050 sparc-*-nextstep* )
3051 machine=sparc opsys=nextstep
3052 ;;
3053
3054 ## Tadpole 68k
3055 m68*-tadpole-sysv* )
3056 machine=tad68k opsys=usg5-3
3057 ;;
3058
3059 ## Tahoe machines
3060 tahoe-tahoe-bsd4.2* )
3061 machine=tahoe opsys=bsd4-2
3062 ;;
3063 tahoe-tahoe-bsd4.3* )
3064 machine=tahoe opsys=bsd4-3
3065 ;;
3066
3067 ## Tandem Integrity S2
3068 mips-tandem-sysv* )
3069 machine=tandem-s2 opsys=usg5-3
3070 ;;
3071
3072 ## Tektronix XD88
3073 m88k-tektronix-sysv3* )
3074 machine=tekxd88 opsys=usg5-3
3075 ;;
3076
3077 ## Tektronix 16000 box (6130?)
3078 ns16k-tektronix-bsd* )
3079 machine=ns16000 opsys=bsd4-2
3080 ;;
3081 ## Tektronix 4300
3082 ## src/m/tek4300.h hints that this is a m68k machine.
3083 m68*-tektronix-bsd* )
3084 machine=tek4300 opsys=bsd4-3
3085 ;;
3086
3087 ## Titan P2 or P3
3088 ## We seem to have lost the machine-description file titan.h!
3089 titan-titan-sysv* )
3090 machine=titan opsys=usg5-3
3091 ;;
3092
3093 ## Ustation E30 (SS5E)
3094 m68*-unisys-uniplus* )
3095 machine=ustation opsystem=unipl5-2
3096 ;;
3097
3098 ## Vaxen.
3099 vax-dec-* )
3100 machine=vax
3101 case "${canonical}" in
3102 *-bsd4.1* ) opsys=bsd4-1 ;;
3103 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3104 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3105 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3106 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3107 *-vms* ) opsys=vms ;;
3108 * ) unported=yes
3109 esac
3110 ;;
3111
3112 ## Whitechapel MG1
3113 ns16k-whitechapel-* )
3114 machine=mg1
3115 ## We don't know what sort of OS runs on these; we'll let the
3116 ## operating system guessing code below try.
3117 ;;
3118
3119 ## Wicat
3120 m68*-wicat-sysv* )
3121 machine=wicat opsys=usg5-2
3122 ;;
3123
3124 ## IA-64
3125 ia64*-*-linux* )
3126 machine=ia64 opsys=gnu-linux
3127 ;;
3128
3129 ## Intel 386 machines where we don't care about the manufacturer
3130 i[3456]86-*-* )
3131 machine=intel386
3132 case "${canonical}" in
3133 *-cygwin ) opsys=cygwin ;;
3134 *-darwin* ) opsys=darwin
3135 CPP="${CC-cc} -E -no-cpp-precomp"
3136 ;;
3137 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3138 *-isc2.2* ) opsys=isc2-2 ;;
3139 *-isc4.0* ) opsys=isc4-0 ;;
3140 *-isc4.* ) opsys=isc4-1
3141 GCC_TEST_OPTIONS=-posix
3142 NON_GCC_TEST_OPTIONS=-Xp
3143 ;;
3144 *-isc* ) opsys=isc3-0 ;;
3145 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3146 *-esix* ) opsys=esix ;;
3147 *-xenix* ) opsys=xenix ;;
3148 *-linux-gnu* ) opsys=gnu-linux ;;
3149 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3150 *-sco3.2v5* ) opsys=sco5
3151 NON_GNU_CPP=/lib/cpp
3152 # Prevent -belf from being passed to $CPP.
3153 # /lib/cpp does not accept it.
3154 OVERRIDE_CPPFLAGS=" "
3155 ;;
3156 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3157 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3158 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3159 *-386bsd* ) opsys=386bsd ;;
3160 *-nextstep* ) opsys=nextstep ;;
3161 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3162 esac
3163 ;;
3164
3165 ## m68k Linux-based GNU system
3166 m68k-*-linux-gnu* )
3167 machine=m68k opsys=gnu-linux
3168 ;;
3169
3170 ## Mips Linux-based GNU system
3171 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3172 machine=mips opsys=gnu-linux
3173 ;;
3174
3175 ## UXP/DS
3176 sparc-fujitsu-sysv4* )
3177 machine=sparc opsys=uxpds
3178 NON_GNU_CPP=/usr/ccs/lib/cpp
3179 RANLIB="ar -ts"
3180 ;;
3181
3182 ## UXP/V
3183 f301-fujitsu-uxpv4.1)
3184 machine=f301 opsys=uxpv
3185 ;;
3186
3187 ## AMD x86-64 Linux-based GNU system
3188 x86_64-*-linux-gnu* )
3189 machine=amdx86-64 opsys=gnu-linux
3190 ;;
3191
3192 ## Tensilica Xtensa Linux-based GNU system
3193 xtensa-*-linux-gnu* )
3194 machine=xtensa opsys=gnu-linux
3195 ;;
3196
3197 * )
3198 unported=yes
3199 ;;
3200 esac
3201
3202 ### If the code above didn't choose an operating system, just choose
3203 ### an operating system based on the configuration name. You really
3204 ### only want to use this when you have no idea what the right
3205 ### operating system is; if you know what operating systems a machine
3206 ### runs, it's cleaner to make it explicit in the case statement
3207 ### above.
3208 if test x"${opsys}" = x; then
3209 case "${canonical}" in
3210 *-gnu* ) opsys=gnu ;;
3211 *-bsd4.[01] ) opsys=bsd4-1 ;;
3212 *-bsd4.2 ) opsys=bsd4-2 ;;
3213 *-bsd4.3 ) opsys=bsd4-3 ;;
3214 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3215 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3216 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3217 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3218 *-sysv4.2uw* ) opsys=unixware ;;
3219 *-sysv5uw* ) opsys=unixware ;;
3220 *-sysv5OpenUNIX* ) opsys=unixware ;;
3221 *-sysv4.1* | *-sysvr4.1* )
3222 NON_GNU_CPP=/usr/lib/cpp
3223 opsys=usg5-4 ;;
3224 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3225 if [ x$NON_GNU_CPP = x ]; then
3226 if [ -f /usr/ccs/lib/cpp ]; then
3227 NON_GNU_CPP=/usr/ccs/lib/cpp
3228 else
3229 NON_GNU_CPP=/lib/cpp
3230 fi
3231 fi
3232 opsys=usg5-4-2 ;;
3233 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3234 * )
3235 unported=yes
3236 ;;
3237 esac
3238 fi
3239
3240
3241
3242 if test $unported = yes; then
3243 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3244 Check \`etc/MACHINES' for recognized configuration names." >&5
3245 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3246 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3247 { (exit 1); exit 1; }; }
3248 fi
3249
3250 machfile="m/${machine}.h"
3251 opsysfile="s/${opsys}.h"
3252
3253
3254 #### Choose a compiler.
3255 test -n "$CC" && cc_specified=yes
3256
3257 # Save the value of CFLAGS that the user specified.
3258 SPECIFIED_CFLAGS="$CFLAGS"
3259
3260 case ${with_gcc} in
3261 "yes" ) CC="gcc" GCC=yes ;;
3262 "no" ) : ${CC=cc} ;;
3263 * )
3264 esac
3265 ac_ext=c
3266 ac_cpp='$CPP $CPPFLAGS'
3267 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3268 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3269 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3270 if test -n "$ac_tool_prefix"; then
3271 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3272 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3275 if test "${ac_cv_prog_CC+set}" = set; then
3276 echo $ECHO_N "(cached) $ECHO_C" >&6
3277 else
3278 if test -n "$CC"; then
3279 ac_cv_prog_CC="$CC" # Let the user override the test.
3280 else
3281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3282 for as_dir in $PATH
3283 do
3284 IFS=$as_save_IFS
3285 test -z "$as_dir" && as_dir=.
3286 for ac_exec_ext in '' $ac_executable_extensions; do
3287 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3288 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3289 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3290 break 2
3291 fi
3292 done
3293 done
3294 IFS=$as_save_IFS
3295
3296 fi
3297 fi
3298 CC=$ac_cv_prog_CC
3299 if test -n "$CC"; then
3300 { echo "$as_me:$LINENO: result: $CC" >&5
3301 echo "${ECHO_T}$CC" >&6; }
3302 else
3303 { echo "$as_me:$LINENO: result: no" >&5
3304 echo "${ECHO_T}no" >&6; }
3305 fi
3306
3307
3308 fi
3309 if test -z "$ac_cv_prog_CC"; then
3310 ac_ct_CC=$CC
3311 # Extract the first word of "gcc", so it can be a program name with args.
3312 set dummy gcc; ac_word=$2
3313 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3314 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3315 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3316 echo $ECHO_N "(cached) $ECHO_C" >&6
3317 else
3318 if test -n "$ac_ct_CC"; then
3319 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3320 else
3321 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3322 for as_dir in $PATH
3323 do
3324 IFS=$as_save_IFS
3325 test -z "$as_dir" && as_dir=.
3326 for ac_exec_ext in '' $ac_executable_extensions; do
3327 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3328 ac_cv_prog_ac_ct_CC="gcc"
3329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3330 break 2
3331 fi
3332 done
3333 done
3334 IFS=$as_save_IFS
3335
3336 fi
3337 fi
3338 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3339 if test -n "$ac_ct_CC"; then
3340 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3341 echo "${ECHO_T}$ac_ct_CC" >&6; }
3342 else
3343 { echo "$as_me:$LINENO: result: no" >&5
3344 echo "${ECHO_T}no" >&6; }
3345 fi
3346
3347 if test "x$ac_ct_CC" = x; then
3348 CC=""
3349 else
3350 case $cross_compiling:$ac_tool_warned in
3351 yes:)
3352 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3353 whose name does not start with the host triplet. If you think this
3354 configuration is useful to you, please write to autoconf@gnu.org." >&5
3355 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3356 whose name does not start with the host triplet. If you think this
3357 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3358 ac_tool_warned=yes ;;
3359 esac
3360 CC=$ac_ct_CC
3361 fi
3362 else
3363 CC="$ac_cv_prog_CC"
3364 fi
3365
3366 if test -z "$CC"; then
3367 if test -n "$ac_tool_prefix"; then
3368 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3369 set dummy ${ac_tool_prefix}cc; ac_word=$2
3370 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3371 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3372 if test "${ac_cv_prog_CC+set}" = set; then
3373 echo $ECHO_N "(cached) $ECHO_C" >&6
3374 else
3375 if test -n "$CC"; then
3376 ac_cv_prog_CC="$CC" # Let the user override the test.
3377 else
3378 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3379 for as_dir in $PATH
3380 do
3381 IFS=$as_save_IFS
3382 test -z "$as_dir" && as_dir=.
3383 for ac_exec_ext in '' $ac_executable_extensions; do
3384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3385 ac_cv_prog_CC="${ac_tool_prefix}cc"
3386 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3387 break 2
3388 fi
3389 done
3390 done
3391 IFS=$as_save_IFS
3392
3393 fi
3394 fi
3395 CC=$ac_cv_prog_CC
3396 if test -n "$CC"; then
3397 { echo "$as_me:$LINENO: result: $CC" >&5
3398 echo "${ECHO_T}$CC" >&6; }
3399 else
3400 { echo "$as_me:$LINENO: result: no" >&5
3401 echo "${ECHO_T}no" >&6; }
3402 fi
3403
3404
3405 fi
3406 fi
3407 if test -z "$CC"; then
3408 # Extract the first word of "cc", so it can be a program name with args.
3409 set dummy cc; ac_word=$2
3410 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3411 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3412 if test "${ac_cv_prog_CC+set}" = set; then
3413 echo $ECHO_N "(cached) $ECHO_C" >&6
3414 else
3415 if test -n "$CC"; then
3416 ac_cv_prog_CC="$CC" # Let the user override the test.
3417 else
3418 ac_prog_rejected=no
3419 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3420 for as_dir in $PATH
3421 do
3422 IFS=$as_save_IFS
3423 test -z "$as_dir" && as_dir=.
3424 for ac_exec_ext in '' $ac_executable_extensions; do
3425 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3426 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3427 ac_prog_rejected=yes
3428 continue
3429 fi
3430 ac_cv_prog_CC="cc"
3431 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3432 break 2
3433 fi
3434 done
3435 done
3436 IFS=$as_save_IFS
3437
3438 if test $ac_prog_rejected = yes; then
3439 # We found a bogon in the path, so make sure we never use it.
3440 set dummy $ac_cv_prog_CC
3441 shift
3442 if test $# != 0; then
3443 # We chose a different compiler from the bogus one.
3444 # However, it has the same basename, so the bogon will be chosen
3445 # first if we set CC to just the basename; use the full file name.
3446 shift
3447 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3448 fi
3449 fi
3450 fi
3451 fi
3452 CC=$ac_cv_prog_CC
3453 if test -n "$CC"; then
3454 { echo "$as_me:$LINENO: result: $CC" >&5
3455 echo "${ECHO_T}$CC" >&6; }
3456 else
3457 { echo "$as_me:$LINENO: result: no" >&5
3458 echo "${ECHO_T}no" >&6; }
3459 fi
3460
3461
3462 fi
3463 if test -z "$CC"; then
3464 if test -n "$ac_tool_prefix"; then
3465 for ac_prog in cl.exe
3466 do
3467 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3468 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3471 if test "${ac_cv_prog_CC+set}" = set; then
3472 echo $ECHO_N "(cached) $ECHO_C" >&6
3473 else
3474 if test -n "$CC"; then
3475 ac_cv_prog_CC="$CC" # Let the user override the test.
3476 else
3477 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3478 for as_dir in $PATH
3479 do
3480 IFS=$as_save_IFS
3481 test -z "$as_dir" && as_dir=.
3482 for ac_exec_ext in '' $ac_executable_extensions; do
3483 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3484 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3485 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3486 break 2
3487 fi
3488 done
3489 done
3490 IFS=$as_save_IFS
3491
3492 fi
3493 fi
3494 CC=$ac_cv_prog_CC
3495 if test -n "$CC"; then
3496 { echo "$as_me:$LINENO: result: $CC" >&5
3497 echo "${ECHO_T}$CC" >&6; }
3498 else
3499 { echo "$as_me:$LINENO: result: no" >&5
3500 echo "${ECHO_T}no" >&6; }
3501 fi
3502
3503
3504 test -n "$CC" && break
3505 done
3506 fi
3507 if test -z "$CC"; then
3508 ac_ct_CC=$CC
3509 for ac_prog in cl.exe
3510 do
3511 # Extract the first word of "$ac_prog", so it can be a program name with args.
3512 set dummy $ac_prog; ac_word=$2
3513 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3514 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3515 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3516 echo $ECHO_N "(cached) $ECHO_C" >&6
3517 else
3518 if test -n "$ac_ct_CC"; then
3519 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3520 else
3521 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3522 for as_dir in $PATH
3523 do
3524 IFS=$as_save_IFS
3525 test -z "$as_dir" && as_dir=.
3526 for ac_exec_ext in '' $ac_executable_extensions; do
3527 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3528 ac_cv_prog_ac_ct_CC="$ac_prog"
3529 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3530 break 2
3531 fi
3532 done
3533 done
3534 IFS=$as_save_IFS
3535
3536 fi
3537 fi
3538 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3539 if test -n "$ac_ct_CC"; then
3540 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3541 echo "${ECHO_T}$ac_ct_CC" >&6; }
3542 else
3543 { echo "$as_me:$LINENO: result: no" >&5
3544 echo "${ECHO_T}no" >&6; }
3545 fi
3546
3547
3548 test -n "$ac_ct_CC" && break
3549 done
3550
3551 if test "x$ac_ct_CC" = x; then
3552 CC=""
3553 else
3554 case $cross_compiling:$ac_tool_warned in
3555 yes:)
3556 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3557 whose name does not start with the host triplet. If you think this
3558 configuration is useful to you, please write to autoconf@gnu.org." >&5
3559 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3560 whose name does not start with the host triplet. If you think this
3561 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3562 ac_tool_warned=yes ;;
3563 esac
3564 CC=$ac_ct_CC
3565 fi
3566 fi
3567
3568 fi
3569
3570
3571 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3572 See \`config.log' for more details." >&5
3573 echo "$as_me: error: no acceptable C compiler found in \$PATH
3574 See \`config.log' for more details." >&2;}
3575 { (exit 1); exit 1; }; }
3576
3577 # Provide some information about the compiler.
3578 echo "$as_me:$LINENO: checking for C compiler version" >&5
3579 ac_compiler=`set X $ac_compile; echo $2`
3580 { (ac_try="$ac_compiler --version >&5"
3581 case "(($ac_try" in
3582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3583 *) ac_try_echo=$ac_try;;
3584 esac
3585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3586 (eval "$ac_compiler --version >&5") 2>&5
3587 ac_status=$?
3588 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3589 (exit $ac_status); }
3590 { (ac_try="$ac_compiler -v >&5"
3591 case "(($ac_try" in
3592 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593 *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596 (eval "$ac_compiler -v >&5") 2>&5
3597 ac_status=$?
3598 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3599 (exit $ac_status); }
3600 { (ac_try="$ac_compiler -V >&5"
3601 case "(($ac_try" in
3602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3603 *) ac_try_echo=$ac_try;;
3604 esac
3605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3606 (eval "$ac_compiler -V >&5") 2>&5
3607 ac_status=$?
3608 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3609 (exit $ac_status); }
3610
3611 cat >conftest.$ac_ext <<_ACEOF
3612 /* confdefs.h. */
3613 _ACEOF
3614 cat confdefs.h >>conftest.$ac_ext
3615 cat >>conftest.$ac_ext <<_ACEOF
3616 /* end confdefs.h. */
3617
3618 int
3619 main ()
3620 {
3621
3622 ;
3623 return 0;
3624 }
3625 _ACEOF
3626 ac_clean_files_save=$ac_clean_files
3627 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3628 # Try to create an executable without -o first, disregard a.out.
3629 # It will help us diagnose broken compilers, and finding out an intuition
3630 # of exeext.
3631 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3632 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3633 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3634 #
3635 # List of possible output files, starting from the most likely.
3636 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3637 # only as a last resort. b.out is created by i960 compilers.
3638 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3639 #
3640 # The IRIX 6 linker writes into existing files which may not be
3641 # executable, retaining their permissions. Remove them first so a
3642 # subsequent execution test works.
3643 ac_rmfiles=
3644 for ac_file in $ac_files
3645 do
3646 case $ac_file in
3647 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3648 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3649 esac
3650 done
3651 rm -f $ac_rmfiles
3652
3653 if { (ac_try="$ac_link_default"
3654 case "(($ac_try" in
3655 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3656 *) ac_try_echo=$ac_try;;
3657 esac
3658 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3659 (eval "$ac_link_default") 2>&5
3660 ac_status=$?
3661 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3662 (exit $ac_status); }; then
3663 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3664 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3665 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3666 # so that the user can short-circuit this test for compilers unknown to
3667 # Autoconf.
3668 for ac_file in $ac_files ''
3669 do
3670 test -f "$ac_file" || continue
3671 case $ac_file in
3672 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3673 ;;
3674 [ab].out )
3675 # We found the default executable, but exeext='' is most
3676 # certainly right.
3677 break;;
3678 *.* )
3679 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3680 then :; else
3681 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3682 fi
3683 # We set ac_cv_exeext here because the later test for it is not
3684 # safe: cross compilers may not add the suffix if given an `-o'
3685 # argument, so we may need to know it at that point already.
3686 # Even if this section looks crufty: it has the advantage of
3687 # actually working.
3688 break;;
3689 * )
3690 break;;
3691 esac
3692 done
3693 test "$ac_cv_exeext" = no && ac_cv_exeext=
3694
3695 else
3696 ac_file=''
3697 fi
3698
3699 { echo "$as_me:$LINENO: result: $ac_file" >&5
3700 echo "${ECHO_T}$ac_file" >&6; }
3701 if test -z "$ac_file"; then
3702 echo "$as_me: failed program was:" >&5
3703 sed 's/^/| /' conftest.$ac_ext >&5
3704
3705 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3706 See \`config.log' for more details." >&5
3707 echo "$as_me: error: C compiler cannot create executables
3708 See \`config.log' for more details." >&2;}
3709 { (exit 77); exit 77; }; }
3710 fi
3711
3712 ac_exeext=$ac_cv_exeext
3713
3714 # Check that the compiler produces executables we can run. If not, either
3715 # the compiler is broken, or we cross compile.
3716 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3717 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3718 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3719 # If not cross compiling, check that we can run a simple program.
3720 if test "$cross_compiling" != yes; then
3721 if { ac_try='./$ac_file'
3722 { (case "(($ac_try" in
3723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3724 *) ac_try_echo=$ac_try;;
3725 esac
3726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3727 (eval "$ac_try") 2>&5
3728 ac_status=$?
3729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3730 (exit $ac_status); }; }; then
3731 cross_compiling=no
3732 else
3733 if test "$cross_compiling" = maybe; then
3734 cross_compiling=yes
3735 else
3736 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3737 If you meant to cross compile, use \`--host'.
3738 See \`config.log' for more details." >&5
3739 echo "$as_me: error: cannot run C compiled programs.
3740 If you meant to cross compile, use \`--host'.
3741 See \`config.log' for more details." >&2;}
3742 { (exit 1); exit 1; }; }
3743 fi
3744 fi
3745 fi
3746 { echo "$as_me:$LINENO: result: yes" >&5
3747 echo "${ECHO_T}yes" >&6; }
3748
3749 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3750 ac_clean_files=$ac_clean_files_save
3751 # Check that the compiler produces executables we can run. If not, either
3752 # the compiler is broken, or we cross compile.
3753 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3754 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3755 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3756 echo "${ECHO_T}$cross_compiling" >&6; }
3757
3758 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3759 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3760 if { (ac_try="$ac_link"
3761 case "(($ac_try" in
3762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3763 *) ac_try_echo=$ac_try;;
3764 esac
3765 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3766 (eval "$ac_link") 2>&5
3767 ac_status=$?
3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3769 (exit $ac_status); }; then
3770 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3771 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3772 # work properly (i.e., refer to `conftest.exe'), while it won't with
3773 # `rm'.
3774 for ac_file in conftest.exe conftest conftest.*; do
3775 test -f "$ac_file" || continue
3776 case $ac_file in
3777 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3778 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3779 break;;
3780 * ) break;;
3781 esac
3782 done
3783 else
3784 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3785 See \`config.log' for more details." >&5
3786 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3787 See \`config.log' for more details." >&2;}
3788 { (exit 1); exit 1; }; }
3789 fi
3790
3791 rm -f conftest$ac_cv_exeext
3792 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3793 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3794
3795 rm -f conftest.$ac_ext
3796 EXEEXT=$ac_cv_exeext
3797 ac_exeext=$EXEEXT
3798 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3799 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3800 if test "${ac_cv_objext+set}" = set; then
3801 echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803 cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h. */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h. */
3809
3810 int
3811 main ()
3812 {
3813
3814 ;
3815 return 0;
3816 }
3817 _ACEOF
3818 rm -f conftest.o conftest.obj
3819 if { (ac_try="$ac_compile"
3820 case "(($ac_try" in
3821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3822 *) ac_try_echo=$ac_try;;
3823 esac
3824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3825 (eval "$ac_compile") 2>&5
3826 ac_status=$?
3827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3828 (exit $ac_status); }; then
3829 for ac_file in conftest.o conftest.obj conftest.*; do
3830 test -f "$ac_file" || continue;
3831 case $ac_file in
3832 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3833 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3834 break;;
3835 esac
3836 done
3837 else
3838 echo "$as_me: failed program was:" >&5
3839 sed 's/^/| /' conftest.$ac_ext >&5
3840
3841 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3842 See \`config.log' for more details." >&5
3843 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3844 See \`config.log' for more details." >&2;}
3845 { (exit 1); exit 1; }; }
3846 fi
3847
3848 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3849 fi
3850 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3851 echo "${ECHO_T}$ac_cv_objext" >&6; }
3852 OBJEXT=$ac_cv_objext
3853 ac_objext=$OBJEXT
3854 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3855 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3856 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3857 echo $ECHO_N "(cached) $ECHO_C" >&6
3858 else
3859 cat >conftest.$ac_ext <<_ACEOF
3860 /* confdefs.h. */
3861 _ACEOF
3862 cat confdefs.h >>conftest.$ac_ext
3863 cat >>conftest.$ac_ext <<_ACEOF
3864 /* end confdefs.h. */
3865
3866 int
3867 main ()
3868 {
3869 #ifndef __GNUC__
3870 choke me
3871 #endif
3872
3873 ;
3874 return 0;
3875 }
3876 _ACEOF
3877 rm -f conftest.$ac_objext
3878 if { (ac_try="$ac_compile"
3879 case "(($ac_try" in
3880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3881 *) ac_try_echo=$ac_try;;
3882 esac
3883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3884 (eval "$ac_compile") 2>conftest.er1
3885 ac_status=$?
3886 grep -v '^ *+' conftest.er1 >conftest.err
3887 rm -f conftest.er1
3888 cat conftest.err >&5
3889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3890 (exit $ac_status); } && {
3891 test -z "$ac_c_werror_flag" ||
3892 test ! -s conftest.err
3893 } && test -s conftest.$ac_objext; then
3894 ac_compiler_gnu=yes
3895 else
3896 echo "$as_me: failed program was:" >&5
3897 sed 's/^/| /' conftest.$ac_ext >&5
3898
3899 ac_compiler_gnu=no
3900 fi
3901
3902 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3903 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3904
3905 fi
3906 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3907 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3908 GCC=`test $ac_compiler_gnu = yes && echo yes`
3909 ac_test_CFLAGS=${CFLAGS+set}
3910 ac_save_CFLAGS=$CFLAGS
3911 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3912 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3913 if test "${ac_cv_prog_cc_g+set}" = set; then
3914 echo $ECHO_N "(cached) $ECHO_C" >&6
3915 else
3916 ac_save_c_werror_flag=$ac_c_werror_flag
3917 ac_c_werror_flag=yes
3918 ac_cv_prog_cc_g=no
3919 CFLAGS="-g"
3920 cat >conftest.$ac_ext <<_ACEOF
3921 /* confdefs.h. */
3922 _ACEOF
3923 cat confdefs.h >>conftest.$ac_ext
3924 cat >>conftest.$ac_ext <<_ACEOF
3925 /* end confdefs.h. */
3926
3927 int
3928 main ()
3929 {
3930
3931 ;
3932 return 0;
3933 }
3934 _ACEOF
3935 rm -f conftest.$ac_objext
3936 if { (ac_try="$ac_compile"
3937 case "(($ac_try" in
3938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3939 *) ac_try_echo=$ac_try;;
3940 esac
3941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3942 (eval "$ac_compile") 2>conftest.er1
3943 ac_status=$?
3944 grep -v '^ *+' conftest.er1 >conftest.err
3945 rm -f conftest.er1
3946 cat conftest.err >&5
3947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3948 (exit $ac_status); } && {
3949 test -z "$ac_c_werror_flag" ||
3950 test ! -s conftest.err
3951 } && test -s conftest.$ac_objext; then
3952 ac_cv_prog_cc_g=yes
3953 else
3954 echo "$as_me: failed program was:" >&5
3955 sed 's/^/| /' conftest.$ac_ext >&5
3956
3957 CFLAGS=""
3958 cat >conftest.$ac_ext <<_ACEOF
3959 /* confdefs.h. */
3960 _ACEOF
3961 cat confdefs.h >>conftest.$ac_ext
3962 cat >>conftest.$ac_ext <<_ACEOF
3963 /* end confdefs.h. */
3964
3965 int
3966 main ()
3967 {
3968
3969 ;
3970 return 0;
3971 }
3972 _ACEOF
3973 rm -f conftest.$ac_objext
3974 if { (ac_try="$ac_compile"
3975 case "(($ac_try" in
3976 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3977 *) ac_try_echo=$ac_try;;
3978 esac
3979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3980 (eval "$ac_compile") 2>conftest.er1
3981 ac_status=$?
3982 grep -v '^ *+' conftest.er1 >conftest.err
3983 rm -f conftest.er1
3984 cat conftest.err >&5
3985 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3986 (exit $ac_status); } && {
3987 test -z "$ac_c_werror_flag" ||
3988 test ! -s conftest.err
3989 } && test -s conftest.$ac_objext; then
3990 :
3991 else
3992 echo "$as_me: failed program was:" >&5
3993 sed 's/^/| /' conftest.$ac_ext >&5
3994
3995 ac_c_werror_flag=$ac_save_c_werror_flag
3996 CFLAGS="-g"
3997 cat >conftest.$ac_ext <<_ACEOF
3998 /* confdefs.h. */
3999 _ACEOF
4000 cat confdefs.h >>conftest.$ac_ext
4001 cat >>conftest.$ac_ext <<_ACEOF
4002 /* end confdefs.h. */
4003
4004 int
4005 main ()
4006 {
4007
4008 ;
4009 return 0;
4010 }
4011 _ACEOF
4012 rm -f conftest.$ac_objext
4013 if { (ac_try="$ac_compile"
4014 case "(($ac_try" in
4015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4016 *) ac_try_echo=$ac_try;;
4017 esac
4018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4019 (eval "$ac_compile") 2>conftest.er1
4020 ac_status=$?
4021 grep -v '^ *+' conftest.er1 >conftest.err
4022 rm -f conftest.er1
4023 cat conftest.err >&5
4024 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4025 (exit $ac_status); } && {
4026 test -z "$ac_c_werror_flag" ||
4027 test ! -s conftest.err
4028 } && test -s conftest.$ac_objext; then
4029 ac_cv_prog_cc_g=yes
4030 else
4031 echo "$as_me: failed program was:" >&5
4032 sed 's/^/| /' conftest.$ac_ext >&5
4033
4034
4035 fi
4036
4037 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4038 fi
4039
4040 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4041 fi
4042
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4044 ac_c_werror_flag=$ac_save_c_werror_flag
4045 fi
4046 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4047 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4048 if test "$ac_test_CFLAGS" = set; then
4049 CFLAGS=$ac_save_CFLAGS
4050 elif test $ac_cv_prog_cc_g = yes; then
4051 if test "$GCC" = yes; then
4052 CFLAGS="-g -O2"
4053 else
4054 CFLAGS="-g"
4055 fi
4056 else
4057 if test "$GCC" = yes; then
4058 CFLAGS="-O2"
4059 else
4060 CFLAGS=
4061 fi
4062 fi
4063 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4064 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4065 if test "${ac_cv_prog_cc_c89+set}" = set; then
4066 echo $ECHO_N "(cached) $ECHO_C" >&6
4067 else
4068 ac_cv_prog_cc_c89=no
4069 ac_save_CC=$CC
4070 cat >conftest.$ac_ext <<_ACEOF
4071 /* confdefs.h. */
4072 _ACEOF
4073 cat confdefs.h >>conftest.$ac_ext
4074 cat >>conftest.$ac_ext <<_ACEOF
4075 /* end confdefs.h. */
4076 #include <stdarg.h>
4077 #include <stdio.h>
4078 #include <sys/types.h>
4079 #include <sys/stat.h>
4080 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4081 struct buf { int x; };
4082 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4083 static char *e (p, i)
4084 char **p;
4085 int i;
4086 {
4087 return p[i];
4088 }
4089 static char *f (char * (*g) (char **, int), char **p, ...)
4090 {
4091 char *s;
4092 va_list v;
4093 va_start (v,p);
4094 s = g (p, va_arg (v,int));
4095 va_end (v);
4096 return s;
4097 }
4098
4099 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4100 function prototypes and stuff, but not '\xHH' hex character constants.
4101 These don't provoke an error unfortunately, instead are silently treated
4102 as 'x'. The following induces an error, until -std is added to get
4103 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4104 array size at least. It's necessary to write '\x00'==0 to get something
4105 that's true only with -std. */
4106 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4107
4108 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4109 inside strings and character constants. */
4110 #define FOO(x) 'x'
4111 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4112
4113 int test (int i, double x);
4114 struct s1 {int (*f) (int a);};
4115 struct s2 {int (*f) (double a);};
4116 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4117 int argc;
4118 char **argv;
4119 int
4120 main ()
4121 {
4122 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4123 ;
4124 return 0;
4125 }
4126 _ACEOF
4127 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4128 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4129 do
4130 CC="$ac_save_CC $ac_arg"
4131 rm -f conftest.$ac_objext
4132 if { (ac_try="$ac_compile"
4133 case "(($ac_try" in
4134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4135 *) ac_try_echo=$ac_try;;
4136 esac
4137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4138 (eval "$ac_compile") 2>conftest.er1
4139 ac_status=$?
4140 grep -v '^ *+' conftest.er1 >conftest.err
4141 rm -f conftest.er1
4142 cat conftest.err >&5
4143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144 (exit $ac_status); } && {
4145 test -z "$ac_c_werror_flag" ||
4146 test ! -s conftest.err
4147 } && test -s conftest.$ac_objext; then
4148 ac_cv_prog_cc_c89=$ac_arg
4149 else
4150 echo "$as_me: failed program was:" >&5
4151 sed 's/^/| /' conftest.$ac_ext >&5
4152
4153
4154 fi
4155
4156 rm -f core conftest.err conftest.$ac_objext
4157 test "x$ac_cv_prog_cc_c89" != "xno" && break
4158 done
4159 rm -f conftest.$ac_ext
4160 CC=$ac_save_CC
4161
4162 fi
4163 # AC_CACHE_VAL
4164 case "x$ac_cv_prog_cc_c89" in
4165 x)
4166 { echo "$as_me:$LINENO: result: none needed" >&5
4167 echo "${ECHO_T}none needed" >&6; } ;;
4168 xno)
4169 { echo "$as_me:$LINENO: result: unsupported" >&5
4170 echo "${ECHO_T}unsupported" >&6; } ;;
4171 *)
4172 CC="$CC $ac_cv_prog_cc_c89"
4173 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4174 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4175 esac
4176
4177
4178 ac_ext=c
4179 ac_cpp='$CPP $CPPFLAGS'
4180 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4181 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4182 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4183
4184
4185 # On Suns, sometimes $CPP names a directory.
4186 if test -n "$CPP" && test -d "$CPP"; then
4187 CPP=
4188 fi
4189
4190 #### Some systems specify a CPP to use unless we are using GCC.
4191 #### Now that we know whether we are using GCC, we can decide whether
4192 #### to use that one.
4193 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4194 then
4195 CPP="$NON_GNU_CPP"
4196 fi
4197
4198 #### Some systems specify a CC to use unless we are using GCC.
4199 #### Now that we know whether we are using GCC, we can decide whether
4200 #### to use that one.
4201 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4202 test x$cc_specified != xyes
4203 then
4204 CC="$NON_GNU_CC"
4205 fi
4206
4207 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4208 then
4209 CC="$CC $GCC_TEST_OPTIONS"
4210 fi
4211
4212 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4213 then
4214 CC="$CC $NON_GCC_TEST_OPTIONS"
4215 fi
4216
4217
4218 ac_ext=c
4219 ac_cpp='$CPP $CPPFLAGS'
4220 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4221 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4222 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4223 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4224 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4225 # On Suns, sometimes $CPP names a directory.
4226 if test -n "$CPP" && test -d "$CPP"; then
4227 CPP=
4228 fi
4229 if test -z "$CPP"; then
4230 if test "${ac_cv_prog_CPP+set}" = set; then
4231 echo $ECHO_N "(cached) $ECHO_C" >&6
4232 else
4233 # Double quotes because CPP needs to be expanded
4234 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4235 do
4236 ac_preproc_ok=false
4237 for ac_c_preproc_warn_flag in '' yes
4238 do
4239 # Use a header file that comes with gcc, so configuring glibc
4240 # with a fresh cross-compiler works.
4241 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4242 # <limits.h> exists even on freestanding compilers.
4243 # On the NeXT, cc -E runs the code through the compiler's parser,
4244 # not just through cpp. "Syntax error" is here to catch this case.
4245 cat >conftest.$ac_ext <<_ACEOF
4246 /* confdefs.h. */
4247 _ACEOF
4248 cat confdefs.h >>conftest.$ac_ext
4249 cat >>conftest.$ac_ext <<_ACEOF
4250 /* end confdefs.h. */
4251 #ifdef __STDC__
4252 # include <limits.h>
4253 #else
4254 # include <assert.h>
4255 #endif
4256 Syntax error
4257 _ACEOF
4258 if { (ac_try="$ac_cpp conftest.$ac_ext"
4259 case "(($ac_try" in
4260 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4261 *) ac_try_echo=$ac_try;;
4262 esac
4263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4264 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4265 ac_status=$?
4266 grep -v '^ *+' conftest.er1 >conftest.err
4267 rm -f conftest.er1
4268 cat conftest.err >&5
4269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270 (exit $ac_status); } >/dev/null && {
4271 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4272 test ! -s conftest.err
4273 }; then
4274 :
4275 else
4276 echo "$as_me: failed program was:" >&5
4277 sed 's/^/| /' conftest.$ac_ext >&5
4278
4279 # Broken: fails on valid input.
4280 continue
4281 fi
4282
4283 rm -f conftest.err conftest.$ac_ext
4284
4285 # OK, works on sane cases. Now check whether nonexistent headers
4286 # can be detected and how.
4287 cat >conftest.$ac_ext <<_ACEOF
4288 /* confdefs.h. */
4289 _ACEOF
4290 cat confdefs.h >>conftest.$ac_ext
4291 cat >>conftest.$ac_ext <<_ACEOF
4292 /* end confdefs.h. */
4293 #include <ac_nonexistent.h>
4294 _ACEOF
4295 if { (ac_try="$ac_cpp conftest.$ac_ext"
4296 case "(($ac_try" in
4297 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4298 *) ac_try_echo=$ac_try;;
4299 esac
4300 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4301 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4302 ac_status=$?
4303 grep -v '^ *+' conftest.er1 >conftest.err
4304 rm -f conftest.er1
4305 cat conftest.err >&5
4306 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4307 (exit $ac_status); } >/dev/null && {
4308 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4309 test ! -s conftest.err
4310 }; then
4311 # Broken: success on invalid input.
4312 continue
4313 else
4314 echo "$as_me: failed program was:" >&5
4315 sed 's/^/| /' conftest.$ac_ext >&5
4316
4317 # Passes both tests.
4318 ac_preproc_ok=:
4319 break
4320 fi
4321
4322 rm -f conftest.err conftest.$ac_ext
4323
4324 done
4325 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4326 rm -f conftest.err conftest.$ac_ext
4327 if $ac_preproc_ok; then
4328 break
4329 fi
4330
4331 done
4332 ac_cv_prog_CPP=$CPP
4333
4334 fi
4335 CPP=$ac_cv_prog_CPP
4336 else
4337 ac_cv_prog_CPP=$CPP
4338 fi
4339 { echo "$as_me:$LINENO: result: $CPP" >&5
4340 echo "${ECHO_T}$CPP" >&6; }
4341 ac_preproc_ok=false
4342 for ac_c_preproc_warn_flag in '' yes
4343 do
4344 # Use a header file that comes with gcc, so configuring glibc
4345 # with a fresh cross-compiler works.
4346 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4347 # <limits.h> exists even on freestanding compilers.
4348 # On the NeXT, cc -E runs the code through the compiler's parser,
4349 # not just through cpp. "Syntax error" is here to catch this case.
4350 cat >conftest.$ac_ext <<_ACEOF
4351 /* confdefs.h. */
4352 _ACEOF
4353 cat confdefs.h >>conftest.$ac_ext
4354 cat >>conftest.$ac_ext <<_ACEOF
4355 /* end confdefs.h. */
4356 #ifdef __STDC__
4357 # include <limits.h>
4358 #else
4359 # include <assert.h>
4360 #endif
4361 Syntax error
4362 _ACEOF
4363 if { (ac_try="$ac_cpp conftest.$ac_ext"
4364 case "(($ac_try" in
4365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4366 *) ac_try_echo=$ac_try;;
4367 esac
4368 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4369 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4370 ac_status=$?
4371 grep -v '^ *+' conftest.er1 >conftest.err
4372 rm -f conftest.er1
4373 cat conftest.err >&5
4374 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4375 (exit $ac_status); } >/dev/null && {
4376 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4377 test ! -s conftest.err
4378 }; then
4379 :
4380 else
4381 echo "$as_me: failed program was:" >&5
4382 sed 's/^/| /' conftest.$ac_ext >&5
4383
4384 # Broken: fails on valid input.
4385 continue
4386 fi
4387
4388 rm -f conftest.err conftest.$ac_ext
4389
4390 # OK, works on sane cases. Now check whether nonexistent headers
4391 # can be detected and how.
4392 cat >conftest.$ac_ext <<_ACEOF
4393 /* confdefs.h. */
4394 _ACEOF
4395 cat confdefs.h >>conftest.$ac_ext
4396 cat >>conftest.$ac_ext <<_ACEOF
4397 /* end confdefs.h. */
4398 #include <ac_nonexistent.h>
4399 _ACEOF
4400 if { (ac_try="$ac_cpp conftest.$ac_ext"
4401 case "(($ac_try" in
4402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4403 *) ac_try_echo=$ac_try;;
4404 esac
4405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4406 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4407 ac_status=$?
4408 grep -v '^ *+' conftest.er1 >conftest.err
4409 rm -f conftest.er1
4410 cat conftest.err >&5
4411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4412 (exit $ac_status); } >/dev/null && {
4413 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4414 test ! -s conftest.err
4415 }; then
4416 # Broken: success on invalid input.
4417 continue
4418 else
4419 echo "$as_me: failed program was:" >&5
4420 sed 's/^/| /' conftest.$ac_ext >&5
4421
4422 # Passes both tests.
4423 ac_preproc_ok=:
4424 break
4425 fi
4426
4427 rm -f conftest.err conftest.$ac_ext
4428
4429 done
4430 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4431 rm -f conftest.err conftest.$ac_ext
4432 if $ac_preproc_ok; then
4433 :
4434 else
4435 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4436 See \`config.log' for more details." >&5
4437 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4438 See \`config.log' for more details." >&2;}
4439 { (exit 1); exit 1; }; }
4440 fi
4441
4442 ac_ext=c
4443 ac_cpp='$CPP $CPPFLAGS'
4444 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4445 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4446 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4447
4448
4449 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4450 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4451 if test "${ac_cv_path_GREP+set}" = set; then
4452 echo $ECHO_N "(cached) $ECHO_C" >&6
4453 else
4454 # Extract the first word of "grep ggrep" to use in msg output
4455 if test -z "$GREP"; then
4456 set dummy grep ggrep; ac_prog_name=$2
4457 if test "${ac_cv_path_GREP+set}" = set; then
4458 echo $ECHO_N "(cached) $ECHO_C" >&6
4459 else
4460 ac_path_GREP_found=false
4461 # Loop through the user's path and test for each of PROGNAME-LIST
4462 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4463 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4464 do
4465 IFS=$as_save_IFS
4466 test -z "$as_dir" && as_dir=.
4467 for ac_prog in grep ggrep; do
4468 for ac_exec_ext in '' $ac_executable_extensions; do
4469 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4470 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4471 # Check for GNU ac_path_GREP and select it if it is found.
4472 # Check for GNU $ac_path_GREP
4473 case `"$ac_path_GREP" --version 2>&1` in
4474 *GNU*)
4475 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4476 *)
4477 ac_count=0
4478 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4479 while :
4480 do
4481 cat "conftest.in" "conftest.in" >"conftest.tmp"
4482 mv "conftest.tmp" "conftest.in"
4483 cp "conftest.in" "conftest.nl"
4484 echo 'GREP' >> "conftest.nl"
4485 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4486 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4487 ac_count=`expr $ac_count + 1`
4488 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4489 # Best one so far, save it but keep looking for a better one
4490 ac_cv_path_GREP="$ac_path_GREP"
4491 ac_path_GREP_max=$ac_count
4492 fi
4493 # 10*(2^10) chars as input seems more than enough
4494 test $ac_count -gt 10 && break
4495 done
4496 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4497 esac
4498
4499
4500 $ac_path_GREP_found && break 3
4501 done
4502 done
4503
4504 done
4505 IFS=$as_save_IFS
4506
4507
4508 fi
4509
4510 GREP="$ac_cv_path_GREP"
4511 if test -z "$GREP"; then
4512 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4513 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4514 { (exit 1); exit 1; }; }
4515 fi
4516
4517 else
4518 ac_cv_path_GREP=$GREP
4519 fi
4520
4521
4522 fi
4523 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4524 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4525 GREP="$ac_cv_path_GREP"
4526
4527
4528 { echo "$as_me:$LINENO: checking for egrep" >&5
4529 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4530 if test "${ac_cv_path_EGREP+set}" = set; then
4531 echo $ECHO_N "(cached) $ECHO_C" >&6
4532 else
4533 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4534 then ac_cv_path_EGREP="$GREP -E"
4535 else
4536 # Extract the first word of "egrep" to use in msg output
4537 if test -z "$EGREP"; then
4538 set dummy egrep; ac_prog_name=$2
4539 if test "${ac_cv_path_EGREP+set}" = set; then
4540 echo $ECHO_N "(cached) $ECHO_C" >&6
4541 else
4542 ac_path_EGREP_found=false
4543 # Loop through the user's path and test for each of PROGNAME-LIST
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4546 do
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_prog in egrep; do
4550 for ac_exec_ext in '' $ac_executable_extensions; do
4551 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4552 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4553 # Check for GNU ac_path_EGREP and select it if it is found.
4554 # Check for GNU $ac_path_EGREP
4555 case `"$ac_path_EGREP" --version 2>&1` in
4556 *GNU*)
4557 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4558 *)
4559 ac_count=0
4560 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4561 while :
4562 do
4563 cat "conftest.in" "conftest.in" >"conftest.tmp"
4564 mv "conftest.tmp" "conftest.in"
4565 cp "conftest.in" "conftest.nl"
4566 echo 'EGREP' >> "conftest.nl"
4567 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4568 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4569 ac_count=`expr $ac_count + 1`
4570 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4571 # Best one so far, save it but keep looking for a better one
4572 ac_cv_path_EGREP="$ac_path_EGREP"
4573 ac_path_EGREP_max=$ac_count
4574 fi
4575 # 10*(2^10) chars as input seems more than enough
4576 test $ac_count -gt 10 && break
4577 done
4578 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4579 esac
4580
4581
4582 $ac_path_EGREP_found && break 3
4583 done
4584 done
4585
4586 done
4587 IFS=$as_save_IFS
4588
4589
4590 fi
4591
4592 EGREP="$ac_cv_path_EGREP"
4593 if test -z "$EGREP"; then
4594 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4595 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4596 { (exit 1); exit 1; }; }
4597 fi
4598
4599 else
4600 ac_cv_path_EGREP=$EGREP
4601 fi
4602
4603
4604 fi
4605 fi
4606 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4607 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4608 EGREP="$ac_cv_path_EGREP"
4609
4610
4611
4612 { echo "$as_me:$LINENO: checking for AIX" >&5
4613 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4614 cat >conftest.$ac_ext <<_ACEOF
4615 /* confdefs.h. */
4616 _ACEOF
4617 cat confdefs.h >>conftest.$ac_ext
4618 cat >>conftest.$ac_ext <<_ACEOF
4619 /* end confdefs.h. */
4620 #ifdef _AIX
4621 yes
4622 #endif
4623
4624 _ACEOF
4625 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4626 $EGREP "yes" >/dev/null 2>&1; then
4627 { echo "$as_me:$LINENO: result: yes" >&5
4628 echo "${ECHO_T}yes" >&6; }
4629 cat >>confdefs.h <<\_ACEOF
4630 #define _ALL_SOURCE 1
4631 _ACEOF
4632
4633 else
4634 { echo "$as_me:$LINENO: result: no" >&5
4635 echo "${ECHO_T}no" >&6; }
4636 fi
4637 rm -f conftest*
4638
4639
4640
4641 cat >>confdefs.h <<\_ACEOF
4642 #define _GNU_SOURCE 1
4643 _ACEOF
4644
4645
4646
4647 ### Use -Wno-pointer-sign if the compiler supports it
4648 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4649 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4650 SAVE_CFLAGS="$CFLAGS"
4651 CFLAGS="$CFLAGS -Wno-pointer-sign"
4652 cat >conftest.$ac_ext <<_ACEOF
4653 /* confdefs.h. */
4654 _ACEOF
4655 cat confdefs.h >>conftest.$ac_ext
4656 cat >>conftest.$ac_ext <<_ACEOF
4657 /* end confdefs.h. */
4658
4659 int
4660 main ()
4661 {
4662
4663 ;
4664 return 0;
4665 }
4666 _ACEOF
4667 rm -f conftest.$ac_objext
4668 if { (ac_try="$ac_compile"
4669 case "(($ac_try" in
4670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4671 *) ac_try_echo=$ac_try;;
4672 esac
4673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4674 (eval "$ac_compile") 2>conftest.er1
4675 ac_status=$?
4676 grep -v '^ *+' conftest.er1 >conftest.err
4677 rm -f conftest.er1
4678 cat conftest.err >&5
4679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4680 (exit $ac_status); } && {
4681 test -z "$ac_c_werror_flag" ||
4682 test ! -s conftest.err
4683 } && test -s conftest.$ac_objext; then
4684 has_option=yes
4685 else
4686 echo "$as_me: failed program was:" >&5
4687 sed 's/^/| /' conftest.$ac_ext >&5
4688
4689 has_option=no
4690 fi
4691
4692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4693 if test $has_option = yes; then
4694 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4695 fi
4696 { echo "$as_me:$LINENO: result: $has_option" >&5
4697 echo "${ECHO_T}$has_option" >&6; }
4698 CFLAGS="$SAVE_CFLAGS"
4699 unset has_option
4700 unset SAVE_CFLAGS
4701
4702 #### Some other nice autoconf tests.
4703
4704 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4705 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4706 LN_S=$as_ln_s
4707 if test "$LN_S" = "ln -s"; then
4708 { echo "$as_me:$LINENO: result: yes" >&5
4709 echo "${ECHO_T}yes" >&6; }
4710 else
4711 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4712 echo "${ECHO_T}no, using $LN_S" >&6; }
4713 fi
4714
4715 ac_ext=c
4716 ac_cpp='$CPP $CPPFLAGS'
4717 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4718 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4719 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4720 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4721 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4722 # On Suns, sometimes $CPP names a directory.
4723 if test -n "$CPP" && test -d "$CPP"; then
4724 CPP=
4725 fi
4726 if test -z "$CPP"; then
4727 if test "${ac_cv_prog_CPP+set}" = set; then
4728 echo $ECHO_N "(cached) $ECHO_C" >&6
4729 else
4730 # Double quotes because CPP needs to be expanded
4731 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4732 do
4733 ac_preproc_ok=false
4734 for ac_c_preproc_warn_flag in '' yes
4735 do
4736 # Use a header file that comes with gcc, so configuring glibc
4737 # with a fresh cross-compiler works.
4738 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4739 # <limits.h> exists even on freestanding compilers.
4740 # On the NeXT, cc -E runs the code through the compiler's parser,
4741 # not just through cpp. "Syntax error" is here to catch this case.
4742 cat >conftest.$ac_ext <<_ACEOF
4743 /* confdefs.h. */
4744 _ACEOF
4745 cat confdefs.h >>conftest.$ac_ext
4746 cat >>conftest.$ac_ext <<_ACEOF
4747 /* end confdefs.h. */
4748 #ifdef __STDC__
4749 # include <limits.h>
4750 #else
4751 # include <assert.h>
4752 #endif
4753 Syntax error
4754 _ACEOF
4755 if { (ac_try="$ac_cpp conftest.$ac_ext"
4756 case "(($ac_try" in
4757 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4758 *) ac_try_echo=$ac_try;;
4759 esac
4760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4761 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4762 ac_status=$?
4763 grep -v '^ *+' conftest.er1 >conftest.err
4764 rm -f conftest.er1
4765 cat conftest.err >&5
4766 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4767 (exit $ac_status); } >/dev/null && {
4768 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4769 test ! -s conftest.err
4770 }; then
4771 :
4772 else
4773 echo "$as_me: failed program was:" >&5
4774 sed 's/^/| /' conftest.$ac_ext >&5
4775
4776 # Broken: fails on valid input.
4777 continue
4778 fi
4779
4780 rm -f conftest.err conftest.$ac_ext
4781
4782 # OK, works on sane cases. Now check whether nonexistent headers
4783 # can be detected and how.
4784 cat >conftest.$ac_ext <<_ACEOF
4785 /* confdefs.h. */
4786 _ACEOF
4787 cat confdefs.h >>conftest.$ac_ext
4788 cat >>conftest.$ac_ext <<_ACEOF
4789 /* end confdefs.h. */
4790 #include <ac_nonexistent.h>
4791 _ACEOF
4792 if { (ac_try="$ac_cpp conftest.$ac_ext"
4793 case "(($ac_try" in
4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4795 *) ac_try_echo=$ac_try;;
4796 esac
4797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4798 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4799 ac_status=$?
4800 grep -v '^ *+' conftest.er1 >conftest.err
4801 rm -f conftest.er1
4802 cat conftest.err >&5
4803 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4804 (exit $ac_status); } >/dev/null && {
4805 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4806 test ! -s conftest.err
4807 }; then
4808 # Broken: success on invalid input.
4809 continue
4810 else
4811 echo "$as_me: failed program was:" >&5
4812 sed 's/^/| /' conftest.$ac_ext >&5
4813
4814 # Passes both tests.
4815 ac_preproc_ok=:
4816 break
4817 fi
4818
4819 rm -f conftest.err conftest.$ac_ext
4820
4821 done
4822 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4823 rm -f conftest.err conftest.$ac_ext
4824 if $ac_preproc_ok; then
4825 break
4826 fi
4827
4828 done
4829 ac_cv_prog_CPP=$CPP
4830
4831 fi
4832 CPP=$ac_cv_prog_CPP
4833 else
4834 ac_cv_prog_CPP=$CPP
4835 fi
4836 { echo "$as_me:$LINENO: result: $CPP" >&5
4837 echo "${ECHO_T}$CPP" >&6; }
4838 ac_preproc_ok=false
4839 for ac_c_preproc_warn_flag in '' yes
4840 do
4841 # Use a header file that comes with gcc, so configuring glibc
4842 # with a fresh cross-compiler works.
4843 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4844 # <limits.h> exists even on freestanding compilers.
4845 # On the NeXT, cc -E runs the code through the compiler's parser,
4846 # not just through cpp. "Syntax error" is here to catch this case.
4847 cat >conftest.$ac_ext <<_ACEOF
4848 /* confdefs.h. */
4849 _ACEOF
4850 cat confdefs.h >>conftest.$ac_ext
4851 cat >>conftest.$ac_ext <<_ACEOF
4852 /* end confdefs.h. */
4853 #ifdef __STDC__
4854 # include <limits.h>
4855 #else
4856 # include <assert.h>
4857 #endif
4858 Syntax error
4859 _ACEOF
4860 if { (ac_try="$ac_cpp conftest.$ac_ext"
4861 case "(($ac_try" in
4862 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4863 *) ac_try_echo=$ac_try;;
4864 esac
4865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4866 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4867 ac_status=$?
4868 grep -v '^ *+' conftest.er1 >conftest.err
4869 rm -f conftest.er1
4870 cat conftest.err >&5
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); } >/dev/null && {
4873 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4874 test ! -s conftest.err
4875 }; then
4876 :
4877 else
4878 echo "$as_me: failed program was:" >&5
4879 sed 's/^/| /' conftest.$ac_ext >&5
4880
4881 # Broken: fails on valid input.
4882 continue
4883 fi
4884
4885 rm -f conftest.err conftest.$ac_ext
4886
4887 # OK, works on sane cases. Now check whether nonexistent headers
4888 # can be detected and how.
4889 cat >conftest.$ac_ext <<_ACEOF
4890 /* confdefs.h. */
4891 _ACEOF
4892 cat confdefs.h >>conftest.$ac_ext
4893 cat >>conftest.$ac_ext <<_ACEOF
4894 /* end confdefs.h. */
4895 #include <ac_nonexistent.h>
4896 _ACEOF
4897 if { (ac_try="$ac_cpp conftest.$ac_ext"
4898 case "(($ac_try" in
4899 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4900 *) ac_try_echo=$ac_try;;
4901 esac
4902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4903 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4904 ac_status=$?
4905 grep -v '^ *+' conftest.er1 >conftest.err
4906 rm -f conftest.er1
4907 cat conftest.err >&5
4908 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4909 (exit $ac_status); } >/dev/null && {
4910 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4911 test ! -s conftest.err
4912 }; then
4913 # Broken: success on invalid input.
4914 continue
4915 else
4916 echo "$as_me: failed program was:" >&5
4917 sed 's/^/| /' conftest.$ac_ext >&5
4918
4919 # Passes both tests.
4920 ac_preproc_ok=:
4921 break
4922 fi
4923
4924 rm -f conftest.err conftest.$ac_ext
4925
4926 done
4927 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4928 rm -f conftest.err conftest.$ac_ext
4929 if $ac_preproc_ok; then
4930 :
4931 else
4932 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4933 See \`config.log' for more details." >&5
4934 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4935 See \`config.log' for more details." >&2;}
4936 { (exit 1); exit 1; }; }
4937 fi
4938
4939 ac_ext=c
4940 ac_cpp='$CPP $CPPFLAGS'
4941 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4942 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4943 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4944
4945 # Find a good install program. We prefer a C program (faster),
4946 # so one script is as good as another. But avoid the broken or
4947 # incompatible versions:
4948 # SysV /etc/install, /usr/sbin/install
4949 # SunOS /usr/etc/install
4950 # IRIX /sbin/install
4951 # AIX /bin/install
4952 # AmigaOS /C/install, which installs bootblocks on floppy discs
4953 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4954 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4955 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4956 # OS/2's system install, which has a completely different semantic
4957 # ./install, which can be erroneously created by make from ./install.sh.
4958 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4959 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4960 if test -z "$INSTALL"; then
4961 if test "${ac_cv_path_install+set}" = set; then
4962 echo $ECHO_N "(cached) $ECHO_C" >&6
4963 else
4964 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4965 for as_dir in $PATH
4966 do
4967 IFS=$as_save_IFS
4968 test -z "$as_dir" && as_dir=.
4969 # Account for people who put trailing slashes in PATH elements.
4970 case $as_dir/ in
4971 ./ | .// | /cC/* | \
4972 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4973 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4974 /usr/ucb/* ) ;;
4975 *)
4976 # OSF1 and SCO ODT 3.0 have their own names for install.
4977 # Don't use installbsd from OSF since it installs stuff as root
4978 # by default.
4979 for ac_prog in ginstall scoinst install; do
4980 for ac_exec_ext in '' $ac_executable_extensions; do
4981 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
4982 if test $ac_prog = install &&
4983 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4984 # AIX install. It has an incompatible calling convention.
4985 :
4986 elif test $ac_prog = install &&
4987 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4988 # program-specific install script used by HP pwplus--don't use.
4989 :
4990 else
4991 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4992 break 3
4993 fi
4994 fi
4995 done
4996 done
4997 ;;
4998 esac
4999 done
5000 IFS=$as_save_IFS
5001
5002
5003 fi
5004 if test "${ac_cv_path_install+set}" = set; then
5005 INSTALL=$ac_cv_path_install
5006 else
5007 # As a last resort, use the slow shell script. Don't cache a
5008 # value for INSTALL within a source directory, because that will
5009 # break other packages using the cache if that directory is
5010 # removed, or if the value is a relative name.
5011 INSTALL=$ac_install_sh
5012 fi
5013 fi
5014 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5015 echo "${ECHO_T}$INSTALL" >&6; }
5016
5017 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5018 # It thinks the first close brace ends the variable substitution.
5019 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5020
5021 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5022
5023 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5024
5025 if test "x$RANLIB" = x; then
5026 if test -n "$ac_tool_prefix"; then
5027 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5028 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5029 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5030 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5031 if test "${ac_cv_prog_RANLIB+set}" = set; then
5032 echo $ECHO_N "(cached) $ECHO_C" >&6
5033 else
5034 if test -n "$RANLIB"; then
5035 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5036 else
5037 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5038 for as_dir in $PATH
5039 do
5040 IFS=$as_save_IFS
5041 test -z "$as_dir" && as_dir=.
5042 for ac_exec_ext in '' $ac_executable_extensions; do
5043 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5044 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5045 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5046 break 2
5047 fi
5048 done
5049 done
5050 IFS=$as_save_IFS
5051
5052 fi
5053 fi
5054 RANLIB=$ac_cv_prog_RANLIB
5055 if test -n "$RANLIB"; then
5056 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5057 echo "${ECHO_T}$RANLIB" >&6; }
5058 else
5059 { echo "$as_me:$LINENO: result: no" >&5
5060 echo "${ECHO_T}no" >&6; }
5061 fi
5062
5063
5064 fi
5065 if test -z "$ac_cv_prog_RANLIB"; then
5066 ac_ct_RANLIB=$RANLIB
5067 # Extract the first word of "ranlib", so it can be a program name with args.
5068 set dummy ranlib; ac_word=$2
5069 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5070 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5071 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5072 echo $ECHO_N "(cached) $ECHO_C" >&6
5073 else
5074 if test -n "$ac_ct_RANLIB"; then
5075 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5076 else
5077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5078 for as_dir in $PATH
5079 do
5080 IFS=$as_save_IFS
5081 test -z "$as_dir" && as_dir=.
5082 for ac_exec_ext in '' $ac_executable_extensions; do
5083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5084 ac_cv_prog_ac_ct_RANLIB="ranlib"
5085 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5086 break 2
5087 fi
5088 done
5089 done
5090 IFS=$as_save_IFS
5091
5092 fi
5093 fi
5094 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5095 if test -n "$ac_ct_RANLIB"; then
5096 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5097 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5098 else
5099 { echo "$as_me:$LINENO: result: no" >&5
5100 echo "${ECHO_T}no" >&6; }
5101 fi
5102
5103 if test "x$ac_ct_RANLIB" = x; then
5104 RANLIB=":"
5105 else
5106 case $cross_compiling:$ac_tool_warned in
5107 yes:)
5108 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5109 whose name does not start with the host triplet. If you think this
5110 configuration is useful to you, please write to autoconf@gnu.org." >&5
5111 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5112 whose name does not start with the host triplet. If you think this
5113 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5114 ac_tool_warned=yes ;;
5115 esac
5116 RANLIB=$ac_ct_RANLIB
5117 fi
5118 else
5119 RANLIB="$ac_cv_prog_RANLIB"
5120 fi
5121
5122 fi
5123 # Extract the first word of "install-info", so it can be a program name with args.
5124 set dummy install-info; ac_word=$2
5125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5127 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5128 echo $ECHO_N "(cached) $ECHO_C" >&6
5129 else
5130 case $INSTALL_INFO in
5131 [\\/]* | ?:[\\/]*)
5132 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5133 ;;
5134 *)
5135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5136 for as_dir in $PATH
5137 do
5138 IFS=$as_save_IFS
5139 test -z "$as_dir" && as_dir=.
5140 for ac_exec_ext in '' $ac_executable_extensions; do
5141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5142 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5144 break 2
5145 fi
5146 done
5147 done
5148 IFS=$as_save_IFS
5149
5150 ;;
5151 esac
5152 fi
5153 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5154 if test -n "$INSTALL_INFO"; then
5155 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5156 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5157 else
5158 { echo "$as_me:$LINENO: result: no" >&5
5159 echo "${ECHO_T}no" >&6; }
5160 fi
5161
5162
5163 # Extract the first word of "install-info", so it can be a program name with args.
5164 set dummy install-info; ac_word=$2
5165 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5166 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5167 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5168 echo $ECHO_N "(cached) $ECHO_C" >&6
5169 else
5170 case $INSTALL_INFO in
5171 [\\/]* | ?:[\\/]*)
5172 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5173 ;;
5174 *)
5175 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5176 for as_dir in /usr/sbin
5177 do
5178 IFS=$as_save_IFS
5179 test -z "$as_dir" && as_dir=.
5180 for ac_exec_ext in '' $ac_executable_extensions; do
5181 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5182 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5183 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5184 break 2
5185 fi
5186 done
5187 done
5188 IFS=$as_save_IFS
5189
5190 ;;
5191 esac
5192 fi
5193 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5194 if test -n "$INSTALL_INFO"; then
5195 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5196 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5197 else
5198 { echo "$as_me:$LINENO: result: no" >&5
5199 echo "${ECHO_T}no" >&6; }
5200 fi
5201
5202
5203 # Extract the first word of "install-info", so it can be a program name with args.
5204 set dummy install-info; ac_word=$2
5205 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5206 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5207 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5208 echo $ECHO_N "(cached) $ECHO_C" >&6
5209 else
5210 case $INSTALL_INFO in
5211 [\\/]* | ?:[\\/]*)
5212 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5213 ;;
5214 *)
5215 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5216 for as_dir in /sbin
5217 do
5218 IFS=$as_save_IFS
5219 test -z "$as_dir" && as_dir=.
5220 for ac_exec_ext in '' $ac_executable_extensions; do
5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5222 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5223 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5224 break 2
5225 fi
5226 done
5227 done
5228 IFS=$as_save_IFS
5229
5230 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5231 ;;
5232 esac
5233 fi
5234 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5235 if test -n "$INSTALL_INFO"; then
5236 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5237 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5238 else
5239 { echo "$as_me:$LINENO: result: no" >&5
5240 echo "${ECHO_T}no" >&6; }
5241 fi
5242
5243
5244 # Extract the first word of "gzip", so it can be a program name with args.
5245 set dummy gzip; ac_word=$2
5246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5248 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5249 echo $ECHO_N "(cached) $ECHO_C" >&6
5250 else
5251 case $GZIP_PROG in
5252 [\\/]* | ?:[\\/]*)
5253 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5254 ;;
5255 *)
5256 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5257 for as_dir in $PATH
5258 do
5259 IFS=$as_save_IFS
5260 test -z "$as_dir" && as_dir=.
5261 for ac_exec_ext in '' $ac_executable_extensions; do
5262 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5263 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5264 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5265 break 2
5266 fi
5267 done
5268 done
5269 IFS=$as_save_IFS
5270
5271 ;;
5272 esac
5273 fi
5274 GZIP_PROG=$ac_cv_path_GZIP_PROG
5275 if test -n "$GZIP_PROG"; then
5276 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5277 echo "${ECHO_T}$GZIP_PROG" >&6; }
5278 else
5279 { echo "$as_me:$LINENO: result: no" >&5
5280 echo "${ECHO_T}no" >&6; }
5281 fi
5282
5283
5284
5285
5286 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5287 then
5288 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5289 fi
5290
5291 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5292 then
5293 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5294 fi
5295
5296
5297 late_LDFLAGS=$LDFLAGS
5298 if test "$GCC" = yes; then
5299 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5300 else
5301 LDFLAGS="$LDFLAGS -znocombreloc"
5302 fi
5303
5304 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5305 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5306 cat >conftest.$ac_ext <<_ACEOF
5307 main(){return 0;}
5308 _ACEOF
5309 rm -f conftest.$ac_objext conftest$ac_exeext
5310 if { (ac_try="$ac_link"
5311 case "(($ac_try" in
5312 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5313 *) ac_try_echo=$ac_try;;
5314 esac
5315 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5316 (eval "$ac_link") 2>conftest.er1
5317 ac_status=$?
5318 grep -v '^ *+' conftest.er1 >conftest.err
5319 rm -f conftest.er1
5320 cat conftest.err >&5
5321 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5322 (exit $ac_status); } && {
5323 test -z "$ac_c_werror_flag" ||
5324 test ! -s conftest.err
5325 } && test -s conftest$ac_exeext &&
5326 $as_test_x conftest$ac_exeext; then
5327 { echo "$as_me:$LINENO: result: yes" >&5
5328 echo "${ECHO_T}yes" >&6; }
5329 else
5330 echo "$as_me: failed program was:" >&5
5331 sed 's/^/| /' conftest.$ac_ext >&5
5332
5333 LDFLAGS=$late_LDFLAGS
5334 { echo "$as_me:$LINENO: result: no" >&5
5335 echo "${ECHO_T}no" >&6; }
5336 fi
5337
5338 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5339 conftest$ac_exeext conftest.$ac_ext
5340
5341 #### Extract some information from the operating system and machine files.
5342
5343 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5344 - which libraries the lib-src programs will want, and
5345 - whether the GNU malloc routines are usable..." >&5
5346 echo "$as_me: checking the machine- and system-dependent files to find out
5347 - which libraries the lib-src programs will want, and
5348 - whether the GNU malloc routines are usable..." >&6;}
5349
5350 ### First figure out CFLAGS (which we use for running the compiler here)
5351 ### and REAL_CFLAGS (which we use for real compilation).
5352 ### The two are the same except on a few systems, where they are made
5353 ### different to work around various lossages. For example,
5354 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5355 ### as implying static linking.
5356
5357 ### If the CFLAGS env var is specified, we use that value
5358 ### instead of the default.
5359
5360 ### It's not important that this name contain the PID; you can't run
5361 ### two configures in the same directory and have anything work
5362 ### anyway.
5363 tempcname="conftest.c"
5364
5365 echo '
5366 #include "'${srcdir}'/src/'${opsysfile}'"
5367 #include "'${srcdir}'/src/'${machfile}'"
5368 #ifndef LIBS_MACHINE
5369 #define LIBS_MACHINE
5370 #endif
5371 #ifndef LIBS_SYSTEM
5372 #define LIBS_SYSTEM
5373 #endif
5374 #ifndef C_SWITCH_SYSTEM
5375 #define C_SWITCH_SYSTEM
5376 #endif
5377 #ifndef C_SWITCH_MACHINE
5378 #define C_SWITCH_MACHINE
5379 #endif
5380 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5381 configure___ c_switch_system=C_SWITCH_SYSTEM
5382 configure___ c_switch_machine=C_SWITCH_MACHINE
5383
5384 #ifndef LIB_X11_LIB
5385 #define LIB_X11_LIB -lX11
5386 #endif
5387
5388 #ifndef LIBX11_MACHINE
5389 #define LIBX11_MACHINE
5390 #endif
5391
5392 #ifndef LIBX11_SYSTEM
5393 #define LIBX11_SYSTEM
5394 #endif
5395 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5396
5397 #ifdef UNEXEC
5398 configure___ unexec=UNEXEC
5399 #else
5400 configure___ unexec=unexec.o
5401 #endif
5402
5403 #ifdef SYSTEM_MALLOC
5404 configure___ system_malloc=yes
5405 #else
5406 configure___ system_malloc=no
5407 #endif
5408
5409 #ifdef USE_MMAP_FOR_BUFFERS
5410 configure___ use_mmap_for_buffers=yes
5411 #else
5412 configure___ use_mmap_for_buffers=no
5413 #endif
5414
5415 #ifndef C_DEBUG_SWITCH
5416 #define C_DEBUG_SWITCH -g
5417 #endif
5418
5419 #ifndef C_OPTIMIZE_SWITCH
5420 #ifdef __GNUC__
5421 #define C_OPTIMIZE_SWITCH -O2
5422 #else
5423 #define C_OPTIMIZE_SWITCH -O
5424 #endif
5425 #endif
5426
5427 #ifndef C_WARNINGS_SWITCH
5428 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5429 #endif
5430
5431 #ifndef LD_SWITCH_MACHINE
5432 #define LD_SWITCH_MACHINE
5433 #endif
5434
5435 #ifndef LD_SWITCH_SYSTEM
5436 #define LD_SWITCH_SYSTEM
5437 #endif
5438
5439 #ifndef LD_SWITCH_X_SITE_AUX
5440 #define LD_SWITCH_X_SITE_AUX
5441 #endif
5442
5443 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5444 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5445
5446 #ifdef THIS_IS_CONFIGURE
5447
5448 /* Get the CFLAGS for tests in configure. */
5449 #ifdef __GNUC__
5450 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5451 #else
5452 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5453 #endif
5454
5455 #else /* not THIS_IS_CONFIGURE */
5456
5457 /* Get the CFLAGS for real compilation. */
5458 #ifdef __GNUC__
5459 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5460 #else
5461 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5462 #endif
5463
5464 #endif /* not THIS_IS_CONFIGURE */
5465 ' > ${tempcname}
5466
5467 # The value of CPP is a quoted variable reference, so we need to do this
5468 # to get its actual value...
5469 CPP=`eval "echo $CPP"`
5470 eval `${CPP} -Isrc ${tempcname} \
5471 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5472 if test "x$SPECIFIED_CFLAGS" = x; then
5473 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5474 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5475 else
5476 REAL_CFLAGS="$CFLAGS"
5477 fi
5478 rm ${tempcname}
5479
5480 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5481
5482 ### Make sure subsequent tests use flags consistent with the build flags.
5483
5484 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5485 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5486 else
5487 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5488 fi
5489
5490
5491
5492 # Check whether --enable-largefile was given.
5493 if test "${enable_largefile+set}" = set; then
5494 enableval=$enable_largefile;
5495 fi
5496
5497 if test "$enable_largefile" != no; then
5498
5499 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5500 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5501 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5502 echo $ECHO_N "(cached) $ECHO_C" >&6
5503 else
5504 ac_cv_sys_largefile_CC=no
5505 if test "$GCC" != yes; then
5506 ac_save_CC=$CC
5507 while :; do
5508 # IRIX 6.2 and later do not support large files by default,
5509 # so use the C compiler's -n32 option if that helps.
5510 cat >conftest.$ac_ext <<_ACEOF
5511 /* confdefs.h. */
5512 _ACEOF
5513 cat confdefs.h >>conftest.$ac_ext
5514 cat >>conftest.$ac_ext <<_ACEOF
5515 /* end confdefs.h. */
5516 #include <sys/types.h>
5517 /* Check that off_t can represent 2**63 - 1 correctly.
5518 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5519 since some C++ compilers masquerading as C compilers
5520 incorrectly reject 9223372036854775807. */
5521 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5522 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5523 && LARGE_OFF_T % 2147483647 == 1)
5524 ? 1 : -1];
5525 int
5526 main ()
5527 {
5528
5529 ;
5530 return 0;
5531 }
5532 _ACEOF
5533 rm -f conftest.$ac_objext
5534 if { (ac_try="$ac_compile"
5535 case "(($ac_try" in
5536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5537 *) ac_try_echo=$ac_try;;
5538 esac
5539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5540 (eval "$ac_compile") 2>conftest.er1
5541 ac_status=$?
5542 grep -v '^ *+' conftest.er1 >conftest.err
5543 rm -f conftest.er1
5544 cat conftest.err >&5
5545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5546 (exit $ac_status); } && {
5547 test -z "$ac_c_werror_flag" ||
5548 test ! -s conftest.err
5549 } && test -s conftest.$ac_objext; then
5550 break
5551 else
5552 echo "$as_me: failed program was:" >&5
5553 sed 's/^/| /' conftest.$ac_ext >&5
5554
5555
5556 fi
5557
5558 rm -f core conftest.err conftest.$ac_objext
5559 CC="$CC -n32"
5560 rm -f conftest.$ac_objext
5561 if { (ac_try="$ac_compile"
5562 case "(($ac_try" in
5563 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5564 *) ac_try_echo=$ac_try;;
5565 esac
5566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5567 (eval "$ac_compile") 2>conftest.er1
5568 ac_status=$?
5569 grep -v '^ *+' conftest.er1 >conftest.err
5570 rm -f conftest.er1
5571 cat conftest.err >&5
5572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5573 (exit $ac_status); } && {
5574 test -z "$ac_c_werror_flag" ||
5575 test ! -s conftest.err
5576 } && test -s conftest.$ac_objext; then
5577 ac_cv_sys_largefile_CC=' -n32'; break
5578 else
5579 echo "$as_me: failed program was:" >&5
5580 sed 's/^/| /' conftest.$ac_ext >&5
5581
5582
5583 fi
5584
5585 rm -f core conftest.err conftest.$ac_objext
5586 break
5587 done
5588 CC=$ac_save_CC
5589 rm -f conftest.$ac_ext
5590 fi
5591 fi
5592 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5593 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5594 if test "$ac_cv_sys_largefile_CC" != no; then
5595 CC=$CC$ac_cv_sys_largefile_CC
5596 fi
5597
5598 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5599 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5600 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5601 echo $ECHO_N "(cached) $ECHO_C" >&6
5602 else
5603 while :; do
5604 cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h. */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h. */
5610 #include <sys/types.h>
5611 /* Check that off_t can represent 2**63 - 1 correctly.
5612 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5613 since some C++ compilers masquerading as C compilers
5614 incorrectly reject 9223372036854775807. */
5615 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5616 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5617 && LARGE_OFF_T % 2147483647 == 1)
5618 ? 1 : -1];
5619 int
5620 main ()
5621 {
5622
5623 ;
5624 return 0;
5625 }
5626 _ACEOF
5627 rm -f conftest.$ac_objext
5628 if { (ac_try="$ac_compile"
5629 case "(($ac_try" in
5630 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5631 *) ac_try_echo=$ac_try;;
5632 esac
5633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5634 (eval "$ac_compile") 2>conftest.er1
5635 ac_status=$?
5636 grep -v '^ *+' conftest.er1 >conftest.err
5637 rm -f conftest.er1
5638 cat conftest.err >&5
5639 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5640 (exit $ac_status); } && {
5641 test -z "$ac_c_werror_flag" ||
5642 test ! -s conftest.err
5643 } && test -s conftest.$ac_objext; then
5644 ac_cv_sys_file_offset_bits=no; break
5645 else
5646 echo "$as_me: failed program was:" >&5
5647 sed 's/^/| /' conftest.$ac_ext >&5
5648
5649
5650 fi
5651
5652 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5653 cat >conftest.$ac_ext <<_ACEOF
5654 /* confdefs.h. */
5655 _ACEOF
5656 cat confdefs.h >>conftest.$ac_ext
5657 cat >>conftest.$ac_ext <<_ACEOF
5658 /* end confdefs.h. */
5659 #define _FILE_OFFSET_BITS 64
5660 #include <sys/types.h>
5661 /* Check that off_t can represent 2**63 - 1 correctly.
5662 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5663 since some C++ compilers masquerading as C compilers
5664 incorrectly reject 9223372036854775807. */
5665 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5666 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5667 && LARGE_OFF_T % 2147483647 == 1)
5668 ? 1 : -1];
5669 int
5670 main ()
5671 {
5672
5673 ;
5674 return 0;
5675 }
5676 _ACEOF
5677 rm -f conftest.$ac_objext
5678 if { (ac_try="$ac_compile"
5679 case "(($ac_try" in
5680 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5681 *) ac_try_echo=$ac_try;;
5682 esac
5683 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5684 (eval "$ac_compile") 2>conftest.er1
5685 ac_status=$?
5686 grep -v '^ *+' conftest.er1 >conftest.err
5687 rm -f conftest.er1
5688 cat conftest.err >&5
5689 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5690 (exit $ac_status); } && {
5691 test -z "$ac_c_werror_flag" ||
5692 test ! -s conftest.err
5693 } && test -s conftest.$ac_objext; then
5694 ac_cv_sys_file_offset_bits=64; break
5695 else
5696 echo "$as_me: failed program was:" >&5
5697 sed 's/^/| /' conftest.$ac_ext >&5
5698
5699
5700 fi
5701
5702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5703 ac_cv_sys_file_offset_bits=unknown
5704 break
5705 done
5706 fi
5707 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5708 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5709 case $ac_cv_sys_file_offset_bits in #(
5710 no | unknown) ;;
5711 *)
5712 cat >>confdefs.h <<_ACEOF
5713 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5714 _ACEOF
5715 ;;
5716 esac
5717 rm -f conftest*
5718 if test $ac_cv_sys_file_offset_bits = unknown; then
5719 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5720 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5721 if test "${ac_cv_sys_large_files+set}" = set; then
5722 echo $ECHO_N "(cached) $ECHO_C" >&6
5723 else
5724 while :; do
5725 cat >conftest.$ac_ext <<_ACEOF
5726 /* confdefs.h. */
5727 _ACEOF
5728 cat confdefs.h >>conftest.$ac_ext
5729 cat >>conftest.$ac_ext <<_ACEOF
5730 /* end confdefs.h. */
5731 #include <sys/types.h>
5732 /* Check that off_t can represent 2**63 - 1 correctly.
5733 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5734 since some C++ compilers masquerading as C compilers
5735 incorrectly reject 9223372036854775807. */
5736 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5737 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5738 && LARGE_OFF_T % 2147483647 == 1)
5739 ? 1 : -1];
5740 int
5741 main ()
5742 {
5743
5744 ;
5745 return 0;
5746 }
5747 _ACEOF
5748 rm -f conftest.$ac_objext
5749 if { (ac_try="$ac_compile"
5750 case "(($ac_try" in
5751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5752 *) ac_try_echo=$ac_try;;
5753 esac
5754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5755 (eval "$ac_compile") 2>conftest.er1
5756 ac_status=$?
5757 grep -v '^ *+' conftest.er1 >conftest.err
5758 rm -f conftest.er1
5759 cat conftest.err >&5
5760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5761 (exit $ac_status); } && {
5762 test -z "$ac_c_werror_flag" ||
5763 test ! -s conftest.err
5764 } && test -s conftest.$ac_objext; then
5765 ac_cv_sys_large_files=no; break
5766 else
5767 echo "$as_me: failed program was:" >&5
5768 sed 's/^/| /' conftest.$ac_ext >&5
5769
5770
5771 fi
5772
5773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5774 cat >conftest.$ac_ext <<_ACEOF
5775 /* confdefs.h. */
5776 _ACEOF
5777 cat confdefs.h >>conftest.$ac_ext
5778 cat >>conftest.$ac_ext <<_ACEOF
5779 /* end confdefs.h. */
5780 #define _LARGE_FILES 1
5781 #include <sys/types.h>
5782 /* Check that off_t can represent 2**63 - 1 correctly.
5783 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5784 since some C++ compilers masquerading as C compilers
5785 incorrectly reject 9223372036854775807. */
5786 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5787 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5788 && LARGE_OFF_T % 2147483647 == 1)
5789 ? 1 : -1];
5790 int
5791 main ()
5792 {
5793
5794 ;
5795 return 0;
5796 }
5797 _ACEOF
5798 rm -f conftest.$ac_objext
5799 if { (ac_try="$ac_compile"
5800 case "(($ac_try" in
5801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5802 *) ac_try_echo=$ac_try;;
5803 esac
5804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5805 (eval "$ac_compile") 2>conftest.er1
5806 ac_status=$?
5807 grep -v '^ *+' conftest.er1 >conftest.err
5808 rm -f conftest.er1
5809 cat conftest.err >&5
5810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5811 (exit $ac_status); } && {
5812 test -z "$ac_c_werror_flag" ||
5813 test ! -s conftest.err
5814 } && test -s conftest.$ac_objext; then
5815 ac_cv_sys_large_files=1; break
5816 else
5817 echo "$as_me: failed program was:" >&5
5818 sed 's/^/| /' conftest.$ac_ext >&5
5819
5820
5821 fi
5822
5823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5824 ac_cv_sys_large_files=unknown
5825 break
5826 done
5827 fi
5828 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5829 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5830 case $ac_cv_sys_large_files in #(
5831 no | unknown) ;;
5832 *)
5833 cat >>confdefs.h <<_ACEOF
5834 #define _LARGE_FILES $ac_cv_sys_large_files
5835 _ACEOF
5836 ;;
5837 esac
5838 rm -f conftest*
5839 fi
5840 fi
5841
5842
5843
5844 ### The standard library on x86-64 GNU/Linux distributions can
5845 ### be located in either /usr/lib64 or /usr/lib.
5846 case "${canonical}" in
5847 x86_64-*-linux-gnu* )
5848 if test -d /usr/lib64; then
5849
5850 cat >>confdefs.h <<\_ACEOF
5851 #define HAVE_X86_64_LIB64_DIR 1
5852 _ACEOF
5853
5854 fi
5855 esac
5856
5857
5858
5859
5860 if test "${with_sound}" != "no"; then
5861 # Sound support for GNU/Linux and the free BSDs.
5862 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
5863 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
5864 if test "${ac_cv_header_stdc+set}" = set; then
5865 echo $ECHO_N "(cached) $ECHO_C" >&6
5866 else
5867 cat >conftest.$ac_ext <<_ACEOF
5868 /* confdefs.h. */
5869 _ACEOF
5870 cat confdefs.h >>conftest.$ac_ext
5871 cat >>conftest.$ac_ext <<_ACEOF
5872 /* end confdefs.h. */
5873 #include <stdlib.h>
5874 #include <stdarg.h>
5875 #include <string.h>
5876 #include <float.h>
5877
5878 int
5879 main ()
5880 {
5881
5882 ;
5883 return 0;
5884 }
5885 _ACEOF
5886 rm -f conftest.$ac_objext
5887 if { (ac_try="$ac_compile"
5888 case "(($ac_try" in
5889 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5890 *) ac_try_echo=$ac_try;;
5891 esac
5892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5893 (eval "$ac_compile") 2>conftest.er1
5894 ac_status=$?
5895 grep -v '^ *+' conftest.er1 >conftest.err
5896 rm -f conftest.er1
5897 cat conftest.err >&5
5898 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5899 (exit $ac_status); } && {
5900 test -z "$ac_c_werror_flag" ||
5901 test ! -s conftest.err
5902 } && test -s conftest.$ac_objext; then
5903 ac_cv_header_stdc=yes
5904 else
5905 echo "$as_me: failed program was:" >&5
5906 sed 's/^/| /' conftest.$ac_ext >&5
5907
5908 ac_cv_header_stdc=no
5909 fi
5910
5911 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5912
5913 if test $ac_cv_header_stdc = yes; then
5914 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5915 cat >conftest.$ac_ext <<_ACEOF
5916 /* confdefs.h. */
5917 _ACEOF
5918 cat confdefs.h >>conftest.$ac_ext
5919 cat >>conftest.$ac_ext <<_ACEOF
5920 /* end confdefs.h. */
5921 #include <string.h>
5922
5923 _ACEOF
5924 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5925 $EGREP "memchr" >/dev/null 2>&1; then
5926 :
5927 else
5928 ac_cv_header_stdc=no
5929 fi
5930 rm -f conftest*
5931
5932 fi
5933
5934 if test $ac_cv_header_stdc = yes; then
5935 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5936 cat >conftest.$ac_ext <<_ACEOF
5937 /* confdefs.h. */
5938 _ACEOF
5939 cat confdefs.h >>conftest.$ac_ext
5940 cat >>conftest.$ac_ext <<_ACEOF
5941 /* end confdefs.h. */
5942 #include <stdlib.h>
5943
5944 _ACEOF
5945 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5946 $EGREP "free" >/dev/null 2>&1; then
5947 :
5948 else
5949 ac_cv_header_stdc=no
5950 fi
5951 rm -f conftest*
5952
5953 fi
5954
5955 if test $ac_cv_header_stdc = yes; then
5956 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5957 if test "$cross_compiling" = yes; then
5958 :
5959 else
5960 cat >conftest.$ac_ext <<_ACEOF
5961 /* confdefs.h. */
5962 _ACEOF
5963 cat confdefs.h >>conftest.$ac_ext
5964 cat >>conftest.$ac_ext <<_ACEOF
5965 /* end confdefs.h. */
5966 #include <ctype.h>
5967 #include <stdlib.h>
5968 #if ((' ' & 0x0FF) == 0x020)
5969 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5970 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5971 #else
5972 # define ISLOWER(c) \
5973 (('a' <= (c) && (c) <= 'i') \
5974 || ('j' <= (c) && (c) <= 'r') \
5975 || ('s' <= (c) && (c) <= 'z'))
5976 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5977 #endif
5978
5979 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5980 int
5981 main ()
5982 {
5983 int i;
5984 for (i = 0; i < 256; i++)
5985 if (XOR (islower (i), ISLOWER (i))
5986 || toupper (i) != TOUPPER (i))
5987 return 2;
5988 return 0;
5989 }
5990 _ACEOF
5991 rm -f conftest$ac_exeext
5992 if { (ac_try="$ac_link"
5993 case "(($ac_try" in
5994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5995 *) ac_try_echo=$ac_try;;
5996 esac
5997 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5998 (eval "$ac_link") 2>&5
5999 ac_status=$?
6000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6001 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6002 { (case "(($ac_try" in
6003 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6004 *) ac_try_echo=$ac_try;;
6005 esac
6006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6007 (eval "$ac_try") 2>&5
6008 ac_status=$?
6009 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6010 (exit $ac_status); }; }; then
6011 :
6012 else
6013 echo "$as_me: program exited with status $ac_status" >&5
6014 echo "$as_me: failed program was:" >&5
6015 sed 's/^/| /' conftest.$ac_ext >&5
6016
6017 ( exit $ac_status )
6018 ac_cv_header_stdc=no
6019 fi
6020 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6021 fi
6022
6023
6024 fi
6025 fi
6026 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6027 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6028 if test $ac_cv_header_stdc = yes; then
6029
6030 cat >>confdefs.h <<\_ACEOF
6031 #define STDC_HEADERS 1
6032 _ACEOF
6033
6034 fi
6035
6036 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6037
6038
6039
6040
6041
6042
6043
6044
6045
6046 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6047 inttypes.h stdint.h unistd.h
6048 do
6049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6050 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6051 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6052 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6053 echo $ECHO_N "(cached) $ECHO_C" >&6
6054 else
6055 cat >conftest.$ac_ext <<_ACEOF
6056 /* confdefs.h. */
6057 _ACEOF
6058 cat confdefs.h >>conftest.$ac_ext
6059 cat >>conftest.$ac_ext <<_ACEOF
6060 /* end confdefs.h. */
6061 $ac_includes_default
6062
6063 #include <$ac_header>
6064 _ACEOF
6065 rm -f conftest.$ac_objext
6066 if { (ac_try="$ac_compile"
6067 case "(($ac_try" in
6068 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6069 *) ac_try_echo=$ac_try;;
6070 esac
6071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6072 (eval "$ac_compile") 2>conftest.er1
6073 ac_status=$?
6074 grep -v '^ *+' conftest.er1 >conftest.err
6075 rm -f conftest.er1
6076 cat conftest.err >&5
6077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6078 (exit $ac_status); } && {
6079 test -z "$ac_c_werror_flag" ||
6080 test ! -s conftest.err
6081 } && test -s conftest.$ac_objext; then
6082 eval "$as_ac_Header=yes"
6083 else
6084 echo "$as_me: failed program was:" >&5
6085 sed 's/^/| /' conftest.$ac_ext >&5
6086
6087 eval "$as_ac_Header=no"
6088 fi
6089
6090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6091 fi
6092 ac_res=`eval echo '${'$as_ac_Header'}'`
6093 { echo "$as_me:$LINENO: result: $ac_res" >&5
6094 echo "${ECHO_T}$ac_res" >&6; }
6095 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6096 cat >>confdefs.h <<_ACEOF
6097 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6098 _ACEOF
6099
6100 fi
6101
6102 done
6103
6104
6105
6106
6107
6108 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6109 do
6110 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6111 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6112 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6113 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6114 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6115 echo $ECHO_N "(cached) $ECHO_C" >&6
6116 fi
6117 ac_res=`eval echo '${'$as_ac_Header'}'`
6118 { echo "$as_me:$LINENO: result: $ac_res" >&5
6119 echo "${ECHO_T}$ac_res" >&6; }
6120 else
6121 # Is the header compilable?
6122 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6123 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6124 cat >conftest.$ac_ext <<_ACEOF
6125 /* confdefs.h. */
6126 _ACEOF
6127 cat confdefs.h >>conftest.$ac_ext
6128 cat >>conftest.$ac_ext <<_ACEOF
6129 /* end confdefs.h. */
6130 $ac_includes_default
6131 #include <$ac_header>
6132 _ACEOF
6133 rm -f conftest.$ac_objext
6134 if { (ac_try="$ac_compile"
6135 case "(($ac_try" in
6136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6137 *) ac_try_echo=$ac_try;;
6138 esac
6139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6140 (eval "$ac_compile") 2>conftest.er1
6141 ac_status=$?
6142 grep -v '^ *+' conftest.er1 >conftest.err
6143 rm -f conftest.er1
6144 cat conftest.err >&5
6145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6146 (exit $ac_status); } && {
6147 test -z "$ac_c_werror_flag" ||
6148 test ! -s conftest.err
6149 } && test -s conftest.$ac_objext; then
6150 ac_header_compiler=yes
6151 else
6152 echo "$as_me: failed program was:" >&5
6153 sed 's/^/| /' conftest.$ac_ext >&5
6154
6155 ac_header_compiler=no
6156 fi
6157
6158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6159 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6160 echo "${ECHO_T}$ac_header_compiler" >&6; }
6161
6162 # Is the header present?
6163 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6164 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6165 cat >conftest.$ac_ext <<_ACEOF
6166 /* confdefs.h. */
6167 _ACEOF
6168 cat confdefs.h >>conftest.$ac_ext
6169 cat >>conftest.$ac_ext <<_ACEOF
6170 /* end confdefs.h. */
6171 #include <$ac_header>
6172 _ACEOF
6173 if { (ac_try="$ac_cpp conftest.$ac_ext"
6174 case "(($ac_try" in
6175 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6176 *) ac_try_echo=$ac_try;;
6177 esac
6178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6179 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6180 ac_status=$?
6181 grep -v '^ *+' conftest.er1 >conftest.err
6182 rm -f conftest.er1
6183 cat conftest.err >&5
6184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185 (exit $ac_status); } >/dev/null && {
6186 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6187 test ! -s conftest.err
6188 }; then
6189 ac_header_preproc=yes
6190 else
6191 echo "$as_me: failed program was:" >&5
6192 sed 's/^/| /' conftest.$ac_ext >&5
6193
6194 ac_header_preproc=no
6195 fi
6196
6197 rm -f conftest.err conftest.$ac_ext
6198 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6199 echo "${ECHO_T}$ac_header_preproc" >&6; }
6200
6201 # So? What about this header?
6202 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6203 yes:no: )
6204 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6205 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6206 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6207 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6208 ac_header_preproc=yes
6209 ;;
6210 no:yes:* )
6211 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6212 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6213 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6214 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6215 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6216 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6217 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6218 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6219 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6220 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6221 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6222 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6223
6224 ;;
6225 esac
6226 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6227 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6228 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6229 echo $ECHO_N "(cached) $ECHO_C" >&6
6230 else
6231 eval "$as_ac_Header=\$ac_header_preproc"
6232 fi
6233 ac_res=`eval echo '${'$as_ac_Header'}'`
6234 { echo "$as_me:$LINENO: result: $ac_res" >&5
6235 echo "${ECHO_T}$ac_res" >&6; }
6236
6237 fi
6238 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6239 cat >>confdefs.h <<_ACEOF
6240 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6241 _ACEOF
6242
6243 fi
6244
6245 done
6246
6247 # Emulation library used on NetBSD.
6248 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6249 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6250 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6251 echo $ECHO_N "(cached) $ECHO_C" >&6
6252 else
6253 ac_check_lib_save_LIBS=$LIBS
6254 LIBS="-lossaudio $LIBS"
6255 cat >conftest.$ac_ext <<_ACEOF
6256 /* confdefs.h. */
6257 _ACEOF
6258 cat confdefs.h >>conftest.$ac_ext
6259 cat >>conftest.$ac_ext <<_ACEOF
6260 /* end confdefs.h. */
6261
6262 /* Override any GCC internal prototype to avoid an error.
6263 Use char because int might match the return type of a GCC
6264 builtin and then its argument prototype would still apply. */
6265 #ifdef __cplusplus
6266 extern "C"
6267 #endif
6268 char _oss_ioctl ();
6269 int
6270 main ()
6271 {
6272 return _oss_ioctl ();
6273 ;
6274 return 0;
6275 }
6276 _ACEOF
6277 rm -f conftest.$ac_objext conftest$ac_exeext
6278 if { (ac_try="$ac_link"
6279 case "(($ac_try" in
6280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6281 *) ac_try_echo=$ac_try;;
6282 esac
6283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6284 (eval "$ac_link") 2>conftest.er1
6285 ac_status=$?
6286 grep -v '^ *+' conftest.er1 >conftest.err
6287 rm -f conftest.er1
6288 cat conftest.err >&5
6289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6290 (exit $ac_status); } && {
6291 test -z "$ac_c_werror_flag" ||
6292 test ! -s conftest.err
6293 } && test -s conftest$ac_exeext &&
6294 $as_test_x conftest$ac_exeext; then
6295 ac_cv_lib_ossaudio__oss_ioctl=yes
6296 else
6297 echo "$as_me: failed program was:" >&5
6298 sed 's/^/| /' conftest.$ac_ext >&5
6299
6300 ac_cv_lib_ossaudio__oss_ioctl=no
6301 fi
6302
6303 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6304 conftest$ac_exeext conftest.$ac_ext
6305 LIBS=$ac_check_lib_save_LIBS
6306 fi
6307 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6308 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6309 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6310 LIBSOUND=-lossaudio
6311 else
6312 LIBSOUND=
6313 fi
6314
6315
6316
6317 ALSA_REQUIRED=1.0.0
6318 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6319 if test "X${with_pkg_config_prog}" != X; then
6320 PKG_CONFIG="${with_pkg_config_prog}"
6321 fi
6322
6323 succeeded=no
6324
6325 if test -z "$PKG_CONFIG"; then
6326 # Extract the first word of "pkg-config", so it can be a program name with args.
6327 set dummy pkg-config; ac_word=$2
6328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6330 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6331 echo $ECHO_N "(cached) $ECHO_C" >&6
6332 else
6333 case $PKG_CONFIG in
6334 [\\/]* | ?:[\\/]*)
6335 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6336 ;;
6337 *)
6338 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6339 for as_dir in $PATH
6340 do
6341 IFS=$as_save_IFS
6342 test -z "$as_dir" && as_dir=.
6343 for ac_exec_ext in '' $ac_executable_extensions; do
6344 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6345 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6346 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6347 break 2
6348 fi
6349 done
6350 done
6351 IFS=$as_save_IFS
6352
6353 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6354 ;;
6355 esac
6356 fi
6357 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6358 if test -n "$PKG_CONFIG"; then
6359 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6360 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6361 else
6362 { echo "$as_me:$LINENO: result: no" >&5
6363 echo "${ECHO_T}no" >&6; }
6364 fi
6365
6366
6367 fi
6368
6369 if test "$PKG_CONFIG" = "no" ; then
6370 HAVE_ALSA=no
6371 else
6372 PKG_CONFIG_MIN_VERSION=0.9.0
6373 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6374 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6375 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6376
6377 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6378 { echo "$as_me:$LINENO: result: yes" >&5
6379 echo "${ECHO_T}yes" >&6; }
6380 succeeded=yes
6381
6382 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6383 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6384 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6385 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6386 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6387
6388 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6389 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6390 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6391 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6392 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6393 else
6394 { echo "$as_me:$LINENO: result: no" >&5
6395 echo "${ECHO_T}no" >&6; }
6396 ALSA_CFLAGS=""
6397 ALSA_LIBS=""
6398 ## If we have a custom action on failure, don't print errors, but
6399 ## do set a variable so people can do so.
6400 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6401
6402 fi
6403
6404
6405
6406 else
6407 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6408 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6409 fi
6410 fi
6411
6412 if test $succeeded = yes; then
6413 HAVE_ALSA=yes
6414 else
6415 HAVE_ALSA=no
6416 fi
6417
6418 if test $HAVE_ALSA = yes; then
6419 SAVE_CFLAGS="$CFLAGS"
6420 SAVE_LDFLAGS="$LDFLAGS"
6421 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6422 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6423 cat >conftest.$ac_ext <<_ACEOF
6424 /* confdefs.h. */
6425 _ACEOF
6426 cat confdefs.h >>conftest.$ac_ext
6427 cat >>conftest.$ac_ext <<_ACEOF
6428 /* end confdefs.h. */
6429 #include <asoundlib.h>
6430 int
6431 main ()
6432 {
6433 snd_lib_error_set_handler (0);
6434 ;
6435 return 0;
6436 }
6437 _ACEOF
6438 rm -f conftest.$ac_objext
6439 if { (ac_try="$ac_compile"
6440 case "(($ac_try" in
6441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6442 *) ac_try_echo=$ac_try;;
6443 esac
6444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6445 (eval "$ac_compile") 2>conftest.er1
6446 ac_status=$?
6447 grep -v '^ *+' conftest.er1 >conftest.err
6448 rm -f conftest.er1
6449 cat conftest.err >&5
6450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6451 (exit $ac_status); } && {
6452 test -z "$ac_c_werror_flag" ||
6453 test ! -s conftest.err
6454 } && test -s conftest.$ac_objext; then
6455 emacs_alsa_normal=yes
6456 else
6457 echo "$as_me: failed program was:" >&5
6458 sed 's/^/| /' conftest.$ac_ext >&5
6459
6460 emacs_alsa_normal=no
6461 fi
6462
6463 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6464 if test "$emacs_alsa_normal" != yes; then
6465 cat >conftest.$ac_ext <<_ACEOF
6466 /* confdefs.h. */
6467 _ACEOF
6468 cat confdefs.h >>conftest.$ac_ext
6469 cat >>conftest.$ac_ext <<_ACEOF
6470 /* end confdefs.h. */
6471 #include <alsa/asoundlib.h>
6472 int
6473 main ()
6474 {
6475 snd_lib_error_set_handler (0);
6476 ;
6477 return 0;
6478 }
6479 _ACEOF
6480 rm -f conftest.$ac_objext
6481 if { (ac_try="$ac_compile"
6482 case "(($ac_try" in
6483 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6484 *) ac_try_echo=$ac_try;;
6485 esac
6486 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6487 (eval "$ac_compile") 2>conftest.er1
6488 ac_status=$?
6489 grep -v '^ *+' conftest.er1 >conftest.err
6490 rm -f conftest.er1
6491 cat conftest.err >&5
6492 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6493 (exit $ac_status); } && {
6494 test -z "$ac_c_werror_flag" ||
6495 test ! -s conftest.err
6496 } && test -s conftest.$ac_objext; then
6497 emacs_alsa_subdir=yes
6498 else
6499 echo "$as_me: failed program was:" >&5
6500 sed 's/^/| /' conftest.$ac_ext >&5
6501
6502 emacs_alsa_subdir=no
6503 fi
6504
6505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6506 if test "$emacs_alsa_subdir" != yes; then
6507 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6508 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6509 { (exit 1); exit 1; }; }
6510 fi
6511 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6512 fi
6513
6514 CFLAGS="$SAVE_CFLAGS"
6515 LDFLAGS="$SAVE_LDFLAGS"
6516 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6517 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6518
6519 cat >>confdefs.h <<\_ACEOF
6520 #define HAVE_ALSA 1
6521 _ACEOF
6522
6523
6524 fi
6525
6526 fi
6527
6528
6529
6530
6531
6532
6533
6534
6535
6536
6537
6538
6539
6540
6541
6542
6543
6544
6545
6546
6547
6548
6549
6550
6551
6552
6553 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6554 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6555 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6556 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6557 sys/utsname.h pwd.h
6558 do
6559 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6560 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6561 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6562 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6563 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6564 echo $ECHO_N "(cached) $ECHO_C" >&6
6565 fi
6566 ac_res=`eval echo '${'$as_ac_Header'}'`
6567 { echo "$as_me:$LINENO: result: $ac_res" >&5
6568 echo "${ECHO_T}$ac_res" >&6; }
6569 else
6570 # Is the header compilable?
6571 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6572 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6573 cat >conftest.$ac_ext <<_ACEOF
6574 /* confdefs.h. */
6575 _ACEOF
6576 cat confdefs.h >>conftest.$ac_ext
6577 cat >>conftest.$ac_ext <<_ACEOF
6578 /* end confdefs.h. */
6579 $ac_includes_default
6580 #include <$ac_header>
6581 _ACEOF
6582 rm -f conftest.$ac_objext
6583 if { (ac_try="$ac_compile"
6584 case "(($ac_try" in
6585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6586 *) ac_try_echo=$ac_try;;
6587 esac
6588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6589 (eval "$ac_compile") 2>conftest.er1
6590 ac_status=$?
6591 grep -v '^ *+' conftest.er1 >conftest.err
6592 rm -f conftest.er1
6593 cat conftest.err >&5
6594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6595 (exit $ac_status); } && {
6596 test -z "$ac_c_werror_flag" ||
6597 test ! -s conftest.err
6598 } && test -s conftest.$ac_objext; then
6599 ac_header_compiler=yes
6600 else
6601 echo "$as_me: failed program was:" >&5
6602 sed 's/^/| /' conftest.$ac_ext >&5
6603
6604 ac_header_compiler=no
6605 fi
6606
6607 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6608 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6609 echo "${ECHO_T}$ac_header_compiler" >&6; }
6610
6611 # Is the header present?
6612 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6613 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6614 cat >conftest.$ac_ext <<_ACEOF
6615 /* confdefs.h. */
6616 _ACEOF
6617 cat confdefs.h >>conftest.$ac_ext
6618 cat >>conftest.$ac_ext <<_ACEOF
6619 /* end confdefs.h. */
6620 #include <$ac_header>
6621 _ACEOF
6622 if { (ac_try="$ac_cpp conftest.$ac_ext"
6623 case "(($ac_try" in
6624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6625 *) ac_try_echo=$ac_try;;
6626 esac
6627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6628 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6629 ac_status=$?
6630 grep -v '^ *+' conftest.er1 >conftest.err
6631 rm -f conftest.er1
6632 cat conftest.err >&5
6633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6634 (exit $ac_status); } >/dev/null && {
6635 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 }; then
6638 ac_header_preproc=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 ac_header_preproc=no
6644 fi
6645
6646 rm -f conftest.err conftest.$ac_ext
6647 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6648 echo "${ECHO_T}$ac_header_preproc" >&6; }
6649
6650 # So? What about this header?
6651 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6652 yes:no: )
6653 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6654 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6655 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6656 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6657 ac_header_preproc=yes
6658 ;;
6659 no:yes:* )
6660 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6661 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6662 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6663 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6664 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6665 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6666 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6667 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6668 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6669 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6670 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6671 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6672
6673 ;;
6674 esac
6675 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6676 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6678 echo $ECHO_N "(cached) $ECHO_C" >&6
6679 else
6680 eval "$as_ac_Header=\$ac_header_preproc"
6681 fi
6682 ac_res=`eval echo '${'$as_ac_Header'}'`
6683 { echo "$as_me:$LINENO: result: $ac_res" >&5
6684 echo "${ECHO_T}$ac_res" >&6; }
6685
6686 fi
6687 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6688 cat >>confdefs.h <<_ACEOF
6689 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6690 _ACEOF
6691
6692 fi
6693
6694 done
6695
6696
6697 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6698 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6699 cat >conftest.$ac_ext <<_ACEOF
6700 /* confdefs.h. */
6701 _ACEOF
6702 cat confdefs.h >>conftest.$ac_ext
6703 cat >>conftest.$ac_ext <<_ACEOF
6704 /* end confdefs.h. */
6705 #include <sys/personality.h>
6706 int
6707 main ()
6708 {
6709 personality (PER_LINUX32)
6710 ;
6711 return 0;
6712 }
6713 _ACEOF
6714 rm -f conftest.$ac_objext
6715 if { (ac_try="$ac_compile"
6716 case "(($ac_try" in
6717 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6718 *) ac_try_echo=$ac_try;;
6719 esac
6720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6721 (eval "$ac_compile") 2>conftest.er1
6722 ac_status=$?
6723 grep -v '^ *+' conftest.er1 >conftest.err
6724 rm -f conftest.er1
6725 cat conftest.err >&5
6726 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6727 (exit $ac_status); } && {
6728 test -z "$ac_c_werror_flag" ||
6729 test ! -s conftest.err
6730 } && test -s conftest.$ac_objext; then
6731 emacs_cv_personality_linux32=yes
6732 else
6733 echo "$as_me: failed program was:" >&5
6734 sed 's/^/| /' conftest.$ac_ext >&5
6735
6736 emacs_cv_personality_linux32=no
6737 fi
6738
6739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6740 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6741 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6742
6743 if test $emacs_cv_personality_linux32 = yes; then
6744
6745 cat >>confdefs.h <<\_ACEOF
6746 #define HAVE_PERSONALITY_LINUX32 1
6747 _ACEOF
6748
6749 fi
6750
6751
6752 for ac_header in term.h
6753 do
6754 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6755 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6756 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6757 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6758 echo $ECHO_N "(cached) $ECHO_C" >&6
6759 else
6760 cat >conftest.$ac_ext <<_ACEOF
6761 /* confdefs.h. */
6762 _ACEOF
6763 cat confdefs.h >>conftest.$ac_ext
6764 cat >>conftest.$ac_ext <<_ACEOF
6765 /* end confdefs.h. */
6766 #include <$ac_header>
6767 _ACEOF
6768 if { (ac_try="$ac_cpp conftest.$ac_ext"
6769 case "(($ac_try" in
6770 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6771 *) ac_try_echo=$ac_try;;
6772 esac
6773 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6774 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6775 ac_status=$?
6776 grep -v '^ *+' conftest.er1 >conftest.err
6777 rm -f conftest.er1
6778 cat conftest.err >&5
6779 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6780 (exit $ac_status); } >/dev/null && {
6781 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6782 test ! -s conftest.err
6783 }; then
6784 eval "$as_ac_Header=yes"
6785 else
6786 echo "$as_me: failed program was:" >&5
6787 sed 's/^/| /' conftest.$ac_ext >&5
6788
6789 eval "$as_ac_Header=no"
6790 fi
6791
6792 rm -f conftest.err conftest.$ac_ext
6793 fi
6794 ac_res=`eval echo '${'$as_ac_Header'}'`
6795 { echo "$as_me:$LINENO: result: $ac_res" >&5
6796 echo "${ECHO_T}$ac_res" >&6; }
6797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6798 cat >>confdefs.h <<_ACEOF
6799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6800 _ACEOF
6801
6802 fi
6803
6804 done
6805
6806 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6807 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6808 if test "${ac_cv_header_stdc+set}" = set; then
6809 echo $ECHO_N "(cached) $ECHO_C" >&6
6810 else
6811 cat >conftest.$ac_ext <<_ACEOF
6812 /* confdefs.h. */
6813 _ACEOF
6814 cat confdefs.h >>conftest.$ac_ext
6815 cat >>conftest.$ac_ext <<_ACEOF
6816 /* end confdefs.h. */
6817 #include <stdlib.h>
6818 #include <stdarg.h>
6819 #include <string.h>
6820 #include <float.h>
6821
6822 int
6823 main ()
6824 {
6825
6826 ;
6827 return 0;
6828 }
6829 _ACEOF
6830 rm -f conftest.$ac_objext
6831 if { (ac_try="$ac_compile"
6832 case "(($ac_try" in
6833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6834 *) ac_try_echo=$ac_try;;
6835 esac
6836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6837 (eval "$ac_compile") 2>conftest.er1
6838 ac_status=$?
6839 grep -v '^ *+' conftest.er1 >conftest.err
6840 rm -f conftest.er1
6841 cat conftest.err >&5
6842 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6843 (exit $ac_status); } && {
6844 test -z "$ac_c_werror_flag" ||
6845 test ! -s conftest.err
6846 } && test -s conftest.$ac_objext; then
6847 ac_cv_header_stdc=yes
6848 else
6849 echo "$as_me: failed program was:" >&5
6850 sed 's/^/| /' conftest.$ac_ext >&5
6851
6852 ac_cv_header_stdc=no
6853 fi
6854
6855 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6856
6857 if test $ac_cv_header_stdc = yes; then
6858 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6859 cat >conftest.$ac_ext <<_ACEOF
6860 /* confdefs.h. */
6861 _ACEOF
6862 cat confdefs.h >>conftest.$ac_ext
6863 cat >>conftest.$ac_ext <<_ACEOF
6864 /* end confdefs.h. */
6865 #include <string.h>
6866
6867 _ACEOF
6868 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6869 $EGREP "memchr" >/dev/null 2>&1; then
6870 :
6871 else
6872 ac_cv_header_stdc=no
6873 fi
6874 rm -f conftest*
6875
6876 fi
6877
6878 if test $ac_cv_header_stdc = yes; then
6879 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6880 cat >conftest.$ac_ext <<_ACEOF
6881 /* confdefs.h. */
6882 _ACEOF
6883 cat confdefs.h >>conftest.$ac_ext
6884 cat >>conftest.$ac_ext <<_ACEOF
6885 /* end confdefs.h. */
6886 #include <stdlib.h>
6887
6888 _ACEOF
6889 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6890 $EGREP "free" >/dev/null 2>&1; then
6891 :
6892 else
6893 ac_cv_header_stdc=no
6894 fi
6895 rm -f conftest*
6896
6897 fi
6898
6899 if test $ac_cv_header_stdc = yes; then
6900 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6901 if test "$cross_compiling" = yes; then
6902 :
6903 else
6904 cat >conftest.$ac_ext <<_ACEOF
6905 /* confdefs.h. */
6906 _ACEOF
6907 cat confdefs.h >>conftest.$ac_ext
6908 cat >>conftest.$ac_ext <<_ACEOF
6909 /* end confdefs.h. */
6910 #include <ctype.h>
6911 #include <stdlib.h>
6912 #if ((' ' & 0x0FF) == 0x020)
6913 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6914 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6915 #else
6916 # define ISLOWER(c) \
6917 (('a' <= (c) && (c) <= 'i') \
6918 || ('j' <= (c) && (c) <= 'r') \
6919 || ('s' <= (c) && (c) <= 'z'))
6920 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6921 #endif
6922
6923 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6924 int
6925 main ()
6926 {
6927 int i;
6928 for (i = 0; i < 256; i++)
6929 if (XOR (islower (i), ISLOWER (i))
6930 || toupper (i) != TOUPPER (i))
6931 return 2;
6932 return 0;
6933 }
6934 _ACEOF
6935 rm -f conftest$ac_exeext
6936 if { (ac_try="$ac_link"
6937 case "(($ac_try" in
6938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6939 *) ac_try_echo=$ac_try;;
6940 esac
6941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6942 (eval "$ac_link") 2>&5
6943 ac_status=$?
6944 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6945 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6946 { (case "(($ac_try" in
6947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6948 *) ac_try_echo=$ac_try;;
6949 esac
6950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6951 (eval "$ac_try") 2>&5
6952 ac_status=$?
6953 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6954 (exit $ac_status); }; }; then
6955 :
6956 else
6957 echo "$as_me: program exited with status $ac_status" >&5
6958 echo "$as_me: failed program was:" >&5
6959 sed 's/^/| /' conftest.$ac_ext >&5
6960
6961 ( exit $ac_status )
6962 ac_cv_header_stdc=no
6963 fi
6964 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6965 fi
6966
6967
6968 fi
6969 fi
6970 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6971 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6972 if test $ac_cv_header_stdc = yes; then
6973
6974 cat >>confdefs.h <<\_ACEOF
6975 #define STDC_HEADERS 1
6976 _ACEOF
6977
6978 fi
6979
6980 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
6981 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
6982 if test "${ac_cv_header_time+set}" = set; then
6983 echo $ECHO_N "(cached) $ECHO_C" >&6
6984 else
6985 cat >conftest.$ac_ext <<_ACEOF
6986 /* confdefs.h. */
6987 _ACEOF
6988 cat confdefs.h >>conftest.$ac_ext
6989 cat >>conftest.$ac_ext <<_ACEOF
6990 /* end confdefs.h. */
6991 #include <sys/types.h>
6992 #include <sys/time.h>
6993 #include <time.h>
6994
6995 int
6996 main ()
6997 {
6998 if ((struct tm *) 0)
6999 return 0;
7000 ;
7001 return 0;
7002 }
7003 _ACEOF
7004 rm -f conftest.$ac_objext
7005 if { (ac_try="$ac_compile"
7006 case "(($ac_try" in
7007 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7008 *) ac_try_echo=$ac_try;;
7009 esac
7010 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7011 (eval "$ac_compile") 2>conftest.er1
7012 ac_status=$?
7013 grep -v '^ *+' conftest.er1 >conftest.err
7014 rm -f conftest.er1
7015 cat conftest.err >&5
7016 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7017 (exit $ac_status); } && {
7018 test -z "$ac_c_werror_flag" ||
7019 test ! -s conftest.err
7020 } && test -s conftest.$ac_objext; then
7021 ac_cv_header_time=yes
7022 else
7023 echo "$as_me: failed program was:" >&5
7024 sed 's/^/| /' conftest.$ac_ext >&5
7025
7026 ac_cv_header_time=no
7027 fi
7028
7029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7030 fi
7031 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7032 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7033 if test $ac_cv_header_time = yes; then
7034
7035 cat >>confdefs.h <<\_ACEOF
7036 #define TIME_WITH_SYS_TIME 1
7037 _ACEOF
7038
7039 fi
7040
7041 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7042 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7043 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7044 echo $ECHO_N "(cached) $ECHO_C" >&6
7045 else
7046 cat >conftest.$ac_ext <<_ACEOF
7047 /* confdefs.h. */
7048 _ACEOF
7049 cat confdefs.h >>conftest.$ac_ext
7050 cat >>conftest.$ac_ext <<_ACEOF
7051 /* end confdefs.h. */
7052 $ac_includes_default
7053 int
7054 main ()
7055 {
7056 #ifndef sys_siglist
7057 (void) sys_siglist;
7058 #endif
7059
7060 ;
7061 return 0;
7062 }
7063 _ACEOF
7064 rm -f conftest.$ac_objext
7065 if { (ac_try="$ac_compile"
7066 case "(($ac_try" in
7067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7068 *) ac_try_echo=$ac_try;;
7069 esac
7070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7071 (eval "$ac_compile") 2>conftest.er1
7072 ac_status=$?
7073 grep -v '^ *+' conftest.er1 >conftest.err
7074 rm -f conftest.er1
7075 cat conftest.err >&5
7076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7077 (exit $ac_status); } && {
7078 test -z "$ac_c_werror_flag" ||
7079 test ! -s conftest.err
7080 } && test -s conftest.$ac_objext; then
7081 ac_cv_have_decl_sys_siglist=yes
7082 else
7083 echo "$as_me: failed program was:" >&5
7084 sed 's/^/| /' conftest.$ac_ext >&5
7085
7086 ac_cv_have_decl_sys_siglist=no
7087 fi
7088
7089 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7090 fi
7091 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7092 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7093 if test $ac_cv_have_decl_sys_siglist = yes; then
7094
7095 cat >>confdefs.h <<_ACEOF
7096 #define HAVE_DECL_SYS_SIGLIST 1
7097 _ACEOF
7098
7099
7100 else
7101 cat >>confdefs.h <<_ACEOF
7102 #define HAVE_DECL_SYS_SIGLIST 0
7103 _ACEOF
7104
7105
7106 fi
7107
7108
7109 if test $ac_cv_have_decl_sys_siglist != yes; then
7110 # For Tru64, at least:
7111 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7112 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7113 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7114 echo $ECHO_N "(cached) $ECHO_C" >&6
7115 else
7116 cat >conftest.$ac_ext <<_ACEOF
7117 /* confdefs.h. */
7118 _ACEOF
7119 cat confdefs.h >>conftest.$ac_ext
7120 cat >>conftest.$ac_ext <<_ACEOF
7121 /* end confdefs.h. */
7122 $ac_includes_default
7123 int
7124 main ()
7125 {
7126 #ifndef __sys_siglist
7127 (void) __sys_siglist;
7128 #endif
7129
7130 ;
7131 return 0;
7132 }
7133 _ACEOF
7134 rm -f conftest.$ac_objext
7135 if { (ac_try="$ac_compile"
7136 case "(($ac_try" in
7137 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7138 *) ac_try_echo=$ac_try;;
7139 esac
7140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7141 (eval "$ac_compile") 2>conftest.er1
7142 ac_status=$?
7143 grep -v '^ *+' conftest.er1 >conftest.err
7144 rm -f conftest.er1
7145 cat conftest.err >&5
7146 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7147 (exit $ac_status); } && {
7148 test -z "$ac_c_werror_flag" ||
7149 test ! -s conftest.err
7150 } && test -s conftest.$ac_objext; then
7151 ac_cv_have_decl___sys_siglist=yes
7152 else
7153 echo "$as_me: failed program was:" >&5
7154 sed 's/^/| /' conftest.$ac_ext >&5
7155
7156 ac_cv_have_decl___sys_siglist=no
7157 fi
7158
7159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7160 fi
7161 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7162 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7163 if test $ac_cv_have_decl___sys_siglist = yes; then
7164
7165 cat >>confdefs.h <<_ACEOF
7166 #define HAVE_DECL___SYS_SIGLIST 1
7167 _ACEOF
7168
7169
7170 else
7171 cat >>confdefs.h <<_ACEOF
7172 #define HAVE_DECL___SYS_SIGLIST 0
7173 _ACEOF
7174
7175
7176 fi
7177
7178
7179 if test $ac_cv_have_decl___sys_siglist = yes; then
7180
7181 cat >>confdefs.h <<\_ACEOF
7182 #define sys_siglist __sys_siglist
7183 _ACEOF
7184
7185 fi
7186 fi
7187 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7188 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7189 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7190 echo $ECHO_N "(cached) $ECHO_C" >&6
7191 else
7192 cat >conftest.$ac_ext <<_ACEOF
7193 /* confdefs.h. */
7194 _ACEOF
7195 cat confdefs.h >>conftest.$ac_ext
7196 cat >>conftest.$ac_ext <<_ACEOF
7197 /* end confdefs.h. */
7198 #include <sys/types.h>
7199 #include <sys/wait.h>
7200 #ifndef WEXITSTATUS
7201 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7202 #endif
7203 #ifndef WIFEXITED
7204 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7205 #endif
7206
7207 int
7208 main ()
7209 {
7210 int s;
7211 wait (&s);
7212 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7213 ;
7214 return 0;
7215 }
7216 _ACEOF
7217 rm -f conftest.$ac_objext
7218 if { (ac_try="$ac_compile"
7219 case "(($ac_try" in
7220 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7221 *) ac_try_echo=$ac_try;;
7222 esac
7223 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7224 (eval "$ac_compile") 2>conftest.er1
7225 ac_status=$?
7226 grep -v '^ *+' conftest.er1 >conftest.err
7227 rm -f conftest.er1
7228 cat conftest.err >&5
7229 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7230 (exit $ac_status); } && {
7231 test -z "$ac_c_werror_flag" ||
7232 test ! -s conftest.err
7233 } && test -s conftest.$ac_objext; then
7234 ac_cv_header_sys_wait_h=yes
7235 else
7236 echo "$as_me: failed program was:" >&5
7237 sed 's/^/| /' conftest.$ac_ext >&5
7238
7239 ac_cv_header_sys_wait_h=no
7240 fi
7241
7242 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7243 fi
7244 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7245 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7246 if test $ac_cv_header_sys_wait_h = yes; then
7247
7248 cat >>confdefs.h <<\_ACEOF
7249 #define HAVE_SYS_WAIT_H 1
7250 _ACEOF
7251
7252 fi
7253
7254
7255 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7256 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7257 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7258 echo $ECHO_N "(cached) $ECHO_C" >&6
7259 else
7260 cat >conftest.$ac_ext <<_ACEOF
7261 /* confdefs.h. */
7262 _ACEOF
7263 cat confdefs.h >>conftest.$ac_ext
7264 cat >>conftest.$ac_ext <<_ACEOF
7265 /* end confdefs.h. */
7266 #ifdef TIME_WITH_SYS_TIME
7267 #include <sys/time.h>
7268 #include <time.h>
7269 #else
7270 #ifdef HAVE_SYS_TIME_H
7271 #include <sys/time.h>
7272 #else
7273 #include <time.h>
7274 #endif
7275 #endif
7276 #ifdef HAVE_UTIME_H
7277 #include <utime.h>
7278 #endif
7279 int
7280 main ()
7281 {
7282 static struct utimbuf x; x.actime = x.modtime;
7283 ;
7284 return 0;
7285 }
7286 _ACEOF
7287 rm -f conftest.$ac_objext
7288 if { (ac_try="$ac_compile"
7289 case "(($ac_try" in
7290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7291 *) ac_try_echo=$ac_try;;
7292 esac
7293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7294 (eval "$ac_compile") 2>conftest.er1
7295 ac_status=$?
7296 grep -v '^ *+' conftest.er1 >conftest.err
7297 rm -f conftest.er1
7298 cat conftest.err >&5
7299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7300 (exit $ac_status); } && {
7301 test -z "$ac_c_werror_flag" ||
7302 test ! -s conftest.err
7303 } && test -s conftest.$ac_objext; then
7304 emacs_cv_struct_utimbuf=yes
7305 else
7306 echo "$as_me: failed program was:" >&5
7307 sed 's/^/| /' conftest.$ac_ext >&5
7308
7309 emacs_cv_struct_utimbuf=no
7310 fi
7311
7312 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7313 fi
7314 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7315 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7316 if test $emacs_cv_struct_utimbuf = yes; then
7317
7318 cat >>confdefs.h <<\_ACEOF
7319 #define HAVE_STRUCT_UTIMBUF 1
7320 _ACEOF
7321
7322 fi
7323
7324 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7325 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7326 if test "${ac_cv_type_signal+set}" = set; then
7327 echo $ECHO_N "(cached) $ECHO_C" >&6
7328 else
7329 cat >conftest.$ac_ext <<_ACEOF
7330 /* confdefs.h. */
7331 _ACEOF
7332 cat confdefs.h >>conftest.$ac_ext
7333 cat >>conftest.$ac_ext <<_ACEOF
7334 /* end confdefs.h. */
7335 #include <sys/types.h>
7336 #include <signal.h>
7337
7338 int
7339 main ()
7340 {
7341 return *(signal (0, 0)) (0) == 1;
7342 ;
7343 return 0;
7344 }
7345 _ACEOF
7346 rm -f conftest.$ac_objext
7347 if { (ac_try="$ac_compile"
7348 case "(($ac_try" in
7349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7350 *) ac_try_echo=$ac_try;;
7351 esac
7352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7353 (eval "$ac_compile") 2>conftest.er1
7354 ac_status=$?
7355 grep -v '^ *+' conftest.er1 >conftest.err
7356 rm -f conftest.er1
7357 cat conftest.err >&5
7358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7359 (exit $ac_status); } && {
7360 test -z "$ac_c_werror_flag" ||
7361 test ! -s conftest.err
7362 } && test -s conftest.$ac_objext; then
7363 ac_cv_type_signal=int
7364 else
7365 echo "$as_me: failed program was:" >&5
7366 sed 's/^/| /' conftest.$ac_ext >&5
7367
7368 ac_cv_type_signal=void
7369 fi
7370
7371 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7372 fi
7373 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7374 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7375
7376 cat >>confdefs.h <<_ACEOF
7377 #define RETSIGTYPE $ac_cv_type_signal
7378 _ACEOF
7379
7380
7381
7382 { echo "$as_me:$LINENO: checking for speed_t" >&5
7383 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7384 if test "${emacs_cv_speed_t+set}" = set; then
7385 echo $ECHO_N "(cached) $ECHO_C" >&6
7386 else
7387 cat >conftest.$ac_ext <<_ACEOF
7388 /* confdefs.h. */
7389 _ACEOF
7390 cat confdefs.h >>conftest.$ac_ext
7391 cat >>conftest.$ac_ext <<_ACEOF
7392 /* end confdefs.h. */
7393 #include <termios.h>
7394 int
7395 main ()
7396 {
7397 speed_t x = 1;
7398 ;
7399 return 0;
7400 }
7401 _ACEOF
7402 rm -f conftest.$ac_objext
7403 if { (ac_try="$ac_compile"
7404 case "(($ac_try" in
7405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7406 *) ac_try_echo=$ac_try;;
7407 esac
7408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7409 (eval "$ac_compile") 2>conftest.er1
7410 ac_status=$?
7411 grep -v '^ *+' conftest.er1 >conftest.err
7412 rm -f conftest.er1
7413 cat conftest.err >&5
7414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7415 (exit $ac_status); } && {
7416 test -z "$ac_c_werror_flag" ||
7417 test ! -s conftest.err
7418 } && test -s conftest.$ac_objext; then
7419 emacs_cv_speed_t=yes
7420 else
7421 echo "$as_me: failed program was:" >&5
7422 sed 's/^/| /' conftest.$ac_ext >&5
7423
7424 emacs_cv_speed_t=no
7425 fi
7426
7427 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7428 fi
7429 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7430 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7431 if test $emacs_cv_speed_t = yes; then
7432
7433 cat >>confdefs.h <<\_ACEOF
7434 #define HAVE_SPEED_T 1
7435 _ACEOF
7436
7437 fi
7438
7439 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7440 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7441 if test "${emacs_cv_struct_timeval+set}" = set; then
7442 echo $ECHO_N "(cached) $ECHO_C" >&6
7443 else
7444 cat >conftest.$ac_ext <<_ACEOF
7445 /* confdefs.h. */
7446 _ACEOF
7447 cat confdefs.h >>conftest.$ac_ext
7448 cat >>conftest.$ac_ext <<_ACEOF
7449 /* end confdefs.h. */
7450 #ifdef TIME_WITH_SYS_TIME
7451 #include <sys/time.h>
7452 #include <time.h>
7453 #else
7454 #ifdef HAVE_SYS_TIME_H
7455 #include <sys/time.h>
7456 #else
7457 #include <time.h>
7458 #endif
7459 #endif
7460 int
7461 main ()
7462 {
7463 static struct timeval x; x.tv_sec = x.tv_usec;
7464 ;
7465 return 0;
7466 }
7467 _ACEOF
7468 rm -f conftest.$ac_objext
7469 if { (ac_try="$ac_compile"
7470 case "(($ac_try" in
7471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7472 *) ac_try_echo=$ac_try;;
7473 esac
7474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7475 (eval "$ac_compile") 2>conftest.er1
7476 ac_status=$?
7477 grep -v '^ *+' conftest.er1 >conftest.err
7478 rm -f conftest.er1
7479 cat conftest.err >&5
7480 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7481 (exit $ac_status); } && {
7482 test -z "$ac_c_werror_flag" ||
7483 test ! -s conftest.err
7484 } && test -s conftest.$ac_objext; then
7485 emacs_cv_struct_timeval=yes
7486 else
7487 echo "$as_me: failed program was:" >&5
7488 sed 's/^/| /' conftest.$ac_ext >&5
7489
7490 emacs_cv_struct_timeval=no
7491 fi
7492
7493 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7494 fi
7495 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7496 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7497 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7498 if test $emacs_cv_struct_timeval = yes; then
7499
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_TIMEVAL 1
7502 _ACEOF
7503
7504 fi
7505
7506 { echo "$as_me:$LINENO: checking for struct exception" >&5
7507 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7508 if test "${emacs_cv_struct_exception+set}" = set; then
7509 echo $ECHO_N "(cached) $ECHO_C" >&6
7510 else
7511 cat >conftest.$ac_ext <<_ACEOF
7512 /* confdefs.h. */
7513 _ACEOF
7514 cat confdefs.h >>conftest.$ac_ext
7515 cat >>conftest.$ac_ext <<_ACEOF
7516 /* end confdefs.h. */
7517 #include <math.h>
7518 int
7519 main ()
7520 {
7521 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7522 ;
7523 return 0;
7524 }
7525 _ACEOF
7526 rm -f conftest.$ac_objext
7527 if { (ac_try="$ac_compile"
7528 case "(($ac_try" in
7529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7530 *) ac_try_echo=$ac_try;;
7531 esac
7532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7533 (eval "$ac_compile") 2>conftest.er1
7534 ac_status=$?
7535 grep -v '^ *+' conftest.er1 >conftest.err
7536 rm -f conftest.er1
7537 cat conftest.err >&5
7538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7539 (exit $ac_status); } && {
7540 test -z "$ac_c_werror_flag" ||
7541 test ! -s conftest.err
7542 } && test -s conftest.$ac_objext; then
7543 emacs_cv_struct_exception=yes
7544 else
7545 echo "$as_me: failed program was:" >&5
7546 sed 's/^/| /' conftest.$ac_ext >&5
7547
7548 emacs_cv_struct_exception=no
7549 fi
7550
7551 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7552 fi
7553 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7554 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7555 HAVE_EXCEPTION=$emacs_cv_struct_exception
7556 if test $emacs_cv_struct_exception != yes; then
7557
7558 cat >>confdefs.h <<\_ACEOF
7559 #define NO_MATHERR 1
7560 _ACEOF
7561
7562 fi
7563
7564
7565 for ac_header in sys/socket.h
7566 do
7567 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7568 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7569 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7570 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7571 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7572 echo $ECHO_N "(cached) $ECHO_C" >&6
7573 fi
7574 ac_res=`eval echo '${'$as_ac_Header'}'`
7575 { echo "$as_me:$LINENO: result: $ac_res" >&5
7576 echo "${ECHO_T}$ac_res" >&6; }
7577 else
7578 # Is the header compilable?
7579 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7580 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7581 cat >conftest.$ac_ext <<_ACEOF
7582 /* confdefs.h. */
7583 _ACEOF
7584 cat confdefs.h >>conftest.$ac_ext
7585 cat >>conftest.$ac_ext <<_ACEOF
7586 /* end confdefs.h. */
7587 $ac_includes_default
7588 #include <$ac_header>
7589 _ACEOF
7590 rm -f conftest.$ac_objext
7591 if { (ac_try="$ac_compile"
7592 case "(($ac_try" in
7593 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7594 *) ac_try_echo=$ac_try;;
7595 esac
7596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7597 (eval "$ac_compile") 2>conftest.er1
7598 ac_status=$?
7599 grep -v '^ *+' conftest.er1 >conftest.err
7600 rm -f conftest.er1
7601 cat conftest.err >&5
7602 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7603 (exit $ac_status); } && {
7604 test -z "$ac_c_werror_flag" ||
7605 test ! -s conftest.err
7606 } && test -s conftest.$ac_objext; then
7607 ac_header_compiler=yes
7608 else
7609 echo "$as_me: failed program was:" >&5
7610 sed 's/^/| /' conftest.$ac_ext >&5
7611
7612 ac_header_compiler=no
7613 fi
7614
7615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7616 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7617 echo "${ECHO_T}$ac_header_compiler" >&6; }
7618
7619 # Is the header present?
7620 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7621 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7622 cat >conftest.$ac_ext <<_ACEOF
7623 /* confdefs.h. */
7624 _ACEOF
7625 cat confdefs.h >>conftest.$ac_ext
7626 cat >>conftest.$ac_ext <<_ACEOF
7627 /* end confdefs.h. */
7628 #include <$ac_header>
7629 _ACEOF
7630 if { (ac_try="$ac_cpp conftest.$ac_ext"
7631 case "(($ac_try" in
7632 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7633 *) ac_try_echo=$ac_try;;
7634 esac
7635 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7636 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7637 ac_status=$?
7638 grep -v '^ *+' conftest.er1 >conftest.err
7639 rm -f conftest.er1
7640 cat conftest.err >&5
7641 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7642 (exit $ac_status); } >/dev/null && {
7643 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7644 test ! -s conftest.err
7645 }; then
7646 ac_header_preproc=yes
7647 else
7648 echo "$as_me: failed program was:" >&5
7649 sed 's/^/| /' conftest.$ac_ext >&5
7650
7651 ac_header_preproc=no
7652 fi
7653
7654 rm -f conftest.err conftest.$ac_ext
7655 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7656 echo "${ECHO_T}$ac_header_preproc" >&6; }
7657
7658 # So? What about this header?
7659 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7660 yes:no: )
7661 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7662 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7663 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7664 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7665 ac_header_preproc=yes
7666 ;;
7667 no:yes:* )
7668 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7669 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7670 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7671 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7672 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7673 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7674 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7675 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7676 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7677 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7678 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7679 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7680
7681 ;;
7682 esac
7683 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7684 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7685 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7686 echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688 eval "$as_ac_Header=\$ac_header_preproc"
7689 fi
7690 ac_res=`eval echo '${'$as_ac_Header'}'`
7691 { echo "$as_me:$LINENO: result: $ac_res" >&5
7692 echo "${ECHO_T}$ac_res" >&6; }
7693
7694 fi
7695 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7696 cat >>confdefs.h <<_ACEOF
7697 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7698 _ACEOF
7699
7700 fi
7701
7702 done
7703
7704
7705 for ac_header in net/if.h
7706 do
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7709 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7710 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7711 echo $ECHO_N "(cached) $ECHO_C" >&6
7712 else
7713 cat >conftest.$ac_ext <<_ACEOF
7714 /* confdefs.h. */
7715 _ACEOF
7716 cat confdefs.h >>conftest.$ac_ext
7717 cat >>conftest.$ac_ext <<_ACEOF
7718 /* end confdefs.h. */
7719 $ac_includes_default
7720 #if HAVE_SYS_SOCKET_H
7721 #include <sys/socket.h>
7722 #endif
7723
7724 #include <$ac_header>
7725 _ACEOF
7726 rm -f conftest.$ac_objext
7727 if { (ac_try="$ac_compile"
7728 case "(($ac_try" in
7729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7730 *) ac_try_echo=$ac_try;;
7731 esac
7732 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7733 (eval "$ac_compile") 2>conftest.er1
7734 ac_status=$?
7735 grep -v '^ *+' conftest.er1 >conftest.err
7736 rm -f conftest.er1
7737 cat conftest.err >&5
7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7739 (exit $ac_status); } && {
7740 test -z "$ac_c_werror_flag" ||
7741 test ! -s conftest.err
7742 } && test -s conftest.$ac_objext; then
7743 eval "$as_ac_Header=yes"
7744 else
7745 echo "$as_me: failed program was:" >&5
7746 sed 's/^/| /' conftest.$ac_ext >&5
7747
7748 eval "$as_ac_Header=no"
7749 fi
7750
7751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7752 fi
7753 ac_res=`eval echo '${'$as_ac_Header'}'`
7754 { echo "$as_me:$LINENO: result: $ac_res" >&5
7755 echo "${ECHO_T}$ac_res" >&6; }
7756 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7757 cat >>confdefs.h <<_ACEOF
7758 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7759 _ACEOF
7760
7761 fi
7762
7763 done
7764
7765
7766 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7767 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7768 if test "${ac_cv_struct_tm+set}" = set; then
7769 echo $ECHO_N "(cached) $ECHO_C" >&6
7770 else
7771 cat >conftest.$ac_ext <<_ACEOF
7772 /* confdefs.h. */
7773 _ACEOF
7774 cat confdefs.h >>conftest.$ac_ext
7775 cat >>conftest.$ac_ext <<_ACEOF
7776 /* end confdefs.h. */
7777 #include <sys/types.h>
7778 #include <time.h>
7779
7780 int
7781 main ()
7782 {
7783 struct tm tm;
7784 int *p = &tm.tm_sec;
7785 return !p;
7786 ;
7787 return 0;
7788 }
7789 _ACEOF
7790 rm -f conftest.$ac_objext
7791 if { (ac_try="$ac_compile"
7792 case "(($ac_try" in
7793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7794 *) ac_try_echo=$ac_try;;
7795 esac
7796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7797 (eval "$ac_compile") 2>conftest.er1
7798 ac_status=$?
7799 grep -v '^ *+' conftest.er1 >conftest.err
7800 rm -f conftest.er1
7801 cat conftest.err >&5
7802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7803 (exit $ac_status); } && {
7804 test -z "$ac_c_werror_flag" ||
7805 test ! -s conftest.err
7806 } && test -s conftest.$ac_objext; then
7807 ac_cv_struct_tm=time.h
7808 else
7809 echo "$as_me: failed program was:" >&5
7810 sed 's/^/| /' conftest.$ac_ext >&5
7811
7812 ac_cv_struct_tm=sys/time.h
7813 fi
7814
7815 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7816 fi
7817 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7818 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7819 if test $ac_cv_struct_tm = sys/time.h; then
7820
7821 cat >>confdefs.h <<\_ACEOF
7822 #define TM_IN_SYS_TIME 1
7823 _ACEOF
7824
7825 fi
7826
7827 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7828 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7829 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7830 echo $ECHO_N "(cached) $ECHO_C" >&6
7831 else
7832 cat >conftest.$ac_ext <<_ACEOF
7833 /* confdefs.h. */
7834 _ACEOF
7835 cat confdefs.h >>conftest.$ac_ext
7836 cat >>conftest.$ac_ext <<_ACEOF
7837 /* end confdefs.h. */
7838 #include <sys/types.h>
7839 #include <$ac_cv_struct_tm>
7840
7841
7842 int
7843 main ()
7844 {
7845 static struct tm ac_aggr;
7846 if (ac_aggr.tm_zone)
7847 return 0;
7848 ;
7849 return 0;
7850 }
7851 _ACEOF
7852 rm -f conftest.$ac_objext
7853 if { (ac_try="$ac_compile"
7854 case "(($ac_try" in
7855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7856 *) ac_try_echo=$ac_try;;
7857 esac
7858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7859 (eval "$ac_compile") 2>conftest.er1
7860 ac_status=$?
7861 grep -v '^ *+' conftest.er1 >conftest.err
7862 rm -f conftest.er1
7863 cat conftest.err >&5
7864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7865 (exit $ac_status); } && {
7866 test -z "$ac_c_werror_flag" ||
7867 test ! -s conftest.err
7868 } && test -s conftest.$ac_objext; then
7869 ac_cv_member_struct_tm_tm_zone=yes
7870 else
7871 echo "$as_me: failed program was:" >&5
7872 sed 's/^/| /' conftest.$ac_ext >&5
7873
7874 cat >conftest.$ac_ext <<_ACEOF
7875 /* confdefs.h. */
7876 _ACEOF
7877 cat confdefs.h >>conftest.$ac_ext
7878 cat >>conftest.$ac_ext <<_ACEOF
7879 /* end confdefs.h. */
7880 #include <sys/types.h>
7881 #include <$ac_cv_struct_tm>
7882
7883
7884 int
7885 main ()
7886 {
7887 static struct tm ac_aggr;
7888 if (sizeof ac_aggr.tm_zone)
7889 return 0;
7890 ;
7891 return 0;
7892 }
7893 _ACEOF
7894 rm -f conftest.$ac_objext
7895 if { (ac_try="$ac_compile"
7896 case "(($ac_try" in
7897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7898 *) ac_try_echo=$ac_try;;
7899 esac
7900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7901 (eval "$ac_compile") 2>conftest.er1
7902 ac_status=$?
7903 grep -v '^ *+' conftest.er1 >conftest.err
7904 rm -f conftest.er1
7905 cat conftest.err >&5
7906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7907 (exit $ac_status); } && {
7908 test -z "$ac_c_werror_flag" ||
7909 test ! -s conftest.err
7910 } && test -s conftest.$ac_objext; then
7911 ac_cv_member_struct_tm_tm_zone=yes
7912 else
7913 echo "$as_me: failed program was:" >&5
7914 sed 's/^/| /' conftest.$ac_ext >&5
7915
7916 ac_cv_member_struct_tm_tm_zone=no
7917 fi
7918
7919 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7920 fi
7921
7922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7923 fi
7924 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
7925 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
7926 if test $ac_cv_member_struct_tm_tm_zone = yes; then
7927
7928 cat >>confdefs.h <<_ACEOF
7929 #define HAVE_STRUCT_TM_TM_ZONE 1
7930 _ACEOF
7931
7932
7933 fi
7934
7935 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
7936
7937 cat >>confdefs.h <<\_ACEOF
7938 #define HAVE_TM_ZONE 1
7939 _ACEOF
7940
7941 else
7942 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
7943 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
7944 if test "${ac_cv_have_decl_tzname+set}" = set; then
7945 echo $ECHO_N "(cached) $ECHO_C" >&6
7946 else
7947 cat >conftest.$ac_ext <<_ACEOF
7948 /* confdefs.h. */
7949 _ACEOF
7950 cat confdefs.h >>conftest.$ac_ext
7951 cat >>conftest.$ac_ext <<_ACEOF
7952 /* end confdefs.h. */
7953 #include <time.h>
7954
7955 int
7956 main ()
7957 {
7958 #ifndef tzname
7959 (void) tzname;
7960 #endif
7961
7962 ;
7963 return 0;
7964 }
7965 _ACEOF
7966 rm -f conftest.$ac_objext
7967 if { (ac_try="$ac_compile"
7968 case "(($ac_try" in
7969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7970 *) ac_try_echo=$ac_try;;
7971 esac
7972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7973 (eval "$ac_compile") 2>conftest.er1
7974 ac_status=$?
7975 grep -v '^ *+' conftest.er1 >conftest.err
7976 rm -f conftest.er1
7977 cat conftest.err >&5
7978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7979 (exit $ac_status); } && {
7980 test -z "$ac_c_werror_flag" ||
7981 test ! -s conftest.err
7982 } && test -s conftest.$ac_objext; then
7983 ac_cv_have_decl_tzname=yes
7984 else
7985 echo "$as_me: failed program was:" >&5
7986 sed 's/^/| /' conftest.$ac_ext >&5
7987
7988 ac_cv_have_decl_tzname=no
7989 fi
7990
7991 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7992 fi
7993 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
7994 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
7995 if test $ac_cv_have_decl_tzname = yes; then
7996
7997 cat >>confdefs.h <<_ACEOF
7998 #define HAVE_DECL_TZNAME 1
7999 _ACEOF
8000
8001
8002 else
8003 cat >>confdefs.h <<_ACEOF
8004 #define HAVE_DECL_TZNAME 0
8005 _ACEOF
8006
8007
8008 fi
8009
8010
8011 { echo "$as_me:$LINENO: checking for tzname" >&5
8012 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8013 if test "${ac_cv_var_tzname+set}" = set; then
8014 echo $ECHO_N "(cached) $ECHO_C" >&6
8015 else
8016 cat >conftest.$ac_ext <<_ACEOF
8017 /* confdefs.h. */
8018 _ACEOF
8019 cat confdefs.h >>conftest.$ac_ext
8020 cat >>conftest.$ac_ext <<_ACEOF
8021 /* end confdefs.h. */
8022 #include <time.h>
8023 #if !HAVE_DECL_TZNAME
8024 extern char *tzname[];
8025 #endif
8026
8027 int
8028 main ()
8029 {
8030 return tzname[0][0];
8031 ;
8032 return 0;
8033 }
8034 _ACEOF
8035 rm -f conftest.$ac_objext conftest$ac_exeext
8036 if { (ac_try="$ac_link"
8037 case "(($ac_try" in
8038 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8039 *) ac_try_echo=$ac_try;;
8040 esac
8041 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8042 (eval "$ac_link") 2>conftest.er1
8043 ac_status=$?
8044 grep -v '^ *+' conftest.er1 >conftest.err
8045 rm -f conftest.er1
8046 cat conftest.err >&5
8047 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8048 (exit $ac_status); } && {
8049 test -z "$ac_c_werror_flag" ||
8050 test ! -s conftest.err
8051 } && test -s conftest$ac_exeext &&
8052 $as_test_x conftest$ac_exeext; then
8053 ac_cv_var_tzname=yes
8054 else
8055 echo "$as_me: failed program was:" >&5
8056 sed 's/^/| /' conftest.$ac_ext >&5
8057
8058 ac_cv_var_tzname=no
8059 fi
8060
8061 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8062 conftest$ac_exeext conftest.$ac_ext
8063 fi
8064 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8065 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8066 if test $ac_cv_var_tzname = yes; then
8067
8068 cat >>confdefs.h <<\_ACEOF
8069 #define HAVE_TZNAME 1
8070 _ACEOF
8071
8072 fi
8073 fi
8074
8075 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8076 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8077 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8078 echo $ECHO_N "(cached) $ECHO_C" >&6
8079 else
8080 cat >conftest.$ac_ext <<_ACEOF
8081 /* confdefs.h. */
8082 _ACEOF
8083 cat confdefs.h >>conftest.$ac_ext
8084 cat >>conftest.$ac_ext <<_ACEOF
8085 /* end confdefs.h. */
8086 #include <time.h>
8087
8088 int
8089 main ()
8090 {
8091 static struct tm ac_aggr;
8092 if (ac_aggr.tm_gmtoff)
8093 return 0;
8094 ;
8095 return 0;
8096 }
8097 _ACEOF
8098 rm -f conftest.$ac_objext
8099 if { (ac_try="$ac_compile"
8100 case "(($ac_try" in
8101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8102 *) ac_try_echo=$ac_try;;
8103 esac
8104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8105 (eval "$ac_compile") 2>conftest.er1
8106 ac_status=$?
8107 grep -v '^ *+' conftest.er1 >conftest.err
8108 rm -f conftest.er1
8109 cat conftest.err >&5
8110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8111 (exit $ac_status); } && {
8112 test -z "$ac_c_werror_flag" ||
8113 test ! -s conftest.err
8114 } && test -s conftest.$ac_objext; then
8115 ac_cv_member_struct_tm_tm_gmtoff=yes
8116 else
8117 echo "$as_me: failed program was:" >&5
8118 sed 's/^/| /' conftest.$ac_ext >&5
8119
8120 cat >conftest.$ac_ext <<_ACEOF
8121 /* confdefs.h. */
8122 _ACEOF
8123 cat confdefs.h >>conftest.$ac_ext
8124 cat >>conftest.$ac_ext <<_ACEOF
8125 /* end confdefs.h. */
8126 #include <time.h>
8127
8128 int
8129 main ()
8130 {
8131 static struct tm ac_aggr;
8132 if (sizeof ac_aggr.tm_gmtoff)
8133 return 0;
8134 ;
8135 return 0;
8136 }
8137 _ACEOF
8138 rm -f conftest.$ac_objext
8139 if { (ac_try="$ac_compile"
8140 case "(($ac_try" in
8141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8142 *) ac_try_echo=$ac_try;;
8143 esac
8144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8145 (eval "$ac_compile") 2>conftest.er1
8146 ac_status=$?
8147 grep -v '^ *+' conftest.er1 >conftest.err
8148 rm -f conftest.er1
8149 cat conftest.err >&5
8150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8151 (exit $ac_status); } && {
8152 test -z "$ac_c_werror_flag" ||
8153 test ! -s conftest.err
8154 } && test -s conftest.$ac_objext; then
8155 ac_cv_member_struct_tm_tm_gmtoff=yes
8156 else
8157 echo "$as_me: failed program was:" >&5
8158 sed 's/^/| /' conftest.$ac_ext >&5
8159
8160 ac_cv_member_struct_tm_tm_gmtoff=no
8161 fi
8162
8163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8164 fi
8165
8166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8167 fi
8168 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8169 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8170 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8171
8172 cat >>confdefs.h <<\_ACEOF
8173 #define HAVE_TM_GMTOFF 1
8174 _ACEOF
8175
8176 fi
8177
8178 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8179 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8180 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8181 echo $ECHO_N "(cached) $ECHO_C" >&6
8182 else
8183 cat >conftest.$ac_ext <<_ACEOF
8184 /* confdefs.h. */
8185 _ACEOF
8186 cat confdefs.h >>conftest.$ac_ext
8187 cat >>conftest.$ac_ext <<_ACEOF
8188 /* end confdefs.h. */
8189 $ac_includes_default
8190 #if HAVE_SYS_SOCKET_H
8191 #include <sys/socket.h>
8192 #endif
8193 #if HAVE_NET_IF_H
8194 #include <net/if.h>
8195 #endif
8196
8197 int
8198 main ()
8199 {
8200 static struct ifreq ac_aggr;
8201 if (ac_aggr.ifr_flags)
8202 return 0;
8203 ;
8204 return 0;
8205 }
8206 _ACEOF
8207 rm -f conftest.$ac_objext
8208 if { (ac_try="$ac_compile"
8209 case "(($ac_try" in
8210 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8211 *) ac_try_echo=$ac_try;;
8212 esac
8213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8214 (eval "$ac_compile") 2>conftest.er1
8215 ac_status=$?
8216 grep -v '^ *+' conftest.er1 >conftest.err
8217 rm -f conftest.er1
8218 cat conftest.err >&5
8219 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8220 (exit $ac_status); } && {
8221 test -z "$ac_c_werror_flag" ||
8222 test ! -s conftest.err
8223 } && test -s conftest.$ac_objext; then
8224 ac_cv_member_struct_ifreq_ifr_flags=yes
8225 else
8226 echo "$as_me: failed program was:" >&5
8227 sed 's/^/| /' conftest.$ac_ext >&5
8228
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 (sizeof 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 ac_cv_member_struct_ifreq_ifr_flags=no
8276 fi
8277
8278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8279 fi
8280
8281 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8282 fi
8283 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8284 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8285 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8286
8287 cat >>confdefs.h <<_ACEOF
8288 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8289 _ACEOF
8290
8291
8292 fi
8293 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8294 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8295 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8296 echo $ECHO_N "(cached) $ECHO_C" >&6
8297 else
8298 cat >conftest.$ac_ext <<_ACEOF
8299 /* confdefs.h. */
8300 _ACEOF
8301 cat confdefs.h >>conftest.$ac_ext
8302 cat >>conftest.$ac_ext <<_ACEOF
8303 /* end confdefs.h. */
8304 $ac_includes_default
8305 #if HAVE_SYS_SOCKET_H
8306 #include <sys/socket.h>
8307 #endif
8308 #if HAVE_NET_IF_H
8309 #include <net/if.h>
8310 #endif
8311
8312 int
8313 main ()
8314 {
8315 static struct ifreq ac_aggr;
8316 if (ac_aggr.ifr_hwaddr)
8317 return 0;
8318 ;
8319 return 0;
8320 }
8321 _ACEOF
8322 rm -f conftest.$ac_objext
8323 if { (ac_try="$ac_compile"
8324 case "(($ac_try" in
8325 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8326 *) ac_try_echo=$ac_try;;
8327 esac
8328 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8329 (eval "$ac_compile") 2>conftest.er1
8330 ac_status=$?
8331 grep -v '^ *+' conftest.er1 >conftest.err
8332 rm -f conftest.er1
8333 cat conftest.err >&5
8334 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8335 (exit $ac_status); } && {
8336 test -z "$ac_c_werror_flag" ||
8337 test ! -s conftest.err
8338 } && test -s conftest.$ac_objext; then
8339 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8340 else
8341 echo "$as_me: failed program was:" >&5
8342 sed 's/^/| /' conftest.$ac_ext >&5
8343
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 (sizeof 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 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8391 fi
8392
8393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8394 fi
8395
8396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8397 fi
8398 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8399 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8400 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8401
8402 cat >>confdefs.h <<_ACEOF
8403 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8404 _ACEOF
8405
8406
8407 fi
8408 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8409 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8410 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8411 echo $ECHO_N "(cached) $ECHO_C" >&6
8412 else
8413 cat >conftest.$ac_ext <<_ACEOF
8414 /* confdefs.h. */
8415 _ACEOF
8416 cat confdefs.h >>conftest.$ac_ext
8417 cat >>conftest.$ac_ext <<_ACEOF
8418 /* end confdefs.h. */
8419 $ac_includes_default
8420 #if HAVE_SYS_SOCKET_H
8421 #include <sys/socket.h>
8422 #endif
8423 #if HAVE_NET_IF_H
8424 #include <net/if.h>
8425 #endif
8426
8427 int
8428 main ()
8429 {
8430 static struct ifreq ac_aggr;
8431 if (ac_aggr.ifr_netmask)
8432 return 0;
8433 ;
8434 return 0;
8435 }
8436 _ACEOF
8437 rm -f conftest.$ac_objext
8438 if { (ac_try="$ac_compile"
8439 case "(($ac_try" in
8440 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8441 *) ac_try_echo=$ac_try;;
8442 esac
8443 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8444 (eval "$ac_compile") 2>conftest.er1
8445 ac_status=$?
8446 grep -v '^ *+' conftest.er1 >conftest.err
8447 rm -f conftest.er1
8448 cat conftest.err >&5
8449 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8450 (exit $ac_status); } && {
8451 test -z "$ac_c_werror_flag" ||
8452 test ! -s conftest.err
8453 } && test -s conftest.$ac_objext; then
8454 ac_cv_member_struct_ifreq_ifr_netmask=yes
8455 else
8456 echo "$as_me: failed program was:" >&5
8457 sed 's/^/| /' conftest.$ac_ext >&5
8458
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 (sizeof 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 ac_cv_member_struct_ifreq_ifr_netmask=no
8506 fi
8507
8508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8509 fi
8510
8511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8512 fi
8513 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8514 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8515 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8516
8517 cat >>confdefs.h <<_ACEOF
8518 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8519 _ACEOF
8520
8521
8522 fi
8523 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8524 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8525 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8526 echo $ECHO_N "(cached) $ECHO_C" >&6
8527 else
8528 cat >conftest.$ac_ext <<_ACEOF
8529 /* confdefs.h. */
8530 _ACEOF
8531 cat confdefs.h >>conftest.$ac_ext
8532 cat >>conftest.$ac_ext <<_ACEOF
8533 /* end confdefs.h. */
8534 $ac_includes_default
8535 #if HAVE_SYS_SOCKET_H
8536 #include <sys/socket.h>
8537 #endif
8538 #if HAVE_NET_IF_H
8539 #include <net/if.h>
8540 #endif
8541
8542 int
8543 main ()
8544 {
8545 static struct ifreq ac_aggr;
8546 if (ac_aggr.ifr_broadaddr)
8547 return 0;
8548 ;
8549 return 0;
8550 }
8551 _ACEOF
8552 rm -f conftest.$ac_objext
8553 if { (ac_try="$ac_compile"
8554 case "(($ac_try" in
8555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8556 *) ac_try_echo=$ac_try;;
8557 esac
8558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8559 (eval "$ac_compile") 2>conftest.er1
8560 ac_status=$?
8561 grep -v '^ *+' conftest.er1 >conftest.err
8562 rm -f conftest.er1
8563 cat conftest.err >&5
8564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8565 (exit $ac_status); } && {
8566 test -z "$ac_c_werror_flag" ||
8567 test ! -s conftest.err
8568 } && test -s conftest.$ac_objext; then
8569 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8570 else
8571 echo "$as_me: failed program was:" >&5
8572 sed 's/^/| /' conftest.$ac_ext >&5
8573
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 (sizeof 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 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8621 fi
8622
8623 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8624 fi
8625
8626 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8627 fi
8628 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8629 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8630 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8631
8632 cat >>confdefs.h <<_ACEOF
8633 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8634 _ACEOF
8635
8636
8637 fi
8638 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8639 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8640 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8641 echo $ECHO_N "(cached) $ECHO_C" >&6
8642 else
8643 cat >conftest.$ac_ext <<_ACEOF
8644 /* confdefs.h. */
8645 _ACEOF
8646 cat confdefs.h >>conftest.$ac_ext
8647 cat >>conftest.$ac_ext <<_ACEOF
8648 /* end confdefs.h. */
8649 $ac_includes_default
8650 #if HAVE_SYS_SOCKET_H
8651 #include <sys/socket.h>
8652 #endif
8653 #if HAVE_NET_IF_H
8654 #include <net/if.h>
8655 #endif
8656
8657 int
8658 main ()
8659 {
8660 static struct ifreq ac_aggr;
8661 if (ac_aggr.ifr_addr)
8662 return 0;
8663 ;
8664 return 0;
8665 }
8666 _ACEOF
8667 rm -f conftest.$ac_objext
8668 if { (ac_try="$ac_compile"
8669 case "(($ac_try" in
8670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8671 *) ac_try_echo=$ac_try;;
8672 esac
8673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8674 (eval "$ac_compile") 2>conftest.er1
8675 ac_status=$?
8676 grep -v '^ *+' conftest.er1 >conftest.err
8677 rm -f conftest.er1
8678 cat conftest.err >&5
8679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8680 (exit $ac_status); } && {
8681 test -z "$ac_c_werror_flag" ||
8682 test ! -s conftest.err
8683 } && test -s conftest.$ac_objext; then
8684 ac_cv_member_struct_ifreq_ifr_addr=yes
8685 else
8686 echo "$as_me: failed program was:" >&5
8687 sed 's/^/| /' conftest.$ac_ext >&5
8688
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 (sizeof 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 ac_cv_member_struct_ifreq_ifr_addr=no
8736 fi
8737
8738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8739 fi
8740
8741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8742 fi
8743 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8744 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8745 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8746
8747 cat >>confdefs.h <<_ACEOF
8748 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8749 _ACEOF
8750
8751
8752 fi
8753
8754
8755
8756 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8757 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8758 if test "$ac_cv_prog_cc_c89" != no; then
8759 { echo "$as_me:$LINENO: result: yes" >&5
8760 echo "${ECHO_T}yes" >&6; }
8761
8762 cat >>confdefs.h <<\_ACEOF
8763 #define PROTOTYPES 1
8764 _ACEOF
8765
8766
8767 cat >>confdefs.h <<\_ACEOF
8768 #define __PROTOTYPES 1
8769 _ACEOF
8770
8771 else
8772 { echo "$as_me:$LINENO: result: no" >&5
8773 echo "${ECHO_T}no" >&6; }
8774 fi
8775
8776 { echo "$as_me:$LINENO: checking for working volatile" >&5
8777 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8778 if test "${ac_cv_c_volatile+set}" = set; then
8779 echo $ECHO_N "(cached) $ECHO_C" >&6
8780 else
8781 cat >conftest.$ac_ext <<_ACEOF
8782 /* confdefs.h. */
8783 _ACEOF
8784 cat confdefs.h >>conftest.$ac_ext
8785 cat >>conftest.$ac_ext <<_ACEOF
8786 /* end confdefs.h. */
8787
8788 int
8789 main ()
8790 {
8791
8792 volatile int x;
8793 int * volatile y = (int *) 0;
8794 return !x && !y;
8795 ;
8796 return 0;
8797 }
8798 _ACEOF
8799 rm -f conftest.$ac_objext
8800 if { (ac_try="$ac_compile"
8801 case "(($ac_try" in
8802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8803 *) ac_try_echo=$ac_try;;
8804 esac
8805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8806 (eval "$ac_compile") 2>conftest.er1
8807 ac_status=$?
8808 grep -v '^ *+' conftest.er1 >conftest.err
8809 rm -f conftest.er1
8810 cat conftest.err >&5
8811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8812 (exit $ac_status); } && {
8813 test -z "$ac_c_werror_flag" ||
8814 test ! -s conftest.err
8815 } && test -s conftest.$ac_objext; then
8816 ac_cv_c_volatile=yes
8817 else
8818 echo "$as_me: failed program was:" >&5
8819 sed 's/^/| /' conftest.$ac_ext >&5
8820
8821 ac_cv_c_volatile=no
8822 fi
8823
8824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8825 fi
8826 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8827 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8828 if test $ac_cv_c_volatile = no; then
8829
8830 cat >>confdefs.h <<\_ACEOF
8831 #define volatile
8832 _ACEOF
8833
8834 fi
8835
8836 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8837 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8838 if test "${ac_cv_c_const+set}" = set; then
8839 echo $ECHO_N "(cached) $ECHO_C" >&6
8840 else
8841 cat >conftest.$ac_ext <<_ACEOF
8842 /* confdefs.h. */
8843 _ACEOF
8844 cat confdefs.h >>conftest.$ac_ext
8845 cat >>conftest.$ac_ext <<_ACEOF
8846 /* end confdefs.h. */
8847
8848 int
8849 main ()
8850 {
8851 /* FIXME: Include the comments suggested by Paul. */
8852 #ifndef __cplusplus
8853 /* Ultrix mips cc rejects this. */
8854 typedef int charset[2];
8855 const charset cs;
8856 /* SunOS 4.1.1 cc rejects this. */
8857 char const *const *pcpcc;
8858 char **ppc;
8859 /* NEC SVR4.0.2 mips cc rejects this. */
8860 struct point {int x, y;};
8861 static struct point const zero = {0,0};
8862 /* AIX XL C 1.02.0.0 rejects this.
8863 It does not let you subtract one const X* pointer from another in
8864 an arm of an if-expression whose if-part is not a constant
8865 expression */
8866 const char *g = "string";
8867 pcpcc = &g + (g ? g-g : 0);
8868 /* HPUX 7.0 cc rejects these. */
8869 ++pcpcc;
8870 ppc = (char**) pcpcc;
8871 pcpcc = (char const *const *) ppc;
8872 { /* SCO 3.2v4 cc rejects this. */
8873 char *t;
8874 char const *s = 0 ? (char *) 0 : (char const *) 0;
8875
8876 *t++ = 0;
8877 if (s) return 0;
8878 }
8879 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
8880 int x[] = {25, 17};
8881 const int *foo = &x[0];
8882 ++foo;
8883 }
8884 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
8885 typedef const int *iptr;
8886 iptr p = 0;
8887 ++p;
8888 }
8889 { /* AIX XL C 1.02.0.0 rejects this saying
8890 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
8891 struct s { int j; const int *ap[3]; };
8892 struct s *b; b->j = 5;
8893 }
8894 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
8895 const int foo = 10;
8896 if (!foo) return 0;
8897 }
8898 return !cs[0] && !zero.x;
8899 #endif
8900
8901 ;
8902 return 0;
8903 }
8904 _ACEOF
8905 rm -f conftest.$ac_objext
8906 if { (ac_try="$ac_compile"
8907 case "(($ac_try" in
8908 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8909 *) ac_try_echo=$ac_try;;
8910 esac
8911 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8912 (eval "$ac_compile") 2>conftest.er1
8913 ac_status=$?
8914 grep -v '^ *+' conftest.er1 >conftest.err
8915 rm -f conftest.er1
8916 cat conftest.err >&5
8917 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8918 (exit $ac_status); } && {
8919 test -z "$ac_c_werror_flag" ||
8920 test ! -s conftest.err
8921 } && test -s conftest.$ac_objext; then
8922 ac_cv_c_const=yes
8923 else
8924 echo "$as_me: failed program was:" >&5
8925 sed 's/^/| /' conftest.$ac_ext >&5
8926
8927 ac_cv_c_const=no
8928 fi
8929
8930 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8931 fi
8932 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
8933 echo "${ECHO_T}$ac_cv_c_const" >&6; }
8934 if test $ac_cv_c_const = no; then
8935
8936 cat >>confdefs.h <<\_ACEOF
8937 #define const
8938 _ACEOF
8939
8940 fi
8941
8942 { echo "$as_me:$LINENO: checking for void * support" >&5
8943 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
8944 if test "${emacs_cv_void_star+set}" = set; then
8945 echo $ECHO_N "(cached) $ECHO_C" >&6
8946 else
8947 cat >conftest.$ac_ext <<_ACEOF
8948 /* confdefs.h. */
8949 _ACEOF
8950 cat confdefs.h >>conftest.$ac_ext
8951 cat >>conftest.$ac_ext <<_ACEOF
8952 /* end confdefs.h. */
8953
8954 int
8955 main ()
8956 {
8957 void * foo;
8958 ;
8959 return 0;
8960 }
8961 _ACEOF
8962 rm -f conftest.$ac_objext
8963 if { (ac_try="$ac_compile"
8964 case "(($ac_try" in
8965 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8966 *) ac_try_echo=$ac_try;;
8967 esac
8968 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8969 (eval "$ac_compile") 2>conftest.er1
8970 ac_status=$?
8971 grep -v '^ *+' conftest.er1 >conftest.err
8972 rm -f conftest.er1
8973 cat conftest.err >&5
8974 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8975 (exit $ac_status); } && {
8976 test -z "$ac_c_werror_flag" ||
8977 test ! -s conftest.err
8978 } && test -s conftest.$ac_objext; then
8979 emacs_cv_void_star=yes
8980 else
8981 echo "$as_me: failed program was:" >&5
8982 sed 's/^/| /' conftest.$ac_ext >&5
8983
8984 emacs_cv_void_star=no
8985 fi
8986
8987 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8988 fi
8989 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
8990 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
8991 if test $emacs_cv_void_star = yes; then
8992 cat >>confdefs.h <<\_ACEOF
8993 #define POINTER_TYPE void
8994 _ACEOF
8995
8996 else
8997 cat >>confdefs.h <<\_ACEOF
8998 #define POINTER_TYPE char
8999 _ACEOF
9000
9001 fi
9002
9003
9004
9005
9006
9007 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9008 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9009 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9010 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9011 echo $ECHO_N "(cached) $ECHO_C" >&6
9012 else
9013 cat >conftest.make <<\_ACEOF
9014 SHELL = /bin/sh
9015 all:
9016 @echo '@@@%%%=$(MAKE)=@@@%%%'
9017 _ACEOF
9018 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9019 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9020 *@@@%%%=?*=@@@%%%*)
9021 eval ac_cv_prog_make_${ac_make}_set=yes;;
9022 *)
9023 eval ac_cv_prog_make_${ac_make}_set=no;;
9024 esac
9025 rm -f conftest.make
9026 fi
9027 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9028 { echo "$as_me:$LINENO: result: yes" >&5
9029 echo "${ECHO_T}yes" >&6; }
9030 SET_MAKE=
9031 else
9032 { echo "$as_me:$LINENO: result: no" >&5
9033 echo "${ECHO_T}no" >&6; }
9034 SET_MAKE="MAKE=${MAKE-make}"
9035 fi
9036
9037
9038 { echo "$as_me:$LINENO: checking for long file names" >&5
9039 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9040 if test "${ac_cv_sys_long_file_names+set}" = set; then
9041 echo $ECHO_N "(cached) $ECHO_C" >&6
9042 else
9043 ac_cv_sys_long_file_names=yes
9044 # Test for long file names in all the places we know might matter:
9045 # . the current directory, where building will happen
9046 # $prefix/lib where we will be installing things
9047 # $exec_prefix/lib likewise
9048 # $TMPDIR if set, where it might want to write temporary files
9049 # /tmp where it might want to write temporary files
9050 # /var/tmp likewise
9051 # /usr/tmp likewise
9052 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9053 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9054 # in the usual case where exec_prefix is '${prefix}'.
9055 case $ac_dir in #(
9056 . | /* | ?:[\\/]*) ;; #(
9057 *) continue;;
9058 esac
9059 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9060 ac_xdir=$ac_dir/cf$$
9061 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9062 ac_tf1=$ac_xdir/conftest9012345
9063 ac_tf2=$ac_xdir/conftest9012346
9064 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9065 ac_cv_sys_long_file_names=no
9066 rm -f -r "$ac_xdir" 2>/dev/null
9067 test $ac_cv_sys_long_file_names = no && break
9068 done
9069 fi
9070 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9071 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9072 if test $ac_cv_sys_long_file_names = yes; then
9073
9074 cat >>confdefs.h <<\_ACEOF
9075 #define HAVE_LONG_FILE_NAMES 1
9076 _ACEOF
9077
9078 fi
9079
9080
9081 #### Choose a window system.
9082
9083 { echo "$as_me:$LINENO: checking for X" >&5
9084 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9085
9086
9087 # Check whether --with-x was given.
9088 if test "${with_x+set}" = set; then
9089 withval=$with_x;
9090 fi
9091
9092 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9093 if test "x$with_x" = xno; then
9094 # The user explicitly disabled X.
9095 have_x=disabled
9096 else
9097 case $x_includes,$x_libraries in #(
9098 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9099 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9100 { (exit 1); exit 1; }; };; #(
9101 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9102 echo $ECHO_N "(cached) $ECHO_C" >&6
9103 else
9104 # One or both of the vars are not set, and there is no cached value.
9105 ac_x_includes=no ac_x_libraries=no
9106 rm -f -r conftest.dir
9107 if mkdir conftest.dir; then
9108 cd conftest.dir
9109 cat >Imakefile <<'_ACEOF'
9110 incroot:
9111 @echo incroot='${INCROOT}'
9112 usrlibdir:
9113 @echo usrlibdir='${USRLIBDIR}'
9114 libdir:
9115 @echo libdir='${LIBDIR}'
9116 _ACEOF
9117 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9118 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9119 for ac_var in incroot usrlibdir libdir; do
9120 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9121 done
9122 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9123 for ac_extension in a so sl; do
9124 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9125 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9126 ac_im_usrlibdir=$ac_im_libdir; break
9127 fi
9128 done
9129 # Screen out bogus values from the imake configuration. They are
9130 # bogus both because they are the default anyway, and because
9131 # using them would break gcc on systems where it needs fixed includes.
9132 case $ac_im_incroot in
9133 /usr/include) ac_x_includes= ;;
9134 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9135 esac
9136 case $ac_im_usrlibdir in
9137 /usr/lib | /lib) ;;
9138 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9139 esac
9140 fi
9141 cd ..
9142 rm -f -r conftest.dir
9143 fi
9144
9145 # Standard set of common directories for X headers.
9146 # Check X11 before X11Rn because it is often a symlink to the current release.
9147 ac_x_header_dirs='
9148 /usr/X11/include
9149 /usr/X11R6/include
9150 /usr/X11R5/include
9151 /usr/X11R4/include
9152
9153 /usr/include/X11
9154 /usr/include/X11R6
9155 /usr/include/X11R5
9156 /usr/include/X11R4
9157
9158 /usr/local/X11/include
9159 /usr/local/X11R6/include
9160 /usr/local/X11R5/include
9161 /usr/local/X11R4/include
9162
9163 /usr/local/include/X11
9164 /usr/local/include/X11R6
9165 /usr/local/include/X11R5
9166 /usr/local/include/X11R4
9167
9168 /usr/X386/include
9169 /usr/x386/include
9170 /usr/XFree86/include/X11
9171
9172 /usr/include
9173 /usr/local/include
9174 /usr/unsupported/include
9175 /usr/athena/include
9176 /usr/local/x11r5/include
9177 /usr/lpp/Xamples/include
9178
9179 /usr/openwin/include
9180 /usr/openwin/share/include'
9181
9182 if test "$ac_x_includes" = no; then
9183 # Guess where to find include files, by looking for Xlib.h.
9184 # First, try using that file with no special directory specified.
9185 cat >conftest.$ac_ext <<_ACEOF
9186 /* confdefs.h. */
9187 _ACEOF
9188 cat confdefs.h >>conftest.$ac_ext
9189 cat >>conftest.$ac_ext <<_ACEOF
9190 /* end confdefs.h. */
9191 #include <X11/Xlib.h>
9192 _ACEOF
9193 if { (ac_try="$ac_cpp conftest.$ac_ext"
9194 case "(($ac_try" in
9195 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9196 *) ac_try_echo=$ac_try;;
9197 esac
9198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9199 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9200 ac_status=$?
9201 grep -v '^ *+' conftest.er1 >conftest.err
9202 rm -f conftest.er1
9203 cat conftest.err >&5
9204 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205 (exit $ac_status); } >/dev/null && {
9206 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9207 test ! -s conftest.err
9208 }; then
9209 # We can compile using X headers with no special include directory.
9210 ac_x_includes=
9211 else
9212 echo "$as_me: failed program was:" >&5
9213 sed 's/^/| /' conftest.$ac_ext >&5
9214
9215 for ac_dir in $ac_x_header_dirs; do
9216 if test -r "$ac_dir/X11/Xlib.h"; then
9217 ac_x_includes=$ac_dir
9218 break
9219 fi
9220 done
9221 fi
9222
9223 rm -f conftest.err conftest.$ac_ext
9224 fi # $ac_x_includes = no
9225
9226 if test "$ac_x_libraries" = no; then
9227 # Check for the libraries.
9228 # See if we find them without any special options.
9229 # Don't add to $LIBS permanently.
9230 ac_save_LIBS=$LIBS
9231 LIBS="-lX11 $LIBS"
9232 cat >conftest.$ac_ext <<_ACEOF
9233 /* confdefs.h. */
9234 _ACEOF
9235 cat confdefs.h >>conftest.$ac_ext
9236 cat >>conftest.$ac_ext <<_ACEOF
9237 /* end confdefs.h. */
9238 #include <X11/Xlib.h>
9239 int
9240 main ()
9241 {
9242 XrmInitialize ()
9243 ;
9244 return 0;
9245 }
9246 _ACEOF
9247 rm -f conftest.$ac_objext conftest$ac_exeext
9248 if { (ac_try="$ac_link"
9249 case "(($ac_try" in
9250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9251 *) ac_try_echo=$ac_try;;
9252 esac
9253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9254 (eval "$ac_link") 2>conftest.er1
9255 ac_status=$?
9256 grep -v '^ *+' conftest.er1 >conftest.err
9257 rm -f conftest.er1
9258 cat conftest.err >&5
9259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9260 (exit $ac_status); } && {
9261 test -z "$ac_c_werror_flag" ||
9262 test ! -s conftest.err
9263 } && test -s conftest$ac_exeext &&
9264 $as_test_x conftest$ac_exeext; then
9265 LIBS=$ac_save_LIBS
9266 # We can link X programs with no special library path.
9267 ac_x_libraries=
9268 else
9269 echo "$as_me: failed program was:" >&5
9270 sed 's/^/| /' conftest.$ac_ext >&5
9271
9272 LIBS=$ac_save_LIBS
9273 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9274 do
9275 # Don't even attempt the hair of trying to link an X program!
9276 for ac_extension in a so sl; do
9277 if test -r "$ac_dir/libX11.$ac_extension"; then
9278 ac_x_libraries=$ac_dir
9279 break 2
9280 fi
9281 done
9282 done
9283 fi
9284
9285 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9286 conftest$ac_exeext conftest.$ac_ext
9287 fi # $ac_x_libraries = no
9288
9289 case $ac_x_includes,$ac_x_libraries in #(
9290 no,* | *,no | *\'*)
9291 # Didn't find X, or a directory has "'" in its name.
9292 ac_cv_have_x="have_x=no";; #(
9293 *)
9294 # Record where we found X for the cache.
9295 ac_cv_have_x="have_x=yes\
9296 ac_x_includes='$ac_x_includes'\
9297 ac_x_libraries='$ac_x_libraries'"
9298 esac
9299 fi
9300 ;; #(
9301 *) have_x=yes;;
9302 esac
9303 eval "$ac_cv_have_x"
9304 fi # $with_x != no
9305
9306 if test "$have_x" != yes; then
9307 { echo "$as_me:$LINENO: result: $have_x" >&5
9308 echo "${ECHO_T}$have_x" >&6; }
9309 no_x=yes
9310 else
9311 # If each of the values was on the command line, it overrides each guess.
9312 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9313 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9314 # Update the cache value to reflect the command line values.
9315 ac_cv_have_x="have_x=yes\
9316 ac_x_includes='$x_includes'\
9317 ac_x_libraries='$x_libraries'"
9318 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9319 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9320 fi
9321
9322 if test "$no_x" = yes; then
9323 window_system=none
9324 else
9325 window_system=x11
9326 fi
9327
9328 if test "${x_libraries}" != NONE; then
9329 if test -n "${x_libraries}"; then
9330 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9331 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9332 fi
9333 x_default_search_path=""
9334 x_search_path=${x_libraries}
9335 if test -z "${x_search_path}"; then
9336 x_search_path=/usr/lib
9337 fi
9338 for x_library in `echo ${x_search_path}: | \
9339 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9340 x_search_path="\
9341 ${x_library}/X11/%L/%T/%N%C%S:\
9342 ${x_library}/X11/%l/%T/%N%C%S:\
9343 ${x_library}/X11/%T/%N%C%S:\
9344 ${x_library}/X11/%L/%T/%N%S:\
9345 ${x_library}/X11/%l/%T/%N%S:\
9346 ${x_library}/X11/%T/%N%S"
9347 if test x"${x_default_search_path}" = x; then
9348 x_default_search_path=${x_search_path}
9349 else
9350 x_default_search_path="${x_search_path}:${x_default_search_path}"
9351 fi
9352 done
9353 fi
9354 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9355 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9356 fi
9357
9358 if test x"${x_includes}" = x; then
9359 bitmapdir=/usr/include/X11/bitmaps
9360 else
9361 # accumulate include directories that have X11 bitmap subdirectories
9362 bmd_acc="dummyval"
9363 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9364 if test -d "${bmd}/X11/bitmaps"; then
9365 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9366 fi
9367 if test -d "${bmd}/bitmaps"; then
9368 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9369 fi
9370 done
9371 if test ${bmd_acc} != "dummyval"; then
9372 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9373 fi
9374 fi
9375
9376 HAVE_CARBON=no
9377 if test "${with_carbon}" != no; then
9378 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9379 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9380 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9381 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9382 echo $ECHO_N "(cached) $ECHO_C" >&6
9383 fi
9384 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9385 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9386 else
9387 # Is the header compilable?
9388 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9389 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9390 cat >conftest.$ac_ext <<_ACEOF
9391 /* confdefs.h. */
9392 _ACEOF
9393 cat confdefs.h >>conftest.$ac_ext
9394 cat >>conftest.$ac_ext <<_ACEOF
9395 /* end confdefs.h. */
9396 $ac_includes_default
9397 #include <Carbon/Carbon.h>
9398 _ACEOF
9399 rm -f conftest.$ac_objext
9400 if { (ac_try="$ac_compile"
9401 case "(($ac_try" in
9402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9403 *) ac_try_echo=$ac_try;;
9404 esac
9405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9406 (eval "$ac_compile") 2>conftest.er1
9407 ac_status=$?
9408 grep -v '^ *+' conftest.er1 >conftest.err
9409 rm -f conftest.er1
9410 cat conftest.err >&5
9411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9412 (exit $ac_status); } && {
9413 test -z "$ac_c_werror_flag" ||
9414 test ! -s conftest.err
9415 } && test -s conftest.$ac_objext; then
9416 ac_header_compiler=yes
9417 else
9418 echo "$as_me: failed program was:" >&5
9419 sed 's/^/| /' conftest.$ac_ext >&5
9420
9421 ac_header_compiler=no
9422 fi
9423
9424 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9425 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9426 echo "${ECHO_T}$ac_header_compiler" >&6; }
9427
9428 # Is the header present?
9429 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9430 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9431 cat >conftest.$ac_ext <<_ACEOF
9432 /* confdefs.h. */
9433 _ACEOF
9434 cat confdefs.h >>conftest.$ac_ext
9435 cat >>conftest.$ac_ext <<_ACEOF
9436 /* end confdefs.h. */
9437 #include <Carbon/Carbon.h>
9438 _ACEOF
9439 if { (ac_try="$ac_cpp conftest.$ac_ext"
9440 case "(($ac_try" in
9441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9442 *) ac_try_echo=$ac_try;;
9443 esac
9444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9445 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9446 ac_status=$?
9447 grep -v '^ *+' conftest.er1 >conftest.err
9448 rm -f conftest.er1
9449 cat conftest.err >&5
9450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9451 (exit $ac_status); } >/dev/null && {
9452 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9453 test ! -s conftest.err
9454 }; then
9455 ac_header_preproc=yes
9456 else
9457 echo "$as_me: failed program was:" >&5
9458 sed 's/^/| /' conftest.$ac_ext >&5
9459
9460 ac_header_preproc=no
9461 fi
9462
9463 rm -f conftest.err conftest.$ac_ext
9464 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9465 echo "${ECHO_T}$ac_header_preproc" >&6; }
9466
9467 # So? What about this header?
9468 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9469 yes:no: )
9470 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9471 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9472 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9473 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9474 ac_header_preproc=yes
9475 ;;
9476 no:yes:* )
9477 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9478 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9479 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9480 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9481 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9482 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9483 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9484 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9485 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9486 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9487 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9488 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9489
9490 ;;
9491 esac
9492 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9493 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9494 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9495 echo $ECHO_N "(cached) $ECHO_C" >&6
9496 else
9497 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9498 fi
9499 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9500 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9501
9502 fi
9503 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9504 HAVE_CARBON=yes
9505 fi
9506
9507
9508 fi
9509 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9510 if test "${with_carbon+set}" != set \
9511 && test "${carbon_appdir_x+set}" != set; then
9512 for var in with_x with_x_toolkit with_gtk with_xim \
9513 with_xpm with_jpeg with_tiff with_gif with_png; do
9514 if eval test \"\${$var+set}\" = set; then
9515 HAVE_CARBON=no
9516 break
9517 fi
9518 done
9519 fi
9520 fi
9521 if test "${HAVE_CARBON}" = yes; then
9522 window_system=mac
9523 fi
9524
9525 case "${window_system}" in
9526 x11 )
9527 HAVE_X_WINDOWS=yes
9528 HAVE_X11=yes
9529 case "${with_x_toolkit}" in
9530 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9531 motif ) USE_X_TOOLKIT=MOTIF ;;
9532 gtk ) with_gtk=yes
9533 USE_X_TOOLKIT=none ;;
9534 no ) USE_X_TOOLKIT=none ;;
9535 * ) USE_X_TOOLKIT=maybe ;;
9536 esac
9537 ;;
9538 mac | none )
9539 HAVE_X_WINDOWS=no
9540 HAVE_X11=no
9541 USE_X_TOOLKIT=none
9542 ;;
9543 esac
9544
9545 ### If we're using X11, we should use the X menu package.
9546 HAVE_MENUS=no
9547 case ${HAVE_X11} in
9548 yes ) HAVE_MENUS=yes ;;
9549 esac
9550
9551 if test "${opsys}" = "hpux9"; then
9552 case "${x_libraries}" in
9553 *X11R4* )
9554 opsysfile="s/hpux9-x11r4.h"
9555 ;;
9556 esac
9557 fi
9558
9559 if test "${opsys}" = "hpux9shr"; then
9560 case "${x_libraries}" in
9561 *X11R4* )
9562 opsysfile="s/hpux9shxr4.h"
9563 ;;
9564 esac
9565 fi
9566
9567 ### Compute the unexec source name from the object name.
9568 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9569
9570 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9571 # Assume not, until told otherwise.
9572 GNU_MALLOC=yes
9573 doug_lea_malloc=yes
9574 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9575 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9576 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9577 echo $ECHO_N "(cached) $ECHO_C" >&6
9578 else
9579 cat >conftest.$ac_ext <<_ACEOF
9580 /* confdefs.h. */
9581 _ACEOF
9582 cat confdefs.h >>conftest.$ac_ext
9583 cat >>conftest.$ac_ext <<_ACEOF
9584 /* end confdefs.h. */
9585 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9586 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9587 #define malloc_get_state innocuous_malloc_get_state
9588
9589 /* System header to define __stub macros and hopefully few prototypes,
9590 which can conflict with char malloc_get_state (); below.
9591 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9592 <limits.h> exists even on freestanding compilers. */
9593
9594 #ifdef __STDC__
9595 # include <limits.h>
9596 #else
9597 # include <assert.h>
9598 #endif
9599
9600 #undef malloc_get_state
9601
9602 /* Override any GCC internal prototype to avoid an error.
9603 Use char because int might match the return type of a GCC
9604 builtin and then its argument prototype would still apply. */
9605 #ifdef __cplusplus
9606 extern "C"
9607 #endif
9608 char malloc_get_state ();
9609 /* The GNU C library defines this for functions which it implements
9610 to always fail with ENOSYS. Some functions are actually named
9611 something starting with __ and the normal name is an alias. */
9612 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9613 choke me
9614 #endif
9615
9616 int
9617 main ()
9618 {
9619 return malloc_get_state ();
9620 ;
9621 return 0;
9622 }
9623 _ACEOF
9624 rm -f conftest.$ac_objext conftest$ac_exeext
9625 if { (ac_try="$ac_link"
9626 case "(($ac_try" in
9627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9628 *) ac_try_echo=$ac_try;;
9629 esac
9630 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9631 (eval "$ac_link") 2>conftest.er1
9632 ac_status=$?
9633 grep -v '^ *+' conftest.er1 >conftest.err
9634 rm -f conftest.er1
9635 cat conftest.err >&5
9636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9637 (exit $ac_status); } && {
9638 test -z "$ac_c_werror_flag" ||
9639 test ! -s conftest.err
9640 } && test -s conftest$ac_exeext &&
9641 $as_test_x conftest$ac_exeext; then
9642 ac_cv_func_malloc_get_state=yes
9643 else
9644 echo "$as_me: failed program was:" >&5
9645 sed 's/^/| /' conftest.$ac_ext >&5
9646
9647 ac_cv_func_malloc_get_state=no
9648 fi
9649
9650 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9651 conftest$ac_exeext conftest.$ac_ext
9652 fi
9653 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9654 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9655 if test $ac_cv_func_malloc_get_state = yes; then
9656 :
9657 else
9658 doug_lea_malloc=no
9659 fi
9660
9661 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9662 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9663 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9664 echo $ECHO_N "(cached) $ECHO_C" >&6
9665 else
9666 cat >conftest.$ac_ext <<_ACEOF
9667 /* confdefs.h. */
9668 _ACEOF
9669 cat confdefs.h >>conftest.$ac_ext
9670 cat >>conftest.$ac_ext <<_ACEOF
9671 /* end confdefs.h. */
9672 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9673 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9674 #define malloc_set_state innocuous_malloc_set_state
9675
9676 /* System header to define __stub macros and hopefully few prototypes,
9677 which can conflict with char malloc_set_state (); below.
9678 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9679 <limits.h> exists even on freestanding compilers. */
9680
9681 #ifdef __STDC__
9682 # include <limits.h>
9683 #else
9684 # include <assert.h>
9685 #endif
9686
9687 #undef malloc_set_state
9688
9689 /* Override any GCC internal prototype to avoid an error.
9690 Use char because int might match the return type of a GCC
9691 builtin and then its argument prototype would still apply. */
9692 #ifdef __cplusplus
9693 extern "C"
9694 #endif
9695 char malloc_set_state ();
9696 /* The GNU C library defines this for functions which it implements
9697 to always fail with ENOSYS. Some functions are actually named
9698 something starting with __ and the normal name is an alias. */
9699 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9700 choke me
9701 #endif
9702
9703 int
9704 main ()
9705 {
9706 return malloc_set_state ();
9707 ;
9708 return 0;
9709 }
9710 _ACEOF
9711 rm -f conftest.$ac_objext conftest$ac_exeext
9712 if { (ac_try="$ac_link"
9713 case "(($ac_try" in
9714 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9715 *) ac_try_echo=$ac_try;;
9716 esac
9717 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9718 (eval "$ac_link") 2>conftest.er1
9719 ac_status=$?
9720 grep -v '^ *+' conftest.er1 >conftest.err
9721 rm -f conftest.er1
9722 cat conftest.err >&5
9723 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9724 (exit $ac_status); } && {
9725 test -z "$ac_c_werror_flag" ||
9726 test ! -s conftest.err
9727 } && test -s conftest$ac_exeext &&
9728 $as_test_x conftest$ac_exeext; then
9729 ac_cv_func_malloc_set_state=yes
9730 else
9731 echo "$as_me: failed program was:" >&5
9732 sed 's/^/| /' conftest.$ac_ext >&5
9733
9734 ac_cv_func_malloc_set_state=no
9735 fi
9736
9737 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9738 conftest$ac_exeext conftest.$ac_ext
9739 fi
9740 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9741 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9742 if test $ac_cv_func_malloc_set_state = yes; then
9743 :
9744 else
9745 doug_lea_malloc=no
9746 fi
9747
9748 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9749 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9750 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9751 echo $ECHO_N "(cached) $ECHO_C" >&6
9752 else
9753 cat >conftest.$ac_ext <<_ACEOF
9754 /* confdefs.h. */
9755 _ACEOF
9756 cat confdefs.h >>conftest.$ac_ext
9757 cat >>conftest.$ac_ext <<_ACEOF
9758 /* end confdefs.h. */
9759 extern void (* __after_morecore_hook)();
9760 int
9761 main ()
9762 {
9763 __after_morecore_hook = 0
9764 ;
9765 return 0;
9766 }
9767 _ACEOF
9768 rm -f conftest.$ac_objext conftest$ac_exeext
9769 if { (ac_try="$ac_link"
9770 case "(($ac_try" in
9771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9772 *) ac_try_echo=$ac_try;;
9773 esac
9774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9775 (eval "$ac_link") 2>conftest.er1
9776 ac_status=$?
9777 grep -v '^ *+' conftest.er1 >conftest.err
9778 rm -f conftest.er1
9779 cat conftest.err >&5
9780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9781 (exit $ac_status); } && {
9782 test -z "$ac_c_werror_flag" ||
9783 test ! -s conftest.err
9784 } && test -s conftest$ac_exeext &&
9785 $as_test_x conftest$ac_exeext; then
9786 emacs_cv_var___after_morecore_hook=yes
9787 else
9788 echo "$as_me: failed program was:" >&5
9789 sed 's/^/| /' conftest.$ac_ext >&5
9790
9791 emacs_cv_var___after_morecore_hook=no
9792 fi
9793
9794 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9795 conftest$ac_exeext conftest.$ac_ext
9796 fi
9797 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
9798 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
9799 if test $emacs_cv_var___after_morecore_hook = no; then
9800 doug_lea_malloc=no
9801 fi
9802 if test "${system_malloc}" = "yes"; then
9803 GNU_MALLOC=no
9804 GNU_MALLOC_reason="
9805 (The GNU allocators don't work with this system configuration.)"
9806 fi
9807 if test "$doug_lea_malloc" = "yes" ; then
9808 if test "$GNU_MALLOC" = yes ; then
9809 GNU_MALLOC_reason="
9810 (Using Doug Lea's new malloc from the GNU C Library.)"
9811 fi
9812
9813 cat >>confdefs.h <<\_ACEOF
9814 #define DOUG_LEA_MALLOC 1
9815 _ACEOF
9816
9817 fi
9818
9819 if test x"${REL_ALLOC}" = x; then
9820 REL_ALLOC=${GNU_MALLOC}
9821 fi
9822
9823
9824
9825
9826 for ac_header in stdlib.h unistd.h
9827 do
9828 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9830 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9831 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9833 echo $ECHO_N "(cached) $ECHO_C" >&6
9834 fi
9835 ac_res=`eval echo '${'$as_ac_Header'}'`
9836 { echo "$as_me:$LINENO: result: $ac_res" >&5
9837 echo "${ECHO_T}$ac_res" >&6; }
9838 else
9839 # Is the header compilable?
9840 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9841 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9842 cat >conftest.$ac_ext <<_ACEOF
9843 /* confdefs.h. */
9844 _ACEOF
9845 cat confdefs.h >>conftest.$ac_ext
9846 cat >>conftest.$ac_ext <<_ACEOF
9847 /* end confdefs.h. */
9848 $ac_includes_default
9849 #include <$ac_header>
9850 _ACEOF
9851 rm -f conftest.$ac_objext
9852 if { (ac_try="$ac_compile"
9853 case "(($ac_try" in
9854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9855 *) ac_try_echo=$ac_try;;
9856 esac
9857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9858 (eval "$ac_compile") 2>conftest.er1
9859 ac_status=$?
9860 grep -v '^ *+' conftest.er1 >conftest.err
9861 rm -f conftest.er1
9862 cat conftest.err >&5
9863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9864 (exit $ac_status); } && {
9865 test -z "$ac_c_werror_flag" ||
9866 test ! -s conftest.err
9867 } && test -s conftest.$ac_objext; then
9868 ac_header_compiler=yes
9869 else
9870 echo "$as_me: failed program was:" >&5
9871 sed 's/^/| /' conftest.$ac_ext >&5
9872
9873 ac_header_compiler=no
9874 fi
9875
9876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9877 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9878 echo "${ECHO_T}$ac_header_compiler" >&6; }
9879
9880 # Is the header present?
9881 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9882 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9883 cat >conftest.$ac_ext <<_ACEOF
9884 /* confdefs.h. */
9885 _ACEOF
9886 cat confdefs.h >>conftest.$ac_ext
9887 cat >>conftest.$ac_ext <<_ACEOF
9888 /* end confdefs.h. */
9889 #include <$ac_header>
9890 _ACEOF
9891 if { (ac_try="$ac_cpp conftest.$ac_ext"
9892 case "(($ac_try" in
9893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9894 *) ac_try_echo=$ac_try;;
9895 esac
9896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9897 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9898 ac_status=$?
9899 grep -v '^ *+' conftest.er1 >conftest.err
9900 rm -f conftest.er1
9901 cat conftest.err >&5
9902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9903 (exit $ac_status); } >/dev/null && {
9904 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9905 test ! -s conftest.err
9906 }; then
9907 ac_header_preproc=yes
9908 else
9909 echo "$as_me: failed program was:" >&5
9910 sed 's/^/| /' conftest.$ac_ext >&5
9911
9912 ac_header_preproc=no
9913 fi
9914
9915 rm -f conftest.err conftest.$ac_ext
9916 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9917 echo "${ECHO_T}$ac_header_preproc" >&6; }
9918
9919 # So? What about this header?
9920 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9921 yes:no: )
9922 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9923 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9925 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9926 ac_header_preproc=yes
9927 ;;
9928 no:yes:* )
9929 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9930 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9931 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
9932 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
9933 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9934 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9935 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
9936 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
9937 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9938 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9939 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9940 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9941
9942 ;;
9943 esac
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 else
9949 eval "$as_ac_Header=\$ac_header_preproc"
9950 fi
9951 ac_res=`eval echo '${'$as_ac_Header'}'`
9952 { echo "$as_me:$LINENO: result: $ac_res" >&5
9953 echo "${ECHO_T}$ac_res" >&6; }
9954
9955 fi
9956 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9957 cat >>confdefs.h <<_ACEOF
9958 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9959 _ACEOF
9960
9961 fi
9962
9963 done
9964
9965
9966 for ac_func in getpagesize
9967 do
9968 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
9969 { echo "$as_me:$LINENO: checking for $ac_func" >&5
9970 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
9971 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
9972 echo $ECHO_N "(cached) $ECHO_C" >&6
9973 else
9974 cat >conftest.$ac_ext <<_ACEOF
9975 /* confdefs.h. */
9976 _ACEOF
9977 cat confdefs.h >>conftest.$ac_ext
9978 cat >>conftest.$ac_ext <<_ACEOF
9979 /* end confdefs.h. */
9980 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
9981 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9982 #define $ac_func innocuous_$ac_func
9983
9984 /* System header to define __stub macros and hopefully few prototypes,
9985 which can conflict with char $ac_func (); below.
9986 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9987 <limits.h> exists even on freestanding compilers. */
9988
9989 #ifdef __STDC__
9990 # include <limits.h>
9991 #else
9992 # include <assert.h>
9993 #endif
9994
9995 #undef $ac_func
9996
9997 /* Override any GCC internal prototype to avoid an error.
9998 Use char because int might match the return type of a GCC
9999 builtin and then its argument prototype would still apply. */
10000 #ifdef __cplusplus
10001 extern "C"
10002 #endif
10003 char $ac_func ();
10004 /* The GNU C library defines this for functions which it implements
10005 to always fail with ENOSYS. Some functions are actually named
10006 something starting with __ and the normal name is an alias. */
10007 #if defined __stub_$ac_func || defined __stub___$ac_func
10008 choke me
10009 #endif
10010
10011 int
10012 main ()
10013 {
10014 return $ac_func ();
10015 ;
10016 return 0;
10017 }
10018 _ACEOF
10019 rm -f conftest.$ac_objext conftest$ac_exeext
10020 if { (ac_try="$ac_link"
10021 case "(($ac_try" in
10022 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10023 *) ac_try_echo=$ac_try;;
10024 esac
10025 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10026 (eval "$ac_link") 2>conftest.er1
10027 ac_status=$?
10028 grep -v '^ *+' conftest.er1 >conftest.err
10029 rm -f conftest.er1
10030 cat conftest.err >&5
10031 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10032 (exit $ac_status); } && {
10033 test -z "$ac_c_werror_flag" ||
10034 test ! -s conftest.err
10035 } && test -s conftest$ac_exeext &&
10036 $as_test_x conftest$ac_exeext; then
10037 eval "$as_ac_var=yes"
10038 else
10039 echo "$as_me: failed program was:" >&5
10040 sed 's/^/| /' conftest.$ac_ext >&5
10041
10042 eval "$as_ac_var=no"
10043 fi
10044
10045 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10046 conftest$ac_exeext conftest.$ac_ext
10047 fi
10048 ac_res=`eval echo '${'$as_ac_var'}'`
10049 { echo "$as_me:$LINENO: result: $ac_res" >&5
10050 echo "${ECHO_T}$ac_res" >&6; }
10051 if test `eval echo '${'$as_ac_var'}'` = yes; then
10052 cat >>confdefs.h <<_ACEOF
10053 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10054 _ACEOF
10055
10056 fi
10057 done
10058
10059 { echo "$as_me:$LINENO: checking for working mmap" >&5
10060 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10061 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10062 echo $ECHO_N "(cached) $ECHO_C" >&6
10063 else
10064 if test "$cross_compiling" = yes; then
10065 ac_cv_func_mmap_fixed_mapped=no
10066 else
10067 cat >conftest.$ac_ext <<_ACEOF
10068 /* confdefs.h. */
10069 _ACEOF
10070 cat confdefs.h >>conftest.$ac_ext
10071 cat >>conftest.$ac_ext <<_ACEOF
10072 /* end confdefs.h. */
10073 $ac_includes_default
10074 /* malloc might have been renamed as rpl_malloc. */
10075 #undef malloc
10076
10077 /* Thanks to Mike Haertel and Jim Avera for this test.
10078 Here is a matrix of mmap possibilities:
10079 mmap private not fixed
10080 mmap private fixed at somewhere currently unmapped
10081 mmap private fixed at somewhere already mapped
10082 mmap shared not fixed
10083 mmap shared fixed at somewhere currently unmapped
10084 mmap shared fixed at somewhere already mapped
10085 For private mappings, we should verify that changes cannot be read()
10086 back from the file, nor mmap's back from the file at a different
10087 address. (There have been systems where private was not correctly
10088 implemented like the infamous i386 svr4.0, and systems where the
10089 VM page cache was not coherent with the file system buffer cache
10090 like early versions of FreeBSD and possibly contemporary NetBSD.)
10091 For shared mappings, we should conversely verify that changes get
10092 propagated back to all the places they're supposed to be.
10093
10094 Grep wants private fixed already mapped.
10095 The main things grep needs to know about mmap are:
10096 * does it exist and is it safe to write into the mmap'd area
10097 * how to use it (BSD variants) */
10098
10099 #include <fcntl.h>
10100 #include <sys/mman.h>
10101
10102 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10103 char *malloc ();
10104 #endif
10105
10106 /* This mess was copied from the GNU getpagesize.h. */
10107 #ifndef HAVE_GETPAGESIZE
10108 /* Assume that all systems that can run configure have sys/param.h. */
10109 # ifndef HAVE_SYS_PARAM_H
10110 # define HAVE_SYS_PARAM_H 1
10111 # endif
10112
10113 # ifdef _SC_PAGESIZE
10114 # define getpagesize() sysconf(_SC_PAGESIZE)
10115 # else /* no _SC_PAGESIZE */
10116 # ifdef HAVE_SYS_PARAM_H
10117 # include <sys/param.h>
10118 # ifdef EXEC_PAGESIZE
10119 # define getpagesize() EXEC_PAGESIZE
10120 # else /* no EXEC_PAGESIZE */
10121 # ifdef NBPG
10122 # define getpagesize() NBPG * CLSIZE
10123 # ifndef CLSIZE
10124 # define CLSIZE 1
10125 # endif /* no CLSIZE */
10126 # else /* no NBPG */
10127 # ifdef NBPC
10128 # define getpagesize() NBPC
10129 # else /* no NBPC */
10130 # ifdef PAGESIZE
10131 # define getpagesize() PAGESIZE
10132 # endif /* PAGESIZE */
10133 # endif /* no NBPC */
10134 # endif /* no NBPG */
10135 # endif /* no EXEC_PAGESIZE */
10136 # else /* no HAVE_SYS_PARAM_H */
10137 # define getpagesize() 8192 /* punt totally */
10138 # endif /* no HAVE_SYS_PARAM_H */
10139 # endif /* no _SC_PAGESIZE */
10140
10141 #endif /* no HAVE_GETPAGESIZE */
10142
10143 int
10144 main ()
10145 {
10146 char *data, *data2, *data3;
10147 int i, pagesize;
10148 int fd;
10149
10150 pagesize = getpagesize ();
10151
10152 /* First, make a file with some known garbage in it. */
10153 data = (char *) malloc (pagesize);
10154 if (!data)
10155 return 1;
10156 for (i = 0; i < pagesize; ++i)
10157 *(data + i) = rand ();
10158 umask (0);
10159 fd = creat ("conftest.mmap", 0600);
10160 if (fd < 0)
10161 return 1;
10162 if (write (fd, data, pagesize) != pagesize)
10163 return 1;
10164 close (fd);
10165
10166 /* Next, try to mmap the file at a fixed address which already has
10167 something else allocated at it. If we can, also make sure that
10168 we see the same garbage. */
10169 fd = open ("conftest.mmap", O_RDWR);
10170 if (fd < 0)
10171 return 1;
10172 data2 = (char *) malloc (2 * pagesize);
10173 if (!data2)
10174 return 1;
10175 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10176 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10177 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10178 return 1;
10179 for (i = 0; i < pagesize; ++i)
10180 if (*(data + i) != *(data2 + i))
10181 return 1;
10182
10183 /* Finally, make sure that changes to the mapped area do not
10184 percolate back to the file as seen by read(). (This is a bug on
10185 some variants of i386 svr4.0.) */
10186 for (i = 0; i < pagesize; ++i)
10187 *(data2 + i) = *(data2 + i) + 1;
10188 data3 = (char *) malloc (pagesize);
10189 if (!data3)
10190 return 1;
10191 if (read (fd, data3, pagesize) != pagesize)
10192 return 1;
10193 for (i = 0; i < pagesize; ++i)
10194 if (*(data + i) != *(data3 + i))
10195 return 1;
10196 close (fd);
10197 return 0;
10198 }
10199 _ACEOF
10200 rm -f conftest$ac_exeext
10201 if { (ac_try="$ac_link"
10202 case "(($ac_try" in
10203 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10204 *) ac_try_echo=$ac_try;;
10205 esac
10206 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10207 (eval "$ac_link") 2>&5
10208 ac_status=$?
10209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10210 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10211 { (case "(($ac_try" in
10212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10213 *) ac_try_echo=$ac_try;;
10214 esac
10215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10216 (eval "$ac_try") 2>&5
10217 ac_status=$?
10218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10219 (exit $ac_status); }; }; then
10220 ac_cv_func_mmap_fixed_mapped=yes
10221 else
10222 echo "$as_me: program exited with status $ac_status" >&5
10223 echo "$as_me: failed program was:" >&5
10224 sed 's/^/| /' conftest.$ac_ext >&5
10225
10226 ( exit $ac_status )
10227 ac_cv_func_mmap_fixed_mapped=no
10228 fi
10229 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10230 fi
10231
10232
10233 fi
10234 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10235 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10236 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10237
10238 cat >>confdefs.h <<\_ACEOF
10239 #define HAVE_MMAP 1
10240 _ACEOF
10241
10242 fi
10243 rm -f conftest.mmap
10244
10245 if test $use_mmap_for_buffers = yes; then
10246 REL_ALLOC=no
10247 fi
10248
10249 LIBS="$libsrc_libs $LIBS"
10250
10251
10252 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10253 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10254 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10255 echo $ECHO_N "(cached) $ECHO_C" >&6
10256 else
10257 ac_check_lib_save_LIBS=$LIBS
10258 LIBS="-ldnet $LIBS"
10259 cat >conftest.$ac_ext <<_ACEOF
10260 /* confdefs.h. */
10261 _ACEOF
10262 cat confdefs.h >>conftest.$ac_ext
10263 cat >>conftest.$ac_ext <<_ACEOF
10264 /* end confdefs.h. */
10265
10266 /* Override any GCC internal prototype to avoid an error.
10267 Use char because int might match the return type of a GCC
10268 builtin and then its argument prototype would still apply. */
10269 #ifdef __cplusplus
10270 extern "C"
10271 #endif
10272 char dnet_ntoa ();
10273 int
10274 main ()
10275 {
10276 return dnet_ntoa ();
10277 ;
10278 return 0;
10279 }
10280 _ACEOF
10281 rm -f conftest.$ac_objext conftest$ac_exeext
10282 if { (ac_try="$ac_link"
10283 case "(($ac_try" in
10284 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10285 *) ac_try_echo=$ac_try;;
10286 esac
10287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10288 (eval "$ac_link") 2>conftest.er1
10289 ac_status=$?
10290 grep -v '^ *+' conftest.er1 >conftest.err
10291 rm -f conftest.er1
10292 cat conftest.err >&5
10293 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10294 (exit $ac_status); } && {
10295 test -z "$ac_c_werror_flag" ||
10296 test ! -s conftest.err
10297 } && test -s conftest$ac_exeext &&
10298 $as_test_x conftest$ac_exeext; then
10299 ac_cv_lib_dnet_dnet_ntoa=yes
10300 else
10301 echo "$as_me: failed program was:" >&5
10302 sed 's/^/| /' conftest.$ac_ext >&5
10303
10304 ac_cv_lib_dnet_dnet_ntoa=no
10305 fi
10306
10307 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10308 conftest$ac_exeext conftest.$ac_ext
10309 LIBS=$ac_check_lib_save_LIBS
10310 fi
10311 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10312 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10313 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10314 cat >>confdefs.h <<_ACEOF
10315 #define HAVE_LIBDNET 1
10316 _ACEOF
10317
10318 LIBS="-ldnet $LIBS"
10319
10320 fi
10321
10322
10323 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10324 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10325 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10326 echo $ECHO_N "(cached) $ECHO_C" >&6
10327 else
10328 ac_check_lib_save_LIBS=$LIBS
10329 LIBS="-lXbsd $LIBS"
10330 cat >conftest.$ac_ext <<_ACEOF
10331 /* confdefs.h. */
10332 _ACEOF
10333 cat confdefs.h >>conftest.$ac_ext
10334 cat >>conftest.$ac_ext <<_ACEOF
10335 /* end confdefs.h. */
10336
10337
10338 int
10339 main ()
10340 {
10341 return main ();
10342 ;
10343 return 0;
10344 }
10345 _ACEOF
10346 rm -f conftest.$ac_objext conftest$ac_exeext
10347 if { (ac_try="$ac_link"
10348 case "(($ac_try" in
10349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10350 *) ac_try_echo=$ac_try;;
10351 esac
10352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10353 (eval "$ac_link") 2>conftest.er1
10354 ac_status=$?
10355 grep -v '^ *+' conftest.er1 >conftest.err
10356 rm -f conftest.er1
10357 cat conftest.err >&5
10358 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10359 (exit $ac_status); } && {
10360 test -z "$ac_c_werror_flag" ||
10361 test ! -s conftest.err
10362 } && test -s conftest$ac_exeext &&
10363 $as_test_x conftest$ac_exeext; then
10364 ac_cv_lib_Xbsd_main=yes
10365 else
10366 echo "$as_me: failed program was:" >&5
10367 sed 's/^/| /' conftest.$ac_ext >&5
10368
10369 ac_cv_lib_Xbsd_main=no
10370 fi
10371
10372 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10373 conftest$ac_exeext conftest.$ac_ext
10374 LIBS=$ac_check_lib_save_LIBS
10375 fi
10376 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10377 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10378 if test $ac_cv_lib_Xbsd_main = yes; then
10379 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10380 fi
10381
10382
10383
10384 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10385 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10386 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10387 echo $ECHO_N "(cached) $ECHO_C" >&6
10388 else
10389 ac_check_lib_save_LIBS=$LIBS
10390 LIBS="-lpthreads $LIBS"
10391 cat >conftest.$ac_ext <<_ACEOF
10392 /* confdefs.h. */
10393 _ACEOF
10394 cat confdefs.h >>conftest.$ac_ext
10395 cat >>conftest.$ac_ext <<_ACEOF
10396 /* end confdefs.h. */
10397
10398 /* Override any GCC internal prototype to avoid an error.
10399 Use char because int might match the return type of a GCC
10400 builtin and then its argument prototype would still apply. */
10401 #ifdef __cplusplus
10402 extern "C"
10403 #endif
10404 char cma_open ();
10405 int
10406 main ()
10407 {
10408 return cma_open ();
10409 ;
10410 return 0;
10411 }
10412 _ACEOF
10413 rm -f conftest.$ac_objext conftest$ac_exeext
10414 if { (ac_try="$ac_link"
10415 case "(($ac_try" in
10416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10417 *) ac_try_echo=$ac_try;;
10418 esac
10419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10420 (eval "$ac_link") 2>conftest.er1
10421 ac_status=$?
10422 grep -v '^ *+' conftest.er1 >conftest.err
10423 rm -f conftest.er1
10424 cat conftest.err >&5
10425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10426 (exit $ac_status); } && {
10427 test -z "$ac_c_werror_flag" ||
10428 test ! -s conftest.err
10429 } && test -s conftest$ac_exeext &&
10430 $as_test_x conftest$ac_exeext; then
10431 ac_cv_lib_pthreads_cma_open=yes
10432 else
10433 echo "$as_me: failed program was:" >&5
10434 sed 's/^/| /' conftest.$ac_ext >&5
10435
10436 ac_cv_lib_pthreads_cma_open=no
10437 fi
10438
10439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10440 conftest$ac_exeext conftest.$ac_ext
10441 LIBS=$ac_check_lib_save_LIBS
10442 fi
10443 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10444 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10445 if test $ac_cv_lib_pthreads_cma_open = yes; then
10446 cat >>confdefs.h <<_ACEOF
10447 #define HAVE_LIBPTHREADS 1
10448 _ACEOF
10449
10450 LIBS="-lpthreads $LIBS"
10451
10452 fi
10453
10454
10455 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10456 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10457 if test -d /usr/X386/include; then
10458 HAVE_XFREE386=yes
10459 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10460 else
10461 HAVE_XFREE386=no
10462 fi
10463 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10464 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10465
10466
10467 case ${host_os} in
10468 aix*)
10469 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10470 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10471 if test "${gdb_cv_bigtoc+set}" = set; then
10472 echo $ECHO_N "(cached) $ECHO_C" >&6
10473 else
10474
10475 case $GCC in
10476 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10477 *) gdb_cv_bigtoc=-bbigtoc ;;
10478 esac
10479
10480 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10481 cat >conftest.$ac_ext <<_ACEOF
10482 /* confdefs.h. */
10483 _ACEOF
10484 cat confdefs.h >>conftest.$ac_ext
10485 cat >>conftest.$ac_ext <<_ACEOF
10486 /* end confdefs.h. */
10487
10488 int
10489 main ()
10490 {
10491 int i;
10492 ;
10493 return 0;
10494 }
10495 _ACEOF
10496 rm -f conftest.$ac_objext conftest$ac_exeext
10497 if { (ac_try="$ac_link"
10498 case "(($ac_try" in
10499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10500 *) ac_try_echo=$ac_try;;
10501 esac
10502 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10503 (eval "$ac_link") 2>conftest.er1
10504 ac_status=$?
10505 grep -v '^ *+' conftest.er1 >conftest.err
10506 rm -f conftest.er1
10507 cat conftest.err >&5
10508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10509 (exit $ac_status); } && {
10510 test -z "$ac_c_werror_flag" ||
10511 test ! -s conftest.err
10512 } && test -s conftest$ac_exeext &&
10513 $as_test_x conftest$ac_exeext; then
10514 :
10515 else
10516 echo "$as_me: failed program was:" >&5
10517 sed 's/^/| /' conftest.$ac_ext >&5
10518
10519 gdb_cv_bigtoc=
10520 fi
10521
10522 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10523 conftest$ac_exeext conftest.$ac_ext
10524
10525 fi
10526 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10527 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10528 ;;
10529 esac
10530
10531 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10532 # used for the tests that follow. We set them back to REAL_CFLAGS and
10533 # REAL_CPPFLAGS later on.
10534
10535 REAL_CPPFLAGS="$CPPFLAGS"
10536
10537 if test "${HAVE_X11}" = "yes"; then
10538 DEFS="$C_SWITCH_X_SITE $DEFS"
10539 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10540 LIBS="$LIBX $LIBS"
10541 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10542 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10543
10544 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10545 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10546 # but it's more convenient here to set LD_RUN_PATH
10547 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10548 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10549 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10550 export LD_RUN_PATH
10551 fi
10552
10553 if test "${opsys}" = "gnu-linux"; then
10554 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10555 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10556 cat >conftest.$ac_ext <<_ACEOF
10557 /* confdefs.h. */
10558 _ACEOF
10559 cat confdefs.h >>conftest.$ac_ext
10560 cat >>conftest.$ac_ext <<_ACEOF
10561 /* end confdefs.h. */
10562
10563 int
10564 main ()
10565 {
10566 XOpenDisplay ("foo");
10567 ;
10568 return 0;
10569 }
10570 _ACEOF
10571 rm -f conftest.$ac_objext conftest$ac_exeext
10572 if { (ac_try="$ac_link"
10573 case "(($ac_try" in
10574 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10575 *) ac_try_echo=$ac_try;;
10576 esac
10577 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10578 (eval "$ac_link") 2>conftest.er1
10579 ac_status=$?
10580 grep -v '^ *+' conftest.er1 >conftest.err
10581 rm -f conftest.er1
10582 cat conftest.err >&5
10583 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10584 (exit $ac_status); } && {
10585 test -z "$ac_c_werror_flag" ||
10586 test ! -s conftest.err
10587 } && test -s conftest$ac_exeext &&
10588 $as_test_x conftest$ac_exeext; then
10589 xlinux_first_failure=no
10590 else
10591 echo "$as_me: failed program was:" >&5
10592 sed 's/^/| /' conftest.$ac_ext >&5
10593
10594 xlinux_first_failure=yes
10595 fi
10596
10597 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10598 conftest$ac_exeext conftest.$ac_ext
10599 if test "${xlinux_first_failure}" = "yes"; then
10600 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10601 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10602 OLD_CPPFLAGS="$CPPFLAGS"
10603 OLD_LIBS="$LIBS"
10604 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10605 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10606 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10607 LIBS="$LIBS -b i486-linuxaout"
10608 cat >conftest.$ac_ext <<_ACEOF
10609 /* confdefs.h. */
10610 _ACEOF
10611 cat confdefs.h >>conftest.$ac_ext
10612 cat >>conftest.$ac_ext <<_ACEOF
10613 /* end confdefs.h. */
10614
10615 int
10616 main ()
10617 {
10618 XOpenDisplay ("foo");
10619 ;
10620 return 0;
10621 }
10622 _ACEOF
10623 rm -f conftest.$ac_objext conftest$ac_exeext
10624 if { (ac_try="$ac_link"
10625 case "(($ac_try" in
10626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10627 *) ac_try_echo=$ac_try;;
10628 esac
10629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10630 (eval "$ac_link") 2>conftest.er1
10631 ac_status=$?
10632 grep -v '^ *+' conftest.er1 >conftest.err
10633 rm -f conftest.er1
10634 cat conftest.err >&5
10635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10636 (exit $ac_status); } && {
10637 test -z "$ac_c_werror_flag" ||
10638 test ! -s conftest.err
10639 } && test -s conftest$ac_exeext &&
10640 $as_test_x conftest$ac_exeext; then
10641 xlinux_second_failure=no
10642 else
10643 echo "$as_me: failed program was:" >&5
10644 sed 's/^/| /' conftest.$ac_ext >&5
10645
10646 xlinux_second_failure=yes
10647 fi
10648
10649 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10650 conftest$ac_exeext conftest.$ac_ext
10651 if test "${xlinux_second_failure}" = "yes"; then
10652 # If we get the same failure with -b, there is no use adding -b.
10653 # So take it out. This plays safe.
10654 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10655 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10656 CPPFLAGS="$OLD_CPPFLAGS"
10657 LIBS="$OLD_LIBS"
10658 { echo "$as_me:$LINENO: result: no" >&5
10659 echo "${ECHO_T}no" >&6; }
10660 else
10661 { echo "$as_me:$LINENO: result: yes" >&5
10662 echo "${ECHO_T}yes" >&6; }
10663 fi
10664 else
10665 { echo "$as_me:$LINENO: result: no" >&5
10666 echo "${ECHO_T}no" >&6; }
10667 fi
10668 fi
10669
10670 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10671 # header files included from there.
10672 { echo "$as_me:$LINENO: checking for Xkb" >&5
10673 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10674 cat >conftest.$ac_ext <<_ACEOF
10675 /* confdefs.h. */
10676 _ACEOF
10677 cat confdefs.h >>conftest.$ac_ext
10678 cat >>conftest.$ac_ext <<_ACEOF
10679 /* end confdefs.h. */
10680 #include <X11/Xlib.h>
10681 #include <X11/XKBlib.h>
10682 int
10683 main ()
10684 {
10685 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10686 ;
10687 return 0;
10688 }
10689 _ACEOF
10690 rm -f conftest.$ac_objext conftest$ac_exeext
10691 if { (ac_try="$ac_link"
10692 case "(($ac_try" in
10693 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10694 *) ac_try_echo=$ac_try;;
10695 esac
10696 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10697 (eval "$ac_link") 2>conftest.er1
10698 ac_status=$?
10699 grep -v '^ *+' conftest.er1 >conftest.err
10700 rm -f conftest.er1
10701 cat conftest.err >&5
10702 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10703 (exit $ac_status); } && {
10704 test -z "$ac_c_werror_flag" ||
10705 test ! -s conftest.err
10706 } && test -s conftest$ac_exeext &&
10707 $as_test_x conftest$ac_exeext; then
10708 emacs_xkb=yes
10709 else
10710 echo "$as_me: failed program was:" >&5
10711 sed 's/^/| /' conftest.$ac_ext >&5
10712
10713 emacs_xkb=no
10714 fi
10715
10716 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10717 conftest$ac_exeext conftest.$ac_ext
10718 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10719 echo "${ECHO_T}$emacs_xkb" >&6; }
10720 if test $emacs_xkb = yes; then
10721
10722 cat >>confdefs.h <<\_ACEOF
10723 #define HAVE_XKBGETKEYBOARD 1
10724 _ACEOF
10725
10726 fi
10727
10728
10729
10730
10731
10732 for ac_func in XrmSetDatabase XScreenResourceString \
10733 XScreenNumberOfScreen XSetWMProtocols
10734 do
10735 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10736 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10737 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10738 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10739 echo $ECHO_N "(cached) $ECHO_C" >&6
10740 else
10741 cat >conftest.$ac_ext <<_ACEOF
10742 /* confdefs.h. */
10743 _ACEOF
10744 cat confdefs.h >>conftest.$ac_ext
10745 cat >>conftest.$ac_ext <<_ACEOF
10746 /* end confdefs.h. */
10747 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10748 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10749 #define $ac_func innocuous_$ac_func
10750
10751 /* System header to define __stub macros and hopefully few prototypes,
10752 which can conflict with char $ac_func (); below.
10753 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10754 <limits.h> exists even on freestanding compilers. */
10755
10756 #ifdef __STDC__
10757 # include <limits.h>
10758 #else
10759 # include <assert.h>
10760 #endif
10761
10762 #undef $ac_func
10763
10764 /* Override any GCC internal prototype to avoid an error.
10765 Use char because int might match the return type of a GCC
10766 builtin and then its argument prototype would still apply. */
10767 #ifdef __cplusplus
10768 extern "C"
10769 #endif
10770 char $ac_func ();
10771 /* The GNU C library defines this for functions which it implements
10772 to always fail with ENOSYS. Some functions are actually named
10773 something starting with __ and the normal name is an alias. */
10774 #if defined __stub_$ac_func || defined __stub___$ac_func
10775 choke me
10776 #endif
10777
10778 int
10779 main ()
10780 {
10781 return $ac_func ();
10782 ;
10783 return 0;
10784 }
10785 _ACEOF
10786 rm -f conftest.$ac_objext conftest$ac_exeext
10787 if { (ac_try="$ac_link"
10788 case "(($ac_try" in
10789 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10790 *) ac_try_echo=$ac_try;;
10791 esac
10792 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10793 (eval "$ac_link") 2>conftest.er1
10794 ac_status=$?
10795 grep -v '^ *+' conftest.er1 >conftest.err
10796 rm -f conftest.er1
10797 cat conftest.err >&5
10798 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10799 (exit $ac_status); } && {
10800 test -z "$ac_c_werror_flag" ||
10801 test ! -s conftest.err
10802 } && test -s conftest$ac_exeext &&
10803 $as_test_x conftest$ac_exeext; then
10804 eval "$as_ac_var=yes"
10805 else
10806 echo "$as_me: failed program was:" >&5
10807 sed 's/^/| /' conftest.$ac_ext >&5
10808
10809 eval "$as_ac_var=no"
10810 fi
10811
10812 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10813 conftest$ac_exeext conftest.$ac_ext
10814 fi
10815 ac_res=`eval echo '${'$as_ac_var'}'`
10816 { echo "$as_me:$LINENO: result: $ac_res" >&5
10817 echo "${ECHO_T}$ac_res" >&6; }
10818 if test `eval echo '${'$as_ac_var'}'` = yes; then
10819 cat >>confdefs.h <<_ACEOF
10820 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10821 _ACEOF
10822
10823 fi
10824 done
10825
10826 fi
10827
10828 if test "${window_system}" = "x11"; then
10829 { echo "$as_me:$LINENO: checking X11 version 6" >&5
10830 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
10831 if test "${emacs_cv_x11_version_6+set}" = set; then
10832 echo $ECHO_N "(cached) $ECHO_C" >&6
10833 else
10834 cat >conftest.$ac_ext <<_ACEOF
10835 /* confdefs.h. */
10836 _ACEOF
10837 cat confdefs.h >>conftest.$ac_ext
10838 cat >>conftest.$ac_ext <<_ACEOF
10839 /* end confdefs.h. */
10840 #include <X11/Xlib.h>
10841 int
10842 main ()
10843 {
10844 #if XlibSpecificationRelease < 6
10845 fail;
10846 #endif
10847
10848 ;
10849 return 0;
10850 }
10851 _ACEOF
10852 rm -f conftest.$ac_objext conftest$ac_exeext
10853 if { (ac_try="$ac_link"
10854 case "(($ac_try" in
10855 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10856 *) ac_try_echo=$ac_try;;
10857 esac
10858 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10859 (eval "$ac_link") 2>conftest.er1
10860 ac_status=$?
10861 grep -v '^ *+' conftest.er1 >conftest.err
10862 rm -f conftest.er1
10863 cat conftest.err >&5
10864 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10865 (exit $ac_status); } && {
10866 test -z "$ac_c_werror_flag" ||
10867 test ! -s conftest.err
10868 } && test -s conftest$ac_exeext &&
10869 $as_test_x conftest$ac_exeext; then
10870 emacs_cv_x11_version_6=yes
10871 else
10872 echo "$as_me: failed program was:" >&5
10873 sed 's/^/| /' conftest.$ac_ext >&5
10874
10875 emacs_cv_x11_version_6=no
10876 fi
10877
10878 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10879 conftest$ac_exeext conftest.$ac_ext
10880 fi
10881
10882 if test $emacs_cv_x11_version_6 = yes; then
10883 { echo "$as_me:$LINENO: result: 6 or newer" >&5
10884 echo "${ECHO_T}6 or newer" >&6; }
10885
10886 cat >>confdefs.h <<\_ACEOF
10887 #define HAVE_X11R6 1
10888 _ACEOF
10889
10890 else
10891 { echo "$as_me:$LINENO: result: before 6" >&5
10892 echo "${ECHO_T}before 6" >&6; }
10893 fi
10894 fi
10895
10896 if test "${window_system}" = "x11"; then
10897 { echo "$as_me:$LINENO: checking X11 version 5" >&5
10898 echo $ECHO_N "checking X11 version 5... $ECHO_C" >&6; }
10899 if test "${emacs_cv_x11_version_5+set}" = set; then
10900 echo $ECHO_N "(cached) $ECHO_C" >&6
10901 else
10902 cat >conftest.$ac_ext <<_ACEOF
10903 /* confdefs.h. */
10904 _ACEOF
10905 cat confdefs.h >>conftest.$ac_ext
10906 cat >>conftest.$ac_ext <<_ACEOF
10907 /* end confdefs.h. */
10908 #include <X11/Xlib.h>
10909 int
10910 main ()
10911 {
10912 #if XlibSpecificationRelease < 5
10913 fail;
10914 #endif
10915
10916 ;
10917 return 0;
10918 }
10919 _ACEOF
10920 rm -f conftest.$ac_objext conftest$ac_exeext
10921 if { (ac_try="$ac_link"
10922 case "(($ac_try" in
10923 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10924 *) ac_try_echo=$ac_try;;
10925 esac
10926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10927 (eval "$ac_link") 2>conftest.er1
10928 ac_status=$?
10929 grep -v '^ *+' conftest.er1 >conftest.err
10930 rm -f conftest.er1
10931 cat conftest.err >&5
10932 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10933 (exit $ac_status); } && {
10934 test -z "$ac_c_werror_flag" ||
10935 test ! -s conftest.err
10936 } && test -s conftest$ac_exeext &&
10937 $as_test_x conftest$ac_exeext; then
10938 emacs_cv_x11_version_5=yes
10939 else
10940 echo "$as_me: failed program was:" >&5
10941 sed 's/^/| /' conftest.$ac_ext >&5
10942
10943 emacs_cv_x11_version_5=no
10944 fi
10945
10946 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10947 conftest$ac_exeext conftest.$ac_ext
10948 fi
10949
10950 if test $emacs_cv_x11_version_5 = yes; then
10951 { echo "$as_me:$LINENO: result: 5 or newer" >&5
10952 echo "${ECHO_T}5 or newer" >&6; }
10953 HAVE_X11R5=yes
10954
10955 cat >>confdefs.h <<\_ACEOF
10956 #define HAVE_X11R5 1
10957 _ACEOF
10958
10959 else
10960 HAVE_X11R5=no
10961 { echo "$as_me:$LINENO: result: before 5" >&5
10962 echo "${ECHO_T}before 5" >&6; }
10963 fi
10964 fi
10965
10966 HAVE_GTK=no
10967 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
10968 USE_X_TOOLKIT=none
10969 fi
10970 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk"; then
10971 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
10972 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
10973 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
10974 { (exit 1); exit 1; }; };
10975 fi
10976 GLIB_REQUIRED=2.4
10977 GTK_REQUIRED=2.4
10978 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
10979
10980 if test "X${with_pkg_config_prog}" != X; then
10981 PKG_CONFIG="${with_pkg_config_prog}"
10982 fi
10983
10984 succeeded=no
10985
10986 if test -z "$PKG_CONFIG"; then
10987 # Extract the first word of "pkg-config", so it can be a program name with args.
10988 set dummy pkg-config; ac_word=$2
10989 { echo "$as_me:$LINENO: checking for $ac_word" >&5
10990 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
10991 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
10992 echo $ECHO_N "(cached) $ECHO_C" >&6
10993 else
10994 case $PKG_CONFIG in
10995 [\\/]* | ?:[\\/]*)
10996 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
10997 ;;
10998 *)
10999 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11000 for as_dir in $PATH
11001 do
11002 IFS=$as_save_IFS
11003 test -z "$as_dir" && as_dir=.
11004 for ac_exec_ext in '' $ac_executable_extensions; do
11005 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11006 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11007 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11008 break 2
11009 fi
11010 done
11011 done
11012 IFS=$as_save_IFS
11013
11014 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11015 ;;
11016 esac
11017 fi
11018 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11019 if test -n "$PKG_CONFIG"; then
11020 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11021 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11022 else
11023 { echo "$as_me:$LINENO: result: no" >&5
11024 echo "${ECHO_T}no" >&6; }
11025 fi
11026
11027
11028 fi
11029
11030 if test "$PKG_CONFIG" = "no" ; then
11031 { { echo "$as_me:$LINENO: error:
11032 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&5
11033 echo "$as_me: error:
11034 *** The pkg-config script could not be found. Make sure it is in your path, or give the full path to pkg-config with the PKG_CONFIG environment variable or --with-pkg-config-prog. Or see http://www.freedesktop.org/software/pkgconfig to get pkg-config." >&2;}
11035 { (exit 1); exit 1; }; }
11036 else
11037 PKG_CONFIG_MIN_VERSION=0.9.0
11038 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11039 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11040 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11041
11042 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11043 { echo "$as_me:$LINENO: result: yes" >&5
11044 echo "${ECHO_T}yes" >&6; }
11045 succeeded=yes
11046
11047 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11048 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11049 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11050 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11051 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11052
11053 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11054 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11055 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11056 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11057 echo "${ECHO_T}$GTK_LIBS" >&6; }
11058 else
11059 { echo "$as_me:$LINENO: result: no" >&5
11060 echo "${ECHO_T}no" >&6; }
11061 GTK_CFLAGS=""
11062 GTK_LIBS=""
11063 ## If we have a custom action on failure, don't print errors, but
11064 ## do set a variable so people can do so.
11065 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11066 echo $GTK_PKG_ERRORS
11067 fi
11068
11069
11070
11071 else
11072 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11073 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11074 fi
11075 fi
11076
11077 if test $succeeded = yes; then
11078 :
11079 else
11080 { { echo "$as_me:$LINENO: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&5
11081 echo "$as_me: error: Library requirements ($GTK_MODULES) not met; consider adjusting the PKG_CONFIG_PATH environment variable if your libraries are in a nonstandard prefix so pkg-config can find them." >&2;}
11082 { (exit 1); exit 1; }; }
11083 fi
11084
11085
11086
11087 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11088 CFLAGS="$CFLAGS $GTK_CFLAGS"
11089 LIBS="$GTK_LIBS $LIBS"
11090 GTK_COMPILES=no
11091
11092 for ac_func in gtk_main
11093 do
11094 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11095 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11096 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11097 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11098 echo $ECHO_N "(cached) $ECHO_C" >&6
11099 else
11100 cat >conftest.$ac_ext <<_ACEOF
11101 /* confdefs.h. */
11102 _ACEOF
11103 cat confdefs.h >>conftest.$ac_ext
11104 cat >>conftest.$ac_ext <<_ACEOF
11105 /* end confdefs.h. */
11106 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11107 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11108 #define $ac_func innocuous_$ac_func
11109
11110 /* System header to define __stub macros and hopefully few prototypes,
11111 which can conflict with char $ac_func (); below.
11112 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11113 <limits.h> exists even on freestanding compilers. */
11114
11115 #ifdef __STDC__
11116 # include <limits.h>
11117 #else
11118 # include <assert.h>
11119 #endif
11120
11121 #undef $ac_func
11122
11123 /* Override any GCC internal prototype to avoid an error.
11124 Use char because int might match the return type of a GCC
11125 builtin and then its argument prototype would still apply. */
11126 #ifdef __cplusplus
11127 extern "C"
11128 #endif
11129 char $ac_func ();
11130 /* The GNU C library defines this for functions which it implements
11131 to always fail with ENOSYS. Some functions are actually named
11132 something starting with __ and the normal name is an alias. */
11133 #if defined __stub_$ac_func || defined __stub___$ac_func
11134 choke me
11135 #endif
11136
11137 int
11138 main ()
11139 {
11140 return $ac_func ();
11141 ;
11142 return 0;
11143 }
11144 _ACEOF
11145 rm -f conftest.$ac_objext conftest$ac_exeext
11146 if { (ac_try="$ac_link"
11147 case "(($ac_try" in
11148 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11149 *) ac_try_echo=$ac_try;;
11150 esac
11151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11152 (eval "$ac_link") 2>conftest.er1
11153 ac_status=$?
11154 grep -v '^ *+' conftest.er1 >conftest.err
11155 rm -f conftest.er1
11156 cat conftest.err >&5
11157 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11158 (exit $ac_status); } && {
11159 test -z "$ac_c_werror_flag" ||
11160 test ! -s conftest.err
11161 } && test -s conftest$ac_exeext &&
11162 $as_test_x conftest$ac_exeext; then
11163 eval "$as_ac_var=yes"
11164 else
11165 echo "$as_me: failed program was:" >&5
11166 sed 's/^/| /' conftest.$ac_ext >&5
11167
11168 eval "$as_ac_var=no"
11169 fi
11170
11171 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11172 conftest$ac_exeext conftest.$ac_ext
11173 fi
11174 ac_res=`eval echo '${'$as_ac_var'}'`
11175 { echo "$as_me:$LINENO: result: $ac_res" >&5
11176 echo "${ECHO_T}$ac_res" >&6; }
11177 if test `eval echo '${'$as_ac_var'}'` = yes; then
11178 cat >>confdefs.h <<_ACEOF
11179 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11180 _ACEOF
11181 GTK_COMPILES=yes
11182 fi
11183 done
11184
11185 if test "${GTK_COMPILES}" != "yes"; then
11186 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11187 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11188 { (exit 1); exit 1; }; };
11189 fi
11190
11191 HAVE_GTK=yes
11192
11193 cat >>confdefs.h <<\_ACEOF
11194 #define HAVE_GTK 1
11195 _ACEOF
11196
11197 USE_X_TOOLKIT=none
11198
11199 if test "$with_toolkit_scroll_bars" != no; then
11200 with_toolkit_scroll_bars=yes
11201 fi
11202
11203 HAVE_GTK_MULTIDISPLAY=no
11204
11205 for ac_func in gdk_display_open
11206 do
11207 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11208 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11209 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11210 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11211 echo $ECHO_N "(cached) $ECHO_C" >&6
11212 else
11213 cat >conftest.$ac_ext <<_ACEOF
11214 /* confdefs.h. */
11215 _ACEOF
11216 cat confdefs.h >>conftest.$ac_ext
11217 cat >>conftest.$ac_ext <<_ACEOF
11218 /* end confdefs.h. */
11219 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11221 #define $ac_func innocuous_$ac_func
11222
11223 /* System header to define __stub macros and hopefully few prototypes,
11224 which can conflict with char $ac_func (); below.
11225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11226 <limits.h> exists even on freestanding compilers. */
11227
11228 #ifdef __STDC__
11229 # include <limits.h>
11230 #else
11231 # include <assert.h>
11232 #endif
11233
11234 #undef $ac_func
11235
11236 /* Override any GCC internal prototype to avoid an error.
11237 Use char because int might match the return type of a GCC
11238 builtin and then its argument prototype would still apply. */
11239 #ifdef __cplusplus
11240 extern "C"
11241 #endif
11242 char $ac_func ();
11243 /* The GNU C library defines this for functions which it implements
11244 to always fail with ENOSYS. Some functions are actually named
11245 something starting with __ and the normal name is an alias. */
11246 #if defined __stub_$ac_func || defined __stub___$ac_func
11247 choke me
11248 #endif
11249
11250 int
11251 main ()
11252 {
11253 return $ac_func ();
11254 ;
11255 return 0;
11256 }
11257 _ACEOF
11258 rm -f conftest.$ac_objext conftest$ac_exeext
11259 if { (ac_try="$ac_link"
11260 case "(($ac_try" in
11261 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11262 *) ac_try_echo=$ac_try;;
11263 esac
11264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11265 (eval "$ac_link") 2>conftest.er1
11266 ac_status=$?
11267 grep -v '^ *+' conftest.er1 >conftest.err
11268 rm -f conftest.er1
11269 cat conftest.err >&5
11270 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11271 (exit $ac_status); } && {
11272 test -z "$ac_c_werror_flag" ||
11273 test ! -s conftest.err
11274 } && test -s conftest$ac_exeext &&
11275 $as_test_x conftest$ac_exeext; then
11276 eval "$as_ac_var=yes"
11277 else
11278 echo "$as_me: failed program was:" >&5
11279 sed 's/^/| /' conftest.$ac_ext >&5
11280
11281 eval "$as_ac_var=no"
11282 fi
11283
11284 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11285 conftest$ac_exeext conftest.$ac_ext
11286 fi
11287 ac_res=`eval echo '${'$as_ac_var'}'`
11288 { echo "$as_me:$LINENO: result: $ac_res" >&5
11289 echo "${ECHO_T}$ac_res" >&6; }
11290 if test `eval echo '${'$as_ac_var'}'` = yes; then
11291 cat >>confdefs.h <<_ACEOF
11292 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11294 HAVE_GTK_MULTIDISPLAY=yes
11295 fi
11296 done
11297
11298 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11299
11300 cat >>confdefs.h <<\_ACEOF
11301 #define HAVE_GTK_MULTIDISPLAY 1
11302 _ACEOF
11303
11304 fi
11305 HAVE_GTK_FILE_SELECTION=no
11306
11307 for ac_func in gtk_file_selection_new
11308 do
11309 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11310 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11311 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11312 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11313 echo $ECHO_N "(cached) $ECHO_C" >&6
11314 else
11315 cat >conftest.$ac_ext <<_ACEOF
11316 /* confdefs.h. */
11317 _ACEOF
11318 cat confdefs.h >>conftest.$ac_ext
11319 cat >>conftest.$ac_ext <<_ACEOF
11320 /* end confdefs.h. */
11321 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11322 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11323 #define $ac_func innocuous_$ac_func
11324
11325 /* System header to define __stub macros and hopefully few prototypes,
11326 which can conflict with char $ac_func (); below.
11327 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11328 <limits.h> exists even on freestanding compilers. */
11329
11330 #ifdef __STDC__
11331 # include <limits.h>
11332 #else
11333 # include <assert.h>
11334 #endif
11335
11336 #undef $ac_func
11337
11338 /* Override any GCC internal prototype to avoid an error.
11339 Use char because int might match the return type of a GCC
11340 builtin and then its argument prototype would still apply. */
11341 #ifdef __cplusplus
11342 extern "C"
11343 #endif
11344 char $ac_func ();
11345 /* The GNU C library defines this for functions which it implements
11346 to always fail with ENOSYS. Some functions are actually named
11347 something starting with __ and the normal name is an alias. */
11348 #if defined __stub_$ac_func || defined __stub___$ac_func
11349 choke me
11350 #endif
11351
11352 int
11353 main ()
11354 {
11355 return $ac_func ();
11356 ;
11357 return 0;
11358 }
11359 _ACEOF
11360 rm -f conftest.$ac_objext conftest$ac_exeext
11361 if { (ac_try="$ac_link"
11362 case "(($ac_try" in
11363 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11364 *) ac_try_echo=$ac_try;;
11365 esac
11366 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11367 (eval "$ac_link") 2>conftest.er1
11368 ac_status=$?
11369 grep -v '^ *+' conftest.er1 >conftest.err
11370 rm -f conftest.er1
11371 cat conftest.err >&5
11372 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11373 (exit $ac_status); } && {
11374 test -z "$ac_c_werror_flag" ||
11375 test ! -s conftest.err
11376 } && test -s conftest$ac_exeext &&
11377 $as_test_x conftest$ac_exeext; then
11378 eval "$as_ac_var=yes"
11379 else
11380 echo "$as_me: failed program was:" >&5
11381 sed 's/^/| /' conftest.$ac_ext >&5
11382
11383 eval "$as_ac_var=no"
11384 fi
11385
11386 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11387 conftest$ac_exeext conftest.$ac_ext
11388 fi
11389 ac_res=`eval echo '${'$as_ac_var'}'`
11390 { echo "$as_me:$LINENO: result: $ac_res" >&5
11391 echo "${ECHO_T}$ac_res" >&6; }
11392 if test `eval echo '${'$as_ac_var'}'` = yes; then
11393 cat >>confdefs.h <<_ACEOF
11394 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11395 _ACEOF
11396 HAVE_GTK_FILE_SELECTION=yes
11397 fi
11398 done
11399
11400
11401 HAVE_GTK_FILE_CHOOSER=no
11402
11403 for ac_func in gtk_file_chooser_dialog_new
11404 do
11405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11409 echo $ECHO_N "(cached) $ECHO_C" >&6
11410 else
11411 cat >conftest.$ac_ext <<_ACEOF
11412 /* confdefs.h. */
11413 _ACEOF
11414 cat confdefs.h >>conftest.$ac_ext
11415 cat >>conftest.$ac_ext <<_ACEOF
11416 /* end confdefs.h. */
11417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11418 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11419 #define $ac_func innocuous_$ac_func
11420
11421 /* System header to define __stub macros and hopefully few prototypes,
11422 which can conflict with char $ac_func (); below.
11423 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11424 <limits.h> exists even on freestanding compilers. */
11425
11426 #ifdef __STDC__
11427 # include <limits.h>
11428 #else
11429 # include <assert.h>
11430 #endif
11431
11432 #undef $ac_func
11433
11434 /* Override any GCC internal prototype to avoid an error.
11435 Use char because int might match the return type of a GCC
11436 builtin and then its argument prototype would still apply. */
11437 #ifdef __cplusplus
11438 extern "C"
11439 #endif
11440 char $ac_func ();
11441 /* The GNU C library defines this for functions which it implements
11442 to always fail with ENOSYS. Some functions are actually named
11443 something starting with __ and the normal name is an alias. */
11444 #if defined __stub_$ac_func || defined __stub___$ac_func
11445 choke me
11446 #endif
11447
11448 int
11449 main ()
11450 {
11451 return $ac_func ();
11452 ;
11453 return 0;
11454 }
11455 _ACEOF
11456 rm -f conftest.$ac_objext conftest$ac_exeext
11457 if { (ac_try="$ac_link"
11458 case "(($ac_try" in
11459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11460 *) ac_try_echo=$ac_try;;
11461 esac
11462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11463 (eval "$ac_link") 2>conftest.er1
11464 ac_status=$?
11465 grep -v '^ *+' conftest.er1 >conftest.err
11466 rm -f conftest.er1
11467 cat conftest.err >&5
11468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11469 (exit $ac_status); } && {
11470 test -z "$ac_c_werror_flag" ||
11471 test ! -s conftest.err
11472 } && test -s conftest$ac_exeext &&
11473 $as_test_x conftest$ac_exeext; then
11474 eval "$as_ac_var=yes"
11475 else
11476 echo "$as_me: failed program was:" >&5
11477 sed 's/^/| /' conftest.$ac_ext >&5
11478
11479 eval "$as_ac_var=no"
11480 fi
11481
11482 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11483 conftest$ac_exeext conftest.$ac_ext
11484 fi
11485 ac_res=`eval echo '${'$as_ac_var'}'`
11486 { echo "$as_me:$LINENO: result: $ac_res" >&5
11487 echo "${ECHO_T}$ac_res" >&6; }
11488 if test `eval echo '${'$as_ac_var'}'` = yes; then
11489 cat >>confdefs.h <<_ACEOF
11490 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11491 _ACEOF
11492 HAVE_GTK_FILE_CHOOSER=yes
11493 fi
11494 done
11495
11496
11497 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11498 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11499
11500 cat >>confdefs.h <<\_ACEOF
11501 #define HAVE_GTK_FILE_BOTH 1
11502 _ACEOF
11503
11504 fi
11505
11506 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11507 HAVE_GTK_AND_PTHREAD=no
11508
11509 for ac_header in pthread.h
11510 do
11511 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11512 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11513 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11514 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11516 echo $ECHO_N "(cached) $ECHO_C" >&6
11517 fi
11518 ac_res=`eval echo '${'$as_ac_Header'}'`
11519 { echo "$as_me:$LINENO: result: $ac_res" >&5
11520 echo "${ECHO_T}$ac_res" >&6; }
11521 else
11522 # Is the header compilable?
11523 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11524 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11525 cat >conftest.$ac_ext <<_ACEOF
11526 /* confdefs.h. */
11527 _ACEOF
11528 cat confdefs.h >>conftest.$ac_ext
11529 cat >>conftest.$ac_ext <<_ACEOF
11530 /* end confdefs.h. */
11531 $ac_includes_default
11532 #include <$ac_header>
11533 _ACEOF
11534 rm -f conftest.$ac_objext
11535 if { (ac_try="$ac_compile"
11536 case "(($ac_try" in
11537 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11538 *) ac_try_echo=$ac_try;;
11539 esac
11540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11541 (eval "$ac_compile") 2>conftest.er1
11542 ac_status=$?
11543 grep -v '^ *+' conftest.er1 >conftest.err
11544 rm -f conftest.er1
11545 cat conftest.err >&5
11546 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11547 (exit $ac_status); } && {
11548 test -z "$ac_c_werror_flag" ||
11549 test ! -s conftest.err
11550 } && test -s conftest.$ac_objext; then
11551 ac_header_compiler=yes
11552 else
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 ac_header_compiler=no
11557 fi
11558
11559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11560 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11561 echo "${ECHO_T}$ac_header_compiler" >&6; }
11562
11563 # Is the header present?
11564 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11565 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11566 cat >conftest.$ac_ext <<_ACEOF
11567 /* confdefs.h. */
11568 _ACEOF
11569 cat confdefs.h >>conftest.$ac_ext
11570 cat >>conftest.$ac_ext <<_ACEOF
11571 /* end confdefs.h. */
11572 #include <$ac_header>
11573 _ACEOF
11574 if { (ac_try="$ac_cpp conftest.$ac_ext"
11575 case "(($ac_try" in
11576 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11577 *) ac_try_echo=$ac_try;;
11578 esac
11579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11580 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11581 ac_status=$?
11582 grep -v '^ *+' conftest.er1 >conftest.err
11583 rm -f conftest.er1
11584 cat conftest.err >&5
11585 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11586 (exit $ac_status); } >/dev/null && {
11587 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11588 test ! -s conftest.err
11589 }; then
11590 ac_header_preproc=yes
11591 else
11592 echo "$as_me: failed program was:" >&5
11593 sed 's/^/| /' conftest.$ac_ext >&5
11594
11595 ac_header_preproc=no
11596 fi
11597
11598 rm -f conftest.err conftest.$ac_ext
11599 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11600 echo "${ECHO_T}$ac_header_preproc" >&6; }
11601
11602 # So? What about this header?
11603 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11604 yes:no: )
11605 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11606 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11607 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11608 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11609 ac_header_preproc=yes
11610 ;;
11611 no:yes:* )
11612 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11613 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11614 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11615 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11616 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11617 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11618 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11619 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11620 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11621 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11622 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11623 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11624
11625 ;;
11626 esac
11627 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11628 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11629 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11630 echo $ECHO_N "(cached) $ECHO_C" >&6
11631 else
11632 eval "$as_ac_Header=\$ac_header_preproc"
11633 fi
11634 ac_res=`eval echo '${'$as_ac_Header'}'`
11635 { echo "$as_me:$LINENO: result: $ac_res" >&5
11636 echo "${ECHO_T}$ac_res" >&6; }
11637
11638 fi
11639 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11640 cat >>confdefs.h <<_ACEOF
11641 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11642 _ACEOF
11643
11644 fi
11645
11646 done
11647
11648 if test "$ac_cv_header_pthread_h"; then
11649 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11650 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11651 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11652 echo $ECHO_N "(cached) $ECHO_C" >&6
11653 else
11654 ac_check_lib_save_LIBS=$LIBS
11655 LIBS="-lpthread $LIBS"
11656 cat >conftest.$ac_ext <<_ACEOF
11657 /* confdefs.h. */
11658 _ACEOF
11659 cat confdefs.h >>conftest.$ac_ext
11660 cat >>conftest.$ac_ext <<_ACEOF
11661 /* end confdefs.h. */
11662
11663 /* Override any GCC internal prototype to avoid an error.
11664 Use char because int might match the return type of a GCC
11665 builtin and then its argument prototype would still apply. */
11666 #ifdef __cplusplus
11667 extern "C"
11668 #endif
11669 char pthread_self ();
11670 int
11671 main ()
11672 {
11673 return pthread_self ();
11674 ;
11675 return 0;
11676 }
11677 _ACEOF
11678 rm -f conftest.$ac_objext conftest$ac_exeext
11679 if { (ac_try="$ac_link"
11680 case "(($ac_try" in
11681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11682 *) ac_try_echo=$ac_try;;
11683 esac
11684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11685 (eval "$ac_link") 2>conftest.er1
11686 ac_status=$?
11687 grep -v '^ *+' conftest.er1 >conftest.err
11688 rm -f conftest.er1
11689 cat conftest.err >&5
11690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11691 (exit $ac_status); } && {
11692 test -z "$ac_c_werror_flag" ||
11693 test ! -s conftest.err
11694 } && test -s conftest$ac_exeext &&
11695 $as_test_x conftest$ac_exeext; then
11696 ac_cv_lib_pthread_pthread_self=yes
11697 else
11698 echo "$as_me: failed program was:" >&5
11699 sed 's/^/| /' conftest.$ac_ext >&5
11700
11701 ac_cv_lib_pthread_pthread_self=no
11702 fi
11703
11704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11705 conftest$ac_exeext conftest.$ac_ext
11706 LIBS=$ac_check_lib_save_LIBS
11707 fi
11708 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11709 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11710 if test $ac_cv_lib_pthread_pthread_self = yes; then
11711 HAVE_GTK_AND_PTHREAD=yes
11712 fi
11713
11714 fi
11715 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11716 GTK_LIBS="$GTK_LIBS -lpthread"
11717
11718 cat >>confdefs.h <<\_ACEOF
11719 #define HAVE_GTK_AND_PTHREAD 1
11720 _ACEOF
11721
11722 fi
11723 fi
11724 fi
11725
11726 if test x"${USE_X_TOOLKIT}" = xmaybe; then
11727 if test x"${HAVE_X11R5}" = xyes; then
11728 { echo "$as_me:$LINENO: checking X11 version 5 with Xaw" >&5
11729 echo $ECHO_N "checking X11 version 5 with Xaw... $ECHO_C" >&6; }
11730 if test "${emacs_cv_x11_version_5_with_xaw+set}" = set; then
11731 echo $ECHO_N "(cached) $ECHO_C" >&6
11732 else
11733 cat >conftest.$ac_ext <<_ACEOF
11734 /* confdefs.h. */
11735 _ACEOF
11736 cat confdefs.h >>conftest.$ac_ext
11737 cat >>conftest.$ac_ext <<_ACEOF
11738 /* end confdefs.h. */
11739
11740 #include <X11/Intrinsic.h>
11741 #include <X11/Xaw/Simple.h>
11742 int
11743 main ()
11744 {
11745
11746 ;
11747 return 0;
11748 }
11749 _ACEOF
11750 rm -f conftest.$ac_objext conftest$ac_exeext
11751 if { (ac_try="$ac_link"
11752 case "(($ac_try" in
11753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11754 *) ac_try_echo=$ac_try;;
11755 esac
11756 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11757 (eval "$ac_link") 2>conftest.er1
11758 ac_status=$?
11759 grep -v '^ *+' conftest.er1 >conftest.err
11760 rm -f conftest.er1
11761 cat conftest.err >&5
11762 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11763 (exit $ac_status); } && {
11764 test -z "$ac_c_werror_flag" ||
11765 test ! -s conftest.err
11766 } && test -s conftest$ac_exeext &&
11767 $as_test_x conftest$ac_exeext; then
11768 emacs_cv_x11_version_5_with_xaw=yes
11769 else
11770 echo "$as_me: failed program was:" >&5
11771 sed 's/^/| /' conftest.$ac_ext >&5
11772
11773 emacs_cv_x11_version_5_with_xaw=no
11774 fi
11775
11776 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11777 conftest$ac_exeext conftest.$ac_ext
11778 fi
11779
11780 if test $emacs_cv_x11_version_5_with_xaw = yes; then
11781 { echo "$as_me:$LINENO: result: 5 or newer, with Xaw; use toolkit by default" >&5
11782 echo "${ECHO_T}5 or newer, with Xaw; use toolkit by default" >&6; }
11783 USE_X_TOOLKIT=LUCID
11784 else
11785 { echo "$as_me:$LINENO: result: before 5 or no Xaw; do not use toolkit by default" >&5
11786 echo "${ECHO_T}before 5 or no Xaw; do not use toolkit by default" >&6; }
11787 USE_X_TOOLKIT=none
11788 fi
11789 else
11790 USE_X_TOOLKIT=none
11791 fi
11792 fi
11793
11794 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
11795
11796 if test "${USE_X_TOOLKIT}" != "none"; then
11797 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
11798 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
11799 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
11800 echo $ECHO_N "(cached) $ECHO_C" >&6
11801 else
11802 cat >conftest.$ac_ext <<_ACEOF
11803 /* confdefs.h. */
11804 _ACEOF
11805 cat confdefs.h >>conftest.$ac_ext
11806 cat >>conftest.$ac_ext <<_ACEOF
11807 /* end confdefs.h. */
11808 #include <X11/Intrinsic.h>
11809 int
11810 main ()
11811 {
11812 #if XtSpecificationRelease < 6
11813 fail;
11814 #endif
11815
11816 ;
11817 return 0;
11818 }
11819 _ACEOF
11820 rm -f conftest.$ac_objext conftest$ac_exeext
11821 if { (ac_try="$ac_link"
11822 case "(($ac_try" in
11823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11824 *) ac_try_echo=$ac_try;;
11825 esac
11826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11827 (eval "$ac_link") 2>conftest.er1
11828 ac_status=$?
11829 grep -v '^ *+' conftest.er1 >conftest.err
11830 rm -f conftest.er1
11831 cat conftest.err >&5
11832 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11833 (exit $ac_status); } && {
11834 test -z "$ac_c_werror_flag" ||
11835 test ! -s conftest.err
11836 } && test -s conftest$ac_exeext &&
11837 $as_test_x conftest$ac_exeext; then
11838 emacs_cv_x11_toolkit_version_6=yes
11839 else
11840 echo "$as_me: failed program was:" >&5
11841 sed 's/^/| /' conftest.$ac_ext >&5
11842
11843 emacs_cv_x11_toolkit_version_6=no
11844 fi
11845
11846 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11847 conftest$ac_exeext conftest.$ac_ext
11848 fi
11849
11850 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
11851 if test $emacs_cv_x11_toolkit_version_6 = yes; then
11852 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11853 echo "${ECHO_T}6 or newer" >&6; }
11854
11855 cat >>confdefs.h <<\_ACEOF
11856 #define HAVE_X11XTR6 1
11857 _ACEOF
11858
11859 else
11860 { echo "$as_me:$LINENO: result: before 6" >&5
11861 echo "${ECHO_T}before 6" >&6; }
11862 fi
11863
11864 OLDLIBS="$LIBS"
11865 if test x$HAVE_X11XTR6 = xyes; then
11866 LIBS="-lXt -lSM -lICE $LIBS"
11867 else
11868 LIBS="-lXt $LIBS"
11869 fi
11870
11871 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
11872 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
11873 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
11874 echo $ECHO_N "(cached) $ECHO_C" >&6
11875 else
11876 ac_check_lib_save_LIBS=$LIBS
11877 LIBS="-lXmu $LIBS"
11878 cat >conftest.$ac_ext <<_ACEOF
11879 /* confdefs.h. */
11880 _ACEOF
11881 cat confdefs.h >>conftest.$ac_ext
11882 cat >>conftest.$ac_ext <<_ACEOF
11883 /* end confdefs.h. */
11884
11885 /* Override any GCC internal prototype to avoid an error.
11886 Use char because int might match the return type of a GCC
11887 builtin and then its argument prototype would still apply. */
11888 #ifdef __cplusplus
11889 extern "C"
11890 #endif
11891 char XmuConvertStandardSelection ();
11892 int
11893 main ()
11894 {
11895 return XmuConvertStandardSelection ();
11896 ;
11897 return 0;
11898 }
11899 _ACEOF
11900 rm -f conftest.$ac_objext conftest$ac_exeext
11901 if { (ac_try="$ac_link"
11902 case "(($ac_try" in
11903 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11904 *) ac_try_echo=$ac_try;;
11905 esac
11906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11907 (eval "$ac_link") 2>conftest.er1
11908 ac_status=$?
11909 grep -v '^ *+' conftest.er1 >conftest.err
11910 rm -f conftest.er1
11911 cat conftest.err >&5
11912 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11913 (exit $ac_status); } && {
11914 test -z "$ac_c_werror_flag" ||
11915 test ! -s conftest.err
11916 } && test -s conftest$ac_exeext &&
11917 $as_test_x conftest$ac_exeext; then
11918 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
11919 else
11920 echo "$as_me: failed program was:" >&5
11921 sed 's/^/| /' conftest.$ac_ext >&5
11922
11923 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
11924 fi
11925
11926 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11927 conftest$ac_exeext conftest.$ac_ext
11928 LIBS=$ac_check_lib_save_LIBS
11929 fi
11930 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
11931 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
11932 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
11933 cat >>confdefs.h <<_ACEOF
11934 #define HAVE_LIBXMU 1
11935 _ACEOF
11936
11937 LIBS="-lXmu $LIBS"
11938
11939 fi
11940
11941 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
11942 fi
11943
11944 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
11945 if test "${HAVE_X11}" = "yes"; then
11946 if test "${USE_X_TOOLKIT}" != "none"; then
11947
11948 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
11949 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
11950 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
11951 echo $ECHO_N "(cached) $ECHO_C" >&6
11952 else
11953 ac_check_lib_save_LIBS=$LIBS
11954 LIBS="-lXext $LIBS"
11955 cat >conftest.$ac_ext <<_ACEOF
11956 /* confdefs.h. */
11957 _ACEOF
11958 cat confdefs.h >>conftest.$ac_ext
11959 cat >>conftest.$ac_ext <<_ACEOF
11960 /* end confdefs.h. */
11961
11962 /* Override any GCC internal prototype to avoid an error.
11963 Use char because int might match the return type of a GCC
11964 builtin and then its argument prototype would still apply. */
11965 #ifdef __cplusplus
11966 extern "C"
11967 #endif
11968 char XShapeQueryExtension ();
11969 int
11970 main ()
11971 {
11972 return XShapeQueryExtension ();
11973 ;
11974 return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981 *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984 (eval "$ac_link") 2>conftest.er1
11985 ac_status=$?
11986 grep -v '^ *+' conftest.er1 >conftest.err
11987 rm -f conftest.er1
11988 cat conftest.err >&5
11989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990 (exit $ac_status); } && {
11991 test -z "$ac_c_werror_flag" ||
11992 test ! -s conftest.err
11993 } && test -s conftest$ac_exeext &&
11994 $as_test_x conftest$ac_exeext; then
11995 ac_cv_lib_Xext_XShapeQueryExtension=yes
11996 else
11997 echo "$as_me: failed program was:" >&5
11998 sed 's/^/| /' conftest.$ac_ext >&5
11999
12000 ac_cv_lib_Xext_XShapeQueryExtension=no
12001 fi
12002
12003 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12004 conftest$ac_exeext conftest.$ac_ext
12005 LIBS=$ac_check_lib_save_LIBS
12006 fi
12007 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12008 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12009 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12010 cat >>confdefs.h <<_ACEOF
12011 #define HAVE_LIBXEXT 1
12012 _ACEOF
12013
12014 LIBS="-lXext $LIBS"
12015
12016 fi
12017
12018 fi
12019 fi
12020
12021 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12022 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12023 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12024 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12025 echo $ECHO_N "(cached) $ECHO_C" >&6
12026 else
12027 cat >conftest.$ac_ext <<_ACEOF
12028 /* confdefs.h. */
12029 _ACEOF
12030 cat confdefs.h >>conftest.$ac_ext
12031 cat >>conftest.$ac_ext <<_ACEOF
12032 /* end confdefs.h. */
12033 #include <Xm/Xm.h>
12034 int
12035 main ()
12036 {
12037 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12038 int x = 5;
12039 #else
12040 Motif version prior to 2.1.
12041 #endif
12042 ;
12043 return 0;
12044 }
12045 _ACEOF
12046 rm -f conftest.$ac_objext
12047 if { (ac_try="$ac_compile"
12048 case "(($ac_try" in
12049 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12050 *) ac_try_echo=$ac_try;;
12051 esac
12052 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12053 (eval "$ac_compile") 2>conftest.er1
12054 ac_status=$?
12055 grep -v '^ *+' conftest.er1 >conftest.err
12056 rm -f conftest.er1
12057 cat conftest.err >&5
12058 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12059 (exit $ac_status); } && {
12060 test -z "$ac_c_werror_flag" ||
12061 test ! -s conftest.err
12062 } && test -s conftest.$ac_objext; then
12063 emacs_cv_motif_version_2_1=yes
12064 else
12065 echo "$as_me: failed program was:" >&5
12066 sed 's/^/| /' conftest.$ac_ext >&5
12067
12068 emacs_cv_motif_version_2_1=no
12069 fi
12070
12071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12072 fi
12073 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12074 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12075 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12076 if test $emacs_cv_motif_version_2_1 = yes; then
12077 HAVE_LIBXP=no
12078
12079 cat >>confdefs.h <<\_ACEOF
12080 #define HAVE_MOTIF_2_1 1
12081 _ACEOF
12082
12083 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12084 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12085 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12086 echo $ECHO_N "(cached) $ECHO_C" >&6
12087 else
12088 ac_check_lib_save_LIBS=$LIBS
12089 LIBS="-lXp $LIBS"
12090 cat >conftest.$ac_ext <<_ACEOF
12091 /* confdefs.h. */
12092 _ACEOF
12093 cat confdefs.h >>conftest.$ac_ext
12094 cat >>conftest.$ac_ext <<_ACEOF
12095 /* end confdefs.h. */
12096
12097 /* Override any GCC internal prototype to avoid an error.
12098 Use char because int might match the return type of a GCC
12099 builtin and then its argument prototype would still apply. */
12100 #ifdef __cplusplus
12101 extern "C"
12102 #endif
12103 char XpCreateContext ();
12104 int
12105 main ()
12106 {
12107 return XpCreateContext ();
12108 ;
12109 return 0;
12110 }
12111 _ACEOF
12112 rm -f conftest.$ac_objext conftest$ac_exeext
12113 if { (ac_try="$ac_link"
12114 case "(($ac_try" in
12115 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12116 *) ac_try_echo=$ac_try;;
12117 esac
12118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12119 (eval "$ac_link") 2>conftest.er1
12120 ac_status=$?
12121 grep -v '^ *+' conftest.er1 >conftest.err
12122 rm -f conftest.er1
12123 cat conftest.err >&5
12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12125 (exit $ac_status); } && {
12126 test -z "$ac_c_werror_flag" ||
12127 test ! -s conftest.err
12128 } && test -s conftest$ac_exeext &&
12129 $as_test_x conftest$ac_exeext; then
12130 ac_cv_lib_Xp_XpCreateContext=yes
12131 else
12132 echo "$as_me: failed program was:" >&5
12133 sed 's/^/| /' conftest.$ac_ext >&5
12134
12135 ac_cv_lib_Xp_XpCreateContext=no
12136 fi
12137
12138 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12139 conftest$ac_exeext conftest.$ac_ext
12140 LIBS=$ac_check_lib_save_LIBS
12141 fi
12142 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12143 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12144 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12145 HAVE_LIBXP=yes
12146 fi
12147
12148 if test ${HAVE_LIBXP} = yes; then
12149
12150 cat >>confdefs.h <<\_ACEOF
12151 #define HAVE_LIBXP 1
12152 _ACEOF
12153
12154 fi
12155 else
12156 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12157 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12158 if test "${emacs_cv_lesstif+set}" = set; then
12159 echo $ECHO_N "(cached) $ECHO_C" >&6
12160 else
12161 # We put this in CFLAGS temporarily to precede other -I options
12162 # that might be in CFLAGS temporarily.
12163 # We put this in CPPFLAGS where it precedes the other -I options.
12164 OLD_CPPFLAGS=$CPPFLAGS
12165 OLD_CFLAGS=$CFLAGS
12166 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12167 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12168 cat >conftest.$ac_ext <<_ACEOF
12169 /* confdefs.h. */
12170 _ACEOF
12171 cat confdefs.h >>conftest.$ac_ext
12172 cat >>conftest.$ac_ext <<_ACEOF
12173 /* end confdefs.h. */
12174 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12175 int
12176 main ()
12177 {
12178 int x = 5;
12179 ;
12180 return 0;
12181 }
12182 _ACEOF
12183 rm -f conftest.$ac_objext
12184 if { (ac_try="$ac_compile"
12185 case "(($ac_try" in
12186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12187 *) ac_try_echo=$ac_try;;
12188 esac
12189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12190 (eval "$ac_compile") 2>conftest.er1
12191 ac_status=$?
12192 grep -v '^ *+' conftest.er1 >conftest.err
12193 rm -f conftest.er1
12194 cat conftest.err >&5
12195 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12196 (exit $ac_status); } && {
12197 test -z "$ac_c_werror_flag" ||
12198 test ! -s conftest.err
12199 } && test -s conftest.$ac_objext; then
12200 emacs_cv_lesstif=yes
12201 else
12202 echo "$as_me: failed program was:" >&5
12203 sed 's/^/| /' conftest.$ac_ext >&5
12204
12205 emacs_cv_lesstif=no
12206 fi
12207
12208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12209 fi
12210 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12211 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12212 if test $emacs_cv_lesstif = yes; then
12213 # Make sure this -I option remains in CPPFLAGS after it is set
12214 # back to REAL_CPPFLAGS.
12215 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12216 # have those other -I options anyway. Ultimately, having this
12217 # directory ultimately in CPPFLAGS will be enough.
12218 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12219 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12220 else
12221 CFLAGS=$OLD_CFLAGS
12222 CPPFLAGS=$OLD_CPPFLAGS
12223 fi
12224 fi
12225 fi
12226
12227 ### Is -lXaw3d available?
12228 HAVE_XAW3D=no
12229 if test "${HAVE_X11}" = "yes"; then
12230 if test "${USE_X_TOOLKIT}" != "none" && test "${with_toolkit_scroll_bars}" != "no"; then
12231 { echo "$as_me:$LINENO: checking for X11/Xaw3d/Scrollbar.h" >&5
12232 echo $ECHO_N "checking for X11/Xaw3d/Scrollbar.h... $ECHO_C" >&6; }
12233 if test "${ac_cv_header_X11_Xaw3d_Scrollbar_h+set}" = set; then
12234 echo $ECHO_N "(cached) $ECHO_C" >&6
12235 else
12236 cat >conftest.$ac_ext <<_ACEOF
12237 /* confdefs.h. */
12238 _ACEOF
12239 cat confdefs.h >>conftest.$ac_ext
12240 cat >>conftest.$ac_ext <<_ACEOF
12241 /* end confdefs.h. */
12242 #include <X11/Xaw3d/Scrollbar.h>
12243 _ACEOF
12244 if { (ac_try="$ac_cpp conftest.$ac_ext"
12245 case "(($ac_try" in
12246 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12247 *) ac_try_echo=$ac_try;;
12248 esac
12249 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12250 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12251 ac_status=$?
12252 grep -v '^ *+' conftest.er1 >conftest.err
12253 rm -f conftest.er1
12254 cat conftest.err >&5
12255 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12256 (exit $ac_status); } >/dev/null && {
12257 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 }; then
12260 ac_cv_header_X11_Xaw3d_Scrollbar_h=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_cv_header_X11_Xaw3d_Scrollbar_h=no
12266 fi
12267
12268 rm -f conftest.err conftest.$ac_ext
12269 fi
12270 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xaw3d_Scrollbar_h" >&5
12271 echo "${ECHO_T}$ac_cv_header_X11_Xaw3d_Scrollbar_h" >&6; }
12272 if test $ac_cv_header_X11_Xaw3d_Scrollbar_h = yes; then
12273 { echo "$as_me:$LINENO: checking for XawScrollbarSetThumb in -lXaw3d" >&5
12274 echo $ECHO_N "checking for XawScrollbarSetThumb in -lXaw3d... $ECHO_C" >&6; }
12275 if test "${ac_cv_lib_Xaw3d_XawScrollbarSetThumb+set}" = set; then
12276 echo $ECHO_N "(cached) $ECHO_C" >&6
12277 else
12278 ac_check_lib_save_LIBS=$LIBS
12279 LIBS="-lXaw3d $LIBS"
12280 cat >conftest.$ac_ext <<_ACEOF
12281 /* confdefs.h. */
12282 _ACEOF
12283 cat confdefs.h >>conftest.$ac_ext
12284 cat >>conftest.$ac_ext <<_ACEOF
12285 /* end confdefs.h. */
12286
12287 /* Override any GCC internal prototype to avoid an error.
12288 Use char because int might match the return type of a GCC
12289 builtin and then its argument prototype would still apply. */
12290 #ifdef __cplusplus
12291 extern "C"
12292 #endif
12293 char XawScrollbarSetThumb ();
12294 int
12295 main ()
12296 {
12297 return XawScrollbarSetThumb ();
12298 ;
12299 return 0;
12300 }
12301 _ACEOF
12302 rm -f conftest.$ac_objext conftest$ac_exeext
12303 if { (ac_try="$ac_link"
12304 case "(($ac_try" in
12305 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12306 *) ac_try_echo=$ac_try;;
12307 esac
12308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12309 (eval "$ac_link") 2>conftest.er1
12310 ac_status=$?
12311 grep -v '^ *+' conftest.er1 >conftest.err
12312 rm -f conftest.er1
12313 cat conftest.err >&5
12314 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12315 (exit $ac_status); } && {
12316 test -z "$ac_c_werror_flag" ||
12317 test ! -s conftest.err
12318 } && test -s conftest$ac_exeext &&
12319 $as_test_x conftest$ac_exeext; then
12320 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=yes
12321 else
12322 echo "$as_me: failed program was:" >&5
12323 sed 's/^/| /' conftest.$ac_ext >&5
12324
12325 ac_cv_lib_Xaw3d_XawScrollbarSetThumb=no
12326 fi
12327
12328 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12329 conftest$ac_exeext conftest.$ac_ext
12330 LIBS=$ac_check_lib_save_LIBS
12331 fi
12332 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&5
12333 echo "${ECHO_T}$ac_cv_lib_Xaw3d_XawScrollbarSetThumb" >&6; }
12334 if test $ac_cv_lib_Xaw3d_XawScrollbarSetThumb = yes; then
12335 HAVE_XAW3D=yes
12336 fi
12337
12338 fi
12339
12340
12341 if test "${HAVE_XAW3D}" = "yes"; then
12342
12343 cat >>confdefs.h <<\_ACEOF
12344 #define HAVE_XAW3D 1
12345 _ACEOF
12346
12347 fi
12348 fi
12349 fi
12350
12351
12352
12353 USE_TOOLKIT_SCROLL_BARS=no
12354 if test "${with_toolkit_scroll_bars}" != "no"; then
12355 if test "${USE_X_TOOLKIT}" != "none"; then
12356 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12357 cat >>confdefs.h <<\_ACEOF
12358 #define USE_TOOLKIT_SCROLL_BARS 1
12359 _ACEOF
12360
12361 HAVE_XAW3D=no
12362 USE_TOOLKIT_SCROLL_BARS=yes
12363 elif test "${HAVE_XAW3D}" = "yes"; then
12364 cat >>confdefs.h <<\_ACEOF
12365 #define USE_TOOLKIT_SCROLL_BARS 1
12366 _ACEOF
12367
12368 USE_TOOLKIT_SCROLL_BARS=yes
12369 fi
12370 elif test "${HAVE_GTK}" = "yes"; then
12371 cat >>confdefs.h <<\_ACEOF
12372 #define USE_TOOLKIT_SCROLL_BARS 1
12373 _ACEOF
12374
12375 USE_TOOLKIT_SCROLL_BARS=yes
12376 elif test "${HAVE_CARBON}" = "yes"; then
12377 cat >>confdefs.h <<\_ACEOF
12378 #define USE_TOOLKIT_SCROLL_BARS 1
12379 _ACEOF
12380
12381 USE_TOOLKIT_SCROLL_BARS=yes
12382 fi
12383 fi
12384
12385 cat >conftest.$ac_ext <<_ACEOF
12386 /* confdefs.h. */
12387 _ACEOF
12388 cat confdefs.h >>conftest.$ac_ext
12389 cat >>conftest.$ac_ext <<_ACEOF
12390 /* end confdefs.h. */
12391
12392 #include <X11/Xlib.h>
12393 #include <X11/Xresource.h>
12394 int
12395 main ()
12396 {
12397 XIMProc callback;
12398 ;
12399 return 0;
12400 }
12401 _ACEOF
12402 rm -f conftest.$ac_objext
12403 if { (ac_try="$ac_compile"
12404 case "(($ac_try" in
12405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12406 *) ac_try_echo=$ac_try;;
12407 esac
12408 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12409 (eval "$ac_compile") 2>conftest.er1
12410 ac_status=$?
12411 grep -v '^ *+' conftest.er1 >conftest.err
12412 rm -f conftest.er1
12413 cat conftest.err >&5
12414 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12415 (exit $ac_status); } && {
12416 test -z "$ac_c_werror_flag" ||
12417 test ! -s conftest.err
12418 } && test -s conftest.$ac_objext; then
12419 HAVE_XIM=yes
12420
12421 cat >>confdefs.h <<\_ACEOF
12422 #define HAVE_XIM 1
12423 _ACEOF
12424
12425 else
12426 echo "$as_me: failed program was:" >&5
12427 sed 's/^/| /' conftest.$ac_ext >&5
12428
12429 HAVE_XIM=no
12430 fi
12431
12432 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12433
12434
12435 if test "${with_xim}" != "no"; then
12436
12437 cat >>confdefs.h <<\_ACEOF
12438 #define USE_XIM 1
12439 _ACEOF
12440
12441 fi
12442
12443
12444 if test "${HAVE_XIM}" != "no"; then
12445 late_CFLAGS=$CFLAGS
12446 if test "$GCC" = yes; then
12447 CFLAGS="$CFLAGS --pedantic-errors"
12448 fi
12449 cat >conftest.$ac_ext <<_ACEOF
12450 /* confdefs.h. */
12451 _ACEOF
12452 cat confdefs.h >>conftest.$ac_ext
12453 cat >>conftest.$ac_ext <<_ACEOF
12454 /* end confdefs.h. */
12455
12456 #include <X11/Xlib.h>
12457 #include <X11/Xresource.h>
12458 int
12459 main ()
12460 {
12461 Display *display;
12462 XrmDatabase db;
12463 char *res_name;
12464 char *res_class;
12465 XIMProc callback;
12466 XPointer *client_data;
12467 #ifndef __GNUC__
12468 /* If we're not using GCC, it's probably not XFree86, and this is
12469 probably right, but we can't use something like --pedantic-errors. */
12470 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
12471 char*, XIMProc, XPointer*);
12472 #endif
12473 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
12474 client_data);
12475 ;
12476 return 0;
12477 }
12478 _ACEOF
12479 rm -f conftest.$ac_objext
12480 if { (ac_try="$ac_compile"
12481 case "(($ac_try" in
12482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12483 *) ac_try_echo=$ac_try;;
12484 esac
12485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12486 (eval "$ac_compile") 2>conftest.er1
12487 ac_status=$?
12488 grep -v '^ *+' conftest.er1 >conftest.err
12489 rm -f conftest.er1
12490 cat conftest.err >&5
12491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12492 (exit $ac_status); } && {
12493 test -z "$ac_c_werror_flag" ||
12494 test ! -s conftest.err
12495 } && test -s conftest.$ac_objext; then
12496 emacs_cv_arg6_star=yes
12497 else
12498 echo "$as_me: failed program was:" >&5
12499 sed 's/^/| /' conftest.$ac_ext >&5
12500
12501
12502 fi
12503
12504 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12505
12506 if test "$emacs_cv_arg6_star" = yes; then
12507 cat >>confdefs.h <<\_ACEOF
12508 #define XRegisterIMInstantiateCallback_arg6 XPointer*
12509 _ACEOF
12510
12511 else
12512 cat >>confdefs.h <<\_ACEOF
12513 #define XRegisterIMInstantiateCallback_arg6 XPointer
12514 _ACEOF
12515
12516 fi
12517 CFLAGS=$late_CFLAGS
12518 fi
12519
12520 ### For font-backend
12521 if test "${USE_FONT_BACKEND}" = "yes"; then
12522
12523
12524 cat >>confdefs.h <<\_ACEOF
12525 #define USE_FONT_BACKEND 1
12526 _ACEOF
12527
12528
12529 ### Use -lXft if available, unless `--with-freetype=no' nor `--with-xft=no'.
12530 HAVE_XFT=maybe
12531 if test "${HAVE_X11}" = "yes"; then
12532 if test "x${with_freetype}" = "xno"; then
12533 with_xft="no";
12534 fi
12535 if test "x${with_xft}" != "xno"; then
12536
12537 if test "X${with_pkg_config_prog}" != X; then
12538 PKG_CONFIG="${with_pkg_config_prog}"
12539 fi
12540
12541
12542 succeeded=no
12543
12544 if test -z "$PKG_CONFIG"; then
12545 # Extract the first word of "pkg-config", so it can be a program name with args.
12546 set dummy pkg-config; ac_word=$2
12547 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12548 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12549 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12550 echo $ECHO_N "(cached) $ECHO_C" >&6
12551 else
12552 case $PKG_CONFIG in
12553 [\\/]* | ?:[\\/]*)
12554 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12555 ;;
12556 *)
12557 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12558 for as_dir in $PATH
12559 do
12560 IFS=$as_save_IFS
12561 test -z "$as_dir" && as_dir=.
12562 for ac_exec_ext in '' $ac_executable_extensions; do
12563 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12564 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12565 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12566 break 2
12567 fi
12568 done
12569 done
12570 IFS=$as_save_IFS
12571
12572 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12573 ;;
12574 esac
12575 fi
12576 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12577 if test -n "$PKG_CONFIG"; then
12578 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12579 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12580 else
12581 { echo "$as_me:$LINENO: result: no" >&5
12582 echo "${ECHO_T}no" >&6; }
12583 fi
12584
12585
12586 fi
12587
12588 if test "$PKG_CONFIG" = "no" ; then
12589 HAVE_XFT=no
12590 else
12591 PKG_CONFIG_MIN_VERSION=0.9.0
12592 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12593 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12594 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12595
12596 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12597 { echo "$as_me:$LINENO: result: yes" >&5
12598 echo "${ECHO_T}yes" >&6; }
12599 succeeded=yes
12600
12601 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12602 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12603 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12604 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12605 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12606
12607 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12608 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12609 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12610 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12611 echo "${ECHO_T}$XFT_LIBS" >&6; }
12612 else
12613 { echo "$as_me:$LINENO: result: no" >&5
12614 echo "${ECHO_T}no" >&6; }
12615 XFT_CFLAGS=""
12616 XFT_LIBS=""
12617 ## If we have a custom action on failure, don't print errors, but
12618 ## do set a variable so people can do so.
12619 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12620
12621 fi
12622
12623
12624
12625 else
12626 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12627 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12628 fi
12629 fi
12630
12631 if test $succeeded = yes; then
12632 :
12633 else
12634 HAVE_XFT=no
12635 fi
12636
12637 if test "$HAVE_XFT" != no; then
12638 OLD_CPPFLAGS="$CPPFLAGS"
12639 OLD_CFLAGS="$CFLAGS"
12640 OLD_LIBS="$LIBS"
12641 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12642 CFLAGS="$CFLAGS $XFT_CFLAGS"
12643 LIBS="$XFT_LIBS $LIBS"
12644 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12645 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12646 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12647 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12648 echo $ECHO_N "(cached) $ECHO_C" >&6
12649 fi
12650 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12651 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12652 else
12653 # Is the header compilable?
12654 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12655 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12656 cat >conftest.$ac_ext <<_ACEOF
12657 /* confdefs.h. */
12658 _ACEOF
12659 cat confdefs.h >>conftest.$ac_ext
12660 cat >>conftest.$ac_ext <<_ACEOF
12661 /* end confdefs.h. */
12662 $ac_includes_default
12663 #include <X11/Xft/Xft.h>
12664 _ACEOF
12665 rm -f conftest.$ac_objext
12666 if { (ac_try="$ac_compile"
12667 case "(($ac_try" in
12668 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12669 *) ac_try_echo=$ac_try;;
12670 esac
12671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12672 (eval "$ac_compile") 2>conftest.er1
12673 ac_status=$?
12674 grep -v '^ *+' conftest.er1 >conftest.err
12675 rm -f conftest.er1
12676 cat conftest.err >&5
12677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12678 (exit $ac_status); } && {
12679 test -z "$ac_c_werror_flag" ||
12680 test ! -s conftest.err
12681 } && test -s conftest.$ac_objext; then
12682 ac_header_compiler=yes
12683 else
12684 echo "$as_me: failed program was:" >&5
12685 sed 's/^/| /' conftest.$ac_ext >&5
12686
12687 ac_header_compiler=no
12688 fi
12689
12690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12691 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12692 echo "${ECHO_T}$ac_header_compiler" >&6; }
12693
12694 # Is the header present?
12695 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12696 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12697 cat >conftest.$ac_ext <<_ACEOF
12698 /* confdefs.h. */
12699 _ACEOF
12700 cat confdefs.h >>conftest.$ac_ext
12701 cat >>conftest.$ac_ext <<_ACEOF
12702 /* end confdefs.h. */
12703 #include <X11/Xft/Xft.h>
12704 _ACEOF
12705 if { (ac_try="$ac_cpp conftest.$ac_ext"
12706 case "(($ac_try" in
12707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12708 *) ac_try_echo=$ac_try;;
12709 esac
12710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12711 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12712 ac_status=$?
12713 grep -v '^ *+' conftest.er1 >conftest.err
12714 rm -f conftest.er1
12715 cat conftest.err >&5
12716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12717 (exit $ac_status); } >/dev/null && {
12718 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12719 test ! -s conftest.err
12720 }; then
12721 ac_header_preproc=yes
12722 else
12723 echo "$as_me: failed program was:" >&5
12724 sed 's/^/| /' conftest.$ac_ext >&5
12725
12726 ac_header_preproc=no
12727 fi
12728
12729 rm -f conftest.err conftest.$ac_ext
12730 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12731 echo "${ECHO_T}$ac_header_preproc" >&6; }
12732
12733 # So? What about this header?
12734 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12735 yes:no: )
12736 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12737 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12738 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12739 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12740 ac_header_preproc=yes
12741 ;;
12742 no:yes:* )
12743 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12744 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12745 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12746 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12747 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12748 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12749 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12750 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12751 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12752 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12753 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12754 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12755
12756 ;;
12757 esac
12758 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12759 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12760 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12761 echo $ECHO_N "(cached) $ECHO_C" >&6
12762 else
12763 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12764 fi
12765 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12766 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12767
12768 fi
12769 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12770 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12771 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12772 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12773 echo $ECHO_N "(cached) $ECHO_C" >&6
12774 else
12775 ac_check_lib_save_LIBS=$LIBS
12776 LIBS="-lXft $XFT_LIBS $LIBS"
12777 cat >conftest.$ac_ext <<_ACEOF
12778 /* confdefs.h. */
12779 _ACEOF
12780 cat confdefs.h >>conftest.$ac_ext
12781 cat >>conftest.$ac_ext <<_ACEOF
12782 /* end confdefs.h. */
12783
12784 /* Override any GCC internal prototype to avoid an error.
12785 Use char because int might match the return type of a GCC
12786 builtin and then its argument prototype would still apply. */
12787 #ifdef __cplusplus
12788 extern "C"
12789 #endif
12790 char XftFontOpen ();
12791 int
12792 main ()
12793 {
12794 return XftFontOpen ();
12795 ;
12796 return 0;
12797 }
12798 _ACEOF
12799 rm -f conftest.$ac_objext conftest$ac_exeext
12800 if { (ac_try="$ac_link"
12801 case "(($ac_try" in
12802 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12803 *) ac_try_echo=$ac_try;;
12804 esac
12805 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12806 (eval "$ac_link") 2>conftest.er1
12807 ac_status=$?
12808 grep -v '^ *+' conftest.er1 >conftest.err
12809 rm -f conftest.er1
12810 cat conftest.err >&5
12811 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12812 (exit $ac_status); } && {
12813 test -z "$ac_c_werror_flag" ||
12814 test ! -s conftest.err
12815 } && test -s conftest$ac_exeext &&
12816 $as_test_x conftest$ac_exeext; then
12817 ac_cv_lib_Xft_XftFontOpen=yes
12818 else
12819 echo "$as_me: failed program was:" >&5
12820 sed 's/^/| /' conftest.$ac_ext >&5
12821
12822 ac_cv_lib_Xft_XftFontOpen=no
12823 fi
12824
12825 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12826 conftest$ac_exeext conftest.$ac_ext
12827 LIBS=$ac_check_lib_save_LIBS
12828 fi
12829 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12830 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12831 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12832 HAVE_XFT=yes
12833 fi
12834
12835 fi
12836
12837
12838
12839 if test "${HAVE_XFT}" = "yes"; then
12840
12841 cat >>confdefs.h <<\_ACEOF
12842 #define HAVE_XFT 1
12843 _ACEOF
12844
12845
12846 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12847 else
12848 CFLAGS="$OLD_CPPFLAGS"
12849 CFLAGS="$OLD_CFLAGS"
12850 LIBS="$OLD_LIBS"
12851 fi
12852 fi
12853 fi
12854 fi
12855
12856 HAVE_FREETYPE=no
12857 ### Use -lfreetype if available, unless `--with-freetype=no'.
12858 if test "${HAVE_XFT}" = "yes"; then
12859 HAVE_FREETYPE=yes
12860 elif test "x${with_freetype}" != "xno"; then
12861 if test "X${with_pkg_config_prog}" != X; then
12862 PKG_CONFIG="${with_pkg_config_prog}"
12863 fi
12864
12865
12866 succeeded=no
12867
12868 if test -z "$PKG_CONFIG"; then
12869 # Extract the first word of "pkg-config", so it can be a program name with args.
12870 set dummy pkg-config; ac_word=$2
12871 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12872 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12873 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12874 echo $ECHO_N "(cached) $ECHO_C" >&6
12875 else
12876 case $PKG_CONFIG in
12877 [\\/]* | ?:[\\/]*)
12878 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12879 ;;
12880 *)
12881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12882 for as_dir in $PATH
12883 do
12884 IFS=$as_save_IFS
12885 test -z "$as_dir" && as_dir=.
12886 for ac_exec_ext in '' $ac_executable_extensions; do
12887 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12888 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12889 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12890 break 2
12891 fi
12892 done
12893 done
12894 IFS=$as_save_IFS
12895
12896 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12897 ;;
12898 esac
12899 fi
12900 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12901 if test -n "$PKG_CONFIG"; then
12902 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12903 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12904 else
12905 { echo "$as_me:$LINENO: result: no" >&5
12906 echo "${ECHO_T}no" >&6; }
12907 fi
12908
12909
12910 fi
12911
12912 if test "$PKG_CONFIG" = "no" ; then
12913 HAVE_FREETYPE=no
12914 else
12915 PKG_CONFIG_MIN_VERSION=0.9.0
12916 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12917 { echo "$as_me:$LINENO: checking for freetype2" >&5
12918 echo $ECHO_N "checking for freetype2... $ECHO_C" >&6; }
12919
12920 if $PKG_CONFIG --exists "freetype2" 2>&5; then
12921 { echo "$as_me:$LINENO: result: yes" >&5
12922 echo "${ECHO_T}yes" >&6; }
12923 succeeded=yes
12924
12925 { echo "$as_me:$LINENO: checking FREETYPE_CFLAGS" >&5
12926 echo $ECHO_N "checking FREETYPE_CFLAGS... $ECHO_C" >&6; }
12927 FREETYPE_CFLAGS=`$PKG_CONFIG --cflags "freetype2"`
12928 { echo "$as_me:$LINENO: result: $FREETYPE_CFLAGS" >&5
12929 echo "${ECHO_T}$FREETYPE_CFLAGS" >&6; }
12930
12931 { echo "$as_me:$LINENO: checking FREETYPE_LIBS" >&5
12932 echo $ECHO_N "checking FREETYPE_LIBS... $ECHO_C" >&6; }
12933 FREETYPE_LIBS=`$PKG_CONFIG --libs "freetype2"`
12934 { echo "$as_me:$LINENO: result: $FREETYPE_LIBS" >&5
12935 echo "${ECHO_T}$FREETYPE_LIBS" >&6; }
12936 else
12937 { echo "$as_me:$LINENO: result: no" >&5
12938 echo "${ECHO_T}no" >&6; }
12939 FREETYPE_CFLAGS=""
12940 FREETYPE_LIBS=""
12941 ## If we have a custom action on failure, don't print errors, but
12942 ## do set a variable so people can do so.
12943 FREETYPE_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "freetype2"`
12944
12945 fi
12946
12947
12948
12949 else
12950 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12951 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12952 fi
12953 fi
12954
12955 if test $succeeded = yes; then
12956 HAVE_FREETYPE=yes
12957 else
12958 HAVE_FREETYPE=no
12959 fi
12960
12961 if test "${HAVE_FREETYPE}" = "yes"; then
12962
12963 succeeded=no
12964
12965 if test -z "$PKG_CONFIG"; then
12966 # Extract the first word of "pkg-config", so it can be a program name with args.
12967 set dummy pkg-config; ac_word=$2
12968 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12969 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12970 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12971 echo $ECHO_N "(cached) $ECHO_C" >&6
12972 else
12973 case $PKG_CONFIG in
12974 [\\/]* | ?:[\\/]*)
12975 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12976 ;;
12977 *)
12978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12979 for as_dir in $PATH
12980 do
12981 IFS=$as_save_IFS
12982 test -z "$as_dir" && as_dir=.
12983 for ac_exec_ext in '' $ac_executable_extensions; do
12984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12985 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12986 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12987 break 2
12988 fi
12989 done
12990 done
12991 IFS=$as_save_IFS
12992
12993 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12994 ;;
12995 esac
12996 fi
12997 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12998 if test -n "$PKG_CONFIG"; then
12999 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
13000 echo "${ECHO_T}$PKG_CONFIG" >&6; }
13001 else
13002 { echo "$as_me:$LINENO: result: no" >&5
13003 echo "${ECHO_T}no" >&6; }
13004 fi
13005
13006
13007 fi
13008
13009 if test "$PKG_CONFIG" = "no" ; then
13010 HAVE_FC=no
13011 else
13012 PKG_CONFIG_MIN_VERSION=0.9.0
13013 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
13014 { echo "$as_me:$LINENO: checking for fontconfig" >&5
13015 echo $ECHO_N "checking for fontconfig... $ECHO_C" >&6; }
13016
13017 if $PKG_CONFIG --exists "fontconfig" 2>&5; then
13018 { echo "$as_me:$LINENO: result: yes" >&5
13019 echo "${ECHO_T}yes" >&6; }
13020 succeeded=yes
13021
13022 { echo "$as_me:$LINENO: checking FONTCONFIG_CFLAGS" >&5
13023 echo $ECHO_N "checking FONTCONFIG_CFLAGS... $ECHO_C" >&6; }
13024 FONTCONFIG_CFLAGS=`$PKG_CONFIG --cflags "fontconfig"`
13025 { echo "$as_me:$LINENO: result: $FONTCONFIG_CFLAGS" >&5
13026 echo "${ECHO_T}$FONTCONFIG_CFLAGS" >&6; }
13027
13028 { echo "$as_me:$LINENO: checking FONTCONFIG_LIBS" >&5
13029 echo $ECHO_N "checking FONTCONFIG_LIBS... $ECHO_C" >&6; }
13030 FONTCONFIG_LIBS=`$PKG_CONFIG --libs "fontconfig"`
13031 { echo "$as_me:$LINENO: result: $FONTCONFIG_LIBS" >&5
13032 echo "${ECHO_T}$FONTCONFIG_LIBS" >&6; }
13033 else
13034 { echo "$as_me:$LINENO: result: no" >&5
13035 echo "${ECHO_T}no" >&6; }
13036 FONTCONFIG_CFLAGS=""
13037 FONTCONFIG_LIBS=""
13038 ## If we have a custom action on failure, don't print errors, but
13039 ## do set a variable so people can do so.
13040 FONTCONFIG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "fontconfig"`
13041
13042 fi
13043
13044
13045
13046 else
13047 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
13048 echo "*** See http://www.freedesktop.org/software/pkgconfig"
13049 fi
13050 fi
13051
13052 if test $succeeded = yes; then
13053 HAVE_FC=yes
13054 else
13055 HAVE_FC=no
13056 fi
13057
13058 if test "${HAVE_FC}" = "no"; then
13059 HAVE_FREETYPE=no
13060 fi
13061 fi
13062 fi
13063 if test "${HAVE_FREETYPE}" = "yes"; then
13064
13065 cat >>confdefs.h <<\_ACEOF
13066 #define HAVE_FREETYPE 1
13067 _ACEOF
13068
13069 # Extract the first word of "libotf-config", so it can be a program name with args.
13070 set dummy libotf-config; ac_word=$2
13071 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13072 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13073 if test "${ac_cv_prog_HAVE_LIBOTF+set}" = set; then
13074 echo $ECHO_N "(cached) $ECHO_C" >&6
13075 else
13076 if test -n "$HAVE_LIBOTF"; then
13077 ac_cv_prog_HAVE_LIBOTF="$HAVE_LIBOTF" # Let the user override the test.
13078 else
13079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13080 for as_dir in $PATH
13081 do
13082 IFS=$as_save_IFS
13083 test -z "$as_dir" && as_dir=.
13084 for ac_exec_ext in '' $ac_executable_extensions; do
13085 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
13086 ac_cv_prog_HAVE_LIBOTF="yes"
13087 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13088 break 2
13089 fi
13090 done
13091 done
13092 IFS=$as_save_IFS
13093
13094 test -z "$ac_cv_prog_HAVE_LIBOTF" && ac_cv_prog_HAVE_LIBOTF="no"
13095 fi
13096 fi
13097 HAVE_LIBOTF=$ac_cv_prog_HAVE_LIBOTF
13098 if test -n "$HAVE_LIBOTF"; then
13099 { echo "$as_me:$LINENO: result: $HAVE_LIBOTF" >&5
13100 echo "${ECHO_T}$HAVE_LIBOTF" >&6; }
13101 else
13102 { echo "$as_me:$LINENO: result: no" >&5
13103 echo "${ECHO_T}no" >&6; }
13104 fi
13105
13106
13107 if test "${HAVE_LIBOTF}" = "yes"; then
13108
13109 cat >>confdefs.h <<\_ACEOF
13110 #define HAVE_LIBOTF 1
13111 _ACEOF
13112
13113 LIBOTF_CFLAGS=`libotf-config --cflags`
13114 LIBOTF_LIBS=`libotf-config --libs`
13115 fi
13116 fi
13117
13118
13119
13120
13121
13122
13123
13124 fi
13125
13126 ### Use -lXpm if available, unless `--with-xpm=no'.
13127 HAVE_XPM=no
13128 if test "${HAVE_X11}" = "yes"; then
13129 if test "${with_xpm}" != "no"; then
13130 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13131 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13132 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13133 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13134 echo $ECHO_N "(cached) $ECHO_C" >&6
13135 fi
13136 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13137 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13138 else
13139 # Is the header compilable?
13140 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13141 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13142 cat >conftest.$ac_ext <<_ACEOF
13143 /* confdefs.h. */
13144 _ACEOF
13145 cat confdefs.h >>conftest.$ac_ext
13146 cat >>conftest.$ac_ext <<_ACEOF
13147 /* end confdefs.h. */
13148 $ac_includes_default
13149 #include <X11/xpm.h>
13150 _ACEOF
13151 rm -f conftest.$ac_objext
13152 if { (ac_try="$ac_compile"
13153 case "(($ac_try" in
13154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13155 *) ac_try_echo=$ac_try;;
13156 esac
13157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13158 (eval "$ac_compile") 2>conftest.er1
13159 ac_status=$?
13160 grep -v '^ *+' conftest.er1 >conftest.err
13161 rm -f conftest.er1
13162 cat conftest.err >&5
13163 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13164 (exit $ac_status); } && {
13165 test -z "$ac_c_werror_flag" ||
13166 test ! -s conftest.err
13167 } && test -s conftest.$ac_objext; then
13168 ac_header_compiler=yes
13169 else
13170 echo "$as_me: failed program was:" >&5
13171 sed 's/^/| /' conftest.$ac_ext >&5
13172
13173 ac_header_compiler=no
13174 fi
13175
13176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13177 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13178 echo "${ECHO_T}$ac_header_compiler" >&6; }
13179
13180 # Is the header present?
13181 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13182 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13183 cat >conftest.$ac_ext <<_ACEOF
13184 /* confdefs.h. */
13185 _ACEOF
13186 cat confdefs.h >>conftest.$ac_ext
13187 cat >>conftest.$ac_ext <<_ACEOF
13188 /* end confdefs.h. */
13189 #include <X11/xpm.h>
13190 _ACEOF
13191 if { (ac_try="$ac_cpp conftest.$ac_ext"
13192 case "(($ac_try" in
13193 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13194 *) ac_try_echo=$ac_try;;
13195 esac
13196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13197 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13198 ac_status=$?
13199 grep -v '^ *+' conftest.er1 >conftest.err
13200 rm -f conftest.er1
13201 cat conftest.err >&5
13202 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13203 (exit $ac_status); } >/dev/null && {
13204 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13205 test ! -s conftest.err
13206 }; then
13207 ac_header_preproc=yes
13208 else
13209 echo "$as_me: failed program was:" >&5
13210 sed 's/^/| /' conftest.$ac_ext >&5
13211
13212 ac_header_preproc=no
13213 fi
13214
13215 rm -f conftest.err conftest.$ac_ext
13216 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13217 echo "${ECHO_T}$ac_header_preproc" >&6; }
13218
13219 # So? What about this header?
13220 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13221 yes:no: )
13222 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13223 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13224 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13225 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13226 ac_header_preproc=yes
13227 ;;
13228 no:yes:* )
13229 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13230 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13231 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13232 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13233 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13234 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13235 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13236 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13237 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13238 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13239 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13240 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13241
13242 ;;
13243 esac
13244 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13245 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13246 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13247 echo $ECHO_N "(cached) $ECHO_C" >&6
13248 else
13249 ac_cv_header_X11_xpm_h=$ac_header_preproc
13250 fi
13251 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13252 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13253
13254 fi
13255 if test $ac_cv_header_X11_xpm_h = yes; then
13256 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13257 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13258 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13259 echo $ECHO_N "(cached) $ECHO_C" >&6
13260 else
13261 ac_check_lib_save_LIBS=$LIBS
13262 LIBS="-lXpm -lX11 $LIBS"
13263 cat >conftest.$ac_ext <<_ACEOF
13264 /* confdefs.h. */
13265 _ACEOF
13266 cat confdefs.h >>conftest.$ac_ext
13267 cat >>conftest.$ac_ext <<_ACEOF
13268 /* end confdefs.h. */
13269
13270 /* Override any GCC internal prototype to avoid an error.
13271 Use char because int might match the return type of a GCC
13272 builtin and then its argument prototype would still apply. */
13273 #ifdef __cplusplus
13274 extern "C"
13275 #endif
13276 char XpmReadFileToPixmap ();
13277 int
13278 main ()
13279 {
13280 return XpmReadFileToPixmap ();
13281 ;
13282 return 0;
13283 }
13284 _ACEOF
13285 rm -f conftest.$ac_objext conftest$ac_exeext
13286 if { (ac_try="$ac_link"
13287 case "(($ac_try" in
13288 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13289 *) ac_try_echo=$ac_try;;
13290 esac
13291 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13292 (eval "$ac_link") 2>conftest.er1
13293 ac_status=$?
13294 grep -v '^ *+' conftest.er1 >conftest.err
13295 rm -f conftest.er1
13296 cat conftest.err >&5
13297 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13298 (exit $ac_status); } && {
13299 test -z "$ac_c_werror_flag" ||
13300 test ! -s conftest.err
13301 } && test -s conftest$ac_exeext &&
13302 $as_test_x conftest$ac_exeext; then
13303 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13304 else
13305 echo "$as_me: failed program was:" >&5
13306 sed 's/^/| /' conftest.$ac_ext >&5
13307
13308 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13309 fi
13310
13311 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13312 conftest$ac_exeext conftest.$ac_ext
13313 LIBS=$ac_check_lib_save_LIBS
13314 fi
13315 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13316 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13317 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13318 HAVE_XPM=yes
13319 fi
13320
13321 fi
13322
13323
13324 if test "${HAVE_XPM}" = "yes"; then
13325 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13326 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13327 cat >conftest.$ac_ext <<_ACEOF
13328 /* confdefs.h. */
13329 _ACEOF
13330 cat confdefs.h >>conftest.$ac_ext
13331 cat >>conftest.$ac_ext <<_ACEOF
13332 /* end confdefs.h. */
13333 #include "X11/xpm.h"
13334 #ifndef XpmReturnAllocPixels
13335 no_return_alloc_pixels
13336 #endif
13337
13338 _ACEOF
13339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13340 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13341 HAVE_XPM=no
13342 else
13343 HAVE_XPM=yes
13344 fi
13345 rm -f conftest*
13346
13347
13348 if test "${HAVE_XPM}" = "yes"; then
13349 { echo "$as_me:$LINENO: result: yes" >&5
13350 echo "${ECHO_T}yes" >&6; }
13351 else
13352 { echo "$as_me:$LINENO: result: no" >&5
13353 echo "${ECHO_T}no" >&6; }
13354 fi
13355 fi
13356 fi
13357
13358 if test "${HAVE_XPM}" = "yes"; then
13359
13360 cat >>confdefs.h <<\_ACEOF
13361 #define HAVE_XPM 1
13362 _ACEOF
13363
13364 fi
13365 fi
13366
13367 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13368 HAVE_JPEG=no
13369 if test "${HAVE_X11}" = "yes"; then
13370 if test "${with_jpeg}" != "no"; then
13371 if test "${ac_cv_header_jerror_h+set}" = set; then
13372 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13373 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13374 if test "${ac_cv_header_jerror_h+set}" = set; then
13375 echo $ECHO_N "(cached) $ECHO_C" >&6
13376 fi
13377 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13378 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13379 else
13380 # Is the header compilable?
13381 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13382 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13383 cat >conftest.$ac_ext <<_ACEOF
13384 /* confdefs.h. */
13385 _ACEOF
13386 cat confdefs.h >>conftest.$ac_ext
13387 cat >>conftest.$ac_ext <<_ACEOF
13388 /* end confdefs.h. */
13389 $ac_includes_default
13390 #include <jerror.h>
13391 _ACEOF
13392 rm -f conftest.$ac_objext
13393 if { (ac_try="$ac_compile"
13394 case "(($ac_try" in
13395 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13396 *) ac_try_echo=$ac_try;;
13397 esac
13398 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13399 (eval "$ac_compile") 2>conftest.er1
13400 ac_status=$?
13401 grep -v '^ *+' conftest.er1 >conftest.err
13402 rm -f conftest.er1
13403 cat conftest.err >&5
13404 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13405 (exit $ac_status); } && {
13406 test -z "$ac_c_werror_flag" ||
13407 test ! -s conftest.err
13408 } && test -s conftest.$ac_objext; then
13409 ac_header_compiler=yes
13410 else
13411 echo "$as_me: failed program was:" >&5
13412 sed 's/^/| /' conftest.$ac_ext >&5
13413
13414 ac_header_compiler=no
13415 fi
13416
13417 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13418 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13419 echo "${ECHO_T}$ac_header_compiler" >&6; }
13420
13421 # Is the header present?
13422 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13423 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13424 cat >conftest.$ac_ext <<_ACEOF
13425 /* confdefs.h. */
13426 _ACEOF
13427 cat confdefs.h >>conftest.$ac_ext
13428 cat >>conftest.$ac_ext <<_ACEOF
13429 /* end confdefs.h. */
13430 #include <jerror.h>
13431 _ACEOF
13432 if { (ac_try="$ac_cpp conftest.$ac_ext"
13433 case "(($ac_try" in
13434 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13435 *) ac_try_echo=$ac_try;;
13436 esac
13437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13438 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13439 ac_status=$?
13440 grep -v '^ *+' conftest.er1 >conftest.err
13441 rm -f conftest.er1
13442 cat conftest.err >&5
13443 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13444 (exit $ac_status); } >/dev/null && {
13445 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13446 test ! -s conftest.err
13447 }; then
13448 ac_header_preproc=yes
13449 else
13450 echo "$as_me: failed program was:" >&5
13451 sed 's/^/| /' conftest.$ac_ext >&5
13452
13453 ac_header_preproc=no
13454 fi
13455
13456 rm -f conftest.err conftest.$ac_ext
13457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13458 echo "${ECHO_T}$ac_header_preproc" >&6; }
13459
13460 # So? What about this header?
13461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13462 yes:no: )
13463 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13464 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13465 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13466 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13467 ac_header_preproc=yes
13468 ;;
13469 no:yes:* )
13470 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13471 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13472 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13473 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13474 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13475 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13476 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13477 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13478 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13479 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13480 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13481 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13482
13483 ;;
13484 esac
13485 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13486 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13487 if test "${ac_cv_header_jerror_h+set}" = set; then
13488 echo $ECHO_N "(cached) $ECHO_C" >&6
13489 else
13490 ac_cv_header_jerror_h=$ac_header_preproc
13491 fi
13492 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13493 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13494
13495 fi
13496 if test $ac_cv_header_jerror_h = yes; then
13497 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13498 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13499 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13500 echo $ECHO_N "(cached) $ECHO_C" >&6
13501 else
13502 ac_check_lib_save_LIBS=$LIBS
13503 LIBS="-ljpeg $LIBS"
13504 cat >conftest.$ac_ext <<_ACEOF
13505 /* confdefs.h. */
13506 _ACEOF
13507 cat confdefs.h >>conftest.$ac_ext
13508 cat >>conftest.$ac_ext <<_ACEOF
13509 /* end confdefs.h. */
13510
13511 /* Override any GCC internal prototype to avoid an error.
13512 Use char because int might match the return type of a GCC
13513 builtin and then its argument prototype would still apply. */
13514 #ifdef __cplusplus
13515 extern "C"
13516 #endif
13517 char jpeg_destroy_compress ();
13518 int
13519 main ()
13520 {
13521 return jpeg_destroy_compress ();
13522 ;
13523 return 0;
13524 }
13525 _ACEOF
13526 rm -f conftest.$ac_objext conftest$ac_exeext
13527 if { (ac_try="$ac_link"
13528 case "(($ac_try" in
13529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13530 *) ac_try_echo=$ac_try;;
13531 esac
13532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13533 (eval "$ac_link") 2>conftest.er1
13534 ac_status=$?
13535 grep -v '^ *+' conftest.er1 >conftest.err
13536 rm -f conftest.er1
13537 cat conftest.err >&5
13538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13539 (exit $ac_status); } && {
13540 test -z "$ac_c_werror_flag" ||
13541 test ! -s conftest.err
13542 } && test -s conftest$ac_exeext &&
13543 $as_test_x conftest$ac_exeext; then
13544 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13545 else
13546 echo "$as_me: failed program was:" >&5
13547 sed 's/^/| /' conftest.$ac_ext >&5
13548
13549 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13550 fi
13551
13552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13555 fi
13556 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13557 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13558 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13559 HAVE_JPEG=yes
13560 fi
13561
13562 fi
13563
13564
13565 fi
13566
13567
13568 if test "${HAVE_JPEG}" = "yes"; then
13569 cat >>confdefs.h <<\_ACEOF
13570 #define HAVE_JPEG 1
13571 _ACEOF
13572
13573 cat >conftest.$ac_ext <<_ACEOF
13574 /* confdefs.h. */
13575 _ACEOF
13576 cat confdefs.h >>conftest.$ac_ext
13577 cat >>conftest.$ac_ext <<_ACEOF
13578 /* end confdefs.h. */
13579 #include <jpeglib.h>
13580 version=JPEG_LIB_VERSION
13581
13582 _ACEOF
13583 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13584 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13585 cat >>confdefs.h <<\_ACEOF
13586 #define HAVE_JPEG 1
13587 _ACEOF
13588
13589 else
13590 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13591 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13592 HAVE_JPEG=no
13593 fi
13594 rm -f conftest*
13595
13596 fi
13597 fi
13598
13599 ### Use -lpng if available, unless `--with-png=no'.
13600 HAVE_PNG=no
13601 if test "${HAVE_X11}" = "yes"; then
13602 if test "${with_png}" != "no"; then
13603 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13604 # in /usr/include/libpng.
13605
13606
13607 for ac_header in png.h libpng/png.h
13608 do
13609 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13610 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13611 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13612 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13614 echo $ECHO_N "(cached) $ECHO_C" >&6
13615 fi
13616 ac_res=`eval echo '${'$as_ac_Header'}'`
13617 { echo "$as_me:$LINENO: result: $ac_res" >&5
13618 echo "${ECHO_T}$ac_res" >&6; }
13619 else
13620 # Is the header compilable?
13621 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13622 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13623 cat >conftest.$ac_ext <<_ACEOF
13624 /* confdefs.h. */
13625 _ACEOF
13626 cat confdefs.h >>conftest.$ac_ext
13627 cat >>conftest.$ac_ext <<_ACEOF
13628 /* end confdefs.h. */
13629 $ac_includes_default
13630 #include <$ac_header>
13631 _ACEOF
13632 rm -f conftest.$ac_objext
13633 if { (ac_try="$ac_compile"
13634 case "(($ac_try" in
13635 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13636 *) ac_try_echo=$ac_try;;
13637 esac
13638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13639 (eval "$ac_compile") 2>conftest.er1
13640 ac_status=$?
13641 grep -v '^ *+' conftest.er1 >conftest.err
13642 rm -f conftest.er1
13643 cat conftest.err >&5
13644 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13645 (exit $ac_status); } && {
13646 test -z "$ac_c_werror_flag" ||
13647 test ! -s conftest.err
13648 } && test -s conftest.$ac_objext; then
13649 ac_header_compiler=yes
13650 else
13651 echo "$as_me: failed program was:" >&5
13652 sed 's/^/| /' conftest.$ac_ext >&5
13653
13654 ac_header_compiler=no
13655 fi
13656
13657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13658 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13659 echo "${ECHO_T}$ac_header_compiler" >&6; }
13660
13661 # Is the header present?
13662 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13663 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13664 cat >conftest.$ac_ext <<_ACEOF
13665 /* confdefs.h. */
13666 _ACEOF
13667 cat confdefs.h >>conftest.$ac_ext
13668 cat >>conftest.$ac_ext <<_ACEOF
13669 /* end confdefs.h. */
13670 #include <$ac_header>
13671 _ACEOF
13672 if { (ac_try="$ac_cpp conftest.$ac_ext"
13673 case "(($ac_try" in
13674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13675 *) ac_try_echo=$ac_try;;
13676 esac
13677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13678 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13679 ac_status=$?
13680 grep -v '^ *+' conftest.er1 >conftest.err
13681 rm -f conftest.er1
13682 cat conftest.err >&5
13683 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13684 (exit $ac_status); } >/dev/null && {
13685 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13686 test ! -s conftest.err
13687 }; then
13688 ac_header_preproc=yes
13689 else
13690 echo "$as_me: failed program was:" >&5
13691 sed 's/^/| /' conftest.$ac_ext >&5
13692
13693 ac_header_preproc=no
13694 fi
13695
13696 rm -f conftest.err conftest.$ac_ext
13697 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13698 echo "${ECHO_T}$ac_header_preproc" >&6; }
13699
13700 # So? What about this header?
13701 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13702 yes:no: )
13703 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13704 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13705 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13706 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13707 ac_header_preproc=yes
13708 ;;
13709 no:yes:* )
13710 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13711 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13712 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13713 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13714 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13715 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13716 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13717 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13718 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13719 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13720 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13721 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13722
13723 ;;
13724 esac
13725 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13726 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13727 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13728 echo $ECHO_N "(cached) $ECHO_C" >&6
13729 else
13730 eval "$as_ac_Header=\$ac_header_preproc"
13731 fi
13732 ac_res=`eval echo '${'$as_ac_Header'}'`
13733 { echo "$as_me:$LINENO: result: $ac_res" >&5
13734 echo "${ECHO_T}$ac_res" >&6; }
13735
13736 fi
13737 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13738 cat >>confdefs.h <<_ACEOF
13739 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13740 _ACEOF
13741
13742 fi
13743
13744 done
13745
13746 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13747 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13748 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13749 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13750 echo $ECHO_N "(cached) $ECHO_C" >&6
13751 else
13752 ac_check_lib_save_LIBS=$LIBS
13753 LIBS="-lpng -lz -lm $LIBS"
13754 cat >conftest.$ac_ext <<_ACEOF
13755 /* confdefs.h. */
13756 _ACEOF
13757 cat confdefs.h >>conftest.$ac_ext
13758 cat >>conftest.$ac_ext <<_ACEOF
13759 /* end confdefs.h. */
13760
13761 /* Override any GCC internal prototype to avoid an error.
13762 Use char because int might match the return type of a GCC
13763 builtin and then its argument prototype would still apply. */
13764 #ifdef __cplusplus
13765 extern "C"
13766 #endif
13767 char png_get_channels ();
13768 int
13769 main ()
13770 {
13771 return png_get_channels ();
13772 ;
13773 return 0;
13774 }
13775 _ACEOF
13776 rm -f conftest.$ac_objext conftest$ac_exeext
13777 if { (ac_try="$ac_link"
13778 case "(($ac_try" in
13779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13780 *) ac_try_echo=$ac_try;;
13781 esac
13782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13783 (eval "$ac_link") 2>conftest.er1
13784 ac_status=$?
13785 grep -v '^ *+' conftest.er1 >conftest.err
13786 rm -f conftest.er1
13787 cat conftest.err >&5
13788 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13789 (exit $ac_status); } && {
13790 test -z "$ac_c_werror_flag" ||
13791 test ! -s conftest.err
13792 } && test -s conftest$ac_exeext &&
13793 $as_test_x conftest$ac_exeext; then
13794 ac_cv_lib_png_png_get_channels=yes
13795 else
13796 echo "$as_me: failed program was:" >&5
13797 sed 's/^/| /' conftest.$ac_ext >&5
13798
13799 ac_cv_lib_png_png_get_channels=no
13800 fi
13801
13802 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13803 conftest$ac_exeext conftest.$ac_ext
13804 LIBS=$ac_check_lib_save_LIBS
13805 fi
13806 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13807 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13808 if test $ac_cv_lib_png_png_get_channels = yes; then
13809 HAVE_PNG=yes
13810 fi
13811
13812 fi
13813 fi
13814
13815 if test "${HAVE_PNG}" = "yes"; then
13816
13817 cat >>confdefs.h <<\_ACEOF
13818 #define HAVE_PNG 1
13819 _ACEOF
13820
13821 fi
13822 fi
13823
13824 ### Use -ltiff if available, unless `--with-tiff=no'.
13825 HAVE_TIFF=no
13826 if test "${HAVE_X11}" = "yes"; then
13827 if test "${with_tiff}" != "no"; then
13828 if test "${ac_cv_header_tiffio_h+set}" = set; then
13829 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13830 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13831 if test "${ac_cv_header_tiffio_h+set}" = set; then
13832 echo $ECHO_N "(cached) $ECHO_C" >&6
13833 fi
13834 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13835 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13836 else
13837 # Is the header compilable?
13838 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13839 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13840 cat >conftest.$ac_ext <<_ACEOF
13841 /* confdefs.h. */
13842 _ACEOF
13843 cat confdefs.h >>conftest.$ac_ext
13844 cat >>conftest.$ac_ext <<_ACEOF
13845 /* end confdefs.h. */
13846 $ac_includes_default
13847 #include <tiffio.h>
13848 _ACEOF
13849 rm -f conftest.$ac_objext
13850 if { (ac_try="$ac_compile"
13851 case "(($ac_try" in
13852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13853 *) ac_try_echo=$ac_try;;
13854 esac
13855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13856 (eval "$ac_compile") 2>conftest.er1
13857 ac_status=$?
13858 grep -v '^ *+' conftest.er1 >conftest.err
13859 rm -f conftest.er1
13860 cat conftest.err >&5
13861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13862 (exit $ac_status); } && {
13863 test -z "$ac_c_werror_flag" ||
13864 test ! -s conftest.err
13865 } && test -s conftest.$ac_objext; then
13866 ac_header_compiler=yes
13867 else
13868 echo "$as_me: failed program was:" >&5
13869 sed 's/^/| /' conftest.$ac_ext >&5
13870
13871 ac_header_compiler=no
13872 fi
13873
13874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13875 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13876 echo "${ECHO_T}$ac_header_compiler" >&6; }
13877
13878 # Is the header present?
13879 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13880 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13881 cat >conftest.$ac_ext <<_ACEOF
13882 /* confdefs.h. */
13883 _ACEOF
13884 cat confdefs.h >>conftest.$ac_ext
13885 cat >>conftest.$ac_ext <<_ACEOF
13886 /* end confdefs.h. */
13887 #include <tiffio.h>
13888 _ACEOF
13889 if { (ac_try="$ac_cpp conftest.$ac_ext"
13890 case "(($ac_try" in
13891 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13892 *) ac_try_echo=$ac_try;;
13893 esac
13894 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13895 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13896 ac_status=$?
13897 grep -v '^ *+' conftest.er1 >conftest.err
13898 rm -f conftest.er1
13899 cat conftest.err >&5
13900 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13901 (exit $ac_status); } >/dev/null && {
13902 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13903 test ! -s conftest.err
13904 }; then
13905 ac_header_preproc=yes
13906 else
13907 echo "$as_me: failed program was:" >&5
13908 sed 's/^/| /' conftest.$ac_ext >&5
13909
13910 ac_header_preproc=no
13911 fi
13912
13913 rm -f conftest.err conftest.$ac_ext
13914 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13915 echo "${ECHO_T}$ac_header_preproc" >&6; }
13916
13917 # So? What about this header?
13918 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13919 yes:no: )
13920 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13921 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13922 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13923 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13924 ac_header_preproc=yes
13925 ;;
13926 no:yes:* )
13927 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13928 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13929 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13930 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13931 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13932 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13933 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13934 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13935 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13936 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13937 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13938 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13939
13940 ;;
13941 esac
13942 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13943 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13944 if test "${ac_cv_header_tiffio_h+set}" = set; then
13945 echo $ECHO_N "(cached) $ECHO_C" >&6
13946 else
13947 ac_cv_header_tiffio_h=$ac_header_preproc
13948 fi
13949 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13950 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13951
13952 fi
13953 if test $ac_cv_header_tiffio_h = yes; then
13954 tifflibs="-lz -lm"
13955 # At least one tiff package requires the jpeg library.
13956 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
13957 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
13958 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
13959 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
13960 echo $ECHO_N "(cached) $ECHO_C" >&6
13961 else
13962 ac_check_lib_save_LIBS=$LIBS
13963 LIBS="-ltiff $tifflibs $LIBS"
13964 cat >conftest.$ac_ext <<_ACEOF
13965 /* confdefs.h. */
13966 _ACEOF
13967 cat confdefs.h >>conftest.$ac_ext
13968 cat >>conftest.$ac_ext <<_ACEOF
13969 /* end confdefs.h. */
13970
13971 /* Override any GCC internal prototype to avoid an error.
13972 Use char because int might match the return type of a GCC
13973 builtin and then its argument prototype would still apply. */
13974 #ifdef __cplusplus
13975 extern "C"
13976 #endif
13977 char TIFFGetVersion ();
13978 int
13979 main ()
13980 {
13981 return TIFFGetVersion ();
13982 ;
13983 return 0;
13984 }
13985 _ACEOF
13986 rm -f conftest.$ac_objext conftest$ac_exeext
13987 if { (ac_try="$ac_link"
13988 case "(($ac_try" in
13989 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13990 *) ac_try_echo=$ac_try;;
13991 esac
13992 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13993 (eval "$ac_link") 2>conftest.er1
13994 ac_status=$?
13995 grep -v '^ *+' conftest.er1 >conftest.err
13996 rm -f conftest.er1
13997 cat conftest.err >&5
13998 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13999 (exit $ac_status); } && {
14000 test -z "$ac_c_werror_flag" ||
14001 test ! -s conftest.err
14002 } && test -s conftest$ac_exeext &&
14003 $as_test_x conftest$ac_exeext; then
14004 ac_cv_lib_tiff_TIFFGetVersion=yes
14005 else
14006 echo "$as_me: failed program was:" >&5
14007 sed 's/^/| /' conftest.$ac_ext >&5
14008
14009 ac_cv_lib_tiff_TIFFGetVersion=no
14010 fi
14011
14012 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14013 conftest$ac_exeext conftest.$ac_ext
14014 LIBS=$ac_check_lib_save_LIBS
14015 fi
14016 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14017 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14018 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14019 HAVE_TIFF=yes
14020 fi
14021
14022 fi
14023
14024
14025 fi
14026
14027 if test "${HAVE_TIFF}" = "yes"; then
14028
14029 cat >>confdefs.h <<\_ACEOF
14030 #define HAVE_TIFF 1
14031 _ACEOF
14032
14033 fi
14034 fi
14035
14036 ### Use -lgif if available, unless `--with-gif=no'.
14037 HAVE_GIF=no
14038 if test "${HAVE_X11}" = "yes"; then
14039 if test "${with_gif}" != "no"; then
14040 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14041 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14042 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14043 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14044 echo $ECHO_N "(cached) $ECHO_C" >&6
14045 fi
14046 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14047 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14048 else
14049 # Is the header compilable?
14050 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14051 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14052 cat >conftest.$ac_ext <<_ACEOF
14053 /* confdefs.h. */
14054 _ACEOF
14055 cat confdefs.h >>conftest.$ac_ext
14056 cat >>conftest.$ac_ext <<_ACEOF
14057 /* end confdefs.h. */
14058 $ac_includes_default
14059 #include <gif_lib.h>
14060 _ACEOF
14061 rm -f conftest.$ac_objext
14062 if { (ac_try="$ac_compile"
14063 case "(($ac_try" in
14064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14065 *) ac_try_echo=$ac_try;;
14066 esac
14067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14068 (eval "$ac_compile") 2>conftest.er1
14069 ac_status=$?
14070 grep -v '^ *+' conftest.er1 >conftest.err
14071 rm -f conftest.er1
14072 cat conftest.err >&5
14073 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14074 (exit $ac_status); } && {
14075 test -z "$ac_c_werror_flag" ||
14076 test ! -s conftest.err
14077 } && test -s conftest.$ac_objext; then
14078 ac_header_compiler=yes
14079 else
14080 echo "$as_me: failed program was:" >&5
14081 sed 's/^/| /' conftest.$ac_ext >&5
14082
14083 ac_header_compiler=no
14084 fi
14085
14086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14087 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14088 echo "${ECHO_T}$ac_header_compiler" >&6; }
14089
14090 # Is the header present?
14091 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14092 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14093 cat >conftest.$ac_ext <<_ACEOF
14094 /* confdefs.h. */
14095 _ACEOF
14096 cat confdefs.h >>conftest.$ac_ext
14097 cat >>conftest.$ac_ext <<_ACEOF
14098 /* end confdefs.h. */
14099 #include <gif_lib.h>
14100 _ACEOF
14101 if { (ac_try="$ac_cpp conftest.$ac_ext"
14102 case "(($ac_try" in
14103 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14104 *) ac_try_echo=$ac_try;;
14105 esac
14106 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14107 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14108 ac_status=$?
14109 grep -v '^ *+' conftest.er1 >conftest.err
14110 rm -f conftest.er1
14111 cat conftest.err >&5
14112 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14113 (exit $ac_status); } >/dev/null && {
14114 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14115 test ! -s conftest.err
14116 }; then
14117 ac_header_preproc=yes
14118 else
14119 echo "$as_me: failed program was:" >&5
14120 sed 's/^/| /' conftest.$ac_ext >&5
14121
14122 ac_header_preproc=no
14123 fi
14124
14125 rm -f conftest.err conftest.$ac_ext
14126 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14127 echo "${ECHO_T}$ac_header_preproc" >&6; }
14128
14129 # So? What about this header?
14130 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14131 yes:no: )
14132 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14133 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14134 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14135 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14136 ac_header_preproc=yes
14137 ;;
14138 no:yes:* )
14139 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14140 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14141 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14142 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14143 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14144 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14145 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14146 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14147 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14148 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14149 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14150 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14151
14152 ;;
14153 esac
14154 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14155 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14156 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14157 echo $ECHO_N "(cached) $ECHO_C" >&6
14158 else
14159 ac_cv_header_gif_lib_h=$ac_header_preproc
14160 fi
14161 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14162 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14163
14164 fi
14165 if test $ac_cv_header_gif_lib_h = yes; then
14166 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14167 # Earlier versions can crash Emacs.
14168 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14169 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14170 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14171 echo $ECHO_N "(cached) $ECHO_C" >&6
14172 else
14173 ac_check_lib_save_LIBS=$LIBS
14174 LIBS="-lungif $LIBS"
14175 cat >conftest.$ac_ext <<_ACEOF
14176 /* confdefs.h. */
14177 _ACEOF
14178 cat confdefs.h >>conftest.$ac_ext
14179 cat >>conftest.$ac_ext <<_ACEOF
14180 /* end confdefs.h. */
14181
14182 /* Override any GCC internal prototype to avoid an error.
14183 Use char because int might match the return type of a GCC
14184 builtin and then its argument prototype would still apply. */
14185 #ifdef __cplusplus
14186 extern "C"
14187 #endif
14188 char EGifPutExtensionLast ();
14189 int
14190 main ()
14191 {
14192 return EGifPutExtensionLast ();
14193 ;
14194 return 0;
14195 }
14196 _ACEOF
14197 rm -f conftest.$ac_objext conftest$ac_exeext
14198 if { (ac_try="$ac_link"
14199 case "(($ac_try" in
14200 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14201 *) ac_try_echo=$ac_try;;
14202 esac
14203 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14204 (eval "$ac_link") 2>conftest.er1
14205 ac_status=$?
14206 grep -v '^ *+' conftest.er1 >conftest.err
14207 rm -f conftest.er1
14208 cat conftest.err >&5
14209 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14210 (exit $ac_status); } && {
14211 test -z "$ac_c_werror_flag" ||
14212 test ! -s conftest.err
14213 } && test -s conftest$ac_exeext &&
14214 $as_test_x conftest$ac_exeext; then
14215 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14216 else
14217 echo "$as_me: failed program was:" >&5
14218 sed 's/^/| /' conftest.$ac_ext >&5
14219
14220 ac_cv_lib_ungif_EGifPutExtensionLast=no
14221 fi
14222
14223 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14224 conftest$ac_exeext conftest.$ac_ext
14225 LIBS=$ac_check_lib_save_LIBS
14226 fi
14227 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14228 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14229 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14230 HAVE_GIF=yes
14231 fi
14232
14233 fi
14234
14235
14236 fi
14237
14238 if test "${HAVE_GIF}" = "yes"; then
14239
14240 cat >>confdefs.h <<\_ACEOF
14241 #define HAVE_GIF 1
14242 _ACEOF
14243
14244 fi
14245 fi
14246
14247 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14248 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14249 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14250 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14251 echo $ECHO_N "(cached) $ECHO_C" >&6
14252 fi
14253 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14254 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14255 else
14256 # Is the header compilable?
14257 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14258 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14259 cat >conftest.$ac_ext <<_ACEOF
14260 /* confdefs.h. */
14261 _ACEOF
14262 cat confdefs.h >>conftest.$ac_ext
14263 cat >>conftest.$ac_ext <<_ACEOF
14264 /* end confdefs.h. */
14265 $ac_includes_default
14266 #include <malloc/malloc.h>
14267 _ACEOF
14268 rm -f conftest.$ac_objext
14269 if { (ac_try="$ac_compile"
14270 case "(($ac_try" in
14271 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14272 *) ac_try_echo=$ac_try;;
14273 esac
14274 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14275 (eval "$ac_compile") 2>conftest.er1
14276 ac_status=$?
14277 grep -v '^ *+' conftest.er1 >conftest.err
14278 rm -f conftest.er1
14279 cat conftest.err >&5
14280 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281 (exit $ac_status); } && {
14282 test -z "$ac_c_werror_flag" ||
14283 test ! -s conftest.err
14284 } && test -s conftest.$ac_objext; then
14285 ac_header_compiler=yes
14286 else
14287 echo "$as_me: failed program was:" >&5
14288 sed 's/^/| /' conftest.$ac_ext >&5
14289
14290 ac_header_compiler=no
14291 fi
14292
14293 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14294 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14295 echo "${ECHO_T}$ac_header_compiler" >&6; }
14296
14297 # Is the header present?
14298 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14299 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14300 cat >conftest.$ac_ext <<_ACEOF
14301 /* confdefs.h. */
14302 _ACEOF
14303 cat confdefs.h >>conftest.$ac_ext
14304 cat >>conftest.$ac_ext <<_ACEOF
14305 /* end confdefs.h. */
14306 #include <malloc/malloc.h>
14307 _ACEOF
14308 if { (ac_try="$ac_cpp conftest.$ac_ext"
14309 case "(($ac_try" in
14310 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14311 *) ac_try_echo=$ac_try;;
14312 esac
14313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14314 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14315 ac_status=$?
14316 grep -v '^ *+' conftest.er1 >conftest.err
14317 rm -f conftest.er1
14318 cat conftest.err >&5
14319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14320 (exit $ac_status); } >/dev/null && {
14321 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14322 test ! -s conftest.err
14323 }; then
14324 ac_header_preproc=yes
14325 else
14326 echo "$as_me: failed program was:" >&5
14327 sed 's/^/| /' conftest.$ac_ext >&5
14328
14329 ac_header_preproc=no
14330 fi
14331
14332 rm -f conftest.err conftest.$ac_ext
14333 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14334 echo "${ECHO_T}$ac_header_preproc" >&6; }
14335
14336 # So? What about this header?
14337 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14338 yes:no: )
14339 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14340 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14341 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14342 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14343 ac_header_preproc=yes
14344 ;;
14345 no:yes:* )
14346 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14347 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14348 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14349 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14350 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14351 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14352 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14353 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14354 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14355 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14356 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14357 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14358
14359 ;;
14360 esac
14361 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14362 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14363 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14364 echo $ECHO_N "(cached) $ECHO_C" >&6
14365 else
14366 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14367 fi
14368 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14369 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14370
14371 fi
14372 if test $ac_cv_header_malloc_malloc_h = yes; then
14373
14374 cat >>confdefs.h <<\_ACEOF
14375 #define HAVE_MALLOC_MALLOC_H 1
14376 _ACEOF
14377
14378 fi
14379
14380
14381
14382 ### Use Mac OS X Carbon API to implement GUI.
14383 if test "${HAVE_CARBON}" = "yes"; then
14384
14385 cat >>confdefs.h <<\_ACEOF
14386 #define HAVE_CARBON 1
14387 _ACEOF
14388
14389 ## Specify the install directory
14390 carbon_appdir=
14391 if test "${carbon_appdir_x}" != ""; then
14392 case ${carbon_appdir_x} in
14393 y | ye | yes) carbon_appdir=/Applications ;;
14394 * ) carbon_appdir=${carbon_appdir_x} ;;
14395 esac
14396 fi
14397 # We also have mouse menus.
14398 HAVE_MENUS=yes
14399 fi
14400
14401 ### Use session management (-lSM -lICE) if available
14402 HAVE_X_SM=no
14403 if test "${HAVE_X11}" = "yes"; then
14404 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14405 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14406 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14407 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14408 echo $ECHO_N "(cached) $ECHO_C" >&6
14409 fi
14410 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14411 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14412 else
14413 # Is the header compilable?
14414 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14415 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14416 cat >conftest.$ac_ext <<_ACEOF
14417 /* confdefs.h. */
14418 _ACEOF
14419 cat confdefs.h >>conftest.$ac_ext
14420 cat >>conftest.$ac_ext <<_ACEOF
14421 /* end confdefs.h. */
14422 $ac_includes_default
14423 #include <X11/SM/SMlib.h>
14424 _ACEOF
14425 rm -f conftest.$ac_objext
14426 if { (ac_try="$ac_compile"
14427 case "(($ac_try" in
14428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14429 *) ac_try_echo=$ac_try;;
14430 esac
14431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14432 (eval "$ac_compile") 2>conftest.er1
14433 ac_status=$?
14434 grep -v '^ *+' conftest.er1 >conftest.err
14435 rm -f conftest.er1
14436 cat conftest.err >&5
14437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14438 (exit $ac_status); } && {
14439 test -z "$ac_c_werror_flag" ||
14440 test ! -s conftest.err
14441 } && test -s conftest.$ac_objext; then
14442 ac_header_compiler=yes
14443 else
14444 echo "$as_me: failed program was:" >&5
14445 sed 's/^/| /' conftest.$ac_ext >&5
14446
14447 ac_header_compiler=no
14448 fi
14449
14450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14452 echo "${ECHO_T}$ac_header_compiler" >&6; }
14453
14454 # Is the header present?
14455 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14456 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14457 cat >conftest.$ac_ext <<_ACEOF
14458 /* confdefs.h. */
14459 _ACEOF
14460 cat confdefs.h >>conftest.$ac_ext
14461 cat >>conftest.$ac_ext <<_ACEOF
14462 /* end confdefs.h. */
14463 #include <X11/SM/SMlib.h>
14464 _ACEOF
14465 if { (ac_try="$ac_cpp conftest.$ac_ext"
14466 case "(($ac_try" in
14467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14468 *) ac_try_echo=$ac_try;;
14469 esac
14470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14472 ac_status=$?
14473 grep -v '^ *+' conftest.er1 >conftest.err
14474 rm -f conftest.er1
14475 cat conftest.err >&5
14476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14477 (exit $ac_status); } >/dev/null && {
14478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14479 test ! -s conftest.err
14480 }; then
14481 ac_header_preproc=yes
14482 else
14483 echo "$as_me: failed program was:" >&5
14484 sed 's/^/| /' conftest.$ac_ext >&5
14485
14486 ac_header_preproc=no
14487 fi
14488
14489 rm -f conftest.err conftest.$ac_ext
14490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14491 echo "${ECHO_T}$ac_header_preproc" >&6; }
14492
14493 # So? What about this header?
14494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14495 yes:no: )
14496 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14497 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14498 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14499 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14500 ac_header_preproc=yes
14501 ;;
14502 no:yes:* )
14503 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14504 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14506 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14507 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14508 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14509 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14510 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14511 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14512 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14513 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14514 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14515
14516 ;;
14517 esac
14518 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14519 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14520 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14521 echo $ECHO_N "(cached) $ECHO_C" >&6
14522 else
14523 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14524 fi
14525 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14526 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14527
14528 fi
14529 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14530 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14531 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14532 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14533 echo $ECHO_N "(cached) $ECHO_C" >&6
14534 else
14535 ac_check_lib_save_LIBS=$LIBS
14536 LIBS="-lSM -lICE $LIBS"
14537 cat >conftest.$ac_ext <<_ACEOF
14538 /* confdefs.h. */
14539 _ACEOF
14540 cat confdefs.h >>conftest.$ac_ext
14541 cat >>conftest.$ac_ext <<_ACEOF
14542 /* end confdefs.h. */
14543
14544 /* Override any GCC internal prototype to avoid an error.
14545 Use char because int might match the return type of a GCC
14546 builtin and then its argument prototype would still apply. */
14547 #ifdef __cplusplus
14548 extern "C"
14549 #endif
14550 char SmcOpenConnection ();
14551 int
14552 main ()
14553 {
14554 return SmcOpenConnection ();
14555 ;
14556 return 0;
14557 }
14558 _ACEOF
14559 rm -f conftest.$ac_objext conftest$ac_exeext
14560 if { (ac_try="$ac_link"
14561 case "(($ac_try" in
14562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14563 *) ac_try_echo=$ac_try;;
14564 esac
14565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14566 (eval "$ac_link") 2>conftest.er1
14567 ac_status=$?
14568 grep -v '^ *+' conftest.er1 >conftest.err
14569 rm -f conftest.er1
14570 cat conftest.err >&5
14571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14572 (exit $ac_status); } && {
14573 test -z "$ac_c_werror_flag" ||
14574 test ! -s conftest.err
14575 } && test -s conftest$ac_exeext &&
14576 $as_test_x conftest$ac_exeext; then
14577 ac_cv_lib_SM_SmcOpenConnection=yes
14578 else
14579 echo "$as_me: failed program was:" >&5
14580 sed 's/^/| /' conftest.$ac_ext >&5
14581
14582 ac_cv_lib_SM_SmcOpenConnection=no
14583 fi
14584
14585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14586 conftest$ac_exeext conftest.$ac_ext
14587 LIBS=$ac_check_lib_save_LIBS
14588 fi
14589 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14590 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14591 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14592 HAVE_X_SM=yes
14593 fi
14594
14595 fi
14596
14597
14598
14599 if test "${HAVE_X_SM}" = "yes"; then
14600
14601 cat >>confdefs.h <<\_ACEOF
14602 #define HAVE_X_SM 1
14603 _ACEOF
14604
14605 case "$LIBS" in
14606 *-lSM*) ;;
14607 *) LIBS="-lSM -lICE $LIBS" ;;
14608 esac
14609 fi
14610 fi
14611
14612 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14613 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14614 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14615 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14616 echo $ECHO_N "(cached) $ECHO_C" >&6
14617 else
14618 cat >conftest.$ac_ext <<_ACEOF
14619 /* confdefs.h. */
14620 _ACEOF
14621 cat confdefs.h >>conftest.$ac_ext
14622 cat >>conftest.$ac_ext <<_ACEOF
14623 /* end confdefs.h. */
14624 #include <netdb.h>
14625 int
14626 main ()
14627 {
14628 return h_errno;
14629 ;
14630 return 0;
14631 }
14632 _ACEOF
14633 rm -f conftest.$ac_objext conftest$ac_exeext
14634 if { (ac_try="$ac_link"
14635 case "(($ac_try" in
14636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14637 *) ac_try_echo=$ac_try;;
14638 esac
14639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14640 (eval "$ac_link") 2>conftest.er1
14641 ac_status=$?
14642 grep -v '^ *+' conftest.er1 >conftest.err
14643 rm -f conftest.er1
14644 cat conftest.err >&5
14645 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14646 (exit $ac_status); } && {
14647 test -z "$ac_c_werror_flag" ||
14648 test ! -s conftest.err
14649 } && test -s conftest$ac_exeext &&
14650 $as_test_x conftest$ac_exeext; then
14651 emacs_cv_netdb_declares_h_errno=yes
14652 else
14653 echo "$as_me: failed program was:" >&5
14654 sed 's/^/| /' conftest.$ac_ext >&5
14655
14656 emacs_cv_netdb_declares_h_errno=no
14657 fi
14658
14659 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14660 conftest$ac_exeext conftest.$ac_ext
14661 fi
14662 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
14663 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
14664 if test $emacs_cv_netdb_declares_h_errno = yes; then
14665
14666 cat >>confdefs.h <<\_ACEOF
14667 #define HAVE_H_ERRNO 1
14668 _ACEOF
14669
14670 fi
14671
14672 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
14673 # for constant arguments. Useless!
14674 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
14675 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
14676 if test "${ac_cv_working_alloca_h+set}" = set; then
14677 echo $ECHO_N "(cached) $ECHO_C" >&6
14678 else
14679 cat >conftest.$ac_ext <<_ACEOF
14680 /* confdefs.h. */
14681 _ACEOF
14682 cat confdefs.h >>conftest.$ac_ext
14683 cat >>conftest.$ac_ext <<_ACEOF
14684 /* end confdefs.h. */
14685 #include <alloca.h>
14686 int
14687 main ()
14688 {
14689 char *p = (char *) alloca (2 * sizeof (int));
14690 if (p) return 0;
14691 ;
14692 return 0;
14693 }
14694 _ACEOF
14695 rm -f conftest.$ac_objext conftest$ac_exeext
14696 if { (ac_try="$ac_link"
14697 case "(($ac_try" in
14698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699 *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702 (eval "$ac_link") 2>conftest.er1
14703 ac_status=$?
14704 grep -v '^ *+' conftest.er1 >conftest.err
14705 rm -f conftest.er1
14706 cat conftest.err >&5
14707 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14708 (exit $ac_status); } && {
14709 test -z "$ac_c_werror_flag" ||
14710 test ! -s conftest.err
14711 } && test -s conftest$ac_exeext &&
14712 $as_test_x conftest$ac_exeext; then
14713 ac_cv_working_alloca_h=yes
14714 else
14715 echo "$as_me: failed program was:" >&5
14716 sed 's/^/| /' conftest.$ac_ext >&5
14717
14718 ac_cv_working_alloca_h=no
14719 fi
14720
14721 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14722 conftest$ac_exeext conftest.$ac_ext
14723 fi
14724 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
14725 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
14726 if test $ac_cv_working_alloca_h = yes; then
14727
14728 cat >>confdefs.h <<\_ACEOF
14729 #define HAVE_ALLOCA_H 1
14730 _ACEOF
14731
14732 fi
14733
14734 { echo "$as_me:$LINENO: checking for alloca" >&5
14735 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
14736 if test "${ac_cv_func_alloca_works+set}" = set; then
14737 echo $ECHO_N "(cached) $ECHO_C" >&6
14738 else
14739 cat >conftest.$ac_ext <<_ACEOF
14740 /* confdefs.h. */
14741 _ACEOF
14742 cat confdefs.h >>conftest.$ac_ext
14743 cat >>conftest.$ac_ext <<_ACEOF
14744 /* end confdefs.h. */
14745 #ifdef __GNUC__
14746 # define alloca __builtin_alloca
14747 #else
14748 # ifdef _MSC_VER
14749 # include <malloc.h>
14750 # define alloca _alloca
14751 # else
14752 # ifdef HAVE_ALLOCA_H
14753 # include <alloca.h>
14754 # else
14755 # ifdef _AIX
14756 #pragma alloca
14757 # else
14758 # ifndef alloca /* predefined by HP cc +Olibcalls */
14759 char *alloca ();
14760 # endif
14761 # endif
14762 # endif
14763 # endif
14764 #endif
14765
14766 int
14767 main ()
14768 {
14769 char *p = (char *) alloca (1);
14770 if (p) return 0;
14771 ;
14772 return 0;
14773 }
14774 _ACEOF
14775 rm -f conftest.$ac_objext conftest$ac_exeext
14776 if { (ac_try="$ac_link"
14777 case "(($ac_try" in
14778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14779 *) ac_try_echo=$ac_try;;
14780 esac
14781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14782 (eval "$ac_link") 2>conftest.er1
14783 ac_status=$?
14784 grep -v '^ *+' conftest.er1 >conftest.err
14785 rm -f conftest.er1
14786 cat conftest.err >&5
14787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14788 (exit $ac_status); } && {
14789 test -z "$ac_c_werror_flag" ||
14790 test ! -s conftest.err
14791 } && test -s conftest$ac_exeext &&
14792 $as_test_x conftest$ac_exeext; then
14793 ac_cv_func_alloca_works=yes
14794 else
14795 echo "$as_me: failed program was:" >&5
14796 sed 's/^/| /' conftest.$ac_ext >&5
14797
14798 ac_cv_func_alloca_works=no
14799 fi
14800
14801 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14802 conftest$ac_exeext conftest.$ac_ext
14803 fi
14804 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
14805 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
14806
14807 if test $ac_cv_func_alloca_works = yes; then
14808
14809 cat >>confdefs.h <<\_ACEOF
14810 #define HAVE_ALLOCA 1
14811 _ACEOF
14812
14813 else
14814 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
14815 # that cause trouble. Some versions do not even contain alloca or
14816 # contain a buggy version. If you still want to use their alloca,
14817 # use ar to extract alloca.o from them instead of compiling alloca.c.
14818
14819 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
14820
14821 cat >>confdefs.h <<\_ACEOF
14822 #define C_ALLOCA 1
14823 _ACEOF
14824
14825
14826 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
14827 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
14828 if test "${ac_cv_os_cray+set}" = set; then
14829 echo $ECHO_N "(cached) $ECHO_C" >&6
14830 else
14831 cat >conftest.$ac_ext <<_ACEOF
14832 /* confdefs.h. */
14833 _ACEOF
14834 cat confdefs.h >>conftest.$ac_ext
14835 cat >>conftest.$ac_ext <<_ACEOF
14836 /* end confdefs.h. */
14837 #if defined CRAY && ! defined CRAY2
14838 webecray
14839 #else
14840 wenotbecray
14841 #endif
14842
14843 _ACEOF
14844 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
14845 $EGREP "webecray" >/dev/null 2>&1; then
14846 ac_cv_os_cray=yes
14847 else
14848 ac_cv_os_cray=no
14849 fi
14850 rm -f conftest*
14851
14852 fi
14853 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
14854 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
14855 if test $ac_cv_os_cray = yes; then
14856 for ac_func in _getb67 GETB67 getb67; do
14857 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
14858 { echo "$as_me:$LINENO: checking for $ac_func" >&5
14859 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
14860 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
14861 echo $ECHO_N "(cached) $ECHO_C" >&6
14862 else
14863 cat >conftest.$ac_ext <<_ACEOF
14864 /* confdefs.h. */
14865 _ACEOF
14866 cat confdefs.h >>conftest.$ac_ext
14867 cat >>conftest.$ac_ext <<_ACEOF
14868 /* end confdefs.h. */
14869 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
14870 For example, HP-UX 11i <limits.h> declares gettimeofday. */
14871 #define $ac_func innocuous_$ac_func
14872
14873 /* System header to define __stub macros and hopefully few prototypes,
14874 which can conflict with char $ac_func (); below.
14875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14876 <limits.h> exists even on freestanding compilers. */
14877
14878 #ifdef __STDC__
14879 # include <limits.h>
14880 #else
14881 # include <assert.h>
14882 #endif
14883
14884 #undef $ac_func
14885
14886 /* Override any GCC internal prototype to avoid an error.
14887 Use char because int might match the return type of a GCC
14888 builtin and then its argument prototype would still apply. */
14889 #ifdef __cplusplus
14890 extern "C"
14891 #endif
14892 char $ac_func ();
14893 /* The GNU C library defines this for functions which it implements
14894 to always fail with ENOSYS. Some functions are actually named
14895 something starting with __ and the normal name is an alias. */
14896 #if defined __stub_$ac_func || defined __stub___$ac_func
14897 choke me
14898 #endif
14899
14900 int
14901 main ()
14902 {
14903 return $ac_func ();
14904 ;
14905 return 0;
14906 }
14907 _ACEOF
14908 rm -f conftest.$ac_objext conftest$ac_exeext
14909 if { (ac_try="$ac_link"
14910 case "(($ac_try" in
14911 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14912 *) ac_try_echo=$ac_try;;
14913 esac
14914 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14915 (eval "$ac_link") 2>conftest.er1
14916 ac_status=$?
14917 grep -v '^ *+' conftest.er1 >conftest.err
14918 rm -f conftest.er1
14919 cat conftest.err >&5
14920 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14921 (exit $ac_status); } && {
14922 test -z "$ac_c_werror_flag" ||
14923 test ! -s conftest.err
14924 } && test -s conftest$ac_exeext &&
14925 $as_test_x conftest$ac_exeext; then
14926 eval "$as_ac_var=yes"
14927 else
14928 echo "$as_me: failed program was:" >&5
14929 sed 's/^/| /' conftest.$ac_ext >&5
14930
14931 eval "$as_ac_var=no"
14932 fi
14933
14934 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14935 conftest$ac_exeext conftest.$ac_ext
14936 fi
14937 ac_res=`eval echo '${'$as_ac_var'}'`
14938 { echo "$as_me:$LINENO: result: $ac_res" >&5
14939 echo "${ECHO_T}$ac_res" >&6; }
14940 if test `eval echo '${'$as_ac_var'}'` = yes; then
14941
14942 cat >>confdefs.h <<_ACEOF
14943 #define CRAY_STACKSEG_END $ac_func
14944 _ACEOF
14945
14946 break
14947 fi
14948
14949 done
14950 fi
14951
14952 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
14953 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
14954 if test "${ac_cv_c_stack_direction+set}" = set; then
14955 echo $ECHO_N "(cached) $ECHO_C" >&6
14956 else
14957 if test "$cross_compiling" = yes; then
14958 ac_cv_c_stack_direction=0
14959 else
14960 cat >conftest.$ac_ext <<_ACEOF
14961 /* confdefs.h. */
14962 _ACEOF
14963 cat confdefs.h >>conftest.$ac_ext
14964 cat >>conftest.$ac_ext <<_ACEOF
14965 /* end confdefs.h. */
14966 $ac_includes_default
14967 int
14968 find_stack_direction ()
14969 {
14970 static char *addr = 0;
14971 auto char dummy;
14972 if (addr == 0)
14973 {
14974 addr = &dummy;
14975 return find_stack_direction ();
14976 }
14977 else
14978 return (&dummy > addr) ? 1 : -1;
14979 }
14980
14981 int
14982 main ()
14983 {
14984 return find_stack_direction () < 0;
14985 }
14986 _ACEOF
14987 rm -f conftest$ac_exeext
14988 if { (ac_try="$ac_link"
14989 case "(($ac_try" in
14990 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14991 *) ac_try_echo=$ac_try;;
14992 esac
14993 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14994 (eval "$ac_link") 2>&5
14995 ac_status=$?
14996 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14997 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
14998 { (case "(($ac_try" in
14999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15000 *) ac_try_echo=$ac_try;;
15001 esac
15002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15003 (eval "$ac_try") 2>&5
15004 ac_status=$?
15005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15006 (exit $ac_status); }; }; then
15007 ac_cv_c_stack_direction=1
15008 else
15009 echo "$as_me: program exited with status $ac_status" >&5
15010 echo "$as_me: failed program was:" >&5
15011 sed 's/^/| /' conftest.$ac_ext >&5
15012
15013 ( exit $ac_status )
15014 ac_cv_c_stack_direction=-1
15015 fi
15016 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15017 fi
15018
15019
15020 fi
15021 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15022 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15023
15024 cat >>confdefs.h <<_ACEOF
15025 #define STACK_DIRECTION $ac_cv_c_stack_direction
15026 _ACEOF
15027
15028
15029 fi
15030
15031
15032 # fmod, logb, and frexp are found in -lm on most systems.
15033 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15034
15035 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15036 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15037 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15038 echo $ECHO_N "(cached) $ECHO_C" >&6
15039 else
15040 ac_check_lib_save_LIBS=$LIBS
15041 LIBS="-lm $LIBS"
15042 cat >conftest.$ac_ext <<_ACEOF
15043 /* confdefs.h. */
15044 _ACEOF
15045 cat confdefs.h >>conftest.$ac_ext
15046 cat >>conftest.$ac_ext <<_ACEOF
15047 /* end confdefs.h. */
15048
15049 /* Override any GCC internal prototype to avoid an error.
15050 Use char because int might match the return type of a GCC
15051 builtin and then its argument prototype would still apply. */
15052 #ifdef __cplusplus
15053 extern "C"
15054 #endif
15055 char sqrt ();
15056 int
15057 main ()
15058 {
15059 return sqrt ();
15060 ;
15061 return 0;
15062 }
15063 _ACEOF
15064 rm -f conftest.$ac_objext conftest$ac_exeext
15065 if { (ac_try="$ac_link"
15066 case "(($ac_try" in
15067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15068 *) ac_try_echo=$ac_try;;
15069 esac
15070 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15071 (eval "$ac_link") 2>conftest.er1
15072 ac_status=$?
15073 grep -v '^ *+' conftest.er1 >conftest.err
15074 rm -f conftest.er1
15075 cat conftest.err >&5
15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15077 (exit $ac_status); } && {
15078 test -z "$ac_c_werror_flag" ||
15079 test ! -s conftest.err
15080 } && test -s conftest$ac_exeext &&
15081 $as_test_x conftest$ac_exeext; then
15082 ac_cv_lib_m_sqrt=yes
15083 else
15084 echo "$as_me: failed program was:" >&5
15085 sed 's/^/| /' conftest.$ac_ext >&5
15086
15087 ac_cv_lib_m_sqrt=no
15088 fi
15089
15090 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15091 conftest$ac_exeext conftest.$ac_ext
15092 LIBS=$ac_check_lib_save_LIBS
15093 fi
15094 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15095 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15096 if test $ac_cv_lib_m_sqrt = yes; then
15097 cat >>confdefs.h <<_ACEOF
15098 #define HAVE_LIBM 1
15099 _ACEOF
15100
15101 LIBS="-lm $LIBS"
15102
15103 fi
15104
15105
15106 # Check for mail-locking functions in a "mail" library. Probably this should
15107 # have the same check as for liblockfile below.
15108
15109 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15110 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15111 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15112 echo $ECHO_N "(cached) $ECHO_C" >&6
15113 else
15114 ac_check_lib_save_LIBS=$LIBS
15115 LIBS="-lmail $LIBS"
15116 cat >conftest.$ac_ext <<_ACEOF
15117 /* confdefs.h. */
15118 _ACEOF
15119 cat confdefs.h >>conftest.$ac_ext
15120 cat >>conftest.$ac_ext <<_ACEOF
15121 /* end confdefs.h. */
15122
15123 /* Override any GCC internal prototype to avoid an error.
15124 Use char because int might match the return type of a GCC
15125 builtin and then its argument prototype would still apply. */
15126 #ifdef __cplusplus
15127 extern "C"
15128 #endif
15129 char maillock ();
15130 int
15131 main ()
15132 {
15133 return maillock ();
15134 ;
15135 return 0;
15136 }
15137 _ACEOF
15138 rm -f conftest.$ac_objext conftest$ac_exeext
15139 if { (ac_try="$ac_link"
15140 case "(($ac_try" in
15141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15142 *) ac_try_echo=$ac_try;;
15143 esac
15144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15145 (eval "$ac_link") 2>conftest.er1
15146 ac_status=$?
15147 grep -v '^ *+' conftest.er1 >conftest.err
15148 rm -f conftest.er1
15149 cat conftest.err >&5
15150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15151 (exit $ac_status); } && {
15152 test -z "$ac_c_werror_flag" ||
15153 test ! -s conftest.err
15154 } && test -s conftest$ac_exeext &&
15155 $as_test_x conftest$ac_exeext; then
15156 ac_cv_lib_mail_maillock=yes
15157 else
15158 echo "$as_me: failed program was:" >&5
15159 sed 's/^/| /' conftest.$ac_ext >&5
15160
15161 ac_cv_lib_mail_maillock=no
15162 fi
15163
15164 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15165 conftest$ac_exeext conftest.$ac_ext
15166 LIBS=$ac_check_lib_save_LIBS
15167 fi
15168 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15169 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15170 if test $ac_cv_lib_mail_maillock = yes; then
15171 cat >>confdefs.h <<_ACEOF
15172 #define HAVE_LIBMAIL 1
15173 _ACEOF
15174
15175 LIBS="-lmail $LIBS"
15176
15177 fi
15178
15179
15180 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15181 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15182 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15183 echo $ECHO_N "(cached) $ECHO_C" >&6
15184 else
15185 ac_check_lib_save_LIBS=$LIBS
15186 LIBS="-llockfile $LIBS"
15187 cat >conftest.$ac_ext <<_ACEOF
15188 /* confdefs.h. */
15189 _ACEOF
15190 cat confdefs.h >>conftest.$ac_ext
15191 cat >>conftest.$ac_ext <<_ACEOF
15192 /* end confdefs.h. */
15193
15194 /* Override any GCC internal prototype to avoid an error.
15195 Use char because int might match the return type of a GCC
15196 builtin and then its argument prototype would still apply. */
15197 #ifdef __cplusplus
15198 extern "C"
15199 #endif
15200 char maillock ();
15201 int
15202 main ()
15203 {
15204 return maillock ();
15205 ;
15206 return 0;
15207 }
15208 _ACEOF
15209 rm -f conftest.$ac_objext conftest$ac_exeext
15210 if { (ac_try="$ac_link"
15211 case "(($ac_try" in
15212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15213 *) ac_try_echo=$ac_try;;
15214 esac
15215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15216 (eval "$ac_link") 2>conftest.er1
15217 ac_status=$?
15218 grep -v '^ *+' conftest.er1 >conftest.err
15219 rm -f conftest.er1
15220 cat conftest.err >&5
15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15222 (exit $ac_status); } && {
15223 test -z "$ac_c_werror_flag" ||
15224 test ! -s conftest.err
15225 } && test -s conftest$ac_exeext &&
15226 $as_test_x conftest$ac_exeext; then
15227 ac_cv_lib_lockfile_maillock=yes
15228 else
15229 echo "$as_me: failed program was:" >&5
15230 sed 's/^/| /' conftest.$ac_ext >&5
15231
15232 ac_cv_lib_lockfile_maillock=no
15233 fi
15234
15235 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15236 conftest$ac_exeext conftest.$ac_ext
15237 LIBS=$ac_check_lib_save_LIBS
15238 fi
15239 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15240 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15241 if test $ac_cv_lib_lockfile_maillock = yes; then
15242 cat >>confdefs.h <<_ACEOF
15243 #define HAVE_LIBLOCKFILE 1
15244 _ACEOF
15245
15246 LIBS="-llockfile $LIBS"
15247
15248 fi
15249
15250 # If we have the shared liblockfile, assume we must use it for mail
15251 # locking (e.g. Debian). If we couldn't link against liblockfile
15252 # (no liblockfile.a installed), ensure that we don't need to.
15253 if test "$ac_cv_lib_lockfile_maillock" = no; then
15254 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15255 set dummy liblockfile.so; ac_word=$2
15256 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15257 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15258 if test "${ac_cv_prog_liblockfile+set}" = set; then
15259 echo $ECHO_N "(cached) $ECHO_C" >&6
15260 else
15261 if test -n "$liblockfile"; then
15262 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15263 else
15264 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15265 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15266 for as_dir in $as_dummy
15267 do
15268 IFS=$as_save_IFS
15269 test -z "$as_dir" && as_dir=.
15270 for ac_exec_ext in '' $ac_executable_extensions; do
15271 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15272 ac_cv_prog_liblockfile="yes"
15273 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15274 break 2
15275 fi
15276 done
15277 done
15278 IFS=$as_save_IFS
15279
15280 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15281 fi
15282 fi
15283 liblockfile=$ac_cv_prog_liblockfile
15284 if test -n "$liblockfile"; then
15285 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15286 echo "${ECHO_T}$liblockfile" >&6; }
15287 else
15288 { echo "$as_me:$LINENO: result: no" >&5
15289 echo "${ECHO_T}no" >&6; }
15290 fi
15291
15292
15293 if test $ac_cv_prog_liblockfile = yes; then
15294 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15295 This probably means that movemail could lose mail.
15296 There may be a \`development' package to install containing liblockfile." >&5
15297 echo "$as_me: error: Shared liblockfile found but can't link against it.
15298 This probably means that movemail could lose mail.
15299 There may be a \`development' package to install containing liblockfile." >&2;}
15300 { (exit 1); exit 1; }; }
15301 else :
15302 fi
15303 fi
15304
15305 for ac_func in touchlock
15306 do
15307 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15308 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15309 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15310 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15311 echo $ECHO_N "(cached) $ECHO_C" >&6
15312 else
15313 cat >conftest.$ac_ext <<_ACEOF
15314 /* confdefs.h. */
15315 _ACEOF
15316 cat confdefs.h >>conftest.$ac_ext
15317 cat >>conftest.$ac_ext <<_ACEOF
15318 /* end confdefs.h. */
15319 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15320 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15321 #define $ac_func innocuous_$ac_func
15322
15323 /* System header to define __stub macros and hopefully few prototypes,
15324 which can conflict with char $ac_func (); below.
15325 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15326 <limits.h> exists even on freestanding compilers. */
15327
15328 #ifdef __STDC__
15329 # include <limits.h>
15330 #else
15331 # include <assert.h>
15332 #endif
15333
15334 #undef $ac_func
15335
15336 /* Override any GCC internal prototype to avoid an error.
15337 Use char because int might match the return type of a GCC
15338 builtin and then its argument prototype would still apply. */
15339 #ifdef __cplusplus
15340 extern "C"
15341 #endif
15342 char $ac_func ();
15343 /* The GNU C library defines this for functions which it implements
15344 to always fail with ENOSYS. Some functions are actually named
15345 something starting with __ and the normal name is an alias. */
15346 #if defined __stub_$ac_func || defined __stub___$ac_func
15347 choke me
15348 #endif
15349
15350 int
15351 main ()
15352 {
15353 return $ac_func ();
15354 ;
15355 return 0;
15356 }
15357 _ACEOF
15358 rm -f conftest.$ac_objext conftest$ac_exeext
15359 if { (ac_try="$ac_link"
15360 case "(($ac_try" in
15361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15362 *) ac_try_echo=$ac_try;;
15363 esac
15364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15365 (eval "$ac_link") 2>conftest.er1
15366 ac_status=$?
15367 grep -v '^ *+' conftest.er1 >conftest.err
15368 rm -f conftest.er1
15369 cat conftest.err >&5
15370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15371 (exit $ac_status); } && {
15372 test -z "$ac_c_werror_flag" ||
15373 test ! -s conftest.err
15374 } && test -s conftest$ac_exeext &&
15375 $as_test_x conftest$ac_exeext; then
15376 eval "$as_ac_var=yes"
15377 else
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 eval "$as_ac_var=no"
15382 fi
15383
15384 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15385 conftest$ac_exeext conftest.$ac_ext
15386 fi
15387 ac_res=`eval echo '${'$as_ac_var'}'`
15388 { echo "$as_me:$LINENO: result: $ac_res" >&5
15389 echo "${ECHO_T}$ac_res" >&6; }
15390 if test `eval echo '${'$as_ac_var'}'` = yes; then
15391 cat >>confdefs.h <<_ACEOF
15392 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15393 _ACEOF
15394
15395 fi
15396 done
15397
15398
15399 for ac_header in maillock.h
15400 do
15401 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15402 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15403 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15404 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15405 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15406 echo $ECHO_N "(cached) $ECHO_C" >&6
15407 fi
15408 ac_res=`eval echo '${'$as_ac_Header'}'`
15409 { echo "$as_me:$LINENO: result: $ac_res" >&5
15410 echo "${ECHO_T}$ac_res" >&6; }
15411 else
15412 # Is the header compilable?
15413 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15414 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15415 cat >conftest.$ac_ext <<_ACEOF
15416 /* confdefs.h. */
15417 _ACEOF
15418 cat confdefs.h >>conftest.$ac_ext
15419 cat >>conftest.$ac_ext <<_ACEOF
15420 /* end confdefs.h. */
15421 $ac_includes_default
15422 #include <$ac_header>
15423 _ACEOF
15424 rm -f conftest.$ac_objext
15425 if { (ac_try="$ac_compile"
15426 case "(($ac_try" in
15427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428 *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431 (eval "$ac_compile") 2>conftest.er1
15432 ac_status=$?
15433 grep -v '^ *+' conftest.er1 >conftest.err
15434 rm -f conftest.er1
15435 cat conftest.err >&5
15436 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15437 (exit $ac_status); } && {
15438 test -z "$ac_c_werror_flag" ||
15439 test ! -s conftest.err
15440 } && test -s conftest.$ac_objext; then
15441 ac_header_compiler=yes
15442 else
15443 echo "$as_me: failed program was:" >&5
15444 sed 's/^/| /' conftest.$ac_ext >&5
15445
15446 ac_header_compiler=no
15447 fi
15448
15449 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15450 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15451 echo "${ECHO_T}$ac_header_compiler" >&6; }
15452
15453 # Is the header present?
15454 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15455 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15456 cat >conftest.$ac_ext <<_ACEOF
15457 /* confdefs.h. */
15458 _ACEOF
15459 cat confdefs.h >>conftest.$ac_ext
15460 cat >>conftest.$ac_ext <<_ACEOF
15461 /* end confdefs.h. */
15462 #include <$ac_header>
15463 _ACEOF
15464 if { (ac_try="$ac_cpp conftest.$ac_ext"
15465 case "(($ac_try" in
15466 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15467 *) ac_try_echo=$ac_try;;
15468 esac
15469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15470 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15471 ac_status=$?
15472 grep -v '^ *+' conftest.er1 >conftest.err
15473 rm -f conftest.er1
15474 cat conftest.err >&5
15475 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15476 (exit $ac_status); } >/dev/null && {
15477 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15478 test ! -s conftest.err
15479 }; then
15480 ac_header_preproc=yes
15481 else
15482 echo "$as_me: failed program was:" >&5
15483 sed 's/^/| /' conftest.$ac_ext >&5
15484
15485 ac_header_preproc=no
15486 fi
15487
15488 rm -f conftest.err conftest.$ac_ext
15489 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15490 echo "${ECHO_T}$ac_header_preproc" >&6; }
15491
15492 # So? What about this header?
15493 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15494 yes:no: )
15495 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15496 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15497 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15498 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15499 ac_header_preproc=yes
15500 ;;
15501 no:yes:* )
15502 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15503 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15504 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15505 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15506 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15507 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15508 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15509 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15510 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15511 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15512 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15513 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15514
15515 ;;
15516 esac
15517 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15518 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15519 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15520 echo $ECHO_N "(cached) $ECHO_C" >&6
15521 else
15522 eval "$as_ac_Header=\$ac_header_preproc"
15523 fi
15524 ac_res=`eval echo '${'$as_ac_Header'}'`
15525 { echo "$as_me:$LINENO: result: $ac_res" >&5
15526 echo "${ECHO_T}$ac_res" >&6; }
15527
15528 fi
15529 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15530 cat >>confdefs.h <<_ACEOF
15531 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15532 _ACEOF
15533
15534 fi
15535
15536 done
15537
15538
15539
15540
15541
15542
15543
15544
15545
15546
15547
15548
15549
15550
15551
15552
15553
15554
15555
15556
15557
15558
15559
15560
15561
15562
15563
15564
15565
15566
15567
15568
15569
15570
15571
15572
15573
15574
15575
15576
15577
15578
15579
15580
15581
15582
15583
15584
15585
15586
15587
15588
15589
15590
15591
15592
15593
15594
15595
15596
15597
15598
15599
15600
15601
15602
15603
15604
15605
15606
15607
15608 for ac_func in gethostname getdomainname dup2 \
15609 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15610 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime res_init setsid \
15611 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15612 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15613 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15614 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15615 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15616 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15617 do
15618 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15619 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15620 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15621 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15622 echo $ECHO_N "(cached) $ECHO_C" >&6
15623 else
15624 cat >conftest.$ac_ext <<_ACEOF
15625 /* confdefs.h. */
15626 _ACEOF
15627 cat confdefs.h >>conftest.$ac_ext
15628 cat >>conftest.$ac_ext <<_ACEOF
15629 /* end confdefs.h. */
15630 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15631 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15632 #define $ac_func innocuous_$ac_func
15633
15634 /* System header to define __stub macros and hopefully few prototypes,
15635 which can conflict with char $ac_func (); below.
15636 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15637 <limits.h> exists even on freestanding compilers. */
15638
15639 #ifdef __STDC__
15640 # include <limits.h>
15641 #else
15642 # include <assert.h>
15643 #endif
15644
15645 #undef $ac_func
15646
15647 /* Override any GCC internal prototype to avoid an error.
15648 Use char because int might match the return type of a GCC
15649 builtin and then its argument prototype would still apply. */
15650 #ifdef __cplusplus
15651 extern "C"
15652 #endif
15653 char $ac_func ();
15654 /* The GNU C library defines this for functions which it implements
15655 to always fail with ENOSYS. Some functions are actually named
15656 something starting with __ and the normal name is an alias. */
15657 #if defined __stub_$ac_func || defined __stub___$ac_func
15658 choke me
15659 #endif
15660
15661 int
15662 main ()
15663 {
15664 return $ac_func ();
15665 ;
15666 return 0;
15667 }
15668 _ACEOF
15669 rm -f conftest.$ac_objext conftest$ac_exeext
15670 if { (ac_try="$ac_link"
15671 case "(($ac_try" in
15672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15673 *) ac_try_echo=$ac_try;;
15674 esac
15675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15676 (eval "$ac_link") 2>conftest.er1
15677 ac_status=$?
15678 grep -v '^ *+' conftest.er1 >conftest.err
15679 rm -f conftest.er1
15680 cat conftest.err >&5
15681 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15682 (exit $ac_status); } && {
15683 test -z "$ac_c_werror_flag" ||
15684 test ! -s conftest.err
15685 } && test -s conftest$ac_exeext &&
15686 $as_test_x conftest$ac_exeext; then
15687 eval "$as_ac_var=yes"
15688 else
15689 echo "$as_me: failed program was:" >&5
15690 sed 's/^/| /' conftest.$ac_ext >&5
15691
15692 eval "$as_ac_var=no"
15693 fi
15694
15695 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15696 conftest$ac_exeext conftest.$ac_ext
15697 fi
15698 ac_res=`eval echo '${'$as_ac_var'}'`
15699 { echo "$as_me:$LINENO: result: $ac_res" >&5
15700 echo "${ECHO_T}$ac_res" >&6; }
15701 if test `eval echo '${'$as_ac_var'}'` = yes; then
15702 cat >>confdefs.h <<_ACEOF
15703 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15704 _ACEOF
15705
15706 fi
15707 done
15708
15709
15710
15711 for ac_header in sys/un.h
15712 do
15713 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15714 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15715 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15716 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15717 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15718 echo $ECHO_N "(cached) $ECHO_C" >&6
15719 fi
15720 ac_res=`eval echo '${'$as_ac_Header'}'`
15721 { echo "$as_me:$LINENO: result: $ac_res" >&5
15722 echo "${ECHO_T}$ac_res" >&6; }
15723 else
15724 # Is the header compilable?
15725 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15726 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15727 cat >conftest.$ac_ext <<_ACEOF
15728 /* confdefs.h. */
15729 _ACEOF
15730 cat confdefs.h >>conftest.$ac_ext
15731 cat >>conftest.$ac_ext <<_ACEOF
15732 /* end confdefs.h. */
15733 $ac_includes_default
15734 #include <$ac_header>
15735 _ACEOF
15736 rm -f conftest.$ac_objext
15737 if { (ac_try="$ac_compile"
15738 case "(($ac_try" in
15739 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740 *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743 (eval "$ac_compile") 2>conftest.er1
15744 ac_status=$?
15745 grep -v '^ *+' conftest.er1 >conftest.err
15746 rm -f conftest.er1
15747 cat conftest.err >&5
15748 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749 (exit $ac_status); } && {
15750 test -z "$ac_c_werror_flag" ||
15751 test ! -s conftest.err
15752 } && test -s conftest.$ac_objext; then
15753 ac_header_compiler=yes
15754 else
15755 echo "$as_me: failed program was:" >&5
15756 sed 's/^/| /' conftest.$ac_ext >&5
15757
15758 ac_header_compiler=no
15759 fi
15760
15761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15762 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15763 echo "${ECHO_T}$ac_header_compiler" >&6; }
15764
15765 # Is the header present?
15766 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15767 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15768 cat >conftest.$ac_ext <<_ACEOF
15769 /* confdefs.h. */
15770 _ACEOF
15771 cat confdefs.h >>conftest.$ac_ext
15772 cat >>conftest.$ac_ext <<_ACEOF
15773 /* end confdefs.h. */
15774 #include <$ac_header>
15775 _ACEOF
15776 if { (ac_try="$ac_cpp conftest.$ac_ext"
15777 case "(($ac_try" in
15778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15779 *) ac_try_echo=$ac_try;;
15780 esac
15781 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15782 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15783 ac_status=$?
15784 grep -v '^ *+' conftest.er1 >conftest.err
15785 rm -f conftest.er1
15786 cat conftest.err >&5
15787 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15788 (exit $ac_status); } >/dev/null && {
15789 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15790 test ! -s conftest.err
15791 }; then
15792 ac_header_preproc=yes
15793 else
15794 echo "$as_me: failed program was:" >&5
15795 sed 's/^/| /' conftest.$ac_ext >&5
15796
15797 ac_header_preproc=no
15798 fi
15799
15800 rm -f conftest.err conftest.$ac_ext
15801 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15802 echo "${ECHO_T}$ac_header_preproc" >&6; }
15803
15804 # So? What about this header?
15805 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15806 yes:no: )
15807 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15808 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15809 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15810 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15811 ac_header_preproc=yes
15812 ;;
15813 no:yes:* )
15814 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15815 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15816 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15817 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15818 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15819 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15820 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15821 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15822 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15823 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15824 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15825 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15826
15827 ;;
15828 esac
15829 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15830 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15831 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15832 echo $ECHO_N "(cached) $ECHO_C" >&6
15833 else
15834 eval "$as_ac_Header=\$ac_header_preproc"
15835 fi
15836 ac_res=`eval echo '${'$as_ac_Header'}'`
15837 { echo "$as_me:$LINENO: result: $ac_res" >&5
15838 echo "${ECHO_T}$ac_res" >&6; }
15839
15840 fi
15841 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15842 cat >>confdefs.h <<_ACEOF
15843 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15844 _ACEOF
15845
15846 fi
15847
15848 done
15849
15850
15851
15852
15853
15854
15855 for ac_header in $ac_header_list
15856 do
15857 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15858 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15859 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15860 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15861 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15862 echo $ECHO_N "(cached) $ECHO_C" >&6
15863 fi
15864 ac_res=`eval echo '${'$as_ac_Header'}'`
15865 { echo "$as_me:$LINENO: result: $ac_res" >&5
15866 echo "${ECHO_T}$ac_res" >&6; }
15867 else
15868 # Is the header compilable?
15869 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15870 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15871 cat >conftest.$ac_ext <<_ACEOF
15872 /* confdefs.h. */
15873 _ACEOF
15874 cat confdefs.h >>conftest.$ac_ext
15875 cat >>conftest.$ac_ext <<_ACEOF
15876 /* end confdefs.h. */
15877 $ac_includes_default
15878 #include <$ac_header>
15879 _ACEOF
15880 rm -f conftest.$ac_objext
15881 if { (ac_try="$ac_compile"
15882 case "(($ac_try" in
15883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15884 *) ac_try_echo=$ac_try;;
15885 esac
15886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15887 (eval "$ac_compile") 2>conftest.er1
15888 ac_status=$?
15889 grep -v '^ *+' conftest.er1 >conftest.err
15890 rm -f conftest.er1
15891 cat conftest.err >&5
15892 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15893 (exit $ac_status); } && {
15894 test -z "$ac_c_werror_flag" ||
15895 test ! -s conftest.err
15896 } && test -s conftest.$ac_objext; then
15897 ac_header_compiler=yes
15898 else
15899 echo "$as_me: failed program was:" >&5
15900 sed 's/^/| /' conftest.$ac_ext >&5
15901
15902 ac_header_compiler=no
15903 fi
15904
15905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15906 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15907 echo "${ECHO_T}$ac_header_compiler" >&6; }
15908
15909 # Is the header present?
15910 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15911 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15912 cat >conftest.$ac_ext <<_ACEOF
15913 /* confdefs.h. */
15914 _ACEOF
15915 cat confdefs.h >>conftest.$ac_ext
15916 cat >>conftest.$ac_ext <<_ACEOF
15917 /* end confdefs.h. */
15918 #include <$ac_header>
15919 _ACEOF
15920 if { (ac_try="$ac_cpp conftest.$ac_ext"
15921 case "(($ac_try" in
15922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15923 *) ac_try_echo=$ac_try;;
15924 esac
15925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15926 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15927 ac_status=$?
15928 grep -v '^ *+' conftest.er1 >conftest.err
15929 rm -f conftest.er1
15930 cat conftest.err >&5
15931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15932 (exit $ac_status); } >/dev/null && {
15933 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15934 test ! -s conftest.err
15935 }; then
15936 ac_header_preproc=yes
15937 else
15938 echo "$as_me: failed program was:" >&5
15939 sed 's/^/| /' conftest.$ac_ext >&5
15940
15941 ac_header_preproc=no
15942 fi
15943
15944 rm -f conftest.err conftest.$ac_ext
15945 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15946 echo "${ECHO_T}$ac_header_preproc" >&6; }
15947
15948 # So? What about this header?
15949 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15950 yes:no: )
15951 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15952 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15953 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15954 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15955 ac_header_preproc=yes
15956 ;;
15957 no:yes:* )
15958 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15959 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15960 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15961 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15962 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15963 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15964 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15965 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15966 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15967 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15968 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15969 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15970
15971 ;;
15972 esac
15973 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15974 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15975 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15976 echo $ECHO_N "(cached) $ECHO_C" >&6
15977 else
15978 eval "$as_ac_Header=\$ac_header_preproc"
15979 fi
15980 ac_res=`eval echo '${'$as_ac_Header'}'`
15981 { echo "$as_me:$LINENO: result: $ac_res" >&5
15982 echo "${ECHO_T}$ac_res" >&6; }
15983
15984 fi
15985 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15986 cat >>confdefs.h <<_ACEOF
15987 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15988 _ACEOF
15989
15990 fi
15991
15992 done
15993
15994
15995
15996
15997
15998
15999
16000
16001
16002 for ac_func in $ac_func_list
16003 do
16004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16008 echo $ECHO_N "(cached) $ECHO_C" >&6
16009 else
16010 cat >conftest.$ac_ext <<_ACEOF
16011 /* confdefs.h. */
16012 _ACEOF
16013 cat confdefs.h >>conftest.$ac_ext
16014 cat >>conftest.$ac_ext <<_ACEOF
16015 /* end confdefs.h. */
16016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16017 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16018 #define $ac_func innocuous_$ac_func
16019
16020 /* System header to define __stub macros and hopefully few prototypes,
16021 which can conflict with char $ac_func (); below.
16022 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16023 <limits.h> exists even on freestanding compilers. */
16024
16025 #ifdef __STDC__
16026 # include <limits.h>
16027 #else
16028 # include <assert.h>
16029 #endif
16030
16031 #undef $ac_func
16032
16033 /* Override any GCC internal prototype to avoid an error.
16034 Use char because int might match the return type of a GCC
16035 builtin and then its argument prototype would still apply. */
16036 #ifdef __cplusplus
16037 extern "C"
16038 #endif
16039 char $ac_func ();
16040 /* The GNU C library defines this for functions which it implements
16041 to always fail with ENOSYS. Some functions are actually named
16042 something starting with __ and the normal name is an alias. */
16043 #if defined __stub_$ac_func || defined __stub___$ac_func
16044 choke me
16045 #endif
16046
16047 int
16048 main ()
16049 {
16050 return $ac_func ();
16051 ;
16052 return 0;
16053 }
16054 _ACEOF
16055 rm -f conftest.$ac_objext conftest$ac_exeext
16056 if { (ac_try="$ac_link"
16057 case "(($ac_try" in
16058 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16059 *) ac_try_echo=$ac_try;;
16060 esac
16061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16062 (eval "$ac_link") 2>conftest.er1
16063 ac_status=$?
16064 grep -v '^ *+' conftest.er1 >conftest.err
16065 rm -f conftest.er1
16066 cat conftest.err >&5
16067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16068 (exit $ac_status); } && {
16069 test -z "$ac_c_werror_flag" ||
16070 test ! -s conftest.err
16071 } && test -s conftest$ac_exeext &&
16072 $as_test_x conftest$ac_exeext; then
16073 eval "$as_ac_var=yes"
16074 else
16075 echo "$as_me: failed program was:" >&5
16076 sed 's/^/| /' conftest.$ac_ext >&5
16077
16078 eval "$as_ac_var=no"
16079 fi
16080
16081 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16082 conftest$ac_exeext conftest.$ac_ext
16083 fi
16084 ac_res=`eval echo '${'$as_ac_var'}'`
16085 { echo "$as_me:$LINENO: result: $ac_res" >&5
16086 echo "${ECHO_T}$ac_res" >&6; }
16087 if test `eval echo '${'$as_ac_var'}'` = yes; then
16088 cat >>confdefs.h <<_ACEOF
16089 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16090 _ACEOF
16091
16092 fi
16093 done
16094
16095
16096
16097
16098
16099
16100
16101
16102
16103
16104
16105
16106
16107
16108
16109
16110
16111 { echo "$as_me:$LINENO: checking for working mktime" >&5
16112 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16113 if test "${ac_cv_func_working_mktime+set}" = set; then
16114 echo $ECHO_N "(cached) $ECHO_C" >&6
16115 else
16116 if test "$cross_compiling" = yes; then
16117 ac_cv_func_working_mktime=no
16118 else
16119 cat >conftest.$ac_ext <<_ACEOF
16120 /* confdefs.h. */
16121 _ACEOF
16122 cat confdefs.h >>conftest.$ac_ext
16123 cat >>conftest.$ac_ext <<_ACEOF
16124 /* end confdefs.h. */
16125 /* Test program from Paul Eggert and Tony Leneis. */
16126 #ifdef TIME_WITH_SYS_TIME
16127 # include <sys/time.h>
16128 # include <time.h>
16129 #else
16130 # ifdef HAVE_SYS_TIME_H
16131 # include <sys/time.h>
16132 # else
16133 # include <time.h>
16134 # endif
16135 #endif
16136
16137 #include <stdlib.h>
16138
16139 #ifdef HAVE_UNISTD_H
16140 # include <unistd.h>
16141 #endif
16142
16143 #ifndef HAVE_ALARM
16144 # define alarm(X) /* empty */
16145 #endif
16146
16147 /* Work around redefinition to rpl_putenv by other config tests. */
16148 #undef putenv
16149
16150 static time_t time_t_max;
16151 static time_t time_t_min;
16152
16153 /* Values we'll use to set the TZ environment variable. */
16154 static char *tz_strings[] = {
16155 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16156 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16157 };
16158 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16159
16160 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16161 Based on a problem report from Andreas Jaeger. */
16162 static int
16163 spring_forward_gap ()
16164 {
16165 /* glibc (up to about 1998-10-07) failed this test. */
16166 struct tm tm;
16167
16168 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16169 instead of "TZ=America/Vancouver" in order to detect the bug even
16170 on systems that don't support the Olson extension, or don't have the
16171 full zoneinfo tables installed. */
16172 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16173
16174 tm.tm_year = 98;
16175 tm.tm_mon = 3;
16176 tm.tm_mday = 5;
16177 tm.tm_hour = 2;
16178 tm.tm_min = 0;
16179 tm.tm_sec = 0;
16180 tm.tm_isdst = -1;
16181 return mktime (&tm) != (time_t) -1;
16182 }
16183
16184 static int
16185 mktime_test1 (now)
16186 time_t now;
16187 {
16188 struct tm *lt;
16189 return ! (lt = localtime (&now)) || mktime (lt) == now;
16190 }
16191
16192 static int
16193 mktime_test (now)
16194 time_t now;
16195 {
16196 return (mktime_test1 (now)
16197 && mktime_test1 ((time_t) (time_t_max - now))
16198 && mktime_test1 ((time_t) (time_t_min + now)));
16199 }
16200
16201 static int
16202 irix_6_4_bug ()
16203 {
16204 /* Based on code from Ariel Faigon. */
16205 struct tm tm;
16206 tm.tm_year = 96;
16207 tm.tm_mon = 3;
16208 tm.tm_mday = 0;
16209 tm.tm_hour = 0;
16210 tm.tm_min = 0;
16211 tm.tm_sec = 0;
16212 tm.tm_isdst = -1;
16213 mktime (&tm);
16214 return tm.tm_mon == 2 && tm.tm_mday == 31;
16215 }
16216
16217 static int
16218 bigtime_test (j)
16219 int j;
16220 {
16221 struct tm tm;
16222 time_t now;
16223 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16224 now = mktime (&tm);
16225 if (now != (time_t) -1)
16226 {
16227 struct tm *lt = localtime (&now);
16228 if (! (lt
16229 && lt->tm_year == tm.tm_year
16230 && lt->tm_mon == tm.tm_mon
16231 && lt->tm_mday == tm.tm_mday
16232 && lt->tm_hour == tm.tm_hour
16233 && lt->tm_min == tm.tm_min
16234 && lt->tm_sec == tm.tm_sec
16235 && lt->tm_yday == tm.tm_yday
16236 && lt->tm_wday == tm.tm_wday
16237 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16238 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16239 return 0;
16240 }
16241 return 1;
16242 }
16243
16244 static int
16245 year_2050_test ()
16246 {
16247 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16248 ignoring leap seconds. */
16249 unsigned long int answer = 2527315200UL;
16250
16251 struct tm tm;
16252 time_t t;
16253 tm.tm_year = 2050 - 1900;
16254 tm.tm_mon = 2 - 1;
16255 tm.tm_mday = 1;
16256 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16257 tm.tm_isdst = -1;
16258
16259 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16260 instead of "TZ=America/Vancouver" in order to detect the bug even
16261 on systems that don't support the Olson extension, or don't have the
16262 full zoneinfo tables installed. */
16263 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16264
16265 t = mktime (&tm);
16266
16267 /* Check that the result is either a failure, or close enough
16268 to the correct answer that we can assume the discrepancy is
16269 due to leap seconds. */
16270 return (t == (time_t) -1
16271 || (0 < t && answer - 120 <= t && t <= answer + 120));
16272 }
16273
16274 int
16275 main ()
16276 {
16277 time_t t, delta;
16278 int i, j;
16279
16280 /* This test makes some buggy mktime implementations loop.
16281 Give up after 60 seconds; a mktime slower than that
16282 isn't worth using anyway. */
16283 alarm (60);
16284
16285 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16286 continue;
16287 time_t_max--;
16288 if ((time_t) -1 < 0)
16289 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16290 continue;
16291 delta = time_t_max / 997; /* a suitable prime number */
16292 for (i = 0; i < N_STRINGS; i++)
16293 {
16294 if (tz_strings[i])
16295 putenv (tz_strings[i]);
16296
16297 for (t = 0; t <= time_t_max - delta; t += delta)
16298 if (! mktime_test (t))
16299 return 1;
16300 if (! (mktime_test ((time_t) 1)
16301 && mktime_test ((time_t) (60 * 60))
16302 && mktime_test ((time_t) (60 * 60 * 24))))
16303 return 1;
16304
16305 for (j = 1; 0 < j; j *= 2)
16306 if (! bigtime_test (j))
16307 return 1;
16308 if (! bigtime_test (j - 1))
16309 return 1;
16310 }
16311 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16312 }
16313 _ACEOF
16314 rm -f conftest$ac_exeext
16315 if { (ac_try="$ac_link"
16316 case "(($ac_try" in
16317 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16318 *) ac_try_echo=$ac_try;;
16319 esac
16320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16321 (eval "$ac_link") 2>&5
16322 ac_status=$?
16323 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16324 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16325 { (case "(($ac_try" in
16326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16327 *) ac_try_echo=$ac_try;;
16328 esac
16329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16330 (eval "$ac_try") 2>&5
16331 ac_status=$?
16332 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16333 (exit $ac_status); }; }; then
16334 ac_cv_func_working_mktime=yes
16335 else
16336 echo "$as_me: program exited with status $ac_status" >&5
16337 echo "$as_me: failed program was:" >&5
16338 sed 's/^/| /' conftest.$ac_ext >&5
16339
16340 ( exit $ac_status )
16341 ac_cv_func_working_mktime=no
16342 fi
16343 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16344 fi
16345
16346
16347 fi
16348 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16349 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16350 if test $ac_cv_func_working_mktime = no; then
16351 case " $LIBOBJS " in
16352 *" mktime.$ac_objext "* ) ;;
16353 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16354 ;;
16355 esac
16356
16357 fi
16358
16359 if test "$ac_cv_func_working_mktime" = no; then
16360
16361 cat >>confdefs.h <<\_ACEOF
16362 #define BROKEN_MKTIME 1
16363 _ACEOF
16364
16365 fi
16366
16367 ac_have_func=no # yes means we've found a way to get the load average.
16368
16369 # Make sure getloadavg.c is where it belongs, at configure-time.
16370 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16371 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16372 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16373 { (exit 1); exit 1; }; }
16374
16375 ac_save_LIBS=$LIBS
16376
16377 # Check for getloadavg, but be sure not to touch the cache variable.
16378 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16379 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16380 if test "${ac_cv_func_getloadavg+set}" = set; then
16381 echo $ECHO_N "(cached) $ECHO_C" >&6
16382 else
16383 cat >conftest.$ac_ext <<_ACEOF
16384 /* confdefs.h. */
16385 _ACEOF
16386 cat confdefs.h >>conftest.$ac_ext
16387 cat >>conftest.$ac_ext <<_ACEOF
16388 /* end confdefs.h. */
16389 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define getloadavg innocuous_getloadavg
16392
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char getloadavg (); below.
16395 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16396 <limits.h> exists even on freestanding compilers. */
16397
16398 #ifdef __STDC__
16399 # include <limits.h>
16400 #else
16401 # include <assert.h>
16402 #endif
16403
16404 #undef getloadavg
16405
16406 /* Override any GCC internal prototype to avoid an error.
16407 Use char because int might match the return type of a GCC
16408 builtin and then its argument prototype would still apply. */
16409 #ifdef __cplusplus
16410 extern "C"
16411 #endif
16412 char getloadavg ();
16413 /* The GNU C library defines this for functions which it implements
16414 to always fail with ENOSYS. Some functions are actually named
16415 something starting with __ and the normal name is an alias. */
16416 #if defined __stub_getloadavg || defined __stub___getloadavg
16417 choke me
16418 #endif
16419
16420 int
16421 main ()
16422 {
16423 return getloadavg ();
16424 ;
16425 return 0;
16426 }
16427 _ACEOF
16428 rm -f conftest.$ac_objext conftest$ac_exeext
16429 if { (ac_try="$ac_link"
16430 case "(($ac_try" in
16431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16432 *) ac_try_echo=$ac_try;;
16433 esac
16434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16435 (eval "$ac_link") 2>conftest.er1
16436 ac_status=$?
16437 grep -v '^ *+' conftest.er1 >conftest.err
16438 rm -f conftest.er1
16439 cat conftest.err >&5
16440 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16441 (exit $ac_status); } && {
16442 test -z "$ac_c_werror_flag" ||
16443 test ! -s conftest.err
16444 } && test -s conftest$ac_exeext &&
16445 $as_test_x conftest$ac_exeext; then
16446 ac_cv_func_getloadavg=yes
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 ac_cv_func_getloadavg=no
16452 fi
16453
16454 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16455 conftest$ac_exeext conftest.$ac_ext
16456 fi
16457 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16458 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16459 if test $ac_cv_func_getloadavg = yes; then
16460 exit 0
16461 else
16462 exit 1
16463 fi
16464 ) && ac_have_func=yes
16465
16466 # On HPUX9, an unprivileged user can get load averages through this function.
16467
16468 for ac_func in pstat_getdynamic
16469 do
16470 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16471 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16472 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16473 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16474 echo $ECHO_N "(cached) $ECHO_C" >&6
16475 else
16476 cat >conftest.$ac_ext <<_ACEOF
16477 /* confdefs.h. */
16478 _ACEOF
16479 cat confdefs.h >>conftest.$ac_ext
16480 cat >>conftest.$ac_ext <<_ACEOF
16481 /* end confdefs.h. */
16482 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16483 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16484 #define $ac_func innocuous_$ac_func
16485
16486 /* System header to define __stub macros and hopefully few prototypes,
16487 which can conflict with char $ac_func (); below.
16488 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16489 <limits.h> exists even on freestanding compilers. */
16490
16491 #ifdef __STDC__
16492 # include <limits.h>
16493 #else
16494 # include <assert.h>
16495 #endif
16496
16497 #undef $ac_func
16498
16499 /* Override any GCC internal prototype to avoid an error.
16500 Use char because int might match the return type of a GCC
16501 builtin and then its argument prototype would still apply. */
16502 #ifdef __cplusplus
16503 extern "C"
16504 #endif
16505 char $ac_func ();
16506 /* The GNU C library defines this for functions which it implements
16507 to always fail with ENOSYS. Some functions are actually named
16508 something starting with __ and the normal name is an alias. */
16509 #if defined __stub_$ac_func || defined __stub___$ac_func
16510 choke me
16511 #endif
16512
16513 int
16514 main ()
16515 {
16516 return $ac_func ();
16517 ;
16518 return 0;
16519 }
16520 _ACEOF
16521 rm -f conftest.$ac_objext conftest$ac_exeext
16522 if { (ac_try="$ac_link"
16523 case "(($ac_try" in
16524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16525 *) ac_try_echo=$ac_try;;
16526 esac
16527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16528 (eval "$ac_link") 2>conftest.er1
16529 ac_status=$?
16530 grep -v '^ *+' conftest.er1 >conftest.err
16531 rm -f conftest.er1
16532 cat conftest.err >&5
16533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16534 (exit $ac_status); } && {
16535 test -z "$ac_c_werror_flag" ||
16536 test ! -s conftest.err
16537 } && test -s conftest$ac_exeext &&
16538 $as_test_x conftest$ac_exeext; then
16539 eval "$as_ac_var=yes"
16540 else
16541 echo "$as_me: failed program was:" >&5
16542 sed 's/^/| /' conftest.$ac_ext >&5
16543
16544 eval "$as_ac_var=no"
16545 fi
16546
16547 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16548 conftest$ac_exeext conftest.$ac_ext
16549 fi
16550 ac_res=`eval echo '${'$as_ac_var'}'`
16551 { echo "$as_me:$LINENO: result: $ac_res" >&5
16552 echo "${ECHO_T}$ac_res" >&6; }
16553 if test `eval echo '${'$as_ac_var'}'` = yes; then
16554 cat >>confdefs.h <<_ACEOF
16555 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16556 _ACEOF
16557
16558 fi
16559 done
16560
16561
16562 # Solaris has libkstat which does not require root.
16563
16564 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16565 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16566 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16567 echo $ECHO_N "(cached) $ECHO_C" >&6
16568 else
16569 ac_check_lib_save_LIBS=$LIBS
16570 LIBS="-lkstat $LIBS"
16571 cat >conftest.$ac_ext <<_ACEOF
16572 /* confdefs.h. */
16573 _ACEOF
16574 cat confdefs.h >>conftest.$ac_ext
16575 cat >>conftest.$ac_ext <<_ACEOF
16576 /* end confdefs.h. */
16577
16578 /* Override any GCC internal prototype to avoid an error.
16579 Use char because int might match the return type of a GCC
16580 builtin and then its argument prototype would still apply. */
16581 #ifdef __cplusplus
16582 extern "C"
16583 #endif
16584 char kstat_open ();
16585 int
16586 main ()
16587 {
16588 return kstat_open ();
16589 ;
16590 return 0;
16591 }
16592 _ACEOF
16593 rm -f conftest.$ac_objext conftest$ac_exeext
16594 if { (ac_try="$ac_link"
16595 case "(($ac_try" in
16596 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597 *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600 (eval "$ac_link") 2>conftest.er1
16601 ac_status=$?
16602 grep -v '^ *+' conftest.er1 >conftest.err
16603 rm -f conftest.er1
16604 cat conftest.err >&5
16605 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606 (exit $ac_status); } && {
16607 test -z "$ac_c_werror_flag" ||
16608 test ! -s conftest.err
16609 } && test -s conftest$ac_exeext &&
16610 $as_test_x conftest$ac_exeext; then
16611 ac_cv_lib_kstat_kstat_open=yes
16612 else
16613 echo "$as_me: failed program was:" >&5
16614 sed 's/^/| /' conftest.$ac_ext >&5
16615
16616 ac_cv_lib_kstat_kstat_open=no
16617 fi
16618
16619 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16620 conftest$ac_exeext conftest.$ac_ext
16621 LIBS=$ac_check_lib_save_LIBS
16622 fi
16623 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16624 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16625 if test $ac_cv_lib_kstat_kstat_open = yes; then
16626 cat >>confdefs.h <<_ACEOF
16627 #define HAVE_LIBKSTAT 1
16628 _ACEOF
16629
16630 LIBS="-lkstat $LIBS"
16631
16632 fi
16633
16634 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
16635
16636 # Some systems with -lutil have (and need) -lkvm as well, some do not.
16637 # On Solaris, -lkvm requires nlist from -lelf, so check that first
16638 # to get the right answer into the cache.
16639 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
16640 if test $ac_have_func = no; then
16641 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
16642 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
16643 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
16644 echo $ECHO_N "(cached) $ECHO_C" >&6
16645 else
16646 ac_check_lib_save_LIBS=$LIBS
16647 LIBS="-lelf $LIBS"
16648 cat >conftest.$ac_ext <<_ACEOF
16649 /* confdefs.h. */
16650 _ACEOF
16651 cat confdefs.h >>conftest.$ac_ext
16652 cat >>conftest.$ac_ext <<_ACEOF
16653 /* end confdefs.h. */
16654
16655 /* Override any GCC internal prototype to avoid an error.
16656 Use char because int might match the return type of a GCC
16657 builtin and then its argument prototype would still apply. */
16658 #ifdef __cplusplus
16659 extern "C"
16660 #endif
16661 char elf_begin ();
16662 int
16663 main ()
16664 {
16665 return elf_begin ();
16666 ;
16667 return 0;
16668 }
16669 _ACEOF
16670 rm -f conftest.$ac_objext conftest$ac_exeext
16671 if { (ac_try="$ac_link"
16672 case "(($ac_try" in
16673 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16674 *) ac_try_echo=$ac_try;;
16675 esac
16676 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16677 (eval "$ac_link") 2>conftest.er1
16678 ac_status=$?
16679 grep -v '^ *+' conftest.er1 >conftest.err
16680 rm -f conftest.er1
16681 cat conftest.err >&5
16682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16683 (exit $ac_status); } && {
16684 test -z "$ac_c_werror_flag" ||
16685 test ! -s conftest.err
16686 } && test -s conftest$ac_exeext &&
16687 $as_test_x conftest$ac_exeext; then
16688 ac_cv_lib_elf_elf_begin=yes
16689 else
16690 echo "$as_me: failed program was:" >&5
16691 sed 's/^/| /' conftest.$ac_ext >&5
16692
16693 ac_cv_lib_elf_elf_begin=no
16694 fi
16695
16696 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16697 conftest$ac_exeext conftest.$ac_ext
16698 LIBS=$ac_check_lib_save_LIBS
16699 fi
16700 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
16701 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
16702 if test $ac_cv_lib_elf_elf_begin = yes; then
16703 LIBS="-lelf $LIBS"
16704 fi
16705
16706 fi
16707 if test $ac_have_func = no; then
16708 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
16709 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
16710 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
16711 echo $ECHO_N "(cached) $ECHO_C" >&6
16712 else
16713 ac_check_lib_save_LIBS=$LIBS
16714 LIBS="-lkvm $LIBS"
16715 cat >conftest.$ac_ext <<_ACEOF
16716 /* confdefs.h. */
16717 _ACEOF
16718 cat confdefs.h >>conftest.$ac_ext
16719 cat >>conftest.$ac_ext <<_ACEOF
16720 /* end confdefs.h. */
16721
16722 /* Override any GCC internal prototype to avoid an error.
16723 Use char because int might match the return type of a GCC
16724 builtin and then its argument prototype would still apply. */
16725 #ifdef __cplusplus
16726 extern "C"
16727 #endif
16728 char kvm_open ();
16729 int
16730 main ()
16731 {
16732 return kvm_open ();
16733 ;
16734 return 0;
16735 }
16736 _ACEOF
16737 rm -f conftest.$ac_objext conftest$ac_exeext
16738 if { (ac_try="$ac_link"
16739 case "(($ac_try" in
16740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16741 *) ac_try_echo=$ac_try;;
16742 esac
16743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16744 (eval "$ac_link") 2>conftest.er1
16745 ac_status=$?
16746 grep -v '^ *+' conftest.er1 >conftest.err
16747 rm -f conftest.er1
16748 cat conftest.err >&5
16749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16750 (exit $ac_status); } && {
16751 test -z "$ac_c_werror_flag" ||
16752 test ! -s conftest.err
16753 } && test -s conftest$ac_exeext &&
16754 $as_test_x conftest$ac_exeext; then
16755 ac_cv_lib_kvm_kvm_open=yes
16756 else
16757 echo "$as_me: failed program was:" >&5
16758 sed 's/^/| /' conftest.$ac_ext >&5
16759
16760 ac_cv_lib_kvm_kvm_open=no
16761 fi
16762
16763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16764 conftest$ac_exeext conftest.$ac_ext
16765 LIBS=$ac_check_lib_save_LIBS
16766 fi
16767 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
16768 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
16769 if test $ac_cv_lib_kvm_kvm_open = yes; then
16770 LIBS="-lkvm $LIBS"
16771 fi
16772
16773 # Check for the 4.4BSD definition of getloadavg.
16774 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
16775 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
16776 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
16777 echo $ECHO_N "(cached) $ECHO_C" >&6
16778 else
16779 ac_check_lib_save_LIBS=$LIBS
16780 LIBS="-lutil $LIBS"
16781 cat >conftest.$ac_ext <<_ACEOF
16782 /* confdefs.h. */
16783 _ACEOF
16784 cat confdefs.h >>conftest.$ac_ext
16785 cat >>conftest.$ac_ext <<_ACEOF
16786 /* end confdefs.h. */
16787
16788 /* Override any GCC internal prototype to avoid an error.
16789 Use char because int might match the return type of a GCC
16790 builtin and then its argument prototype would still apply. */
16791 #ifdef __cplusplus
16792 extern "C"
16793 #endif
16794 char getloadavg ();
16795 int
16796 main ()
16797 {
16798 return getloadavg ();
16799 ;
16800 return 0;
16801 }
16802 _ACEOF
16803 rm -f conftest.$ac_objext conftest$ac_exeext
16804 if { (ac_try="$ac_link"
16805 case "(($ac_try" in
16806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16807 *) ac_try_echo=$ac_try;;
16808 esac
16809 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16810 (eval "$ac_link") 2>conftest.er1
16811 ac_status=$?
16812 grep -v '^ *+' conftest.er1 >conftest.err
16813 rm -f conftest.er1
16814 cat conftest.err >&5
16815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16816 (exit $ac_status); } && {
16817 test -z "$ac_c_werror_flag" ||
16818 test ! -s conftest.err
16819 } && test -s conftest$ac_exeext &&
16820 $as_test_x conftest$ac_exeext; then
16821 ac_cv_lib_util_getloadavg=yes
16822 else
16823 echo "$as_me: failed program was:" >&5
16824 sed 's/^/| /' conftest.$ac_ext >&5
16825
16826 ac_cv_lib_util_getloadavg=no
16827 fi
16828
16829 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16830 conftest$ac_exeext conftest.$ac_ext
16831 LIBS=$ac_check_lib_save_LIBS
16832 fi
16833 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
16834 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
16835 if test $ac_cv_lib_util_getloadavg = yes; then
16836 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
16837 fi
16838
16839 fi
16840
16841 if test $ac_have_func = no; then
16842 # There is a commonly available library for RS/6000 AIX.
16843 # Since it is not a standard part of AIX, it might be installed locally.
16844 ac_getloadavg_LIBS=$LIBS
16845 LIBS="-L/usr/local/lib $LIBS"
16846 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
16847 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
16848 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
16849 echo $ECHO_N "(cached) $ECHO_C" >&6
16850 else
16851 ac_check_lib_save_LIBS=$LIBS
16852 LIBS="-lgetloadavg $LIBS"
16853 cat >conftest.$ac_ext <<_ACEOF
16854 /* confdefs.h. */
16855 _ACEOF
16856 cat confdefs.h >>conftest.$ac_ext
16857 cat >>conftest.$ac_ext <<_ACEOF
16858 /* end confdefs.h. */
16859
16860 /* Override any GCC internal prototype to avoid an error.
16861 Use char because int might match the return type of a GCC
16862 builtin and then its argument prototype would still apply. */
16863 #ifdef __cplusplus
16864 extern "C"
16865 #endif
16866 char getloadavg ();
16867 int
16868 main ()
16869 {
16870 return getloadavg ();
16871 ;
16872 return 0;
16873 }
16874 _ACEOF
16875 rm -f conftest.$ac_objext conftest$ac_exeext
16876 if { (ac_try="$ac_link"
16877 case "(($ac_try" in
16878 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16879 *) ac_try_echo=$ac_try;;
16880 esac
16881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16882 (eval "$ac_link") 2>conftest.er1
16883 ac_status=$?
16884 grep -v '^ *+' conftest.er1 >conftest.err
16885 rm -f conftest.er1
16886 cat conftest.err >&5
16887 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16888 (exit $ac_status); } && {
16889 test -z "$ac_c_werror_flag" ||
16890 test ! -s conftest.err
16891 } && test -s conftest$ac_exeext &&
16892 $as_test_x conftest$ac_exeext; then
16893 ac_cv_lib_getloadavg_getloadavg=yes
16894 else
16895 echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898 ac_cv_lib_getloadavg_getloadavg=no
16899 fi
16900
16901 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16902 conftest$ac_exeext conftest.$ac_ext
16903 LIBS=$ac_check_lib_save_LIBS
16904 fi
16905 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
16906 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
16907 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
16908 LIBS="-lgetloadavg $LIBS"
16909 else
16910 LIBS=$ac_getloadavg_LIBS
16911 fi
16912
16913 fi
16914
16915 # Make sure it is really in the library, if we think we found it,
16916 # otherwise set up the replacement function.
16917
16918 for ac_func in getloadavg
16919 do
16920 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16921 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16922 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16923 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16924 echo $ECHO_N "(cached) $ECHO_C" >&6
16925 else
16926 cat >conftest.$ac_ext <<_ACEOF
16927 /* confdefs.h. */
16928 _ACEOF
16929 cat confdefs.h >>conftest.$ac_ext
16930 cat >>conftest.$ac_ext <<_ACEOF
16931 /* end confdefs.h. */
16932 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16933 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16934 #define $ac_func innocuous_$ac_func
16935
16936 /* System header to define __stub macros and hopefully few prototypes,
16937 which can conflict with char $ac_func (); below.
16938 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16939 <limits.h> exists even on freestanding compilers. */
16940
16941 #ifdef __STDC__
16942 # include <limits.h>
16943 #else
16944 # include <assert.h>
16945 #endif
16946
16947 #undef $ac_func
16948
16949 /* Override any GCC internal prototype to avoid an error.
16950 Use char because int might match the return type of a GCC
16951 builtin and then its argument prototype would still apply. */
16952 #ifdef __cplusplus
16953 extern "C"
16954 #endif
16955 char $ac_func ();
16956 /* The GNU C library defines this for functions which it implements
16957 to always fail with ENOSYS. Some functions are actually named
16958 something starting with __ and the normal name is an alias. */
16959 #if defined __stub_$ac_func || defined __stub___$ac_func
16960 choke me
16961 #endif
16962
16963 int
16964 main ()
16965 {
16966 return $ac_func ();
16967 ;
16968 return 0;
16969 }
16970 _ACEOF
16971 rm -f conftest.$ac_objext conftest$ac_exeext
16972 if { (ac_try="$ac_link"
16973 case "(($ac_try" in
16974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16975 *) ac_try_echo=$ac_try;;
16976 esac
16977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16978 (eval "$ac_link") 2>conftest.er1
16979 ac_status=$?
16980 grep -v '^ *+' conftest.er1 >conftest.err
16981 rm -f conftest.er1
16982 cat conftest.err >&5
16983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16984 (exit $ac_status); } && {
16985 test -z "$ac_c_werror_flag" ||
16986 test ! -s conftest.err
16987 } && test -s conftest$ac_exeext &&
16988 $as_test_x conftest$ac_exeext; then
16989 eval "$as_ac_var=yes"
16990 else
16991 echo "$as_me: failed program was:" >&5
16992 sed 's/^/| /' conftest.$ac_ext >&5
16993
16994 eval "$as_ac_var=no"
16995 fi
16996
16997 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16998 conftest$ac_exeext conftest.$ac_ext
16999 fi
17000 ac_res=`eval echo '${'$as_ac_var'}'`
17001 { echo "$as_me:$LINENO: result: $ac_res" >&5
17002 echo "${ECHO_T}$ac_res" >&6; }
17003 if test `eval echo '${'$as_ac_var'}'` = yes; then
17004 cat >>confdefs.h <<_ACEOF
17005 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17006 _ACEOF
17007
17008 else
17009 case " $LIBOBJS " in
17010 *" getloadavg.$ac_objext "* ) ;;
17011 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17012 ;;
17013 esac
17014
17015
17016 cat >>confdefs.h <<\_ACEOF
17017 #define C_GETLOADAVG 1
17018 _ACEOF
17019
17020 # Figure out what our getloadavg.c needs.
17021 ac_have_func=no
17022 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17023 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17024 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17025 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17026 echo $ECHO_N "(cached) $ECHO_C" >&6
17027 fi
17028 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17029 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17030 else
17031 # Is the header compilable?
17032 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17033 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17034 cat >conftest.$ac_ext <<_ACEOF
17035 /* confdefs.h. */
17036 _ACEOF
17037 cat confdefs.h >>conftest.$ac_ext
17038 cat >>conftest.$ac_ext <<_ACEOF
17039 /* end confdefs.h. */
17040 $ac_includes_default
17041 #include <sys/dg_sys_info.h>
17042 _ACEOF
17043 rm -f conftest.$ac_objext
17044 if { (ac_try="$ac_compile"
17045 case "(($ac_try" in
17046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17047 *) ac_try_echo=$ac_try;;
17048 esac
17049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17050 (eval "$ac_compile") 2>conftest.er1
17051 ac_status=$?
17052 grep -v '^ *+' conftest.er1 >conftest.err
17053 rm -f conftest.er1
17054 cat conftest.err >&5
17055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17056 (exit $ac_status); } && {
17057 test -z "$ac_c_werror_flag" ||
17058 test ! -s conftest.err
17059 } && test -s conftest.$ac_objext; then
17060 ac_header_compiler=yes
17061 else
17062 echo "$as_me: failed program was:" >&5
17063 sed 's/^/| /' conftest.$ac_ext >&5
17064
17065 ac_header_compiler=no
17066 fi
17067
17068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17069 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17070 echo "${ECHO_T}$ac_header_compiler" >&6; }
17071
17072 # Is the header present?
17073 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17074 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17075 cat >conftest.$ac_ext <<_ACEOF
17076 /* confdefs.h. */
17077 _ACEOF
17078 cat confdefs.h >>conftest.$ac_ext
17079 cat >>conftest.$ac_ext <<_ACEOF
17080 /* end confdefs.h. */
17081 #include <sys/dg_sys_info.h>
17082 _ACEOF
17083 if { (ac_try="$ac_cpp conftest.$ac_ext"
17084 case "(($ac_try" in
17085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17086 *) ac_try_echo=$ac_try;;
17087 esac
17088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17089 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17090 ac_status=$?
17091 grep -v '^ *+' conftest.er1 >conftest.err
17092 rm -f conftest.er1
17093 cat conftest.err >&5
17094 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17095 (exit $ac_status); } >/dev/null && {
17096 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17097 test ! -s conftest.err
17098 }; then
17099 ac_header_preproc=yes
17100 else
17101 echo "$as_me: failed program was:" >&5
17102 sed 's/^/| /' conftest.$ac_ext >&5
17103
17104 ac_header_preproc=no
17105 fi
17106
17107 rm -f conftest.err conftest.$ac_ext
17108 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17109 echo "${ECHO_T}$ac_header_preproc" >&6; }
17110
17111 # So? What about this header?
17112 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17113 yes:no: )
17114 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17115 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17116 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17117 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17118 ac_header_preproc=yes
17119 ;;
17120 no:yes:* )
17121 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17122 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17123 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17124 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17125 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17126 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17127 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17128 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17129 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17130 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17131 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17132 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17133
17134 ;;
17135 esac
17136 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17137 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17138 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17139 echo $ECHO_N "(cached) $ECHO_C" >&6
17140 else
17141 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17142 fi
17143 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17144 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17145
17146 fi
17147 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17148 ac_have_func=yes
17149
17150 cat >>confdefs.h <<\_ACEOF
17151 #define DGUX 1
17152 _ACEOF
17153
17154
17155 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17156 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17157 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17158 echo $ECHO_N "(cached) $ECHO_C" >&6
17159 else
17160 ac_check_lib_save_LIBS=$LIBS
17161 LIBS="-ldgc $LIBS"
17162 cat >conftest.$ac_ext <<_ACEOF
17163 /* confdefs.h. */
17164 _ACEOF
17165 cat confdefs.h >>conftest.$ac_ext
17166 cat >>conftest.$ac_ext <<_ACEOF
17167 /* end confdefs.h. */
17168
17169 /* Override any GCC internal prototype to avoid an error.
17170 Use char because int might match the return type of a GCC
17171 builtin and then its argument prototype would still apply. */
17172 #ifdef __cplusplus
17173 extern "C"
17174 #endif
17175 char dg_sys_info ();
17176 int
17177 main ()
17178 {
17179 return dg_sys_info ();
17180 ;
17181 return 0;
17182 }
17183 _ACEOF
17184 rm -f conftest.$ac_objext conftest$ac_exeext
17185 if { (ac_try="$ac_link"
17186 case "(($ac_try" in
17187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17188 *) ac_try_echo=$ac_try;;
17189 esac
17190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17191 (eval "$ac_link") 2>conftest.er1
17192 ac_status=$?
17193 grep -v '^ *+' conftest.er1 >conftest.err
17194 rm -f conftest.er1
17195 cat conftest.err >&5
17196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17197 (exit $ac_status); } && {
17198 test -z "$ac_c_werror_flag" ||
17199 test ! -s conftest.err
17200 } && test -s conftest$ac_exeext &&
17201 $as_test_x conftest$ac_exeext; then
17202 ac_cv_lib_dgc_dg_sys_info=yes
17203 else
17204 echo "$as_me: failed program was:" >&5
17205 sed 's/^/| /' conftest.$ac_ext >&5
17206
17207 ac_cv_lib_dgc_dg_sys_info=no
17208 fi
17209
17210 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17211 conftest$ac_exeext conftest.$ac_ext
17212 LIBS=$ac_check_lib_save_LIBS
17213 fi
17214 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17215 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17216 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17217 cat >>confdefs.h <<_ACEOF
17218 #define HAVE_LIBDGC 1
17219 _ACEOF
17220
17221 LIBS="-ldgc $LIBS"
17222
17223 fi
17224
17225 fi
17226
17227
17228
17229 if test "${ac_cv_header_locale_h+set}" = set; then
17230 { echo "$as_me:$LINENO: checking for locale.h" >&5
17231 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17232 if test "${ac_cv_header_locale_h+set}" = set; then
17233 echo $ECHO_N "(cached) $ECHO_C" >&6
17234 fi
17235 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17236 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17237 else
17238 # Is the header compilable?
17239 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17240 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17241 cat >conftest.$ac_ext <<_ACEOF
17242 /* confdefs.h. */
17243 _ACEOF
17244 cat confdefs.h >>conftest.$ac_ext
17245 cat >>conftest.$ac_ext <<_ACEOF
17246 /* end confdefs.h. */
17247 $ac_includes_default
17248 #include <locale.h>
17249 _ACEOF
17250 rm -f conftest.$ac_objext
17251 if { (ac_try="$ac_compile"
17252 case "(($ac_try" in
17253 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254 *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257 (eval "$ac_compile") 2>conftest.er1
17258 ac_status=$?
17259 grep -v '^ *+' conftest.er1 >conftest.err
17260 rm -f conftest.er1
17261 cat conftest.err >&5
17262 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17263 (exit $ac_status); } && {
17264 test -z "$ac_c_werror_flag" ||
17265 test ! -s conftest.err
17266 } && test -s conftest.$ac_objext; then
17267 ac_header_compiler=yes
17268 else
17269 echo "$as_me: failed program was:" >&5
17270 sed 's/^/| /' conftest.$ac_ext >&5
17271
17272 ac_header_compiler=no
17273 fi
17274
17275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17276 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17277 echo "${ECHO_T}$ac_header_compiler" >&6; }
17278
17279 # Is the header present?
17280 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17281 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17282 cat >conftest.$ac_ext <<_ACEOF
17283 /* confdefs.h. */
17284 _ACEOF
17285 cat confdefs.h >>conftest.$ac_ext
17286 cat >>conftest.$ac_ext <<_ACEOF
17287 /* end confdefs.h. */
17288 #include <locale.h>
17289 _ACEOF
17290 if { (ac_try="$ac_cpp conftest.$ac_ext"
17291 case "(($ac_try" in
17292 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17293 *) ac_try_echo=$ac_try;;
17294 esac
17295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17296 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17297 ac_status=$?
17298 grep -v '^ *+' conftest.er1 >conftest.err
17299 rm -f conftest.er1
17300 cat conftest.err >&5
17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17302 (exit $ac_status); } >/dev/null && {
17303 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17304 test ! -s conftest.err
17305 }; then
17306 ac_header_preproc=yes
17307 else
17308 echo "$as_me: failed program was:" >&5
17309 sed 's/^/| /' conftest.$ac_ext >&5
17310
17311 ac_header_preproc=no
17312 fi
17313
17314 rm -f conftest.err conftest.$ac_ext
17315 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17316 echo "${ECHO_T}$ac_header_preproc" >&6; }
17317
17318 # So? What about this header?
17319 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17320 yes:no: )
17321 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17322 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17323 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17324 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17325 ac_header_preproc=yes
17326 ;;
17327 no:yes:* )
17328 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17329 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17330 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17331 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17332 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17333 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17334 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17335 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17336 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17337 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17338 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17339 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17340
17341 ;;
17342 esac
17343 { echo "$as_me:$LINENO: checking for locale.h" >&5
17344 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17345 if test "${ac_cv_header_locale_h+set}" = set; then
17346 echo $ECHO_N "(cached) $ECHO_C" >&6
17347 else
17348 ac_cv_header_locale_h=$ac_header_preproc
17349 fi
17350 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17351 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17352
17353 fi
17354
17355
17356
17357 for ac_func in setlocale
17358 do
17359 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17360 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17361 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17362 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17363 echo $ECHO_N "(cached) $ECHO_C" >&6
17364 else
17365 cat >conftest.$ac_ext <<_ACEOF
17366 /* confdefs.h. */
17367 _ACEOF
17368 cat confdefs.h >>conftest.$ac_ext
17369 cat >>conftest.$ac_ext <<_ACEOF
17370 /* end confdefs.h. */
17371 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17372 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17373 #define $ac_func innocuous_$ac_func
17374
17375 /* System header to define __stub macros and hopefully few prototypes,
17376 which can conflict with char $ac_func (); below.
17377 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17378 <limits.h> exists even on freestanding compilers. */
17379
17380 #ifdef __STDC__
17381 # include <limits.h>
17382 #else
17383 # include <assert.h>
17384 #endif
17385
17386 #undef $ac_func
17387
17388 /* Override any GCC internal prototype to avoid an error.
17389 Use char because int might match the return type of a GCC
17390 builtin and then its argument prototype would still apply. */
17391 #ifdef __cplusplus
17392 extern "C"
17393 #endif
17394 char $ac_func ();
17395 /* The GNU C library defines this for functions which it implements
17396 to always fail with ENOSYS. Some functions are actually named
17397 something starting with __ and the normal name is an alias. */
17398 #if defined __stub_$ac_func || defined __stub___$ac_func
17399 choke me
17400 #endif
17401
17402 int
17403 main ()
17404 {
17405 return $ac_func ();
17406 ;
17407 return 0;
17408 }
17409 _ACEOF
17410 rm -f conftest.$ac_objext conftest$ac_exeext
17411 if { (ac_try="$ac_link"
17412 case "(($ac_try" in
17413 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17414 *) ac_try_echo=$ac_try;;
17415 esac
17416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17417 (eval "$ac_link") 2>conftest.er1
17418 ac_status=$?
17419 grep -v '^ *+' conftest.er1 >conftest.err
17420 rm -f conftest.er1
17421 cat conftest.err >&5
17422 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17423 (exit $ac_status); } && {
17424 test -z "$ac_c_werror_flag" ||
17425 test ! -s conftest.err
17426 } && test -s conftest$ac_exeext &&
17427 $as_test_x conftest$ac_exeext; then
17428 eval "$as_ac_var=yes"
17429 else
17430 echo "$as_me: failed program was:" >&5
17431 sed 's/^/| /' conftest.$ac_ext >&5
17432
17433 eval "$as_ac_var=no"
17434 fi
17435
17436 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17437 conftest$ac_exeext conftest.$ac_ext
17438 fi
17439 ac_res=`eval echo '${'$as_ac_var'}'`
17440 { echo "$as_me:$LINENO: result: $ac_res" >&5
17441 echo "${ECHO_T}$ac_res" >&6; }
17442 if test `eval echo '${'$as_ac_var'}'` = yes; then
17443 cat >>confdefs.h <<_ACEOF
17444 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17445 _ACEOF
17446
17447 fi
17448 done
17449
17450
17451 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17452 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17453 # Irix 4.0.5F has the header but not the library.
17454 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17455 ac_have_func=yes
17456
17457 cat >>confdefs.h <<\_ACEOF
17458 #define SVR4 1
17459 _ACEOF
17460
17461 fi
17462
17463 if test $ac_have_func = no; then
17464 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17465 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17466 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17467 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17468 echo $ECHO_N "(cached) $ECHO_C" >&6
17469 fi
17470 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17471 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17472 else
17473 # Is the header compilable?
17474 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17475 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17476 cat >conftest.$ac_ext <<_ACEOF
17477 /* confdefs.h. */
17478 _ACEOF
17479 cat confdefs.h >>conftest.$ac_ext
17480 cat >>conftest.$ac_ext <<_ACEOF
17481 /* end confdefs.h. */
17482 $ac_includes_default
17483 #include <inq_stats/cpustats.h>
17484 _ACEOF
17485 rm -f conftest.$ac_objext
17486 if { (ac_try="$ac_compile"
17487 case "(($ac_try" in
17488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17489 *) ac_try_echo=$ac_try;;
17490 esac
17491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17492 (eval "$ac_compile") 2>conftest.er1
17493 ac_status=$?
17494 grep -v '^ *+' conftest.er1 >conftest.err
17495 rm -f conftest.er1
17496 cat conftest.err >&5
17497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17498 (exit $ac_status); } && {
17499 test -z "$ac_c_werror_flag" ||
17500 test ! -s conftest.err
17501 } && test -s conftest.$ac_objext; then
17502 ac_header_compiler=yes
17503 else
17504 echo "$as_me: failed program was:" >&5
17505 sed 's/^/| /' conftest.$ac_ext >&5
17506
17507 ac_header_compiler=no
17508 fi
17509
17510 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17511 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17512 echo "${ECHO_T}$ac_header_compiler" >&6; }
17513
17514 # Is the header present?
17515 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17516 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17517 cat >conftest.$ac_ext <<_ACEOF
17518 /* confdefs.h. */
17519 _ACEOF
17520 cat confdefs.h >>conftest.$ac_ext
17521 cat >>conftest.$ac_ext <<_ACEOF
17522 /* end confdefs.h. */
17523 #include <inq_stats/cpustats.h>
17524 _ACEOF
17525 if { (ac_try="$ac_cpp conftest.$ac_ext"
17526 case "(($ac_try" in
17527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17528 *) ac_try_echo=$ac_try;;
17529 esac
17530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17531 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17532 ac_status=$?
17533 grep -v '^ *+' conftest.er1 >conftest.err
17534 rm -f conftest.er1
17535 cat conftest.err >&5
17536 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17537 (exit $ac_status); } >/dev/null && {
17538 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17539 test ! -s conftest.err
17540 }; then
17541 ac_header_preproc=yes
17542 else
17543 echo "$as_me: failed program was:" >&5
17544 sed 's/^/| /' conftest.$ac_ext >&5
17545
17546 ac_header_preproc=no
17547 fi
17548
17549 rm -f conftest.err conftest.$ac_ext
17550 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17551 echo "${ECHO_T}$ac_header_preproc" >&6; }
17552
17553 # So? What about this header?
17554 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17555 yes:no: )
17556 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17557 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17558 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17559 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17560 ac_header_preproc=yes
17561 ;;
17562 no:yes:* )
17563 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17564 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17565 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17566 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17567 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17568 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17569 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17570 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17571 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17572 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17573 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17574 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17575
17576 ;;
17577 esac
17578 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17579 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17580 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17581 echo $ECHO_N "(cached) $ECHO_C" >&6
17582 else
17583 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17584 fi
17585 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17586 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17587
17588 fi
17589 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17590 ac_have_func=yes
17591
17592 cat >>confdefs.h <<\_ACEOF
17593 #define UMAX 1
17594 _ACEOF
17595
17596
17597 cat >>confdefs.h <<\_ACEOF
17598 #define UMAX4_3 1
17599 _ACEOF
17600
17601 fi
17602
17603
17604 fi
17605
17606 if test $ac_have_func = no; then
17607 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17608 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17609 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17610 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17611 echo $ECHO_N "(cached) $ECHO_C" >&6
17612 fi
17613 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17614 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17615 else
17616 # Is the header compilable?
17617 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17618 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17619 cat >conftest.$ac_ext <<_ACEOF
17620 /* confdefs.h. */
17621 _ACEOF
17622 cat confdefs.h >>conftest.$ac_ext
17623 cat >>conftest.$ac_ext <<_ACEOF
17624 /* end confdefs.h. */
17625 $ac_includes_default
17626 #include <sys/cpustats.h>
17627 _ACEOF
17628 rm -f conftest.$ac_objext
17629 if { (ac_try="$ac_compile"
17630 case "(($ac_try" in
17631 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17632 *) ac_try_echo=$ac_try;;
17633 esac
17634 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17635 (eval "$ac_compile") 2>conftest.er1
17636 ac_status=$?
17637 grep -v '^ *+' conftest.er1 >conftest.err
17638 rm -f conftest.er1
17639 cat conftest.err >&5
17640 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17641 (exit $ac_status); } && {
17642 test -z "$ac_c_werror_flag" ||
17643 test ! -s conftest.err
17644 } && test -s conftest.$ac_objext; then
17645 ac_header_compiler=yes
17646 else
17647 echo "$as_me: failed program was:" >&5
17648 sed 's/^/| /' conftest.$ac_ext >&5
17649
17650 ac_header_compiler=no
17651 fi
17652
17653 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17654 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17655 echo "${ECHO_T}$ac_header_compiler" >&6; }
17656
17657 # Is the header present?
17658 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
17659 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
17660 cat >conftest.$ac_ext <<_ACEOF
17661 /* confdefs.h. */
17662 _ACEOF
17663 cat confdefs.h >>conftest.$ac_ext
17664 cat >>conftest.$ac_ext <<_ACEOF
17665 /* end confdefs.h. */
17666 #include <sys/cpustats.h>
17667 _ACEOF
17668 if { (ac_try="$ac_cpp conftest.$ac_ext"
17669 case "(($ac_try" in
17670 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17671 *) ac_try_echo=$ac_try;;
17672 esac
17673 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17674 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17675 ac_status=$?
17676 grep -v '^ *+' conftest.er1 >conftest.err
17677 rm -f conftest.er1
17678 cat conftest.err >&5
17679 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17680 (exit $ac_status); } >/dev/null && {
17681 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17682 test ! -s conftest.err
17683 }; then
17684 ac_header_preproc=yes
17685 else
17686 echo "$as_me: failed program was:" >&5
17687 sed 's/^/| /' conftest.$ac_ext >&5
17688
17689 ac_header_preproc=no
17690 fi
17691
17692 rm -f conftest.err conftest.$ac_ext
17693 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17694 echo "${ECHO_T}$ac_header_preproc" >&6; }
17695
17696 # So? What about this header?
17697 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17698 yes:no: )
17699 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17700 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17701 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
17702 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
17703 ac_header_preproc=yes
17704 ;;
17705 no:yes:* )
17706 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
17707 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
17708 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
17709 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
17710 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
17711 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
17712 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17713 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17714 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
17715 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
17716 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
17717 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
17718
17719 ;;
17720 esac
17721 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17722 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17723 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17724 echo $ECHO_N "(cached) $ECHO_C" >&6
17725 else
17726 ac_cv_header_sys_cpustats_h=$ac_header_preproc
17727 fi
17728 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17729 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17730
17731 fi
17732 if test $ac_cv_header_sys_cpustats_h = yes; then
17733 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
17734 #define UMAX 1
17735 _ACEOF
17736
17737 fi
17738
17739
17740 fi
17741
17742 if test $ac_have_func = no; then
17743
17744 for ac_header in mach/mach.h
17745 do
17746 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17747 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17748 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17749 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17750 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17751 echo $ECHO_N "(cached) $ECHO_C" >&6
17752 fi
17753 ac_res=`eval echo '${'$as_ac_Header'}'`
17754 { echo "$as_me:$LINENO: result: $ac_res" >&5
17755 echo "${ECHO_T}$ac_res" >&6; }
17756 else
17757 # Is the header compilable?
17758 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17759 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17760 cat >conftest.$ac_ext <<_ACEOF
17761 /* confdefs.h. */
17762 _ACEOF
17763 cat confdefs.h >>conftest.$ac_ext
17764 cat >>conftest.$ac_ext <<_ACEOF
17765 /* end confdefs.h. */
17766 $ac_includes_default
17767 #include <$ac_header>
17768 _ACEOF
17769 rm -f conftest.$ac_objext
17770 if { (ac_try="$ac_compile"
17771 case "(($ac_try" in
17772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17773 *) ac_try_echo=$ac_try;;
17774 esac
17775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17776 (eval "$ac_compile") 2>conftest.er1
17777 ac_status=$?
17778 grep -v '^ *+' conftest.er1 >conftest.err
17779 rm -f conftest.er1
17780 cat conftest.err >&5
17781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17782 (exit $ac_status); } && {
17783 test -z "$ac_c_werror_flag" ||
17784 test ! -s conftest.err
17785 } && test -s conftest.$ac_objext; then
17786 ac_header_compiler=yes
17787 else
17788 echo "$as_me: failed program was:" >&5
17789 sed 's/^/| /' conftest.$ac_ext >&5
17790
17791 ac_header_compiler=no
17792 fi
17793
17794 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17795 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17796 echo "${ECHO_T}$ac_header_compiler" >&6; }
17797
17798 # Is the header present?
17799 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17800 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17801 cat >conftest.$ac_ext <<_ACEOF
17802 /* confdefs.h. */
17803 _ACEOF
17804 cat confdefs.h >>conftest.$ac_ext
17805 cat >>conftest.$ac_ext <<_ACEOF
17806 /* end confdefs.h. */
17807 #include <$ac_header>
17808 _ACEOF
17809 if { (ac_try="$ac_cpp conftest.$ac_ext"
17810 case "(($ac_try" in
17811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17812 *) ac_try_echo=$ac_try;;
17813 esac
17814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17815 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17816 ac_status=$?
17817 grep -v '^ *+' conftest.er1 >conftest.err
17818 rm -f conftest.er1
17819 cat conftest.err >&5
17820 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17821 (exit $ac_status); } >/dev/null && {
17822 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17823 test ! -s conftest.err
17824 }; then
17825 ac_header_preproc=yes
17826 else
17827 echo "$as_me: failed program was:" >&5
17828 sed 's/^/| /' conftest.$ac_ext >&5
17829
17830 ac_header_preproc=no
17831 fi
17832
17833 rm -f conftest.err conftest.$ac_ext
17834 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17835 echo "${ECHO_T}$ac_header_preproc" >&6; }
17836
17837 # So? What about this header?
17838 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17839 yes:no: )
17840 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17841 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17842 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17843 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17844 ac_header_preproc=yes
17845 ;;
17846 no:yes:* )
17847 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17848 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17849 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17850 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17851 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17852 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17853 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17854 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17855 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17856 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17857 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17858 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17859
17860 ;;
17861 esac
17862 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17863 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17864 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17865 echo $ECHO_N "(cached) $ECHO_C" >&6
17866 else
17867 eval "$as_ac_Header=\$ac_header_preproc"
17868 fi
17869 ac_res=`eval echo '${'$as_ac_Header'}'`
17870 { echo "$as_me:$LINENO: result: $ac_res" >&5
17871 echo "${ECHO_T}$ac_res" >&6; }
17872
17873 fi
17874 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17875 cat >>confdefs.h <<_ACEOF
17876 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17877 _ACEOF
17878
17879 fi
17880
17881 done
17882
17883 fi
17884
17885
17886 for ac_header in nlist.h
17887 do
17888 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17889 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17890 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17891 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17892 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17893 echo $ECHO_N "(cached) $ECHO_C" >&6
17894 fi
17895 ac_res=`eval echo '${'$as_ac_Header'}'`
17896 { echo "$as_me:$LINENO: result: $ac_res" >&5
17897 echo "${ECHO_T}$ac_res" >&6; }
17898 else
17899 # Is the header compilable?
17900 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17901 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17902 cat >conftest.$ac_ext <<_ACEOF
17903 /* confdefs.h. */
17904 _ACEOF
17905 cat confdefs.h >>conftest.$ac_ext
17906 cat >>conftest.$ac_ext <<_ACEOF
17907 /* end confdefs.h. */
17908 $ac_includes_default
17909 #include <$ac_header>
17910 _ACEOF
17911 rm -f conftest.$ac_objext
17912 if { (ac_try="$ac_compile"
17913 case "(($ac_try" in
17914 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17915 *) ac_try_echo=$ac_try;;
17916 esac
17917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17918 (eval "$ac_compile") 2>conftest.er1
17919 ac_status=$?
17920 grep -v '^ *+' conftest.er1 >conftest.err
17921 rm -f conftest.er1
17922 cat conftest.err >&5
17923 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17924 (exit $ac_status); } && {
17925 test -z "$ac_c_werror_flag" ||
17926 test ! -s conftest.err
17927 } && test -s conftest.$ac_objext; then
17928 ac_header_compiler=yes
17929 else
17930 echo "$as_me: failed program was:" >&5
17931 sed 's/^/| /' conftest.$ac_ext >&5
17932
17933 ac_header_compiler=no
17934 fi
17935
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17938 echo "${ECHO_T}$ac_header_compiler" >&6; }
17939
17940 # Is the header present?
17941 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17942 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17943 cat >conftest.$ac_ext <<_ACEOF
17944 /* confdefs.h. */
17945 _ACEOF
17946 cat confdefs.h >>conftest.$ac_ext
17947 cat >>conftest.$ac_ext <<_ACEOF
17948 /* end confdefs.h. */
17949 #include <$ac_header>
17950 _ACEOF
17951 if { (ac_try="$ac_cpp conftest.$ac_ext"
17952 case "(($ac_try" in
17953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17954 *) ac_try_echo=$ac_try;;
17955 esac
17956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17957 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17958 ac_status=$?
17959 grep -v '^ *+' conftest.er1 >conftest.err
17960 rm -f conftest.er1
17961 cat conftest.err >&5
17962 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17963 (exit $ac_status); } >/dev/null && {
17964 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17965 test ! -s conftest.err
17966 }; then
17967 ac_header_preproc=yes
17968 else
17969 echo "$as_me: failed program was:" >&5
17970 sed 's/^/| /' conftest.$ac_ext >&5
17971
17972 ac_header_preproc=no
17973 fi
17974
17975 rm -f conftest.err conftest.$ac_ext
17976 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17977 echo "${ECHO_T}$ac_header_preproc" >&6; }
17978
17979 # So? What about this header?
17980 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17981 yes:no: )
17982 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17983 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17984 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17985 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17986 ac_header_preproc=yes
17987 ;;
17988 no:yes:* )
17989 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17990 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17991 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
17992 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
17993 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17994 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17995 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
17996 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
17997 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17998 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17999 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18000 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18001
18002 ;;
18003 esac
18004 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18005 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18006 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18007 echo $ECHO_N "(cached) $ECHO_C" >&6
18008 else
18009 eval "$as_ac_Header=\$ac_header_preproc"
18010 fi
18011 ac_res=`eval echo '${'$as_ac_Header'}'`
18012 { echo "$as_me:$LINENO: result: $ac_res" >&5
18013 echo "${ECHO_T}$ac_res" >&6; }
18014
18015 fi
18016 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18017 cat >>confdefs.h <<_ACEOF
18018 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18019 _ACEOF
18020 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18021 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18022 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18023 echo $ECHO_N "(cached) $ECHO_C" >&6
18024 else
18025 cat >conftest.$ac_ext <<_ACEOF
18026 /* confdefs.h. */
18027 _ACEOF
18028 cat confdefs.h >>conftest.$ac_ext
18029 cat >>conftest.$ac_ext <<_ACEOF
18030 /* end confdefs.h. */
18031 #include <nlist.h>
18032
18033 int
18034 main ()
18035 {
18036 static struct nlist ac_aggr;
18037 if (ac_aggr.n_un.n_name)
18038 return 0;
18039 ;
18040 return 0;
18041 }
18042 _ACEOF
18043 rm -f conftest.$ac_objext
18044 if { (ac_try="$ac_compile"
18045 case "(($ac_try" in
18046 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18047 *) ac_try_echo=$ac_try;;
18048 esac
18049 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18050 (eval "$ac_compile") 2>conftest.er1
18051 ac_status=$?
18052 grep -v '^ *+' conftest.er1 >conftest.err
18053 rm -f conftest.er1
18054 cat conftest.err >&5
18055 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18056 (exit $ac_status); } && {
18057 test -z "$ac_c_werror_flag" ||
18058 test ! -s conftest.err
18059 } && test -s conftest.$ac_objext; then
18060 ac_cv_member_struct_nlist_n_un_n_name=yes
18061 else
18062 echo "$as_me: failed program was:" >&5
18063 sed 's/^/| /' conftest.$ac_ext >&5
18064
18065 cat >conftest.$ac_ext <<_ACEOF
18066 /* confdefs.h. */
18067 _ACEOF
18068 cat confdefs.h >>conftest.$ac_ext
18069 cat >>conftest.$ac_ext <<_ACEOF
18070 /* end confdefs.h. */
18071 #include <nlist.h>
18072
18073 int
18074 main ()
18075 {
18076 static struct nlist ac_aggr;
18077 if (sizeof ac_aggr.n_un.n_name)
18078 return 0;
18079 ;
18080 return 0;
18081 }
18082 _ACEOF
18083 rm -f conftest.$ac_objext
18084 if { (ac_try="$ac_compile"
18085 case "(($ac_try" in
18086 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18087 *) ac_try_echo=$ac_try;;
18088 esac
18089 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18090 (eval "$ac_compile") 2>conftest.er1
18091 ac_status=$?
18092 grep -v '^ *+' conftest.er1 >conftest.err
18093 rm -f conftest.er1
18094 cat conftest.err >&5
18095 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18096 (exit $ac_status); } && {
18097 test -z "$ac_c_werror_flag" ||
18098 test ! -s conftest.err
18099 } && test -s conftest.$ac_objext; then
18100 ac_cv_member_struct_nlist_n_un_n_name=yes
18101 else
18102 echo "$as_me: failed program was:" >&5
18103 sed 's/^/| /' conftest.$ac_ext >&5
18104
18105 ac_cv_member_struct_nlist_n_un_n_name=no
18106 fi
18107
18108 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18109 fi
18110
18111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18112 fi
18113 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18114 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18115 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18116
18117 cat >>confdefs.h <<_ACEOF
18118 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18119 _ACEOF
18120
18121
18122 cat >>confdefs.h <<\_ACEOF
18123 #define NLIST_NAME_UNION 1
18124 _ACEOF
18125
18126 fi
18127
18128
18129 fi
18130
18131 done
18132
18133 fi
18134 done
18135
18136
18137 # Some definitions of getloadavg require that the program be installed setgid.
18138 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18139 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18140 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18141 echo $ECHO_N "(cached) $ECHO_C" >&6
18142 else
18143 cat >conftest.$ac_ext <<_ACEOF
18144 /* confdefs.h. */
18145 _ACEOF
18146 cat confdefs.h >>conftest.$ac_ext
18147 cat >>conftest.$ac_ext <<_ACEOF
18148 /* end confdefs.h. */
18149 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18150 #ifdef LDAV_PRIVILEGED
18151 Yowza Am I SETGID yet
18152 #endif
18153 _ACEOF
18154 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18155 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18156 ac_cv_func_getloadavg_setgid=yes
18157 else
18158 ac_cv_func_getloadavg_setgid=no
18159 fi
18160 rm -f conftest*
18161
18162 fi
18163 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18164 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18165 if test $ac_cv_func_getloadavg_setgid = yes; then
18166 NEED_SETGID=true
18167
18168 cat >>confdefs.h <<\_ACEOF
18169 #define GETLOADAVG_PRIVILEGED 1
18170 _ACEOF
18171
18172 else
18173 NEED_SETGID=false
18174 fi
18175
18176 if test $ac_cv_func_getloadavg_setgid = yes; then
18177 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18178 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18179 if test "${ac_cv_group_kmem+set}" = set; then
18180 echo $ECHO_N "(cached) $ECHO_C" >&6
18181 else
18182 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18183 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18184 # If we got an error (system does not support symlinks), try without -L.
18185 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18186 ac_cv_group_kmem=`echo $ac_ls_output \
18187 | sed -ne 's/[ ][ ]*/ /g;
18188 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18189 / /s/.* //;p;'`
18190
18191 fi
18192 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18193 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18194 KMEM_GROUP=$ac_cv_group_kmem
18195 fi
18196 if test "x$ac_save_LIBS" = x; then
18197 GETLOADAVG_LIBS=$LIBS
18198 else
18199 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18200 fi
18201 LIBS=$ac_save_LIBS
18202
18203
18204
18205 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18206 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18207 if test "${ac_cv_sys_largefile_source+set}" = set; then
18208 echo $ECHO_N "(cached) $ECHO_C" >&6
18209 else
18210 while :; do
18211 cat >conftest.$ac_ext <<_ACEOF
18212 /* confdefs.h. */
18213 _ACEOF
18214 cat confdefs.h >>conftest.$ac_ext
18215 cat >>conftest.$ac_ext <<_ACEOF
18216 /* end confdefs.h. */
18217 #include <stdio.h>
18218 int
18219 main ()
18220 {
18221 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18222 ;
18223 return 0;
18224 }
18225 _ACEOF
18226 rm -f conftest.$ac_objext conftest$ac_exeext
18227 if { (ac_try="$ac_link"
18228 case "(($ac_try" in
18229 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18230 *) ac_try_echo=$ac_try;;
18231 esac
18232 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18233 (eval "$ac_link") 2>conftest.er1
18234 ac_status=$?
18235 grep -v '^ *+' conftest.er1 >conftest.err
18236 rm -f conftest.er1
18237 cat conftest.err >&5
18238 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18239 (exit $ac_status); } && {
18240 test -z "$ac_c_werror_flag" ||
18241 test ! -s conftest.err
18242 } && test -s conftest$ac_exeext &&
18243 $as_test_x conftest$ac_exeext; then
18244 ac_cv_sys_largefile_source=no; break
18245 else
18246 echo "$as_me: failed program was:" >&5
18247 sed 's/^/| /' conftest.$ac_ext >&5
18248
18249
18250 fi
18251
18252 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18253 conftest$ac_exeext conftest.$ac_ext
18254 cat >conftest.$ac_ext <<_ACEOF
18255 /* confdefs.h. */
18256 _ACEOF
18257 cat confdefs.h >>conftest.$ac_ext
18258 cat >>conftest.$ac_ext <<_ACEOF
18259 /* end confdefs.h. */
18260 #define _LARGEFILE_SOURCE 1
18261 #include <stdio.h>
18262 int
18263 main ()
18264 {
18265 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18266 ;
18267 return 0;
18268 }
18269 _ACEOF
18270 rm -f conftest.$ac_objext conftest$ac_exeext
18271 if { (ac_try="$ac_link"
18272 case "(($ac_try" in
18273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18274 *) ac_try_echo=$ac_try;;
18275 esac
18276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18277 (eval "$ac_link") 2>conftest.er1
18278 ac_status=$?
18279 grep -v '^ *+' conftest.er1 >conftest.err
18280 rm -f conftest.er1
18281 cat conftest.err >&5
18282 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18283 (exit $ac_status); } && {
18284 test -z "$ac_c_werror_flag" ||
18285 test ! -s conftest.err
18286 } && test -s conftest$ac_exeext &&
18287 $as_test_x conftest$ac_exeext; then
18288 ac_cv_sys_largefile_source=1; break
18289 else
18290 echo "$as_me: failed program was:" >&5
18291 sed 's/^/| /' conftest.$ac_ext >&5
18292
18293
18294 fi
18295
18296 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18297 conftest$ac_exeext conftest.$ac_ext
18298 ac_cv_sys_largefile_source=unknown
18299 break
18300 done
18301 fi
18302 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18303 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18304 case $ac_cv_sys_largefile_source in #(
18305 no | unknown) ;;
18306 *)
18307 cat >>confdefs.h <<_ACEOF
18308 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18309 _ACEOF
18310 ;;
18311 esac
18312 rm -f conftest*
18313
18314 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18315 # in glibc 2.1.3, but that breaks too many other things.
18316 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18317 if test $ac_cv_sys_largefile_source != unknown; then
18318
18319 cat >>confdefs.h <<\_ACEOF
18320 #define HAVE_FSEEKO 1
18321 _ACEOF
18322
18323 fi
18324
18325
18326 # Configure getopt.
18327 # getopt.m4 serial 10
18328
18329 # The getopt module assume you want GNU getopt, with getopt_long etc,
18330 # rather than vanilla POSIX getopt. This means your your code should
18331 # always include <getopt.h> for the getopt prototypes.
18332
18333
18334
18335
18336
18337
18338
18339
18340
18341
18342
18343 # Prerequisites of lib/getopt*.
18344
18345
18346
18347
18348 GETOPT_H=
18349
18350 for ac_header in getopt.h
18351 do
18352 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18354 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18355 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18356 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18357 echo $ECHO_N "(cached) $ECHO_C" >&6
18358 fi
18359 ac_res=`eval echo '${'$as_ac_Header'}'`
18360 { echo "$as_me:$LINENO: result: $ac_res" >&5
18361 echo "${ECHO_T}$ac_res" >&6; }
18362 else
18363 # Is the header compilable?
18364 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18365 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18366 cat >conftest.$ac_ext <<_ACEOF
18367 /* confdefs.h. */
18368 _ACEOF
18369 cat confdefs.h >>conftest.$ac_ext
18370 cat >>conftest.$ac_ext <<_ACEOF
18371 /* end confdefs.h. */
18372 $ac_includes_default
18373 #include <$ac_header>
18374 _ACEOF
18375 rm -f conftest.$ac_objext
18376 if { (ac_try="$ac_compile"
18377 case "(($ac_try" in
18378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18379 *) ac_try_echo=$ac_try;;
18380 esac
18381 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18382 (eval "$ac_compile") 2>conftest.er1
18383 ac_status=$?
18384 grep -v '^ *+' conftest.er1 >conftest.err
18385 rm -f conftest.er1
18386 cat conftest.err >&5
18387 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18388 (exit $ac_status); } && {
18389 test -z "$ac_c_werror_flag" ||
18390 test ! -s conftest.err
18391 } && test -s conftest.$ac_objext; then
18392 ac_header_compiler=yes
18393 else
18394 echo "$as_me: failed program was:" >&5
18395 sed 's/^/| /' conftest.$ac_ext >&5
18396
18397 ac_header_compiler=no
18398 fi
18399
18400 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18401 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18402 echo "${ECHO_T}$ac_header_compiler" >&6; }
18403
18404 # Is the header present?
18405 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18406 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18407 cat >conftest.$ac_ext <<_ACEOF
18408 /* confdefs.h. */
18409 _ACEOF
18410 cat confdefs.h >>conftest.$ac_ext
18411 cat >>conftest.$ac_ext <<_ACEOF
18412 /* end confdefs.h. */
18413 #include <$ac_header>
18414 _ACEOF
18415 if { (ac_try="$ac_cpp conftest.$ac_ext"
18416 case "(($ac_try" in
18417 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18418 *) ac_try_echo=$ac_try;;
18419 esac
18420 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18421 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18422 ac_status=$?
18423 grep -v '^ *+' conftest.er1 >conftest.err
18424 rm -f conftest.er1
18425 cat conftest.err >&5
18426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18427 (exit $ac_status); } >/dev/null && {
18428 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18429 test ! -s conftest.err
18430 }; then
18431 ac_header_preproc=yes
18432 else
18433 echo "$as_me: failed program was:" >&5
18434 sed 's/^/| /' conftest.$ac_ext >&5
18435
18436 ac_header_preproc=no
18437 fi
18438
18439 rm -f conftest.err conftest.$ac_ext
18440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18441 echo "${ECHO_T}$ac_header_preproc" >&6; }
18442
18443 # So? What about this header?
18444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18445 yes:no: )
18446 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18448 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18450 ac_header_preproc=yes
18451 ;;
18452 no:yes:* )
18453 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18455 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18456 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18457 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18459 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18460 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18461 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18463 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18465
18466 ;;
18467 esac
18468 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18469 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18470 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18471 echo $ECHO_N "(cached) $ECHO_C" >&6
18472 else
18473 eval "$as_ac_Header=\$ac_header_preproc"
18474 fi
18475 ac_res=`eval echo '${'$as_ac_Header'}'`
18476 { echo "$as_me:$LINENO: result: $ac_res" >&5
18477 echo "${ECHO_T}$ac_res" >&6; }
18478
18479 fi
18480 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18481 cat >>confdefs.h <<_ACEOF
18482 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18483 _ACEOF
18484
18485 else
18486 GETOPT_H=getopt.h
18487 fi
18488
18489 done
18490
18491 if test -z "$GETOPT_H"; then
18492
18493 for ac_func in getopt_long_only
18494 do
18495 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18496 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18497 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18498 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18499 echo $ECHO_N "(cached) $ECHO_C" >&6
18500 else
18501 cat >conftest.$ac_ext <<_ACEOF
18502 /* confdefs.h. */
18503 _ACEOF
18504 cat confdefs.h >>conftest.$ac_ext
18505 cat >>conftest.$ac_ext <<_ACEOF
18506 /* end confdefs.h. */
18507 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18508 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18509 #define $ac_func innocuous_$ac_func
18510
18511 /* System header to define __stub macros and hopefully few prototypes,
18512 which can conflict with char $ac_func (); below.
18513 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18514 <limits.h> exists even on freestanding compilers. */
18515
18516 #ifdef __STDC__
18517 # include <limits.h>
18518 #else
18519 # include <assert.h>
18520 #endif
18521
18522 #undef $ac_func
18523
18524 /* Override any GCC internal prototype to avoid an error.
18525 Use char because int might match the return type of a GCC
18526 builtin and then its argument prototype would still apply. */
18527 #ifdef __cplusplus
18528 extern "C"
18529 #endif
18530 char $ac_func ();
18531 /* The GNU C library defines this for functions which it implements
18532 to always fail with ENOSYS. Some functions are actually named
18533 something starting with __ and the normal name is an alias. */
18534 #if defined __stub_$ac_func || defined __stub___$ac_func
18535 choke me
18536 #endif
18537
18538 int
18539 main ()
18540 {
18541 return $ac_func ();
18542 ;
18543 return 0;
18544 }
18545 _ACEOF
18546 rm -f conftest.$ac_objext conftest$ac_exeext
18547 if { (ac_try="$ac_link"
18548 case "(($ac_try" in
18549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18550 *) ac_try_echo=$ac_try;;
18551 esac
18552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18553 (eval "$ac_link") 2>conftest.er1
18554 ac_status=$?
18555 grep -v '^ *+' conftest.er1 >conftest.err
18556 rm -f conftest.er1
18557 cat conftest.err >&5
18558 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18559 (exit $ac_status); } && {
18560 test -z "$ac_c_werror_flag" ||
18561 test ! -s conftest.err
18562 } && test -s conftest$ac_exeext &&
18563 $as_test_x conftest$ac_exeext; then
18564 eval "$as_ac_var=yes"
18565 else
18566 echo "$as_me: failed program was:" >&5
18567 sed 's/^/| /' conftest.$ac_ext >&5
18568
18569 eval "$as_ac_var=no"
18570 fi
18571
18572 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18573 conftest$ac_exeext conftest.$ac_ext
18574 fi
18575 ac_res=`eval echo '${'$as_ac_var'}'`
18576 { echo "$as_me:$LINENO: result: $ac_res" >&5
18577 echo "${ECHO_T}$ac_res" >&6; }
18578 if test `eval echo '${'$as_ac_var'}'` = yes; then
18579 cat >>confdefs.h <<_ACEOF
18580 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18581 _ACEOF
18582
18583 else
18584 GETOPT_H=getopt.h
18585 fi
18586 done
18587
18588 fi
18589
18590 if test -z "$GETOPT_H"; then
18591 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18592 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18593 if test "${ac_cv_have_decl_optreset+set}" = set; then
18594 echo $ECHO_N "(cached) $ECHO_C" >&6
18595 else
18596 cat >conftest.$ac_ext <<_ACEOF
18597 /* confdefs.h. */
18598 _ACEOF
18599 cat confdefs.h >>conftest.$ac_ext
18600 cat >>conftest.$ac_ext <<_ACEOF
18601 /* end confdefs.h. */
18602 #include <getopt.h>
18603
18604 int
18605 main ()
18606 {
18607 #ifndef optreset
18608 (void) optreset;
18609 #endif
18610
18611 ;
18612 return 0;
18613 }
18614 _ACEOF
18615 rm -f conftest.$ac_objext
18616 if { (ac_try="$ac_compile"
18617 case "(($ac_try" in
18618 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18619 *) ac_try_echo=$ac_try;;
18620 esac
18621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18622 (eval "$ac_compile") 2>conftest.er1
18623 ac_status=$?
18624 grep -v '^ *+' conftest.er1 >conftest.err
18625 rm -f conftest.er1
18626 cat conftest.err >&5
18627 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18628 (exit $ac_status); } && {
18629 test -z "$ac_c_werror_flag" ||
18630 test ! -s conftest.err
18631 } && test -s conftest.$ac_objext; then
18632 ac_cv_have_decl_optreset=yes
18633 else
18634 echo "$as_me: failed program was:" >&5
18635 sed 's/^/| /' conftest.$ac_ext >&5
18636
18637 ac_cv_have_decl_optreset=no
18638 fi
18639
18640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18641 fi
18642 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
18643 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
18644 if test $ac_cv_have_decl_optreset = yes; then
18645 GETOPT_H=getopt.h
18646 fi
18647
18648 fi
18649
18650 if test -z "$GETOPT_H"; then
18651 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
18652 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
18653 if test "${gl_cv_func_gnu_getopt+set}" = set; then
18654 echo $ECHO_N "(cached) $ECHO_C" >&6
18655 else
18656 if test "$cross_compiling" = yes; then
18657 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
18658 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
18659 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
18660 echo $ECHO_N "(cached) $ECHO_C" >&6
18661 else
18662 cat >conftest.$ac_ext <<_ACEOF
18663 /* confdefs.h. */
18664 _ACEOF
18665 cat confdefs.h >>conftest.$ac_ext
18666 cat >>conftest.$ac_ext <<_ACEOF
18667 /* end confdefs.h. */
18668 #include <getopt.h>
18669
18670 int
18671 main ()
18672 {
18673 #ifndef getopt_clip
18674 (void) getopt_clip;
18675 #endif
18676
18677 ;
18678 return 0;
18679 }
18680 _ACEOF
18681 rm -f conftest.$ac_objext
18682 if { (ac_try="$ac_compile"
18683 case "(($ac_try" in
18684 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18685 *) ac_try_echo=$ac_try;;
18686 esac
18687 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18688 (eval "$ac_compile") 2>conftest.er1
18689 ac_status=$?
18690 grep -v '^ *+' conftest.er1 >conftest.err
18691 rm -f conftest.er1
18692 cat conftest.err >&5
18693 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18694 (exit $ac_status); } && {
18695 test -z "$ac_c_werror_flag" ||
18696 test ! -s conftest.err
18697 } && test -s conftest.$ac_objext; then
18698 ac_cv_have_decl_getopt_clip=yes
18699 else
18700 echo "$as_me: failed program was:" >&5
18701 sed 's/^/| /' conftest.$ac_ext >&5
18702
18703 ac_cv_have_decl_getopt_clip=no
18704 fi
18705
18706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18707 fi
18708 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
18709 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
18710 if test $ac_cv_have_decl_getopt_clip = yes; then
18711 gl_cv_func_gnu_getopt=no
18712 else
18713 gl_cv_func_gnu_getopt=yes
18714 fi
18715
18716 else
18717 cat >conftest.$ac_ext <<_ACEOF
18718 /* confdefs.h. */
18719 _ACEOF
18720 cat confdefs.h >>conftest.$ac_ext
18721 cat >>conftest.$ac_ext <<_ACEOF
18722 /* end confdefs.h. */
18723 #include <getopt.h>
18724 int
18725 main ()
18726 {
18727
18728 char *myargv[3];
18729 myargv[0] = "conftest";
18730 myargv[1] = "-+";
18731 myargv[2] = 0;
18732 return getopt (2, myargv, "+a") != '?';
18733
18734 ;
18735 return 0;
18736 }
18737 _ACEOF
18738 rm -f conftest$ac_exeext
18739 if { (ac_try="$ac_link"
18740 case "(($ac_try" in
18741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18742 *) ac_try_echo=$ac_try;;
18743 esac
18744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18745 (eval "$ac_link") 2>&5
18746 ac_status=$?
18747 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18748 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18749 { (case "(($ac_try" in
18750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18751 *) ac_try_echo=$ac_try;;
18752 esac
18753 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18754 (eval "$ac_try") 2>&5
18755 ac_status=$?
18756 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18757 (exit $ac_status); }; }; then
18758 gl_cv_func_gnu_getopt=yes
18759 else
18760 echo "$as_me: program exited with status $ac_status" >&5
18761 echo "$as_me: failed program was:" >&5
18762 sed 's/^/| /' conftest.$ac_ext >&5
18763
18764 ( exit $ac_status )
18765 gl_cv_func_gnu_getopt=no
18766 fi
18767 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18768 fi
18769
18770
18771 fi
18772 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
18773 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
18774 if test "$gl_cv_func_gnu_getopt" = "no"; then
18775 GETOPT_H=getopt.h
18776 fi
18777 fi
18778
18779
18780
18781 if test -n "$GETOPT_H"; then
18782
18783
18784 GETOPT_H=getopt.h
18785
18786 cat >>confdefs.h <<\_ACEOF
18787 #define __GETOPT_PREFIX rpl_
18788 _ACEOF
18789
18790
18791
18792 :
18793 GETOPTOBJS='getopt.o getopt1.o'
18794
18795 fi
18796
18797
18798
18799
18800 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
18801 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
18802 if test "${ac_cv_func_getpgrp_void+set}" = set; then
18803 echo $ECHO_N "(cached) $ECHO_C" >&6
18804 else
18805 # Use it with a single arg.
18806 cat >conftest.$ac_ext <<_ACEOF
18807 /* confdefs.h. */
18808 _ACEOF
18809 cat confdefs.h >>conftest.$ac_ext
18810 cat >>conftest.$ac_ext <<_ACEOF
18811 /* end confdefs.h. */
18812 $ac_includes_default
18813 int
18814 main ()
18815 {
18816 getpgrp (0);
18817 ;
18818 return 0;
18819 }
18820 _ACEOF
18821 rm -f conftest.$ac_objext
18822 if { (ac_try="$ac_compile"
18823 case "(($ac_try" in
18824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18825 *) ac_try_echo=$ac_try;;
18826 esac
18827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18828 (eval "$ac_compile") 2>conftest.er1
18829 ac_status=$?
18830 grep -v '^ *+' conftest.er1 >conftest.err
18831 rm -f conftest.er1
18832 cat conftest.err >&5
18833 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18834 (exit $ac_status); } && {
18835 test -z "$ac_c_werror_flag" ||
18836 test ! -s conftest.err
18837 } && test -s conftest.$ac_objext; then
18838 ac_cv_func_getpgrp_void=no
18839 else
18840 echo "$as_me: failed program was:" >&5
18841 sed 's/^/| /' conftest.$ac_ext >&5
18842
18843 ac_cv_func_getpgrp_void=yes
18844 fi
18845
18846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18847
18848 fi
18849 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
18850 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
18851 if test $ac_cv_func_getpgrp_void = yes; then
18852
18853 cat >>confdefs.h <<\_ACEOF
18854 #define GETPGRP_VOID 1
18855 _ACEOF
18856
18857 fi
18858
18859
18860
18861 for ac_func in strftime
18862 do
18863 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18864 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18865 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18866 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18867 echo $ECHO_N "(cached) $ECHO_C" >&6
18868 else
18869 cat >conftest.$ac_ext <<_ACEOF
18870 /* confdefs.h. */
18871 _ACEOF
18872 cat confdefs.h >>conftest.$ac_ext
18873 cat >>conftest.$ac_ext <<_ACEOF
18874 /* end confdefs.h. */
18875 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18876 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18877 #define $ac_func innocuous_$ac_func
18878
18879 /* System header to define __stub macros and hopefully few prototypes,
18880 which can conflict with char $ac_func (); below.
18881 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18882 <limits.h> exists even on freestanding compilers. */
18883
18884 #ifdef __STDC__
18885 # include <limits.h>
18886 #else
18887 # include <assert.h>
18888 #endif
18889
18890 #undef $ac_func
18891
18892 /* Override any GCC internal prototype to avoid an error.
18893 Use char because int might match the return type of a GCC
18894 builtin and then its argument prototype would still apply. */
18895 #ifdef __cplusplus
18896 extern "C"
18897 #endif
18898 char $ac_func ();
18899 /* The GNU C library defines this for functions which it implements
18900 to always fail with ENOSYS. Some functions are actually named
18901 something starting with __ and the normal name is an alias. */
18902 #if defined __stub_$ac_func || defined __stub___$ac_func
18903 choke me
18904 #endif
18905
18906 int
18907 main ()
18908 {
18909 return $ac_func ();
18910 ;
18911 return 0;
18912 }
18913 _ACEOF
18914 rm -f conftest.$ac_objext conftest$ac_exeext
18915 if { (ac_try="$ac_link"
18916 case "(($ac_try" in
18917 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18918 *) ac_try_echo=$ac_try;;
18919 esac
18920 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18921 (eval "$ac_link") 2>conftest.er1
18922 ac_status=$?
18923 grep -v '^ *+' conftest.er1 >conftest.err
18924 rm -f conftest.er1
18925 cat conftest.err >&5
18926 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18927 (exit $ac_status); } && {
18928 test -z "$ac_c_werror_flag" ||
18929 test ! -s conftest.err
18930 } && test -s conftest$ac_exeext &&
18931 $as_test_x conftest$ac_exeext; then
18932 eval "$as_ac_var=yes"
18933 else
18934 echo "$as_me: failed program was:" >&5
18935 sed 's/^/| /' conftest.$ac_ext >&5
18936
18937 eval "$as_ac_var=no"
18938 fi
18939
18940 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18941 conftest$ac_exeext conftest.$ac_ext
18942 fi
18943 ac_res=`eval echo '${'$as_ac_var'}'`
18944 { echo "$as_me:$LINENO: result: $ac_res" >&5
18945 echo "${ECHO_T}$ac_res" >&6; }
18946 if test `eval echo '${'$as_ac_var'}'` = yes; then
18947 cat >>confdefs.h <<_ACEOF
18948 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18949 _ACEOF
18950
18951 else
18952 # strftime is in -lintl on SCO UNIX.
18953 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
18954 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
18955 if test "${ac_cv_lib_intl_strftime+set}" = set; then
18956 echo $ECHO_N "(cached) $ECHO_C" >&6
18957 else
18958 ac_check_lib_save_LIBS=$LIBS
18959 LIBS="-lintl $LIBS"
18960 cat >conftest.$ac_ext <<_ACEOF
18961 /* confdefs.h. */
18962 _ACEOF
18963 cat confdefs.h >>conftest.$ac_ext
18964 cat >>conftest.$ac_ext <<_ACEOF
18965 /* end confdefs.h. */
18966
18967 /* Override any GCC internal prototype to avoid an error.
18968 Use char because int might match the return type of a GCC
18969 builtin and then its argument prototype would still apply. */
18970 #ifdef __cplusplus
18971 extern "C"
18972 #endif
18973 char strftime ();
18974 int
18975 main ()
18976 {
18977 return strftime ();
18978 ;
18979 return 0;
18980 }
18981 _ACEOF
18982 rm -f conftest.$ac_objext conftest$ac_exeext
18983 if { (ac_try="$ac_link"
18984 case "(($ac_try" in
18985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18986 *) ac_try_echo=$ac_try;;
18987 esac
18988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18989 (eval "$ac_link") 2>conftest.er1
18990 ac_status=$?
18991 grep -v '^ *+' conftest.er1 >conftest.err
18992 rm -f conftest.er1
18993 cat conftest.err >&5
18994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995 (exit $ac_status); } && {
18996 test -z "$ac_c_werror_flag" ||
18997 test ! -s conftest.err
18998 } && test -s conftest$ac_exeext &&
18999 $as_test_x conftest$ac_exeext; then
19000 ac_cv_lib_intl_strftime=yes
19001 else
19002 echo "$as_me: failed program was:" >&5
19003 sed 's/^/| /' conftest.$ac_ext >&5
19004
19005 ac_cv_lib_intl_strftime=no
19006 fi
19007
19008 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19009 conftest$ac_exeext conftest.$ac_ext
19010 LIBS=$ac_check_lib_save_LIBS
19011 fi
19012 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19013 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19014 if test $ac_cv_lib_intl_strftime = yes; then
19015 cat >>confdefs.h <<\_ACEOF
19016 #define HAVE_STRFTIME 1
19017 _ACEOF
19018
19019 LIBS="-lintl $LIBS"
19020 fi
19021
19022 fi
19023 done
19024
19025
19026 # UNIX98 PTYs.
19027
19028 for ac_func in grantpt
19029 do
19030 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19031 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19032 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19033 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19034 echo $ECHO_N "(cached) $ECHO_C" >&6
19035 else
19036 cat >conftest.$ac_ext <<_ACEOF
19037 /* confdefs.h. */
19038 _ACEOF
19039 cat confdefs.h >>conftest.$ac_ext
19040 cat >>conftest.$ac_ext <<_ACEOF
19041 /* end confdefs.h. */
19042 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19043 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19044 #define $ac_func innocuous_$ac_func
19045
19046 /* System header to define __stub macros and hopefully few prototypes,
19047 which can conflict with char $ac_func (); below.
19048 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19049 <limits.h> exists even on freestanding compilers. */
19050
19051 #ifdef __STDC__
19052 # include <limits.h>
19053 #else
19054 # include <assert.h>
19055 #endif
19056
19057 #undef $ac_func
19058
19059 /* Override any GCC internal prototype to avoid an error.
19060 Use char because int might match the return type of a GCC
19061 builtin and then its argument prototype would still apply. */
19062 #ifdef __cplusplus
19063 extern "C"
19064 #endif
19065 char $ac_func ();
19066 /* The GNU C library defines this for functions which it implements
19067 to always fail with ENOSYS. Some functions are actually named
19068 something starting with __ and the normal name is an alias. */
19069 #if defined __stub_$ac_func || defined __stub___$ac_func
19070 choke me
19071 #endif
19072
19073 int
19074 main ()
19075 {
19076 return $ac_func ();
19077 ;
19078 return 0;
19079 }
19080 _ACEOF
19081 rm -f conftest.$ac_objext conftest$ac_exeext
19082 if { (ac_try="$ac_link"
19083 case "(($ac_try" in
19084 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19085 *) ac_try_echo=$ac_try;;
19086 esac
19087 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19088 (eval "$ac_link") 2>conftest.er1
19089 ac_status=$?
19090 grep -v '^ *+' conftest.er1 >conftest.err
19091 rm -f conftest.er1
19092 cat conftest.err >&5
19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094 (exit $ac_status); } && {
19095 test -z "$ac_c_werror_flag" ||
19096 test ! -s conftest.err
19097 } && test -s conftest$ac_exeext &&
19098 $as_test_x conftest$ac_exeext; then
19099 eval "$as_ac_var=yes"
19100 else
19101 echo "$as_me: failed program was:" >&5
19102 sed 's/^/| /' conftest.$ac_ext >&5
19103
19104 eval "$as_ac_var=no"
19105 fi
19106
19107 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19108 conftest$ac_exeext conftest.$ac_ext
19109 fi
19110 ac_res=`eval echo '${'$as_ac_var'}'`
19111 { echo "$as_me:$LINENO: result: $ac_res" >&5
19112 echo "${ECHO_T}$ac_res" >&6; }
19113 if test `eval echo '${'$as_ac_var'}'` = yes; then
19114 cat >>confdefs.h <<_ACEOF
19115 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19116 _ACEOF
19117
19118 fi
19119 done
19120
19121
19122 # PTY-related GNU extensions.
19123
19124 for ac_func in getpt
19125 do
19126 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19127 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19128 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19129 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19130 echo $ECHO_N "(cached) $ECHO_C" >&6
19131 else
19132 cat >conftest.$ac_ext <<_ACEOF
19133 /* confdefs.h. */
19134 _ACEOF
19135 cat confdefs.h >>conftest.$ac_ext
19136 cat >>conftest.$ac_ext <<_ACEOF
19137 /* end confdefs.h. */
19138 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19139 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19140 #define $ac_func innocuous_$ac_func
19141
19142 /* System header to define __stub macros and hopefully few prototypes,
19143 which can conflict with char $ac_func (); below.
19144 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19145 <limits.h> exists even on freestanding compilers. */
19146
19147 #ifdef __STDC__
19148 # include <limits.h>
19149 #else
19150 # include <assert.h>
19151 #endif
19152
19153 #undef $ac_func
19154
19155 /* Override any GCC internal prototype to avoid an error.
19156 Use char because int might match the return type of a GCC
19157 builtin and then its argument prototype would still apply. */
19158 #ifdef __cplusplus
19159 extern "C"
19160 #endif
19161 char $ac_func ();
19162 /* The GNU C library defines this for functions which it implements
19163 to always fail with ENOSYS. Some functions are actually named
19164 something starting with __ and the normal name is an alias. */
19165 #if defined __stub_$ac_func || defined __stub___$ac_func
19166 choke me
19167 #endif
19168
19169 int
19170 main ()
19171 {
19172 return $ac_func ();
19173 ;
19174 return 0;
19175 }
19176 _ACEOF
19177 rm -f conftest.$ac_objext conftest$ac_exeext
19178 if { (ac_try="$ac_link"
19179 case "(($ac_try" in
19180 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19181 *) ac_try_echo=$ac_try;;
19182 esac
19183 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19184 (eval "$ac_link") 2>conftest.er1
19185 ac_status=$?
19186 grep -v '^ *+' conftest.er1 >conftest.err
19187 rm -f conftest.er1
19188 cat conftest.err >&5
19189 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19190 (exit $ac_status); } && {
19191 test -z "$ac_c_werror_flag" ||
19192 test ! -s conftest.err
19193 } && test -s conftest$ac_exeext &&
19194 $as_test_x conftest$ac_exeext; then
19195 eval "$as_ac_var=yes"
19196 else
19197 echo "$as_me: failed program was:" >&5
19198 sed 's/^/| /' conftest.$ac_ext >&5
19199
19200 eval "$as_ac_var=no"
19201 fi
19202
19203 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19204 conftest$ac_exeext conftest.$ac_ext
19205 fi
19206 ac_res=`eval echo '${'$as_ac_var'}'`
19207 { echo "$as_me:$LINENO: result: $ac_res" >&5
19208 echo "${ECHO_T}$ac_res" >&6; }
19209 if test `eval echo '${'$as_ac_var'}'` = yes; then
19210 cat >>confdefs.h <<_ACEOF
19211 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19212 _ACEOF
19213
19214 fi
19215 done
19216
19217
19218 # Check this now, so that we will NOT find the above functions in ncurses.
19219 # That is because we have not set up to link ncurses in lib-src.
19220 # It's better to believe a function is not available
19221 # than to expect to find it in ncurses.
19222
19223 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19224 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19225 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19226 echo $ECHO_N "(cached) $ECHO_C" >&6
19227 else
19228 ac_check_lib_save_LIBS=$LIBS
19229 LIBS="-lncurses $LIBS"
19230 cat >conftest.$ac_ext <<_ACEOF
19231 /* confdefs.h. */
19232 _ACEOF
19233 cat confdefs.h >>conftest.$ac_ext
19234 cat >>conftest.$ac_ext <<_ACEOF
19235 /* end confdefs.h. */
19236
19237 /* Override any GCC internal prototype to avoid an error.
19238 Use char because int might match the return type of a GCC
19239 builtin and then its argument prototype would still apply. */
19240 #ifdef __cplusplus
19241 extern "C"
19242 #endif
19243 char tparm ();
19244 int
19245 main ()
19246 {
19247 return tparm ();
19248 ;
19249 return 0;
19250 }
19251 _ACEOF
19252 rm -f conftest.$ac_objext conftest$ac_exeext
19253 if { (ac_try="$ac_link"
19254 case "(($ac_try" in
19255 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19256 *) ac_try_echo=$ac_try;;
19257 esac
19258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19259 (eval "$ac_link") 2>conftest.er1
19260 ac_status=$?
19261 grep -v '^ *+' conftest.er1 >conftest.err
19262 rm -f conftest.er1
19263 cat conftest.err >&5
19264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19265 (exit $ac_status); } && {
19266 test -z "$ac_c_werror_flag" ||
19267 test ! -s conftest.err
19268 } && test -s conftest$ac_exeext &&
19269 $as_test_x conftest$ac_exeext; then
19270 ac_cv_lib_ncurses_tparm=yes
19271 else
19272 echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275 ac_cv_lib_ncurses_tparm=no
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19279 conftest$ac_exeext conftest.$ac_ext
19280 LIBS=$ac_check_lib_save_LIBS
19281 fi
19282 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19283 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19284 if test $ac_cv_lib_ncurses_tparm = yes; then
19285 cat >>confdefs.h <<_ACEOF
19286 #define HAVE_LIBNCURSES 1
19287 _ACEOF
19288
19289 LIBS="-lncurses $LIBS"
19290
19291 fi
19292
19293
19294 # Do we need the Hesiod library to provide the support routines?
19295 if test "$with_hesiod" = yes ; then
19296 # Don't set $LIBS here -- see comments above.
19297 resolv=no
19298 { echo "$as_me:$LINENO: checking for res_send" >&5
19299 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19300 if test "${ac_cv_func_res_send+set}" = set; then
19301 echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303 cat >conftest.$ac_ext <<_ACEOF
19304 /* confdefs.h. */
19305 _ACEOF
19306 cat confdefs.h >>conftest.$ac_ext
19307 cat >>conftest.$ac_ext <<_ACEOF
19308 /* end confdefs.h. */
19309 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19310 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19311 #define res_send innocuous_res_send
19312
19313 /* System header to define __stub macros and hopefully few prototypes,
19314 which can conflict with char res_send (); below.
19315 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19316 <limits.h> exists even on freestanding compilers. */
19317
19318 #ifdef __STDC__
19319 # include <limits.h>
19320 #else
19321 # include <assert.h>
19322 #endif
19323
19324 #undef res_send
19325
19326 /* Override any GCC internal prototype to avoid an error.
19327 Use char because int might match the return type of a GCC
19328 builtin and then its argument prototype would still apply. */
19329 #ifdef __cplusplus
19330 extern "C"
19331 #endif
19332 char res_send ();
19333 /* The GNU C library defines this for functions which it implements
19334 to always fail with ENOSYS. Some functions are actually named
19335 something starting with __ and the normal name is an alias. */
19336 #if defined __stub_res_send || defined __stub___res_send
19337 choke me
19338 #endif
19339
19340 int
19341 main ()
19342 {
19343 return res_send ();
19344 ;
19345 return 0;
19346 }
19347 _ACEOF
19348 rm -f conftest.$ac_objext conftest$ac_exeext
19349 if { (ac_try="$ac_link"
19350 case "(($ac_try" in
19351 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19352 *) ac_try_echo=$ac_try;;
19353 esac
19354 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19355 (eval "$ac_link") 2>conftest.er1
19356 ac_status=$?
19357 grep -v '^ *+' conftest.er1 >conftest.err
19358 rm -f conftest.er1
19359 cat conftest.err >&5
19360 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19361 (exit $ac_status); } && {
19362 test -z "$ac_c_werror_flag" ||
19363 test ! -s conftest.err
19364 } && test -s conftest$ac_exeext &&
19365 $as_test_x conftest$ac_exeext; then
19366 ac_cv_func_res_send=yes
19367 else
19368 echo "$as_me: failed program was:" >&5
19369 sed 's/^/| /' conftest.$ac_ext >&5
19370
19371 ac_cv_func_res_send=no
19372 fi
19373
19374 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19375 conftest$ac_exeext conftest.$ac_ext
19376 fi
19377 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19378 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19379 if test $ac_cv_func_res_send = yes; then
19380 :
19381 else
19382 { echo "$as_me:$LINENO: checking for __res_send" >&5
19383 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19384 if test "${ac_cv_func___res_send+set}" = set; then
19385 echo $ECHO_N "(cached) $ECHO_C" >&6
19386 else
19387 cat >conftest.$ac_ext <<_ACEOF
19388 /* confdefs.h. */
19389 _ACEOF
19390 cat confdefs.h >>conftest.$ac_ext
19391 cat >>conftest.$ac_ext <<_ACEOF
19392 /* end confdefs.h. */
19393 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19394 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19395 #define __res_send innocuous___res_send
19396
19397 /* System header to define __stub macros and hopefully few prototypes,
19398 which can conflict with char __res_send (); below.
19399 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19400 <limits.h> exists even on freestanding compilers. */
19401
19402 #ifdef __STDC__
19403 # include <limits.h>
19404 #else
19405 # include <assert.h>
19406 #endif
19407
19408 #undef __res_send
19409
19410 /* Override any GCC internal prototype to avoid an error.
19411 Use char because int might match the return type of a GCC
19412 builtin and then its argument prototype would still apply. */
19413 #ifdef __cplusplus
19414 extern "C"
19415 #endif
19416 char __res_send ();
19417 /* The GNU C library defines this for functions which it implements
19418 to always fail with ENOSYS. Some functions are actually named
19419 something starting with __ and the normal name is an alias. */
19420 #if defined __stub___res_send || defined __stub_____res_send
19421 choke me
19422 #endif
19423
19424 int
19425 main ()
19426 {
19427 return __res_send ();
19428 ;
19429 return 0;
19430 }
19431 _ACEOF
19432 rm -f conftest.$ac_objext conftest$ac_exeext
19433 if { (ac_try="$ac_link"
19434 case "(($ac_try" in
19435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19436 *) ac_try_echo=$ac_try;;
19437 esac
19438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19439 (eval "$ac_link") 2>conftest.er1
19440 ac_status=$?
19441 grep -v '^ *+' conftest.er1 >conftest.err
19442 rm -f conftest.er1
19443 cat conftest.err >&5
19444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19445 (exit $ac_status); } && {
19446 test -z "$ac_c_werror_flag" ||
19447 test ! -s conftest.err
19448 } && test -s conftest$ac_exeext &&
19449 $as_test_x conftest$ac_exeext; then
19450 ac_cv_func___res_send=yes
19451 else
19452 echo "$as_me: failed program was:" >&5
19453 sed 's/^/| /' conftest.$ac_ext >&5
19454
19455 ac_cv_func___res_send=no
19456 fi
19457
19458 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19459 conftest$ac_exeext conftest.$ac_ext
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19462 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19463 if test $ac_cv_func___res_send = yes; then
19464 :
19465 else
19466 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19467 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19468 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19469 echo $ECHO_N "(cached) $ECHO_C" >&6
19470 else
19471 ac_check_lib_save_LIBS=$LIBS
19472 LIBS="-lresolv $LIBS"
19473 cat >conftest.$ac_ext <<_ACEOF
19474 /* confdefs.h. */
19475 _ACEOF
19476 cat confdefs.h >>conftest.$ac_ext
19477 cat >>conftest.$ac_ext <<_ACEOF
19478 /* end confdefs.h. */
19479
19480 /* Override any GCC internal prototype to avoid an error.
19481 Use char because int might match the return type of a GCC
19482 builtin and then its argument prototype would still apply. */
19483 #ifdef __cplusplus
19484 extern "C"
19485 #endif
19486 char res_send ();
19487 int
19488 main ()
19489 {
19490 return res_send ();
19491 ;
19492 return 0;
19493 }
19494 _ACEOF
19495 rm -f conftest.$ac_objext conftest$ac_exeext
19496 if { (ac_try="$ac_link"
19497 case "(($ac_try" in
19498 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19499 *) ac_try_echo=$ac_try;;
19500 esac
19501 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19502 (eval "$ac_link") 2>conftest.er1
19503 ac_status=$?
19504 grep -v '^ *+' conftest.er1 >conftest.err
19505 rm -f conftest.er1
19506 cat conftest.err >&5
19507 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19508 (exit $ac_status); } && {
19509 test -z "$ac_c_werror_flag" ||
19510 test ! -s conftest.err
19511 } && test -s conftest$ac_exeext &&
19512 $as_test_x conftest$ac_exeext; then
19513 ac_cv_lib_resolv_res_send=yes
19514 else
19515 echo "$as_me: failed program was:" >&5
19516 sed 's/^/| /' conftest.$ac_ext >&5
19517
19518 ac_cv_lib_resolv_res_send=no
19519 fi
19520
19521 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19522 conftest$ac_exeext conftest.$ac_ext
19523 LIBS=$ac_check_lib_save_LIBS
19524 fi
19525 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
19526 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
19527 if test $ac_cv_lib_resolv_res_send = yes; then
19528 resolv=yes
19529 else
19530 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
19531 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
19532 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
19533 echo $ECHO_N "(cached) $ECHO_C" >&6
19534 else
19535 ac_check_lib_save_LIBS=$LIBS
19536 LIBS="-lresolv $LIBS"
19537 cat >conftest.$ac_ext <<_ACEOF
19538 /* confdefs.h. */
19539 _ACEOF
19540 cat confdefs.h >>conftest.$ac_ext
19541 cat >>conftest.$ac_ext <<_ACEOF
19542 /* end confdefs.h. */
19543
19544 /* Override any GCC internal prototype to avoid an error.
19545 Use char because int might match the return type of a GCC
19546 builtin and then its argument prototype would still apply. */
19547 #ifdef __cplusplus
19548 extern "C"
19549 #endif
19550 char __res_send ();
19551 int
19552 main ()
19553 {
19554 return __res_send ();
19555 ;
19556 return 0;
19557 }
19558 _ACEOF
19559 rm -f conftest.$ac_objext conftest$ac_exeext
19560 if { (ac_try="$ac_link"
19561 case "(($ac_try" in
19562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19563 *) ac_try_echo=$ac_try;;
19564 esac
19565 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19566 (eval "$ac_link") 2>conftest.er1
19567 ac_status=$?
19568 grep -v '^ *+' conftest.er1 >conftest.err
19569 rm -f conftest.er1
19570 cat conftest.err >&5
19571 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19572 (exit $ac_status); } && {
19573 test -z "$ac_c_werror_flag" ||
19574 test ! -s conftest.err
19575 } && test -s conftest$ac_exeext &&
19576 $as_test_x conftest$ac_exeext; then
19577 ac_cv_lib_resolv___res_send=yes
19578 else
19579 echo "$as_me: failed program was:" >&5
19580 sed 's/^/| /' conftest.$ac_ext >&5
19581
19582 ac_cv_lib_resolv___res_send=no
19583 fi
19584
19585 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19586 conftest$ac_exeext conftest.$ac_ext
19587 LIBS=$ac_check_lib_save_LIBS
19588 fi
19589 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
19590 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
19591 if test $ac_cv_lib_resolv___res_send = yes; then
19592 resolv=yes
19593 fi
19594
19595 fi
19596
19597 fi
19598
19599 fi
19600
19601 if test "$resolv" = yes ; then
19602 RESOLVLIB=-lresolv
19603
19604 cat >>confdefs.h <<\_ACEOF
19605 #define HAVE_LIBRESOLV 1
19606 _ACEOF
19607
19608 else
19609 RESOLVLIB=
19610 fi
19611 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
19612 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
19613 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
19614 echo $ECHO_N "(cached) $ECHO_C" >&6
19615 else
19616 cat >conftest.$ac_ext <<_ACEOF
19617 /* confdefs.h. */
19618 _ACEOF
19619 cat confdefs.h >>conftest.$ac_ext
19620 cat >>conftest.$ac_ext <<_ACEOF
19621 /* end confdefs.h. */
19622 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
19623 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19624 #define hes_getmailhost innocuous_hes_getmailhost
19625
19626 /* System header to define __stub macros and hopefully few prototypes,
19627 which can conflict with char hes_getmailhost (); below.
19628 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19629 <limits.h> exists even on freestanding compilers. */
19630
19631 #ifdef __STDC__
19632 # include <limits.h>
19633 #else
19634 # include <assert.h>
19635 #endif
19636
19637 #undef hes_getmailhost
19638
19639 /* Override any GCC internal prototype to avoid an error.
19640 Use char because int might match the return type of a GCC
19641 builtin and then its argument prototype would still apply. */
19642 #ifdef __cplusplus
19643 extern "C"
19644 #endif
19645 char hes_getmailhost ();
19646 /* The GNU C library defines this for functions which it implements
19647 to always fail with ENOSYS. Some functions are actually named
19648 something starting with __ and the normal name is an alias. */
19649 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
19650 choke me
19651 #endif
19652
19653 int
19654 main ()
19655 {
19656 return hes_getmailhost ();
19657 ;
19658 return 0;
19659 }
19660 _ACEOF
19661 rm -f conftest.$ac_objext conftest$ac_exeext
19662 if { (ac_try="$ac_link"
19663 case "(($ac_try" in
19664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19665 *) ac_try_echo=$ac_try;;
19666 esac
19667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19668 (eval "$ac_link") 2>conftest.er1
19669 ac_status=$?
19670 grep -v '^ *+' conftest.er1 >conftest.err
19671 rm -f conftest.er1
19672 cat conftest.err >&5
19673 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19674 (exit $ac_status); } && {
19675 test -z "$ac_c_werror_flag" ||
19676 test ! -s conftest.err
19677 } && test -s conftest$ac_exeext &&
19678 $as_test_x conftest$ac_exeext; then
19679 ac_cv_func_hes_getmailhost=yes
19680 else
19681 echo "$as_me: failed program was:" >&5
19682 sed 's/^/| /' conftest.$ac_ext >&5
19683
19684 ac_cv_func_hes_getmailhost=no
19685 fi
19686
19687 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19688 conftest$ac_exeext conftest.$ac_ext
19689 fi
19690 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
19691 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
19692 if test $ac_cv_func_hes_getmailhost = yes; then
19693 :
19694 else
19695 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
19696 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
19697 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
19698 echo $ECHO_N "(cached) $ECHO_C" >&6
19699 else
19700 ac_check_lib_save_LIBS=$LIBS
19701 LIBS="-lhesiod $RESOLVLIB $LIBS"
19702 cat >conftest.$ac_ext <<_ACEOF
19703 /* confdefs.h. */
19704 _ACEOF
19705 cat confdefs.h >>conftest.$ac_ext
19706 cat >>conftest.$ac_ext <<_ACEOF
19707 /* end confdefs.h. */
19708
19709 /* Override any GCC internal prototype to avoid an error.
19710 Use char because int might match the return type of a GCC
19711 builtin and then its argument prototype would still apply. */
19712 #ifdef __cplusplus
19713 extern "C"
19714 #endif
19715 char hes_getmailhost ();
19716 int
19717 main ()
19718 {
19719 return hes_getmailhost ();
19720 ;
19721 return 0;
19722 }
19723 _ACEOF
19724 rm -f conftest.$ac_objext conftest$ac_exeext
19725 if { (ac_try="$ac_link"
19726 case "(($ac_try" in
19727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19728 *) ac_try_echo=$ac_try;;
19729 esac
19730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19731 (eval "$ac_link") 2>conftest.er1
19732 ac_status=$?
19733 grep -v '^ *+' conftest.er1 >conftest.err
19734 rm -f conftest.er1
19735 cat conftest.err >&5
19736 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19737 (exit $ac_status); } && {
19738 test -z "$ac_c_werror_flag" ||
19739 test ! -s conftest.err
19740 } && test -s conftest$ac_exeext &&
19741 $as_test_x conftest$ac_exeext; then
19742 ac_cv_lib_hesiod_hes_getmailhost=yes
19743 else
19744 echo "$as_me: failed program was:" >&5
19745 sed 's/^/| /' conftest.$ac_ext >&5
19746
19747 ac_cv_lib_hesiod_hes_getmailhost=no
19748 fi
19749
19750 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19751 conftest$ac_exeext conftest.$ac_ext
19752 LIBS=$ac_check_lib_save_LIBS
19753 fi
19754 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
19755 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
19756 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
19757
19758 cat >>confdefs.h <<\_ACEOF
19759 #define HAVE_LIBHESIOD 1
19760 _ACEOF
19761
19762 else
19763 :
19764 fi
19765
19766 fi
19767
19768 fi
19769
19770 # These tell us which Kerberos-related libraries to use.
19771 if test "${with_kerberos+set}" = set; then
19772
19773 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
19774 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
19775 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
19776 echo $ECHO_N "(cached) $ECHO_C" >&6
19777 else
19778 ac_check_lib_save_LIBS=$LIBS
19779 LIBS="-lcom_err $LIBS"
19780 cat >conftest.$ac_ext <<_ACEOF
19781 /* confdefs.h. */
19782 _ACEOF
19783 cat confdefs.h >>conftest.$ac_ext
19784 cat >>conftest.$ac_ext <<_ACEOF
19785 /* end confdefs.h. */
19786
19787 /* Override any GCC internal prototype to avoid an error.
19788 Use char because int might match the return type of a GCC
19789 builtin and then its argument prototype would still apply. */
19790 #ifdef __cplusplus
19791 extern "C"
19792 #endif
19793 char com_err ();
19794 int
19795 main ()
19796 {
19797 return com_err ();
19798 ;
19799 return 0;
19800 }
19801 _ACEOF
19802 rm -f conftest.$ac_objext conftest$ac_exeext
19803 if { (ac_try="$ac_link"
19804 case "(($ac_try" in
19805 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19806 *) ac_try_echo=$ac_try;;
19807 esac
19808 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19809 (eval "$ac_link") 2>conftest.er1
19810 ac_status=$?
19811 grep -v '^ *+' conftest.er1 >conftest.err
19812 rm -f conftest.er1
19813 cat conftest.err >&5
19814 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19815 (exit $ac_status); } && {
19816 test -z "$ac_c_werror_flag" ||
19817 test ! -s conftest.err
19818 } && test -s conftest$ac_exeext &&
19819 $as_test_x conftest$ac_exeext; then
19820 ac_cv_lib_com_err_com_err=yes
19821 else
19822 echo "$as_me: failed program was:" >&5
19823 sed 's/^/| /' conftest.$ac_ext >&5
19824
19825 ac_cv_lib_com_err_com_err=no
19826 fi
19827
19828 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19829 conftest$ac_exeext conftest.$ac_ext
19830 LIBS=$ac_check_lib_save_LIBS
19831 fi
19832 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
19833 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
19834 if test $ac_cv_lib_com_err_com_err = yes; then
19835 cat >>confdefs.h <<_ACEOF
19836 #define HAVE_LIBCOM_ERR 1
19837 _ACEOF
19838
19839 LIBS="-lcom_err $LIBS"
19840
19841 fi
19842
19843
19844 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
19845 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
19846 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
19847 echo $ECHO_N "(cached) $ECHO_C" >&6
19848 else
19849 ac_check_lib_save_LIBS=$LIBS
19850 LIBS="-lk5crypto $LIBS"
19851 cat >conftest.$ac_ext <<_ACEOF
19852 /* confdefs.h. */
19853 _ACEOF
19854 cat confdefs.h >>conftest.$ac_ext
19855 cat >>conftest.$ac_ext <<_ACEOF
19856 /* end confdefs.h. */
19857
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char mit_des_cbc_encrypt ();
19865 int
19866 main ()
19867 {
19868 return mit_des_cbc_encrypt ();
19869 ;
19870 return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877 *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880 (eval "$ac_link") 2>conftest.er1
19881 ac_status=$?
19882 grep -v '^ *+' conftest.er1 >conftest.err
19883 rm -f conftest.er1
19884 cat conftest.err >&5
19885 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886 (exit $ac_status); } && {
19887 test -z "$ac_c_werror_flag" ||
19888 test ! -s conftest.err
19889 } && test -s conftest$ac_exeext &&
19890 $as_test_x conftest$ac_exeext; then
19891 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
19892 else
19893 echo "$as_me: failed program was:" >&5
19894 sed 's/^/| /' conftest.$ac_ext >&5
19895
19896 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
19897 fi
19898
19899 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19900 conftest$ac_exeext conftest.$ac_ext
19901 LIBS=$ac_check_lib_save_LIBS
19902 fi
19903 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
19904 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
19905 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
19906 cat >>confdefs.h <<_ACEOF
19907 #define HAVE_LIBK5CRYPTO 1
19908 _ACEOF
19909
19910 LIBS="-lk5crypto $LIBS"
19911
19912 fi
19913
19914
19915 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
19916 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
19917 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
19918 echo $ECHO_N "(cached) $ECHO_C" >&6
19919 else
19920 ac_check_lib_save_LIBS=$LIBS
19921 LIBS="-lcrypto $LIBS"
19922 cat >conftest.$ac_ext <<_ACEOF
19923 /* confdefs.h. */
19924 _ACEOF
19925 cat confdefs.h >>conftest.$ac_ext
19926 cat >>conftest.$ac_ext <<_ACEOF
19927 /* end confdefs.h. */
19928
19929 /* Override any GCC internal prototype to avoid an error.
19930 Use char because int might match the return type of a GCC
19931 builtin and then its argument prototype would still apply. */
19932 #ifdef __cplusplus
19933 extern "C"
19934 #endif
19935 char mit_des_cbc_encrypt ();
19936 int
19937 main ()
19938 {
19939 return mit_des_cbc_encrypt ();
19940 ;
19941 return 0;
19942 }
19943 _ACEOF
19944 rm -f conftest.$ac_objext conftest$ac_exeext
19945 if { (ac_try="$ac_link"
19946 case "(($ac_try" in
19947 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19948 *) ac_try_echo=$ac_try;;
19949 esac
19950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19951 (eval "$ac_link") 2>conftest.er1
19952 ac_status=$?
19953 grep -v '^ *+' conftest.er1 >conftest.err
19954 rm -f conftest.er1
19955 cat conftest.err >&5
19956 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19957 (exit $ac_status); } && {
19958 test -z "$ac_c_werror_flag" ||
19959 test ! -s conftest.err
19960 } && test -s conftest$ac_exeext &&
19961 $as_test_x conftest$ac_exeext; then
19962 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
19963 else
19964 echo "$as_me: failed program was:" >&5
19965 sed 's/^/| /' conftest.$ac_ext >&5
19966
19967 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
19968 fi
19969
19970 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19971 conftest$ac_exeext conftest.$ac_ext
19972 LIBS=$ac_check_lib_save_LIBS
19973 fi
19974 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
19975 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
19976 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
19977 cat >>confdefs.h <<_ACEOF
19978 #define HAVE_LIBCRYPTO 1
19979 _ACEOF
19980
19981 LIBS="-lcrypto $LIBS"
19982
19983 fi
19984
19985
19986 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
19987 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
19988 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
19989 echo $ECHO_N "(cached) $ECHO_C" >&6
19990 else
19991 ac_check_lib_save_LIBS=$LIBS
19992 LIBS="-lkrb5 $LIBS"
19993 cat >conftest.$ac_ext <<_ACEOF
19994 /* confdefs.h. */
19995 _ACEOF
19996 cat confdefs.h >>conftest.$ac_ext
19997 cat >>conftest.$ac_ext <<_ACEOF
19998 /* end confdefs.h. */
19999
20000 /* Override any GCC internal prototype to avoid an error.
20001 Use char because int might match the return type of a GCC
20002 builtin and then its argument prototype would still apply. */
20003 #ifdef __cplusplus
20004 extern "C"
20005 #endif
20006 char krb5_init_context ();
20007 int
20008 main ()
20009 {
20010 return krb5_init_context ();
20011 ;
20012 return 0;
20013 }
20014 _ACEOF
20015 rm -f conftest.$ac_objext conftest$ac_exeext
20016 if { (ac_try="$ac_link"
20017 case "(($ac_try" in
20018 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20019 *) ac_try_echo=$ac_try;;
20020 esac
20021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20022 (eval "$ac_link") 2>conftest.er1
20023 ac_status=$?
20024 grep -v '^ *+' conftest.er1 >conftest.err
20025 rm -f conftest.er1
20026 cat conftest.err >&5
20027 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20028 (exit $ac_status); } && {
20029 test -z "$ac_c_werror_flag" ||
20030 test ! -s conftest.err
20031 } && test -s conftest$ac_exeext &&
20032 $as_test_x conftest$ac_exeext; then
20033 ac_cv_lib_krb5_krb5_init_context=yes
20034 else
20035 echo "$as_me: failed program was:" >&5
20036 sed 's/^/| /' conftest.$ac_ext >&5
20037
20038 ac_cv_lib_krb5_krb5_init_context=no
20039 fi
20040
20041 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20042 conftest$ac_exeext conftest.$ac_ext
20043 LIBS=$ac_check_lib_save_LIBS
20044 fi
20045 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20046 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20047 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20048 cat >>confdefs.h <<_ACEOF
20049 #define HAVE_LIBKRB5 1
20050 _ACEOF
20051
20052 LIBS="-lkrb5 $LIBS"
20053
20054 fi
20055
20056 if test "${with_kerberos5+set}" != set; then
20057
20058 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20059 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20060 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20061 echo $ECHO_N "(cached) $ECHO_C" >&6
20062 else
20063 ac_check_lib_save_LIBS=$LIBS
20064 LIBS="-ldes425 $LIBS"
20065 cat >conftest.$ac_ext <<_ACEOF
20066 /* confdefs.h. */
20067 _ACEOF
20068 cat confdefs.h >>conftest.$ac_ext
20069 cat >>conftest.$ac_ext <<_ACEOF
20070 /* end confdefs.h. */
20071
20072 /* Override any GCC internal prototype to avoid an error.
20073 Use char because int might match the return type of a GCC
20074 builtin and then its argument prototype would still apply. */
20075 #ifdef __cplusplus
20076 extern "C"
20077 #endif
20078 char des_cbc_encrypt ();
20079 int
20080 main ()
20081 {
20082 return des_cbc_encrypt ();
20083 ;
20084 return 0;
20085 }
20086 _ACEOF
20087 rm -f conftest.$ac_objext conftest$ac_exeext
20088 if { (ac_try="$ac_link"
20089 case "(($ac_try" in
20090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20091 *) ac_try_echo=$ac_try;;
20092 esac
20093 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20094 (eval "$ac_link") 2>conftest.er1
20095 ac_status=$?
20096 grep -v '^ *+' conftest.er1 >conftest.err
20097 rm -f conftest.er1
20098 cat conftest.err >&5
20099 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20100 (exit $ac_status); } && {
20101 test -z "$ac_c_werror_flag" ||
20102 test ! -s conftest.err
20103 } && test -s conftest$ac_exeext &&
20104 $as_test_x conftest$ac_exeext; then
20105 ac_cv_lib_des425_des_cbc_encrypt=yes
20106 else
20107 echo "$as_me: failed program was:" >&5
20108 sed 's/^/| /' conftest.$ac_ext >&5
20109
20110 ac_cv_lib_des425_des_cbc_encrypt=no
20111 fi
20112
20113 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20114 conftest$ac_exeext conftest.$ac_ext
20115 LIBS=$ac_check_lib_save_LIBS
20116 fi
20117 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20118 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20119 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20120 cat >>confdefs.h <<_ACEOF
20121 #define HAVE_LIBDES425 1
20122 _ACEOF
20123
20124 LIBS="-ldes425 $LIBS"
20125
20126 else
20127
20128 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20129 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20130 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20131 echo $ECHO_N "(cached) $ECHO_C" >&6
20132 else
20133 ac_check_lib_save_LIBS=$LIBS
20134 LIBS="-ldes $LIBS"
20135 cat >conftest.$ac_ext <<_ACEOF
20136 /* confdefs.h. */
20137 _ACEOF
20138 cat confdefs.h >>conftest.$ac_ext
20139 cat >>conftest.$ac_ext <<_ACEOF
20140 /* end confdefs.h. */
20141
20142 /* Override any GCC internal prototype to avoid an error.
20143 Use char because int might match the return type of a GCC
20144 builtin and then its argument prototype would still apply. */
20145 #ifdef __cplusplus
20146 extern "C"
20147 #endif
20148 char des_cbc_encrypt ();
20149 int
20150 main ()
20151 {
20152 return des_cbc_encrypt ();
20153 ;
20154 return 0;
20155 }
20156 _ACEOF
20157 rm -f conftest.$ac_objext conftest$ac_exeext
20158 if { (ac_try="$ac_link"
20159 case "(($ac_try" in
20160 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20161 *) ac_try_echo=$ac_try;;
20162 esac
20163 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20164 (eval "$ac_link") 2>conftest.er1
20165 ac_status=$?
20166 grep -v '^ *+' conftest.er1 >conftest.err
20167 rm -f conftest.er1
20168 cat conftest.err >&5
20169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20170 (exit $ac_status); } && {
20171 test -z "$ac_c_werror_flag" ||
20172 test ! -s conftest.err
20173 } && test -s conftest$ac_exeext &&
20174 $as_test_x conftest$ac_exeext; then
20175 ac_cv_lib_des_des_cbc_encrypt=yes
20176 else
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 ac_cv_lib_des_des_cbc_encrypt=no
20181 fi
20182
20183 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20184 conftest$ac_exeext conftest.$ac_ext
20185 LIBS=$ac_check_lib_save_LIBS
20186 fi
20187 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20188 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20189 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20190 cat >>confdefs.h <<_ACEOF
20191 #define HAVE_LIBDES 1
20192 _ACEOF
20193
20194 LIBS="-ldes $LIBS"
20195
20196 fi
20197
20198 fi
20199
20200
20201 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20202 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20203 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20204 echo $ECHO_N "(cached) $ECHO_C" >&6
20205 else
20206 ac_check_lib_save_LIBS=$LIBS
20207 LIBS="-lkrb4 $LIBS"
20208 cat >conftest.$ac_ext <<_ACEOF
20209 /* confdefs.h. */
20210 _ACEOF
20211 cat confdefs.h >>conftest.$ac_ext
20212 cat >>conftest.$ac_ext <<_ACEOF
20213 /* end confdefs.h. */
20214
20215 /* Override any GCC internal prototype to avoid an error.
20216 Use char because int might match the return type of a GCC
20217 builtin and then its argument prototype would still apply. */
20218 #ifdef __cplusplus
20219 extern "C"
20220 #endif
20221 char krb_get_cred ();
20222 int
20223 main ()
20224 {
20225 return krb_get_cred ();
20226 ;
20227 return 0;
20228 }
20229 _ACEOF
20230 rm -f conftest.$ac_objext conftest$ac_exeext
20231 if { (ac_try="$ac_link"
20232 case "(($ac_try" in
20233 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20234 *) ac_try_echo=$ac_try;;
20235 esac
20236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20237 (eval "$ac_link") 2>conftest.er1
20238 ac_status=$?
20239 grep -v '^ *+' conftest.er1 >conftest.err
20240 rm -f conftest.er1
20241 cat conftest.err >&5
20242 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20243 (exit $ac_status); } && {
20244 test -z "$ac_c_werror_flag" ||
20245 test ! -s conftest.err
20246 } && test -s conftest$ac_exeext &&
20247 $as_test_x conftest$ac_exeext; then
20248 ac_cv_lib_krb4_krb_get_cred=yes
20249 else
20250 echo "$as_me: failed program was:" >&5
20251 sed 's/^/| /' conftest.$ac_ext >&5
20252
20253 ac_cv_lib_krb4_krb_get_cred=no
20254 fi
20255
20256 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20257 conftest$ac_exeext conftest.$ac_ext
20258 LIBS=$ac_check_lib_save_LIBS
20259 fi
20260 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20261 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20262 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20263 cat >>confdefs.h <<_ACEOF
20264 #define HAVE_LIBKRB4 1
20265 _ACEOF
20266
20267 LIBS="-lkrb4 $LIBS"
20268
20269 else
20270
20271 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20272 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20273 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20274 echo $ECHO_N "(cached) $ECHO_C" >&6
20275 else
20276 ac_check_lib_save_LIBS=$LIBS
20277 LIBS="-lkrb $LIBS"
20278 cat >conftest.$ac_ext <<_ACEOF
20279 /* confdefs.h. */
20280 _ACEOF
20281 cat confdefs.h >>conftest.$ac_ext
20282 cat >>conftest.$ac_ext <<_ACEOF
20283 /* end confdefs.h. */
20284
20285 /* Override any GCC internal prototype to avoid an error.
20286 Use char because int might match the return type of a GCC
20287 builtin and then its argument prototype would still apply. */
20288 #ifdef __cplusplus
20289 extern "C"
20290 #endif
20291 char krb_get_cred ();
20292 int
20293 main ()
20294 {
20295 return krb_get_cred ();
20296 ;
20297 return 0;
20298 }
20299 _ACEOF
20300 rm -f conftest.$ac_objext conftest$ac_exeext
20301 if { (ac_try="$ac_link"
20302 case "(($ac_try" in
20303 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20304 *) ac_try_echo=$ac_try;;
20305 esac
20306 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20307 (eval "$ac_link") 2>conftest.er1
20308 ac_status=$?
20309 grep -v '^ *+' conftest.er1 >conftest.err
20310 rm -f conftest.er1
20311 cat conftest.err >&5
20312 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20313 (exit $ac_status); } && {
20314 test -z "$ac_c_werror_flag" ||
20315 test ! -s conftest.err
20316 } && test -s conftest$ac_exeext &&
20317 $as_test_x conftest$ac_exeext; then
20318 ac_cv_lib_krb_krb_get_cred=yes
20319 else
20320 echo "$as_me: failed program was:" >&5
20321 sed 's/^/| /' conftest.$ac_ext >&5
20322
20323 ac_cv_lib_krb_krb_get_cred=no
20324 fi
20325
20326 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20327 conftest$ac_exeext conftest.$ac_ext
20328 LIBS=$ac_check_lib_save_LIBS
20329 fi
20330 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20331 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20332 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20333 cat >>confdefs.h <<_ACEOF
20334 #define HAVE_LIBKRB 1
20335 _ACEOF
20336
20337 LIBS="-lkrb $LIBS"
20338
20339 fi
20340
20341 fi
20342
20343 fi
20344
20345 if test "${with_kerberos5+set}" = set; then
20346
20347 for ac_header in krb5.h
20348 do
20349 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20350 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20351 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20352 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20353 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20354 echo $ECHO_N "(cached) $ECHO_C" >&6
20355 fi
20356 ac_res=`eval echo '${'$as_ac_Header'}'`
20357 { echo "$as_me:$LINENO: result: $ac_res" >&5
20358 echo "${ECHO_T}$ac_res" >&6; }
20359 else
20360 # Is the header compilable?
20361 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20362 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20363 cat >conftest.$ac_ext <<_ACEOF
20364 /* confdefs.h. */
20365 _ACEOF
20366 cat confdefs.h >>conftest.$ac_ext
20367 cat >>conftest.$ac_ext <<_ACEOF
20368 /* end confdefs.h. */
20369 $ac_includes_default
20370 #include <$ac_header>
20371 _ACEOF
20372 rm -f conftest.$ac_objext
20373 if { (ac_try="$ac_compile"
20374 case "(($ac_try" in
20375 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20376 *) ac_try_echo=$ac_try;;
20377 esac
20378 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20379 (eval "$ac_compile") 2>conftest.er1
20380 ac_status=$?
20381 grep -v '^ *+' conftest.er1 >conftest.err
20382 rm -f conftest.er1
20383 cat conftest.err >&5
20384 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20385 (exit $ac_status); } && {
20386 test -z "$ac_c_werror_flag" ||
20387 test ! -s conftest.err
20388 } && test -s conftest.$ac_objext; then
20389 ac_header_compiler=yes
20390 else
20391 echo "$as_me: failed program was:" >&5
20392 sed 's/^/| /' conftest.$ac_ext >&5
20393
20394 ac_header_compiler=no
20395 fi
20396
20397 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20398 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20399 echo "${ECHO_T}$ac_header_compiler" >&6; }
20400
20401 # Is the header present?
20402 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20403 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20404 cat >conftest.$ac_ext <<_ACEOF
20405 /* confdefs.h. */
20406 _ACEOF
20407 cat confdefs.h >>conftest.$ac_ext
20408 cat >>conftest.$ac_ext <<_ACEOF
20409 /* end confdefs.h. */
20410 #include <$ac_header>
20411 _ACEOF
20412 if { (ac_try="$ac_cpp conftest.$ac_ext"
20413 case "(($ac_try" in
20414 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20415 *) ac_try_echo=$ac_try;;
20416 esac
20417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20418 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20419 ac_status=$?
20420 grep -v '^ *+' conftest.er1 >conftest.err
20421 rm -f conftest.er1
20422 cat conftest.err >&5
20423 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20424 (exit $ac_status); } >/dev/null && {
20425 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20426 test ! -s conftest.err
20427 }; then
20428 ac_header_preproc=yes
20429 else
20430 echo "$as_me: failed program was:" >&5
20431 sed 's/^/| /' conftest.$ac_ext >&5
20432
20433 ac_header_preproc=no
20434 fi
20435
20436 rm -f conftest.err conftest.$ac_ext
20437 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20438 echo "${ECHO_T}$ac_header_preproc" >&6; }
20439
20440 # So? What about this header?
20441 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20442 yes:no: )
20443 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20444 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20445 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20446 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20447 ac_header_preproc=yes
20448 ;;
20449 no:yes:* )
20450 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20451 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20452 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20453 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20454 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20455 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20456 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20457 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20458 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20459 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20460 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20461 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20462
20463 ;;
20464 esac
20465 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20466 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20467 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20468 echo $ECHO_N "(cached) $ECHO_C" >&6
20469 else
20470 eval "$as_ac_Header=\$ac_header_preproc"
20471 fi
20472 ac_res=`eval echo '${'$as_ac_Header'}'`
20473 { echo "$as_me:$LINENO: result: $ac_res" >&5
20474 echo "${ECHO_T}$ac_res" >&6; }
20475
20476 fi
20477 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20478 cat >>confdefs.h <<_ACEOF
20479 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20480 _ACEOF
20481
20482 fi
20483
20484 done
20485
20486 else
20487
20488 for ac_header in des.h
20489 do
20490 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20491 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20492 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20493 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20494 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20495 echo $ECHO_N "(cached) $ECHO_C" >&6
20496 fi
20497 ac_res=`eval echo '${'$as_ac_Header'}'`
20498 { echo "$as_me:$LINENO: result: $ac_res" >&5
20499 echo "${ECHO_T}$ac_res" >&6; }
20500 else
20501 # Is the header compilable?
20502 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20503 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20504 cat >conftest.$ac_ext <<_ACEOF
20505 /* confdefs.h. */
20506 _ACEOF
20507 cat confdefs.h >>conftest.$ac_ext
20508 cat >>conftest.$ac_ext <<_ACEOF
20509 /* end confdefs.h. */
20510 $ac_includes_default
20511 #include <$ac_header>
20512 _ACEOF
20513 rm -f conftest.$ac_objext
20514 if { (ac_try="$ac_compile"
20515 case "(($ac_try" in
20516 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20517 *) ac_try_echo=$ac_try;;
20518 esac
20519 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20520 (eval "$ac_compile") 2>conftest.er1
20521 ac_status=$?
20522 grep -v '^ *+' conftest.er1 >conftest.err
20523 rm -f conftest.er1
20524 cat conftest.err >&5
20525 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20526 (exit $ac_status); } && {
20527 test -z "$ac_c_werror_flag" ||
20528 test ! -s conftest.err
20529 } && test -s conftest.$ac_objext; then
20530 ac_header_compiler=yes
20531 else
20532 echo "$as_me: failed program was:" >&5
20533 sed 's/^/| /' conftest.$ac_ext >&5
20534
20535 ac_header_compiler=no
20536 fi
20537
20538 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20539 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20540 echo "${ECHO_T}$ac_header_compiler" >&6; }
20541
20542 # Is the header present?
20543 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20544 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20545 cat >conftest.$ac_ext <<_ACEOF
20546 /* confdefs.h. */
20547 _ACEOF
20548 cat confdefs.h >>conftest.$ac_ext
20549 cat >>conftest.$ac_ext <<_ACEOF
20550 /* end confdefs.h. */
20551 #include <$ac_header>
20552 _ACEOF
20553 if { (ac_try="$ac_cpp conftest.$ac_ext"
20554 case "(($ac_try" in
20555 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20556 *) ac_try_echo=$ac_try;;
20557 esac
20558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20560 ac_status=$?
20561 grep -v '^ *+' conftest.er1 >conftest.err
20562 rm -f conftest.er1
20563 cat conftest.err >&5
20564 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20565 (exit $ac_status); } >/dev/null && {
20566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20567 test ! -s conftest.err
20568 }; then
20569 ac_header_preproc=yes
20570 else
20571 echo "$as_me: failed program was:" >&5
20572 sed 's/^/| /' conftest.$ac_ext >&5
20573
20574 ac_header_preproc=no
20575 fi
20576
20577 rm -f conftest.err conftest.$ac_ext
20578 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20579 echo "${ECHO_T}$ac_header_preproc" >&6; }
20580
20581 # So? What about this header?
20582 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20583 yes:no: )
20584 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20585 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20587 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20588 ac_header_preproc=yes
20589 ;;
20590 no:yes:* )
20591 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20592 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20593 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20594 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20595 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20596 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20597 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20598 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20599 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20600 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20601 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20602 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20603
20604 ;;
20605 esac
20606 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20607 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20608 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20609 echo $ECHO_N "(cached) $ECHO_C" >&6
20610 else
20611 eval "$as_ac_Header=\$ac_header_preproc"
20612 fi
20613 ac_res=`eval echo '${'$as_ac_Header'}'`
20614 { echo "$as_me:$LINENO: result: $ac_res" >&5
20615 echo "${ECHO_T}$ac_res" >&6; }
20616
20617 fi
20618 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20619 cat >>confdefs.h <<_ACEOF
20620 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20621 _ACEOF
20622
20623 else
20624
20625 for ac_header in kerberosIV/des.h
20626 do
20627 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20628 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20629 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20630 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20631 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20632 echo $ECHO_N "(cached) $ECHO_C" >&6
20633 fi
20634 ac_res=`eval echo '${'$as_ac_Header'}'`
20635 { echo "$as_me:$LINENO: result: $ac_res" >&5
20636 echo "${ECHO_T}$ac_res" >&6; }
20637 else
20638 # Is the header compilable?
20639 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20640 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20641 cat >conftest.$ac_ext <<_ACEOF
20642 /* confdefs.h. */
20643 _ACEOF
20644 cat confdefs.h >>conftest.$ac_ext
20645 cat >>conftest.$ac_ext <<_ACEOF
20646 /* end confdefs.h. */
20647 $ac_includes_default
20648 #include <$ac_header>
20649 _ACEOF
20650 rm -f conftest.$ac_objext
20651 if { (ac_try="$ac_compile"
20652 case "(($ac_try" in
20653 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20654 *) ac_try_echo=$ac_try;;
20655 esac
20656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20657 (eval "$ac_compile") 2>conftest.er1
20658 ac_status=$?
20659 grep -v '^ *+' conftest.er1 >conftest.err
20660 rm -f conftest.er1
20661 cat conftest.err >&5
20662 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20663 (exit $ac_status); } && {
20664 test -z "$ac_c_werror_flag" ||
20665 test ! -s conftest.err
20666 } && test -s conftest.$ac_objext; then
20667 ac_header_compiler=yes
20668 else
20669 echo "$as_me: failed program was:" >&5
20670 sed 's/^/| /' conftest.$ac_ext >&5
20671
20672 ac_header_compiler=no
20673 fi
20674
20675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20676 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20677 echo "${ECHO_T}$ac_header_compiler" >&6; }
20678
20679 # Is the header present?
20680 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20681 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20682 cat >conftest.$ac_ext <<_ACEOF
20683 /* confdefs.h. */
20684 _ACEOF
20685 cat confdefs.h >>conftest.$ac_ext
20686 cat >>conftest.$ac_ext <<_ACEOF
20687 /* end confdefs.h. */
20688 #include <$ac_header>
20689 _ACEOF
20690 if { (ac_try="$ac_cpp conftest.$ac_ext"
20691 case "(($ac_try" in
20692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20693 *) ac_try_echo=$ac_try;;
20694 esac
20695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20696 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20697 ac_status=$?
20698 grep -v '^ *+' conftest.er1 >conftest.err
20699 rm -f conftest.er1
20700 cat conftest.err >&5
20701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20702 (exit $ac_status); } >/dev/null && {
20703 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20704 test ! -s conftest.err
20705 }; then
20706 ac_header_preproc=yes
20707 else
20708 echo "$as_me: failed program was:" >&5
20709 sed 's/^/| /' conftest.$ac_ext >&5
20710
20711 ac_header_preproc=no
20712 fi
20713
20714 rm -f conftest.err conftest.$ac_ext
20715 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20716 echo "${ECHO_T}$ac_header_preproc" >&6; }
20717
20718 # So? What about this header?
20719 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20720 yes:no: )
20721 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20722 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20723 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20724 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20725 ac_header_preproc=yes
20726 ;;
20727 no:yes:* )
20728 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20729 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20730 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20731 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20732 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20733 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20734 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20735 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20736 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20737 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20738 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20739 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20740
20741 ;;
20742 esac
20743 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20744 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20745 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20746 echo $ECHO_N "(cached) $ECHO_C" >&6
20747 else
20748 eval "$as_ac_Header=\$ac_header_preproc"
20749 fi
20750 ac_res=`eval echo '${'$as_ac_Header'}'`
20751 { echo "$as_me:$LINENO: result: $ac_res" >&5
20752 echo "${ECHO_T}$ac_res" >&6; }
20753
20754 fi
20755 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20756 cat >>confdefs.h <<_ACEOF
20757 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20758 _ACEOF
20759
20760 else
20761
20762 for ac_header in kerberos/des.h
20763 do
20764 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20765 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20766 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20767 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20768 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20769 echo $ECHO_N "(cached) $ECHO_C" >&6
20770 fi
20771 ac_res=`eval echo '${'$as_ac_Header'}'`
20772 { echo "$as_me:$LINENO: result: $ac_res" >&5
20773 echo "${ECHO_T}$ac_res" >&6; }
20774 else
20775 # Is the header compilable?
20776 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20777 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20778 cat >conftest.$ac_ext <<_ACEOF
20779 /* confdefs.h. */
20780 _ACEOF
20781 cat confdefs.h >>conftest.$ac_ext
20782 cat >>conftest.$ac_ext <<_ACEOF
20783 /* end confdefs.h. */
20784 $ac_includes_default
20785 #include <$ac_header>
20786 _ACEOF
20787 rm -f conftest.$ac_objext
20788 if { (ac_try="$ac_compile"
20789 case "(($ac_try" in
20790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20791 *) ac_try_echo=$ac_try;;
20792 esac
20793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20794 (eval "$ac_compile") 2>conftest.er1
20795 ac_status=$?
20796 grep -v '^ *+' conftest.er1 >conftest.err
20797 rm -f conftest.er1
20798 cat conftest.err >&5
20799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20800 (exit $ac_status); } && {
20801 test -z "$ac_c_werror_flag" ||
20802 test ! -s conftest.err
20803 } && test -s conftest.$ac_objext; then
20804 ac_header_compiler=yes
20805 else
20806 echo "$as_me: failed program was:" >&5
20807 sed 's/^/| /' conftest.$ac_ext >&5
20808
20809 ac_header_compiler=no
20810 fi
20811
20812 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20813 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20814 echo "${ECHO_T}$ac_header_compiler" >&6; }
20815
20816 # Is the header present?
20817 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20818 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20819 cat >conftest.$ac_ext <<_ACEOF
20820 /* confdefs.h. */
20821 _ACEOF
20822 cat confdefs.h >>conftest.$ac_ext
20823 cat >>conftest.$ac_ext <<_ACEOF
20824 /* end confdefs.h. */
20825 #include <$ac_header>
20826 _ACEOF
20827 if { (ac_try="$ac_cpp conftest.$ac_ext"
20828 case "(($ac_try" in
20829 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20830 *) ac_try_echo=$ac_try;;
20831 esac
20832 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20833 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20834 ac_status=$?
20835 grep -v '^ *+' conftest.er1 >conftest.err
20836 rm -f conftest.er1
20837 cat conftest.err >&5
20838 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20839 (exit $ac_status); } >/dev/null && {
20840 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20841 test ! -s conftest.err
20842 }; then
20843 ac_header_preproc=yes
20844 else
20845 echo "$as_me: failed program was:" >&5
20846 sed 's/^/| /' conftest.$ac_ext >&5
20847
20848 ac_header_preproc=no
20849 fi
20850
20851 rm -f conftest.err conftest.$ac_ext
20852 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20853 echo "${ECHO_T}$ac_header_preproc" >&6; }
20854
20855 # So? What about this header?
20856 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20857 yes:no: )
20858 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20859 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20860 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20861 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20862 ac_header_preproc=yes
20863 ;;
20864 no:yes:* )
20865 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20866 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20867 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20868 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20869 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20870 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20871 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20872 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20873 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20874 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20875 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20876 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20877
20878 ;;
20879 esac
20880 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20881 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20882 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20883 echo $ECHO_N "(cached) $ECHO_C" >&6
20884 else
20885 eval "$as_ac_Header=\$ac_header_preproc"
20886 fi
20887 ac_res=`eval echo '${'$as_ac_Header'}'`
20888 { echo "$as_me:$LINENO: result: $ac_res" >&5
20889 echo "${ECHO_T}$ac_res" >&6; }
20890
20891 fi
20892 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20893 cat >>confdefs.h <<_ACEOF
20894 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20895 _ACEOF
20896
20897 fi
20898
20899 done
20900
20901 fi
20902
20903 done
20904
20905 fi
20906
20907 done
20908
20909
20910 for ac_header in krb.h
20911 do
20912 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20913 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20914 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20915 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20916 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20917 echo $ECHO_N "(cached) $ECHO_C" >&6
20918 fi
20919 ac_res=`eval echo '${'$as_ac_Header'}'`
20920 { echo "$as_me:$LINENO: result: $ac_res" >&5
20921 echo "${ECHO_T}$ac_res" >&6; }
20922 else
20923 # Is the header compilable?
20924 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20925 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20926 cat >conftest.$ac_ext <<_ACEOF
20927 /* confdefs.h. */
20928 _ACEOF
20929 cat confdefs.h >>conftest.$ac_ext
20930 cat >>conftest.$ac_ext <<_ACEOF
20931 /* end confdefs.h. */
20932 $ac_includes_default
20933 #include <$ac_header>
20934 _ACEOF
20935 rm -f conftest.$ac_objext
20936 if { (ac_try="$ac_compile"
20937 case "(($ac_try" in
20938 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20939 *) ac_try_echo=$ac_try;;
20940 esac
20941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20942 (eval "$ac_compile") 2>conftest.er1
20943 ac_status=$?
20944 grep -v '^ *+' conftest.er1 >conftest.err
20945 rm -f conftest.er1
20946 cat conftest.err >&5
20947 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20948 (exit $ac_status); } && {
20949 test -z "$ac_c_werror_flag" ||
20950 test ! -s conftest.err
20951 } && test -s conftest.$ac_objext; then
20952 ac_header_compiler=yes
20953 else
20954 echo "$as_me: failed program was:" >&5
20955 sed 's/^/| /' conftest.$ac_ext >&5
20956
20957 ac_header_compiler=no
20958 fi
20959
20960 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20961 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20962 echo "${ECHO_T}$ac_header_compiler" >&6; }
20963
20964 # Is the header present?
20965 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20966 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20967 cat >conftest.$ac_ext <<_ACEOF
20968 /* confdefs.h. */
20969 _ACEOF
20970 cat confdefs.h >>conftest.$ac_ext
20971 cat >>conftest.$ac_ext <<_ACEOF
20972 /* end confdefs.h. */
20973 #include <$ac_header>
20974 _ACEOF
20975 if { (ac_try="$ac_cpp conftest.$ac_ext"
20976 case "(($ac_try" in
20977 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20978 *) ac_try_echo=$ac_try;;
20979 esac
20980 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20981 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20982 ac_status=$?
20983 grep -v '^ *+' conftest.er1 >conftest.err
20984 rm -f conftest.er1
20985 cat conftest.err >&5
20986 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20987 (exit $ac_status); } >/dev/null && {
20988 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20989 test ! -s conftest.err
20990 }; then
20991 ac_header_preproc=yes
20992 else
20993 echo "$as_me: failed program was:" >&5
20994 sed 's/^/| /' conftest.$ac_ext >&5
20995
20996 ac_header_preproc=no
20997 fi
20998
20999 rm -f conftest.err conftest.$ac_ext
21000 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21001 echo "${ECHO_T}$ac_header_preproc" >&6; }
21002
21003 # So? What about this header?
21004 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21005 yes:no: )
21006 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21007 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21008 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21009 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21010 ac_header_preproc=yes
21011 ;;
21012 no:yes:* )
21013 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21014 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21015 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21016 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21017 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21018 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21019 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21020 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21021 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21022 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21023 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21024 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21025
21026 ;;
21027 esac
21028 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21029 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21030 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21031 echo $ECHO_N "(cached) $ECHO_C" >&6
21032 else
21033 eval "$as_ac_Header=\$ac_header_preproc"
21034 fi
21035 ac_res=`eval echo '${'$as_ac_Header'}'`
21036 { echo "$as_me:$LINENO: result: $ac_res" >&5
21037 echo "${ECHO_T}$ac_res" >&6; }
21038
21039 fi
21040 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21041 cat >>confdefs.h <<_ACEOF
21042 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21043 _ACEOF
21044
21045 else
21046
21047 for ac_header in kerberosIV/krb.h
21048 do
21049 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21051 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21052 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21053 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21054 echo $ECHO_N "(cached) $ECHO_C" >&6
21055 fi
21056 ac_res=`eval echo '${'$as_ac_Header'}'`
21057 { echo "$as_me:$LINENO: result: $ac_res" >&5
21058 echo "${ECHO_T}$ac_res" >&6; }
21059 else
21060 # Is the header compilable?
21061 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21062 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21063 cat >conftest.$ac_ext <<_ACEOF
21064 /* confdefs.h. */
21065 _ACEOF
21066 cat confdefs.h >>conftest.$ac_ext
21067 cat >>conftest.$ac_ext <<_ACEOF
21068 /* end confdefs.h. */
21069 $ac_includes_default
21070 #include <$ac_header>
21071 _ACEOF
21072 rm -f conftest.$ac_objext
21073 if { (ac_try="$ac_compile"
21074 case "(($ac_try" in
21075 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21076 *) ac_try_echo=$ac_try;;
21077 esac
21078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21079 (eval "$ac_compile") 2>conftest.er1
21080 ac_status=$?
21081 grep -v '^ *+' conftest.er1 >conftest.err
21082 rm -f conftest.er1
21083 cat conftest.err >&5
21084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21085 (exit $ac_status); } && {
21086 test -z "$ac_c_werror_flag" ||
21087 test ! -s conftest.err
21088 } && test -s conftest.$ac_objext; then
21089 ac_header_compiler=yes
21090 else
21091 echo "$as_me: failed program was:" >&5
21092 sed 's/^/| /' conftest.$ac_ext >&5
21093
21094 ac_header_compiler=no
21095 fi
21096
21097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21098 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21099 echo "${ECHO_T}$ac_header_compiler" >&6; }
21100
21101 # Is the header present?
21102 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21103 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21104 cat >conftest.$ac_ext <<_ACEOF
21105 /* confdefs.h. */
21106 _ACEOF
21107 cat confdefs.h >>conftest.$ac_ext
21108 cat >>conftest.$ac_ext <<_ACEOF
21109 /* end confdefs.h. */
21110 #include <$ac_header>
21111 _ACEOF
21112 if { (ac_try="$ac_cpp conftest.$ac_ext"
21113 case "(($ac_try" in
21114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21115 *) ac_try_echo=$ac_try;;
21116 esac
21117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21118 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21119 ac_status=$?
21120 grep -v '^ *+' conftest.er1 >conftest.err
21121 rm -f conftest.er1
21122 cat conftest.err >&5
21123 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21124 (exit $ac_status); } >/dev/null && {
21125 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21126 test ! -s conftest.err
21127 }; then
21128 ac_header_preproc=yes
21129 else
21130 echo "$as_me: failed program was:" >&5
21131 sed 's/^/| /' conftest.$ac_ext >&5
21132
21133 ac_header_preproc=no
21134 fi
21135
21136 rm -f conftest.err conftest.$ac_ext
21137 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21138 echo "${ECHO_T}$ac_header_preproc" >&6; }
21139
21140 # So? What about this header?
21141 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21142 yes:no: )
21143 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21144 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21146 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21147 ac_header_preproc=yes
21148 ;;
21149 no:yes:* )
21150 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21151 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21152 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21153 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21154 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21155 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21156 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21157 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21158 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21159 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21160 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21161 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21162
21163 ;;
21164 esac
21165 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21166 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21167 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21168 echo $ECHO_N "(cached) $ECHO_C" >&6
21169 else
21170 eval "$as_ac_Header=\$ac_header_preproc"
21171 fi
21172 ac_res=`eval echo '${'$as_ac_Header'}'`
21173 { echo "$as_me:$LINENO: result: $ac_res" >&5
21174 echo "${ECHO_T}$ac_res" >&6; }
21175
21176 fi
21177 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21178 cat >>confdefs.h <<_ACEOF
21179 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21180 _ACEOF
21181
21182 else
21183
21184 for ac_header in kerberos/krb.h
21185 do
21186 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21187 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21188 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21189 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21190 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21191 echo $ECHO_N "(cached) $ECHO_C" >&6
21192 fi
21193 ac_res=`eval echo '${'$as_ac_Header'}'`
21194 { echo "$as_me:$LINENO: result: $ac_res" >&5
21195 echo "${ECHO_T}$ac_res" >&6; }
21196 else
21197 # Is the header compilable?
21198 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21199 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21200 cat >conftest.$ac_ext <<_ACEOF
21201 /* confdefs.h. */
21202 _ACEOF
21203 cat confdefs.h >>conftest.$ac_ext
21204 cat >>conftest.$ac_ext <<_ACEOF
21205 /* end confdefs.h. */
21206 $ac_includes_default
21207 #include <$ac_header>
21208 _ACEOF
21209 rm -f conftest.$ac_objext
21210 if { (ac_try="$ac_compile"
21211 case "(($ac_try" in
21212 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21213 *) ac_try_echo=$ac_try;;
21214 esac
21215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21216 (eval "$ac_compile") 2>conftest.er1
21217 ac_status=$?
21218 grep -v '^ *+' conftest.er1 >conftest.err
21219 rm -f conftest.er1
21220 cat conftest.err >&5
21221 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21222 (exit $ac_status); } && {
21223 test -z "$ac_c_werror_flag" ||
21224 test ! -s conftest.err
21225 } && test -s conftest.$ac_objext; then
21226 ac_header_compiler=yes
21227 else
21228 echo "$as_me: failed program was:" >&5
21229 sed 's/^/| /' conftest.$ac_ext >&5
21230
21231 ac_header_compiler=no
21232 fi
21233
21234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21235 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21236 echo "${ECHO_T}$ac_header_compiler" >&6; }
21237
21238 # Is the header present?
21239 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21240 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21241 cat >conftest.$ac_ext <<_ACEOF
21242 /* confdefs.h. */
21243 _ACEOF
21244 cat confdefs.h >>conftest.$ac_ext
21245 cat >>conftest.$ac_ext <<_ACEOF
21246 /* end confdefs.h. */
21247 #include <$ac_header>
21248 _ACEOF
21249 if { (ac_try="$ac_cpp conftest.$ac_ext"
21250 case "(($ac_try" in
21251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21252 *) ac_try_echo=$ac_try;;
21253 esac
21254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21255 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21256 ac_status=$?
21257 grep -v '^ *+' conftest.er1 >conftest.err
21258 rm -f conftest.er1
21259 cat conftest.err >&5
21260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21261 (exit $ac_status); } >/dev/null && {
21262 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21263 test ! -s conftest.err
21264 }; then
21265 ac_header_preproc=yes
21266 else
21267 echo "$as_me: failed program was:" >&5
21268 sed 's/^/| /' conftest.$ac_ext >&5
21269
21270 ac_header_preproc=no
21271 fi
21272
21273 rm -f conftest.err conftest.$ac_ext
21274 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21275 echo "${ECHO_T}$ac_header_preproc" >&6; }
21276
21277 # So? What about this header?
21278 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21279 yes:no: )
21280 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21281 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21282 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21283 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21284 ac_header_preproc=yes
21285 ;;
21286 no:yes:* )
21287 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21288 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21289 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21290 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21291 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21292 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21293 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21294 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21295 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21296 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21297 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21298 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21299
21300 ;;
21301 esac
21302 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21303 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21304 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21305 echo $ECHO_N "(cached) $ECHO_C" >&6
21306 else
21307 eval "$as_ac_Header=\$ac_header_preproc"
21308 fi
21309 ac_res=`eval echo '${'$as_ac_Header'}'`
21310 { echo "$as_me:$LINENO: result: $ac_res" >&5
21311 echo "${ECHO_T}$ac_res" >&6; }
21312
21313 fi
21314 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21315 cat >>confdefs.h <<_ACEOF
21316 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21317 _ACEOF
21318
21319 fi
21320
21321 done
21322
21323 fi
21324
21325 done
21326
21327 fi
21328
21329 done
21330
21331 fi
21332
21333 for ac_header in com_err.h
21334 do
21335 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21336 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21337 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21338 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21339 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21340 echo $ECHO_N "(cached) $ECHO_C" >&6
21341 fi
21342 ac_res=`eval echo '${'$as_ac_Header'}'`
21343 { echo "$as_me:$LINENO: result: $ac_res" >&5
21344 echo "${ECHO_T}$ac_res" >&6; }
21345 else
21346 # Is the header compilable?
21347 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21348 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21349 cat >conftest.$ac_ext <<_ACEOF
21350 /* confdefs.h. */
21351 _ACEOF
21352 cat confdefs.h >>conftest.$ac_ext
21353 cat >>conftest.$ac_ext <<_ACEOF
21354 /* end confdefs.h. */
21355 $ac_includes_default
21356 #include <$ac_header>
21357 _ACEOF
21358 rm -f conftest.$ac_objext
21359 if { (ac_try="$ac_compile"
21360 case "(($ac_try" in
21361 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21362 *) ac_try_echo=$ac_try;;
21363 esac
21364 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21365 (eval "$ac_compile") 2>conftest.er1
21366 ac_status=$?
21367 grep -v '^ *+' conftest.er1 >conftest.err
21368 rm -f conftest.er1
21369 cat conftest.err >&5
21370 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21371 (exit $ac_status); } && {
21372 test -z "$ac_c_werror_flag" ||
21373 test ! -s conftest.err
21374 } && test -s conftest.$ac_objext; then
21375 ac_header_compiler=yes
21376 else
21377 echo "$as_me: failed program was:" >&5
21378 sed 's/^/| /' conftest.$ac_ext >&5
21379
21380 ac_header_compiler=no
21381 fi
21382
21383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21384 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21385 echo "${ECHO_T}$ac_header_compiler" >&6; }
21386
21387 # Is the header present?
21388 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21389 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21390 cat >conftest.$ac_ext <<_ACEOF
21391 /* confdefs.h. */
21392 _ACEOF
21393 cat confdefs.h >>conftest.$ac_ext
21394 cat >>conftest.$ac_ext <<_ACEOF
21395 /* end confdefs.h. */
21396 #include <$ac_header>
21397 _ACEOF
21398 if { (ac_try="$ac_cpp conftest.$ac_ext"
21399 case "(($ac_try" in
21400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21401 *) ac_try_echo=$ac_try;;
21402 esac
21403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21404 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21405 ac_status=$?
21406 grep -v '^ *+' conftest.er1 >conftest.err
21407 rm -f conftest.er1
21408 cat conftest.err >&5
21409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21410 (exit $ac_status); } >/dev/null && {
21411 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21412 test ! -s conftest.err
21413 }; then
21414 ac_header_preproc=yes
21415 else
21416 echo "$as_me: failed program was:" >&5
21417 sed 's/^/| /' conftest.$ac_ext >&5
21418
21419 ac_header_preproc=no
21420 fi
21421
21422 rm -f conftest.err conftest.$ac_ext
21423 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21424 echo "${ECHO_T}$ac_header_preproc" >&6; }
21425
21426 # So? What about this header?
21427 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21428 yes:no: )
21429 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21430 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21431 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21432 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21433 ac_header_preproc=yes
21434 ;;
21435 no:yes:* )
21436 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21437 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21438 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21439 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21440 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21441 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21442 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21443 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21444 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21445 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21446 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21447 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21448
21449 ;;
21450 esac
21451 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21452 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21453 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21454 echo $ECHO_N "(cached) $ECHO_C" >&6
21455 else
21456 eval "$as_ac_Header=\$ac_header_preproc"
21457 fi
21458 ac_res=`eval echo '${'$as_ac_Header'}'`
21459 { echo "$as_me:$LINENO: result: $ac_res" >&5
21460 echo "${ECHO_T}$ac_res" >&6; }
21461
21462 fi
21463 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21464 cat >>confdefs.h <<_ACEOF
21465 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21466 _ACEOF
21467
21468 fi
21469
21470 done
21471
21472 fi
21473
21474 # Solaris requires -lintl if you want strerror (which calls dgettext)
21475 # to return localized messages.
21476
21477 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21478 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21479 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21480 echo $ECHO_N "(cached) $ECHO_C" >&6
21481 else
21482 ac_check_lib_save_LIBS=$LIBS
21483 LIBS="-lintl $LIBS"
21484 cat >conftest.$ac_ext <<_ACEOF
21485 /* confdefs.h. */
21486 _ACEOF
21487 cat confdefs.h >>conftest.$ac_ext
21488 cat >>conftest.$ac_ext <<_ACEOF
21489 /* end confdefs.h. */
21490
21491 /* Override any GCC internal prototype to avoid an error.
21492 Use char because int might match the return type of a GCC
21493 builtin and then its argument prototype would still apply. */
21494 #ifdef __cplusplus
21495 extern "C"
21496 #endif
21497 char dgettext ();
21498 int
21499 main ()
21500 {
21501 return dgettext ();
21502 ;
21503 return 0;
21504 }
21505 _ACEOF
21506 rm -f conftest.$ac_objext conftest$ac_exeext
21507 if { (ac_try="$ac_link"
21508 case "(($ac_try" in
21509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21510 *) ac_try_echo=$ac_try;;
21511 esac
21512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21513 (eval "$ac_link") 2>conftest.er1
21514 ac_status=$?
21515 grep -v '^ *+' conftest.er1 >conftest.err
21516 rm -f conftest.er1
21517 cat conftest.err >&5
21518 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21519 (exit $ac_status); } && {
21520 test -z "$ac_c_werror_flag" ||
21521 test ! -s conftest.err
21522 } && test -s conftest$ac_exeext &&
21523 $as_test_x conftest$ac_exeext; then
21524 ac_cv_lib_intl_dgettext=yes
21525 else
21526 echo "$as_me: failed program was:" >&5
21527 sed 's/^/| /' conftest.$ac_ext >&5
21528
21529 ac_cv_lib_intl_dgettext=no
21530 fi
21531
21532 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21533 conftest$ac_exeext conftest.$ac_ext
21534 LIBS=$ac_check_lib_save_LIBS
21535 fi
21536 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
21537 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
21538 if test $ac_cv_lib_intl_dgettext = yes; then
21539 cat >>confdefs.h <<_ACEOF
21540 #define HAVE_LIBINTL 1
21541 _ACEOF
21542
21543 LIBS="-lintl $LIBS"
21544
21545 fi
21546
21547
21548 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
21549 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
21550 if test "${emacs_cv_localtime_cache+set}" = set; then
21551 echo $ECHO_N "(cached) $ECHO_C" >&6
21552 else
21553 if test x$ac_cv_func_tzset = xyes; then
21554 if test "$cross_compiling" = yes; then
21555 # If we have tzset, assume the worst when cross-compiling.
21556 emacs_cv_localtime_cache=yes
21557 else
21558 cat >conftest.$ac_ext <<_ACEOF
21559 /* confdefs.h. */
21560 _ACEOF
21561 cat confdefs.h >>conftest.$ac_ext
21562 cat >>conftest.$ac_ext <<_ACEOF
21563 /* end confdefs.h. */
21564 #include <time.h>
21565 extern char **environ;
21566 unset_TZ ()
21567 {
21568 char **from, **to;
21569 for (to = from = environ; (*to = *from); from++)
21570 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
21571 to++;
21572 }
21573 char TZ_GMT0[] = "TZ=GMT0";
21574 char TZ_PST8[] = "TZ=PST8";
21575 main()
21576 {
21577 time_t now = time ((time_t *) 0);
21578 int hour_GMT0, hour_unset;
21579 if (putenv (TZ_GMT0) != 0)
21580 exit (1);
21581 hour_GMT0 = localtime (&now)->tm_hour;
21582 unset_TZ ();
21583 hour_unset = localtime (&now)->tm_hour;
21584 if (putenv (TZ_PST8) != 0)
21585 exit (1);
21586 if (localtime (&now)->tm_hour == hour_GMT0)
21587 exit (1);
21588 unset_TZ ();
21589 if (localtime (&now)->tm_hour != hour_unset)
21590 exit (1);
21591 exit (0);
21592 }
21593 _ACEOF
21594 rm -f conftest$ac_exeext
21595 if { (ac_try="$ac_link"
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_link") 2>&5
21602 ac_status=$?
21603 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21604 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
21605 { (case "(($ac_try" in
21606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21607 *) ac_try_echo=$ac_try;;
21608 esac
21609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21610 (eval "$ac_try") 2>&5
21611 ac_status=$?
21612 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21613 (exit $ac_status); }; }; then
21614 emacs_cv_localtime_cache=no
21615 else
21616 echo "$as_me: program exited with status $ac_status" >&5
21617 echo "$as_me: failed program was:" >&5
21618 sed 's/^/| /' conftest.$ac_ext >&5
21619
21620 ( exit $ac_status )
21621 emacs_cv_localtime_cache=yes
21622 fi
21623 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
21624 fi
21625
21626
21627 else
21628 # If we lack tzset, report that localtime does not cache TZ,
21629 # since we can't invalidate the cache if we don't have tzset.
21630 emacs_cv_localtime_cache=no
21631 fi
21632 fi
21633 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
21634 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
21635 if test $emacs_cv_localtime_cache = yes; then
21636
21637 cat >>confdefs.h <<\_ACEOF
21638 #define LOCALTIME_CACHE 1
21639 _ACEOF
21640
21641 fi
21642
21643 if test "x$HAVE_TIMEVAL" = xyes; then
21644
21645 for ac_func in gettimeofday
21646 do
21647 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
21648 { echo "$as_me:$LINENO: checking for $ac_func" >&5
21649 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
21650 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
21651 echo $ECHO_N "(cached) $ECHO_C" >&6
21652 else
21653 cat >conftest.$ac_ext <<_ACEOF
21654 /* confdefs.h. */
21655 _ACEOF
21656 cat confdefs.h >>conftest.$ac_ext
21657 cat >>conftest.$ac_ext <<_ACEOF
21658 /* end confdefs.h. */
21659 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
21660 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21661 #define $ac_func innocuous_$ac_func
21662
21663 /* System header to define __stub macros and hopefully few prototypes,
21664 which can conflict with char $ac_func (); below.
21665 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21666 <limits.h> exists even on freestanding compilers. */
21667
21668 #ifdef __STDC__
21669 # include <limits.h>
21670 #else
21671 # include <assert.h>
21672 #endif
21673
21674 #undef $ac_func
21675
21676 /* Override any GCC internal prototype to avoid an error.
21677 Use char because int might match the return type of a GCC
21678 builtin and then its argument prototype would still apply. */
21679 #ifdef __cplusplus
21680 extern "C"
21681 #endif
21682 char $ac_func ();
21683 /* The GNU C library defines this for functions which it implements
21684 to always fail with ENOSYS. Some functions are actually named
21685 something starting with __ and the normal name is an alias. */
21686 #if defined __stub_$ac_func || defined __stub___$ac_func
21687 choke me
21688 #endif
21689
21690 int
21691 main ()
21692 {
21693 return $ac_func ();
21694 ;
21695 return 0;
21696 }
21697 _ACEOF
21698 rm -f conftest.$ac_objext conftest$ac_exeext
21699 if { (ac_try="$ac_link"
21700 case "(($ac_try" in
21701 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21702 *) ac_try_echo=$ac_try;;
21703 esac
21704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21705 (eval "$ac_link") 2>conftest.er1
21706 ac_status=$?
21707 grep -v '^ *+' conftest.er1 >conftest.err
21708 rm -f conftest.er1
21709 cat conftest.err >&5
21710 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21711 (exit $ac_status); } && {
21712 test -z "$ac_c_werror_flag" ||
21713 test ! -s conftest.err
21714 } && test -s conftest$ac_exeext &&
21715 $as_test_x conftest$ac_exeext; then
21716 eval "$as_ac_var=yes"
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 eval "$as_ac_var=no"
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21725 conftest$ac_exeext conftest.$ac_ext
21726 fi
21727 ac_res=`eval echo '${'$as_ac_var'}'`
21728 { echo "$as_me:$LINENO: result: $ac_res" >&5
21729 echo "${ECHO_T}$ac_res" >&6; }
21730 if test `eval echo '${'$as_ac_var'}'` = yes; then
21731 cat >>confdefs.h <<_ACEOF
21732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
21733 _ACEOF
21734
21735 fi
21736 done
21737
21738 if test $ac_cv_func_gettimeofday = yes; then
21739 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
21740 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
21741 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
21742 echo $ECHO_N "(cached) $ECHO_C" >&6
21743 else
21744 cat >conftest.$ac_ext <<_ACEOF
21745 /* confdefs.h. */
21746 _ACEOF
21747 cat confdefs.h >>conftest.$ac_ext
21748 cat >>conftest.$ac_ext <<_ACEOF
21749 /* end confdefs.h. */
21750
21751 #ifdef TIME_WITH_SYS_TIME
21752 #include <sys/time.h>
21753 #include <time.h>
21754 #else
21755 #ifdef HAVE_SYS_TIME_H
21756 #include <sys/time.h>
21757 #else
21758 #include <time.h>
21759 #endif
21760 #endif
21761 int
21762 main ()
21763 {
21764 struct timeval time;
21765 gettimeofday (&time, 0);
21766 ;
21767 return 0;
21768 }
21769 _ACEOF
21770 rm -f conftest.$ac_objext
21771 if { (ac_try="$ac_compile"
21772 case "(($ac_try" in
21773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21774 *) ac_try_echo=$ac_try;;
21775 esac
21776 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21777 (eval "$ac_compile") 2>conftest.er1
21778 ac_status=$?
21779 grep -v '^ *+' conftest.er1 >conftest.err
21780 rm -f conftest.er1
21781 cat conftest.err >&5
21782 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21783 (exit $ac_status); } && {
21784 test -z "$ac_c_werror_flag" ||
21785 test ! -s conftest.err
21786 } && test -s conftest.$ac_objext; then
21787 emacs_cv_gettimeofday_two_arguments=yes
21788 else
21789 echo "$as_me: failed program was:" >&5
21790 sed 's/^/| /' conftest.$ac_ext >&5
21791
21792 emacs_cv_gettimeofday_two_arguments=no
21793 fi
21794
21795 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21796 fi
21797 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
21798 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
21799 if test $emacs_cv_gettimeofday_two_arguments = no; then
21800
21801 cat >>confdefs.h <<\_ACEOF
21802 #define GETTIMEOFDAY_ONE_ARGUMENT 1
21803 _ACEOF
21804
21805 fi
21806 fi
21807 fi
21808
21809 ok_so_far=yes
21810 { echo "$as_me:$LINENO: checking for socket" >&5
21811 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
21812 if test "${ac_cv_func_socket+set}" = set; then
21813 echo $ECHO_N "(cached) $ECHO_C" >&6
21814 else
21815 cat >conftest.$ac_ext <<_ACEOF
21816 /* confdefs.h. */
21817 _ACEOF
21818 cat confdefs.h >>conftest.$ac_ext
21819 cat >>conftest.$ac_ext <<_ACEOF
21820 /* end confdefs.h. */
21821 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
21822 For example, HP-UX 11i <limits.h> declares gettimeofday. */
21823 #define socket innocuous_socket
21824
21825 /* System header to define __stub macros and hopefully few prototypes,
21826 which can conflict with char socket (); below.
21827 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
21828 <limits.h> exists even on freestanding compilers. */
21829
21830 #ifdef __STDC__
21831 # include <limits.h>
21832 #else
21833 # include <assert.h>
21834 #endif
21835
21836 #undef socket
21837
21838 /* Override any GCC internal prototype to avoid an error.
21839 Use char because int might match the return type of a GCC
21840 builtin and then its argument prototype would still apply. */
21841 #ifdef __cplusplus
21842 extern "C"
21843 #endif
21844 char socket ();
21845 /* The GNU C library defines this for functions which it implements
21846 to always fail with ENOSYS. Some functions are actually named
21847 something starting with __ and the normal name is an alias. */
21848 #if defined __stub_socket || defined __stub___socket
21849 choke me
21850 #endif
21851
21852 int
21853 main ()
21854 {
21855 return socket ();
21856 ;
21857 return 0;
21858 }
21859 _ACEOF
21860 rm -f conftest.$ac_objext conftest$ac_exeext
21861 if { (ac_try="$ac_link"
21862 case "(($ac_try" in
21863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21864 *) ac_try_echo=$ac_try;;
21865 esac
21866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21867 (eval "$ac_link") 2>conftest.er1
21868 ac_status=$?
21869 grep -v '^ *+' conftest.er1 >conftest.err
21870 rm -f conftest.er1
21871 cat conftest.err >&5
21872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21873 (exit $ac_status); } && {
21874 test -z "$ac_c_werror_flag" ||
21875 test ! -s conftest.err
21876 } && test -s conftest$ac_exeext &&
21877 $as_test_x conftest$ac_exeext; then
21878 ac_cv_func_socket=yes
21879 else
21880 echo "$as_me: failed program was:" >&5
21881 sed 's/^/| /' conftest.$ac_ext >&5
21882
21883 ac_cv_func_socket=no
21884 fi
21885
21886 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
21887 conftest$ac_exeext conftest.$ac_ext
21888 fi
21889 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
21890 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
21891 if test $ac_cv_func_socket = yes; then
21892 :
21893 else
21894 ok_so_far=no
21895 fi
21896
21897 if test $ok_so_far = yes; then
21898 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21899 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
21900 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
21901 if test "${ac_cv_header_netinet_in_h+set}" = set; then
21902 echo $ECHO_N "(cached) $ECHO_C" >&6
21903 fi
21904 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
21905 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
21906 else
21907 # Is the header compilable?
21908 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
21909 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
21910 cat >conftest.$ac_ext <<_ACEOF
21911 /* confdefs.h. */
21912 _ACEOF
21913 cat confdefs.h >>conftest.$ac_ext
21914 cat >>conftest.$ac_ext <<_ACEOF
21915 /* end confdefs.h. */
21916 $ac_includes_default
21917 #include <netinet/in.h>
21918 _ACEOF
21919 rm -f conftest.$ac_objext
21920 if { (ac_try="$ac_compile"
21921 case "(($ac_try" in
21922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21923 *) ac_try_echo=$ac_try;;
21924 esac
21925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21926 (eval "$ac_compile") 2>conftest.er1
21927 ac_status=$?
21928 grep -v '^ *+' conftest.er1 >conftest.err
21929 rm -f conftest.er1
21930 cat conftest.err >&5
21931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21932 (exit $ac_status); } && {
21933 test -z "$ac_c_werror_flag" ||
21934 test ! -s conftest.err
21935 } && test -s conftest.$ac_objext; then
21936 ac_header_compiler=yes
21937 else
21938 echo "$as_me: failed program was:" >&5
21939 sed 's/^/| /' conftest.$ac_ext >&5
21940
21941 ac_header_compiler=no
21942 fi
21943
21944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21945 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21946 echo "${ECHO_T}$ac_header_compiler" >&6; }
21947
21948 # Is the header present?
21949 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
21950 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
21951 cat >conftest.$ac_ext <<_ACEOF
21952 /* confdefs.h. */
21953 _ACEOF
21954 cat confdefs.h >>conftest.$ac_ext
21955 cat >>conftest.$ac_ext <<_ACEOF
21956 /* end confdefs.h. */
21957 #include <netinet/in.h>
21958 _ACEOF
21959 if { (ac_try="$ac_cpp conftest.$ac_ext"
21960 case "(($ac_try" in
21961 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21962 *) ac_try_echo=$ac_try;;
21963 esac
21964 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21965 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21966 ac_status=$?
21967 grep -v '^ *+' conftest.er1 >conftest.err
21968 rm -f conftest.er1
21969 cat conftest.err >&5
21970 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21971 (exit $ac_status); } >/dev/null && {
21972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21973 test ! -s conftest.err
21974 }; then
21975 ac_header_preproc=yes
21976 else
21977 echo "$as_me: failed program was:" >&5
21978 sed 's/^/| /' conftest.$ac_ext >&5
21979
21980 ac_header_preproc=no
21981 fi
21982
21983 rm -f conftest.err conftest.$ac_ext
21984 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21985 echo "${ECHO_T}$ac_header_preproc" >&6; }
21986
21987 # So? What about this header?
21988 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21989 yes:no: )
21990 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
21991 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
21992 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
21993 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
21994 ac_header_preproc=yes
21995 ;;
21996 no:yes:* )
21997 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
21998 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
21999 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22000 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22001 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22002 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22003 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22004 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22005 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22006 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22007 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22008 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22009
22010 ;;
22011 esac
22012 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22013 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22014 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22015 echo $ECHO_N "(cached) $ECHO_C" >&6
22016 else
22017 ac_cv_header_netinet_in_h=$ac_header_preproc
22018 fi
22019 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22020 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22021
22022 fi
22023 if test $ac_cv_header_netinet_in_h = yes; then
22024 :
22025 else
22026 ok_so_far=no
22027 fi
22028
22029
22030 fi
22031 if test $ok_so_far = yes; then
22032 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22033 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22034 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22035 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22036 echo $ECHO_N "(cached) $ECHO_C" >&6
22037 fi
22038 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22039 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22040 else
22041 # Is the header compilable?
22042 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22043 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22044 cat >conftest.$ac_ext <<_ACEOF
22045 /* confdefs.h. */
22046 _ACEOF
22047 cat confdefs.h >>conftest.$ac_ext
22048 cat >>conftest.$ac_ext <<_ACEOF
22049 /* end confdefs.h. */
22050 $ac_includes_default
22051 #include <arpa/inet.h>
22052 _ACEOF
22053 rm -f conftest.$ac_objext
22054 if { (ac_try="$ac_compile"
22055 case "(($ac_try" in
22056 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22057 *) ac_try_echo=$ac_try;;
22058 esac
22059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22060 (eval "$ac_compile") 2>conftest.er1
22061 ac_status=$?
22062 grep -v '^ *+' conftest.er1 >conftest.err
22063 rm -f conftest.er1
22064 cat conftest.err >&5
22065 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22066 (exit $ac_status); } && {
22067 test -z "$ac_c_werror_flag" ||
22068 test ! -s conftest.err
22069 } && test -s conftest.$ac_objext; then
22070 ac_header_compiler=yes
22071 else
22072 echo "$as_me: failed program was:" >&5
22073 sed 's/^/| /' conftest.$ac_ext >&5
22074
22075 ac_header_compiler=no
22076 fi
22077
22078 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22079 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22080 echo "${ECHO_T}$ac_header_compiler" >&6; }
22081
22082 # Is the header present?
22083 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22084 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22085 cat >conftest.$ac_ext <<_ACEOF
22086 /* confdefs.h. */
22087 _ACEOF
22088 cat confdefs.h >>conftest.$ac_ext
22089 cat >>conftest.$ac_ext <<_ACEOF
22090 /* end confdefs.h. */
22091 #include <arpa/inet.h>
22092 _ACEOF
22093 if { (ac_try="$ac_cpp conftest.$ac_ext"
22094 case "(($ac_try" in
22095 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22096 *) ac_try_echo=$ac_try;;
22097 esac
22098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22099 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22100 ac_status=$?
22101 grep -v '^ *+' conftest.er1 >conftest.err
22102 rm -f conftest.er1
22103 cat conftest.err >&5
22104 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22105 (exit $ac_status); } >/dev/null && {
22106 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22107 test ! -s conftest.err
22108 }; then
22109 ac_header_preproc=yes
22110 else
22111 echo "$as_me: failed program was:" >&5
22112 sed 's/^/| /' conftest.$ac_ext >&5
22113
22114 ac_header_preproc=no
22115 fi
22116
22117 rm -f conftest.err conftest.$ac_ext
22118 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22119 echo "${ECHO_T}$ac_header_preproc" >&6; }
22120
22121 # So? What about this header?
22122 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22123 yes:no: )
22124 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22125 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22126 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22127 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22128 ac_header_preproc=yes
22129 ;;
22130 no:yes:* )
22131 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22132 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22133 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22134 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22135 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22136 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22137 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22138 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22139 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22140 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22141 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22142 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22143
22144 ;;
22145 esac
22146 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22147 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22148 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22149 echo $ECHO_N "(cached) $ECHO_C" >&6
22150 else
22151 ac_cv_header_arpa_inet_h=$ac_header_preproc
22152 fi
22153 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22154 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22155
22156 fi
22157 if test $ac_cv_header_arpa_inet_h = yes; then
22158 :
22159 else
22160 ok_so_far=no
22161 fi
22162
22163
22164 fi
22165 if test $ok_so_far = yes; then
22166
22167 cat >>confdefs.h <<\_ACEOF
22168 #define HAVE_INET_SOCKETS 1
22169 _ACEOF
22170
22171 fi
22172
22173
22174 for ac_header in sys/ioctl.h
22175 do
22176 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22181 echo $ECHO_N "(cached) $ECHO_C" >&6
22182 fi
22183 ac_res=`eval echo '${'$as_ac_Header'}'`
22184 { echo "$as_me:$LINENO: result: $ac_res" >&5
22185 echo "${ECHO_T}$ac_res" >&6; }
22186 else
22187 # Is the header compilable?
22188 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22189 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22190 cat >conftest.$ac_ext <<_ACEOF
22191 /* confdefs.h. */
22192 _ACEOF
22193 cat confdefs.h >>conftest.$ac_ext
22194 cat >>conftest.$ac_ext <<_ACEOF
22195 /* end confdefs.h. */
22196 $ac_includes_default
22197 #include <$ac_header>
22198 _ACEOF
22199 rm -f conftest.$ac_objext
22200 if { (ac_try="$ac_compile"
22201 case "(($ac_try" in
22202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22203 *) ac_try_echo=$ac_try;;
22204 esac
22205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22206 (eval "$ac_compile") 2>conftest.er1
22207 ac_status=$?
22208 grep -v '^ *+' conftest.er1 >conftest.err
22209 rm -f conftest.er1
22210 cat conftest.err >&5
22211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22212 (exit $ac_status); } && {
22213 test -z "$ac_c_werror_flag" ||
22214 test ! -s conftest.err
22215 } && test -s conftest.$ac_objext; then
22216 ac_header_compiler=yes
22217 else
22218 echo "$as_me: failed program was:" >&5
22219 sed 's/^/| /' conftest.$ac_ext >&5
22220
22221 ac_header_compiler=no
22222 fi
22223
22224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22226 echo "${ECHO_T}$ac_header_compiler" >&6; }
22227
22228 # Is the header present?
22229 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22230 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22231 cat >conftest.$ac_ext <<_ACEOF
22232 /* confdefs.h. */
22233 _ACEOF
22234 cat confdefs.h >>conftest.$ac_ext
22235 cat >>conftest.$ac_ext <<_ACEOF
22236 /* end confdefs.h. */
22237 #include <$ac_header>
22238 _ACEOF
22239 if { (ac_try="$ac_cpp conftest.$ac_ext"
22240 case "(($ac_try" in
22241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22242 *) ac_try_echo=$ac_try;;
22243 esac
22244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22246 ac_status=$?
22247 grep -v '^ *+' conftest.er1 >conftest.err
22248 rm -f conftest.er1
22249 cat conftest.err >&5
22250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22251 (exit $ac_status); } >/dev/null && {
22252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22253 test ! -s conftest.err
22254 }; then
22255 ac_header_preproc=yes
22256 else
22257 echo "$as_me: failed program was:" >&5
22258 sed 's/^/| /' conftest.$ac_ext >&5
22259
22260 ac_header_preproc=no
22261 fi
22262
22263 rm -f conftest.err conftest.$ac_ext
22264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22265 echo "${ECHO_T}$ac_header_preproc" >&6; }
22266
22267 # So? What about this header?
22268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22269 yes:no: )
22270 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22271 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22272 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22273 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22274 ac_header_preproc=yes
22275 ;;
22276 no:yes:* )
22277 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22278 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22279 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22280 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22281 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22282 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22283 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22284 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22285 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22286 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22287 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22288 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22289
22290 ;;
22291 esac
22292 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22293 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22294 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22295 echo $ECHO_N "(cached) $ECHO_C" >&6
22296 else
22297 eval "$as_ac_Header=\$ac_header_preproc"
22298 fi
22299 ac_res=`eval echo '${'$as_ac_Header'}'`
22300 { echo "$as_me:$LINENO: result: $ac_res" >&5
22301 echo "${ECHO_T}$ac_res" >&6; }
22302
22303 fi
22304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22305 cat >>confdefs.h <<_ACEOF
22306 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22307 _ACEOF
22308
22309 fi
22310
22311 done
22312
22313
22314 if test -f /usr/lpp/X11/bin/smt.exp; then
22315
22316 cat >>confdefs.h <<\_ACEOF
22317 #define HAVE_AIX_SMT_EXP 1
22318 _ACEOF
22319
22320 fi
22321
22322 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22323 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22324 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22325 { echo "$as_me:$LINENO: result: yes" >&5
22326 echo "${ECHO_T}yes" >&6; }
22327
22328 cat >>confdefs.h <<\_ACEOF
22329 #define HAVE_DEV_PTMX 1
22330 _ACEOF
22331
22332 else
22333 { echo "$as_me:$LINENO: result: no" >&5
22334 echo "${ECHO_T}no" >&6; }
22335 fi
22336
22337 { echo "$as_me:$LINENO: checking for pid_t" >&5
22338 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22339 if test "${ac_cv_type_pid_t+set}" = set; then
22340 echo $ECHO_N "(cached) $ECHO_C" >&6
22341 else
22342 cat >conftest.$ac_ext <<_ACEOF
22343 /* confdefs.h. */
22344 _ACEOF
22345 cat confdefs.h >>conftest.$ac_ext
22346 cat >>conftest.$ac_ext <<_ACEOF
22347 /* end confdefs.h. */
22348 $ac_includes_default
22349 typedef pid_t ac__type_new_;
22350 int
22351 main ()
22352 {
22353 if ((ac__type_new_ *) 0)
22354 return 0;
22355 if (sizeof (ac__type_new_))
22356 return 0;
22357 ;
22358 return 0;
22359 }
22360 _ACEOF
22361 rm -f conftest.$ac_objext
22362 if { (ac_try="$ac_compile"
22363 case "(($ac_try" in
22364 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22365 *) ac_try_echo=$ac_try;;
22366 esac
22367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22368 (eval "$ac_compile") 2>conftest.er1
22369 ac_status=$?
22370 grep -v '^ *+' conftest.er1 >conftest.err
22371 rm -f conftest.er1
22372 cat conftest.err >&5
22373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22374 (exit $ac_status); } && {
22375 test -z "$ac_c_werror_flag" ||
22376 test ! -s conftest.err
22377 } && test -s conftest.$ac_objext; then
22378 ac_cv_type_pid_t=yes
22379 else
22380 echo "$as_me: failed program was:" >&5
22381 sed 's/^/| /' conftest.$ac_ext >&5
22382
22383 ac_cv_type_pid_t=no
22384 fi
22385
22386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22387 fi
22388 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22389 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22390 if test $ac_cv_type_pid_t = yes; then
22391 :
22392 else
22393
22394 cat >>confdefs.h <<_ACEOF
22395 #define pid_t int
22396 _ACEOF
22397
22398 fi
22399
22400
22401 for ac_header in vfork.h
22402 do
22403 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22404 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22405 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22406 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22407 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22408 echo $ECHO_N "(cached) $ECHO_C" >&6
22409 fi
22410 ac_res=`eval echo '${'$as_ac_Header'}'`
22411 { echo "$as_me:$LINENO: result: $ac_res" >&5
22412 echo "${ECHO_T}$ac_res" >&6; }
22413 else
22414 # Is the header compilable?
22415 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22416 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22417 cat >conftest.$ac_ext <<_ACEOF
22418 /* confdefs.h. */
22419 _ACEOF
22420 cat confdefs.h >>conftest.$ac_ext
22421 cat >>conftest.$ac_ext <<_ACEOF
22422 /* end confdefs.h. */
22423 $ac_includes_default
22424 #include <$ac_header>
22425 _ACEOF
22426 rm -f conftest.$ac_objext
22427 if { (ac_try="$ac_compile"
22428 case "(($ac_try" in
22429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22430 *) ac_try_echo=$ac_try;;
22431 esac
22432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22433 (eval "$ac_compile") 2>conftest.er1
22434 ac_status=$?
22435 grep -v '^ *+' conftest.er1 >conftest.err
22436 rm -f conftest.er1
22437 cat conftest.err >&5
22438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22439 (exit $ac_status); } && {
22440 test -z "$ac_c_werror_flag" ||
22441 test ! -s conftest.err
22442 } && test -s conftest.$ac_objext; then
22443 ac_header_compiler=yes
22444 else
22445 echo "$as_me: failed program was:" >&5
22446 sed 's/^/| /' conftest.$ac_ext >&5
22447
22448 ac_header_compiler=no
22449 fi
22450
22451 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22452 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22453 echo "${ECHO_T}$ac_header_compiler" >&6; }
22454
22455 # Is the header present?
22456 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22457 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22458 cat >conftest.$ac_ext <<_ACEOF
22459 /* confdefs.h. */
22460 _ACEOF
22461 cat confdefs.h >>conftest.$ac_ext
22462 cat >>conftest.$ac_ext <<_ACEOF
22463 /* end confdefs.h. */
22464 #include <$ac_header>
22465 _ACEOF
22466 if { (ac_try="$ac_cpp conftest.$ac_ext"
22467 case "(($ac_try" in
22468 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22469 *) ac_try_echo=$ac_try;;
22470 esac
22471 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22472 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22473 ac_status=$?
22474 grep -v '^ *+' conftest.er1 >conftest.err
22475 rm -f conftest.er1
22476 cat conftest.err >&5
22477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22478 (exit $ac_status); } >/dev/null && {
22479 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22480 test ! -s conftest.err
22481 }; then
22482 ac_header_preproc=yes
22483 else
22484 echo "$as_me: failed program was:" >&5
22485 sed 's/^/| /' conftest.$ac_ext >&5
22486
22487 ac_header_preproc=no
22488 fi
22489
22490 rm -f conftest.err conftest.$ac_ext
22491 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22492 echo "${ECHO_T}$ac_header_preproc" >&6; }
22493
22494 # So? What about this header?
22495 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22496 yes:no: )
22497 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22498 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22499 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22500 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22501 ac_header_preproc=yes
22502 ;;
22503 no:yes:* )
22504 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22505 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22506 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22507 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22508 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22509 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22510 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22511 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22512 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22513 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22514 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22515 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22516
22517 ;;
22518 esac
22519 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22520 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22521 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22522 echo $ECHO_N "(cached) $ECHO_C" >&6
22523 else
22524 eval "$as_ac_Header=\$ac_header_preproc"
22525 fi
22526 ac_res=`eval echo '${'$as_ac_Header'}'`
22527 { echo "$as_me:$LINENO: result: $ac_res" >&5
22528 echo "${ECHO_T}$ac_res" >&6; }
22529
22530 fi
22531 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22532 cat >>confdefs.h <<_ACEOF
22533 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22534 _ACEOF
22535
22536 fi
22537
22538 done
22539
22540
22541
22542 for ac_func in fork vfork
22543 do
22544 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22545 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22546 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22547 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22548 echo $ECHO_N "(cached) $ECHO_C" >&6
22549 else
22550 cat >conftest.$ac_ext <<_ACEOF
22551 /* confdefs.h. */
22552 _ACEOF
22553 cat confdefs.h >>conftest.$ac_ext
22554 cat >>conftest.$ac_ext <<_ACEOF
22555 /* end confdefs.h. */
22556 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22557 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22558 #define $ac_func innocuous_$ac_func
22559
22560 /* System header to define __stub macros and hopefully few prototypes,
22561 which can conflict with char $ac_func (); below.
22562 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22563 <limits.h> exists even on freestanding compilers. */
22564
22565 #ifdef __STDC__
22566 # include <limits.h>
22567 #else
22568 # include <assert.h>
22569 #endif
22570
22571 #undef $ac_func
22572
22573 /* Override any GCC internal prototype to avoid an error.
22574 Use char because int might match the return type of a GCC
22575 builtin and then its argument prototype would still apply. */
22576 #ifdef __cplusplus
22577 extern "C"
22578 #endif
22579 char $ac_func ();
22580 /* The GNU C library defines this for functions which it implements
22581 to always fail with ENOSYS. Some functions are actually named
22582 something starting with __ and the normal name is an alias. */
22583 #if defined __stub_$ac_func || defined __stub___$ac_func
22584 choke me
22585 #endif
22586
22587 int
22588 main ()
22589 {
22590 return $ac_func ();
22591 ;
22592 return 0;
22593 }
22594 _ACEOF
22595 rm -f conftest.$ac_objext conftest$ac_exeext
22596 if { (ac_try="$ac_link"
22597 case "(($ac_try" in
22598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22599 *) ac_try_echo=$ac_try;;
22600 esac
22601 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22602 (eval "$ac_link") 2>conftest.er1
22603 ac_status=$?
22604 grep -v '^ *+' conftest.er1 >conftest.err
22605 rm -f conftest.er1
22606 cat conftest.err >&5
22607 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22608 (exit $ac_status); } && {
22609 test -z "$ac_c_werror_flag" ||
22610 test ! -s conftest.err
22611 } && test -s conftest$ac_exeext &&
22612 $as_test_x conftest$ac_exeext; then
22613 eval "$as_ac_var=yes"
22614 else
22615 echo "$as_me: failed program was:" >&5
22616 sed 's/^/| /' conftest.$ac_ext >&5
22617
22618 eval "$as_ac_var=no"
22619 fi
22620
22621 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22622 conftest$ac_exeext conftest.$ac_ext
22623 fi
22624 ac_res=`eval echo '${'$as_ac_var'}'`
22625 { echo "$as_me:$LINENO: result: $ac_res" >&5
22626 echo "${ECHO_T}$ac_res" >&6; }
22627 if test `eval echo '${'$as_ac_var'}'` = yes; then
22628 cat >>confdefs.h <<_ACEOF
22629 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22630 _ACEOF
22631
22632 fi
22633 done
22634
22635 if test "x$ac_cv_func_fork" = xyes; then
22636 { echo "$as_me:$LINENO: checking for working fork" >&5
22637 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
22638 if test "${ac_cv_func_fork_works+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 if test "$cross_compiling" = yes; then
22642 ac_cv_func_fork_works=cross
22643 else
22644 cat >conftest.$ac_ext <<_ACEOF
22645 /* confdefs.h. */
22646 _ACEOF
22647 cat confdefs.h >>conftest.$ac_ext
22648 cat >>conftest.$ac_ext <<_ACEOF
22649 /* end confdefs.h. */
22650 $ac_includes_default
22651 int
22652 main ()
22653 {
22654
22655 /* By Ruediger Kuhlmann. */
22656 return fork () < 0;
22657
22658 ;
22659 return 0;
22660 }
22661 _ACEOF
22662 rm -f conftest$ac_exeext
22663 if { (ac_try="$ac_link"
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_link") 2>&5
22670 ac_status=$?
22671 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22672 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22673 { (case "(($ac_try" in
22674 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22675 *) ac_try_echo=$ac_try;;
22676 esac
22677 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22678 (eval "$ac_try") 2>&5
22679 ac_status=$?
22680 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22681 (exit $ac_status); }; }; then
22682 ac_cv_func_fork_works=yes
22683 else
22684 echo "$as_me: program exited with status $ac_status" >&5
22685 echo "$as_me: failed program was:" >&5
22686 sed 's/^/| /' conftest.$ac_ext >&5
22687
22688 ( exit $ac_status )
22689 ac_cv_func_fork_works=no
22690 fi
22691 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22692 fi
22693
22694
22695 fi
22696 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
22697 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
22698
22699 else
22700 ac_cv_func_fork_works=$ac_cv_func_fork
22701 fi
22702 if test "x$ac_cv_func_fork_works" = xcross; then
22703 case $host in
22704 *-*-amigaos* | *-*-msdosdjgpp*)
22705 # Override, as these systems have only a dummy fork() stub
22706 ac_cv_func_fork_works=no
22707 ;;
22708 *)
22709 ac_cv_func_fork_works=yes
22710 ;;
22711 esac
22712 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
22713 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
22714 fi
22715 ac_cv_func_vfork_works=$ac_cv_func_vfork
22716 if test "x$ac_cv_func_vfork" = xyes; then
22717 { echo "$as_me:$LINENO: checking for working vfork" >&5
22718 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
22719 if test "${ac_cv_func_vfork_works+set}" = set; then
22720 echo $ECHO_N "(cached) $ECHO_C" >&6
22721 else
22722 if test "$cross_compiling" = yes; then
22723 ac_cv_func_vfork_works=cross
22724 else
22725 cat >conftest.$ac_ext <<_ACEOF
22726 /* confdefs.h. */
22727 _ACEOF
22728 cat confdefs.h >>conftest.$ac_ext
22729 cat >>conftest.$ac_ext <<_ACEOF
22730 /* end confdefs.h. */
22731 /* Thanks to Paul Eggert for this test. */
22732 $ac_includes_default
22733 #include <sys/wait.h>
22734 #ifdef HAVE_VFORK_H
22735 # include <vfork.h>
22736 #endif
22737 /* On some sparc systems, changes by the child to local and incoming
22738 argument registers are propagated back to the parent. The compiler
22739 is told about this with #include <vfork.h>, but some compilers
22740 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
22741 static variable whose address is put into a register that is
22742 clobbered by the vfork. */
22743 static void
22744 #ifdef __cplusplus
22745 sparc_address_test (int arg)
22746 # else
22747 sparc_address_test (arg) int arg;
22748 #endif
22749 {
22750 static pid_t child;
22751 if (!child) {
22752 child = vfork ();
22753 if (child < 0) {
22754 perror ("vfork");
22755 _exit(2);
22756 }
22757 if (!child) {
22758 arg = getpid();
22759 write(-1, "", 0);
22760 _exit (arg);
22761 }
22762 }
22763 }
22764
22765 int
22766 main ()
22767 {
22768 pid_t parent = getpid ();
22769 pid_t child;
22770
22771 sparc_address_test (0);
22772
22773 child = vfork ();
22774
22775 if (child == 0) {
22776 /* Here is another test for sparc vfork register problems. This
22777 test uses lots of local variables, at least as many local
22778 variables as main has allocated so far including compiler
22779 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
22780 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
22781 reuse the register of parent for one of the local variables,
22782 since it will think that parent can't possibly be used any more
22783 in this routine. Assigning to the local variable will thus
22784 munge parent in the parent process. */
22785 pid_t
22786 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
22787 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
22788 /* Convince the compiler that p..p7 are live; otherwise, it might
22789 use the same hardware register for all 8 local variables. */
22790 if (p != p1 || p != p2 || p != p3 || p != p4
22791 || p != p5 || p != p6 || p != p7)
22792 _exit(1);
22793
22794 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
22795 from child file descriptors. If the child closes a descriptor
22796 before it execs or exits, this munges the parent's descriptor
22797 as well. Test for this by closing stdout in the child. */
22798 _exit(close(fileno(stdout)) != 0);
22799 } else {
22800 int status;
22801 struct stat st;
22802
22803 while (wait(&status) != child)
22804 ;
22805 return (
22806 /* Was there some problem with vforking? */
22807 child < 0
22808
22809 /* Did the child fail? (This shouldn't happen.) */
22810 || status
22811
22812 /* Did the vfork/compiler bug occur? */
22813 || parent != getpid()
22814
22815 /* Did the file descriptor bug occur? */
22816 || fstat(fileno(stdout), &st) != 0
22817 );
22818 }
22819 }
22820 _ACEOF
22821 rm -f conftest$ac_exeext
22822 if { (ac_try="$ac_link"
22823 case "(($ac_try" in
22824 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22825 *) ac_try_echo=$ac_try;;
22826 esac
22827 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22828 (eval "$ac_link") 2>&5
22829 ac_status=$?
22830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22831 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22832 { (case "(($ac_try" in
22833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22834 *) ac_try_echo=$ac_try;;
22835 esac
22836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22837 (eval "$ac_try") 2>&5
22838 ac_status=$?
22839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22840 (exit $ac_status); }; }; then
22841 ac_cv_func_vfork_works=yes
22842 else
22843 echo "$as_me: program exited with status $ac_status" >&5
22844 echo "$as_me: failed program was:" >&5
22845 sed 's/^/| /' conftest.$ac_ext >&5
22846
22847 ( exit $ac_status )
22848 ac_cv_func_vfork_works=no
22849 fi
22850 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22851 fi
22852
22853
22854 fi
22855 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
22856 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
22857
22858 fi;
22859 if test "x$ac_cv_func_fork_works" = xcross; then
22860 ac_cv_func_vfork_works=$ac_cv_func_vfork
22861 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
22862 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
22863 fi
22864
22865 if test "x$ac_cv_func_vfork_works" = xyes; then
22866
22867 cat >>confdefs.h <<\_ACEOF
22868 #define HAVE_WORKING_VFORK 1
22869 _ACEOF
22870
22871 else
22872
22873 cat >>confdefs.h <<\_ACEOF
22874 #define vfork fork
22875 _ACEOF
22876
22877 fi
22878 if test "x$ac_cv_func_fork_works" = xyes; then
22879
22880 cat >>confdefs.h <<\_ACEOF
22881 #define HAVE_WORKING_FORK 1
22882 _ACEOF
22883
22884 fi
22885
22886
22887 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
22888 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
22889 if test "${emacs_cv_langinfo_codeset+set}" = set; then
22890 echo $ECHO_N "(cached) $ECHO_C" >&6
22891 else
22892 cat >conftest.$ac_ext <<_ACEOF
22893 /* confdefs.h. */
22894 _ACEOF
22895 cat confdefs.h >>conftest.$ac_ext
22896 cat >>conftest.$ac_ext <<_ACEOF
22897 /* end confdefs.h. */
22898 #include <langinfo.h>
22899 int
22900 main ()
22901 {
22902 char* cs = nl_langinfo(CODESET);
22903 ;
22904 return 0;
22905 }
22906 _ACEOF
22907 rm -f conftest.$ac_objext conftest$ac_exeext
22908 if { (ac_try="$ac_link"
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_link") 2>conftest.er1
22915 ac_status=$?
22916 grep -v '^ *+' conftest.er1 >conftest.err
22917 rm -f conftest.er1
22918 cat conftest.err >&5
22919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22920 (exit $ac_status); } && {
22921 test -z "$ac_c_werror_flag" ||
22922 test ! -s conftest.err
22923 } && test -s conftest$ac_exeext &&
22924 $as_test_x conftest$ac_exeext; then
22925 emacs_cv_langinfo_codeset=yes
22926 else
22927 echo "$as_me: failed program was:" >&5
22928 sed 's/^/| /' conftest.$ac_ext >&5
22929
22930 emacs_cv_langinfo_codeset=no
22931 fi
22932
22933 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22934 conftest$ac_exeext conftest.$ac_ext
22935
22936 fi
22937 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
22938 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
22939 if test $emacs_cv_langinfo_codeset = yes; then
22940
22941 cat >>confdefs.h <<\_ACEOF
22942 #define HAVE_LANGINFO_CODESET 1
22943 _ACEOF
22944
22945 fi
22946
22947 { echo "$as_me:$LINENO: checking for size_t" >&5
22948 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
22949 if test "${ac_cv_type_size_t+set}" = set; then
22950 echo $ECHO_N "(cached) $ECHO_C" >&6
22951 else
22952 cat >conftest.$ac_ext <<_ACEOF
22953 /* confdefs.h. */
22954 _ACEOF
22955 cat confdefs.h >>conftest.$ac_ext
22956 cat >>conftest.$ac_ext <<_ACEOF
22957 /* end confdefs.h. */
22958 $ac_includes_default
22959 typedef size_t ac__type_new_;
22960 int
22961 main ()
22962 {
22963 if ((ac__type_new_ *) 0)
22964 return 0;
22965 if (sizeof (ac__type_new_))
22966 return 0;
22967 ;
22968 return 0;
22969 }
22970 _ACEOF
22971 rm -f conftest.$ac_objext
22972 if { (ac_try="$ac_compile"
22973 case "(($ac_try" in
22974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22975 *) ac_try_echo=$ac_try;;
22976 esac
22977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22978 (eval "$ac_compile") 2>conftest.er1
22979 ac_status=$?
22980 grep -v '^ *+' conftest.er1 >conftest.err
22981 rm -f conftest.er1
22982 cat conftest.err >&5
22983 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22984 (exit $ac_status); } && {
22985 test -z "$ac_c_werror_flag" ||
22986 test ! -s conftest.err
22987 } && test -s conftest.$ac_objext; then
22988 ac_cv_type_size_t=yes
22989 else
22990 echo "$as_me: failed program was:" >&5
22991 sed 's/^/| /' conftest.$ac_ext >&5
22992
22993 ac_cv_type_size_t=no
22994 fi
22995
22996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22997 fi
22998 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
22999 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23000 if test $ac_cv_type_size_t = yes; then
23001
23002 cat >>confdefs.h <<_ACEOF
23003 #define HAVE_SIZE_T 1
23004 _ACEOF
23005
23006
23007 fi
23008
23009
23010 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23011 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23012 if test "${ac_cv_type_mbstate_t+set}" = set; then
23013 echo $ECHO_N "(cached) $ECHO_C" >&6
23014 else
23015 cat >conftest.$ac_ext <<_ACEOF
23016 /* confdefs.h. */
23017 _ACEOF
23018 cat confdefs.h >>conftest.$ac_ext
23019 cat >>conftest.$ac_ext <<_ACEOF
23020 /* end confdefs.h. */
23021 $ac_includes_default
23022 # include <wchar.h>
23023 int
23024 main ()
23025 {
23026 mbstate_t x; return sizeof x;
23027 ;
23028 return 0;
23029 }
23030 _ACEOF
23031 rm -f conftest.$ac_objext
23032 if { (ac_try="$ac_compile"
23033 case "(($ac_try" in
23034 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23035 *) ac_try_echo=$ac_try;;
23036 esac
23037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23038 (eval "$ac_compile") 2>conftest.er1
23039 ac_status=$?
23040 grep -v '^ *+' conftest.er1 >conftest.err
23041 rm -f conftest.er1
23042 cat conftest.err >&5
23043 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23044 (exit $ac_status); } && {
23045 test -z "$ac_c_werror_flag" ||
23046 test ! -s conftest.err
23047 } && test -s conftest.$ac_objext; then
23048 ac_cv_type_mbstate_t=yes
23049 else
23050 echo "$as_me: failed program was:" >&5
23051 sed 's/^/| /' conftest.$ac_ext >&5
23052
23053 ac_cv_type_mbstate_t=no
23054 fi
23055
23056 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23057 fi
23058 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23059 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23060 if test $ac_cv_type_mbstate_t = yes; then
23061
23062 cat >>confdefs.h <<\_ACEOF
23063 #define HAVE_MBSTATE_T 1
23064 _ACEOF
23065
23066 else
23067
23068 cat >>confdefs.h <<\_ACEOF
23069 #define mbstate_t int
23070 _ACEOF
23071
23072 fi
23073
23074 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23075 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23076 if test "${emacs_cv_c_restrict+set}" = set; then
23077 echo $ECHO_N "(cached) $ECHO_C" >&6
23078 else
23079 cat >conftest.$ac_ext <<_ACEOF
23080 /* confdefs.h. */
23081 _ACEOF
23082 cat confdefs.h >>conftest.$ac_ext
23083 cat >>conftest.$ac_ext <<_ACEOF
23084 /* end confdefs.h. */
23085 void fred (int *restrict x);
23086 int
23087 main ()
23088 {
23089
23090 ;
23091 return 0;
23092 }
23093 _ACEOF
23094 rm -f conftest.$ac_objext
23095 if { (ac_try="$ac_compile"
23096 case "(($ac_try" in
23097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23098 *) ac_try_echo=$ac_try;;
23099 esac
23100 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23101 (eval "$ac_compile") 2>conftest.er1
23102 ac_status=$?
23103 grep -v '^ *+' conftest.er1 >conftest.err
23104 rm -f conftest.er1
23105 cat conftest.err >&5
23106 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23107 (exit $ac_status); } && {
23108 test -z "$ac_c_werror_flag" ||
23109 test ! -s conftest.err
23110 } && test -s conftest.$ac_objext; then
23111 emacs_cv_c_restrict=yes
23112 else
23113 echo "$as_me: failed program was:" >&5
23114 sed 's/^/| /' conftest.$ac_ext >&5
23115
23116 cat >conftest.$ac_ext <<_ACEOF
23117 /* confdefs.h. */
23118 _ACEOF
23119 cat confdefs.h >>conftest.$ac_ext
23120 cat >>conftest.$ac_ext <<_ACEOF
23121 /* end confdefs.h. */
23122 void fred (int *__restrict x);
23123 int
23124 main ()
23125 {
23126
23127 ;
23128 return 0;
23129 }
23130 _ACEOF
23131 rm -f conftest.$ac_objext
23132 if { (ac_try="$ac_compile"
23133 case "(($ac_try" in
23134 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23135 *) ac_try_echo=$ac_try;;
23136 esac
23137 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23138 (eval "$ac_compile") 2>conftest.er1
23139 ac_status=$?
23140 grep -v '^ *+' conftest.er1 >conftest.err
23141 rm -f conftest.er1
23142 cat conftest.err >&5
23143 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23144 (exit $ac_status); } && {
23145 test -z "$ac_c_werror_flag" ||
23146 test ! -s conftest.err
23147 } && test -s conftest.$ac_objext; then
23148 emacs_cv_c_restrict=__restrict
23149 else
23150 echo "$as_me: failed program was:" >&5
23151 sed 's/^/| /' conftest.$ac_ext >&5
23152
23153 emacs_cv_c_restrict=no
23154 fi
23155
23156 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23157 fi
23158
23159 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23160 fi
23161 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23162 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23163 case "$emacs_cv_c_restrict" in
23164 yes) emacs_restrict=restrict;;
23165 no) emacs_restrict="";;
23166 *) emacs_restrict="$emacs_cv_c_restrict";;
23167 esac
23168 if test "$emacs_restrict" != __restrict; then
23169
23170 cat >>confdefs.h <<_ACEOF
23171 #define __restrict $emacs_restrict
23172 _ACEOF
23173
23174 fi
23175
23176 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23177 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23178 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23179 echo $ECHO_N "(cached) $ECHO_C" >&6
23180 else
23181 cat >conftest.$ac_ext <<_ACEOF
23182 /* confdefs.h. */
23183 _ACEOF
23184 cat confdefs.h >>conftest.$ac_ext
23185 cat >>conftest.$ac_ext <<_ACEOF
23186 /* end confdefs.h. */
23187 void fred (int x[__restrict]);
23188 int
23189 main ()
23190 {
23191
23192 ;
23193 return 0;
23194 }
23195 _ACEOF
23196 rm -f conftest.$ac_objext
23197 if { (ac_try="$ac_compile"
23198 case "(($ac_try" in
23199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23200 *) ac_try_echo=$ac_try;;
23201 esac
23202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23203 (eval "$ac_compile") 2>conftest.er1
23204 ac_status=$?
23205 grep -v '^ *+' conftest.er1 >conftest.err
23206 rm -f conftest.er1
23207 cat conftest.err >&5
23208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23209 (exit $ac_status); } && {
23210 test -z "$ac_c_werror_flag" ||
23211 test ! -s conftest.err
23212 } && test -s conftest.$ac_objext; then
23213 emacs_cv_c_restrict_arr=yes
23214 else
23215 echo "$as_me: failed program was:" >&5
23216 sed 's/^/| /' conftest.$ac_ext >&5
23217
23218 emacs_cv_c_restrict_arr=no
23219 fi
23220
23221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23222 fi
23223 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23224 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23225 if test "$emacs_cv_c_restrict_arr" = yes; then
23226
23227 cat >>confdefs.h <<\_ACEOF
23228 #define __restrict_arr __restrict
23229 _ACEOF
23230
23231 fi
23232
23233
23234
23235 # Set up the CFLAGS for real compilation, so we can substitute it.
23236 CFLAGS="$REAL_CFLAGS"
23237 CPPFLAGS="$REAL_CPPFLAGS"
23238
23239 #### Find out which version of Emacs this is.
23240 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23241 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23242 if test x"${version}" = x; then
23243 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23244 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23245 { (exit 1); exit 1; }; }
23246 fi
23247
23248 ### Specify what sort of things we'll be editing into Makefile and config.h.
23249 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23250
23251
23252
23253
23254
23255
23256
23257
23258
23259
23260
23261
23262
23263
23264
23265
23266
23267
23268
23269
23270
23271
23272
23273
23274
23275
23276
23277
23278
23279
23280
23281
23282
23283
23284
23285 cat >>confdefs.h <<_ACEOF
23286 #define EMACS_CONFIGURATION "${canonical}"
23287 _ACEOF
23288
23289
23290 cat >>confdefs.h <<_ACEOF
23291 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23292 _ACEOF
23293
23294
23295 cat >>confdefs.h <<_ACEOF
23296 #define config_machfile "${machfile}"
23297 _ACEOF
23298
23299
23300 cat >>confdefs.h <<_ACEOF
23301 #define config_opsysfile "${opsysfile}"
23302 _ACEOF
23303
23304
23305 cat >>confdefs.h <<_ACEOF
23306 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23307 _ACEOF
23308
23309
23310 cat >>confdefs.h <<_ACEOF
23311 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23312 _ACEOF
23313
23314
23315 cat >>confdefs.h <<_ACEOF
23316 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23317 _ACEOF
23318
23319
23320 cat >>confdefs.h <<_ACEOF
23321 #define UNEXEC_SRC ${UNEXEC_SRC}
23322 _ACEOF
23323
23324
23325 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23326
23327 cat >>confdefs.h <<\_ACEOF
23328 #define HAVE_X_WINDOWS 1
23329 _ACEOF
23330
23331 fi
23332 if test "${USE_X_TOOLKIT}" != "none" ; then
23333
23334 cat >>confdefs.h <<\_ACEOF
23335 #define USE_X_TOOLKIT 1
23336 _ACEOF
23337
23338 fi
23339 if test "${HAVE_X11}" = "yes" ; then
23340
23341 cat >>confdefs.h <<\_ACEOF
23342 #define HAVE_X11 1
23343 _ACEOF
23344
23345 fi
23346 if test "${HAVE_XFREE386}" = "yes" ; then
23347
23348 cat >>confdefs.h <<\_ACEOF
23349 #define HAVE_XFREE386 1
23350 _ACEOF
23351
23352 fi
23353 if test "${HAVE_MENUS}" = "yes" ; then
23354
23355 cat >>confdefs.h <<\_ACEOF
23356 #define HAVE_MENUS 1
23357 _ACEOF
23358
23359 fi
23360 if test "${GNU_MALLOC}" = "yes" ; then
23361
23362 cat >>confdefs.h <<\_ACEOF
23363 #define GNU_MALLOC 1
23364 _ACEOF
23365
23366 fi
23367 if test "${REL_ALLOC}" = "yes" ; then
23368
23369 cat >>confdefs.h <<\_ACEOF
23370 #define REL_ALLOC 1
23371 _ACEOF
23372
23373 fi
23374
23375
23376
23377
23378
23379 #### Report on what we decided to do.
23380 #### Report GTK as a toolkit, even if it doesn't use Xt.
23381 #### It makes printing result more understandable as using GTK sets
23382 #### toolkit_scroll_bars to yes by default.
23383 if test "${HAVE_GTK}" = "yes"; then
23384 USE_X_TOOLKIT=GTK
23385 fi
23386
23387 echo "
23388 Configured for \`${canonical}'.
23389
23390 Where should the build process find the source code? ${srcdir}
23391 What operating system and machine description files should Emacs use?
23392 \`${opsysfile}' and \`${machfile}'
23393 What compiler should emacs be built with? ${CC} ${CFLAGS}
23394 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23395 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23396 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23397 What window system should Emacs use? ${window_system}
23398 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23399
23400 if test -n "${x_includes}"; then
23401 echo " Where do we find X Windows header files? ${x_includes}"
23402 else
23403 echo " Where do we find X Windows header files? Standard dirs"
23404 fi
23405 if test -n "${x_libraries}"; then
23406 echo " Where do we find X Windows libraries? ${x_libraries}"
23407 else
23408 echo " Where do we find X Windows libraries? Standard dirs"
23409 fi
23410
23411 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23412 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23413 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23414 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23415 echo " Does Emacs use -lungif? ${HAVE_GIF}"
23416 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23417 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23418 echo
23419
23420 if test $USE_XASSERTS = yes; then
23421 echo " Compiling with asserts turned on."
23422 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23423 echo
23424 fi
23425
23426 if test "$USE_X_TOOLKIT" = GTK; then
23427 case "$canonical" in
23428 *cygwin*)
23429 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23430 will probably get a crash on startup. If this happens, please use another
23431 toolkit for Emacs. See etc/PROBLEMS for more information."
23432 ;;
23433 esac
23434 fi
23435
23436
23437
23438 # Remove any trailing slashes in these variables.
23439 test "${prefix}" != NONE &&
23440 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23441 test "${exec_prefix}" != NONE &&
23442 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23443
23444 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23445 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23446 ## from Makefile.c can correctly provide the arg `-traditional' to the
23447 ## C preprocessor.
23448
23449 cat >conftest.$ac_ext <<_ACEOF
23450 /* confdefs.h. */
23451 _ACEOF
23452 cat confdefs.h >>conftest.$ac_ext
23453 cat >>conftest.$ac_ext <<_ACEOF
23454 /* end confdefs.h. */
23455 yes..yes
23456 _ACEOF
23457 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23458 $EGREP "yes..yes" >/dev/null 2>&1; then
23459 CPP_NEED_TRADITIONAL=no
23460 else
23461 CPP_NEED_TRADITIONAL=yes
23462 fi
23463 rm -f conftest*
23464
23465
23466 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"
23467
23468 ac_config_commands="$ac_config_commands default"
23469
23470 cat >confcache <<\_ACEOF
23471 # This file is a shell script that caches the results of configure
23472 # tests run on this system so they can be shared between configure
23473 # scripts and configure runs, see configure's option --config-cache.
23474 # It is not useful on other systems. If it contains results you don't
23475 # want to keep, you may remove or edit it.
23476 #
23477 # config.status only pays attention to the cache file if you give it
23478 # the --recheck option to rerun configure.
23479 #
23480 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23481 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23482 # following values.
23483
23484 _ACEOF
23485
23486 # The following way of writing the cache mishandles newlines in values,
23487 # but we know of no workaround that is simple, portable, and efficient.
23488 # So, we kill variables containing newlines.
23489 # Ultrix sh set writes to stderr and can't be redirected directly,
23490 # and sets the high bit in the cache file unless we assign to the vars.
23491 (
23492 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23493 eval ac_val=\$$ac_var
23494 case $ac_val in #(
23495 *${as_nl}*)
23496 case $ac_var in #(
23497 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
23498 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
23499 esac
23500 case $ac_var in #(
23501 _ | IFS | as_nl) ;; #(
23502 *) $as_unset $ac_var ;;
23503 esac ;;
23504 esac
23505 done
23506
23507 (set) 2>&1 |
23508 case $as_nl`(ac_space=' '; set) 2>&1` in #(
23509 *${as_nl}ac_space=\ *)
23510 # `set' does not quote correctly, so add quotes (double-quote
23511 # substitution turns \\\\ into \\, and sed turns \\ into \).
23512 sed -n \
23513 "s/'/'\\\\''/g;
23514 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
23515 ;; #(
23516 *)
23517 # `set' quotes correctly as required by POSIX, so do not add quotes.
23518 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
23519 ;;
23520 esac |
23521 sort
23522 ) |
23523 sed '
23524 /^ac_cv_env_/b end
23525 t clear
23526 :clear
23527 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
23528 t end
23529 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
23530 :end' >>confcache
23531 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
23532 if test -w "$cache_file"; then
23533 test "x$cache_file" != "x/dev/null" &&
23534 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
23535 echo "$as_me: updating cache $cache_file" >&6;}
23536 cat confcache >$cache_file
23537 else
23538 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
23539 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
23540 fi
23541 fi
23542 rm -f confcache
23543
23544 test "x$prefix" = xNONE && prefix=$ac_default_prefix
23545 # Let make expand exec_prefix.
23546 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
23547
23548 DEFS=-DHAVE_CONFIG_H
23549
23550 ac_libobjs=
23551 ac_ltlibobjs=
23552 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
23553 # 1. Remove the extension, and $U if already installed.
23554 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
23555 ac_i=`echo "$ac_i" | sed "$ac_script"`
23556 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
23557 # will be set to the directory where LIBOBJS objects are built.
23558 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
23559 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
23560 done
23561 LIBOBJS=$ac_libobjs
23562
23563 LTLIBOBJS=$ac_ltlibobjs
23564
23565
23566
23567 : ${CONFIG_STATUS=./config.status}
23568 ac_clean_files_save=$ac_clean_files
23569 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
23570 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
23571 echo "$as_me: creating $CONFIG_STATUS" >&6;}
23572 cat >$CONFIG_STATUS <<_ACEOF
23573 #! $SHELL
23574 # Generated by $as_me.
23575 # Run this file to recreate the current configuration.
23576 # Compiler output produced by configure, useful for debugging
23577 # configure, is in config.log if it exists.
23578
23579 debug=false
23580 ac_cs_recheck=false
23581 ac_cs_silent=false
23582 SHELL=\${CONFIG_SHELL-$SHELL}
23583 _ACEOF
23584
23585 cat >>$CONFIG_STATUS <<\_ACEOF
23586 ## --------------------- ##
23587 ## M4sh Initialization. ##
23588 ## --------------------- ##
23589
23590 # Be more Bourne compatible
23591 DUALCASE=1; export DUALCASE # for MKS sh
23592 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
23593 emulate sh
23594 NULLCMD=:
23595 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
23596 # is contrary to our usage. Disable this feature.
23597 alias -g '${1+"$@"}'='"$@"'
23598 setopt NO_GLOB_SUBST
23599 else
23600 case `(set -o) 2>/dev/null` in
23601 *posix*) set -o posix ;;
23602 esac
23603
23604 fi
23605
23606
23607
23608
23609 # PATH needs CR
23610 # Avoid depending upon Character Ranges.
23611 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
23612 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
23613 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
23614 as_cr_digits='0123456789'
23615 as_cr_alnum=$as_cr_Letters$as_cr_digits
23616
23617 # The user is always right.
23618 if test "${PATH_SEPARATOR+set}" != set; then
23619 echo "#! /bin/sh" >conf$$.sh
23620 echo "exit 0" >>conf$$.sh
23621 chmod +x conf$$.sh
23622 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
23623 PATH_SEPARATOR=';'
23624 else
23625 PATH_SEPARATOR=:
23626 fi
23627 rm -f conf$$.sh
23628 fi
23629
23630 # Support unset when possible.
23631 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
23632 as_unset=unset
23633 else
23634 as_unset=false
23635 fi
23636
23637
23638 # IFS
23639 # We need space, tab and new line, in precisely that order. Quoting is
23640 # there to prevent editors from complaining about space-tab.
23641 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
23642 # splitting by setting IFS to empty value.)
23643 as_nl='
23644 '
23645 IFS=" "" $as_nl"
23646
23647 # Find who we are. Look in the path if we contain no directory separator.
23648 case $0 in
23649 *[\\/]* ) as_myself=$0 ;;
23650 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
23651 for as_dir in $PATH
23652 do
23653 IFS=$as_save_IFS
23654 test -z "$as_dir" && as_dir=.
23655 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
23656 done
23657 IFS=$as_save_IFS
23658
23659 ;;
23660 esac
23661 # We did not find ourselves, most probably we were run as `sh COMMAND'
23662 # in which case we are not to be found in the path.
23663 if test "x$as_myself" = x; then
23664 as_myself=$0
23665 fi
23666 if test ! -f "$as_myself"; then
23667 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
23668 { (exit 1); exit 1; }
23669 fi
23670
23671 # Work around bugs in pre-3.0 UWIN ksh.
23672 for as_var in ENV MAIL MAILPATH
23673 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23674 done
23675 PS1='$ '
23676 PS2='> '
23677 PS4='+ '
23678
23679 # NLS nuisances.
23680 for as_var in \
23681 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
23682 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
23683 LC_TELEPHONE LC_TIME
23684 do
23685 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
23686 eval $as_var=C; export $as_var
23687 else
23688 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
23689 fi
23690 done
23691
23692 # Required to use basename.
23693 if expr a : '\(a\)' >/dev/null 2>&1 &&
23694 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23695 as_expr=expr
23696 else
23697 as_expr=false
23698 fi
23699
23700 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
23701 as_basename=basename
23702 else
23703 as_basename=false
23704 fi
23705
23706
23707 # Name of the executable.
23708 as_me=`$as_basename -- "$0" ||
23709 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
23710 X"$0" : 'X\(//\)$' \| \
23711 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
23712 echo X/"$0" |
23713 sed '/^.*\/\([^/][^/]*\)\/*$/{
23714 s//\1/
23715 q
23716 }
23717 /^X\/\(\/\/\)$/{
23718 s//\1/
23719 q
23720 }
23721 /^X\/\(\/\).*/{
23722 s//\1/
23723 q
23724 }
23725 s/.*/./; q'`
23726
23727 # CDPATH.
23728 $as_unset CDPATH
23729
23730
23731
23732 as_lineno_1=$LINENO
23733 as_lineno_2=$LINENO
23734 test "x$as_lineno_1" != "x$as_lineno_2" &&
23735 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
23736
23737 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
23738 # uniformly replaced by the line number. The first 'sed' inserts a
23739 # line-number line after each line using $LINENO; the second 'sed'
23740 # does the real work. The second script uses 'N' to pair each
23741 # line-number line with the line containing $LINENO, and appends
23742 # trailing '-' during substitution so that $LINENO is not a special
23743 # case at line end.
23744 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
23745 # scripts with optimization help from Paolo Bonzini. Blame Lee
23746 # E. McMahon (1931-1989) for sed's syntax. :-)
23747 sed -n '
23748 p
23749 /[$]LINENO/=
23750 ' <$as_myself |
23751 sed '
23752 s/[$]LINENO.*/&-/
23753 t lineno
23754 b
23755 :lineno
23756 N
23757 :loop
23758 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
23759 t loop
23760 s/-\n.*//
23761 ' >$as_me.lineno &&
23762 chmod +x "$as_me.lineno" ||
23763 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
23764 { (exit 1); exit 1; }; }
23765
23766 # Don't try to exec as it changes $[0], causing all sort of problems
23767 # (the dirname of $[0] is not the place where we might find the
23768 # original and so on. Autoconf is especially sensitive to this).
23769 . "./$as_me.lineno"
23770 # Exit status is that of the last command.
23771 exit
23772 }
23773
23774
23775 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
23776 as_dirname=dirname
23777 else
23778 as_dirname=false
23779 fi
23780
23781 ECHO_C= ECHO_N= ECHO_T=
23782 case `echo -n x` in
23783 -n*)
23784 case `echo 'x\c'` in
23785 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
23786 *) ECHO_C='\c';;
23787 esac;;
23788 *)
23789 ECHO_N='-n';;
23790 esac
23791
23792 if expr a : '\(a\)' >/dev/null 2>&1 &&
23793 test "X`expr 00001 : '.*\(...\)'`" = X001; then
23794 as_expr=expr
23795 else
23796 as_expr=false
23797 fi
23798
23799 rm -f conf$$ conf$$.exe conf$$.file
23800 if test -d conf$$.dir; then
23801 rm -f conf$$.dir/conf$$.file
23802 else
23803 rm -f conf$$.dir
23804 mkdir conf$$.dir
23805 fi
23806 echo >conf$$.file
23807 if ln -s conf$$.file conf$$ 2>/dev/null; then
23808 as_ln_s='ln -s'
23809 # ... but there are two gotchas:
23810 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
23811 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
23812 # In both cases, we have to default to `cp -p'.
23813 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
23814 as_ln_s='cp -p'
23815 elif ln conf$$.file conf$$ 2>/dev/null; then
23816 as_ln_s=ln
23817 else
23818 as_ln_s='cp -p'
23819 fi
23820 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
23821 rmdir conf$$.dir 2>/dev/null
23822
23823 if mkdir -p . 2>/dev/null; then
23824 as_mkdir_p=:
23825 else
23826 test -d ./-p && rmdir ./-p
23827 as_mkdir_p=false
23828 fi
23829
23830 if test -x / >/dev/null 2>&1; then
23831 as_test_x='test -x'
23832 else
23833 if ls -dL / >/dev/null 2>&1; then
23834 as_ls_L_option=L
23835 else
23836 as_ls_L_option=
23837 fi
23838 as_test_x='
23839 eval sh -c '\''
23840 if test -d "$1"; then
23841 test -d "$1/.";
23842 else
23843 case $1 in
23844 -*)set "./$1";;
23845 esac;
23846 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
23847 ???[sx]*):;;*)false;;esac;fi
23848 '\'' sh
23849 '
23850 fi
23851 as_executable_p=$as_test_x
23852
23853 # Sed expression to map a string onto a valid CPP name.
23854 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
23855
23856 # Sed expression to map a string onto a valid variable name.
23857 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
23858
23859
23860 exec 6>&1
23861
23862 # Save the log message, to keep $[0] and so on meaningful, and to
23863 # report actual input values of CONFIG_FILES etc. instead of their
23864 # values after options handling.
23865 ac_log="
23866 This file was extended by $as_me, which was
23867 generated by GNU Autoconf 2.61. Invocation command line was
23868
23869 CONFIG_FILES = $CONFIG_FILES
23870 CONFIG_HEADERS = $CONFIG_HEADERS
23871 CONFIG_LINKS = $CONFIG_LINKS
23872 CONFIG_COMMANDS = $CONFIG_COMMANDS
23873 $ $0 $@
23874
23875 on `(hostname || uname -n) 2>/dev/null | sed 1q`
23876 "
23877
23878 _ACEOF
23879
23880 cat >>$CONFIG_STATUS <<_ACEOF
23881 # Files that config.status was made for.
23882 config_files="$ac_config_files"
23883 config_headers="$ac_config_headers"
23884 config_commands="$ac_config_commands"
23885
23886 _ACEOF
23887
23888 cat >>$CONFIG_STATUS <<\_ACEOF
23889 ac_cs_usage="\
23890 \`$as_me' instantiates files from templates according to the
23891 current configuration.
23892
23893 Usage: $0 [OPTIONS] [FILE]...
23894
23895 -h, --help print this help, then exit
23896 -V, --version print version number and configuration settings, then exit
23897 -q, --quiet do not print progress messages
23898 -d, --debug don't remove temporary files
23899 --recheck update $as_me by reconfiguring in the same conditions
23900 --file=FILE[:TEMPLATE]
23901 instantiate the configuration file FILE
23902 --header=FILE[:TEMPLATE]
23903 instantiate the configuration header FILE
23904
23905 Configuration files:
23906 $config_files
23907
23908 Configuration headers:
23909 $config_headers
23910
23911 Configuration commands:
23912 $config_commands
23913
23914 Report bugs to <bug-autoconf@gnu.org>."
23915
23916 _ACEOF
23917 cat >>$CONFIG_STATUS <<_ACEOF
23918 ac_cs_version="\\
23919 config.status
23920 configured by $0, generated by GNU Autoconf 2.61,
23921 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
23922
23923 Copyright (C) 2006 Free Software Foundation, Inc.
23924 This config.status script is free software; the Free Software Foundation
23925 gives unlimited permission to copy, distribute and modify it."
23926
23927 ac_pwd='$ac_pwd'
23928 srcdir='$srcdir'
23929 INSTALL='$INSTALL'
23930 _ACEOF
23931
23932 cat >>$CONFIG_STATUS <<\_ACEOF
23933 # If no file are specified by the user, then we need to provide default
23934 # value. By we need to know if files were specified by the user.
23935 ac_need_defaults=:
23936 while test $# != 0
23937 do
23938 case $1 in
23939 --*=*)
23940 ac_option=`expr "X$1" : 'X\([^=]*\)='`
23941 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
23942 ac_shift=:
23943 ;;
23944 *)
23945 ac_option=$1
23946 ac_optarg=$2
23947 ac_shift=shift
23948 ;;
23949 esac
23950
23951 case $ac_option in
23952 # Handling of the options.
23953 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
23954 ac_cs_recheck=: ;;
23955 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
23956 echo "$ac_cs_version"; exit ;;
23957 --debug | --debu | --deb | --de | --d | -d )
23958 debug=: ;;
23959 --file | --fil | --fi | --f )
23960 $ac_shift
23961 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
23962 ac_need_defaults=false;;
23963 --header | --heade | --head | --hea )
23964 $ac_shift
23965 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
23966 ac_need_defaults=false;;
23967 --he | --h)
23968 # Conflict between --help and --header
23969 { echo "$as_me: error: ambiguous option: $1
23970 Try \`$0 --help' for more information." >&2
23971 { (exit 1); exit 1; }; };;
23972 --help | --hel | -h )
23973 echo "$ac_cs_usage"; exit ;;
23974 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
23975 | -silent | --silent | --silen | --sile | --sil | --si | --s)
23976 ac_cs_silent=: ;;
23977
23978 # This is an error.
23979 -*) { echo "$as_me: error: unrecognized option: $1
23980 Try \`$0 --help' for more information." >&2
23981 { (exit 1); exit 1; }; } ;;
23982
23983 *) ac_config_targets="$ac_config_targets $1"
23984 ac_need_defaults=false ;;
23985
23986 esac
23987 shift
23988 done
23989
23990 ac_configure_extra_args=
23991
23992 if $ac_cs_silent; then
23993 exec 6>/dev/null
23994 ac_configure_extra_args="$ac_configure_extra_args --silent"
23995 fi
23996
23997 _ACEOF
23998 cat >>$CONFIG_STATUS <<_ACEOF
23999 if \$ac_cs_recheck; then
24000 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24001 CONFIG_SHELL=$SHELL
24002 export CONFIG_SHELL
24003 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24004 fi
24005
24006 _ACEOF
24007 cat >>$CONFIG_STATUS <<\_ACEOF
24008 exec 5>>config.log
24009 {
24010 echo
24011 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24012 ## Running $as_me. ##
24013 _ASBOX
24014 echo "$ac_log"
24015 } >&5
24016
24017 _ACEOF
24018 cat >>$CONFIG_STATUS <<_ACEOF
24019 #
24020 # INIT-COMMANDS
24021 #
24022 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24023
24024 _ACEOF
24025
24026 cat >>$CONFIG_STATUS <<\_ACEOF
24027
24028 # Handling of arguments.
24029 for ac_config_target in $ac_config_targets
24030 do
24031 case $ac_config_target in
24032 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24033 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24034 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24035 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24036 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
24037 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24038 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24039 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24040 "lispref/Makefile") CONFIG_FILES="$CONFIG_FILES lispref/Makefile" ;;
24041 "lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES lispintro/Makefile" ;;
24042 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24043 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24044
24045 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24046 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24047 { (exit 1); exit 1; }; };;
24048 esac
24049 done
24050
24051
24052 # If the user did not use the arguments to specify the items to instantiate,
24053 # then the envvar interface is used. Set only those that are not.
24054 # We use the long form for the default assignment because of an extremely
24055 # bizarre bug on SunOS 4.1.3.
24056 if $ac_need_defaults; then
24057 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24058 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24059 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24060 fi
24061
24062 # Have a temporary directory for convenience. Make it in the build tree
24063 # simply because there is no reason against having it here, and in addition,
24064 # creating and moving files from /tmp can sometimes cause problems.
24065 # Hook for its removal unless debugging.
24066 # Note that there is a small window in which the directory will not be cleaned:
24067 # after its creation but before its name has been assigned to `$tmp'.
24068 $debug ||
24069 {
24070 tmp=
24071 trap 'exit_status=$?
24072 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24073 ' 0
24074 trap '{ (exit 1); exit 1; }' 1 2 13 15
24075 }
24076 # Create a (secure) tmp directory for tmp files.
24077
24078 {
24079 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24080 test -n "$tmp" && test -d "$tmp"
24081 } ||
24082 {
24083 tmp=./conf$$-$RANDOM
24084 (umask 077 && mkdir "$tmp")
24085 } ||
24086 {
24087 echo "$me: cannot create a temporary directory in ." >&2
24088 { (exit 1); exit 1; }
24089 }
24090
24091 #
24092 # Set up the sed scripts for CONFIG_FILES section.
24093 #
24094
24095 # No need to generate the scripts if there are no CONFIG_FILES.
24096 # This happens for instance when ./config.status config.h
24097 if test -n "$CONFIG_FILES"; then
24098
24099 _ACEOF
24100
24101
24102
24103 ac_delim='%!_!# '
24104 for ac_last_try in false false false false false :; do
24105 cat >conf$$subs.sed <<_ACEOF
24106 SHELL!$SHELL$ac_delim
24107 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24108 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24109 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24110 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24111 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24112 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24113 exec_prefix!$exec_prefix$ac_delim
24114 prefix!$prefix$ac_delim
24115 program_transform_name!$program_transform_name$ac_delim
24116 bindir!$bindir$ac_delim
24117 sbindir!$sbindir$ac_delim
24118 libexecdir!$libexecdir$ac_delim
24119 datarootdir!$datarootdir$ac_delim
24120 datadir!$datadir$ac_delim
24121 sysconfdir!$sysconfdir$ac_delim
24122 sharedstatedir!$sharedstatedir$ac_delim
24123 localstatedir!$localstatedir$ac_delim
24124 includedir!$includedir$ac_delim
24125 oldincludedir!$oldincludedir$ac_delim
24126 docdir!$docdir$ac_delim
24127 infodir!$infodir$ac_delim
24128 htmldir!$htmldir$ac_delim
24129 dvidir!$dvidir$ac_delim
24130 pdfdir!$pdfdir$ac_delim
24131 psdir!$psdir$ac_delim
24132 libdir!$libdir$ac_delim
24133 localedir!$localedir$ac_delim
24134 mandir!$mandir$ac_delim
24135 DEFS!$DEFS$ac_delim
24136 ECHO_C!$ECHO_C$ac_delim
24137 ECHO_N!$ECHO_N$ac_delim
24138 ECHO_T!$ECHO_T$ac_delim
24139 LIBS!$LIBS$ac_delim
24140 build_alias!$build_alias$ac_delim
24141 host_alias!$host_alias$ac_delim
24142 target_alias!$target_alias$ac_delim
24143 MAINT!$MAINT$ac_delim
24144 build!$build$ac_delim
24145 build_cpu!$build_cpu$ac_delim
24146 build_vendor!$build_vendor$ac_delim
24147 build_os!$build_os$ac_delim
24148 host!$host$ac_delim
24149 host_cpu!$host_cpu$ac_delim
24150 host_vendor!$host_vendor$ac_delim
24151 host_os!$host_os$ac_delim
24152 CC!$CC$ac_delim
24153 CFLAGS!$CFLAGS$ac_delim
24154 LDFLAGS!$LDFLAGS$ac_delim
24155 CPPFLAGS!$CPPFLAGS$ac_delim
24156 ac_ct_CC!$ac_ct_CC$ac_delim
24157 EXEEXT!$EXEEXT$ac_delim
24158 OBJEXT!$OBJEXT$ac_delim
24159 CPP!$CPP$ac_delim
24160 GREP!$GREP$ac_delim
24161 EGREP!$EGREP$ac_delim
24162 LN_S!$LN_S$ac_delim
24163 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24164 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24165 INSTALL_DATA!$INSTALL_DATA$ac_delim
24166 RANLIB!$RANLIB$ac_delim
24167 INSTALL_INFO!$INSTALL_INFO$ac_delim
24168 GZIP_PROG!$GZIP_PROG$ac_delim
24169 LIBSOUND!$LIBSOUND$ac_delim
24170 PKG_CONFIG!$PKG_CONFIG$ac_delim
24171 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24172 ALSA_LIBS!$ALSA_LIBS$ac_delim
24173 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24174 SET_MAKE!$SET_MAKE$ac_delim
24175 XMKMF!$XMKMF$ac_delim
24176 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24177 GTK_LIBS!$GTK_LIBS$ac_delim
24178 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24179 XFT_LIBS!$XFT_LIBS$ac_delim
24180 FREETYPE_CFLAGS!$FREETYPE_CFLAGS$ac_delim
24181 FREETYPE_LIBS!$FREETYPE_LIBS$ac_delim
24182 FONTCONFIG_CFLAGS!$FONTCONFIG_CFLAGS$ac_delim
24183 FONTCONFIG_LIBS!$FONTCONFIG_LIBS$ac_delim
24184 HAVE_LIBOTF!$HAVE_LIBOTF$ac_delim
24185 LIBOTF_CFLAGS!$LIBOTF_CFLAGS$ac_delim
24186 LIBOTF_LIBS!$LIBOTF_LIBS$ac_delim
24187 ALLOCA!$ALLOCA$ac_delim
24188 liblockfile!$liblockfile$ac_delim
24189 LIBOBJS!$LIBOBJS$ac_delim
24190 NEED_SETGID!$NEED_SETGID$ac_delim
24191 KMEM_GROUP!$KMEM_GROUP$ac_delim
24192 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24193 GETOPT_H!$GETOPT_H$ac_delim
24194 GETOPTOBJS!$GETOPTOBJS$ac_delim
24195 version!$version$ac_delim
24196 configuration!$configuration$ac_delim
24197 canonical!$canonical$ac_delim
24198 srcdir!$srcdir$ac_delim
24199 lispdir!$lispdir$ac_delim
24200 locallisppath!$locallisppath$ac_delim
24201 lisppath!$lisppath$ac_delim
24202 x_default_search_path!$x_default_search_path$ac_delim
24203 _ACEOF
24204
24205 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24206 break
24207 elif $ac_last_try; then
24208 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24209 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24210 { (exit 1); exit 1; }; }
24211 else
24212 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24213 fi
24214 done
24215
24216 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24217 if test -n "$ac_eof"; then
24218 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24219 ac_eof=`expr $ac_eof + 1`
24220 fi
24221
24222 cat >>$CONFIG_STATUS <<_ACEOF
24223 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24224 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24225 _ACEOF
24226 sed '
24227 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24228 s/^/s,@/; s/!/@,|#_!!_#|/
24229 :n
24230 t n
24231 s/'"$ac_delim"'$/,g/; t
24232 s/$/\\/; p
24233 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24234 ' >>$CONFIG_STATUS <conf$$subs.sed
24235 rm -f conf$$subs.sed
24236 cat >>$CONFIG_STATUS <<_ACEOF
24237 CEOF$ac_eof
24238 _ACEOF
24239
24240
24241 ac_delim='%!_!# '
24242 for ac_last_try in false false false false false :; do
24243 cat >conf$$subs.sed <<_ACEOF
24244 etcdir!$etcdir$ac_delim
24245 archlibdir!$archlibdir$ac_delim
24246 bitmapdir!$bitmapdir$ac_delim
24247 gamedir!$gamedir$ac_delim
24248 gameuser!$gameuser$ac_delim
24249 c_switch_system!$c_switch_system$ac_delim
24250 c_switch_machine!$c_switch_machine$ac_delim
24251 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24252 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24253 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24254 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24255 machfile!$machfile$ac_delim
24256 opsysfile!$opsysfile$ac_delim
24257 carbon_appdir!$carbon_appdir$ac_delim
24258 LTLIBOBJS!$LTLIBOBJS$ac_delim
24259 _ACEOF
24260
24261 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 15; then
24262 break
24263 elif $ac_last_try; then
24264 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24265 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24266 { (exit 1); exit 1; }; }
24267 else
24268 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24269 fi
24270 done
24271
24272 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24273 if test -n "$ac_eof"; then
24274 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24275 ac_eof=`expr $ac_eof + 1`
24276 fi
24277
24278 cat >>$CONFIG_STATUS <<_ACEOF
24279 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24280 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24281 _ACEOF
24282 sed '
24283 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24284 s/^/s,@/; s/!/@,|#_!!_#|/
24285 :n
24286 t n
24287 s/'"$ac_delim"'$/,g/; t
24288 s/$/\\/; p
24289 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24290 ' >>$CONFIG_STATUS <conf$$subs.sed
24291 rm -f conf$$subs.sed
24292 cat >>$CONFIG_STATUS <<_ACEOF
24293 :end
24294 s/|#_!!_#|//g
24295 CEOF$ac_eof
24296 _ACEOF
24297
24298
24299 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24300 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24301 # trailing colons and then remove the whole line if VPATH becomes empty
24302 # (actually we leave an empty line to preserve line numbers).
24303 if test "x$srcdir" = x.; then
24304 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24305 s/:*\$(srcdir):*/:/
24306 s/:*\${srcdir}:*/:/
24307 s/:*@srcdir@:*/:/
24308 s/^\([^=]*=[ ]*\):*/\1/
24309 s/:*$//
24310 s/^[^=]*=[ ]*$//
24311 }'
24312 fi
24313
24314 cat >>$CONFIG_STATUS <<\_ACEOF
24315 fi # test -n "$CONFIG_FILES"
24316
24317
24318 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24319 do
24320 case $ac_tag in
24321 :[FHLC]) ac_mode=$ac_tag; continue;;
24322 esac
24323 case $ac_mode$ac_tag in
24324 :[FHL]*:*);;
24325 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24326 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24327 { (exit 1); exit 1; }; };;
24328 :[FH]-) ac_tag=-:-;;
24329 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24330 esac
24331 ac_save_IFS=$IFS
24332 IFS=:
24333 set x $ac_tag
24334 IFS=$ac_save_IFS
24335 shift
24336 ac_file=$1
24337 shift
24338
24339 case $ac_mode in
24340 :L) ac_source=$1;;
24341 :[FH])
24342 ac_file_inputs=
24343 for ac_f
24344 do
24345 case $ac_f in
24346 -) ac_f="$tmp/stdin";;
24347 *) # Look for the file first in the build tree, then in the source tree
24348 # (if the path is not absolute). The absolute path cannot be DOS-style,
24349 # because $ac_f cannot contain `:'.
24350 test -f "$ac_f" ||
24351 case $ac_f in
24352 [\\/$]*) false;;
24353 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24354 esac ||
24355 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24356 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24357 { (exit 1); exit 1; }; };;
24358 esac
24359 ac_file_inputs="$ac_file_inputs $ac_f"
24360 done
24361
24362 # Let's still pretend it is `configure' which instantiates (i.e., don't
24363 # use $as_me), people would be surprised to read:
24364 # /* config.h. Generated by config.status. */
24365 configure_input="Generated from "`IFS=:
24366 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24367 if test x"$ac_file" != x-; then
24368 configure_input="$ac_file. $configure_input"
24369 { echo "$as_me:$LINENO: creating $ac_file" >&5
24370 echo "$as_me: creating $ac_file" >&6;}
24371 fi
24372
24373 case $ac_tag in
24374 *:-:* | *:-) cat >"$tmp/stdin";;
24375 esac
24376 ;;
24377 esac
24378
24379 ac_dir=`$as_dirname -- "$ac_file" ||
24380 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24381 X"$ac_file" : 'X\(//\)[^/]' \| \
24382 X"$ac_file" : 'X\(//\)$' \| \
24383 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24384 echo X"$ac_file" |
24385 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24386 s//\1/
24387 q
24388 }
24389 /^X\(\/\/\)[^/].*/{
24390 s//\1/
24391 q
24392 }
24393 /^X\(\/\/\)$/{
24394 s//\1/
24395 q
24396 }
24397 /^X\(\/\).*/{
24398 s//\1/
24399 q
24400 }
24401 s/.*/./; q'`
24402 { as_dir="$ac_dir"
24403 case $as_dir in #(
24404 -*) as_dir=./$as_dir;;
24405 esac
24406 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24407 as_dirs=
24408 while :; do
24409 case $as_dir in #(
24410 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24411 *) as_qdir=$as_dir;;
24412 esac
24413 as_dirs="'$as_qdir' $as_dirs"
24414 as_dir=`$as_dirname -- "$as_dir" ||
24415 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24416 X"$as_dir" : 'X\(//\)[^/]' \| \
24417 X"$as_dir" : 'X\(//\)$' \| \
24418 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24419 echo X"$as_dir" |
24420 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24421 s//\1/
24422 q
24423 }
24424 /^X\(\/\/\)[^/].*/{
24425 s//\1/
24426 q
24427 }
24428 /^X\(\/\/\)$/{
24429 s//\1/
24430 q
24431 }
24432 /^X\(\/\).*/{
24433 s//\1/
24434 q
24435 }
24436 s/.*/./; q'`
24437 test -d "$as_dir" && break
24438 done
24439 test -z "$as_dirs" || eval "mkdir $as_dirs"
24440 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24441 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24442 { (exit 1); exit 1; }; }; }
24443 ac_builddir=.
24444
24445 case "$ac_dir" in
24446 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24447 *)
24448 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24449 # A ".." for each directory in $ac_dir_suffix.
24450 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24451 case $ac_top_builddir_sub in
24452 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24453 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24454 esac ;;
24455 esac
24456 ac_abs_top_builddir=$ac_pwd
24457 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24458 # for backward compatibility:
24459 ac_top_builddir=$ac_top_build_prefix
24460
24461 case $srcdir in
24462 .) # We are building in place.
24463 ac_srcdir=.
24464 ac_top_srcdir=$ac_top_builddir_sub
24465 ac_abs_top_srcdir=$ac_pwd ;;
24466 [\\/]* | ?:[\\/]* ) # Absolute name.
24467 ac_srcdir=$srcdir$ac_dir_suffix;
24468 ac_top_srcdir=$srcdir
24469 ac_abs_top_srcdir=$srcdir ;;
24470 *) # Relative name.
24471 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24472 ac_top_srcdir=$ac_top_build_prefix$srcdir
24473 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24474 esac
24475 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24476
24477
24478 case $ac_mode in
24479 :F)
24480 #
24481 # CONFIG_FILE
24482 #
24483
24484 case $INSTALL in
24485 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24486 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24487 esac
24488 _ACEOF
24489
24490 cat >>$CONFIG_STATUS <<\_ACEOF
24491 # If the template does not know about datarootdir, expand it.
24492 # FIXME: This hack should be removed a few years after 2.60.
24493 ac_datarootdir_hack=; ac_datarootdir_seen=
24494
24495 case `sed -n '/datarootdir/ {
24496 p
24497 q
24498 }
24499 /@datadir@/p
24500 /@docdir@/p
24501 /@infodir@/p
24502 /@localedir@/p
24503 /@mandir@/p
24504 ' $ac_file_inputs` in
24505 *datarootdir*) ac_datarootdir_seen=yes;;
24506 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
24507 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
24508 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
24509 _ACEOF
24510 cat >>$CONFIG_STATUS <<_ACEOF
24511 ac_datarootdir_hack='
24512 s&@datadir@&$datadir&g
24513 s&@docdir@&$docdir&g
24514 s&@infodir@&$infodir&g
24515 s&@localedir@&$localedir&g
24516 s&@mandir@&$mandir&g
24517 s&\\\${datarootdir}&$datarootdir&g' ;;
24518 esac
24519 _ACEOF
24520
24521 # Neutralize VPATH when `$srcdir' = `.'.
24522 # Shell code in configure.ac might set extrasub.
24523 # FIXME: do we really want to maintain this feature?
24524 cat >>$CONFIG_STATUS <<_ACEOF
24525 sed "$ac_vpsub
24526 $extrasub
24527 _ACEOF
24528 cat >>$CONFIG_STATUS <<\_ACEOF
24529 :t
24530 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24531 s&@configure_input@&$configure_input&;t t
24532 s&@top_builddir@&$ac_top_builddir_sub&;t t
24533 s&@srcdir@&$ac_srcdir&;t t
24534 s&@abs_srcdir@&$ac_abs_srcdir&;t t
24535 s&@top_srcdir@&$ac_top_srcdir&;t t
24536 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
24537 s&@builddir@&$ac_builddir&;t t
24538 s&@abs_builddir@&$ac_abs_builddir&;t t
24539 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
24540 s&@INSTALL@&$ac_INSTALL&;t t
24541 $ac_datarootdir_hack
24542 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
24543
24544 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
24545 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
24546 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
24547 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24548 which seems to be undefined. Please make sure it is defined." >&5
24549 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
24550 which seems to be undefined. Please make sure it is defined." >&2;}
24551
24552 rm -f "$tmp/stdin"
24553 case $ac_file in
24554 -) cat "$tmp/out"; rm -f "$tmp/out";;
24555 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
24556 esac
24557 ;;
24558 :H)
24559 #
24560 # CONFIG_HEADER
24561 #
24562 _ACEOF
24563
24564 # Transform confdefs.h into a sed script `conftest.defines', that
24565 # substitutes the proper values into config.h.in to produce config.h.
24566 rm -f conftest.defines conftest.tail
24567 # First, append a space to every undef/define line, to ease matching.
24568 echo 's/$/ /' >conftest.defines
24569 # Then, protect against being on the right side of a sed subst, or in
24570 # an unquoted here document, in config.status. If some macros were
24571 # called several times there might be several #defines for the same
24572 # symbol, which is useless. But do not sort them, since the last
24573 # AC_DEFINE must be honored.
24574 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
24575 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
24576 # NAME is the cpp macro being defined, VALUE is the value it is being given.
24577 # PARAMS is the parameter list in the macro definition--in most cases, it's
24578 # just an empty string.
24579 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
24580 ac_dB='\\)[ (].*,\\1define\\2'
24581 ac_dC=' '
24582 ac_dD=' ,'
24583
24584 uniq confdefs.h |
24585 sed -n '
24586 t rset
24587 :rset
24588 s/^[ ]*#[ ]*define[ ][ ]*//
24589 t ok
24590 d
24591 :ok
24592 s/[\\&,]/\\&/g
24593 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
24594 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
24595 ' >>conftest.defines
24596
24597 # Remove the space that was appended to ease matching.
24598 # Then replace #undef with comments. This is necessary, for
24599 # example, in the case of _POSIX_SOURCE, which is predefined and required
24600 # on some systems where configure will not decide to define it.
24601 # (The regexp can be short, since the line contains either #define or #undef.)
24602 echo 's/ $//
24603 s,^[ #]*u.*,/* & */,' >>conftest.defines
24604
24605 # Break up conftest.defines:
24606 ac_max_sed_lines=50
24607
24608 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
24609 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
24610 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
24611 # et cetera.
24612 ac_in='$ac_file_inputs'
24613 ac_out='"$tmp/out1"'
24614 ac_nxt='"$tmp/out2"'
24615
24616 while :
24617 do
24618 # Write a here document:
24619 cat >>$CONFIG_STATUS <<_ACEOF
24620 # First, check the format of the line:
24621 cat >"\$tmp/defines.sed" <<\\CEOF
24622 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
24623 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
24624 b
24625 :def
24626 _ACEOF
24627 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
24628 echo 'CEOF
24629 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
24630 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
24631 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
24632 grep . conftest.tail >/dev/null || break
24633 rm -f conftest.defines
24634 mv conftest.tail conftest.defines
24635 done
24636 rm -f conftest.defines conftest.tail
24637
24638 echo "ac_result=$ac_in" >>$CONFIG_STATUS
24639 cat >>$CONFIG_STATUS <<\_ACEOF
24640 if test x"$ac_file" != x-; then
24641 echo "/* $configure_input */" >"$tmp/config.h"
24642 cat "$ac_result" >>"$tmp/config.h"
24643 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
24644 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
24645 echo "$as_me: $ac_file is unchanged" >&6;}
24646 else
24647 rm -f $ac_file
24648 mv "$tmp/config.h" $ac_file
24649 fi
24650 else
24651 echo "/* $configure_input */"
24652 cat "$ac_result"
24653 fi
24654 rm -f "$tmp/out12"
24655 ;;
24656
24657 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
24658 echo "$as_me: executing $ac_file commands" >&6;}
24659 ;;
24660 esac
24661
24662
24663 case $ac_file$ac_mode in
24664 "default":C)
24665
24666 ### Make the necessary directories, if they don't exist.
24667 for dir in etc lisp ; do
24668 test -d ${dir} || mkdir ${dir}
24669 done
24670
24671 # Build src/Makefile from ${srcdir}/src/Makefile.c
24672 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
24673 # This must be done after src/config.h is built, since we rely on that file.
24674
24675 # Now get this: Some word that is part of the ${srcdir} directory name
24676 # or the ${configuration} value might, just might, happen to be an
24677 # identifier like `sun4' or `i386' or something, and be predefined by
24678 # the C preprocessor to some helpful value like 1, or maybe the empty
24679 # string. Needless to say consequent macro substitutions are less
24680 # than conducive to the makefile finding the correct directory.
24681 undefs="`echo $top_srcdir $configuration $canonical |
24682 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
24683 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
24684 `"
24685
24686 echo creating src/epaths.h
24687 ${MAKE-make} epaths-force
24688
24689 # As of 2000-11-19, newest development versions of GNU cpp preprocess
24690 # `..' to `. .' unless invoked with -traditional
24691
24692 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
24693 CPPFLAGS="$CPPFLAGS -traditional"
24694 fi
24695
24696 echo creating lib-src/Makefile
24697 ( cd lib-src
24698 rm -f junk.c junk1.c junk2.c
24699 sed -e '/start of cpp stuff/q' \
24700 < Makefile.c > junk1.c
24701 sed -e '1,/start of cpp stuff/d'\
24702 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24703 < Makefile.c > junk.c
24704 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24705 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24706 cat junk1.c junk2.c > Makefile.new
24707 rm -f junk.c junk1.c junk2.c
24708 chmod 444 Makefile.new
24709 mv -f Makefile.new Makefile
24710 )
24711
24712 echo creating src/Makefile
24713 ( cd src
24714 rm -f junk.c junk1.c junk2.c
24715 sed -e '/start of cpp stuff/q' \
24716 < Makefile.c > junk1.c
24717 sed -e '1,/start of cpp stuff/d'\
24718 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
24719 < Makefile.c > junk.c
24720 if test -f ${srcdir}/admin/unidata/UnicodeData.txt; then
24721 CPPFLAGS="$CPPFLAGS -DHAVE_UNIDATA"
24722 fi
24723 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
24724 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
24725 cat junk1.c junk2.c > Makefile.new
24726 rm -f junk.c junk1.c junk2.c
24727 chmod 444 Makefile.new
24728 mv -f Makefile.new Makefile
24729 )
24730
24731 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
24732 echo creating src/.gdbinit
24733 echo source $srcdir/src/.gdbinit > src/.gdbinit
24734 fi
24735
24736 # This is how we know whether to re-run configure in certain cases.
24737 touch src/config.stamp
24738
24739 ;;
24740
24741 esac
24742 done # for ac_tag
24743
24744
24745 { (exit 0); exit 0; }
24746 _ACEOF
24747 chmod +x $CONFIG_STATUS
24748 ac_clean_files=$ac_clean_files_save
24749
24750
24751 # configure is writing to config.log, and then calls config.status.
24752 # config.status does its own redirection, appending to config.log.
24753 # Unfortunately, on DOS this fails, as config.log is still kept open
24754 # by configure, so config.status won't be able to write to it; its
24755 # output is simply discarded. So we exec the FD to /dev/null,
24756 # effectively closing config.log, so it can be properly (re)opened and
24757 # appended to by config.status. When coming back to configure, we
24758 # need to make the FD available again.
24759 if test "$no_create" != yes; then
24760 ac_cs_success=:
24761 ac_config_status_args=
24762 test "$silent" = yes &&
24763 ac_config_status_args="$ac_config_status_args --quiet"
24764 exec 5>/dev/null
24765 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
24766 exec 5>>config.log
24767 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
24768 # would make configure fail if this is the last instruction.
24769 $ac_cs_success || { (exit 1); exit 1; }
24770 fi
24771
24772