]> code.delx.au - gnu-emacs/blob - configure
* configure.in: Use PKG_CHECK_MODULES to check for D-Bus.
[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 MAKEINFO
683 LIBSOUND
684 PKG_CONFIG
685 ALSA_CFLAGS
686 ALSA_LIBS
687 CFLAGS_SOUND
688 SET_MAKE
689 XMKMF
690 HAVE_XSERVER
691 RSVG_CFLAGS
692 RSVG_LIBS
693 GTK_CFLAGS
694 GTK_LIBS
695 DBUS_CFLAGS
696 DBUS_LIBS
697 XFT_CFLAGS
698 XFT_LIBS
699 ALLOCA
700 liblockfile
701 LIBOBJS
702 NEED_SETGID
703 KMEM_GROUP
704 GETLOADAVG_LIBS
705 GETOPT_H
706 GETOPTOBJS
707 version
708 configuration
709 canonical
710 srcdir
711 lispdir
712 locallisppath
713 lisppath
714 x_default_search_path
715 etcdir
716 archlibdir
717 bitmapdir
718 gamedir
719 gameuser
720 c_switch_system
721 c_switch_machine
722 LD_SWITCH_X_SITE
723 LD_SWITCH_X_SITE_AUX
724 C_SWITCH_X_SITE
725 X_TOOLKIT_TYPE
726 machfile
727 opsysfile
728 carbon_appdir
729 LTLIBOBJS'
730 ac_subst_files=''
731 ac_precious_vars='build_alias
732 host_alias
733 target_alias
734 CC
735 CFLAGS
736 LDFLAGS
737 LIBS
738 CPPFLAGS
739 CPP
740 XMKMF'
741
742
743 # Initialize some variables set by options.
744 ac_init_help=
745 ac_init_version=false
746 # The variables have the same names as the options, with
747 # dashes changed to underlines.
748 cache_file=/dev/null
749 exec_prefix=NONE
750 no_create=
751 no_recursion=
752 prefix=NONE
753 program_prefix=NONE
754 program_suffix=NONE
755 program_transform_name=s,x,x,
756 silent=
757 site=
758 srcdir=
759 verbose=
760 x_includes=NONE
761 x_libraries=NONE
762
763 # Installation directory options.
764 # These are left unexpanded so users can "make install exec_prefix=/foo"
765 # and all the variables that are supposed to be based on exec_prefix
766 # by default will actually change.
767 # Use braces instead of parens because sh, perl, etc. also accept them.
768 # (The list follows the same order as the GNU Coding Standards.)
769 bindir='${exec_prefix}/bin'
770 sbindir='${exec_prefix}/sbin'
771 libexecdir='${exec_prefix}/libexec'
772 datarootdir='${prefix}/share'
773 datadir='${datarootdir}'
774 sysconfdir='${prefix}/etc'
775 sharedstatedir='${prefix}/com'
776 localstatedir='${prefix}/var'
777 includedir='${prefix}/include'
778 oldincludedir='/usr/include'
779 docdir='${datarootdir}/doc/${PACKAGE}'
780 infodir='${datarootdir}/info'
781 htmldir='${docdir}'
782 dvidir='${docdir}'
783 pdfdir='${docdir}'
784 psdir='${docdir}'
785 libdir='${exec_prefix}/lib'
786 localedir='${datarootdir}/locale'
787 mandir='${datarootdir}/man'
788
789 ac_prev=
790 ac_dashdash=
791 for ac_option
792 do
793 # If the previous option needs an argument, assign it.
794 if test -n "$ac_prev"; then
795 eval $ac_prev=\$ac_option
796 ac_prev=
797 continue
798 fi
799
800 case $ac_option in
801 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
802 *) ac_optarg=yes ;;
803 esac
804
805 # Accept the important Cygnus configure options, so we can diagnose typos.
806
807 case $ac_dashdash$ac_option in
808 --)
809 ac_dashdash=yes ;;
810
811 -bindir | --bindir | --bindi | --bind | --bin | --bi)
812 ac_prev=bindir ;;
813 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
814 bindir=$ac_optarg ;;
815
816 -build | --build | --buil | --bui | --bu)
817 ac_prev=build_alias ;;
818 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
819 build_alias=$ac_optarg ;;
820
821 -cache-file | --cache-file | --cache-fil | --cache-fi \
822 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
823 ac_prev=cache_file ;;
824 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
825 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
826 cache_file=$ac_optarg ;;
827
828 --config-cache | -C)
829 cache_file=config.cache ;;
830
831 -datadir | --datadir | --datadi | --datad)
832 ac_prev=datadir ;;
833 -datadir=* | --datadir=* | --datadi=* | --datad=*)
834 datadir=$ac_optarg ;;
835
836 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
837 | --dataroo | --dataro | --datar)
838 ac_prev=datarootdir ;;
839 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
840 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
841 datarootdir=$ac_optarg ;;
842
843 -disable-* | --disable-*)
844 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
845 # Reject names that are not valid shell variable names.
846 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
847 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
848 { (exit 1); exit 1; }; }
849 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
850 eval enable_$ac_feature=no ;;
851
852 -docdir | --docdir | --docdi | --doc | --do)
853 ac_prev=docdir ;;
854 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
855 docdir=$ac_optarg ;;
856
857 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
858 ac_prev=dvidir ;;
859 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
860 dvidir=$ac_optarg ;;
861
862 -enable-* | --enable-*)
863 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
864 # Reject names that are not valid shell variable names.
865 expr "x$ac_feature" : ".*[^-._$as_cr_alnum]" >/dev/null &&
866 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
867 { (exit 1); exit 1; }; }
868 ac_feature=`echo $ac_feature | sed 's/[-.]/_/g'`
869 eval enable_$ac_feature=\$ac_optarg ;;
870
871 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
872 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
873 | --exec | --exe | --ex)
874 ac_prev=exec_prefix ;;
875 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
876 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
877 | --exec=* | --exe=* | --ex=*)
878 exec_prefix=$ac_optarg ;;
879
880 -gas | --gas | --ga | --g)
881 # Obsolete; use --with-gas.
882 with_gas=yes ;;
883
884 -help | --help | --hel | --he | -h)
885 ac_init_help=long ;;
886 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
887 ac_init_help=recursive ;;
888 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
889 ac_init_help=short ;;
890
891 -host | --host | --hos | --ho)
892 ac_prev=host_alias ;;
893 -host=* | --host=* | --hos=* | --ho=*)
894 host_alias=$ac_optarg ;;
895
896 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
897 ac_prev=htmldir ;;
898 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
899 | --ht=*)
900 htmldir=$ac_optarg ;;
901
902 -includedir | --includedir | --includedi | --included | --include \
903 | --includ | --inclu | --incl | --inc)
904 ac_prev=includedir ;;
905 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
906 | --includ=* | --inclu=* | --incl=* | --inc=*)
907 includedir=$ac_optarg ;;
908
909 -infodir | --infodir | --infodi | --infod | --info | --inf)
910 ac_prev=infodir ;;
911 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
912 infodir=$ac_optarg ;;
913
914 -libdir | --libdir | --libdi | --libd)
915 ac_prev=libdir ;;
916 -libdir=* | --libdir=* | --libdi=* | --libd=*)
917 libdir=$ac_optarg ;;
918
919 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
920 | --libexe | --libex | --libe)
921 ac_prev=libexecdir ;;
922 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
923 | --libexe=* | --libex=* | --libe=*)
924 libexecdir=$ac_optarg ;;
925
926 -localedir | --localedir | --localedi | --localed | --locale)
927 ac_prev=localedir ;;
928 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
929 localedir=$ac_optarg ;;
930
931 -localstatedir | --localstatedir | --localstatedi | --localstated \
932 | --localstate | --localstat | --localsta | --localst | --locals)
933 ac_prev=localstatedir ;;
934 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
935 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
936 localstatedir=$ac_optarg ;;
937
938 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
939 ac_prev=mandir ;;
940 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
941 mandir=$ac_optarg ;;
942
943 -nfp | --nfp | --nf)
944 # Obsolete; use --without-fp.
945 with_fp=no ;;
946
947 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
948 | --no-cr | --no-c | -n)
949 no_create=yes ;;
950
951 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
952 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
953 no_recursion=yes ;;
954
955 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
956 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
957 | --oldin | --oldi | --old | --ol | --o)
958 ac_prev=oldincludedir ;;
959 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
960 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
961 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
962 oldincludedir=$ac_optarg ;;
963
964 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
965 ac_prev=prefix ;;
966 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
967 prefix=$ac_optarg ;;
968
969 -program-prefix | --program-prefix | --program-prefi | --program-pref \
970 | --program-pre | --program-pr | --program-p)
971 ac_prev=program_prefix ;;
972 -program-prefix=* | --program-prefix=* | --program-prefi=* \
973 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
974 program_prefix=$ac_optarg ;;
975
976 -program-suffix | --program-suffix | --program-suffi | --program-suff \
977 | --program-suf | --program-su | --program-s)
978 ac_prev=program_suffix ;;
979 -program-suffix=* | --program-suffix=* | --program-suffi=* \
980 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
981 program_suffix=$ac_optarg ;;
982
983 -program-transform-name | --program-transform-name \
984 | --program-transform-nam | --program-transform-na \
985 | --program-transform-n | --program-transform- \
986 | --program-transform | --program-transfor \
987 | --program-transfo | --program-transf \
988 | --program-trans | --program-tran \
989 | --progr-tra | --program-tr | --program-t)
990 ac_prev=program_transform_name ;;
991 -program-transform-name=* | --program-transform-name=* \
992 | --program-transform-nam=* | --program-transform-na=* \
993 | --program-transform-n=* | --program-transform-=* \
994 | --program-transform=* | --program-transfor=* \
995 | --program-transfo=* | --program-transf=* \
996 | --program-trans=* | --program-tran=* \
997 | --progr-tra=* | --program-tr=* | --program-t=*)
998 program_transform_name=$ac_optarg ;;
999
1000 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1001 ac_prev=pdfdir ;;
1002 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1003 pdfdir=$ac_optarg ;;
1004
1005 -psdir | --psdir | --psdi | --psd | --ps)
1006 ac_prev=psdir ;;
1007 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1008 psdir=$ac_optarg ;;
1009
1010 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1011 | -silent | --silent | --silen | --sile | --sil)
1012 silent=yes ;;
1013
1014 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1015 ac_prev=sbindir ;;
1016 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1017 | --sbi=* | --sb=*)
1018 sbindir=$ac_optarg ;;
1019
1020 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1021 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1022 | --sharedst | --shareds | --shared | --share | --shar \
1023 | --sha | --sh)
1024 ac_prev=sharedstatedir ;;
1025 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1026 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1027 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1028 | --sha=* | --sh=*)
1029 sharedstatedir=$ac_optarg ;;
1030
1031 -site | --site | --sit)
1032 ac_prev=site ;;
1033 -site=* | --site=* | --sit=*)
1034 site=$ac_optarg ;;
1035
1036 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1037 ac_prev=srcdir ;;
1038 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1039 srcdir=$ac_optarg ;;
1040
1041 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1042 | --syscon | --sysco | --sysc | --sys | --sy)
1043 ac_prev=sysconfdir ;;
1044 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1045 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1046 sysconfdir=$ac_optarg ;;
1047
1048 -target | --target | --targe | --targ | --tar | --ta | --t)
1049 ac_prev=target_alias ;;
1050 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1051 target_alias=$ac_optarg ;;
1052
1053 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1054 verbose=yes ;;
1055
1056 -version | --version | --versio | --versi | --vers | -V)
1057 ac_init_version=: ;;
1058
1059 -with-* | --with-*)
1060 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1061 # Reject names that are not valid shell variable names.
1062 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1063 { echo "$as_me: error: invalid package name: $ac_package" >&2
1064 { (exit 1); exit 1; }; }
1065 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1066 eval with_$ac_package=\$ac_optarg ;;
1067
1068 -without-* | --without-*)
1069 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1070 # Reject names that are not valid shell variable names.
1071 expr "x$ac_package" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1072 { echo "$as_me: error: invalid package name: $ac_package" >&2
1073 { (exit 1); exit 1; }; }
1074 ac_package=`echo $ac_package | sed 's/[-.]/_/g'`
1075 eval with_$ac_package=no ;;
1076
1077 --x)
1078 # Obsolete; use --with-x.
1079 with_x=yes ;;
1080
1081 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1082 | --x-incl | --x-inc | --x-in | --x-i)
1083 ac_prev=x_includes ;;
1084 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1085 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1086 x_includes=$ac_optarg ;;
1087
1088 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1089 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1090 ac_prev=x_libraries ;;
1091 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1092 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1093 x_libraries=$ac_optarg ;;
1094
1095 -*) { echo "$as_me: error: unrecognized option: $ac_option
1096 Try \`$0 --help' for more information." >&2
1097 { (exit 1); exit 1; }; }
1098 ;;
1099
1100 *=*)
1101 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1102 # Reject names that are not valid shell variable names.
1103 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1104 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1105 { (exit 1); exit 1; }; }
1106 eval $ac_envvar=\$ac_optarg
1107 export $ac_envvar ;;
1108
1109 *)
1110 # FIXME: should be removed in autoconf 3.0.
1111 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1112 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1113 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1114 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1115 ;;
1116
1117 esac
1118 done
1119
1120 if test -n "$ac_prev"; then
1121 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1122 { echo "$as_me: error: missing argument to $ac_option" >&2
1123 { (exit 1); exit 1; }; }
1124 fi
1125
1126 # Be sure to have absolute directory names.
1127 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1128 datadir sysconfdir sharedstatedir localstatedir includedir \
1129 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1130 libdir localedir mandir
1131 do
1132 eval ac_val=\$$ac_var
1133 case $ac_val in
1134 [\\/$]* | ?:[\\/]* ) continue;;
1135 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1136 esac
1137 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1138 { (exit 1); exit 1; }; }
1139 done
1140
1141 # There might be people who depend on the old broken behavior: `$host'
1142 # used to hold the argument of --host etc.
1143 # FIXME: To remove some day.
1144 build=$build_alias
1145 host=$host_alias
1146 target=$target_alias
1147
1148 # FIXME: To remove some day.
1149 if test "x$host_alias" != x; then
1150 if test "x$build_alias" = x; then
1151 cross_compiling=maybe
1152 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1153 If a cross compiler is detected then cross compile mode will be used." >&2
1154 elif test "x$build_alias" != "x$host_alias"; then
1155 cross_compiling=yes
1156 fi
1157 fi
1158
1159 ac_tool_prefix=
1160 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1161
1162 test "$silent" = yes && exec 6>/dev/null
1163
1164
1165 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1166 ac_ls_di=`ls -di .` &&
1167 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1168 { echo "$as_me: error: Working directory cannot be determined" >&2
1169 { (exit 1); exit 1; }; }
1170 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1171 { echo "$as_me: error: pwd does not report name of working directory" >&2
1172 { (exit 1); exit 1; }; }
1173
1174
1175 # Find the source files, if location was not specified.
1176 if test -z "$srcdir"; then
1177 ac_srcdir_defaulted=yes
1178 # Try the directory containing this script, then the parent directory.
1179 ac_confdir=`$as_dirname -- "$0" ||
1180 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1181 X"$0" : 'X\(//\)[^/]' \| \
1182 X"$0" : 'X\(//\)$' \| \
1183 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1184 echo X"$0" |
1185 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1186 s//\1/
1187 q
1188 }
1189 /^X\(\/\/\)[^/].*/{
1190 s//\1/
1191 q
1192 }
1193 /^X\(\/\/\)$/{
1194 s//\1/
1195 q
1196 }
1197 /^X\(\/\).*/{
1198 s//\1/
1199 q
1200 }
1201 s/.*/./; q'`
1202 srcdir=$ac_confdir
1203 if test ! -r "$srcdir/$ac_unique_file"; then
1204 srcdir=..
1205 fi
1206 else
1207 ac_srcdir_defaulted=no
1208 fi
1209 if test ! -r "$srcdir/$ac_unique_file"; then
1210 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1211 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1212 { (exit 1); exit 1; }; }
1213 fi
1214 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1215 ac_abs_confdir=`(
1216 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1217 { (exit 1); exit 1; }; }
1218 pwd)`
1219 # When building in place, set srcdir=.
1220 if test "$ac_abs_confdir" = "$ac_pwd"; then
1221 srcdir=.
1222 fi
1223 # Remove unnecessary trailing slashes from srcdir.
1224 # Double slashes in file names in object file debugging info
1225 # mess up M-x gdb in Emacs.
1226 case $srcdir in
1227 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1228 esac
1229 for ac_var in $ac_precious_vars; do
1230 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1231 eval ac_env_${ac_var}_value=\$${ac_var}
1232 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1233 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1234 done
1235
1236 #
1237 # Report the --help message.
1238 #
1239 if test "$ac_init_help" = "long"; then
1240 # Omit some internal or obsolete options to make the list less imposing.
1241 # This message is too long to be a string in the A/UX 3.1 sh.
1242 cat <<_ACEOF
1243 \`configure' configures this package to adapt to many kinds of systems.
1244
1245 Usage: $0 [OPTION]... [VAR=VALUE]...
1246
1247 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1248 VAR=VALUE. See below for descriptions of some of the useful variables.
1249
1250 Defaults for the options are specified in brackets.
1251
1252 Configuration:
1253 -h, --help display this help and exit
1254 --help=short display options specific to this package
1255 --help=recursive display the short help of all the included packages
1256 -V, --version display version information and exit
1257 -q, --quiet, --silent do not print \`checking...' messages
1258 --cache-file=FILE cache test results in FILE [disabled]
1259 -C, --config-cache alias for \`--cache-file=config.cache'
1260 -n, --no-create do not create output files
1261 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1262
1263 Installation directories:
1264 --prefix=PREFIX install architecture-independent files in PREFIX
1265 [$ac_default_prefix]
1266 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1267 [PREFIX]
1268
1269 By default, \`make install' will install all the files in
1270 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1271 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1272 for instance \`--prefix=\$HOME'.
1273
1274 For better control, use the options below.
1275
1276 Fine tuning of the installation directories:
1277 --bindir=DIR user executables [EPREFIX/bin]
1278 --sbindir=DIR system admin executables [EPREFIX/sbin]
1279 --libexecdir=DIR program executables [EPREFIX/libexec]
1280 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1281 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1282 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1283 --libdir=DIR object code libraries [EPREFIX/lib]
1284 --includedir=DIR C header files [PREFIX/include]
1285 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1286 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1287 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1288 --infodir=DIR info documentation [DATAROOTDIR/info]
1289 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1290 --mandir=DIR man documentation [DATAROOTDIR/man]
1291 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1292 --htmldir=DIR html documentation [DOCDIR]
1293 --dvidir=DIR dvi documentation [DOCDIR]
1294 --pdfdir=DIR pdf documentation [DOCDIR]
1295 --psdir=DIR ps documentation [DOCDIR]
1296 _ACEOF
1297
1298 cat <<\_ACEOF
1299
1300 Program names:
1301 --program-prefix=PREFIX prepend PREFIX to installed program names
1302 --program-suffix=SUFFIX append SUFFIX to installed program names
1303 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1304
1305 X features:
1306 --x-includes=DIR X include files are in DIR
1307 --x-libraries=DIR X library files are in DIR
1308
1309 System types:
1310 --build=BUILD configure for building on BUILD [guessed]
1311 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1312 _ACEOF
1313 fi
1314
1315 if test -n "$ac_init_help"; then
1316
1317 cat <<\_ACEOF
1318
1319 Optional Features:
1320 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1321 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1322 --enable-carbon-app[=DIR]
1323 specify install directory for Emacs.app on Mac OS X
1324 [DIR=/Application]
1325 --enable-asserts compile code with asserts enabled
1326 --enable-maintainer-mode
1327 enable make rules and dependencies not useful (and
1328 sometimes confusing) to the casual installer
1329 --enable-locallisppath=PATH
1330 directories Emacs should search for lisp files
1331 specific to this site
1332 --disable-largefile omit support for large files
1333
1334 Optional Packages:
1335 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1336 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1337 --without-gcc don't use GCC to compile Emacs if GCC is found
1338 --without-pop don't support POP mail retrieval with movemail
1339 --with-kerberos support Kerberos-authenticated POP
1340 --with-kerberos5 support Kerberos version 5 authenticated POP
1341 --with-hesiod support Hesiod to get the POP server host
1342 --without-sound don't compile with sound support
1343 --with-x-toolkit=KIT use an X toolkit (KIT one of: yes, lucid, athena,
1344 motif, gtk, no)
1345 --with-xpm use -lXpm for displaying XPM images
1346 --with-jpeg use -ljpeg for displaying JPEG images
1347 --with-tiff use -ltiff for displaying TIFF images
1348 --with-gif use -lgif (or -lungif) for displaying GIF images
1349 --with-png use -lpng for displaying PNG images
1350 --with-gpm use -lgpm for mouse support on a GNU/Linux console
1351 --with-rsvg use -lrsvg-2 for displaying SVG images
1352 --with-gtk use GTK (same as --with-x-toolkit=gtk)
1353 --with-pkg-config-prog Path to pkg-config for finding GTK and librsvg
1354 --without-toolkit-scroll-bars
1355 don't use Motif or Xaw3d scroll bars
1356 --without-xaw3d don't use Xaw3d
1357 --without-xim don't use X11 XIM
1358 --without-carbon don't use Carbon GUI on Mac OS X
1359 --without-dbus don't use D-Bus
1360 --with-x use the X Window System
1361
1362 Some influential environment variables:
1363 CC C compiler command
1364 CFLAGS C compiler flags
1365 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1366 nonstandard directory <lib dir>
1367 LIBS libraries to pass to the linker, e.g. -l<library>
1368 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1369 you have headers in a nonstandard directory <include dir>
1370 CPP C preprocessor
1371 XMKMF Path to xmkmf, Makefile generator for X Window System
1372
1373 Use these variables to override the choices made by `configure' or to help
1374 it to find libraries and programs with nonstandard names/locations.
1375
1376 _ACEOF
1377 ac_status=$?
1378 fi
1379
1380 if test "$ac_init_help" = "recursive"; then
1381 # If there are subdirs, report their specific --help.
1382 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1383 test -d "$ac_dir" || continue
1384 ac_builddir=.
1385
1386 case "$ac_dir" in
1387 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1388 *)
1389 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1390 # A ".." for each directory in $ac_dir_suffix.
1391 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1392 case $ac_top_builddir_sub in
1393 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1394 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1395 esac ;;
1396 esac
1397 ac_abs_top_builddir=$ac_pwd
1398 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1399 # for backward compatibility:
1400 ac_top_builddir=$ac_top_build_prefix
1401
1402 case $srcdir in
1403 .) # We are building in place.
1404 ac_srcdir=.
1405 ac_top_srcdir=$ac_top_builddir_sub
1406 ac_abs_top_srcdir=$ac_pwd ;;
1407 [\\/]* | ?:[\\/]* ) # Absolute name.
1408 ac_srcdir=$srcdir$ac_dir_suffix;
1409 ac_top_srcdir=$srcdir
1410 ac_abs_top_srcdir=$srcdir ;;
1411 *) # Relative name.
1412 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1413 ac_top_srcdir=$ac_top_build_prefix$srcdir
1414 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1415 esac
1416 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1417
1418 cd "$ac_dir" || { ac_status=$?; continue; }
1419 # Check for guested configure.
1420 if test -f "$ac_srcdir/configure.gnu"; then
1421 echo &&
1422 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1423 elif test -f "$ac_srcdir/configure"; then
1424 echo &&
1425 $SHELL "$ac_srcdir/configure" --help=recursive
1426 else
1427 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1428 fi || ac_status=$?
1429 cd "$ac_pwd" || { ac_status=$?; break; }
1430 done
1431 fi
1432
1433 test -n "$ac_init_help" && exit $ac_status
1434 if $ac_init_version; then
1435 cat <<\_ACEOF
1436 configure
1437 generated by GNU Autoconf 2.61
1438
1439 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1440 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1441 This configure script is free software; the Free Software Foundation
1442 gives unlimited permission to copy, distribute and modify it.
1443 _ACEOF
1444 exit
1445 fi
1446 cat >config.log <<_ACEOF
1447 This file contains any messages produced by compilers while
1448 running configure, to aid debugging if configure makes a mistake.
1449
1450 It was created by $as_me, which was
1451 generated by GNU Autoconf 2.61. Invocation command line was
1452
1453 $ $0 $@
1454
1455 _ACEOF
1456 exec 5>>config.log
1457 {
1458 cat <<_ASUNAME
1459 ## --------- ##
1460 ## Platform. ##
1461 ## --------- ##
1462
1463 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1464 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1465 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1466 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1467 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1468
1469 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1470 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1471
1472 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1473 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1474 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1475 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1476 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1477 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1478 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1479
1480 _ASUNAME
1481
1482 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483 for as_dir in $PATH
1484 do
1485 IFS=$as_save_IFS
1486 test -z "$as_dir" && as_dir=.
1487 echo "PATH: $as_dir"
1488 done
1489 IFS=$as_save_IFS
1490
1491 } >&5
1492
1493 cat >&5 <<_ACEOF
1494
1495
1496 ## ----------- ##
1497 ## Core tests. ##
1498 ## ----------- ##
1499
1500 _ACEOF
1501
1502
1503 # Keep a trace of the command line.
1504 # Strip out --no-create and --no-recursion so they do not pile up.
1505 # Strip out --silent because we don't want to record it for future runs.
1506 # Also quote any args containing shell meta-characters.
1507 # Make two passes to allow for proper duplicate-argument suppression.
1508 ac_configure_args=
1509 ac_configure_args0=
1510 ac_configure_args1=
1511 ac_must_keep_next=false
1512 for ac_pass in 1 2
1513 do
1514 for ac_arg
1515 do
1516 case $ac_arg in
1517 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1518 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1519 | -silent | --silent | --silen | --sile | --sil)
1520 continue ;;
1521 *\'*)
1522 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1523 esac
1524 case $ac_pass in
1525 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1526 2)
1527 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1528 if test $ac_must_keep_next = true; then
1529 ac_must_keep_next=false # Got value, back to normal.
1530 else
1531 case $ac_arg in
1532 *=* | --config-cache | -C | -disable-* | --disable-* \
1533 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1534 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1535 | -with-* | --with-* | -without-* | --without-* | --x)
1536 case "$ac_configure_args0 " in
1537 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1538 esac
1539 ;;
1540 -* ) ac_must_keep_next=true ;;
1541 esac
1542 fi
1543 ac_configure_args="$ac_configure_args '$ac_arg'"
1544 ;;
1545 esac
1546 done
1547 done
1548 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1549 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1550
1551 # When interrupted or exit'd, cleanup temporary files, and complete
1552 # config.log. We remove comments because anyway the quotes in there
1553 # would cause problems or look ugly.
1554 # WARNING: Use '\'' to represent an apostrophe within the trap.
1555 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1556 trap 'exit_status=$?
1557 # Save into config.log some information that might help in debugging.
1558 {
1559 echo
1560
1561 cat <<\_ASBOX
1562 ## ---------------- ##
1563 ## Cache variables. ##
1564 ## ---------------- ##
1565 _ASBOX
1566 echo
1567 # The following way of writing the cache mishandles newlines in values,
1568 (
1569 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1570 eval ac_val=\$$ac_var
1571 case $ac_val in #(
1572 *${as_nl}*)
1573 case $ac_var in #(
1574 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1575 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1576 esac
1577 case $ac_var in #(
1578 _ | IFS | as_nl) ;; #(
1579 *) $as_unset $ac_var ;;
1580 esac ;;
1581 esac
1582 done
1583 (set) 2>&1 |
1584 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1585 *${as_nl}ac_space=\ *)
1586 sed -n \
1587 "s/'\''/'\''\\\\'\'''\''/g;
1588 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1589 ;; #(
1590 *)
1591 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1592 ;;
1593 esac |
1594 sort
1595 )
1596 echo
1597
1598 cat <<\_ASBOX
1599 ## ----------------- ##
1600 ## Output variables. ##
1601 ## ----------------- ##
1602 _ASBOX
1603 echo
1604 for ac_var in $ac_subst_vars
1605 do
1606 eval ac_val=\$$ac_var
1607 case $ac_val in
1608 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1609 esac
1610 echo "$ac_var='\''$ac_val'\''"
1611 done | sort
1612 echo
1613
1614 if test -n "$ac_subst_files"; then
1615 cat <<\_ASBOX
1616 ## ------------------- ##
1617 ## File substitutions. ##
1618 ## ------------------- ##
1619 _ASBOX
1620 echo
1621 for ac_var in $ac_subst_files
1622 do
1623 eval ac_val=\$$ac_var
1624 case $ac_val in
1625 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1626 esac
1627 echo "$ac_var='\''$ac_val'\''"
1628 done | sort
1629 echo
1630 fi
1631
1632 if test -s confdefs.h; then
1633 cat <<\_ASBOX
1634 ## ----------- ##
1635 ## confdefs.h. ##
1636 ## ----------- ##
1637 _ASBOX
1638 echo
1639 cat confdefs.h
1640 echo
1641 fi
1642 test "$ac_signal" != 0 &&
1643 echo "$as_me: caught signal $ac_signal"
1644 echo "$as_me: exit $exit_status"
1645 } >&5
1646 rm -f core *.core core.conftest.* &&
1647 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1648 exit $exit_status
1649 ' 0
1650 for ac_signal in 1 2 13 15; do
1651 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1652 done
1653 ac_signal=0
1654
1655 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1656 rm -f -r conftest* confdefs.h
1657
1658 # Predefined preprocessor variables.
1659
1660 cat >>confdefs.h <<_ACEOF
1661 #define PACKAGE_NAME "$PACKAGE_NAME"
1662 _ACEOF
1663
1664
1665 cat >>confdefs.h <<_ACEOF
1666 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1667 _ACEOF
1668
1669
1670 cat >>confdefs.h <<_ACEOF
1671 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1672 _ACEOF
1673
1674
1675 cat >>confdefs.h <<_ACEOF
1676 #define PACKAGE_STRING "$PACKAGE_STRING"
1677 _ACEOF
1678
1679
1680 cat >>confdefs.h <<_ACEOF
1681 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1682 _ACEOF
1683
1684
1685 # Let the site file select an alternate cache file if it wants to.
1686 # Prefer explicitly selected file to automatically selected ones.
1687 if test -n "$CONFIG_SITE"; then
1688 set x "$CONFIG_SITE"
1689 elif test "x$prefix" != xNONE; then
1690 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1691 else
1692 set x "$ac_default_prefix/share/config.site" \
1693 "$ac_default_prefix/etc/config.site"
1694 fi
1695 shift
1696 for ac_site_file
1697 do
1698 if test -r "$ac_site_file"; then
1699 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1700 echo "$as_me: loading site script $ac_site_file" >&6;}
1701 sed 's/^/| /' "$ac_site_file" >&5
1702 . "$ac_site_file"
1703 fi
1704 done
1705
1706 if test -r "$cache_file"; then
1707 # Some versions of bash will fail to source /dev/null (special
1708 # files actually), so we avoid doing that.
1709 if test -f "$cache_file"; then
1710 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1711 echo "$as_me: loading cache $cache_file" >&6;}
1712 case $cache_file in
1713 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1714 *) . "./$cache_file";;
1715 esac
1716 fi
1717 else
1718 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1719 echo "$as_me: creating cache $cache_file" >&6;}
1720 >$cache_file
1721 fi
1722
1723 ac_header_list="$ac_header_list sys/time.h"
1724 ac_header_list="$ac_header_list unistd.h"
1725 ac_func_list="$ac_func_list alarm"
1726 # Check that the precious variables saved in the cache have kept the same
1727 # value.
1728 ac_cache_corrupted=false
1729 for ac_var in $ac_precious_vars; do
1730 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1731 eval ac_new_set=\$ac_env_${ac_var}_set
1732 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1733 eval ac_new_val=\$ac_env_${ac_var}_value
1734 case $ac_old_set,$ac_new_set in
1735 set,)
1736 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1737 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1738 ac_cache_corrupted=: ;;
1739 ,set)
1740 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1741 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1742 ac_cache_corrupted=: ;;
1743 ,);;
1744 *)
1745 if test "x$ac_old_val" != "x$ac_new_val"; then
1746 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1747 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1748 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1749 echo "$as_me: former value: $ac_old_val" >&2;}
1750 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1751 echo "$as_me: current value: $ac_new_val" >&2;}
1752 ac_cache_corrupted=:
1753 fi;;
1754 esac
1755 # Pass precious variables to config.status.
1756 if test "$ac_new_set" = set; then
1757 case $ac_new_val in
1758 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1759 *) ac_arg=$ac_var=$ac_new_val ;;
1760 esac
1761 case " $ac_configure_args " in
1762 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1763 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1764 esac
1765 fi
1766 done
1767 if $ac_cache_corrupted; then
1768 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1769 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1770 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1771 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1772 { (exit 1); exit 1; }; }
1773 fi
1774
1775
1776
1777
1778
1779
1780
1781
1782
1783
1784
1785
1786
1787
1788
1789
1790
1791 ac_ext=c
1792 ac_cpp='$CPP $CPPFLAGS'
1793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1796
1797
1798 ac_config_headers="$ac_config_headers src/config.h:src/config.in"
1799
1800
1801 test "$program_prefix" != NONE &&
1802 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1803 # Use a double $ so make ignores it.
1804 test "$program_suffix" != NONE &&
1805 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1806 # Double any \ or $. echo might interpret backslashes.
1807 # By default was `s,x,x', remove it if useless.
1808 cat <<\_ACEOF >conftest.sed
1809 s/[\\$]/&&/g;s/;s,x,x,$//
1810 _ACEOF
1811 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1812 rm -f conftest.sed
1813
1814
1815 lispdir='${datadir}/emacs/${version}/lisp'
1816 locallisppath='${datadir}/emacs/${version}/site-lisp:'\
1817 '${datadir}/emacs/site-lisp'
1818 lisppath='${locallisppath}:${lispdir}:${datadir}/emacs/${version}/leim'
1819 etcdir='${datadir}/emacs/${version}/etc'
1820 archlibdir='${libexecdir}/emacs/${version}/${configuration}'
1821 docdir='${datadir}/emacs/${version}/etc'
1822 gamedir='${localstatedir}/games/emacs'
1823
1824 gameuser=games
1825
1826
1827
1828 # Check whether --with-gcc was given.
1829 if test "${with_gcc+set}" = set; then
1830 withval=$with_gcc;
1831 fi
1832
1833
1834
1835 # Check whether --with-pop was given.
1836 if test "${with_pop+set}" = set; then
1837 withval=$with_pop; if test "$withval" = yes; then
1838 cat >>confdefs.h <<\_ACEOF
1839 #define MAIL_USE_POP 1
1840 _ACEOF
1841
1842 else :
1843 fi
1844 else
1845 cat >>confdefs.h <<\_ACEOF
1846 #define MAIL_USE_POP 1
1847 _ACEOF
1848
1849 fi
1850
1851
1852
1853
1854 # Check whether --with-kerberos was given.
1855 if test "${with_kerberos+set}" = set; then
1856 withval=$with_kerberos; if test "$withval" = yes; then
1857 cat >>confdefs.h <<\_ACEOF
1858 #define KERBEROS 1
1859 _ACEOF
1860
1861 fi
1862 fi
1863
1864
1865
1866
1867 # Check whether --with-kerberos5 was given.
1868 if test "${with_kerberos5+set}" = set; then
1869 withval=$with_kerberos5; if test "${with_kerberos5+set}" = set; then
1870 if test "${with_kerberos+set}" != set; then
1871 with_kerberos=yes
1872 cat >>confdefs.h <<\_ACEOF
1873 #define KERBEROS 1
1874 _ACEOF
1875
1876 fi
1877
1878 cat >>confdefs.h <<\_ACEOF
1879 #define KERBEROS5 1
1880 _ACEOF
1881
1882 fi
1883 fi
1884
1885
1886
1887 # Check whether --with-hesiod was given.
1888 if test "${with_hesiod+set}" = set; then
1889 withval=$with_hesiod; if test "$withval" = yes; then
1890
1891 cat >>confdefs.h <<\_ACEOF
1892 #define HESIOD 1
1893 _ACEOF
1894
1895 fi
1896 fi
1897
1898
1899
1900 # Check whether --with-sound was given.
1901 if test "${with_sound+set}" = set; then
1902 withval=$with_sound;
1903 fi
1904
1905
1906
1907 # Check whether --with-x-toolkit was given.
1908 if test "${with_x_toolkit+set}" = set; then
1909 withval=$with_x_toolkit; case "${withval}" in
1910 y | ye | yes ) val=gtk ;;
1911 n | no ) val=no ;;
1912 l | lu | luc | luci | lucid ) val=lucid ;;
1913 a | at | ath | athe | athen | athena ) val=athena ;;
1914 m | mo | mot | moti | motif ) val=motif ;;
1915 g | gt | gtk ) val=gtk ;;
1916 * )
1917 { { echo "$as_me:$LINENO: error: \`--with-x-toolkit=$withval' is invalid;
1918 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1919 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&5
1920 echo "$as_me: error: \`--with-x-toolkit=$withval' is invalid;
1921 this option's value should be \`yes', \`no', \`lucid', \`athena', \`motif' or \`gtk'.
1922 \`yes' and \`gtk' are synonyms. \`athena' and \`lucid' are synonyms." >&2;}
1923 { (exit 1); exit 1; }; }
1924 ;;
1925 esac
1926 with_x_toolkit=$val
1927
1928 fi
1929
1930
1931
1932 # Check whether --with-xpm was given.
1933 if test "${with_xpm+set}" = set; then
1934 withval=$with_xpm;
1935 fi
1936
1937
1938 # Check whether --with-jpeg was given.
1939 if test "${with_jpeg+set}" = set; then
1940 withval=$with_jpeg;
1941 fi
1942
1943
1944 # Check whether --with-tiff was given.
1945 if test "${with_tiff+set}" = set; then
1946 withval=$with_tiff;
1947 fi
1948
1949
1950 # Check whether --with-gif was given.
1951 if test "${with_gif+set}" = set; then
1952 withval=$with_gif;
1953 fi
1954
1955
1956 # Check whether --with-png was given.
1957 if test "${with_png+set}" = set; then
1958 withval=$with_png;
1959 fi
1960
1961
1962 # Check whether --with-gpm was given.
1963 if test "${with_gpm+set}" = set; then
1964 withval=$with_gpm;
1965 fi
1966
1967
1968 # Check whether --with-rsvg was given.
1969 if test "${with_rsvg+set}" = set; then
1970 withval=$with_rsvg;
1971 fi
1972
1973
1974 # Check whether --with-gtk was given.
1975 if test "${with_gtk+set}" = set; then
1976 withval=$with_gtk;
1977 fi
1978
1979
1980 # Check whether --with-pkg-config-prog was given.
1981 if test "${with_pkg_config_prog+set}" = set; then
1982 withval=$with_pkg_config_prog;
1983 fi
1984
1985
1986 # Check whether --with-toolkit-scroll-bars was given.
1987 if test "${with_toolkit_scroll_bars+set}" = set; then
1988 withval=$with_toolkit_scroll_bars;
1989 fi
1990
1991
1992 # Check whether --with-xaw3d was given.
1993 if test "${with_xaw3d+set}" = set; then
1994 withval=$with_xaw3d;
1995 fi
1996
1997
1998 # Check whether --with-xim was given.
1999 if test "${with_xim+set}" = set; then
2000 withval=$with_xim;
2001 fi
2002
2003
2004 # Check whether --with-carbon was given.
2005 if test "${with_carbon+set}" = set; then
2006 withval=$with_carbon;
2007 fi
2008
2009
2010 # Check whether --with-dbus was given.
2011 if test "${with_dbus+set}" = set; then
2012 withval=$with_dbus;
2013 fi
2014
2015
2016 # Check whether --enable-carbon-app was given.
2017 if test "${enable_carbon_app+set}" = set; then
2018 enableval=$enable_carbon_app; carbon_appdir_x=${enableval}
2019 fi
2020
2021
2022 # Check whether --enable-asserts was given.
2023 if test "${enable_asserts+set}" = set; then
2024 enableval=$enable_asserts; USE_XASSERTS=$enableval
2025 else
2026 USE_XASSERTS=no
2027 fi
2028
2029
2030 # Check whether --enable-maintainer-mode was given.
2031 if test "${enable_maintainer_mode+set}" = set; then
2032 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2033 else
2034 USE_MAINTAINER_MODE=no
2035 fi
2036
2037 if test $USE_MAINTAINER_MODE = yes; then
2038 MAINT=
2039 else
2040 MAINT=#
2041 fi
2042
2043
2044 # Check whether --enable-locallisppath was given.
2045 if test "${enable_locallisppath+set}" = set; then
2046 enableval=$enable_locallisppath; if test "${enableval}" = "no"; then
2047 locallisppath=
2048 elif test "${enableval}" != "yes"; then
2049 locallisppath=${enableval}
2050 fi
2051 fi
2052
2053
2054 #### Make srcdir absolute, if it isn't already. It's important to
2055 #### avoid running the path through pwd unnecessarily, since pwd can
2056 #### give you automounter prefixes, which can go away. We do all this
2057 #### so Emacs can find its files when run uninstalled.
2058 ## Make sure CDPATH doesn't affect cd (in case PWD is relative).
2059 unset CDPATH
2060 case "${srcdir}" in
2061 /* ) ;;
2062 . )
2063 ## We may be able to use the $PWD environment variable to make this
2064 ## absolute. But sometimes PWD is inaccurate.
2065 ## Note: we used to use ${PWD} at the end instead of `pwd`,
2066 ## but that tested only for a well-formed and valid PWD,
2067 ## it did not object when PWD was well-formed and valid but just wrong.
2068 if test ".${PWD}" != "." && test ".`(cd ${PWD} ; sh -c pwd)`" = ".`pwd`" ;
2069 then
2070 srcdir="$PWD"
2071 else
2072 srcdir="`(cd ${srcdir}; pwd)`"
2073 fi
2074 ;;
2075 * ) srcdir="`(cd ${srcdir}; pwd)`" ;;
2076 esac
2077
2078 #### Check if the source directory already has a configured system in it.
2079 if test `pwd` != `(cd ${srcdir} && pwd)` \
2080 && test -f "${srcdir}/src/config.h" ; then
2081 { echo "$as_me:$LINENO: WARNING: The directory tree \`${srcdir}' is being used
2082 as a build directory right now; it has been configured in its own
2083 right. To configure in another directory as well, you MUST
2084 use GNU make. If you do not have GNU make, then you must
2085 now do \`make distclean' in ${srcdir},
2086 and then run $0 again." >&5
2087 echo "$as_me: WARNING: The directory tree \`${srcdir}' is being used
2088 as a build directory right now; it has been configured in its own
2089 right. To configure in another directory as well, you MUST
2090 use GNU make. If you do not have GNU make, then you must
2091 now do \`make distclean' in ${srcdir},
2092 and then run $0 again." >&2;}
2093 fi
2094
2095 #### Given the configuration name, set machfile and opsysfile to the
2096 #### names of the m/*.h and s/*.h files we should use.
2097
2098 ### Canonicalize the configuration name.
2099
2100 ac_aux_dir=
2101 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2102 if test -f "$ac_dir/install-sh"; then
2103 ac_aux_dir=$ac_dir
2104 ac_install_sh="$ac_aux_dir/install-sh -c"
2105 break
2106 elif test -f "$ac_dir/install.sh"; then
2107 ac_aux_dir=$ac_dir
2108 ac_install_sh="$ac_aux_dir/install.sh -c"
2109 break
2110 elif test -f "$ac_dir/shtool"; then
2111 ac_aux_dir=$ac_dir
2112 ac_install_sh="$ac_aux_dir/shtool install -c"
2113 break
2114 fi
2115 done
2116 if test -z "$ac_aux_dir"; then
2117 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
2118 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
2119 { (exit 1); exit 1; }; }
2120 fi
2121
2122 # These three variables are undocumented and unsupported,
2123 # and are intended to be withdrawn in a future Autoconf release.
2124 # They can cause serious problems if a builder's source tree is in a directory
2125 # whose full name contains unusual characters.
2126 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2127 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2128 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2129
2130
2131 # Make sure we can run config.sub.
2132 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2133 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2134 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2135 { (exit 1); exit 1; }; }
2136
2137 { echo "$as_me:$LINENO: checking build system type" >&5
2138 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2139 if test "${ac_cv_build+set}" = set; then
2140 echo $ECHO_N "(cached) $ECHO_C" >&6
2141 else
2142 ac_build_alias=$build_alias
2143 test "x$ac_build_alias" = x &&
2144 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2145 test "x$ac_build_alias" = x &&
2146 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2147 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2148 { (exit 1); exit 1; }; }
2149 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2150 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2151 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2152 { (exit 1); exit 1; }; }
2153
2154 fi
2155 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2156 echo "${ECHO_T}$ac_cv_build" >&6; }
2157 case $ac_cv_build in
2158 *-*-*) ;;
2159 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2160 echo "$as_me: error: invalid value of canonical build" >&2;}
2161 { (exit 1); exit 1; }; };;
2162 esac
2163 build=$ac_cv_build
2164 ac_save_IFS=$IFS; IFS='-'
2165 set x $ac_cv_build
2166 shift
2167 build_cpu=$1
2168 build_vendor=$2
2169 shift; shift
2170 # Remember, the first character of IFS is used to create $*,
2171 # except with old shells:
2172 build_os=$*
2173 IFS=$ac_save_IFS
2174 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2175
2176
2177 { echo "$as_me:$LINENO: checking host system type" >&5
2178 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2179 if test "${ac_cv_host+set}" = set; then
2180 echo $ECHO_N "(cached) $ECHO_C" >&6
2181 else
2182 if test "x$host_alias" = x; then
2183 ac_cv_host=$ac_cv_build
2184 else
2185 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2186 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2187 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2188 { (exit 1); exit 1; }; }
2189 fi
2190
2191 fi
2192 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2193 echo "${ECHO_T}$ac_cv_host" >&6; }
2194 case $ac_cv_host in
2195 *-*-*) ;;
2196 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2197 echo "$as_me: error: invalid value of canonical host" >&2;}
2198 { (exit 1); exit 1; }; };;
2199 esac
2200 host=$ac_cv_host
2201 ac_save_IFS=$IFS; IFS='-'
2202 set x $ac_cv_host
2203 shift
2204 host_cpu=$1
2205 host_vendor=$2
2206 shift; shift
2207 # Remember, the first character of IFS is used to create $*,
2208 # except with old shells:
2209 host_os=$*
2210 IFS=$ac_save_IFS
2211 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2212
2213
2214 canonical=$host
2215 configuration=${host_alias-${build_alias-$host}}
2216
2217
2218
2219 ### If you add support for a new configuration, add code to this
2220 ### switch statement to recognize your configuration name and select
2221 ### the appropriate operating system and machine description files.
2222
2223 ### You would hope that you could choose an m/*.h file pretty much
2224 ### based on the machine portion of the configuration name, and an s-
2225 ### file based on the operating system portion. However, it turns out
2226 ### that each m/*.h file is pretty manufacturer-specific - for
2227 ### example, apollo.h, hp9000s300.h, mega68k, news.h, and tad68k are
2228 ### all 68000 machines; mips.h, pmax.h, and news-risc are all MIPS
2229 ### machines. So we basically have to have a special case for each
2230 ### configuration name.
2231 ###
2232 ### As far as handling version numbers on operating systems is
2233 ### concerned, make sure things will fail in a fixable way. If
2234 ### /etc/MACHINES doesn't say anything about version numbers, be
2235 ### prepared to handle anything reasonably. If version numbers
2236 ### matter, be sure /etc/MACHINES says something about it.
2237 ###
2238 ### Eric Raymond says we should accept strings like "sysvr4" to mean
2239 ### "System V Release 4"; he writes, "The old convention encouraged
2240 ### confusion between `system' and `release' levels'."
2241
2242 machine='' opsys='' unported=no
2243 case "${canonical}" in
2244
2245 ## FreeBSD ports
2246 *-*-freebsd* )
2247 opsys=freebsd
2248 case "${canonical}" in
2249 alpha*-*-freebsd*) machine=alpha ;;
2250 ia64-*-freebsd*) machine=ia64 ;;
2251 sparc64-*-freebsd*) machine=sparc ;;
2252 powerpc-*-freebsd*) machine=macppc ;;
2253 i[3456]86-*-freebsd*) machine=intel386 ;;
2254 amd64-*-freebsd*|x86_64-*-freebsd*) machine=amdx86-64 ;;
2255 esac
2256 ;;
2257
2258 ## FreeBSD kernel + glibc based userland
2259 *-*-kfreebsd*gnu* )
2260 opsys=gnu-kfreebsd
2261 case "${canonical}" in
2262 alpha*-*-kfreebsd*) machine=alpha ;;
2263 ia64-*-kfreebsd*) machine=ia64 ;;
2264 sparc64-*-kfreebsd*) machine=sparc ;;
2265 powerpc-*-kfreebsd*) machine=macppc ;;
2266 i[3456]86-*-kfreebsd*) machine=intel386 ;;
2267 amd64-*-kfreebsd*|x86_64-*-kfreebsd*) machine=amdx86-64 ;;
2268 esac
2269 ;;
2270
2271 ## NetBSD ports
2272 *-*-netbsd* )
2273 opsys=netbsd
2274 if test -f /usr/lib/crti.o; then
2275
2276 cat >>confdefs.h <<\_ACEOF
2277 #define HAVE_CRTIN
2278 _ACEOF
2279
2280 fi
2281
2282 case "${canonical}" in
2283 alpha*-*-netbsd*) machine=alpha ;;
2284 i[3456]86-*-netbsd*) machine=intel386 ;;
2285 m68k-*-netbsd*)
2286 # This is somewhat bogus.
2287 machine=hp9000s300 ;;
2288 mips-*-netbsd*) machine=pmax ;;
2289 mipsel-*-netbsd*) machine=pmax ;;
2290 mipseb-*-netbsd*) machine=pmax ;;
2291 ns32k-*-netbsd*) machine=ns32000 ;;
2292 powerpc-*-netbsd*) machine=macppc ;;
2293 sparc*-*-netbsd*) machine=sparc ;;
2294 vax-*-netbsd*) machine=vax ;;
2295 arm-*-netbsd*) machine=arm ;;
2296 x86_64-*-netbsd*) machine=amdx86-64 ;;
2297 hppa-*-netbsd*) machine=hp800 ;;
2298 shle-*-netbsd*) machine=sh3el ;;
2299 esac
2300 ;;
2301
2302 ## OpenBSD ports
2303 *-*-openbsd* )
2304 opsys=openbsd
2305 case "${canonical}" in
2306 alpha*-*-openbsd*) machine=alpha ;;
2307 arm-*-openbsd*) machine=arm ;;
2308 hppa-*-openbsd*) machine=hp9000s300 ;;
2309 i386-*-openbsd*) machine=intel386 ;;
2310 m68k-*-openbsd*) machine=hp9000s300 ;;
2311 m88k-*-openbsd*) machine=aviion ;;
2312 mips64-*-openbsd*) machine=mips64 ;;
2313 powerpc-*-openbsd*) machine=macppc ;;
2314 sh-*-openbsd*) machine=sh3el ;;
2315 sparc*-*-openbsd*) machine=sparc ;;
2316 vax-*-openbsd*) machine=vax ;;
2317 x86_64-*-openbsd*) machine=amdx86-64 ;;
2318 esac
2319 ;;
2320
2321 ## LynxOS ports
2322 *-*-lynxos* )
2323 opsys=lynxos
2324 case "${canonical}" in
2325 i[3456]86-*-lynxos*) machine=intel386 ;;
2326 powerpc-*-lynxos*) machine=powerpc ;;
2327 esac
2328 ;;
2329
2330 ## Acorn RISCiX:
2331 arm-acorn-riscix1.1* )
2332 machine=acorn opsys=riscix1-1
2333 ;;
2334 arm-acorn-riscix1.2* | arm-acorn-riscix )
2335 ## This name is riscix12 instead of riscix1.2
2336 ## to avoid a file name conflict on MSDOS.
2337 machine=acorn opsys=riscix12
2338 ;;
2339
2340 ## BSDI ports
2341 *-*-bsdi* )
2342 opsys=bsdi
2343 case "${canonical}" in
2344 i[345]86-*-bsdi*) machine=intel386 ;;
2345 sparc-*-bsdi*) machine=sparc ;;
2346 powerpc-*-bsdi*) machine=macppc ;;
2347 esac
2348 case "${canonical}" in
2349 *-*-bsd386* | *-*-bsdi1* ) opsys=bsd386 ;;
2350 *-*-bsdi2.0* ) opsys=bsdos2 ;;
2351 *-*-bsdi2* ) opsys=bsdos2-1 ;;
2352 *-*-bsdi3* ) opsys=bsdos3 ;;
2353 *-*-bsdi[45]* ) opsys=bsdos4 ;;
2354 esac
2355 ;;
2356
2357 ## Alliant machines
2358 ## Strictly speaking, we need the version of the alliant operating
2359 ## system to choose the right machine file, but currently the
2360 ## configuration name doesn't tell us enough to choose the right
2361 ## one; we need to give alliants their own operating system name to
2362 ## do this right. When someone cares, they can help us.
2363 fx80-alliant-* )
2364 machine=alliant4 opsys=bsd4-2
2365 ;;
2366 i860-alliant-* )
2367 machine=alliant-2800 opsys=bsd4-3
2368 ;;
2369
2370 ## Alpha (DEC) machines.
2371 alpha*-dec-osf* )
2372 machine=alpha opsys=osf1
2373 # This is needed to find X11R6.1 libraries for certain tests.
2374 NON_GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2375 GCC_LINK_TEST_OPTIONS=-Wl,-rpath,/usr/X11R6/lib
2376 # NON_GNU_CPP is necessary on 5.0 to avoid mangling src/Makefile
2377 # due to non-traditional preprocessing with the current compiler
2378 # defaults. OSF 4 can also have that compiler version, and there
2379 # seems always to have been a usable /usr/bin/cpp.
2380 NON_GNU_CPP=/usr/bin/cpp
2381 case "${canonical}" in
2382 alpha*-dec-osf[5-9]*)
2383 opsys=osf5-0 ;;
2384 esac
2385 ;;
2386
2387 alpha*-*-linux-gnu* )
2388 machine=alpha opsys=gnu-linux
2389 ;;
2390
2391 arm*-*-linux-gnu* )
2392 machine=arm opsys=gnu-linux
2393 ;;
2394
2395 ## Altos 3068
2396 m68*-altos-sysv* )
2397 machine=altos opsys=usg5-2
2398 ;;
2399
2400 ## Amdahl UTS
2401 580-amdahl-sysv* )
2402 machine=amdahl opsys=usg5-2-2
2403 ;;
2404
2405 ## Apollo, Domain/OS
2406 m68*-apollo-* )
2407 machine=apollo opsys=bsd4-3
2408 ;;
2409
2410 ## Apple Darwin / Mac OS X
2411 *-apple-darwin* )
2412 case "${canonical}" in
2413 i[3456]86-* ) machine=intel386 ;;
2414 powerpc-* ) machine=powermac ;;
2415 * ) unported=yes ;;
2416 esac
2417 opsys=darwin
2418 # Define CPP as follows to make autoconf work correctly.
2419 CPP="${CC-cc} -E -no-cpp-precomp"
2420 # Use fink packages if available.
2421 if test -d /sw/include && test -d /sw/lib; then
2422 GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
2423 CPP="${CPP} ${GCC_TEST_OPTIONS}"
2424 NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
2425 fi
2426 ;;
2427
2428 ## AT&T 3b2, 3b5, 3b15, 3b20
2429 we32k-att-sysv* )
2430 machine=att3b opsys=usg5-2-2
2431 ;;
2432
2433 ## AT&T 3b1 - The Mighty Unix PC!
2434 m68*-att-sysv* )
2435 machine=7300 opsys=usg5-2-2
2436 ;;
2437
2438 ## Bull dpx20
2439 rs6000-bull-bosx* )
2440 machine=ibmrs6000 opsys=aix3-2
2441 ;;
2442
2443 ## Bull dpx2
2444 m68*-bull-sysv3* )
2445 machine=dpx2 opsys=usg5-3
2446 ;;
2447
2448 ## Bull sps7
2449 m68*-bull-sysv2* )
2450 machine=sps7 opsys=usg5-2
2451 ;;
2452
2453 ## CCI 5/32, 6/32 -- see "Tahoe".
2454
2455 ## Celerity
2456 ## I don't know what configuration name to use for this; config.sub
2457 ## doesn't seem to know anything about it. Hey, Celerity users, get
2458 ## in touch with us!
2459 celerity-celerity-bsd* )
2460 machine=celerity opsys=bsd4-2
2461 ;;
2462
2463 ## Clipper
2464 ## What operating systems does this chip run that Emacs has been
2465 ## tested on?
2466 clipper-* )
2467 machine=clipper
2468 ## We'll use the catch-all code at the bottom to guess the
2469 ## operating system.
2470 ;;
2471
2472 ## Compaq Nonstop
2473 mips-compaq-nonstopux* )
2474 machine=nonstopux opsys=nonstopux
2475 ;;
2476
2477 ## Convex
2478 *-convex-bsd* | *-convex-convexos* )
2479 machine=convex opsys=bsd4-3
2480 ## Prevents spurious white space in makefiles - d.m.cooke@larc.nasa.gov
2481 NON_GNU_CPP="cc -E -P"
2482 ;;
2483
2484 ## Cubix QBx/386
2485 i[3456]86-cubix-sysv* )
2486 machine=intel386 opsys=usg5-3
2487 ;;
2488
2489 ## Cydra 5
2490 cydra*-cydrome-sysv* )
2491 machine=cydra5 opsys=usg5-3
2492 ;;
2493
2494 ## Data General AViiON Machines
2495 ## DG changed naming conventions with the release of 5.4.4.10, they
2496 ## dropped the initial 5.4 but left the intervening R. Because of the
2497 ## R this shouldn't conflict with older versions of the OS (which I
2498 ## think were named like dgux4.*). In addition, DG new AViiONs series
2499 ## uses either Motorola M88k or Intel Pentium CPUs.
2500 m88k-dg-dguxR4.* | m88k-dg-dgux4* )
2501 machine=aviion opsys=dgux4
2502 ;;
2503 m88k-dg-dgux5.4R3* | m88k-dg-dgux5.4.3* )
2504 ## This name is dgux5-4-3 instead of dgux5-4r3
2505 ## to avoid a file name conflict on MSDOS.
2506 machine=aviion opsys=dgux5-4-3
2507 ;;
2508 m88k-dg-dgux5.4R2* | m88k-dg-dgux5.4.2* )
2509 machine=aviion opsys=dgux5-4r2
2510 ;;
2511 m88k-dg-dgux* )
2512 machine=aviion opsys=dgux
2513 ;;
2514
2515 ## Data General AViiON Intel (x86) Machines
2516 ## Exists from 5.4.3 (current i586-dg-dguxR4.11)
2517 ## Ehud Karni, 1998-may-30, ehud@unix.simonwiesel.co.il
2518 i[345]86-dg-dguxR4* )
2519 machine=aviion-intel opsys=dgux4
2520 ;;
2521
2522 ## DECstations
2523 mips-dec-ultrix[0-3].* | mips-dec-ultrix4.0* | mips-dec-bsd4.2* )
2524 machine=pmax opsys=bsd4-2
2525 ;;
2526 mips-dec-ultrix4.[12]* | mips-dec-bsd* )
2527 machine=pmax opsys=bsd4-3
2528 ;;
2529 mips-dec-ultrix* )
2530 machine=pmax opsys=ultrix4-3
2531 ;;
2532 mips-dec-osf* )
2533 machine=pmax opsys=osf1
2534 ;;
2535 mips-dec-mach_bsd4.3* )
2536 machine=pmax opsys=mach-bsd4-3
2537 ;;
2538
2539 ## Motorola Delta machines
2540 m68k-motorola-sysv* | m68000-motorola-sysv* )
2541 machine=delta opsys=usg5-3
2542 if test -z "`type gnucc | grep 'not found'`"
2543 then
2544 if test -s /etc/167config
2545 then CC="gnucc -m68040"
2546 else CC="gnucc -m68881"
2547 fi
2548 else
2549 if test -z "`type gcc | grep 'not found'`"
2550 then CC=gcc
2551 else CC=cc
2552 fi
2553 fi
2554 ;;
2555 m88k-motorola-sysv4* )
2556 # jbotte@bnr.ca says that UNIX_System_V <hostName> 4.0 R40V4.3 m88k mc88110
2557 # needs POSIX_SIGNALS and therefore needs usg5-4-2.
2558 # I hope there are not other 4.0 versions for this machine
2559 # which really need usg5-4 instead.
2560 machine=delta88k opsys=usg5-4-2
2561 ;;
2562 m88k-motorola-sysv* | m88k-motorola-m88kbcs* )
2563 machine=delta88k opsys=usg5-3
2564 ;;
2565
2566 ## Dual machines
2567 m68*-dual-sysv* )
2568 machine=dual opsys=usg5-2
2569 ;;
2570 m68*-dual-uniplus* )
2571 machine=dual opsys=unipl5-2
2572 ;;
2573
2574 ## Elxsi 6400
2575 elxsi-elxsi-sysv* )
2576 machine=elxsi opsys=usg5-2
2577 ;;
2578
2579 ## Encore machines
2580 ns16k-encore-bsd* )
2581 machine=ns16000 opsys=umax
2582 ;;
2583
2584 ## The GEC 63 - apparently, this port isn't really finished yet.
2585 # I'm sure we finished off the last of the machines, though. -- fx
2586
2587 ## Gould Power Node and NP1
2588 pn-gould-bsd4.2* )
2589 machine=gould opsys=bsd4-2
2590 ;;
2591 pn-gould-bsd4.3* )
2592 machine=gould opsys=bsd4-3
2593 ;;
2594 np1-gould-bsd* )
2595 machine=gould-np1 opsys=bsd4-3
2596 ;;
2597
2598 ## Harris Night Hawk machines running CX/UX (a 5000 looks just like a 4000
2599 ## as far as Emacs is concerned).
2600 m88k-harris-cxux* )
2601 # Build needs to be different on 7.0 and later releases
2602 case "`uname -r`" in
2603 [56].[0-9] ) machine=nh4000 opsys=cxux ;;
2604 [7].[0-9] ) machine=nh4000 opsys=cxux7 ;;
2605 esac
2606 NON_GNU_CPP="/lib/cpp"
2607 ;;
2608 ## Harris ecx or gcx running CX/UX (Series 1200, Series 3000)
2609 m68k-harris-cxux* )
2610 machine=nh3000 opsys=cxux
2611 ;;
2612 ## Harris power pc NightHawk running Power UNIX (Series 6000)
2613 powerpc-harris-powerunix )
2614 machine=nh6000 opsys=powerunix
2615 NON_GNU_CPP="cc -Xo -E -P"
2616 ;;
2617 ## SR2001/SR2201 running HI-UX/MPP
2618 hppa1.1-hitachi-hiuxmpp* )
2619 machine=sr2k opsys=hiuxmpp
2620 ;;
2621 hppa1.1-hitachi-hiuxwe2* )
2622 machine=sr2k opsys=hiuxwe2
2623 ;;
2624 ## Honeywell XPS100
2625 xps*-honeywell-sysv* )
2626 machine=xps100 opsys=usg5-2
2627 ;;
2628
2629 ## HP 9000 series 200 or 300
2630 m68*-hp-bsd* )
2631 machine=hp9000s300 opsys=bsd4-3
2632 ;;
2633 ## HP/UX 7, 8, 9, and 10 are supported on these machines.
2634 m68*-hp-hpux* )
2635 case "`uname -r`" in
2636 ## Someone's system reports A.B8.05 for this.
2637 ## I wonder what other possibilities there are.
2638 *.B8.* ) machine=hp9000s300 opsys=hpux8 ;;
2639 *.08.* ) machine=hp9000s300 opsys=hpux8 ;;
2640 *.09.* ) machine=hp9000s300 opsys=hpux9 ;;
2641 *.1[0-9].* ) machine=hp9000s300 opsys=hpux9shr ;;
2642 *) machine=hp9000s300 opsys=hpux ;;
2643 esac
2644 ;;
2645
2646 ## HP 9000 series 700 and 800, running HP/UX
2647 hppa*-hp-hpux7* )
2648 machine=hp800 opsys=hpux
2649 ;;
2650 hppa*-hp-hpux8* )
2651 machine=hp800 opsys=hpux8
2652 ;;
2653 hppa*-hp-hpux9shr* )
2654 machine=hp800 opsys=hpux9shr
2655 ;;
2656 hppa*-hp-hpux9* )
2657 machine=hp800 opsys=hpux9
2658 ;;
2659 hppa*-hp-hpux10.2* )
2660 machine=hp800 opsys=hpux10-20
2661 ;;
2662 hppa*-hp-hpux10* )
2663 machine=hp800 opsys=hpux10
2664 ;;
2665 hppa*-hp-hpux1[1-9]* )
2666 machine=hp800 opsys=hpux11
2667 CFLAGS="-D_INCLUDE__STDC_A1_SOURCE $CFLAGS"
2668 ;;
2669
2670 hppa*-*-linux-gnu* )
2671 machine=hp800 opsys=gnu-linux
2672 ;;
2673
2674 ## HP 9000 series 700 and 800, running HP/UX
2675 hppa*-hp-hpux* )
2676 ## Cross-compilation? Nah!
2677 case "`uname -r`" in
2678 ## Someone's system reports A.B8.05 for this.
2679 ## I wonder what other possibilities there are.
2680 *.B8.* ) machine=hp800 opsys=hpux8 ;;
2681 *.08.* ) machine=hp800 opsys=hpux8 ;;
2682 *.09.* ) machine=hp800 opsys=hpux9 ;;
2683 *) machine=hp800 opsys=hpux10 ;;
2684 esac
2685 ;;
2686 hppa*-*-nextstep* )
2687 machine=hp800 opsys=nextstep
2688 ;;
2689
2690 ## Orion machines
2691 orion-orion-bsd* )
2692 machine=orion opsys=bsd4-2
2693 ;;
2694 clipper-orion-bsd* )
2695 machine=orion105 opsys=bsd4-2
2696 ;;
2697
2698 ## IBM machines
2699 i[3456]86-ibm-aix1.1* )
2700 machine=ibmps2-aix opsys=usg5-2-2
2701 ;;
2702 i[3456]86-ibm-aix1.[23]* | i[3456]86-ibm-aix* )
2703 machine=ibmps2-aix opsys=usg5-3
2704 ;;
2705 i370-ibm-aix*)
2706 machine=ibm370aix opsys=usg5-3
2707 ;;
2708 s390-*-linux-gnu* )
2709 machine=ibms390 opsys=gnu-linux
2710 ;;
2711 s390x-*-linux-gnu* )
2712 machine=ibms390x opsys=gnu-linux
2713 ;;
2714 rs6000-ibm-aix3.1* | powerpc-ibm-aix3.1* )
2715 machine=ibmrs6000 opsys=aix3-1
2716 ;;
2717 rs6000-ibm-aix3.2.5 | powerpc-ibm-aix3.2.5 )
2718 machine=ibmrs6000 opsys=aix3-2-5
2719 ;;
2720 rs6000-ibm-aix4.1* | powerpc-ibm-aix4.1* )
2721 machine=ibmrs6000 opsys=aix4-1
2722 ;;
2723 rs6000-ibm-aix4.2* | powerpc-ibm-aix4.2* )
2724 machine=ibmrs6000 opsys=aix4-2
2725 ;;
2726 rs6000-ibm-aix4.3* | powerpc-ibm-aix4.3* )
2727 machine=ibmrs6000 opsys=aix4-2
2728 ;;
2729 rs6000-ibm-aix5* | powerpc-ibm-aix5* )
2730 machine=ibmrs6000 opsys=aix4-2
2731 ;;
2732 rs6000-ibm-aix4.0* | powerpc-ibm-aix4.0* )
2733 machine=ibmrs6000 opsys=aix4
2734 ;;
2735 rs6000-ibm-aix4* | powerpc-ibm-aix4* )
2736 machine=ibmrs6000 opsys=aix4-1
2737 ;;
2738 rs6000-ibm-aix* | powerpc-ibm-aix* )
2739 machine=ibmrs6000 opsys=aix3-2
2740 ;;
2741 romp-ibm-bsd4.3* )
2742 machine=ibmrt opsys=bsd4-3
2743 ;;
2744 romp-ibm-bsd4.2* )
2745 machine=ibmrt opsys=bsd4-2
2746 ;;
2747 romp-ibm-aos4.3* )
2748 machine=ibmrt opsys=bsd4-3
2749 ;;
2750 romp-ibm-aos4.2* )
2751 machine=ibmrt opsys=bsd4-2
2752 ;;
2753 romp-ibm-aos* )
2754 machine=ibmrt opsys=bsd4-3
2755 ;;
2756 romp-ibm-bsd* )
2757 machine=ibmrt opsys=bsd4-3
2758 ;;
2759 romp-ibm-aix* )
2760 machine=ibmrt-aix opsys=usg5-2-2
2761 ;;
2762
2763 ## Integrated Solutions `Optimum V'
2764 m68*-isi-bsd4.2* )
2765 machine=isi-ov opsys=bsd4-2
2766 ;;
2767 m68*-isi-bsd4.3* )
2768 machine=isi-ov opsys=bsd4-3
2769 ;;
2770
2771 ## Intel 386 machines where we do care about the manufacturer
2772 i[3456]86-intsys-sysv* )
2773 machine=is386 opsys=usg5-2-2
2774 ;;
2775
2776 ## Prime EXL
2777 i[3456]86-prime-sysv* )
2778 machine=i386 opsys=usg5-3
2779 ;;
2780
2781 ## Sequent Symmetry running Dynix
2782 i[3456]86-sequent-bsd* )
2783 machine=symmetry opsys=bsd4-3
2784 ;;
2785
2786 ## Sequent Symmetry running ptx 4, which is a modified SVR4.
2787 i[3456]86-sequent-ptx4* | i[3456]86-sequent-sysv4* )
2788 machine=sequent-ptx opsys=ptx4
2789 NON_GNU_CPP=/lib/cpp
2790 ;;
2791
2792 ## Sequent Symmetry running DYNIX/ptx
2793 ## Use the old cpp rather than the newer ANSI one.
2794 i[3456]86-sequent-ptx* )
2795 machine=sequent-ptx opsys=ptx
2796 NON_GNU_CPP="/lib/cpp"
2797 ;;
2798
2799 ## ncr machine running svr4.3.
2800 i[3456]86-ncr-sysv4.3 )
2801 machine=ncr386 opsys=usg5-4-3
2802 ;;
2803
2804 ## Unspecified sysv on an ncr machine defaults to svr4.2.
2805 ## (Plain usg5-4 doesn't turn on POSIX signals, which we need.)
2806 i[3456]86-ncr-sysv* )
2807 machine=ncr386 opsys=usg5-4-2
2808 ;;
2809
2810 ## Intel Paragon OSF/1
2811 i860-intel-osf1* )
2812 machine=paragon opsys=osf1 NON_GNU_CPP=/usr/mach/lib/cpp
2813 ;;
2814
2815 ## Intel 860
2816 i860-*-sysv4* )
2817 machine=i860 opsys=usg5-4
2818 NON_GNU_CC="/bin/cc" # Ie, not the one in /usr/ucb/cc.
2819 NON_GNU_CPP="/usr/ccs/lib/cpp" # cc -E tokenizes macro expansion.
2820 ;;
2821
2822 ## Macintosh PowerPC
2823 powerpc*-*-linux-gnu* )
2824 machine=macppc opsys=gnu-linux
2825 ;;
2826
2827 ## Masscomp machines
2828 m68*-masscomp-rtu* )
2829 machine=masscomp opsys=rtu
2830 ;;
2831
2832 ## Megatest machines
2833 m68*-megatest-bsd* )
2834 machine=mega68 opsys=bsd4-2
2835 ;;
2836
2837 ## Workstations sold by MIPS
2838 ## This is not necessarily all workstations using the MIPS processor -
2839 ## Irises are produced by SGI, and DECstations by DEC.
2840
2841 ## etc/MACHINES lists mips.h and mips4.h as possible machine files,
2842 ## and usg5-2-2 and bsd4-3 as possible OS files. The only guidance
2843 ## it gives for choosing between the alternatives seems to be "Use
2844 ## -machine=mips4 for RISCOS version 4; use -opsystem=bsd4-3 with
2845 ## the BSD world." I'll assume that these are instructions for
2846 ## handling two odd situations, and that every other situation
2847 ## should use mips.h and usg5-2-2, they being listed first.
2848 mips-mips-usg* )
2849 machine=mips4
2850 ## Fall through to the general code at the bottom to decide on the OS.
2851 ;;
2852 mips-mips-riscos4* )
2853 machine=mips4 opsys=bsd4-3
2854 NON_GNU_CC="cc -systype bsd43"
2855 NON_GNU_CPP="cc -systype bsd43 -E"
2856 ;;
2857 mips-mips-riscos5* )
2858 machine=mips4 opsys=riscos5
2859 NON_GNU_CC="cc -systype bsd43"
2860 NON_GNU_CPP="cc -systype bsd43 -E"
2861 ;;
2862 mips-mips-bsd* )
2863 machine=mips opsys=bsd4-3
2864 ;;
2865 mips-mips-* )
2866 machine=mips opsys=usg5-2-2
2867 ;;
2868
2869 ## NeXT
2870 m68*-next-* | m68k-*-nextstep* )
2871 machine=m68k opsys=nextstep
2872 ;;
2873
2874 ## The complete machine from National Semiconductor
2875 ns32k-ns-genix* )
2876 machine=ns32000 opsys=usg5-2
2877 ;;
2878
2879 ## NCR machines
2880 m68*-ncr-sysv2* | m68*-ncr-sysvr2* )
2881 machine=tower32 opsys=usg5-2-2
2882 ;;
2883 m68*-ncr-sysv3* | m68*-ncr-sysvr3* )
2884 machine=tower32v3 opsys=usg5-3
2885 ;;
2886
2887 ## NEC EWS4800
2888 mips-nec-sysv4*)
2889 machine=ews4800 opsys=ux4800
2890 ;;
2891
2892 ## Nixdorf Targon 31
2893 m68*-nixdorf-sysv* )
2894 machine=targon31 opsys=usg5-2-2
2895 ;;
2896
2897 ## Nu (TI or LMI)
2898 m68*-nu-sysv* )
2899 machine=nu opsys=usg5-2
2900 ;;
2901
2902 ## Plexus
2903 m68*-plexus-sysv* )
2904 machine=plexus opsys=usg5-2
2905 ;;
2906
2907 ## Pyramid machines
2908 ## I don't really have any idea what sort of processor the Pyramid has,
2909 ## so I'm assuming it is its own architecture.
2910 pyramid-pyramid-bsd* )
2911 machine=pyramid opsys=bsd4-2
2912 ;;
2913
2914 ## Sequent Balance
2915 ns32k-sequent-bsd4.2* )
2916 machine=sequent opsys=bsd4-2
2917 ;;
2918 ns32k-sequent-bsd4.3* )
2919 machine=sequent opsys=bsd4-3
2920 ;;
2921
2922 ## Siemens Nixdorf
2923 mips-siemens-sysv* | mips-sni-sysv*)
2924 machine=mips-siemens opsys=usg5-4
2925 NON_GNU_CC=/usr/ccs/bin/cc
2926 NON_GNU_CPP=/usr/ccs/lib/cpp
2927 ;;
2928
2929 ## Silicon Graphics machines
2930 ## Iris 2500 and Iris 2500 Turbo (aka the Iris 3030)
2931 m68*-sgi-iris3.5* )
2932 machine=irist opsys=iris3-5
2933 ;;
2934 m68*-sgi-iris3.6* | m68*-sgi-iris*)
2935 machine=irist opsys=iris3-6
2936 ;;
2937 ## Iris 4D
2938 mips-sgi-irix3* )
2939 machine=iris4d opsys=irix3-3
2940 ;;
2941 mips-sgi-irix4* )
2942 machine=iris4d opsys=irix4-0
2943 ;;
2944 mips-sgi-irix6.5 )
2945 machine=iris4d opsys=irix6-5
2946 # Without defining _LANGUAGE_C, things get masked out in the headers
2947 # so that, for instance, grepping for `free' in stdlib.h fails and
2948 # AC_HEADER_STD_C fails. (MIPSPro 7.2.1.2m compilers, Irix 6.5.3m).
2949 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2950 NON_GCC_TEST_OPTIONS="-D_LANGUAGE_C"
2951 ;;
2952 mips-sgi-irix6* )
2953 machine=iris4d opsys=irix6-0
2954 # It's not clear whether -D_LANGUAGE_C is necessary as it is for 6.5,
2955 # but presumably it does no harm.
2956 NON_GNU_CPP="/lib/cpp -D_LANGUAGE_C"
2957 # -32 probably isn't necessary in later v.6s -- anyone know which?
2958 NON_GCC_TEST_OPTIONS=-32
2959 ;;
2960 mips-sgi-irix5.[01]* )
2961 machine=iris4d opsys=irix5-0
2962 ;;
2963 mips-sgi-irix5* | mips-sgi-irix* )
2964 machine=iris4d opsys=irix5-2
2965 ;;
2966
2967 ## SONY machines
2968 m68*-sony-bsd4.2* )
2969 machine=news opsys=bsd4-2
2970 ;;
2971 m68*-sony-bsd4.3* )
2972 machine=news opsys=bsd4-3
2973 ;;
2974 m68*-sony-newsos3* | m68*-sony-news3*)
2975 machine=news opsys=bsd4-3
2976 ;;
2977 mips-sony-bsd* | mips-sony-newsos4* | mips-sony-news4*)
2978 machine=news-risc opsys=bsd4-3
2979 ;;
2980 mips-sony-newsos6* )
2981 machine=news-r6 opsys=newsos6
2982 ;;
2983 mips-sony-news* )
2984 machine=news-risc opsys=newsos5
2985 ;;
2986
2987 ## Stride
2988 m68*-stride-sysv* )
2989 machine=stride opsys=usg5-2
2990 ;;
2991
2992 ## Suns
2993 sparc-*-linux-gnu* | sparc64-*-linux-gnu* )
2994 machine=sparc opsys=gnu-linux
2995 ;;
2996
2997 *-auspex-sunos* | *-sun-sunos* | *-sun-bsd* | *-sun-solaris* \
2998 | i[3456]86-*-solaris2* | i[3456]86-*-sunos5* | powerpc*-*-solaris2* \
2999 | rs6000-*-solaris2*)
3000 case "${canonical}" in
3001 m68*-sunos1* ) machine=sun1 ;;
3002 m68*-sunos2* ) machine=sun2 ;;
3003 m68* ) machine=sun3 ;;
3004 i[3456]86-sun-sunos[34]* ) machine=sun386 ;;
3005 i[3456]86-*-* ) machine=intel386 ;;
3006 amd64-*-*|x86_64-*-*) machine=amdx86-64 ;;
3007 powerpcle* ) machine=powerpcle ;;
3008 powerpc* | rs6000* ) machine=ibmrs6000 ;;
3009 sparc* ) machine=sparc ;;
3010 * ) unported=yes ;;
3011 esac
3012 case "${canonical}" in
3013 ## The Sun386 didn't get past 4.0.
3014 i[3456]86-*-sunos4 ) opsys=sunos4-0 ;;
3015 *-sunos4.0* ) opsys=sunos4-0 ;;
3016 *-sunos4.1.[3-9]*noshare )
3017 ## This name is sunos413 instead of sunos4-1-3
3018 ## to avoid a file name conflict on MSDOS.
3019 opsys=sunos413
3020 NON_GNU_CPP=/usr/lib/cpp
3021 NON_GCC_TEST_OPTIONS=-Bstatic
3022 GCC_TEST_OPTIONS=-static
3023 ;;
3024 *-sunos4.1.[3-9]* | *-sunos4shr*)
3025 opsys=sunos4shr
3026 NON_GNU_CPP=/usr/lib/cpp
3027 ;;
3028 *-sunos4* | *-sunos )
3029 opsys=sunos4-1
3030 NON_GCC_TEST_OPTIONS=-Bstatic
3031 GCC_TEST_OPTIONS=-static
3032 ;;
3033 *-sunos5.3* | *-solaris2.3* )
3034 opsys=sol2-3
3035 NON_GNU_CPP=/usr/ccs/lib/cpp
3036 ;;
3037 *-sunos5.4* | *-solaris2.4* )
3038 opsys=sol2-4
3039 NON_GNU_CPP=/usr/ccs/lib/cpp
3040 RANLIB="ar -ts"
3041 ;;
3042 *-sunos5.5* | *-solaris2.5* )
3043 opsys=sol2-5
3044 NON_GNU_CPP=/usr/ccs/lib/cpp
3045 RANLIB="ar -ts"
3046 ;;
3047 *-sunos5.6* | *-solaris2.6* )
3048 opsys=sol2-6
3049 NON_GNU_CPP=/usr/ccs/lib/cpp
3050 RANLIB="ar -ts"
3051 ;;
3052 *-sunos5* | *-solaris* )
3053 opsys=sol2-6
3054 emacs_check_sunpro_c=yes
3055 NON_GNU_CPP=/usr/ccs/lib/cpp
3056 ;;
3057 * ) opsys=bsd4-2 ;;
3058 esac
3059 ## Watch out for a compiler that we know will not work.
3060 case "${canonical}" in
3061 *-solaris* | *-sunos5* )
3062 if [ "x$CC" = x/usr/ucb/cc ]; then
3063 ## /usr/ucb/cc doesn't work;
3064 ## we should find some other compiler that does work.
3065 unset CC
3066 fi
3067 ;;
3068 *) ;;
3069 esac
3070 ;;
3071 sparc-*-nextstep* )
3072 machine=sparc opsys=nextstep
3073 ;;
3074
3075 ## Tadpole 68k
3076 m68*-tadpole-sysv* )
3077 machine=tad68k opsys=usg5-3
3078 ;;
3079
3080 ## Tahoe machines
3081 tahoe-tahoe-bsd4.2* )
3082 machine=tahoe opsys=bsd4-2
3083 ;;
3084 tahoe-tahoe-bsd4.3* )
3085 machine=tahoe opsys=bsd4-3
3086 ;;
3087
3088 ## Tandem Integrity S2
3089 mips-tandem-sysv* )
3090 machine=tandem-s2 opsys=usg5-3
3091 ;;
3092
3093 ## Tektronix XD88
3094 m88k-tektronix-sysv3* )
3095 machine=tekxd88 opsys=usg5-3
3096 ;;
3097
3098 ## Tektronix 16000 box (6130?)
3099 ns16k-tektronix-bsd* )
3100 machine=ns16000 opsys=bsd4-2
3101 ;;
3102 ## Tektronix 4300
3103 ## src/m/tek4300.h hints that this is a m68k machine.
3104 m68*-tektronix-bsd* )
3105 machine=tek4300 opsys=bsd4-3
3106 ;;
3107
3108 ## Titan P2 or P3
3109 ## We seem to have lost the machine-description file titan.h!
3110 titan-titan-sysv* )
3111 machine=titan opsys=usg5-3
3112 ;;
3113
3114 ## Ustation E30 (SS5E)
3115 m68*-unisys-uniplus* )
3116 machine=ustation opsystem=unipl5-2
3117 ;;
3118
3119 ## Vaxen.
3120 vax-dec-* )
3121 machine=vax
3122 case "${canonical}" in
3123 *-bsd4.1* ) opsys=bsd4-1 ;;
3124 *-bsd4.2* | *-ultrix[0-3].* | *-ultrix4.0* ) opsys=bsd4-2 ;;
3125 *-bsd4.3* | *-ultrix* ) opsys=bsd4-3 ;;
3126 *-sysv[01]* | *-sysvr[01]* ) opsys=usg5-0 ;;
3127 *-sysv2* | *-sysvr2* ) opsys=usg5-2 ;;
3128 *-vms* ) opsys=vms ;;
3129 * ) unported=yes
3130 esac
3131 ;;
3132
3133 ## Whitechapel MG1
3134 ns16k-whitechapel-* )
3135 machine=mg1
3136 ## We don't know what sort of OS runs on these; we'll let the
3137 ## operating system guessing code below try.
3138 ;;
3139
3140 ## Wicat
3141 m68*-wicat-sysv* )
3142 machine=wicat opsys=usg5-2
3143 ;;
3144
3145 ## IA-64
3146 ia64*-*-linux* )
3147 machine=ia64 opsys=gnu-linux
3148 ;;
3149
3150 ## Intel 386 machines where we don't care about the manufacturer
3151 i[3456]86-*-* )
3152 machine=intel386
3153 case "${canonical}" in
3154 *-cygwin ) opsys=cygwin ;;
3155 *-darwin* ) opsys=darwin
3156 CPP="${CC-cc} -E -no-cpp-precomp"
3157 ;;
3158 *-isc1.* | *-isc2.[01]* ) opsys=386-ix ;;
3159 *-isc2.2* ) opsys=isc2-2 ;;
3160 *-isc4.0* ) opsys=isc4-0 ;;
3161 *-isc4.* ) opsys=isc4-1
3162 GCC_TEST_OPTIONS=-posix
3163 NON_GCC_TEST_OPTIONS=-Xp
3164 ;;
3165 *-isc* ) opsys=isc3-0 ;;
3166 *-esix5* ) opsys=esix5r4; NON_GNU_CPP=/usr/lib/cpp ;;
3167 *-esix* ) opsys=esix ;;
3168 *-xenix* ) opsys=xenix ;;
3169 *-linux-gnu* ) opsys=gnu-linux ;;
3170 *-sco3.2v4* ) opsys=sco4 ; NON_GNU_CPP=/lib/cpp ;;
3171 *-sco3.2v5* ) opsys=sco5
3172 NON_GNU_CPP=/lib/cpp
3173 # Prevent -belf from being passed to $CPP.
3174 # /lib/cpp does not accept it.
3175 OVERRIDE_CPPFLAGS=" "
3176 ;;
3177 *-sysv4.2uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3178 *-sysv5uw* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3179 *-sysv5OpenUNIX* ) opsys=unixware; NON_GNU_CPP=/lib/cpp ;;
3180 *-386bsd* ) opsys=386bsd ;;
3181 *-nextstep* ) opsys=nextstep ;;
3182 ## Otherwise, we'll fall through to the generic opsys code at the bottom.
3183 esac
3184 ;;
3185
3186 ## m68k Linux-based GNU system
3187 m68k-*-linux-gnu* )
3188 machine=m68k opsys=gnu-linux
3189 ;;
3190
3191 ## Mips Linux-based GNU system
3192 mips-*-linux-gnu* | mipsel-*-linux-gnu* )
3193 machine=mips opsys=gnu-linux
3194 ;;
3195
3196 ## UXP/DS
3197 sparc-fujitsu-sysv4* )
3198 machine=sparc opsys=uxpds
3199 NON_GNU_CPP=/usr/ccs/lib/cpp
3200 RANLIB="ar -ts"
3201 ;;
3202
3203 ## UXP/V
3204 f301-fujitsu-uxpv4.1)
3205 machine=f301 opsys=uxpv
3206 ;;
3207
3208 ## AMD x86-64 Linux-based GNU system
3209 x86_64-*-linux-gnu* )
3210 machine=amdx86-64 opsys=gnu-linux
3211 ;;
3212
3213 ## Tensilica Xtensa Linux-based GNU system
3214 xtensa-*-linux-gnu* )
3215 machine=xtensa opsys=gnu-linux
3216 ;;
3217
3218 * )
3219 unported=yes
3220 ;;
3221 esac
3222
3223 ### If the code above didn't choose an operating system, just choose
3224 ### an operating system based on the configuration name. You really
3225 ### only want to use this when you have no idea what the right
3226 ### operating system is; if you know what operating systems a machine
3227 ### runs, it's cleaner to make it explicit in the case statement
3228 ### above.
3229 if test x"${opsys}" = x; then
3230 case "${canonical}" in
3231 *-gnu* ) opsys=gnu ;;
3232 *-bsd4.[01] ) opsys=bsd4-1 ;;
3233 *-bsd4.2 ) opsys=bsd4-2 ;;
3234 *-bsd4.3 ) opsys=bsd4-3 ;;
3235 *-sysv0 | *-sysvr0 ) opsys=usg5-0 ;;
3236 *-sysv2 | *-sysvr2 ) opsys=usg5-2 ;;
3237 *-sysv2.2 | *-sysvr2.2 ) opsys=usg5-2-2 ;;
3238 *-sysv3* | *-sysvr3* ) opsys=usg5-3 ;;
3239 *-sysv4.2uw* ) opsys=unixware ;;
3240 *-sysv5uw* ) opsys=unixware ;;
3241 *-sysv5OpenUNIX* ) opsys=unixware ;;
3242 *-sysv4.1* | *-sysvr4.1* )
3243 NON_GNU_CPP=/usr/lib/cpp
3244 opsys=usg5-4 ;;
3245 *-sysv4.[2-9]* | *-sysvr4.[2-9]* )
3246 if [ x$NON_GNU_CPP = x ]; then
3247 if [ -f /usr/ccs/lib/cpp ]; then
3248 NON_GNU_CPP=/usr/ccs/lib/cpp
3249 else
3250 NON_GNU_CPP=/lib/cpp
3251 fi
3252 fi
3253 opsys=usg5-4-2 ;;
3254 *-sysv4* | *-sysvr4* ) opsys=usg5-4 ;;
3255 * )
3256 unported=yes
3257 ;;
3258 esac
3259 fi
3260
3261
3262
3263 if test $unported = yes; then
3264 { { echo "$as_me:$LINENO: error: Emacs hasn't been ported to \`${canonical}' systems.
3265 Check \`etc/MACHINES' for recognized configuration names." >&5
3266 echo "$as_me: error: Emacs hasn't been ported to \`${canonical}' systems.
3267 Check \`etc/MACHINES' for recognized configuration names." >&2;}
3268 { (exit 1); exit 1; }; }
3269 fi
3270
3271 machfile="m/${machine}.h"
3272 opsysfile="s/${opsys}.h"
3273
3274
3275 #### Choose a compiler.
3276 test -n "$CC" && cc_specified=yes
3277
3278 # Save the value of CFLAGS that the user specified.
3279 SPECIFIED_CFLAGS="$CFLAGS"
3280
3281 case ${with_gcc} in
3282 "yes" ) CC="gcc" GCC=yes ;;
3283 "no" ) : ${CC=cc} ;;
3284 * )
3285 esac
3286 ac_ext=c
3287 ac_cpp='$CPP $CPPFLAGS'
3288 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3289 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3290 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3291 if test -n "$ac_tool_prefix"; then
3292 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3293 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3294 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3295 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3296 if test "${ac_cv_prog_CC+set}" = set; then
3297 echo $ECHO_N "(cached) $ECHO_C" >&6
3298 else
3299 if test -n "$CC"; then
3300 ac_cv_prog_CC="$CC" # Let the user override the test.
3301 else
3302 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3303 for as_dir in $PATH
3304 do
3305 IFS=$as_save_IFS
3306 test -z "$as_dir" && as_dir=.
3307 for ac_exec_ext in '' $ac_executable_extensions; do
3308 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3309 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3310 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3311 break 2
3312 fi
3313 done
3314 done
3315 IFS=$as_save_IFS
3316
3317 fi
3318 fi
3319 CC=$ac_cv_prog_CC
3320 if test -n "$CC"; then
3321 { echo "$as_me:$LINENO: result: $CC" >&5
3322 echo "${ECHO_T}$CC" >&6; }
3323 else
3324 { echo "$as_me:$LINENO: result: no" >&5
3325 echo "${ECHO_T}no" >&6; }
3326 fi
3327
3328
3329 fi
3330 if test -z "$ac_cv_prog_CC"; then
3331 ac_ct_CC=$CC
3332 # Extract the first word of "gcc", so it can be a program name with args.
3333 set dummy gcc; ac_word=$2
3334 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3335 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3336 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3337 echo $ECHO_N "(cached) $ECHO_C" >&6
3338 else
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3341 else
3342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3343 for as_dir in $PATH
3344 do
3345 IFS=$as_save_IFS
3346 test -z "$as_dir" && as_dir=.
3347 for ac_exec_ext in '' $ac_executable_extensions; do
3348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3349 ac_cv_prog_ac_ct_CC="gcc"
3350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3351 break 2
3352 fi
3353 done
3354 done
3355 IFS=$as_save_IFS
3356
3357 fi
3358 fi
3359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3362 echo "${ECHO_T}$ac_ct_CC" >&6; }
3363 else
3364 { echo "$as_me:$LINENO: result: no" >&5
3365 echo "${ECHO_T}no" >&6; }
3366 fi
3367
3368 if test "x$ac_ct_CC" = x; then
3369 CC=""
3370 else
3371 case $cross_compiling:$ac_tool_warned in
3372 yes:)
3373 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3374 whose name does not start with the host triplet. If you think this
3375 configuration is useful to you, please write to autoconf@gnu.org." >&5
3376 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3377 whose name does not start with the host triplet. If you think this
3378 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3379 ac_tool_warned=yes ;;
3380 esac
3381 CC=$ac_ct_CC
3382 fi
3383 else
3384 CC="$ac_cv_prog_CC"
3385 fi
3386
3387 if test -z "$CC"; then
3388 if test -n "$ac_tool_prefix"; then
3389 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3390 set dummy ${ac_tool_prefix}cc; ac_word=$2
3391 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3392 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3393 if test "${ac_cv_prog_CC+set}" = set; then
3394 echo $ECHO_N "(cached) $ECHO_C" >&6
3395 else
3396 if test -n "$CC"; then
3397 ac_cv_prog_CC="$CC" # Let the user override the test.
3398 else
3399 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3400 for as_dir in $PATH
3401 do
3402 IFS=$as_save_IFS
3403 test -z "$as_dir" && as_dir=.
3404 for ac_exec_ext in '' $ac_executable_extensions; do
3405 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3406 ac_cv_prog_CC="${ac_tool_prefix}cc"
3407 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3408 break 2
3409 fi
3410 done
3411 done
3412 IFS=$as_save_IFS
3413
3414 fi
3415 fi
3416 CC=$ac_cv_prog_CC
3417 if test -n "$CC"; then
3418 { echo "$as_me:$LINENO: result: $CC" >&5
3419 echo "${ECHO_T}$CC" >&6; }
3420 else
3421 { echo "$as_me:$LINENO: result: no" >&5
3422 echo "${ECHO_T}no" >&6; }
3423 fi
3424
3425
3426 fi
3427 fi
3428 if test -z "$CC"; then
3429 # Extract the first word of "cc", so it can be a program name with args.
3430 set dummy cc; ac_word=$2
3431 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3432 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3433 if test "${ac_cv_prog_CC+set}" = set; then
3434 echo $ECHO_N "(cached) $ECHO_C" >&6
3435 else
3436 if test -n "$CC"; then
3437 ac_cv_prog_CC="$CC" # Let the user override the test.
3438 else
3439 ac_prog_rejected=no
3440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3441 for as_dir in $PATH
3442 do
3443 IFS=$as_save_IFS
3444 test -z "$as_dir" && as_dir=.
3445 for ac_exec_ext in '' $ac_executable_extensions; do
3446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3447 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3448 ac_prog_rejected=yes
3449 continue
3450 fi
3451 ac_cv_prog_CC="cc"
3452 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3453 break 2
3454 fi
3455 done
3456 done
3457 IFS=$as_save_IFS
3458
3459 if test $ac_prog_rejected = yes; then
3460 # We found a bogon in the path, so make sure we never use it.
3461 set dummy $ac_cv_prog_CC
3462 shift
3463 if test $# != 0; then
3464 # We chose a different compiler from the bogus one.
3465 # However, it has the same basename, so the bogon will be chosen
3466 # first if we set CC to just the basename; use the full file name.
3467 shift
3468 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3469 fi
3470 fi
3471 fi
3472 fi
3473 CC=$ac_cv_prog_CC
3474 if test -n "$CC"; then
3475 { echo "$as_me:$LINENO: result: $CC" >&5
3476 echo "${ECHO_T}$CC" >&6; }
3477 else
3478 { echo "$as_me:$LINENO: result: no" >&5
3479 echo "${ECHO_T}no" >&6; }
3480 fi
3481
3482
3483 fi
3484 if test -z "$CC"; then
3485 if test -n "$ac_tool_prefix"; then
3486 for ac_prog in cl.exe
3487 do
3488 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3489 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3490 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3491 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3492 if test "${ac_cv_prog_CC+set}" = set; then
3493 echo $ECHO_N "(cached) $ECHO_C" >&6
3494 else
3495 if test -n "$CC"; then
3496 ac_cv_prog_CC="$CC" # Let the user override the test.
3497 else
3498 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3499 for as_dir in $PATH
3500 do
3501 IFS=$as_save_IFS
3502 test -z "$as_dir" && as_dir=.
3503 for ac_exec_ext in '' $ac_executable_extensions; do
3504 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3505 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3506 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3507 break 2
3508 fi
3509 done
3510 done
3511 IFS=$as_save_IFS
3512
3513 fi
3514 fi
3515 CC=$ac_cv_prog_CC
3516 if test -n "$CC"; then
3517 { echo "$as_me:$LINENO: result: $CC" >&5
3518 echo "${ECHO_T}$CC" >&6; }
3519 else
3520 { echo "$as_me:$LINENO: result: no" >&5
3521 echo "${ECHO_T}no" >&6; }
3522 fi
3523
3524
3525 test -n "$CC" && break
3526 done
3527 fi
3528 if test -z "$CC"; then
3529 ac_ct_CC=$CC
3530 for ac_prog in cl.exe
3531 do
3532 # Extract the first word of "$ac_prog", so it can be a program name with args.
3533 set dummy $ac_prog; ac_word=$2
3534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3536 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3537 echo $ECHO_N "(cached) $ECHO_C" >&6
3538 else
3539 if test -n "$ac_ct_CC"; then
3540 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3541 else
3542 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3543 for as_dir in $PATH
3544 do
3545 IFS=$as_save_IFS
3546 test -z "$as_dir" && as_dir=.
3547 for ac_exec_ext in '' $ac_executable_extensions; do
3548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3549 ac_cv_prog_ac_ct_CC="$ac_prog"
3550 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3551 break 2
3552 fi
3553 done
3554 done
3555 IFS=$as_save_IFS
3556
3557 fi
3558 fi
3559 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3560 if test -n "$ac_ct_CC"; then
3561 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3562 echo "${ECHO_T}$ac_ct_CC" >&6; }
3563 else
3564 { echo "$as_me:$LINENO: result: no" >&5
3565 echo "${ECHO_T}no" >&6; }
3566 fi
3567
3568
3569 test -n "$ac_ct_CC" && break
3570 done
3571
3572 if test "x$ac_ct_CC" = x; then
3573 CC=""
3574 else
3575 case $cross_compiling:$ac_tool_warned in
3576 yes:)
3577 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3578 whose name does not start with the host triplet. If you think this
3579 configuration is useful to you, please write to autoconf@gnu.org." >&5
3580 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3581 whose name does not start with the host triplet. If you think this
3582 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3583 ac_tool_warned=yes ;;
3584 esac
3585 CC=$ac_ct_CC
3586 fi
3587 fi
3588
3589 fi
3590
3591
3592 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3593 See \`config.log' for more details." >&5
3594 echo "$as_me: error: no acceptable C compiler found in \$PATH
3595 See \`config.log' for more details." >&2;}
3596 { (exit 1); exit 1; }; }
3597
3598 # Provide some information about the compiler.
3599 echo "$as_me:$LINENO: checking for C compiler version" >&5
3600 ac_compiler=`set X $ac_compile; echo $2`
3601 { (ac_try="$ac_compiler --version >&5"
3602 case "(($ac_try" in
3603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3604 *) ac_try_echo=$ac_try;;
3605 esac
3606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3607 (eval "$ac_compiler --version >&5") 2>&5
3608 ac_status=$?
3609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3610 (exit $ac_status); }
3611 { (ac_try="$ac_compiler -v >&5"
3612 case "(($ac_try" in
3613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3614 *) ac_try_echo=$ac_try;;
3615 esac
3616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3617 (eval "$ac_compiler -v >&5") 2>&5
3618 ac_status=$?
3619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3620 (exit $ac_status); }
3621 { (ac_try="$ac_compiler -V >&5"
3622 case "(($ac_try" in
3623 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3624 *) ac_try_echo=$ac_try;;
3625 esac
3626 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3627 (eval "$ac_compiler -V >&5") 2>&5
3628 ac_status=$?
3629 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3630 (exit $ac_status); }
3631
3632 cat >conftest.$ac_ext <<_ACEOF
3633 /* confdefs.h. */
3634 _ACEOF
3635 cat confdefs.h >>conftest.$ac_ext
3636 cat >>conftest.$ac_ext <<_ACEOF
3637 /* end confdefs.h. */
3638
3639 int
3640 main ()
3641 {
3642
3643 ;
3644 return 0;
3645 }
3646 _ACEOF
3647 ac_clean_files_save=$ac_clean_files
3648 ac_clean_files="$ac_clean_files a.out a.exe b.out"
3649 # Try to create an executable without -o first, disregard a.out.
3650 # It will help us diagnose broken compilers, and finding out an intuition
3651 # of exeext.
3652 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
3653 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
3654 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3655 #
3656 # List of possible output files, starting from the most likely.
3657 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
3658 # only as a last resort. b.out is created by i960 compilers.
3659 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
3660 #
3661 # The IRIX 6 linker writes into existing files which may not be
3662 # executable, retaining their permissions. Remove them first so a
3663 # subsequent execution test works.
3664 ac_rmfiles=
3665 for ac_file in $ac_files
3666 do
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3669 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3670 esac
3671 done
3672 rm -f $ac_rmfiles
3673
3674 if { (ac_try="$ac_link_default"
3675 case "(($ac_try" in
3676 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3677 *) ac_try_echo=$ac_try;;
3678 esac
3679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3680 (eval "$ac_link_default") 2>&5
3681 ac_status=$?
3682 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3683 (exit $ac_status); }; then
3684 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3685 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3686 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3687 # so that the user can short-circuit this test for compilers unknown to
3688 # Autoconf.
3689 for ac_file in $ac_files ''
3690 do
3691 test -f "$ac_file" || continue
3692 case $ac_file in
3693 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
3694 ;;
3695 [ab].out )
3696 # We found the default executable, but exeext='' is most
3697 # certainly right.
3698 break;;
3699 *.* )
3700 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3701 then :; else
3702 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3703 fi
3704 # We set ac_cv_exeext here because the later test for it is not
3705 # safe: cross compilers may not add the suffix if given an `-o'
3706 # argument, so we may need to know it at that point already.
3707 # Even if this section looks crufty: it has the advantage of
3708 # actually working.
3709 break;;
3710 * )
3711 break;;
3712 esac
3713 done
3714 test "$ac_cv_exeext" = no && ac_cv_exeext=
3715
3716 else
3717 ac_file=''
3718 fi
3719
3720 { echo "$as_me:$LINENO: result: $ac_file" >&5
3721 echo "${ECHO_T}$ac_file" >&6; }
3722 if test -z "$ac_file"; then
3723 echo "$as_me: failed program was:" >&5
3724 sed 's/^/| /' conftest.$ac_ext >&5
3725
3726 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
3727 See \`config.log' for more details." >&5
3728 echo "$as_me: error: C compiler cannot create executables
3729 See \`config.log' for more details." >&2;}
3730 { (exit 77); exit 77; }; }
3731 fi
3732
3733 ac_exeext=$ac_cv_exeext
3734
3735 # Check that the compiler produces executables we can run. If not, either
3736 # the compiler is broken, or we cross compile.
3737 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
3738 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
3739 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
3740 # If not cross compiling, check that we can run a simple program.
3741 if test "$cross_compiling" != yes; then
3742 if { ac_try='./$ac_file'
3743 { (case "(($ac_try" in
3744 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3745 *) ac_try_echo=$ac_try;;
3746 esac
3747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3748 (eval "$ac_try") 2>&5
3749 ac_status=$?
3750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3751 (exit $ac_status); }; }; then
3752 cross_compiling=no
3753 else
3754 if test "$cross_compiling" = maybe; then
3755 cross_compiling=yes
3756 else
3757 { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
3758 If you meant to cross compile, use \`--host'.
3759 See \`config.log' for more details." >&5
3760 echo "$as_me: error: cannot run C compiled programs.
3761 If you meant to cross compile, use \`--host'.
3762 See \`config.log' for more details." >&2;}
3763 { (exit 1); exit 1; }; }
3764 fi
3765 fi
3766 fi
3767 { echo "$as_me:$LINENO: result: yes" >&5
3768 echo "${ECHO_T}yes" >&6; }
3769
3770 rm -f a.out a.exe conftest$ac_cv_exeext b.out
3771 ac_clean_files=$ac_clean_files_save
3772 # Check that the compiler produces executables we can run. If not, either
3773 # the compiler is broken, or we cross compile.
3774 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
3775 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
3776 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
3777 echo "${ECHO_T}$cross_compiling" >&6; }
3778
3779 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
3780 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
3781 if { (ac_try="$ac_link"
3782 case "(($ac_try" in
3783 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3784 *) ac_try_echo=$ac_try;;
3785 esac
3786 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3787 (eval "$ac_link") 2>&5
3788 ac_status=$?
3789 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3790 (exit $ac_status); }; then
3791 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3792 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3793 # work properly (i.e., refer to `conftest.exe'), while it won't with
3794 # `rm'.
3795 for ac_file in conftest.exe conftest conftest.*; do
3796 test -f "$ac_file" || continue
3797 case $ac_file in
3798 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
3799 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3800 break;;
3801 * ) break;;
3802 esac
3803 done
3804 else
3805 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
3806 See \`config.log' for more details." >&5
3807 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
3808 See \`config.log' for more details." >&2;}
3809 { (exit 1); exit 1; }; }
3810 fi
3811
3812 rm -f conftest$ac_cv_exeext
3813 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
3814 echo "${ECHO_T}$ac_cv_exeext" >&6; }
3815
3816 rm -f conftest.$ac_ext
3817 EXEEXT=$ac_cv_exeext
3818 ac_exeext=$EXEEXT
3819 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
3820 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
3821 if test "${ac_cv_objext+set}" = set; then
3822 echo $ECHO_N "(cached) $ECHO_C" >&6
3823 else
3824 cat >conftest.$ac_ext <<_ACEOF
3825 /* confdefs.h. */
3826 _ACEOF
3827 cat confdefs.h >>conftest.$ac_ext
3828 cat >>conftest.$ac_ext <<_ACEOF
3829 /* end confdefs.h. */
3830
3831 int
3832 main ()
3833 {
3834
3835 ;
3836 return 0;
3837 }
3838 _ACEOF
3839 rm -f conftest.o conftest.obj
3840 if { (ac_try="$ac_compile"
3841 case "(($ac_try" in
3842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3843 *) ac_try_echo=$ac_try;;
3844 esac
3845 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3846 (eval "$ac_compile") 2>&5
3847 ac_status=$?
3848 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3849 (exit $ac_status); }; then
3850 for ac_file in conftest.o conftest.obj conftest.*; do
3851 test -f "$ac_file" || continue;
3852 case $ac_file in
3853 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
3854 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3855 break;;
3856 esac
3857 done
3858 else
3859 echo "$as_me: failed program was:" >&5
3860 sed 's/^/| /' conftest.$ac_ext >&5
3861
3862 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
3863 See \`config.log' for more details." >&5
3864 echo "$as_me: error: cannot compute suffix of object files: cannot compile
3865 See \`config.log' for more details." >&2;}
3866 { (exit 1); exit 1; }; }
3867 fi
3868
3869 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3870 fi
3871 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
3872 echo "${ECHO_T}$ac_cv_objext" >&6; }
3873 OBJEXT=$ac_cv_objext
3874 ac_objext=$OBJEXT
3875 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3876 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3877 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3878 echo $ECHO_N "(cached) $ECHO_C" >&6
3879 else
3880 cat >conftest.$ac_ext <<_ACEOF
3881 /* confdefs.h. */
3882 _ACEOF
3883 cat confdefs.h >>conftest.$ac_ext
3884 cat >>conftest.$ac_ext <<_ACEOF
3885 /* end confdefs.h. */
3886
3887 int
3888 main ()
3889 {
3890 #ifndef __GNUC__
3891 choke me
3892 #endif
3893
3894 ;
3895 return 0;
3896 }
3897 _ACEOF
3898 rm -f conftest.$ac_objext
3899 if { (ac_try="$ac_compile"
3900 case "(($ac_try" in
3901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3902 *) ac_try_echo=$ac_try;;
3903 esac
3904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3905 (eval "$ac_compile") 2>conftest.er1
3906 ac_status=$?
3907 grep -v '^ *+' conftest.er1 >conftest.err
3908 rm -f conftest.er1
3909 cat conftest.err >&5
3910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3911 (exit $ac_status); } && {
3912 test -z "$ac_c_werror_flag" ||
3913 test ! -s conftest.err
3914 } && test -s conftest.$ac_objext; then
3915 ac_compiler_gnu=yes
3916 else
3917 echo "$as_me: failed program was:" >&5
3918 sed 's/^/| /' conftest.$ac_ext >&5
3919
3920 ac_compiler_gnu=no
3921 fi
3922
3923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3924 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3925
3926 fi
3927 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3928 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3929 GCC=`test $ac_compiler_gnu = yes && echo yes`
3930 ac_test_CFLAGS=${CFLAGS+set}
3931 ac_save_CFLAGS=$CFLAGS
3932 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3933 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3934 if test "${ac_cv_prog_cc_g+set}" = set; then
3935 echo $ECHO_N "(cached) $ECHO_C" >&6
3936 else
3937 ac_save_c_werror_flag=$ac_c_werror_flag
3938 ac_c_werror_flag=yes
3939 ac_cv_prog_cc_g=no
3940 CFLAGS="-g"
3941 cat >conftest.$ac_ext <<_ACEOF
3942 /* confdefs.h. */
3943 _ACEOF
3944 cat confdefs.h >>conftest.$ac_ext
3945 cat >>conftest.$ac_ext <<_ACEOF
3946 /* end confdefs.h. */
3947
3948 int
3949 main ()
3950 {
3951
3952 ;
3953 return 0;
3954 }
3955 _ACEOF
3956 rm -f conftest.$ac_objext
3957 if { (ac_try="$ac_compile"
3958 case "(($ac_try" in
3959 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3960 *) ac_try_echo=$ac_try;;
3961 esac
3962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3963 (eval "$ac_compile") 2>conftest.er1
3964 ac_status=$?
3965 grep -v '^ *+' conftest.er1 >conftest.err
3966 rm -f conftest.er1
3967 cat conftest.err >&5
3968 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3969 (exit $ac_status); } && {
3970 test -z "$ac_c_werror_flag" ||
3971 test ! -s conftest.err
3972 } && test -s conftest.$ac_objext; then
3973 ac_cv_prog_cc_g=yes
3974 else
3975 echo "$as_me: failed program was:" >&5
3976 sed 's/^/| /' conftest.$ac_ext >&5
3977
3978 CFLAGS=""
3979 cat >conftest.$ac_ext <<_ACEOF
3980 /* confdefs.h. */
3981 _ACEOF
3982 cat confdefs.h >>conftest.$ac_ext
3983 cat >>conftest.$ac_ext <<_ACEOF
3984 /* end confdefs.h. */
3985
3986 int
3987 main ()
3988 {
3989
3990 ;
3991 return 0;
3992 }
3993 _ACEOF
3994 rm -f conftest.$ac_objext
3995 if { (ac_try="$ac_compile"
3996 case "(($ac_try" in
3997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3998 *) ac_try_echo=$ac_try;;
3999 esac
4000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4001 (eval "$ac_compile") 2>conftest.er1
4002 ac_status=$?
4003 grep -v '^ *+' conftest.er1 >conftest.err
4004 rm -f conftest.er1
4005 cat conftest.err >&5
4006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4007 (exit $ac_status); } && {
4008 test -z "$ac_c_werror_flag" ||
4009 test ! -s conftest.err
4010 } && test -s conftest.$ac_objext; then
4011 :
4012 else
4013 echo "$as_me: failed program was:" >&5
4014 sed 's/^/| /' conftest.$ac_ext >&5
4015
4016 ac_c_werror_flag=$ac_save_c_werror_flag
4017 CFLAGS="-g"
4018 cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h. */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h. */
4024
4025 int
4026 main ()
4027 {
4028
4029 ;
4030 return 0;
4031 }
4032 _ACEOF
4033 rm -f conftest.$ac_objext
4034 if { (ac_try="$ac_compile"
4035 case "(($ac_try" in
4036 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4037 *) ac_try_echo=$ac_try;;
4038 esac
4039 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4040 (eval "$ac_compile") 2>conftest.er1
4041 ac_status=$?
4042 grep -v '^ *+' conftest.er1 >conftest.err
4043 rm -f conftest.er1
4044 cat conftest.err >&5
4045 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4046 (exit $ac_status); } && {
4047 test -z "$ac_c_werror_flag" ||
4048 test ! -s conftest.err
4049 } && test -s conftest.$ac_objext; then
4050 ac_cv_prog_cc_g=yes
4051 else
4052 echo "$as_me: failed program was:" >&5
4053 sed 's/^/| /' conftest.$ac_ext >&5
4054
4055
4056 fi
4057
4058 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4059 fi
4060
4061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4062 fi
4063
4064 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4065 ac_c_werror_flag=$ac_save_c_werror_flag
4066 fi
4067 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
4068 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
4069 if test "$ac_test_CFLAGS" = set; then
4070 CFLAGS=$ac_save_CFLAGS
4071 elif test $ac_cv_prog_cc_g = yes; then
4072 if test "$GCC" = yes; then
4073 CFLAGS="-g -O2"
4074 else
4075 CFLAGS="-g"
4076 fi
4077 else
4078 if test "$GCC" = yes; then
4079 CFLAGS="-O2"
4080 else
4081 CFLAGS=
4082 fi
4083 fi
4084 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
4085 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
4086 if test "${ac_cv_prog_cc_c89+set}" = set; then
4087 echo $ECHO_N "(cached) $ECHO_C" >&6
4088 else
4089 ac_cv_prog_cc_c89=no
4090 ac_save_CC=$CC
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h. */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h. */
4097 #include <stdarg.h>
4098 #include <stdio.h>
4099 #include <sys/types.h>
4100 #include <sys/stat.h>
4101 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4102 struct buf { int x; };
4103 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4104 static char *e (p, i)
4105 char **p;
4106 int i;
4107 {
4108 return p[i];
4109 }
4110 static char *f (char * (*g) (char **, int), char **p, ...)
4111 {
4112 char *s;
4113 va_list v;
4114 va_start (v,p);
4115 s = g (p, va_arg (v,int));
4116 va_end (v);
4117 return s;
4118 }
4119
4120 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4121 function prototypes and stuff, but not '\xHH' hex character constants.
4122 These don't provoke an error unfortunately, instead are silently treated
4123 as 'x'. The following induces an error, until -std is added to get
4124 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4125 array size at least. It's necessary to write '\x00'==0 to get something
4126 that's true only with -std. */
4127 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4128
4129 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4130 inside strings and character constants. */
4131 #define FOO(x) 'x'
4132 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4133
4134 int test (int i, double x);
4135 struct s1 {int (*f) (int a);};
4136 struct s2 {int (*f) (double a);};
4137 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4138 int argc;
4139 char **argv;
4140 int
4141 main ()
4142 {
4143 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4144 ;
4145 return 0;
4146 }
4147 _ACEOF
4148 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4149 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4150 do
4151 CC="$ac_save_CC $ac_arg"
4152 rm -f conftest.$ac_objext
4153 if { (ac_try="$ac_compile"
4154 case "(($ac_try" in
4155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4156 *) ac_try_echo=$ac_try;;
4157 esac
4158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4159 (eval "$ac_compile") 2>conftest.er1
4160 ac_status=$?
4161 grep -v '^ *+' conftest.er1 >conftest.err
4162 rm -f conftest.er1
4163 cat conftest.err >&5
4164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4165 (exit $ac_status); } && {
4166 test -z "$ac_c_werror_flag" ||
4167 test ! -s conftest.err
4168 } && test -s conftest.$ac_objext; then
4169 ac_cv_prog_cc_c89=$ac_arg
4170 else
4171 echo "$as_me: failed program was:" >&5
4172 sed 's/^/| /' conftest.$ac_ext >&5
4173
4174
4175 fi
4176
4177 rm -f core conftest.err conftest.$ac_objext
4178 test "x$ac_cv_prog_cc_c89" != "xno" && break
4179 done
4180 rm -f conftest.$ac_ext
4181 CC=$ac_save_CC
4182
4183 fi
4184 # AC_CACHE_VAL
4185 case "x$ac_cv_prog_cc_c89" in
4186 x)
4187 { echo "$as_me:$LINENO: result: none needed" >&5
4188 echo "${ECHO_T}none needed" >&6; } ;;
4189 xno)
4190 { echo "$as_me:$LINENO: result: unsupported" >&5
4191 echo "${ECHO_T}unsupported" >&6; } ;;
4192 *)
4193 CC="$CC $ac_cv_prog_cc_c89"
4194 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
4195 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
4196 esac
4197
4198
4199 ac_ext=c
4200 ac_cpp='$CPP $CPPFLAGS'
4201 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4202 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4203 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4204
4205
4206 # On Suns, sometimes $CPP names a directory.
4207 if test -n "$CPP" && test -d "$CPP"; then
4208 CPP=
4209 fi
4210
4211 ## If not using gcc, and on Solaris, and no CPP specified, see if
4212 ## using a Sun compiler, which needs -Xs to prevent whitespace.
4213 if test x"$GCC" != xyes && test x"$emacs_check_sunpro_c" = xyes && \
4214 test x"$CPP" = x; then
4215 { echo "$as_me:$LINENO: checking whether we are using a Sun C compiler" >&5
4216 echo $ECHO_N "checking whether we are using a Sun C compiler... $ECHO_C" >&6; }
4217
4218 if test "${emacs_cv_sunpro_c+set}" = set; then
4219 echo $ECHO_N "(cached) $ECHO_C" >&6
4220 else
4221 cat >conftest.$ac_ext <<_ACEOF
4222 /* confdefs.h. */
4223 _ACEOF
4224 cat confdefs.h >>conftest.$ac_ext
4225 cat >>conftest.$ac_ext <<_ACEOF
4226 /* end confdefs.h. */
4227
4228 int
4229 main ()
4230 {
4231 #ifndef __SUNPRO_C
4232 fail;
4233 #endif
4234
4235 ;
4236 return 0;
4237 }
4238 _ACEOF
4239 rm -f conftest.$ac_objext conftest$ac_exeext
4240 if { (ac_try="$ac_link"
4241 case "(($ac_try" in
4242 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4243 *) ac_try_echo=$ac_try;;
4244 esac
4245 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4246 (eval "$ac_link") 2>conftest.er1
4247 ac_status=$?
4248 grep -v '^ *+' conftest.er1 >conftest.err
4249 rm -f conftest.er1
4250 cat conftest.err >&5
4251 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4252 (exit $ac_status); } && {
4253 test -z "$ac_c_werror_flag" ||
4254 test ! -s conftest.err
4255 } && test -s conftest$ac_exeext &&
4256 $as_test_x conftest$ac_exeext; then
4257 emacs_cv_sunpro_c=yes
4258 else
4259 echo "$as_me: failed program was:" >&5
4260 sed 's/^/| /' conftest.$ac_ext >&5
4261
4262 emacs_cv_sunpro_c=no
4263 fi
4264
4265 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
4266 conftest$ac_exeext conftest.$ac_ext
4267 fi
4268
4269 { echo "$as_me:$LINENO: result: $emacs_cv_sunpro_c" >&5
4270 echo "${ECHO_T}$emacs_cv_sunpro_c" >&6; }
4271
4272 if test x"$emacs_cv_sunpro_c" = xyes; then
4273 NON_GNU_CPP="$CC -E -Xs"
4274 fi
4275 fi
4276
4277 #### Some systems specify a CPP to use unless we are using GCC.
4278 #### Now that we know whether we are using GCC, we can decide whether
4279 #### to use that one.
4280 if test "x$NON_GNU_CPP" != x && test x$GCC != xyes && test "x$CPP" = x
4281 then
4282 CPP="$NON_GNU_CPP"
4283 fi
4284
4285 #### Some systems specify a CC to use unless we are using GCC.
4286 #### Now that we know whether we are using GCC, we can decide whether
4287 #### to use that one.
4288 if test "x$NON_GNU_CC" != x && test x$GCC != xyes &&
4289 test x$cc_specified != xyes
4290 then
4291 CC="$NON_GNU_CC"
4292 fi
4293
4294 if test x$GCC = xyes && test "x$GCC_TEST_OPTIONS" != x
4295 then
4296 CC="$CC $GCC_TEST_OPTIONS"
4297 fi
4298
4299 if test x$GCC = x && test "x$NON_GCC_TEST_OPTIONS" != x
4300 then
4301 CC="$CC $NON_GCC_TEST_OPTIONS"
4302 fi
4303
4304 ac_ext=c
4305 ac_cpp='$CPP $CPPFLAGS'
4306 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4307 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4308 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4309 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4310 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4311 # On Suns, sometimes $CPP names a directory.
4312 if test -n "$CPP" && test -d "$CPP"; then
4313 CPP=
4314 fi
4315 if test -z "$CPP"; then
4316 if test "${ac_cv_prog_CPP+set}" = set; then
4317 echo $ECHO_N "(cached) $ECHO_C" >&6
4318 else
4319 # Double quotes because CPP needs to be expanded
4320 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4321 do
4322 ac_preproc_ok=false
4323 for ac_c_preproc_warn_flag in '' yes
4324 do
4325 # Use a header file that comes with gcc, so configuring glibc
4326 # with a fresh cross-compiler works.
4327 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4328 # <limits.h> exists even on freestanding compilers.
4329 # On the NeXT, cc -E runs the code through the compiler's parser,
4330 # not just through cpp. "Syntax error" is here to catch this case.
4331 cat >conftest.$ac_ext <<_ACEOF
4332 /* confdefs.h. */
4333 _ACEOF
4334 cat confdefs.h >>conftest.$ac_ext
4335 cat >>conftest.$ac_ext <<_ACEOF
4336 /* end confdefs.h. */
4337 #ifdef __STDC__
4338 # include <limits.h>
4339 #else
4340 # include <assert.h>
4341 #endif
4342 Syntax error
4343 _ACEOF
4344 if { (ac_try="$ac_cpp conftest.$ac_ext"
4345 case "(($ac_try" in
4346 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4347 *) ac_try_echo=$ac_try;;
4348 esac
4349 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4350 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4351 ac_status=$?
4352 grep -v '^ *+' conftest.er1 >conftest.err
4353 rm -f conftest.er1
4354 cat conftest.err >&5
4355 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4356 (exit $ac_status); } >/dev/null && {
4357 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4358 test ! -s conftest.err
4359 }; then
4360 :
4361 else
4362 echo "$as_me: failed program was:" >&5
4363 sed 's/^/| /' conftest.$ac_ext >&5
4364
4365 # Broken: fails on valid input.
4366 continue
4367 fi
4368
4369 rm -f conftest.err conftest.$ac_ext
4370
4371 # OK, works on sane cases. Now check whether nonexistent headers
4372 # can be detected and how.
4373 cat >conftest.$ac_ext <<_ACEOF
4374 /* confdefs.h. */
4375 _ACEOF
4376 cat confdefs.h >>conftest.$ac_ext
4377 cat >>conftest.$ac_ext <<_ACEOF
4378 /* end confdefs.h. */
4379 #include <ac_nonexistent.h>
4380 _ACEOF
4381 if { (ac_try="$ac_cpp conftest.$ac_ext"
4382 case "(($ac_try" in
4383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4384 *) ac_try_echo=$ac_try;;
4385 esac
4386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4387 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4388 ac_status=$?
4389 grep -v '^ *+' conftest.er1 >conftest.err
4390 rm -f conftest.er1
4391 cat conftest.err >&5
4392 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4393 (exit $ac_status); } >/dev/null && {
4394 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4395 test ! -s conftest.err
4396 }; then
4397 # Broken: success on invalid input.
4398 continue
4399 else
4400 echo "$as_me: failed program was:" >&5
4401 sed 's/^/| /' conftest.$ac_ext >&5
4402
4403 # Passes both tests.
4404 ac_preproc_ok=:
4405 break
4406 fi
4407
4408 rm -f conftest.err conftest.$ac_ext
4409
4410 done
4411 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4412 rm -f conftest.err conftest.$ac_ext
4413 if $ac_preproc_ok; then
4414 break
4415 fi
4416
4417 done
4418 ac_cv_prog_CPP=$CPP
4419
4420 fi
4421 CPP=$ac_cv_prog_CPP
4422 else
4423 ac_cv_prog_CPP=$CPP
4424 fi
4425 { echo "$as_me:$LINENO: result: $CPP" >&5
4426 echo "${ECHO_T}$CPP" >&6; }
4427 ac_preproc_ok=false
4428 for ac_c_preproc_warn_flag in '' yes
4429 do
4430 # Use a header file that comes with gcc, so configuring glibc
4431 # with a fresh cross-compiler works.
4432 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4433 # <limits.h> exists even on freestanding compilers.
4434 # On the NeXT, cc -E runs the code through the compiler's parser,
4435 # not just through cpp. "Syntax error" is here to catch this case.
4436 cat >conftest.$ac_ext <<_ACEOF
4437 /* confdefs.h. */
4438 _ACEOF
4439 cat confdefs.h >>conftest.$ac_ext
4440 cat >>conftest.$ac_ext <<_ACEOF
4441 /* end confdefs.h. */
4442 #ifdef __STDC__
4443 # include <limits.h>
4444 #else
4445 # include <assert.h>
4446 #endif
4447 Syntax error
4448 _ACEOF
4449 if { (ac_try="$ac_cpp conftest.$ac_ext"
4450 case "(($ac_try" in
4451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4452 *) ac_try_echo=$ac_try;;
4453 esac
4454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4456 ac_status=$?
4457 grep -v '^ *+' conftest.er1 >conftest.err
4458 rm -f conftest.er1
4459 cat conftest.err >&5
4460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4461 (exit $ac_status); } >/dev/null && {
4462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4463 test ! -s conftest.err
4464 }; then
4465 :
4466 else
4467 echo "$as_me: failed program was:" >&5
4468 sed 's/^/| /' conftest.$ac_ext >&5
4469
4470 # Broken: fails on valid input.
4471 continue
4472 fi
4473
4474 rm -f conftest.err conftest.$ac_ext
4475
4476 # OK, works on sane cases. Now check whether nonexistent headers
4477 # can be detected and how.
4478 cat >conftest.$ac_ext <<_ACEOF
4479 /* confdefs.h. */
4480 _ACEOF
4481 cat confdefs.h >>conftest.$ac_ext
4482 cat >>conftest.$ac_ext <<_ACEOF
4483 /* end confdefs.h. */
4484 #include <ac_nonexistent.h>
4485 _ACEOF
4486 if { (ac_try="$ac_cpp conftest.$ac_ext"
4487 case "(($ac_try" in
4488 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4489 *) ac_try_echo=$ac_try;;
4490 esac
4491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4492 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4493 ac_status=$?
4494 grep -v '^ *+' conftest.er1 >conftest.err
4495 rm -f conftest.er1
4496 cat conftest.err >&5
4497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4498 (exit $ac_status); } >/dev/null && {
4499 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4500 test ! -s conftest.err
4501 }; then
4502 # Broken: success on invalid input.
4503 continue
4504 else
4505 echo "$as_me: failed program was:" >&5
4506 sed 's/^/| /' conftest.$ac_ext >&5
4507
4508 # Passes both tests.
4509 ac_preproc_ok=:
4510 break
4511 fi
4512
4513 rm -f conftest.err conftest.$ac_ext
4514
4515 done
4516 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4517 rm -f conftest.err conftest.$ac_ext
4518 if $ac_preproc_ok; then
4519 :
4520 else
4521 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
4522 See \`config.log' for more details." >&5
4523 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
4524 See \`config.log' for more details." >&2;}
4525 { (exit 1); exit 1; }; }
4526 fi
4527
4528 ac_ext=c
4529 ac_cpp='$CPP $CPPFLAGS'
4530 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4531 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4532 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4533
4534
4535 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4536 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4537 if test "${ac_cv_path_GREP+set}" = set; then
4538 echo $ECHO_N "(cached) $ECHO_C" >&6
4539 else
4540 # Extract the first word of "grep ggrep" to use in msg output
4541 if test -z "$GREP"; then
4542 set dummy grep ggrep; ac_prog_name=$2
4543 if test "${ac_cv_path_GREP+set}" = set; then
4544 echo $ECHO_N "(cached) $ECHO_C" >&6
4545 else
4546 ac_path_GREP_found=false
4547 # Loop through the user's path and test for each of PROGNAME-LIST
4548 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4549 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4550 do
4551 IFS=$as_save_IFS
4552 test -z "$as_dir" && as_dir=.
4553 for ac_prog in grep ggrep; do
4554 for ac_exec_ext in '' $ac_executable_extensions; do
4555 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4556 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
4557 # Check for GNU ac_path_GREP and select it if it is found.
4558 # Check for GNU $ac_path_GREP
4559 case `"$ac_path_GREP" --version 2>&1` in
4560 *GNU*)
4561 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4562 *)
4563 ac_count=0
4564 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4565 while :
4566 do
4567 cat "conftest.in" "conftest.in" >"conftest.tmp"
4568 mv "conftest.tmp" "conftest.in"
4569 cp "conftest.in" "conftest.nl"
4570 echo 'GREP' >> "conftest.nl"
4571 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4572 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4573 ac_count=`expr $ac_count + 1`
4574 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4575 # Best one so far, save it but keep looking for a better one
4576 ac_cv_path_GREP="$ac_path_GREP"
4577 ac_path_GREP_max=$ac_count
4578 fi
4579 # 10*(2^10) chars as input seems more than enough
4580 test $ac_count -gt 10 && break
4581 done
4582 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4583 esac
4584
4585
4586 $ac_path_GREP_found && break 3
4587 done
4588 done
4589
4590 done
4591 IFS=$as_save_IFS
4592
4593
4594 fi
4595
4596 GREP="$ac_cv_path_GREP"
4597 if test -z "$GREP"; then
4598 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4599 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4600 { (exit 1); exit 1; }; }
4601 fi
4602
4603 else
4604 ac_cv_path_GREP=$GREP
4605 fi
4606
4607
4608 fi
4609 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4610 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4611 GREP="$ac_cv_path_GREP"
4612
4613
4614 { echo "$as_me:$LINENO: checking for egrep" >&5
4615 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4616 if test "${ac_cv_path_EGREP+set}" = set; then
4617 echo $ECHO_N "(cached) $ECHO_C" >&6
4618 else
4619 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4620 then ac_cv_path_EGREP="$GREP -E"
4621 else
4622 # Extract the first word of "egrep" to use in msg output
4623 if test -z "$EGREP"; then
4624 set dummy egrep; ac_prog_name=$2
4625 if test "${ac_cv_path_EGREP+set}" = set; then
4626 echo $ECHO_N "(cached) $ECHO_C" >&6
4627 else
4628 ac_path_EGREP_found=false
4629 # Loop through the user's path and test for each of PROGNAME-LIST
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4632 do
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_prog in egrep; do
4636 for ac_exec_ext in '' $ac_executable_extensions; do
4637 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4638 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
4639 # Check for GNU ac_path_EGREP and select it if it is found.
4640 # Check for GNU $ac_path_EGREP
4641 case `"$ac_path_EGREP" --version 2>&1` in
4642 *GNU*)
4643 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4644 *)
4645 ac_count=0
4646 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4647 while :
4648 do
4649 cat "conftest.in" "conftest.in" >"conftest.tmp"
4650 mv "conftest.tmp" "conftest.in"
4651 cp "conftest.in" "conftest.nl"
4652 echo 'EGREP' >> "conftest.nl"
4653 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4654 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4655 ac_count=`expr $ac_count + 1`
4656 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4657 # Best one so far, save it but keep looking for a better one
4658 ac_cv_path_EGREP="$ac_path_EGREP"
4659 ac_path_EGREP_max=$ac_count
4660 fi
4661 # 10*(2^10) chars as input seems more than enough
4662 test $ac_count -gt 10 && break
4663 done
4664 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4665 esac
4666
4667
4668 $ac_path_EGREP_found && break 3
4669 done
4670 done
4671
4672 done
4673 IFS=$as_save_IFS
4674
4675
4676 fi
4677
4678 EGREP="$ac_cv_path_EGREP"
4679 if test -z "$EGREP"; then
4680 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4681 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4682 { (exit 1); exit 1; }; }
4683 fi
4684
4685 else
4686 ac_cv_path_EGREP=$EGREP
4687 fi
4688
4689
4690 fi
4691 fi
4692 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4693 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4694 EGREP="$ac_cv_path_EGREP"
4695
4696
4697
4698 { echo "$as_me:$LINENO: checking for AIX" >&5
4699 echo $ECHO_N "checking for AIX... $ECHO_C" >&6; }
4700 cat >conftest.$ac_ext <<_ACEOF
4701 /* confdefs.h. */
4702 _ACEOF
4703 cat confdefs.h >>conftest.$ac_ext
4704 cat >>conftest.$ac_ext <<_ACEOF
4705 /* end confdefs.h. */
4706 #ifdef _AIX
4707 yes
4708 #endif
4709
4710 _ACEOF
4711 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4712 $EGREP "yes" >/dev/null 2>&1; then
4713 { echo "$as_me:$LINENO: result: yes" >&5
4714 echo "${ECHO_T}yes" >&6; }
4715 cat >>confdefs.h <<\_ACEOF
4716 #define _ALL_SOURCE 1
4717 _ACEOF
4718
4719 else
4720 { echo "$as_me:$LINENO: result: no" >&5
4721 echo "${ECHO_T}no" >&6; }
4722 fi
4723 rm -f conftest*
4724
4725
4726
4727 cat >>confdefs.h <<\_ACEOF
4728 #define _GNU_SOURCE 1
4729 _ACEOF
4730
4731
4732
4733 ### Use -Wno-pointer-sign if the compiler supports it
4734 { echo "$as_me:$LINENO: checking whether gcc understands -Wno-pointer-sign" >&5
4735 echo $ECHO_N "checking whether gcc understands -Wno-pointer-sign... $ECHO_C" >&6; }
4736 SAVE_CFLAGS="$CFLAGS"
4737 CFLAGS="$CFLAGS -Wno-pointer-sign"
4738 cat >conftest.$ac_ext <<_ACEOF
4739 /* confdefs.h. */
4740 _ACEOF
4741 cat confdefs.h >>conftest.$ac_ext
4742 cat >>conftest.$ac_ext <<_ACEOF
4743 /* end confdefs.h. */
4744
4745 int
4746 main ()
4747 {
4748
4749 ;
4750 return 0;
4751 }
4752 _ACEOF
4753 rm -f conftest.$ac_objext
4754 if { (ac_try="$ac_compile"
4755 case "(($ac_try" in
4756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4757 *) ac_try_echo=$ac_try;;
4758 esac
4759 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4760 (eval "$ac_compile") 2>conftest.er1
4761 ac_status=$?
4762 grep -v '^ *+' conftest.er1 >conftest.err
4763 rm -f conftest.er1
4764 cat conftest.err >&5
4765 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4766 (exit $ac_status); } && {
4767 test -z "$ac_c_werror_flag" ||
4768 test ! -s conftest.err
4769 } && test -s conftest.$ac_objext; then
4770 has_option=yes
4771 else
4772 echo "$as_me: failed program was:" >&5
4773 sed 's/^/| /' conftest.$ac_ext >&5
4774
4775 has_option=no
4776 fi
4777
4778 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4779 if test $has_option = yes; then
4780 C_WARNINGS_SWITCH="-Wno-pointer-sign $C_WARNINGS_SWITCH"
4781 fi
4782 { echo "$as_me:$LINENO: result: $has_option" >&5
4783 echo "${ECHO_T}$has_option" >&6; }
4784 CFLAGS="$SAVE_CFLAGS"
4785 unset has_option
4786 unset SAVE_CFLAGS
4787
4788 #### Some other nice autoconf tests.
4789
4790 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
4791 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
4792 LN_S=$as_ln_s
4793 if test "$LN_S" = "ln -s"; then
4794 { echo "$as_me:$LINENO: result: yes" >&5
4795 echo "${ECHO_T}yes" >&6; }
4796 else
4797 { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
4798 echo "${ECHO_T}no, using $LN_S" >&6; }
4799 fi
4800
4801 ac_ext=c
4802 ac_cpp='$CPP $CPPFLAGS'
4803 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4804 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4805 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4806 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
4807 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
4808 # On Suns, sometimes $CPP names a directory.
4809 if test -n "$CPP" && test -d "$CPP"; then
4810 CPP=
4811 fi
4812 if test -z "$CPP"; then
4813 if test "${ac_cv_prog_CPP+set}" = set; then
4814 echo $ECHO_N "(cached) $ECHO_C" >&6
4815 else
4816 # Double quotes because CPP needs to be expanded
4817 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
4818 do
4819 ac_preproc_ok=false
4820 for ac_c_preproc_warn_flag in '' yes
4821 do
4822 # Use a header file that comes with gcc, so configuring glibc
4823 # with a fresh cross-compiler works.
4824 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4825 # <limits.h> exists even on freestanding compilers.
4826 # On the NeXT, cc -E runs the code through the compiler's parser,
4827 # not just through cpp. "Syntax error" is here to catch this case.
4828 cat >conftest.$ac_ext <<_ACEOF
4829 /* confdefs.h. */
4830 _ACEOF
4831 cat confdefs.h >>conftest.$ac_ext
4832 cat >>conftest.$ac_ext <<_ACEOF
4833 /* end confdefs.h. */
4834 #ifdef __STDC__
4835 # include <limits.h>
4836 #else
4837 # include <assert.h>
4838 #endif
4839 Syntax error
4840 _ACEOF
4841 if { (ac_try="$ac_cpp conftest.$ac_ext"
4842 case "(($ac_try" in
4843 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4844 *) ac_try_echo=$ac_try;;
4845 esac
4846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4847 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4848 ac_status=$?
4849 grep -v '^ *+' conftest.er1 >conftest.err
4850 rm -f conftest.er1
4851 cat conftest.err >&5
4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4853 (exit $ac_status); } >/dev/null && {
4854 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4855 test ! -s conftest.err
4856 }; then
4857 :
4858 else
4859 echo "$as_me: failed program was:" >&5
4860 sed 's/^/| /' conftest.$ac_ext >&5
4861
4862 # Broken: fails on valid input.
4863 continue
4864 fi
4865
4866 rm -f conftest.err conftest.$ac_ext
4867
4868 # OK, works on sane cases. Now check whether nonexistent headers
4869 # can be detected and how.
4870 cat >conftest.$ac_ext <<_ACEOF
4871 /* confdefs.h. */
4872 _ACEOF
4873 cat confdefs.h >>conftest.$ac_ext
4874 cat >>conftest.$ac_ext <<_ACEOF
4875 /* end confdefs.h. */
4876 #include <ac_nonexistent.h>
4877 _ACEOF
4878 if { (ac_try="$ac_cpp conftest.$ac_ext"
4879 case "(($ac_try" in
4880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4881 *) ac_try_echo=$ac_try;;
4882 esac
4883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4884 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4885 ac_status=$?
4886 grep -v '^ *+' conftest.er1 >conftest.err
4887 rm -f conftest.er1
4888 cat conftest.err >&5
4889 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4890 (exit $ac_status); } >/dev/null && {
4891 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4892 test ! -s conftest.err
4893 }; then
4894 # Broken: success on invalid input.
4895 continue
4896 else
4897 echo "$as_me: failed program was:" >&5
4898 sed 's/^/| /' conftest.$ac_ext >&5
4899
4900 # Passes both tests.
4901 ac_preproc_ok=:
4902 break
4903 fi
4904
4905 rm -f conftest.err conftest.$ac_ext
4906
4907 done
4908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4909 rm -f conftest.err conftest.$ac_ext
4910 if $ac_preproc_ok; then
4911 break
4912 fi
4913
4914 done
4915 ac_cv_prog_CPP=$CPP
4916
4917 fi
4918 CPP=$ac_cv_prog_CPP
4919 else
4920 ac_cv_prog_CPP=$CPP
4921 fi
4922 { echo "$as_me:$LINENO: result: $CPP" >&5
4923 echo "${ECHO_T}$CPP" >&6; }
4924 ac_preproc_ok=false
4925 for ac_c_preproc_warn_flag in '' yes
4926 do
4927 # Use a header file that comes with gcc, so configuring glibc
4928 # with a fresh cross-compiler works.
4929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4930 # <limits.h> exists even on freestanding compilers.
4931 # On the NeXT, cc -E runs the code through the compiler's parser,
4932 # not just through cpp. "Syntax error" is here to catch this case.
4933 cat >conftest.$ac_ext <<_ACEOF
4934 /* confdefs.h. */
4935 _ACEOF
4936 cat confdefs.h >>conftest.$ac_ext
4937 cat >>conftest.$ac_ext <<_ACEOF
4938 /* end confdefs.h. */
4939 #ifdef __STDC__
4940 # include <limits.h>
4941 #else
4942 # include <assert.h>
4943 #endif
4944 Syntax error
4945 _ACEOF
4946 if { (ac_try="$ac_cpp conftest.$ac_ext"
4947 case "(($ac_try" in
4948 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4949 *) ac_try_echo=$ac_try;;
4950 esac
4951 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4952 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4953 ac_status=$?
4954 grep -v '^ *+' conftest.er1 >conftest.err
4955 rm -f conftest.er1
4956 cat conftest.err >&5
4957 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4958 (exit $ac_status); } >/dev/null && {
4959 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4960 test ! -s conftest.err
4961 }; then
4962 :
4963 else
4964 echo "$as_me: failed program was:" >&5
4965 sed 's/^/| /' conftest.$ac_ext >&5
4966
4967 # Broken: fails on valid input.
4968 continue
4969 fi
4970
4971 rm -f conftest.err conftest.$ac_ext
4972
4973 # OK, works on sane cases. Now check whether nonexistent headers
4974 # can be detected and how.
4975 cat >conftest.$ac_ext <<_ACEOF
4976 /* confdefs.h. */
4977 _ACEOF
4978 cat confdefs.h >>conftest.$ac_ext
4979 cat >>conftest.$ac_ext <<_ACEOF
4980 /* end confdefs.h. */
4981 #include <ac_nonexistent.h>
4982 _ACEOF
4983 if { (ac_try="$ac_cpp conftest.$ac_ext"
4984 case "(($ac_try" in
4985 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4986 *) ac_try_echo=$ac_try;;
4987 esac
4988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4989 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4990 ac_status=$?
4991 grep -v '^ *+' conftest.er1 >conftest.err
4992 rm -f conftest.er1
4993 cat conftest.err >&5
4994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4995 (exit $ac_status); } >/dev/null && {
4996 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
4997 test ! -s conftest.err
4998 }; then
4999 # Broken: success on invalid input.
5000 continue
5001 else
5002 echo "$as_me: failed program was:" >&5
5003 sed 's/^/| /' conftest.$ac_ext >&5
5004
5005 # Passes both tests.
5006 ac_preproc_ok=:
5007 break
5008 fi
5009
5010 rm -f conftest.err conftest.$ac_ext
5011
5012 done
5013 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5014 rm -f conftest.err conftest.$ac_ext
5015 if $ac_preproc_ok; then
5016 :
5017 else
5018 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5019 See \`config.log' for more details." >&5
5020 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5021 See \`config.log' for more details." >&2;}
5022 { (exit 1); exit 1; }; }
5023 fi
5024
5025 ac_ext=c
5026 ac_cpp='$CPP $CPPFLAGS'
5027 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5028 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5029 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5030
5031 # Find a good install program. We prefer a C program (faster),
5032 # so one script is as good as another. But avoid the broken or
5033 # incompatible versions:
5034 # SysV /etc/install, /usr/sbin/install
5035 # SunOS /usr/etc/install
5036 # IRIX /sbin/install
5037 # AIX /bin/install
5038 # AmigaOS /C/install, which installs bootblocks on floppy discs
5039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
5040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
5041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
5042 # OS/2's system install, which has a completely different semantic
5043 # ./install, which can be erroneously created by make from ./install.sh.
5044 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
5045 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
5046 if test -z "$INSTALL"; then
5047 if test "${ac_cv_path_install+set}" = set; then
5048 echo $ECHO_N "(cached) $ECHO_C" >&6
5049 else
5050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5051 for as_dir in $PATH
5052 do
5053 IFS=$as_save_IFS
5054 test -z "$as_dir" && as_dir=.
5055 # Account for people who put trailing slashes in PATH elements.
5056 case $as_dir/ in
5057 ./ | .// | /cC/* | \
5058 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
5059 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
5060 /usr/ucb/* ) ;;
5061 *)
5062 # OSF1 and SCO ODT 3.0 have their own names for install.
5063 # Don't use installbsd from OSF since it installs stuff as root
5064 # by default.
5065 for ac_prog in ginstall scoinst install; do
5066 for ac_exec_ext in '' $ac_executable_extensions; do
5067 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
5068 if test $ac_prog = install &&
5069 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5070 # AIX install. It has an incompatible calling convention.
5071 :
5072 elif test $ac_prog = install &&
5073 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
5074 # program-specific install script used by HP pwplus--don't use.
5075 :
5076 else
5077 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
5078 break 3
5079 fi
5080 fi
5081 done
5082 done
5083 ;;
5084 esac
5085 done
5086 IFS=$as_save_IFS
5087
5088
5089 fi
5090 if test "${ac_cv_path_install+set}" = set; then
5091 INSTALL=$ac_cv_path_install
5092 else
5093 # As a last resort, use the slow shell script. Don't cache a
5094 # value for INSTALL within a source directory, because that will
5095 # break other packages using the cache if that directory is
5096 # removed, or if the value is a relative name.
5097 INSTALL=$ac_install_sh
5098 fi
5099 fi
5100 { echo "$as_me:$LINENO: result: $INSTALL" >&5
5101 echo "${ECHO_T}$INSTALL" >&6; }
5102
5103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
5104 # It thinks the first close brace ends the variable substitution.
5105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
5106
5107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
5108
5109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
5110
5111 if test "x$RANLIB" = x; then
5112 if test -n "$ac_tool_prefix"; then
5113 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
5114 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
5115 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5116 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5117 if test "${ac_cv_prog_RANLIB+set}" = set; then
5118 echo $ECHO_N "(cached) $ECHO_C" >&6
5119 else
5120 if test -n "$RANLIB"; then
5121 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
5122 else
5123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5124 for as_dir in $PATH
5125 do
5126 IFS=$as_save_IFS
5127 test -z "$as_dir" && as_dir=.
5128 for ac_exec_ext in '' $ac_executable_extensions; do
5129 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5130 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
5131 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5132 break 2
5133 fi
5134 done
5135 done
5136 IFS=$as_save_IFS
5137
5138 fi
5139 fi
5140 RANLIB=$ac_cv_prog_RANLIB
5141 if test -n "$RANLIB"; then
5142 { echo "$as_me:$LINENO: result: $RANLIB" >&5
5143 echo "${ECHO_T}$RANLIB" >&6; }
5144 else
5145 { echo "$as_me:$LINENO: result: no" >&5
5146 echo "${ECHO_T}no" >&6; }
5147 fi
5148
5149
5150 fi
5151 if test -z "$ac_cv_prog_RANLIB"; then
5152 ac_ct_RANLIB=$RANLIB
5153 # Extract the first word of "ranlib", so it can be a program name with args.
5154 set dummy ranlib; ac_word=$2
5155 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5156 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5157 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
5158 echo $ECHO_N "(cached) $ECHO_C" >&6
5159 else
5160 if test -n "$ac_ct_RANLIB"; then
5161 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
5162 else
5163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5164 for as_dir in $PATH
5165 do
5166 IFS=$as_save_IFS
5167 test -z "$as_dir" && as_dir=.
5168 for ac_exec_ext in '' $ac_executable_extensions; do
5169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5170 ac_cv_prog_ac_ct_RANLIB="ranlib"
5171 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5172 break 2
5173 fi
5174 done
5175 done
5176 IFS=$as_save_IFS
5177
5178 fi
5179 fi
5180 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
5181 if test -n "$ac_ct_RANLIB"; then
5182 { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
5183 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
5184 else
5185 { echo "$as_me:$LINENO: result: no" >&5
5186 echo "${ECHO_T}no" >&6; }
5187 fi
5188
5189 if test "x$ac_ct_RANLIB" = x; then
5190 RANLIB=":"
5191 else
5192 case $cross_compiling:$ac_tool_warned in
5193 yes:)
5194 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5195 whose name does not start with the host triplet. If you think this
5196 configuration is useful to you, please write to autoconf@gnu.org." >&5
5197 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5198 whose name does not start with the host triplet. If you think this
5199 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5200 ac_tool_warned=yes ;;
5201 esac
5202 RANLIB=$ac_ct_RANLIB
5203 fi
5204 else
5205 RANLIB="$ac_cv_prog_RANLIB"
5206 fi
5207
5208 fi
5209 # Extract the first word of "install-info", so it can be a program name with args.
5210 set dummy install-info; ac_word=$2
5211 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5212 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5213 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5214 echo $ECHO_N "(cached) $ECHO_C" >&6
5215 else
5216 case $INSTALL_INFO in
5217 [\\/]* | ?:[\\/]*)
5218 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5219 ;;
5220 *)
5221 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5222 for as_dir in $PATH
5223 do
5224 IFS=$as_save_IFS
5225 test -z "$as_dir" && as_dir=.
5226 for ac_exec_ext in '' $ac_executable_extensions; do
5227 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5228 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5229 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5230 break 2
5231 fi
5232 done
5233 done
5234 IFS=$as_save_IFS
5235
5236 ;;
5237 esac
5238 fi
5239 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5240 if test -n "$INSTALL_INFO"; then
5241 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5242 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5243 else
5244 { echo "$as_me:$LINENO: result: no" >&5
5245 echo "${ECHO_T}no" >&6; }
5246 fi
5247
5248
5249 # Extract the first word of "install-info", so it can be a program name with args.
5250 set dummy install-info; ac_word=$2
5251 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5252 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5253 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5254 echo $ECHO_N "(cached) $ECHO_C" >&6
5255 else
5256 case $INSTALL_INFO in
5257 [\\/]* | ?:[\\/]*)
5258 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5259 ;;
5260 *)
5261 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5262 for as_dir in /usr/sbin
5263 do
5264 IFS=$as_save_IFS
5265 test -z "$as_dir" && as_dir=.
5266 for ac_exec_ext in '' $ac_executable_extensions; do
5267 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5268 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5269 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5270 break 2
5271 fi
5272 done
5273 done
5274 IFS=$as_save_IFS
5275
5276 ;;
5277 esac
5278 fi
5279 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5280 if test -n "$INSTALL_INFO"; then
5281 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5282 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5283 else
5284 { echo "$as_me:$LINENO: result: no" >&5
5285 echo "${ECHO_T}no" >&6; }
5286 fi
5287
5288
5289 # Extract the first word of "install-info", so it can be a program name with args.
5290 set dummy install-info; ac_word=$2
5291 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5292 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5293 if test "${ac_cv_path_INSTALL_INFO+set}" = set; then
5294 echo $ECHO_N "(cached) $ECHO_C" >&6
5295 else
5296 case $INSTALL_INFO in
5297 [\\/]* | ?:[\\/]*)
5298 ac_cv_path_INSTALL_INFO="$INSTALL_INFO" # Let the user override the test with a path.
5299 ;;
5300 *)
5301 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5302 for as_dir in /sbin
5303 do
5304 IFS=$as_save_IFS
5305 test -z "$as_dir" && as_dir=.
5306 for ac_exec_ext in '' $ac_executable_extensions; do
5307 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5308 ac_cv_path_INSTALL_INFO="$as_dir/$ac_word$ac_exec_ext"
5309 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5310 break 2
5311 fi
5312 done
5313 done
5314 IFS=$as_save_IFS
5315
5316 test -z "$ac_cv_path_INSTALL_INFO" && ac_cv_path_INSTALL_INFO=":"
5317 ;;
5318 esac
5319 fi
5320 INSTALL_INFO=$ac_cv_path_INSTALL_INFO
5321 if test -n "$INSTALL_INFO"; then
5322 { echo "$as_me:$LINENO: result: $INSTALL_INFO" >&5
5323 echo "${ECHO_T}$INSTALL_INFO" >&6; }
5324 else
5325 { echo "$as_me:$LINENO: result: no" >&5
5326 echo "${ECHO_T}no" >&6; }
5327 fi
5328
5329
5330 # Extract the first word of "gzip", so it can be a program name with args.
5331 set dummy gzip; ac_word=$2
5332 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5333 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5334 if test "${ac_cv_path_GZIP_PROG+set}" = set; then
5335 echo $ECHO_N "(cached) $ECHO_C" >&6
5336 else
5337 case $GZIP_PROG in
5338 [\\/]* | ?:[\\/]*)
5339 ac_cv_path_GZIP_PROG="$GZIP_PROG" # Let the user override the test with a path.
5340 ;;
5341 *)
5342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5343 for as_dir in $PATH
5344 do
5345 IFS=$as_save_IFS
5346 test -z "$as_dir" && as_dir=.
5347 for ac_exec_ext in '' $ac_executable_extensions; do
5348 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5349 ac_cv_path_GZIP_PROG="$as_dir/$ac_word$ac_exec_ext"
5350 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5351 break 2
5352 fi
5353 done
5354 done
5355 IFS=$as_save_IFS
5356
5357 ;;
5358 esac
5359 fi
5360 GZIP_PROG=$ac_cv_path_GZIP_PROG
5361 if test -n "$GZIP_PROG"; then
5362 { echo "$as_me:$LINENO: result: $GZIP_PROG" >&5
5363 echo "${ECHO_T}$GZIP_PROG" >&6; }
5364 else
5365 { echo "$as_me:$LINENO: result: no" >&5
5366 echo "${ECHO_T}no" >&6; }
5367 fi
5368
5369
5370
5371
5372 ## Need makeinfo >= 4.6 (?) to build the manuals.
5373 # Extract the first word of "makeinfo", so it can be a program name with args.
5374 set dummy makeinfo; ac_word=$2
5375 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5376 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5377 if test "${ac_cv_path_MAKEINFO+set}" = set; then
5378 echo $ECHO_N "(cached) $ECHO_C" >&6
5379 else
5380 case $MAKEINFO in
5381 [\\/]* | ?:[\\/]*)
5382 ac_cv_path_MAKEINFO="$MAKEINFO" # Let the user override the test with a path.
5383 ;;
5384 *)
5385 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5386 for as_dir in $PATH
5387 do
5388 IFS=$as_save_IFS
5389 test -z "$as_dir" && as_dir=.
5390 for ac_exec_ext in '' $ac_executable_extensions; do
5391 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
5392 ac_cv_path_MAKEINFO="$as_dir/$ac_word$ac_exec_ext"
5393 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5394 break 2
5395 fi
5396 done
5397 done
5398 IFS=$as_save_IFS
5399
5400 test -z "$ac_cv_path_MAKEINFO" && ac_cv_path_MAKEINFO="no"
5401 ;;
5402 esac
5403 fi
5404 MAKEINFO=$ac_cv_path_MAKEINFO
5405 if test -n "$MAKEINFO"; then
5406 { echo "$as_me:$LINENO: result: $MAKEINFO" >&5
5407 echo "${ECHO_T}$MAKEINFO" >&6; }
5408 else
5409 { echo "$as_me:$LINENO: result: no" >&5
5410 echo "${ECHO_T}no" >&6; }
5411 fi
5412
5413
5414 if test "$MAKEINFO" != "no" && \
5415 test x"`$MAKEINFO --version 2> /dev/null | $EGREP 'texinfo[^0-9]*([1-4][0-9]+|[5-9]|4\.[6-9]|4\.[1-5][0-9]+)'`" = x; then
5416 MAKEINFO=no
5417 fi
5418
5419 if test "$MAKEINFO" = "no"; then
5420 { { echo "$as_me:$LINENO: error: makeinfo >= 4.6 is required " >&5
5421 echo "$as_me: error: makeinfo >= 4.6 is required " >&2;}
5422 { (exit 1); exit 1; }; }
5423 fi
5424
5425
5426
5427 if test x$GCC = xyes && test "x$GCC_LINK_TEST_OPTIONS" != x
5428 then
5429 ac_link="$ac_link $GCC_LINK_TEST_OPTIONS"
5430 fi
5431
5432 if test x$GCC = x && test "x$NON_GCC_LINK_TEST_OPTIONS" != x
5433 then
5434 ac_link="$ac_link $NON_GCC_LINK_TEST_OPTIONS"
5435 fi
5436
5437
5438 late_LDFLAGS=$LDFLAGS
5439 if test "$GCC" = yes; then
5440 LDFLAGS="$LDFLAGS -Wl,-znocombreloc"
5441 else
5442 LDFLAGS="$LDFLAGS -znocombreloc"
5443 fi
5444
5445 { echo "$as_me:$LINENO: checking for -znocombreloc" >&5
5446 echo $ECHO_N "checking for -znocombreloc... $ECHO_C" >&6; }
5447 cat >conftest.$ac_ext <<_ACEOF
5448 main(){return 0;}
5449 _ACEOF
5450 rm -f conftest.$ac_objext conftest$ac_exeext
5451 if { (ac_try="$ac_link"
5452 case "(($ac_try" in
5453 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5454 *) ac_try_echo=$ac_try;;
5455 esac
5456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5457 (eval "$ac_link") 2>conftest.er1
5458 ac_status=$?
5459 grep -v '^ *+' conftest.er1 >conftest.err
5460 rm -f conftest.er1
5461 cat conftest.err >&5
5462 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5463 (exit $ac_status); } && {
5464 test -z "$ac_c_werror_flag" ||
5465 test ! -s conftest.err
5466 } && test -s conftest$ac_exeext &&
5467 $as_test_x conftest$ac_exeext; then
5468 { echo "$as_me:$LINENO: result: yes" >&5
5469 echo "${ECHO_T}yes" >&6; }
5470 else
5471 echo "$as_me: failed program was:" >&5
5472 sed 's/^/| /' conftest.$ac_ext >&5
5473
5474 LDFLAGS=$late_LDFLAGS
5475 { echo "$as_me:$LINENO: result: no" >&5
5476 echo "${ECHO_T}no" >&6; }
5477 fi
5478
5479 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
5480 conftest$ac_exeext conftest.$ac_ext
5481
5482 #### Extract some information from the operating system and machine files.
5483
5484 { echo "$as_me:$LINENO: checking the machine- and system-dependent files to find out
5485 - which libraries the lib-src programs will want, and
5486 - whether the GNU malloc routines are usable..." >&5
5487 echo "$as_me: checking the machine- and system-dependent files to find out
5488 - which libraries the lib-src programs will want, and
5489 - whether the GNU malloc routines are usable..." >&6;}
5490
5491 ### First figure out CFLAGS (which we use for running the compiler here)
5492 ### and REAL_CFLAGS (which we use for real compilation).
5493 ### The two are the same except on a few systems, where they are made
5494 ### different to work around various lossages. For example,
5495 ### GCC 2.5 on GNU/Linux needs them to be different because it treats -g
5496 ### as implying static linking.
5497
5498 ### If the CFLAGS env var is specified, we use that value
5499 ### instead of the default.
5500
5501 ### It's not important that this name contain the PID; you can't run
5502 ### two configures in the same directory and have anything work
5503 ### anyway.
5504 tempcname="conftest.c"
5505
5506 echo '
5507 #include "'${srcdir}'/src/'${opsysfile}'"
5508 #include "'${srcdir}'/src/'${machfile}'"
5509 #ifndef LIBS_MACHINE
5510 #define LIBS_MACHINE
5511 #endif
5512 #ifndef LIBS_SYSTEM
5513 #define LIBS_SYSTEM
5514 #endif
5515 #ifndef C_SWITCH_SYSTEM
5516 #define C_SWITCH_SYSTEM
5517 #endif
5518 #ifndef C_SWITCH_MACHINE
5519 #define C_SWITCH_MACHINE
5520 #endif
5521 configure___ libsrc_libs=LIBS_MACHINE LIBS_SYSTEM
5522 configure___ c_switch_system=C_SWITCH_SYSTEM
5523 configure___ c_switch_machine=C_SWITCH_MACHINE
5524
5525 #ifndef LIB_X11_LIB
5526 #define LIB_X11_LIB -lX11
5527 #endif
5528
5529 #ifndef LIBX11_MACHINE
5530 #define LIBX11_MACHINE
5531 #endif
5532
5533 #ifndef LIBX11_SYSTEM
5534 #define LIBX11_SYSTEM
5535 #endif
5536 configure___ LIBX=LIB_X11_LIB LIBX11_MACHINE LIBX11_SYSTEM
5537
5538 #ifdef UNEXEC
5539 configure___ unexec=UNEXEC
5540 #else
5541 configure___ unexec=unexec.o
5542 #endif
5543
5544 #ifdef SYSTEM_MALLOC
5545 configure___ system_malloc=yes
5546 #else
5547 configure___ system_malloc=no
5548 #endif
5549
5550 #ifdef USE_MMAP_FOR_BUFFERS
5551 configure___ use_mmap_for_buffers=yes
5552 #else
5553 configure___ use_mmap_for_buffers=no
5554 #endif
5555
5556 #ifndef C_DEBUG_SWITCH
5557 #define C_DEBUG_SWITCH -g
5558 #endif
5559
5560 #ifndef C_OPTIMIZE_SWITCH
5561 #ifdef __GNUC__
5562 #define C_OPTIMIZE_SWITCH -O2
5563 #else
5564 #define C_OPTIMIZE_SWITCH -O
5565 #endif
5566 #endif
5567
5568 #ifndef C_WARNINGS_SWITCH
5569 #define C_WARNINGS_SWITCH ${C_WARNINGS_SWITCH}
5570 #endif
5571
5572 #ifndef LD_SWITCH_MACHINE
5573 #define LD_SWITCH_MACHINE
5574 #endif
5575
5576 #ifndef LD_SWITCH_SYSTEM
5577 #define LD_SWITCH_SYSTEM
5578 #endif
5579
5580 #ifndef LD_SWITCH_X_SITE_AUX
5581 #define LD_SWITCH_X_SITE_AUX
5582 #endif
5583
5584 configure___ ld_switch_system=LD_SWITCH_SYSTEM
5585 configure___ ld_switch_machine=LD_SWITCH_MACHINE
5586
5587 #ifdef THIS_IS_CONFIGURE
5588
5589 /* Get the CFLAGS for tests in configure. */
5590 #ifdef __GNUC__
5591 configure___ CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH '${SPECIFIED_CFLAGS}'
5592 #else
5593 configure___ CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5594 #endif
5595
5596 #else /* not THIS_IS_CONFIGURE */
5597
5598 /* Get the CFLAGS for real compilation. */
5599 #ifdef __GNUC__
5600 configure___ REAL_CFLAGS=C_DEBUG_SWITCH C_OPTIMIZE_SWITCH C_WARNINGS_SWITCH '${SPECIFIED_CFLAGS}'
5601 #else
5602 configure___ REAL_CFLAGS=C_DEBUG_SWITCH '${SPECIFIED_CFLAGS}'
5603 #endif
5604
5605 #endif /* not THIS_IS_CONFIGURE */
5606 ' > ${tempcname}
5607
5608 # The value of CPP is a quoted variable reference, so we need to do this
5609 # to get its actual value...
5610 CPP=`eval "echo $CPP"`
5611 eval `${CPP} -Isrc ${tempcname} \
5612 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5613 if test "x$SPECIFIED_CFLAGS" = x; then
5614 eval `${CPP} -Isrc -DTHIS_IS_CONFIGURE ${tempcname} \
5615 | sed -n -e 's/^configure___ \([^=]*=\)\(.*\)$/\1"\2"/p'`
5616 else
5617 REAL_CFLAGS="$CFLAGS"
5618 fi
5619 rm ${tempcname}
5620
5621 ac_link="$ac_link $ld_switch_machine $ld_switch_system"
5622
5623 ### Make sure subsequent tests use flags consistent with the build flags.
5624
5625 if test x"${OVERRIDE_CPPFLAGS}" != x; then
5626 CPPFLAGS="${OVERRIDE_CPPFLAGS}"
5627 else
5628 CPPFLAGS="$c_switch_system $c_switch_machine $CPPFLAGS"
5629 fi
5630
5631
5632
5633 # Check whether --enable-largefile was given.
5634 if test "${enable_largefile+set}" = set; then
5635 enableval=$enable_largefile;
5636 fi
5637
5638 if test "$enable_largefile" != no; then
5639
5640 { echo "$as_me:$LINENO: checking for special C compiler options needed for large files" >&5
5641 echo $ECHO_N "checking for special C compiler options needed for large files... $ECHO_C" >&6; }
5642 if test "${ac_cv_sys_largefile_CC+set}" = set; then
5643 echo $ECHO_N "(cached) $ECHO_C" >&6
5644 else
5645 ac_cv_sys_largefile_CC=no
5646 if test "$GCC" != yes; then
5647 ac_save_CC=$CC
5648 while :; do
5649 # IRIX 6.2 and later do not support large files by default,
5650 # so use the C compiler's -n32 option if that helps.
5651 cat >conftest.$ac_ext <<_ACEOF
5652 /* confdefs.h. */
5653 _ACEOF
5654 cat confdefs.h >>conftest.$ac_ext
5655 cat >>conftest.$ac_ext <<_ACEOF
5656 /* end confdefs.h. */
5657 #include <sys/types.h>
5658 /* Check that off_t can represent 2**63 - 1 correctly.
5659 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5660 since some C++ compilers masquerading as C compilers
5661 incorrectly reject 9223372036854775807. */
5662 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5663 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5664 && LARGE_OFF_T % 2147483647 == 1)
5665 ? 1 : -1];
5666 int
5667 main ()
5668 {
5669
5670 ;
5671 return 0;
5672 }
5673 _ACEOF
5674 rm -f conftest.$ac_objext
5675 if { (ac_try="$ac_compile"
5676 case "(($ac_try" in
5677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5678 *) ac_try_echo=$ac_try;;
5679 esac
5680 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5681 (eval "$ac_compile") 2>conftest.er1
5682 ac_status=$?
5683 grep -v '^ *+' conftest.er1 >conftest.err
5684 rm -f conftest.er1
5685 cat conftest.err >&5
5686 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5687 (exit $ac_status); } && {
5688 test -z "$ac_c_werror_flag" ||
5689 test ! -s conftest.err
5690 } && test -s conftest.$ac_objext; then
5691 break
5692 else
5693 echo "$as_me: failed program was:" >&5
5694 sed 's/^/| /' conftest.$ac_ext >&5
5695
5696
5697 fi
5698
5699 rm -f core conftest.err conftest.$ac_objext
5700 CC="$CC -n32"
5701 rm -f conftest.$ac_objext
5702 if { (ac_try="$ac_compile"
5703 case "(($ac_try" in
5704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5705 *) ac_try_echo=$ac_try;;
5706 esac
5707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5708 (eval "$ac_compile") 2>conftest.er1
5709 ac_status=$?
5710 grep -v '^ *+' conftest.er1 >conftest.err
5711 rm -f conftest.er1
5712 cat conftest.err >&5
5713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5714 (exit $ac_status); } && {
5715 test -z "$ac_c_werror_flag" ||
5716 test ! -s conftest.err
5717 } && test -s conftest.$ac_objext; then
5718 ac_cv_sys_largefile_CC=' -n32'; break
5719 else
5720 echo "$as_me: failed program was:" >&5
5721 sed 's/^/| /' conftest.$ac_ext >&5
5722
5723
5724 fi
5725
5726 rm -f core conftest.err conftest.$ac_objext
5727 break
5728 done
5729 CC=$ac_save_CC
5730 rm -f conftest.$ac_ext
5731 fi
5732 fi
5733 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_CC" >&5
5734 echo "${ECHO_T}$ac_cv_sys_largefile_CC" >&6; }
5735 if test "$ac_cv_sys_largefile_CC" != no; then
5736 CC=$CC$ac_cv_sys_largefile_CC
5737 fi
5738
5739 { echo "$as_me:$LINENO: checking for _FILE_OFFSET_BITS value needed for large files" >&5
5740 echo $ECHO_N "checking for _FILE_OFFSET_BITS value needed for large files... $ECHO_C" >&6; }
5741 if test "${ac_cv_sys_file_offset_bits+set}" = set; then
5742 echo $ECHO_N "(cached) $ECHO_C" >&6
5743 else
5744 while :; do
5745 cat >conftest.$ac_ext <<_ACEOF
5746 /* confdefs.h. */
5747 _ACEOF
5748 cat confdefs.h >>conftest.$ac_ext
5749 cat >>conftest.$ac_ext <<_ACEOF
5750 /* end confdefs.h. */
5751 #include <sys/types.h>
5752 /* Check that off_t can represent 2**63 - 1 correctly.
5753 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5754 since some C++ compilers masquerading as C compilers
5755 incorrectly reject 9223372036854775807. */
5756 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5757 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5758 && LARGE_OFF_T % 2147483647 == 1)
5759 ? 1 : -1];
5760 int
5761 main ()
5762 {
5763
5764 ;
5765 return 0;
5766 }
5767 _ACEOF
5768 rm -f conftest.$ac_objext
5769 if { (ac_try="$ac_compile"
5770 case "(($ac_try" in
5771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772 *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775 (eval "$ac_compile") 2>conftest.er1
5776 ac_status=$?
5777 grep -v '^ *+' conftest.er1 >conftest.err
5778 rm -f conftest.er1
5779 cat conftest.err >&5
5780 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5781 (exit $ac_status); } && {
5782 test -z "$ac_c_werror_flag" ||
5783 test ! -s conftest.err
5784 } && test -s conftest.$ac_objext; then
5785 ac_cv_sys_file_offset_bits=no; break
5786 else
5787 echo "$as_me: failed program was:" >&5
5788 sed 's/^/| /' conftest.$ac_ext >&5
5789
5790
5791 fi
5792
5793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5794 cat >conftest.$ac_ext <<_ACEOF
5795 /* confdefs.h. */
5796 _ACEOF
5797 cat confdefs.h >>conftest.$ac_ext
5798 cat >>conftest.$ac_ext <<_ACEOF
5799 /* end confdefs.h. */
5800 #define _FILE_OFFSET_BITS 64
5801 #include <sys/types.h>
5802 /* Check that off_t can represent 2**63 - 1 correctly.
5803 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5804 since some C++ compilers masquerading as C compilers
5805 incorrectly reject 9223372036854775807. */
5806 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5807 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5808 && LARGE_OFF_T % 2147483647 == 1)
5809 ? 1 : -1];
5810 int
5811 main ()
5812 {
5813
5814 ;
5815 return 0;
5816 }
5817 _ACEOF
5818 rm -f conftest.$ac_objext
5819 if { (ac_try="$ac_compile"
5820 case "(($ac_try" in
5821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5822 *) ac_try_echo=$ac_try;;
5823 esac
5824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5825 (eval "$ac_compile") 2>conftest.er1
5826 ac_status=$?
5827 grep -v '^ *+' conftest.er1 >conftest.err
5828 rm -f conftest.er1
5829 cat conftest.err >&5
5830 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5831 (exit $ac_status); } && {
5832 test -z "$ac_c_werror_flag" ||
5833 test ! -s conftest.err
5834 } && test -s conftest.$ac_objext; then
5835 ac_cv_sys_file_offset_bits=64; break
5836 else
5837 echo "$as_me: failed program was:" >&5
5838 sed 's/^/| /' conftest.$ac_ext >&5
5839
5840
5841 fi
5842
5843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5844 ac_cv_sys_file_offset_bits=unknown
5845 break
5846 done
5847 fi
5848 { echo "$as_me:$LINENO: result: $ac_cv_sys_file_offset_bits" >&5
5849 echo "${ECHO_T}$ac_cv_sys_file_offset_bits" >&6; }
5850 case $ac_cv_sys_file_offset_bits in #(
5851 no | unknown) ;;
5852 *)
5853 cat >>confdefs.h <<_ACEOF
5854 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
5855 _ACEOF
5856 ;;
5857 esac
5858 rm -f conftest*
5859 if test $ac_cv_sys_file_offset_bits = unknown; then
5860 { echo "$as_me:$LINENO: checking for _LARGE_FILES value needed for large files" >&5
5861 echo $ECHO_N "checking for _LARGE_FILES value needed for large files... $ECHO_C" >&6; }
5862 if test "${ac_cv_sys_large_files+set}" = set; then
5863 echo $ECHO_N "(cached) $ECHO_C" >&6
5864 else
5865 while :; do
5866 cat >conftest.$ac_ext <<_ACEOF
5867 /* confdefs.h. */
5868 _ACEOF
5869 cat confdefs.h >>conftest.$ac_ext
5870 cat >>conftest.$ac_ext <<_ACEOF
5871 /* end confdefs.h. */
5872 #include <sys/types.h>
5873 /* Check that off_t can represent 2**63 - 1 correctly.
5874 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5875 since some C++ compilers masquerading as C compilers
5876 incorrectly reject 9223372036854775807. */
5877 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5878 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5879 && LARGE_OFF_T % 2147483647 == 1)
5880 ? 1 : -1];
5881 int
5882 main ()
5883 {
5884
5885 ;
5886 return 0;
5887 }
5888 _ACEOF
5889 rm -f conftest.$ac_objext
5890 if { (ac_try="$ac_compile"
5891 case "(($ac_try" in
5892 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5893 *) ac_try_echo=$ac_try;;
5894 esac
5895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5896 (eval "$ac_compile") 2>conftest.er1
5897 ac_status=$?
5898 grep -v '^ *+' conftest.er1 >conftest.err
5899 rm -f conftest.er1
5900 cat conftest.err >&5
5901 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5902 (exit $ac_status); } && {
5903 test -z "$ac_c_werror_flag" ||
5904 test ! -s conftest.err
5905 } && test -s conftest.$ac_objext; then
5906 ac_cv_sys_large_files=no; break
5907 else
5908 echo "$as_me: failed program was:" >&5
5909 sed 's/^/| /' conftest.$ac_ext >&5
5910
5911
5912 fi
5913
5914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 #define _LARGE_FILES 1
5922 #include <sys/types.h>
5923 /* Check that off_t can represent 2**63 - 1 correctly.
5924 We can't simply define LARGE_OFF_T to be 9223372036854775807,
5925 since some C++ compilers masquerading as C compilers
5926 incorrectly reject 9223372036854775807. */
5927 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
5928 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5929 && LARGE_OFF_T % 2147483647 == 1)
5930 ? 1 : -1];
5931 int
5932 main ()
5933 {
5934
5935 ;
5936 return 0;
5937 }
5938 _ACEOF
5939 rm -f conftest.$ac_objext
5940 if { (ac_try="$ac_compile"
5941 case "(($ac_try" in
5942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5943 *) ac_try_echo=$ac_try;;
5944 esac
5945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5946 (eval "$ac_compile") 2>conftest.er1
5947 ac_status=$?
5948 grep -v '^ *+' conftest.er1 >conftest.err
5949 rm -f conftest.er1
5950 cat conftest.err >&5
5951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5952 (exit $ac_status); } && {
5953 test -z "$ac_c_werror_flag" ||
5954 test ! -s conftest.err
5955 } && test -s conftest.$ac_objext; then
5956 ac_cv_sys_large_files=1; break
5957 else
5958 echo "$as_me: failed program was:" >&5
5959 sed 's/^/| /' conftest.$ac_ext >&5
5960
5961
5962 fi
5963
5964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5965 ac_cv_sys_large_files=unknown
5966 break
5967 done
5968 fi
5969 { echo "$as_me:$LINENO: result: $ac_cv_sys_large_files" >&5
5970 echo "${ECHO_T}$ac_cv_sys_large_files" >&6; }
5971 case $ac_cv_sys_large_files in #(
5972 no | unknown) ;;
5973 *)
5974 cat >>confdefs.h <<_ACEOF
5975 #define _LARGE_FILES $ac_cv_sys_large_files
5976 _ACEOF
5977 ;;
5978 esac
5979 rm -f conftest*
5980 fi
5981 fi
5982
5983
5984
5985 ### The standard library on x86-64 GNU/Linux distributions can
5986 ### be located in either /usr/lib64 or /usr/lib.
5987 case "${canonical}" in
5988 x86_64-*-linux-gnu* )
5989 if test -d /usr/lib64; then
5990
5991 cat >>confdefs.h <<\_ACEOF
5992 #define HAVE_X86_64_LIB64_DIR 1
5993 _ACEOF
5994
5995 fi
5996 esac
5997
5998
5999
6000
6001 if test "${with_sound}" != "no"; then
6002 # Sound support for GNU/Linux and the free BSDs.
6003 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6004 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6005 if test "${ac_cv_header_stdc+set}" = set; then
6006 echo $ECHO_N "(cached) $ECHO_C" >&6
6007 else
6008 cat >conftest.$ac_ext <<_ACEOF
6009 /* confdefs.h. */
6010 _ACEOF
6011 cat confdefs.h >>conftest.$ac_ext
6012 cat >>conftest.$ac_ext <<_ACEOF
6013 /* end confdefs.h. */
6014 #include <stdlib.h>
6015 #include <stdarg.h>
6016 #include <string.h>
6017 #include <float.h>
6018
6019 int
6020 main ()
6021 {
6022
6023 ;
6024 return 0;
6025 }
6026 _ACEOF
6027 rm -f conftest.$ac_objext
6028 if { (ac_try="$ac_compile"
6029 case "(($ac_try" in
6030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6031 *) ac_try_echo=$ac_try;;
6032 esac
6033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6034 (eval "$ac_compile") 2>conftest.er1
6035 ac_status=$?
6036 grep -v '^ *+' conftest.er1 >conftest.err
6037 rm -f conftest.er1
6038 cat conftest.err >&5
6039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6040 (exit $ac_status); } && {
6041 test -z "$ac_c_werror_flag" ||
6042 test ! -s conftest.err
6043 } && test -s conftest.$ac_objext; then
6044 ac_cv_header_stdc=yes
6045 else
6046 echo "$as_me: failed program was:" >&5
6047 sed 's/^/| /' conftest.$ac_ext >&5
6048
6049 ac_cv_header_stdc=no
6050 fi
6051
6052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6053
6054 if test $ac_cv_header_stdc = yes; then
6055 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6056 cat >conftest.$ac_ext <<_ACEOF
6057 /* confdefs.h. */
6058 _ACEOF
6059 cat confdefs.h >>conftest.$ac_ext
6060 cat >>conftest.$ac_ext <<_ACEOF
6061 /* end confdefs.h. */
6062 #include <string.h>
6063
6064 _ACEOF
6065 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6066 $EGREP "memchr" >/dev/null 2>&1; then
6067 :
6068 else
6069 ac_cv_header_stdc=no
6070 fi
6071 rm -f conftest*
6072
6073 fi
6074
6075 if test $ac_cv_header_stdc = yes; then
6076 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
6077 cat >conftest.$ac_ext <<_ACEOF
6078 /* confdefs.h. */
6079 _ACEOF
6080 cat confdefs.h >>conftest.$ac_ext
6081 cat >>conftest.$ac_ext <<_ACEOF
6082 /* end confdefs.h. */
6083 #include <stdlib.h>
6084
6085 _ACEOF
6086 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
6087 $EGREP "free" >/dev/null 2>&1; then
6088 :
6089 else
6090 ac_cv_header_stdc=no
6091 fi
6092 rm -f conftest*
6093
6094 fi
6095
6096 if test $ac_cv_header_stdc = yes; then
6097 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
6098 if test "$cross_compiling" = yes; then
6099 :
6100 else
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h. */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h. */
6107 #include <ctype.h>
6108 #include <stdlib.h>
6109 #if ((' ' & 0x0FF) == 0x020)
6110 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
6111 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
6112 #else
6113 # define ISLOWER(c) \
6114 (('a' <= (c) && (c) <= 'i') \
6115 || ('j' <= (c) && (c) <= 'r') \
6116 || ('s' <= (c) && (c) <= 'z'))
6117 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
6118 #endif
6119
6120 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
6121 int
6122 main ()
6123 {
6124 int i;
6125 for (i = 0; i < 256; i++)
6126 if (XOR (islower (i), ISLOWER (i))
6127 || toupper (i) != TOUPPER (i))
6128 return 2;
6129 return 0;
6130 }
6131 _ACEOF
6132 rm -f conftest$ac_exeext
6133 if { (ac_try="$ac_link"
6134 case "(($ac_try" in
6135 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6136 *) ac_try_echo=$ac_try;;
6137 esac
6138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6139 (eval "$ac_link") 2>&5
6140 ac_status=$?
6141 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6142 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
6143 { (case "(($ac_try" in
6144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6145 *) ac_try_echo=$ac_try;;
6146 esac
6147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6148 (eval "$ac_try") 2>&5
6149 ac_status=$?
6150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6151 (exit $ac_status); }; }; then
6152 :
6153 else
6154 echo "$as_me: program exited with status $ac_status" >&5
6155 echo "$as_me: failed program was:" >&5
6156 sed 's/^/| /' conftest.$ac_ext >&5
6157
6158 ( exit $ac_status )
6159 ac_cv_header_stdc=no
6160 fi
6161 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
6162 fi
6163
6164
6165 fi
6166 fi
6167 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
6168 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
6169 if test $ac_cv_header_stdc = yes; then
6170
6171 cat >>confdefs.h <<\_ACEOF
6172 #define STDC_HEADERS 1
6173 _ACEOF
6174
6175 fi
6176
6177 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
6178
6179
6180
6181
6182
6183
6184
6185
6186
6187 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
6188 inttypes.h stdint.h unistd.h
6189 do
6190 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6194 echo $ECHO_N "(cached) $ECHO_C" >&6
6195 else
6196 cat >conftest.$ac_ext <<_ACEOF
6197 /* confdefs.h. */
6198 _ACEOF
6199 cat confdefs.h >>conftest.$ac_ext
6200 cat >>conftest.$ac_ext <<_ACEOF
6201 /* end confdefs.h. */
6202 $ac_includes_default
6203
6204 #include <$ac_header>
6205 _ACEOF
6206 rm -f conftest.$ac_objext
6207 if { (ac_try="$ac_compile"
6208 case "(($ac_try" in
6209 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6210 *) ac_try_echo=$ac_try;;
6211 esac
6212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6213 (eval "$ac_compile") 2>conftest.er1
6214 ac_status=$?
6215 grep -v '^ *+' conftest.er1 >conftest.err
6216 rm -f conftest.er1
6217 cat conftest.err >&5
6218 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6219 (exit $ac_status); } && {
6220 test -z "$ac_c_werror_flag" ||
6221 test ! -s conftest.err
6222 } && test -s conftest.$ac_objext; then
6223 eval "$as_ac_Header=yes"
6224 else
6225 echo "$as_me: failed program was:" >&5
6226 sed 's/^/| /' conftest.$ac_ext >&5
6227
6228 eval "$as_ac_Header=no"
6229 fi
6230
6231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
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 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6237 cat >>confdefs.h <<_ACEOF
6238 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6239 _ACEOF
6240
6241 fi
6242
6243 done
6244
6245
6246
6247
6248
6249 for ac_header in machine/soundcard.h sys/soundcard.h soundcard.h
6250 do
6251 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6253 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6254 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6256 echo $ECHO_N "(cached) $ECHO_C" >&6
6257 fi
6258 ac_res=`eval echo '${'$as_ac_Header'}'`
6259 { echo "$as_me:$LINENO: result: $ac_res" >&5
6260 echo "${ECHO_T}$ac_res" >&6; }
6261 else
6262 # Is the header compilable?
6263 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6264 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6265 cat >conftest.$ac_ext <<_ACEOF
6266 /* confdefs.h. */
6267 _ACEOF
6268 cat confdefs.h >>conftest.$ac_ext
6269 cat >>conftest.$ac_ext <<_ACEOF
6270 /* end confdefs.h. */
6271 $ac_includes_default
6272 #include <$ac_header>
6273 _ACEOF
6274 rm -f conftest.$ac_objext
6275 if { (ac_try="$ac_compile"
6276 case "(($ac_try" in
6277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6278 *) ac_try_echo=$ac_try;;
6279 esac
6280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6281 (eval "$ac_compile") 2>conftest.er1
6282 ac_status=$?
6283 grep -v '^ *+' conftest.er1 >conftest.err
6284 rm -f conftest.er1
6285 cat conftest.err >&5
6286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6287 (exit $ac_status); } && {
6288 test -z "$ac_c_werror_flag" ||
6289 test ! -s conftest.err
6290 } && test -s conftest.$ac_objext; then
6291 ac_header_compiler=yes
6292 else
6293 echo "$as_me: failed program was:" >&5
6294 sed 's/^/| /' conftest.$ac_ext >&5
6295
6296 ac_header_compiler=no
6297 fi
6298
6299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6300 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6301 echo "${ECHO_T}$ac_header_compiler" >&6; }
6302
6303 # Is the header present?
6304 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6305 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6306 cat >conftest.$ac_ext <<_ACEOF
6307 /* confdefs.h. */
6308 _ACEOF
6309 cat confdefs.h >>conftest.$ac_ext
6310 cat >>conftest.$ac_ext <<_ACEOF
6311 /* end confdefs.h. */
6312 #include <$ac_header>
6313 _ACEOF
6314 if { (ac_try="$ac_cpp conftest.$ac_ext"
6315 case "(($ac_try" in
6316 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6317 *) ac_try_echo=$ac_try;;
6318 esac
6319 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6320 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6321 ac_status=$?
6322 grep -v '^ *+' conftest.er1 >conftest.err
6323 rm -f conftest.er1
6324 cat conftest.err >&5
6325 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6326 (exit $ac_status); } >/dev/null && {
6327 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6328 test ! -s conftest.err
6329 }; then
6330 ac_header_preproc=yes
6331 else
6332 echo "$as_me: failed program was:" >&5
6333 sed 's/^/| /' conftest.$ac_ext >&5
6334
6335 ac_header_preproc=no
6336 fi
6337
6338 rm -f conftest.err conftest.$ac_ext
6339 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6340 echo "${ECHO_T}$ac_header_preproc" >&6; }
6341
6342 # So? What about this header?
6343 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6344 yes:no: )
6345 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6346 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6347 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6348 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6349 ac_header_preproc=yes
6350 ;;
6351 no:yes:* )
6352 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6353 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6354 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6355 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6356 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6357 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6358 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6359 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6360 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6361 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6362 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6363 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6364
6365 ;;
6366 esac
6367 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6368 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6369 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6370 echo $ECHO_N "(cached) $ECHO_C" >&6
6371 else
6372 eval "$as_ac_Header=\$ac_header_preproc"
6373 fi
6374 ac_res=`eval echo '${'$as_ac_Header'}'`
6375 { echo "$as_me:$LINENO: result: $ac_res" >&5
6376 echo "${ECHO_T}$ac_res" >&6; }
6377
6378 fi
6379 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6380 cat >>confdefs.h <<_ACEOF
6381 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6382 _ACEOF
6383
6384 fi
6385
6386 done
6387
6388 # Emulation library used on NetBSD.
6389 { echo "$as_me:$LINENO: checking for _oss_ioctl in -lossaudio" >&5
6390 echo $ECHO_N "checking for _oss_ioctl in -lossaudio... $ECHO_C" >&6; }
6391 if test "${ac_cv_lib_ossaudio__oss_ioctl+set}" = set; then
6392 echo $ECHO_N "(cached) $ECHO_C" >&6
6393 else
6394 ac_check_lib_save_LIBS=$LIBS
6395 LIBS="-lossaudio $LIBS"
6396 cat >conftest.$ac_ext <<_ACEOF
6397 /* confdefs.h. */
6398 _ACEOF
6399 cat confdefs.h >>conftest.$ac_ext
6400 cat >>conftest.$ac_ext <<_ACEOF
6401 /* end confdefs.h. */
6402
6403 /* Override any GCC internal prototype to avoid an error.
6404 Use char because int might match the return type of a GCC
6405 builtin and then its argument prototype would still apply. */
6406 #ifdef __cplusplus
6407 extern "C"
6408 #endif
6409 char _oss_ioctl ();
6410 int
6411 main ()
6412 {
6413 return _oss_ioctl ();
6414 ;
6415 return 0;
6416 }
6417 _ACEOF
6418 rm -f conftest.$ac_objext conftest$ac_exeext
6419 if { (ac_try="$ac_link"
6420 case "(($ac_try" in
6421 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6422 *) ac_try_echo=$ac_try;;
6423 esac
6424 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6425 (eval "$ac_link") 2>conftest.er1
6426 ac_status=$?
6427 grep -v '^ *+' conftest.er1 >conftest.err
6428 rm -f conftest.er1
6429 cat conftest.err >&5
6430 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6431 (exit $ac_status); } && {
6432 test -z "$ac_c_werror_flag" ||
6433 test ! -s conftest.err
6434 } && test -s conftest$ac_exeext &&
6435 $as_test_x conftest$ac_exeext; then
6436 ac_cv_lib_ossaudio__oss_ioctl=yes
6437 else
6438 echo "$as_me: failed program was:" >&5
6439 sed 's/^/| /' conftest.$ac_ext >&5
6440
6441 ac_cv_lib_ossaudio__oss_ioctl=no
6442 fi
6443
6444 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
6445 conftest$ac_exeext conftest.$ac_ext
6446 LIBS=$ac_check_lib_save_LIBS
6447 fi
6448 { echo "$as_me:$LINENO: result: $ac_cv_lib_ossaudio__oss_ioctl" >&5
6449 echo "${ECHO_T}$ac_cv_lib_ossaudio__oss_ioctl" >&6; }
6450 if test $ac_cv_lib_ossaudio__oss_ioctl = yes; then
6451 LIBSOUND=-lossaudio
6452 else
6453 LIBSOUND=
6454 fi
6455
6456
6457
6458 ALSA_REQUIRED=1.0.0
6459 ALSA_MODULES="alsa >= $ALSA_REQUIRED"
6460 if test "X${with_pkg_config_prog}" != X; then
6461 PKG_CONFIG="${with_pkg_config_prog}"
6462 fi
6463
6464 succeeded=no
6465
6466 if test -z "$PKG_CONFIG"; then
6467 # Extract the first word of "pkg-config", so it can be a program name with args.
6468 set dummy pkg-config; ac_word=$2
6469 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6470 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6471 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
6472 echo $ECHO_N "(cached) $ECHO_C" >&6
6473 else
6474 case $PKG_CONFIG in
6475 [\\/]* | ?:[\\/]*)
6476 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
6477 ;;
6478 *)
6479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6480 for as_dir in $PATH
6481 do
6482 IFS=$as_save_IFS
6483 test -z "$as_dir" && as_dir=.
6484 for ac_exec_ext in '' $ac_executable_extensions; do
6485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
6486 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
6487 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6488 break 2
6489 fi
6490 done
6491 done
6492 IFS=$as_save_IFS
6493
6494 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
6495 ;;
6496 esac
6497 fi
6498 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
6499 if test -n "$PKG_CONFIG"; then
6500 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
6501 echo "${ECHO_T}$PKG_CONFIG" >&6; }
6502 else
6503 { echo "$as_me:$LINENO: result: no" >&5
6504 echo "${ECHO_T}no" >&6; }
6505 fi
6506
6507
6508 fi
6509
6510 if test "$PKG_CONFIG" = "no" ; then
6511 HAVE_ALSA=no
6512 else
6513 PKG_CONFIG_MIN_VERSION=0.9.0
6514 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
6515 { echo "$as_me:$LINENO: checking for $ALSA_MODULES" >&5
6516 echo $ECHO_N "checking for $ALSA_MODULES... $ECHO_C" >&6; }
6517
6518 if $PKG_CONFIG --exists "$ALSA_MODULES" 2>&5; then
6519 { echo "$as_me:$LINENO: result: yes" >&5
6520 echo "${ECHO_T}yes" >&6; }
6521 succeeded=yes
6522
6523 { echo "$as_me:$LINENO: checking ALSA_CFLAGS" >&5
6524 echo $ECHO_N "checking ALSA_CFLAGS... $ECHO_C" >&6; }
6525 ALSA_CFLAGS=`$PKG_CONFIG --cflags "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6526 { echo "$as_me:$LINENO: result: $ALSA_CFLAGS" >&5
6527 echo "${ECHO_T}$ALSA_CFLAGS" >&6; }
6528
6529 { echo "$as_me:$LINENO: checking ALSA_LIBS" >&5
6530 echo $ECHO_N "checking ALSA_LIBS... $ECHO_C" >&6; }
6531 ALSA_LIBS=`$PKG_CONFIG --libs "$ALSA_MODULES"|sed -e 's,///*,/,g'`
6532 { echo "$as_me:$LINENO: result: $ALSA_LIBS" >&5
6533 echo "${ECHO_T}$ALSA_LIBS" >&6; }
6534 else
6535 { echo "$as_me:$LINENO: result: no" >&5
6536 echo "${ECHO_T}no" >&6; }
6537 ALSA_CFLAGS=""
6538 ALSA_LIBS=""
6539 ## If we have a custom action on failure, don't print errors, but
6540 ## do set a variable so people can do so.
6541 ALSA_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$ALSA_MODULES"`
6542
6543 fi
6544
6545
6546
6547 else
6548 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
6549 echo "*** See http://www.freedesktop.org/software/pkgconfig"
6550 fi
6551 fi
6552
6553 if test $succeeded = yes; then
6554 HAVE_ALSA=yes
6555 else
6556 HAVE_ALSA=no
6557 fi
6558
6559 if test $HAVE_ALSA = yes; then
6560 SAVE_CFLAGS="$CFLAGS"
6561 SAVE_LDFLAGS="$LDFLAGS"
6562 CFLAGS="$ALSA_CFLAGS $CFLAGS"
6563 LDFLAGS="$ALSA_LIBS $LDFLAGS"
6564 cat >conftest.$ac_ext <<_ACEOF
6565 /* confdefs.h. */
6566 _ACEOF
6567 cat confdefs.h >>conftest.$ac_ext
6568 cat >>conftest.$ac_ext <<_ACEOF
6569 /* end confdefs.h. */
6570 #include <asoundlib.h>
6571 int
6572 main ()
6573 {
6574 snd_lib_error_set_handler (0);
6575 ;
6576 return 0;
6577 }
6578 _ACEOF
6579 rm -f conftest.$ac_objext
6580 if { (ac_try="$ac_compile"
6581 case "(($ac_try" in
6582 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6583 *) ac_try_echo=$ac_try;;
6584 esac
6585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6586 (eval "$ac_compile") 2>conftest.er1
6587 ac_status=$?
6588 grep -v '^ *+' conftest.er1 >conftest.err
6589 rm -f conftest.er1
6590 cat conftest.err >&5
6591 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6592 (exit $ac_status); } && {
6593 test -z "$ac_c_werror_flag" ||
6594 test ! -s conftest.err
6595 } && test -s conftest.$ac_objext; then
6596 emacs_alsa_normal=yes
6597 else
6598 echo "$as_me: failed program was:" >&5
6599 sed 's/^/| /' conftest.$ac_ext >&5
6600
6601 emacs_alsa_normal=no
6602 fi
6603
6604 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6605 if test "$emacs_alsa_normal" != yes; then
6606 cat >conftest.$ac_ext <<_ACEOF
6607 /* confdefs.h. */
6608 _ACEOF
6609 cat confdefs.h >>conftest.$ac_ext
6610 cat >>conftest.$ac_ext <<_ACEOF
6611 /* end confdefs.h. */
6612 #include <alsa/asoundlib.h>
6613 int
6614 main ()
6615 {
6616 snd_lib_error_set_handler (0);
6617 ;
6618 return 0;
6619 }
6620 _ACEOF
6621 rm -f conftest.$ac_objext
6622 if { (ac_try="$ac_compile"
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_compile") 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); } && {
6635 test -z "$ac_c_werror_flag" ||
6636 test ! -s conftest.err
6637 } && test -s conftest.$ac_objext; then
6638 emacs_alsa_subdir=yes
6639 else
6640 echo "$as_me: failed program was:" >&5
6641 sed 's/^/| /' conftest.$ac_ext >&5
6642
6643 emacs_alsa_subdir=no
6644 fi
6645
6646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6647 if test "$emacs_alsa_subdir" != yes; then
6648 { { echo "$as_me:$LINENO: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&5
6649 echo "$as_me: error: pkg-config found alsa, but it does not compile. See config.log for error messages." >&2;}
6650 { (exit 1); exit 1; }; }
6651 fi
6652 ALSA_CFLAGS="$ALSA_CFLAGS -DALSA_SUBDIR_INCLUDE"
6653 fi
6654
6655 CFLAGS="$SAVE_CFLAGS"
6656 LDFLAGS="$SAVE_LDFLAGS"
6657 LIBSOUND="$LIBSOUND $ALSA_LIBS"
6658 CFLAGS_SOUND="$CFLAGS_SOUND $ALSA_CFLAGS"
6659
6660 cat >>confdefs.h <<\_ACEOF
6661 #define HAVE_ALSA 1
6662 _ACEOF
6663
6664 fi
6665
6666 fi
6667
6668
6669
6670
6671
6672
6673
6674
6675
6676
6677
6678
6679
6680
6681
6682
6683
6684
6685
6686
6687
6688
6689
6690
6691
6692
6693 for ac_header in sys/select.h sys/timeb.h sys/time.h unistd.h utime.h \
6694 linux/version.h sys/systeminfo.h termios.h limits.h string.h stdlib.h \
6695 termcap.h stdio_ext.h fcntl.h strings.h coff.h pty.h sys/mman.h \
6696 sys/param.h sys/vlimit.h sys/resource.h locale.h sys/_mbstate_t.h \
6697 sys/utsname.h pwd.h
6698 do
6699 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6700 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6701 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6702 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6703 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6704 echo $ECHO_N "(cached) $ECHO_C" >&6
6705 fi
6706 ac_res=`eval echo '${'$as_ac_Header'}'`
6707 { echo "$as_me:$LINENO: result: $ac_res" >&5
6708 echo "${ECHO_T}$ac_res" >&6; }
6709 else
6710 # Is the header compilable?
6711 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6712 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6713 cat >conftest.$ac_ext <<_ACEOF
6714 /* confdefs.h. */
6715 _ACEOF
6716 cat confdefs.h >>conftest.$ac_ext
6717 cat >>conftest.$ac_ext <<_ACEOF
6718 /* end confdefs.h. */
6719 $ac_includes_default
6720 #include <$ac_header>
6721 _ACEOF
6722 rm -f conftest.$ac_objext
6723 if { (ac_try="$ac_compile"
6724 case "(($ac_try" in
6725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6726 *) ac_try_echo=$ac_try;;
6727 esac
6728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6729 (eval "$ac_compile") 2>conftest.er1
6730 ac_status=$?
6731 grep -v '^ *+' conftest.er1 >conftest.err
6732 rm -f conftest.er1
6733 cat conftest.err >&5
6734 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6735 (exit $ac_status); } && {
6736 test -z "$ac_c_werror_flag" ||
6737 test ! -s conftest.err
6738 } && test -s conftest.$ac_objext; then
6739 ac_header_compiler=yes
6740 else
6741 echo "$as_me: failed program was:" >&5
6742 sed 's/^/| /' conftest.$ac_ext >&5
6743
6744 ac_header_compiler=no
6745 fi
6746
6747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6748 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6749 echo "${ECHO_T}$ac_header_compiler" >&6; }
6750
6751 # Is the header present?
6752 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6753 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6754 cat >conftest.$ac_ext <<_ACEOF
6755 /* confdefs.h. */
6756 _ACEOF
6757 cat confdefs.h >>conftest.$ac_ext
6758 cat >>conftest.$ac_ext <<_ACEOF
6759 /* end confdefs.h. */
6760 #include <$ac_header>
6761 _ACEOF
6762 if { (ac_try="$ac_cpp conftest.$ac_ext"
6763 case "(($ac_try" in
6764 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6765 *) ac_try_echo=$ac_try;;
6766 esac
6767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6768 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6769 ac_status=$?
6770 grep -v '^ *+' conftest.er1 >conftest.err
6771 rm -f conftest.er1
6772 cat conftest.err >&5
6773 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6774 (exit $ac_status); } >/dev/null && {
6775 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6776 test ! -s conftest.err
6777 }; then
6778 ac_header_preproc=yes
6779 else
6780 echo "$as_me: failed program was:" >&5
6781 sed 's/^/| /' conftest.$ac_ext >&5
6782
6783 ac_header_preproc=no
6784 fi
6785
6786 rm -f conftest.err conftest.$ac_ext
6787 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6788 echo "${ECHO_T}$ac_header_preproc" >&6; }
6789
6790 # So? What about this header?
6791 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
6792 yes:no: )
6793 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6794 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6795 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6796 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6797 ac_header_preproc=yes
6798 ;;
6799 no:yes:* )
6800 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6801 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6802 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6803 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6804 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6805 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6806 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6807 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6808 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6809 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6810 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6811 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6812
6813 ;;
6814 esac
6815 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6816 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6817 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6818 echo $ECHO_N "(cached) $ECHO_C" >&6
6819 else
6820 eval "$as_ac_Header=\$ac_header_preproc"
6821 fi
6822 ac_res=`eval echo '${'$as_ac_Header'}'`
6823 { echo "$as_me:$LINENO: result: $ac_res" >&5
6824 echo "${ECHO_T}$ac_res" >&6; }
6825
6826 fi
6827 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6828 cat >>confdefs.h <<_ACEOF
6829 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6830 _ACEOF
6831
6832 fi
6833
6834 done
6835
6836
6837 { echo "$as_me:$LINENO: checking if personality LINUX32 can be set" >&5
6838 echo $ECHO_N "checking if personality LINUX32 can be set... $ECHO_C" >&6; }
6839 cat >conftest.$ac_ext <<_ACEOF
6840 /* confdefs.h. */
6841 _ACEOF
6842 cat confdefs.h >>conftest.$ac_ext
6843 cat >>conftest.$ac_ext <<_ACEOF
6844 /* end confdefs.h. */
6845 #include <sys/personality.h>
6846 int
6847 main ()
6848 {
6849 personality (PER_LINUX32)
6850 ;
6851 return 0;
6852 }
6853 _ACEOF
6854 rm -f conftest.$ac_objext
6855 if { (ac_try="$ac_compile"
6856 case "(($ac_try" in
6857 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6858 *) ac_try_echo=$ac_try;;
6859 esac
6860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6861 (eval "$ac_compile") 2>conftest.er1
6862 ac_status=$?
6863 grep -v '^ *+' conftest.er1 >conftest.err
6864 rm -f conftest.er1
6865 cat conftest.err >&5
6866 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6867 (exit $ac_status); } && {
6868 test -z "$ac_c_werror_flag" ||
6869 test ! -s conftest.err
6870 } && test -s conftest.$ac_objext; then
6871 emacs_cv_personality_linux32=yes
6872 else
6873 echo "$as_me: failed program was:" >&5
6874 sed 's/^/| /' conftest.$ac_ext >&5
6875
6876 emacs_cv_personality_linux32=no
6877 fi
6878
6879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6880 { echo "$as_me:$LINENO: result: $emacs_cv_personality_linux32" >&5
6881 echo "${ECHO_T}$emacs_cv_personality_linux32" >&6; }
6882
6883 if test $emacs_cv_personality_linux32 = yes; then
6884
6885 cat >>confdefs.h <<\_ACEOF
6886 #define HAVE_PERSONALITY_LINUX32 1
6887 _ACEOF
6888
6889 fi
6890
6891
6892 for ac_header in term.h
6893 do
6894 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6898 echo $ECHO_N "(cached) $ECHO_C" >&6
6899 else
6900 cat >conftest.$ac_ext <<_ACEOF
6901 /* confdefs.h. */
6902 _ACEOF
6903 cat confdefs.h >>conftest.$ac_ext
6904 cat >>conftest.$ac_ext <<_ACEOF
6905 /* end confdefs.h. */
6906 #include <$ac_header>
6907 _ACEOF
6908 if { (ac_try="$ac_cpp conftest.$ac_ext"
6909 case "(($ac_try" in
6910 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6911 *) ac_try_echo=$ac_try;;
6912 esac
6913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6914 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6915 ac_status=$?
6916 grep -v '^ *+' conftest.er1 >conftest.err
6917 rm -f conftest.er1
6918 cat conftest.err >&5
6919 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6920 (exit $ac_status); } >/dev/null && {
6921 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
6922 test ! -s conftest.err
6923 }; then
6924 eval "$as_ac_Header=yes"
6925 else
6926 echo "$as_me: failed program was:" >&5
6927 sed 's/^/| /' conftest.$ac_ext >&5
6928
6929 eval "$as_ac_Header=no"
6930 fi
6931
6932 rm -f conftest.err conftest.$ac_ext
6933 fi
6934 ac_res=`eval echo '${'$as_ac_Header'}'`
6935 { echo "$as_me:$LINENO: result: $ac_res" >&5
6936 echo "${ECHO_T}$ac_res" >&6; }
6937 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6938 cat >>confdefs.h <<_ACEOF
6939 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6940 _ACEOF
6941
6942 fi
6943
6944 done
6945
6946 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
6947 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
6948 if test "${ac_cv_header_stdc+set}" = set; then
6949 echo $ECHO_N "(cached) $ECHO_C" >&6
6950 else
6951 cat >conftest.$ac_ext <<_ACEOF
6952 /* confdefs.h. */
6953 _ACEOF
6954 cat confdefs.h >>conftest.$ac_ext
6955 cat >>conftest.$ac_ext <<_ACEOF
6956 /* end confdefs.h. */
6957 #include <stdlib.h>
6958 #include <stdarg.h>
6959 #include <string.h>
6960 #include <float.h>
6961
6962 int
6963 main ()
6964 {
6965
6966 ;
6967 return 0;
6968 }
6969 _ACEOF
6970 rm -f conftest.$ac_objext
6971 if { (ac_try="$ac_compile"
6972 case "(($ac_try" in
6973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6974 *) ac_try_echo=$ac_try;;
6975 esac
6976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6977 (eval "$ac_compile") 2>conftest.er1
6978 ac_status=$?
6979 grep -v '^ *+' conftest.er1 >conftest.err
6980 rm -f conftest.er1
6981 cat conftest.err >&5
6982 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6983 (exit $ac_status); } && {
6984 test -z "$ac_c_werror_flag" ||
6985 test ! -s conftest.err
6986 } && test -s conftest.$ac_objext; then
6987 ac_cv_header_stdc=yes
6988 else
6989 echo "$as_me: failed program was:" >&5
6990 sed 's/^/| /' conftest.$ac_ext >&5
6991
6992 ac_cv_header_stdc=no
6993 fi
6994
6995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6996
6997 if test $ac_cv_header_stdc = yes; then
6998 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
6999 cat >conftest.$ac_ext <<_ACEOF
7000 /* confdefs.h. */
7001 _ACEOF
7002 cat confdefs.h >>conftest.$ac_ext
7003 cat >>conftest.$ac_ext <<_ACEOF
7004 /* end confdefs.h. */
7005 #include <string.h>
7006
7007 _ACEOF
7008 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7009 $EGREP "memchr" >/dev/null 2>&1; then
7010 :
7011 else
7012 ac_cv_header_stdc=no
7013 fi
7014 rm -f conftest*
7015
7016 fi
7017
7018 if test $ac_cv_header_stdc = yes; then
7019 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7020 cat >conftest.$ac_ext <<_ACEOF
7021 /* confdefs.h. */
7022 _ACEOF
7023 cat confdefs.h >>conftest.$ac_ext
7024 cat >>conftest.$ac_ext <<_ACEOF
7025 /* end confdefs.h. */
7026 #include <stdlib.h>
7027
7028 _ACEOF
7029 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7030 $EGREP "free" >/dev/null 2>&1; then
7031 :
7032 else
7033 ac_cv_header_stdc=no
7034 fi
7035 rm -f conftest*
7036
7037 fi
7038
7039 if test $ac_cv_header_stdc = yes; then
7040 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7041 if test "$cross_compiling" = yes; then
7042 :
7043 else
7044 cat >conftest.$ac_ext <<_ACEOF
7045 /* confdefs.h. */
7046 _ACEOF
7047 cat confdefs.h >>conftest.$ac_ext
7048 cat >>conftest.$ac_ext <<_ACEOF
7049 /* end confdefs.h. */
7050 #include <ctype.h>
7051 #include <stdlib.h>
7052 #if ((' ' & 0x0FF) == 0x020)
7053 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7054 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7055 #else
7056 # define ISLOWER(c) \
7057 (('a' <= (c) && (c) <= 'i') \
7058 || ('j' <= (c) && (c) <= 'r') \
7059 || ('s' <= (c) && (c) <= 'z'))
7060 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7061 #endif
7062
7063 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7064 int
7065 main ()
7066 {
7067 int i;
7068 for (i = 0; i < 256; i++)
7069 if (XOR (islower (i), ISLOWER (i))
7070 || toupper (i) != TOUPPER (i))
7071 return 2;
7072 return 0;
7073 }
7074 _ACEOF
7075 rm -f conftest$ac_exeext
7076 if { (ac_try="$ac_link"
7077 case "(($ac_try" in
7078 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7079 *) ac_try_echo=$ac_try;;
7080 esac
7081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7082 (eval "$ac_link") 2>&5
7083 ac_status=$?
7084 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7085 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
7086 { (case "(($ac_try" in
7087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7088 *) ac_try_echo=$ac_try;;
7089 esac
7090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7091 (eval "$ac_try") 2>&5
7092 ac_status=$?
7093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7094 (exit $ac_status); }; }; then
7095 :
7096 else
7097 echo "$as_me: program exited with status $ac_status" >&5
7098 echo "$as_me: failed program was:" >&5
7099 sed 's/^/| /' conftest.$ac_ext >&5
7100
7101 ( exit $ac_status )
7102 ac_cv_header_stdc=no
7103 fi
7104 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
7105 fi
7106
7107
7108 fi
7109 fi
7110 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
7111 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
7112 if test $ac_cv_header_stdc = yes; then
7113
7114 cat >>confdefs.h <<\_ACEOF
7115 #define STDC_HEADERS 1
7116 _ACEOF
7117
7118 fi
7119
7120 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
7121 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
7122 if test "${ac_cv_header_time+set}" = set; then
7123 echo $ECHO_N "(cached) $ECHO_C" >&6
7124 else
7125 cat >conftest.$ac_ext <<_ACEOF
7126 /* confdefs.h. */
7127 _ACEOF
7128 cat confdefs.h >>conftest.$ac_ext
7129 cat >>conftest.$ac_ext <<_ACEOF
7130 /* end confdefs.h. */
7131 #include <sys/types.h>
7132 #include <sys/time.h>
7133 #include <time.h>
7134
7135 int
7136 main ()
7137 {
7138 if ((struct tm *) 0)
7139 return 0;
7140 ;
7141 return 0;
7142 }
7143 _ACEOF
7144 rm -f conftest.$ac_objext
7145 if { (ac_try="$ac_compile"
7146 case "(($ac_try" in
7147 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7148 *) ac_try_echo=$ac_try;;
7149 esac
7150 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7151 (eval "$ac_compile") 2>conftest.er1
7152 ac_status=$?
7153 grep -v '^ *+' conftest.er1 >conftest.err
7154 rm -f conftest.er1
7155 cat conftest.err >&5
7156 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7157 (exit $ac_status); } && {
7158 test -z "$ac_c_werror_flag" ||
7159 test ! -s conftest.err
7160 } && test -s conftest.$ac_objext; then
7161 ac_cv_header_time=yes
7162 else
7163 echo "$as_me: failed program was:" >&5
7164 sed 's/^/| /' conftest.$ac_ext >&5
7165
7166 ac_cv_header_time=no
7167 fi
7168
7169 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7170 fi
7171 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
7172 echo "${ECHO_T}$ac_cv_header_time" >&6; }
7173 if test $ac_cv_header_time = yes; then
7174
7175 cat >>confdefs.h <<\_ACEOF
7176 #define TIME_WITH_SYS_TIME 1
7177 _ACEOF
7178
7179 fi
7180
7181 { echo "$as_me:$LINENO: checking whether sys_siglist is declared" >&5
7182 echo $ECHO_N "checking whether sys_siglist is declared... $ECHO_C" >&6; }
7183 if test "${ac_cv_have_decl_sys_siglist+set}" = set; then
7184 echo $ECHO_N "(cached) $ECHO_C" >&6
7185 else
7186 cat >conftest.$ac_ext <<_ACEOF
7187 /* confdefs.h. */
7188 _ACEOF
7189 cat confdefs.h >>conftest.$ac_ext
7190 cat >>conftest.$ac_ext <<_ACEOF
7191 /* end confdefs.h. */
7192 $ac_includes_default
7193 int
7194 main ()
7195 {
7196 #ifndef sys_siglist
7197 (void) sys_siglist;
7198 #endif
7199
7200 ;
7201 return 0;
7202 }
7203 _ACEOF
7204 rm -f conftest.$ac_objext
7205 if { (ac_try="$ac_compile"
7206 case "(($ac_try" in
7207 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7208 *) ac_try_echo=$ac_try;;
7209 esac
7210 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7211 (eval "$ac_compile") 2>conftest.er1
7212 ac_status=$?
7213 grep -v '^ *+' conftest.er1 >conftest.err
7214 rm -f conftest.er1
7215 cat conftest.err >&5
7216 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7217 (exit $ac_status); } && {
7218 test -z "$ac_c_werror_flag" ||
7219 test ! -s conftest.err
7220 } && test -s conftest.$ac_objext; then
7221 ac_cv_have_decl_sys_siglist=yes
7222 else
7223 echo "$as_me: failed program was:" >&5
7224 sed 's/^/| /' conftest.$ac_ext >&5
7225
7226 ac_cv_have_decl_sys_siglist=no
7227 fi
7228
7229 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7230 fi
7231 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_sys_siglist" >&5
7232 echo "${ECHO_T}$ac_cv_have_decl_sys_siglist" >&6; }
7233 if test $ac_cv_have_decl_sys_siglist = yes; then
7234
7235 cat >>confdefs.h <<_ACEOF
7236 #define HAVE_DECL_SYS_SIGLIST 1
7237 _ACEOF
7238
7239
7240 else
7241 cat >>confdefs.h <<_ACEOF
7242 #define HAVE_DECL_SYS_SIGLIST 0
7243 _ACEOF
7244
7245
7246 fi
7247
7248
7249 if test $ac_cv_have_decl_sys_siglist != yes; then
7250 # For Tru64, at least:
7251 { echo "$as_me:$LINENO: checking whether __sys_siglist is declared" >&5
7252 echo $ECHO_N "checking whether __sys_siglist is declared... $ECHO_C" >&6; }
7253 if test "${ac_cv_have_decl___sys_siglist+set}" = set; then
7254 echo $ECHO_N "(cached) $ECHO_C" >&6
7255 else
7256 cat >conftest.$ac_ext <<_ACEOF
7257 /* confdefs.h. */
7258 _ACEOF
7259 cat confdefs.h >>conftest.$ac_ext
7260 cat >>conftest.$ac_ext <<_ACEOF
7261 /* end confdefs.h. */
7262 $ac_includes_default
7263 int
7264 main ()
7265 {
7266 #ifndef __sys_siglist
7267 (void) __sys_siglist;
7268 #endif
7269
7270 ;
7271 return 0;
7272 }
7273 _ACEOF
7274 rm -f conftest.$ac_objext
7275 if { (ac_try="$ac_compile"
7276 case "(($ac_try" in
7277 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7278 *) ac_try_echo=$ac_try;;
7279 esac
7280 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7281 (eval "$ac_compile") 2>conftest.er1
7282 ac_status=$?
7283 grep -v '^ *+' conftest.er1 >conftest.err
7284 rm -f conftest.er1
7285 cat conftest.err >&5
7286 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7287 (exit $ac_status); } && {
7288 test -z "$ac_c_werror_flag" ||
7289 test ! -s conftest.err
7290 } && test -s conftest.$ac_objext; then
7291 ac_cv_have_decl___sys_siglist=yes
7292 else
7293 echo "$as_me: failed program was:" >&5
7294 sed 's/^/| /' conftest.$ac_ext >&5
7295
7296 ac_cv_have_decl___sys_siglist=no
7297 fi
7298
7299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7300 fi
7301 { echo "$as_me:$LINENO: result: $ac_cv_have_decl___sys_siglist" >&5
7302 echo "${ECHO_T}$ac_cv_have_decl___sys_siglist" >&6; }
7303 if test $ac_cv_have_decl___sys_siglist = yes; then
7304
7305 cat >>confdefs.h <<_ACEOF
7306 #define HAVE_DECL___SYS_SIGLIST 1
7307 _ACEOF
7308
7309
7310 else
7311 cat >>confdefs.h <<_ACEOF
7312 #define HAVE_DECL___SYS_SIGLIST 0
7313 _ACEOF
7314
7315
7316 fi
7317
7318
7319 if test $ac_cv_have_decl___sys_siglist = yes; then
7320
7321 cat >>confdefs.h <<\_ACEOF
7322 #define sys_siglist __sys_siglist
7323 _ACEOF
7324
7325 fi
7326 fi
7327 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
7328 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
7329 if test "${ac_cv_header_sys_wait_h+set}" = set; then
7330 echo $ECHO_N "(cached) $ECHO_C" >&6
7331 else
7332 cat >conftest.$ac_ext <<_ACEOF
7333 /* confdefs.h. */
7334 _ACEOF
7335 cat confdefs.h >>conftest.$ac_ext
7336 cat >>conftest.$ac_ext <<_ACEOF
7337 /* end confdefs.h. */
7338 #include <sys/types.h>
7339 #include <sys/wait.h>
7340 #ifndef WEXITSTATUS
7341 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
7342 #endif
7343 #ifndef WIFEXITED
7344 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
7345 #endif
7346
7347 int
7348 main ()
7349 {
7350 int s;
7351 wait (&s);
7352 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
7353 ;
7354 return 0;
7355 }
7356 _ACEOF
7357 rm -f conftest.$ac_objext
7358 if { (ac_try="$ac_compile"
7359 case "(($ac_try" in
7360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7361 *) ac_try_echo=$ac_try;;
7362 esac
7363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7364 (eval "$ac_compile") 2>conftest.er1
7365 ac_status=$?
7366 grep -v '^ *+' conftest.er1 >conftest.err
7367 rm -f conftest.er1
7368 cat conftest.err >&5
7369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7370 (exit $ac_status); } && {
7371 test -z "$ac_c_werror_flag" ||
7372 test ! -s conftest.err
7373 } && test -s conftest.$ac_objext; then
7374 ac_cv_header_sys_wait_h=yes
7375 else
7376 echo "$as_me: failed program was:" >&5
7377 sed 's/^/| /' conftest.$ac_ext >&5
7378
7379 ac_cv_header_sys_wait_h=no
7380 fi
7381
7382 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7383 fi
7384 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
7385 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
7386 if test $ac_cv_header_sys_wait_h = yes; then
7387
7388 cat >>confdefs.h <<\_ACEOF
7389 #define HAVE_SYS_WAIT_H 1
7390 _ACEOF
7391
7392 fi
7393
7394
7395 { echo "$as_me:$LINENO: checking for struct utimbuf" >&5
7396 echo $ECHO_N "checking for struct utimbuf... $ECHO_C" >&6; }
7397 if test "${emacs_cv_struct_utimbuf+set}" = set; then
7398 echo $ECHO_N "(cached) $ECHO_C" >&6
7399 else
7400 cat >conftest.$ac_ext <<_ACEOF
7401 /* confdefs.h. */
7402 _ACEOF
7403 cat confdefs.h >>conftest.$ac_ext
7404 cat >>conftest.$ac_ext <<_ACEOF
7405 /* end confdefs.h. */
7406 #ifdef TIME_WITH_SYS_TIME
7407 #include <sys/time.h>
7408 #include <time.h>
7409 #else
7410 #ifdef HAVE_SYS_TIME_H
7411 #include <sys/time.h>
7412 #else
7413 #include <time.h>
7414 #endif
7415 #endif
7416 #ifdef HAVE_UTIME_H
7417 #include <utime.h>
7418 #endif
7419 int
7420 main ()
7421 {
7422 static struct utimbuf x; x.actime = x.modtime;
7423 ;
7424 return 0;
7425 }
7426 _ACEOF
7427 rm -f conftest.$ac_objext
7428 if { (ac_try="$ac_compile"
7429 case "(($ac_try" in
7430 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7431 *) ac_try_echo=$ac_try;;
7432 esac
7433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7434 (eval "$ac_compile") 2>conftest.er1
7435 ac_status=$?
7436 grep -v '^ *+' conftest.er1 >conftest.err
7437 rm -f conftest.er1
7438 cat conftest.err >&5
7439 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7440 (exit $ac_status); } && {
7441 test -z "$ac_c_werror_flag" ||
7442 test ! -s conftest.err
7443 } && test -s conftest.$ac_objext; then
7444 emacs_cv_struct_utimbuf=yes
7445 else
7446 echo "$as_me: failed program was:" >&5
7447 sed 's/^/| /' conftest.$ac_ext >&5
7448
7449 emacs_cv_struct_utimbuf=no
7450 fi
7451
7452 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7453 fi
7454 { echo "$as_me:$LINENO: result: $emacs_cv_struct_utimbuf" >&5
7455 echo "${ECHO_T}$emacs_cv_struct_utimbuf" >&6; }
7456 if test $emacs_cv_struct_utimbuf = yes; then
7457
7458 cat >>confdefs.h <<\_ACEOF
7459 #define HAVE_STRUCT_UTIMBUF 1
7460 _ACEOF
7461
7462 fi
7463
7464 { echo "$as_me:$LINENO: checking return type of signal handlers" >&5
7465 echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6; }
7466 if test "${ac_cv_type_signal+set}" = set; then
7467 echo $ECHO_N "(cached) $ECHO_C" >&6
7468 else
7469 cat >conftest.$ac_ext <<_ACEOF
7470 /* confdefs.h. */
7471 _ACEOF
7472 cat confdefs.h >>conftest.$ac_ext
7473 cat >>conftest.$ac_ext <<_ACEOF
7474 /* end confdefs.h. */
7475 #include <sys/types.h>
7476 #include <signal.h>
7477
7478 int
7479 main ()
7480 {
7481 return *(signal (0, 0)) (0) == 1;
7482 ;
7483 return 0;
7484 }
7485 _ACEOF
7486 rm -f conftest.$ac_objext
7487 if { (ac_try="$ac_compile"
7488 case "(($ac_try" in
7489 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7490 *) ac_try_echo=$ac_try;;
7491 esac
7492 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7493 (eval "$ac_compile") 2>conftest.er1
7494 ac_status=$?
7495 grep -v '^ *+' conftest.er1 >conftest.err
7496 rm -f conftest.er1
7497 cat conftest.err >&5
7498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7499 (exit $ac_status); } && {
7500 test -z "$ac_c_werror_flag" ||
7501 test ! -s conftest.err
7502 } && test -s conftest.$ac_objext; then
7503 ac_cv_type_signal=int
7504 else
7505 echo "$as_me: failed program was:" >&5
7506 sed 's/^/| /' conftest.$ac_ext >&5
7507
7508 ac_cv_type_signal=void
7509 fi
7510
7511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7512 fi
7513 { echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5
7514 echo "${ECHO_T}$ac_cv_type_signal" >&6; }
7515
7516 cat >>confdefs.h <<_ACEOF
7517 #define RETSIGTYPE $ac_cv_type_signal
7518 _ACEOF
7519
7520
7521
7522 { echo "$as_me:$LINENO: checking for speed_t" >&5
7523 echo $ECHO_N "checking for speed_t... $ECHO_C" >&6; }
7524 if test "${emacs_cv_speed_t+set}" = set; then
7525 echo $ECHO_N "(cached) $ECHO_C" >&6
7526 else
7527 cat >conftest.$ac_ext <<_ACEOF
7528 /* confdefs.h. */
7529 _ACEOF
7530 cat confdefs.h >>conftest.$ac_ext
7531 cat >>conftest.$ac_ext <<_ACEOF
7532 /* end confdefs.h. */
7533 #include <termios.h>
7534 int
7535 main ()
7536 {
7537 speed_t x = 1;
7538 ;
7539 return 0;
7540 }
7541 _ACEOF
7542 rm -f conftest.$ac_objext
7543 if { (ac_try="$ac_compile"
7544 case "(($ac_try" in
7545 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7546 *) ac_try_echo=$ac_try;;
7547 esac
7548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7549 (eval "$ac_compile") 2>conftest.er1
7550 ac_status=$?
7551 grep -v '^ *+' conftest.er1 >conftest.err
7552 rm -f conftest.er1
7553 cat conftest.err >&5
7554 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7555 (exit $ac_status); } && {
7556 test -z "$ac_c_werror_flag" ||
7557 test ! -s conftest.err
7558 } && test -s conftest.$ac_objext; then
7559 emacs_cv_speed_t=yes
7560 else
7561 echo "$as_me: failed program was:" >&5
7562 sed 's/^/| /' conftest.$ac_ext >&5
7563
7564 emacs_cv_speed_t=no
7565 fi
7566
7567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7568 fi
7569 { echo "$as_me:$LINENO: result: $emacs_cv_speed_t" >&5
7570 echo "${ECHO_T}$emacs_cv_speed_t" >&6; }
7571 if test $emacs_cv_speed_t = yes; then
7572
7573 cat >>confdefs.h <<\_ACEOF
7574 #define HAVE_SPEED_T 1
7575 _ACEOF
7576
7577 fi
7578
7579 { echo "$as_me:$LINENO: checking for struct timeval" >&5
7580 echo $ECHO_N "checking for struct timeval... $ECHO_C" >&6; }
7581 if test "${emacs_cv_struct_timeval+set}" = set; then
7582 echo $ECHO_N "(cached) $ECHO_C" >&6
7583 else
7584 cat >conftest.$ac_ext <<_ACEOF
7585 /* confdefs.h. */
7586 _ACEOF
7587 cat confdefs.h >>conftest.$ac_ext
7588 cat >>conftest.$ac_ext <<_ACEOF
7589 /* end confdefs.h. */
7590 #ifdef TIME_WITH_SYS_TIME
7591 #include <sys/time.h>
7592 #include <time.h>
7593 #else
7594 #ifdef HAVE_SYS_TIME_H
7595 #include <sys/time.h>
7596 #else
7597 #include <time.h>
7598 #endif
7599 #endif
7600 int
7601 main ()
7602 {
7603 static struct timeval x; x.tv_sec = x.tv_usec;
7604 ;
7605 return 0;
7606 }
7607 _ACEOF
7608 rm -f conftest.$ac_objext
7609 if { (ac_try="$ac_compile"
7610 case "(($ac_try" in
7611 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7612 *) ac_try_echo=$ac_try;;
7613 esac
7614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7615 (eval "$ac_compile") 2>conftest.er1
7616 ac_status=$?
7617 grep -v '^ *+' conftest.er1 >conftest.err
7618 rm -f conftest.er1
7619 cat conftest.err >&5
7620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7621 (exit $ac_status); } && {
7622 test -z "$ac_c_werror_flag" ||
7623 test ! -s conftest.err
7624 } && test -s conftest.$ac_objext; then
7625 emacs_cv_struct_timeval=yes
7626 else
7627 echo "$as_me: failed program was:" >&5
7628 sed 's/^/| /' conftest.$ac_ext >&5
7629
7630 emacs_cv_struct_timeval=no
7631 fi
7632
7633 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7634 fi
7635 { echo "$as_me:$LINENO: result: $emacs_cv_struct_timeval" >&5
7636 echo "${ECHO_T}$emacs_cv_struct_timeval" >&6; }
7637 HAVE_TIMEVAL=$emacs_cv_struct_timeval
7638 if test $emacs_cv_struct_timeval = yes; then
7639
7640 cat >>confdefs.h <<\_ACEOF
7641 #define HAVE_TIMEVAL 1
7642 _ACEOF
7643
7644 fi
7645
7646 { echo "$as_me:$LINENO: checking for struct exception" >&5
7647 echo $ECHO_N "checking for struct exception... $ECHO_C" >&6; }
7648 if test "${emacs_cv_struct_exception+set}" = set; then
7649 echo $ECHO_N "(cached) $ECHO_C" >&6
7650 else
7651 cat >conftest.$ac_ext <<_ACEOF
7652 /* confdefs.h. */
7653 _ACEOF
7654 cat confdefs.h >>conftest.$ac_ext
7655 cat >>conftest.$ac_ext <<_ACEOF
7656 /* end confdefs.h. */
7657 #include <math.h>
7658 int
7659 main ()
7660 {
7661 static struct exception x; x.arg1 = x.arg2 = x.retval; x.name = ""; x.type = 1;
7662 ;
7663 return 0;
7664 }
7665 _ACEOF
7666 rm -f conftest.$ac_objext
7667 if { (ac_try="$ac_compile"
7668 case "(($ac_try" in
7669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7670 *) ac_try_echo=$ac_try;;
7671 esac
7672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7673 (eval "$ac_compile") 2>conftest.er1
7674 ac_status=$?
7675 grep -v '^ *+' conftest.er1 >conftest.err
7676 rm -f conftest.er1
7677 cat conftest.err >&5
7678 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7679 (exit $ac_status); } && {
7680 test -z "$ac_c_werror_flag" ||
7681 test ! -s conftest.err
7682 } && test -s conftest.$ac_objext; then
7683 emacs_cv_struct_exception=yes
7684 else
7685 echo "$as_me: failed program was:" >&5
7686 sed 's/^/| /' conftest.$ac_ext >&5
7687
7688 emacs_cv_struct_exception=no
7689 fi
7690
7691 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7692 fi
7693 { echo "$as_me:$LINENO: result: $emacs_cv_struct_exception" >&5
7694 echo "${ECHO_T}$emacs_cv_struct_exception" >&6; }
7695 HAVE_EXCEPTION=$emacs_cv_struct_exception
7696 if test $emacs_cv_struct_exception != yes; then
7697
7698 cat >>confdefs.h <<\_ACEOF
7699 #define NO_MATHERR 1
7700 _ACEOF
7701
7702 fi
7703
7704
7705 for ac_header in sys/socket.h
7706 do
7707 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7708 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7709 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7710 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7711 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7712 echo $ECHO_N "(cached) $ECHO_C" >&6
7713 fi
7714 ac_res=`eval echo '${'$as_ac_Header'}'`
7715 { echo "$as_me:$LINENO: result: $ac_res" >&5
7716 echo "${ECHO_T}$ac_res" >&6; }
7717 else
7718 # Is the header compilable?
7719 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7720 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7721 cat >conftest.$ac_ext <<_ACEOF
7722 /* confdefs.h. */
7723 _ACEOF
7724 cat confdefs.h >>conftest.$ac_ext
7725 cat >>conftest.$ac_ext <<_ACEOF
7726 /* end confdefs.h. */
7727 $ac_includes_default
7728 #include <$ac_header>
7729 _ACEOF
7730 rm -f conftest.$ac_objext
7731 if { (ac_try="$ac_compile"
7732 case "(($ac_try" in
7733 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7734 *) ac_try_echo=$ac_try;;
7735 esac
7736 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7737 (eval "$ac_compile") 2>conftest.er1
7738 ac_status=$?
7739 grep -v '^ *+' conftest.er1 >conftest.err
7740 rm -f conftest.er1
7741 cat conftest.err >&5
7742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7743 (exit $ac_status); } && {
7744 test -z "$ac_c_werror_flag" ||
7745 test ! -s conftest.err
7746 } && test -s conftest.$ac_objext; then
7747 ac_header_compiler=yes
7748 else
7749 echo "$as_me: failed program was:" >&5
7750 sed 's/^/| /' conftest.$ac_ext >&5
7751
7752 ac_header_compiler=no
7753 fi
7754
7755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7756 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7757 echo "${ECHO_T}$ac_header_compiler" >&6; }
7758
7759 # Is the header present?
7760 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7761 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 #include <$ac_header>
7769 _ACEOF
7770 if { (ac_try="$ac_cpp conftest.$ac_ext"
7771 case "(($ac_try" in
7772 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7773 *) ac_try_echo=$ac_try;;
7774 esac
7775 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7776 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7777 ac_status=$?
7778 grep -v '^ *+' conftest.er1 >conftest.err
7779 rm -f conftest.er1
7780 cat conftest.err >&5
7781 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7782 (exit $ac_status); } >/dev/null && {
7783 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
7784 test ! -s conftest.err
7785 }; then
7786 ac_header_preproc=yes
7787 else
7788 echo "$as_me: failed program was:" >&5
7789 sed 's/^/| /' conftest.$ac_ext >&5
7790
7791 ac_header_preproc=no
7792 fi
7793
7794 rm -f conftest.err conftest.$ac_ext
7795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7796 echo "${ECHO_T}$ac_header_preproc" >&6; }
7797
7798 # So? What about this header?
7799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
7800 yes:no: )
7801 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7803 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7805 ac_header_preproc=yes
7806 ;;
7807 no:yes:* )
7808 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7810 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7811 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7812 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7814 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7815 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7816 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7818 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7820
7821 ;;
7822 esac
7823 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7824 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7825 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7826 echo $ECHO_N "(cached) $ECHO_C" >&6
7827 else
7828 eval "$as_ac_Header=\$ac_header_preproc"
7829 fi
7830 ac_res=`eval echo '${'$as_ac_Header'}'`
7831 { echo "$as_me:$LINENO: result: $ac_res" >&5
7832 echo "${ECHO_T}$ac_res" >&6; }
7833
7834 fi
7835 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7836 cat >>confdefs.h <<_ACEOF
7837 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7838 _ACEOF
7839
7840 fi
7841
7842 done
7843
7844
7845 for ac_header in net/if.h
7846 do
7847 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7848 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7849 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7850 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7851 echo $ECHO_N "(cached) $ECHO_C" >&6
7852 else
7853 cat >conftest.$ac_ext <<_ACEOF
7854 /* confdefs.h. */
7855 _ACEOF
7856 cat confdefs.h >>conftest.$ac_ext
7857 cat >>conftest.$ac_ext <<_ACEOF
7858 /* end confdefs.h. */
7859 $ac_includes_default
7860 #if HAVE_SYS_SOCKET_H
7861 #include <sys/socket.h>
7862 #endif
7863
7864 #include <$ac_header>
7865 _ACEOF
7866 rm -f conftest.$ac_objext
7867 if { (ac_try="$ac_compile"
7868 case "(($ac_try" in
7869 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7870 *) ac_try_echo=$ac_try;;
7871 esac
7872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7873 (eval "$ac_compile") 2>conftest.er1
7874 ac_status=$?
7875 grep -v '^ *+' conftest.er1 >conftest.err
7876 rm -f conftest.er1
7877 cat conftest.err >&5
7878 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7879 (exit $ac_status); } && {
7880 test -z "$ac_c_werror_flag" ||
7881 test ! -s conftest.err
7882 } && test -s conftest.$ac_objext; then
7883 eval "$as_ac_Header=yes"
7884 else
7885 echo "$as_me: failed program was:" >&5
7886 sed 's/^/| /' conftest.$ac_ext >&5
7887
7888 eval "$as_ac_Header=no"
7889 fi
7890
7891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7892 fi
7893 ac_res=`eval echo '${'$as_ac_Header'}'`
7894 { echo "$as_me:$LINENO: result: $ac_res" >&5
7895 echo "${ECHO_T}$ac_res" >&6; }
7896 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7897 cat >>confdefs.h <<_ACEOF
7898 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7899 _ACEOF
7900
7901 fi
7902
7903 done
7904
7905
7906 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
7907 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
7908 if test "${ac_cv_struct_tm+set}" = set; then
7909 echo $ECHO_N "(cached) $ECHO_C" >&6
7910 else
7911 cat >conftest.$ac_ext <<_ACEOF
7912 /* confdefs.h. */
7913 _ACEOF
7914 cat confdefs.h >>conftest.$ac_ext
7915 cat >>conftest.$ac_ext <<_ACEOF
7916 /* end confdefs.h. */
7917 #include <sys/types.h>
7918 #include <time.h>
7919
7920 int
7921 main ()
7922 {
7923 struct tm tm;
7924 int *p = &tm.tm_sec;
7925 return !p;
7926 ;
7927 return 0;
7928 }
7929 _ACEOF
7930 rm -f conftest.$ac_objext
7931 if { (ac_try="$ac_compile"
7932 case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_compile") 2>conftest.er1
7938 ac_status=$?
7939 grep -v '^ *+' conftest.er1 >conftest.err
7940 rm -f conftest.er1
7941 cat conftest.err >&5
7942 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7943 (exit $ac_status); } && {
7944 test -z "$ac_c_werror_flag" ||
7945 test ! -s conftest.err
7946 } && test -s conftest.$ac_objext; then
7947 ac_cv_struct_tm=time.h
7948 else
7949 echo "$as_me: failed program was:" >&5
7950 sed 's/^/| /' conftest.$ac_ext >&5
7951
7952 ac_cv_struct_tm=sys/time.h
7953 fi
7954
7955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7956 fi
7957 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
7958 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
7959 if test $ac_cv_struct_tm = sys/time.h; then
7960
7961 cat >>confdefs.h <<\_ACEOF
7962 #define TM_IN_SYS_TIME 1
7963 _ACEOF
7964
7965 fi
7966
7967 { echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5
7968 echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6; }
7969 if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then
7970 echo $ECHO_N "(cached) $ECHO_C" >&6
7971 else
7972 cat >conftest.$ac_ext <<_ACEOF
7973 /* confdefs.h. */
7974 _ACEOF
7975 cat confdefs.h >>conftest.$ac_ext
7976 cat >>conftest.$ac_ext <<_ACEOF
7977 /* end confdefs.h. */
7978 #include <sys/types.h>
7979 #include <$ac_cv_struct_tm>
7980
7981
7982 int
7983 main ()
7984 {
7985 static struct tm ac_aggr;
7986 if (ac_aggr.tm_zone)
7987 return 0;
7988 ;
7989 return 0;
7990 }
7991 _ACEOF
7992 rm -f conftest.$ac_objext
7993 if { (ac_try="$ac_compile"
7994 case "(($ac_try" in
7995 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7996 *) ac_try_echo=$ac_try;;
7997 esac
7998 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7999 (eval "$ac_compile") 2>conftest.er1
8000 ac_status=$?
8001 grep -v '^ *+' conftest.er1 >conftest.err
8002 rm -f conftest.er1
8003 cat conftest.err >&5
8004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8005 (exit $ac_status); } && {
8006 test -z "$ac_c_werror_flag" ||
8007 test ! -s conftest.err
8008 } && test -s conftest.$ac_objext; then
8009 ac_cv_member_struct_tm_tm_zone=yes
8010 else
8011 echo "$as_me: failed program was:" >&5
8012 sed 's/^/| /' conftest.$ac_ext >&5
8013
8014 cat >conftest.$ac_ext <<_ACEOF
8015 /* confdefs.h. */
8016 _ACEOF
8017 cat confdefs.h >>conftest.$ac_ext
8018 cat >>conftest.$ac_ext <<_ACEOF
8019 /* end confdefs.h. */
8020 #include <sys/types.h>
8021 #include <$ac_cv_struct_tm>
8022
8023
8024 int
8025 main ()
8026 {
8027 static struct tm ac_aggr;
8028 if (sizeof ac_aggr.tm_zone)
8029 return 0;
8030 ;
8031 return 0;
8032 }
8033 _ACEOF
8034 rm -f conftest.$ac_objext
8035 if { (ac_try="$ac_compile"
8036 case "(($ac_try" in
8037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8038 *) ac_try_echo=$ac_try;;
8039 esac
8040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8041 (eval "$ac_compile") 2>conftest.er1
8042 ac_status=$?
8043 grep -v '^ *+' conftest.er1 >conftest.err
8044 rm -f conftest.er1
8045 cat conftest.err >&5
8046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8047 (exit $ac_status); } && {
8048 test -z "$ac_c_werror_flag" ||
8049 test ! -s conftest.err
8050 } && test -s conftest.$ac_objext; then
8051 ac_cv_member_struct_tm_tm_zone=yes
8052 else
8053 echo "$as_me: failed program was:" >&5
8054 sed 's/^/| /' conftest.$ac_ext >&5
8055
8056 ac_cv_member_struct_tm_tm_zone=no
8057 fi
8058
8059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8060 fi
8061
8062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8063 fi
8064 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5
8065 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6; }
8066 if test $ac_cv_member_struct_tm_tm_zone = yes; then
8067
8068 cat >>confdefs.h <<_ACEOF
8069 #define HAVE_STRUCT_TM_TM_ZONE 1
8070 _ACEOF
8071
8072
8073 fi
8074
8075 if test "$ac_cv_member_struct_tm_tm_zone" = yes; then
8076
8077 cat >>confdefs.h <<\_ACEOF
8078 #define HAVE_TM_ZONE 1
8079 _ACEOF
8080
8081 else
8082 { echo "$as_me:$LINENO: checking whether tzname is declared" >&5
8083 echo $ECHO_N "checking whether tzname is declared... $ECHO_C" >&6; }
8084 if test "${ac_cv_have_decl_tzname+set}" = set; then
8085 echo $ECHO_N "(cached) $ECHO_C" >&6
8086 else
8087 cat >conftest.$ac_ext <<_ACEOF
8088 /* confdefs.h. */
8089 _ACEOF
8090 cat confdefs.h >>conftest.$ac_ext
8091 cat >>conftest.$ac_ext <<_ACEOF
8092 /* end confdefs.h. */
8093 #include <time.h>
8094
8095 int
8096 main ()
8097 {
8098 #ifndef tzname
8099 (void) tzname;
8100 #endif
8101
8102 ;
8103 return 0;
8104 }
8105 _ACEOF
8106 rm -f conftest.$ac_objext
8107 if { (ac_try="$ac_compile"
8108 case "(($ac_try" in
8109 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8110 *) ac_try_echo=$ac_try;;
8111 esac
8112 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8113 (eval "$ac_compile") 2>conftest.er1
8114 ac_status=$?
8115 grep -v '^ *+' conftest.er1 >conftest.err
8116 rm -f conftest.er1
8117 cat conftest.err >&5
8118 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8119 (exit $ac_status); } && {
8120 test -z "$ac_c_werror_flag" ||
8121 test ! -s conftest.err
8122 } && test -s conftest.$ac_objext; then
8123 ac_cv_have_decl_tzname=yes
8124 else
8125 echo "$as_me: failed program was:" >&5
8126 sed 's/^/| /' conftest.$ac_ext >&5
8127
8128 ac_cv_have_decl_tzname=no
8129 fi
8130
8131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8132 fi
8133 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_tzname" >&5
8134 echo "${ECHO_T}$ac_cv_have_decl_tzname" >&6; }
8135 if test $ac_cv_have_decl_tzname = yes; then
8136
8137 cat >>confdefs.h <<_ACEOF
8138 #define HAVE_DECL_TZNAME 1
8139 _ACEOF
8140
8141
8142 else
8143 cat >>confdefs.h <<_ACEOF
8144 #define HAVE_DECL_TZNAME 0
8145 _ACEOF
8146
8147
8148 fi
8149
8150
8151 { echo "$as_me:$LINENO: checking for tzname" >&5
8152 echo $ECHO_N "checking for tzname... $ECHO_C" >&6; }
8153 if test "${ac_cv_var_tzname+set}" = set; then
8154 echo $ECHO_N "(cached) $ECHO_C" >&6
8155 else
8156 cat >conftest.$ac_ext <<_ACEOF
8157 /* confdefs.h. */
8158 _ACEOF
8159 cat confdefs.h >>conftest.$ac_ext
8160 cat >>conftest.$ac_ext <<_ACEOF
8161 /* end confdefs.h. */
8162 #include <time.h>
8163 #if !HAVE_DECL_TZNAME
8164 extern char *tzname[];
8165 #endif
8166
8167 int
8168 main ()
8169 {
8170 return tzname[0][0];
8171 ;
8172 return 0;
8173 }
8174 _ACEOF
8175 rm -f conftest.$ac_objext conftest$ac_exeext
8176 if { (ac_try="$ac_link"
8177 case "(($ac_try" in
8178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8179 *) ac_try_echo=$ac_try;;
8180 esac
8181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8182 (eval "$ac_link") 2>conftest.er1
8183 ac_status=$?
8184 grep -v '^ *+' conftest.er1 >conftest.err
8185 rm -f conftest.er1
8186 cat conftest.err >&5
8187 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8188 (exit $ac_status); } && {
8189 test -z "$ac_c_werror_flag" ||
8190 test ! -s conftest.err
8191 } && test -s conftest$ac_exeext &&
8192 $as_test_x conftest$ac_exeext; then
8193 ac_cv_var_tzname=yes
8194 else
8195 echo "$as_me: failed program was:" >&5
8196 sed 's/^/| /' conftest.$ac_ext >&5
8197
8198 ac_cv_var_tzname=no
8199 fi
8200
8201 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
8202 conftest$ac_exeext conftest.$ac_ext
8203 fi
8204 { echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5
8205 echo "${ECHO_T}$ac_cv_var_tzname" >&6; }
8206 if test $ac_cv_var_tzname = yes; then
8207
8208 cat >>confdefs.h <<\_ACEOF
8209 #define HAVE_TZNAME 1
8210 _ACEOF
8211
8212 fi
8213 fi
8214
8215 { echo "$as_me:$LINENO: checking for struct tm.tm_gmtoff" >&5
8216 echo $ECHO_N "checking for struct tm.tm_gmtoff... $ECHO_C" >&6; }
8217 if test "${ac_cv_member_struct_tm_tm_gmtoff+set}" = set; then
8218 echo $ECHO_N "(cached) $ECHO_C" >&6
8219 else
8220 cat >conftest.$ac_ext <<_ACEOF
8221 /* confdefs.h. */
8222 _ACEOF
8223 cat confdefs.h >>conftest.$ac_ext
8224 cat >>conftest.$ac_ext <<_ACEOF
8225 /* end confdefs.h. */
8226 #include <time.h>
8227
8228 int
8229 main ()
8230 {
8231 static struct tm ac_aggr;
8232 if (ac_aggr.tm_gmtoff)
8233 return 0;
8234 ;
8235 return 0;
8236 }
8237 _ACEOF
8238 rm -f conftest.$ac_objext
8239 if { (ac_try="$ac_compile"
8240 case "(($ac_try" in
8241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8242 *) ac_try_echo=$ac_try;;
8243 esac
8244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8245 (eval "$ac_compile") 2>conftest.er1
8246 ac_status=$?
8247 grep -v '^ *+' conftest.er1 >conftest.err
8248 rm -f conftest.er1
8249 cat conftest.err >&5
8250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8251 (exit $ac_status); } && {
8252 test -z "$ac_c_werror_flag" ||
8253 test ! -s conftest.err
8254 } && test -s conftest.$ac_objext; then
8255 ac_cv_member_struct_tm_tm_gmtoff=yes
8256 else
8257 echo "$as_me: failed program was:" >&5
8258 sed 's/^/| /' conftest.$ac_ext >&5
8259
8260 cat >conftest.$ac_ext <<_ACEOF
8261 /* confdefs.h. */
8262 _ACEOF
8263 cat confdefs.h >>conftest.$ac_ext
8264 cat >>conftest.$ac_ext <<_ACEOF
8265 /* end confdefs.h. */
8266 #include <time.h>
8267
8268 int
8269 main ()
8270 {
8271 static struct tm ac_aggr;
8272 if (sizeof ac_aggr.tm_gmtoff)
8273 return 0;
8274 ;
8275 return 0;
8276 }
8277 _ACEOF
8278 rm -f conftest.$ac_objext
8279 if { (ac_try="$ac_compile"
8280 case "(($ac_try" in
8281 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8282 *) ac_try_echo=$ac_try;;
8283 esac
8284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8285 (eval "$ac_compile") 2>conftest.er1
8286 ac_status=$?
8287 grep -v '^ *+' conftest.er1 >conftest.err
8288 rm -f conftest.er1
8289 cat conftest.err >&5
8290 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8291 (exit $ac_status); } && {
8292 test -z "$ac_c_werror_flag" ||
8293 test ! -s conftest.err
8294 } && test -s conftest.$ac_objext; then
8295 ac_cv_member_struct_tm_tm_gmtoff=yes
8296 else
8297 echo "$as_me: failed program was:" >&5
8298 sed 's/^/| /' conftest.$ac_ext >&5
8299
8300 ac_cv_member_struct_tm_tm_gmtoff=no
8301 fi
8302
8303 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8304 fi
8305
8306 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8307 fi
8308 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_gmtoff" >&5
8309 echo "${ECHO_T}$ac_cv_member_struct_tm_tm_gmtoff" >&6; }
8310 if test $ac_cv_member_struct_tm_tm_gmtoff = yes; then
8311
8312 cat >>confdefs.h <<\_ACEOF
8313 #define HAVE_TM_GMTOFF 1
8314 _ACEOF
8315
8316 fi
8317
8318 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_flags" >&5
8319 echo $ECHO_N "checking for struct ifreq.ifr_flags... $ECHO_C" >&6; }
8320 if test "${ac_cv_member_struct_ifreq_ifr_flags+set}" = set; then
8321 echo $ECHO_N "(cached) $ECHO_C" >&6
8322 else
8323 cat >conftest.$ac_ext <<_ACEOF
8324 /* confdefs.h. */
8325 _ACEOF
8326 cat confdefs.h >>conftest.$ac_ext
8327 cat >>conftest.$ac_ext <<_ACEOF
8328 /* end confdefs.h. */
8329 $ac_includes_default
8330 #if HAVE_SYS_SOCKET_H
8331 #include <sys/socket.h>
8332 #endif
8333 #if HAVE_NET_IF_H
8334 #include <net/if.h>
8335 #endif
8336
8337 int
8338 main ()
8339 {
8340 static struct ifreq ac_aggr;
8341 if (ac_aggr.ifr_flags)
8342 return 0;
8343 ;
8344 return 0;
8345 }
8346 _ACEOF
8347 rm -f conftest.$ac_objext
8348 if { (ac_try="$ac_compile"
8349 case "(($ac_try" in
8350 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8351 *) ac_try_echo=$ac_try;;
8352 esac
8353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8354 (eval "$ac_compile") 2>conftest.er1
8355 ac_status=$?
8356 grep -v '^ *+' conftest.er1 >conftest.err
8357 rm -f conftest.er1
8358 cat conftest.err >&5
8359 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8360 (exit $ac_status); } && {
8361 test -z "$ac_c_werror_flag" ||
8362 test ! -s conftest.err
8363 } && test -s conftest.$ac_objext; then
8364 ac_cv_member_struct_ifreq_ifr_flags=yes
8365 else
8366 echo "$as_me: failed program was:" >&5
8367 sed 's/^/| /' conftest.$ac_ext >&5
8368
8369 cat >conftest.$ac_ext <<_ACEOF
8370 /* confdefs.h. */
8371 _ACEOF
8372 cat confdefs.h >>conftest.$ac_ext
8373 cat >>conftest.$ac_ext <<_ACEOF
8374 /* end confdefs.h. */
8375 $ac_includes_default
8376 #if HAVE_SYS_SOCKET_H
8377 #include <sys/socket.h>
8378 #endif
8379 #if HAVE_NET_IF_H
8380 #include <net/if.h>
8381 #endif
8382
8383 int
8384 main ()
8385 {
8386 static struct ifreq ac_aggr;
8387 if (sizeof ac_aggr.ifr_flags)
8388 return 0;
8389 ;
8390 return 0;
8391 }
8392 _ACEOF
8393 rm -f conftest.$ac_objext
8394 if { (ac_try="$ac_compile"
8395 case "(($ac_try" in
8396 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8397 *) ac_try_echo=$ac_try;;
8398 esac
8399 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8400 (eval "$ac_compile") 2>conftest.er1
8401 ac_status=$?
8402 grep -v '^ *+' conftest.er1 >conftest.err
8403 rm -f conftest.er1
8404 cat conftest.err >&5
8405 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8406 (exit $ac_status); } && {
8407 test -z "$ac_c_werror_flag" ||
8408 test ! -s conftest.err
8409 } && test -s conftest.$ac_objext; then
8410 ac_cv_member_struct_ifreq_ifr_flags=yes
8411 else
8412 echo "$as_me: failed program was:" >&5
8413 sed 's/^/| /' conftest.$ac_ext >&5
8414
8415 ac_cv_member_struct_ifreq_ifr_flags=no
8416 fi
8417
8418 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8419 fi
8420
8421 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8422 fi
8423 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_flags" >&5
8424 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_flags" >&6; }
8425 if test $ac_cv_member_struct_ifreq_ifr_flags = yes; then
8426
8427 cat >>confdefs.h <<_ACEOF
8428 #define HAVE_STRUCT_IFREQ_IFR_FLAGS 1
8429 _ACEOF
8430
8431
8432 fi
8433 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_hwaddr" >&5
8434 echo $ECHO_N "checking for struct ifreq.ifr_hwaddr... $ECHO_C" >&6; }
8435 if test "${ac_cv_member_struct_ifreq_ifr_hwaddr+set}" = set; then
8436 echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438 cat >conftest.$ac_ext <<_ACEOF
8439 /* confdefs.h. */
8440 _ACEOF
8441 cat confdefs.h >>conftest.$ac_ext
8442 cat >>conftest.$ac_ext <<_ACEOF
8443 /* end confdefs.h. */
8444 $ac_includes_default
8445 #if HAVE_SYS_SOCKET_H
8446 #include <sys/socket.h>
8447 #endif
8448 #if HAVE_NET_IF_H
8449 #include <net/if.h>
8450 #endif
8451
8452 int
8453 main ()
8454 {
8455 static struct ifreq ac_aggr;
8456 if (ac_aggr.ifr_hwaddr)
8457 return 0;
8458 ;
8459 return 0;
8460 }
8461 _ACEOF
8462 rm -f conftest.$ac_objext
8463 if { (ac_try="$ac_compile"
8464 case "(($ac_try" in
8465 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8466 *) ac_try_echo=$ac_try;;
8467 esac
8468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8469 (eval "$ac_compile") 2>conftest.er1
8470 ac_status=$?
8471 grep -v '^ *+' conftest.er1 >conftest.err
8472 rm -f conftest.er1
8473 cat conftest.err >&5
8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8475 (exit $ac_status); } && {
8476 test -z "$ac_c_werror_flag" ||
8477 test ! -s conftest.err
8478 } && test -s conftest.$ac_objext; then
8479 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8480 else
8481 echo "$as_me: failed program was:" >&5
8482 sed 's/^/| /' conftest.$ac_ext >&5
8483
8484 cat >conftest.$ac_ext <<_ACEOF
8485 /* confdefs.h. */
8486 _ACEOF
8487 cat confdefs.h >>conftest.$ac_ext
8488 cat >>conftest.$ac_ext <<_ACEOF
8489 /* end confdefs.h. */
8490 $ac_includes_default
8491 #if HAVE_SYS_SOCKET_H
8492 #include <sys/socket.h>
8493 #endif
8494 #if HAVE_NET_IF_H
8495 #include <net/if.h>
8496 #endif
8497
8498 int
8499 main ()
8500 {
8501 static struct ifreq ac_aggr;
8502 if (sizeof ac_aggr.ifr_hwaddr)
8503 return 0;
8504 ;
8505 return 0;
8506 }
8507 _ACEOF
8508 rm -f conftest.$ac_objext
8509 if { (ac_try="$ac_compile"
8510 case "(($ac_try" in
8511 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8512 *) ac_try_echo=$ac_try;;
8513 esac
8514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8515 (eval "$ac_compile") 2>conftest.er1
8516 ac_status=$?
8517 grep -v '^ *+' conftest.er1 >conftest.err
8518 rm -f conftest.er1
8519 cat conftest.err >&5
8520 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8521 (exit $ac_status); } && {
8522 test -z "$ac_c_werror_flag" ||
8523 test ! -s conftest.err
8524 } && test -s conftest.$ac_objext; then
8525 ac_cv_member_struct_ifreq_ifr_hwaddr=yes
8526 else
8527 echo "$as_me: failed program was:" >&5
8528 sed 's/^/| /' conftest.$ac_ext >&5
8529
8530 ac_cv_member_struct_ifreq_ifr_hwaddr=no
8531 fi
8532
8533 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8534 fi
8535
8536 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8537 fi
8538 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_hwaddr" >&5
8539 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_hwaddr" >&6; }
8540 if test $ac_cv_member_struct_ifreq_ifr_hwaddr = yes; then
8541
8542 cat >>confdefs.h <<_ACEOF
8543 #define HAVE_STRUCT_IFREQ_IFR_HWADDR 1
8544 _ACEOF
8545
8546
8547 fi
8548 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_netmask" >&5
8549 echo $ECHO_N "checking for struct ifreq.ifr_netmask... $ECHO_C" >&6; }
8550 if test "${ac_cv_member_struct_ifreq_ifr_netmask+set}" = set; then
8551 echo $ECHO_N "(cached) $ECHO_C" >&6
8552 else
8553 cat >conftest.$ac_ext <<_ACEOF
8554 /* confdefs.h. */
8555 _ACEOF
8556 cat confdefs.h >>conftest.$ac_ext
8557 cat >>conftest.$ac_ext <<_ACEOF
8558 /* end confdefs.h. */
8559 $ac_includes_default
8560 #if HAVE_SYS_SOCKET_H
8561 #include <sys/socket.h>
8562 #endif
8563 #if HAVE_NET_IF_H
8564 #include <net/if.h>
8565 #endif
8566
8567 int
8568 main ()
8569 {
8570 static struct ifreq ac_aggr;
8571 if (ac_aggr.ifr_netmask)
8572 return 0;
8573 ;
8574 return 0;
8575 }
8576 _ACEOF
8577 rm -f conftest.$ac_objext
8578 if { (ac_try="$ac_compile"
8579 case "(($ac_try" in
8580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8581 *) ac_try_echo=$ac_try;;
8582 esac
8583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8584 (eval "$ac_compile") 2>conftest.er1
8585 ac_status=$?
8586 grep -v '^ *+' conftest.er1 >conftest.err
8587 rm -f conftest.er1
8588 cat conftest.err >&5
8589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8590 (exit $ac_status); } && {
8591 test -z "$ac_c_werror_flag" ||
8592 test ! -s conftest.err
8593 } && test -s conftest.$ac_objext; then
8594 ac_cv_member_struct_ifreq_ifr_netmask=yes
8595 else
8596 echo "$as_me: failed program was:" >&5
8597 sed 's/^/| /' conftest.$ac_ext >&5
8598
8599 cat >conftest.$ac_ext <<_ACEOF
8600 /* confdefs.h. */
8601 _ACEOF
8602 cat confdefs.h >>conftest.$ac_ext
8603 cat >>conftest.$ac_ext <<_ACEOF
8604 /* end confdefs.h. */
8605 $ac_includes_default
8606 #if HAVE_SYS_SOCKET_H
8607 #include <sys/socket.h>
8608 #endif
8609 #if HAVE_NET_IF_H
8610 #include <net/if.h>
8611 #endif
8612
8613 int
8614 main ()
8615 {
8616 static struct ifreq ac_aggr;
8617 if (sizeof ac_aggr.ifr_netmask)
8618 return 0;
8619 ;
8620 return 0;
8621 }
8622 _ACEOF
8623 rm -f conftest.$ac_objext
8624 if { (ac_try="$ac_compile"
8625 case "(($ac_try" in
8626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8627 *) ac_try_echo=$ac_try;;
8628 esac
8629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8630 (eval "$ac_compile") 2>conftest.er1
8631 ac_status=$?
8632 grep -v '^ *+' conftest.er1 >conftest.err
8633 rm -f conftest.er1
8634 cat conftest.err >&5
8635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8636 (exit $ac_status); } && {
8637 test -z "$ac_c_werror_flag" ||
8638 test ! -s conftest.err
8639 } && test -s conftest.$ac_objext; then
8640 ac_cv_member_struct_ifreq_ifr_netmask=yes
8641 else
8642 echo "$as_me: failed program was:" >&5
8643 sed 's/^/| /' conftest.$ac_ext >&5
8644
8645 ac_cv_member_struct_ifreq_ifr_netmask=no
8646 fi
8647
8648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8649 fi
8650
8651 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8652 fi
8653 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_netmask" >&5
8654 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_netmask" >&6; }
8655 if test $ac_cv_member_struct_ifreq_ifr_netmask = yes; then
8656
8657 cat >>confdefs.h <<_ACEOF
8658 #define HAVE_STRUCT_IFREQ_IFR_NETMASK 1
8659 _ACEOF
8660
8661
8662 fi
8663 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_broadaddr" >&5
8664 echo $ECHO_N "checking for struct ifreq.ifr_broadaddr... $ECHO_C" >&6; }
8665 if test "${ac_cv_member_struct_ifreq_ifr_broadaddr+set}" = set; then
8666 echo $ECHO_N "(cached) $ECHO_C" >&6
8667 else
8668 cat >conftest.$ac_ext <<_ACEOF
8669 /* confdefs.h. */
8670 _ACEOF
8671 cat confdefs.h >>conftest.$ac_ext
8672 cat >>conftest.$ac_ext <<_ACEOF
8673 /* end confdefs.h. */
8674 $ac_includes_default
8675 #if HAVE_SYS_SOCKET_H
8676 #include <sys/socket.h>
8677 #endif
8678 #if HAVE_NET_IF_H
8679 #include <net/if.h>
8680 #endif
8681
8682 int
8683 main ()
8684 {
8685 static struct ifreq ac_aggr;
8686 if (ac_aggr.ifr_broadaddr)
8687 return 0;
8688 ;
8689 return 0;
8690 }
8691 _ACEOF
8692 rm -f conftest.$ac_objext
8693 if { (ac_try="$ac_compile"
8694 case "(($ac_try" in
8695 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8696 *) ac_try_echo=$ac_try;;
8697 esac
8698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8699 (eval "$ac_compile") 2>conftest.er1
8700 ac_status=$?
8701 grep -v '^ *+' conftest.er1 >conftest.err
8702 rm -f conftest.er1
8703 cat conftest.err >&5
8704 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8705 (exit $ac_status); } && {
8706 test -z "$ac_c_werror_flag" ||
8707 test ! -s conftest.err
8708 } && test -s conftest.$ac_objext; then
8709 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8710 else
8711 echo "$as_me: failed program was:" >&5
8712 sed 's/^/| /' conftest.$ac_ext >&5
8713
8714 cat >conftest.$ac_ext <<_ACEOF
8715 /* confdefs.h. */
8716 _ACEOF
8717 cat confdefs.h >>conftest.$ac_ext
8718 cat >>conftest.$ac_ext <<_ACEOF
8719 /* end confdefs.h. */
8720 $ac_includes_default
8721 #if HAVE_SYS_SOCKET_H
8722 #include <sys/socket.h>
8723 #endif
8724 #if HAVE_NET_IF_H
8725 #include <net/if.h>
8726 #endif
8727
8728 int
8729 main ()
8730 {
8731 static struct ifreq ac_aggr;
8732 if (sizeof ac_aggr.ifr_broadaddr)
8733 return 0;
8734 ;
8735 return 0;
8736 }
8737 _ACEOF
8738 rm -f conftest.$ac_objext
8739 if { (ac_try="$ac_compile"
8740 case "(($ac_try" in
8741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8742 *) ac_try_echo=$ac_try;;
8743 esac
8744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8745 (eval "$ac_compile") 2>conftest.er1
8746 ac_status=$?
8747 grep -v '^ *+' conftest.er1 >conftest.err
8748 rm -f conftest.er1
8749 cat conftest.err >&5
8750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8751 (exit $ac_status); } && {
8752 test -z "$ac_c_werror_flag" ||
8753 test ! -s conftest.err
8754 } && test -s conftest.$ac_objext; then
8755 ac_cv_member_struct_ifreq_ifr_broadaddr=yes
8756 else
8757 echo "$as_me: failed program was:" >&5
8758 sed 's/^/| /' conftest.$ac_ext >&5
8759
8760 ac_cv_member_struct_ifreq_ifr_broadaddr=no
8761 fi
8762
8763 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8764 fi
8765
8766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8767 fi
8768 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_broadaddr" >&5
8769 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_broadaddr" >&6; }
8770 if test $ac_cv_member_struct_ifreq_ifr_broadaddr = yes; then
8771
8772 cat >>confdefs.h <<_ACEOF
8773 #define HAVE_STRUCT_IFREQ_IFR_BROADADDR 1
8774 _ACEOF
8775
8776
8777 fi
8778 { echo "$as_me:$LINENO: checking for struct ifreq.ifr_addr" >&5
8779 echo $ECHO_N "checking for struct ifreq.ifr_addr... $ECHO_C" >&6; }
8780 if test "${ac_cv_member_struct_ifreq_ifr_addr+set}" = set; then
8781 echo $ECHO_N "(cached) $ECHO_C" >&6
8782 else
8783 cat >conftest.$ac_ext <<_ACEOF
8784 /* confdefs.h. */
8785 _ACEOF
8786 cat confdefs.h >>conftest.$ac_ext
8787 cat >>conftest.$ac_ext <<_ACEOF
8788 /* end confdefs.h. */
8789 $ac_includes_default
8790 #if HAVE_SYS_SOCKET_H
8791 #include <sys/socket.h>
8792 #endif
8793 #if HAVE_NET_IF_H
8794 #include <net/if.h>
8795 #endif
8796
8797 int
8798 main ()
8799 {
8800 static struct ifreq ac_aggr;
8801 if (ac_aggr.ifr_addr)
8802 return 0;
8803 ;
8804 return 0;
8805 }
8806 _ACEOF
8807 rm -f conftest.$ac_objext
8808 if { (ac_try="$ac_compile"
8809 case "(($ac_try" in
8810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8811 *) ac_try_echo=$ac_try;;
8812 esac
8813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8814 (eval "$ac_compile") 2>conftest.er1
8815 ac_status=$?
8816 grep -v '^ *+' conftest.er1 >conftest.err
8817 rm -f conftest.er1
8818 cat conftest.err >&5
8819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8820 (exit $ac_status); } && {
8821 test -z "$ac_c_werror_flag" ||
8822 test ! -s conftest.err
8823 } && test -s conftest.$ac_objext; then
8824 ac_cv_member_struct_ifreq_ifr_addr=yes
8825 else
8826 echo "$as_me: failed program was:" >&5
8827 sed 's/^/| /' conftest.$ac_ext >&5
8828
8829 cat >conftest.$ac_ext <<_ACEOF
8830 /* confdefs.h. */
8831 _ACEOF
8832 cat confdefs.h >>conftest.$ac_ext
8833 cat >>conftest.$ac_ext <<_ACEOF
8834 /* end confdefs.h. */
8835 $ac_includes_default
8836 #if HAVE_SYS_SOCKET_H
8837 #include <sys/socket.h>
8838 #endif
8839 #if HAVE_NET_IF_H
8840 #include <net/if.h>
8841 #endif
8842
8843 int
8844 main ()
8845 {
8846 static struct ifreq ac_aggr;
8847 if (sizeof ac_aggr.ifr_addr)
8848 return 0;
8849 ;
8850 return 0;
8851 }
8852 _ACEOF
8853 rm -f conftest.$ac_objext
8854 if { (ac_try="$ac_compile"
8855 case "(($ac_try" in
8856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8857 *) ac_try_echo=$ac_try;;
8858 esac
8859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8860 (eval "$ac_compile") 2>conftest.er1
8861 ac_status=$?
8862 grep -v '^ *+' conftest.er1 >conftest.err
8863 rm -f conftest.er1
8864 cat conftest.err >&5
8865 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8866 (exit $ac_status); } && {
8867 test -z "$ac_c_werror_flag" ||
8868 test ! -s conftest.err
8869 } && test -s conftest.$ac_objext; then
8870 ac_cv_member_struct_ifreq_ifr_addr=yes
8871 else
8872 echo "$as_me: failed program was:" >&5
8873 sed 's/^/| /' conftest.$ac_ext >&5
8874
8875 ac_cv_member_struct_ifreq_ifr_addr=no
8876 fi
8877
8878 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8879 fi
8880
8881 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8882 fi
8883 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_ifreq_ifr_addr" >&5
8884 echo "${ECHO_T}$ac_cv_member_struct_ifreq_ifr_addr" >&6; }
8885 if test $ac_cv_member_struct_ifreq_ifr_addr = yes; then
8886
8887 cat >>confdefs.h <<_ACEOF
8888 #define HAVE_STRUCT_IFREQ_IFR_ADDR 1
8889 _ACEOF
8890
8891
8892 fi
8893
8894
8895
8896 { echo "$as_me:$LINENO: checking for function prototypes" >&5
8897 echo $ECHO_N "checking for function prototypes... $ECHO_C" >&6; }
8898 if test "$ac_cv_prog_cc_c89" != no; then
8899 { echo "$as_me:$LINENO: result: yes" >&5
8900 echo "${ECHO_T}yes" >&6; }
8901
8902 cat >>confdefs.h <<\_ACEOF
8903 #define PROTOTYPES 1
8904 _ACEOF
8905
8906
8907 cat >>confdefs.h <<\_ACEOF
8908 #define __PROTOTYPES 1
8909 _ACEOF
8910
8911 else
8912 { echo "$as_me:$LINENO: result: no" >&5
8913 echo "${ECHO_T}no" >&6; }
8914 fi
8915
8916 { echo "$as_me:$LINENO: checking for working volatile" >&5
8917 echo $ECHO_N "checking for working volatile... $ECHO_C" >&6; }
8918 if test "${ac_cv_c_volatile+set}" = set; then
8919 echo $ECHO_N "(cached) $ECHO_C" >&6
8920 else
8921 cat >conftest.$ac_ext <<_ACEOF
8922 /* confdefs.h. */
8923 _ACEOF
8924 cat confdefs.h >>conftest.$ac_ext
8925 cat >>conftest.$ac_ext <<_ACEOF
8926 /* end confdefs.h. */
8927
8928 int
8929 main ()
8930 {
8931
8932 volatile int x;
8933 int * volatile y = (int *) 0;
8934 return !x && !y;
8935 ;
8936 return 0;
8937 }
8938 _ACEOF
8939 rm -f conftest.$ac_objext
8940 if { (ac_try="$ac_compile"
8941 case "(($ac_try" in
8942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8943 *) ac_try_echo=$ac_try;;
8944 esac
8945 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8946 (eval "$ac_compile") 2>conftest.er1
8947 ac_status=$?
8948 grep -v '^ *+' conftest.er1 >conftest.err
8949 rm -f conftest.er1
8950 cat conftest.err >&5
8951 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8952 (exit $ac_status); } && {
8953 test -z "$ac_c_werror_flag" ||
8954 test ! -s conftest.err
8955 } && test -s conftest.$ac_objext; then
8956 ac_cv_c_volatile=yes
8957 else
8958 echo "$as_me: failed program was:" >&5
8959 sed 's/^/| /' conftest.$ac_ext >&5
8960
8961 ac_cv_c_volatile=no
8962 fi
8963
8964 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8965 fi
8966 { echo "$as_me:$LINENO: result: $ac_cv_c_volatile" >&5
8967 echo "${ECHO_T}$ac_cv_c_volatile" >&6; }
8968 if test $ac_cv_c_volatile = no; then
8969
8970 cat >>confdefs.h <<\_ACEOF
8971 #define volatile
8972 _ACEOF
8973
8974 fi
8975
8976 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
8977 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
8978 if test "${ac_cv_c_const+set}" = set; then
8979 echo $ECHO_N "(cached) $ECHO_C" >&6
8980 else
8981 cat >conftest.$ac_ext <<_ACEOF
8982 /* confdefs.h. */
8983 _ACEOF
8984 cat confdefs.h >>conftest.$ac_ext
8985 cat >>conftest.$ac_ext <<_ACEOF
8986 /* end confdefs.h. */
8987
8988 int
8989 main ()
8990 {
8991 /* FIXME: Include the comments suggested by Paul. */
8992 #ifndef __cplusplus
8993 /* Ultrix mips cc rejects this. */
8994 typedef int charset[2];
8995 const charset cs;
8996 /* SunOS 4.1.1 cc rejects this. */
8997 char const *const *pcpcc;
8998 char **ppc;
8999 /* NEC SVR4.0.2 mips cc rejects this. */
9000 struct point {int x, y;};
9001 static struct point const zero = {0,0};
9002 /* AIX XL C 1.02.0.0 rejects this.
9003 It does not let you subtract one const X* pointer from another in
9004 an arm of an if-expression whose if-part is not a constant
9005 expression */
9006 const char *g = "string";
9007 pcpcc = &g + (g ? g-g : 0);
9008 /* HPUX 7.0 cc rejects these. */
9009 ++pcpcc;
9010 ppc = (char**) pcpcc;
9011 pcpcc = (char const *const *) ppc;
9012 { /* SCO 3.2v4 cc rejects this. */
9013 char *t;
9014 char const *s = 0 ? (char *) 0 : (char const *) 0;
9015
9016 *t++ = 0;
9017 if (s) return 0;
9018 }
9019 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9020 int x[] = {25, 17};
9021 const int *foo = &x[0];
9022 ++foo;
9023 }
9024 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9025 typedef const int *iptr;
9026 iptr p = 0;
9027 ++p;
9028 }
9029 { /* AIX XL C 1.02.0.0 rejects this saying
9030 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9031 struct s { int j; const int *ap[3]; };
9032 struct s *b; b->j = 5;
9033 }
9034 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9035 const int foo = 10;
9036 if (!foo) return 0;
9037 }
9038 return !cs[0] && !zero.x;
9039 #endif
9040
9041 ;
9042 return 0;
9043 }
9044 _ACEOF
9045 rm -f conftest.$ac_objext
9046 if { (ac_try="$ac_compile"
9047 case "(($ac_try" in
9048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9049 *) ac_try_echo=$ac_try;;
9050 esac
9051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9052 (eval "$ac_compile") 2>conftest.er1
9053 ac_status=$?
9054 grep -v '^ *+' conftest.er1 >conftest.err
9055 rm -f conftest.er1
9056 cat conftest.err >&5
9057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9058 (exit $ac_status); } && {
9059 test -z "$ac_c_werror_flag" ||
9060 test ! -s conftest.err
9061 } && test -s conftest.$ac_objext; then
9062 ac_cv_c_const=yes
9063 else
9064 echo "$as_me: failed program was:" >&5
9065 sed 's/^/| /' conftest.$ac_ext >&5
9066
9067 ac_cv_c_const=no
9068 fi
9069
9070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9071 fi
9072 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9073 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9074 if test $ac_cv_c_const = no; then
9075
9076 cat >>confdefs.h <<\_ACEOF
9077 #define const
9078 _ACEOF
9079
9080 fi
9081
9082 { echo "$as_me:$LINENO: checking for void * support" >&5
9083 echo $ECHO_N "checking for void * support... $ECHO_C" >&6; }
9084 if test "${emacs_cv_void_star+set}" = set; then
9085 echo $ECHO_N "(cached) $ECHO_C" >&6
9086 else
9087 cat >conftest.$ac_ext <<_ACEOF
9088 /* confdefs.h. */
9089 _ACEOF
9090 cat confdefs.h >>conftest.$ac_ext
9091 cat >>conftest.$ac_ext <<_ACEOF
9092 /* end confdefs.h. */
9093
9094 int
9095 main ()
9096 {
9097 void * foo;
9098 ;
9099 return 0;
9100 }
9101 _ACEOF
9102 rm -f conftest.$ac_objext
9103 if { (ac_try="$ac_compile"
9104 case "(($ac_try" in
9105 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9106 *) ac_try_echo=$ac_try;;
9107 esac
9108 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9109 (eval "$ac_compile") 2>conftest.er1
9110 ac_status=$?
9111 grep -v '^ *+' conftest.er1 >conftest.err
9112 rm -f conftest.er1
9113 cat conftest.err >&5
9114 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9115 (exit $ac_status); } && {
9116 test -z "$ac_c_werror_flag" ||
9117 test ! -s conftest.err
9118 } && test -s conftest.$ac_objext; then
9119 emacs_cv_void_star=yes
9120 else
9121 echo "$as_me: failed program was:" >&5
9122 sed 's/^/| /' conftest.$ac_ext >&5
9123
9124 emacs_cv_void_star=no
9125 fi
9126
9127 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9128 fi
9129 { echo "$as_me:$LINENO: result: $emacs_cv_void_star" >&5
9130 echo "${ECHO_T}$emacs_cv_void_star" >&6; }
9131 if test $emacs_cv_void_star = yes; then
9132 cat >>confdefs.h <<\_ACEOF
9133 #define POINTER_TYPE void
9134 _ACEOF
9135
9136 else
9137 cat >>confdefs.h <<\_ACEOF
9138 #define POINTER_TYPE char
9139 _ACEOF
9140
9141 fi
9142
9143
9144
9145
9146
9147 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
9148 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
9149 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
9150 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
9151 echo $ECHO_N "(cached) $ECHO_C" >&6
9152 else
9153 cat >conftest.make <<\_ACEOF
9154 SHELL = /bin/sh
9155 all:
9156 @echo '@@@%%%=$(MAKE)=@@@%%%'
9157 _ACEOF
9158 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9159 case `${MAKE-make} -f conftest.make 2>/dev/null` in
9160 *@@@%%%=?*=@@@%%%*)
9161 eval ac_cv_prog_make_${ac_make}_set=yes;;
9162 *)
9163 eval ac_cv_prog_make_${ac_make}_set=no;;
9164 esac
9165 rm -f conftest.make
9166 fi
9167 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
9168 { echo "$as_me:$LINENO: result: yes" >&5
9169 echo "${ECHO_T}yes" >&6; }
9170 SET_MAKE=
9171 else
9172 { echo "$as_me:$LINENO: result: no" >&5
9173 echo "${ECHO_T}no" >&6; }
9174 SET_MAKE="MAKE=${MAKE-make}"
9175 fi
9176
9177
9178 { echo "$as_me:$LINENO: checking for long file names" >&5
9179 echo $ECHO_N "checking for long file names... $ECHO_C" >&6; }
9180 if test "${ac_cv_sys_long_file_names+set}" = set; then
9181 echo $ECHO_N "(cached) $ECHO_C" >&6
9182 else
9183 ac_cv_sys_long_file_names=yes
9184 # Test for long file names in all the places we know might matter:
9185 # . the current directory, where building will happen
9186 # $prefix/lib where we will be installing things
9187 # $exec_prefix/lib likewise
9188 # $TMPDIR if set, where it might want to write temporary files
9189 # /tmp where it might want to write temporary files
9190 # /var/tmp likewise
9191 # /usr/tmp likewise
9192 for ac_dir in . "$TMPDIR" /tmp /var/tmp /usr/tmp "$prefix/lib" "$exec_prefix/lib"; do
9193 # Skip $TMPDIR if it is empty or bogus, and skip $exec_prefix/lib
9194 # in the usual case where exec_prefix is '${prefix}'.
9195 case $ac_dir in #(
9196 . | /* | ?:[\\/]*) ;; #(
9197 *) continue;;
9198 esac
9199 test -w "$ac_dir/." || continue # It is less confusing to not echo anything here.
9200 ac_xdir=$ac_dir/cf$$
9201 (umask 077 && mkdir "$ac_xdir" 2>/dev/null) || continue
9202 ac_tf1=$ac_xdir/conftest9012345
9203 ac_tf2=$ac_xdir/conftest9012346
9204 touch "$ac_tf1" 2>/dev/null && test -f "$ac_tf1" && test ! -f "$ac_tf2" ||
9205 ac_cv_sys_long_file_names=no
9206 rm -f -r "$ac_xdir" 2>/dev/null
9207 test $ac_cv_sys_long_file_names = no && break
9208 done
9209 fi
9210 { echo "$as_me:$LINENO: result: $ac_cv_sys_long_file_names" >&5
9211 echo "${ECHO_T}$ac_cv_sys_long_file_names" >&6; }
9212 if test $ac_cv_sys_long_file_names = yes; then
9213
9214 cat >>confdefs.h <<\_ACEOF
9215 #define HAVE_LONG_FILE_NAMES 1
9216 _ACEOF
9217
9218 fi
9219
9220
9221 #### Choose a window system.
9222
9223 { echo "$as_me:$LINENO: checking for X" >&5
9224 echo $ECHO_N "checking for X... $ECHO_C" >&6; }
9225
9226
9227 # Check whether --with-x was given.
9228 if test "${with_x+set}" = set; then
9229 withval=$with_x;
9230 fi
9231
9232 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
9233 if test "x$with_x" = xno; then
9234 # The user explicitly disabled X.
9235 have_x=disabled
9236 else
9237 case $x_includes,$x_libraries in #(
9238 *\'*) { { echo "$as_me:$LINENO: error: Cannot use X directory names containing '" >&5
9239 echo "$as_me: error: Cannot use X directory names containing '" >&2;}
9240 { (exit 1); exit 1; }; };; #(
9241 *,NONE | NONE,*) if test "${ac_cv_have_x+set}" = set; then
9242 echo $ECHO_N "(cached) $ECHO_C" >&6
9243 else
9244 # One or both of the vars are not set, and there is no cached value.
9245 ac_x_includes=no ac_x_libraries=no
9246 rm -f -r conftest.dir
9247 if mkdir conftest.dir; then
9248 cd conftest.dir
9249 cat >Imakefile <<'_ACEOF'
9250 incroot:
9251 @echo incroot='${INCROOT}'
9252 usrlibdir:
9253 @echo usrlibdir='${USRLIBDIR}'
9254 libdir:
9255 @echo libdir='${LIBDIR}'
9256 _ACEOF
9257 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
9258 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
9259 for ac_var in incroot usrlibdir libdir; do
9260 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
9261 done
9262 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
9263 for ac_extension in a so sl; do
9264 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
9265 test -f "$ac_im_libdir/libX11.$ac_extension"; then
9266 ac_im_usrlibdir=$ac_im_libdir; break
9267 fi
9268 done
9269 # Screen out bogus values from the imake configuration. They are
9270 # bogus both because they are the default anyway, and because
9271 # using them would break gcc on systems where it needs fixed includes.
9272 case $ac_im_incroot in
9273 /usr/include) ac_x_includes= ;;
9274 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
9275 esac
9276 case $ac_im_usrlibdir in
9277 /usr/lib | /lib) ;;
9278 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
9279 esac
9280 fi
9281 cd ..
9282 rm -f -r conftest.dir
9283 fi
9284
9285 # Standard set of common directories for X headers.
9286 # Check X11 before X11Rn because it is often a symlink to the current release.
9287 ac_x_header_dirs='
9288 /usr/X11/include
9289 /usr/X11R6/include
9290 /usr/X11R5/include
9291 /usr/X11R4/include
9292
9293 /usr/include/X11
9294 /usr/include/X11R6
9295 /usr/include/X11R5
9296 /usr/include/X11R4
9297
9298 /usr/local/X11/include
9299 /usr/local/X11R6/include
9300 /usr/local/X11R5/include
9301 /usr/local/X11R4/include
9302
9303 /usr/local/include/X11
9304 /usr/local/include/X11R6
9305 /usr/local/include/X11R5
9306 /usr/local/include/X11R4
9307
9308 /usr/X386/include
9309 /usr/x386/include
9310 /usr/XFree86/include/X11
9311
9312 /usr/include
9313 /usr/local/include
9314 /usr/unsupported/include
9315 /usr/athena/include
9316 /usr/local/x11r5/include
9317 /usr/lpp/Xamples/include
9318
9319 /usr/openwin/include
9320 /usr/openwin/share/include'
9321
9322 if test "$ac_x_includes" = no; then
9323 # Guess where to find include files, by looking for Xlib.h.
9324 # First, try using that file with no special directory specified.
9325 cat >conftest.$ac_ext <<_ACEOF
9326 /* confdefs.h. */
9327 _ACEOF
9328 cat confdefs.h >>conftest.$ac_ext
9329 cat >>conftest.$ac_ext <<_ACEOF
9330 /* end confdefs.h. */
9331 #include <X11/Xlib.h>
9332 _ACEOF
9333 if { (ac_try="$ac_cpp conftest.$ac_ext"
9334 case "(($ac_try" in
9335 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9336 *) ac_try_echo=$ac_try;;
9337 esac
9338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9339 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9340 ac_status=$?
9341 grep -v '^ *+' conftest.er1 >conftest.err
9342 rm -f conftest.er1
9343 cat conftest.err >&5
9344 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9345 (exit $ac_status); } >/dev/null && {
9346 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9347 test ! -s conftest.err
9348 }; then
9349 # We can compile using X headers with no special include directory.
9350 ac_x_includes=
9351 else
9352 echo "$as_me: failed program was:" >&5
9353 sed 's/^/| /' conftest.$ac_ext >&5
9354
9355 for ac_dir in $ac_x_header_dirs; do
9356 if test -r "$ac_dir/X11/Xlib.h"; then
9357 ac_x_includes=$ac_dir
9358 break
9359 fi
9360 done
9361 fi
9362
9363 rm -f conftest.err conftest.$ac_ext
9364 fi # $ac_x_includes = no
9365
9366 if test "$ac_x_libraries" = no; then
9367 # Check for the libraries.
9368 # See if we find them without any special options.
9369 # Don't add to $LIBS permanently.
9370 ac_save_LIBS=$LIBS
9371 LIBS="-lX11 $LIBS"
9372 cat >conftest.$ac_ext <<_ACEOF
9373 /* confdefs.h. */
9374 _ACEOF
9375 cat confdefs.h >>conftest.$ac_ext
9376 cat >>conftest.$ac_ext <<_ACEOF
9377 /* end confdefs.h. */
9378 #include <X11/Xlib.h>
9379 int
9380 main ()
9381 {
9382 XrmInitialize ()
9383 ;
9384 return 0;
9385 }
9386 _ACEOF
9387 rm -f conftest.$ac_objext conftest$ac_exeext
9388 if { (ac_try="$ac_link"
9389 case "(($ac_try" in
9390 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9391 *) ac_try_echo=$ac_try;;
9392 esac
9393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9394 (eval "$ac_link") 2>conftest.er1
9395 ac_status=$?
9396 grep -v '^ *+' conftest.er1 >conftest.err
9397 rm -f conftest.er1
9398 cat conftest.err >&5
9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9400 (exit $ac_status); } && {
9401 test -z "$ac_c_werror_flag" ||
9402 test ! -s conftest.err
9403 } && test -s conftest$ac_exeext &&
9404 $as_test_x conftest$ac_exeext; then
9405 LIBS=$ac_save_LIBS
9406 # We can link X programs with no special library path.
9407 ac_x_libraries=
9408 else
9409 echo "$as_me: failed program was:" >&5
9410 sed 's/^/| /' conftest.$ac_ext >&5
9411
9412 LIBS=$ac_save_LIBS
9413 for ac_dir in `echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
9414 do
9415 # Don't even attempt the hair of trying to link an X program!
9416 for ac_extension in a so sl; do
9417 if test -r "$ac_dir/libX11.$ac_extension"; then
9418 ac_x_libraries=$ac_dir
9419 break 2
9420 fi
9421 done
9422 done
9423 fi
9424
9425 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9426 conftest$ac_exeext conftest.$ac_ext
9427 fi # $ac_x_libraries = no
9428
9429 case $ac_x_includes,$ac_x_libraries in #(
9430 no,* | *,no | *\'*)
9431 # Didn't find X, or a directory has "'" in its name.
9432 ac_cv_have_x="have_x=no";; #(
9433 *)
9434 # Record where we found X for the cache.
9435 ac_cv_have_x="have_x=yes\
9436 ac_x_includes='$ac_x_includes'\
9437 ac_x_libraries='$ac_x_libraries'"
9438 esac
9439 fi
9440 ;; #(
9441 *) have_x=yes;;
9442 esac
9443 eval "$ac_cv_have_x"
9444 fi # $with_x != no
9445
9446 if test "$have_x" != yes; then
9447 { echo "$as_me:$LINENO: result: $have_x" >&5
9448 echo "${ECHO_T}$have_x" >&6; }
9449 no_x=yes
9450 else
9451 # If each of the values was on the command line, it overrides each guess.
9452 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
9453 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
9454 # Update the cache value to reflect the command line values.
9455 ac_cv_have_x="have_x=yes\
9456 ac_x_includes='$x_includes'\
9457 ac_x_libraries='$x_libraries'"
9458 { echo "$as_me:$LINENO: result: libraries $x_libraries, headers $x_includes" >&5
9459 echo "${ECHO_T}libraries $x_libraries, headers $x_includes" >&6; }
9460 fi
9461
9462 if test "$no_x" = yes; then
9463 window_system=none
9464 else
9465 window_system=x11
9466 fi
9467
9468 if test "${x_libraries}" != NONE; then
9469 if test -n "${x_libraries}"; then
9470 LD_SWITCH_X_SITE=-L`echo ${x_libraries} | sed -e "s/:/ -L/g"`
9471 LD_SWITCH_X_SITE_AUX=-R`echo ${x_libraries} | sed -e "s/:/ -R/g"`
9472 fi
9473 x_default_search_path=""
9474 x_search_path=${x_libraries}
9475 if test -z "${x_search_path}"; then
9476 x_search_path=/usr/lib
9477 fi
9478 for x_library in `echo ${x_search_path}: | \
9479 sed -e "s/:/ /g" -e p -e "s:/lib[^ /]* :/share :g"`; do
9480 x_search_path="\
9481 ${x_library}/X11/%L/%T/%N%C%S:\
9482 ${x_library}/X11/%l/%T/%N%C%S:\
9483 ${x_library}/X11/%T/%N%C%S:\
9484 ${x_library}/X11/%L/%T/%N%S:\
9485 ${x_library}/X11/%l/%T/%N%S:\
9486 ${x_library}/X11/%T/%N%S"
9487 if test x"${x_default_search_path}" = x; then
9488 x_default_search_path=${x_search_path}
9489 else
9490 x_default_search_path="${x_search_path}:${x_default_search_path}"
9491 fi
9492 done
9493 fi
9494 if test "${x_includes}" != NONE && test -n "${x_includes}"; then
9495 C_SWITCH_X_SITE=-I`echo ${x_includes} | sed -e "s/:/ -I/g"`
9496 fi
9497
9498 if test x"${x_includes}" = x; then
9499 bitmapdir=/usr/include/X11/bitmaps
9500 else
9501 # accumulate include directories that have X11 bitmap subdirectories
9502 bmd_acc="dummyval"
9503 for bmd in `echo ${x_includes} | sed -e "s/:/ /g"`; do
9504 if test -d "${bmd}/X11/bitmaps"; then
9505 bmd_acc="${bmd_acc}:${bmd}/X11/bitmaps"
9506 fi
9507 if test -d "${bmd}/bitmaps"; then
9508 bmd_acc="${bmd_acc}:${bmd}/bitmaps"
9509 fi
9510 done
9511 if test ${bmd_acc} != "dummyval"; then
9512 bitmapdir=`echo ${bmd_acc} | sed -e "s/^dummyval://"`
9513 fi
9514 fi
9515
9516 HAVE_CARBON=no
9517 if test "${with_carbon}" != no; then
9518 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9519 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9520 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9521 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9522 echo $ECHO_N "(cached) $ECHO_C" >&6
9523 fi
9524 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9525 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9526 else
9527 # Is the header compilable?
9528 { echo "$as_me:$LINENO: checking Carbon/Carbon.h usability" >&5
9529 echo $ECHO_N "checking Carbon/Carbon.h usability... $ECHO_C" >&6; }
9530 cat >conftest.$ac_ext <<_ACEOF
9531 /* confdefs.h. */
9532 _ACEOF
9533 cat confdefs.h >>conftest.$ac_ext
9534 cat >>conftest.$ac_ext <<_ACEOF
9535 /* end confdefs.h. */
9536 $ac_includes_default
9537 #include <Carbon/Carbon.h>
9538 _ACEOF
9539 rm -f conftest.$ac_objext
9540 if { (ac_try="$ac_compile"
9541 case "(($ac_try" in
9542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9543 *) ac_try_echo=$ac_try;;
9544 esac
9545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9546 (eval "$ac_compile") 2>conftest.er1
9547 ac_status=$?
9548 grep -v '^ *+' conftest.er1 >conftest.err
9549 rm -f conftest.er1
9550 cat conftest.err >&5
9551 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9552 (exit $ac_status); } && {
9553 test -z "$ac_c_werror_flag" ||
9554 test ! -s conftest.err
9555 } && test -s conftest.$ac_objext; then
9556 ac_header_compiler=yes
9557 else
9558 echo "$as_me: failed program was:" >&5
9559 sed 's/^/| /' conftest.$ac_ext >&5
9560
9561 ac_header_compiler=no
9562 fi
9563
9564 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9565 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9566 echo "${ECHO_T}$ac_header_compiler" >&6; }
9567
9568 # Is the header present?
9569 { echo "$as_me:$LINENO: checking Carbon/Carbon.h presence" >&5
9570 echo $ECHO_N "checking Carbon/Carbon.h presence... $ECHO_C" >&6; }
9571 cat >conftest.$ac_ext <<_ACEOF
9572 /* confdefs.h. */
9573 _ACEOF
9574 cat confdefs.h >>conftest.$ac_ext
9575 cat >>conftest.$ac_ext <<_ACEOF
9576 /* end confdefs.h. */
9577 #include <Carbon/Carbon.h>
9578 _ACEOF
9579 if { (ac_try="$ac_cpp conftest.$ac_ext"
9580 case "(($ac_try" in
9581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9582 *) ac_try_echo=$ac_try;;
9583 esac
9584 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9585 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9586 ac_status=$?
9587 grep -v '^ *+' conftest.er1 >conftest.err
9588 rm -f conftest.er1
9589 cat conftest.err >&5
9590 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9591 (exit $ac_status); } >/dev/null && {
9592 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
9593 test ! -s conftest.err
9594 }; then
9595 ac_header_preproc=yes
9596 else
9597 echo "$as_me: failed program was:" >&5
9598 sed 's/^/| /' conftest.$ac_ext >&5
9599
9600 ac_header_preproc=no
9601 fi
9602
9603 rm -f conftest.err conftest.$ac_ext
9604 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9605 echo "${ECHO_T}$ac_header_preproc" >&6; }
9606
9607 # So? What about this header?
9608 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9609 yes:no: )
9610 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&5
9611 echo "$as_me: WARNING: Carbon/Carbon.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
9612 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&5
9613 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the compiler's result" >&2;}
9614 ac_header_preproc=yes
9615 ;;
9616 no:yes:* )
9617 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&5
9618 echo "$as_me: WARNING: Carbon/Carbon.h: present but cannot be compiled" >&2;}
9619 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&5
9620 echo "$as_me: WARNING: Carbon/Carbon.h: check for missing prerequisite headers?" >&2;}
9621 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&5
9622 echo "$as_me: WARNING: Carbon/Carbon.h: see the Autoconf documentation" >&2;}
9623 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&5
9624 echo "$as_me: WARNING: Carbon/Carbon.h: section \"Present But Cannot Be Compiled\"" >&2;}
9625 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&5
9626 echo "$as_me: WARNING: Carbon/Carbon.h: proceeding with the preprocessor's result" >&2;}
9627 { echo "$as_me:$LINENO: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&5
9628 echo "$as_me: WARNING: Carbon/Carbon.h: in the future, the compiler will take precedence" >&2;}
9629
9630 ;;
9631 esac
9632 { echo "$as_me:$LINENO: checking for Carbon/Carbon.h" >&5
9633 echo $ECHO_N "checking for Carbon/Carbon.h... $ECHO_C" >&6; }
9634 if test "${ac_cv_header_Carbon_Carbon_h+set}" = set; then
9635 echo $ECHO_N "(cached) $ECHO_C" >&6
9636 else
9637 ac_cv_header_Carbon_Carbon_h=$ac_header_preproc
9638 fi
9639 { echo "$as_me:$LINENO: result: $ac_cv_header_Carbon_Carbon_h" >&5
9640 echo "${ECHO_T}$ac_cv_header_Carbon_Carbon_h" >&6; }
9641
9642 fi
9643 if test $ac_cv_header_Carbon_Carbon_h = yes; then
9644 HAVE_CARBON=yes
9645 fi
9646
9647
9648 fi
9649 if test "${window_system}" = x11 && test "${HAVE_CARBON}" = yes; then
9650 if test "${with_carbon+set}" != set \
9651 && test "${carbon_appdir_x+set}" != set; then
9652 for var in with_x with_x_toolkit with_gtk with_xim \
9653 with_xpm with_jpeg with_tiff with_gif with_png; do
9654 if eval test \"\${$var+set}\" = set; then
9655 HAVE_CARBON=no
9656 break
9657 fi
9658 done
9659 fi
9660 fi
9661 if test "${HAVE_CARBON}" = yes; then
9662 window_system=mac
9663 fi
9664
9665 case "${window_system}" in
9666 x11 )
9667 HAVE_X_WINDOWS=yes
9668 HAVE_X11=yes
9669 case "${with_x_toolkit}" in
9670 athena | lucid ) USE_X_TOOLKIT=LUCID ;;
9671 motif ) USE_X_TOOLKIT=MOTIF ;;
9672 gtk ) with_gtk=yes
9673 USE_X_TOOLKIT=none ;;
9674 no ) USE_X_TOOLKIT=none ;;
9675 * )
9676 if test x"$with_gtk" = xyes; then
9677 USE_X_TOOLKIT=none
9678 else
9679 USE_X_TOOLKIT=maybe
9680 fi
9681 ;;
9682 esac
9683 ;;
9684 mac | none )
9685 HAVE_X_WINDOWS=no
9686 HAVE_X11=no
9687 USE_X_TOOLKIT=none
9688 ;;
9689 esac
9690
9691 if test "$window_system" = none && test "X$with_x" != "Xno"; then
9692 # Extract the first word of "X", so it can be a program name with args.
9693 set dummy X; ac_word=$2
9694 { echo "$as_me:$LINENO: checking for $ac_word" >&5
9695 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
9696 if test "${ac_cv_prog_HAVE_XSERVER+set}" = set; then
9697 echo $ECHO_N "(cached) $ECHO_C" >&6
9698 else
9699 if test -n "$HAVE_XSERVER"; then
9700 ac_cv_prog_HAVE_XSERVER="$HAVE_XSERVER" # Let the user override the test.
9701 else
9702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9703 for as_dir in $PATH
9704 do
9705 IFS=$as_save_IFS
9706 test -z "$as_dir" && as_dir=.
9707 for ac_exec_ext in '' $ac_executable_extensions; do
9708 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
9709 ac_cv_prog_HAVE_XSERVER="true"
9710 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
9711 break 2
9712 fi
9713 done
9714 done
9715 IFS=$as_save_IFS
9716
9717 test -z "$ac_cv_prog_HAVE_XSERVER" && ac_cv_prog_HAVE_XSERVER="false"
9718 fi
9719 fi
9720 HAVE_XSERVER=$ac_cv_prog_HAVE_XSERVER
9721 if test -n "$HAVE_XSERVER"; then
9722 { echo "$as_me:$LINENO: result: $HAVE_XSERVER" >&5
9723 echo "${ECHO_T}$HAVE_XSERVER" >&6; }
9724 else
9725 { echo "$as_me:$LINENO: result: no" >&5
9726 echo "${ECHO_T}no" >&6; }
9727 fi
9728
9729
9730 if test "$HAVE_XSERVER" = true ||
9731 test -n "$DISPLAY" ||
9732 test "`echo /usr/lib/libX11.*`" != "/usr/lib/libX11.*"; then
9733 { { echo "$as_me:$LINENO: error: You seem to be running X, but no X development libraries
9734 were found. You should install the relevant development files for X
9735 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9736 sure you have development files for image handling, i.e.
9737 tiff, gif, jpeg, png and xpm.
9738 If you are sure you want Emacs compiled without X window support, pass
9739 --without-x
9740 to configure." >&5
9741 echo "$as_me: error: You seem to be running X, but no X development libraries
9742 were found. You should install the relevant development files for X
9743 and for the toolkit you want, such as Gtk+, Lesstif or Motif. Also make
9744 sure you have development files for image handling, i.e.
9745 tiff, gif, jpeg, png and xpm.
9746 If you are sure you want Emacs compiled without X window support, pass
9747 --without-x
9748 to configure." >&2;}
9749 { (exit 1); exit 1; }; }
9750 fi
9751 fi
9752
9753 ### If we're using X11, we should use the X menu package.
9754 HAVE_MENUS=no
9755 case ${HAVE_X11} in
9756 yes ) HAVE_MENUS=yes ;;
9757 esac
9758
9759 if test "${opsys}" = "hpux9"; then
9760 case "${x_libraries}" in
9761 *X11R4* )
9762 opsysfile="s/hpux9-x11r4.h"
9763 ;;
9764 esac
9765 fi
9766
9767 if test "${opsys}" = "hpux9shr"; then
9768 case "${x_libraries}" in
9769 *X11R4* )
9770 opsysfile="s/hpux9shxr4.h"
9771 ;;
9772 esac
9773 fi
9774
9775 ### Compute the unexec source name from the object name.
9776 UNEXEC_SRC="`echo ${unexec} | sed 's/\.o/.c/'`"
9777
9778 # Do the opsystem or machine files prohibit the use of the GNU malloc?
9779 # Assume not, until told otherwise.
9780 GNU_MALLOC=yes
9781 doug_lea_malloc=yes
9782 { echo "$as_me:$LINENO: checking for malloc_get_state" >&5
9783 echo $ECHO_N "checking for malloc_get_state... $ECHO_C" >&6; }
9784 if test "${ac_cv_func_malloc_get_state+set}" = set; then
9785 echo $ECHO_N "(cached) $ECHO_C" >&6
9786 else
9787 cat >conftest.$ac_ext <<_ACEOF
9788 /* confdefs.h. */
9789 _ACEOF
9790 cat confdefs.h >>conftest.$ac_ext
9791 cat >>conftest.$ac_ext <<_ACEOF
9792 /* end confdefs.h. */
9793 /* Define malloc_get_state to an innocuous variant, in case <limits.h> declares malloc_get_state.
9794 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9795 #define malloc_get_state innocuous_malloc_get_state
9796
9797 /* System header to define __stub macros and hopefully few prototypes,
9798 which can conflict with char malloc_get_state (); below.
9799 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9800 <limits.h> exists even on freestanding compilers. */
9801
9802 #ifdef __STDC__
9803 # include <limits.h>
9804 #else
9805 # include <assert.h>
9806 #endif
9807
9808 #undef malloc_get_state
9809
9810 /* Override any GCC internal prototype to avoid an error.
9811 Use char because int might match the return type of a GCC
9812 builtin and then its argument prototype would still apply. */
9813 #ifdef __cplusplus
9814 extern "C"
9815 #endif
9816 char malloc_get_state ();
9817 /* The GNU C library defines this for functions which it implements
9818 to always fail with ENOSYS. Some functions are actually named
9819 something starting with __ and the normal name is an alias. */
9820 #if defined __stub_malloc_get_state || defined __stub___malloc_get_state
9821 choke me
9822 #endif
9823
9824 int
9825 main ()
9826 {
9827 return malloc_get_state ();
9828 ;
9829 return 0;
9830 }
9831 _ACEOF
9832 rm -f conftest.$ac_objext conftest$ac_exeext
9833 if { (ac_try="$ac_link"
9834 case "(($ac_try" in
9835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9836 *) ac_try_echo=$ac_try;;
9837 esac
9838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9839 (eval "$ac_link") 2>conftest.er1
9840 ac_status=$?
9841 grep -v '^ *+' conftest.er1 >conftest.err
9842 rm -f conftest.er1
9843 cat conftest.err >&5
9844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9845 (exit $ac_status); } && {
9846 test -z "$ac_c_werror_flag" ||
9847 test ! -s conftest.err
9848 } && test -s conftest$ac_exeext &&
9849 $as_test_x conftest$ac_exeext; then
9850 ac_cv_func_malloc_get_state=yes
9851 else
9852 echo "$as_me: failed program was:" >&5
9853 sed 's/^/| /' conftest.$ac_ext >&5
9854
9855 ac_cv_func_malloc_get_state=no
9856 fi
9857
9858 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9859 conftest$ac_exeext conftest.$ac_ext
9860 fi
9861 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_get_state" >&5
9862 echo "${ECHO_T}$ac_cv_func_malloc_get_state" >&6; }
9863 if test $ac_cv_func_malloc_get_state = yes; then
9864 :
9865 else
9866 doug_lea_malloc=no
9867 fi
9868
9869 { echo "$as_me:$LINENO: checking for malloc_set_state" >&5
9870 echo $ECHO_N "checking for malloc_set_state... $ECHO_C" >&6; }
9871 if test "${ac_cv_func_malloc_set_state+set}" = set; then
9872 echo $ECHO_N "(cached) $ECHO_C" >&6
9873 else
9874 cat >conftest.$ac_ext <<_ACEOF
9875 /* confdefs.h. */
9876 _ACEOF
9877 cat confdefs.h >>conftest.$ac_ext
9878 cat >>conftest.$ac_ext <<_ACEOF
9879 /* end confdefs.h. */
9880 /* Define malloc_set_state to an innocuous variant, in case <limits.h> declares malloc_set_state.
9881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
9882 #define malloc_set_state innocuous_malloc_set_state
9883
9884 /* System header to define __stub macros and hopefully few prototypes,
9885 which can conflict with char malloc_set_state (); below.
9886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
9887 <limits.h> exists even on freestanding compilers. */
9888
9889 #ifdef __STDC__
9890 # include <limits.h>
9891 #else
9892 # include <assert.h>
9893 #endif
9894
9895 #undef malloc_set_state
9896
9897 /* Override any GCC internal prototype to avoid an error.
9898 Use char because int might match the return type of a GCC
9899 builtin and then its argument prototype would still apply. */
9900 #ifdef __cplusplus
9901 extern "C"
9902 #endif
9903 char malloc_set_state ();
9904 /* The GNU C library defines this for functions which it implements
9905 to always fail with ENOSYS. Some functions are actually named
9906 something starting with __ and the normal name is an alias. */
9907 #if defined __stub_malloc_set_state || defined __stub___malloc_set_state
9908 choke me
9909 #endif
9910
9911 int
9912 main ()
9913 {
9914 return malloc_set_state ();
9915 ;
9916 return 0;
9917 }
9918 _ACEOF
9919 rm -f conftest.$ac_objext conftest$ac_exeext
9920 if { (ac_try="$ac_link"
9921 case "(($ac_try" in
9922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9923 *) ac_try_echo=$ac_try;;
9924 esac
9925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9926 (eval "$ac_link") 2>conftest.er1
9927 ac_status=$?
9928 grep -v '^ *+' conftest.er1 >conftest.err
9929 rm -f conftest.er1
9930 cat conftest.err >&5
9931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9932 (exit $ac_status); } && {
9933 test -z "$ac_c_werror_flag" ||
9934 test ! -s conftest.err
9935 } && test -s conftest$ac_exeext &&
9936 $as_test_x conftest$ac_exeext; then
9937 ac_cv_func_malloc_set_state=yes
9938 else
9939 echo "$as_me: failed program was:" >&5
9940 sed 's/^/| /' conftest.$ac_ext >&5
9941
9942 ac_cv_func_malloc_set_state=no
9943 fi
9944
9945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
9946 conftest$ac_exeext conftest.$ac_ext
9947 fi
9948 { echo "$as_me:$LINENO: result: $ac_cv_func_malloc_set_state" >&5
9949 echo "${ECHO_T}$ac_cv_func_malloc_set_state" >&6; }
9950 if test $ac_cv_func_malloc_set_state = yes; then
9951 :
9952 else
9953 doug_lea_malloc=no
9954 fi
9955
9956 { echo "$as_me:$LINENO: checking whether __after_morecore_hook exists" >&5
9957 echo $ECHO_N "checking whether __after_morecore_hook exists... $ECHO_C" >&6; }
9958 if test "${emacs_cv_var___after_morecore_hook+set}" = set; then
9959 echo $ECHO_N "(cached) $ECHO_C" >&6
9960 else
9961 cat >conftest.$ac_ext <<_ACEOF
9962 /* confdefs.h. */
9963 _ACEOF
9964 cat confdefs.h >>conftest.$ac_ext
9965 cat >>conftest.$ac_ext <<_ACEOF
9966 /* end confdefs.h. */
9967 extern void (* __after_morecore_hook)();
9968 int
9969 main ()
9970 {
9971 __after_morecore_hook = 0
9972 ;
9973 return 0;
9974 }
9975 _ACEOF
9976 rm -f conftest.$ac_objext conftest$ac_exeext
9977 if { (ac_try="$ac_link"
9978 case "(($ac_try" in
9979 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9980 *) ac_try_echo=$ac_try;;
9981 esac
9982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9983 (eval "$ac_link") 2>conftest.er1
9984 ac_status=$?
9985 grep -v '^ *+' conftest.er1 >conftest.err
9986 rm -f conftest.er1
9987 cat conftest.err >&5
9988 echo "$as_me:$LINENO: \$? = $ac_status" >&5
9989 (exit $ac_status); } && {
9990 test -z "$ac_c_werror_flag" ||
9991 test ! -s conftest.err
9992 } && test -s conftest$ac_exeext &&
9993 $as_test_x conftest$ac_exeext; then
9994 emacs_cv_var___after_morecore_hook=yes
9995 else
9996 echo "$as_me: failed program was:" >&5
9997 sed 's/^/| /' conftest.$ac_ext >&5
9998
9999 emacs_cv_var___after_morecore_hook=no
10000 fi
10001
10002 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10003 conftest$ac_exeext conftest.$ac_ext
10004 fi
10005 { echo "$as_me:$LINENO: result: $emacs_cv_var___after_morecore_hook" >&5
10006 echo "${ECHO_T}$emacs_cv_var___after_morecore_hook" >&6; }
10007 if test $emacs_cv_var___after_morecore_hook = no; then
10008 doug_lea_malloc=no
10009 fi
10010 if test "${system_malloc}" = "yes"; then
10011 GNU_MALLOC=no
10012 GNU_MALLOC_reason="
10013 (The GNU allocators don't work with this system configuration.)"
10014 fi
10015 if test "$doug_lea_malloc" = "yes" ; then
10016 if test "$GNU_MALLOC" = yes ; then
10017 GNU_MALLOC_reason="
10018 (Using Doug Lea's new malloc from the GNU C Library.)"
10019 fi
10020
10021 cat >>confdefs.h <<\_ACEOF
10022 #define DOUG_LEA_MALLOC 1
10023 _ACEOF
10024
10025 fi
10026
10027 if test x"${REL_ALLOC}" = x; then
10028 REL_ALLOC=${GNU_MALLOC}
10029 fi
10030
10031
10032
10033
10034 for ac_header in stdlib.h unistd.h
10035 do
10036 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
10037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10038 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10039 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10040 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10041 echo $ECHO_N "(cached) $ECHO_C" >&6
10042 fi
10043 ac_res=`eval echo '${'$as_ac_Header'}'`
10044 { echo "$as_me:$LINENO: result: $ac_res" >&5
10045 echo "${ECHO_T}$ac_res" >&6; }
10046 else
10047 # Is the header compilable?
10048 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
10049 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
10050 cat >conftest.$ac_ext <<_ACEOF
10051 /* confdefs.h. */
10052 _ACEOF
10053 cat confdefs.h >>conftest.$ac_ext
10054 cat >>conftest.$ac_ext <<_ACEOF
10055 /* end confdefs.h. */
10056 $ac_includes_default
10057 #include <$ac_header>
10058 _ACEOF
10059 rm -f conftest.$ac_objext
10060 if { (ac_try="$ac_compile"
10061 case "(($ac_try" in
10062 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10063 *) ac_try_echo=$ac_try;;
10064 esac
10065 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10066 (eval "$ac_compile") 2>conftest.er1
10067 ac_status=$?
10068 grep -v '^ *+' conftest.er1 >conftest.err
10069 rm -f conftest.er1
10070 cat conftest.err >&5
10071 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10072 (exit $ac_status); } && {
10073 test -z "$ac_c_werror_flag" ||
10074 test ! -s conftest.err
10075 } && test -s conftest.$ac_objext; then
10076 ac_header_compiler=yes
10077 else
10078 echo "$as_me: failed program was:" >&5
10079 sed 's/^/| /' conftest.$ac_ext >&5
10080
10081 ac_header_compiler=no
10082 fi
10083
10084 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10085 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
10086 echo "${ECHO_T}$ac_header_compiler" >&6; }
10087
10088 # Is the header present?
10089 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
10090 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
10091 cat >conftest.$ac_ext <<_ACEOF
10092 /* confdefs.h. */
10093 _ACEOF
10094 cat confdefs.h >>conftest.$ac_ext
10095 cat >>conftest.$ac_ext <<_ACEOF
10096 /* end confdefs.h. */
10097 #include <$ac_header>
10098 _ACEOF
10099 if { (ac_try="$ac_cpp conftest.$ac_ext"
10100 case "(($ac_try" in
10101 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10102 *) ac_try_echo=$ac_try;;
10103 esac
10104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10105 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
10106 ac_status=$?
10107 grep -v '^ *+' conftest.er1 >conftest.err
10108 rm -f conftest.er1
10109 cat conftest.err >&5
10110 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10111 (exit $ac_status); } >/dev/null && {
10112 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
10113 test ! -s conftest.err
10114 }; then
10115 ac_header_preproc=yes
10116 else
10117 echo "$as_me: failed program was:" >&5
10118 sed 's/^/| /' conftest.$ac_ext >&5
10119
10120 ac_header_preproc=no
10121 fi
10122
10123 rm -f conftest.err conftest.$ac_ext
10124 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
10125 echo "${ECHO_T}$ac_header_preproc" >&6; }
10126
10127 # So? What about this header?
10128 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
10129 yes:no: )
10130 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
10131 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
10132 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
10133 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
10134 ac_header_preproc=yes
10135 ;;
10136 no:yes:* )
10137 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
10138 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
10139 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
10140 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
10141 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
10142 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
10143 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
10144 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
10145 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
10146 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
10147 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
10148 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
10149
10150 ;;
10151 esac
10152 { echo "$as_me:$LINENO: checking for $ac_header" >&5
10153 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
10154 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
10155 echo $ECHO_N "(cached) $ECHO_C" >&6
10156 else
10157 eval "$as_ac_Header=\$ac_header_preproc"
10158 fi
10159 ac_res=`eval echo '${'$as_ac_Header'}'`
10160 { echo "$as_me:$LINENO: result: $ac_res" >&5
10161 echo "${ECHO_T}$ac_res" >&6; }
10162
10163 fi
10164 if test `eval echo '${'$as_ac_Header'}'` = yes; then
10165 cat >>confdefs.h <<_ACEOF
10166 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
10167 _ACEOF
10168
10169 fi
10170
10171 done
10172
10173
10174 for ac_func in getpagesize
10175 do
10176 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10177 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10178 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10179 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10180 echo $ECHO_N "(cached) $ECHO_C" >&6
10181 else
10182 cat >conftest.$ac_ext <<_ACEOF
10183 /* confdefs.h. */
10184 _ACEOF
10185 cat confdefs.h >>conftest.$ac_ext
10186 cat >>conftest.$ac_ext <<_ACEOF
10187 /* end confdefs.h. */
10188 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10189 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10190 #define $ac_func innocuous_$ac_func
10191
10192 /* System header to define __stub macros and hopefully few prototypes,
10193 which can conflict with char $ac_func (); below.
10194 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10195 <limits.h> exists even on freestanding compilers. */
10196
10197 #ifdef __STDC__
10198 # include <limits.h>
10199 #else
10200 # include <assert.h>
10201 #endif
10202
10203 #undef $ac_func
10204
10205 /* Override any GCC internal prototype to avoid an error.
10206 Use char because int might match the return type of a GCC
10207 builtin and then its argument prototype would still apply. */
10208 #ifdef __cplusplus
10209 extern "C"
10210 #endif
10211 char $ac_func ();
10212 /* The GNU C library defines this for functions which it implements
10213 to always fail with ENOSYS. Some functions are actually named
10214 something starting with __ and the normal name is an alias. */
10215 #if defined __stub_$ac_func || defined __stub___$ac_func
10216 choke me
10217 #endif
10218
10219 int
10220 main ()
10221 {
10222 return $ac_func ();
10223 ;
10224 return 0;
10225 }
10226 _ACEOF
10227 rm -f conftest.$ac_objext conftest$ac_exeext
10228 if { (ac_try="$ac_link"
10229 case "(($ac_try" in
10230 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10231 *) ac_try_echo=$ac_try;;
10232 esac
10233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10234 (eval "$ac_link") 2>conftest.er1
10235 ac_status=$?
10236 grep -v '^ *+' conftest.er1 >conftest.err
10237 rm -f conftest.er1
10238 cat conftest.err >&5
10239 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10240 (exit $ac_status); } && {
10241 test -z "$ac_c_werror_flag" ||
10242 test ! -s conftest.err
10243 } && test -s conftest$ac_exeext &&
10244 $as_test_x conftest$ac_exeext; then
10245 eval "$as_ac_var=yes"
10246 else
10247 echo "$as_me: failed program was:" >&5
10248 sed 's/^/| /' conftest.$ac_ext >&5
10249
10250 eval "$as_ac_var=no"
10251 fi
10252
10253 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10254 conftest$ac_exeext conftest.$ac_ext
10255 fi
10256 ac_res=`eval echo '${'$as_ac_var'}'`
10257 { echo "$as_me:$LINENO: result: $ac_res" >&5
10258 echo "${ECHO_T}$ac_res" >&6; }
10259 if test `eval echo '${'$as_ac_var'}'` = yes; then
10260 cat >>confdefs.h <<_ACEOF
10261 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
10262 _ACEOF
10263
10264 fi
10265 done
10266
10267 { echo "$as_me:$LINENO: checking for working mmap" >&5
10268 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
10269 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
10270 echo $ECHO_N "(cached) $ECHO_C" >&6
10271 else
10272 if test "$cross_compiling" = yes; then
10273 ac_cv_func_mmap_fixed_mapped=no
10274 else
10275 cat >conftest.$ac_ext <<_ACEOF
10276 /* confdefs.h. */
10277 _ACEOF
10278 cat confdefs.h >>conftest.$ac_ext
10279 cat >>conftest.$ac_ext <<_ACEOF
10280 /* end confdefs.h. */
10281 $ac_includes_default
10282 /* malloc might have been renamed as rpl_malloc. */
10283 #undef malloc
10284
10285 /* Thanks to Mike Haertel and Jim Avera for this test.
10286 Here is a matrix of mmap possibilities:
10287 mmap private not fixed
10288 mmap private fixed at somewhere currently unmapped
10289 mmap private fixed at somewhere already mapped
10290 mmap shared not fixed
10291 mmap shared fixed at somewhere currently unmapped
10292 mmap shared fixed at somewhere already mapped
10293 For private mappings, we should verify that changes cannot be read()
10294 back from the file, nor mmap's back from the file at a different
10295 address. (There have been systems where private was not correctly
10296 implemented like the infamous i386 svr4.0, and systems where the
10297 VM page cache was not coherent with the file system buffer cache
10298 like early versions of FreeBSD and possibly contemporary NetBSD.)
10299 For shared mappings, we should conversely verify that changes get
10300 propagated back to all the places they're supposed to be.
10301
10302 Grep wants private fixed already mapped.
10303 The main things grep needs to know about mmap are:
10304 * does it exist and is it safe to write into the mmap'd area
10305 * how to use it (BSD variants) */
10306
10307 #include <fcntl.h>
10308 #include <sys/mman.h>
10309
10310 #if !defined STDC_HEADERS && !defined HAVE_STDLIB_H
10311 char *malloc ();
10312 #endif
10313
10314 /* This mess was copied from the GNU getpagesize.h. */
10315 #ifndef HAVE_GETPAGESIZE
10316 /* Assume that all systems that can run configure have sys/param.h. */
10317 # ifndef HAVE_SYS_PARAM_H
10318 # define HAVE_SYS_PARAM_H 1
10319 # endif
10320
10321 # ifdef _SC_PAGESIZE
10322 # define getpagesize() sysconf(_SC_PAGESIZE)
10323 # else /* no _SC_PAGESIZE */
10324 # ifdef HAVE_SYS_PARAM_H
10325 # include <sys/param.h>
10326 # ifdef EXEC_PAGESIZE
10327 # define getpagesize() EXEC_PAGESIZE
10328 # else /* no EXEC_PAGESIZE */
10329 # ifdef NBPG
10330 # define getpagesize() NBPG * CLSIZE
10331 # ifndef CLSIZE
10332 # define CLSIZE 1
10333 # endif /* no CLSIZE */
10334 # else /* no NBPG */
10335 # ifdef NBPC
10336 # define getpagesize() NBPC
10337 # else /* no NBPC */
10338 # ifdef PAGESIZE
10339 # define getpagesize() PAGESIZE
10340 # endif /* PAGESIZE */
10341 # endif /* no NBPC */
10342 # endif /* no NBPG */
10343 # endif /* no EXEC_PAGESIZE */
10344 # else /* no HAVE_SYS_PARAM_H */
10345 # define getpagesize() 8192 /* punt totally */
10346 # endif /* no HAVE_SYS_PARAM_H */
10347 # endif /* no _SC_PAGESIZE */
10348
10349 #endif /* no HAVE_GETPAGESIZE */
10350
10351 int
10352 main ()
10353 {
10354 char *data, *data2, *data3;
10355 int i, pagesize;
10356 int fd;
10357
10358 pagesize = getpagesize ();
10359
10360 /* First, make a file with some known garbage in it. */
10361 data = (char *) malloc (pagesize);
10362 if (!data)
10363 return 1;
10364 for (i = 0; i < pagesize; ++i)
10365 *(data + i) = rand ();
10366 umask (0);
10367 fd = creat ("conftest.mmap", 0600);
10368 if (fd < 0)
10369 return 1;
10370 if (write (fd, data, pagesize) != pagesize)
10371 return 1;
10372 close (fd);
10373
10374 /* Next, try to mmap the file at a fixed address which already has
10375 something else allocated at it. If we can, also make sure that
10376 we see the same garbage. */
10377 fd = open ("conftest.mmap", O_RDWR);
10378 if (fd < 0)
10379 return 1;
10380 data2 = (char *) malloc (2 * pagesize);
10381 if (!data2)
10382 return 1;
10383 data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
10384 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
10385 MAP_PRIVATE | MAP_FIXED, fd, 0L))
10386 return 1;
10387 for (i = 0; i < pagesize; ++i)
10388 if (*(data + i) != *(data2 + i))
10389 return 1;
10390
10391 /* Finally, make sure that changes to the mapped area do not
10392 percolate back to the file as seen by read(). (This is a bug on
10393 some variants of i386 svr4.0.) */
10394 for (i = 0; i < pagesize; ++i)
10395 *(data2 + i) = *(data2 + i) + 1;
10396 data3 = (char *) malloc (pagesize);
10397 if (!data3)
10398 return 1;
10399 if (read (fd, data3, pagesize) != pagesize)
10400 return 1;
10401 for (i = 0; i < pagesize; ++i)
10402 if (*(data + i) != *(data3 + i))
10403 return 1;
10404 close (fd);
10405 return 0;
10406 }
10407 _ACEOF
10408 rm -f conftest$ac_exeext
10409 if { (ac_try="$ac_link"
10410 case "(($ac_try" in
10411 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10412 *) ac_try_echo=$ac_try;;
10413 esac
10414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10415 (eval "$ac_link") 2>&5
10416 ac_status=$?
10417 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10418 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
10419 { (case "(($ac_try" in
10420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10421 *) ac_try_echo=$ac_try;;
10422 esac
10423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10424 (eval "$ac_try") 2>&5
10425 ac_status=$?
10426 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10427 (exit $ac_status); }; }; then
10428 ac_cv_func_mmap_fixed_mapped=yes
10429 else
10430 echo "$as_me: program exited with status $ac_status" >&5
10431 echo "$as_me: failed program was:" >&5
10432 sed 's/^/| /' conftest.$ac_ext >&5
10433
10434 ( exit $ac_status )
10435 ac_cv_func_mmap_fixed_mapped=no
10436 fi
10437 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
10438 fi
10439
10440
10441 fi
10442 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
10443 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
10444 if test $ac_cv_func_mmap_fixed_mapped = yes; then
10445
10446 cat >>confdefs.h <<\_ACEOF
10447 #define HAVE_MMAP 1
10448 _ACEOF
10449
10450 fi
10451 rm -f conftest.mmap
10452
10453 if test $use_mmap_for_buffers = yes; then
10454 REL_ALLOC=no
10455 fi
10456
10457 LIBS="$libsrc_libs $LIBS"
10458
10459
10460 { echo "$as_me:$LINENO: checking for dnet_ntoa in -ldnet" >&5
10461 echo $ECHO_N "checking for dnet_ntoa in -ldnet... $ECHO_C" >&6; }
10462 if test "${ac_cv_lib_dnet_dnet_ntoa+set}" = set; then
10463 echo $ECHO_N "(cached) $ECHO_C" >&6
10464 else
10465 ac_check_lib_save_LIBS=$LIBS
10466 LIBS="-ldnet $LIBS"
10467 cat >conftest.$ac_ext <<_ACEOF
10468 /* confdefs.h. */
10469 _ACEOF
10470 cat confdefs.h >>conftest.$ac_ext
10471 cat >>conftest.$ac_ext <<_ACEOF
10472 /* end confdefs.h. */
10473
10474 /* Override any GCC internal prototype to avoid an error.
10475 Use char because int might match the return type of a GCC
10476 builtin and then its argument prototype would still apply. */
10477 #ifdef __cplusplus
10478 extern "C"
10479 #endif
10480 char dnet_ntoa ();
10481 int
10482 main ()
10483 {
10484 return dnet_ntoa ();
10485 ;
10486 return 0;
10487 }
10488 _ACEOF
10489 rm -f conftest.$ac_objext conftest$ac_exeext
10490 if { (ac_try="$ac_link"
10491 case "(($ac_try" in
10492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10493 *) ac_try_echo=$ac_try;;
10494 esac
10495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10496 (eval "$ac_link") 2>conftest.er1
10497 ac_status=$?
10498 grep -v '^ *+' conftest.er1 >conftest.err
10499 rm -f conftest.er1
10500 cat conftest.err >&5
10501 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10502 (exit $ac_status); } && {
10503 test -z "$ac_c_werror_flag" ||
10504 test ! -s conftest.err
10505 } && test -s conftest$ac_exeext &&
10506 $as_test_x conftest$ac_exeext; then
10507 ac_cv_lib_dnet_dnet_ntoa=yes
10508 else
10509 echo "$as_me: failed program was:" >&5
10510 sed 's/^/| /' conftest.$ac_ext >&5
10511
10512 ac_cv_lib_dnet_dnet_ntoa=no
10513 fi
10514
10515 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10516 conftest$ac_exeext conftest.$ac_ext
10517 LIBS=$ac_check_lib_save_LIBS
10518 fi
10519 { echo "$as_me:$LINENO: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
10520 echo "${ECHO_T}$ac_cv_lib_dnet_dnet_ntoa" >&6; }
10521 if test $ac_cv_lib_dnet_dnet_ntoa = yes; then
10522 cat >>confdefs.h <<_ACEOF
10523 #define HAVE_LIBDNET 1
10524 _ACEOF
10525
10526 LIBS="-ldnet $LIBS"
10527
10528 fi
10529
10530
10531 { echo "$as_me:$LINENO: checking for main in -lXbsd" >&5
10532 echo $ECHO_N "checking for main in -lXbsd... $ECHO_C" >&6; }
10533 if test "${ac_cv_lib_Xbsd_main+set}" = set; then
10534 echo $ECHO_N "(cached) $ECHO_C" >&6
10535 else
10536 ac_check_lib_save_LIBS=$LIBS
10537 LIBS="-lXbsd $LIBS"
10538 cat >conftest.$ac_ext <<_ACEOF
10539 /* confdefs.h. */
10540 _ACEOF
10541 cat confdefs.h >>conftest.$ac_ext
10542 cat >>conftest.$ac_ext <<_ACEOF
10543 /* end confdefs.h. */
10544
10545
10546 int
10547 main ()
10548 {
10549 return main ();
10550 ;
10551 return 0;
10552 }
10553 _ACEOF
10554 rm -f conftest.$ac_objext conftest$ac_exeext
10555 if { (ac_try="$ac_link"
10556 case "(($ac_try" in
10557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10558 *) ac_try_echo=$ac_try;;
10559 esac
10560 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10561 (eval "$ac_link") 2>conftest.er1
10562 ac_status=$?
10563 grep -v '^ *+' conftest.er1 >conftest.err
10564 rm -f conftest.er1
10565 cat conftest.err >&5
10566 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10567 (exit $ac_status); } && {
10568 test -z "$ac_c_werror_flag" ||
10569 test ! -s conftest.err
10570 } && test -s conftest$ac_exeext &&
10571 $as_test_x conftest$ac_exeext; then
10572 ac_cv_lib_Xbsd_main=yes
10573 else
10574 echo "$as_me: failed program was:" >&5
10575 sed 's/^/| /' conftest.$ac_ext >&5
10576
10577 ac_cv_lib_Xbsd_main=no
10578 fi
10579
10580 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10581 conftest$ac_exeext conftest.$ac_ext
10582 LIBS=$ac_check_lib_save_LIBS
10583 fi
10584 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xbsd_main" >&5
10585 echo "${ECHO_T}$ac_cv_lib_Xbsd_main" >&6; }
10586 if test $ac_cv_lib_Xbsd_main = yes; then
10587 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -lXbsd"
10588 fi
10589
10590
10591
10592 { echo "$as_me:$LINENO: checking for cma_open in -lpthreads" >&5
10593 echo $ECHO_N "checking for cma_open in -lpthreads... $ECHO_C" >&6; }
10594 if test "${ac_cv_lib_pthreads_cma_open+set}" = set; then
10595 echo $ECHO_N "(cached) $ECHO_C" >&6
10596 else
10597 ac_check_lib_save_LIBS=$LIBS
10598 LIBS="-lpthreads $LIBS"
10599 cat >conftest.$ac_ext <<_ACEOF
10600 /* confdefs.h. */
10601 _ACEOF
10602 cat confdefs.h >>conftest.$ac_ext
10603 cat >>conftest.$ac_ext <<_ACEOF
10604 /* end confdefs.h. */
10605
10606 /* Override any GCC internal prototype to avoid an error.
10607 Use char because int might match the return type of a GCC
10608 builtin and then its argument prototype would still apply. */
10609 #ifdef __cplusplus
10610 extern "C"
10611 #endif
10612 char cma_open ();
10613 int
10614 main ()
10615 {
10616 return cma_open ();
10617 ;
10618 return 0;
10619 }
10620 _ACEOF
10621 rm -f conftest.$ac_objext conftest$ac_exeext
10622 if { (ac_try="$ac_link"
10623 case "(($ac_try" in
10624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10625 *) ac_try_echo=$ac_try;;
10626 esac
10627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10628 (eval "$ac_link") 2>conftest.er1
10629 ac_status=$?
10630 grep -v '^ *+' conftest.er1 >conftest.err
10631 rm -f conftest.er1
10632 cat conftest.err >&5
10633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10634 (exit $ac_status); } && {
10635 test -z "$ac_c_werror_flag" ||
10636 test ! -s conftest.err
10637 } && test -s conftest$ac_exeext &&
10638 $as_test_x conftest$ac_exeext; then
10639 ac_cv_lib_pthreads_cma_open=yes
10640 else
10641 echo "$as_me: failed program was:" >&5
10642 sed 's/^/| /' conftest.$ac_ext >&5
10643
10644 ac_cv_lib_pthreads_cma_open=no
10645 fi
10646
10647 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10648 conftest$ac_exeext conftest.$ac_ext
10649 LIBS=$ac_check_lib_save_LIBS
10650 fi
10651 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthreads_cma_open" >&5
10652 echo "${ECHO_T}$ac_cv_lib_pthreads_cma_open" >&6; }
10653 if test $ac_cv_lib_pthreads_cma_open = yes; then
10654 cat >>confdefs.h <<_ACEOF
10655 #define HAVE_LIBPTHREADS 1
10656 _ACEOF
10657
10658 LIBS="-lpthreads $LIBS"
10659
10660 fi
10661
10662
10663 { echo "$as_me:$LINENO: checking for XFree86 in /usr/X386" >&5
10664 echo $ECHO_N "checking for XFree86 in /usr/X386... $ECHO_C" >&6; }
10665 if test -d /usr/X386/include; then
10666 HAVE_XFREE386=yes
10667 : ${C_SWITCH_X_SITE="-I/usr/X386/include"}
10668 else
10669 HAVE_XFREE386=no
10670 fi
10671 { echo "$as_me:$LINENO: result: $HAVE_XFREE386" >&5
10672 echo "${ECHO_T}$HAVE_XFREE386" >&6; }
10673
10674
10675 case ${host_os} in
10676 aix*)
10677 { echo "$as_me:$LINENO: checking for -bbigtoc option" >&5
10678 echo $ECHO_N "checking for -bbigtoc option... $ECHO_C" >&6; }
10679 if test "${gdb_cv_bigtoc+set}" = set; then
10680 echo $ECHO_N "(cached) $ECHO_C" >&6
10681 else
10682
10683 case $GCC in
10684 yes) gdb_cv_bigtoc=-Wl,-bbigtoc ;;
10685 *) gdb_cv_bigtoc=-bbigtoc ;;
10686 esac
10687
10688 LDFLAGS=$LDFLAGS\ $gdb_cv_bigtoc
10689 cat >conftest.$ac_ext <<_ACEOF
10690 /* confdefs.h. */
10691 _ACEOF
10692 cat confdefs.h >>conftest.$ac_ext
10693 cat >>conftest.$ac_ext <<_ACEOF
10694 /* end confdefs.h. */
10695
10696 int
10697 main ()
10698 {
10699 int i;
10700 ;
10701 return 0;
10702 }
10703 _ACEOF
10704 rm -f conftest.$ac_objext conftest$ac_exeext
10705 if { (ac_try="$ac_link"
10706 case "(($ac_try" in
10707 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10708 *) ac_try_echo=$ac_try;;
10709 esac
10710 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10711 (eval "$ac_link") 2>conftest.er1
10712 ac_status=$?
10713 grep -v '^ *+' conftest.er1 >conftest.err
10714 rm -f conftest.er1
10715 cat conftest.err >&5
10716 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10717 (exit $ac_status); } && {
10718 test -z "$ac_c_werror_flag" ||
10719 test ! -s conftest.err
10720 } && test -s conftest$ac_exeext &&
10721 $as_test_x conftest$ac_exeext; then
10722 :
10723 else
10724 echo "$as_me: failed program was:" >&5
10725 sed 's/^/| /' conftest.$ac_ext >&5
10726
10727 gdb_cv_bigtoc=
10728 fi
10729
10730 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10731 conftest$ac_exeext conftest.$ac_ext
10732
10733 fi
10734 { echo "$as_me:$LINENO: result: $gdb_cv_bigtoc" >&5
10735 echo "${ECHO_T}$gdb_cv_bigtoc" >&6; }
10736 ;;
10737 esac
10738
10739 # Change CFLAGS and CPPFLAGS temporarily so that C_SWITCH_X_SITE gets
10740 # used for the tests that follow. We set them back to REAL_CFLAGS and
10741 # REAL_CPPFLAGS later on.
10742
10743 REAL_CPPFLAGS="$CPPFLAGS"
10744
10745 if test "${HAVE_X11}" = "yes"; then
10746 DEFS="$C_SWITCH_X_SITE $DEFS"
10747 LDFLAGS="$LDFLAGS $LD_SWITCH_X_SITE"
10748 LIBS="$LIBX $LIBS"
10749 CFLAGS="$C_SWITCH_X_SITE $CFLAGS"
10750 CPPFLAGS="$C_SWITCH_X_SITE $CPPFLAGS"
10751
10752 # On Solaris, arrange for LD_RUN_PATH to point to the X libraries for tests.
10753 # This is handled by LD_SWITCH_X_SITE_AUX during the real build,
10754 # but it's more convenient here to set LD_RUN_PATH
10755 # since this also works on hosts that don't understand LD_SWITCH_X_SITE_AUX.
10756 if test "${x_libraries}" != NONE && test -n "${x_libraries}"; then
10757 LD_RUN_PATH=$x_libraries${LD_RUN_PATH+:}$LD_RUN_PATH
10758 export LD_RUN_PATH
10759 fi
10760
10761 if test "${opsys}" = "gnu-linux"; then
10762 { echo "$as_me:$LINENO: checking whether X on GNU/Linux needs -b to link" >&5
10763 echo $ECHO_N "checking whether X on GNU/Linux needs -b to link... $ECHO_C" >&6; }
10764 cat >conftest.$ac_ext <<_ACEOF
10765 /* confdefs.h. */
10766 _ACEOF
10767 cat confdefs.h >>conftest.$ac_ext
10768 cat >>conftest.$ac_ext <<_ACEOF
10769 /* end confdefs.h. */
10770
10771 int
10772 main ()
10773 {
10774 XOpenDisplay ("foo");
10775 ;
10776 return 0;
10777 }
10778 _ACEOF
10779 rm -f conftest.$ac_objext conftest$ac_exeext
10780 if { (ac_try="$ac_link"
10781 case "(($ac_try" in
10782 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10783 *) ac_try_echo=$ac_try;;
10784 esac
10785 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10786 (eval "$ac_link") 2>conftest.er1
10787 ac_status=$?
10788 grep -v '^ *+' conftest.er1 >conftest.err
10789 rm -f conftest.er1
10790 cat conftest.err >&5
10791 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10792 (exit $ac_status); } && {
10793 test -z "$ac_c_werror_flag" ||
10794 test ! -s conftest.err
10795 } && test -s conftest$ac_exeext &&
10796 $as_test_x conftest$ac_exeext; then
10797 xlinux_first_failure=no
10798 else
10799 echo "$as_me: failed program was:" >&5
10800 sed 's/^/| /' conftest.$ac_ext >&5
10801
10802 xlinux_first_failure=yes
10803 fi
10804
10805 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10806 conftest$ac_exeext conftest.$ac_ext
10807 if test "${xlinux_first_failure}" = "yes"; then
10808 OLD_LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE"
10809 OLD_C_SWITCH_X_SITE="$C_SWITCH_X_SITE"
10810 OLD_CPPFLAGS="$CPPFLAGS"
10811 OLD_LIBS="$LIBS"
10812 LD_SWITCH_X_SITE="$LD_SWITCH_X_SITE -b i486-linuxaout"
10813 C_SWITCH_X_SITE="$C_SWITCH_X_SITE -b i486-linuxaout"
10814 CPPFLAGS="$CPPFLAGS -b i486-linuxaout"
10815 LIBS="$LIBS -b i486-linuxaout"
10816 cat >conftest.$ac_ext <<_ACEOF
10817 /* confdefs.h. */
10818 _ACEOF
10819 cat confdefs.h >>conftest.$ac_ext
10820 cat >>conftest.$ac_ext <<_ACEOF
10821 /* end confdefs.h. */
10822
10823 int
10824 main ()
10825 {
10826 XOpenDisplay ("foo");
10827 ;
10828 return 0;
10829 }
10830 _ACEOF
10831 rm -f conftest.$ac_objext conftest$ac_exeext
10832 if { (ac_try="$ac_link"
10833 case "(($ac_try" in
10834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10835 *) ac_try_echo=$ac_try;;
10836 esac
10837 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10838 (eval "$ac_link") 2>conftest.er1
10839 ac_status=$?
10840 grep -v '^ *+' conftest.er1 >conftest.err
10841 rm -f conftest.er1
10842 cat conftest.err >&5
10843 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10844 (exit $ac_status); } && {
10845 test -z "$ac_c_werror_flag" ||
10846 test ! -s conftest.err
10847 } && test -s conftest$ac_exeext &&
10848 $as_test_x conftest$ac_exeext; then
10849 xlinux_second_failure=no
10850 else
10851 echo "$as_me: failed program was:" >&5
10852 sed 's/^/| /' conftest.$ac_ext >&5
10853
10854 xlinux_second_failure=yes
10855 fi
10856
10857 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10858 conftest$ac_exeext conftest.$ac_ext
10859 if test "${xlinux_second_failure}" = "yes"; then
10860 # If we get the same failure with -b, there is no use adding -b.
10861 # So take it out. This plays safe.
10862 LD_SWITCH_X_SITE="$OLD_LD_SWITCH_X_SITE"
10863 C_SWITCH_X_SITE="$OLD_C_SWITCH_X_SITE"
10864 CPPFLAGS="$OLD_CPPFLAGS"
10865 LIBS="$OLD_LIBS"
10866 { echo "$as_me:$LINENO: result: no" >&5
10867 echo "${ECHO_T}no" >&6; }
10868 else
10869 { echo "$as_me:$LINENO: result: yes" >&5
10870 echo "${ECHO_T}yes" >&6; }
10871 fi
10872 else
10873 { echo "$as_me:$LINENO: result: no" >&5
10874 echo "${ECHO_T}no" >&6; }
10875 fi
10876 fi
10877
10878 # Reportedly, some broken Solaris systems have XKBlib.h but are missing
10879 # header files included from there.
10880 { echo "$as_me:$LINENO: checking for Xkb" >&5
10881 echo $ECHO_N "checking for Xkb... $ECHO_C" >&6; }
10882 cat >conftest.$ac_ext <<_ACEOF
10883 /* confdefs.h. */
10884 _ACEOF
10885 cat confdefs.h >>conftest.$ac_ext
10886 cat >>conftest.$ac_ext <<_ACEOF
10887 /* end confdefs.h. */
10888 #include <X11/Xlib.h>
10889 #include <X11/XKBlib.h>
10890 int
10891 main ()
10892 {
10893 XkbDescPtr kb = XkbGetKeyboard (0, XkbAllComponentsMask, XkbUseCoreKbd);
10894 ;
10895 return 0;
10896 }
10897 _ACEOF
10898 rm -f conftest.$ac_objext conftest$ac_exeext
10899 if { (ac_try="$ac_link"
10900 case "(($ac_try" in
10901 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10902 *) ac_try_echo=$ac_try;;
10903 esac
10904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10905 (eval "$ac_link") 2>conftest.er1
10906 ac_status=$?
10907 grep -v '^ *+' conftest.er1 >conftest.err
10908 rm -f conftest.er1
10909 cat conftest.err >&5
10910 echo "$as_me:$LINENO: \$? = $ac_status" >&5
10911 (exit $ac_status); } && {
10912 test -z "$ac_c_werror_flag" ||
10913 test ! -s conftest.err
10914 } && test -s conftest$ac_exeext &&
10915 $as_test_x conftest$ac_exeext; then
10916 emacs_xkb=yes
10917 else
10918 echo "$as_me: failed program was:" >&5
10919 sed 's/^/| /' conftest.$ac_ext >&5
10920
10921 emacs_xkb=no
10922 fi
10923
10924 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
10925 conftest$ac_exeext conftest.$ac_ext
10926 { echo "$as_me:$LINENO: result: $emacs_xkb" >&5
10927 echo "${ECHO_T}$emacs_xkb" >&6; }
10928 if test $emacs_xkb = yes; then
10929
10930 cat >>confdefs.h <<\_ACEOF
10931 #define HAVE_XKBGETKEYBOARD 1
10932 _ACEOF
10933
10934 fi
10935
10936
10937
10938
10939
10940 for ac_func in XrmSetDatabase XScreenResourceString \
10941 XScreenNumberOfScreen XSetWMProtocols
10942 do
10943 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
10944 { echo "$as_me:$LINENO: checking for $ac_func" >&5
10945 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
10946 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
10947 echo $ECHO_N "(cached) $ECHO_C" >&6
10948 else
10949 cat >conftest.$ac_ext <<_ACEOF
10950 /* confdefs.h. */
10951 _ACEOF
10952 cat confdefs.h >>conftest.$ac_ext
10953 cat >>conftest.$ac_ext <<_ACEOF
10954 /* end confdefs.h. */
10955 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
10956 For example, HP-UX 11i <limits.h> declares gettimeofday. */
10957 #define $ac_func innocuous_$ac_func
10958
10959 /* System header to define __stub macros and hopefully few prototypes,
10960 which can conflict with char $ac_func (); below.
10961 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10962 <limits.h> exists even on freestanding compilers. */
10963
10964 #ifdef __STDC__
10965 # include <limits.h>
10966 #else
10967 # include <assert.h>
10968 #endif
10969
10970 #undef $ac_func
10971
10972 /* Override any GCC internal prototype to avoid an error.
10973 Use char because int might match the return type of a GCC
10974 builtin and then its argument prototype would still apply. */
10975 #ifdef __cplusplus
10976 extern "C"
10977 #endif
10978 char $ac_func ();
10979 /* The GNU C library defines this for functions which it implements
10980 to always fail with ENOSYS. Some functions are actually named
10981 something starting with __ and the normal name is an alias. */
10982 #if defined __stub_$ac_func || defined __stub___$ac_func
10983 choke me
10984 #endif
10985
10986 int
10987 main ()
10988 {
10989 return $ac_func ();
10990 ;
10991 return 0;
10992 }
10993 _ACEOF
10994 rm -f conftest.$ac_objext conftest$ac_exeext
10995 if { (ac_try="$ac_link"
10996 case "(($ac_try" in
10997 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10998 *) ac_try_echo=$ac_try;;
10999 esac
11000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11001 (eval "$ac_link") 2>conftest.er1
11002 ac_status=$?
11003 grep -v '^ *+' conftest.er1 >conftest.err
11004 rm -f conftest.er1
11005 cat conftest.err >&5
11006 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11007 (exit $ac_status); } && {
11008 test -z "$ac_c_werror_flag" ||
11009 test ! -s conftest.err
11010 } && test -s conftest$ac_exeext &&
11011 $as_test_x conftest$ac_exeext; then
11012 eval "$as_ac_var=yes"
11013 else
11014 echo "$as_me: failed program was:" >&5
11015 sed 's/^/| /' conftest.$ac_ext >&5
11016
11017 eval "$as_ac_var=no"
11018 fi
11019
11020 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11021 conftest$ac_exeext conftest.$ac_ext
11022 fi
11023 ac_res=`eval echo '${'$as_ac_var'}'`
11024 { echo "$as_me:$LINENO: result: $ac_res" >&5
11025 echo "${ECHO_T}$ac_res" >&6; }
11026 if test `eval echo '${'$as_ac_var'}'` = yes; then
11027 cat >>confdefs.h <<_ACEOF
11028 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11029 _ACEOF
11030
11031 fi
11032 done
11033
11034 fi
11035
11036 if test "${window_system}" = "x11"; then
11037 { echo "$as_me:$LINENO: checking X11 version 6" >&5
11038 echo $ECHO_N "checking X11 version 6... $ECHO_C" >&6; }
11039 if test "${emacs_cv_x11_version_6+set}" = set; then
11040 echo $ECHO_N "(cached) $ECHO_C" >&6
11041 else
11042 cat >conftest.$ac_ext <<_ACEOF
11043 /* confdefs.h. */
11044 _ACEOF
11045 cat confdefs.h >>conftest.$ac_ext
11046 cat >>conftest.$ac_ext <<_ACEOF
11047 /* end confdefs.h. */
11048 #include <X11/Xlib.h>
11049 int
11050 main ()
11051 {
11052 #if XlibSpecificationRelease < 6
11053 fail;
11054 #endif
11055
11056 ;
11057 return 0;
11058 }
11059 _ACEOF
11060 rm -f conftest.$ac_objext conftest$ac_exeext
11061 if { (ac_try="$ac_link"
11062 case "(($ac_try" in
11063 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11064 *) ac_try_echo=$ac_try;;
11065 esac
11066 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11067 (eval "$ac_link") 2>conftest.er1
11068 ac_status=$?
11069 grep -v '^ *+' conftest.er1 >conftest.err
11070 rm -f conftest.er1
11071 cat conftest.err >&5
11072 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11073 (exit $ac_status); } && {
11074 test -z "$ac_c_werror_flag" ||
11075 test ! -s conftest.err
11076 } && test -s conftest$ac_exeext &&
11077 $as_test_x conftest$ac_exeext; then
11078 emacs_cv_x11_version_6=yes
11079 else
11080 echo "$as_me: failed program was:" >&5
11081 sed 's/^/| /' conftest.$ac_ext >&5
11082
11083 emacs_cv_x11_version_6=no
11084 fi
11085
11086 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11087 conftest$ac_exeext conftest.$ac_ext
11088 fi
11089
11090 if test $emacs_cv_x11_version_6 = yes; then
11091 { echo "$as_me:$LINENO: result: 6 or newer" >&5
11092 echo "${ECHO_T}6 or newer" >&6; }
11093
11094 cat >>confdefs.h <<\_ACEOF
11095 #define HAVE_X11R6 1
11096 _ACEOF
11097
11098 else
11099 { echo "$as_me:$LINENO: result: before 6" >&5
11100 echo "${ECHO_T}before 6" >&6; }
11101 fi
11102 fi
11103
11104
11105 ### Use -lrsvg-2 if available, unless `--with-rsvg=no' is specified.
11106 HAVE_RSVG=no
11107 if test "${HAVE_X11}" = "yes" || test "${HAVE_CARBON}" = "yes"; then
11108 if test "${with_rsvg}" != "no"; then
11109 if test "X${with_pkg_config_prog}" != X; then
11110 PKG_CONFIG="${with_pkg_config_prog}"
11111 fi
11112
11113 RSVG_REQUIRED=2.0.0
11114 RSVG_MODULE="librsvg-2.0 >= $RSVG_REQUIRED"
11115
11116
11117 succeeded=no
11118
11119 if test -z "$PKG_CONFIG"; then
11120 # Extract the first word of "pkg-config", so it can be a program name with args.
11121 set dummy pkg-config; ac_word=$2
11122 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11123 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11124 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11125 echo $ECHO_N "(cached) $ECHO_C" >&6
11126 else
11127 case $PKG_CONFIG in
11128 [\\/]* | ?:[\\/]*)
11129 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11130 ;;
11131 *)
11132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11133 for as_dir in $PATH
11134 do
11135 IFS=$as_save_IFS
11136 test -z "$as_dir" && as_dir=.
11137 for ac_exec_ext in '' $ac_executable_extensions; do
11138 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11139 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11140 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11141 break 2
11142 fi
11143 done
11144 done
11145 IFS=$as_save_IFS
11146
11147 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11148 ;;
11149 esac
11150 fi
11151 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11152 if test -n "$PKG_CONFIG"; then
11153 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11154 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11155 else
11156 { echo "$as_me:$LINENO: result: no" >&5
11157 echo "${ECHO_T}no" >&6; }
11158 fi
11159
11160
11161 fi
11162
11163 if test "$PKG_CONFIG" = "no" ; then
11164 :
11165 else
11166 PKG_CONFIG_MIN_VERSION=0.9.0
11167 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11168 { echo "$as_me:$LINENO: checking for $RSVG_MODULE" >&5
11169 echo $ECHO_N "checking for $RSVG_MODULE... $ECHO_C" >&6; }
11170
11171 if $PKG_CONFIG --exists "$RSVG_MODULE" 2>&5; then
11172 { echo "$as_me:$LINENO: result: yes" >&5
11173 echo "${ECHO_T}yes" >&6; }
11174 succeeded=yes
11175
11176 { echo "$as_me:$LINENO: checking RSVG_CFLAGS" >&5
11177 echo $ECHO_N "checking RSVG_CFLAGS... $ECHO_C" >&6; }
11178 RSVG_CFLAGS=`$PKG_CONFIG --cflags "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11179 { echo "$as_me:$LINENO: result: $RSVG_CFLAGS" >&5
11180 echo "${ECHO_T}$RSVG_CFLAGS" >&6; }
11181
11182 { echo "$as_me:$LINENO: checking RSVG_LIBS" >&5
11183 echo $ECHO_N "checking RSVG_LIBS... $ECHO_C" >&6; }
11184 RSVG_LIBS=`$PKG_CONFIG --libs "$RSVG_MODULE"|sed -e 's,///*,/,g'`
11185 { echo "$as_me:$LINENO: result: $RSVG_LIBS" >&5
11186 echo "${ECHO_T}$RSVG_LIBS" >&6; }
11187 else
11188 { echo "$as_me:$LINENO: result: no" >&5
11189 echo "${ECHO_T}no" >&6; }
11190 RSVG_CFLAGS=""
11191 RSVG_LIBS=""
11192 ## If we have a custom action on failure, don't print errors, but
11193 ## do set a variable so people can do so.
11194 RSVG_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$RSVG_MODULE"`
11195
11196 fi
11197
11198
11199
11200 else
11201 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11202 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11203 fi
11204 fi
11205
11206 if test $succeeded = yes; then
11207 :
11208 else
11209 :
11210 fi
11211
11212
11213
11214
11215 if test ".${RSVG_CFLAGS}" != "."; then
11216 HAVE_RSVG=yes
11217
11218 cat >>confdefs.h <<\_ACEOF
11219 #define HAVE_RSVG 1
11220 _ACEOF
11221
11222 CFLAGS="$CFLAGS $RSVG_CFLAGS"
11223 LIBS="$RSVG_LIBS $LIBS"
11224 fi
11225 fi
11226 fi
11227
11228
11229 HAVE_GTK=no
11230 if test "${with_gtk}" = "yes" && test "$USE_X_TOOLKIT" = "gtk"; then
11231 USE_X_TOOLKIT=none
11232 fi
11233 if test "${with_gtk}" = "yes" || test "$USE_X_TOOLKIT" = "gtk" || \
11234 test "$USE_X_TOOLKIT" = "maybe"; then
11235 if test "$USE_X_TOOLKIT" != "none" && test "$USE_X_TOOLKIT" != "maybe"; then
11236 { { echo "$as_me:$LINENO: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&5
11237 echo "$as_me: error: Conflicting options, --with-gtk is incompatible with --with-x-toolkit=${with_x_toolkit}" >&2;}
11238 { (exit 1); exit 1; }; };
11239 fi
11240 GLIB_REQUIRED=2.6
11241 GTK_REQUIRED=2.6
11242 GTK_MODULES="gtk+-2.0 >= $GTK_REQUIRED glib-2.0 >= $GLIB_REQUIRED"
11243
11244 if test "X${with_pkg_config_prog}" != X; then
11245 PKG_CONFIG="${with_pkg_config_prog}"
11246 fi
11247
11248 succeeded=no
11249
11250 if test -z "$PKG_CONFIG"; then
11251 # Extract the first word of "pkg-config", so it can be a program name with args.
11252 set dummy pkg-config; ac_word=$2
11253 { echo "$as_me:$LINENO: checking for $ac_word" >&5
11254 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
11255 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
11256 echo $ECHO_N "(cached) $ECHO_C" >&6
11257 else
11258 case $PKG_CONFIG in
11259 [\\/]* | ?:[\\/]*)
11260 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
11261 ;;
11262 *)
11263 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
11264 for as_dir in $PATH
11265 do
11266 IFS=$as_save_IFS
11267 test -z "$as_dir" && as_dir=.
11268 for ac_exec_ext in '' $ac_executable_extensions; do
11269 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
11270 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
11271 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
11272 break 2
11273 fi
11274 done
11275 done
11276 IFS=$as_save_IFS
11277
11278 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
11279 ;;
11280 esac
11281 fi
11282 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
11283 if test -n "$PKG_CONFIG"; then
11284 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
11285 echo "${ECHO_T}$PKG_CONFIG" >&6; }
11286 else
11287 { echo "$as_me:$LINENO: result: no" >&5
11288 echo "${ECHO_T}no" >&6; }
11289 fi
11290
11291
11292 fi
11293
11294 if test "$PKG_CONFIG" = "no" ; then
11295 pkg_check_gtk=no
11296 else
11297 PKG_CONFIG_MIN_VERSION=0.9.0
11298 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
11299 { echo "$as_me:$LINENO: checking for $GTK_MODULES" >&5
11300 echo $ECHO_N "checking for $GTK_MODULES... $ECHO_C" >&6; }
11301
11302 if $PKG_CONFIG --exists "$GTK_MODULES" 2>&5; then
11303 { echo "$as_me:$LINENO: result: yes" >&5
11304 echo "${ECHO_T}yes" >&6; }
11305 succeeded=yes
11306
11307 { echo "$as_me:$LINENO: checking GTK_CFLAGS" >&5
11308 echo $ECHO_N "checking GTK_CFLAGS... $ECHO_C" >&6; }
11309 GTK_CFLAGS=`$PKG_CONFIG --cflags "$GTK_MODULES"|sed -e 's,///*,/,g'`
11310 { echo "$as_me:$LINENO: result: $GTK_CFLAGS" >&5
11311 echo "${ECHO_T}$GTK_CFLAGS" >&6; }
11312
11313 { echo "$as_me:$LINENO: checking GTK_LIBS" >&5
11314 echo $ECHO_N "checking GTK_LIBS... $ECHO_C" >&6; }
11315 GTK_LIBS=`$PKG_CONFIG --libs "$GTK_MODULES"|sed -e 's,///*,/,g'`
11316 { echo "$as_me:$LINENO: result: $GTK_LIBS" >&5
11317 echo "${ECHO_T}$GTK_LIBS" >&6; }
11318 else
11319 { echo "$as_me:$LINENO: result: no" >&5
11320 echo "${ECHO_T}no" >&6; }
11321 GTK_CFLAGS=""
11322 GTK_LIBS=""
11323 ## If we have a custom action on failure, don't print errors, but
11324 ## do set a variable so people can do so.
11325 GTK_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "$GTK_MODULES"`
11326
11327 fi
11328
11329
11330
11331 else
11332 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
11333 echo "*** See http://www.freedesktop.org/software/pkgconfig"
11334 fi
11335 fi
11336
11337 if test $succeeded = yes; then
11338 pkg_check_gtk=yes
11339 else
11340 pkg_check_gtk=no
11341 fi
11342
11343 if test "$pkg_check_gtk" = "no" && test "$USE_X_TOOLKIT" != "maybe"; then
11344 { { echo "$as_me:$LINENO: error: $GTK_PKG_ERRORS" >&5
11345 echo "$as_me: error: $GTK_PKG_ERRORS" >&2;}
11346 { (exit 1); exit 1; }; }
11347 fi
11348 fi
11349
11350
11351 if test x"$pkg_check_gtk" = xyes; then
11352
11353
11354
11355 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $GTK_CFLAGS"
11356 CFLAGS="$CFLAGS $GTK_CFLAGS"
11357 LIBS="$GTK_LIBS $LIBS"
11358 GTK_COMPILES=no
11359
11360 for ac_func in gtk_main
11361 do
11362 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11363 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11364 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11365 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11366 echo $ECHO_N "(cached) $ECHO_C" >&6
11367 else
11368 cat >conftest.$ac_ext <<_ACEOF
11369 /* confdefs.h. */
11370 _ACEOF
11371 cat confdefs.h >>conftest.$ac_ext
11372 cat >>conftest.$ac_ext <<_ACEOF
11373 /* end confdefs.h. */
11374 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11375 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11376 #define $ac_func innocuous_$ac_func
11377
11378 /* System header to define __stub macros and hopefully few prototypes,
11379 which can conflict with char $ac_func (); below.
11380 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11381 <limits.h> exists even on freestanding compilers. */
11382
11383 #ifdef __STDC__
11384 # include <limits.h>
11385 #else
11386 # include <assert.h>
11387 #endif
11388
11389 #undef $ac_func
11390
11391 /* Override any GCC internal prototype to avoid an error.
11392 Use char because int might match the return type of a GCC
11393 builtin and then its argument prototype would still apply. */
11394 #ifdef __cplusplus
11395 extern "C"
11396 #endif
11397 char $ac_func ();
11398 /* The GNU C library defines this for functions which it implements
11399 to always fail with ENOSYS. Some functions are actually named
11400 something starting with __ and the normal name is an alias. */
11401 #if defined __stub_$ac_func || defined __stub___$ac_func
11402 choke me
11403 #endif
11404
11405 int
11406 main ()
11407 {
11408 return $ac_func ();
11409 ;
11410 return 0;
11411 }
11412 _ACEOF
11413 rm -f conftest.$ac_objext conftest$ac_exeext
11414 if { (ac_try="$ac_link"
11415 case "(($ac_try" in
11416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11417 *) ac_try_echo=$ac_try;;
11418 esac
11419 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11420 (eval "$ac_link") 2>conftest.er1
11421 ac_status=$?
11422 grep -v '^ *+' conftest.er1 >conftest.err
11423 rm -f conftest.er1
11424 cat conftest.err >&5
11425 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11426 (exit $ac_status); } && {
11427 test -z "$ac_c_werror_flag" ||
11428 test ! -s conftest.err
11429 } && test -s conftest$ac_exeext &&
11430 $as_test_x conftest$ac_exeext; then
11431 eval "$as_ac_var=yes"
11432 else
11433 echo "$as_me: failed program was:" >&5
11434 sed 's/^/| /' conftest.$ac_ext >&5
11435
11436 eval "$as_ac_var=no"
11437 fi
11438
11439 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11440 conftest$ac_exeext conftest.$ac_ext
11441 fi
11442 ac_res=`eval echo '${'$as_ac_var'}'`
11443 { echo "$as_me:$LINENO: result: $ac_res" >&5
11444 echo "${ECHO_T}$ac_res" >&6; }
11445 if test `eval echo '${'$as_ac_var'}'` = yes; then
11446 cat >>confdefs.h <<_ACEOF
11447 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11448 _ACEOF
11449 GTK_COMPILES=yes
11450 fi
11451 done
11452
11453 if test "${GTK_COMPILES}" != "yes"; then
11454 if test "$USE_X_TOOLKIT" != "maybe"; then
11455 { { echo "$as_me:$LINENO: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&5
11456 echo "$as_me: error: Gtk+ wanted, but it does not compile, see config.log. Maybe some x11-devel files missing?" >&2;}
11457 { (exit 1); exit 1; }; };
11458 fi
11459 else
11460 HAVE_GTK=yes
11461
11462 cat >>confdefs.h <<\_ACEOF
11463 #define HAVE_GTK 1
11464 _ACEOF
11465
11466 USE_X_TOOLKIT=none
11467 fi
11468
11469 fi
11470
11471
11472 if test "${HAVE_GTK}" = "yes"; then
11473
11474 if test "$with_toolkit_scroll_bars" != no; then
11475 with_toolkit_scroll_bars=yes
11476 fi
11477
11478 HAVE_GTK_MULTIDISPLAY=no
11479
11480 for ac_func in gdk_display_open
11481 do
11482 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11483 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11484 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11485 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11486 echo $ECHO_N "(cached) $ECHO_C" >&6
11487 else
11488 cat >conftest.$ac_ext <<_ACEOF
11489 /* confdefs.h. */
11490 _ACEOF
11491 cat confdefs.h >>conftest.$ac_ext
11492 cat >>conftest.$ac_ext <<_ACEOF
11493 /* end confdefs.h. */
11494 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11495 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11496 #define $ac_func innocuous_$ac_func
11497
11498 /* System header to define __stub macros and hopefully few prototypes,
11499 which can conflict with char $ac_func (); below.
11500 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11501 <limits.h> exists even on freestanding compilers. */
11502
11503 #ifdef __STDC__
11504 # include <limits.h>
11505 #else
11506 # include <assert.h>
11507 #endif
11508
11509 #undef $ac_func
11510
11511 /* Override any GCC internal prototype to avoid an error.
11512 Use char because int might match the return type of a GCC
11513 builtin and then its argument prototype would still apply. */
11514 #ifdef __cplusplus
11515 extern "C"
11516 #endif
11517 char $ac_func ();
11518 /* The GNU C library defines this for functions which it implements
11519 to always fail with ENOSYS. Some functions are actually named
11520 something starting with __ and the normal name is an alias. */
11521 #if defined __stub_$ac_func || defined __stub___$ac_func
11522 choke me
11523 #endif
11524
11525 int
11526 main ()
11527 {
11528 return $ac_func ();
11529 ;
11530 return 0;
11531 }
11532 _ACEOF
11533 rm -f conftest.$ac_objext conftest$ac_exeext
11534 if { (ac_try="$ac_link"
11535 case "(($ac_try" in
11536 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11537 *) ac_try_echo=$ac_try;;
11538 esac
11539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11540 (eval "$ac_link") 2>conftest.er1
11541 ac_status=$?
11542 grep -v '^ *+' conftest.er1 >conftest.err
11543 rm -f conftest.er1
11544 cat conftest.err >&5
11545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11546 (exit $ac_status); } && {
11547 test -z "$ac_c_werror_flag" ||
11548 test ! -s conftest.err
11549 } && test -s conftest$ac_exeext &&
11550 $as_test_x conftest$ac_exeext; then
11551 eval "$as_ac_var=yes"
11552 else
11553 echo "$as_me: failed program was:" >&5
11554 sed 's/^/| /' conftest.$ac_ext >&5
11555
11556 eval "$as_ac_var=no"
11557 fi
11558
11559 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11560 conftest$ac_exeext conftest.$ac_ext
11561 fi
11562 ac_res=`eval echo '${'$as_ac_var'}'`
11563 { echo "$as_me:$LINENO: result: $ac_res" >&5
11564 echo "${ECHO_T}$ac_res" >&6; }
11565 if test `eval echo '${'$as_ac_var'}'` = yes; then
11566 cat >>confdefs.h <<_ACEOF
11567 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11568 _ACEOF
11569 HAVE_GTK_MULTIDISPLAY=yes
11570 fi
11571 done
11572
11573 if test "${HAVE_GTK_MULTIDISPLAY}" = "yes"; then
11574
11575 cat >>confdefs.h <<\_ACEOF
11576 #define HAVE_GTK_MULTIDISPLAY 1
11577 _ACEOF
11578
11579 fi
11580
11581 HAVE_GTK_FILE_SELECTION=no
11582
11583 for ac_func in gtk_file_selection_new
11584 do
11585 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11586 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11587 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11588 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11589 echo $ECHO_N "(cached) $ECHO_C" >&6
11590 else
11591 cat >conftest.$ac_ext <<_ACEOF
11592 /* confdefs.h. */
11593 _ACEOF
11594 cat confdefs.h >>conftest.$ac_ext
11595 cat >>conftest.$ac_ext <<_ACEOF
11596 /* end confdefs.h. */
11597 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11598 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11599 #define $ac_func innocuous_$ac_func
11600
11601 /* System header to define __stub macros and hopefully few prototypes,
11602 which can conflict with char $ac_func (); below.
11603 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11604 <limits.h> exists even on freestanding compilers. */
11605
11606 #ifdef __STDC__
11607 # include <limits.h>
11608 #else
11609 # include <assert.h>
11610 #endif
11611
11612 #undef $ac_func
11613
11614 /* Override any GCC internal prototype to avoid an error.
11615 Use char because int might match the return type of a GCC
11616 builtin and then its argument prototype would still apply. */
11617 #ifdef __cplusplus
11618 extern "C"
11619 #endif
11620 char $ac_func ();
11621 /* The GNU C library defines this for functions which it implements
11622 to always fail with ENOSYS. Some functions are actually named
11623 something starting with __ and the normal name is an alias. */
11624 #if defined __stub_$ac_func || defined __stub___$ac_func
11625 choke me
11626 #endif
11627
11628 int
11629 main ()
11630 {
11631 return $ac_func ();
11632 ;
11633 return 0;
11634 }
11635 _ACEOF
11636 rm -f conftest.$ac_objext conftest$ac_exeext
11637 if { (ac_try="$ac_link"
11638 case "(($ac_try" in
11639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11640 *) ac_try_echo=$ac_try;;
11641 esac
11642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11643 (eval "$ac_link") 2>conftest.er1
11644 ac_status=$?
11645 grep -v '^ *+' conftest.er1 >conftest.err
11646 rm -f conftest.er1
11647 cat conftest.err >&5
11648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11649 (exit $ac_status); } && {
11650 test -z "$ac_c_werror_flag" ||
11651 test ! -s conftest.err
11652 } && test -s conftest$ac_exeext &&
11653 $as_test_x conftest$ac_exeext; then
11654 eval "$as_ac_var=yes"
11655 else
11656 echo "$as_me: failed program was:" >&5
11657 sed 's/^/| /' conftest.$ac_ext >&5
11658
11659 eval "$as_ac_var=no"
11660 fi
11661
11662 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11663 conftest$ac_exeext conftest.$ac_ext
11664 fi
11665 ac_res=`eval echo '${'$as_ac_var'}'`
11666 { echo "$as_me:$LINENO: result: $ac_res" >&5
11667 echo "${ECHO_T}$ac_res" >&6; }
11668 if test `eval echo '${'$as_ac_var'}'` = yes; then
11669 cat >>confdefs.h <<_ACEOF
11670 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11671 _ACEOF
11672 HAVE_GTK_FILE_SELECTION=yes
11673 fi
11674 done
11675
11676
11677 HAVE_GTK_FILE_CHOOSER=no
11678
11679 for ac_func in gtk_file_chooser_dialog_new
11680 do
11681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11685 echo $ECHO_N "(cached) $ECHO_C" >&6
11686 else
11687 cat >conftest.$ac_ext <<_ACEOF
11688 /* confdefs.h. */
11689 _ACEOF
11690 cat confdefs.h >>conftest.$ac_ext
11691 cat >>conftest.$ac_ext <<_ACEOF
11692 /* end confdefs.h. */
11693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
11695 #define $ac_func innocuous_$ac_func
11696
11697 /* System header to define __stub macros and hopefully few prototypes,
11698 which can conflict with char $ac_func (); below.
11699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11700 <limits.h> exists even on freestanding compilers. */
11701
11702 #ifdef __STDC__
11703 # include <limits.h>
11704 #else
11705 # include <assert.h>
11706 #endif
11707
11708 #undef $ac_func
11709
11710 /* Override any GCC internal prototype to avoid an error.
11711 Use char because int might match the return type of a GCC
11712 builtin and then its argument prototype would still apply. */
11713 #ifdef __cplusplus
11714 extern "C"
11715 #endif
11716 char $ac_func ();
11717 /* The GNU C library defines this for functions which it implements
11718 to always fail with ENOSYS. Some functions are actually named
11719 something starting with __ and the normal name is an alias. */
11720 #if defined __stub_$ac_func || defined __stub___$ac_func
11721 choke me
11722 #endif
11723
11724 int
11725 main ()
11726 {
11727 return $ac_func ();
11728 ;
11729 return 0;
11730 }
11731 _ACEOF
11732 rm -f conftest.$ac_objext conftest$ac_exeext
11733 if { (ac_try="$ac_link"
11734 case "(($ac_try" in
11735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11736 *) ac_try_echo=$ac_try;;
11737 esac
11738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11739 (eval "$ac_link") 2>conftest.er1
11740 ac_status=$?
11741 grep -v '^ *+' conftest.er1 >conftest.err
11742 rm -f conftest.er1
11743 cat conftest.err >&5
11744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11745 (exit $ac_status); } && {
11746 test -z "$ac_c_werror_flag" ||
11747 test ! -s conftest.err
11748 } && test -s conftest$ac_exeext &&
11749 $as_test_x conftest$ac_exeext; then
11750 eval "$as_ac_var=yes"
11751 else
11752 echo "$as_me: failed program was:" >&5
11753 sed 's/^/| /' conftest.$ac_ext >&5
11754
11755 eval "$as_ac_var=no"
11756 fi
11757
11758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11759 conftest$ac_exeext conftest.$ac_ext
11760 fi
11761 ac_res=`eval echo '${'$as_ac_var'}'`
11762 { echo "$as_me:$LINENO: result: $ac_res" >&5
11763 echo "${ECHO_T}$ac_res" >&6; }
11764 if test `eval echo '${'$as_ac_var'}'` = yes; then
11765 cat >>confdefs.h <<_ACEOF
11766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11767 _ACEOF
11768 HAVE_GTK_FILE_CHOOSER=yes
11769 fi
11770 done
11771
11772
11773 if test "$HAVE_GTK_FILE_SELECTION" = yes \
11774 && test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11775
11776 cat >>confdefs.h <<\_ACEOF
11777 #define HAVE_GTK_FILE_BOTH 1
11778 _ACEOF
11779
11780 fi
11781
11782 if test "$HAVE_GTK_FILE_CHOOSER" = yes; then
11783 HAVE_GTK_AND_PTHREAD=no
11784
11785 for ac_header in pthread.h
11786 do
11787 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11788 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11789 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11790 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11791 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11792 echo $ECHO_N "(cached) $ECHO_C" >&6
11793 fi
11794 ac_res=`eval echo '${'$as_ac_Header'}'`
11795 { echo "$as_me:$LINENO: result: $ac_res" >&5
11796 echo "${ECHO_T}$ac_res" >&6; }
11797 else
11798 # Is the header compilable?
11799 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11800 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11801 cat >conftest.$ac_ext <<_ACEOF
11802 /* confdefs.h. */
11803 _ACEOF
11804 cat confdefs.h >>conftest.$ac_ext
11805 cat >>conftest.$ac_ext <<_ACEOF
11806 /* end confdefs.h. */
11807 $ac_includes_default
11808 #include <$ac_header>
11809 _ACEOF
11810 rm -f conftest.$ac_objext
11811 if { (ac_try="$ac_compile"
11812 case "(($ac_try" in
11813 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11814 *) ac_try_echo=$ac_try;;
11815 esac
11816 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11817 (eval "$ac_compile") 2>conftest.er1
11818 ac_status=$?
11819 grep -v '^ *+' conftest.er1 >conftest.err
11820 rm -f conftest.er1
11821 cat conftest.err >&5
11822 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11823 (exit $ac_status); } && {
11824 test -z "$ac_c_werror_flag" ||
11825 test ! -s conftest.err
11826 } && test -s conftest.$ac_objext; then
11827 ac_header_compiler=yes
11828 else
11829 echo "$as_me: failed program was:" >&5
11830 sed 's/^/| /' conftest.$ac_ext >&5
11831
11832 ac_header_compiler=no
11833 fi
11834
11835 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11836 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11837 echo "${ECHO_T}$ac_header_compiler" >&6; }
11838
11839 # Is the header present?
11840 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11841 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11842 cat >conftest.$ac_ext <<_ACEOF
11843 /* confdefs.h. */
11844 _ACEOF
11845 cat confdefs.h >>conftest.$ac_ext
11846 cat >>conftest.$ac_ext <<_ACEOF
11847 /* end confdefs.h. */
11848 #include <$ac_header>
11849 _ACEOF
11850 if { (ac_try="$ac_cpp conftest.$ac_ext"
11851 case "(($ac_try" in
11852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11853 *) ac_try_echo=$ac_try;;
11854 esac
11855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11856 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11857 ac_status=$?
11858 grep -v '^ *+' conftest.er1 >conftest.err
11859 rm -f conftest.er1
11860 cat conftest.err >&5
11861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11862 (exit $ac_status); } >/dev/null && {
11863 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
11864 test ! -s conftest.err
11865 }; then
11866 ac_header_preproc=yes
11867 else
11868 echo "$as_me: failed program was:" >&5
11869 sed 's/^/| /' conftest.$ac_ext >&5
11870
11871 ac_header_preproc=no
11872 fi
11873
11874 rm -f conftest.err conftest.$ac_ext
11875 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11876 echo "${ECHO_T}$ac_header_preproc" >&6; }
11877
11878 # So? What about this header?
11879 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11880 yes:no: )
11881 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11882 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11883 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11884 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11885 ac_header_preproc=yes
11886 ;;
11887 no:yes:* )
11888 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11889 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11890 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
11891 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
11892 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11893 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11894 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
11895 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
11896 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11897 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11898 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11899 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11900
11901 ;;
11902 esac
11903 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11904 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11905 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11906 echo $ECHO_N "(cached) $ECHO_C" >&6
11907 else
11908 eval "$as_ac_Header=\$ac_header_preproc"
11909 fi
11910 ac_res=`eval echo '${'$as_ac_Header'}'`
11911 { echo "$as_me:$LINENO: result: $ac_res" >&5
11912 echo "${ECHO_T}$ac_res" >&6; }
11913
11914 fi
11915 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11916 cat >>confdefs.h <<_ACEOF
11917 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11918 _ACEOF
11919
11920 fi
11921
11922 done
11923
11924 if test "$ac_cv_header_pthread_h"; then
11925 { echo "$as_me:$LINENO: checking for pthread_self in -lpthread" >&5
11926 echo $ECHO_N "checking for pthread_self in -lpthread... $ECHO_C" >&6; }
11927 if test "${ac_cv_lib_pthread_pthread_self+set}" = set; then
11928 echo $ECHO_N "(cached) $ECHO_C" >&6
11929 else
11930 ac_check_lib_save_LIBS=$LIBS
11931 LIBS="-lpthread $LIBS"
11932 cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h. */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h. */
11938
11939 /* Override any GCC internal prototype to avoid an error.
11940 Use char because int might match the return type of a GCC
11941 builtin and then its argument prototype would still apply. */
11942 #ifdef __cplusplus
11943 extern "C"
11944 #endif
11945 char pthread_self ();
11946 int
11947 main ()
11948 {
11949 return pthread_self ();
11950 ;
11951 return 0;
11952 }
11953 _ACEOF
11954 rm -f conftest.$ac_objext conftest$ac_exeext
11955 if { (ac_try="$ac_link"
11956 case "(($ac_try" in
11957 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11958 *) ac_try_echo=$ac_try;;
11959 esac
11960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11961 (eval "$ac_link") 2>conftest.er1
11962 ac_status=$?
11963 grep -v '^ *+' conftest.er1 >conftest.err
11964 rm -f conftest.er1
11965 cat conftest.err >&5
11966 echo "$as_me:$LINENO: \$? = $ac_status" >&5
11967 (exit $ac_status); } && {
11968 test -z "$ac_c_werror_flag" ||
11969 test ! -s conftest.err
11970 } && test -s conftest$ac_exeext &&
11971 $as_test_x conftest$ac_exeext; then
11972 ac_cv_lib_pthread_pthread_self=yes
11973 else
11974 echo "$as_me: failed program was:" >&5
11975 sed 's/^/| /' conftest.$ac_ext >&5
11976
11977 ac_cv_lib_pthread_pthread_self=no
11978 fi
11979
11980 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
11981 conftest$ac_exeext conftest.$ac_ext
11982 LIBS=$ac_check_lib_save_LIBS
11983 fi
11984 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_self" >&5
11985 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_self" >&6; }
11986 if test $ac_cv_lib_pthread_pthread_self = yes; then
11987 HAVE_GTK_AND_PTHREAD=yes
11988 fi
11989
11990 fi
11991 if test "$HAVE_GTK_AND_PTHREAD" = yes; then
11992 case "${canonical}" in
11993 *-hpux*) ;;
11994 *) GTK_LIBS="$GTK_LIBS -lpthread" ;;
11995 esac
11996
11997 cat >>confdefs.h <<\_ACEOF
11998 #define HAVE_GTK_AND_PTHREAD 1
11999 _ACEOF
12000
12001 fi
12002 fi
12003 fi
12004
12005 HAVE_DBUS=no
12006 if test "${with_dbus}" = "yes"; then
12007
12008 succeeded=no
12009
12010 if test -z "$PKG_CONFIG"; then
12011 # Extract the first word of "pkg-config", so it can be a program name with args.
12012 set dummy pkg-config; ac_word=$2
12013 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12014 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12015 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12016 echo $ECHO_N "(cached) $ECHO_C" >&6
12017 else
12018 case $PKG_CONFIG in
12019 [\\/]* | ?:[\\/]*)
12020 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12021 ;;
12022 *)
12023 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12024 for as_dir in $PATH
12025 do
12026 IFS=$as_save_IFS
12027 test -z "$as_dir" && as_dir=.
12028 for ac_exec_ext in '' $ac_executable_extensions; do
12029 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12030 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12031 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12032 break 2
12033 fi
12034 done
12035 done
12036 IFS=$as_save_IFS
12037
12038 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12039 ;;
12040 esac
12041 fi
12042 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12043 if test -n "$PKG_CONFIG"; then
12044 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12045 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12046 else
12047 { echo "$as_me:$LINENO: result: no" >&5
12048 echo "${ECHO_T}no" >&6; }
12049 fi
12050
12051
12052 fi
12053
12054 if test "$PKG_CONFIG" = "no" ; then
12055 HAVE_DBUS=no
12056 else
12057 PKG_CONFIG_MIN_VERSION=0.9.0
12058 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12059 { echo "$as_me:$LINENO: checking for dbus-1 >= 1.0" >&5
12060 echo $ECHO_N "checking for dbus-1 >= 1.0... $ECHO_C" >&6; }
12061
12062 if $PKG_CONFIG --exists "dbus-1 >= 1.0" 2>&5; then
12063 { echo "$as_me:$LINENO: result: yes" >&5
12064 echo "${ECHO_T}yes" >&6; }
12065 succeeded=yes
12066
12067 { echo "$as_me:$LINENO: checking DBUS_CFLAGS" >&5
12068 echo $ECHO_N "checking DBUS_CFLAGS... $ECHO_C" >&6; }
12069 DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12070 { echo "$as_me:$LINENO: result: $DBUS_CFLAGS" >&5
12071 echo "${ECHO_T}$DBUS_CFLAGS" >&6; }
12072
12073 { echo "$as_me:$LINENO: checking DBUS_LIBS" >&5
12074 echo $ECHO_N "checking DBUS_LIBS... $ECHO_C" >&6; }
12075 DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1 >= 1.0"|sed -e 's,///*,/,g'`
12076 { echo "$as_me:$LINENO: result: $DBUS_LIBS" >&5
12077 echo "${ECHO_T}$DBUS_LIBS" >&6; }
12078 else
12079 { echo "$as_me:$LINENO: result: no" >&5
12080 echo "${ECHO_T}no" >&6; }
12081 DBUS_CFLAGS=""
12082 DBUS_LIBS=""
12083 ## If we have a custom action on failure, don't print errors, but
12084 ## do set a variable so people can do so.
12085 DBUS_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "dbus-1 >= 1.0"`
12086
12087 fi
12088
12089
12090
12091 else
12092 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12093 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12094 fi
12095 fi
12096
12097 if test $succeeded = yes; then
12098 HAVE_DBUS=yes
12099 else
12100 HAVE_DBUS=no
12101 fi
12102
12103 if test "$HAVE_DBUS" = yes; then
12104
12105 cat >>confdefs.h <<\_ACEOF
12106 #define HAVE_DBUS 1
12107 _ACEOF
12108
12109 fi
12110 fi
12111
12112 ### Link with -lXft if available to work around a bug.
12113 HAVE_XFT=maybe
12114 if test "${HAVE_GTK}" = "yes"; then
12115 if test "X${with_pkg_config_prog}" != X; then
12116 PKG_CONFIG="${with_pkg_config_prog}"
12117 fi
12118
12119
12120 succeeded=no
12121
12122 if test -z "$PKG_CONFIG"; then
12123 # Extract the first word of "pkg-config", so it can be a program name with args.
12124 set dummy pkg-config; ac_word=$2
12125 { echo "$as_me:$LINENO: checking for $ac_word" >&5
12126 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
12127 if test "${ac_cv_path_PKG_CONFIG+set}" = set; then
12128 echo $ECHO_N "(cached) $ECHO_C" >&6
12129 else
12130 case $PKG_CONFIG in
12131 [\\/]* | ?:[\\/]*)
12132 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
12133 ;;
12134 *)
12135 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
12136 for as_dir in $PATH
12137 do
12138 IFS=$as_save_IFS
12139 test -z "$as_dir" && as_dir=.
12140 for ac_exec_ext in '' $ac_executable_extensions; do
12141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
12142 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
12143 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
12144 break 2
12145 fi
12146 done
12147 done
12148 IFS=$as_save_IFS
12149
12150 test -z "$ac_cv_path_PKG_CONFIG" && ac_cv_path_PKG_CONFIG="no"
12151 ;;
12152 esac
12153 fi
12154 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
12155 if test -n "$PKG_CONFIG"; then
12156 { echo "$as_me:$LINENO: result: $PKG_CONFIG" >&5
12157 echo "${ECHO_T}$PKG_CONFIG" >&6; }
12158 else
12159 { echo "$as_me:$LINENO: result: no" >&5
12160 echo "${ECHO_T}no" >&6; }
12161 fi
12162
12163
12164 fi
12165
12166 if test "$PKG_CONFIG" = "no" ; then
12167 HAVE_XFT=no
12168 else
12169 PKG_CONFIG_MIN_VERSION=0.9.0
12170 if $PKG_CONFIG --atleast-pkgconfig-version $PKG_CONFIG_MIN_VERSION; then
12171 { echo "$as_me:$LINENO: checking for xft >= 0.13.0" >&5
12172 echo $ECHO_N "checking for xft >= 0.13.0... $ECHO_C" >&6; }
12173
12174 if $PKG_CONFIG --exists "xft >= 0.13.0" 2>&5; then
12175 { echo "$as_me:$LINENO: result: yes" >&5
12176 echo "${ECHO_T}yes" >&6; }
12177 succeeded=yes
12178
12179 { echo "$as_me:$LINENO: checking XFT_CFLAGS" >&5
12180 echo $ECHO_N "checking XFT_CFLAGS... $ECHO_C" >&6; }
12181 XFT_CFLAGS=`$PKG_CONFIG --cflags "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12182 { echo "$as_me:$LINENO: result: $XFT_CFLAGS" >&5
12183 echo "${ECHO_T}$XFT_CFLAGS" >&6; }
12184
12185 { echo "$as_me:$LINENO: checking XFT_LIBS" >&5
12186 echo $ECHO_N "checking XFT_LIBS... $ECHO_C" >&6; }
12187 XFT_LIBS=`$PKG_CONFIG --libs "xft >= 0.13.0"|sed -e 's,///*,/,g'`
12188 { echo "$as_me:$LINENO: result: $XFT_LIBS" >&5
12189 echo "${ECHO_T}$XFT_LIBS" >&6; }
12190 else
12191 { echo "$as_me:$LINENO: result: no" >&5
12192 echo "${ECHO_T}no" >&6; }
12193 XFT_CFLAGS=""
12194 XFT_LIBS=""
12195 ## If we have a custom action on failure, don't print errors, but
12196 ## do set a variable so people can do so.
12197 XFT_PKG_ERRORS=`$PKG_CONFIG --errors-to-stdout --print-errors "xft >= 0.13.0"`
12198
12199 fi
12200
12201
12202
12203 else
12204 echo "*** Your version of pkg-config is too old. You need version $PKG_CONFIG_MIN_VERSION or newer."
12205 echo "*** See http://www.freedesktop.org/software/pkgconfig"
12206 fi
12207 fi
12208
12209 if test $succeeded = yes; then
12210 :
12211 else
12212 HAVE_XFT=no
12213 fi
12214
12215 if test "$HAVE_XFT" != no; then
12216 OLD_CFLAGS="$CPPFLAGS"
12217 OLD_CPPFLAGS="$CFLAGS"
12218 OLD_LIBS="$LIBS"
12219 CPPFLAGS="$CPPFLAGS $XFT_CFLAGS"
12220 CFLAGS="$CFLAGS $XFT_CFLAGS"
12221 LIBS="$XFT_LIBS $LIBS"
12222 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12223 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12224 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12225 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12226 echo $ECHO_N "(cached) $ECHO_C" >&6
12227 fi
12228 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12229 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12230 else
12231 # Is the header compilable?
12232 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h usability" >&5
12233 echo $ECHO_N "checking X11/Xft/Xft.h usability... $ECHO_C" >&6; }
12234 cat >conftest.$ac_ext <<_ACEOF
12235 /* confdefs.h. */
12236 _ACEOF
12237 cat confdefs.h >>conftest.$ac_ext
12238 cat >>conftest.$ac_ext <<_ACEOF
12239 /* end confdefs.h. */
12240 $ac_includes_default
12241 #include <X11/Xft/Xft.h>
12242 _ACEOF
12243 rm -f conftest.$ac_objext
12244 if { (ac_try="$ac_compile"
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_compile") 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); } && {
12257 test -z "$ac_c_werror_flag" ||
12258 test ! -s conftest.err
12259 } && test -s conftest.$ac_objext; then
12260 ac_header_compiler=yes
12261 else
12262 echo "$as_me: failed program was:" >&5
12263 sed 's/^/| /' conftest.$ac_ext >&5
12264
12265 ac_header_compiler=no
12266 fi
12267
12268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12269 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12270 echo "${ECHO_T}$ac_header_compiler" >&6; }
12271
12272 # Is the header present?
12273 { echo "$as_me:$LINENO: checking X11/Xft/Xft.h presence" >&5
12274 echo $ECHO_N "checking X11/Xft/Xft.h presence... $ECHO_C" >&6; }
12275 cat >conftest.$ac_ext <<_ACEOF
12276 /* confdefs.h. */
12277 _ACEOF
12278 cat confdefs.h >>conftest.$ac_ext
12279 cat >>conftest.$ac_ext <<_ACEOF
12280 /* end confdefs.h. */
12281 #include <X11/Xft/Xft.h>
12282 _ACEOF
12283 if { (ac_try="$ac_cpp conftest.$ac_ext"
12284 case "(($ac_try" in
12285 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12286 *) ac_try_echo=$ac_try;;
12287 esac
12288 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12289 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12290 ac_status=$?
12291 grep -v '^ *+' conftest.er1 >conftest.err
12292 rm -f conftest.er1
12293 cat conftest.err >&5
12294 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12295 (exit $ac_status); } >/dev/null && {
12296 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
12297 test ! -s conftest.err
12298 }; then
12299 ac_header_preproc=yes
12300 else
12301 echo "$as_me: failed program was:" >&5
12302 sed 's/^/| /' conftest.$ac_ext >&5
12303
12304 ac_header_preproc=no
12305 fi
12306
12307 rm -f conftest.err conftest.$ac_ext
12308 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12309 echo "${ECHO_T}$ac_header_preproc" >&6; }
12310
12311 # So? What about this header?
12312 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12313 yes:no: )
12314 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&5
12315 echo "$as_me: WARNING: X11/Xft/Xft.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
12316 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&5
12317 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the compiler's result" >&2;}
12318 ac_header_preproc=yes
12319 ;;
12320 no:yes:* )
12321 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&5
12322 echo "$as_me: WARNING: X11/Xft/Xft.h: present but cannot be compiled" >&2;}
12323 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&5
12324 echo "$as_me: WARNING: X11/Xft/Xft.h: check for missing prerequisite headers?" >&2;}
12325 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&5
12326 echo "$as_me: WARNING: X11/Xft/Xft.h: see the Autoconf documentation" >&2;}
12327 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&5
12328 echo "$as_me: WARNING: X11/Xft/Xft.h: section \"Present But Cannot Be Compiled\"" >&2;}
12329 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&5
12330 echo "$as_me: WARNING: X11/Xft/Xft.h: proceeding with the preprocessor's result" >&2;}
12331 { echo "$as_me:$LINENO: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&5
12332 echo "$as_me: WARNING: X11/Xft/Xft.h: in the future, the compiler will take precedence" >&2;}
12333
12334 ;;
12335 esac
12336 { echo "$as_me:$LINENO: checking for X11/Xft/Xft.h" >&5
12337 echo $ECHO_N "checking for X11/Xft/Xft.h... $ECHO_C" >&6; }
12338 if test "${ac_cv_header_X11_Xft_Xft_h+set}" = set; then
12339 echo $ECHO_N "(cached) $ECHO_C" >&6
12340 else
12341 ac_cv_header_X11_Xft_Xft_h=$ac_header_preproc
12342 fi
12343 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_Xft_Xft_h" >&5
12344 echo "${ECHO_T}$ac_cv_header_X11_Xft_Xft_h" >&6; }
12345
12346 fi
12347 if test $ac_cv_header_X11_Xft_Xft_h = yes; then
12348 { echo "$as_me:$LINENO: checking for XftFontOpen in -lXft" >&5
12349 echo $ECHO_N "checking for XftFontOpen in -lXft... $ECHO_C" >&6; }
12350 if test "${ac_cv_lib_Xft_XftFontOpen+set}" = set; then
12351 echo $ECHO_N "(cached) $ECHO_C" >&6
12352 else
12353 ac_check_lib_save_LIBS=$LIBS
12354 LIBS="-lXft $XFT_LIBS $LIBS"
12355 cat >conftest.$ac_ext <<_ACEOF
12356 /* confdefs.h. */
12357 _ACEOF
12358 cat confdefs.h >>conftest.$ac_ext
12359 cat >>conftest.$ac_ext <<_ACEOF
12360 /* end confdefs.h. */
12361
12362 /* Override any GCC internal prototype to avoid an error.
12363 Use char because int might match the return type of a GCC
12364 builtin and then its argument prototype would still apply. */
12365 #ifdef __cplusplus
12366 extern "C"
12367 #endif
12368 char XftFontOpen ();
12369 int
12370 main ()
12371 {
12372 return XftFontOpen ();
12373 ;
12374 return 0;
12375 }
12376 _ACEOF
12377 rm -f conftest.$ac_objext conftest$ac_exeext
12378 if { (ac_try="$ac_link"
12379 case "(($ac_try" in
12380 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12381 *) ac_try_echo=$ac_try;;
12382 esac
12383 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12384 (eval "$ac_link") 2>conftest.er1
12385 ac_status=$?
12386 grep -v '^ *+' conftest.er1 >conftest.err
12387 rm -f conftest.er1
12388 cat conftest.err >&5
12389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12390 (exit $ac_status); } && {
12391 test -z "$ac_c_werror_flag" ||
12392 test ! -s conftest.err
12393 } && test -s conftest$ac_exeext &&
12394 $as_test_x conftest$ac_exeext; then
12395 ac_cv_lib_Xft_XftFontOpen=yes
12396 else
12397 echo "$as_me: failed program was:" >&5
12398 sed 's/^/| /' conftest.$ac_ext >&5
12399
12400 ac_cv_lib_Xft_XftFontOpen=no
12401 fi
12402
12403 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12404 conftest$ac_exeext conftest.$ac_ext
12405 LIBS=$ac_check_lib_save_LIBS
12406 fi
12407 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xft_XftFontOpen" >&5
12408 echo "${ECHO_T}$ac_cv_lib_Xft_XftFontOpen" >&6; }
12409 if test $ac_cv_lib_Xft_XftFontOpen = yes; then
12410 HAVE_XFT=yes
12411 fi
12412
12413 fi
12414
12415
12416
12417 if test "${HAVE_XFT}" = "yes"; then
12418
12419 cat >>confdefs.h <<\_ACEOF
12420 #define HAVE_XFT 1
12421 _ACEOF
12422
12423
12424 C_SWITCH_X_SITE="$C_SWITCH_X_SITE $XFT_CFLAGS"
12425 else
12426 CFLAGS="$OLD_CPPFLAGS"
12427 CFLAGS="$OLD_CFLAGS"
12428 LIBS="$OLD_LIBS"
12429 fi
12430 fi
12431 fi
12432
12433 HAVE_XAW3D=no
12434 if test x"${USE_X_TOOLKIT}" = xmaybe || test x"${USE_X_TOOLKIT}" = xLUCID; then
12435 if test "$with_xaw3d" != no; then
12436 { echo "$as_me:$LINENO: checking for xaw3d" >&5
12437 echo $ECHO_N "checking for xaw3d... $ECHO_C" >&6; }
12438 if test "${emacs_cv_xaw3d+set}" = set; then
12439 echo $ECHO_N "(cached) $ECHO_C" >&6
12440 else
12441 cat >conftest.$ac_ext <<_ACEOF
12442 /* confdefs.h. */
12443 _ACEOF
12444 cat confdefs.h >>conftest.$ac_ext
12445 cat >>conftest.$ac_ext <<_ACEOF
12446 /* end confdefs.h. */
12447
12448 #include <X11/Intrinsic.h>
12449 #include <X11/Xaw3d/Simple.h>
12450 int
12451 main ()
12452 {
12453
12454 ;
12455 return 0;
12456 }
12457 _ACEOF
12458 rm -f conftest.$ac_objext conftest$ac_exeext
12459 if { (ac_try="$ac_link"
12460 case "(($ac_try" in
12461 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12462 *) ac_try_echo=$ac_try;;
12463 esac
12464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12465 (eval "$ac_link") 2>conftest.er1
12466 ac_status=$?
12467 grep -v '^ *+' conftest.er1 >conftest.err
12468 rm -f conftest.er1
12469 cat conftest.err >&5
12470 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12471 (exit $ac_status); } && {
12472 test -z "$ac_c_werror_flag" ||
12473 test ! -s conftest.err
12474 } && test -s conftest$ac_exeext &&
12475 $as_test_x conftest$ac_exeext; then
12476 emacs_cv_xaw3d=yes
12477 else
12478 echo "$as_me: failed program was:" >&5
12479 sed 's/^/| /' conftest.$ac_ext >&5
12480
12481 emacs_cv_xaw3d=no
12482 fi
12483
12484 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12485 conftest$ac_exeext conftest.$ac_ext
12486 fi
12487
12488 else
12489 emacs_cv_xaw3d=no
12490 fi
12491 if test $emacs_cv_xaw3d = yes; then
12492 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12493 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12494 USE_X_TOOLKIT=LUCID
12495 HAVE_XAW3D=yes
12496
12497 cat >>confdefs.h <<\_ACEOF
12498 #define HAVE_XAW3D 1
12499 _ACEOF
12500
12501 else
12502 { echo "$as_me:$LINENO: result: no" >&5
12503 echo "${ECHO_T}no" >&6; }
12504 { echo "$as_me:$LINENO: checking for libXaw" >&5
12505 echo $ECHO_N "checking for libXaw... $ECHO_C" >&6; }
12506 if test "${emacs_cv_xaw+set}" = set; then
12507 echo $ECHO_N "(cached) $ECHO_C" >&6
12508 else
12509 cat >conftest.$ac_ext <<_ACEOF
12510 /* confdefs.h. */
12511 _ACEOF
12512 cat confdefs.h >>conftest.$ac_ext
12513 cat >>conftest.$ac_ext <<_ACEOF
12514 /* end confdefs.h. */
12515
12516 #include <X11/Intrinsic.h>
12517 #include <X11/Xaw/Simple.h>
12518 int
12519 main ()
12520 {
12521
12522 ;
12523 return 0;
12524 }
12525 _ACEOF
12526 rm -f conftest.$ac_objext conftest$ac_exeext
12527 if { (ac_try="$ac_link"
12528 case "(($ac_try" in
12529 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12530 *) ac_try_echo=$ac_try;;
12531 esac
12532 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12533 (eval "$ac_link") 2>conftest.er1
12534 ac_status=$?
12535 grep -v '^ *+' conftest.er1 >conftest.err
12536 rm -f conftest.er1
12537 cat conftest.err >&5
12538 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12539 (exit $ac_status); } && {
12540 test -z "$ac_c_werror_flag" ||
12541 test ! -s conftest.err
12542 } && test -s conftest$ac_exeext &&
12543 $as_test_x conftest$ac_exeext; then
12544 emacs_cv_xaw=yes
12545 else
12546 echo "$as_me: failed program was:" >&5
12547 sed 's/^/| /' conftest.$ac_ext >&5
12548
12549 emacs_cv_xaw=no
12550 fi
12551
12552 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12553 conftest$ac_exeext conftest.$ac_ext
12554 fi
12555
12556 if test $emacs_cv_xaw = yes; then
12557 { echo "$as_me:$LINENO: result: yes; using Lucid toolkit" >&5
12558 echo "${ECHO_T}yes; using Lucid toolkit" >&6; }
12559 USE_X_TOOLKIT=LUCID
12560 elif test x"${USE_X_TOOLKIT}" = xLUCID; then
12561 { { echo "$as_me:$LINENO: error: Lucid toolkit requires X11/Xaw include files" >&5
12562 echo "$as_me: error: Lucid toolkit requires X11/Xaw include files" >&2;}
12563 { (exit 1); exit 1; }; }
12564 else
12565 { echo "$as_me:$LINENO: result: no; do not use toolkit by default" >&5
12566 echo "${ECHO_T}no; do not use toolkit by default" >&6; }
12567 USE_X_TOOLKIT=none
12568 fi
12569 fi
12570 fi
12571
12572 X_TOOLKIT_TYPE=$USE_X_TOOLKIT
12573
12574 if test "${USE_X_TOOLKIT}" != "none"; then
12575 { echo "$as_me:$LINENO: checking X11 toolkit version" >&5
12576 echo $ECHO_N "checking X11 toolkit version... $ECHO_C" >&6; }
12577 if test "${emacs_cv_x11_toolkit_version_6+set}" = set; then
12578 echo $ECHO_N "(cached) $ECHO_C" >&6
12579 else
12580 cat >conftest.$ac_ext <<_ACEOF
12581 /* confdefs.h. */
12582 _ACEOF
12583 cat confdefs.h >>conftest.$ac_ext
12584 cat >>conftest.$ac_ext <<_ACEOF
12585 /* end confdefs.h. */
12586 #include <X11/Intrinsic.h>
12587 int
12588 main ()
12589 {
12590 #if XtSpecificationRelease < 6
12591 fail;
12592 #endif
12593
12594 ;
12595 return 0;
12596 }
12597 _ACEOF
12598 rm -f conftest.$ac_objext conftest$ac_exeext
12599 if { (ac_try="$ac_link"
12600 case "(($ac_try" in
12601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12602 *) ac_try_echo=$ac_try;;
12603 esac
12604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12605 (eval "$ac_link") 2>conftest.er1
12606 ac_status=$?
12607 grep -v '^ *+' conftest.er1 >conftest.err
12608 rm -f conftest.er1
12609 cat conftest.err >&5
12610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12611 (exit $ac_status); } && {
12612 test -z "$ac_c_werror_flag" ||
12613 test ! -s conftest.err
12614 } && test -s conftest$ac_exeext &&
12615 $as_test_x conftest$ac_exeext; then
12616 emacs_cv_x11_toolkit_version_6=yes
12617 else
12618 echo "$as_me: failed program was:" >&5
12619 sed 's/^/| /' conftest.$ac_ext >&5
12620
12621 emacs_cv_x11_toolkit_version_6=no
12622 fi
12623
12624 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12625 conftest$ac_exeext conftest.$ac_ext
12626 fi
12627
12628 HAVE_X11XTR6=$emacs_cv_x11_toolkit_version_6
12629 if test $emacs_cv_x11_toolkit_version_6 = yes; then
12630 { echo "$as_me:$LINENO: result: 6 or newer" >&5
12631 echo "${ECHO_T}6 or newer" >&6; }
12632
12633 cat >>confdefs.h <<\_ACEOF
12634 #define HAVE_X11XTR6 1
12635 _ACEOF
12636
12637 else
12638 { echo "$as_me:$LINENO: result: before 6" >&5
12639 echo "${ECHO_T}before 6" >&6; }
12640 fi
12641
12642 OLDLIBS="$LIBS"
12643 if test x$HAVE_X11XTR6 = xyes; then
12644 LIBS="-lXt -lSM -lICE $LIBS"
12645 else
12646 LIBS="-lXt $LIBS"
12647 fi
12648
12649 { echo "$as_me:$LINENO: checking for XmuConvertStandardSelection in -lXmu" >&5
12650 echo $ECHO_N "checking for XmuConvertStandardSelection in -lXmu... $ECHO_C" >&6; }
12651 if test "${ac_cv_lib_Xmu_XmuConvertStandardSelection+set}" = set; then
12652 echo $ECHO_N "(cached) $ECHO_C" >&6
12653 else
12654 ac_check_lib_save_LIBS=$LIBS
12655 LIBS="-lXmu $LIBS"
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
12663 /* Override any GCC internal prototype to avoid an error.
12664 Use char because int might match the return type of a GCC
12665 builtin and then its argument prototype would still apply. */
12666 #ifdef __cplusplus
12667 extern "C"
12668 #endif
12669 char XmuConvertStandardSelection ();
12670 int
12671 main ()
12672 {
12673 return XmuConvertStandardSelection ();
12674 ;
12675 return 0;
12676 }
12677 _ACEOF
12678 rm -f conftest.$ac_objext conftest$ac_exeext
12679 if { (ac_try="$ac_link"
12680 case "(($ac_try" in
12681 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12682 *) ac_try_echo=$ac_try;;
12683 esac
12684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12685 (eval "$ac_link") 2>conftest.er1
12686 ac_status=$?
12687 grep -v '^ *+' conftest.er1 >conftest.err
12688 rm -f conftest.er1
12689 cat conftest.err >&5
12690 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12691 (exit $ac_status); } && {
12692 test -z "$ac_c_werror_flag" ||
12693 test ! -s conftest.err
12694 } && test -s conftest$ac_exeext &&
12695 $as_test_x conftest$ac_exeext; then
12696 ac_cv_lib_Xmu_XmuConvertStandardSelection=yes
12697 else
12698 echo "$as_me: failed program was:" >&5
12699 sed 's/^/| /' conftest.$ac_ext >&5
12700
12701 ac_cv_lib_Xmu_XmuConvertStandardSelection=no
12702 fi
12703
12704 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12705 conftest$ac_exeext conftest.$ac_ext
12706 LIBS=$ac_check_lib_save_LIBS
12707 fi
12708 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xmu_XmuConvertStandardSelection" >&5
12709 echo "${ECHO_T}$ac_cv_lib_Xmu_XmuConvertStandardSelection" >&6; }
12710 if test $ac_cv_lib_Xmu_XmuConvertStandardSelection = yes; then
12711 cat >>confdefs.h <<_ACEOF
12712 #define HAVE_LIBXMU 1
12713 _ACEOF
12714
12715 LIBS="-lXmu $LIBS"
12716
12717 fi
12718
12719 test $ac_cv_lib_Xmu_XmuConvertStandardSelection = no && LIBS="$OLDLIBS"
12720 fi
12721
12722 # On Irix 6.5, at least, we need XShapeQueryExtension from -lXext for Xaw3D.
12723 if test "${HAVE_X11}" = "yes"; then
12724 if test "${USE_X_TOOLKIT}" != "none"; then
12725
12726 { echo "$as_me:$LINENO: checking for XShapeQueryExtension in -lXext" >&5
12727 echo $ECHO_N "checking for XShapeQueryExtension in -lXext... $ECHO_C" >&6; }
12728 if test "${ac_cv_lib_Xext_XShapeQueryExtension+set}" = set; then
12729 echo $ECHO_N "(cached) $ECHO_C" >&6
12730 else
12731 ac_check_lib_save_LIBS=$LIBS
12732 LIBS="-lXext $LIBS"
12733 cat >conftest.$ac_ext <<_ACEOF
12734 /* confdefs.h. */
12735 _ACEOF
12736 cat confdefs.h >>conftest.$ac_ext
12737 cat >>conftest.$ac_ext <<_ACEOF
12738 /* end confdefs.h. */
12739
12740 /* Override any GCC internal prototype to avoid an error.
12741 Use char because int might match the return type of a GCC
12742 builtin and then its argument prototype would still apply. */
12743 #ifdef __cplusplus
12744 extern "C"
12745 #endif
12746 char XShapeQueryExtension ();
12747 int
12748 main ()
12749 {
12750 return XShapeQueryExtension ();
12751 ;
12752 return 0;
12753 }
12754 _ACEOF
12755 rm -f conftest.$ac_objext conftest$ac_exeext
12756 if { (ac_try="$ac_link"
12757 case "(($ac_try" in
12758 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12759 *) ac_try_echo=$ac_try;;
12760 esac
12761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12762 (eval "$ac_link") 2>conftest.er1
12763 ac_status=$?
12764 grep -v '^ *+' conftest.er1 >conftest.err
12765 rm -f conftest.er1
12766 cat conftest.err >&5
12767 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12768 (exit $ac_status); } && {
12769 test -z "$ac_c_werror_flag" ||
12770 test ! -s conftest.err
12771 } && test -s conftest$ac_exeext &&
12772 $as_test_x conftest$ac_exeext; then
12773 ac_cv_lib_Xext_XShapeQueryExtension=yes
12774 else
12775 echo "$as_me: failed program was:" >&5
12776 sed 's/^/| /' conftest.$ac_ext >&5
12777
12778 ac_cv_lib_Xext_XShapeQueryExtension=no
12779 fi
12780
12781 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12782 conftest$ac_exeext conftest.$ac_ext
12783 LIBS=$ac_check_lib_save_LIBS
12784 fi
12785 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xext_XShapeQueryExtension" >&5
12786 echo "${ECHO_T}$ac_cv_lib_Xext_XShapeQueryExtension" >&6; }
12787 if test $ac_cv_lib_Xext_XShapeQueryExtension = yes; then
12788 cat >>confdefs.h <<_ACEOF
12789 #define HAVE_LIBXEXT 1
12790 _ACEOF
12791
12792 LIBS="-lXext $LIBS"
12793
12794 fi
12795
12796 fi
12797 fi
12798
12799 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
12800 { echo "$as_me:$LINENO: checking for Motif version 2.1" >&5
12801 echo $ECHO_N "checking for Motif version 2.1... $ECHO_C" >&6; }
12802 if test "${emacs_cv_motif_version_2_1+set}" = set; then
12803 echo $ECHO_N "(cached) $ECHO_C" >&6
12804 else
12805 cat >conftest.$ac_ext <<_ACEOF
12806 /* confdefs.h. */
12807 _ACEOF
12808 cat confdefs.h >>conftest.$ac_ext
12809 cat >>conftest.$ac_ext <<_ACEOF
12810 /* end confdefs.h. */
12811 #include <Xm/Xm.h>
12812 int
12813 main ()
12814 {
12815 #if XmVERSION > 2 || (XmVERSION == 2 && XmREVISION >= 1)
12816 int x = 5;
12817 #else
12818 Motif version prior to 2.1.
12819 #endif
12820 ;
12821 return 0;
12822 }
12823 _ACEOF
12824 rm -f conftest.$ac_objext
12825 if { (ac_try="$ac_compile"
12826 case "(($ac_try" in
12827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12828 *) ac_try_echo=$ac_try;;
12829 esac
12830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12831 (eval "$ac_compile") 2>conftest.er1
12832 ac_status=$?
12833 grep -v '^ *+' conftest.er1 >conftest.err
12834 rm -f conftest.er1
12835 cat conftest.err >&5
12836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12837 (exit $ac_status); } && {
12838 test -z "$ac_c_werror_flag" ||
12839 test ! -s conftest.err
12840 } && test -s conftest.$ac_objext; then
12841 emacs_cv_motif_version_2_1=yes
12842 else
12843 echo "$as_me: failed program was:" >&5
12844 sed 's/^/| /' conftest.$ac_ext >&5
12845
12846 emacs_cv_motif_version_2_1=no
12847 fi
12848
12849 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12850 fi
12851 { echo "$as_me:$LINENO: result: $emacs_cv_motif_version_2_1" >&5
12852 echo "${ECHO_T}$emacs_cv_motif_version_2_1" >&6; }
12853 HAVE_MOTIF_2_1=$emacs_cv_motif_version_2_1
12854 if test $emacs_cv_motif_version_2_1 = yes; then
12855 HAVE_LIBXP=no
12856
12857 cat >>confdefs.h <<\_ACEOF
12858 #define HAVE_MOTIF_2_1 1
12859 _ACEOF
12860
12861 { echo "$as_me:$LINENO: checking for XpCreateContext in -lXp" >&5
12862 echo $ECHO_N "checking for XpCreateContext in -lXp... $ECHO_C" >&6; }
12863 if test "${ac_cv_lib_Xp_XpCreateContext+set}" = set; then
12864 echo $ECHO_N "(cached) $ECHO_C" >&6
12865 else
12866 ac_check_lib_save_LIBS=$LIBS
12867 LIBS="-lXp $LIBS"
12868 cat >conftest.$ac_ext <<_ACEOF
12869 /* confdefs.h. */
12870 _ACEOF
12871 cat confdefs.h >>conftest.$ac_ext
12872 cat >>conftest.$ac_ext <<_ACEOF
12873 /* end confdefs.h. */
12874
12875 /* Override any GCC internal prototype to avoid an error.
12876 Use char because int might match the return type of a GCC
12877 builtin and then its argument prototype would still apply. */
12878 #ifdef __cplusplus
12879 extern "C"
12880 #endif
12881 char XpCreateContext ();
12882 int
12883 main ()
12884 {
12885 return XpCreateContext ();
12886 ;
12887 return 0;
12888 }
12889 _ACEOF
12890 rm -f conftest.$ac_objext conftest$ac_exeext
12891 if { (ac_try="$ac_link"
12892 case "(($ac_try" in
12893 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12894 *) ac_try_echo=$ac_try;;
12895 esac
12896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12897 (eval "$ac_link") 2>conftest.er1
12898 ac_status=$?
12899 grep -v '^ *+' conftest.er1 >conftest.err
12900 rm -f conftest.er1
12901 cat conftest.err >&5
12902 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12903 (exit $ac_status); } && {
12904 test -z "$ac_c_werror_flag" ||
12905 test ! -s conftest.err
12906 } && test -s conftest$ac_exeext &&
12907 $as_test_x conftest$ac_exeext; then
12908 ac_cv_lib_Xp_XpCreateContext=yes
12909 else
12910 echo "$as_me: failed program was:" >&5
12911 sed 's/^/| /' conftest.$ac_ext >&5
12912
12913 ac_cv_lib_Xp_XpCreateContext=no
12914 fi
12915
12916 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
12917 conftest$ac_exeext conftest.$ac_ext
12918 LIBS=$ac_check_lib_save_LIBS
12919 fi
12920 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xp_XpCreateContext" >&5
12921 echo "${ECHO_T}$ac_cv_lib_Xp_XpCreateContext" >&6; }
12922 if test $ac_cv_lib_Xp_XpCreateContext = yes; then
12923 HAVE_LIBXP=yes
12924 fi
12925
12926 if test ${HAVE_LIBXP} = yes; then
12927
12928 cat >>confdefs.h <<\_ACEOF
12929 #define HAVE_LIBXP 1
12930 _ACEOF
12931
12932 fi
12933 else
12934 { echo "$as_me:$LINENO: checking for LessTif where some systems put it" >&5
12935 echo $ECHO_N "checking for LessTif where some systems put it... $ECHO_C" >&6; }
12936 if test "${emacs_cv_lesstif+set}" = set; then
12937 echo $ECHO_N "(cached) $ECHO_C" >&6
12938 else
12939 # We put this in CFLAGS temporarily to precede other -I options
12940 # that might be in CFLAGS temporarily.
12941 # We put this in CPPFLAGS where it precedes the other -I options.
12942 OLD_CPPFLAGS=$CPPFLAGS
12943 OLD_CFLAGS=$CFLAGS
12944 CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CPPFLAGS"
12945 CFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $CFLAGS"
12946 cat >conftest.$ac_ext <<_ACEOF
12947 /* confdefs.h. */
12948 _ACEOF
12949 cat confdefs.h >>conftest.$ac_ext
12950 cat >>conftest.$ac_ext <<_ACEOF
12951 /* end confdefs.h. */
12952 #include </usr/X11R6/LessTif/Motif1.2/include/Xm/Xm.h>
12953 int
12954 main ()
12955 {
12956 int x = 5;
12957 ;
12958 return 0;
12959 }
12960 _ACEOF
12961 rm -f conftest.$ac_objext
12962 if { (ac_try="$ac_compile"
12963 case "(($ac_try" in
12964 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12965 *) ac_try_echo=$ac_try;;
12966 esac
12967 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12968 (eval "$ac_compile") 2>conftest.er1
12969 ac_status=$?
12970 grep -v '^ *+' conftest.er1 >conftest.err
12971 rm -f conftest.er1
12972 cat conftest.err >&5
12973 echo "$as_me:$LINENO: \$? = $ac_status" >&5
12974 (exit $ac_status); } && {
12975 test -z "$ac_c_werror_flag" ||
12976 test ! -s conftest.err
12977 } && test -s conftest.$ac_objext; then
12978 emacs_cv_lesstif=yes
12979 else
12980 echo "$as_me: failed program was:" >&5
12981 sed 's/^/| /' conftest.$ac_ext >&5
12982
12983 emacs_cv_lesstif=no
12984 fi
12985
12986 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12987 fi
12988 { echo "$as_me:$LINENO: result: $emacs_cv_lesstif" >&5
12989 echo "${ECHO_T}$emacs_cv_lesstif" >&6; }
12990 if test $emacs_cv_lesstif = yes; then
12991 # Make sure this -I option remains in CPPFLAGS after it is set
12992 # back to REAL_CPPFLAGS.
12993 # There is no need to change REAL_CFLAGS, because REAL_CFLAGS does not
12994 # have those other -I options anyway. Ultimately, having this
12995 # directory ultimately in CPPFLAGS will be enough.
12996 REAL_CPPFLAGS="-I/usr/X11R6/LessTif/Motif1.2/include $REAL_CPPFLAGS"
12997 LDFLAGS="-L/usr/X11R6/LessTif/Motif1.2/lib $LDFLAGS"
12998 else
12999 CFLAGS=$OLD_CFLAGS
13000 CPPFLAGS=$OLD_CPPFLAGS
13001 fi
13002 fi
13003 fi
13004
13005
13006
13007 USE_TOOLKIT_SCROLL_BARS=no
13008 if test "${with_toolkit_scroll_bars}" != "no"; then
13009 if test "${USE_X_TOOLKIT}" != "none"; then
13010 if test "${USE_X_TOOLKIT}" = "MOTIF"; then
13011 cat >>confdefs.h <<\_ACEOF
13012 #define USE_TOOLKIT_SCROLL_BARS 1
13013 _ACEOF
13014
13015 HAVE_XAW3D=no
13016 USE_TOOLKIT_SCROLL_BARS=yes
13017 elif test "${HAVE_XAW3D}" = "yes"; then
13018 cat >>confdefs.h <<\_ACEOF
13019 #define USE_TOOLKIT_SCROLL_BARS 1
13020 _ACEOF
13021
13022 USE_TOOLKIT_SCROLL_BARS=yes
13023 fi
13024 elif test "${HAVE_GTK}" = "yes"; then
13025 cat >>confdefs.h <<\_ACEOF
13026 #define USE_TOOLKIT_SCROLL_BARS 1
13027 _ACEOF
13028
13029 USE_TOOLKIT_SCROLL_BARS=yes
13030 elif test "${HAVE_CARBON}" = "yes"; then
13031 cat >>confdefs.h <<\_ACEOF
13032 #define USE_TOOLKIT_SCROLL_BARS 1
13033 _ACEOF
13034
13035 USE_TOOLKIT_SCROLL_BARS=yes
13036 fi
13037 fi
13038
13039 cat >conftest.$ac_ext <<_ACEOF
13040 /* confdefs.h. */
13041 _ACEOF
13042 cat confdefs.h >>conftest.$ac_ext
13043 cat >>conftest.$ac_ext <<_ACEOF
13044 /* end confdefs.h. */
13045
13046 #include <X11/Xlib.h>
13047 #include <X11/Xresource.h>
13048 int
13049 main ()
13050 {
13051 XIMProc callback;
13052 ;
13053 return 0;
13054 }
13055 _ACEOF
13056 rm -f conftest.$ac_objext
13057 if { (ac_try="$ac_compile"
13058 case "(($ac_try" in
13059 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13060 *) ac_try_echo=$ac_try;;
13061 esac
13062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13063 (eval "$ac_compile") 2>conftest.er1
13064 ac_status=$?
13065 grep -v '^ *+' conftest.er1 >conftest.err
13066 rm -f conftest.er1
13067 cat conftest.err >&5
13068 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13069 (exit $ac_status); } && {
13070 test -z "$ac_c_werror_flag" ||
13071 test ! -s conftest.err
13072 } && test -s conftest.$ac_objext; then
13073 HAVE_XIM=yes
13074
13075 cat >>confdefs.h <<\_ACEOF
13076 #define HAVE_XIM 1
13077 _ACEOF
13078
13079 else
13080 echo "$as_me: failed program was:" >&5
13081 sed 's/^/| /' conftest.$ac_ext >&5
13082
13083 HAVE_XIM=no
13084 fi
13085
13086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13087
13088
13089 if test "${with_xim}" != "no"; then
13090
13091 cat >>confdefs.h <<\_ACEOF
13092 #define USE_XIM 1
13093 _ACEOF
13094
13095 fi
13096
13097
13098 if test "${HAVE_XIM}" != "no"; then
13099 late_CFLAGS=$CFLAGS
13100 if test "$GCC" = yes; then
13101 CFLAGS="$CFLAGS --pedantic-errors"
13102 fi
13103 cat >conftest.$ac_ext <<_ACEOF
13104 /* confdefs.h. */
13105 _ACEOF
13106 cat confdefs.h >>conftest.$ac_ext
13107 cat >>conftest.$ac_ext <<_ACEOF
13108 /* end confdefs.h. */
13109
13110 #include <X11/Xlib.h>
13111 #include <X11/Xresource.h>
13112 int
13113 main ()
13114 {
13115 Display *display;
13116 XrmDatabase db;
13117 char *res_name;
13118 char *res_class;
13119 XIMProc callback;
13120 XPointer *client_data;
13121 #ifndef __GNUC__
13122 /* If we're not using GCC, it's probably not XFree86, and this is
13123 probably right, but we can't use something like --pedantic-errors. */
13124 extern Bool XRegisterIMInstantiateCallback(Display*, XrmDatabase, char*,
13125 char*, XIMProc, XPointer*);
13126 #endif
13127 (void)XRegisterIMInstantiateCallback(display, db, res_name, res_class, callback,
13128 client_data);
13129 ;
13130 return 0;
13131 }
13132 _ACEOF
13133 rm -f conftest.$ac_objext
13134 if { (ac_try="$ac_compile"
13135 case "(($ac_try" in
13136 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13137 *) ac_try_echo=$ac_try;;
13138 esac
13139 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13140 (eval "$ac_compile") 2>conftest.er1
13141 ac_status=$?
13142 grep -v '^ *+' conftest.er1 >conftest.err
13143 rm -f conftest.er1
13144 cat conftest.err >&5
13145 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13146 (exit $ac_status); } && {
13147 test -z "$ac_c_werror_flag" ||
13148 test ! -s conftest.err
13149 } && test -s conftest.$ac_objext; then
13150 emacs_cv_arg6_star=yes
13151 else
13152 echo "$as_me: failed program was:" >&5
13153 sed 's/^/| /' conftest.$ac_ext >&5
13154
13155
13156 fi
13157
13158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13159
13160 if test "$emacs_cv_arg6_star" = yes; then
13161 cat >>confdefs.h <<\_ACEOF
13162 #define XRegisterIMInstantiateCallback_arg6 XPointer*
13163 _ACEOF
13164
13165 else
13166 cat >>confdefs.h <<\_ACEOF
13167 #define XRegisterIMInstantiateCallback_arg6 XPointer
13168 _ACEOF
13169
13170 fi
13171 CFLAGS=$late_CFLAGS
13172 fi
13173
13174 ### Use -lXpm if available, unless `--with-xpm=no'.
13175 HAVE_XPM=no
13176 if test "${HAVE_X11}" = "yes"; then
13177 if test "${with_xpm}" != "no"; then
13178 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13179 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13180 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13181 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13182 echo $ECHO_N "(cached) $ECHO_C" >&6
13183 fi
13184 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13185 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13186 else
13187 # Is the header compilable?
13188 { echo "$as_me:$LINENO: checking X11/xpm.h usability" >&5
13189 echo $ECHO_N "checking X11/xpm.h usability... $ECHO_C" >&6; }
13190 cat >conftest.$ac_ext <<_ACEOF
13191 /* confdefs.h. */
13192 _ACEOF
13193 cat confdefs.h >>conftest.$ac_ext
13194 cat >>conftest.$ac_ext <<_ACEOF
13195 /* end confdefs.h. */
13196 $ac_includes_default
13197 #include <X11/xpm.h>
13198 _ACEOF
13199 rm -f conftest.$ac_objext
13200 if { (ac_try="$ac_compile"
13201 case "(($ac_try" in
13202 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13203 *) ac_try_echo=$ac_try;;
13204 esac
13205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13206 (eval "$ac_compile") 2>conftest.er1
13207 ac_status=$?
13208 grep -v '^ *+' conftest.er1 >conftest.err
13209 rm -f conftest.er1
13210 cat conftest.err >&5
13211 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13212 (exit $ac_status); } && {
13213 test -z "$ac_c_werror_flag" ||
13214 test ! -s conftest.err
13215 } && test -s conftest.$ac_objext; then
13216 ac_header_compiler=yes
13217 else
13218 echo "$as_me: failed program was:" >&5
13219 sed 's/^/| /' conftest.$ac_ext >&5
13220
13221 ac_header_compiler=no
13222 fi
13223
13224 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13225 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13226 echo "${ECHO_T}$ac_header_compiler" >&6; }
13227
13228 # Is the header present?
13229 { echo "$as_me:$LINENO: checking X11/xpm.h presence" >&5
13230 echo $ECHO_N "checking X11/xpm.h presence... $ECHO_C" >&6; }
13231 cat >conftest.$ac_ext <<_ACEOF
13232 /* confdefs.h. */
13233 _ACEOF
13234 cat confdefs.h >>conftest.$ac_ext
13235 cat >>conftest.$ac_ext <<_ACEOF
13236 /* end confdefs.h. */
13237 #include <X11/xpm.h>
13238 _ACEOF
13239 if { (ac_try="$ac_cpp conftest.$ac_ext"
13240 case "(($ac_try" in
13241 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13242 *) ac_try_echo=$ac_try;;
13243 esac
13244 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13245 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13246 ac_status=$?
13247 grep -v '^ *+' conftest.er1 >conftest.err
13248 rm -f conftest.er1
13249 cat conftest.err >&5
13250 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13251 (exit $ac_status); } >/dev/null && {
13252 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13253 test ! -s conftest.err
13254 }; then
13255 ac_header_preproc=yes
13256 else
13257 echo "$as_me: failed program was:" >&5
13258 sed 's/^/| /' conftest.$ac_ext >&5
13259
13260 ac_header_preproc=no
13261 fi
13262
13263 rm -f conftest.err conftest.$ac_ext
13264 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13265 echo "${ECHO_T}$ac_header_preproc" >&6; }
13266
13267 # So? What about this header?
13268 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13269 yes:no: )
13270 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
13271 echo "$as_me: WARNING: X11/xpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13272 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the compiler's result" >&5
13273 echo "$as_me: WARNING: X11/xpm.h: proceeding with the compiler's result" >&2;}
13274 ac_header_preproc=yes
13275 ;;
13276 no:yes:* )
13277 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: present but cannot be compiled" >&5
13278 echo "$as_me: WARNING: X11/xpm.h: present but cannot be compiled" >&2;}
13279 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&5
13280 echo "$as_me: WARNING: X11/xpm.h: check for missing prerequisite headers?" >&2;}
13281 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: see the Autoconf documentation" >&5
13282 echo "$as_me: WARNING: X11/xpm.h: see the Autoconf documentation" >&2;}
13283 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&5
13284 echo "$as_me: WARNING: X11/xpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
13285 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&5
13286 echo "$as_me: WARNING: X11/xpm.h: proceeding with the preprocessor's result" >&2;}
13287 { echo "$as_me:$LINENO: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&5
13288 echo "$as_me: WARNING: X11/xpm.h: in the future, the compiler will take precedence" >&2;}
13289
13290 ;;
13291 esac
13292 { echo "$as_me:$LINENO: checking for X11/xpm.h" >&5
13293 echo $ECHO_N "checking for X11/xpm.h... $ECHO_C" >&6; }
13294 if test "${ac_cv_header_X11_xpm_h+set}" = set; then
13295 echo $ECHO_N "(cached) $ECHO_C" >&6
13296 else
13297 ac_cv_header_X11_xpm_h=$ac_header_preproc
13298 fi
13299 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_xpm_h" >&5
13300 echo "${ECHO_T}$ac_cv_header_X11_xpm_h" >&6; }
13301
13302 fi
13303 if test $ac_cv_header_X11_xpm_h = yes; then
13304 { echo "$as_me:$LINENO: checking for XpmReadFileToPixmap in -lXpm" >&5
13305 echo $ECHO_N "checking for XpmReadFileToPixmap in -lXpm... $ECHO_C" >&6; }
13306 if test "${ac_cv_lib_Xpm_XpmReadFileToPixmap+set}" = set; then
13307 echo $ECHO_N "(cached) $ECHO_C" >&6
13308 else
13309 ac_check_lib_save_LIBS=$LIBS
13310 LIBS="-lXpm -lX11 $LIBS"
13311 cat >conftest.$ac_ext <<_ACEOF
13312 /* confdefs.h. */
13313 _ACEOF
13314 cat confdefs.h >>conftest.$ac_ext
13315 cat >>conftest.$ac_ext <<_ACEOF
13316 /* end confdefs.h. */
13317
13318 /* Override any GCC internal prototype to avoid an error.
13319 Use char because int might match the return type of a GCC
13320 builtin and then its argument prototype would still apply. */
13321 #ifdef __cplusplus
13322 extern "C"
13323 #endif
13324 char XpmReadFileToPixmap ();
13325 int
13326 main ()
13327 {
13328 return XpmReadFileToPixmap ();
13329 ;
13330 return 0;
13331 }
13332 _ACEOF
13333 rm -f conftest.$ac_objext conftest$ac_exeext
13334 if { (ac_try="$ac_link"
13335 case "(($ac_try" in
13336 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13337 *) ac_try_echo=$ac_try;;
13338 esac
13339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13340 (eval "$ac_link") 2>conftest.er1
13341 ac_status=$?
13342 grep -v '^ *+' conftest.er1 >conftest.err
13343 rm -f conftest.er1
13344 cat conftest.err >&5
13345 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13346 (exit $ac_status); } && {
13347 test -z "$ac_c_werror_flag" ||
13348 test ! -s conftest.err
13349 } && test -s conftest$ac_exeext &&
13350 $as_test_x conftest$ac_exeext; then
13351 ac_cv_lib_Xpm_XpmReadFileToPixmap=yes
13352 else
13353 echo "$as_me: failed program was:" >&5
13354 sed 's/^/| /' conftest.$ac_ext >&5
13355
13356 ac_cv_lib_Xpm_XpmReadFileToPixmap=no
13357 fi
13358
13359 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13360 conftest$ac_exeext conftest.$ac_ext
13361 LIBS=$ac_check_lib_save_LIBS
13362 fi
13363 { echo "$as_me:$LINENO: result: $ac_cv_lib_Xpm_XpmReadFileToPixmap" >&5
13364 echo "${ECHO_T}$ac_cv_lib_Xpm_XpmReadFileToPixmap" >&6; }
13365 if test $ac_cv_lib_Xpm_XpmReadFileToPixmap = yes; then
13366 HAVE_XPM=yes
13367 fi
13368
13369 fi
13370
13371
13372 if test "${HAVE_XPM}" = "yes"; then
13373 { echo "$as_me:$LINENO: checking for XpmReturnAllocPixels preprocessor define" >&5
13374 echo $ECHO_N "checking for XpmReturnAllocPixels preprocessor define... $ECHO_C" >&6; }
13375 cat >conftest.$ac_ext <<_ACEOF
13376 /* confdefs.h. */
13377 _ACEOF
13378 cat confdefs.h >>conftest.$ac_ext
13379 cat >>conftest.$ac_ext <<_ACEOF
13380 /* end confdefs.h. */
13381 #include "X11/xpm.h"
13382 #ifndef XpmReturnAllocPixels
13383 no_return_alloc_pixels
13384 #endif
13385
13386 _ACEOF
13387 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13388 $EGREP "no_return_alloc_pixels" >/dev/null 2>&1; then
13389 HAVE_XPM=no
13390 else
13391 HAVE_XPM=yes
13392 fi
13393 rm -f conftest*
13394
13395
13396 if test "${HAVE_XPM}" = "yes"; then
13397 { echo "$as_me:$LINENO: result: yes" >&5
13398 echo "${ECHO_T}yes" >&6; }
13399 else
13400 { echo "$as_me:$LINENO: result: no" >&5
13401 echo "${ECHO_T}no" >&6; }
13402 fi
13403 fi
13404 fi
13405
13406 if test "${HAVE_XPM}" = "yes"; then
13407
13408 cat >>confdefs.h <<\_ACEOF
13409 #define HAVE_XPM 1
13410 _ACEOF
13411
13412 fi
13413 fi
13414
13415 ### Use -ljpeg if available, unless `--with-jpeg=no'.
13416 HAVE_JPEG=no
13417 if test "${HAVE_X11}" = "yes"; then
13418 if test "${with_jpeg}" != "no"; then
13419 if test "${ac_cv_header_jerror_h+set}" = set; then
13420 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13421 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13422 if test "${ac_cv_header_jerror_h+set}" = set; then
13423 echo $ECHO_N "(cached) $ECHO_C" >&6
13424 fi
13425 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13426 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13427 else
13428 # Is the header compilable?
13429 { echo "$as_me:$LINENO: checking jerror.h usability" >&5
13430 echo $ECHO_N "checking jerror.h usability... $ECHO_C" >&6; }
13431 cat >conftest.$ac_ext <<_ACEOF
13432 /* confdefs.h. */
13433 _ACEOF
13434 cat confdefs.h >>conftest.$ac_ext
13435 cat >>conftest.$ac_ext <<_ACEOF
13436 /* end confdefs.h. */
13437 $ac_includes_default
13438 #include <jerror.h>
13439 _ACEOF
13440 rm -f conftest.$ac_objext
13441 if { (ac_try="$ac_compile"
13442 case "(($ac_try" in
13443 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13444 *) ac_try_echo=$ac_try;;
13445 esac
13446 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13447 (eval "$ac_compile") 2>conftest.er1
13448 ac_status=$?
13449 grep -v '^ *+' conftest.er1 >conftest.err
13450 rm -f conftest.er1
13451 cat conftest.err >&5
13452 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13453 (exit $ac_status); } && {
13454 test -z "$ac_c_werror_flag" ||
13455 test ! -s conftest.err
13456 } && test -s conftest.$ac_objext; then
13457 ac_header_compiler=yes
13458 else
13459 echo "$as_me: failed program was:" >&5
13460 sed 's/^/| /' conftest.$ac_ext >&5
13461
13462 ac_header_compiler=no
13463 fi
13464
13465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13466 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13467 echo "${ECHO_T}$ac_header_compiler" >&6; }
13468
13469 # Is the header present?
13470 { echo "$as_me:$LINENO: checking jerror.h presence" >&5
13471 echo $ECHO_N "checking jerror.h presence... $ECHO_C" >&6; }
13472 cat >conftest.$ac_ext <<_ACEOF
13473 /* confdefs.h. */
13474 _ACEOF
13475 cat confdefs.h >>conftest.$ac_ext
13476 cat >>conftest.$ac_ext <<_ACEOF
13477 /* end confdefs.h. */
13478 #include <jerror.h>
13479 _ACEOF
13480 if { (ac_try="$ac_cpp conftest.$ac_ext"
13481 case "(($ac_try" in
13482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13483 *) ac_try_echo=$ac_try;;
13484 esac
13485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13486 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13487 ac_status=$?
13488 grep -v '^ *+' conftest.er1 >conftest.err
13489 rm -f conftest.er1
13490 cat conftest.err >&5
13491 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13492 (exit $ac_status); } >/dev/null && {
13493 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13494 test ! -s conftest.err
13495 }; then
13496 ac_header_preproc=yes
13497 else
13498 echo "$as_me: failed program was:" >&5
13499 sed 's/^/| /' conftest.$ac_ext >&5
13500
13501 ac_header_preproc=no
13502 fi
13503
13504 rm -f conftest.err conftest.$ac_ext
13505 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13506 echo "${ECHO_T}$ac_header_preproc" >&6; }
13507
13508 # So? What about this header?
13509 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13510 yes:no: )
13511 { echo "$as_me:$LINENO: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&5
13512 echo "$as_me: WARNING: jerror.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13513 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the compiler's result" >&5
13514 echo "$as_me: WARNING: jerror.h: proceeding with the compiler's result" >&2;}
13515 ac_header_preproc=yes
13516 ;;
13517 no:yes:* )
13518 { echo "$as_me:$LINENO: WARNING: jerror.h: present but cannot be compiled" >&5
13519 echo "$as_me: WARNING: jerror.h: present but cannot be compiled" >&2;}
13520 { echo "$as_me:$LINENO: WARNING: jerror.h: check for missing prerequisite headers?" >&5
13521 echo "$as_me: WARNING: jerror.h: check for missing prerequisite headers?" >&2;}
13522 { echo "$as_me:$LINENO: WARNING: jerror.h: see the Autoconf documentation" >&5
13523 echo "$as_me: WARNING: jerror.h: see the Autoconf documentation" >&2;}
13524 { echo "$as_me:$LINENO: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&5
13525 echo "$as_me: WARNING: jerror.h: section \"Present But Cannot Be Compiled\"" >&2;}
13526 { echo "$as_me:$LINENO: WARNING: jerror.h: proceeding with the preprocessor's result" >&5
13527 echo "$as_me: WARNING: jerror.h: proceeding with the preprocessor's result" >&2;}
13528 { echo "$as_me:$LINENO: WARNING: jerror.h: in the future, the compiler will take precedence" >&5
13529 echo "$as_me: WARNING: jerror.h: in the future, the compiler will take precedence" >&2;}
13530
13531 ;;
13532 esac
13533 { echo "$as_me:$LINENO: checking for jerror.h" >&5
13534 echo $ECHO_N "checking for jerror.h... $ECHO_C" >&6; }
13535 if test "${ac_cv_header_jerror_h+set}" = set; then
13536 echo $ECHO_N "(cached) $ECHO_C" >&6
13537 else
13538 ac_cv_header_jerror_h=$ac_header_preproc
13539 fi
13540 { echo "$as_me:$LINENO: result: $ac_cv_header_jerror_h" >&5
13541 echo "${ECHO_T}$ac_cv_header_jerror_h" >&6; }
13542
13543 fi
13544 if test $ac_cv_header_jerror_h = yes; then
13545 { echo "$as_me:$LINENO: checking for jpeg_destroy_compress in -ljpeg" >&5
13546 echo $ECHO_N "checking for jpeg_destroy_compress in -ljpeg... $ECHO_C" >&6; }
13547 if test "${ac_cv_lib_jpeg_jpeg_destroy_compress+set}" = set; then
13548 echo $ECHO_N "(cached) $ECHO_C" >&6
13549 else
13550 ac_check_lib_save_LIBS=$LIBS
13551 LIBS="-ljpeg $LIBS"
13552 cat >conftest.$ac_ext <<_ACEOF
13553 /* confdefs.h. */
13554 _ACEOF
13555 cat confdefs.h >>conftest.$ac_ext
13556 cat >>conftest.$ac_ext <<_ACEOF
13557 /* end confdefs.h. */
13558
13559 /* Override any GCC internal prototype to avoid an error.
13560 Use char because int might match the return type of a GCC
13561 builtin and then its argument prototype would still apply. */
13562 #ifdef __cplusplus
13563 extern "C"
13564 #endif
13565 char jpeg_destroy_compress ();
13566 int
13567 main ()
13568 {
13569 return jpeg_destroy_compress ();
13570 ;
13571 return 0;
13572 }
13573 _ACEOF
13574 rm -f conftest.$ac_objext conftest$ac_exeext
13575 if { (ac_try="$ac_link"
13576 case "(($ac_try" in
13577 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13578 *) ac_try_echo=$ac_try;;
13579 esac
13580 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13581 (eval "$ac_link") 2>conftest.er1
13582 ac_status=$?
13583 grep -v '^ *+' conftest.er1 >conftest.err
13584 rm -f conftest.er1
13585 cat conftest.err >&5
13586 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13587 (exit $ac_status); } && {
13588 test -z "$ac_c_werror_flag" ||
13589 test ! -s conftest.err
13590 } && test -s conftest$ac_exeext &&
13591 $as_test_x conftest$ac_exeext; then
13592 ac_cv_lib_jpeg_jpeg_destroy_compress=yes
13593 else
13594 echo "$as_me: failed program was:" >&5
13595 sed 's/^/| /' conftest.$ac_ext >&5
13596
13597 ac_cv_lib_jpeg_jpeg_destroy_compress=no
13598 fi
13599
13600 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13601 conftest$ac_exeext conftest.$ac_ext
13602 LIBS=$ac_check_lib_save_LIBS
13603 fi
13604 { echo "$as_me:$LINENO: result: $ac_cv_lib_jpeg_jpeg_destroy_compress" >&5
13605 echo "${ECHO_T}$ac_cv_lib_jpeg_jpeg_destroy_compress" >&6; }
13606 if test $ac_cv_lib_jpeg_jpeg_destroy_compress = yes; then
13607 HAVE_JPEG=yes
13608 fi
13609
13610 fi
13611
13612
13613 fi
13614
13615
13616 if test "${HAVE_JPEG}" = "yes"; then
13617 cat >>confdefs.h <<\_ACEOF
13618 #define HAVE_JPEG 1
13619 _ACEOF
13620
13621 cat >conftest.$ac_ext <<_ACEOF
13622 /* confdefs.h. */
13623 _ACEOF
13624 cat confdefs.h >>conftest.$ac_ext
13625 cat >>conftest.$ac_ext <<_ACEOF
13626 /* end confdefs.h. */
13627 #include <jpeglib.h>
13628 version=JPEG_LIB_VERSION
13629
13630 _ACEOF
13631 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13632 $EGREP "version= *(6[2-9]|[7-9][0-9])" >/dev/null 2>&1; then
13633 cat >>confdefs.h <<\_ACEOF
13634 #define HAVE_JPEG 1
13635 _ACEOF
13636
13637 else
13638 { echo "$as_me:$LINENO: WARNING: libjpeg found, but not version 6b or later" >&5
13639 echo "$as_me: WARNING: libjpeg found, but not version 6b or later" >&2;}
13640 HAVE_JPEG=no
13641 fi
13642 rm -f conftest*
13643
13644 fi
13645 fi
13646
13647 ### Use -lpng if available, unless `--with-png=no'.
13648 HAVE_PNG=no
13649 if test "${HAVE_X11}" = "yes"; then
13650 if test "${with_png}" != "no"; then
13651 # Debian unstable as of July 2003 has multiple libpngs, and puts png.h
13652 # in /usr/include/libpng.
13653
13654
13655 for ac_header in png.h libpng/png.h
13656 do
13657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
13658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13662 echo $ECHO_N "(cached) $ECHO_C" >&6
13663 fi
13664 ac_res=`eval echo '${'$as_ac_Header'}'`
13665 { echo "$as_me:$LINENO: result: $ac_res" >&5
13666 echo "${ECHO_T}$ac_res" >&6; }
13667 else
13668 # Is the header compilable?
13669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
13670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
13671 cat >conftest.$ac_ext <<_ACEOF
13672 /* confdefs.h. */
13673 _ACEOF
13674 cat confdefs.h >>conftest.$ac_ext
13675 cat >>conftest.$ac_ext <<_ACEOF
13676 /* end confdefs.h. */
13677 $ac_includes_default
13678 #include <$ac_header>
13679 _ACEOF
13680 rm -f conftest.$ac_objext
13681 if { (ac_try="$ac_compile"
13682 case "(($ac_try" in
13683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13684 *) ac_try_echo=$ac_try;;
13685 esac
13686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13687 (eval "$ac_compile") 2>conftest.er1
13688 ac_status=$?
13689 grep -v '^ *+' conftest.er1 >conftest.err
13690 rm -f conftest.er1
13691 cat conftest.err >&5
13692 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693 (exit $ac_status); } && {
13694 test -z "$ac_c_werror_flag" ||
13695 test ! -s conftest.err
13696 } && test -s conftest.$ac_objext; then
13697 ac_header_compiler=yes
13698 else
13699 echo "$as_me: failed program was:" >&5
13700 sed 's/^/| /' conftest.$ac_ext >&5
13701
13702 ac_header_compiler=no
13703 fi
13704
13705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13707 echo "${ECHO_T}$ac_header_compiler" >&6; }
13708
13709 # Is the header present?
13710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
13711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
13712 cat >conftest.$ac_ext <<_ACEOF
13713 /* confdefs.h. */
13714 _ACEOF
13715 cat confdefs.h >>conftest.$ac_ext
13716 cat >>conftest.$ac_ext <<_ACEOF
13717 /* end confdefs.h. */
13718 #include <$ac_header>
13719 _ACEOF
13720 if { (ac_try="$ac_cpp conftest.$ac_ext"
13721 case "(($ac_try" in
13722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13723 *) ac_try_echo=$ac_try;;
13724 esac
13725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13726 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13727 ac_status=$?
13728 grep -v '^ *+' conftest.er1 >conftest.err
13729 rm -f conftest.er1
13730 cat conftest.err >&5
13731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13732 (exit $ac_status); } >/dev/null && {
13733 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13734 test ! -s conftest.err
13735 }; then
13736 ac_header_preproc=yes
13737 else
13738 echo "$as_me: failed program was:" >&5
13739 sed 's/^/| /' conftest.$ac_ext >&5
13740
13741 ac_header_preproc=no
13742 fi
13743
13744 rm -f conftest.err conftest.$ac_ext
13745 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13746 echo "${ECHO_T}$ac_header_preproc" >&6; }
13747
13748 # So? What about this header?
13749 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13750 yes:no: )
13751 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
13752 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
13753 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
13754 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
13755 ac_header_preproc=yes
13756 ;;
13757 no:yes:* )
13758 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
13759 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
13760 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
13761 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
13762 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
13763 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
13764 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
13765 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
13766 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
13767 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
13768 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
13769 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
13770
13771 ;;
13772 esac
13773 { echo "$as_me:$LINENO: checking for $ac_header" >&5
13774 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
13775 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
13776 echo $ECHO_N "(cached) $ECHO_C" >&6
13777 else
13778 eval "$as_ac_Header=\$ac_header_preproc"
13779 fi
13780 ac_res=`eval echo '${'$as_ac_Header'}'`
13781 { echo "$as_me:$LINENO: result: $ac_res" >&5
13782 echo "${ECHO_T}$ac_res" >&6; }
13783
13784 fi
13785 if test `eval echo '${'$as_ac_Header'}'` = yes; then
13786 cat >>confdefs.h <<_ACEOF
13787 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
13788 _ACEOF
13789
13790 fi
13791
13792 done
13793
13794 if test "$ac_cv_header_png_h" = yes || test "$ac_cv_header_libpng_png_h" = yes ; then
13795 { echo "$as_me:$LINENO: checking for png_get_channels in -lpng" >&5
13796 echo $ECHO_N "checking for png_get_channels in -lpng... $ECHO_C" >&6; }
13797 if test "${ac_cv_lib_png_png_get_channels+set}" = set; then
13798 echo $ECHO_N "(cached) $ECHO_C" >&6
13799 else
13800 ac_check_lib_save_LIBS=$LIBS
13801 LIBS="-lpng -lz -lm $LIBS"
13802 cat >conftest.$ac_ext <<_ACEOF
13803 /* confdefs.h. */
13804 _ACEOF
13805 cat confdefs.h >>conftest.$ac_ext
13806 cat >>conftest.$ac_ext <<_ACEOF
13807 /* end confdefs.h. */
13808
13809 /* Override any GCC internal prototype to avoid an error.
13810 Use char because int might match the return type of a GCC
13811 builtin and then its argument prototype would still apply. */
13812 #ifdef __cplusplus
13813 extern "C"
13814 #endif
13815 char png_get_channels ();
13816 int
13817 main ()
13818 {
13819 return png_get_channels ();
13820 ;
13821 return 0;
13822 }
13823 _ACEOF
13824 rm -f conftest.$ac_objext conftest$ac_exeext
13825 if { (ac_try="$ac_link"
13826 case "(($ac_try" in
13827 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13828 *) ac_try_echo=$ac_try;;
13829 esac
13830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13831 (eval "$ac_link") 2>conftest.er1
13832 ac_status=$?
13833 grep -v '^ *+' conftest.er1 >conftest.err
13834 rm -f conftest.er1
13835 cat conftest.err >&5
13836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13837 (exit $ac_status); } && {
13838 test -z "$ac_c_werror_flag" ||
13839 test ! -s conftest.err
13840 } && test -s conftest$ac_exeext &&
13841 $as_test_x conftest$ac_exeext; then
13842 ac_cv_lib_png_png_get_channels=yes
13843 else
13844 echo "$as_me: failed program was:" >&5
13845 sed 's/^/| /' conftest.$ac_ext >&5
13846
13847 ac_cv_lib_png_png_get_channels=no
13848 fi
13849
13850 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
13851 conftest$ac_exeext conftest.$ac_ext
13852 LIBS=$ac_check_lib_save_LIBS
13853 fi
13854 { echo "$as_me:$LINENO: result: $ac_cv_lib_png_png_get_channels" >&5
13855 echo "${ECHO_T}$ac_cv_lib_png_png_get_channels" >&6; }
13856 if test $ac_cv_lib_png_png_get_channels = yes; then
13857 HAVE_PNG=yes
13858 fi
13859
13860 fi
13861 fi
13862
13863 if test "${HAVE_PNG}" = "yes"; then
13864
13865 cat >>confdefs.h <<\_ACEOF
13866 #define HAVE_PNG 1
13867 _ACEOF
13868
13869 fi
13870 fi
13871
13872 ### Use -ltiff if available, unless `--with-tiff=no'.
13873 HAVE_TIFF=no
13874 if test "${HAVE_X11}" = "yes"; then
13875 if test "${with_tiff}" != "no"; then
13876 if test "${ac_cv_header_tiffio_h+set}" = set; then
13877 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13878 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13879 if test "${ac_cv_header_tiffio_h+set}" = set; then
13880 echo $ECHO_N "(cached) $ECHO_C" >&6
13881 fi
13882 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13883 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13884 else
13885 # Is the header compilable?
13886 { echo "$as_me:$LINENO: checking tiffio.h usability" >&5
13887 echo $ECHO_N "checking tiffio.h usability... $ECHO_C" >&6; }
13888 cat >conftest.$ac_ext <<_ACEOF
13889 /* confdefs.h. */
13890 _ACEOF
13891 cat confdefs.h >>conftest.$ac_ext
13892 cat >>conftest.$ac_ext <<_ACEOF
13893 /* end confdefs.h. */
13894 $ac_includes_default
13895 #include <tiffio.h>
13896 _ACEOF
13897 rm -f conftest.$ac_objext
13898 if { (ac_try="$ac_compile"
13899 case "(($ac_try" in
13900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13901 *) ac_try_echo=$ac_try;;
13902 esac
13903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13904 (eval "$ac_compile") 2>conftest.er1
13905 ac_status=$?
13906 grep -v '^ *+' conftest.er1 >conftest.err
13907 rm -f conftest.er1
13908 cat conftest.err >&5
13909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910 (exit $ac_status); } && {
13911 test -z "$ac_c_werror_flag" ||
13912 test ! -s conftest.err
13913 } && test -s conftest.$ac_objext; then
13914 ac_header_compiler=yes
13915 else
13916 echo "$as_me: failed program was:" >&5
13917 sed 's/^/| /' conftest.$ac_ext >&5
13918
13919 ac_header_compiler=no
13920 fi
13921
13922 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13923 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
13924 echo "${ECHO_T}$ac_header_compiler" >&6; }
13925
13926 # Is the header present?
13927 { echo "$as_me:$LINENO: checking tiffio.h presence" >&5
13928 echo $ECHO_N "checking tiffio.h presence... $ECHO_C" >&6; }
13929 cat >conftest.$ac_ext <<_ACEOF
13930 /* confdefs.h. */
13931 _ACEOF
13932 cat confdefs.h >>conftest.$ac_ext
13933 cat >>conftest.$ac_ext <<_ACEOF
13934 /* end confdefs.h. */
13935 #include <tiffio.h>
13936 _ACEOF
13937 if { (ac_try="$ac_cpp conftest.$ac_ext"
13938 case "(($ac_try" in
13939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13940 *) ac_try_echo=$ac_try;;
13941 esac
13942 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13943 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
13944 ac_status=$?
13945 grep -v '^ *+' conftest.er1 >conftest.err
13946 rm -f conftest.er1
13947 cat conftest.err >&5
13948 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13949 (exit $ac_status); } >/dev/null && {
13950 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
13951 test ! -s conftest.err
13952 }; then
13953 ac_header_preproc=yes
13954 else
13955 echo "$as_me: failed program was:" >&5
13956 sed 's/^/| /' conftest.$ac_ext >&5
13957
13958 ac_header_preproc=no
13959 fi
13960
13961 rm -f conftest.err conftest.$ac_ext
13962 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
13963 echo "${ECHO_T}$ac_header_preproc" >&6; }
13964
13965 # So? What about this header?
13966 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
13967 yes:no: )
13968 { echo "$as_me:$LINENO: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&5
13969 echo "$as_me: WARNING: tiffio.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
13970 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the compiler's result" >&5
13971 echo "$as_me: WARNING: tiffio.h: proceeding with the compiler's result" >&2;}
13972 ac_header_preproc=yes
13973 ;;
13974 no:yes:* )
13975 { echo "$as_me:$LINENO: WARNING: tiffio.h: present but cannot be compiled" >&5
13976 echo "$as_me: WARNING: tiffio.h: present but cannot be compiled" >&2;}
13977 { echo "$as_me:$LINENO: WARNING: tiffio.h: check for missing prerequisite headers?" >&5
13978 echo "$as_me: WARNING: tiffio.h: check for missing prerequisite headers?" >&2;}
13979 { echo "$as_me:$LINENO: WARNING: tiffio.h: see the Autoconf documentation" >&5
13980 echo "$as_me: WARNING: tiffio.h: see the Autoconf documentation" >&2;}
13981 { echo "$as_me:$LINENO: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&5
13982 echo "$as_me: WARNING: tiffio.h: section \"Present But Cannot Be Compiled\"" >&2;}
13983 { echo "$as_me:$LINENO: WARNING: tiffio.h: proceeding with the preprocessor's result" >&5
13984 echo "$as_me: WARNING: tiffio.h: proceeding with the preprocessor's result" >&2;}
13985 { echo "$as_me:$LINENO: WARNING: tiffio.h: in the future, the compiler will take precedence" >&5
13986 echo "$as_me: WARNING: tiffio.h: in the future, the compiler will take precedence" >&2;}
13987
13988 ;;
13989 esac
13990 { echo "$as_me:$LINENO: checking for tiffio.h" >&5
13991 echo $ECHO_N "checking for tiffio.h... $ECHO_C" >&6; }
13992 if test "${ac_cv_header_tiffio_h+set}" = set; then
13993 echo $ECHO_N "(cached) $ECHO_C" >&6
13994 else
13995 ac_cv_header_tiffio_h=$ac_header_preproc
13996 fi
13997 { echo "$as_me:$LINENO: result: $ac_cv_header_tiffio_h" >&5
13998 echo "${ECHO_T}$ac_cv_header_tiffio_h" >&6; }
13999
14000 fi
14001 if test $ac_cv_header_tiffio_h = yes; then
14002 tifflibs="-lz -lm"
14003 # At least one tiff package requires the jpeg library.
14004 if test "${HAVE_JPEG}" = yes; then tifflibs="-ljpeg $tifflibs"; fi
14005 { echo "$as_me:$LINENO: checking for TIFFGetVersion in -ltiff" >&5
14006 echo $ECHO_N "checking for TIFFGetVersion in -ltiff... $ECHO_C" >&6; }
14007 if test "${ac_cv_lib_tiff_TIFFGetVersion+set}" = set; then
14008 echo $ECHO_N "(cached) $ECHO_C" >&6
14009 else
14010 ac_check_lib_save_LIBS=$LIBS
14011 LIBS="-ltiff $tifflibs $LIBS"
14012 cat >conftest.$ac_ext <<_ACEOF
14013 /* confdefs.h. */
14014 _ACEOF
14015 cat confdefs.h >>conftest.$ac_ext
14016 cat >>conftest.$ac_ext <<_ACEOF
14017 /* end confdefs.h. */
14018
14019 /* Override any GCC internal prototype to avoid an error.
14020 Use char because int might match the return type of a GCC
14021 builtin and then its argument prototype would still apply. */
14022 #ifdef __cplusplus
14023 extern "C"
14024 #endif
14025 char TIFFGetVersion ();
14026 int
14027 main ()
14028 {
14029 return TIFFGetVersion ();
14030 ;
14031 return 0;
14032 }
14033 _ACEOF
14034 rm -f conftest.$ac_objext conftest$ac_exeext
14035 if { (ac_try="$ac_link"
14036 case "(($ac_try" in
14037 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14038 *) ac_try_echo=$ac_try;;
14039 esac
14040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14041 (eval "$ac_link") 2>conftest.er1
14042 ac_status=$?
14043 grep -v '^ *+' conftest.er1 >conftest.err
14044 rm -f conftest.er1
14045 cat conftest.err >&5
14046 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14047 (exit $ac_status); } && {
14048 test -z "$ac_c_werror_flag" ||
14049 test ! -s conftest.err
14050 } && test -s conftest$ac_exeext &&
14051 $as_test_x conftest$ac_exeext; then
14052 ac_cv_lib_tiff_TIFFGetVersion=yes
14053 else
14054 echo "$as_me: failed program was:" >&5
14055 sed 's/^/| /' conftest.$ac_ext >&5
14056
14057 ac_cv_lib_tiff_TIFFGetVersion=no
14058 fi
14059
14060 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14061 conftest$ac_exeext conftest.$ac_ext
14062 LIBS=$ac_check_lib_save_LIBS
14063 fi
14064 { echo "$as_me:$LINENO: result: $ac_cv_lib_tiff_TIFFGetVersion" >&5
14065 echo "${ECHO_T}$ac_cv_lib_tiff_TIFFGetVersion" >&6; }
14066 if test $ac_cv_lib_tiff_TIFFGetVersion = yes; then
14067 HAVE_TIFF=yes
14068 fi
14069
14070 fi
14071
14072
14073 fi
14074
14075 if test "${HAVE_TIFF}" = "yes"; then
14076
14077 cat >>confdefs.h <<\_ACEOF
14078 #define HAVE_TIFF 1
14079 _ACEOF
14080
14081 fi
14082 fi
14083
14084 ### Use -lgif or -lungif if available, unless `--with-gif=no'.
14085 HAVE_GIF=no
14086 if test "${HAVE_X11}" = "yes" && test "${with_gif}" != "no"; then
14087 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14088 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14089 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14090 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14091 echo $ECHO_N "(cached) $ECHO_C" >&6
14092 fi
14093 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14094 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14095 else
14096 # Is the header compilable?
14097 { echo "$as_me:$LINENO: checking gif_lib.h usability" >&5
14098 echo $ECHO_N "checking gif_lib.h usability... $ECHO_C" >&6; }
14099 cat >conftest.$ac_ext <<_ACEOF
14100 /* confdefs.h. */
14101 _ACEOF
14102 cat confdefs.h >>conftest.$ac_ext
14103 cat >>conftest.$ac_ext <<_ACEOF
14104 /* end confdefs.h. */
14105 $ac_includes_default
14106 #include <gif_lib.h>
14107 _ACEOF
14108 rm -f conftest.$ac_objext
14109 if { (ac_try="$ac_compile"
14110 case "(($ac_try" in
14111 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14112 *) ac_try_echo=$ac_try;;
14113 esac
14114 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14115 (eval "$ac_compile") 2>conftest.er1
14116 ac_status=$?
14117 grep -v '^ *+' conftest.er1 >conftest.err
14118 rm -f conftest.er1
14119 cat conftest.err >&5
14120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14121 (exit $ac_status); } && {
14122 test -z "$ac_c_werror_flag" ||
14123 test ! -s conftest.err
14124 } && test -s conftest.$ac_objext; then
14125 ac_header_compiler=yes
14126 else
14127 echo "$as_me: failed program was:" >&5
14128 sed 's/^/| /' conftest.$ac_ext >&5
14129
14130 ac_header_compiler=no
14131 fi
14132
14133 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14134 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14135 echo "${ECHO_T}$ac_header_compiler" >&6; }
14136
14137 # Is the header present?
14138 { echo "$as_me:$LINENO: checking gif_lib.h presence" >&5
14139 echo $ECHO_N "checking gif_lib.h presence... $ECHO_C" >&6; }
14140 cat >conftest.$ac_ext <<_ACEOF
14141 /* confdefs.h. */
14142 _ACEOF
14143 cat confdefs.h >>conftest.$ac_ext
14144 cat >>conftest.$ac_ext <<_ACEOF
14145 /* end confdefs.h. */
14146 #include <gif_lib.h>
14147 _ACEOF
14148 if { (ac_try="$ac_cpp conftest.$ac_ext"
14149 case "(($ac_try" in
14150 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14151 *) ac_try_echo=$ac_try;;
14152 esac
14153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14154 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14155 ac_status=$?
14156 grep -v '^ *+' conftest.er1 >conftest.err
14157 rm -f conftest.er1
14158 cat conftest.err >&5
14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14160 (exit $ac_status); } >/dev/null && {
14161 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14162 test ! -s conftest.err
14163 }; then
14164 ac_header_preproc=yes
14165 else
14166 echo "$as_me: failed program was:" >&5
14167 sed 's/^/| /' conftest.$ac_ext >&5
14168
14169 ac_header_preproc=no
14170 fi
14171
14172 rm -f conftest.err conftest.$ac_ext
14173 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14174 echo "${ECHO_T}$ac_header_preproc" >&6; }
14175
14176 # So? What about this header?
14177 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14178 yes:no: )
14179 { echo "$as_me:$LINENO: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14180 echo "$as_me: WARNING: gif_lib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14181 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the compiler's result" >&5
14182 echo "$as_me: WARNING: gif_lib.h: proceeding with the compiler's result" >&2;}
14183 ac_header_preproc=yes
14184 ;;
14185 no:yes:* )
14186 { echo "$as_me:$LINENO: WARNING: gif_lib.h: present but cannot be compiled" >&5
14187 echo "$as_me: WARNING: gif_lib.h: present but cannot be compiled" >&2;}
14188 { echo "$as_me:$LINENO: WARNING: gif_lib.h: check for missing prerequisite headers?" >&5
14189 echo "$as_me: WARNING: gif_lib.h: check for missing prerequisite headers?" >&2;}
14190 { echo "$as_me:$LINENO: WARNING: gif_lib.h: see the Autoconf documentation" >&5
14191 echo "$as_me: WARNING: gif_lib.h: see the Autoconf documentation" >&2;}
14192 { echo "$as_me:$LINENO: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&5
14193 echo "$as_me: WARNING: gif_lib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14194 { echo "$as_me:$LINENO: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&5
14195 echo "$as_me: WARNING: gif_lib.h: proceeding with the preprocessor's result" >&2;}
14196 { echo "$as_me:$LINENO: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&5
14197 echo "$as_me: WARNING: gif_lib.h: in the future, the compiler will take precedence" >&2;}
14198
14199 ;;
14200 esac
14201 { echo "$as_me:$LINENO: checking for gif_lib.h" >&5
14202 echo $ECHO_N "checking for gif_lib.h... $ECHO_C" >&6; }
14203 if test "${ac_cv_header_gif_lib_h+set}" = set; then
14204 echo $ECHO_N "(cached) $ECHO_C" >&6
14205 else
14206 ac_cv_header_gif_lib_h=$ac_header_preproc
14207 fi
14208 { echo "$as_me:$LINENO: result: $ac_cv_header_gif_lib_h" >&5
14209 echo "${ECHO_T}$ac_cv_header_gif_lib_h" >&6; }
14210
14211 fi
14212 if test $ac_cv_header_gif_lib_h = yes; then
14213 # EGifPutExtensionLast only exists from version libungif-4.1.0b1.
14214 # Earlier versions can crash Emacs.
14215 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lgif" >&5
14216 echo $ECHO_N "checking for EGifPutExtensionLast in -lgif... $ECHO_C" >&6; }
14217 if test "${ac_cv_lib_gif_EGifPutExtensionLast+set}" = set; then
14218 echo $ECHO_N "(cached) $ECHO_C" >&6
14219 else
14220 ac_check_lib_save_LIBS=$LIBS
14221 LIBS="-lgif $LIBS"
14222 cat >conftest.$ac_ext <<_ACEOF
14223 /* confdefs.h. */
14224 _ACEOF
14225 cat confdefs.h >>conftest.$ac_ext
14226 cat >>conftest.$ac_ext <<_ACEOF
14227 /* end confdefs.h. */
14228
14229 /* Override any GCC internal prototype to avoid an error.
14230 Use char because int might match the return type of a GCC
14231 builtin and then its argument prototype would still apply. */
14232 #ifdef __cplusplus
14233 extern "C"
14234 #endif
14235 char EGifPutExtensionLast ();
14236 int
14237 main ()
14238 {
14239 return EGifPutExtensionLast ();
14240 ;
14241 return 0;
14242 }
14243 _ACEOF
14244 rm -f conftest.$ac_objext conftest$ac_exeext
14245 if { (ac_try="$ac_link"
14246 case "(($ac_try" in
14247 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14248 *) ac_try_echo=$ac_try;;
14249 esac
14250 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14251 (eval "$ac_link") 2>conftest.er1
14252 ac_status=$?
14253 grep -v '^ *+' conftest.er1 >conftest.err
14254 rm -f conftest.er1
14255 cat conftest.err >&5
14256 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14257 (exit $ac_status); } && {
14258 test -z "$ac_c_werror_flag" ||
14259 test ! -s conftest.err
14260 } && test -s conftest$ac_exeext &&
14261 $as_test_x conftest$ac_exeext; then
14262 ac_cv_lib_gif_EGifPutExtensionLast=yes
14263 else
14264 echo "$as_me: failed program was:" >&5
14265 sed 's/^/| /' conftest.$ac_ext >&5
14266
14267 ac_cv_lib_gif_EGifPutExtensionLast=no
14268 fi
14269
14270 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14271 conftest$ac_exeext conftest.$ac_ext
14272 LIBS=$ac_check_lib_save_LIBS
14273 fi
14274 { echo "$as_me:$LINENO: result: $ac_cv_lib_gif_EGifPutExtensionLast" >&5
14275 echo "${ECHO_T}$ac_cv_lib_gif_EGifPutExtensionLast" >&6; }
14276 if test $ac_cv_lib_gif_EGifPutExtensionLast = yes; then
14277 HAVE_GIF=yes
14278 else
14279 try_libungif=yes
14280 fi
14281
14282 fi
14283
14284
14285
14286 if test "$HAVE_GIF" = yes; then
14287 ac_gif_lib_name="-lgif"
14288 fi
14289
14290 # If gif_lib.h but no libgif, try libungif.
14291 if test x"$try_libungif" = xyes; then
14292 { echo "$as_me:$LINENO: checking for EGifPutExtensionLast in -lungif" >&5
14293 echo $ECHO_N "checking for EGifPutExtensionLast in -lungif... $ECHO_C" >&6; }
14294 if test "${ac_cv_lib_ungif_EGifPutExtensionLast+set}" = set; then
14295 echo $ECHO_N "(cached) $ECHO_C" >&6
14296 else
14297 ac_check_lib_save_LIBS=$LIBS
14298 LIBS="-lungif $LIBS"
14299 cat >conftest.$ac_ext <<_ACEOF
14300 /* confdefs.h. */
14301 _ACEOF
14302 cat confdefs.h >>conftest.$ac_ext
14303 cat >>conftest.$ac_ext <<_ACEOF
14304 /* end confdefs.h. */
14305
14306 /* Override any GCC internal prototype to avoid an error.
14307 Use char because int might match the return type of a GCC
14308 builtin and then its argument prototype would still apply. */
14309 #ifdef __cplusplus
14310 extern "C"
14311 #endif
14312 char EGifPutExtensionLast ();
14313 int
14314 main ()
14315 {
14316 return EGifPutExtensionLast ();
14317 ;
14318 return 0;
14319 }
14320 _ACEOF
14321 rm -f conftest.$ac_objext conftest$ac_exeext
14322 if { (ac_try="$ac_link"
14323 case "(($ac_try" in
14324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14325 *) ac_try_echo=$ac_try;;
14326 esac
14327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14328 (eval "$ac_link") 2>conftest.er1
14329 ac_status=$?
14330 grep -v '^ *+' conftest.er1 >conftest.err
14331 rm -f conftest.er1
14332 cat conftest.err >&5
14333 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14334 (exit $ac_status); } && {
14335 test -z "$ac_c_werror_flag" ||
14336 test ! -s conftest.err
14337 } && test -s conftest$ac_exeext &&
14338 $as_test_x conftest$ac_exeext; then
14339 ac_cv_lib_ungif_EGifPutExtensionLast=yes
14340 else
14341 echo "$as_me: failed program was:" >&5
14342 sed 's/^/| /' conftest.$ac_ext >&5
14343
14344 ac_cv_lib_ungif_EGifPutExtensionLast=no
14345 fi
14346
14347 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14348 conftest$ac_exeext conftest.$ac_ext
14349 LIBS=$ac_check_lib_save_LIBS
14350 fi
14351 { echo "$as_me:$LINENO: result: $ac_cv_lib_ungif_EGifPutExtensionLast" >&5
14352 echo "${ECHO_T}$ac_cv_lib_ungif_EGifPutExtensionLast" >&6; }
14353 if test $ac_cv_lib_ungif_EGifPutExtensionLast = yes; then
14354 HAVE_GIF=yes
14355 fi
14356
14357
14358 if test "$HAVE_GIF" = yes; then
14359
14360 cat >>confdefs.h <<\_ACEOF
14361 #define LIBGIF -lungif
14362 _ACEOF
14363
14364 ac_gif_lib_name="-lungif"
14365 fi
14366 fi
14367
14368 if test "${HAVE_GIF}" = "yes"; then
14369
14370 cat >>confdefs.h <<\_ACEOF
14371 #define HAVE_GIF 1
14372 _ACEOF
14373
14374 fi
14375 fi
14376
14377 if test "${HAVE_X11}" = "yes"; then
14378 MISSING=""
14379 WITH_NO=""
14380 test "${with_xpm}" != "no" && test "${HAVE_XPM}" != "yes" &&
14381 MISSING="libXpm" && WITH_NO="--with-xpm=no"
14382 test "${with_jpeg}" != "no" && test "${HAVE_JPEG}" != "yes" &&
14383 MISSING="$MISSING libjpeg" && WITH_NO="$WITH_NO --with-jpeg=no"
14384 test "${with_png}" != "no" && test "${HAVE_PNG}" != "yes" &&
14385 MISSING="$MISSING libpng" && WITH_NO="$WITH_NO --with-png=no"
14386 test "${with_gif}" != "no" && test "${HAVE_GIF}" != "yes" &&
14387 MISSING="$MISSING libgif/libungif" && WITH_NO="$WITH_NO --with-gif=no"
14388 test "${with_tiff}" != "no" && test "${HAVE_TIFF}" != "yes" &&
14389 MISSING="$MISSING libtiff" && WITH_NO="$WITH_NO --with-tiff=no"
14390
14391 if test "X${MISSING}" != X; then
14392 { { echo "$as_me:$LINENO: error: The following required libraries were not found:
14393 $MISSING
14394 Maybe some development libraries/packages are missing?
14395 If you don't want to link with them give
14396 $WITH_NO
14397 as options to configure" >&5
14398 echo "$as_me: error: The following required libraries were not found:
14399 $MISSING
14400 Maybe some development libraries/packages are missing?
14401 If you don't want to link with them give
14402 $WITH_NO
14403 as options to configure" >&2;}
14404 { (exit 1); exit 1; }; }
14405 fi
14406 fi
14407
14408 ### Use -lgpm if available, unless `--with-gpm=no'.
14409 HAVE_GPM=no
14410 if test "${with_gpm}" != "no"; then
14411 if test "${ac_cv_header_gpm_h+set}" = set; then
14412 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14413 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14414 if test "${ac_cv_header_gpm_h+set}" = set; then
14415 echo $ECHO_N "(cached) $ECHO_C" >&6
14416 fi
14417 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14418 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14419 else
14420 # Is the header compilable?
14421 { echo "$as_me:$LINENO: checking gpm.h usability" >&5
14422 echo $ECHO_N "checking gpm.h usability... $ECHO_C" >&6; }
14423 cat >conftest.$ac_ext <<_ACEOF
14424 /* confdefs.h. */
14425 _ACEOF
14426 cat confdefs.h >>conftest.$ac_ext
14427 cat >>conftest.$ac_ext <<_ACEOF
14428 /* end confdefs.h. */
14429 $ac_includes_default
14430 #include <gpm.h>
14431 _ACEOF
14432 rm -f conftest.$ac_objext
14433 if { (ac_try="$ac_compile"
14434 case "(($ac_try" in
14435 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14436 *) ac_try_echo=$ac_try;;
14437 esac
14438 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14439 (eval "$ac_compile") 2>conftest.er1
14440 ac_status=$?
14441 grep -v '^ *+' conftest.er1 >conftest.err
14442 rm -f conftest.er1
14443 cat conftest.err >&5
14444 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14445 (exit $ac_status); } && {
14446 test -z "$ac_c_werror_flag" ||
14447 test ! -s conftest.err
14448 } && test -s conftest.$ac_objext; then
14449 ac_header_compiler=yes
14450 else
14451 echo "$as_me: failed program was:" >&5
14452 sed 's/^/| /' conftest.$ac_ext >&5
14453
14454 ac_header_compiler=no
14455 fi
14456
14457 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14458 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14459 echo "${ECHO_T}$ac_header_compiler" >&6; }
14460
14461 # Is the header present?
14462 { echo "$as_me:$LINENO: checking gpm.h presence" >&5
14463 echo $ECHO_N "checking gpm.h presence... $ECHO_C" >&6; }
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h. */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h. */
14470 #include <gpm.h>
14471 _ACEOF
14472 if { (ac_try="$ac_cpp conftest.$ac_ext"
14473 case "(($ac_try" in
14474 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14475 *) ac_try_echo=$ac_try;;
14476 esac
14477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14478 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14479 ac_status=$?
14480 grep -v '^ *+' conftest.er1 >conftest.err
14481 rm -f conftest.er1
14482 cat conftest.err >&5
14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14484 (exit $ac_status); } >/dev/null && {
14485 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14486 test ! -s conftest.err
14487 }; then
14488 ac_header_preproc=yes
14489 else
14490 echo "$as_me: failed program was:" >&5
14491 sed 's/^/| /' conftest.$ac_ext >&5
14492
14493 ac_header_preproc=no
14494 fi
14495
14496 rm -f conftest.err conftest.$ac_ext
14497 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14498 echo "${ECHO_T}$ac_header_preproc" >&6; }
14499
14500 # So? What about this header?
14501 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14502 yes:no: )
14503 { echo "$as_me:$LINENO: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&5
14504 echo "$as_me: WARNING: gpm.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14505 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the compiler's result" >&5
14506 echo "$as_me: WARNING: gpm.h: proceeding with the compiler's result" >&2;}
14507 ac_header_preproc=yes
14508 ;;
14509 no:yes:* )
14510 { echo "$as_me:$LINENO: WARNING: gpm.h: present but cannot be compiled" >&5
14511 echo "$as_me: WARNING: gpm.h: present but cannot be compiled" >&2;}
14512 { echo "$as_me:$LINENO: WARNING: gpm.h: check for missing prerequisite headers?" >&5
14513 echo "$as_me: WARNING: gpm.h: check for missing prerequisite headers?" >&2;}
14514 { echo "$as_me:$LINENO: WARNING: gpm.h: see the Autoconf documentation" >&5
14515 echo "$as_me: WARNING: gpm.h: see the Autoconf documentation" >&2;}
14516 { echo "$as_me:$LINENO: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&5
14517 echo "$as_me: WARNING: gpm.h: section \"Present But Cannot Be Compiled\"" >&2;}
14518 { echo "$as_me:$LINENO: WARNING: gpm.h: proceeding with the preprocessor's result" >&5
14519 echo "$as_me: WARNING: gpm.h: proceeding with the preprocessor's result" >&2;}
14520 { echo "$as_me:$LINENO: WARNING: gpm.h: in the future, the compiler will take precedence" >&5
14521 echo "$as_me: WARNING: gpm.h: in the future, the compiler will take precedence" >&2;}
14522
14523 ;;
14524 esac
14525 { echo "$as_me:$LINENO: checking for gpm.h" >&5
14526 echo $ECHO_N "checking for gpm.h... $ECHO_C" >&6; }
14527 if test "${ac_cv_header_gpm_h+set}" = set; then
14528 echo $ECHO_N "(cached) $ECHO_C" >&6
14529 else
14530 ac_cv_header_gpm_h=$ac_header_preproc
14531 fi
14532 { echo "$as_me:$LINENO: result: $ac_cv_header_gpm_h" >&5
14533 echo "${ECHO_T}$ac_cv_header_gpm_h" >&6; }
14534
14535 fi
14536 if test $ac_cv_header_gpm_h = yes; then
14537 { echo "$as_me:$LINENO: checking for Gpm_Open in -lgpm" >&5
14538 echo $ECHO_N "checking for Gpm_Open in -lgpm... $ECHO_C" >&6; }
14539 if test "${ac_cv_lib_gpm_Gpm_Open+set}" = set; then
14540 echo $ECHO_N "(cached) $ECHO_C" >&6
14541 else
14542 ac_check_lib_save_LIBS=$LIBS
14543 LIBS="-lgpm $LIBS"
14544 cat >conftest.$ac_ext <<_ACEOF
14545 /* confdefs.h. */
14546 _ACEOF
14547 cat confdefs.h >>conftest.$ac_ext
14548 cat >>conftest.$ac_ext <<_ACEOF
14549 /* end confdefs.h. */
14550
14551 /* Override any GCC internal prototype to avoid an error.
14552 Use char because int might match the return type of a GCC
14553 builtin and then its argument prototype would still apply. */
14554 #ifdef __cplusplus
14555 extern "C"
14556 #endif
14557 char Gpm_Open ();
14558 int
14559 main ()
14560 {
14561 return Gpm_Open ();
14562 ;
14563 return 0;
14564 }
14565 _ACEOF
14566 rm -f conftest.$ac_objext conftest$ac_exeext
14567 if { (ac_try="$ac_link"
14568 case "(($ac_try" in
14569 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14570 *) ac_try_echo=$ac_try;;
14571 esac
14572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14573 (eval "$ac_link") 2>conftest.er1
14574 ac_status=$?
14575 grep -v '^ *+' conftest.er1 >conftest.err
14576 rm -f conftest.er1
14577 cat conftest.err >&5
14578 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14579 (exit $ac_status); } && {
14580 test -z "$ac_c_werror_flag" ||
14581 test ! -s conftest.err
14582 } && test -s conftest$ac_exeext &&
14583 $as_test_x conftest$ac_exeext; then
14584 ac_cv_lib_gpm_Gpm_Open=yes
14585 else
14586 echo "$as_me: failed program was:" >&5
14587 sed 's/^/| /' conftest.$ac_ext >&5
14588
14589 ac_cv_lib_gpm_Gpm_Open=no
14590 fi
14591
14592 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14593 conftest$ac_exeext conftest.$ac_ext
14594 LIBS=$ac_check_lib_save_LIBS
14595 fi
14596 { echo "$as_me:$LINENO: result: $ac_cv_lib_gpm_Gpm_Open" >&5
14597 echo "${ECHO_T}$ac_cv_lib_gpm_Gpm_Open" >&6; }
14598 if test $ac_cv_lib_gpm_Gpm_Open = yes; then
14599 HAVE_GPM=yes
14600 fi
14601
14602 fi
14603
14604
14605 fi
14606
14607 if test "${HAVE_GPM}" = "yes"; then
14608
14609 cat >>confdefs.h <<\_ACEOF
14610 #define HAVE_GPM 1
14611 _ACEOF
14612
14613 fi
14614
14615 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14616 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14617 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14618 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14619 echo $ECHO_N "(cached) $ECHO_C" >&6
14620 fi
14621 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14622 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14623 else
14624 # Is the header compilable?
14625 { echo "$as_me:$LINENO: checking malloc/malloc.h usability" >&5
14626 echo $ECHO_N "checking malloc/malloc.h usability... $ECHO_C" >&6; }
14627 cat >conftest.$ac_ext <<_ACEOF
14628 /* confdefs.h. */
14629 _ACEOF
14630 cat confdefs.h >>conftest.$ac_ext
14631 cat >>conftest.$ac_ext <<_ACEOF
14632 /* end confdefs.h. */
14633 $ac_includes_default
14634 #include <malloc/malloc.h>
14635 _ACEOF
14636 rm -f conftest.$ac_objext
14637 if { (ac_try="$ac_compile"
14638 case "(($ac_try" in
14639 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14640 *) ac_try_echo=$ac_try;;
14641 esac
14642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14643 (eval "$ac_compile") 2>conftest.er1
14644 ac_status=$?
14645 grep -v '^ *+' conftest.er1 >conftest.err
14646 rm -f conftest.er1
14647 cat conftest.err >&5
14648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14649 (exit $ac_status); } && {
14650 test -z "$ac_c_werror_flag" ||
14651 test ! -s conftest.err
14652 } && test -s conftest.$ac_objext; then
14653 ac_header_compiler=yes
14654 else
14655 echo "$as_me: failed program was:" >&5
14656 sed 's/^/| /' conftest.$ac_ext >&5
14657
14658 ac_header_compiler=no
14659 fi
14660
14661 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14662 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14663 echo "${ECHO_T}$ac_header_compiler" >&6; }
14664
14665 # Is the header present?
14666 { echo "$as_me:$LINENO: checking malloc/malloc.h presence" >&5
14667 echo $ECHO_N "checking malloc/malloc.h presence... $ECHO_C" >&6; }
14668 cat >conftest.$ac_ext <<_ACEOF
14669 /* confdefs.h. */
14670 _ACEOF
14671 cat confdefs.h >>conftest.$ac_ext
14672 cat >>conftest.$ac_ext <<_ACEOF
14673 /* end confdefs.h. */
14674 #include <malloc/malloc.h>
14675 _ACEOF
14676 if { (ac_try="$ac_cpp conftest.$ac_ext"
14677 case "(($ac_try" in
14678 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14679 *) ac_try_echo=$ac_try;;
14680 esac
14681 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14682 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14683 ac_status=$?
14684 grep -v '^ *+' conftest.er1 >conftest.err
14685 rm -f conftest.er1
14686 cat conftest.err >&5
14687 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14688 (exit $ac_status); } >/dev/null && {
14689 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14690 test ! -s conftest.err
14691 }; then
14692 ac_header_preproc=yes
14693 else
14694 echo "$as_me: failed program was:" >&5
14695 sed 's/^/| /' conftest.$ac_ext >&5
14696
14697 ac_header_preproc=no
14698 fi
14699
14700 rm -f conftest.err conftest.$ac_ext
14701 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14702 echo "${ECHO_T}$ac_header_preproc" >&6; }
14703
14704 # So? What about this header?
14705 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14706 yes:no: )
14707 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&5
14708 echo "$as_me: WARNING: malloc/malloc.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14709 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&5
14710 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the compiler's result" >&2;}
14711 ac_header_preproc=yes
14712 ;;
14713 no:yes:* )
14714 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: present but cannot be compiled" >&5
14715 echo "$as_me: WARNING: malloc/malloc.h: present but cannot be compiled" >&2;}
14716 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&5
14717 echo "$as_me: WARNING: malloc/malloc.h: check for missing prerequisite headers?" >&2;}
14718 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: see the Autoconf documentation" >&5
14719 echo "$as_me: WARNING: malloc/malloc.h: see the Autoconf documentation" >&2;}
14720 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&5
14721 echo "$as_me: WARNING: malloc/malloc.h: section \"Present But Cannot Be Compiled\"" >&2;}
14722 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&5
14723 echo "$as_me: WARNING: malloc/malloc.h: proceeding with the preprocessor's result" >&2;}
14724 { echo "$as_me:$LINENO: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&5
14725 echo "$as_me: WARNING: malloc/malloc.h: in the future, the compiler will take precedence" >&2;}
14726
14727 ;;
14728 esac
14729 { echo "$as_me:$LINENO: checking for malloc/malloc.h" >&5
14730 echo $ECHO_N "checking for malloc/malloc.h... $ECHO_C" >&6; }
14731 if test "${ac_cv_header_malloc_malloc_h+set}" = set; then
14732 echo $ECHO_N "(cached) $ECHO_C" >&6
14733 else
14734 ac_cv_header_malloc_malloc_h=$ac_header_preproc
14735 fi
14736 { echo "$as_me:$LINENO: result: $ac_cv_header_malloc_malloc_h" >&5
14737 echo "${ECHO_T}$ac_cv_header_malloc_malloc_h" >&6; }
14738
14739 fi
14740 if test $ac_cv_header_malloc_malloc_h = yes; then
14741
14742 cat >>confdefs.h <<\_ACEOF
14743 #define HAVE_MALLOC_MALLOC_H 1
14744 _ACEOF
14745
14746 fi
14747
14748
14749
14750 ### Use Mac OS X Carbon API to implement GUI.
14751 if test "${HAVE_CARBON}" = "yes"; then
14752
14753 cat >>confdefs.h <<\_ACEOF
14754 #define HAVE_CARBON 1
14755 _ACEOF
14756
14757 ## Specify the install directory
14758 carbon_appdir=
14759 if test "${carbon_appdir_x}" != ""; then
14760 case ${carbon_appdir_x} in
14761 y | ye | yes) carbon_appdir=/Applications ;;
14762 * ) carbon_appdir=${carbon_appdir_x} ;;
14763 esac
14764 fi
14765 # We also have mouse menus.
14766 HAVE_MENUS=yes
14767 fi
14768
14769 ### Use session management (-lSM -lICE) if available
14770 HAVE_X_SM=no
14771 if test "${HAVE_X11}" = "yes"; then
14772 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14773 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14774 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14775 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14776 echo $ECHO_N "(cached) $ECHO_C" >&6
14777 fi
14778 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14779 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14780 else
14781 # Is the header compilable?
14782 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h usability" >&5
14783 echo $ECHO_N "checking X11/SM/SMlib.h usability... $ECHO_C" >&6; }
14784 cat >conftest.$ac_ext <<_ACEOF
14785 /* confdefs.h. */
14786 _ACEOF
14787 cat confdefs.h >>conftest.$ac_ext
14788 cat >>conftest.$ac_ext <<_ACEOF
14789 /* end confdefs.h. */
14790 $ac_includes_default
14791 #include <X11/SM/SMlib.h>
14792 _ACEOF
14793 rm -f conftest.$ac_objext
14794 if { (ac_try="$ac_compile"
14795 case "(($ac_try" in
14796 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14797 *) ac_try_echo=$ac_try;;
14798 esac
14799 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14800 (eval "$ac_compile") 2>conftest.er1
14801 ac_status=$?
14802 grep -v '^ *+' conftest.er1 >conftest.err
14803 rm -f conftest.er1
14804 cat conftest.err >&5
14805 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14806 (exit $ac_status); } && {
14807 test -z "$ac_c_werror_flag" ||
14808 test ! -s conftest.err
14809 } && test -s conftest.$ac_objext; then
14810 ac_header_compiler=yes
14811 else
14812 echo "$as_me: failed program was:" >&5
14813 sed 's/^/| /' conftest.$ac_ext >&5
14814
14815 ac_header_compiler=no
14816 fi
14817
14818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14819 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14820 echo "${ECHO_T}$ac_header_compiler" >&6; }
14821
14822 # Is the header present?
14823 { echo "$as_me:$LINENO: checking X11/SM/SMlib.h presence" >&5
14824 echo $ECHO_N "checking X11/SM/SMlib.h presence... $ECHO_C" >&6; }
14825 cat >conftest.$ac_ext <<_ACEOF
14826 /* confdefs.h. */
14827 _ACEOF
14828 cat confdefs.h >>conftest.$ac_ext
14829 cat >>conftest.$ac_ext <<_ACEOF
14830 /* end confdefs.h. */
14831 #include <X11/SM/SMlib.h>
14832 _ACEOF
14833 if { (ac_try="$ac_cpp conftest.$ac_ext"
14834 case "(($ac_try" in
14835 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14836 *) ac_try_echo=$ac_try;;
14837 esac
14838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14839 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14840 ac_status=$?
14841 grep -v '^ *+' conftest.er1 >conftest.err
14842 rm -f conftest.er1
14843 cat conftest.err >&5
14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14845 (exit $ac_status); } >/dev/null && {
14846 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
14847 test ! -s conftest.err
14848 }; then
14849 ac_header_preproc=yes
14850 else
14851 echo "$as_me: failed program was:" >&5
14852 sed 's/^/| /' conftest.$ac_ext >&5
14853
14854 ac_header_preproc=no
14855 fi
14856
14857 rm -f conftest.err conftest.$ac_ext
14858 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14859 echo "${ECHO_T}$ac_header_preproc" >&6; }
14860
14861 # So? What about this header?
14862 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14863 yes:no: )
14864 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&5
14865 echo "$as_me: WARNING: X11/SM/SMlib.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14866 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&5
14867 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the compiler's result" >&2;}
14868 ac_header_preproc=yes
14869 ;;
14870 no:yes:* )
14871 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&5
14872 echo "$as_me: WARNING: X11/SM/SMlib.h: present but cannot be compiled" >&2;}
14873 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&5
14874 echo "$as_me: WARNING: X11/SM/SMlib.h: check for missing prerequisite headers?" >&2;}
14875 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&5
14876 echo "$as_me: WARNING: X11/SM/SMlib.h: see the Autoconf documentation" >&2;}
14877 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&5
14878 echo "$as_me: WARNING: X11/SM/SMlib.h: section \"Present But Cannot Be Compiled\"" >&2;}
14879 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&5
14880 echo "$as_me: WARNING: X11/SM/SMlib.h: proceeding with the preprocessor's result" >&2;}
14881 { echo "$as_me:$LINENO: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&5
14882 echo "$as_me: WARNING: X11/SM/SMlib.h: in the future, the compiler will take precedence" >&2;}
14883
14884 ;;
14885 esac
14886 { echo "$as_me:$LINENO: checking for X11/SM/SMlib.h" >&5
14887 echo $ECHO_N "checking for X11/SM/SMlib.h... $ECHO_C" >&6; }
14888 if test "${ac_cv_header_X11_SM_SMlib_h+set}" = set; then
14889 echo $ECHO_N "(cached) $ECHO_C" >&6
14890 else
14891 ac_cv_header_X11_SM_SMlib_h=$ac_header_preproc
14892 fi
14893 { echo "$as_me:$LINENO: result: $ac_cv_header_X11_SM_SMlib_h" >&5
14894 echo "${ECHO_T}$ac_cv_header_X11_SM_SMlib_h" >&6; }
14895
14896 fi
14897 if test $ac_cv_header_X11_SM_SMlib_h = yes; then
14898 { echo "$as_me:$LINENO: checking for SmcOpenConnection in -lSM" >&5
14899 echo $ECHO_N "checking for SmcOpenConnection in -lSM... $ECHO_C" >&6; }
14900 if test "${ac_cv_lib_SM_SmcOpenConnection+set}" = set; then
14901 echo $ECHO_N "(cached) $ECHO_C" >&6
14902 else
14903 ac_check_lib_save_LIBS=$LIBS
14904 LIBS="-lSM -lICE $LIBS"
14905 cat >conftest.$ac_ext <<_ACEOF
14906 /* confdefs.h. */
14907 _ACEOF
14908 cat confdefs.h >>conftest.$ac_ext
14909 cat >>conftest.$ac_ext <<_ACEOF
14910 /* end confdefs.h. */
14911
14912 /* Override any GCC internal prototype to avoid an error.
14913 Use char because int might match the return type of a GCC
14914 builtin and then its argument prototype would still apply. */
14915 #ifdef __cplusplus
14916 extern "C"
14917 #endif
14918 char SmcOpenConnection ();
14919 int
14920 main ()
14921 {
14922 return SmcOpenConnection ();
14923 ;
14924 return 0;
14925 }
14926 _ACEOF
14927 rm -f conftest.$ac_objext conftest$ac_exeext
14928 if { (ac_try="$ac_link"
14929 case "(($ac_try" in
14930 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14931 *) ac_try_echo=$ac_try;;
14932 esac
14933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14934 (eval "$ac_link") 2>conftest.er1
14935 ac_status=$?
14936 grep -v '^ *+' conftest.er1 >conftest.err
14937 rm -f conftest.er1
14938 cat conftest.err >&5
14939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14940 (exit $ac_status); } && {
14941 test -z "$ac_c_werror_flag" ||
14942 test ! -s conftest.err
14943 } && test -s conftest$ac_exeext &&
14944 $as_test_x conftest$ac_exeext; then
14945 ac_cv_lib_SM_SmcOpenConnection=yes
14946 else
14947 echo "$as_me: failed program was:" >&5
14948 sed 's/^/| /' conftest.$ac_ext >&5
14949
14950 ac_cv_lib_SM_SmcOpenConnection=no
14951 fi
14952
14953 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
14954 conftest$ac_exeext conftest.$ac_ext
14955 LIBS=$ac_check_lib_save_LIBS
14956 fi
14957 { echo "$as_me:$LINENO: result: $ac_cv_lib_SM_SmcOpenConnection" >&5
14958 echo "${ECHO_T}$ac_cv_lib_SM_SmcOpenConnection" >&6; }
14959 if test $ac_cv_lib_SM_SmcOpenConnection = yes; then
14960 HAVE_X_SM=yes
14961 fi
14962
14963 fi
14964
14965
14966
14967 if test "${HAVE_X_SM}" = "yes"; then
14968
14969 cat >>confdefs.h <<\_ACEOF
14970 #define HAVE_X_SM 1
14971 _ACEOF
14972
14973 case "$LIBS" in
14974 *-lSM*) ;;
14975 *) LIBS="-lSM -lICE $LIBS" ;;
14976 esac
14977 fi
14978 fi
14979
14980 # If netdb.h doesn't declare h_errno, we must declare it by hand.
14981 { echo "$as_me:$LINENO: checking whether netdb declares h_errno" >&5
14982 echo $ECHO_N "checking whether netdb declares h_errno... $ECHO_C" >&6; }
14983 if test "${emacs_cv_netdb_declares_h_errno+set}" = set; then
14984 echo $ECHO_N "(cached) $ECHO_C" >&6
14985 else
14986 cat >conftest.$ac_ext <<_ACEOF
14987 /* confdefs.h. */
14988 _ACEOF
14989 cat confdefs.h >>conftest.$ac_ext
14990 cat >>conftest.$ac_ext <<_ACEOF
14991 /* end confdefs.h. */
14992 #include <netdb.h>
14993 int
14994 main ()
14995 {
14996 return h_errno;
14997 ;
14998 return 0;
14999 }
15000 _ACEOF
15001 rm -f conftest.$ac_objext conftest$ac_exeext
15002 if { (ac_try="$ac_link"
15003 case "(($ac_try" in
15004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15005 *) ac_try_echo=$ac_try;;
15006 esac
15007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15008 (eval "$ac_link") 2>conftest.er1
15009 ac_status=$?
15010 grep -v '^ *+' conftest.er1 >conftest.err
15011 rm -f conftest.er1
15012 cat conftest.err >&5
15013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15014 (exit $ac_status); } && {
15015 test -z "$ac_c_werror_flag" ||
15016 test ! -s conftest.err
15017 } && test -s conftest$ac_exeext &&
15018 $as_test_x conftest$ac_exeext; then
15019 emacs_cv_netdb_declares_h_errno=yes
15020 else
15021 echo "$as_me: failed program was:" >&5
15022 sed 's/^/| /' conftest.$ac_ext >&5
15023
15024 emacs_cv_netdb_declares_h_errno=no
15025 fi
15026
15027 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15028 conftest$ac_exeext conftest.$ac_ext
15029 fi
15030 { echo "$as_me:$LINENO: result: $emacs_cv_netdb_declares_h_errno" >&5
15031 echo "${ECHO_T}$emacs_cv_netdb_declares_h_errno" >&6; }
15032 if test $emacs_cv_netdb_declares_h_errno = yes; then
15033
15034 cat >>confdefs.h <<\_ACEOF
15035 #define HAVE_H_ERRNO 1
15036 _ACEOF
15037
15038 fi
15039
15040 # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works
15041 # for constant arguments. Useless!
15042 { echo "$as_me:$LINENO: checking for working alloca.h" >&5
15043 echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6; }
15044 if test "${ac_cv_working_alloca_h+set}" = set; then
15045 echo $ECHO_N "(cached) $ECHO_C" >&6
15046 else
15047 cat >conftest.$ac_ext <<_ACEOF
15048 /* confdefs.h. */
15049 _ACEOF
15050 cat confdefs.h >>conftest.$ac_ext
15051 cat >>conftest.$ac_ext <<_ACEOF
15052 /* end confdefs.h. */
15053 #include <alloca.h>
15054 int
15055 main ()
15056 {
15057 char *p = (char *) alloca (2 * sizeof (int));
15058 if (p) return 0;
15059 ;
15060 return 0;
15061 }
15062 _ACEOF
15063 rm -f conftest.$ac_objext conftest$ac_exeext
15064 if { (ac_try="$ac_link"
15065 case "(($ac_try" in
15066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15067 *) ac_try_echo=$ac_try;;
15068 esac
15069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15070 (eval "$ac_link") 2>conftest.er1
15071 ac_status=$?
15072 grep -v '^ *+' conftest.er1 >conftest.err
15073 rm -f conftest.er1
15074 cat conftest.err >&5
15075 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15076 (exit $ac_status); } && {
15077 test -z "$ac_c_werror_flag" ||
15078 test ! -s conftest.err
15079 } && test -s conftest$ac_exeext &&
15080 $as_test_x conftest$ac_exeext; then
15081 ac_cv_working_alloca_h=yes
15082 else
15083 echo "$as_me: failed program was:" >&5
15084 sed 's/^/| /' conftest.$ac_ext >&5
15085
15086 ac_cv_working_alloca_h=no
15087 fi
15088
15089 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15090 conftest$ac_exeext conftest.$ac_ext
15091 fi
15092 { echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5
15093 echo "${ECHO_T}$ac_cv_working_alloca_h" >&6; }
15094 if test $ac_cv_working_alloca_h = yes; then
15095
15096 cat >>confdefs.h <<\_ACEOF
15097 #define HAVE_ALLOCA_H 1
15098 _ACEOF
15099
15100 fi
15101
15102 { echo "$as_me:$LINENO: checking for alloca" >&5
15103 echo $ECHO_N "checking for alloca... $ECHO_C" >&6; }
15104 if test "${ac_cv_func_alloca_works+set}" = set; then
15105 echo $ECHO_N "(cached) $ECHO_C" >&6
15106 else
15107 cat >conftest.$ac_ext <<_ACEOF
15108 /* confdefs.h. */
15109 _ACEOF
15110 cat confdefs.h >>conftest.$ac_ext
15111 cat >>conftest.$ac_ext <<_ACEOF
15112 /* end confdefs.h. */
15113 #ifdef __GNUC__
15114 # define alloca __builtin_alloca
15115 #else
15116 # ifdef _MSC_VER
15117 # include <malloc.h>
15118 # define alloca _alloca
15119 # else
15120 # ifdef HAVE_ALLOCA_H
15121 # include <alloca.h>
15122 # else
15123 # ifdef _AIX
15124 #pragma alloca
15125 # else
15126 # ifndef alloca /* predefined by HP cc +Olibcalls */
15127 char *alloca ();
15128 # endif
15129 # endif
15130 # endif
15131 # endif
15132 #endif
15133
15134 int
15135 main ()
15136 {
15137 char *p = (char *) alloca (1);
15138 if (p) return 0;
15139 ;
15140 return 0;
15141 }
15142 _ACEOF
15143 rm -f conftest.$ac_objext conftest$ac_exeext
15144 if { (ac_try="$ac_link"
15145 case "(($ac_try" in
15146 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15147 *) ac_try_echo=$ac_try;;
15148 esac
15149 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15150 (eval "$ac_link") 2>conftest.er1
15151 ac_status=$?
15152 grep -v '^ *+' conftest.er1 >conftest.err
15153 rm -f conftest.er1
15154 cat conftest.err >&5
15155 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15156 (exit $ac_status); } && {
15157 test -z "$ac_c_werror_flag" ||
15158 test ! -s conftest.err
15159 } && test -s conftest$ac_exeext &&
15160 $as_test_x conftest$ac_exeext; then
15161 ac_cv_func_alloca_works=yes
15162 else
15163 echo "$as_me: failed program was:" >&5
15164 sed 's/^/| /' conftest.$ac_ext >&5
15165
15166 ac_cv_func_alloca_works=no
15167 fi
15168
15169 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15170 conftest$ac_exeext conftest.$ac_ext
15171 fi
15172 { echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5
15173 echo "${ECHO_T}$ac_cv_func_alloca_works" >&6; }
15174
15175 if test $ac_cv_func_alloca_works = yes; then
15176
15177 cat >>confdefs.h <<\_ACEOF
15178 #define HAVE_ALLOCA 1
15179 _ACEOF
15180
15181 else
15182 # The SVR3 libPW and SVR4 libucb both contain incompatible functions
15183 # that cause trouble. Some versions do not even contain alloca or
15184 # contain a buggy version. If you still want to use their alloca,
15185 # use ar to extract alloca.o from them instead of compiling alloca.c.
15186
15187 ALLOCA=\${LIBOBJDIR}alloca.$ac_objext
15188
15189 cat >>confdefs.h <<\_ACEOF
15190 #define C_ALLOCA 1
15191 _ACEOF
15192
15193
15194 { echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5
15195 echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6; }
15196 if test "${ac_cv_os_cray+set}" = set; then
15197 echo $ECHO_N "(cached) $ECHO_C" >&6
15198 else
15199 cat >conftest.$ac_ext <<_ACEOF
15200 /* confdefs.h. */
15201 _ACEOF
15202 cat confdefs.h >>conftest.$ac_ext
15203 cat >>conftest.$ac_ext <<_ACEOF
15204 /* end confdefs.h. */
15205 #if defined CRAY && ! defined CRAY2
15206 webecray
15207 #else
15208 wenotbecray
15209 #endif
15210
15211 _ACEOF
15212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15213 $EGREP "webecray" >/dev/null 2>&1; then
15214 ac_cv_os_cray=yes
15215 else
15216 ac_cv_os_cray=no
15217 fi
15218 rm -f conftest*
15219
15220 fi
15221 { echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5
15222 echo "${ECHO_T}$ac_cv_os_cray" >&6; }
15223 if test $ac_cv_os_cray = yes; then
15224 for ac_func in _getb67 GETB67 getb67; do
15225 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15226 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15227 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15228 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15229 echo $ECHO_N "(cached) $ECHO_C" >&6
15230 else
15231 cat >conftest.$ac_ext <<_ACEOF
15232 /* confdefs.h. */
15233 _ACEOF
15234 cat confdefs.h >>conftest.$ac_ext
15235 cat >>conftest.$ac_ext <<_ACEOF
15236 /* end confdefs.h. */
15237 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15238 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15239 #define $ac_func innocuous_$ac_func
15240
15241 /* System header to define __stub macros and hopefully few prototypes,
15242 which can conflict with char $ac_func (); below.
15243 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15244 <limits.h> exists even on freestanding compilers. */
15245
15246 #ifdef __STDC__
15247 # include <limits.h>
15248 #else
15249 # include <assert.h>
15250 #endif
15251
15252 #undef $ac_func
15253
15254 /* Override any GCC internal prototype to avoid an error.
15255 Use char because int might match the return type of a GCC
15256 builtin and then its argument prototype would still apply. */
15257 #ifdef __cplusplus
15258 extern "C"
15259 #endif
15260 char $ac_func ();
15261 /* The GNU C library defines this for functions which it implements
15262 to always fail with ENOSYS. Some functions are actually named
15263 something starting with __ and the normal name is an alias. */
15264 #if defined __stub_$ac_func || defined __stub___$ac_func
15265 choke me
15266 #endif
15267
15268 int
15269 main ()
15270 {
15271 return $ac_func ();
15272 ;
15273 return 0;
15274 }
15275 _ACEOF
15276 rm -f conftest.$ac_objext conftest$ac_exeext
15277 if { (ac_try="$ac_link"
15278 case "(($ac_try" in
15279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15280 *) ac_try_echo=$ac_try;;
15281 esac
15282 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15283 (eval "$ac_link") 2>conftest.er1
15284 ac_status=$?
15285 grep -v '^ *+' conftest.er1 >conftest.err
15286 rm -f conftest.er1
15287 cat conftest.err >&5
15288 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15289 (exit $ac_status); } && {
15290 test -z "$ac_c_werror_flag" ||
15291 test ! -s conftest.err
15292 } && test -s conftest$ac_exeext &&
15293 $as_test_x conftest$ac_exeext; then
15294 eval "$as_ac_var=yes"
15295 else
15296 echo "$as_me: failed program was:" >&5
15297 sed 's/^/| /' conftest.$ac_ext >&5
15298
15299 eval "$as_ac_var=no"
15300 fi
15301
15302 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15303 conftest$ac_exeext conftest.$ac_ext
15304 fi
15305 ac_res=`eval echo '${'$as_ac_var'}'`
15306 { echo "$as_me:$LINENO: result: $ac_res" >&5
15307 echo "${ECHO_T}$ac_res" >&6; }
15308 if test `eval echo '${'$as_ac_var'}'` = yes; then
15309
15310 cat >>confdefs.h <<_ACEOF
15311 #define CRAY_STACKSEG_END $ac_func
15312 _ACEOF
15313
15314 break
15315 fi
15316
15317 done
15318 fi
15319
15320 { echo "$as_me:$LINENO: checking stack direction for C alloca" >&5
15321 echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6; }
15322 if test "${ac_cv_c_stack_direction+set}" = set; then
15323 echo $ECHO_N "(cached) $ECHO_C" >&6
15324 else
15325 if test "$cross_compiling" = yes; then
15326 ac_cv_c_stack_direction=0
15327 else
15328 cat >conftest.$ac_ext <<_ACEOF
15329 /* confdefs.h. */
15330 _ACEOF
15331 cat confdefs.h >>conftest.$ac_ext
15332 cat >>conftest.$ac_ext <<_ACEOF
15333 /* end confdefs.h. */
15334 $ac_includes_default
15335 int
15336 find_stack_direction ()
15337 {
15338 static char *addr = 0;
15339 auto char dummy;
15340 if (addr == 0)
15341 {
15342 addr = &dummy;
15343 return find_stack_direction ();
15344 }
15345 else
15346 return (&dummy > addr) ? 1 : -1;
15347 }
15348
15349 int
15350 main ()
15351 {
15352 return find_stack_direction () < 0;
15353 }
15354 _ACEOF
15355 rm -f conftest$ac_exeext
15356 if { (ac_try="$ac_link"
15357 case "(($ac_try" in
15358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15359 *) ac_try_echo=$ac_try;;
15360 esac
15361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15362 (eval "$ac_link") 2>&5
15363 ac_status=$?
15364 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15365 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15366 { (case "(($ac_try" in
15367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15368 *) ac_try_echo=$ac_try;;
15369 esac
15370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15371 (eval "$ac_try") 2>&5
15372 ac_status=$?
15373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15374 (exit $ac_status); }; }; then
15375 ac_cv_c_stack_direction=1
15376 else
15377 echo "$as_me: program exited with status $ac_status" >&5
15378 echo "$as_me: failed program was:" >&5
15379 sed 's/^/| /' conftest.$ac_ext >&5
15380
15381 ( exit $ac_status )
15382 ac_cv_c_stack_direction=-1
15383 fi
15384 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15385 fi
15386
15387
15388 fi
15389 { echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5
15390 echo "${ECHO_T}$ac_cv_c_stack_direction" >&6; }
15391
15392 cat >>confdefs.h <<_ACEOF
15393 #define STACK_DIRECTION $ac_cv_c_stack_direction
15394 _ACEOF
15395
15396
15397 fi
15398
15399
15400 if test x"$ac_cv_func_alloca_works" != xyes; then
15401 { { echo "$as_me:$LINENO: error: a system implementation of alloca is required " >&5
15402 echo "$as_me: error: a system implementation of alloca is required " >&2;}
15403 { (exit 1); exit 1; }; }
15404 fi
15405
15406 # fmod, logb, and frexp are found in -lm on most systems.
15407 # On HPUX 9.01, -lm does not contain logb, so check for sqrt.
15408
15409 { echo "$as_me:$LINENO: checking for sqrt in -lm" >&5
15410 echo $ECHO_N "checking for sqrt in -lm... $ECHO_C" >&6; }
15411 if test "${ac_cv_lib_m_sqrt+set}" = set; then
15412 echo $ECHO_N "(cached) $ECHO_C" >&6
15413 else
15414 ac_check_lib_save_LIBS=$LIBS
15415 LIBS="-lm $LIBS"
15416 cat >conftest.$ac_ext <<_ACEOF
15417 /* confdefs.h. */
15418 _ACEOF
15419 cat confdefs.h >>conftest.$ac_ext
15420 cat >>conftest.$ac_ext <<_ACEOF
15421 /* end confdefs.h. */
15422
15423 /* Override any GCC internal prototype to avoid an error.
15424 Use char because int might match the return type of a GCC
15425 builtin and then its argument prototype would still apply. */
15426 #ifdef __cplusplus
15427 extern "C"
15428 #endif
15429 char sqrt ();
15430 int
15431 main ()
15432 {
15433 return sqrt ();
15434 ;
15435 return 0;
15436 }
15437 _ACEOF
15438 rm -f conftest.$ac_objext conftest$ac_exeext
15439 if { (ac_try="$ac_link"
15440 case "(($ac_try" in
15441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15442 *) ac_try_echo=$ac_try;;
15443 esac
15444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15445 (eval "$ac_link") 2>conftest.er1
15446 ac_status=$?
15447 grep -v '^ *+' conftest.er1 >conftest.err
15448 rm -f conftest.er1
15449 cat conftest.err >&5
15450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451 (exit $ac_status); } && {
15452 test -z "$ac_c_werror_flag" ||
15453 test ! -s conftest.err
15454 } && test -s conftest$ac_exeext &&
15455 $as_test_x conftest$ac_exeext; then
15456 ac_cv_lib_m_sqrt=yes
15457 else
15458 echo "$as_me: failed program was:" >&5
15459 sed 's/^/| /' conftest.$ac_ext >&5
15460
15461 ac_cv_lib_m_sqrt=no
15462 fi
15463
15464 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15465 conftest$ac_exeext conftest.$ac_ext
15466 LIBS=$ac_check_lib_save_LIBS
15467 fi
15468 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sqrt" >&5
15469 echo "${ECHO_T}$ac_cv_lib_m_sqrt" >&6; }
15470 if test $ac_cv_lib_m_sqrt = yes; then
15471 cat >>confdefs.h <<_ACEOF
15472 #define HAVE_LIBM 1
15473 _ACEOF
15474
15475 LIBS="-lm $LIBS"
15476
15477 fi
15478
15479
15480 # Check for mail-locking functions in a "mail" library. Probably this should
15481 # have the same check as for liblockfile below.
15482
15483 { echo "$as_me:$LINENO: checking for maillock in -lmail" >&5
15484 echo $ECHO_N "checking for maillock in -lmail... $ECHO_C" >&6; }
15485 if test "${ac_cv_lib_mail_maillock+set}" = set; then
15486 echo $ECHO_N "(cached) $ECHO_C" >&6
15487 else
15488 ac_check_lib_save_LIBS=$LIBS
15489 LIBS="-lmail $LIBS"
15490 cat >conftest.$ac_ext <<_ACEOF
15491 /* confdefs.h. */
15492 _ACEOF
15493 cat confdefs.h >>conftest.$ac_ext
15494 cat >>conftest.$ac_ext <<_ACEOF
15495 /* end confdefs.h. */
15496
15497 /* Override any GCC internal prototype to avoid an error.
15498 Use char because int might match the return type of a GCC
15499 builtin and then its argument prototype would still apply. */
15500 #ifdef __cplusplus
15501 extern "C"
15502 #endif
15503 char maillock ();
15504 int
15505 main ()
15506 {
15507 return maillock ();
15508 ;
15509 return 0;
15510 }
15511 _ACEOF
15512 rm -f conftest.$ac_objext conftest$ac_exeext
15513 if { (ac_try="$ac_link"
15514 case "(($ac_try" in
15515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516 *) ac_try_echo=$ac_try;;
15517 esac
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519 (eval "$ac_link") 2>conftest.er1
15520 ac_status=$?
15521 grep -v '^ *+' conftest.er1 >conftest.err
15522 rm -f conftest.er1
15523 cat conftest.err >&5
15524 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15525 (exit $ac_status); } && {
15526 test -z "$ac_c_werror_flag" ||
15527 test ! -s conftest.err
15528 } && test -s conftest$ac_exeext &&
15529 $as_test_x conftest$ac_exeext; then
15530 ac_cv_lib_mail_maillock=yes
15531 else
15532 echo "$as_me: failed program was:" >&5
15533 sed 's/^/| /' conftest.$ac_ext >&5
15534
15535 ac_cv_lib_mail_maillock=no
15536 fi
15537
15538 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15539 conftest$ac_exeext conftest.$ac_ext
15540 LIBS=$ac_check_lib_save_LIBS
15541 fi
15542 { echo "$as_me:$LINENO: result: $ac_cv_lib_mail_maillock" >&5
15543 echo "${ECHO_T}$ac_cv_lib_mail_maillock" >&6; }
15544 if test $ac_cv_lib_mail_maillock = yes; then
15545 cat >>confdefs.h <<_ACEOF
15546 #define HAVE_LIBMAIL 1
15547 _ACEOF
15548
15549 LIBS="-lmail $LIBS"
15550
15551 fi
15552
15553
15554 { echo "$as_me:$LINENO: checking for maillock in -llockfile" >&5
15555 echo $ECHO_N "checking for maillock in -llockfile... $ECHO_C" >&6; }
15556 if test "${ac_cv_lib_lockfile_maillock+set}" = set; then
15557 echo $ECHO_N "(cached) $ECHO_C" >&6
15558 else
15559 ac_check_lib_save_LIBS=$LIBS
15560 LIBS="-llockfile $LIBS"
15561 cat >conftest.$ac_ext <<_ACEOF
15562 /* confdefs.h. */
15563 _ACEOF
15564 cat confdefs.h >>conftest.$ac_ext
15565 cat >>conftest.$ac_ext <<_ACEOF
15566 /* end confdefs.h. */
15567
15568 /* Override any GCC internal prototype to avoid an error.
15569 Use char because int might match the return type of a GCC
15570 builtin and then its argument prototype would still apply. */
15571 #ifdef __cplusplus
15572 extern "C"
15573 #endif
15574 char maillock ();
15575 int
15576 main ()
15577 {
15578 return maillock ();
15579 ;
15580 return 0;
15581 }
15582 _ACEOF
15583 rm -f conftest.$ac_objext conftest$ac_exeext
15584 if { (ac_try="$ac_link"
15585 case "(($ac_try" in
15586 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15587 *) ac_try_echo=$ac_try;;
15588 esac
15589 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15590 (eval "$ac_link") 2>conftest.er1
15591 ac_status=$?
15592 grep -v '^ *+' conftest.er1 >conftest.err
15593 rm -f conftest.er1
15594 cat conftest.err >&5
15595 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15596 (exit $ac_status); } && {
15597 test -z "$ac_c_werror_flag" ||
15598 test ! -s conftest.err
15599 } && test -s conftest$ac_exeext &&
15600 $as_test_x conftest$ac_exeext; then
15601 ac_cv_lib_lockfile_maillock=yes
15602 else
15603 echo "$as_me: failed program was:" >&5
15604 sed 's/^/| /' conftest.$ac_ext >&5
15605
15606 ac_cv_lib_lockfile_maillock=no
15607 fi
15608
15609 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15610 conftest$ac_exeext conftest.$ac_ext
15611 LIBS=$ac_check_lib_save_LIBS
15612 fi
15613 { echo "$as_me:$LINENO: result: $ac_cv_lib_lockfile_maillock" >&5
15614 echo "${ECHO_T}$ac_cv_lib_lockfile_maillock" >&6; }
15615 if test $ac_cv_lib_lockfile_maillock = yes; then
15616 cat >>confdefs.h <<_ACEOF
15617 #define HAVE_LIBLOCKFILE 1
15618 _ACEOF
15619
15620 LIBS="-llockfile $LIBS"
15621
15622 fi
15623
15624 # If we have the shared liblockfile, assume we must use it for mail
15625 # locking (e.g. Debian). If we couldn't link against liblockfile
15626 # (no liblockfile.a installed), ensure that we don't need to.
15627 if test "$ac_cv_lib_lockfile_maillock" = no; then
15628 # Extract the first word of "liblockfile.so", so it can be a program name with args.
15629 set dummy liblockfile.so; ac_word=$2
15630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
15631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
15632 if test "${ac_cv_prog_liblockfile+set}" = set; then
15633 echo $ECHO_N "(cached) $ECHO_C" >&6
15634 else
15635 if test -n "$liblockfile"; then
15636 ac_cv_prog_liblockfile="$liblockfile" # Let the user override the test.
15637 else
15638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15639 as_dummy="/usr/lib:/lib:/usr/local/lib:$LD_LIBRARY_PATH"
15640 for as_dir in $as_dummy
15641 do
15642 IFS=$as_save_IFS
15643 test -z "$as_dir" && as_dir=.
15644 for ac_exec_ext in '' $ac_executable_extensions; do
15645 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
15646 ac_cv_prog_liblockfile="yes"
15647 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
15648 break 2
15649 fi
15650 done
15651 done
15652 IFS=$as_save_IFS
15653
15654 test -z "$ac_cv_prog_liblockfile" && ac_cv_prog_liblockfile="no"
15655 fi
15656 fi
15657 liblockfile=$ac_cv_prog_liblockfile
15658 if test -n "$liblockfile"; then
15659 { echo "$as_me:$LINENO: result: $liblockfile" >&5
15660 echo "${ECHO_T}$liblockfile" >&6; }
15661 else
15662 { echo "$as_me:$LINENO: result: no" >&5
15663 echo "${ECHO_T}no" >&6; }
15664 fi
15665
15666
15667 if test $ac_cv_prog_liblockfile = yes; then
15668 { { echo "$as_me:$LINENO: error: Shared liblockfile found but can't link against it.
15669 This probably means that movemail could lose mail.
15670 There may be a \`development' package to install containing liblockfile." >&5
15671 echo "$as_me: error: Shared liblockfile found but can't link against it.
15672 This probably means that movemail could lose mail.
15673 There may be a \`development' package to install containing liblockfile." >&2;}
15674 { (exit 1); exit 1; }; }
15675 else :
15676 fi
15677 fi
15678
15679 for ac_func in touchlock
15680 do
15681 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15682 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15683 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15684 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15685 echo $ECHO_N "(cached) $ECHO_C" >&6
15686 else
15687 cat >conftest.$ac_ext <<_ACEOF
15688 /* confdefs.h. */
15689 _ACEOF
15690 cat confdefs.h >>conftest.$ac_ext
15691 cat >>conftest.$ac_ext <<_ACEOF
15692 /* end confdefs.h. */
15693 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
15694 For example, HP-UX 11i <limits.h> declares gettimeofday. */
15695 #define $ac_func innocuous_$ac_func
15696
15697 /* System header to define __stub macros and hopefully few prototypes,
15698 which can conflict with char $ac_func (); below.
15699 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
15700 <limits.h> exists even on freestanding compilers. */
15701
15702 #ifdef __STDC__
15703 # include <limits.h>
15704 #else
15705 # include <assert.h>
15706 #endif
15707
15708 #undef $ac_func
15709
15710 /* Override any GCC internal prototype to avoid an error.
15711 Use char because int might match the return type of a GCC
15712 builtin and then its argument prototype would still apply. */
15713 #ifdef __cplusplus
15714 extern "C"
15715 #endif
15716 char $ac_func ();
15717 /* The GNU C library defines this for functions which it implements
15718 to always fail with ENOSYS. Some functions are actually named
15719 something starting with __ and the normal name is an alias. */
15720 #if defined __stub_$ac_func || defined __stub___$ac_func
15721 choke me
15722 #endif
15723
15724 int
15725 main ()
15726 {
15727 return $ac_func ();
15728 ;
15729 return 0;
15730 }
15731 _ACEOF
15732 rm -f conftest.$ac_objext conftest$ac_exeext
15733 if { (ac_try="$ac_link"
15734 case "(($ac_try" in
15735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15736 *) ac_try_echo=$ac_try;;
15737 esac
15738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15739 (eval "$ac_link") 2>conftest.er1
15740 ac_status=$?
15741 grep -v '^ *+' conftest.er1 >conftest.err
15742 rm -f conftest.er1
15743 cat conftest.err >&5
15744 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15745 (exit $ac_status); } && {
15746 test -z "$ac_c_werror_flag" ||
15747 test ! -s conftest.err
15748 } && test -s conftest$ac_exeext &&
15749 $as_test_x conftest$ac_exeext; then
15750 eval "$as_ac_var=yes"
15751 else
15752 echo "$as_me: failed program was:" >&5
15753 sed 's/^/| /' conftest.$ac_ext >&5
15754
15755 eval "$as_ac_var=no"
15756 fi
15757
15758 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
15759 conftest$ac_exeext conftest.$ac_ext
15760 fi
15761 ac_res=`eval echo '${'$as_ac_var'}'`
15762 { echo "$as_me:$LINENO: result: $ac_res" >&5
15763 echo "${ECHO_T}$ac_res" >&6; }
15764 if test `eval echo '${'$as_ac_var'}'` = yes; then
15765 cat >>confdefs.h <<_ACEOF
15766 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
15767 _ACEOF
15768
15769 fi
15770 done
15771
15772
15773 for ac_header in maillock.h
15774 do
15775 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15776 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15777 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15779 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15780 echo $ECHO_N "(cached) $ECHO_C" >&6
15781 fi
15782 ac_res=`eval echo '${'$as_ac_Header'}'`
15783 { echo "$as_me:$LINENO: result: $ac_res" >&5
15784 echo "${ECHO_T}$ac_res" >&6; }
15785 else
15786 # Is the header compilable?
15787 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15788 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15789 cat >conftest.$ac_ext <<_ACEOF
15790 /* confdefs.h. */
15791 _ACEOF
15792 cat confdefs.h >>conftest.$ac_ext
15793 cat >>conftest.$ac_ext <<_ACEOF
15794 /* end confdefs.h. */
15795 $ac_includes_default
15796 #include <$ac_header>
15797 _ACEOF
15798 rm -f conftest.$ac_objext
15799 if { (ac_try="$ac_compile"
15800 case "(($ac_try" in
15801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15802 *) ac_try_echo=$ac_try;;
15803 esac
15804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15805 (eval "$ac_compile") 2>conftest.er1
15806 ac_status=$?
15807 grep -v '^ *+' conftest.er1 >conftest.err
15808 rm -f conftest.er1
15809 cat conftest.err >&5
15810 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15811 (exit $ac_status); } && {
15812 test -z "$ac_c_werror_flag" ||
15813 test ! -s conftest.err
15814 } && test -s conftest.$ac_objext; then
15815 ac_header_compiler=yes
15816 else
15817 echo "$as_me: failed program was:" >&5
15818 sed 's/^/| /' conftest.$ac_ext >&5
15819
15820 ac_header_compiler=no
15821 fi
15822
15823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15824 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15825 echo "${ECHO_T}$ac_header_compiler" >&6; }
15826
15827 # Is the header present?
15828 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15829 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15830 cat >conftest.$ac_ext <<_ACEOF
15831 /* confdefs.h. */
15832 _ACEOF
15833 cat confdefs.h >>conftest.$ac_ext
15834 cat >>conftest.$ac_ext <<_ACEOF
15835 /* end confdefs.h. */
15836 #include <$ac_header>
15837 _ACEOF
15838 if { (ac_try="$ac_cpp conftest.$ac_ext"
15839 case "(($ac_try" in
15840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841 *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15845 ac_status=$?
15846 grep -v '^ *+' conftest.er1 >conftest.err
15847 rm -f conftest.er1
15848 cat conftest.err >&5
15849 echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850 (exit $ac_status); } >/dev/null && {
15851 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
15852 test ! -s conftest.err
15853 }; then
15854 ac_header_preproc=yes
15855 else
15856 echo "$as_me: failed program was:" >&5
15857 sed 's/^/| /' conftest.$ac_ext >&5
15858
15859 ac_header_preproc=no
15860 fi
15861
15862 rm -f conftest.err conftest.$ac_ext
15863 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15864 echo "${ECHO_T}$ac_header_preproc" >&6; }
15865
15866 # So? What about this header?
15867 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15868 yes:no: )
15869 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15870 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15871 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15872 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15873 ac_header_preproc=yes
15874 ;;
15875 no:yes:* )
15876 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15877 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15878 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
15879 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
15880 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15881 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15882 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
15883 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
15884 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15885 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15886 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15887 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15888
15889 ;;
15890 esac
15891 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15892 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15893 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15894 echo $ECHO_N "(cached) $ECHO_C" >&6
15895 else
15896 eval "$as_ac_Header=\$ac_header_preproc"
15897 fi
15898 ac_res=`eval echo '${'$as_ac_Header'}'`
15899 { echo "$as_me:$LINENO: result: $ac_res" >&5
15900 echo "${ECHO_T}$ac_res" >&6; }
15901
15902 fi
15903 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15904 cat >>confdefs.h <<_ACEOF
15905 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15906 _ACEOF
15907
15908 fi
15909
15910 done
15911
15912
15913
15914
15915
15916
15917
15918
15919
15920
15921
15922
15923
15924
15925
15926
15927
15928
15929
15930
15931
15932
15933
15934
15935
15936
15937
15938
15939
15940
15941
15942
15943
15944
15945
15946
15947
15948
15949
15950
15951
15952
15953
15954
15955
15956
15957
15958
15959
15960
15961
15962
15963
15964
15965
15966
15967
15968
15969
15970
15971
15972
15973
15974
15975
15976
15977
15978
15979
15980
15981 for ac_func in gethostname getdomainname dup2 \
15982 rename closedir mkdir rmdir sysinfo getrusage get_current_dir_name \
15983 random lrand48 bcopy bcmp logb frexp fmod rint cbrt ftime setsid \
15984 strerror fpathconf select mktime euidaccess getpagesize tzset setlocale \
15985 utimes setrlimit setpgid getcwd getwd shutdown getaddrinfo \
15986 __fpending mblen mbrlen mbsinit strsignal setitimer ualarm index rindex \
15987 sendto recvfrom getsockopt setsockopt getsockname getpeername \
15988 gai_strerror mkstemp getline getdelim mremap memmove fsync sync bzero \
15989 memset memcmp difftime memcpy mempcpy mblen mbrlen posix_memalign
15990 do
15991 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
15992 { echo "$as_me:$LINENO: checking for $ac_func" >&5
15993 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
15994 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
15995 echo $ECHO_N "(cached) $ECHO_C" >&6
15996 else
15997 cat >conftest.$ac_ext <<_ACEOF
15998 /* confdefs.h. */
15999 _ACEOF
16000 cat confdefs.h >>conftest.$ac_ext
16001 cat >>conftest.$ac_ext <<_ACEOF
16002 /* end confdefs.h. */
16003 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16004 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16005 #define $ac_func innocuous_$ac_func
16006
16007 /* System header to define __stub macros and hopefully few prototypes,
16008 which can conflict with char $ac_func (); below.
16009 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16010 <limits.h> exists even on freestanding compilers. */
16011
16012 #ifdef __STDC__
16013 # include <limits.h>
16014 #else
16015 # include <assert.h>
16016 #endif
16017
16018 #undef $ac_func
16019
16020 /* Override any GCC internal prototype to avoid an error.
16021 Use char because int might match the return type of a GCC
16022 builtin and then its argument prototype would still apply. */
16023 #ifdef __cplusplus
16024 extern "C"
16025 #endif
16026 char $ac_func ();
16027 /* The GNU C library defines this for functions which it implements
16028 to always fail with ENOSYS. Some functions are actually named
16029 something starting with __ and the normal name is an alias. */
16030 #if defined __stub_$ac_func || defined __stub___$ac_func
16031 choke me
16032 #endif
16033
16034 int
16035 main ()
16036 {
16037 return $ac_func ();
16038 ;
16039 return 0;
16040 }
16041 _ACEOF
16042 rm -f conftest.$ac_objext conftest$ac_exeext
16043 if { (ac_try="$ac_link"
16044 case "(($ac_try" in
16045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16046 *) ac_try_echo=$ac_try;;
16047 esac
16048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16049 (eval "$ac_link") 2>conftest.er1
16050 ac_status=$?
16051 grep -v '^ *+' conftest.er1 >conftest.err
16052 rm -f conftest.er1
16053 cat conftest.err >&5
16054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16055 (exit $ac_status); } && {
16056 test -z "$ac_c_werror_flag" ||
16057 test ! -s conftest.err
16058 } && test -s conftest$ac_exeext &&
16059 $as_test_x conftest$ac_exeext; then
16060 eval "$as_ac_var=yes"
16061 else
16062 echo "$as_me: failed program was:" >&5
16063 sed 's/^/| /' conftest.$ac_ext >&5
16064
16065 eval "$as_ac_var=no"
16066 fi
16067
16068 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16069 conftest$ac_exeext conftest.$ac_ext
16070 fi
16071 ac_res=`eval echo '${'$as_ac_var'}'`
16072 { echo "$as_me:$LINENO: result: $ac_res" >&5
16073 echo "${ECHO_T}$ac_res" >&6; }
16074 if test `eval echo '${'$as_ac_var'}'` = yes; then
16075 cat >>confdefs.h <<_ACEOF
16076 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16077 _ACEOF
16078
16079 fi
16080 done
16081
16082
16083
16084 for ac_header in sys/un.h
16085 do
16086 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16087 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16088 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16089 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16090 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16091 echo $ECHO_N "(cached) $ECHO_C" >&6
16092 fi
16093 ac_res=`eval echo '${'$as_ac_Header'}'`
16094 { echo "$as_me:$LINENO: result: $ac_res" >&5
16095 echo "${ECHO_T}$ac_res" >&6; }
16096 else
16097 # Is the header compilable?
16098 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16099 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16100 cat >conftest.$ac_ext <<_ACEOF
16101 /* confdefs.h. */
16102 _ACEOF
16103 cat confdefs.h >>conftest.$ac_ext
16104 cat >>conftest.$ac_ext <<_ACEOF
16105 /* end confdefs.h. */
16106 $ac_includes_default
16107 #include <$ac_header>
16108 _ACEOF
16109 rm -f conftest.$ac_objext
16110 if { (ac_try="$ac_compile"
16111 case "(($ac_try" in
16112 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16113 *) ac_try_echo=$ac_try;;
16114 esac
16115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16116 (eval "$ac_compile") 2>conftest.er1
16117 ac_status=$?
16118 grep -v '^ *+' conftest.er1 >conftest.err
16119 rm -f conftest.er1
16120 cat conftest.err >&5
16121 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16122 (exit $ac_status); } && {
16123 test -z "$ac_c_werror_flag" ||
16124 test ! -s conftest.err
16125 } && test -s conftest.$ac_objext; then
16126 ac_header_compiler=yes
16127 else
16128 echo "$as_me: failed program was:" >&5
16129 sed 's/^/| /' conftest.$ac_ext >&5
16130
16131 ac_header_compiler=no
16132 fi
16133
16134 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16135 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16136 echo "${ECHO_T}$ac_header_compiler" >&6; }
16137
16138 # Is the header present?
16139 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16140 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16141 cat >conftest.$ac_ext <<_ACEOF
16142 /* confdefs.h. */
16143 _ACEOF
16144 cat confdefs.h >>conftest.$ac_ext
16145 cat >>conftest.$ac_ext <<_ACEOF
16146 /* end confdefs.h. */
16147 #include <$ac_header>
16148 _ACEOF
16149 if { (ac_try="$ac_cpp conftest.$ac_ext"
16150 case "(($ac_try" in
16151 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16152 *) ac_try_echo=$ac_try;;
16153 esac
16154 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16155 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16156 ac_status=$?
16157 grep -v '^ *+' conftest.er1 >conftest.err
16158 rm -f conftest.er1
16159 cat conftest.err >&5
16160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16161 (exit $ac_status); } >/dev/null && {
16162 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16163 test ! -s conftest.err
16164 }; then
16165 ac_header_preproc=yes
16166 else
16167 echo "$as_me: failed program was:" >&5
16168 sed 's/^/| /' conftest.$ac_ext >&5
16169
16170 ac_header_preproc=no
16171 fi
16172
16173 rm -f conftest.err conftest.$ac_ext
16174 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16175 echo "${ECHO_T}$ac_header_preproc" >&6; }
16176
16177 # So? What about this header?
16178 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16179 yes:no: )
16180 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16181 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16182 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16183 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16184 ac_header_preproc=yes
16185 ;;
16186 no:yes:* )
16187 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16188 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16189 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16190 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16191 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16192 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16193 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16194 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16195 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16196 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16197 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16198 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16199
16200 ;;
16201 esac
16202 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16203 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16204 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16205 echo $ECHO_N "(cached) $ECHO_C" >&6
16206 else
16207 eval "$as_ac_Header=\$ac_header_preproc"
16208 fi
16209 ac_res=`eval echo '${'$as_ac_Header'}'`
16210 { echo "$as_me:$LINENO: result: $ac_res" >&5
16211 echo "${ECHO_T}$ac_res" >&6; }
16212
16213 fi
16214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16215 cat >>confdefs.h <<_ACEOF
16216 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16217 _ACEOF
16218
16219 fi
16220
16221 done
16222
16223
16224
16225
16226
16227
16228 for ac_header in $ac_header_list
16229 do
16230 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16231 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16232 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16233 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16234 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16235 echo $ECHO_N "(cached) $ECHO_C" >&6
16236 fi
16237 ac_res=`eval echo '${'$as_ac_Header'}'`
16238 { echo "$as_me:$LINENO: result: $ac_res" >&5
16239 echo "${ECHO_T}$ac_res" >&6; }
16240 else
16241 # Is the header compilable?
16242 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16243 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16244 cat >conftest.$ac_ext <<_ACEOF
16245 /* confdefs.h. */
16246 _ACEOF
16247 cat confdefs.h >>conftest.$ac_ext
16248 cat >>conftest.$ac_ext <<_ACEOF
16249 /* end confdefs.h. */
16250 $ac_includes_default
16251 #include <$ac_header>
16252 _ACEOF
16253 rm -f conftest.$ac_objext
16254 if { (ac_try="$ac_compile"
16255 case "(($ac_try" in
16256 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16257 *) ac_try_echo=$ac_try;;
16258 esac
16259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16260 (eval "$ac_compile") 2>conftest.er1
16261 ac_status=$?
16262 grep -v '^ *+' conftest.er1 >conftest.err
16263 rm -f conftest.er1
16264 cat conftest.err >&5
16265 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16266 (exit $ac_status); } && {
16267 test -z "$ac_c_werror_flag" ||
16268 test ! -s conftest.err
16269 } && test -s conftest.$ac_objext; then
16270 ac_header_compiler=yes
16271 else
16272 echo "$as_me: failed program was:" >&5
16273 sed 's/^/| /' conftest.$ac_ext >&5
16274
16275 ac_header_compiler=no
16276 fi
16277
16278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16279 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16280 echo "${ECHO_T}$ac_header_compiler" >&6; }
16281
16282 # Is the header present?
16283 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16284 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16285 cat >conftest.$ac_ext <<_ACEOF
16286 /* confdefs.h. */
16287 _ACEOF
16288 cat confdefs.h >>conftest.$ac_ext
16289 cat >>conftest.$ac_ext <<_ACEOF
16290 /* end confdefs.h. */
16291 #include <$ac_header>
16292 _ACEOF
16293 if { (ac_try="$ac_cpp conftest.$ac_ext"
16294 case "(($ac_try" in
16295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16296 *) ac_try_echo=$ac_try;;
16297 esac
16298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16299 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16300 ac_status=$?
16301 grep -v '^ *+' conftest.er1 >conftest.err
16302 rm -f conftest.er1
16303 cat conftest.err >&5
16304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16305 (exit $ac_status); } >/dev/null && {
16306 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
16307 test ! -s conftest.err
16308 }; then
16309 ac_header_preproc=yes
16310 else
16311 echo "$as_me: failed program was:" >&5
16312 sed 's/^/| /' conftest.$ac_ext >&5
16313
16314 ac_header_preproc=no
16315 fi
16316
16317 rm -f conftest.err conftest.$ac_ext
16318 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16319 echo "${ECHO_T}$ac_header_preproc" >&6; }
16320
16321 # So? What about this header?
16322 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16323 yes:no: )
16324 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16325 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16326 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16327 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16328 ac_header_preproc=yes
16329 ;;
16330 no:yes:* )
16331 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16332 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16333 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
16334 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
16335 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16336 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16337 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
16338 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
16339 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16340 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16341 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16342 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16343
16344 ;;
16345 esac
16346 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16347 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16348 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16349 echo $ECHO_N "(cached) $ECHO_C" >&6
16350 else
16351 eval "$as_ac_Header=\$ac_header_preproc"
16352 fi
16353 ac_res=`eval echo '${'$as_ac_Header'}'`
16354 { echo "$as_me:$LINENO: result: $ac_res" >&5
16355 echo "${ECHO_T}$ac_res" >&6; }
16356
16357 fi
16358 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16359 cat >>confdefs.h <<_ACEOF
16360 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16361 _ACEOF
16362
16363 fi
16364
16365 done
16366
16367
16368
16369
16370
16371
16372
16373
16374
16375 for ac_func in $ac_func_list
16376 do
16377 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16378 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16379 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16380 if { as_var=$as_ac_var; eval "test \"\${$as_var+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 $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16390 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16391 #define $ac_func innocuous_$ac_func
16392
16393 /* System header to define __stub macros and hopefully few prototypes,
16394 which can conflict with char $ac_func (); 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 $ac_func
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 $ac_func ();
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_$ac_func || defined __stub___$ac_func
16417 choke me
16418 #endif
16419
16420 int
16421 main ()
16422 {
16423 return $ac_func ();
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 eval "$as_ac_var=yes"
16447 else
16448 echo "$as_me: failed program was:" >&5
16449 sed 's/^/| /' conftest.$ac_ext >&5
16450
16451 eval "$as_ac_var=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 ac_res=`eval echo '${'$as_ac_var'}'`
16458 { echo "$as_me:$LINENO: result: $ac_res" >&5
16459 echo "${ECHO_T}$ac_res" >&6; }
16460 if test `eval echo '${'$as_ac_var'}'` = yes; then
16461 cat >>confdefs.h <<_ACEOF
16462 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16463 _ACEOF
16464
16465 fi
16466 done
16467
16468
16469
16470
16471
16472
16473
16474
16475
16476
16477
16478
16479
16480
16481
16482
16483
16484 { echo "$as_me:$LINENO: checking for working mktime" >&5
16485 echo $ECHO_N "checking for working mktime... $ECHO_C" >&6; }
16486 if test "${ac_cv_func_working_mktime+set}" = set; then
16487 echo $ECHO_N "(cached) $ECHO_C" >&6
16488 else
16489 if test "$cross_compiling" = yes; then
16490 ac_cv_func_working_mktime=no
16491 else
16492 cat >conftest.$ac_ext <<_ACEOF
16493 /* confdefs.h. */
16494 _ACEOF
16495 cat confdefs.h >>conftest.$ac_ext
16496 cat >>conftest.$ac_ext <<_ACEOF
16497 /* end confdefs.h. */
16498 /* Test program from Paul Eggert and Tony Leneis. */
16499 #ifdef TIME_WITH_SYS_TIME
16500 # include <sys/time.h>
16501 # include <time.h>
16502 #else
16503 # ifdef HAVE_SYS_TIME_H
16504 # include <sys/time.h>
16505 # else
16506 # include <time.h>
16507 # endif
16508 #endif
16509
16510 #include <stdlib.h>
16511
16512 #ifdef HAVE_UNISTD_H
16513 # include <unistd.h>
16514 #endif
16515
16516 #ifndef HAVE_ALARM
16517 # define alarm(X) /* empty */
16518 #endif
16519
16520 /* Work around redefinition to rpl_putenv by other config tests. */
16521 #undef putenv
16522
16523 static time_t time_t_max;
16524 static time_t time_t_min;
16525
16526 /* Values we'll use to set the TZ environment variable. */
16527 static char *tz_strings[] = {
16528 (char *) 0, "TZ=GMT0", "TZ=JST-9",
16529 "TZ=EST+3EDT+2,M10.1.0/00:00:00,M2.3.0/00:00:00"
16530 };
16531 #define N_STRINGS (sizeof (tz_strings) / sizeof (tz_strings[0]))
16532
16533 /* Return 0 if mktime fails to convert a date in the spring-forward gap.
16534 Based on a problem report from Andreas Jaeger. */
16535 static int
16536 spring_forward_gap ()
16537 {
16538 /* glibc (up to about 1998-10-07) failed this test. */
16539 struct tm tm;
16540
16541 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16542 instead of "TZ=America/Vancouver" in order to detect the bug even
16543 on systems that don't support the Olson extension, or don't have the
16544 full zoneinfo tables installed. */
16545 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16546
16547 tm.tm_year = 98;
16548 tm.tm_mon = 3;
16549 tm.tm_mday = 5;
16550 tm.tm_hour = 2;
16551 tm.tm_min = 0;
16552 tm.tm_sec = 0;
16553 tm.tm_isdst = -1;
16554 return mktime (&tm) != (time_t) -1;
16555 }
16556
16557 static int
16558 mktime_test1 (now)
16559 time_t now;
16560 {
16561 struct tm *lt;
16562 return ! (lt = localtime (&now)) || mktime (lt) == now;
16563 }
16564
16565 static int
16566 mktime_test (now)
16567 time_t now;
16568 {
16569 return (mktime_test1 (now)
16570 && mktime_test1 ((time_t) (time_t_max - now))
16571 && mktime_test1 ((time_t) (time_t_min + now)));
16572 }
16573
16574 static int
16575 irix_6_4_bug ()
16576 {
16577 /* Based on code from Ariel Faigon. */
16578 struct tm tm;
16579 tm.tm_year = 96;
16580 tm.tm_mon = 3;
16581 tm.tm_mday = 0;
16582 tm.tm_hour = 0;
16583 tm.tm_min = 0;
16584 tm.tm_sec = 0;
16585 tm.tm_isdst = -1;
16586 mktime (&tm);
16587 return tm.tm_mon == 2 && tm.tm_mday == 31;
16588 }
16589
16590 static int
16591 bigtime_test (j)
16592 int j;
16593 {
16594 struct tm tm;
16595 time_t now;
16596 tm.tm_year = tm.tm_mon = tm.tm_mday = tm.tm_hour = tm.tm_min = tm.tm_sec = j;
16597 now = mktime (&tm);
16598 if (now != (time_t) -1)
16599 {
16600 struct tm *lt = localtime (&now);
16601 if (! (lt
16602 && lt->tm_year == tm.tm_year
16603 && lt->tm_mon == tm.tm_mon
16604 && lt->tm_mday == tm.tm_mday
16605 && lt->tm_hour == tm.tm_hour
16606 && lt->tm_min == tm.tm_min
16607 && lt->tm_sec == tm.tm_sec
16608 && lt->tm_yday == tm.tm_yday
16609 && lt->tm_wday == tm.tm_wday
16610 && ((lt->tm_isdst < 0 ? -1 : 0 < lt->tm_isdst)
16611 == (tm.tm_isdst < 0 ? -1 : 0 < tm.tm_isdst))))
16612 return 0;
16613 }
16614 return 1;
16615 }
16616
16617 static int
16618 year_2050_test ()
16619 {
16620 /* The correct answer for 2050-02-01 00:00:00 in Pacific time,
16621 ignoring leap seconds. */
16622 unsigned long int answer = 2527315200UL;
16623
16624 struct tm tm;
16625 time_t t;
16626 tm.tm_year = 2050 - 1900;
16627 tm.tm_mon = 2 - 1;
16628 tm.tm_mday = 1;
16629 tm.tm_hour = tm.tm_min = tm.tm_sec = 0;
16630 tm.tm_isdst = -1;
16631
16632 /* Use the portable POSIX.1 specification "TZ=PST8PDT,M4.1.0,M10.5.0"
16633 instead of "TZ=America/Vancouver" in order to detect the bug even
16634 on systems that don't support the Olson extension, or don't have the
16635 full zoneinfo tables installed. */
16636 putenv ("TZ=PST8PDT,M4.1.0,M10.5.0");
16637
16638 t = mktime (&tm);
16639
16640 /* Check that the result is either a failure, or close enough
16641 to the correct answer that we can assume the discrepancy is
16642 due to leap seconds. */
16643 return (t == (time_t) -1
16644 || (0 < t && answer - 120 <= t && t <= answer + 120));
16645 }
16646
16647 int
16648 main ()
16649 {
16650 time_t t, delta;
16651 int i, j;
16652
16653 /* This test makes some buggy mktime implementations loop.
16654 Give up after 60 seconds; a mktime slower than that
16655 isn't worth using anyway. */
16656 alarm (60);
16657
16658 for (time_t_max = 1; 0 < time_t_max; time_t_max *= 2)
16659 continue;
16660 time_t_max--;
16661 if ((time_t) -1 < 0)
16662 for (time_t_min = -1; (time_t) (time_t_min * 2) < 0; time_t_min *= 2)
16663 continue;
16664 delta = time_t_max / 997; /* a suitable prime number */
16665 for (i = 0; i < N_STRINGS; i++)
16666 {
16667 if (tz_strings[i])
16668 putenv (tz_strings[i]);
16669
16670 for (t = 0; t <= time_t_max - delta; t += delta)
16671 if (! mktime_test (t))
16672 return 1;
16673 if (! (mktime_test ((time_t) 1)
16674 && mktime_test ((time_t) (60 * 60))
16675 && mktime_test ((time_t) (60 * 60 * 24))))
16676 return 1;
16677
16678 for (j = 1; 0 < j; j *= 2)
16679 if (! bigtime_test (j))
16680 return 1;
16681 if (! bigtime_test (j - 1))
16682 return 1;
16683 }
16684 return ! (irix_6_4_bug () && spring_forward_gap () && year_2050_test ());
16685 }
16686 _ACEOF
16687 rm -f conftest$ac_exeext
16688 if { (ac_try="$ac_link"
16689 case "(($ac_try" in
16690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16691 *) ac_try_echo=$ac_try;;
16692 esac
16693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16694 (eval "$ac_link") 2>&5
16695 ac_status=$?
16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16697 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
16698 { (case "(($ac_try" in
16699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16700 *) ac_try_echo=$ac_try;;
16701 esac
16702 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16703 (eval "$ac_try") 2>&5
16704 ac_status=$?
16705 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16706 (exit $ac_status); }; }; then
16707 ac_cv_func_working_mktime=yes
16708 else
16709 echo "$as_me: program exited with status $ac_status" >&5
16710 echo "$as_me: failed program was:" >&5
16711 sed 's/^/| /' conftest.$ac_ext >&5
16712
16713 ( exit $ac_status )
16714 ac_cv_func_working_mktime=no
16715 fi
16716 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
16717 fi
16718
16719
16720 fi
16721 { echo "$as_me:$LINENO: result: $ac_cv_func_working_mktime" >&5
16722 echo "${ECHO_T}$ac_cv_func_working_mktime" >&6; }
16723 if test $ac_cv_func_working_mktime = no; then
16724 case " $LIBOBJS " in
16725 *" mktime.$ac_objext "* ) ;;
16726 *) LIBOBJS="$LIBOBJS mktime.$ac_objext"
16727 ;;
16728 esac
16729
16730 fi
16731
16732 if test "$ac_cv_func_working_mktime" = no; then
16733
16734 cat >>confdefs.h <<\_ACEOF
16735 #define BROKEN_MKTIME 1
16736 _ACEOF
16737
16738 fi
16739
16740 ac_have_func=no # yes means we've found a way to get the load average.
16741
16742 # Make sure getloadavg.c is where it belongs, at configure-time.
16743 test -f "$srcdir/$ac_config_libobj_dir/getloadavg.c" ||
16744 { { echo "$as_me:$LINENO: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&5
16745 echo "$as_me: error: $srcdir/$ac_config_libobj_dir/getloadavg.c is missing" >&2;}
16746 { (exit 1); exit 1; }; }
16747
16748 ac_save_LIBS=$LIBS
16749
16750 # Check for getloadavg, but be sure not to touch the cache variable.
16751 ({ echo "$as_me:$LINENO: checking for getloadavg" >&5
16752 echo $ECHO_N "checking for getloadavg... $ECHO_C" >&6; }
16753 if test "${ac_cv_func_getloadavg+set}" = set; then
16754 echo $ECHO_N "(cached) $ECHO_C" >&6
16755 else
16756 cat >conftest.$ac_ext <<_ACEOF
16757 /* confdefs.h. */
16758 _ACEOF
16759 cat confdefs.h >>conftest.$ac_ext
16760 cat >>conftest.$ac_ext <<_ACEOF
16761 /* end confdefs.h. */
16762 /* Define getloadavg to an innocuous variant, in case <limits.h> declares getloadavg.
16763 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16764 #define getloadavg innocuous_getloadavg
16765
16766 /* System header to define __stub macros and hopefully few prototypes,
16767 which can conflict with char getloadavg (); below.
16768 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16769 <limits.h> exists even on freestanding compilers. */
16770
16771 #ifdef __STDC__
16772 # include <limits.h>
16773 #else
16774 # include <assert.h>
16775 #endif
16776
16777 #undef getloadavg
16778
16779 /* Override any GCC internal prototype to avoid an error.
16780 Use char because int might match the return type of a GCC
16781 builtin and then its argument prototype would still apply. */
16782 #ifdef __cplusplus
16783 extern "C"
16784 #endif
16785 char getloadavg ();
16786 /* The GNU C library defines this for functions which it implements
16787 to always fail with ENOSYS. Some functions are actually named
16788 something starting with __ and the normal name is an alias. */
16789 #if defined __stub_getloadavg || defined __stub___getloadavg
16790 choke me
16791 #endif
16792
16793 int
16794 main ()
16795 {
16796 return getloadavg ();
16797 ;
16798 return 0;
16799 }
16800 _ACEOF
16801 rm -f conftest.$ac_objext conftest$ac_exeext
16802 if { (ac_try="$ac_link"
16803 case "(($ac_try" in
16804 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16805 *) ac_try_echo=$ac_try;;
16806 esac
16807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16808 (eval "$ac_link") 2>conftest.er1
16809 ac_status=$?
16810 grep -v '^ *+' conftest.er1 >conftest.err
16811 rm -f conftest.er1
16812 cat conftest.err >&5
16813 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16814 (exit $ac_status); } && {
16815 test -z "$ac_c_werror_flag" ||
16816 test ! -s conftest.err
16817 } && test -s conftest$ac_exeext &&
16818 $as_test_x conftest$ac_exeext; then
16819 ac_cv_func_getloadavg=yes
16820 else
16821 echo "$as_me: failed program was:" >&5
16822 sed 's/^/| /' conftest.$ac_ext >&5
16823
16824 ac_cv_func_getloadavg=no
16825 fi
16826
16827 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16828 conftest$ac_exeext conftest.$ac_ext
16829 fi
16830 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg" >&5
16831 echo "${ECHO_T}$ac_cv_func_getloadavg" >&6; }
16832 if test $ac_cv_func_getloadavg = yes; then
16833 exit 0
16834 else
16835 exit 1
16836 fi
16837 ) && ac_have_func=yes
16838
16839 # On HPUX9, an unprivileged user can get load averages through this function.
16840
16841 for ac_func in pstat_getdynamic
16842 do
16843 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
16844 { echo "$as_me:$LINENO: checking for $ac_func" >&5
16845 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
16846 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
16847 echo $ECHO_N "(cached) $ECHO_C" >&6
16848 else
16849 cat >conftest.$ac_ext <<_ACEOF
16850 /* confdefs.h. */
16851 _ACEOF
16852 cat confdefs.h >>conftest.$ac_ext
16853 cat >>conftest.$ac_ext <<_ACEOF
16854 /* end confdefs.h. */
16855 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
16856 For example, HP-UX 11i <limits.h> declares gettimeofday. */
16857 #define $ac_func innocuous_$ac_func
16858
16859 /* System header to define __stub macros and hopefully few prototypes,
16860 which can conflict with char $ac_func (); below.
16861 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
16862 <limits.h> exists even on freestanding compilers. */
16863
16864 #ifdef __STDC__
16865 # include <limits.h>
16866 #else
16867 # include <assert.h>
16868 #endif
16869
16870 #undef $ac_func
16871
16872 /* Override any GCC internal prototype to avoid an error.
16873 Use char because int might match the return type of a GCC
16874 builtin and then its argument prototype would still apply. */
16875 #ifdef __cplusplus
16876 extern "C"
16877 #endif
16878 char $ac_func ();
16879 /* The GNU C library defines this for functions which it implements
16880 to always fail with ENOSYS. Some functions are actually named
16881 something starting with __ and the normal name is an alias. */
16882 #if defined __stub_$ac_func || defined __stub___$ac_func
16883 choke me
16884 #endif
16885
16886 int
16887 main ()
16888 {
16889 return $ac_func ();
16890 ;
16891 return 0;
16892 }
16893 _ACEOF
16894 rm -f conftest.$ac_objext conftest$ac_exeext
16895 if { (ac_try="$ac_link"
16896 case "(($ac_try" in
16897 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16898 *) ac_try_echo=$ac_try;;
16899 esac
16900 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16901 (eval "$ac_link") 2>conftest.er1
16902 ac_status=$?
16903 grep -v '^ *+' conftest.er1 >conftest.err
16904 rm -f conftest.er1
16905 cat conftest.err >&5
16906 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16907 (exit $ac_status); } && {
16908 test -z "$ac_c_werror_flag" ||
16909 test ! -s conftest.err
16910 } && test -s conftest$ac_exeext &&
16911 $as_test_x conftest$ac_exeext; then
16912 eval "$as_ac_var=yes"
16913 else
16914 echo "$as_me: failed program was:" >&5
16915 sed 's/^/| /' conftest.$ac_ext >&5
16916
16917 eval "$as_ac_var=no"
16918 fi
16919
16920 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16921 conftest$ac_exeext conftest.$ac_ext
16922 fi
16923 ac_res=`eval echo '${'$as_ac_var'}'`
16924 { echo "$as_me:$LINENO: result: $ac_res" >&5
16925 echo "${ECHO_T}$ac_res" >&6; }
16926 if test `eval echo '${'$as_ac_var'}'` = yes; then
16927 cat >>confdefs.h <<_ACEOF
16928 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
16929 _ACEOF
16930
16931 fi
16932 done
16933
16934
16935 # Solaris has libkstat which does not require root.
16936
16937 { echo "$as_me:$LINENO: checking for kstat_open in -lkstat" >&5
16938 echo $ECHO_N "checking for kstat_open in -lkstat... $ECHO_C" >&6; }
16939 if test "${ac_cv_lib_kstat_kstat_open+set}" = set; then
16940 echo $ECHO_N "(cached) $ECHO_C" >&6
16941 else
16942 ac_check_lib_save_LIBS=$LIBS
16943 LIBS="-lkstat $LIBS"
16944 cat >conftest.$ac_ext <<_ACEOF
16945 /* confdefs.h. */
16946 _ACEOF
16947 cat confdefs.h >>conftest.$ac_ext
16948 cat >>conftest.$ac_ext <<_ACEOF
16949 /* end confdefs.h. */
16950
16951 /* Override any GCC internal prototype to avoid an error.
16952 Use char because int might match the return type of a GCC
16953 builtin and then its argument prototype would still apply. */
16954 #ifdef __cplusplus
16955 extern "C"
16956 #endif
16957 char kstat_open ();
16958 int
16959 main ()
16960 {
16961 return kstat_open ();
16962 ;
16963 return 0;
16964 }
16965 _ACEOF
16966 rm -f conftest.$ac_objext conftest$ac_exeext
16967 if { (ac_try="$ac_link"
16968 case "(($ac_try" in
16969 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16970 *) ac_try_echo=$ac_try;;
16971 esac
16972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16973 (eval "$ac_link") 2>conftest.er1
16974 ac_status=$?
16975 grep -v '^ *+' conftest.er1 >conftest.err
16976 rm -f conftest.er1
16977 cat conftest.err >&5
16978 echo "$as_me:$LINENO: \$? = $ac_status" >&5
16979 (exit $ac_status); } && {
16980 test -z "$ac_c_werror_flag" ||
16981 test ! -s conftest.err
16982 } && test -s conftest$ac_exeext &&
16983 $as_test_x conftest$ac_exeext; then
16984 ac_cv_lib_kstat_kstat_open=yes
16985 else
16986 echo "$as_me: failed program was:" >&5
16987 sed 's/^/| /' conftest.$ac_ext >&5
16988
16989 ac_cv_lib_kstat_kstat_open=no
16990 fi
16991
16992 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
16993 conftest$ac_exeext conftest.$ac_ext
16994 LIBS=$ac_check_lib_save_LIBS
16995 fi
16996 { echo "$as_me:$LINENO: result: $ac_cv_lib_kstat_kstat_open" >&5
16997 echo "${ECHO_T}$ac_cv_lib_kstat_kstat_open" >&6; }
16998 if test $ac_cv_lib_kstat_kstat_open = yes; then
16999 cat >>confdefs.h <<_ACEOF
17000 #define HAVE_LIBKSTAT 1
17001 _ACEOF
17002
17003 LIBS="-lkstat $LIBS"
17004
17005 fi
17006
17007 test $ac_cv_lib_kstat_kstat_open = yes && ac_have_func=yes
17008
17009 # Some systems with -lutil have (and need) -lkvm as well, some do not.
17010 # On Solaris, -lkvm requires nlist from -lelf, so check that first
17011 # to get the right answer into the cache.
17012 # For kstat on solaris, we need libelf to force the definition of SVR4 below.
17013 if test $ac_have_func = no; then
17014 { echo "$as_me:$LINENO: checking for elf_begin in -lelf" >&5
17015 echo $ECHO_N "checking for elf_begin in -lelf... $ECHO_C" >&6; }
17016 if test "${ac_cv_lib_elf_elf_begin+set}" = set; then
17017 echo $ECHO_N "(cached) $ECHO_C" >&6
17018 else
17019 ac_check_lib_save_LIBS=$LIBS
17020 LIBS="-lelf $LIBS"
17021 cat >conftest.$ac_ext <<_ACEOF
17022 /* confdefs.h. */
17023 _ACEOF
17024 cat confdefs.h >>conftest.$ac_ext
17025 cat >>conftest.$ac_ext <<_ACEOF
17026 /* end confdefs.h. */
17027
17028 /* Override any GCC internal prototype to avoid an error.
17029 Use char because int might match the return type of a GCC
17030 builtin and then its argument prototype would still apply. */
17031 #ifdef __cplusplus
17032 extern "C"
17033 #endif
17034 char elf_begin ();
17035 int
17036 main ()
17037 {
17038 return elf_begin ();
17039 ;
17040 return 0;
17041 }
17042 _ACEOF
17043 rm -f conftest.$ac_objext conftest$ac_exeext
17044 if { (ac_try="$ac_link"
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_link") 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_exeext &&
17060 $as_test_x conftest$ac_exeext; then
17061 ac_cv_lib_elf_elf_begin=yes
17062 else
17063 echo "$as_me: failed program was:" >&5
17064 sed 's/^/| /' conftest.$ac_ext >&5
17065
17066 ac_cv_lib_elf_elf_begin=no
17067 fi
17068
17069 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17070 conftest$ac_exeext conftest.$ac_ext
17071 LIBS=$ac_check_lib_save_LIBS
17072 fi
17073 { echo "$as_me:$LINENO: result: $ac_cv_lib_elf_elf_begin" >&5
17074 echo "${ECHO_T}$ac_cv_lib_elf_elf_begin" >&6; }
17075 if test $ac_cv_lib_elf_elf_begin = yes; then
17076 LIBS="-lelf $LIBS"
17077 fi
17078
17079 fi
17080 if test $ac_have_func = no; then
17081 { echo "$as_me:$LINENO: checking for kvm_open in -lkvm" >&5
17082 echo $ECHO_N "checking for kvm_open in -lkvm... $ECHO_C" >&6; }
17083 if test "${ac_cv_lib_kvm_kvm_open+set}" = set; then
17084 echo $ECHO_N "(cached) $ECHO_C" >&6
17085 else
17086 ac_check_lib_save_LIBS=$LIBS
17087 LIBS="-lkvm $LIBS"
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h. */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h. */
17094
17095 /* Override any GCC internal prototype to avoid an error.
17096 Use char because int might match the return type of a GCC
17097 builtin and then its argument prototype would still apply. */
17098 #ifdef __cplusplus
17099 extern "C"
17100 #endif
17101 char kvm_open ();
17102 int
17103 main ()
17104 {
17105 return kvm_open ();
17106 ;
17107 return 0;
17108 }
17109 _ACEOF
17110 rm -f conftest.$ac_objext conftest$ac_exeext
17111 if { (ac_try="$ac_link"
17112 case "(($ac_try" in
17113 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17114 *) ac_try_echo=$ac_try;;
17115 esac
17116 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17117 (eval "$ac_link") 2>conftest.er1
17118 ac_status=$?
17119 grep -v '^ *+' conftest.er1 >conftest.err
17120 rm -f conftest.er1
17121 cat conftest.err >&5
17122 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17123 (exit $ac_status); } && {
17124 test -z "$ac_c_werror_flag" ||
17125 test ! -s conftest.err
17126 } && test -s conftest$ac_exeext &&
17127 $as_test_x conftest$ac_exeext; then
17128 ac_cv_lib_kvm_kvm_open=yes
17129 else
17130 echo "$as_me: failed program was:" >&5
17131 sed 's/^/| /' conftest.$ac_ext >&5
17132
17133 ac_cv_lib_kvm_kvm_open=no
17134 fi
17135
17136 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17137 conftest$ac_exeext conftest.$ac_ext
17138 LIBS=$ac_check_lib_save_LIBS
17139 fi
17140 { echo "$as_me:$LINENO: result: $ac_cv_lib_kvm_kvm_open" >&5
17141 echo "${ECHO_T}$ac_cv_lib_kvm_kvm_open" >&6; }
17142 if test $ac_cv_lib_kvm_kvm_open = yes; then
17143 LIBS="-lkvm $LIBS"
17144 fi
17145
17146 # Check for the 4.4BSD definition of getloadavg.
17147 { echo "$as_me:$LINENO: checking for getloadavg in -lutil" >&5
17148 echo $ECHO_N "checking for getloadavg in -lutil... $ECHO_C" >&6; }
17149 if test "${ac_cv_lib_util_getloadavg+set}" = set; then
17150 echo $ECHO_N "(cached) $ECHO_C" >&6
17151 else
17152 ac_check_lib_save_LIBS=$LIBS
17153 LIBS="-lutil $LIBS"
17154 cat >conftest.$ac_ext <<_ACEOF
17155 /* confdefs.h. */
17156 _ACEOF
17157 cat confdefs.h >>conftest.$ac_ext
17158 cat >>conftest.$ac_ext <<_ACEOF
17159 /* end confdefs.h. */
17160
17161 /* Override any GCC internal prototype to avoid an error.
17162 Use char because int might match the return type of a GCC
17163 builtin and then its argument prototype would still apply. */
17164 #ifdef __cplusplus
17165 extern "C"
17166 #endif
17167 char getloadavg ();
17168 int
17169 main ()
17170 {
17171 return getloadavg ();
17172 ;
17173 return 0;
17174 }
17175 _ACEOF
17176 rm -f conftest.$ac_objext conftest$ac_exeext
17177 if { (ac_try="$ac_link"
17178 case "(($ac_try" in
17179 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17180 *) ac_try_echo=$ac_try;;
17181 esac
17182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17183 (eval "$ac_link") 2>conftest.er1
17184 ac_status=$?
17185 grep -v '^ *+' conftest.er1 >conftest.err
17186 rm -f conftest.er1
17187 cat conftest.err >&5
17188 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17189 (exit $ac_status); } && {
17190 test -z "$ac_c_werror_flag" ||
17191 test ! -s conftest.err
17192 } && test -s conftest$ac_exeext &&
17193 $as_test_x conftest$ac_exeext; then
17194 ac_cv_lib_util_getloadavg=yes
17195 else
17196 echo "$as_me: failed program was:" >&5
17197 sed 's/^/| /' conftest.$ac_ext >&5
17198
17199 ac_cv_lib_util_getloadavg=no
17200 fi
17201
17202 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17203 conftest$ac_exeext conftest.$ac_ext
17204 LIBS=$ac_check_lib_save_LIBS
17205 fi
17206 { echo "$as_me:$LINENO: result: $ac_cv_lib_util_getloadavg" >&5
17207 echo "${ECHO_T}$ac_cv_lib_util_getloadavg" >&6; }
17208 if test $ac_cv_lib_util_getloadavg = yes; then
17209 LIBS="-lutil $LIBS" ac_have_func=yes ac_cv_func_getloadavg_setgid=yes
17210 fi
17211
17212 fi
17213
17214 if test $ac_have_func = no; then
17215 # There is a commonly available library for RS/6000 AIX.
17216 # Since it is not a standard part of AIX, it might be installed locally.
17217 ac_getloadavg_LIBS=$LIBS
17218 LIBS="-L/usr/local/lib $LIBS"
17219 { echo "$as_me:$LINENO: checking for getloadavg in -lgetloadavg" >&5
17220 echo $ECHO_N "checking for getloadavg in -lgetloadavg... $ECHO_C" >&6; }
17221 if test "${ac_cv_lib_getloadavg_getloadavg+set}" = set; then
17222 echo $ECHO_N "(cached) $ECHO_C" >&6
17223 else
17224 ac_check_lib_save_LIBS=$LIBS
17225 LIBS="-lgetloadavg $LIBS"
17226 cat >conftest.$ac_ext <<_ACEOF
17227 /* confdefs.h. */
17228 _ACEOF
17229 cat confdefs.h >>conftest.$ac_ext
17230 cat >>conftest.$ac_ext <<_ACEOF
17231 /* end confdefs.h. */
17232
17233 /* Override any GCC internal prototype to avoid an error.
17234 Use char because int might match the return type of a GCC
17235 builtin and then its argument prototype would still apply. */
17236 #ifdef __cplusplus
17237 extern "C"
17238 #endif
17239 char getloadavg ();
17240 int
17241 main ()
17242 {
17243 return getloadavg ();
17244 ;
17245 return 0;
17246 }
17247 _ACEOF
17248 rm -f conftest.$ac_objext conftest$ac_exeext
17249 if { (ac_try="$ac_link"
17250 case "(($ac_try" in
17251 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17252 *) ac_try_echo=$ac_try;;
17253 esac
17254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17255 (eval "$ac_link") 2>conftest.er1
17256 ac_status=$?
17257 grep -v '^ *+' conftest.er1 >conftest.err
17258 rm -f conftest.er1
17259 cat conftest.err >&5
17260 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17261 (exit $ac_status); } && {
17262 test -z "$ac_c_werror_flag" ||
17263 test ! -s conftest.err
17264 } && test -s conftest$ac_exeext &&
17265 $as_test_x conftest$ac_exeext; then
17266 ac_cv_lib_getloadavg_getloadavg=yes
17267 else
17268 echo "$as_me: failed program was:" >&5
17269 sed 's/^/| /' conftest.$ac_ext >&5
17270
17271 ac_cv_lib_getloadavg_getloadavg=no
17272 fi
17273
17274 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17275 conftest$ac_exeext conftest.$ac_ext
17276 LIBS=$ac_check_lib_save_LIBS
17277 fi
17278 { echo "$as_me:$LINENO: result: $ac_cv_lib_getloadavg_getloadavg" >&5
17279 echo "${ECHO_T}$ac_cv_lib_getloadavg_getloadavg" >&6; }
17280 if test $ac_cv_lib_getloadavg_getloadavg = yes; then
17281 LIBS="-lgetloadavg $LIBS"
17282 else
17283 LIBS=$ac_getloadavg_LIBS
17284 fi
17285
17286 fi
17287
17288 # Make sure it is really in the library, if we think we found it,
17289 # otherwise set up the replacement function.
17290
17291 for ac_func in getloadavg
17292 do
17293 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17294 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17295 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17296 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17297 echo $ECHO_N "(cached) $ECHO_C" >&6
17298 else
17299 cat >conftest.$ac_ext <<_ACEOF
17300 /* confdefs.h. */
17301 _ACEOF
17302 cat confdefs.h >>conftest.$ac_ext
17303 cat >>conftest.$ac_ext <<_ACEOF
17304 /* end confdefs.h. */
17305 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17306 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17307 #define $ac_func innocuous_$ac_func
17308
17309 /* System header to define __stub macros and hopefully few prototypes,
17310 which can conflict with char $ac_func (); below.
17311 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17312 <limits.h> exists even on freestanding compilers. */
17313
17314 #ifdef __STDC__
17315 # include <limits.h>
17316 #else
17317 # include <assert.h>
17318 #endif
17319
17320 #undef $ac_func
17321
17322 /* Override any GCC internal prototype to avoid an error.
17323 Use char because int might match the return type of a GCC
17324 builtin and then its argument prototype would still apply. */
17325 #ifdef __cplusplus
17326 extern "C"
17327 #endif
17328 char $ac_func ();
17329 /* The GNU C library defines this for functions which it implements
17330 to always fail with ENOSYS. Some functions are actually named
17331 something starting with __ and the normal name is an alias. */
17332 #if defined __stub_$ac_func || defined __stub___$ac_func
17333 choke me
17334 #endif
17335
17336 int
17337 main ()
17338 {
17339 return $ac_func ();
17340 ;
17341 return 0;
17342 }
17343 _ACEOF
17344 rm -f conftest.$ac_objext conftest$ac_exeext
17345 if { (ac_try="$ac_link"
17346 case "(($ac_try" in
17347 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17348 *) ac_try_echo=$ac_try;;
17349 esac
17350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17351 (eval "$ac_link") 2>conftest.er1
17352 ac_status=$?
17353 grep -v '^ *+' conftest.er1 >conftest.err
17354 rm -f conftest.er1
17355 cat conftest.err >&5
17356 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17357 (exit $ac_status); } && {
17358 test -z "$ac_c_werror_flag" ||
17359 test ! -s conftest.err
17360 } && test -s conftest$ac_exeext &&
17361 $as_test_x conftest$ac_exeext; then
17362 eval "$as_ac_var=yes"
17363 else
17364 echo "$as_me: failed program was:" >&5
17365 sed 's/^/| /' conftest.$ac_ext >&5
17366
17367 eval "$as_ac_var=no"
17368 fi
17369
17370 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17371 conftest$ac_exeext conftest.$ac_ext
17372 fi
17373 ac_res=`eval echo '${'$as_ac_var'}'`
17374 { echo "$as_me:$LINENO: result: $ac_res" >&5
17375 echo "${ECHO_T}$ac_res" >&6; }
17376 if test `eval echo '${'$as_ac_var'}'` = yes; then
17377 cat >>confdefs.h <<_ACEOF
17378 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17379 _ACEOF
17380
17381 else
17382 case " $LIBOBJS " in
17383 *" getloadavg.$ac_objext "* ) ;;
17384 *) LIBOBJS="$LIBOBJS getloadavg.$ac_objext"
17385 ;;
17386 esac
17387
17388
17389 cat >>confdefs.h <<\_ACEOF
17390 #define C_GETLOADAVG 1
17391 _ACEOF
17392
17393 # Figure out what our getloadavg.c needs.
17394 ac_have_func=no
17395 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17396 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17397 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17398 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17399 echo $ECHO_N "(cached) $ECHO_C" >&6
17400 fi
17401 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17402 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17403 else
17404 # Is the header compilable?
17405 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h usability" >&5
17406 echo $ECHO_N "checking sys/dg_sys_info.h usability... $ECHO_C" >&6; }
17407 cat >conftest.$ac_ext <<_ACEOF
17408 /* confdefs.h. */
17409 _ACEOF
17410 cat confdefs.h >>conftest.$ac_ext
17411 cat >>conftest.$ac_ext <<_ACEOF
17412 /* end confdefs.h. */
17413 $ac_includes_default
17414 #include <sys/dg_sys_info.h>
17415 _ACEOF
17416 rm -f conftest.$ac_objext
17417 if { (ac_try="$ac_compile"
17418 case "(($ac_try" in
17419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17420 *) ac_try_echo=$ac_try;;
17421 esac
17422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17423 (eval "$ac_compile") 2>conftest.er1
17424 ac_status=$?
17425 grep -v '^ *+' conftest.er1 >conftest.err
17426 rm -f conftest.er1
17427 cat conftest.err >&5
17428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17429 (exit $ac_status); } && {
17430 test -z "$ac_c_werror_flag" ||
17431 test ! -s conftest.err
17432 } && test -s conftest.$ac_objext; then
17433 ac_header_compiler=yes
17434 else
17435 echo "$as_me: failed program was:" >&5
17436 sed 's/^/| /' conftest.$ac_ext >&5
17437
17438 ac_header_compiler=no
17439 fi
17440
17441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17442 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17443 echo "${ECHO_T}$ac_header_compiler" >&6; }
17444
17445 # Is the header present?
17446 { echo "$as_me:$LINENO: checking sys/dg_sys_info.h presence" >&5
17447 echo $ECHO_N "checking sys/dg_sys_info.h presence... $ECHO_C" >&6; }
17448 cat >conftest.$ac_ext <<_ACEOF
17449 /* confdefs.h. */
17450 _ACEOF
17451 cat confdefs.h >>conftest.$ac_ext
17452 cat >>conftest.$ac_ext <<_ACEOF
17453 /* end confdefs.h. */
17454 #include <sys/dg_sys_info.h>
17455 _ACEOF
17456 if { (ac_try="$ac_cpp conftest.$ac_ext"
17457 case "(($ac_try" in
17458 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17459 *) ac_try_echo=$ac_try;;
17460 esac
17461 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17462 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17463 ac_status=$?
17464 grep -v '^ *+' conftest.er1 >conftest.err
17465 rm -f conftest.er1
17466 cat conftest.err >&5
17467 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17468 (exit $ac_status); } >/dev/null && {
17469 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17470 test ! -s conftest.err
17471 }; then
17472 ac_header_preproc=yes
17473 else
17474 echo "$as_me: failed program was:" >&5
17475 sed 's/^/| /' conftest.$ac_ext >&5
17476
17477 ac_header_preproc=no
17478 fi
17479
17480 rm -f conftest.err conftest.$ac_ext
17481 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17482 echo "${ECHO_T}$ac_header_preproc" >&6; }
17483
17484 # So? What about this header?
17485 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17486 yes:no: )
17487 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&5
17488 echo "$as_me: WARNING: sys/dg_sys_info.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17489 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&5
17490 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the compiler's result" >&2;}
17491 ac_header_preproc=yes
17492 ;;
17493 no:yes:* )
17494 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&5
17495 echo "$as_me: WARNING: sys/dg_sys_info.h: present but cannot be compiled" >&2;}
17496 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&5
17497 echo "$as_me: WARNING: sys/dg_sys_info.h: check for missing prerequisite headers?" >&2;}
17498 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&5
17499 echo "$as_me: WARNING: sys/dg_sys_info.h: see the Autoconf documentation" >&2;}
17500 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&5
17501 echo "$as_me: WARNING: sys/dg_sys_info.h: section \"Present But Cannot Be Compiled\"" >&2;}
17502 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&5
17503 echo "$as_me: WARNING: sys/dg_sys_info.h: proceeding with the preprocessor's result" >&2;}
17504 { echo "$as_me:$LINENO: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&5
17505 echo "$as_me: WARNING: sys/dg_sys_info.h: in the future, the compiler will take precedence" >&2;}
17506
17507 ;;
17508 esac
17509 { echo "$as_me:$LINENO: checking for sys/dg_sys_info.h" >&5
17510 echo $ECHO_N "checking for sys/dg_sys_info.h... $ECHO_C" >&6; }
17511 if test "${ac_cv_header_sys_dg_sys_info_h+set}" = set; then
17512 echo $ECHO_N "(cached) $ECHO_C" >&6
17513 else
17514 ac_cv_header_sys_dg_sys_info_h=$ac_header_preproc
17515 fi
17516 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_dg_sys_info_h" >&5
17517 echo "${ECHO_T}$ac_cv_header_sys_dg_sys_info_h" >&6; }
17518
17519 fi
17520 if test $ac_cv_header_sys_dg_sys_info_h = yes; then
17521 ac_have_func=yes
17522
17523 cat >>confdefs.h <<\_ACEOF
17524 #define DGUX 1
17525 _ACEOF
17526
17527
17528 { echo "$as_me:$LINENO: checking for dg_sys_info in -ldgc" >&5
17529 echo $ECHO_N "checking for dg_sys_info in -ldgc... $ECHO_C" >&6; }
17530 if test "${ac_cv_lib_dgc_dg_sys_info+set}" = set; then
17531 echo $ECHO_N "(cached) $ECHO_C" >&6
17532 else
17533 ac_check_lib_save_LIBS=$LIBS
17534 LIBS="-ldgc $LIBS"
17535 cat >conftest.$ac_ext <<_ACEOF
17536 /* confdefs.h. */
17537 _ACEOF
17538 cat confdefs.h >>conftest.$ac_ext
17539 cat >>conftest.$ac_ext <<_ACEOF
17540 /* end confdefs.h. */
17541
17542 /* Override any GCC internal prototype to avoid an error.
17543 Use char because int might match the return type of a GCC
17544 builtin and then its argument prototype would still apply. */
17545 #ifdef __cplusplus
17546 extern "C"
17547 #endif
17548 char dg_sys_info ();
17549 int
17550 main ()
17551 {
17552 return dg_sys_info ();
17553 ;
17554 return 0;
17555 }
17556 _ACEOF
17557 rm -f conftest.$ac_objext conftest$ac_exeext
17558 if { (ac_try="$ac_link"
17559 case "(($ac_try" in
17560 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561 *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564 (eval "$ac_link") 2>conftest.er1
17565 ac_status=$?
17566 grep -v '^ *+' conftest.er1 >conftest.err
17567 rm -f conftest.er1
17568 cat conftest.err >&5
17569 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570 (exit $ac_status); } && {
17571 test -z "$ac_c_werror_flag" ||
17572 test ! -s conftest.err
17573 } && test -s conftest$ac_exeext &&
17574 $as_test_x conftest$ac_exeext; then
17575 ac_cv_lib_dgc_dg_sys_info=yes
17576 else
17577 echo "$as_me: failed program was:" >&5
17578 sed 's/^/| /' conftest.$ac_ext >&5
17579
17580 ac_cv_lib_dgc_dg_sys_info=no
17581 fi
17582
17583 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17584 conftest$ac_exeext conftest.$ac_ext
17585 LIBS=$ac_check_lib_save_LIBS
17586 fi
17587 { echo "$as_me:$LINENO: result: $ac_cv_lib_dgc_dg_sys_info" >&5
17588 echo "${ECHO_T}$ac_cv_lib_dgc_dg_sys_info" >&6; }
17589 if test $ac_cv_lib_dgc_dg_sys_info = yes; then
17590 cat >>confdefs.h <<_ACEOF
17591 #define HAVE_LIBDGC 1
17592 _ACEOF
17593
17594 LIBS="-ldgc $LIBS"
17595
17596 fi
17597
17598 fi
17599
17600
17601
17602 if test "${ac_cv_header_locale_h+set}" = set; then
17603 { echo "$as_me:$LINENO: checking for locale.h" >&5
17604 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17605 if test "${ac_cv_header_locale_h+set}" = set; then
17606 echo $ECHO_N "(cached) $ECHO_C" >&6
17607 fi
17608 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17609 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17610 else
17611 # Is the header compilable?
17612 { echo "$as_me:$LINENO: checking locale.h usability" >&5
17613 echo $ECHO_N "checking locale.h usability... $ECHO_C" >&6; }
17614 cat >conftest.$ac_ext <<_ACEOF
17615 /* confdefs.h. */
17616 _ACEOF
17617 cat confdefs.h >>conftest.$ac_ext
17618 cat >>conftest.$ac_ext <<_ACEOF
17619 /* end confdefs.h. */
17620 $ac_includes_default
17621 #include <locale.h>
17622 _ACEOF
17623 rm -f conftest.$ac_objext
17624 if { (ac_try="$ac_compile"
17625 case "(($ac_try" in
17626 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627 *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630 (eval "$ac_compile") 2>conftest.er1
17631 ac_status=$?
17632 grep -v '^ *+' conftest.er1 >conftest.err
17633 rm -f conftest.er1
17634 cat conftest.err >&5
17635 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636 (exit $ac_status); } && {
17637 test -z "$ac_c_werror_flag" ||
17638 test ! -s conftest.err
17639 } && test -s conftest.$ac_objext; then
17640 ac_header_compiler=yes
17641 else
17642 echo "$as_me: failed program was:" >&5
17643 sed 's/^/| /' conftest.$ac_ext >&5
17644
17645 ac_header_compiler=no
17646 fi
17647
17648 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17649 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17650 echo "${ECHO_T}$ac_header_compiler" >&6; }
17651
17652 # Is the header present?
17653 { echo "$as_me:$LINENO: checking locale.h presence" >&5
17654 echo $ECHO_N "checking locale.h presence... $ECHO_C" >&6; }
17655 cat >conftest.$ac_ext <<_ACEOF
17656 /* confdefs.h. */
17657 _ACEOF
17658 cat confdefs.h >>conftest.$ac_ext
17659 cat >>conftest.$ac_ext <<_ACEOF
17660 /* end confdefs.h. */
17661 #include <locale.h>
17662 _ACEOF
17663 if { (ac_try="$ac_cpp conftest.$ac_ext"
17664 case "(($ac_try" in
17665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17666 *) ac_try_echo=$ac_try;;
17667 esac
17668 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17669 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17670 ac_status=$?
17671 grep -v '^ *+' conftest.er1 >conftest.err
17672 rm -f conftest.er1
17673 cat conftest.err >&5
17674 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17675 (exit $ac_status); } >/dev/null && {
17676 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17677 test ! -s conftest.err
17678 }; then
17679 ac_header_preproc=yes
17680 else
17681 echo "$as_me: failed program was:" >&5
17682 sed 's/^/| /' conftest.$ac_ext >&5
17683
17684 ac_header_preproc=no
17685 fi
17686
17687 rm -f conftest.err conftest.$ac_ext
17688 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17689 echo "${ECHO_T}$ac_header_preproc" >&6; }
17690
17691 # So? What about this header?
17692 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17693 yes:no: )
17694 { echo "$as_me:$LINENO: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&5
17695 echo "$as_me: WARNING: locale.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17696 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the compiler's result" >&5
17697 echo "$as_me: WARNING: locale.h: proceeding with the compiler's result" >&2;}
17698 ac_header_preproc=yes
17699 ;;
17700 no:yes:* )
17701 { echo "$as_me:$LINENO: WARNING: locale.h: present but cannot be compiled" >&5
17702 echo "$as_me: WARNING: locale.h: present but cannot be compiled" >&2;}
17703 { echo "$as_me:$LINENO: WARNING: locale.h: check for missing prerequisite headers?" >&5
17704 echo "$as_me: WARNING: locale.h: check for missing prerequisite headers?" >&2;}
17705 { echo "$as_me:$LINENO: WARNING: locale.h: see the Autoconf documentation" >&5
17706 echo "$as_me: WARNING: locale.h: see the Autoconf documentation" >&2;}
17707 { echo "$as_me:$LINENO: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&5
17708 echo "$as_me: WARNING: locale.h: section \"Present But Cannot Be Compiled\"" >&2;}
17709 { echo "$as_me:$LINENO: WARNING: locale.h: proceeding with the preprocessor's result" >&5
17710 echo "$as_me: WARNING: locale.h: proceeding with the preprocessor's result" >&2;}
17711 { echo "$as_me:$LINENO: WARNING: locale.h: in the future, the compiler will take precedence" >&5
17712 echo "$as_me: WARNING: locale.h: in the future, the compiler will take precedence" >&2;}
17713
17714 ;;
17715 esac
17716 { echo "$as_me:$LINENO: checking for locale.h" >&5
17717 echo $ECHO_N "checking for locale.h... $ECHO_C" >&6; }
17718 if test "${ac_cv_header_locale_h+set}" = set; then
17719 echo $ECHO_N "(cached) $ECHO_C" >&6
17720 else
17721 ac_cv_header_locale_h=$ac_header_preproc
17722 fi
17723 { echo "$as_me:$LINENO: result: $ac_cv_header_locale_h" >&5
17724 echo "${ECHO_T}$ac_cv_header_locale_h" >&6; }
17725
17726 fi
17727
17728
17729
17730 for ac_func in setlocale
17731 do
17732 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17733 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17734 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17735 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17736 echo $ECHO_N "(cached) $ECHO_C" >&6
17737 else
17738 cat >conftest.$ac_ext <<_ACEOF
17739 /* confdefs.h. */
17740 _ACEOF
17741 cat confdefs.h >>conftest.$ac_ext
17742 cat >>conftest.$ac_ext <<_ACEOF
17743 /* end confdefs.h. */
17744 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17745 For example, HP-UX 11i <limits.h> declares gettimeofday. */
17746 #define $ac_func innocuous_$ac_func
17747
17748 /* System header to define __stub macros and hopefully few prototypes,
17749 which can conflict with char $ac_func (); below.
17750 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17751 <limits.h> exists even on freestanding compilers. */
17752
17753 #ifdef __STDC__
17754 # include <limits.h>
17755 #else
17756 # include <assert.h>
17757 #endif
17758
17759 #undef $ac_func
17760
17761 /* Override any GCC internal prototype to avoid an error.
17762 Use char because int might match the return type of a GCC
17763 builtin and then its argument prototype would still apply. */
17764 #ifdef __cplusplus
17765 extern "C"
17766 #endif
17767 char $ac_func ();
17768 /* The GNU C library defines this for functions which it implements
17769 to always fail with ENOSYS. Some functions are actually named
17770 something starting with __ and the normal name is an alias. */
17771 #if defined __stub_$ac_func || defined __stub___$ac_func
17772 choke me
17773 #endif
17774
17775 int
17776 main ()
17777 {
17778 return $ac_func ();
17779 ;
17780 return 0;
17781 }
17782 _ACEOF
17783 rm -f conftest.$ac_objext conftest$ac_exeext
17784 if { (ac_try="$ac_link"
17785 case "(($ac_try" in
17786 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17787 *) ac_try_echo=$ac_try;;
17788 esac
17789 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17790 (eval "$ac_link") 2>conftest.er1
17791 ac_status=$?
17792 grep -v '^ *+' conftest.er1 >conftest.err
17793 rm -f conftest.er1
17794 cat conftest.err >&5
17795 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17796 (exit $ac_status); } && {
17797 test -z "$ac_c_werror_flag" ||
17798 test ! -s conftest.err
17799 } && test -s conftest$ac_exeext &&
17800 $as_test_x conftest$ac_exeext; then
17801 eval "$as_ac_var=yes"
17802 else
17803 echo "$as_me: failed program was:" >&5
17804 sed 's/^/| /' conftest.$ac_ext >&5
17805
17806 eval "$as_ac_var=no"
17807 fi
17808
17809 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
17810 conftest$ac_exeext conftest.$ac_ext
17811 fi
17812 ac_res=`eval echo '${'$as_ac_var'}'`
17813 { echo "$as_me:$LINENO: result: $ac_res" >&5
17814 echo "${ECHO_T}$ac_res" >&6; }
17815 if test `eval echo '${'$as_ac_var'}'` = yes; then
17816 cat >>confdefs.h <<_ACEOF
17817 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
17818 _ACEOF
17819
17820 fi
17821 done
17822
17823
17824 # We cannot check for <dwarf.h>, because Solaris 2 does not use dwarf (it
17825 # uses stabs), but it is still SVR4. We cannot check for <elf.h> because
17826 # Irix 4.0.5F has the header but not the library.
17827 if test $ac_have_func = no && test "$ac_cv_lib_elf_elf_begin" = yes; then
17828 ac_have_func=yes
17829
17830 cat >>confdefs.h <<\_ACEOF
17831 #define SVR4 1
17832 _ACEOF
17833
17834 fi
17835
17836 if test $ac_have_func = no; then
17837 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17838 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17839 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17840 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17841 echo $ECHO_N "(cached) $ECHO_C" >&6
17842 fi
17843 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17844 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17845 else
17846 # Is the header compilable?
17847 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h usability" >&5
17848 echo $ECHO_N "checking inq_stats/cpustats.h usability... $ECHO_C" >&6; }
17849 cat >conftest.$ac_ext <<_ACEOF
17850 /* confdefs.h. */
17851 _ACEOF
17852 cat confdefs.h >>conftest.$ac_ext
17853 cat >>conftest.$ac_ext <<_ACEOF
17854 /* end confdefs.h. */
17855 $ac_includes_default
17856 #include <inq_stats/cpustats.h>
17857 _ACEOF
17858 rm -f conftest.$ac_objext
17859 if { (ac_try="$ac_compile"
17860 case "(($ac_try" in
17861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17862 *) ac_try_echo=$ac_try;;
17863 esac
17864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17865 (eval "$ac_compile") 2>conftest.er1
17866 ac_status=$?
17867 grep -v '^ *+' conftest.er1 >conftest.err
17868 rm -f conftest.er1
17869 cat conftest.err >&5
17870 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17871 (exit $ac_status); } && {
17872 test -z "$ac_c_werror_flag" ||
17873 test ! -s conftest.err
17874 } && test -s conftest.$ac_objext; then
17875 ac_header_compiler=yes
17876 else
17877 echo "$as_me: failed program was:" >&5
17878 sed 's/^/| /' conftest.$ac_ext >&5
17879
17880 ac_header_compiler=no
17881 fi
17882
17883 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17884 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17885 echo "${ECHO_T}$ac_header_compiler" >&6; }
17886
17887 # Is the header present?
17888 { echo "$as_me:$LINENO: checking inq_stats/cpustats.h presence" >&5
17889 echo $ECHO_N "checking inq_stats/cpustats.h presence... $ECHO_C" >&6; }
17890 cat >conftest.$ac_ext <<_ACEOF
17891 /* confdefs.h. */
17892 _ACEOF
17893 cat confdefs.h >>conftest.$ac_ext
17894 cat >>conftest.$ac_ext <<_ACEOF
17895 /* end confdefs.h. */
17896 #include <inq_stats/cpustats.h>
17897 _ACEOF
17898 if { (ac_try="$ac_cpp conftest.$ac_ext"
17899 case "(($ac_try" in
17900 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17901 *) ac_try_echo=$ac_try;;
17902 esac
17903 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17904 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17905 ac_status=$?
17906 grep -v '^ *+' conftest.er1 >conftest.err
17907 rm -f conftest.er1
17908 cat conftest.err >&5
17909 echo "$as_me:$LINENO: \$? = $ac_status" >&5
17910 (exit $ac_status); } >/dev/null && {
17911 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
17912 test ! -s conftest.err
17913 }; then
17914 ac_header_preproc=yes
17915 else
17916 echo "$as_me: failed program was:" >&5
17917 sed 's/^/| /' conftest.$ac_ext >&5
17918
17919 ac_header_preproc=no
17920 fi
17921
17922 rm -f conftest.err conftest.$ac_ext
17923 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17924 echo "${ECHO_T}$ac_header_preproc" >&6; }
17925
17926 # So? What about this header?
17927 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17928 yes:no: )
17929 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
17930 echo "$as_me: WARNING: inq_stats/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
17931 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&5
17932 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the compiler's result" >&2;}
17933 ac_header_preproc=yes
17934 ;;
17935 no:yes:* )
17936 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&5
17937 echo "$as_me: WARNING: inq_stats/cpustats.h: present but cannot be compiled" >&2;}
17938 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&5
17939 echo "$as_me: WARNING: inq_stats/cpustats.h: check for missing prerequisite headers?" >&2;}
17940 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&5
17941 echo "$as_me: WARNING: inq_stats/cpustats.h: see the Autoconf documentation" >&2;}
17942 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
17943 echo "$as_me: WARNING: inq_stats/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
17944 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&5
17945 echo "$as_me: WARNING: inq_stats/cpustats.h: proceeding with the preprocessor's result" >&2;}
17946 { echo "$as_me:$LINENO: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&5
17947 echo "$as_me: WARNING: inq_stats/cpustats.h: in the future, the compiler will take precedence" >&2;}
17948
17949 ;;
17950 esac
17951 { echo "$as_me:$LINENO: checking for inq_stats/cpustats.h" >&5
17952 echo $ECHO_N "checking for inq_stats/cpustats.h... $ECHO_C" >&6; }
17953 if test "${ac_cv_header_inq_stats_cpustats_h+set}" = set; then
17954 echo $ECHO_N "(cached) $ECHO_C" >&6
17955 else
17956 ac_cv_header_inq_stats_cpustats_h=$ac_header_preproc
17957 fi
17958 { echo "$as_me:$LINENO: result: $ac_cv_header_inq_stats_cpustats_h" >&5
17959 echo "${ECHO_T}$ac_cv_header_inq_stats_cpustats_h" >&6; }
17960
17961 fi
17962 if test $ac_cv_header_inq_stats_cpustats_h = yes; then
17963 ac_have_func=yes
17964
17965 cat >>confdefs.h <<\_ACEOF
17966 #define UMAX 1
17967 _ACEOF
17968
17969
17970 cat >>confdefs.h <<\_ACEOF
17971 #define UMAX4_3 1
17972 _ACEOF
17973
17974 fi
17975
17976
17977 fi
17978
17979 if test $ac_have_func = no; then
17980 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17981 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
17982 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
17983 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
17984 echo $ECHO_N "(cached) $ECHO_C" >&6
17985 fi
17986 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
17987 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
17988 else
17989 # Is the header compilable?
17990 { echo "$as_me:$LINENO: checking sys/cpustats.h usability" >&5
17991 echo $ECHO_N "checking sys/cpustats.h usability... $ECHO_C" >&6; }
17992 cat >conftest.$ac_ext <<_ACEOF
17993 /* confdefs.h. */
17994 _ACEOF
17995 cat confdefs.h >>conftest.$ac_ext
17996 cat >>conftest.$ac_ext <<_ACEOF
17997 /* end confdefs.h. */
17998 $ac_includes_default
17999 #include <sys/cpustats.h>
18000 _ACEOF
18001 rm -f conftest.$ac_objext
18002 if { (ac_try="$ac_compile"
18003 case "(($ac_try" in
18004 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18005 *) ac_try_echo=$ac_try;;
18006 esac
18007 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18008 (eval "$ac_compile") 2>conftest.er1
18009 ac_status=$?
18010 grep -v '^ *+' conftest.er1 >conftest.err
18011 rm -f conftest.er1
18012 cat conftest.err >&5
18013 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18014 (exit $ac_status); } && {
18015 test -z "$ac_c_werror_flag" ||
18016 test ! -s conftest.err
18017 } && test -s conftest.$ac_objext; then
18018 ac_header_compiler=yes
18019 else
18020 echo "$as_me: failed program was:" >&5
18021 sed 's/^/| /' conftest.$ac_ext >&5
18022
18023 ac_header_compiler=no
18024 fi
18025
18026 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18027 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18028 echo "${ECHO_T}$ac_header_compiler" >&6; }
18029
18030 # Is the header present?
18031 { echo "$as_me:$LINENO: checking sys/cpustats.h presence" >&5
18032 echo $ECHO_N "checking sys/cpustats.h presence... $ECHO_C" >&6; }
18033 cat >conftest.$ac_ext <<_ACEOF
18034 /* confdefs.h. */
18035 _ACEOF
18036 cat confdefs.h >>conftest.$ac_ext
18037 cat >>conftest.$ac_ext <<_ACEOF
18038 /* end confdefs.h. */
18039 #include <sys/cpustats.h>
18040 _ACEOF
18041 if { (ac_try="$ac_cpp conftest.$ac_ext"
18042 case "(($ac_try" in
18043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18044 *) ac_try_echo=$ac_try;;
18045 esac
18046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18047 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18048 ac_status=$?
18049 grep -v '^ *+' conftest.er1 >conftest.err
18050 rm -f conftest.er1
18051 cat conftest.err >&5
18052 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18053 (exit $ac_status); } >/dev/null && {
18054 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18055 test ! -s conftest.err
18056 }; then
18057 ac_header_preproc=yes
18058 else
18059 echo "$as_me: failed program was:" >&5
18060 sed 's/^/| /' conftest.$ac_ext >&5
18061
18062 ac_header_preproc=no
18063 fi
18064
18065 rm -f conftest.err conftest.$ac_ext
18066 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18067 echo "${ECHO_T}$ac_header_preproc" >&6; }
18068
18069 # So? What about this header?
18070 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18071 yes:no: )
18072 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&5
18073 echo "$as_me: WARNING: sys/cpustats.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
18074 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&5
18075 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the compiler's result" >&2;}
18076 ac_header_preproc=yes
18077 ;;
18078 no:yes:* )
18079 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: present but cannot be compiled" >&5
18080 echo "$as_me: WARNING: sys/cpustats.h: present but cannot be compiled" >&2;}
18081 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&5
18082 echo "$as_me: WARNING: sys/cpustats.h: check for missing prerequisite headers?" >&2;}
18083 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: see the Autoconf documentation" >&5
18084 echo "$as_me: WARNING: sys/cpustats.h: see the Autoconf documentation" >&2;}
18085 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&5
18086 echo "$as_me: WARNING: sys/cpustats.h: section \"Present But Cannot Be Compiled\"" >&2;}
18087 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&5
18088 echo "$as_me: WARNING: sys/cpustats.h: proceeding with the preprocessor's result" >&2;}
18089 { echo "$as_me:$LINENO: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&5
18090 echo "$as_me: WARNING: sys/cpustats.h: in the future, the compiler will take precedence" >&2;}
18091
18092 ;;
18093 esac
18094 { echo "$as_me:$LINENO: checking for sys/cpustats.h" >&5
18095 echo $ECHO_N "checking for sys/cpustats.h... $ECHO_C" >&6; }
18096 if test "${ac_cv_header_sys_cpustats_h+set}" = set; then
18097 echo $ECHO_N "(cached) $ECHO_C" >&6
18098 else
18099 ac_cv_header_sys_cpustats_h=$ac_header_preproc
18100 fi
18101 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_cpustats_h" >&5
18102 echo "${ECHO_T}$ac_cv_header_sys_cpustats_h" >&6; }
18103
18104 fi
18105 if test $ac_cv_header_sys_cpustats_h = yes; then
18106 ac_have_func=yes; cat >>confdefs.h <<\_ACEOF
18107 #define UMAX 1
18108 _ACEOF
18109
18110 fi
18111
18112
18113 fi
18114
18115 if test $ac_have_func = no; then
18116
18117 for ac_header in mach/mach.h
18118 do
18119 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18120 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18121 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18122 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18123 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18124 echo $ECHO_N "(cached) $ECHO_C" >&6
18125 fi
18126 ac_res=`eval echo '${'$as_ac_Header'}'`
18127 { echo "$as_me:$LINENO: result: $ac_res" >&5
18128 echo "${ECHO_T}$ac_res" >&6; }
18129 else
18130 # Is the header compilable?
18131 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18132 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18133 cat >conftest.$ac_ext <<_ACEOF
18134 /* confdefs.h. */
18135 _ACEOF
18136 cat confdefs.h >>conftest.$ac_ext
18137 cat >>conftest.$ac_ext <<_ACEOF
18138 /* end confdefs.h. */
18139 $ac_includes_default
18140 #include <$ac_header>
18141 _ACEOF
18142 rm -f conftest.$ac_objext
18143 if { (ac_try="$ac_compile"
18144 case "(($ac_try" in
18145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18146 *) ac_try_echo=$ac_try;;
18147 esac
18148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18149 (eval "$ac_compile") 2>conftest.er1
18150 ac_status=$?
18151 grep -v '^ *+' conftest.er1 >conftest.err
18152 rm -f conftest.er1
18153 cat conftest.err >&5
18154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18155 (exit $ac_status); } && {
18156 test -z "$ac_c_werror_flag" ||
18157 test ! -s conftest.err
18158 } && test -s conftest.$ac_objext; then
18159 ac_header_compiler=yes
18160 else
18161 echo "$as_me: failed program was:" >&5
18162 sed 's/^/| /' conftest.$ac_ext >&5
18163
18164 ac_header_compiler=no
18165 fi
18166
18167 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18168 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18169 echo "${ECHO_T}$ac_header_compiler" >&6; }
18170
18171 # Is the header present?
18172 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18173 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18174 cat >conftest.$ac_ext <<_ACEOF
18175 /* confdefs.h. */
18176 _ACEOF
18177 cat confdefs.h >>conftest.$ac_ext
18178 cat >>conftest.$ac_ext <<_ACEOF
18179 /* end confdefs.h. */
18180 #include <$ac_header>
18181 _ACEOF
18182 if { (ac_try="$ac_cpp conftest.$ac_ext"
18183 case "(($ac_try" in
18184 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18185 *) ac_try_echo=$ac_try;;
18186 esac
18187 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18188 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18189 ac_status=$?
18190 grep -v '^ *+' conftest.er1 >conftest.err
18191 rm -f conftest.er1
18192 cat conftest.err >&5
18193 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18194 (exit $ac_status); } >/dev/null && {
18195 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18196 test ! -s conftest.err
18197 }; then
18198 ac_header_preproc=yes
18199 else
18200 echo "$as_me: failed program was:" >&5
18201 sed 's/^/| /' conftest.$ac_ext >&5
18202
18203 ac_header_preproc=no
18204 fi
18205
18206 rm -f conftest.err conftest.$ac_ext
18207 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18208 echo "${ECHO_T}$ac_header_preproc" >&6; }
18209
18210 # So? What about this header?
18211 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18212 yes:no: )
18213 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18214 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18215 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18216 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18217 ac_header_preproc=yes
18218 ;;
18219 no:yes:* )
18220 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18221 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18222 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18223 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18224 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18225 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18226 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18227 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18228 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18229 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18230 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18231 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18232
18233 ;;
18234 esac
18235 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18236 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18237 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18238 echo $ECHO_N "(cached) $ECHO_C" >&6
18239 else
18240 eval "$as_ac_Header=\$ac_header_preproc"
18241 fi
18242 ac_res=`eval echo '${'$as_ac_Header'}'`
18243 { echo "$as_me:$LINENO: result: $ac_res" >&5
18244 echo "${ECHO_T}$ac_res" >&6; }
18245
18246 fi
18247 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18248 cat >>confdefs.h <<_ACEOF
18249 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18250 _ACEOF
18251
18252 fi
18253
18254 done
18255
18256 fi
18257
18258
18259 for ac_header in nlist.h
18260 do
18261 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18262 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18263 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18264 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18265 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18266 echo $ECHO_N "(cached) $ECHO_C" >&6
18267 fi
18268 ac_res=`eval echo '${'$as_ac_Header'}'`
18269 { echo "$as_me:$LINENO: result: $ac_res" >&5
18270 echo "${ECHO_T}$ac_res" >&6; }
18271 else
18272 # Is the header compilable?
18273 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18274 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18275 cat >conftest.$ac_ext <<_ACEOF
18276 /* confdefs.h. */
18277 _ACEOF
18278 cat confdefs.h >>conftest.$ac_ext
18279 cat >>conftest.$ac_ext <<_ACEOF
18280 /* end confdefs.h. */
18281 $ac_includes_default
18282 #include <$ac_header>
18283 _ACEOF
18284 rm -f conftest.$ac_objext
18285 if { (ac_try="$ac_compile"
18286 case "(($ac_try" in
18287 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18288 *) ac_try_echo=$ac_try;;
18289 esac
18290 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18291 (eval "$ac_compile") 2>conftest.er1
18292 ac_status=$?
18293 grep -v '^ *+' conftest.er1 >conftest.err
18294 rm -f conftest.er1
18295 cat conftest.err >&5
18296 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18297 (exit $ac_status); } && {
18298 test -z "$ac_c_werror_flag" ||
18299 test ! -s conftest.err
18300 } && test -s conftest.$ac_objext; then
18301 ac_header_compiler=yes
18302 else
18303 echo "$as_me: failed program was:" >&5
18304 sed 's/^/| /' conftest.$ac_ext >&5
18305
18306 ac_header_compiler=no
18307 fi
18308
18309 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18310 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18311 echo "${ECHO_T}$ac_header_compiler" >&6; }
18312
18313 # Is the header present?
18314 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18315 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18316 cat >conftest.$ac_ext <<_ACEOF
18317 /* confdefs.h. */
18318 _ACEOF
18319 cat confdefs.h >>conftest.$ac_ext
18320 cat >>conftest.$ac_ext <<_ACEOF
18321 /* end confdefs.h. */
18322 #include <$ac_header>
18323 _ACEOF
18324 if { (ac_try="$ac_cpp conftest.$ac_ext"
18325 case "(($ac_try" in
18326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18327 *) ac_try_echo=$ac_try;;
18328 esac
18329 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18330 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18331 ac_status=$?
18332 grep -v '^ *+' conftest.er1 >conftest.err
18333 rm -f conftest.er1
18334 cat conftest.err >&5
18335 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18336 (exit $ac_status); } >/dev/null && {
18337 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18338 test ! -s conftest.err
18339 }; then
18340 ac_header_preproc=yes
18341 else
18342 echo "$as_me: failed program was:" >&5
18343 sed 's/^/| /' conftest.$ac_ext >&5
18344
18345 ac_header_preproc=no
18346 fi
18347
18348 rm -f conftest.err conftest.$ac_ext
18349 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18350 echo "${ECHO_T}$ac_header_preproc" >&6; }
18351
18352 # So? What about this header?
18353 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18354 yes:no: )
18355 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18356 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18357 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18358 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18359 ac_header_preproc=yes
18360 ;;
18361 no:yes:* )
18362 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18363 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18364 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18365 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18366 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18367 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18368 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18369 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18370 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18371 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18372 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18373 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18374
18375 ;;
18376 esac
18377 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18378 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18379 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18380 echo $ECHO_N "(cached) $ECHO_C" >&6
18381 else
18382 eval "$as_ac_Header=\$ac_header_preproc"
18383 fi
18384 ac_res=`eval echo '${'$as_ac_Header'}'`
18385 { echo "$as_me:$LINENO: result: $ac_res" >&5
18386 echo "${ECHO_T}$ac_res" >&6; }
18387
18388 fi
18389 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18390 cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18392 _ACEOF
18393 { echo "$as_me:$LINENO: checking for struct nlist.n_un.n_name" >&5
18394 echo $ECHO_N "checking for struct nlist.n_un.n_name... $ECHO_C" >&6; }
18395 if test "${ac_cv_member_struct_nlist_n_un_n_name+set}" = set; then
18396 echo $ECHO_N "(cached) $ECHO_C" >&6
18397 else
18398 cat >conftest.$ac_ext <<_ACEOF
18399 /* confdefs.h. */
18400 _ACEOF
18401 cat confdefs.h >>conftest.$ac_ext
18402 cat >>conftest.$ac_ext <<_ACEOF
18403 /* end confdefs.h. */
18404 #include <nlist.h>
18405
18406 int
18407 main ()
18408 {
18409 static struct nlist ac_aggr;
18410 if (ac_aggr.n_un.n_name)
18411 return 0;
18412 ;
18413 return 0;
18414 }
18415 _ACEOF
18416 rm -f conftest.$ac_objext
18417 if { (ac_try="$ac_compile"
18418 case "(($ac_try" in
18419 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18420 *) ac_try_echo=$ac_try;;
18421 esac
18422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18423 (eval "$ac_compile") 2>conftest.er1
18424 ac_status=$?
18425 grep -v '^ *+' conftest.er1 >conftest.err
18426 rm -f conftest.er1
18427 cat conftest.err >&5
18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18429 (exit $ac_status); } && {
18430 test -z "$ac_c_werror_flag" ||
18431 test ! -s conftest.err
18432 } && test -s conftest.$ac_objext; then
18433 ac_cv_member_struct_nlist_n_un_n_name=yes
18434 else
18435 echo "$as_me: failed program was:" >&5
18436 sed 's/^/| /' conftest.$ac_ext >&5
18437
18438 cat >conftest.$ac_ext <<_ACEOF
18439 /* confdefs.h. */
18440 _ACEOF
18441 cat confdefs.h >>conftest.$ac_ext
18442 cat >>conftest.$ac_ext <<_ACEOF
18443 /* end confdefs.h. */
18444 #include <nlist.h>
18445
18446 int
18447 main ()
18448 {
18449 static struct nlist ac_aggr;
18450 if (sizeof ac_aggr.n_un.n_name)
18451 return 0;
18452 ;
18453 return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext
18457 if { (ac_try="$ac_compile"
18458 case "(($ac_try" in
18459 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460 *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463 (eval "$ac_compile") 2>conftest.er1
18464 ac_status=$?
18465 grep -v '^ *+' conftest.er1 >conftest.err
18466 rm -f conftest.er1
18467 cat conftest.err >&5
18468 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469 (exit $ac_status); } && {
18470 test -z "$ac_c_werror_flag" ||
18471 test ! -s conftest.err
18472 } && test -s conftest.$ac_objext; then
18473 ac_cv_member_struct_nlist_n_un_n_name=yes
18474 else
18475 echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478 ac_cv_member_struct_nlist_n_un_n_name=no
18479 fi
18480
18481 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18482 fi
18483
18484 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18485 fi
18486 { echo "$as_me:$LINENO: result: $ac_cv_member_struct_nlist_n_un_n_name" >&5
18487 echo "${ECHO_T}$ac_cv_member_struct_nlist_n_un_n_name" >&6; }
18488 if test $ac_cv_member_struct_nlist_n_un_n_name = yes; then
18489
18490 cat >>confdefs.h <<_ACEOF
18491 #define HAVE_STRUCT_NLIST_N_UN_N_NAME 1
18492 _ACEOF
18493
18494
18495 cat >>confdefs.h <<\_ACEOF
18496 #define NLIST_NAME_UNION 1
18497 _ACEOF
18498
18499 fi
18500
18501
18502 fi
18503
18504 done
18505
18506 fi
18507 done
18508
18509
18510 # Some definitions of getloadavg require that the program be installed setgid.
18511 { echo "$as_me:$LINENO: checking whether getloadavg requires setgid" >&5
18512 echo $ECHO_N "checking whether getloadavg requires setgid... $ECHO_C" >&6; }
18513 if test "${ac_cv_func_getloadavg_setgid+set}" = set; then
18514 echo $ECHO_N "(cached) $ECHO_C" >&6
18515 else
18516 cat >conftest.$ac_ext <<_ACEOF
18517 /* confdefs.h. */
18518 _ACEOF
18519 cat confdefs.h >>conftest.$ac_ext
18520 cat >>conftest.$ac_ext <<_ACEOF
18521 /* end confdefs.h. */
18522 #include "$srcdir/$ac_config_libobj_dir/getloadavg.c"
18523 #ifdef LDAV_PRIVILEGED
18524 Yowza Am I SETGID yet
18525 #endif
18526 _ACEOF
18527 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
18528 $EGREP "Yowza Am I SETGID yet" >/dev/null 2>&1; then
18529 ac_cv_func_getloadavg_setgid=yes
18530 else
18531 ac_cv_func_getloadavg_setgid=no
18532 fi
18533 rm -f conftest*
18534
18535 fi
18536 { echo "$as_me:$LINENO: result: $ac_cv_func_getloadavg_setgid" >&5
18537 echo "${ECHO_T}$ac_cv_func_getloadavg_setgid" >&6; }
18538 if test $ac_cv_func_getloadavg_setgid = yes; then
18539 NEED_SETGID=true
18540
18541 cat >>confdefs.h <<\_ACEOF
18542 #define GETLOADAVG_PRIVILEGED 1
18543 _ACEOF
18544
18545 else
18546 NEED_SETGID=false
18547 fi
18548
18549 if test $ac_cv_func_getloadavg_setgid = yes; then
18550 { echo "$as_me:$LINENO: checking group of /dev/kmem" >&5
18551 echo $ECHO_N "checking group of /dev/kmem... $ECHO_C" >&6; }
18552 if test "${ac_cv_group_kmem+set}" = set; then
18553 echo $ECHO_N "(cached) $ECHO_C" >&6
18554 else
18555 # On Solaris, /dev/kmem is a symlink. Get info on the real file.
18556 ac_ls_output=`ls -lgL /dev/kmem 2>/dev/null`
18557 # If we got an error (system does not support symlinks), try without -L.
18558 test -z "$ac_ls_output" && ac_ls_output=`ls -lg /dev/kmem`
18559 ac_cv_group_kmem=`echo $ac_ls_output \
18560 | sed -ne 's/[ ][ ]*/ /g;
18561 s/^.[sSrwx-]* *[0-9]* *\([^0-9]*\) *.*/\1/;
18562 / /s/.* //;p;'`
18563
18564 fi
18565 { echo "$as_me:$LINENO: result: $ac_cv_group_kmem" >&5
18566 echo "${ECHO_T}$ac_cv_group_kmem" >&6; }
18567 KMEM_GROUP=$ac_cv_group_kmem
18568 fi
18569 if test "x$ac_save_LIBS" = x; then
18570 GETLOADAVG_LIBS=$LIBS
18571 else
18572 GETLOADAVG_LIBS=`echo "$LIBS" | sed "s!$ac_save_LIBS!!"`
18573 fi
18574 LIBS=$ac_save_LIBS
18575
18576
18577
18578 { echo "$as_me:$LINENO: checking for _LARGEFILE_SOURCE value needed for large files" >&5
18579 echo $ECHO_N "checking for _LARGEFILE_SOURCE value needed for large files... $ECHO_C" >&6; }
18580 if test "${ac_cv_sys_largefile_source+set}" = set; then
18581 echo $ECHO_N "(cached) $ECHO_C" >&6
18582 else
18583 while :; do
18584 cat >conftest.$ac_ext <<_ACEOF
18585 /* confdefs.h. */
18586 _ACEOF
18587 cat confdefs.h >>conftest.$ac_ext
18588 cat >>conftest.$ac_ext <<_ACEOF
18589 /* end confdefs.h. */
18590 #include <stdio.h>
18591 int
18592 main ()
18593 {
18594 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18595 ;
18596 return 0;
18597 }
18598 _ACEOF
18599 rm -f conftest.$ac_objext conftest$ac_exeext
18600 if { (ac_try="$ac_link"
18601 case "(($ac_try" in
18602 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18603 *) ac_try_echo=$ac_try;;
18604 esac
18605 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18606 (eval "$ac_link") 2>conftest.er1
18607 ac_status=$?
18608 grep -v '^ *+' conftest.er1 >conftest.err
18609 rm -f conftest.er1
18610 cat conftest.err >&5
18611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18612 (exit $ac_status); } && {
18613 test -z "$ac_c_werror_flag" ||
18614 test ! -s conftest.err
18615 } && test -s conftest$ac_exeext &&
18616 $as_test_x conftest$ac_exeext; then
18617 ac_cv_sys_largefile_source=no; break
18618 else
18619 echo "$as_me: failed program was:" >&5
18620 sed 's/^/| /' conftest.$ac_ext >&5
18621
18622
18623 fi
18624
18625 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18626 conftest$ac_exeext conftest.$ac_ext
18627 cat >conftest.$ac_ext <<_ACEOF
18628 /* confdefs.h. */
18629 _ACEOF
18630 cat confdefs.h >>conftest.$ac_ext
18631 cat >>conftest.$ac_ext <<_ACEOF
18632 /* end confdefs.h. */
18633 #define _LARGEFILE_SOURCE 1
18634 #include <stdio.h>
18635 int
18636 main ()
18637 {
18638 return fseeko (stdin, 0, 0) && (fseeko) (stdin, 0, 0);
18639 ;
18640 return 0;
18641 }
18642 _ACEOF
18643 rm -f conftest.$ac_objext conftest$ac_exeext
18644 if { (ac_try="$ac_link"
18645 case "(($ac_try" in
18646 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18647 *) ac_try_echo=$ac_try;;
18648 esac
18649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18650 (eval "$ac_link") 2>conftest.er1
18651 ac_status=$?
18652 grep -v '^ *+' conftest.er1 >conftest.err
18653 rm -f conftest.er1
18654 cat conftest.err >&5
18655 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18656 (exit $ac_status); } && {
18657 test -z "$ac_c_werror_flag" ||
18658 test ! -s conftest.err
18659 } && test -s conftest$ac_exeext &&
18660 $as_test_x conftest$ac_exeext; then
18661 ac_cv_sys_largefile_source=1; break
18662 else
18663 echo "$as_me: failed program was:" >&5
18664 sed 's/^/| /' conftest.$ac_ext >&5
18665
18666
18667 fi
18668
18669 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18670 conftest$ac_exeext conftest.$ac_ext
18671 ac_cv_sys_largefile_source=unknown
18672 break
18673 done
18674 fi
18675 { echo "$as_me:$LINENO: result: $ac_cv_sys_largefile_source" >&5
18676 echo "${ECHO_T}$ac_cv_sys_largefile_source" >&6; }
18677 case $ac_cv_sys_largefile_source in #(
18678 no | unknown) ;;
18679 *)
18680 cat >>confdefs.h <<_ACEOF
18681 #define _LARGEFILE_SOURCE $ac_cv_sys_largefile_source
18682 _ACEOF
18683 ;;
18684 esac
18685 rm -f conftest*
18686
18687 # We used to try defining _XOPEN_SOURCE=500 too, to work around a bug
18688 # in glibc 2.1.3, but that breaks too many other things.
18689 # If you want fseeko and ftello with glibc, upgrade to a fixed glibc.
18690 if test $ac_cv_sys_largefile_source != unknown; then
18691
18692 cat >>confdefs.h <<\_ACEOF
18693 #define HAVE_FSEEKO 1
18694 _ACEOF
18695
18696 fi
18697
18698
18699 # Configure getopt.
18700 # getopt.m4 serial 10
18701
18702 # The getopt module assume you want GNU getopt, with getopt_long etc,
18703 # rather than vanilla POSIX getopt. This means your your code should
18704 # always include <getopt.h> for the getopt prototypes.
18705
18706
18707
18708
18709
18710
18711
18712
18713
18714
18715
18716 # Prerequisites of lib/getopt*.
18717
18718
18719
18720
18721 GETOPT_H=
18722
18723 for ac_header in getopt.h
18724 do
18725 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
18726 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18727 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18728 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18729 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18730 echo $ECHO_N "(cached) $ECHO_C" >&6
18731 fi
18732 ac_res=`eval echo '${'$as_ac_Header'}'`
18733 { echo "$as_me:$LINENO: result: $ac_res" >&5
18734 echo "${ECHO_T}$ac_res" >&6; }
18735 else
18736 # Is the header compilable?
18737 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
18738 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
18739 cat >conftest.$ac_ext <<_ACEOF
18740 /* confdefs.h. */
18741 _ACEOF
18742 cat confdefs.h >>conftest.$ac_ext
18743 cat >>conftest.$ac_ext <<_ACEOF
18744 /* end confdefs.h. */
18745 $ac_includes_default
18746 #include <$ac_header>
18747 _ACEOF
18748 rm -f conftest.$ac_objext
18749 if { (ac_try="$ac_compile"
18750 case "(($ac_try" in
18751 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18752 *) ac_try_echo=$ac_try;;
18753 esac
18754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18755 (eval "$ac_compile") 2>conftest.er1
18756 ac_status=$?
18757 grep -v '^ *+' conftest.er1 >conftest.err
18758 rm -f conftest.er1
18759 cat conftest.err >&5
18760 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18761 (exit $ac_status); } && {
18762 test -z "$ac_c_werror_flag" ||
18763 test ! -s conftest.err
18764 } && test -s conftest.$ac_objext; then
18765 ac_header_compiler=yes
18766 else
18767 echo "$as_me: failed program was:" >&5
18768 sed 's/^/| /' conftest.$ac_ext >&5
18769
18770 ac_header_compiler=no
18771 fi
18772
18773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18774 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
18775 echo "${ECHO_T}$ac_header_compiler" >&6; }
18776
18777 # Is the header present?
18778 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
18779 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
18780 cat >conftest.$ac_ext <<_ACEOF
18781 /* confdefs.h. */
18782 _ACEOF
18783 cat confdefs.h >>conftest.$ac_ext
18784 cat >>conftest.$ac_ext <<_ACEOF
18785 /* end confdefs.h. */
18786 #include <$ac_header>
18787 _ACEOF
18788 if { (ac_try="$ac_cpp conftest.$ac_ext"
18789 case "(($ac_try" in
18790 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18791 *) ac_try_echo=$ac_try;;
18792 esac
18793 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18794 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
18795 ac_status=$?
18796 grep -v '^ *+' conftest.er1 >conftest.err
18797 rm -f conftest.er1
18798 cat conftest.err >&5
18799 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18800 (exit $ac_status); } >/dev/null && {
18801 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
18802 test ! -s conftest.err
18803 }; then
18804 ac_header_preproc=yes
18805 else
18806 echo "$as_me: failed program was:" >&5
18807 sed 's/^/| /' conftest.$ac_ext >&5
18808
18809 ac_header_preproc=no
18810 fi
18811
18812 rm -f conftest.err conftest.$ac_ext
18813 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
18814 echo "${ECHO_T}$ac_header_preproc" >&6; }
18815
18816 # So? What about this header?
18817 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
18818 yes:no: )
18819 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
18820 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
18821 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
18822 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
18823 ac_header_preproc=yes
18824 ;;
18825 no:yes:* )
18826 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
18827 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
18828 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
18829 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
18830 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
18831 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
18832 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
18833 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
18834 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
18835 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
18836 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
18837 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
18838
18839 ;;
18840 esac
18841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
18842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
18843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
18844 echo $ECHO_N "(cached) $ECHO_C" >&6
18845 else
18846 eval "$as_ac_Header=\$ac_header_preproc"
18847 fi
18848 ac_res=`eval echo '${'$as_ac_Header'}'`
18849 { echo "$as_me:$LINENO: result: $ac_res" >&5
18850 echo "${ECHO_T}$ac_res" >&6; }
18851
18852 fi
18853 if test `eval echo '${'$as_ac_Header'}'` = yes; then
18854 cat >>confdefs.h <<_ACEOF
18855 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
18856 _ACEOF
18857
18858 else
18859 GETOPT_H=getopt.h
18860 fi
18861
18862 done
18863
18864 if test -z "$GETOPT_H"; then
18865
18866 for ac_func in getopt_long_only
18867 do
18868 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18869 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18870 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18871 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18872 echo $ECHO_N "(cached) $ECHO_C" >&6
18873 else
18874 cat >conftest.$ac_ext <<_ACEOF
18875 /* confdefs.h. */
18876 _ACEOF
18877 cat confdefs.h >>conftest.$ac_ext
18878 cat >>conftest.$ac_ext <<_ACEOF
18879 /* end confdefs.h. */
18880 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18881 For example, HP-UX 11i <limits.h> declares gettimeofday. */
18882 #define $ac_func innocuous_$ac_func
18883
18884 /* System header to define __stub macros and hopefully few prototypes,
18885 which can conflict with char $ac_func (); below.
18886 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18887 <limits.h> exists even on freestanding compilers. */
18888
18889 #ifdef __STDC__
18890 # include <limits.h>
18891 #else
18892 # include <assert.h>
18893 #endif
18894
18895 #undef $ac_func
18896
18897 /* Override any GCC internal prototype to avoid an error.
18898 Use char because int might match the return type of a GCC
18899 builtin and then its argument prototype would still apply. */
18900 #ifdef __cplusplus
18901 extern "C"
18902 #endif
18903 char $ac_func ();
18904 /* The GNU C library defines this for functions which it implements
18905 to always fail with ENOSYS. Some functions are actually named
18906 something starting with __ and the normal name is an alias. */
18907 #if defined __stub_$ac_func || defined __stub___$ac_func
18908 choke me
18909 #endif
18910
18911 int
18912 main ()
18913 {
18914 return $ac_func ();
18915 ;
18916 return 0;
18917 }
18918 _ACEOF
18919 rm -f conftest.$ac_objext conftest$ac_exeext
18920 if { (ac_try="$ac_link"
18921 case "(($ac_try" in
18922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18923 *) ac_try_echo=$ac_try;;
18924 esac
18925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18926 (eval "$ac_link") 2>conftest.er1
18927 ac_status=$?
18928 grep -v '^ *+' conftest.er1 >conftest.err
18929 rm -f conftest.er1
18930 cat conftest.err >&5
18931 echo "$as_me:$LINENO: \$? = $ac_status" >&5
18932 (exit $ac_status); } && {
18933 test -z "$ac_c_werror_flag" ||
18934 test ! -s conftest.err
18935 } && test -s conftest$ac_exeext &&
18936 $as_test_x conftest$ac_exeext; then
18937 eval "$as_ac_var=yes"
18938 else
18939 echo "$as_me: failed program was:" >&5
18940 sed 's/^/| /' conftest.$ac_ext >&5
18941
18942 eval "$as_ac_var=no"
18943 fi
18944
18945 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
18946 conftest$ac_exeext conftest.$ac_ext
18947 fi
18948 ac_res=`eval echo '${'$as_ac_var'}'`
18949 { echo "$as_me:$LINENO: result: $ac_res" >&5
18950 echo "${ECHO_T}$ac_res" >&6; }
18951 if test `eval echo '${'$as_ac_var'}'` = yes; then
18952 cat >>confdefs.h <<_ACEOF
18953 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18954 _ACEOF
18955
18956 else
18957 GETOPT_H=getopt.h
18958 fi
18959 done
18960
18961 fi
18962
18963 if test -z "$GETOPT_H"; then
18964 { echo "$as_me:$LINENO: checking whether optreset is declared" >&5
18965 echo $ECHO_N "checking whether optreset is declared... $ECHO_C" >&6; }
18966 if test "${ac_cv_have_decl_optreset+set}" = set; then
18967 echo $ECHO_N "(cached) $ECHO_C" >&6
18968 else
18969 cat >conftest.$ac_ext <<_ACEOF
18970 /* confdefs.h. */
18971 _ACEOF
18972 cat confdefs.h >>conftest.$ac_ext
18973 cat >>conftest.$ac_ext <<_ACEOF
18974 /* end confdefs.h. */
18975 #include <getopt.h>
18976
18977 int
18978 main ()
18979 {
18980 #ifndef optreset
18981 (void) optreset;
18982 #endif
18983
18984 ;
18985 return 0;
18986 }
18987 _ACEOF
18988 rm -f conftest.$ac_objext
18989 if { (ac_try="$ac_compile"
18990 case "(($ac_try" in
18991 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18992 *) ac_try_echo=$ac_try;;
18993 esac
18994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18995 (eval "$ac_compile") 2>conftest.er1
18996 ac_status=$?
18997 grep -v '^ *+' conftest.er1 >conftest.err
18998 rm -f conftest.er1
18999 cat conftest.err >&5
19000 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19001 (exit $ac_status); } && {
19002 test -z "$ac_c_werror_flag" ||
19003 test ! -s conftest.err
19004 } && test -s conftest.$ac_objext; then
19005 ac_cv_have_decl_optreset=yes
19006 else
19007 echo "$as_me: failed program was:" >&5
19008 sed 's/^/| /' conftest.$ac_ext >&5
19009
19010 ac_cv_have_decl_optreset=no
19011 fi
19012
19013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19014 fi
19015 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_optreset" >&5
19016 echo "${ECHO_T}$ac_cv_have_decl_optreset" >&6; }
19017 if test $ac_cv_have_decl_optreset = yes; then
19018 GETOPT_H=getopt.h
19019 fi
19020
19021 fi
19022
19023 if test -z "$GETOPT_H"; then
19024 { echo "$as_me:$LINENO: checking for working GNU getopt function" >&5
19025 echo $ECHO_N "checking for working GNU getopt function... $ECHO_C" >&6; }
19026 if test "${gl_cv_func_gnu_getopt+set}" = set; then
19027 echo $ECHO_N "(cached) $ECHO_C" >&6
19028 else
19029 if test "$cross_compiling" = yes; then
19030 { echo "$as_me:$LINENO: checking whether getopt_clip is declared" >&5
19031 echo $ECHO_N "checking whether getopt_clip is declared... $ECHO_C" >&6; }
19032 if test "${ac_cv_have_decl_getopt_clip+set}" = set; then
19033 echo $ECHO_N "(cached) $ECHO_C" >&6
19034 else
19035 cat >conftest.$ac_ext <<_ACEOF
19036 /* confdefs.h. */
19037 _ACEOF
19038 cat confdefs.h >>conftest.$ac_ext
19039 cat >>conftest.$ac_ext <<_ACEOF
19040 /* end confdefs.h. */
19041 #include <getopt.h>
19042
19043 int
19044 main ()
19045 {
19046 #ifndef getopt_clip
19047 (void) getopt_clip;
19048 #endif
19049
19050 ;
19051 return 0;
19052 }
19053 _ACEOF
19054 rm -f conftest.$ac_objext
19055 if { (ac_try="$ac_compile"
19056 case "(($ac_try" in
19057 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19058 *) ac_try_echo=$ac_try;;
19059 esac
19060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19061 (eval "$ac_compile") 2>conftest.er1
19062 ac_status=$?
19063 grep -v '^ *+' conftest.er1 >conftest.err
19064 rm -f conftest.er1
19065 cat conftest.err >&5
19066 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067 (exit $ac_status); } && {
19068 test -z "$ac_c_werror_flag" ||
19069 test ! -s conftest.err
19070 } && test -s conftest.$ac_objext; then
19071 ac_cv_have_decl_getopt_clip=yes
19072 else
19073 echo "$as_me: failed program was:" >&5
19074 sed 's/^/| /' conftest.$ac_ext >&5
19075
19076 ac_cv_have_decl_getopt_clip=no
19077 fi
19078
19079 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19080 fi
19081 { echo "$as_me:$LINENO: result: $ac_cv_have_decl_getopt_clip" >&5
19082 echo "${ECHO_T}$ac_cv_have_decl_getopt_clip" >&6; }
19083 if test $ac_cv_have_decl_getopt_clip = yes; then
19084 gl_cv_func_gnu_getopt=no
19085 else
19086 gl_cv_func_gnu_getopt=yes
19087 fi
19088
19089 else
19090 cat >conftest.$ac_ext <<_ACEOF
19091 /* confdefs.h. */
19092 _ACEOF
19093 cat confdefs.h >>conftest.$ac_ext
19094 cat >>conftest.$ac_ext <<_ACEOF
19095 /* end confdefs.h. */
19096 #include <getopt.h>
19097 int
19098 main ()
19099 {
19100
19101 char *myargv[3];
19102 myargv[0] = "conftest";
19103 myargv[1] = "-+";
19104 myargv[2] = 0;
19105 return getopt (2, myargv, "+a") != '?';
19106
19107 ;
19108 return 0;
19109 }
19110 _ACEOF
19111 rm -f conftest$ac_exeext
19112 if { (ac_try="$ac_link"
19113 case "(($ac_try" in
19114 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19115 *) ac_try_echo=$ac_try;;
19116 esac
19117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19118 (eval "$ac_link") 2>&5
19119 ac_status=$?
19120 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19121 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
19122 { (case "(($ac_try" in
19123 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19124 *) ac_try_echo=$ac_try;;
19125 esac
19126 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19127 (eval "$ac_try") 2>&5
19128 ac_status=$?
19129 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19130 (exit $ac_status); }; }; then
19131 gl_cv_func_gnu_getopt=yes
19132 else
19133 echo "$as_me: program exited with status $ac_status" >&5
19134 echo "$as_me: failed program was:" >&5
19135 sed 's/^/| /' conftest.$ac_ext >&5
19136
19137 ( exit $ac_status )
19138 gl_cv_func_gnu_getopt=no
19139 fi
19140 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
19141 fi
19142
19143
19144 fi
19145 { echo "$as_me:$LINENO: result: $gl_cv_func_gnu_getopt" >&5
19146 echo "${ECHO_T}$gl_cv_func_gnu_getopt" >&6; }
19147 if test "$gl_cv_func_gnu_getopt" = "no"; then
19148 GETOPT_H=getopt.h
19149 fi
19150 fi
19151
19152
19153
19154 if test -n "$GETOPT_H"; then
19155
19156
19157 GETOPT_H=getopt.h
19158
19159 cat >>confdefs.h <<\_ACEOF
19160 #define __GETOPT_PREFIX rpl_
19161 _ACEOF
19162
19163
19164
19165 :
19166 GETOPTOBJS='getopt.o getopt1.o'
19167
19168 fi
19169
19170
19171
19172
19173 { echo "$as_me:$LINENO: checking whether getpgrp requires zero arguments" >&5
19174 echo $ECHO_N "checking whether getpgrp requires zero arguments... $ECHO_C" >&6; }
19175 if test "${ac_cv_func_getpgrp_void+set}" = set; then
19176 echo $ECHO_N "(cached) $ECHO_C" >&6
19177 else
19178 # Use it with a single arg.
19179 cat >conftest.$ac_ext <<_ACEOF
19180 /* confdefs.h. */
19181 _ACEOF
19182 cat confdefs.h >>conftest.$ac_ext
19183 cat >>conftest.$ac_ext <<_ACEOF
19184 /* end confdefs.h. */
19185 $ac_includes_default
19186 int
19187 main ()
19188 {
19189 getpgrp (0);
19190 ;
19191 return 0;
19192 }
19193 _ACEOF
19194 rm -f conftest.$ac_objext
19195 if { (ac_try="$ac_compile"
19196 case "(($ac_try" in
19197 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19198 *) ac_try_echo=$ac_try;;
19199 esac
19200 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19201 (eval "$ac_compile") 2>conftest.er1
19202 ac_status=$?
19203 grep -v '^ *+' conftest.er1 >conftest.err
19204 rm -f conftest.er1
19205 cat conftest.err >&5
19206 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19207 (exit $ac_status); } && {
19208 test -z "$ac_c_werror_flag" ||
19209 test ! -s conftest.err
19210 } && test -s conftest.$ac_objext; then
19211 ac_cv_func_getpgrp_void=no
19212 else
19213 echo "$as_me: failed program was:" >&5
19214 sed 's/^/| /' conftest.$ac_ext >&5
19215
19216 ac_cv_func_getpgrp_void=yes
19217 fi
19218
19219 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19220
19221 fi
19222 { echo "$as_me:$LINENO: result: $ac_cv_func_getpgrp_void" >&5
19223 echo "${ECHO_T}$ac_cv_func_getpgrp_void" >&6; }
19224 if test $ac_cv_func_getpgrp_void = yes; then
19225
19226 cat >>confdefs.h <<\_ACEOF
19227 #define GETPGRP_VOID 1
19228 _ACEOF
19229
19230 fi
19231
19232
19233
19234 for ac_func in strftime
19235 do
19236 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19237 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19238 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19239 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19240 echo $ECHO_N "(cached) $ECHO_C" >&6
19241 else
19242 cat >conftest.$ac_ext <<_ACEOF
19243 /* confdefs.h. */
19244 _ACEOF
19245 cat confdefs.h >>conftest.$ac_ext
19246 cat >>conftest.$ac_ext <<_ACEOF
19247 /* end confdefs.h. */
19248 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19249 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19250 #define $ac_func innocuous_$ac_func
19251
19252 /* System header to define __stub macros and hopefully few prototypes,
19253 which can conflict with char $ac_func (); below.
19254 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19255 <limits.h> exists even on freestanding compilers. */
19256
19257 #ifdef __STDC__
19258 # include <limits.h>
19259 #else
19260 # include <assert.h>
19261 #endif
19262
19263 #undef $ac_func
19264
19265 /* Override any GCC internal prototype to avoid an error.
19266 Use char because int might match the return type of a GCC
19267 builtin and then its argument prototype would still apply. */
19268 #ifdef __cplusplus
19269 extern "C"
19270 #endif
19271 char $ac_func ();
19272 /* The GNU C library defines this for functions which it implements
19273 to always fail with ENOSYS. Some functions are actually named
19274 something starting with __ and the normal name is an alias. */
19275 #if defined __stub_$ac_func || defined __stub___$ac_func
19276 choke me
19277 #endif
19278
19279 int
19280 main ()
19281 {
19282 return $ac_func ();
19283 ;
19284 return 0;
19285 }
19286 _ACEOF
19287 rm -f conftest.$ac_objext conftest$ac_exeext
19288 if { (ac_try="$ac_link"
19289 case "(($ac_try" in
19290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19291 *) ac_try_echo=$ac_try;;
19292 esac
19293 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19294 (eval "$ac_link") 2>conftest.er1
19295 ac_status=$?
19296 grep -v '^ *+' conftest.er1 >conftest.err
19297 rm -f conftest.er1
19298 cat conftest.err >&5
19299 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19300 (exit $ac_status); } && {
19301 test -z "$ac_c_werror_flag" ||
19302 test ! -s conftest.err
19303 } && test -s conftest$ac_exeext &&
19304 $as_test_x conftest$ac_exeext; then
19305 eval "$as_ac_var=yes"
19306 else
19307 echo "$as_me: failed program was:" >&5
19308 sed 's/^/| /' conftest.$ac_ext >&5
19309
19310 eval "$as_ac_var=no"
19311 fi
19312
19313 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19314 conftest$ac_exeext conftest.$ac_ext
19315 fi
19316 ac_res=`eval echo '${'$as_ac_var'}'`
19317 { echo "$as_me:$LINENO: result: $ac_res" >&5
19318 echo "${ECHO_T}$ac_res" >&6; }
19319 if test `eval echo '${'$as_ac_var'}'` = yes; then
19320 cat >>confdefs.h <<_ACEOF
19321 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19322 _ACEOF
19323
19324 else
19325 # strftime is in -lintl on SCO UNIX.
19326 { echo "$as_me:$LINENO: checking for strftime in -lintl" >&5
19327 echo $ECHO_N "checking for strftime in -lintl... $ECHO_C" >&6; }
19328 if test "${ac_cv_lib_intl_strftime+set}" = set; then
19329 echo $ECHO_N "(cached) $ECHO_C" >&6
19330 else
19331 ac_check_lib_save_LIBS=$LIBS
19332 LIBS="-lintl $LIBS"
19333 cat >conftest.$ac_ext <<_ACEOF
19334 /* confdefs.h. */
19335 _ACEOF
19336 cat confdefs.h >>conftest.$ac_ext
19337 cat >>conftest.$ac_ext <<_ACEOF
19338 /* end confdefs.h. */
19339
19340 /* Override any GCC internal prototype to avoid an error.
19341 Use char because int might match the return type of a GCC
19342 builtin and then its argument prototype would still apply. */
19343 #ifdef __cplusplus
19344 extern "C"
19345 #endif
19346 char strftime ();
19347 int
19348 main ()
19349 {
19350 return strftime ();
19351 ;
19352 return 0;
19353 }
19354 _ACEOF
19355 rm -f conftest.$ac_objext conftest$ac_exeext
19356 if { (ac_try="$ac_link"
19357 case "(($ac_try" in
19358 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19359 *) ac_try_echo=$ac_try;;
19360 esac
19361 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19362 (eval "$ac_link") 2>conftest.er1
19363 ac_status=$?
19364 grep -v '^ *+' conftest.er1 >conftest.err
19365 rm -f conftest.er1
19366 cat conftest.err >&5
19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19368 (exit $ac_status); } && {
19369 test -z "$ac_c_werror_flag" ||
19370 test ! -s conftest.err
19371 } && test -s conftest$ac_exeext &&
19372 $as_test_x conftest$ac_exeext; then
19373 ac_cv_lib_intl_strftime=yes
19374 else
19375 echo "$as_me: failed program was:" >&5
19376 sed 's/^/| /' conftest.$ac_ext >&5
19377
19378 ac_cv_lib_intl_strftime=no
19379 fi
19380
19381 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19382 conftest$ac_exeext conftest.$ac_ext
19383 LIBS=$ac_check_lib_save_LIBS
19384 fi
19385 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_strftime" >&5
19386 echo "${ECHO_T}$ac_cv_lib_intl_strftime" >&6; }
19387 if test $ac_cv_lib_intl_strftime = yes; then
19388 cat >>confdefs.h <<\_ACEOF
19389 #define HAVE_STRFTIME 1
19390 _ACEOF
19391
19392 LIBS="-lintl $LIBS"
19393 fi
19394
19395 fi
19396 done
19397
19398
19399 # UNIX98 PTYs.
19400
19401 for ac_func in grantpt
19402 do
19403 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19404 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19405 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19406 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19407 echo $ECHO_N "(cached) $ECHO_C" >&6
19408 else
19409 cat >conftest.$ac_ext <<_ACEOF
19410 /* confdefs.h. */
19411 _ACEOF
19412 cat confdefs.h >>conftest.$ac_ext
19413 cat >>conftest.$ac_ext <<_ACEOF
19414 /* end confdefs.h. */
19415 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19416 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19417 #define $ac_func innocuous_$ac_func
19418
19419 /* System header to define __stub macros and hopefully few prototypes,
19420 which can conflict with char $ac_func (); below.
19421 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19422 <limits.h> exists even on freestanding compilers. */
19423
19424 #ifdef __STDC__
19425 # include <limits.h>
19426 #else
19427 # include <assert.h>
19428 #endif
19429
19430 #undef $ac_func
19431
19432 /* Override any GCC internal prototype to avoid an error.
19433 Use char because int might match the return type of a GCC
19434 builtin and then its argument prototype would still apply. */
19435 #ifdef __cplusplus
19436 extern "C"
19437 #endif
19438 char $ac_func ();
19439 /* The GNU C library defines this for functions which it implements
19440 to always fail with ENOSYS. Some functions are actually named
19441 something starting with __ and the normal name is an alias. */
19442 #if defined __stub_$ac_func || defined __stub___$ac_func
19443 choke me
19444 #endif
19445
19446 int
19447 main ()
19448 {
19449 return $ac_func ();
19450 ;
19451 return 0;
19452 }
19453 _ACEOF
19454 rm -f conftest.$ac_objext conftest$ac_exeext
19455 if { (ac_try="$ac_link"
19456 case "(($ac_try" in
19457 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19458 *) ac_try_echo=$ac_try;;
19459 esac
19460 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19461 (eval "$ac_link") 2>conftest.er1
19462 ac_status=$?
19463 grep -v '^ *+' conftest.er1 >conftest.err
19464 rm -f conftest.er1
19465 cat conftest.err >&5
19466 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19467 (exit $ac_status); } && {
19468 test -z "$ac_c_werror_flag" ||
19469 test ! -s conftest.err
19470 } && test -s conftest$ac_exeext &&
19471 $as_test_x conftest$ac_exeext; then
19472 eval "$as_ac_var=yes"
19473 else
19474 echo "$as_me: failed program was:" >&5
19475 sed 's/^/| /' conftest.$ac_ext >&5
19476
19477 eval "$as_ac_var=no"
19478 fi
19479
19480 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19481 conftest$ac_exeext conftest.$ac_ext
19482 fi
19483 ac_res=`eval echo '${'$as_ac_var'}'`
19484 { echo "$as_me:$LINENO: result: $ac_res" >&5
19485 echo "${ECHO_T}$ac_res" >&6; }
19486 if test `eval echo '${'$as_ac_var'}'` = yes; then
19487 cat >>confdefs.h <<_ACEOF
19488 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19489 _ACEOF
19490
19491 fi
19492 done
19493
19494
19495 # PTY-related GNU extensions.
19496
19497 for ac_func in getpt
19498 do
19499 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19500 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19501 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19502 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19503 echo $ECHO_N "(cached) $ECHO_C" >&6
19504 else
19505 cat >conftest.$ac_ext <<_ACEOF
19506 /* confdefs.h. */
19507 _ACEOF
19508 cat confdefs.h >>conftest.$ac_ext
19509 cat >>conftest.$ac_ext <<_ACEOF
19510 /* end confdefs.h. */
19511 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19512 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19513 #define $ac_func innocuous_$ac_func
19514
19515 /* System header to define __stub macros and hopefully few prototypes,
19516 which can conflict with char $ac_func (); below.
19517 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19518 <limits.h> exists even on freestanding compilers. */
19519
19520 #ifdef __STDC__
19521 # include <limits.h>
19522 #else
19523 # include <assert.h>
19524 #endif
19525
19526 #undef $ac_func
19527
19528 /* Override any GCC internal prototype to avoid an error.
19529 Use char because int might match the return type of a GCC
19530 builtin and then its argument prototype would still apply. */
19531 #ifdef __cplusplus
19532 extern "C"
19533 #endif
19534 char $ac_func ();
19535 /* The GNU C library defines this for functions which it implements
19536 to always fail with ENOSYS. Some functions are actually named
19537 something starting with __ and the normal name is an alias. */
19538 #if defined __stub_$ac_func || defined __stub___$ac_func
19539 choke me
19540 #endif
19541
19542 int
19543 main ()
19544 {
19545 return $ac_func ();
19546 ;
19547 return 0;
19548 }
19549 _ACEOF
19550 rm -f conftest.$ac_objext conftest$ac_exeext
19551 if { (ac_try="$ac_link"
19552 case "(($ac_try" in
19553 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19554 *) ac_try_echo=$ac_try;;
19555 esac
19556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19557 (eval "$ac_link") 2>conftest.er1
19558 ac_status=$?
19559 grep -v '^ *+' conftest.er1 >conftest.err
19560 rm -f conftest.er1
19561 cat conftest.err >&5
19562 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19563 (exit $ac_status); } && {
19564 test -z "$ac_c_werror_flag" ||
19565 test ! -s conftest.err
19566 } && test -s conftest$ac_exeext &&
19567 $as_test_x conftest$ac_exeext; then
19568 eval "$as_ac_var=yes"
19569 else
19570 echo "$as_me: failed program was:" >&5
19571 sed 's/^/| /' conftest.$ac_ext >&5
19572
19573 eval "$as_ac_var=no"
19574 fi
19575
19576 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19577 conftest$ac_exeext conftest.$ac_ext
19578 fi
19579 ac_res=`eval echo '${'$as_ac_var'}'`
19580 { echo "$as_me:$LINENO: result: $ac_res" >&5
19581 echo "${ECHO_T}$ac_res" >&6; }
19582 if test `eval echo '${'$as_ac_var'}'` = yes; then
19583 cat >>confdefs.h <<_ACEOF
19584 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19585 _ACEOF
19586
19587 fi
19588 done
19589
19590
19591 # Check this now, so that we will NOT find the above functions in ncurses.
19592 # That is because we have not set up to link ncurses in lib-src.
19593 # It's better to believe a function is not available
19594 # than to expect to find it in ncurses.
19595
19596 { echo "$as_me:$LINENO: checking for tparm in -lncurses" >&5
19597 echo $ECHO_N "checking for tparm in -lncurses... $ECHO_C" >&6; }
19598 if test "${ac_cv_lib_ncurses_tparm+set}" = set; then
19599 echo $ECHO_N "(cached) $ECHO_C" >&6
19600 else
19601 ac_check_lib_save_LIBS=$LIBS
19602 LIBS="-lncurses $LIBS"
19603 cat >conftest.$ac_ext <<_ACEOF
19604 /* confdefs.h. */
19605 _ACEOF
19606 cat confdefs.h >>conftest.$ac_ext
19607 cat >>conftest.$ac_ext <<_ACEOF
19608 /* end confdefs.h. */
19609
19610 /* Override any GCC internal prototype to avoid an error.
19611 Use char because int might match the return type of a GCC
19612 builtin and then its argument prototype would still apply. */
19613 #ifdef __cplusplus
19614 extern "C"
19615 #endif
19616 char tparm ();
19617 int
19618 main ()
19619 {
19620 return tparm ();
19621 ;
19622 return 0;
19623 }
19624 _ACEOF
19625 rm -f conftest.$ac_objext conftest$ac_exeext
19626 if { (ac_try="$ac_link"
19627 case "(($ac_try" in
19628 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19629 *) ac_try_echo=$ac_try;;
19630 esac
19631 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19632 (eval "$ac_link") 2>conftest.er1
19633 ac_status=$?
19634 grep -v '^ *+' conftest.er1 >conftest.err
19635 rm -f conftest.er1
19636 cat conftest.err >&5
19637 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19638 (exit $ac_status); } && {
19639 test -z "$ac_c_werror_flag" ||
19640 test ! -s conftest.err
19641 } && test -s conftest$ac_exeext &&
19642 $as_test_x conftest$ac_exeext; then
19643 ac_cv_lib_ncurses_tparm=yes
19644 else
19645 echo "$as_me: failed program was:" >&5
19646 sed 's/^/| /' conftest.$ac_ext >&5
19647
19648 ac_cv_lib_ncurses_tparm=no
19649 fi
19650
19651 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19652 conftest$ac_exeext conftest.$ac_ext
19653 LIBS=$ac_check_lib_save_LIBS
19654 fi
19655 { echo "$as_me:$LINENO: result: $ac_cv_lib_ncurses_tparm" >&5
19656 echo "${ECHO_T}$ac_cv_lib_ncurses_tparm" >&6; }
19657 if test $ac_cv_lib_ncurses_tparm = yes; then
19658 cat >>confdefs.h <<_ACEOF
19659 #define HAVE_LIBNCURSES 1
19660 _ACEOF
19661
19662 LIBS="-lncurses $LIBS"
19663
19664 fi
19665
19666
19667 # Do we have res_init, for detecting changes in /etc/resolv.conf?
19668
19669 resolv=no
19670 cat >conftest.$ac_ext <<_ACEOF
19671 /* confdefs.h. */
19672 _ACEOF
19673 cat confdefs.h >>conftest.$ac_ext
19674 cat >>conftest.$ac_ext <<_ACEOF
19675 /* end confdefs.h. */
19676 #include <netinet/in.h>
19677 #include <arpa/nameser.h>
19678 #include <resolv.h>
19679 int
19680 main ()
19681 {
19682 return res_init();
19683 ;
19684 return 0;
19685 }
19686 _ACEOF
19687 rm -f conftest.$ac_objext conftest$ac_exeext
19688 if { (ac_try="$ac_link"
19689 case "(($ac_try" in
19690 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19691 *) ac_try_echo=$ac_try;;
19692 esac
19693 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19694 (eval "$ac_link") 2>conftest.er1
19695 ac_status=$?
19696 grep -v '^ *+' conftest.er1 >conftest.err
19697 rm -f conftest.er1
19698 cat conftest.err >&5
19699 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19700 (exit $ac_status); } && {
19701 test -z "$ac_c_werror_flag" ||
19702 test ! -s conftest.err
19703 } && test -s conftest$ac_exeext &&
19704 $as_test_x conftest$ac_exeext; then
19705 have_res_init=yes
19706 else
19707 echo "$as_me: failed program was:" >&5
19708 sed 's/^/| /' conftest.$ac_ext >&5
19709
19710 have_res_init=no
19711 fi
19712
19713 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19714 conftest$ac_exeext conftest.$ac_ext
19715 if test "$have_res_init" = no; then
19716 OLIBS="$LIBS"
19717 LIBS="$LIBS -lresolv"
19718 { echo "$as_me:$LINENO: checking for res_init with -lresolv" >&5
19719 echo $ECHO_N "checking for res_init with -lresolv... $ECHO_C" >&6; }
19720 cat >conftest.$ac_ext <<_ACEOF
19721 /* confdefs.h. */
19722 _ACEOF
19723 cat confdefs.h >>conftest.$ac_ext
19724 cat >>conftest.$ac_ext <<_ACEOF
19725 /* end confdefs.h. */
19726 #include <netinet/in.h>
19727 #include <arpa/nameser.h>
19728 #include <resolv.h>
19729 int
19730 main ()
19731 {
19732 return res_init();
19733 ;
19734 return 0;
19735 }
19736 _ACEOF
19737 rm -f conftest.$ac_objext conftest$ac_exeext
19738 if { (ac_try="$ac_link"
19739 case "(($ac_try" in
19740 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19741 *) ac_try_echo=$ac_try;;
19742 esac
19743 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19744 (eval "$ac_link") 2>conftest.er1
19745 ac_status=$?
19746 grep -v '^ *+' conftest.er1 >conftest.err
19747 rm -f conftest.er1
19748 cat conftest.err >&5
19749 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19750 (exit $ac_status); } && {
19751 test -z "$ac_c_werror_flag" ||
19752 test ! -s conftest.err
19753 } && test -s conftest$ac_exeext &&
19754 $as_test_x conftest$ac_exeext; then
19755 have_res_init=yes
19756 else
19757 echo "$as_me: failed program was:" >&5
19758 sed 's/^/| /' conftest.$ac_ext >&5
19759
19760 have_res_init=no
19761 fi
19762
19763 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19764 conftest$ac_exeext conftest.$ac_ext
19765 { echo "$as_me:$LINENO: result: $have_res_init" >&5
19766 echo "${ECHO_T}$have_res_init" >&6; }
19767 if test "$have_res_init" = yes ; then
19768 resolv=yes
19769 fi
19770 LIBS="$OLIBS"
19771 fi
19772
19773 if test "$have_res_init" = yes; then
19774
19775 cat >>confdefs.h <<\_ACEOF
19776 #define HAVE_RES_INIT 1
19777 _ACEOF
19778
19779 fi
19780
19781 # Do we need the Hesiod library to provide the support routines?
19782 if test "$with_hesiod" = yes ; then
19783 # Don't set $LIBS here -- see comments above.
19784 { echo "$as_me:$LINENO: checking for res_send" >&5
19785 echo $ECHO_N "checking for res_send... $ECHO_C" >&6; }
19786 if test "${ac_cv_func_res_send+set}" = set; then
19787 echo $ECHO_N "(cached) $ECHO_C" >&6
19788 else
19789 cat >conftest.$ac_ext <<_ACEOF
19790 /* confdefs.h. */
19791 _ACEOF
19792 cat confdefs.h >>conftest.$ac_ext
19793 cat >>conftest.$ac_ext <<_ACEOF
19794 /* end confdefs.h. */
19795 /* Define res_send to an innocuous variant, in case <limits.h> declares res_send.
19796 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19797 #define res_send innocuous_res_send
19798
19799 /* System header to define __stub macros and hopefully few prototypes,
19800 which can conflict with char res_send (); below.
19801 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19802 <limits.h> exists even on freestanding compilers. */
19803
19804 #ifdef __STDC__
19805 # include <limits.h>
19806 #else
19807 # include <assert.h>
19808 #endif
19809
19810 #undef res_send
19811
19812 /* Override any GCC internal prototype to avoid an error.
19813 Use char because int might match the return type of a GCC
19814 builtin and then its argument prototype would still apply. */
19815 #ifdef __cplusplus
19816 extern "C"
19817 #endif
19818 char res_send ();
19819 /* The GNU C library defines this for functions which it implements
19820 to always fail with ENOSYS. Some functions are actually named
19821 something starting with __ and the normal name is an alias. */
19822 #if defined __stub_res_send || defined __stub___res_send
19823 choke me
19824 #endif
19825
19826 int
19827 main ()
19828 {
19829 return res_send ();
19830 ;
19831 return 0;
19832 }
19833 _ACEOF
19834 rm -f conftest.$ac_objext conftest$ac_exeext
19835 if { (ac_try="$ac_link"
19836 case "(($ac_try" in
19837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19838 *) ac_try_echo=$ac_try;;
19839 esac
19840 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19841 (eval "$ac_link") 2>conftest.er1
19842 ac_status=$?
19843 grep -v '^ *+' conftest.er1 >conftest.err
19844 rm -f conftest.er1
19845 cat conftest.err >&5
19846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19847 (exit $ac_status); } && {
19848 test -z "$ac_c_werror_flag" ||
19849 test ! -s conftest.err
19850 } && test -s conftest$ac_exeext &&
19851 $as_test_x conftest$ac_exeext; then
19852 ac_cv_func_res_send=yes
19853 else
19854 echo "$as_me: failed program was:" >&5
19855 sed 's/^/| /' conftest.$ac_ext >&5
19856
19857 ac_cv_func_res_send=no
19858 fi
19859
19860 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19861 conftest$ac_exeext conftest.$ac_ext
19862 fi
19863 { echo "$as_me:$LINENO: result: $ac_cv_func_res_send" >&5
19864 echo "${ECHO_T}$ac_cv_func_res_send" >&6; }
19865 if test $ac_cv_func_res_send = yes; then
19866 :
19867 else
19868 { echo "$as_me:$LINENO: checking for __res_send" >&5
19869 echo $ECHO_N "checking for __res_send... $ECHO_C" >&6; }
19870 if test "${ac_cv_func___res_send+set}" = set; then
19871 echo $ECHO_N "(cached) $ECHO_C" >&6
19872 else
19873 cat >conftest.$ac_ext <<_ACEOF
19874 /* confdefs.h. */
19875 _ACEOF
19876 cat confdefs.h >>conftest.$ac_ext
19877 cat >>conftest.$ac_ext <<_ACEOF
19878 /* end confdefs.h. */
19879 /* Define __res_send to an innocuous variant, in case <limits.h> declares __res_send.
19880 For example, HP-UX 11i <limits.h> declares gettimeofday. */
19881 #define __res_send innocuous___res_send
19882
19883 /* System header to define __stub macros and hopefully few prototypes,
19884 which can conflict with char __res_send (); below.
19885 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19886 <limits.h> exists even on freestanding compilers. */
19887
19888 #ifdef __STDC__
19889 # include <limits.h>
19890 #else
19891 # include <assert.h>
19892 #endif
19893
19894 #undef __res_send
19895
19896 /* Override any GCC internal prototype to avoid an error.
19897 Use char because int might match the return type of a GCC
19898 builtin and then its argument prototype would still apply. */
19899 #ifdef __cplusplus
19900 extern "C"
19901 #endif
19902 char __res_send ();
19903 /* The GNU C library defines this for functions which it implements
19904 to always fail with ENOSYS. Some functions are actually named
19905 something starting with __ and the normal name is an alias. */
19906 #if defined __stub___res_send || defined __stub_____res_send
19907 choke me
19908 #endif
19909
19910 int
19911 main ()
19912 {
19913 return __res_send ();
19914 ;
19915 return 0;
19916 }
19917 _ACEOF
19918 rm -f conftest.$ac_objext conftest$ac_exeext
19919 if { (ac_try="$ac_link"
19920 case "(($ac_try" in
19921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19922 *) ac_try_echo=$ac_try;;
19923 esac
19924 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19925 (eval "$ac_link") 2>conftest.er1
19926 ac_status=$?
19927 grep -v '^ *+' conftest.er1 >conftest.err
19928 rm -f conftest.er1
19929 cat conftest.err >&5
19930 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19931 (exit $ac_status); } && {
19932 test -z "$ac_c_werror_flag" ||
19933 test ! -s conftest.err
19934 } && test -s conftest$ac_exeext &&
19935 $as_test_x conftest$ac_exeext; then
19936 ac_cv_func___res_send=yes
19937 else
19938 echo "$as_me: failed program was:" >&5
19939 sed 's/^/| /' conftest.$ac_ext >&5
19940
19941 ac_cv_func___res_send=no
19942 fi
19943
19944 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
19945 conftest$ac_exeext conftest.$ac_ext
19946 fi
19947 { echo "$as_me:$LINENO: result: $ac_cv_func___res_send" >&5
19948 echo "${ECHO_T}$ac_cv_func___res_send" >&6; }
19949 if test $ac_cv_func___res_send = yes; then
19950 :
19951 else
19952 { echo "$as_me:$LINENO: checking for res_send in -lresolv" >&5
19953 echo $ECHO_N "checking for res_send in -lresolv... $ECHO_C" >&6; }
19954 if test "${ac_cv_lib_resolv_res_send+set}" = set; then
19955 echo $ECHO_N "(cached) $ECHO_C" >&6
19956 else
19957 ac_check_lib_save_LIBS=$LIBS
19958 LIBS="-lresolv $LIBS"
19959 cat >conftest.$ac_ext <<_ACEOF
19960 /* confdefs.h. */
19961 _ACEOF
19962 cat confdefs.h >>conftest.$ac_ext
19963 cat >>conftest.$ac_ext <<_ACEOF
19964 /* end confdefs.h. */
19965
19966 /* Override any GCC internal prototype to avoid an error.
19967 Use char because int might match the return type of a GCC
19968 builtin and then its argument prototype would still apply. */
19969 #ifdef __cplusplus
19970 extern "C"
19971 #endif
19972 char res_send ();
19973 int
19974 main ()
19975 {
19976 return res_send ();
19977 ;
19978 return 0;
19979 }
19980 _ACEOF
19981 rm -f conftest.$ac_objext conftest$ac_exeext
19982 if { (ac_try="$ac_link"
19983 case "(($ac_try" in
19984 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19985 *) ac_try_echo=$ac_try;;
19986 esac
19987 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19988 (eval "$ac_link") 2>conftest.er1
19989 ac_status=$?
19990 grep -v '^ *+' conftest.er1 >conftest.err
19991 rm -f conftest.er1
19992 cat conftest.err >&5
19993 echo "$as_me:$LINENO: \$? = $ac_status" >&5
19994 (exit $ac_status); } && {
19995 test -z "$ac_c_werror_flag" ||
19996 test ! -s conftest.err
19997 } && test -s conftest$ac_exeext &&
19998 $as_test_x conftest$ac_exeext; then
19999 ac_cv_lib_resolv_res_send=yes
20000 else
20001 echo "$as_me: failed program was:" >&5
20002 sed 's/^/| /' conftest.$ac_ext >&5
20003
20004 ac_cv_lib_resolv_res_send=no
20005 fi
20006
20007 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20008 conftest$ac_exeext conftest.$ac_ext
20009 LIBS=$ac_check_lib_save_LIBS
20010 fi
20011 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_send" >&5
20012 echo "${ECHO_T}$ac_cv_lib_resolv_res_send" >&6; }
20013 if test $ac_cv_lib_resolv_res_send = yes; then
20014 resolv=yes
20015 else
20016 { echo "$as_me:$LINENO: checking for __res_send in -lresolv" >&5
20017 echo $ECHO_N "checking for __res_send in -lresolv... $ECHO_C" >&6; }
20018 if test "${ac_cv_lib_resolv___res_send+set}" = set; then
20019 echo $ECHO_N "(cached) $ECHO_C" >&6
20020 else
20021 ac_check_lib_save_LIBS=$LIBS
20022 LIBS="-lresolv $LIBS"
20023 cat >conftest.$ac_ext <<_ACEOF
20024 /* confdefs.h. */
20025 _ACEOF
20026 cat confdefs.h >>conftest.$ac_ext
20027 cat >>conftest.$ac_ext <<_ACEOF
20028 /* end confdefs.h. */
20029
20030 /* Override any GCC internal prototype to avoid an error.
20031 Use char because int might match the return type of a GCC
20032 builtin and then its argument prototype would still apply. */
20033 #ifdef __cplusplus
20034 extern "C"
20035 #endif
20036 char __res_send ();
20037 int
20038 main ()
20039 {
20040 return __res_send ();
20041 ;
20042 return 0;
20043 }
20044 _ACEOF
20045 rm -f conftest.$ac_objext conftest$ac_exeext
20046 if { (ac_try="$ac_link"
20047 case "(($ac_try" in
20048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20049 *) ac_try_echo=$ac_try;;
20050 esac
20051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20052 (eval "$ac_link") 2>conftest.er1
20053 ac_status=$?
20054 grep -v '^ *+' conftest.er1 >conftest.err
20055 rm -f conftest.er1
20056 cat conftest.err >&5
20057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20058 (exit $ac_status); } && {
20059 test -z "$ac_c_werror_flag" ||
20060 test ! -s conftest.err
20061 } && test -s conftest$ac_exeext &&
20062 $as_test_x conftest$ac_exeext; then
20063 ac_cv_lib_resolv___res_send=yes
20064 else
20065 echo "$as_me: failed program was:" >&5
20066 sed 's/^/| /' conftest.$ac_ext >&5
20067
20068 ac_cv_lib_resolv___res_send=no
20069 fi
20070
20071 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20072 conftest$ac_exeext conftest.$ac_ext
20073 LIBS=$ac_check_lib_save_LIBS
20074 fi
20075 { echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_send" >&5
20076 echo "${ECHO_T}$ac_cv_lib_resolv___res_send" >&6; }
20077 if test $ac_cv_lib_resolv___res_send = yes; then
20078 resolv=yes
20079 fi
20080
20081 fi
20082
20083 fi
20084
20085 fi
20086
20087 if test "$resolv" = yes ; then
20088 RESOLVLIB=-lresolv
20089 else
20090 RESOLVLIB=
20091 fi
20092 { echo "$as_me:$LINENO: checking for hes_getmailhost" >&5
20093 echo $ECHO_N "checking for hes_getmailhost... $ECHO_C" >&6; }
20094 if test "${ac_cv_func_hes_getmailhost+set}" = set; then
20095 echo $ECHO_N "(cached) $ECHO_C" >&6
20096 else
20097 cat >conftest.$ac_ext <<_ACEOF
20098 /* confdefs.h. */
20099 _ACEOF
20100 cat confdefs.h >>conftest.$ac_ext
20101 cat >>conftest.$ac_ext <<_ACEOF
20102 /* end confdefs.h. */
20103 /* Define hes_getmailhost to an innocuous variant, in case <limits.h> declares hes_getmailhost.
20104 For example, HP-UX 11i <limits.h> declares gettimeofday. */
20105 #define hes_getmailhost innocuous_hes_getmailhost
20106
20107 /* System header to define __stub macros and hopefully few prototypes,
20108 which can conflict with char hes_getmailhost (); below.
20109 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20110 <limits.h> exists even on freestanding compilers. */
20111
20112 #ifdef __STDC__
20113 # include <limits.h>
20114 #else
20115 # include <assert.h>
20116 #endif
20117
20118 #undef hes_getmailhost
20119
20120 /* Override any GCC internal prototype to avoid an error.
20121 Use char because int might match the return type of a GCC
20122 builtin and then its argument prototype would still apply. */
20123 #ifdef __cplusplus
20124 extern "C"
20125 #endif
20126 char hes_getmailhost ();
20127 /* The GNU C library defines this for functions which it implements
20128 to always fail with ENOSYS. Some functions are actually named
20129 something starting with __ and the normal name is an alias. */
20130 #if defined __stub_hes_getmailhost || defined __stub___hes_getmailhost
20131 choke me
20132 #endif
20133
20134 int
20135 main ()
20136 {
20137 return hes_getmailhost ();
20138 ;
20139 return 0;
20140 }
20141 _ACEOF
20142 rm -f conftest.$ac_objext conftest$ac_exeext
20143 if { (ac_try="$ac_link"
20144 case "(($ac_try" in
20145 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20146 *) ac_try_echo=$ac_try;;
20147 esac
20148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20149 (eval "$ac_link") 2>conftest.er1
20150 ac_status=$?
20151 grep -v '^ *+' conftest.er1 >conftest.err
20152 rm -f conftest.er1
20153 cat conftest.err >&5
20154 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20155 (exit $ac_status); } && {
20156 test -z "$ac_c_werror_flag" ||
20157 test ! -s conftest.err
20158 } && test -s conftest$ac_exeext &&
20159 $as_test_x conftest$ac_exeext; then
20160 ac_cv_func_hes_getmailhost=yes
20161 else
20162 echo "$as_me: failed program was:" >&5
20163 sed 's/^/| /' conftest.$ac_ext >&5
20164
20165 ac_cv_func_hes_getmailhost=no
20166 fi
20167
20168 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20169 conftest$ac_exeext conftest.$ac_ext
20170 fi
20171 { echo "$as_me:$LINENO: result: $ac_cv_func_hes_getmailhost" >&5
20172 echo "${ECHO_T}$ac_cv_func_hes_getmailhost" >&6; }
20173 if test $ac_cv_func_hes_getmailhost = yes; then
20174 :
20175 else
20176 { echo "$as_me:$LINENO: checking for hes_getmailhost in -lhesiod" >&5
20177 echo $ECHO_N "checking for hes_getmailhost in -lhesiod... $ECHO_C" >&6; }
20178 if test "${ac_cv_lib_hesiod_hes_getmailhost+set}" = set; then
20179 echo $ECHO_N "(cached) $ECHO_C" >&6
20180 else
20181 ac_check_lib_save_LIBS=$LIBS
20182 LIBS="-lhesiod $RESOLVLIB $LIBS"
20183 cat >conftest.$ac_ext <<_ACEOF
20184 /* confdefs.h. */
20185 _ACEOF
20186 cat confdefs.h >>conftest.$ac_ext
20187 cat >>conftest.$ac_ext <<_ACEOF
20188 /* end confdefs.h. */
20189
20190 /* Override any GCC internal prototype to avoid an error.
20191 Use char because int might match the return type of a GCC
20192 builtin and then its argument prototype would still apply. */
20193 #ifdef __cplusplus
20194 extern "C"
20195 #endif
20196 char hes_getmailhost ();
20197 int
20198 main ()
20199 {
20200 return hes_getmailhost ();
20201 ;
20202 return 0;
20203 }
20204 _ACEOF
20205 rm -f conftest.$ac_objext conftest$ac_exeext
20206 if { (ac_try="$ac_link"
20207 case "(($ac_try" in
20208 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20209 *) ac_try_echo=$ac_try;;
20210 esac
20211 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20212 (eval "$ac_link") 2>conftest.er1
20213 ac_status=$?
20214 grep -v '^ *+' conftest.er1 >conftest.err
20215 rm -f conftest.er1
20216 cat conftest.err >&5
20217 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20218 (exit $ac_status); } && {
20219 test -z "$ac_c_werror_flag" ||
20220 test ! -s conftest.err
20221 } && test -s conftest$ac_exeext &&
20222 $as_test_x conftest$ac_exeext; then
20223 ac_cv_lib_hesiod_hes_getmailhost=yes
20224 else
20225 echo "$as_me: failed program was:" >&5
20226 sed 's/^/| /' conftest.$ac_ext >&5
20227
20228 ac_cv_lib_hesiod_hes_getmailhost=no
20229 fi
20230
20231 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20232 conftest$ac_exeext conftest.$ac_ext
20233 LIBS=$ac_check_lib_save_LIBS
20234 fi
20235 { echo "$as_me:$LINENO: result: $ac_cv_lib_hesiod_hes_getmailhost" >&5
20236 echo "${ECHO_T}$ac_cv_lib_hesiod_hes_getmailhost" >&6; }
20237 if test $ac_cv_lib_hesiod_hes_getmailhost = yes; then
20238
20239 cat >>confdefs.h <<\_ACEOF
20240 #define HAVE_LIBHESIOD 1
20241 _ACEOF
20242
20243 else
20244 :
20245 fi
20246
20247 fi
20248
20249 fi
20250
20251 # Do we need libresolv (due to res_init or Hesiod)?
20252 if test "$resolv" = yes ; then
20253
20254 cat >>confdefs.h <<\_ACEOF
20255 #define HAVE_LIBRESOLV 1
20256 _ACEOF
20257
20258 fi
20259
20260 # These tell us which Kerberos-related libraries to use.
20261 if test "${with_kerberos+set}" = set; then
20262
20263 { echo "$as_me:$LINENO: checking for com_err in -lcom_err" >&5
20264 echo $ECHO_N "checking for com_err in -lcom_err... $ECHO_C" >&6; }
20265 if test "${ac_cv_lib_com_err_com_err+set}" = set; then
20266 echo $ECHO_N "(cached) $ECHO_C" >&6
20267 else
20268 ac_check_lib_save_LIBS=$LIBS
20269 LIBS="-lcom_err $LIBS"
20270 cat >conftest.$ac_ext <<_ACEOF
20271 /* confdefs.h. */
20272 _ACEOF
20273 cat confdefs.h >>conftest.$ac_ext
20274 cat >>conftest.$ac_ext <<_ACEOF
20275 /* end confdefs.h. */
20276
20277 /* Override any GCC internal prototype to avoid an error.
20278 Use char because int might match the return type of a GCC
20279 builtin and then its argument prototype would still apply. */
20280 #ifdef __cplusplus
20281 extern "C"
20282 #endif
20283 char com_err ();
20284 int
20285 main ()
20286 {
20287 return com_err ();
20288 ;
20289 return 0;
20290 }
20291 _ACEOF
20292 rm -f conftest.$ac_objext conftest$ac_exeext
20293 if { (ac_try="$ac_link"
20294 case "(($ac_try" in
20295 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20296 *) ac_try_echo=$ac_try;;
20297 esac
20298 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20299 (eval "$ac_link") 2>conftest.er1
20300 ac_status=$?
20301 grep -v '^ *+' conftest.er1 >conftest.err
20302 rm -f conftest.er1
20303 cat conftest.err >&5
20304 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20305 (exit $ac_status); } && {
20306 test -z "$ac_c_werror_flag" ||
20307 test ! -s conftest.err
20308 } && test -s conftest$ac_exeext &&
20309 $as_test_x conftest$ac_exeext; then
20310 ac_cv_lib_com_err_com_err=yes
20311 else
20312 echo "$as_me: failed program was:" >&5
20313 sed 's/^/| /' conftest.$ac_ext >&5
20314
20315 ac_cv_lib_com_err_com_err=no
20316 fi
20317
20318 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20319 conftest$ac_exeext conftest.$ac_ext
20320 LIBS=$ac_check_lib_save_LIBS
20321 fi
20322 { echo "$as_me:$LINENO: result: $ac_cv_lib_com_err_com_err" >&5
20323 echo "${ECHO_T}$ac_cv_lib_com_err_com_err" >&6; }
20324 if test $ac_cv_lib_com_err_com_err = yes; then
20325 cat >>confdefs.h <<_ACEOF
20326 #define HAVE_LIBCOM_ERR 1
20327 _ACEOF
20328
20329 LIBS="-lcom_err $LIBS"
20330
20331 fi
20332
20333
20334 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lk5crypto" >&5
20335 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lk5crypto... $ECHO_C" >&6; }
20336 if test "${ac_cv_lib_k5crypto_mit_des_cbc_encrypt+set}" = set; then
20337 echo $ECHO_N "(cached) $ECHO_C" >&6
20338 else
20339 ac_check_lib_save_LIBS=$LIBS
20340 LIBS="-lk5crypto $LIBS"
20341 cat >conftest.$ac_ext <<_ACEOF
20342 /* confdefs.h. */
20343 _ACEOF
20344 cat confdefs.h >>conftest.$ac_ext
20345 cat >>conftest.$ac_ext <<_ACEOF
20346 /* end confdefs.h. */
20347
20348 /* Override any GCC internal prototype to avoid an error.
20349 Use char because int might match the return type of a GCC
20350 builtin and then its argument prototype would still apply. */
20351 #ifdef __cplusplus
20352 extern "C"
20353 #endif
20354 char mit_des_cbc_encrypt ();
20355 int
20356 main ()
20357 {
20358 return mit_des_cbc_encrypt ();
20359 ;
20360 return 0;
20361 }
20362 _ACEOF
20363 rm -f conftest.$ac_objext conftest$ac_exeext
20364 if { (ac_try="$ac_link"
20365 case "(($ac_try" in
20366 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20367 *) ac_try_echo=$ac_try;;
20368 esac
20369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20370 (eval "$ac_link") 2>conftest.er1
20371 ac_status=$?
20372 grep -v '^ *+' conftest.er1 >conftest.err
20373 rm -f conftest.er1
20374 cat conftest.err >&5
20375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20376 (exit $ac_status); } && {
20377 test -z "$ac_c_werror_flag" ||
20378 test ! -s conftest.err
20379 } && test -s conftest$ac_exeext &&
20380 $as_test_x conftest$ac_exeext; then
20381 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=yes
20382 else
20383 echo "$as_me: failed program was:" >&5
20384 sed 's/^/| /' conftest.$ac_ext >&5
20385
20386 ac_cv_lib_k5crypto_mit_des_cbc_encrypt=no
20387 fi
20388
20389 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20390 conftest$ac_exeext conftest.$ac_ext
20391 LIBS=$ac_check_lib_save_LIBS
20392 fi
20393 { echo "$as_me:$LINENO: result: $ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&5
20394 echo "${ECHO_T}$ac_cv_lib_k5crypto_mit_des_cbc_encrypt" >&6; }
20395 if test $ac_cv_lib_k5crypto_mit_des_cbc_encrypt = yes; then
20396 cat >>confdefs.h <<_ACEOF
20397 #define HAVE_LIBK5CRYPTO 1
20398 _ACEOF
20399
20400 LIBS="-lk5crypto $LIBS"
20401
20402 fi
20403
20404
20405 { echo "$as_me:$LINENO: checking for mit_des_cbc_encrypt in -lcrypto" >&5
20406 echo $ECHO_N "checking for mit_des_cbc_encrypt in -lcrypto... $ECHO_C" >&6; }
20407 if test "${ac_cv_lib_crypto_mit_des_cbc_encrypt+set}" = set; then
20408 echo $ECHO_N "(cached) $ECHO_C" >&6
20409 else
20410 ac_check_lib_save_LIBS=$LIBS
20411 LIBS="-lcrypto $LIBS"
20412 cat >conftest.$ac_ext <<_ACEOF
20413 /* confdefs.h. */
20414 _ACEOF
20415 cat confdefs.h >>conftest.$ac_ext
20416 cat >>conftest.$ac_ext <<_ACEOF
20417 /* end confdefs.h. */
20418
20419 /* Override any GCC internal prototype to avoid an error.
20420 Use char because int might match the return type of a GCC
20421 builtin and then its argument prototype would still apply. */
20422 #ifdef __cplusplus
20423 extern "C"
20424 #endif
20425 char mit_des_cbc_encrypt ();
20426 int
20427 main ()
20428 {
20429 return mit_des_cbc_encrypt ();
20430 ;
20431 return 0;
20432 }
20433 _ACEOF
20434 rm -f conftest.$ac_objext conftest$ac_exeext
20435 if { (ac_try="$ac_link"
20436 case "(($ac_try" in
20437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20438 *) ac_try_echo=$ac_try;;
20439 esac
20440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20441 (eval "$ac_link") 2>conftest.er1
20442 ac_status=$?
20443 grep -v '^ *+' conftest.er1 >conftest.err
20444 rm -f conftest.er1
20445 cat conftest.err >&5
20446 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20447 (exit $ac_status); } && {
20448 test -z "$ac_c_werror_flag" ||
20449 test ! -s conftest.err
20450 } && test -s conftest$ac_exeext &&
20451 $as_test_x conftest$ac_exeext; then
20452 ac_cv_lib_crypto_mit_des_cbc_encrypt=yes
20453 else
20454 echo "$as_me: failed program was:" >&5
20455 sed 's/^/| /' conftest.$ac_ext >&5
20456
20457 ac_cv_lib_crypto_mit_des_cbc_encrypt=no
20458 fi
20459
20460 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20461 conftest$ac_exeext conftest.$ac_ext
20462 LIBS=$ac_check_lib_save_LIBS
20463 fi
20464 { echo "$as_me:$LINENO: result: $ac_cv_lib_crypto_mit_des_cbc_encrypt" >&5
20465 echo "${ECHO_T}$ac_cv_lib_crypto_mit_des_cbc_encrypt" >&6; }
20466 if test $ac_cv_lib_crypto_mit_des_cbc_encrypt = yes; then
20467 cat >>confdefs.h <<_ACEOF
20468 #define HAVE_LIBCRYPTO 1
20469 _ACEOF
20470
20471 LIBS="-lcrypto $LIBS"
20472
20473 fi
20474
20475
20476 { echo "$as_me:$LINENO: checking for krb5_init_context in -lkrb5" >&5
20477 echo $ECHO_N "checking for krb5_init_context in -lkrb5... $ECHO_C" >&6; }
20478 if test "${ac_cv_lib_krb5_krb5_init_context+set}" = set; then
20479 echo $ECHO_N "(cached) $ECHO_C" >&6
20480 else
20481 ac_check_lib_save_LIBS=$LIBS
20482 LIBS="-lkrb5 $LIBS"
20483 cat >conftest.$ac_ext <<_ACEOF
20484 /* confdefs.h. */
20485 _ACEOF
20486 cat confdefs.h >>conftest.$ac_ext
20487 cat >>conftest.$ac_ext <<_ACEOF
20488 /* end confdefs.h. */
20489
20490 /* Override any GCC internal prototype to avoid an error.
20491 Use char because int might match the return type of a GCC
20492 builtin and then its argument prototype would still apply. */
20493 #ifdef __cplusplus
20494 extern "C"
20495 #endif
20496 char krb5_init_context ();
20497 int
20498 main ()
20499 {
20500 return krb5_init_context ();
20501 ;
20502 return 0;
20503 }
20504 _ACEOF
20505 rm -f conftest.$ac_objext conftest$ac_exeext
20506 if { (ac_try="$ac_link"
20507 case "(($ac_try" in
20508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20509 *) ac_try_echo=$ac_try;;
20510 esac
20511 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20512 (eval "$ac_link") 2>conftest.er1
20513 ac_status=$?
20514 grep -v '^ *+' conftest.er1 >conftest.err
20515 rm -f conftest.er1
20516 cat conftest.err >&5
20517 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20518 (exit $ac_status); } && {
20519 test -z "$ac_c_werror_flag" ||
20520 test ! -s conftest.err
20521 } && test -s conftest$ac_exeext &&
20522 $as_test_x conftest$ac_exeext; then
20523 ac_cv_lib_krb5_krb5_init_context=yes
20524 else
20525 echo "$as_me: failed program was:" >&5
20526 sed 's/^/| /' conftest.$ac_ext >&5
20527
20528 ac_cv_lib_krb5_krb5_init_context=no
20529 fi
20530
20531 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20532 conftest$ac_exeext conftest.$ac_ext
20533 LIBS=$ac_check_lib_save_LIBS
20534 fi
20535 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb5_krb5_init_context" >&5
20536 echo "${ECHO_T}$ac_cv_lib_krb5_krb5_init_context" >&6; }
20537 if test $ac_cv_lib_krb5_krb5_init_context = yes; then
20538 cat >>confdefs.h <<_ACEOF
20539 #define HAVE_LIBKRB5 1
20540 _ACEOF
20541
20542 LIBS="-lkrb5 $LIBS"
20543
20544 fi
20545
20546 if test "${with_kerberos5+set}" != set; then
20547
20548 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes425" >&5
20549 echo $ECHO_N "checking for des_cbc_encrypt in -ldes425... $ECHO_C" >&6; }
20550 if test "${ac_cv_lib_des425_des_cbc_encrypt+set}" = set; then
20551 echo $ECHO_N "(cached) $ECHO_C" >&6
20552 else
20553 ac_check_lib_save_LIBS=$LIBS
20554 LIBS="-ldes425 $LIBS"
20555 cat >conftest.$ac_ext <<_ACEOF
20556 /* confdefs.h. */
20557 _ACEOF
20558 cat confdefs.h >>conftest.$ac_ext
20559 cat >>conftest.$ac_ext <<_ACEOF
20560 /* end confdefs.h. */
20561
20562 /* Override any GCC internal prototype to avoid an error.
20563 Use char because int might match the return type of a GCC
20564 builtin and then its argument prototype would still apply. */
20565 #ifdef __cplusplus
20566 extern "C"
20567 #endif
20568 char des_cbc_encrypt ();
20569 int
20570 main ()
20571 {
20572 return des_cbc_encrypt ();
20573 ;
20574 return 0;
20575 }
20576 _ACEOF
20577 rm -f conftest.$ac_objext conftest$ac_exeext
20578 if { (ac_try="$ac_link"
20579 case "(($ac_try" in
20580 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20581 *) ac_try_echo=$ac_try;;
20582 esac
20583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20584 (eval "$ac_link") 2>conftest.er1
20585 ac_status=$?
20586 grep -v '^ *+' conftest.er1 >conftest.err
20587 rm -f conftest.er1
20588 cat conftest.err >&5
20589 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20590 (exit $ac_status); } && {
20591 test -z "$ac_c_werror_flag" ||
20592 test ! -s conftest.err
20593 } && test -s conftest$ac_exeext &&
20594 $as_test_x conftest$ac_exeext; then
20595 ac_cv_lib_des425_des_cbc_encrypt=yes
20596 else
20597 echo "$as_me: failed program was:" >&5
20598 sed 's/^/| /' conftest.$ac_ext >&5
20599
20600 ac_cv_lib_des425_des_cbc_encrypt=no
20601 fi
20602
20603 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20604 conftest$ac_exeext conftest.$ac_ext
20605 LIBS=$ac_check_lib_save_LIBS
20606 fi
20607 { echo "$as_me:$LINENO: result: $ac_cv_lib_des425_des_cbc_encrypt" >&5
20608 echo "${ECHO_T}$ac_cv_lib_des425_des_cbc_encrypt" >&6; }
20609 if test $ac_cv_lib_des425_des_cbc_encrypt = yes; then
20610 cat >>confdefs.h <<_ACEOF
20611 #define HAVE_LIBDES425 1
20612 _ACEOF
20613
20614 LIBS="-ldes425 $LIBS"
20615
20616 else
20617
20618 { echo "$as_me:$LINENO: checking for des_cbc_encrypt in -ldes" >&5
20619 echo $ECHO_N "checking for des_cbc_encrypt in -ldes... $ECHO_C" >&6; }
20620 if test "${ac_cv_lib_des_des_cbc_encrypt+set}" = set; then
20621 echo $ECHO_N "(cached) $ECHO_C" >&6
20622 else
20623 ac_check_lib_save_LIBS=$LIBS
20624 LIBS="-ldes $LIBS"
20625 cat >conftest.$ac_ext <<_ACEOF
20626 /* confdefs.h. */
20627 _ACEOF
20628 cat confdefs.h >>conftest.$ac_ext
20629 cat >>conftest.$ac_ext <<_ACEOF
20630 /* end confdefs.h. */
20631
20632 /* Override any GCC internal prototype to avoid an error.
20633 Use char because int might match the return type of a GCC
20634 builtin and then its argument prototype would still apply. */
20635 #ifdef __cplusplus
20636 extern "C"
20637 #endif
20638 char des_cbc_encrypt ();
20639 int
20640 main ()
20641 {
20642 return des_cbc_encrypt ();
20643 ;
20644 return 0;
20645 }
20646 _ACEOF
20647 rm -f conftest.$ac_objext conftest$ac_exeext
20648 if { (ac_try="$ac_link"
20649 case "(($ac_try" in
20650 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20651 *) ac_try_echo=$ac_try;;
20652 esac
20653 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20654 (eval "$ac_link") 2>conftest.er1
20655 ac_status=$?
20656 grep -v '^ *+' conftest.er1 >conftest.err
20657 rm -f conftest.er1
20658 cat conftest.err >&5
20659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20660 (exit $ac_status); } && {
20661 test -z "$ac_c_werror_flag" ||
20662 test ! -s conftest.err
20663 } && test -s conftest$ac_exeext &&
20664 $as_test_x conftest$ac_exeext; then
20665 ac_cv_lib_des_des_cbc_encrypt=yes
20666 else
20667 echo "$as_me: failed program was:" >&5
20668 sed 's/^/| /' conftest.$ac_ext >&5
20669
20670 ac_cv_lib_des_des_cbc_encrypt=no
20671 fi
20672
20673 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20674 conftest$ac_exeext conftest.$ac_ext
20675 LIBS=$ac_check_lib_save_LIBS
20676 fi
20677 { echo "$as_me:$LINENO: result: $ac_cv_lib_des_des_cbc_encrypt" >&5
20678 echo "${ECHO_T}$ac_cv_lib_des_des_cbc_encrypt" >&6; }
20679 if test $ac_cv_lib_des_des_cbc_encrypt = yes; then
20680 cat >>confdefs.h <<_ACEOF
20681 #define HAVE_LIBDES 1
20682 _ACEOF
20683
20684 LIBS="-ldes $LIBS"
20685
20686 fi
20687
20688 fi
20689
20690
20691 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb4" >&5
20692 echo $ECHO_N "checking for krb_get_cred in -lkrb4... $ECHO_C" >&6; }
20693 if test "${ac_cv_lib_krb4_krb_get_cred+set}" = set; then
20694 echo $ECHO_N "(cached) $ECHO_C" >&6
20695 else
20696 ac_check_lib_save_LIBS=$LIBS
20697 LIBS="-lkrb4 $LIBS"
20698 cat >conftest.$ac_ext <<_ACEOF
20699 /* confdefs.h. */
20700 _ACEOF
20701 cat confdefs.h >>conftest.$ac_ext
20702 cat >>conftest.$ac_ext <<_ACEOF
20703 /* end confdefs.h. */
20704
20705 /* Override any GCC internal prototype to avoid an error.
20706 Use char because int might match the return type of a GCC
20707 builtin and then its argument prototype would still apply. */
20708 #ifdef __cplusplus
20709 extern "C"
20710 #endif
20711 char krb_get_cred ();
20712 int
20713 main ()
20714 {
20715 return krb_get_cred ();
20716 ;
20717 return 0;
20718 }
20719 _ACEOF
20720 rm -f conftest.$ac_objext conftest$ac_exeext
20721 if { (ac_try="$ac_link"
20722 case "(($ac_try" in
20723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20724 *) ac_try_echo=$ac_try;;
20725 esac
20726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20727 (eval "$ac_link") 2>conftest.er1
20728 ac_status=$?
20729 grep -v '^ *+' conftest.er1 >conftest.err
20730 rm -f conftest.er1
20731 cat conftest.err >&5
20732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20733 (exit $ac_status); } && {
20734 test -z "$ac_c_werror_flag" ||
20735 test ! -s conftest.err
20736 } && test -s conftest$ac_exeext &&
20737 $as_test_x conftest$ac_exeext; then
20738 ac_cv_lib_krb4_krb_get_cred=yes
20739 else
20740 echo "$as_me: failed program was:" >&5
20741 sed 's/^/| /' conftest.$ac_ext >&5
20742
20743 ac_cv_lib_krb4_krb_get_cred=no
20744 fi
20745
20746 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20747 conftest$ac_exeext conftest.$ac_ext
20748 LIBS=$ac_check_lib_save_LIBS
20749 fi
20750 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb4_krb_get_cred" >&5
20751 echo "${ECHO_T}$ac_cv_lib_krb4_krb_get_cred" >&6; }
20752 if test $ac_cv_lib_krb4_krb_get_cred = yes; then
20753 cat >>confdefs.h <<_ACEOF
20754 #define HAVE_LIBKRB4 1
20755 _ACEOF
20756
20757 LIBS="-lkrb4 $LIBS"
20758
20759 else
20760
20761 { echo "$as_me:$LINENO: checking for krb_get_cred in -lkrb" >&5
20762 echo $ECHO_N "checking for krb_get_cred in -lkrb... $ECHO_C" >&6; }
20763 if test "${ac_cv_lib_krb_krb_get_cred+set}" = set; then
20764 echo $ECHO_N "(cached) $ECHO_C" >&6
20765 else
20766 ac_check_lib_save_LIBS=$LIBS
20767 LIBS="-lkrb $LIBS"
20768 cat >conftest.$ac_ext <<_ACEOF
20769 /* confdefs.h. */
20770 _ACEOF
20771 cat confdefs.h >>conftest.$ac_ext
20772 cat >>conftest.$ac_ext <<_ACEOF
20773 /* end confdefs.h. */
20774
20775 /* Override any GCC internal prototype to avoid an error.
20776 Use char because int might match the return type of a GCC
20777 builtin and then its argument prototype would still apply. */
20778 #ifdef __cplusplus
20779 extern "C"
20780 #endif
20781 char krb_get_cred ();
20782 int
20783 main ()
20784 {
20785 return krb_get_cred ();
20786 ;
20787 return 0;
20788 }
20789 _ACEOF
20790 rm -f conftest.$ac_objext conftest$ac_exeext
20791 if { (ac_try="$ac_link"
20792 case "(($ac_try" in
20793 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20794 *) ac_try_echo=$ac_try;;
20795 esac
20796 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20797 (eval "$ac_link") 2>conftest.er1
20798 ac_status=$?
20799 grep -v '^ *+' conftest.er1 >conftest.err
20800 rm -f conftest.er1
20801 cat conftest.err >&5
20802 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20803 (exit $ac_status); } && {
20804 test -z "$ac_c_werror_flag" ||
20805 test ! -s conftest.err
20806 } && test -s conftest$ac_exeext &&
20807 $as_test_x conftest$ac_exeext; then
20808 ac_cv_lib_krb_krb_get_cred=yes
20809 else
20810 echo "$as_me: failed program was:" >&5
20811 sed 's/^/| /' conftest.$ac_ext >&5
20812
20813 ac_cv_lib_krb_krb_get_cred=no
20814 fi
20815
20816 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
20817 conftest$ac_exeext conftest.$ac_ext
20818 LIBS=$ac_check_lib_save_LIBS
20819 fi
20820 { echo "$as_me:$LINENO: result: $ac_cv_lib_krb_krb_get_cred" >&5
20821 echo "${ECHO_T}$ac_cv_lib_krb_krb_get_cred" >&6; }
20822 if test $ac_cv_lib_krb_krb_get_cred = yes; then
20823 cat >>confdefs.h <<_ACEOF
20824 #define HAVE_LIBKRB 1
20825 _ACEOF
20826
20827 LIBS="-lkrb $LIBS"
20828
20829 fi
20830
20831 fi
20832
20833 fi
20834
20835 if test "${with_kerberos5+set}" = set; then
20836
20837 for ac_header in krb5.h
20838 do
20839 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20841 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20842 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20843 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20844 echo $ECHO_N "(cached) $ECHO_C" >&6
20845 fi
20846 ac_res=`eval echo '${'$as_ac_Header'}'`
20847 { echo "$as_me:$LINENO: result: $ac_res" >&5
20848 echo "${ECHO_T}$ac_res" >&6; }
20849 else
20850 # Is the header compilable?
20851 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20852 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20853 cat >conftest.$ac_ext <<_ACEOF
20854 /* confdefs.h. */
20855 _ACEOF
20856 cat confdefs.h >>conftest.$ac_ext
20857 cat >>conftest.$ac_ext <<_ACEOF
20858 /* end confdefs.h. */
20859 $ac_includes_default
20860 #include <$ac_header>
20861 _ACEOF
20862 rm -f conftest.$ac_objext
20863 if { (ac_try="$ac_compile"
20864 case "(($ac_try" in
20865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20866 *) ac_try_echo=$ac_try;;
20867 esac
20868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20869 (eval "$ac_compile") 2>conftest.er1
20870 ac_status=$?
20871 grep -v '^ *+' conftest.er1 >conftest.err
20872 rm -f conftest.er1
20873 cat conftest.err >&5
20874 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20875 (exit $ac_status); } && {
20876 test -z "$ac_c_werror_flag" ||
20877 test ! -s conftest.err
20878 } && test -s conftest.$ac_objext; then
20879 ac_header_compiler=yes
20880 else
20881 echo "$as_me: failed program was:" >&5
20882 sed 's/^/| /' conftest.$ac_ext >&5
20883
20884 ac_header_compiler=no
20885 fi
20886
20887 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20888 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
20889 echo "${ECHO_T}$ac_header_compiler" >&6; }
20890
20891 # Is the header present?
20892 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
20893 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
20894 cat >conftest.$ac_ext <<_ACEOF
20895 /* confdefs.h. */
20896 _ACEOF
20897 cat confdefs.h >>conftest.$ac_ext
20898 cat >>conftest.$ac_ext <<_ACEOF
20899 /* end confdefs.h. */
20900 #include <$ac_header>
20901 _ACEOF
20902 if { (ac_try="$ac_cpp conftest.$ac_ext"
20903 case "(($ac_try" in
20904 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20905 *) ac_try_echo=$ac_try;;
20906 esac
20907 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20908 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
20909 ac_status=$?
20910 grep -v '^ *+' conftest.er1 >conftest.err
20911 rm -f conftest.er1
20912 cat conftest.err >&5
20913 echo "$as_me:$LINENO: \$? = $ac_status" >&5
20914 (exit $ac_status); } >/dev/null && {
20915 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
20916 test ! -s conftest.err
20917 }; then
20918 ac_header_preproc=yes
20919 else
20920 echo "$as_me: failed program was:" >&5
20921 sed 's/^/| /' conftest.$ac_ext >&5
20922
20923 ac_header_preproc=no
20924 fi
20925
20926 rm -f conftest.err conftest.$ac_ext
20927 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
20928 echo "${ECHO_T}$ac_header_preproc" >&6; }
20929
20930 # So? What about this header?
20931 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
20932 yes:no: )
20933 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
20934 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
20935 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
20936 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
20937 ac_header_preproc=yes
20938 ;;
20939 no:yes:* )
20940 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
20941 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
20942 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
20943 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
20944 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
20945 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
20946 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
20947 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
20948 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
20949 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
20950 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
20951 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
20952
20953 ;;
20954 esac
20955 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20956 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20957 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20958 echo $ECHO_N "(cached) $ECHO_C" >&6
20959 else
20960 eval "$as_ac_Header=\$ac_header_preproc"
20961 fi
20962 ac_res=`eval echo '${'$as_ac_Header'}'`
20963 { echo "$as_me:$LINENO: result: $ac_res" >&5
20964 echo "${ECHO_T}$ac_res" >&6; }
20965
20966 fi
20967 if test `eval echo '${'$as_ac_Header'}'` = yes; then
20968 cat >>confdefs.h <<_ACEOF
20969 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
20970 _ACEOF
20971
20972 fi
20973
20974 done
20975
20976 else
20977
20978 for ac_header in des.h
20979 do
20980 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
20981 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20982 { echo "$as_me:$LINENO: checking for $ac_header" >&5
20983 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
20984 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
20985 echo $ECHO_N "(cached) $ECHO_C" >&6
20986 fi
20987 ac_res=`eval echo '${'$as_ac_Header'}'`
20988 { echo "$as_me:$LINENO: result: $ac_res" >&5
20989 echo "${ECHO_T}$ac_res" >&6; }
20990 else
20991 # Is the header compilable?
20992 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
20993 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
20994 cat >conftest.$ac_ext <<_ACEOF
20995 /* confdefs.h. */
20996 _ACEOF
20997 cat confdefs.h >>conftest.$ac_ext
20998 cat >>conftest.$ac_ext <<_ACEOF
20999 /* end confdefs.h. */
21000 $ac_includes_default
21001 #include <$ac_header>
21002 _ACEOF
21003 rm -f conftest.$ac_objext
21004 if { (ac_try="$ac_compile"
21005 case "(($ac_try" in
21006 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21007 *) ac_try_echo=$ac_try;;
21008 esac
21009 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21010 (eval "$ac_compile") 2>conftest.er1
21011 ac_status=$?
21012 grep -v '^ *+' conftest.er1 >conftest.err
21013 rm -f conftest.er1
21014 cat conftest.err >&5
21015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21016 (exit $ac_status); } && {
21017 test -z "$ac_c_werror_flag" ||
21018 test ! -s conftest.err
21019 } && test -s conftest.$ac_objext; then
21020 ac_header_compiler=yes
21021 else
21022 echo "$as_me: failed program was:" >&5
21023 sed 's/^/| /' conftest.$ac_ext >&5
21024
21025 ac_header_compiler=no
21026 fi
21027
21028 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21029 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21030 echo "${ECHO_T}$ac_header_compiler" >&6; }
21031
21032 # Is the header present?
21033 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21034 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21035 cat >conftest.$ac_ext <<_ACEOF
21036 /* confdefs.h. */
21037 _ACEOF
21038 cat confdefs.h >>conftest.$ac_ext
21039 cat >>conftest.$ac_ext <<_ACEOF
21040 /* end confdefs.h. */
21041 #include <$ac_header>
21042 _ACEOF
21043 if { (ac_try="$ac_cpp conftest.$ac_ext"
21044 case "(($ac_try" in
21045 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21046 *) ac_try_echo=$ac_try;;
21047 esac
21048 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21049 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21050 ac_status=$?
21051 grep -v '^ *+' conftest.er1 >conftest.err
21052 rm -f conftest.er1
21053 cat conftest.err >&5
21054 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21055 (exit $ac_status); } >/dev/null && {
21056 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21057 test ! -s conftest.err
21058 }; then
21059 ac_header_preproc=yes
21060 else
21061 echo "$as_me: failed program was:" >&5
21062 sed 's/^/| /' conftest.$ac_ext >&5
21063
21064 ac_header_preproc=no
21065 fi
21066
21067 rm -f conftest.err conftest.$ac_ext
21068 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21069 echo "${ECHO_T}$ac_header_preproc" >&6; }
21070
21071 # So? What about this header?
21072 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21073 yes:no: )
21074 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21075 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21076 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21077 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21078 ac_header_preproc=yes
21079 ;;
21080 no:yes:* )
21081 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21082 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21083 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21084 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21085 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21086 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21087 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21088 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21089 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21090 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21091 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21092 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21093
21094 ;;
21095 esac
21096 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21097 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21098 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21099 echo $ECHO_N "(cached) $ECHO_C" >&6
21100 else
21101 eval "$as_ac_Header=\$ac_header_preproc"
21102 fi
21103 ac_res=`eval echo '${'$as_ac_Header'}'`
21104 { echo "$as_me:$LINENO: result: $ac_res" >&5
21105 echo "${ECHO_T}$ac_res" >&6; }
21106
21107 fi
21108 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21109 cat >>confdefs.h <<_ACEOF
21110 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21111 _ACEOF
21112
21113 else
21114
21115 for ac_header in kerberosIV/des.h
21116 do
21117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21122 echo $ECHO_N "(cached) $ECHO_C" >&6
21123 fi
21124 ac_res=`eval echo '${'$as_ac_Header'}'`
21125 { echo "$as_me:$LINENO: result: $ac_res" >&5
21126 echo "${ECHO_T}$ac_res" >&6; }
21127 else
21128 # Is the header compilable?
21129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21131 cat >conftest.$ac_ext <<_ACEOF
21132 /* confdefs.h. */
21133 _ACEOF
21134 cat confdefs.h >>conftest.$ac_ext
21135 cat >>conftest.$ac_ext <<_ACEOF
21136 /* end confdefs.h. */
21137 $ac_includes_default
21138 #include <$ac_header>
21139 _ACEOF
21140 rm -f conftest.$ac_objext
21141 if { (ac_try="$ac_compile"
21142 case "(($ac_try" in
21143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21144 *) ac_try_echo=$ac_try;;
21145 esac
21146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21147 (eval "$ac_compile") 2>conftest.er1
21148 ac_status=$?
21149 grep -v '^ *+' conftest.er1 >conftest.err
21150 rm -f conftest.er1
21151 cat conftest.err >&5
21152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21153 (exit $ac_status); } && {
21154 test -z "$ac_c_werror_flag" ||
21155 test ! -s conftest.err
21156 } && test -s conftest.$ac_objext; then
21157 ac_header_compiler=yes
21158 else
21159 echo "$as_me: failed program was:" >&5
21160 sed 's/^/| /' conftest.$ac_ext >&5
21161
21162 ac_header_compiler=no
21163 fi
21164
21165 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21166 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21167 echo "${ECHO_T}$ac_header_compiler" >&6; }
21168
21169 # Is the header present?
21170 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21171 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21172 cat >conftest.$ac_ext <<_ACEOF
21173 /* confdefs.h. */
21174 _ACEOF
21175 cat confdefs.h >>conftest.$ac_ext
21176 cat >>conftest.$ac_ext <<_ACEOF
21177 /* end confdefs.h. */
21178 #include <$ac_header>
21179 _ACEOF
21180 if { (ac_try="$ac_cpp conftest.$ac_ext"
21181 case "(($ac_try" in
21182 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21183 *) ac_try_echo=$ac_try;;
21184 esac
21185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21186 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21187 ac_status=$?
21188 grep -v '^ *+' conftest.er1 >conftest.err
21189 rm -f conftest.er1
21190 cat conftest.err >&5
21191 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21192 (exit $ac_status); } >/dev/null && {
21193 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21194 test ! -s conftest.err
21195 }; then
21196 ac_header_preproc=yes
21197 else
21198 echo "$as_me: failed program was:" >&5
21199 sed 's/^/| /' conftest.$ac_ext >&5
21200
21201 ac_header_preproc=no
21202 fi
21203
21204 rm -f conftest.err conftest.$ac_ext
21205 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21206 echo "${ECHO_T}$ac_header_preproc" >&6; }
21207
21208 # So? What about this header?
21209 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21210 yes:no: )
21211 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21212 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21213 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21214 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21215 ac_header_preproc=yes
21216 ;;
21217 no:yes:* )
21218 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21219 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21220 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21221 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21222 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21223 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21224 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21225 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21226 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21227 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21228 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21229 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21230
21231 ;;
21232 esac
21233 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21234 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21235 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21236 echo $ECHO_N "(cached) $ECHO_C" >&6
21237 else
21238 eval "$as_ac_Header=\$ac_header_preproc"
21239 fi
21240 ac_res=`eval echo '${'$as_ac_Header'}'`
21241 { echo "$as_me:$LINENO: result: $ac_res" >&5
21242 echo "${ECHO_T}$ac_res" >&6; }
21243
21244 fi
21245 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21246 cat >>confdefs.h <<_ACEOF
21247 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21248 _ACEOF
21249
21250 else
21251
21252 for ac_header in kerberos/des.h
21253 do
21254 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21255 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21256 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21257 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21258 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21259 echo $ECHO_N "(cached) $ECHO_C" >&6
21260 fi
21261 ac_res=`eval echo '${'$as_ac_Header'}'`
21262 { echo "$as_me:$LINENO: result: $ac_res" >&5
21263 echo "${ECHO_T}$ac_res" >&6; }
21264 else
21265 # Is the header compilable?
21266 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21267 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21268 cat >conftest.$ac_ext <<_ACEOF
21269 /* confdefs.h. */
21270 _ACEOF
21271 cat confdefs.h >>conftest.$ac_ext
21272 cat >>conftest.$ac_ext <<_ACEOF
21273 /* end confdefs.h. */
21274 $ac_includes_default
21275 #include <$ac_header>
21276 _ACEOF
21277 rm -f conftest.$ac_objext
21278 if { (ac_try="$ac_compile"
21279 case "(($ac_try" in
21280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21281 *) ac_try_echo=$ac_try;;
21282 esac
21283 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21284 (eval "$ac_compile") 2>conftest.er1
21285 ac_status=$?
21286 grep -v '^ *+' conftest.er1 >conftest.err
21287 rm -f conftest.er1
21288 cat conftest.err >&5
21289 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21290 (exit $ac_status); } && {
21291 test -z "$ac_c_werror_flag" ||
21292 test ! -s conftest.err
21293 } && test -s conftest.$ac_objext; then
21294 ac_header_compiler=yes
21295 else
21296 echo "$as_me: failed program was:" >&5
21297 sed 's/^/| /' conftest.$ac_ext >&5
21298
21299 ac_header_compiler=no
21300 fi
21301
21302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21303 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21304 echo "${ECHO_T}$ac_header_compiler" >&6; }
21305
21306 # Is the header present?
21307 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21308 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21309 cat >conftest.$ac_ext <<_ACEOF
21310 /* confdefs.h. */
21311 _ACEOF
21312 cat confdefs.h >>conftest.$ac_ext
21313 cat >>conftest.$ac_ext <<_ACEOF
21314 /* end confdefs.h. */
21315 #include <$ac_header>
21316 _ACEOF
21317 if { (ac_try="$ac_cpp conftest.$ac_ext"
21318 case "(($ac_try" in
21319 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21320 *) ac_try_echo=$ac_try;;
21321 esac
21322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21323 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21324 ac_status=$?
21325 grep -v '^ *+' conftest.er1 >conftest.err
21326 rm -f conftest.er1
21327 cat conftest.err >&5
21328 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21329 (exit $ac_status); } >/dev/null && {
21330 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21331 test ! -s conftest.err
21332 }; then
21333 ac_header_preproc=yes
21334 else
21335 echo "$as_me: failed program was:" >&5
21336 sed 's/^/| /' conftest.$ac_ext >&5
21337
21338 ac_header_preproc=no
21339 fi
21340
21341 rm -f conftest.err conftest.$ac_ext
21342 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21343 echo "${ECHO_T}$ac_header_preproc" >&6; }
21344
21345 # So? What about this header?
21346 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21347 yes:no: )
21348 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21349 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21350 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21351 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21352 ac_header_preproc=yes
21353 ;;
21354 no:yes:* )
21355 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21356 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21357 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21358 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21359 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21360 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21361 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21362 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21363 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21364 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21365 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21366 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21367
21368 ;;
21369 esac
21370 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21371 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21372 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21373 echo $ECHO_N "(cached) $ECHO_C" >&6
21374 else
21375 eval "$as_ac_Header=\$ac_header_preproc"
21376 fi
21377 ac_res=`eval echo '${'$as_ac_Header'}'`
21378 { echo "$as_me:$LINENO: result: $ac_res" >&5
21379 echo "${ECHO_T}$ac_res" >&6; }
21380
21381 fi
21382 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21383 cat >>confdefs.h <<_ACEOF
21384 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21385 _ACEOF
21386
21387 fi
21388
21389 done
21390
21391 fi
21392
21393 done
21394
21395 fi
21396
21397 done
21398
21399
21400 for ac_header in krb.h
21401 do
21402 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21403 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21404 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21405 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21407 echo $ECHO_N "(cached) $ECHO_C" >&6
21408 fi
21409 ac_res=`eval echo '${'$as_ac_Header'}'`
21410 { echo "$as_me:$LINENO: result: $ac_res" >&5
21411 echo "${ECHO_T}$ac_res" >&6; }
21412 else
21413 # Is the header compilable?
21414 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21415 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21416 cat >conftest.$ac_ext <<_ACEOF
21417 /* confdefs.h. */
21418 _ACEOF
21419 cat confdefs.h >>conftest.$ac_ext
21420 cat >>conftest.$ac_ext <<_ACEOF
21421 /* end confdefs.h. */
21422 $ac_includes_default
21423 #include <$ac_header>
21424 _ACEOF
21425 rm -f conftest.$ac_objext
21426 if { (ac_try="$ac_compile"
21427 case "(($ac_try" in
21428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21429 *) ac_try_echo=$ac_try;;
21430 esac
21431 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21432 (eval "$ac_compile") 2>conftest.er1
21433 ac_status=$?
21434 grep -v '^ *+' conftest.er1 >conftest.err
21435 rm -f conftest.er1
21436 cat conftest.err >&5
21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21438 (exit $ac_status); } && {
21439 test -z "$ac_c_werror_flag" ||
21440 test ! -s conftest.err
21441 } && test -s conftest.$ac_objext; then
21442 ac_header_compiler=yes
21443 else
21444 echo "$as_me: failed program was:" >&5
21445 sed 's/^/| /' conftest.$ac_ext >&5
21446
21447 ac_header_compiler=no
21448 fi
21449
21450 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21451 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21452 echo "${ECHO_T}$ac_header_compiler" >&6; }
21453
21454 # Is the header present?
21455 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21456 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21457 cat >conftest.$ac_ext <<_ACEOF
21458 /* confdefs.h. */
21459 _ACEOF
21460 cat confdefs.h >>conftest.$ac_ext
21461 cat >>conftest.$ac_ext <<_ACEOF
21462 /* end confdefs.h. */
21463 #include <$ac_header>
21464 _ACEOF
21465 if { (ac_try="$ac_cpp conftest.$ac_ext"
21466 case "(($ac_try" in
21467 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21468 *) ac_try_echo=$ac_try;;
21469 esac
21470 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21471 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21472 ac_status=$?
21473 grep -v '^ *+' conftest.er1 >conftest.err
21474 rm -f conftest.er1
21475 cat conftest.err >&5
21476 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21477 (exit $ac_status); } >/dev/null && {
21478 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21479 test ! -s conftest.err
21480 }; then
21481 ac_header_preproc=yes
21482 else
21483 echo "$as_me: failed program was:" >&5
21484 sed 's/^/| /' conftest.$ac_ext >&5
21485
21486 ac_header_preproc=no
21487 fi
21488
21489 rm -f conftest.err conftest.$ac_ext
21490 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21491 echo "${ECHO_T}$ac_header_preproc" >&6; }
21492
21493 # So? What about this header?
21494 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21495 yes:no: )
21496 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21497 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21498 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21499 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21500 ac_header_preproc=yes
21501 ;;
21502 no:yes:* )
21503 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21504 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21505 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21506 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21507 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21508 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21509 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21510 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21511 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21512 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21513 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21514 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21515
21516 ;;
21517 esac
21518 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21519 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21521 echo $ECHO_N "(cached) $ECHO_C" >&6
21522 else
21523 eval "$as_ac_Header=\$ac_header_preproc"
21524 fi
21525 ac_res=`eval echo '${'$as_ac_Header'}'`
21526 { echo "$as_me:$LINENO: result: $ac_res" >&5
21527 echo "${ECHO_T}$ac_res" >&6; }
21528
21529 fi
21530 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21531 cat >>confdefs.h <<_ACEOF
21532 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21533 _ACEOF
21534
21535 else
21536
21537 for ac_header in kerberosIV/krb.h
21538 do
21539 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21540 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21541 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21542 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21543 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21544 echo $ECHO_N "(cached) $ECHO_C" >&6
21545 fi
21546 ac_res=`eval echo '${'$as_ac_Header'}'`
21547 { echo "$as_me:$LINENO: result: $ac_res" >&5
21548 echo "${ECHO_T}$ac_res" >&6; }
21549 else
21550 # Is the header compilable?
21551 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21552 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21553 cat >conftest.$ac_ext <<_ACEOF
21554 /* confdefs.h. */
21555 _ACEOF
21556 cat confdefs.h >>conftest.$ac_ext
21557 cat >>conftest.$ac_ext <<_ACEOF
21558 /* end confdefs.h. */
21559 $ac_includes_default
21560 #include <$ac_header>
21561 _ACEOF
21562 rm -f conftest.$ac_objext
21563 if { (ac_try="$ac_compile"
21564 case "(($ac_try" in
21565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21566 *) ac_try_echo=$ac_try;;
21567 esac
21568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21569 (eval "$ac_compile") 2>conftest.er1
21570 ac_status=$?
21571 grep -v '^ *+' conftest.er1 >conftest.err
21572 rm -f conftest.er1
21573 cat conftest.err >&5
21574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21575 (exit $ac_status); } && {
21576 test -z "$ac_c_werror_flag" ||
21577 test ! -s conftest.err
21578 } && test -s conftest.$ac_objext; then
21579 ac_header_compiler=yes
21580 else
21581 echo "$as_me: failed program was:" >&5
21582 sed 's/^/| /' conftest.$ac_ext >&5
21583
21584 ac_header_compiler=no
21585 fi
21586
21587 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21588 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21589 echo "${ECHO_T}$ac_header_compiler" >&6; }
21590
21591 # Is the header present?
21592 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21593 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21594 cat >conftest.$ac_ext <<_ACEOF
21595 /* confdefs.h. */
21596 _ACEOF
21597 cat confdefs.h >>conftest.$ac_ext
21598 cat >>conftest.$ac_ext <<_ACEOF
21599 /* end confdefs.h. */
21600 #include <$ac_header>
21601 _ACEOF
21602 if { (ac_try="$ac_cpp conftest.$ac_ext"
21603 case "(($ac_try" in
21604 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21605 *) ac_try_echo=$ac_try;;
21606 esac
21607 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21608 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21609 ac_status=$?
21610 grep -v '^ *+' conftest.er1 >conftest.err
21611 rm -f conftest.er1
21612 cat conftest.err >&5
21613 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21614 (exit $ac_status); } >/dev/null && {
21615 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21616 test ! -s conftest.err
21617 }; then
21618 ac_header_preproc=yes
21619 else
21620 echo "$as_me: failed program was:" >&5
21621 sed 's/^/| /' conftest.$ac_ext >&5
21622
21623 ac_header_preproc=no
21624 fi
21625
21626 rm -f conftest.err conftest.$ac_ext
21627 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21628 echo "${ECHO_T}$ac_header_preproc" >&6; }
21629
21630 # So? What about this header?
21631 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21632 yes:no: )
21633 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21634 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21635 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21636 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21637 ac_header_preproc=yes
21638 ;;
21639 no:yes:* )
21640 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21641 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21642 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21643 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21644 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21645 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21646 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21647 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21648 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21649 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21650 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21651 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21652
21653 ;;
21654 esac
21655 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21658 echo $ECHO_N "(cached) $ECHO_C" >&6
21659 else
21660 eval "$as_ac_Header=\$ac_header_preproc"
21661 fi
21662 ac_res=`eval echo '${'$as_ac_Header'}'`
21663 { echo "$as_me:$LINENO: result: $ac_res" >&5
21664 echo "${ECHO_T}$ac_res" >&6; }
21665
21666 fi
21667 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21668 cat >>confdefs.h <<_ACEOF
21669 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21670 _ACEOF
21671
21672 else
21673
21674 for ac_header in kerberos/krb.h
21675 do
21676 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21677 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21678 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21679 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21680 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21681 echo $ECHO_N "(cached) $ECHO_C" >&6
21682 fi
21683 ac_res=`eval echo '${'$as_ac_Header'}'`
21684 { echo "$as_me:$LINENO: result: $ac_res" >&5
21685 echo "${ECHO_T}$ac_res" >&6; }
21686 else
21687 # Is the header compilable?
21688 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21689 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21690 cat >conftest.$ac_ext <<_ACEOF
21691 /* confdefs.h. */
21692 _ACEOF
21693 cat confdefs.h >>conftest.$ac_ext
21694 cat >>conftest.$ac_ext <<_ACEOF
21695 /* end confdefs.h. */
21696 $ac_includes_default
21697 #include <$ac_header>
21698 _ACEOF
21699 rm -f conftest.$ac_objext
21700 if { (ac_try="$ac_compile"
21701 case "(($ac_try" in
21702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21703 *) ac_try_echo=$ac_try;;
21704 esac
21705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21706 (eval "$ac_compile") 2>conftest.er1
21707 ac_status=$?
21708 grep -v '^ *+' conftest.er1 >conftest.err
21709 rm -f conftest.er1
21710 cat conftest.err >&5
21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21712 (exit $ac_status); } && {
21713 test -z "$ac_c_werror_flag" ||
21714 test ! -s conftest.err
21715 } && test -s conftest.$ac_objext; then
21716 ac_header_compiler=yes
21717 else
21718 echo "$as_me: failed program was:" >&5
21719 sed 's/^/| /' conftest.$ac_ext >&5
21720
21721 ac_header_compiler=no
21722 fi
21723
21724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21726 echo "${ECHO_T}$ac_header_compiler" >&6; }
21727
21728 # Is the header present?
21729 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21730 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21731 cat >conftest.$ac_ext <<_ACEOF
21732 /* confdefs.h. */
21733 _ACEOF
21734 cat confdefs.h >>conftest.$ac_ext
21735 cat >>conftest.$ac_ext <<_ACEOF
21736 /* end confdefs.h. */
21737 #include <$ac_header>
21738 _ACEOF
21739 if { (ac_try="$ac_cpp conftest.$ac_ext"
21740 case "(($ac_try" in
21741 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21742 *) ac_try_echo=$ac_try;;
21743 esac
21744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21745 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21746 ac_status=$?
21747 grep -v '^ *+' conftest.er1 >conftest.err
21748 rm -f conftest.er1
21749 cat conftest.err >&5
21750 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21751 (exit $ac_status); } >/dev/null && {
21752 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21753 test ! -s conftest.err
21754 }; then
21755 ac_header_preproc=yes
21756 else
21757 echo "$as_me: failed program was:" >&5
21758 sed 's/^/| /' conftest.$ac_ext >&5
21759
21760 ac_header_preproc=no
21761 fi
21762
21763 rm -f conftest.err conftest.$ac_ext
21764 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21765 echo "${ECHO_T}$ac_header_preproc" >&6; }
21766
21767 # So? What about this header?
21768 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21769 yes:no: )
21770 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21771 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21772 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21773 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21774 ac_header_preproc=yes
21775 ;;
21776 no:yes:* )
21777 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21778 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21779 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21780 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21781 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21782 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21783 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21784 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21785 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21786 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21787 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21788 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21789
21790 ;;
21791 esac
21792 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21793 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21794 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21795 echo $ECHO_N "(cached) $ECHO_C" >&6
21796 else
21797 eval "$as_ac_Header=\$ac_header_preproc"
21798 fi
21799 ac_res=`eval echo '${'$as_ac_Header'}'`
21800 { echo "$as_me:$LINENO: result: $ac_res" >&5
21801 echo "${ECHO_T}$ac_res" >&6; }
21802
21803 fi
21804 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21805 cat >>confdefs.h <<_ACEOF
21806 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21807 _ACEOF
21808
21809 fi
21810
21811 done
21812
21813 fi
21814
21815 done
21816
21817 fi
21818
21819 done
21820
21821 fi
21822
21823 for ac_header in com_err.h
21824 do
21825 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
21826 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21827 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21828 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21829 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21830 echo $ECHO_N "(cached) $ECHO_C" >&6
21831 fi
21832 ac_res=`eval echo '${'$as_ac_Header'}'`
21833 { echo "$as_me:$LINENO: result: $ac_res" >&5
21834 echo "${ECHO_T}$ac_res" >&6; }
21835 else
21836 # Is the header compilable?
21837 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
21838 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
21839 cat >conftest.$ac_ext <<_ACEOF
21840 /* confdefs.h. */
21841 _ACEOF
21842 cat confdefs.h >>conftest.$ac_ext
21843 cat >>conftest.$ac_ext <<_ACEOF
21844 /* end confdefs.h. */
21845 $ac_includes_default
21846 #include <$ac_header>
21847 _ACEOF
21848 rm -f conftest.$ac_objext
21849 if { (ac_try="$ac_compile"
21850 case "(($ac_try" in
21851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21852 *) ac_try_echo=$ac_try;;
21853 esac
21854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21855 (eval "$ac_compile") 2>conftest.er1
21856 ac_status=$?
21857 grep -v '^ *+' conftest.er1 >conftest.err
21858 rm -f conftest.er1
21859 cat conftest.err >&5
21860 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21861 (exit $ac_status); } && {
21862 test -z "$ac_c_werror_flag" ||
21863 test ! -s conftest.err
21864 } && test -s conftest.$ac_objext; then
21865 ac_header_compiler=yes
21866 else
21867 echo "$as_me: failed program was:" >&5
21868 sed 's/^/| /' conftest.$ac_ext >&5
21869
21870 ac_header_compiler=no
21871 fi
21872
21873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
21874 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
21875 echo "${ECHO_T}$ac_header_compiler" >&6; }
21876
21877 # Is the header present?
21878 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
21879 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
21880 cat >conftest.$ac_ext <<_ACEOF
21881 /* confdefs.h. */
21882 _ACEOF
21883 cat confdefs.h >>conftest.$ac_ext
21884 cat >>conftest.$ac_ext <<_ACEOF
21885 /* end confdefs.h. */
21886 #include <$ac_header>
21887 _ACEOF
21888 if { (ac_try="$ac_cpp conftest.$ac_ext"
21889 case "(($ac_try" in
21890 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
21891 *) ac_try_echo=$ac_try;;
21892 esac
21893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
21894 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
21895 ac_status=$?
21896 grep -v '^ *+' conftest.er1 >conftest.err
21897 rm -f conftest.er1
21898 cat conftest.err >&5
21899 echo "$as_me:$LINENO: \$? = $ac_status" >&5
21900 (exit $ac_status); } >/dev/null && {
21901 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
21902 test ! -s conftest.err
21903 }; then
21904 ac_header_preproc=yes
21905 else
21906 echo "$as_me: failed program was:" >&5
21907 sed 's/^/| /' conftest.$ac_ext >&5
21908
21909 ac_header_preproc=no
21910 fi
21911
21912 rm -f conftest.err conftest.$ac_ext
21913 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
21914 echo "${ECHO_T}$ac_header_preproc" >&6; }
21915
21916 # So? What about this header?
21917 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
21918 yes:no: )
21919 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
21920 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
21921 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
21922 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
21923 ac_header_preproc=yes
21924 ;;
21925 no:yes:* )
21926 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
21927 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
21928 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
21929 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
21930 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
21931 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
21932 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
21933 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
21934 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
21935 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
21936 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
21937 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
21938
21939 ;;
21940 esac
21941 { echo "$as_me:$LINENO: checking for $ac_header" >&5
21942 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
21943 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
21944 echo $ECHO_N "(cached) $ECHO_C" >&6
21945 else
21946 eval "$as_ac_Header=\$ac_header_preproc"
21947 fi
21948 ac_res=`eval echo '${'$as_ac_Header'}'`
21949 { echo "$as_me:$LINENO: result: $ac_res" >&5
21950 echo "${ECHO_T}$ac_res" >&6; }
21951
21952 fi
21953 if test `eval echo '${'$as_ac_Header'}'` = yes; then
21954 cat >>confdefs.h <<_ACEOF
21955 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
21956 _ACEOF
21957
21958 fi
21959
21960 done
21961
21962 fi
21963
21964 # Solaris requires -lintl if you want strerror (which calls dgettext)
21965 # to return localized messages.
21966
21967 { echo "$as_me:$LINENO: checking for dgettext in -lintl" >&5
21968 echo $ECHO_N "checking for dgettext in -lintl... $ECHO_C" >&6; }
21969 if test "${ac_cv_lib_intl_dgettext+set}" = set; then
21970 echo $ECHO_N "(cached) $ECHO_C" >&6
21971 else
21972 ac_check_lib_save_LIBS=$LIBS
21973 LIBS="-lintl $LIBS"
21974 cat >conftest.$ac_ext <<_ACEOF
21975 /* confdefs.h. */
21976 _ACEOF
21977 cat confdefs.h >>conftest.$ac_ext
21978 cat >>conftest.$ac_ext <<_ACEOF
21979 /* end confdefs.h. */
21980
21981 /* Override any GCC internal prototype to avoid an error.
21982 Use char because int might match the return type of a GCC
21983 builtin and then its argument prototype would still apply. */
21984 #ifdef __cplusplus
21985 extern "C"
21986 #endif
21987 char dgettext ();
21988 int
21989 main ()
21990 {
21991 return dgettext ();
21992 ;
21993 return 0;
21994 }
21995 _ACEOF
21996 rm -f conftest.$ac_objext conftest$ac_exeext
21997 if { (ac_try="$ac_link"
21998 case "(($ac_try" in
21999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22000 *) ac_try_echo=$ac_try;;
22001 esac
22002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22003 (eval "$ac_link") 2>conftest.er1
22004 ac_status=$?
22005 grep -v '^ *+' conftest.er1 >conftest.err
22006 rm -f conftest.er1
22007 cat conftest.err >&5
22008 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22009 (exit $ac_status); } && {
22010 test -z "$ac_c_werror_flag" ||
22011 test ! -s conftest.err
22012 } && test -s conftest$ac_exeext &&
22013 $as_test_x conftest$ac_exeext; then
22014 ac_cv_lib_intl_dgettext=yes
22015 else
22016 echo "$as_me: failed program was:" >&5
22017 sed 's/^/| /' conftest.$ac_ext >&5
22018
22019 ac_cv_lib_intl_dgettext=no
22020 fi
22021
22022 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22023 conftest$ac_exeext conftest.$ac_ext
22024 LIBS=$ac_check_lib_save_LIBS
22025 fi
22026 { echo "$as_me:$LINENO: result: $ac_cv_lib_intl_dgettext" >&5
22027 echo "${ECHO_T}$ac_cv_lib_intl_dgettext" >&6; }
22028 if test $ac_cv_lib_intl_dgettext = yes; then
22029 cat >>confdefs.h <<_ACEOF
22030 #define HAVE_LIBINTL 1
22031 _ACEOF
22032
22033 LIBS="-lintl $LIBS"
22034
22035 fi
22036
22037
22038 { echo "$as_me:$LINENO: checking whether localtime caches TZ" >&5
22039 echo $ECHO_N "checking whether localtime caches TZ... $ECHO_C" >&6; }
22040 if test "${emacs_cv_localtime_cache+set}" = set; then
22041 echo $ECHO_N "(cached) $ECHO_C" >&6
22042 else
22043 if test x$ac_cv_func_tzset = xyes; then
22044 if test "$cross_compiling" = yes; then
22045 # If we have tzset, assume the worst when cross-compiling.
22046 emacs_cv_localtime_cache=yes
22047 else
22048 cat >conftest.$ac_ext <<_ACEOF
22049 /* confdefs.h. */
22050 _ACEOF
22051 cat confdefs.h >>conftest.$ac_ext
22052 cat >>conftest.$ac_ext <<_ACEOF
22053 /* end confdefs.h. */
22054 #include <time.h>
22055 extern char **environ;
22056 unset_TZ ()
22057 {
22058 char **from, **to;
22059 for (to = from = environ; (*to = *from); from++)
22060 if (! (to[0][0] == 'T' && to[0][1] == 'Z' && to[0][2] == '='))
22061 to++;
22062 }
22063 char TZ_GMT0[] = "TZ=GMT0";
22064 char TZ_PST8[] = "TZ=PST8";
22065 main()
22066 {
22067 time_t now = time ((time_t *) 0);
22068 int hour_GMT0, hour_unset;
22069 if (putenv (TZ_GMT0) != 0)
22070 exit (1);
22071 hour_GMT0 = localtime (&now)->tm_hour;
22072 unset_TZ ();
22073 hour_unset = localtime (&now)->tm_hour;
22074 if (putenv (TZ_PST8) != 0)
22075 exit (1);
22076 if (localtime (&now)->tm_hour == hour_GMT0)
22077 exit (1);
22078 unset_TZ ();
22079 if (localtime (&now)->tm_hour != hour_unset)
22080 exit (1);
22081 exit (0);
22082 }
22083 _ACEOF
22084 rm -f conftest$ac_exeext
22085 if { (ac_try="$ac_link"
22086 case "(($ac_try" in
22087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22088 *) ac_try_echo=$ac_try;;
22089 esac
22090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22091 (eval "$ac_link") 2>&5
22092 ac_status=$?
22093 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22094 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
22095 { (case "(($ac_try" in
22096 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22097 *) ac_try_echo=$ac_try;;
22098 esac
22099 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22100 (eval "$ac_try") 2>&5
22101 ac_status=$?
22102 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22103 (exit $ac_status); }; }; then
22104 emacs_cv_localtime_cache=no
22105 else
22106 echo "$as_me: program exited with status $ac_status" >&5
22107 echo "$as_me: failed program was:" >&5
22108 sed 's/^/| /' conftest.$ac_ext >&5
22109
22110 ( exit $ac_status )
22111 emacs_cv_localtime_cache=yes
22112 fi
22113 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
22114 fi
22115
22116
22117 else
22118 # If we lack tzset, report that localtime does not cache TZ,
22119 # since we can't invalidate the cache if we don't have tzset.
22120 emacs_cv_localtime_cache=no
22121 fi
22122 fi
22123 { echo "$as_me:$LINENO: result: $emacs_cv_localtime_cache" >&5
22124 echo "${ECHO_T}$emacs_cv_localtime_cache" >&6; }
22125 if test $emacs_cv_localtime_cache = yes; then
22126
22127 cat >>confdefs.h <<\_ACEOF
22128 #define LOCALTIME_CACHE 1
22129 _ACEOF
22130
22131 fi
22132
22133 if test "x$HAVE_TIMEVAL" = xyes; then
22134
22135 for ac_func in gettimeofday
22136 do
22137 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
22138 { echo "$as_me:$LINENO: checking for $ac_func" >&5
22139 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
22140 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
22141 echo $ECHO_N "(cached) $ECHO_C" >&6
22142 else
22143 cat >conftest.$ac_ext <<_ACEOF
22144 /* confdefs.h. */
22145 _ACEOF
22146 cat confdefs.h >>conftest.$ac_ext
22147 cat >>conftest.$ac_ext <<_ACEOF
22148 /* end confdefs.h. */
22149 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
22150 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22151 #define $ac_func innocuous_$ac_func
22152
22153 /* System header to define __stub macros and hopefully few prototypes,
22154 which can conflict with char $ac_func (); below.
22155 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22156 <limits.h> exists even on freestanding compilers. */
22157
22158 #ifdef __STDC__
22159 # include <limits.h>
22160 #else
22161 # include <assert.h>
22162 #endif
22163
22164 #undef $ac_func
22165
22166 /* Override any GCC internal prototype to avoid an error.
22167 Use char because int might match the return type of a GCC
22168 builtin and then its argument prototype would still apply. */
22169 #ifdef __cplusplus
22170 extern "C"
22171 #endif
22172 char $ac_func ();
22173 /* The GNU C library defines this for functions which it implements
22174 to always fail with ENOSYS. Some functions are actually named
22175 something starting with __ and the normal name is an alias. */
22176 #if defined __stub_$ac_func || defined __stub___$ac_func
22177 choke me
22178 #endif
22179
22180 int
22181 main ()
22182 {
22183 return $ac_func ();
22184 ;
22185 return 0;
22186 }
22187 _ACEOF
22188 rm -f conftest.$ac_objext conftest$ac_exeext
22189 if { (ac_try="$ac_link"
22190 case "(($ac_try" in
22191 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22192 *) ac_try_echo=$ac_try;;
22193 esac
22194 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22195 (eval "$ac_link") 2>conftest.er1
22196 ac_status=$?
22197 grep -v '^ *+' conftest.er1 >conftest.err
22198 rm -f conftest.er1
22199 cat conftest.err >&5
22200 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22201 (exit $ac_status); } && {
22202 test -z "$ac_c_werror_flag" ||
22203 test ! -s conftest.err
22204 } && test -s conftest$ac_exeext &&
22205 $as_test_x conftest$ac_exeext; then
22206 eval "$as_ac_var=yes"
22207 else
22208 echo "$as_me: failed program was:" >&5
22209 sed 's/^/| /' conftest.$ac_ext >&5
22210
22211 eval "$as_ac_var=no"
22212 fi
22213
22214 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22215 conftest$ac_exeext conftest.$ac_ext
22216 fi
22217 ac_res=`eval echo '${'$as_ac_var'}'`
22218 { echo "$as_me:$LINENO: result: $ac_res" >&5
22219 echo "${ECHO_T}$ac_res" >&6; }
22220 if test `eval echo '${'$as_ac_var'}'` = yes; then
22221 cat >>confdefs.h <<_ACEOF
22222 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
22223 _ACEOF
22224
22225 fi
22226 done
22227
22228 if test $ac_cv_func_gettimeofday = yes; then
22229 { echo "$as_me:$LINENO: checking whether gettimeofday can accept two arguments" >&5
22230 echo $ECHO_N "checking whether gettimeofday can accept two arguments... $ECHO_C" >&6; }
22231 if test "${emacs_cv_gettimeofday_two_arguments+set}" = set; then
22232 echo $ECHO_N "(cached) $ECHO_C" >&6
22233 else
22234 cat >conftest.$ac_ext <<_ACEOF
22235 /* confdefs.h. */
22236 _ACEOF
22237 cat confdefs.h >>conftest.$ac_ext
22238 cat >>conftest.$ac_ext <<_ACEOF
22239 /* end confdefs.h. */
22240
22241 #ifdef TIME_WITH_SYS_TIME
22242 #include <sys/time.h>
22243 #include <time.h>
22244 #else
22245 #ifdef HAVE_SYS_TIME_H
22246 #include <sys/time.h>
22247 #else
22248 #include <time.h>
22249 #endif
22250 #endif
22251 int
22252 main ()
22253 {
22254 struct timeval time;
22255 gettimeofday (&time, 0);
22256 ;
22257 return 0;
22258 }
22259 _ACEOF
22260 rm -f conftest.$ac_objext
22261 if { (ac_try="$ac_compile"
22262 case "(($ac_try" in
22263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22264 *) ac_try_echo=$ac_try;;
22265 esac
22266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22267 (eval "$ac_compile") 2>conftest.er1
22268 ac_status=$?
22269 grep -v '^ *+' conftest.er1 >conftest.err
22270 rm -f conftest.er1
22271 cat conftest.err >&5
22272 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22273 (exit $ac_status); } && {
22274 test -z "$ac_c_werror_flag" ||
22275 test ! -s conftest.err
22276 } && test -s conftest.$ac_objext; then
22277 emacs_cv_gettimeofday_two_arguments=yes
22278 else
22279 echo "$as_me: failed program was:" >&5
22280 sed 's/^/| /' conftest.$ac_ext >&5
22281
22282 emacs_cv_gettimeofday_two_arguments=no
22283 fi
22284
22285 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22286 fi
22287 { echo "$as_me:$LINENO: result: $emacs_cv_gettimeofday_two_arguments" >&5
22288 echo "${ECHO_T}$emacs_cv_gettimeofday_two_arguments" >&6; }
22289 if test $emacs_cv_gettimeofday_two_arguments = no; then
22290
22291 cat >>confdefs.h <<\_ACEOF
22292 #define GETTIMEOFDAY_ONE_ARGUMENT 1
22293 _ACEOF
22294
22295 fi
22296 fi
22297 fi
22298
22299 ok_so_far=yes
22300 { echo "$as_me:$LINENO: checking for socket" >&5
22301 echo $ECHO_N "checking for socket... $ECHO_C" >&6; }
22302 if test "${ac_cv_func_socket+set}" = set; then
22303 echo $ECHO_N "(cached) $ECHO_C" >&6
22304 else
22305 cat >conftest.$ac_ext <<_ACEOF
22306 /* confdefs.h. */
22307 _ACEOF
22308 cat confdefs.h >>conftest.$ac_ext
22309 cat >>conftest.$ac_ext <<_ACEOF
22310 /* end confdefs.h. */
22311 /* Define socket to an innocuous variant, in case <limits.h> declares socket.
22312 For example, HP-UX 11i <limits.h> declares gettimeofday. */
22313 #define socket innocuous_socket
22314
22315 /* System header to define __stub macros and hopefully few prototypes,
22316 which can conflict with char socket (); below.
22317 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
22318 <limits.h> exists even on freestanding compilers. */
22319
22320 #ifdef __STDC__
22321 # include <limits.h>
22322 #else
22323 # include <assert.h>
22324 #endif
22325
22326 #undef socket
22327
22328 /* Override any GCC internal prototype to avoid an error.
22329 Use char because int might match the return type of a GCC
22330 builtin and then its argument prototype would still apply. */
22331 #ifdef __cplusplus
22332 extern "C"
22333 #endif
22334 char socket ();
22335 /* The GNU C library defines this for functions which it implements
22336 to always fail with ENOSYS. Some functions are actually named
22337 something starting with __ and the normal name is an alias. */
22338 #if defined __stub_socket || defined __stub___socket
22339 choke me
22340 #endif
22341
22342 int
22343 main ()
22344 {
22345 return socket ();
22346 ;
22347 return 0;
22348 }
22349 _ACEOF
22350 rm -f conftest.$ac_objext conftest$ac_exeext
22351 if { (ac_try="$ac_link"
22352 case "(($ac_try" in
22353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22354 *) ac_try_echo=$ac_try;;
22355 esac
22356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22357 (eval "$ac_link") 2>conftest.er1
22358 ac_status=$?
22359 grep -v '^ *+' conftest.er1 >conftest.err
22360 rm -f conftest.er1
22361 cat conftest.err >&5
22362 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22363 (exit $ac_status); } && {
22364 test -z "$ac_c_werror_flag" ||
22365 test ! -s conftest.err
22366 } && test -s conftest$ac_exeext &&
22367 $as_test_x conftest$ac_exeext; then
22368 ac_cv_func_socket=yes
22369 else
22370 echo "$as_me: failed program was:" >&5
22371 sed 's/^/| /' conftest.$ac_ext >&5
22372
22373 ac_cv_func_socket=no
22374 fi
22375
22376 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
22377 conftest$ac_exeext conftest.$ac_ext
22378 fi
22379 { echo "$as_me:$LINENO: result: $ac_cv_func_socket" >&5
22380 echo "${ECHO_T}$ac_cv_func_socket" >&6; }
22381 if test $ac_cv_func_socket = yes; then
22382 :
22383 else
22384 ok_so_far=no
22385 fi
22386
22387 if test $ok_so_far = yes; then
22388 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22389 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22390 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22391 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22392 echo $ECHO_N "(cached) $ECHO_C" >&6
22393 fi
22394 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22395 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22396 else
22397 # Is the header compilable?
22398 { echo "$as_me:$LINENO: checking netinet/in.h usability" >&5
22399 echo $ECHO_N "checking netinet/in.h usability... $ECHO_C" >&6; }
22400 cat >conftest.$ac_ext <<_ACEOF
22401 /* confdefs.h. */
22402 _ACEOF
22403 cat confdefs.h >>conftest.$ac_ext
22404 cat >>conftest.$ac_ext <<_ACEOF
22405 /* end confdefs.h. */
22406 $ac_includes_default
22407 #include <netinet/in.h>
22408 _ACEOF
22409 rm -f conftest.$ac_objext
22410 if { (ac_try="$ac_compile"
22411 case "(($ac_try" in
22412 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22413 *) ac_try_echo=$ac_try;;
22414 esac
22415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22416 (eval "$ac_compile") 2>conftest.er1
22417 ac_status=$?
22418 grep -v '^ *+' conftest.er1 >conftest.err
22419 rm -f conftest.er1
22420 cat conftest.err >&5
22421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22422 (exit $ac_status); } && {
22423 test -z "$ac_c_werror_flag" ||
22424 test ! -s conftest.err
22425 } && test -s conftest.$ac_objext; then
22426 ac_header_compiler=yes
22427 else
22428 echo "$as_me: failed program was:" >&5
22429 sed 's/^/| /' conftest.$ac_ext >&5
22430
22431 ac_header_compiler=no
22432 fi
22433
22434 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22435 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22436 echo "${ECHO_T}$ac_header_compiler" >&6; }
22437
22438 # Is the header present?
22439 { echo "$as_me:$LINENO: checking netinet/in.h presence" >&5
22440 echo $ECHO_N "checking netinet/in.h presence... $ECHO_C" >&6; }
22441 cat >conftest.$ac_ext <<_ACEOF
22442 /* confdefs.h. */
22443 _ACEOF
22444 cat confdefs.h >>conftest.$ac_ext
22445 cat >>conftest.$ac_ext <<_ACEOF
22446 /* end confdefs.h. */
22447 #include <netinet/in.h>
22448 _ACEOF
22449 if { (ac_try="$ac_cpp conftest.$ac_ext"
22450 case "(($ac_try" in
22451 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22452 *) ac_try_echo=$ac_try;;
22453 esac
22454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22455 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22456 ac_status=$?
22457 grep -v '^ *+' conftest.er1 >conftest.err
22458 rm -f conftest.er1
22459 cat conftest.err >&5
22460 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22461 (exit $ac_status); } >/dev/null && {
22462 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22463 test ! -s conftest.err
22464 }; then
22465 ac_header_preproc=yes
22466 else
22467 echo "$as_me: failed program was:" >&5
22468 sed 's/^/| /' conftest.$ac_ext >&5
22469
22470 ac_header_preproc=no
22471 fi
22472
22473 rm -f conftest.err conftest.$ac_ext
22474 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22475 echo "${ECHO_T}$ac_header_preproc" >&6; }
22476
22477 # So? What about this header?
22478 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22479 yes:no: )
22480 { echo "$as_me:$LINENO: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&5
22481 echo "$as_me: WARNING: netinet/in.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22482 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the compiler's result" >&5
22483 echo "$as_me: WARNING: netinet/in.h: proceeding with the compiler's result" >&2;}
22484 ac_header_preproc=yes
22485 ;;
22486 no:yes:* )
22487 { echo "$as_me:$LINENO: WARNING: netinet/in.h: present but cannot be compiled" >&5
22488 echo "$as_me: WARNING: netinet/in.h: present but cannot be compiled" >&2;}
22489 { echo "$as_me:$LINENO: WARNING: netinet/in.h: check for missing prerequisite headers?" >&5
22490 echo "$as_me: WARNING: netinet/in.h: check for missing prerequisite headers?" >&2;}
22491 { echo "$as_me:$LINENO: WARNING: netinet/in.h: see the Autoconf documentation" >&5
22492 echo "$as_me: WARNING: netinet/in.h: see the Autoconf documentation" >&2;}
22493 { echo "$as_me:$LINENO: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&5
22494 echo "$as_me: WARNING: netinet/in.h: section \"Present But Cannot Be Compiled\"" >&2;}
22495 { echo "$as_me:$LINENO: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&5
22496 echo "$as_me: WARNING: netinet/in.h: proceeding with the preprocessor's result" >&2;}
22497 { echo "$as_me:$LINENO: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&5
22498 echo "$as_me: WARNING: netinet/in.h: in the future, the compiler will take precedence" >&2;}
22499
22500 ;;
22501 esac
22502 { echo "$as_me:$LINENO: checking for netinet/in.h" >&5
22503 echo $ECHO_N "checking for netinet/in.h... $ECHO_C" >&6; }
22504 if test "${ac_cv_header_netinet_in_h+set}" = set; then
22505 echo $ECHO_N "(cached) $ECHO_C" >&6
22506 else
22507 ac_cv_header_netinet_in_h=$ac_header_preproc
22508 fi
22509 { echo "$as_me:$LINENO: result: $ac_cv_header_netinet_in_h" >&5
22510 echo "${ECHO_T}$ac_cv_header_netinet_in_h" >&6; }
22511
22512 fi
22513 if test $ac_cv_header_netinet_in_h = yes; then
22514 :
22515 else
22516 ok_so_far=no
22517 fi
22518
22519
22520 fi
22521 if test $ok_so_far = yes; then
22522 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22523 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22524 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22525 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22526 echo $ECHO_N "(cached) $ECHO_C" >&6
22527 fi
22528 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22529 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22530 else
22531 # Is the header compilable?
22532 { echo "$as_me:$LINENO: checking arpa/inet.h usability" >&5
22533 echo $ECHO_N "checking arpa/inet.h usability... $ECHO_C" >&6; }
22534 cat >conftest.$ac_ext <<_ACEOF
22535 /* confdefs.h. */
22536 _ACEOF
22537 cat confdefs.h >>conftest.$ac_ext
22538 cat >>conftest.$ac_ext <<_ACEOF
22539 /* end confdefs.h. */
22540 $ac_includes_default
22541 #include <arpa/inet.h>
22542 _ACEOF
22543 rm -f conftest.$ac_objext
22544 if { (ac_try="$ac_compile"
22545 case "(($ac_try" in
22546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22547 *) ac_try_echo=$ac_try;;
22548 esac
22549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22550 (eval "$ac_compile") 2>conftest.er1
22551 ac_status=$?
22552 grep -v '^ *+' conftest.er1 >conftest.err
22553 rm -f conftest.er1
22554 cat conftest.err >&5
22555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22556 (exit $ac_status); } && {
22557 test -z "$ac_c_werror_flag" ||
22558 test ! -s conftest.err
22559 } && test -s conftest.$ac_objext; then
22560 ac_header_compiler=yes
22561 else
22562 echo "$as_me: failed program was:" >&5
22563 sed 's/^/| /' conftest.$ac_ext >&5
22564
22565 ac_header_compiler=no
22566 fi
22567
22568 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22569 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22570 echo "${ECHO_T}$ac_header_compiler" >&6; }
22571
22572 # Is the header present?
22573 { echo "$as_me:$LINENO: checking arpa/inet.h presence" >&5
22574 echo $ECHO_N "checking arpa/inet.h presence... $ECHO_C" >&6; }
22575 cat >conftest.$ac_ext <<_ACEOF
22576 /* confdefs.h. */
22577 _ACEOF
22578 cat confdefs.h >>conftest.$ac_ext
22579 cat >>conftest.$ac_ext <<_ACEOF
22580 /* end confdefs.h. */
22581 #include <arpa/inet.h>
22582 _ACEOF
22583 if { (ac_try="$ac_cpp conftest.$ac_ext"
22584 case "(($ac_try" in
22585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22586 *) ac_try_echo=$ac_try;;
22587 esac
22588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22589 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22590 ac_status=$?
22591 grep -v '^ *+' conftest.er1 >conftest.err
22592 rm -f conftest.er1
22593 cat conftest.err >&5
22594 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22595 (exit $ac_status); } >/dev/null && {
22596 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22597 test ! -s conftest.err
22598 }; then
22599 ac_header_preproc=yes
22600 else
22601 echo "$as_me: failed program was:" >&5
22602 sed 's/^/| /' conftest.$ac_ext >&5
22603
22604 ac_header_preproc=no
22605 fi
22606
22607 rm -f conftest.err conftest.$ac_ext
22608 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22609 echo "${ECHO_T}$ac_header_preproc" >&6; }
22610
22611 # So? What about this header?
22612 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22613 yes:no: )
22614 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&5
22615 echo "$as_me: WARNING: arpa/inet.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
22616 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the compiler's result" >&5
22617 echo "$as_me: WARNING: arpa/inet.h: proceeding with the compiler's result" >&2;}
22618 ac_header_preproc=yes
22619 ;;
22620 no:yes:* )
22621 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: present but cannot be compiled" >&5
22622 echo "$as_me: WARNING: arpa/inet.h: present but cannot be compiled" >&2;}
22623 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&5
22624 echo "$as_me: WARNING: arpa/inet.h: check for missing prerequisite headers?" >&2;}
22625 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: see the Autoconf documentation" >&5
22626 echo "$as_me: WARNING: arpa/inet.h: see the Autoconf documentation" >&2;}
22627 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&5
22628 echo "$as_me: WARNING: arpa/inet.h: section \"Present But Cannot Be Compiled\"" >&2;}
22629 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&5
22630 echo "$as_me: WARNING: arpa/inet.h: proceeding with the preprocessor's result" >&2;}
22631 { echo "$as_me:$LINENO: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&5
22632 echo "$as_me: WARNING: arpa/inet.h: in the future, the compiler will take precedence" >&2;}
22633
22634 ;;
22635 esac
22636 { echo "$as_me:$LINENO: checking for arpa/inet.h" >&5
22637 echo $ECHO_N "checking for arpa/inet.h... $ECHO_C" >&6; }
22638 if test "${ac_cv_header_arpa_inet_h+set}" = set; then
22639 echo $ECHO_N "(cached) $ECHO_C" >&6
22640 else
22641 ac_cv_header_arpa_inet_h=$ac_header_preproc
22642 fi
22643 { echo "$as_me:$LINENO: result: $ac_cv_header_arpa_inet_h" >&5
22644 echo "${ECHO_T}$ac_cv_header_arpa_inet_h" >&6; }
22645
22646 fi
22647 if test $ac_cv_header_arpa_inet_h = yes; then
22648 :
22649 else
22650 ok_so_far=no
22651 fi
22652
22653
22654 fi
22655 if test $ok_so_far = yes; then
22656
22657 cat >>confdefs.h <<\_ACEOF
22658 #define HAVE_INET_SOCKETS 1
22659 _ACEOF
22660
22661 fi
22662
22663
22664 for ac_header in sys/ioctl.h
22665 do
22666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22668 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22671 echo $ECHO_N "(cached) $ECHO_C" >&6
22672 fi
22673 ac_res=`eval echo '${'$as_ac_Header'}'`
22674 { echo "$as_me:$LINENO: result: $ac_res" >&5
22675 echo "${ECHO_T}$ac_res" >&6; }
22676 else
22677 # Is the header compilable?
22678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22680 cat >conftest.$ac_ext <<_ACEOF
22681 /* confdefs.h. */
22682 _ACEOF
22683 cat confdefs.h >>conftest.$ac_ext
22684 cat >>conftest.$ac_ext <<_ACEOF
22685 /* end confdefs.h. */
22686 $ac_includes_default
22687 #include <$ac_header>
22688 _ACEOF
22689 rm -f conftest.$ac_objext
22690 if { (ac_try="$ac_compile"
22691 case "(($ac_try" in
22692 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22693 *) ac_try_echo=$ac_try;;
22694 esac
22695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22696 (eval "$ac_compile") 2>conftest.er1
22697 ac_status=$?
22698 grep -v '^ *+' conftest.er1 >conftest.err
22699 rm -f conftest.er1
22700 cat conftest.err >&5
22701 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22702 (exit $ac_status); } && {
22703 test -z "$ac_c_werror_flag" ||
22704 test ! -s conftest.err
22705 } && test -s conftest.$ac_objext; then
22706 ac_header_compiler=yes
22707 else
22708 echo "$as_me: failed program was:" >&5
22709 sed 's/^/| /' conftest.$ac_ext >&5
22710
22711 ac_header_compiler=no
22712 fi
22713
22714 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22715 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22716 echo "${ECHO_T}$ac_header_compiler" >&6; }
22717
22718 # Is the header present?
22719 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22720 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22721 cat >conftest.$ac_ext <<_ACEOF
22722 /* confdefs.h. */
22723 _ACEOF
22724 cat confdefs.h >>conftest.$ac_ext
22725 cat >>conftest.$ac_ext <<_ACEOF
22726 /* end confdefs.h. */
22727 #include <$ac_header>
22728 _ACEOF
22729 if { (ac_try="$ac_cpp conftest.$ac_ext"
22730 case "(($ac_try" in
22731 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22732 *) ac_try_echo=$ac_try;;
22733 esac
22734 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22735 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22736 ac_status=$?
22737 grep -v '^ *+' conftest.er1 >conftest.err
22738 rm -f conftest.er1
22739 cat conftest.err >&5
22740 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22741 (exit $ac_status); } >/dev/null && {
22742 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22743 test ! -s conftest.err
22744 }; then
22745 ac_header_preproc=yes
22746 else
22747 echo "$as_me: failed program was:" >&5
22748 sed 's/^/| /' conftest.$ac_ext >&5
22749
22750 ac_header_preproc=no
22751 fi
22752
22753 rm -f conftest.err conftest.$ac_ext
22754 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22755 echo "${ECHO_T}$ac_header_preproc" >&6; }
22756
22757 # So? What about this header?
22758 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22759 yes:no: )
22760 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22761 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22762 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22763 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22764 ac_header_preproc=yes
22765 ;;
22766 no:yes:* )
22767 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22768 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22769 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22770 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22771 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22772 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
22773 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
22774 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
22775 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
22776 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
22777 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
22778 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
22779
22780 ;;
22781 esac
22782 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22783 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22784 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22785 echo $ECHO_N "(cached) $ECHO_C" >&6
22786 else
22787 eval "$as_ac_Header=\$ac_header_preproc"
22788 fi
22789 ac_res=`eval echo '${'$as_ac_Header'}'`
22790 { echo "$as_me:$LINENO: result: $ac_res" >&5
22791 echo "${ECHO_T}$ac_res" >&6; }
22792
22793 fi
22794 if test `eval echo '${'$as_ac_Header'}'` = yes; then
22795 cat >>confdefs.h <<_ACEOF
22796 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
22797 _ACEOF
22798
22799 fi
22800
22801 done
22802
22803
22804 if test -f /usr/lpp/X11/bin/smt.exp; then
22805
22806 cat >>confdefs.h <<\_ACEOF
22807 #define HAVE_AIX_SMT_EXP 1
22808 _ACEOF
22809
22810 fi
22811
22812 { echo "$as_me:$LINENO: checking whether system supports dynamic ptys" >&5
22813 echo $ECHO_N "checking whether system supports dynamic ptys... $ECHO_C" >&6; }
22814 if test -d /dev/pts && ls -d /dev/ptmx > /dev/null 2>&1 ; then
22815 { echo "$as_me:$LINENO: result: yes" >&5
22816 echo "${ECHO_T}yes" >&6; }
22817
22818 cat >>confdefs.h <<\_ACEOF
22819 #define HAVE_DEV_PTMX 1
22820 _ACEOF
22821
22822 else
22823 { echo "$as_me:$LINENO: result: no" >&5
22824 echo "${ECHO_T}no" >&6; }
22825 fi
22826
22827 { echo "$as_me:$LINENO: checking for pid_t" >&5
22828 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
22829 if test "${ac_cv_type_pid_t+set}" = set; then
22830 echo $ECHO_N "(cached) $ECHO_C" >&6
22831 else
22832 cat >conftest.$ac_ext <<_ACEOF
22833 /* confdefs.h. */
22834 _ACEOF
22835 cat confdefs.h >>conftest.$ac_ext
22836 cat >>conftest.$ac_ext <<_ACEOF
22837 /* end confdefs.h. */
22838 $ac_includes_default
22839 typedef pid_t ac__type_new_;
22840 int
22841 main ()
22842 {
22843 if ((ac__type_new_ *) 0)
22844 return 0;
22845 if (sizeof (ac__type_new_))
22846 return 0;
22847 ;
22848 return 0;
22849 }
22850 _ACEOF
22851 rm -f conftest.$ac_objext
22852 if { (ac_try="$ac_compile"
22853 case "(($ac_try" in
22854 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22855 *) ac_try_echo=$ac_try;;
22856 esac
22857 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22858 (eval "$ac_compile") 2>conftest.er1
22859 ac_status=$?
22860 grep -v '^ *+' conftest.er1 >conftest.err
22861 rm -f conftest.er1
22862 cat conftest.err >&5
22863 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22864 (exit $ac_status); } && {
22865 test -z "$ac_c_werror_flag" ||
22866 test ! -s conftest.err
22867 } && test -s conftest.$ac_objext; then
22868 ac_cv_type_pid_t=yes
22869 else
22870 echo "$as_me: failed program was:" >&5
22871 sed 's/^/| /' conftest.$ac_ext >&5
22872
22873 ac_cv_type_pid_t=no
22874 fi
22875
22876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22877 fi
22878 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
22879 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
22880 if test $ac_cv_type_pid_t = yes; then
22881 :
22882 else
22883
22884 cat >>confdefs.h <<_ACEOF
22885 #define pid_t int
22886 _ACEOF
22887
22888 fi
22889
22890
22891 for ac_header in vfork.h
22892 do
22893 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
22894 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22895 { echo "$as_me:$LINENO: checking for $ac_header" >&5
22896 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
22897 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
22898 echo $ECHO_N "(cached) $ECHO_C" >&6
22899 fi
22900 ac_res=`eval echo '${'$as_ac_Header'}'`
22901 { echo "$as_me:$LINENO: result: $ac_res" >&5
22902 echo "${ECHO_T}$ac_res" >&6; }
22903 else
22904 # Is the header compilable?
22905 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
22906 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
22907 cat >conftest.$ac_ext <<_ACEOF
22908 /* confdefs.h. */
22909 _ACEOF
22910 cat confdefs.h >>conftest.$ac_ext
22911 cat >>conftest.$ac_ext <<_ACEOF
22912 /* end confdefs.h. */
22913 $ac_includes_default
22914 #include <$ac_header>
22915 _ACEOF
22916 rm -f conftest.$ac_objext
22917 if { (ac_try="$ac_compile"
22918 case "(($ac_try" in
22919 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22920 *) ac_try_echo=$ac_try;;
22921 esac
22922 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22923 (eval "$ac_compile") 2>conftest.er1
22924 ac_status=$?
22925 grep -v '^ *+' conftest.er1 >conftest.err
22926 rm -f conftest.er1
22927 cat conftest.err >&5
22928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22929 (exit $ac_status); } && {
22930 test -z "$ac_c_werror_flag" ||
22931 test ! -s conftest.err
22932 } && test -s conftest.$ac_objext; then
22933 ac_header_compiler=yes
22934 else
22935 echo "$as_me: failed program was:" >&5
22936 sed 's/^/| /' conftest.$ac_ext >&5
22937
22938 ac_header_compiler=no
22939 fi
22940
22941 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22942 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
22943 echo "${ECHO_T}$ac_header_compiler" >&6; }
22944
22945 # Is the header present?
22946 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
22947 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
22948 cat >conftest.$ac_ext <<_ACEOF
22949 /* confdefs.h. */
22950 _ACEOF
22951 cat confdefs.h >>conftest.$ac_ext
22952 cat >>conftest.$ac_ext <<_ACEOF
22953 /* end confdefs.h. */
22954 #include <$ac_header>
22955 _ACEOF
22956 if { (ac_try="$ac_cpp conftest.$ac_ext"
22957 case "(($ac_try" in
22958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
22959 *) ac_try_echo=$ac_try;;
22960 esac
22961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
22962 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
22963 ac_status=$?
22964 grep -v '^ *+' conftest.er1 >conftest.err
22965 rm -f conftest.er1
22966 cat conftest.err >&5
22967 echo "$as_me:$LINENO: \$? = $ac_status" >&5
22968 (exit $ac_status); } >/dev/null && {
22969 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
22970 test ! -s conftest.err
22971 }; then
22972 ac_header_preproc=yes
22973 else
22974 echo "$as_me: failed program was:" >&5
22975 sed 's/^/| /' conftest.$ac_ext >&5
22976
22977 ac_header_preproc=no
22978 fi
22979
22980 rm -f conftest.err conftest.$ac_ext
22981 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
22982 echo "${ECHO_T}$ac_header_preproc" >&6; }
22983
22984 # So? What about this header?
22985 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
22986 yes:no: )
22987 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
22988 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
22989 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
22990 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
22991 ac_header_preproc=yes
22992 ;;
22993 no:yes:* )
22994 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
22995 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
22996 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
22997 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
22998 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
22999 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
23000 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
23001 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
23002 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
23003 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
23004 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
23005 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
23006
23007 ;;
23008 esac
23009 { echo "$as_me:$LINENO: checking for $ac_header" >&5
23010 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
23011 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
23012 echo $ECHO_N "(cached) $ECHO_C" >&6
23013 else
23014 eval "$as_ac_Header=\$ac_header_preproc"
23015 fi
23016 ac_res=`eval echo '${'$as_ac_Header'}'`
23017 { echo "$as_me:$LINENO: result: $ac_res" >&5
23018 echo "${ECHO_T}$ac_res" >&6; }
23019
23020 fi
23021 if test `eval echo '${'$as_ac_Header'}'` = yes; then
23022 cat >>confdefs.h <<_ACEOF
23023 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
23024 _ACEOF
23025
23026 fi
23027
23028 done
23029
23030
23031
23032 for ac_func in fork vfork
23033 do
23034 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
23035 { echo "$as_me:$LINENO: checking for $ac_func" >&5
23036 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
23037 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
23038 echo $ECHO_N "(cached) $ECHO_C" >&6
23039 else
23040 cat >conftest.$ac_ext <<_ACEOF
23041 /* confdefs.h. */
23042 _ACEOF
23043 cat confdefs.h >>conftest.$ac_ext
23044 cat >>conftest.$ac_ext <<_ACEOF
23045 /* end confdefs.h. */
23046 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
23047 For example, HP-UX 11i <limits.h> declares gettimeofday. */
23048 #define $ac_func innocuous_$ac_func
23049
23050 /* System header to define __stub macros and hopefully few prototypes,
23051 which can conflict with char $ac_func (); below.
23052 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
23053 <limits.h> exists even on freestanding compilers. */
23054
23055 #ifdef __STDC__
23056 # include <limits.h>
23057 #else
23058 # include <assert.h>
23059 #endif
23060
23061 #undef $ac_func
23062
23063 /* Override any GCC internal prototype to avoid an error.
23064 Use char because int might match the return type of a GCC
23065 builtin and then its argument prototype would still apply. */
23066 #ifdef __cplusplus
23067 extern "C"
23068 #endif
23069 char $ac_func ();
23070 /* The GNU C library defines this for functions which it implements
23071 to always fail with ENOSYS. Some functions are actually named
23072 something starting with __ and the normal name is an alias. */
23073 #if defined __stub_$ac_func || defined __stub___$ac_func
23074 choke me
23075 #endif
23076
23077 int
23078 main ()
23079 {
23080 return $ac_func ();
23081 ;
23082 return 0;
23083 }
23084 _ACEOF
23085 rm -f conftest.$ac_objext conftest$ac_exeext
23086 if { (ac_try="$ac_link"
23087 case "(($ac_try" in
23088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23089 *) ac_try_echo=$ac_try;;
23090 esac
23091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23092 (eval "$ac_link") 2>conftest.er1
23093 ac_status=$?
23094 grep -v '^ *+' conftest.er1 >conftest.err
23095 rm -f conftest.er1
23096 cat conftest.err >&5
23097 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23098 (exit $ac_status); } && {
23099 test -z "$ac_c_werror_flag" ||
23100 test ! -s conftest.err
23101 } && test -s conftest$ac_exeext &&
23102 $as_test_x conftest$ac_exeext; then
23103 eval "$as_ac_var=yes"
23104 else
23105 echo "$as_me: failed program was:" >&5
23106 sed 's/^/| /' conftest.$ac_ext >&5
23107
23108 eval "$as_ac_var=no"
23109 fi
23110
23111 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23112 conftest$ac_exeext conftest.$ac_ext
23113 fi
23114 ac_res=`eval echo '${'$as_ac_var'}'`
23115 { echo "$as_me:$LINENO: result: $ac_res" >&5
23116 echo "${ECHO_T}$ac_res" >&6; }
23117 if test `eval echo '${'$as_ac_var'}'` = yes; then
23118 cat >>confdefs.h <<_ACEOF
23119 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
23120 _ACEOF
23121
23122 fi
23123 done
23124
23125 if test "x$ac_cv_func_fork" = xyes; then
23126 { echo "$as_me:$LINENO: checking for working fork" >&5
23127 echo $ECHO_N "checking for working fork... $ECHO_C" >&6; }
23128 if test "${ac_cv_func_fork_works+set}" = set; then
23129 echo $ECHO_N "(cached) $ECHO_C" >&6
23130 else
23131 if test "$cross_compiling" = yes; then
23132 ac_cv_func_fork_works=cross
23133 else
23134 cat >conftest.$ac_ext <<_ACEOF
23135 /* confdefs.h. */
23136 _ACEOF
23137 cat confdefs.h >>conftest.$ac_ext
23138 cat >>conftest.$ac_ext <<_ACEOF
23139 /* end confdefs.h. */
23140 $ac_includes_default
23141 int
23142 main ()
23143 {
23144
23145 /* By Ruediger Kuhlmann. */
23146 return fork () < 0;
23147
23148 ;
23149 return 0;
23150 }
23151 _ACEOF
23152 rm -f conftest$ac_exeext
23153 if { (ac_try="$ac_link"
23154 case "(($ac_try" in
23155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23156 *) ac_try_echo=$ac_try;;
23157 esac
23158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23159 (eval "$ac_link") 2>&5
23160 ac_status=$?
23161 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23162 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23163 { (case "(($ac_try" in
23164 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23165 *) ac_try_echo=$ac_try;;
23166 esac
23167 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23168 (eval "$ac_try") 2>&5
23169 ac_status=$?
23170 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23171 (exit $ac_status); }; }; then
23172 ac_cv_func_fork_works=yes
23173 else
23174 echo "$as_me: program exited with status $ac_status" >&5
23175 echo "$as_me: failed program was:" >&5
23176 sed 's/^/| /' conftest.$ac_ext >&5
23177
23178 ( exit $ac_status )
23179 ac_cv_func_fork_works=no
23180 fi
23181 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23182 fi
23183
23184
23185 fi
23186 { echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
23187 echo "${ECHO_T}$ac_cv_func_fork_works" >&6; }
23188
23189 else
23190 ac_cv_func_fork_works=$ac_cv_func_fork
23191 fi
23192 if test "x$ac_cv_func_fork_works" = xcross; then
23193 case $host in
23194 *-*-amigaos* | *-*-msdosdjgpp*)
23195 # Override, as these systems have only a dummy fork() stub
23196 ac_cv_func_fork_works=no
23197 ;;
23198 *)
23199 ac_cv_func_fork_works=yes
23200 ;;
23201 esac
23202 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
23203 echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
23204 fi
23205 ac_cv_func_vfork_works=$ac_cv_func_vfork
23206 if test "x$ac_cv_func_vfork" = xyes; then
23207 { echo "$as_me:$LINENO: checking for working vfork" >&5
23208 echo $ECHO_N "checking for working vfork... $ECHO_C" >&6; }
23209 if test "${ac_cv_func_vfork_works+set}" = set; then
23210 echo $ECHO_N "(cached) $ECHO_C" >&6
23211 else
23212 if test "$cross_compiling" = yes; then
23213 ac_cv_func_vfork_works=cross
23214 else
23215 cat >conftest.$ac_ext <<_ACEOF
23216 /* confdefs.h. */
23217 _ACEOF
23218 cat confdefs.h >>conftest.$ac_ext
23219 cat >>conftest.$ac_ext <<_ACEOF
23220 /* end confdefs.h. */
23221 /* Thanks to Paul Eggert for this test. */
23222 $ac_includes_default
23223 #include <sys/wait.h>
23224 #ifdef HAVE_VFORK_H
23225 # include <vfork.h>
23226 #endif
23227 /* On some sparc systems, changes by the child to local and incoming
23228 argument registers are propagated back to the parent. The compiler
23229 is told about this with #include <vfork.h>, but some compilers
23230 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
23231 static variable whose address is put into a register that is
23232 clobbered by the vfork. */
23233 static void
23234 #ifdef __cplusplus
23235 sparc_address_test (int arg)
23236 # else
23237 sparc_address_test (arg) int arg;
23238 #endif
23239 {
23240 static pid_t child;
23241 if (!child) {
23242 child = vfork ();
23243 if (child < 0) {
23244 perror ("vfork");
23245 _exit(2);
23246 }
23247 if (!child) {
23248 arg = getpid();
23249 write(-1, "", 0);
23250 _exit (arg);
23251 }
23252 }
23253 }
23254
23255 int
23256 main ()
23257 {
23258 pid_t parent = getpid ();
23259 pid_t child;
23260
23261 sparc_address_test (0);
23262
23263 child = vfork ();
23264
23265 if (child == 0) {
23266 /* Here is another test for sparc vfork register problems. This
23267 test uses lots of local variables, at least as many local
23268 variables as main has allocated so far including compiler
23269 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
23270 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
23271 reuse the register of parent for one of the local variables,
23272 since it will think that parent can't possibly be used any more
23273 in this routine. Assigning to the local variable will thus
23274 munge parent in the parent process. */
23275 pid_t
23276 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
23277 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
23278 /* Convince the compiler that p..p7 are live; otherwise, it might
23279 use the same hardware register for all 8 local variables. */
23280 if (p != p1 || p != p2 || p != p3 || p != p4
23281 || p != p5 || p != p6 || p != p7)
23282 _exit(1);
23283
23284 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
23285 from child file descriptors. If the child closes a descriptor
23286 before it execs or exits, this munges the parent's descriptor
23287 as well. Test for this by closing stdout in the child. */
23288 _exit(close(fileno(stdout)) != 0);
23289 } else {
23290 int status;
23291 struct stat st;
23292
23293 while (wait(&status) != child)
23294 ;
23295 return (
23296 /* Was there some problem with vforking? */
23297 child < 0
23298
23299 /* Did the child fail? (This shouldn't happen.) */
23300 || status
23301
23302 /* Did the vfork/compiler bug occur? */
23303 || parent != getpid()
23304
23305 /* Did the file descriptor bug occur? */
23306 || fstat(fileno(stdout), &st) != 0
23307 );
23308 }
23309 }
23310 _ACEOF
23311 rm -f conftest$ac_exeext
23312 if { (ac_try="$ac_link"
23313 case "(($ac_try" in
23314 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23315 *) ac_try_echo=$ac_try;;
23316 esac
23317 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23318 (eval "$ac_link") 2>&5
23319 ac_status=$?
23320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23321 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
23322 { (case "(($ac_try" in
23323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23324 *) ac_try_echo=$ac_try;;
23325 esac
23326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23327 (eval "$ac_try") 2>&5
23328 ac_status=$?
23329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23330 (exit $ac_status); }; }; then
23331 ac_cv_func_vfork_works=yes
23332 else
23333 echo "$as_me: program exited with status $ac_status" >&5
23334 echo "$as_me: failed program was:" >&5
23335 sed 's/^/| /' conftest.$ac_ext >&5
23336
23337 ( exit $ac_status )
23338 ac_cv_func_vfork_works=no
23339 fi
23340 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
23341 fi
23342
23343
23344 fi
23345 { echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
23346 echo "${ECHO_T}$ac_cv_func_vfork_works" >&6; }
23347
23348 fi;
23349 if test "x$ac_cv_func_fork_works" = xcross; then
23350 ac_cv_func_vfork_works=$ac_cv_func_vfork
23351 { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
23352 echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
23353 fi
23354
23355 if test "x$ac_cv_func_vfork_works" = xyes; then
23356
23357 cat >>confdefs.h <<\_ACEOF
23358 #define HAVE_WORKING_VFORK 1
23359 _ACEOF
23360
23361 else
23362
23363 cat >>confdefs.h <<\_ACEOF
23364 #define vfork fork
23365 _ACEOF
23366
23367 fi
23368 if test "x$ac_cv_func_fork_works" = xyes; then
23369
23370 cat >>confdefs.h <<\_ACEOF
23371 #define HAVE_WORKING_FORK 1
23372 _ACEOF
23373
23374 fi
23375
23376
23377 { echo "$as_me:$LINENO: checking for nl_langinfo and CODESET" >&5
23378 echo $ECHO_N "checking for nl_langinfo and CODESET... $ECHO_C" >&6; }
23379 if test "${emacs_cv_langinfo_codeset+set}" = set; then
23380 echo $ECHO_N "(cached) $ECHO_C" >&6
23381 else
23382 cat >conftest.$ac_ext <<_ACEOF
23383 /* confdefs.h. */
23384 _ACEOF
23385 cat confdefs.h >>conftest.$ac_ext
23386 cat >>conftest.$ac_ext <<_ACEOF
23387 /* end confdefs.h. */
23388 #include <langinfo.h>
23389 int
23390 main ()
23391 {
23392 char* cs = nl_langinfo(CODESET);
23393 ;
23394 return 0;
23395 }
23396 _ACEOF
23397 rm -f conftest.$ac_objext conftest$ac_exeext
23398 if { (ac_try="$ac_link"
23399 case "(($ac_try" in
23400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23401 *) ac_try_echo=$ac_try;;
23402 esac
23403 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23404 (eval "$ac_link") 2>conftest.er1
23405 ac_status=$?
23406 grep -v '^ *+' conftest.er1 >conftest.err
23407 rm -f conftest.er1
23408 cat conftest.err >&5
23409 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23410 (exit $ac_status); } && {
23411 test -z "$ac_c_werror_flag" ||
23412 test ! -s conftest.err
23413 } && test -s conftest$ac_exeext &&
23414 $as_test_x conftest$ac_exeext; then
23415 emacs_cv_langinfo_codeset=yes
23416 else
23417 echo "$as_me: failed program was:" >&5
23418 sed 's/^/| /' conftest.$ac_ext >&5
23419
23420 emacs_cv_langinfo_codeset=no
23421 fi
23422
23423 rm -f core conftest.err conftest.$ac_objext conftest_ipa8_conftest.oo \
23424 conftest$ac_exeext conftest.$ac_ext
23425
23426 fi
23427 { echo "$as_me:$LINENO: result: $emacs_cv_langinfo_codeset" >&5
23428 echo "${ECHO_T}$emacs_cv_langinfo_codeset" >&6; }
23429 if test $emacs_cv_langinfo_codeset = yes; then
23430
23431 cat >>confdefs.h <<\_ACEOF
23432 #define HAVE_LANGINFO_CODESET 1
23433 _ACEOF
23434
23435 fi
23436
23437 { echo "$as_me:$LINENO: checking for size_t" >&5
23438 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
23439 if test "${ac_cv_type_size_t+set}" = set; then
23440 echo $ECHO_N "(cached) $ECHO_C" >&6
23441 else
23442 cat >conftest.$ac_ext <<_ACEOF
23443 /* confdefs.h. */
23444 _ACEOF
23445 cat confdefs.h >>conftest.$ac_ext
23446 cat >>conftest.$ac_ext <<_ACEOF
23447 /* end confdefs.h. */
23448 $ac_includes_default
23449 typedef size_t ac__type_new_;
23450 int
23451 main ()
23452 {
23453 if ((ac__type_new_ *) 0)
23454 return 0;
23455 if (sizeof (ac__type_new_))
23456 return 0;
23457 ;
23458 return 0;
23459 }
23460 _ACEOF
23461 rm -f conftest.$ac_objext
23462 if { (ac_try="$ac_compile"
23463 case "(($ac_try" in
23464 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23465 *) ac_try_echo=$ac_try;;
23466 esac
23467 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23468 (eval "$ac_compile") 2>conftest.er1
23469 ac_status=$?
23470 grep -v '^ *+' conftest.er1 >conftest.err
23471 rm -f conftest.er1
23472 cat conftest.err >&5
23473 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23474 (exit $ac_status); } && {
23475 test -z "$ac_c_werror_flag" ||
23476 test ! -s conftest.err
23477 } && test -s conftest.$ac_objext; then
23478 ac_cv_type_size_t=yes
23479 else
23480 echo "$as_me: failed program was:" >&5
23481 sed 's/^/| /' conftest.$ac_ext >&5
23482
23483 ac_cv_type_size_t=no
23484 fi
23485
23486 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23487 fi
23488 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
23489 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
23490 if test $ac_cv_type_size_t = yes; then
23491
23492 cat >>confdefs.h <<_ACEOF
23493 #define HAVE_SIZE_T 1
23494 _ACEOF
23495
23496
23497 fi
23498
23499
23500 { echo "$as_me:$LINENO: checking for mbstate_t" >&5
23501 echo $ECHO_N "checking for mbstate_t... $ECHO_C" >&6; }
23502 if test "${ac_cv_type_mbstate_t+set}" = set; then
23503 echo $ECHO_N "(cached) $ECHO_C" >&6
23504 else
23505 cat >conftest.$ac_ext <<_ACEOF
23506 /* confdefs.h. */
23507 _ACEOF
23508 cat confdefs.h >>conftest.$ac_ext
23509 cat >>conftest.$ac_ext <<_ACEOF
23510 /* end confdefs.h. */
23511 $ac_includes_default
23512 # include <wchar.h>
23513 int
23514 main ()
23515 {
23516 mbstate_t x; return sizeof x;
23517 ;
23518 return 0;
23519 }
23520 _ACEOF
23521 rm -f conftest.$ac_objext
23522 if { (ac_try="$ac_compile"
23523 case "(($ac_try" in
23524 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23525 *) ac_try_echo=$ac_try;;
23526 esac
23527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23528 (eval "$ac_compile") 2>conftest.er1
23529 ac_status=$?
23530 grep -v '^ *+' conftest.er1 >conftest.err
23531 rm -f conftest.er1
23532 cat conftest.err >&5
23533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23534 (exit $ac_status); } && {
23535 test -z "$ac_c_werror_flag" ||
23536 test ! -s conftest.err
23537 } && test -s conftest.$ac_objext; then
23538 ac_cv_type_mbstate_t=yes
23539 else
23540 echo "$as_me: failed program was:" >&5
23541 sed 's/^/| /' conftest.$ac_ext >&5
23542
23543 ac_cv_type_mbstate_t=no
23544 fi
23545
23546 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23547 fi
23548 { echo "$as_me:$LINENO: result: $ac_cv_type_mbstate_t" >&5
23549 echo "${ECHO_T}$ac_cv_type_mbstate_t" >&6; }
23550 if test $ac_cv_type_mbstate_t = yes; then
23551
23552 cat >>confdefs.h <<\_ACEOF
23553 #define HAVE_MBSTATE_T 1
23554 _ACEOF
23555
23556 else
23557
23558 cat >>confdefs.h <<\_ACEOF
23559 #define mbstate_t int
23560 _ACEOF
23561
23562 fi
23563
23564 { echo "$as_me:$LINENO: checking for C restrict keyword" >&5
23565 echo $ECHO_N "checking for C restrict keyword... $ECHO_C" >&6; }
23566 if test "${emacs_cv_c_restrict+set}" = set; then
23567 echo $ECHO_N "(cached) $ECHO_C" >&6
23568 else
23569 cat >conftest.$ac_ext <<_ACEOF
23570 /* confdefs.h. */
23571 _ACEOF
23572 cat confdefs.h >>conftest.$ac_ext
23573 cat >>conftest.$ac_ext <<_ACEOF
23574 /* end confdefs.h. */
23575 void fred (int *restrict x);
23576 int
23577 main ()
23578 {
23579
23580 ;
23581 return 0;
23582 }
23583 _ACEOF
23584 rm -f conftest.$ac_objext
23585 if { (ac_try="$ac_compile"
23586 case "(($ac_try" in
23587 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23588 *) ac_try_echo=$ac_try;;
23589 esac
23590 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23591 (eval "$ac_compile") 2>conftest.er1
23592 ac_status=$?
23593 grep -v '^ *+' conftest.er1 >conftest.err
23594 rm -f conftest.er1
23595 cat conftest.err >&5
23596 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23597 (exit $ac_status); } && {
23598 test -z "$ac_c_werror_flag" ||
23599 test ! -s conftest.err
23600 } && test -s conftest.$ac_objext; then
23601 emacs_cv_c_restrict=yes
23602 else
23603 echo "$as_me: failed program was:" >&5
23604 sed 's/^/| /' conftest.$ac_ext >&5
23605
23606 cat >conftest.$ac_ext <<_ACEOF
23607 /* confdefs.h. */
23608 _ACEOF
23609 cat confdefs.h >>conftest.$ac_ext
23610 cat >>conftest.$ac_ext <<_ACEOF
23611 /* end confdefs.h. */
23612 void fred (int *__restrict x);
23613 int
23614 main ()
23615 {
23616
23617 ;
23618 return 0;
23619 }
23620 _ACEOF
23621 rm -f conftest.$ac_objext
23622 if { (ac_try="$ac_compile"
23623 case "(($ac_try" in
23624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23625 *) ac_try_echo=$ac_try;;
23626 esac
23627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23628 (eval "$ac_compile") 2>conftest.er1
23629 ac_status=$?
23630 grep -v '^ *+' conftest.er1 >conftest.err
23631 rm -f conftest.er1
23632 cat conftest.err >&5
23633 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23634 (exit $ac_status); } && {
23635 test -z "$ac_c_werror_flag" ||
23636 test ! -s conftest.err
23637 } && test -s conftest.$ac_objext; then
23638 emacs_cv_c_restrict=__restrict
23639 else
23640 echo "$as_me: failed program was:" >&5
23641 sed 's/^/| /' conftest.$ac_ext >&5
23642
23643 emacs_cv_c_restrict=no
23644 fi
23645
23646 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23647 fi
23648
23649 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23650 fi
23651 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict" >&5
23652 echo "${ECHO_T}$emacs_cv_c_restrict" >&6; }
23653 case "$emacs_cv_c_restrict" in
23654 yes) emacs_restrict=restrict;;
23655 no) emacs_restrict="";;
23656 *) emacs_restrict="$emacs_cv_c_restrict";;
23657 esac
23658 if test "$emacs_restrict" != __restrict; then
23659
23660 cat >>confdefs.h <<_ACEOF
23661 #define __restrict $emacs_restrict
23662 _ACEOF
23663
23664 fi
23665
23666 { echo "$as_me:$LINENO: checking for C restricted array declarations" >&5
23667 echo $ECHO_N "checking for C restricted array declarations... $ECHO_C" >&6; }
23668 if test "${emacs_cv_c_restrict_arr+set}" = set; then
23669 echo $ECHO_N "(cached) $ECHO_C" >&6
23670 else
23671 cat >conftest.$ac_ext <<_ACEOF
23672 /* confdefs.h. */
23673 _ACEOF
23674 cat confdefs.h >>conftest.$ac_ext
23675 cat >>conftest.$ac_ext <<_ACEOF
23676 /* end confdefs.h. */
23677 void fred (int x[__restrict]);
23678 int
23679 main ()
23680 {
23681
23682 ;
23683 return 0;
23684 }
23685 _ACEOF
23686 rm -f conftest.$ac_objext
23687 if { (ac_try="$ac_compile"
23688 case "(($ac_try" in
23689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
23690 *) ac_try_echo=$ac_try;;
23691 esac
23692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
23693 (eval "$ac_compile") 2>conftest.er1
23694 ac_status=$?
23695 grep -v '^ *+' conftest.er1 >conftest.err
23696 rm -f conftest.er1
23697 cat conftest.err >&5
23698 echo "$as_me:$LINENO: \$? = $ac_status" >&5
23699 (exit $ac_status); } && {
23700 test -z "$ac_c_werror_flag" ||
23701 test ! -s conftest.err
23702 } && test -s conftest.$ac_objext; then
23703 emacs_cv_c_restrict_arr=yes
23704 else
23705 echo "$as_me: failed program was:" >&5
23706 sed 's/^/| /' conftest.$ac_ext >&5
23707
23708 emacs_cv_c_restrict_arr=no
23709 fi
23710
23711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23712 fi
23713 { echo "$as_me:$LINENO: result: $emacs_cv_c_restrict_arr" >&5
23714 echo "${ECHO_T}$emacs_cv_c_restrict_arr" >&6; }
23715 if test "$emacs_cv_c_restrict_arr" = yes; then
23716
23717 cat >>confdefs.h <<\_ACEOF
23718 #define __restrict_arr __restrict
23719 _ACEOF
23720
23721 fi
23722
23723
23724
23725 # Set up the CFLAGS for real compilation, so we can substitute it.
23726 CFLAGS="$REAL_CFLAGS"
23727 CPPFLAGS="$REAL_CPPFLAGS"
23728
23729 #### Find out which version of Emacs this is.
23730 version=`grep 'defconst[ ]*emacs-version' ${srcdir}/lisp/version.el \
23731 | sed -e 's/^[^"]*"\([^"]*\)".*$/\1/'`
23732 if test x"${version}" = x; then
23733 { { echo "$as_me:$LINENO: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&5
23734 echo "$as_me: error: can't find current emacs version in \`${srcdir}/lisp/version.el'." >&2;}
23735 { (exit 1); exit 1; }; }
23736 fi
23737
23738 ### Specify what sort of things we'll be editing into Makefile and config.h.
23739 ### Use configuration here uncanonicalized to avoid exceeding size limits.
23740
23741
23742
23743
23744
23745
23746
23747
23748
23749
23750
23751
23752
23753
23754
23755
23756
23757
23758
23759
23760
23761
23762
23763
23764
23765
23766
23767
23768
23769
23770
23771
23772
23773
23774
23775 cat >>confdefs.h <<_ACEOF
23776 #define EMACS_CONFIGURATION "${canonical}"
23777 _ACEOF
23778
23779
23780 cat >>confdefs.h <<_ACEOF
23781 #define EMACS_CONFIG_OPTIONS "${ac_configure_args}"
23782 _ACEOF
23783
23784
23785 cat >>confdefs.h <<_ACEOF
23786 #define config_machfile "${machfile}"
23787 _ACEOF
23788
23789
23790 cat >>confdefs.h <<_ACEOF
23791 #define config_opsysfile "${opsysfile}"
23792 _ACEOF
23793
23794
23795 cat >>confdefs.h <<_ACEOF
23796 #define LD_SWITCH_X_SITE ${LD_SWITCH_X_SITE}
23797 _ACEOF
23798
23799
23800 cat >>confdefs.h <<_ACEOF
23801 #define LD_SWITCH_X_SITE_AUX ${LD_SWITCH_X_SITE_AUX}
23802 _ACEOF
23803
23804
23805 cat >>confdefs.h <<_ACEOF
23806 #define C_SWITCH_X_SITE ${C_SWITCH_X_SITE}
23807 _ACEOF
23808
23809
23810 cat >>confdefs.h <<_ACEOF
23811 #define UNEXEC_SRC ${UNEXEC_SRC}
23812 _ACEOF
23813
23814
23815 if test "${HAVE_X_WINDOWS}" = "yes" ; then
23816
23817 cat >>confdefs.h <<\_ACEOF
23818 #define HAVE_X_WINDOWS 1
23819 _ACEOF
23820
23821 fi
23822 if test "${USE_X_TOOLKIT}" != "none" ; then
23823
23824 cat >>confdefs.h <<\_ACEOF
23825 #define USE_X_TOOLKIT 1
23826 _ACEOF
23827
23828 fi
23829 if test "${HAVE_X11}" = "yes" ; then
23830
23831 cat >>confdefs.h <<\_ACEOF
23832 #define HAVE_X11 1
23833 _ACEOF
23834
23835 fi
23836 if test "${HAVE_XFREE386}" = "yes" ; then
23837
23838 cat >>confdefs.h <<\_ACEOF
23839 #define HAVE_XFREE386 1
23840 _ACEOF
23841
23842 fi
23843 if test "${HAVE_MENUS}" = "yes" ; then
23844
23845 cat >>confdefs.h <<\_ACEOF
23846 #define HAVE_MENUS 1
23847 _ACEOF
23848
23849 fi
23850 if test "${GNU_MALLOC}" = "yes" ; then
23851
23852 cat >>confdefs.h <<\_ACEOF
23853 #define GNU_MALLOC 1
23854 _ACEOF
23855
23856 fi
23857 if test "${REL_ALLOC}" = "yes" ; then
23858
23859 cat >>confdefs.h <<\_ACEOF
23860 #define REL_ALLOC 1
23861 _ACEOF
23862
23863 fi
23864
23865
23866
23867
23868
23869
23870 #### Report on what we decided to do.
23871 #### Report GTK as a toolkit, even if it doesn't use Xt.
23872 #### It makes printing result more understandable as using GTK sets
23873 #### toolkit_scroll_bars to yes by default.
23874 if test "${HAVE_GTK}" = "yes"; then
23875 USE_X_TOOLKIT=GTK
23876 fi
23877
23878 echo "
23879 Configured for \`${canonical}'.
23880
23881 Where should the build process find the source code? ${srcdir}
23882 What operating system and machine description files should Emacs use?
23883 \`${opsysfile}' and \`${machfile}'
23884 What compiler should emacs be built with? ${CC} ${CFLAGS}
23885 Should Emacs use the GNU version of malloc? ${GNU_MALLOC}${GNU_MALLOC_reason}
23886 Should Emacs use a relocating allocator for buffers? ${REL_ALLOC}
23887 Should Emacs use mmap(2) for buffer allocation? $use_mmap_for_buffers
23888 What window system should Emacs use? ${window_system}
23889 What toolkit should Emacs use? ${USE_X_TOOLKIT}"
23890
23891 if test -n "${x_includes}"; then
23892 echo " Where do we find X Windows header files? ${x_includes}"
23893 else
23894 echo " Where do we find X Windows header files? Standard dirs"
23895 fi
23896 if test -n "${x_libraries}"; then
23897 echo " Where do we find X Windows libraries? ${x_libraries}"
23898 else
23899 echo " Where do we find X Windows libraries? Standard dirs"
23900 fi
23901
23902 echo " Does Emacs use -lXaw3d? ${HAVE_XAW3D}"
23903 echo " Does Emacs use -lXpm? ${HAVE_XPM}"
23904 echo " Does Emacs use -ljpeg? ${HAVE_JPEG}"
23905 echo " Does Emacs use -ltiff? ${HAVE_TIFF}"
23906 echo " Does Emacs use a gif library? ${HAVE_GIF} $ac_gif_lib_name"
23907 echo " Does Emacs use -lpng? ${HAVE_PNG}"
23908 echo " Does Emacs use -lrsvg-2? ${HAVE_RSVG}"
23909 echo " Does Emacs use -lgpm? ${HAVE_GPM}"
23910 echo " Does Emacs use X toolkit scroll bars? ${USE_TOOLKIT_SCROLL_BARS}"
23911 echo
23912
23913 if test $USE_XASSERTS = yes; then
23914 echo " Compiling with asserts turned on."
23915 CPPFLAGS="$CPPFLAGS -DXASSERTS=1"
23916 echo
23917 fi
23918
23919 if test "$USE_X_TOOLKIT" = GTK; then
23920 case "$canonical" in
23921 *cygwin*)
23922 echo "There are known problems with Emacs and Gtk+ on cygwin, so you
23923 will probably get a crash on startup. If this happens, please use another
23924 toolkit for Emacs. See etc/PROBLEMS for more information."
23925 ;;
23926 esac
23927 fi
23928
23929
23930 if test "$HAVE_CARBON" = "yes"; then
23931 echo
23932 echo "Warning: The Mac Carbon port is currently unsupported and has
23933 known problems. It is not recommended for use by non-developers.
23934 Read the emacs-devel archives for more information."
23935 echo
23936 fi
23937
23938 if test "$HAVE_DBUS" = yes && test "${opsys}" != "gnu-linux"; then
23939 echo "D-Bus integration has been tested for GNU/Linux only."
23940 echo
23941 fi
23942
23943
23944 # Remove any trailing slashes in these variables.
23945 test "${prefix}" != NONE &&
23946 prefix=`echo "${prefix}" | sed 's,\([^/]\)/*$,\1,'`
23947 test "${exec_prefix}" != NONE &&
23948 exec_prefix=`echo "${exec_prefix}" | sed 's,\([^/]\)/*$,\1,'`
23949
23950 ## Check if the C preprocessor will convert `..' to `. .'. If so, set
23951 ## CPP_NEED_TRADITIONAL to `yes' so that the code to generate Makefile
23952 ## from Makefile.c can correctly provide the arg `-traditional' to the
23953 ## C preprocessor.
23954
23955 cat >conftest.$ac_ext <<_ACEOF
23956 /* confdefs.h. */
23957 _ACEOF
23958 cat confdefs.h >>conftest.$ac_ext
23959 cat >>conftest.$ac_ext <<_ACEOF
23960 /* end confdefs.h. */
23961 yes..yes
23962 _ACEOF
23963 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
23964 $EGREP "yes..yes" >/dev/null 2>&1; then
23965 CPP_NEED_TRADITIONAL=no
23966 else
23967 CPP_NEED_TRADITIONAL=yes
23968 fi
23969 rm -f conftest*
23970
23971
23972 ac_config_files="$ac_config_files Makefile lib-src/Makefile.c:lib-src/Makefile.in oldXMenu/Makefile doc/emacs/Makefile doc/misc/Makefile doc/lispintro/Makefile doc/lispref/Makefile src/Makefile.c:src/Makefile.in lwlib/Makefile lisp/Makefile leim/Makefile"
23973
23974 ac_config_commands="$ac_config_commands default"
23975
23976 cat >confcache <<\_ACEOF
23977 # This file is a shell script that caches the results of configure
23978 # tests run on this system so they can be shared between configure
23979 # scripts and configure runs, see configure's option --config-cache.
23980 # It is not useful on other systems. If it contains results you don't
23981 # want to keep, you may remove or edit it.
23982 #
23983 # config.status only pays attention to the cache file if you give it
23984 # the --recheck option to rerun configure.
23985 #
23986 # `ac_cv_env_foo' variables (set or unset) will be overridden when
23987 # loading this file, other *unset* `ac_cv_foo' will be assigned the
23988 # following values.
23989
23990 _ACEOF
23991
23992 # The following way of writing the cache mishandles newlines in values,
23993 # but we know of no workaround that is simple, portable, and efficient.
23994 # So, we kill variables containing newlines.
23995 # Ultrix sh set writes to stderr and can't be redirected directly,
23996 # and sets the high bit in the cache file unless we assign to the vars.
23997 (
23998 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
23999 eval ac_val=\$$ac_var
24000 case $ac_val in #(
24001 *${as_nl}*)
24002 case $ac_var in #(
24003 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
24004 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
24005 esac
24006 case $ac_var in #(
24007 _ | IFS | as_nl) ;; #(
24008 *) $as_unset $ac_var ;;
24009 esac ;;
24010 esac
24011 done
24012
24013 (set) 2>&1 |
24014 case $as_nl`(ac_space=' '; set) 2>&1` in #(
24015 *${as_nl}ac_space=\ *)
24016 # `set' does not quote correctly, so add quotes (double-quote
24017 # substitution turns \\\\ into \\, and sed turns \\ into \).
24018 sed -n \
24019 "s/'/'\\\\''/g;
24020 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
24021 ;; #(
24022 *)
24023 # `set' quotes correctly as required by POSIX, so do not add quotes.
24024 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
24025 ;;
24026 esac |
24027 sort
24028 ) |
24029 sed '
24030 /^ac_cv_env_/b end
24031 t clear
24032 :clear
24033 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
24034 t end
24035 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
24036 :end' >>confcache
24037 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
24038 if test -w "$cache_file"; then
24039 test "x$cache_file" != "x/dev/null" &&
24040 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
24041 echo "$as_me: updating cache $cache_file" >&6;}
24042 cat confcache >$cache_file
24043 else
24044 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
24045 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
24046 fi
24047 fi
24048 rm -f confcache
24049
24050 test "x$prefix" = xNONE && prefix=$ac_default_prefix
24051 # Let make expand exec_prefix.
24052 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
24053
24054 DEFS=-DHAVE_CONFIG_H
24055
24056 ac_libobjs=
24057 ac_ltlibobjs=
24058 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
24059 # 1. Remove the extension, and $U if already installed.
24060 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
24061 ac_i=`echo "$ac_i" | sed "$ac_script"`
24062 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
24063 # will be set to the directory where LIBOBJS objects are built.
24064 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
24065 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
24066 done
24067 LIBOBJS=$ac_libobjs
24068
24069 LTLIBOBJS=$ac_ltlibobjs
24070
24071
24072
24073 : ${CONFIG_STATUS=./config.status}
24074 ac_clean_files_save=$ac_clean_files
24075 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
24076 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
24077 echo "$as_me: creating $CONFIG_STATUS" >&6;}
24078 cat >$CONFIG_STATUS <<_ACEOF
24079 #! $SHELL
24080 # Generated by $as_me.
24081 # Run this file to recreate the current configuration.
24082 # Compiler output produced by configure, useful for debugging
24083 # configure, is in config.log if it exists.
24084
24085 debug=false
24086 ac_cs_recheck=false
24087 ac_cs_silent=false
24088 SHELL=\${CONFIG_SHELL-$SHELL}
24089 _ACEOF
24090
24091 cat >>$CONFIG_STATUS <<\_ACEOF
24092 ## --------------------- ##
24093 ## M4sh Initialization. ##
24094 ## --------------------- ##
24095
24096 # Be more Bourne compatible
24097 DUALCASE=1; export DUALCASE # for MKS sh
24098 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
24099 emulate sh
24100 NULLCMD=:
24101 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
24102 # is contrary to our usage. Disable this feature.
24103 alias -g '${1+"$@"}'='"$@"'
24104 setopt NO_GLOB_SUBST
24105 else
24106 case `(set -o) 2>/dev/null` in
24107 *posix*) set -o posix ;;
24108 esac
24109
24110 fi
24111
24112
24113
24114
24115 # PATH needs CR
24116 # Avoid depending upon Character Ranges.
24117 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
24118 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
24119 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
24120 as_cr_digits='0123456789'
24121 as_cr_alnum=$as_cr_Letters$as_cr_digits
24122
24123 # The user is always right.
24124 if test "${PATH_SEPARATOR+set}" != set; then
24125 echo "#! /bin/sh" >conf$$.sh
24126 echo "exit 0" >>conf$$.sh
24127 chmod +x conf$$.sh
24128 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
24129 PATH_SEPARATOR=';'
24130 else
24131 PATH_SEPARATOR=:
24132 fi
24133 rm -f conf$$.sh
24134 fi
24135
24136 # Support unset when possible.
24137 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
24138 as_unset=unset
24139 else
24140 as_unset=false
24141 fi
24142
24143
24144 # IFS
24145 # We need space, tab and new line, in precisely that order. Quoting is
24146 # there to prevent editors from complaining about space-tab.
24147 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
24148 # splitting by setting IFS to empty value.)
24149 as_nl='
24150 '
24151 IFS=" "" $as_nl"
24152
24153 # Find who we are. Look in the path if we contain no directory separator.
24154 case $0 in
24155 *[\\/]* ) as_myself=$0 ;;
24156 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
24157 for as_dir in $PATH
24158 do
24159 IFS=$as_save_IFS
24160 test -z "$as_dir" && as_dir=.
24161 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
24162 done
24163 IFS=$as_save_IFS
24164
24165 ;;
24166 esac
24167 # We did not find ourselves, most probably we were run as `sh COMMAND'
24168 # in which case we are not to be found in the path.
24169 if test "x$as_myself" = x; then
24170 as_myself=$0
24171 fi
24172 if test ! -f "$as_myself"; then
24173 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
24174 { (exit 1); exit 1; }
24175 fi
24176
24177 # Work around bugs in pre-3.0 UWIN ksh.
24178 for as_var in ENV MAIL MAILPATH
24179 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24180 done
24181 PS1='$ '
24182 PS2='> '
24183 PS4='+ '
24184
24185 # NLS nuisances.
24186 for as_var in \
24187 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
24188 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
24189 LC_TELEPHONE LC_TIME
24190 do
24191 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
24192 eval $as_var=C; export $as_var
24193 else
24194 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
24195 fi
24196 done
24197
24198 # Required to use basename.
24199 if expr a : '\(a\)' >/dev/null 2>&1 &&
24200 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24201 as_expr=expr
24202 else
24203 as_expr=false
24204 fi
24205
24206 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
24207 as_basename=basename
24208 else
24209 as_basename=false
24210 fi
24211
24212
24213 # Name of the executable.
24214 as_me=`$as_basename -- "$0" ||
24215 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
24216 X"$0" : 'X\(//\)$' \| \
24217 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
24218 echo X/"$0" |
24219 sed '/^.*\/\([^/][^/]*\)\/*$/{
24220 s//\1/
24221 q
24222 }
24223 /^X\/\(\/\/\)$/{
24224 s//\1/
24225 q
24226 }
24227 /^X\/\(\/\).*/{
24228 s//\1/
24229 q
24230 }
24231 s/.*/./; q'`
24232
24233 # CDPATH.
24234 $as_unset CDPATH
24235
24236
24237
24238 as_lineno_1=$LINENO
24239 as_lineno_2=$LINENO
24240 test "x$as_lineno_1" != "x$as_lineno_2" &&
24241 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
24242
24243 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
24244 # uniformly replaced by the line number. The first 'sed' inserts a
24245 # line-number line after each line using $LINENO; the second 'sed'
24246 # does the real work. The second script uses 'N' to pair each
24247 # line-number line with the line containing $LINENO, and appends
24248 # trailing '-' during substitution so that $LINENO is not a special
24249 # case at line end.
24250 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
24251 # scripts with optimization help from Paolo Bonzini. Blame Lee
24252 # E. McMahon (1931-1989) for sed's syntax. :-)
24253 sed -n '
24254 p
24255 /[$]LINENO/=
24256 ' <$as_myself |
24257 sed '
24258 s/[$]LINENO.*/&-/
24259 t lineno
24260 b
24261 :lineno
24262 N
24263 :loop
24264 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
24265 t loop
24266 s/-\n.*//
24267 ' >$as_me.lineno &&
24268 chmod +x "$as_me.lineno" ||
24269 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
24270 { (exit 1); exit 1; }; }
24271
24272 # Don't try to exec as it changes $[0], causing all sort of problems
24273 # (the dirname of $[0] is not the place where we might find the
24274 # original and so on. Autoconf is especially sensitive to this).
24275 . "./$as_me.lineno"
24276 # Exit status is that of the last command.
24277 exit
24278 }
24279
24280
24281 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
24282 as_dirname=dirname
24283 else
24284 as_dirname=false
24285 fi
24286
24287 ECHO_C= ECHO_N= ECHO_T=
24288 case `echo -n x` in
24289 -n*)
24290 case `echo 'x\c'` in
24291 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
24292 *) ECHO_C='\c';;
24293 esac;;
24294 *)
24295 ECHO_N='-n';;
24296 esac
24297
24298 if expr a : '\(a\)' >/dev/null 2>&1 &&
24299 test "X`expr 00001 : '.*\(...\)'`" = X001; then
24300 as_expr=expr
24301 else
24302 as_expr=false
24303 fi
24304
24305 rm -f conf$$ conf$$.exe conf$$.file
24306 if test -d conf$$.dir; then
24307 rm -f conf$$.dir/conf$$.file
24308 else
24309 rm -f conf$$.dir
24310 mkdir conf$$.dir
24311 fi
24312 echo >conf$$.file
24313 if ln -s conf$$.file conf$$ 2>/dev/null; then
24314 as_ln_s='ln -s'
24315 # ... but there are two gotchas:
24316 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
24317 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
24318 # In both cases, we have to default to `cp -p'.
24319 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
24320 as_ln_s='cp -p'
24321 elif ln conf$$.file conf$$ 2>/dev/null; then
24322 as_ln_s=ln
24323 else
24324 as_ln_s='cp -p'
24325 fi
24326 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
24327 rmdir conf$$.dir 2>/dev/null
24328
24329 if mkdir -p . 2>/dev/null; then
24330 as_mkdir_p=:
24331 else
24332 test -d ./-p && rmdir ./-p
24333 as_mkdir_p=false
24334 fi
24335
24336 if test -x / >/dev/null 2>&1; then
24337 as_test_x='test -x'
24338 else
24339 if ls -dL / >/dev/null 2>&1; then
24340 as_ls_L_option=L
24341 else
24342 as_ls_L_option=
24343 fi
24344 as_test_x='
24345 eval sh -c '\''
24346 if test -d "$1"; then
24347 test -d "$1/.";
24348 else
24349 case $1 in
24350 -*)set "./$1";;
24351 esac;
24352 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in
24353 ???[sx]*):;;*)false;;esac;fi
24354 '\'' sh
24355 '
24356 fi
24357 as_executable_p=$as_test_x
24358
24359 # Sed expression to map a string onto a valid CPP name.
24360 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
24361
24362 # Sed expression to map a string onto a valid variable name.
24363 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
24364
24365
24366 exec 6>&1
24367
24368 # Save the log message, to keep $[0] and so on meaningful, and to
24369 # report actual input values of CONFIG_FILES etc. instead of their
24370 # values after options handling.
24371 ac_log="
24372 This file was extended by $as_me, which was
24373 generated by GNU Autoconf 2.61. Invocation command line was
24374
24375 CONFIG_FILES = $CONFIG_FILES
24376 CONFIG_HEADERS = $CONFIG_HEADERS
24377 CONFIG_LINKS = $CONFIG_LINKS
24378 CONFIG_COMMANDS = $CONFIG_COMMANDS
24379 $ $0 $@
24380
24381 on `(hostname || uname -n) 2>/dev/null | sed 1q`
24382 "
24383
24384 _ACEOF
24385
24386 cat >>$CONFIG_STATUS <<_ACEOF
24387 # Files that config.status was made for.
24388 config_files="$ac_config_files"
24389 config_headers="$ac_config_headers"
24390 config_commands="$ac_config_commands"
24391
24392 _ACEOF
24393
24394 cat >>$CONFIG_STATUS <<\_ACEOF
24395 ac_cs_usage="\
24396 \`$as_me' instantiates files from templates according to the
24397 current configuration.
24398
24399 Usage: $0 [OPTIONS] [FILE]...
24400
24401 -h, --help print this help, then exit
24402 -V, --version print version number and configuration settings, then exit
24403 -q, --quiet do not print progress messages
24404 -d, --debug don't remove temporary files
24405 --recheck update $as_me by reconfiguring in the same conditions
24406 --file=FILE[:TEMPLATE]
24407 instantiate the configuration file FILE
24408 --header=FILE[:TEMPLATE]
24409 instantiate the configuration header FILE
24410
24411 Configuration files:
24412 $config_files
24413
24414 Configuration headers:
24415 $config_headers
24416
24417 Configuration commands:
24418 $config_commands
24419
24420 Report bugs to <bug-autoconf@gnu.org>."
24421
24422 _ACEOF
24423 cat >>$CONFIG_STATUS <<_ACEOF
24424 ac_cs_version="\\
24425 config.status
24426 configured by $0, generated by GNU Autoconf 2.61,
24427 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
24428
24429 Copyright (C) 2006 Free Software Foundation, Inc.
24430 This config.status script is free software; the Free Software Foundation
24431 gives unlimited permission to copy, distribute and modify it."
24432
24433 ac_pwd='$ac_pwd'
24434 srcdir='$srcdir'
24435 INSTALL='$INSTALL'
24436 _ACEOF
24437
24438 cat >>$CONFIG_STATUS <<\_ACEOF
24439 # If no file are specified by the user, then we need to provide default
24440 # value. By we need to know if files were specified by the user.
24441 ac_need_defaults=:
24442 while test $# != 0
24443 do
24444 case $1 in
24445 --*=*)
24446 ac_option=`expr "X$1" : 'X\([^=]*\)='`
24447 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
24448 ac_shift=:
24449 ;;
24450 *)
24451 ac_option=$1
24452 ac_optarg=$2
24453 ac_shift=shift
24454 ;;
24455 esac
24456
24457 case $ac_option in
24458 # Handling of the options.
24459 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
24460 ac_cs_recheck=: ;;
24461 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
24462 echo "$ac_cs_version"; exit ;;
24463 --debug | --debu | --deb | --de | --d | -d )
24464 debug=: ;;
24465 --file | --fil | --fi | --f )
24466 $ac_shift
24467 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
24468 ac_need_defaults=false;;
24469 --header | --heade | --head | --hea )
24470 $ac_shift
24471 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
24472 ac_need_defaults=false;;
24473 --he | --h)
24474 # Conflict between --help and --header
24475 { echo "$as_me: error: ambiguous option: $1
24476 Try \`$0 --help' for more information." >&2
24477 { (exit 1); exit 1; }; };;
24478 --help | --hel | -h )
24479 echo "$ac_cs_usage"; exit ;;
24480 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
24481 | -silent | --silent | --silen | --sile | --sil | --si | --s)
24482 ac_cs_silent=: ;;
24483
24484 # This is an error.
24485 -*) { echo "$as_me: error: unrecognized option: $1
24486 Try \`$0 --help' for more information." >&2
24487 { (exit 1); exit 1; }; } ;;
24488
24489 *) ac_config_targets="$ac_config_targets $1"
24490 ac_need_defaults=false ;;
24491
24492 esac
24493 shift
24494 done
24495
24496 ac_configure_extra_args=
24497
24498 if $ac_cs_silent; then
24499 exec 6>/dev/null
24500 ac_configure_extra_args="$ac_configure_extra_args --silent"
24501 fi
24502
24503 _ACEOF
24504 cat >>$CONFIG_STATUS <<_ACEOF
24505 if \$ac_cs_recheck; then
24506 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
24507 CONFIG_SHELL=$SHELL
24508 export CONFIG_SHELL
24509 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
24510 fi
24511
24512 _ACEOF
24513 cat >>$CONFIG_STATUS <<\_ACEOF
24514 exec 5>>config.log
24515 {
24516 echo
24517 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
24518 ## Running $as_me. ##
24519 _ASBOX
24520 echo "$ac_log"
24521 } >&5
24522
24523 _ACEOF
24524 cat >>$CONFIG_STATUS <<_ACEOF
24525 #
24526 # INIT-COMMANDS
24527 #
24528 GCC="$GCC" NON_GNU_CPP="$NON_GNU_CPP" CPP="$CPP" CPP_NEED_TRADITIONAL="$CPP_NEED_TRADITIONAL" CPPFLAGS="$CPPFLAGS"
24529
24530 _ACEOF
24531
24532 cat >>$CONFIG_STATUS <<\_ACEOF
24533
24534 # Handling of arguments.
24535 for ac_config_target in $ac_config_targets
24536 do
24537 case $ac_config_target in
24538 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h:src/config.in" ;;
24539 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
24540 "lib-src/Makefile.c") CONFIG_FILES="$CONFIG_FILES lib-src/Makefile.c:lib-src/Makefile.in" ;;
24541 "oldXMenu/Makefile") CONFIG_FILES="$CONFIG_FILES oldXMenu/Makefile" ;;
24542 "doc/emacs/Makefile") CONFIG_FILES="$CONFIG_FILES doc/emacs/Makefile" ;;
24543 "doc/misc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/misc/Makefile" ;;
24544 "doc/lispintro/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispintro/Makefile" ;;
24545 "doc/lispref/Makefile") CONFIG_FILES="$CONFIG_FILES doc/lispref/Makefile" ;;
24546 "src/Makefile.c") CONFIG_FILES="$CONFIG_FILES src/Makefile.c:src/Makefile.in" ;;
24547 "lwlib/Makefile") CONFIG_FILES="$CONFIG_FILES lwlib/Makefile" ;;
24548 "lisp/Makefile") CONFIG_FILES="$CONFIG_FILES lisp/Makefile" ;;
24549 "leim/Makefile") CONFIG_FILES="$CONFIG_FILES leim/Makefile" ;;
24550 "default") CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;;
24551
24552 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
24553 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
24554 { (exit 1); exit 1; }; };;
24555 esac
24556 done
24557
24558
24559 # If the user did not use the arguments to specify the items to instantiate,
24560 # then the envvar interface is used. Set only those that are not.
24561 # We use the long form for the default assignment because of an extremely
24562 # bizarre bug on SunOS 4.1.3.
24563 if $ac_need_defaults; then
24564 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
24565 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
24566 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
24567 fi
24568
24569 # Have a temporary directory for convenience. Make it in the build tree
24570 # simply because there is no reason against having it here, and in addition,
24571 # creating and moving files from /tmp can sometimes cause problems.
24572 # Hook for its removal unless debugging.
24573 # Note that there is a small window in which the directory will not be cleaned:
24574 # after its creation but before its name has been assigned to `$tmp'.
24575 $debug ||
24576 {
24577 tmp=
24578 trap 'exit_status=$?
24579 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
24580 ' 0
24581 trap '{ (exit 1); exit 1; }' 1 2 13 15
24582 }
24583 # Create a (secure) tmp directory for tmp files.
24584
24585 {
24586 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
24587 test -n "$tmp" && test -d "$tmp"
24588 } ||
24589 {
24590 tmp=./conf$$-$RANDOM
24591 (umask 077 && mkdir "$tmp")
24592 } ||
24593 {
24594 echo "$me: cannot create a temporary directory in ." >&2
24595 { (exit 1); exit 1; }
24596 }
24597
24598 #
24599 # Set up the sed scripts for CONFIG_FILES section.
24600 #
24601
24602 # No need to generate the scripts if there are no CONFIG_FILES.
24603 # This happens for instance when ./config.status config.h
24604 if test -n "$CONFIG_FILES"; then
24605
24606 _ACEOF
24607
24608
24609
24610 ac_delim='%!_!# '
24611 for ac_last_try in false false false false false :; do
24612 cat >conf$$subs.sed <<_ACEOF
24613 SHELL!$SHELL$ac_delim
24614 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
24615 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
24616 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
24617 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
24618 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
24619 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
24620 exec_prefix!$exec_prefix$ac_delim
24621 prefix!$prefix$ac_delim
24622 program_transform_name!$program_transform_name$ac_delim
24623 bindir!$bindir$ac_delim
24624 sbindir!$sbindir$ac_delim
24625 libexecdir!$libexecdir$ac_delim
24626 datarootdir!$datarootdir$ac_delim
24627 datadir!$datadir$ac_delim
24628 sysconfdir!$sysconfdir$ac_delim
24629 sharedstatedir!$sharedstatedir$ac_delim
24630 localstatedir!$localstatedir$ac_delim
24631 includedir!$includedir$ac_delim
24632 oldincludedir!$oldincludedir$ac_delim
24633 docdir!$docdir$ac_delim
24634 infodir!$infodir$ac_delim
24635 htmldir!$htmldir$ac_delim
24636 dvidir!$dvidir$ac_delim
24637 pdfdir!$pdfdir$ac_delim
24638 psdir!$psdir$ac_delim
24639 libdir!$libdir$ac_delim
24640 localedir!$localedir$ac_delim
24641 mandir!$mandir$ac_delim
24642 DEFS!$DEFS$ac_delim
24643 ECHO_C!$ECHO_C$ac_delim
24644 ECHO_N!$ECHO_N$ac_delim
24645 ECHO_T!$ECHO_T$ac_delim
24646 LIBS!$LIBS$ac_delim
24647 build_alias!$build_alias$ac_delim
24648 host_alias!$host_alias$ac_delim
24649 target_alias!$target_alias$ac_delim
24650 MAINT!$MAINT$ac_delim
24651 build!$build$ac_delim
24652 build_cpu!$build_cpu$ac_delim
24653 build_vendor!$build_vendor$ac_delim
24654 build_os!$build_os$ac_delim
24655 host!$host$ac_delim
24656 host_cpu!$host_cpu$ac_delim
24657 host_vendor!$host_vendor$ac_delim
24658 host_os!$host_os$ac_delim
24659 CC!$CC$ac_delim
24660 CFLAGS!$CFLAGS$ac_delim
24661 LDFLAGS!$LDFLAGS$ac_delim
24662 CPPFLAGS!$CPPFLAGS$ac_delim
24663 ac_ct_CC!$ac_ct_CC$ac_delim
24664 EXEEXT!$EXEEXT$ac_delim
24665 OBJEXT!$OBJEXT$ac_delim
24666 CPP!$CPP$ac_delim
24667 GREP!$GREP$ac_delim
24668 EGREP!$EGREP$ac_delim
24669 LN_S!$LN_S$ac_delim
24670 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
24671 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
24672 INSTALL_DATA!$INSTALL_DATA$ac_delim
24673 RANLIB!$RANLIB$ac_delim
24674 INSTALL_INFO!$INSTALL_INFO$ac_delim
24675 GZIP_PROG!$GZIP_PROG$ac_delim
24676 MAKEINFO!$MAKEINFO$ac_delim
24677 LIBSOUND!$LIBSOUND$ac_delim
24678 PKG_CONFIG!$PKG_CONFIG$ac_delim
24679 ALSA_CFLAGS!$ALSA_CFLAGS$ac_delim
24680 ALSA_LIBS!$ALSA_LIBS$ac_delim
24681 CFLAGS_SOUND!$CFLAGS_SOUND$ac_delim
24682 SET_MAKE!$SET_MAKE$ac_delim
24683 XMKMF!$XMKMF$ac_delim
24684 HAVE_XSERVER!$HAVE_XSERVER$ac_delim
24685 RSVG_CFLAGS!$RSVG_CFLAGS$ac_delim
24686 RSVG_LIBS!$RSVG_LIBS$ac_delim
24687 GTK_CFLAGS!$GTK_CFLAGS$ac_delim
24688 GTK_LIBS!$GTK_LIBS$ac_delim
24689 DBUS_CFLAGS!$DBUS_CFLAGS$ac_delim
24690 DBUS_LIBS!$DBUS_LIBS$ac_delim
24691 XFT_CFLAGS!$XFT_CFLAGS$ac_delim
24692 XFT_LIBS!$XFT_LIBS$ac_delim
24693 ALLOCA!$ALLOCA$ac_delim
24694 liblockfile!$liblockfile$ac_delim
24695 LIBOBJS!$LIBOBJS$ac_delim
24696 NEED_SETGID!$NEED_SETGID$ac_delim
24697 KMEM_GROUP!$KMEM_GROUP$ac_delim
24698 GETLOADAVG_LIBS!$GETLOADAVG_LIBS$ac_delim
24699 GETOPT_H!$GETOPT_H$ac_delim
24700 GETOPTOBJS!$GETOPTOBJS$ac_delim
24701 version!$version$ac_delim
24702 configuration!$configuration$ac_delim
24703 canonical!$canonical$ac_delim
24704 srcdir!$srcdir$ac_delim
24705 lispdir!$lispdir$ac_delim
24706 locallisppath!$locallisppath$ac_delim
24707 lisppath!$lisppath$ac_delim
24708 x_default_search_path!$x_default_search_path$ac_delim
24709 etcdir!$etcdir$ac_delim
24710 _ACEOF
24711
24712 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
24713 break
24714 elif $ac_last_try; then
24715 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24716 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24717 { (exit 1); exit 1; }; }
24718 else
24719 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24720 fi
24721 done
24722
24723 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24724 if test -n "$ac_eof"; then
24725 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24726 ac_eof=`expr $ac_eof + 1`
24727 fi
24728
24729 cat >>$CONFIG_STATUS <<_ACEOF
24730 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
24731 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
24732 _ACEOF
24733 sed '
24734 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24735 s/^/s,@/; s/!/@,|#_!!_#|/
24736 :n
24737 t n
24738 s/'"$ac_delim"'$/,g/; t
24739 s/$/\\/; p
24740 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24741 ' >>$CONFIG_STATUS <conf$$subs.sed
24742 rm -f conf$$subs.sed
24743 cat >>$CONFIG_STATUS <<_ACEOF
24744 CEOF$ac_eof
24745 _ACEOF
24746
24747
24748 ac_delim='%!_!# '
24749 for ac_last_try in false false false false false :; do
24750 cat >conf$$subs.sed <<_ACEOF
24751 archlibdir!$archlibdir$ac_delim
24752 bitmapdir!$bitmapdir$ac_delim
24753 gamedir!$gamedir$ac_delim
24754 gameuser!$gameuser$ac_delim
24755 c_switch_system!$c_switch_system$ac_delim
24756 c_switch_machine!$c_switch_machine$ac_delim
24757 LD_SWITCH_X_SITE!$LD_SWITCH_X_SITE$ac_delim
24758 LD_SWITCH_X_SITE_AUX!$LD_SWITCH_X_SITE_AUX$ac_delim
24759 C_SWITCH_X_SITE!$C_SWITCH_X_SITE$ac_delim
24760 X_TOOLKIT_TYPE!$X_TOOLKIT_TYPE$ac_delim
24761 machfile!$machfile$ac_delim
24762 opsysfile!$opsysfile$ac_delim
24763 carbon_appdir!$carbon_appdir$ac_delim
24764 LTLIBOBJS!$LTLIBOBJS$ac_delim
24765 _ACEOF
24766
24767 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 14; then
24768 break
24769 elif $ac_last_try; then
24770 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
24771 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
24772 { (exit 1); exit 1; }; }
24773 else
24774 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
24775 fi
24776 done
24777
24778 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
24779 if test -n "$ac_eof"; then
24780 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
24781 ac_eof=`expr $ac_eof + 1`
24782 fi
24783
24784 cat >>$CONFIG_STATUS <<_ACEOF
24785 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
24786 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
24787 _ACEOF
24788 sed '
24789 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
24790 s/^/s,@/; s/!/@,|#_!!_#|/
24791 :n
24792 t n
24793 s/'"$ac_delim"'$/,g/; t
24794 s/$/\\/; p
24795 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
24796 ' >>$CONFIG_STATUS <conf$$subs.sed
24797 rm -f conf$$subs.sed
24798 cat >>$CONFIG_STATUS <<_ACEOF
24799 :end
24800 s/|#_!!_#|//g
24801 CEOF$ac_eof
24802 _ACEOF
24803
24804
24805 # VPATH may cause trouble with some makes, so we remove $(srcdir),
24806 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
24807 # trailing colons and then remove the whole line if VPATH becomes empty
24808 # (actually we leave an empty line to preserve line numbers).
24809 if test "x$srcdir" = x.; then
24810 ac_vpsub='/^[ ]*VPATH[ ]*=/{
24811 s/:*\$(srcdir):*/:/
24812 s/:*\${srcdir}:*/:/
24813 s/:*@srcdir@:*/:/
24814 s/^\([^=]*=[ ]*\):*/\1/
24815 s/:*$//
24816 s/^[^=]*=[ ]*$//
24817 }'
24818 fi
24819
24820 cat >>$CONFIG_STATUS <<\_ACEOF
24821 fi # test -n "$CONFIG_FILES"
24822
24823
24824 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
24825 do
24826 case $ac_tag in
24827 :[FHLC]) ac_mode=$ac_tag; continue;;
24828 esac
24829 case $ac_mode$ac_tag in
24830 :[FHL]*:*);;
24831 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
24832 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
24833 { (exit 1); exit 1; }; };;
24834 :[FH]-) ac_tag=-:-;;
24835 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
24836 esac
24837 ac_save_IFS=$IFS
24838 IFS=:
24839 set x $ac_tag
24840 IFS=$ac_save_IFS
24841 shift
24842 ac_file=$1
24843 shift
24844
24845 case $ac_mode in
24846 :L) ac_source=$1;;
24847 :[FH])
24848 ac_file_inputs=
24849 for ac_f
24850 do
24851 case $ac_f in
24852 -) ac_f="$tmp/stdin";;
24853 *) # Look for the file first in the build tree, then in the source tree
24854 # (if the path is not absolute). The absolute path cannot be DOS-style,
24855 # because $ac_f cannot contain `:'.
24856 test -f "$ac_f" ||
24857 case $ac_f in
24858 [\\/$]*) false;;
24859 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
24860 esac ||
24861 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
24862 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
24863 { (exit 1); exit 1; }; };;
24864 esac
24865 ac_file_inputs="$ac_file_inputs $ac_f"
24866 done
24867
24868 # Let's still pretend it is `configure' which instantiates (i.e., don't
24869 # use $as_me), people would be surprised to read:
24870 # /* config.h. Generated by config.status. */
24871 configure_input="Generated from "`IFS=:
24872 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
24873 if test x"$ac_file" != x-; then
24874 configure_input="$ac_file. $configure_input"
24875 { echo "$as_me:$LINENO: creating $ac_file" >&5
24876 echo "$as_me: creating $ac_file" >&6;}
24877 fi
24878
24879 case $ac_tag in
24880 *:-:* | *:-) cat >"$tmp/stdin";;
24881 esac
24882 ;;
24883 esac
24884
24885 ac_dir=`$as_dirname -- "$ac_file" ||
24886 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24887 X"$ac_file" : 'X\(//\)[^/]' \| \
24888 X"$ac_file" : 'X\(//\)$' \| \
24889 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
24890 echo X"$ac_file" |
24891 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24892 s//\1/
24893 q
24894 }
24895 /^X\(\/\/\)[^/].*/{
24896 s//\1/
24897 q
24898 }
24899 /^X\(\/\/\)$/{
24900 s//\1/
24901 q
24902 }
24903 /^X\(\/\).*/{
24904 s//\1/
24905 q
24906 }
24907 s/.*/./; q'`
24908 { as_dir="$ac_dir"
24909 case $as_dir in #(
24910 -*) as_dir=./$as_dir;;
24911 esac
24912 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
24913 as_dirs=
24914 while :; do
24915 case $as_dir in #(
24916 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
24917 *) as_qdir=$as_dir;;
24918 esac
24919 as_dirs="'$as_qdir' $as_dirs"
24920 as_dir=`$as_dirname -- "$as_dir" ||
24921 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
24922 X"$as_dir" : 'X\(//\)[^/]' \| \
24923 X"$as_dir" : 'X\(//\)$' \| \
24924 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
24925 echo X"$as_dir" |
24926 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
24927 s//\1/
24928 q
24929 }
24930 /^X\(\/\/\)[^/].*/{
24931 s//\1/
24932 q
24933 }
24934 /^X\(\/\/\)$/{
24935 s//\1/
24936 q
24937 }
24938 /^X\(\/\).*/{
24939 s//\1/
24940 q
24941 }
24942 s/.*/./; q'`
24943 test -d "$as_dir" && break
24944 done
24945 test -z "$as_dirs" || eval "mkdir $as_dirs"
24946 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
24947 echo "$as_me: error: cannot create directory $as_dir" >&2;}
24948 { (exit 1); exit 1; }; }; }
24949 ac_builddir=.
24950
24951 case "$ac_dir" in
24952 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
24953 *)
24954 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
24955 # A ".." for each directory in $ac_dir_suffix.
24956 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
24957 case $ac_top_builddir_sub in
24958 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
24959 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
24960 esac ;;
24961 esac
24962 ac_abs_top_builddir=$ac_pwd
24963 ac_abs_builddir=$ac_pwd$ac_dir_suffix
24964 # for backward compatibility:
24965 ac_top_builddir=$ac_top_build_prefix
24966
24967 case $srcdir in
24968 .) # We are building in place.
24969 ac_srcdir=.
24970 ac_top_srcdir=$ac_top_builddir_sub
24971 ac_abs_top_srcdir=$ac_pwd ;;
24972 [\\/]* | ?:[\\/]* ) # Absolute name.
24973 ac_srcdir=$srcdir$ac_dir_suffix;
24974 ac_top_srcdir=$srcdir
24975 ac_abs_top_srcdir=$srcdir ;;
24976 *) # Relative name.
24977 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
24978 ac_top_srcdir=$ac_top_build_prefix$srcdir
24979 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
24980 esac
24981 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
24982
24983
24984 case $ac_mode in
24985 :F)
24986 #
24987 # CONFIG_FILE
24988 #
24989
24990 case $INSTALL in
24991 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
24992 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
24993 esac
24994 _ACEOF
24995
24996 cat >>$CONFIG_STATUS <<\_ACEOF
24997 # If the template does not know about datarootdir, expand it.
24998 # FIXME: This hack should be removed a few years after 2.60.
24999 ac_datarootdir_hack=; ac_datarootdir_seen=
25000
25001 case `sed -n '/datarootdir/ {
25002 p
25003 q
25004 }
25005 /@datadir@/p
25006 /@docdir@/p
25007 /@infodir@/p
25008 /@localedir@/p
25009 /@mandir@/p
25010 ' $ac_file_inputs` in
25011 *datarootdir*) ac_datarootdir_seen=yes;;
25012 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
25013 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
25014 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
25015 _ACEOF
25016 cat >>$CONFIG_STATUS <<_ACEOF
25017 ac_datarootdir_hack='
25018 s&@datadir@&$datadir&g
25019 s&@docdir@&$docdir&g
25020 s&@infodir@&$infodir&g
25021 s&@localedir@&$localedir&g
25022 s&@mandir@&$mandir&g
25023 s&\\\${datarootdir}&$datarootdir&g' ;;
25024 esac
25025 _ACEOF
25026
25027 # Neutralize VPATH when `$srcdir' = `.'.
25028 # Shell code in configure.ac might set extrasub.
25029 # FIXME: do we really want to maintain this feature?
25030 cat >>$CONFIG_STATUS <<_ACEOF
25031 sed "$ac_vpsub
25032 $extrasub
25033 _ACEOF
25034 cat >>$CONFIG_STATUS <<\_ACEOF
25035 :t
25036 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
25037 s&@configure_input@&$configure_input&;t t
25038 s&@top_builddir@&$ac_top_builddir_sub&;t t
25039 s&@srcdir@&$ac_srcdir&;t t
25040 s&@abs_srcdir@&$ac_abs_srcdir&;t t
25041 s&@top_srcdir@&$ac_top_srcdir&;t t
25042 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
25043 s&@builddir@&$ac_builddir&;t t
25044 s&@abs_builddir@&$ac_abs_builddir&;t t
25045 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
25046 s&@INSTALL@&$ac_INSTALL&;t t
25047 $ac_datarootdir_hack
25048 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
25049
25050 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
25051 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
25052 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
25053 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25054 which seems to be undefined. Please make sure it is defined." >&5
25055 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
25056 which seems to be undefined. Please make sure it is defined." >&2;}
25057
25058 rm -f "$tmp/stdin"
25059 case $ac_file in
25060 -) cat "$tmp/out"; rm -f "$tmp/out";;
25061 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
25062 esac
25063 ;;
25064 :H)
25065 #
25066 # CONFIG_HEADER
25067 #
25068 _ACEOF
25069
25070 # Transform confdefs.h into a sed script `conftest.defines', that
25071 # substitutes the proper values into config.h.in to produce config.h.
25072 rm -f conftest.defines conftest.tail
25073 # First, append a space to every undef/define line, to ease matching.
25074 echo 's/$/ /' >conftest.defines
25075 # Then, protect against being on the right side of a sed subst, or in
25076 # an unquoted here document, in config.status. If some macros were
25077 # called several times there might be several #defines for the same
25078 # symbol, which is useless. But do not sort them, since the last
25079 # AC_DEFINE must be honored.
25080 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
25081 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
25082 # NAME is the cpp macro being defined, VALUE is the value it is being given.
25083 # PARAMS is the parameter list in the macro definition--in most cases, it's
25084 # just an empty string.
25085 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
25086 ac_dB='\\)[ (].*,\\1define\\2'
25087 ac_dC=' '
25088 ac_dD=' ,'
25089
25090 uniq confdefs.h |
25091 sed -n '
25092 t rset
25093 :rset
25094 s/^[ ]*#[ ]*define[ ][ ]*//
25095 t ok
25096 d
25097 :ok
25098 s/[\\&,]/\\&/g
25099 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
25100 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
25101 ' >>conftest.defines
25102
25103 # Remove the space that was appended to ease matching.
25104 # Then replace #undef with comments. This is necessary, for
25105 # example, in the case of _POSIX_SOURCE, which is predefined and required
25106 # on some systems where configure will not decide to define it.
25107 # (The regexp can be short, since the line contains either #define or #undef.)
25108 echo 's/ $//
25109 s,^[ #]*u.*,/* & */,' >>conftest.defines
25110
25111 # Break up conftest.defines:
25112 ac_max_sed_lines=50
25113
25114 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
25115 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
25116 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
25117 # et cetera.
25118 ac_in='$ac_file_inputs'
25119 ac_out='"$tmp/out1"'
25120 ac_nxt='"$tmp/out2"'
25121
25122 while :
25123 do
25124 # Write a here document:
25125 cat >>$CONFIG_STATUS <<_ACEOF
25126 # First, check the format of the line:
25127 cat >"\$tmp/defines.sed" <<\\CEOF
25128 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
25129 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
25130 b
25131 :def
25132 _ACEOF
25133 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
25134 echo 'CEOF
25135 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
25136 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
25137 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
25138 grep . conftest.tail >/dev/null || break
25139 rm -f conftest.defines
25140 mv conftest.tail conftest.defines
25141 done
25142 rm -f conftest.defines conftest.tail
25143
25144 echo "ac_result=$ac_in" >>$CONFIG_STATUS
25145 cat >>$CONFIG_STATUS <<\_ACEOF
25146 if test x"$ac_file" != x-; then
25147 echo "/* $configure_input */" >"$tmp/config.h"
25148 cat "$ac_result" >>"$tmp/config.h"
25149 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
25150 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
25151 echo "$as_me: $ac_file is unchanged" >&6;}
25152 else
25153 rm -f $ac_file
25154 mv "$tmp/config.h" $ac_file
25155 fi
25156 else
25157 echo "/* $configure_input */"
25158 cat "$ac_result"
25159 fi
25160 rm -f "$tmp/out12"
25161 ;;
25162
25163 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
25164 echo "$as_me: executing $ac_file commands" >&6;}
25165 ;;
25166 esac
25167
25168
25169 case $ac_file$ac_mode in
25170 "default":C)
25171
25172 ### Make the necessary directories, if they don't exist.
25173 for dir in etc lisp ; do
25174 test -d ${dir} || mkdir ${dir}
25175 done
25176
25177 # Build src/Makefile from ${srcdir}/src/Makefile.c
25178 # and lib-src/Makefile from ${srcdir}/lib-src/Makefile.c
25179 # This must be done after src/config.h is built, since we rely on that file.
25180
25181 # Now get this: Some word that is part of the ${srcdir} directory name
25182 # or the ${configuration} value might, just might, happen to be an
25183 # identifier like `sun4' or `i386' or something, and be predefined by
25184 # the C preprocessor to some helpful value like 1, or maybe the empty
25185 # string. Needless to say consequent macro substitutions are less
25186 # than conducive to the makefile finding the correct directory.
25187 undefs="`echo $top_srcdir $configuration $canonical |
25188 sed -e 's/[^a-zA-Z0-9_]/ /g' -e 's/^/ /' -e 's/ *$//' \
25189 -e 's/ */ -U/g' -e 's/-U[0-9][^ ]*//g' \
25190 `"
25191
25192 echo creating src/epaths.h
25193 ${MAKE-make} epaths-force
25194
25195 # As of 2000-11-19, newest development versions of GNU cpp preprocess
25196 # `..' to `. .' unless invoked with -traditional
25197
25198 if test "x$GCC" = xyes && test "x$CPP_NEED_TRADITIONAL" = xyes; then
25199 CPPFLAGS="$CPPFLAGS -traditional"
25200 fi
25201
25202 echo creating lib-src/Makefile
25203 ( cd lib-src
25204 rm -f junk.c junk1.c junk2.c
25205 sed -e '/start of cpp stuff/q' \
25206 < Makefile.c > junk1.c
25207 sed -e '1,/start of cpp stuff/d'\
25208 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25209 < Makefile.c > junk.c
25210 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25211 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25212 cat junk1.c junk2.c > Makefile.new
25213 rm -f junk.c junk1.c junk2.c
25214 chmod 444 Makefile.new
25215 mv -f Makefile.new Makefile
25216 )
25217
25218 echo creating src/Makefile
25219 ( cd src
25220 rm -f junk.c junk1.c junk2.c
25221 sed -e '/start of cpp stuff/q' \
25222 < Makefile.c > junk1.c
25223 sed -e '1,/start of cpp stuff/d'\
25224 -e 's,/\*\*/#\(.*\)$,/* \1 */,' \
25225 < Makefile.c > junk.c
25226 $CPP $undefs -I. -I$srcdir/src $CPPFLAGS junk.c | \
25227 sed -e 's/^ / /' -e '/^#/d' -e '/^[ \f]*$/d' > junk2.c
25228 cat junk1.c junk2.c > Makefile.new
25229 rm -f junk.c junk1.c junk2.c
25230 chmod 444 Makefile.new
25231 mv -f Makefile.new Makefile
25232 )
25233
25234 if test ! -f src/.gdbinit && test -f $srcdir/src/.gdbinit; then
25235 echo creating src/.gdbinit
25236 echo source $srcdir/src/.gdbinit > src/.gdbinit
25237 fi
25238
25239 # This is how we know whether to re-run configure in certain cases.
25240 touch src/config.stamp
25241
25242 ;;
25243
25244 esac
25245 done # for ac_tag
25246
25247
25248 { (exit 0); exit 0; }
25249 _ACEOF
25250 chmod +x $CONFIG_STATUS
25251 ac_clean_files=$ac_clean_files_save
25252
25253
25254 # configure is writing to config.log, and then calls config.status.
25255 # config.status does its own redirection, appending to config.log.
25256 # Unfortunately, on DOS this fails, as config.log is still kept open
25257 # by configure, so config.status won't be able to write to it; its
25258 # output is simply discarded. So we exec the FD to /dev/null,
25259 # effectively closing config.log, so it can be properly (re)opened and
25260 # appended to by config.status. When coming back to configure, we
25261 # need to make the FD available again.
25262 if test "$no_create" != yes; then
25263 ac_cs_success=:
25264 ac_config_status_args=
25265 test "$silent" = yes &&
25266 ac_config_status_args="$ac_config_status_args --quiet"
25267 exec 5>/dev/null
25268 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
25269 exec 5>>config.log
25270 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
25271 # would make configure fail if this is the last instruction.
25272 $ac_cs_success || { (exit 1); exit 1; }
25273 fi
25274
25275